FPGA speed grade determination method, device and electronic equipment

By using a lookup table LUT to generate a combinational logic loop circuit in the FPGA chip, testing the chip delay value and determining its actual speed level, the problem of quality assurance of the FPGA chip in the existing technology is solved, and the product performance is ensured to meet the expected standards.

CN117787168BInactive Publication Date: 2024-10-25BEIJING TASSON SCI & TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311525411.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-15
Publication Date
2024-10-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

It is difficult to ensure the quality of FPGA chips in the existing technology, resulting in related products failing to meet performance requirements. Mainly due to the lack of speed grade screening and verification work, the performance of individual chips is lower than the calibrated speed grade.

Method used

By generating a combinational logic loop circuit based on the lookup table LUT in the target FPGA, the chip delay value is tested to determine its actual speed level, and compared with the calibrated speed level, the chips that meet the preset conditions are screened out.

Benefits of technology

This guarantees the performance and quality of FPGA chips, ensures that product performance reaches expected standards, and avoids product delivery delays and cost increases caused by performance differences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117787168B_ABST
    Figure CN117787168B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and electronic device for determining the speed grade of an FPGA, and relates to the field of integrated circuit technology, wherein the method comprises: obtaining a combinational logic loop circuit based on a lookup table LUT in a target FPGA; determining a delay value of the target FPGA based on the combinational logic loop circuit; and determining the actual speed grade of the target FPGA based on the delay value of the target FPGA. Thus, corresponding products can be produced according to the actual speed grade of the target FPGA, and the performance quality of FPGA chip-related products can be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a method and device for determining the speed grade of an FPGA and electronic equipment. Background Art

[0002] The quality of Field Programmable Gate Array (FPGA) chips can be reflected by their speed grade, but the speed grade is a statistical number that reflects certain common characteristics of a batch of chips and cannot represent the quality of individual chips.

[0003] At present, the design side of FPGA is generally only logic design and development, and does not involve the screening and verification of FPGA speed grades. Since the testing of some chips is carried out on a sampling basis, it cannot be ruled out that the performance of individual chips may be lower than the calibrated speed grade. In this case, it is also difficult to ensure the quality of FPGA chip-related products, resulting in FPGA chip-related products failing to meet performance requirements. Summary of the invention

[0004] The present invention provides a method, device and electronic equipment for determining the speed grade of an FPGA, so as to solve the defect in the prior art that it is difficult to ensure the quality of products related to FPGA chips, and to ensure the performance of products related to FPGA chips.

[0005] The present invention provides a method for determining the speed grade of a field programmable gate array (FPGA), comprising:

[0006] Based on the lookup table LUT in the target FPGA, a combinational logic loop circuit is obtained;

[0007] Determining a delay value of the target FPGA based on the combinational logic ring circuit;

[0008] Based on the delay value of the target FPGA, an actual speed grade of the target FPGA is determined.

[0009] According to a method for determining the speed grade of a field programmable gate array FPGA provided by the present invention, obtaining a combinational logic loop circuit based on a lookup table LUT in a target FPGA specifically includes:

[0010] Based on the lookup table LUT, determining a lookup table LUT for implementing an XOR gate and a plurality of lookup tables LUT for implementing an AND gate;

[0011] The combinational logic ring circuit is obtained based on the lookup table LUT for implementing the XOR gate and the lookup table LUT for implementing the AND gate.

[0012] According to a method for determining the speed grade of a field programmable gate array FPGA provided by the present invention, the generation method of the combinational logic ring circuit specifically includes:

[0013] Using the test signal as the input of the lookup table LUT implementing the XOR gate, and connecting the lookup table LUT implementing the AND gate as a transmission gate in sequence;

[0014] The output of the last transmission gate is used as output data and fed back to the input of the lookup table LUT implementing the XOR gate;

[0015] Among them, the first input of the first transmission gate is the output of the lookup table LUT that implements the XOR gate; the first input of any transmission gate except the first transmission gate is the output of the previous transmission gate; for any transmission gate, the inputs except the first input are all high level.

[0016] According to a method for determining the speed grade of a field programmable gate array FPGA provided by the present invention, determining the delay value of the target FPGA based on the combinational logic loop circuit specifically includes:

[0017] Recording the start time of testing the combinational logic loop circuit and the first level reversal time in the output data of the combinational logic loop circuit;

