Data path repair method, FPGA circuit, and FPGA circuit design device
By iteratively extending the timing path in the FPGA circuit, the problem of insufficient data signal delay caused by illegal timing paths is solved, ensuring that the data signal arrives before the clock signal to avoid functional impact.
Patent Information
- Application Number
- CN202010681872.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-15
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-07-15
AI Technical Summary
The illegal timing path in the FPGA circuit causes the data signal to be sent after the clock signal arrives, or the data signal does not meet the hold time when the clock signal arrives, affecting the function of the FPGA circuit.
By re-routing at least one internal connection in the timing path iteratively to extend the length of the timing path until the timing path is repaired successfully or the preset number of iterations is reached, ensuring that the data signal arrives before the clock signal and is captured stably.
It effectively avoids the violation of the timing circuit from affecting the function of the FPGA circuit, ensures that the data signal arrives before the clock signal, and ensures that the timing unit can stably capture the data signal.
Smart Images

Figure CN111931453B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of FPGA circuit design, and in particular to a data path repair method, an FPGA circuit, and an FPGA circuit design device. Background Art
[0002] At present, FPGA (Field Programmable Gate Array) circuits are widely used in the industry due to their advantages such as customizability, high parallelism, and reconfigurability. FPGA software development tools are used to perform logic synthesis, layout and routing, and configuration bitstream generation on user application designs in sequence, so as to compile the logic circuit program written by the user in the hardware description language, and generate a bitstream download file for configuring the chip and download it to the chip, so as to build a circuit that realizes the corresponding logic function. Summary of the invention
[0003] The purpose of this application is to provide a data path repair method, an FPGA circuit, and an FPGA circuit design device, which can increase the delay of the data signal and avoid affecting the function of the FPGA circuit due to illegal timing circuits.
[0004] In a first aspect, an embodiment of the present application provides a method for repairing a data path, comprising: when a timing path in an FPGA circuit is a violation timing path, iteratively rerouting at least one internal connection in the timing path to extend the length of the timing path until the timing path is repaired successfully or a preset number of iterations is reached. The FPGA circuit includes a plurality of wiring units, and each internal connection is a connection in a wiring unit.
[0005] In a second aspect, an embodiment of the present application provides an FPGA circuit designed by the data path repair method described in the first aspect.
[0006] In a third aspect, an embodiment of the present application provides an FPGA circuit design device, including a routing module. The routing module is used to iteratively reroute at least one internal connection in the timing path when the timing path in the FPGA circuit is a violation timing path, so as to extend the length of the timing path until the timing path is successfully repaired or a preset number of iterations is reached. The FPGA circuit includes a plurality of routing units, and each internal connection is a connection in a routing unit.
[0007] The embodiment of the present invention provides a data path repair method, an FPGA circuit, and an FPGA circuit design device, wherein the data path repair method is used to repair a timing path violation in an FPGA circuit. The timing path includes multiple wiring paths, and the wiring path includes internal connections located in a wiring unit. When the timing path is a timing violation path, the embodiment of the present invention re-iteratively rewires at least one internal connection of the timing path to extend the length of the timing path, increase the delay of the data signal, thereby making the data signal arrive before the clock signal, and ensure that the timing unit can stably capture the data signal, thereby avoiding the function of the FPGA circuit being affected by the timing violation circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0009] Figure 1 A schematic diagram of multiple timing paths in an FPGA circuit proposed in an embodiment of the present application;
[0010] Figure 2 A schematic diagram of a timing path after rewiring proposed in an embodiment of the present application;
[0011] Figure 3a A schematic diagram of a wiring path before rewiring proposed in an embodiment of the present application;
[0012] Figure 3b A schematic diagram of a wiring path after rewiring proposed in an embodiment of the present application;
[0013] Figure 4 A schematic diagram of a process for repairing a data path proposed in an embodiment of the present application;
[0014] Figure 5 A schematic diagram of a process for repairing a data path proposed in an embodiment of the present application;
[0015] Figure 6 A schematic diagram of a process for repairing a data path proposed in an embodiment of the present application;
[0016] Figure 7 A schematic diagram of a wiring path after rewiring proposed in an embodiment of the present application;
[0017] Figure 8 A diagram showing the connection relationship between various units in the FPGA circuit proposed in an embodiment of the present application.
[0018] Reference numerals:
[0019] 100-FPGA circuit; 101-programmable logic unit; 102-input unit; 103-output unit; 104-programmable wiring resource; 10-timing path; 11-wiring path; 111-internal connection; 1111-first sub-connection; 1112-second sub-connection; 112-external connection; 21-wiring unit. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0021] Timing path refers to the use of connection relationships to transfer data from one timing unit to another. There is a timing path from the data sending timing unit to the data receiving timing unit.
[0022] In the process of data transmission, in order to prevent the data from being metastable, the Setup (setup time) requirements and Hold (hold time) requirements should be met. Among them, the Setup requirement is: the synchronization circuit should ensure that the timing unit can effectively capture the data signal, and the data signal should be sent before the clock signal arrives. The Hold requirement is: the data signal should remain stable during the process of the timing unit capturing the data signal. If the data path delay is too small or the clock path delay is too large, the data signal will be sent after the clock signal arrives, or when the clock signal arrives, the data signal will not meet the hold time. That is, a Hold violation problem occurs, and the timing path is a violation timing path, which affects the function of the FPGA circuit.
[0023] Based on this, the embodiment of the present invention proposes the following solution:
[0024] The embodiment of the present invention provides a data path compensation method, such as Figure 1-Figure 3b As shown, it includes: when the timing path 10 in the FPGA circuit 100 is a violation timing path, iteratively rerouting at least one internal connection 111 in the timing path 10 to extend the length of the timing path 10 until the timing path 10 is repaired successfully or reaches a preset number of iterations. The FPGA circuit includes a plurality of wiring units 21, and each internal connection 111 is a connection in a wiring unit 21.
[0025] Here, if Figure 1As shown, the FPGA circuit 100 includes a plurality of timing paths 10, each timing path 10 is a path between two timing units, and the starting point of the timing path 10 may be a root pin, and the end point may be an end pin. Figure 2 As shown, each timing path 10 is composed of multiple path arcs (wiring paths) 11, and multiple wiring paths 11 can be prepared according to different masks (mask templates) to meet wiring requirements. Figure 3a and Figure 3b As shown, each routing path 11 includes a routing arc (internal connection) 111 located in an SRB (routing unit) 21 and a plurality of external connections 112 for connecting a root pin, a plurality of internal connections 111, and an end pin.
[0026] Among them, Figure 3a As shown, each wiring unit 21 may be provided with only one internal connection line 111; or Figure 7 As shown, a plurality of internal connecting lines 112 may also be provided in each wiring unit 21 .
[0027] In some embodiments, during the process of repairing the illegal timing path, when the data signal is sent before the clock signal arrives and the timing unit can stably capture the data signal, it can be considered that the illegal timing path is repaired successfully.
[0028] In some embodiments, Figure 3a and Figure 3b As shown, at least one internal connection line 111 in the timing path 10 is iteratively routed to extend the length of the timing path 10 , that is, to extend the length of at least one internal connection line 111 , thereby extending the length of the entire timing path 10 .
[0029] In some embodiments, the specific number of preset iterations is not related to the device used to design the FPGA, etc., and the embodiments of the present invention do not specifically limit this.
[0030] Optionally, the preset number of iterations may be 500. It may be considered that if the illegal timing path cannot be repaired after 500 iterations of routing of the internal connection 111, then the timing path 10 cannot be repaired.
[0031] An embodiment of the present invention provides a data path compensation method, which iteratively routes at least one internal connection 111 in the timing path 10 to extend the length of the timing path 10 and increase the delay of the data signal, so that the data signal arrives before the clock signal, and ensures that the timing unit can stably capture the data signal, thereby avoiding the function of the FPGA circuit 100 being affected by the illegal timing circuit.
[0032] like Figure 4 As shown, an embodiment of the present invention provides a data path compensation method, including:
[0033] S11. According to slack (slack time to meet timing requirements), multiple timing paths 10 in the FPGA circuit are sorted in sequence. The smaller the slack time to meet the timing requirements of the timing path 10, the higher its ranking in the multiple timing paths 10.
[0034] In some embodiments, the multiple timing paths 10 in the FPGA circuit 100 can be sorted in sequence according to the margin time that meets the timing requirements. This means that the more serious the violation of the timing path 10, the higher its ranking among the multiple timing paths 10, and the timing path can be repaired first.
[0035] S12 , pre-judge the timing path 10 according to the arrangement order of the plurality of timing paths 10 to confirm whether the timing path 10 is a violation timing path or a non-violation timing path.
[0036] In some embodiments, after determining the order of the plurality of timing paths 10 in the FPGA circuit 100 , a timing path 10 with the worst timing in the current order is pre-judged according to the arrangement order of the plurality of timing paths 10 .
[0037] If the timing path 10 is a violation timing path, at least one internal connection 111 in the timing path 10 is iteratively rerouted until the timing path 10 is repaired successfully or reaches a preset number of iterations, and a repair success or repair failure result is output.
[0038] If the timing path 10 is a non-violating timing path, it can be pre-judged as a non-violating timing path because it has not been iteratively routed. Therefore, it means that even if the timing path 10 is not rerouted, there is no violation phenomenon. The result can be directly output and the iterative routing can be skipped.
[0039] On this basis, since the timing path 10 is a non-violating timing path, the timing paths 10 following the timing path 10 are also non-violating timing paths. These non-violating timing paths can also directly jump out of the iterative routing, thereby eliminating the pre-judgment step and simplifying the repair process.
[0040] S13, such as Figure 3a and Figure 3bAs shown, when the timing path 10 in the FPGA circuit 100 is a violation timing path, at least one internal connection 111 in the timing path 10 is iteratively rerouted to extend the length of the timing path 10 until the timing path 10 is repaired successfully or reaches a preset number of iterations. The FPGA circuit includes a plurality of routing units 21, and each internal connection 111 is a connection in a routing unit 21.
[0041] In some embodiments, during the process of repairing the illegal timing path, when the data signal is sent before the clock signal arrives and the timing unit can stably capture the data signal, it can be considered that the illegal timing path is repaired successfully.
[0042] In some embodiments, when repairing the multiple timing violation paths obtained by sorting according to step S11 and step S12, only one timing violation path may be repaired at the same time according to the arrangement order of the multiple timing paths 10.
[0043] In some embodiments, Figure 3a and Figure 3b As shown, at least one internal connection line 111 in the timing path 10 is iteratively routed to extend the length of the timing path 10 , that is, to extend the length of at least one internal connection line 111 , thereby extending the length of the entire timing path 10 .
[0044] In some embodiments, the specific number of preset iterations is not related to the device used to design the FPGA, etc., and the embodiments of the present invention do not specifically limit this.
[0045] Optionally, the preset number of iterations may be 500. It may be considered that if the illegal timing path cannot be repaired after 500 iterations of routing of the internal connection 111, then the timing path 10 cannot be repaired.
[0046] Based on the above step S11, step S12, and step S13, the results of the pre-judgment are different, and the process of the data path repair method is also different. Specifically: first, according to the margin time that meets the timing requirements, the multiple timing paths 10 in the FPGA circuit 100 are sorted in sequence. After that, according to the arrangement order of the multiple timing paths 10, the multiple timing paths 10 are pre-judged to confirm whether there are illegal timing paths in the FPGA circuit 100. If there are illegal timing paths, at least one internal connection 111 in the timing path is iteratively re-routed in sequence until the repair is successful or the preset number of iterations is reached, and the result is output; if there are no illegal timing paths, the result is directly output.
[0047] The embodiment of the present invention provides a method for repairing a data path, which is used to repair a timing path violation in an FPGA circuit 100. The timing path 10 includes a plurality of wiring paths 11, and the wiring path 11 includes an internal connection 111 located in a wiring unit 21. When the timing path 10 is a timing path violation, the embodiment of the present invention re-iteratively rewires at least one internal connection 111 of the timing path 10 to extend the length of the timing path 10, increase the delay of the data signal, so that the data signal arrives before the clock signal, and ensures that the timing unit can stably capture the data signal, so as to avoid affecting the function of the FPGA circuit 100 due to the timing violation circuit.
[0048] like Figure 6 As described above, an internal connection line 111 in the timing path 10 may be re-routed, and the data path compensation method includes:
[0049] S11. Sort the multiple timing paths 10 in the FPGA circuit 100 in sequence according to the margin time that meets the timing requirement. The smaller the margin time that meets the timing requirement of the timing path 10, the higher its ranking in the multiple timing paths 10.
[0050] The explanation of step S11 of this embodiment is the same as that of step S11 of the previous embodiment, and will not be repeated here.
[0051] S12 , pre-judge the timing path 10 according to the arrangement order of the plurality of timing paths 10 to confirm whether the timing path 10 is a violation timing path or a non-violation timing path.
[0052] The explanation of step S12 of this embodiment is the same as that of step S12 of the previous embodiment, and will not be repeated here.
[0053] S131 , when the timing path 10 is a violation timing path, disconnect the internal connection 111 of the timing path 10 before rewiring, and the internal connection 111 before rewiring is electrically connected to the first pin pin1 and the second pin pin2 of the wiring unit 21 where it is located. Figure 7 The dotted line with an arrow in the middle represents the internal connection line 111 before rewiring, and two ends of the internal connection line 111 are electrically connected to the first pin pin1 and the second pin pin2 respectively.
[0054] Here, step S131 corresponds to disconnecting only one internal connection line 111 before rewiring when iteratively routing one internal connection line 111 of one timing path 10. Of course, multiple internal connections 111 in one timing path 10 may also be disconnected to extend the length of the timing path 10, which is not particularly limited in the embodiment of the present invention.
[0055] In some embodiments, when rewiring an internal connection 111 , the A* algorithm can be used to determine that a pin on the internal connection 111 is an expandable pin, that is, the A* algorithm can be used to determine that a pin on the disconnected timing path 10 is disconnected to disconnect the internal connection 111 .
[0056] Specifically, f(n) = g(n) + h(n), where n represents the pin to be expanded, g(n) represents the actual cost from the starting pin pin1 to n, and h(n) represents the estimated cost from n to the end point rnode. For pin n, if its f(n) value is within the interval (min_dly, max_dly), then n is considered to be an expandable pin.
[0057] like Figure 7 As shown, when the pin n to be expanded ( Figure 7 When the second pin in (i) coincides with the rnode of the original internal connection 111 and the value of f(n) is within the interval (min_dly, max_dly), the pin to be expanded n is an expandable pin.
[0058] Among them, min_dly is the minimum delay that can be accepted when ensuring no Hold violation for the timing path 10; max_dly is the maximum delay that can be accepted when ensuring no Hold violation for the timing path 10. The specific values of min_dly and max_dly can be determined according to customer needs.
[0059] S132, such as Figure 7 As shown, the internal connection line 111 electrically connected to the first pin pin1 and the second pin pin2 respectively is rearranged, and the rearranged internal connection line 111 includes a plurality of first sub-connections 1111 located in a plurality of wiring units 21 and a second sub-connection line 1112 connecting the plurality of first sub-connections 1111; wherein each first sub-connection line 1111 is a connection line in a wiring unit 21. Figure 5 The bold solid line in the figure represents the internal connection line 111 after the reset.
[0060] Here, step S132 corresponds to resetting only one internal connection 111 when iteratively routing one internal connection 111 of one timing path 10. Of course, multiple internal connections 111 in one timing path 10 may also be reset to extend the length of the timing path 10, and the embodiment of the present invention does not specifically limit this.
[0061] In some embodiments, Figure 7As shown, the first sub-line 1111 at both ends is electrically connected to the first pin pin1 and the second pin pin2 respectively; or, the first sub-line 1111 at both ends is electrically connected to the first pin pin1 and the second pin pin2 respectively through the second sub-line 1112.
[0062] In some embodiments, Figure 7 As shown, the internal connection line 111 before rewiring is located in one wiring unit 21 , and the multiple first sub-connections 1111 of the internal connection line 111 after rewiring are located in multiple wiring units 21 .
[0063] In some embodiments, among the multiple wiring units 21 where the multiple first sub-wires 1111 after rewiring are located, the multiple wiring units 21 other than the wiring unit 21 where the internal wire 111 before rewiring is located may be originally in the FPGA circuit 100 or may be newly added during rewiring. If the multiple wiring units 21 other than the wiring unit 21 where the internal wire 111 before rewiring is originally in the FPGA circuit 100, it should be ensured that the newly added first sub-wires 1111 do not interfere with other wires in these wiring units 21.
[0064] In some embodiments, the number of the plurality of wiring units 21 where the plurality of first sub-wires 1111 are located after rewiring and the length of the rewiring internal wires 111 are not limited and can be designed according to the violation of the sequential circuit 10 .
[0065] The embodiment of the present invention provides a method for repairing a data path, which is used to repair a timing violation path in an FPGA circuit 100. The timing path 10 includes a plurality of wiring paths 11, and the wiring path 11 includes an internal connection 111 located in a wiring unit 21. When the timing path 10 is a timing violation path, the embodiment of the present invention can first disconnect an internal connection 111 of the timing path 10, and then rewire it to set a new internal connection 111. The length of the internal connection 111 after rewiring is greater than the length of the internal connection 111 before rewiring, thereby extending the length of the timing path 10, increasing the delay of the data signal, so that the data signal arrives before the clock signal, and ensuring that the timing unit can stably capture the data signal, avoiding the function of the FPGA circuit 100 being affected by the timing violation circuit. On this basis, since only one internal connection 111 needs to be rewired, the data path repair process can also be simplified.
[0066] The embodiment of the present invention further provides an FPGA circuit 100, which is designed by the data path repair method described in any of the above embodiments.
[0067] like Figure 8As shown, the FPGA circuit 100 may also include a programmable logic unit 101, an input unit 102, an output unit 103, and a programmable wiring resource 104. Multiple programmable logic units 101 are distributed in the entire FPGA circuit 100 according to certain rules, and the programmable wiring resource 104 can be used to connect multiple programmable logic units 101, input units 102, and output units 103 to form an FPGA circuit 100 with specific functions.
[0068] An embodiment of the present invention provides an FPGA circuit 100 , and its explanation and beneficial effects are the same as the explanation and beneficial effects of the aforementioned method for repairing a data path, which will not be repeated here.
[0069] The embodiment of the present invention further provides an FPGA circuit design device, including a routing module. The routing module is used to iteratively reroute at least one internal connection 111 in the timing path 10 when the timing path in the FPGA circuit is a violation timing path, so as to extend the length of the timing path 10 until the timing path 10 is repaired successfully or reaches a preset number of iterations. The FPGA circuit 100 includes a plurality of routing units 21, and each internal connection 111 is a connection in a routing unit 21.
[0070] In some embodiments, there is no limitation on a specific FPGA circuit design device, as long as the FPGA circuit design device can at least complete the iterative routing of at least one internal connection 111 in the timing path 10 .
[0071] For example, the FPGA circuit design device may be an EDA (Electronic design automation, electronic design automation tool).
[0072] An embodiment of the present invention provides an FPGA circuit design device, which includes a wiring module. The wiring module can be used to iteratively rewire the internal connection 111 to extend the length of the timing path 10, increase the delay of the data signal, so that the data signal arrives before the clock signal, and ensure that the timing unit can stably capture the data signal, avoiding the function of the FPGA circuit 100 being affected by the illegal timing circuit.
[0073] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for repairing a data path, characterized in that: include: According to the margin time that meets the timing requirement, the multiple timing paths in the FPGA circuit are sorted in sequence, and the smaller the time that meets the timing requirement of the timing path is, the higher the sorting of the timing path among the multiple timing paths is; Pre-judging the timing paths according to the arrangement order of the plurality of timing paths to confirm whether the timing paths are violation timing paths or non-violation timing paths; When the timing path is the violation timing path, iteratively rerouting an internal connection line in the timing path to extend the length of the timing path until the timing path is repaired successfully or a preset number of iterations is reached, and the internal connection line before rerouting is electrically connected to an expandable pin determined by using an A* algorithm; When the timing path is the non-violation timing path, the timing path jumps out of the iterative routing, and the timing paths arranged after the timing path jump out of the iterative routing; Wherein, the FPGA circuit includes a plurality of wiring units, and each of the internal connections is a connection in one of the wiring units.
2. The method according to claim 1, characterized in that The rerouting of an internal connection line in the timing path includes: Disconnecting the internal connection before rewiring, wherein the internal connection before rewiring is electrically connected to the first pin and the second pin of the wiring unit where the internal connection is located; The internal connection lines electrically connected to the first pin and the second pin are reset, and the reset internal connection lines include a plurality of first sub-connections located in a plurality of the wiring units and a second sub-connection line connecting the plurality of the first sub-connections; wherein each of the first sub-connections is a connection line in a wiring unit.
3. The method according to claim 1 or 2, characterized in that: The preset number of iterations is 500.
4. An FPGA circuit, characterized in that: The method for repairing a data path is designed according to any one of claims 1 to 3.
5. An FPGA circuit design device, characterized in that: Including wiring module; The wiring module is used to sort multiple timing paths in the FPGA circuit in sequence according to the margin time that meets the timing requirements, and the smaller the time that meets the timing requirements of the timing path, the higher its ranking in the multiple timing paths; pre-judge the timing path according to the arrangement order of the multiple timing paths to confirm whether the timing path is a violation timing path or a non-violation timing path; when the timing path is the violation timing path, iteratively re-route at least one internal connection in the timing path to extend the length of the timing path until the timing path is successfully repaired or reaches a preset number of iterations, and the internal connection before re-routing is electrically connected to the expandable pin determined by the A* algorithm; when the timing path is the non-violation timing path, the timing path jumps out of the iterative routing, and the timing path arranged after the timing path jumps out of the iterative routing; wherein the FPGA circuit includes a plurality of wiring units, and each of the internal connections is a connection in one of the wiring units.
6. The FPGA circuit design device according to claim 5, characterized in that: The FPGA circuit design device is an EDA tool.