[0018] Based on the start-up time and the level inversion time, a delay value of the target FPGA is determined.

[0019] According to a method for determining a speed grade of a field programmable gate array FPGA provided by the present invention, the method further comprises:

[0020] The actual speed grade of the target FPGA is compared with the calibrated speed grade of the target FPGA, and the target FPGA that meets the preset conditions is screened out.

[0021] The present invention also provides a device for determining a speed grade of a field programmable gate array (FPGA), comprising:

[0022] An acquisition circuit module is used to obtain a combinational logic loop circuit based on a lookup table LUT in a target FPGA;

[0023] A delay determination module, configured to determine a delay value of the target FPGA based on the combinational logic loop circuit;

[0024] The grade determination module is used to determine the actual speed grade of the target FPGA based on the delay value of the target FPGA.

[0025] According to a speed grade determination device for a field programmable gate array FPGA provided by the present invention, the method of obtaining a combinational logic loop circuit based on a lookup table LUT in a target FPGA specifically includes:

[0026] Based on the lookup table LUT, determining a lookup table LUT for implementing an XOR gate and a plurality of lookup tables LUT for implementing an AND gate;

[0027] The combinational logic ring circuit is obtained based on the lookup table LUT for implementing the XOR gate and the lookup table LUT for implementing the AND gate.

[0028] According to a speed grade determination device for a field programmable gate array FPGA provided by the present invention, the generation method of the combinational logic loop circuit specifically includes:

[0029] Using the test signal as the input of the lookup table LUT implementing the XOR gate, and connecting the lookup table LUT implementing the AND gate as a transmission gate in sequence;

[0030] The output of the last transmission gate is used as output data and fed back to the input of the lookup table LUT implementing the XOR gate;

[0031] Among them, the first input of the first transmission gate is the output of the lookup table LUT that implements the XOR gate; the first input of any transmission gate except the first transmission gate is the output of the previous transmission gate; for any transmission gate, the inputs except the first input are all high level.

[0032] According to a speed grade determination device for a field programmable gate array FPGA provided by the present invention, the delay value of the target FPGA is determined based on the combinational logic loop circuit, specifically including:

[0033] Recording the start time of testing the combinational logic loop circuit and the first level reversal time in the output data of the combinational logic loop circuit;

[0034] Based on the start-up time and the level inversion time, a delay value of the target FPGA is determined.

[0035] According to a device for determining a speed grade of a field programmable gate array (FPGA) provided by the present invention, the device further comprises:

[0036] The screening module is used to compare the actual speed grade of the target FPGA with the calibrated speed grade of the target FPGA, and screen out the target FPGA that meets the preset conditions.

[0037] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the speed grade determination method of the field programmable gate array FPGA as described above is implemented.

[0038] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for determining the speed grade of a field programmable gate array FPGA as described in any one of the above is implemented.

[0039] The FPGA speed grade determination method, device and electronic device provided by the present invention can obtain a combinational logic loop circuit through a lookup table LUT in the target FPGA, and then perform a test based on the combinational logic loop circuit to determine the delay value of the target FPGA, and then determine the actual speed grade of the target FPGA, so that corresponding products can be produced according to the actual speed grade of the target FPGA, thereby ensuring the performance quality of FPGA chip-related products. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A schematic diagram of a flow chart of a method for determining the speed grade of an FPGA provided by the present invention;

[0042] Figure 2 A schematic diagram of the circuit structure of the speed grade screening of the FPGA provided by the present invention;

[0043] Figure 3 A schematic diagram of the structure of the device for determining the speed grade of an FPGA provided by the present invention;

[0044] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] The existing technology does not perform FPGA speed grade screening and verification, and can only completely trust the chip parameters provided by the FPGA manufacturer. If problems occur during the test, various attempts can only be made by replacing the chip. This time-consuming and labor-intensive method can only solve the problem of small product quantities. If the product quantity is large, repeated work such as "blowing off the chip, re-soldering a new chip, unit testing, and system testing" may cause the FPGA chip product to be completely unable to be delivered on schedule.

[0047] Another common practice is to design the timing margin to 20% through tight constraints to accommodate chips with large performance differences as much as possible. However, this method does not work at all for situations where the inherent speed level is one or two orders of magnitude different. Moreover, even within one order of magnitude, because the design project has actually used more resources (for example, more than 90%), the 20% tight constraint cannot be met at all. In this case, a fast, simple, and low-cost method must be used to screen out FPGA chips with faster speeds that meet the 10% design margin. Another situation is that the speed level margin is 0, that is, the edge case. In this case, if there is no relative parameter comparison, problems will occur sooner or later.

[0048] Therefore, the present invention provides a method, device and electronic device for determining the speed grade of FPGA to determine the speed grade of FPGA, thereby ensuring the performance quality of FPGA chip-related products.

[0049] Figure 1 The flowchart of the method for determining the speed grade of FPGA provided by the present invention is as follows: Figure 1 As shown, the method comprises the following steps:

[0050] Step 100: Based on the lookup table LUT in the target FPGA, a combinational logic loop circuit is obtained.

[0051] Step 101: Determine a delay value of a target FPGA based on a combinational logic loop circuit.

[0052] Step 102: Determine the actual speed grade of the target FPGA based on the delay value of the target FPGA.

[0053] Specifically, the target FPGA refers to an FPGA for which a speed grade determination needs to be performed.

[0054] FPGA contains Configurable Logic Blocks (CLB), or Logic Element (LE), which is the smallest unit used to complete user logic. A logic unit includes a Look Up Table (LUT) to implement the function of combinational logic circuits.

[0055] Therefore, in the embodiment of the present invention, a combinational logic ring circuit can be obtained based on the LUT in the target FPGA. The combinational logic ring circuit can connect all LUTs, has a simple design, and can verify whether the wiring resources between each LUT are working properly through the combinational logic ring circuit.

[0056] After connecting all the LUTs in the target FPGA to obtain a combinational logic ring circuit, the time required for the signal to pass through the combinational logic ring circuit can be obtained through testing, and then the delay value of the target FPGA can be determined. Then, the actual speed grade of the target FPGA can be obtained based on the delay value of the target FPGA.

[0057] It is understandable that in the prior art, the absolute delay value of the FPGA can be calculated based on various delay parameters in the FPGA chip manual, but if the speed level of the target FPGA does not match the calibrated speed level, the delay value calculated based on the FPGA chip manual is also inaccurate. The delay value of the target FPGA determined by the combinational logic loop circuit provided by the present invention is obtained based on actual testing, so the actual speed level of the target FPGA can be determined.

[0058] The FPGA speed grade determination method provided by the present invention can obtain a combinational logic loop circuit through a lookup table LUT in the target FPGA, and then test the combinational logic loop circuit to determine the delay value of the target FPGA, and then determine the actual speed grade of the target FPGA, so that corresponding products can be produced according to the actual speed grade of the target FPGA, thereby ensuring the performance quality of FPGA chip-related products.

[0059] According to a method for determining the speed grade of an FPGA provided by the present invention, a combinational logic loop circuit is obtained based on a lookup table LUT in a target FPGA, specifically comprising:

[0060] Based on the lookup table LUT, determining a lookup table LUT for implementing an XOR gate and a plurality of lookup tables LUT for implementing an AND gate;

[0061] Based on the lookup table LUT for implementing the XOR gate and the lookup table LUT for implementing the AND gate, a combinational logic ring circuit is obtained.

[0062] Specifically, in the process of obtaining a combinational logic ring circuit using LUT, firstly, according to LUT-related parameters of the target FPGA, a LUT for implementing an XOR gate and a plurality of LUTs for implementing an AND gate can be determined.

[0063] For the LUT that implements the XOR gate, when the input signals are at different levels, it outputs a high level (logic 1), and when the input signals are at the same level, it outputs a low level (logic 0); for the LUT that implements the AND gate, when all the input signals are at a high level, it outputs a high level (logic 1), and when at least one of the input signals is at a low level, it outputs a low level (logic 0).

[0064] A combinational logic ring circuit can be obtained based on one LUT implementing an XOR gate and multiple LUTs implementing AND gates.

[0065] According to a method for determining the speed grade of an FPGA provided by the present invention, a method for generating a combinational logic ring circuit specifically includes:

[0066] The test signal is used as the input of the lookup table LUT for implementing the XOR gate, and the lookup table LUT for implementing the AND gate is connected in sequence as a transmission gate;

[0067] The output of the last transmission gate is used as output data and fed back to the input of the lookup table LUT that implements the XOR gate;

[0068] Among them, the first input of the first transmission gate is the output of the lookup table LUT that realizes the XOR gate; the first input of any transmission gate except the first transmission gate is the output of the previous transmission gate; for any transmission gate, the inputs except the first input are all high level.

[0069] Specifically, the determined LUT for implementing the XOR gate can be used as the first level of the logic circuit, that is, the test signal is used as one of the inputs of the LUT for implementing the XOR gate, and then the output of the LUT for implementing the XOR gate is connected to the first input of a LUT for implementing the AND gate.

[0070] Each LUT implementing an AND gate is connected in sequence as a transmission gate, that is, the first input of any transmission gate except the first transmission gate is the output of the previous transmission gate of the transmission gate. For example, the first input of the second transmission gate is the output of the first transmission gate, and the first input of the third transmission gate is the output of the second transmission gate. In addition, for any transmission gate, all inputs except the first input are high level (logic 1). For example, if the transmission gate is a 4-input LUT, then the number of connections for logic 1 is 3; if it is a 6-input LUT, then the number of connections for logic 1 is 5.

[0071] It should be noted that any transmission gate has multiple inputs, and the first input refers to any one input among the multiple inputs.

[0072] The output of the last transmission gate is used as the output data of the combinational logic ring circuit, and is fed back to the input of the LUT that implements the XOR gate, thereby generating a complete combinational logic ring circuit.

[0073] According to a method for determining the speed grade of an FPGA provided by the present invention, a delay value of a target FPGA is determined based on a combinational logic loop circuit, specifically comprising:

[0074] Recording the start time of testing the combinational logic loop circuit and the first level inversion time in the output data of the combinational logic loop circuit;

[0075] Based on the start-up time and the level inversion time, the delay value of the target FPGA is determined.

[0076] Specifically, in the process of determining the delay value of the target FPGA by using the combinational logic loop circuit, the start time of testing the combinational logic loop circuit may be recorded first.

[0077] Starting the test means that one input of the LUT that implements the XOR gate in the combinational logic loop circuit becomes a high level (logic 1), while the other input is a low level (logic 0), and the output is a high level (logic 1). If the inputs of the subsequent multiple LUTs that implement the AND gates are all high levels (logic 1), then the outputs are all high levels (logic 1), that is, the final output data is also a high level (logic 1).

[0078] At this time, the output data will also be fed back to the LUT that implements the XOR gate as an input of the LUT that implements the XOR gate. At this time, the two inputs of the LUT that implements the XOR gate are both high level (logic 1), and the output is low level (logic 0). If the inputs of the subsequent multiple LUTs that implement the AND gates are low level (logic 0), the outputs are all low level (logic 0), that is, the final output data is also low level (logic 0), which is the level inversion in the output data of the combinational logic loop circuit.

[0079] Therefore, the delay value of the target FPGA can be determined based on the start time of testing the combinational logic ring circuit and the first level inversion time in the output data of the combinational logic ring circuit, and then the actual speed grade of the target FPGA can be determined.

[0080] According to a method for determining a speed grade of an FPGA provided by the present invention, the method further comprises:

[0081] The actual speed grade of the target FPGA is compared with the calibrated speed grade of the target FPGA, and the target FPGA that meets the preset conditions is screened out.

[0082] Specifically, in the process of producing large quantities of FPGA chip-related products, it is necessary to use an FPGA that meets the calibrated speed level of the FPGA chip. Therefore, in the method provided by the embodiment of the present invention, after determining the actual speed level of the target FPGA, the actual speed level of the target FPGA can also be compared with the calibrated speed level of the target FPGA, and a preset condition can be set. For example, the preset condition can be: the error between the actual speed level and the calibrated speed level is within a set threshold.

[0083] If the target FPGA meets the preset conditions, it means that the actual speed level of the target FPGA is relatively close to the calibrated speed level of the target FPGA or is within a reasonable error range, and the target FPGA can be used to manufacture and deliver related products.

[0084] If the target FPGA does not meet the preset conditions, it means that the actual speed level of the target FPGA is significantly different from the calibrated speed level of the target FPGA or exceeds the error range. Therefore, it is not suitable to use the target FPGA to manufacture related products. You can consider dividing the target FPGA into a product production line that meets its actual speed level.

[0085] The method for determining the speed grade of an FPGA provided by the present invention is further explained below through embodiments in specific application scenarios.

[0086] Figure 2 The circuit structure diagram of the speed grade screening of the FPGA provided by the present invention is as follows: Figure 2 As shown, the XOR gate is implemented by a LUT, followed by multiple transmission gates implemented by LUTs connected in sequence, generally implementing an AND gate circuit. For any transmission gate, one of the inputs is connected to the output of the previous AND gate, and the other input is a logic 1 (i.e., a high level). For example, if the transmission gate is a 4-input LUT, then the number of connections for logic 1 is 3; if it is a 6-input LUT, then the number of connections for logic 1 is 5.

[0087] The overall method flow is as follows:

[0088] (1) Design a combinational logic loop circuit. Generally, the transmission gate can be realized by LUT and AND gate or OR gate. In this scheme, AND gate is selected.

[0089] (2) According to the FPGA chip manual, the number of CLBs (also called LEs) of the chip to be tested can be obtained, and then the number of LUTs can be obtained, excluding the LUT that implements the XOR gate;

[0090] (3) Using the for loop statement, the transmission gates implemented by the LUT table are connected, and the output of the transmission gate at the last level is fed back to an input of the XOR gate, thus forming a combinational logic loop;

[0091] (4) The above layout and routing results can be checked through the GUI function and report function of the FPGA development tool layout and routing tool to see whether all LUTs are added to the combinational logic loop circuit;

[0092] (5) Generate a configuration file and load it into the domestic FPGA to be tested that has been installed in the socket;

[0093] (6) Start the test through the test enable (TEST_EN) function pin and record the start time t1;

[0094] (7) Use an oscilloscope to monitor the output data (DATA_OUT), record the first level flip time t2, and calculate the delay. The delay calculation formula is delay = t2-t1;

[0095] (8) Loop (5) to (7) until all domestic FPGAs to be tested have completed all tests;

[0096] (9) Compare the delay values ​​of FPGAs with accurate speed grades or statistically compare the delay values ​​of FPGA products that have been successfully delivered, classify them, and select FPGA chips whose design margins meet the actual application scenarios.

[0097] The speed grade determination device of the FPGA provided by the present invention is described below. The speed grade determination device of the FPGA described below and the speed grade determination method of the FPGA described above can be referred to each other.

[0098] Figure 3 The schematic diagram of the structure of the FPGA speed grade determination device provided by the present invention is as follows: Figure 3 As shown, the device comprises:

[0099] The circuit acquisition module 300 is used to obtain a combinational logic loop circuit based on a lookup table LUT in the target FPGA;

[0100] A delay determination module 310 is used to determine a delay value of a target FPGA based on a combinational logic loop circuit;

[0101] The grade determination module 320 is used to determine the actual speed grade of the target FPGA based on the delay value of the target FPGA.

[0102] According to a speed grade determination device of an FPGA provided by the present invention, a combinational logic loop circuit is obtained based on a lookup table LUT in a target FPGA, specifically comprising:

[0103] Based on the lookup table LUT, determining a lookup table LUT for implementing an XOR gate and a plurality of lookup tables LUT for implementing an AND gate;

[0104] Based on the lookup table LUT for implementing the XOR gate and the lookup table LUT for implementing the AND gate, a combinational logic ring circuit is obtained.

[0105] According to a device for determining the speed grade of an FPGA provided by the present invention, a method for generating a combinational logic loop circuit specifically includes:

[0106] The test signal is used as the input of the lookup table LUT for implementing the XOR gate, and the lookup table LUT for implementing the AND gate is connected in sequence as a transmission gate;

[0107] The output of the last transmission gate is used as output data and fed back to the input of the lookup table LUT that implements the XOR gate;

[0108] Among them, the first input of the first transmission gate is the output of the lookup table LUT that realizes the XOR gate; the first input of any transmission gate except the first transmission gate is the output of the previous transmission gate; for any transmission gate, the inputs except the first input are all high level.

[0109] According to a device for determining the speed grade of an FPGA provided by the present invention, a delay value of a target FPGA is determined based on a combinational logic loop circuit, specifically comprising:

[0110] Recording the start time of testing the combinational logic loop circuit and the first level inversion time in the output data of the combinational logic loop circuit;

[0111] Based on the start-up time and the level inversion time, the delay value of the target FPGA is determined.

[0112] According to a device for determining a speed grade of an FPGA provided by the present invention, the device further comprises:

[0113] The screening module is used to compare the actual speed grade of the target FPGA with the calibrated speed grade of the target FPGA, and screen out the target FPGA that meets the preset conditions.

[0114] Figure 4 A schematic diagram of the structure of an electronic device provided by the present invention, such as Figure 4As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the FPGA speed grade determination method provided by the above methods, and the method includes:

[0115] Based on the lookup table LUT in the target FPGA, a combinational logic loop circuit is obtained;

[0116] Determine the delay value of the target FPGA based on the combinational logic loop circuit;

[0117] Based on the target FPGA's delay values, determine the actual speed grade of the target FPGA.

[0118] According to a method for determining the speed grade of an FPGA provided by the present invention, a combinational logic loop circuit is obtained based on a lookup table LUT in a target FPGA, specifically comprising:

[0119] Based on the lookup table LUT, determining a lookup table LUT for implementing an XOR gate and a plurality of lookup tables LUT for implementing an AND gate;

[0120] Based on the lookup table LUT for implementing the XOR gate and the lookup table LUT for implementing the AND gate, a combinational logic ring circuit is obtained.

[0121] According to a method for determining the speed grade of an FPGA provided by the present invention, a method for generating a combinational logic ring circuit specifically includes:

[0122] The test signal is used as the input of the lookup table LUT for implementing the XOR gate, and the lookup table LUT for implementing the AND gate is connected in sequence as a transmission gate;

[0123] The output of the last transmission gate is used as output data and fed back to the input of the lookup table LUT that implements the XOR gate;

[0124] Among them, the first input of the first transmission gate is the output of the lookup table LUT that realizes the XOR gate; the first input of any transmission gate except the first transmission gate is the output of the previous transmission gate; for any transmission gate, the inputs except the first input are all high level.

[0125] According to a method for determining the speed grade of an FPGA provided by the present invention, a delay value of a target FPGA is determined based on a combinational logic loop circuit, specifically comprising:

[0126] Recording the start time of testing the combinational logic loop circuit and the first level inversion time in the output data of the combinational logic loop circuit;

[0127] Based on the start-up time and the level inversion time, the delay value of the target FPGA is determined.

[0128] According to a method for determining a speed grade of an FPGA provided by the present invention, the method further comprises:

[0129] The actual speed grade of the target FPGA is compared with the calibrated speed grade of the target FPGA, and the target FPGA that meets the preset conditions is screened out.

[0130] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0131] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for determining the speed grade of an FPGA provided by the above methods is implemented, and the method comprises:

[0132] Based on the lookup table LUT in the target FPGA, a combinational logic loop circuit is obtained;

[0133] Determine the delay value of the target FPGA based on the combinational logic loop circuit;

[0134] Based on the target FPGA's delay values, determine the actual speed grade of the target FPGA.

[0135] According to a method for determining the speed grade of an FPGA provided by the present invention, a combinational logic loop circuit is obtained based on a lookup table LUT in a target FPGA, specifically comprising:

[0136] Based on the lookup table LUT, determining a lookup table LUT for implementing an XOR gate and a plurality of lookup tables LUT for implementing an AND gate;

[0137] Based on the lookup table LUT for implementing the XOR gate and the lookup table LUT for implementing the AND gate, a combinational logic ring circuit is obtained.

[0138] According to a method for determining the speed grade of an FPGA provided by the present invention, a method for generating a combinational logic ring circuit specifically includes:

[0139] The test signal is used as the input of the lookup table LUT for implementing the XOR gate, and the lookup table LUT for implementing the AND gate is connected in sequence as a transmission gate;

[0140] The output of the last transmission gate is used as output data and fed back to the input of the lookup table LUT that implements the XOR gate;

[0141] Among them, the first input of the first transmission gate is the output of the lookup table LUT that realizes the XOR gate; the first input of any transmission gate except the first transmission gate is the output of the previous transmission gate; for any transmission gate, the inputs except the first input are all high level.

[0142] According to a method for determining the speed grade of an FPGA provided by the present invention, a delay value of a target FPGA is determined based on a combinational logic loop circuit, specifically comprising:

[0143] Recording the start time of testing the combinational logic loop circuit and the first level inversion time in the output data of the combinational logic loop circuit;

[0144] Based on the start-up time and the level inversion time, the delay value of the target FPGA is determined.

[0145] According to a method for determining a speed grade of an FPGA provided by the present invention, the method further comprises:

[0146] The actual speed grade of the target FPGA is compared with the calibrated speed grade of the target FPGA, and the target FPGA that meets the preset conditions is screened out.

[0147] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for determining the speed grade of a field programmable gate array FPGA, characterized in that: include: Based on the lookup table LUT in the target FPGA, a combinational logic loop circuit is obtained; Determining a delay value of the target FPGA based on the combinational logic loop circuit; Determining an actual speed grade of the target FPGA based on the delay value of the target FPGA; The step of obtaining a combinational logic loop circuit based on a lookup table LUT in the target FPGA specifically includes: Based on the lookup table LUT, determining a lookup table LUT for implementing an XOR gate and a plurality of lookup tables LUT for implementing an AND gate; Based on the lookup table LUT for implementing the XOR gate and the lookup table LUT for implementing the AND gate, obtaining the combinational logic loop circuit; The generation method of the combinational logic ring circuit specifically includes: Using the test signal as the input of the lookup table LUT implementing the XOR gate, and connecting the lookup table LUT implementing the AND gate as a transmission gate in sequence; The output of the last transmission gate is used as output data and fed back to the input of the lookup table LUT implementing the XOR gate; The first input of the first transmission gate is the output of the lookup table LUT for implementing the XOR gate; the first input of any transmission gate other than the first transmission gate is the output of the previous transmission gate; for any transmission gate, the inputs other than the first input are all high level; The step of determining the delay value of the target FPGA based on the combinational logic ring circuit specifically includes: Recording the start time of testing the combinational logic loop circuit and the first level reversal time in the output data of the combinational logic loop circuit; Based on the start-up time and the level inversion time, a delay value of the target FPGA is determined.

2. The method for determining the speed grade of a field programmable gate array FPGA according to claim 1, characterized in that: The method further comprises: The actual speed grade of the target FPGA is compared with the calibrated speed grade of the target FPGA, and the target FPGA that meets the preset conditions is screened out.

3. A device for determining the speed grade of a field programmable gate array FPGA, characterized in that: include: An acquisition circuit module is used to obtain a combinational logic loop circuit based on a lookup table LUT in a target FPGA; A delay determination module, configured to determine a delay value of the target FPGA based on the combinational logic loop circuit; A grade determination module, configured to determine an actual speed grade of the target FPGA based on a delay value of the target FPGA; The step of obtaining a combinational logic loop circuit based on a lookup table LUT in the target FPGA specifically includes: Based on the lookup table LUT, determining a lookup table LUT for implementing an XOR gate and a plurality of lookup tables LUT for implementing an AND gate; Based on the lookup table LUT for implementing the XOR gate and the lookup table LUT for implementing the AND gate, obtaining the combinational logic loop circuit; The generation method of the combinational logic ring circuit specifically includes: Using the test signal as the input of the lookup table LUT implementing the XOR gate, and connecting the lookup table LUT implementing the AND gate as a transmission gate in sequence; The output of the last transmission gate is used as output data and fed back to the input of the lookup table LUT implementing the XOR gate; The first input of the first transmission gate is the output of the lookup table LUT for implementing the XOR gate; the first input of any transmission gate other than the first transmission gate is the output of the previous transmission gate; for any transmission gate, the inputs other than the first input are all high level; The step of determining the delay value of the target FPGA based on the combinational logic ring circuit specifically includes: Recording the start time of testing the combinational logic loop circuit and the first level reversal time in the output data of the combinational logic loop circuit; Based on the start-up time and the level inversion time, a delay value of the target FPGA is determined.

4. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the speed grade determination method of the field programmable gate array FPGA as claimed in any one of claims 1 to 2 is implemented.

5. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the speed grade determination method of the field programmable gate array FPGA as claimed in any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • Look-up tables for delay circuitry in field programmable gate array (fpga) chipsets

    CN103155413A

  • Transmission delay test method and device based on FPGA

    CN109217951A

  • Hardware-based logic mapping method, apparatus and device, and storage medium

    CN116894413A

  • Programmable logic device

    CN1768324A

  • Look-up tables for delay circuitry in field programmable gate array (FPGA) chipsets

    US20120319752A1