Integrated circuit optimization system and method based on multi-phase level sensitive latch

By converting edge-triggered sequential elements into polyphase level-sensitive latches and retiming the level-sensitive latches, the problem of performance optimization of traditional synchronous sequential circuits under parameter perturbation is solved, and a certain error rate is allowed. The power consumption and area are reduced, and the performance and reliability of the integrated circuit are improved.

CN111027276BActive Publication Date: 2024-09-20ZHUHAI ZHANXIN SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910917462.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-04-12
Filing Date
2019-09-26
Publication Date
2024-09-20
Estimated Expiration
2039-09-26

AI Technical Summary

Technical Problem

Traditional synchronous sequential circuit design is difficult to effectively optimize integrated circuit performance in the face of parameter disturbances caused by manufacturing process advancements, and when the error rate allowed in some applications is high, traditional design methods lead to reductions in power consumption and area. No need to increase.

Method used

Convert edge-triggered sequential elements into equivalent blocks containing polyphase level-sensitive latches, and employ level-sensitive latch retiming and better-than-worst-case design methods by moving the level-sensitive latches. Optimize signal transmission paths, reduce latency and improve integrated circuit performance.

Benefits of technology

It achieves the reduction of signal transmission path delay, power consumption and area without affecting the correctness of the system, provides greater space for performance optimization, and ensures the correct function of the system by predicting or detecting low-probability events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111027276B_ABST
    Figure CN111027276B_ABST
Patent Text Reader

Abstract

The present invention relates to an integrated circuit optimization system and method, which includes converting edge-triggered sequential elements (such as flip-flops) into equivalent modules including multi-phase level-sensitive latches, and then adopting certain level-sensitive latch-based optimization techniques, such as level-sensitive latch retiming and better-than-worst-case design based on prediction or detection of signal transmission through the level-sensitive latches.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Related Applications

[0002] This application is based on U.S. Provisional Patent Application No. 62 / 743,248, entitled “Integrated Circuit Optimization System and Method Based on Transformation from Edge-Triggered Sequential Elements to Level-Sensitive Latches”, filed on October 9, 2018, and U.S. Provisional Patent Application No. 62 / 833,127, entitled “Integrated Circuit Optimization System and Method Based on Transformation from Edge-Triggered Sequential Elements to Level-Sensitive Latches”, filed on April 12, 2019. The entire contents of these applications are hereby incorporated by reference as part of this document. Technical Field

[0003] The invention relates to integrated circuit design optimization technology. Background Art

[0004] Synchronous sequential circuits consist of sequential elements and combinatorial logic networks. Combinational logic forms logic levels between sequential elements. Sequential elements are typically clock edge triggered flip-flops. The logic expression is first generated by logic synthesis to form a network of logic gates from a cell library, after which optimization techniques such as logic optimization or register retiming can be applied. Logic optimization finds equivalent implementations of the same logic by transforming logic while meeting specific design criteria such as timing performance. Register or latch retiming moves a clock edge triggered flip-flop or level sensitive latch in the circuit structure to better balance critical signal propagation paths between two adjacent logic levels.

[0005] Traditional integrated circuits based on flip-flops require that the data signal arrive at the flip-flop before the clock signal. Traditional static timing analysis verifies this by checking whether the worst-case signal propagation delay in the combinational logic network is less than the clock period (details include signal setup time, hold time, clock drift, uncertainty, etc.). The timing requirements of level-sensitive latches are different from flip-flops. For example, level-sensitive latches allow data signals to arrive later than latch enable signals.

[0006] In static timing analysis, time borrowing occurs when the data signal arrives at the level-sensitive latch later than the latch enable signal. This situation is not a timing error because the latch is transparent and allows the signal to pass. The borrowed time, or the part of the time when the data signal arrives later than the latch enable signal, needs to be repaid in the next signal transmission, and the signal needs to complete the transmission in the subsequent logic level in the next clock cycle. Specifically, the verification method of static timing analysis for this situation is to use the same timing requirements for the level-sensitive latch as the trigger, that is, the signal transmission path delay must be less than the clock cycle, but the borrowed time of a level-sensitive latch needs to be included in the delay of the signal transmission path starting from the latch. For related technology, please refer to U.S. Patent US 2009 / 0055786 A1, entitled "Method for Verifying Timing of a Circuit" filed by Mau-Chung Chang on August 5, 2008.

[0007] The progress of integrated circuit technology has caused a significant increase in the disturbance of manufacturing process, power supply voltage, on-chip temperature, and other parameters. Therefore, even if the normal value of a parameter decreases with the process improvement, the best and worst values ​​of this parameter do not decrease proportionally. This affects the performance improvement of integrated circuits because the traditional synchronous timing circuit design method requires that the logic operation in a logic level must be completed within one clock cycle, including the worst case. After considering the borrowing time and compensation time, this requirement also applies to level-sensitive latches.

[0008] Another approach to IC design is to design for the worst-case scenario to achieve improved performance, reduced power, and / or reduced area. For example, there is no requirement that logic operations must be completed within a single clock cycle. In some applications, such as image and voice processing, a certain error rate is acceptable, so approximate computing can be used to achieve power, performance, and area improvements. A simple approximate computing technique is overclocking, which allows certain critical signal transmission paths to have delays that exceed the clock cycle. If the resulting error rate is acceptable, overclocking can be used. In other applications, the system ensures zero error rate by detecting and correcting errors or predicting and preventing errors. Specific technologies include using error detection codes or error correction codes in integrated circuits, or error detection timing designs such as Razor Razor designs. See U.S. Patent No. 10 / 392,382, entitled “Error Detection and Recovery Within Processing Stages of an Integrated Circuit,” filed on March 20, 2003 by Krisztian Flautner, Todd Michael Austin, David Theodore Blaauw, and Trevor Nigel Mudge, and U.S. Patent No. 14 / 702,426, entitled “Timing Violation Resilient Asynchronous Template,” filed on May 1, 2015 by Peter A. Beerel, Melvin Breuer, Benmao Cheng, and Dylan Hand.

[0009] For a practical timing error prediction scheme, see the article titled “Application-Specific Cross-Layer Optimization Based on Predictive Variable-Latency VLSI Design” by V. De, AB Kahng, T. Karnik, B. Liu, M. Maleki and L. Wang, published in ACM Journal on Emerging Technologies in Computing Systems (JETC)-Special Issue on Cross-Layer System Design and Regular Papers, 12(3), September 2015, pages 21:1-21:19. Summary of the invention

[0010] The present invention relates to an integrated circuit optimization system and method, which includes converting edge-triggered sequential elements (such as triggers) into equivalent modules including multi-phase level-sensitive latches, and then using optimization techniques based on level-sensitive latches, such as level-sensitive latch retiming and better-than-worst-case design based on prediction or detection of signal transmission through level-sensitive latches. The optimized integrated circuit includes mutually separated multi-phase level-sensitive latches, edge-triggered sequential elements, and a combinational logic network.

[0011] In one embodiment of the present invention, the integrated circuit timing performance improvement comes from level-sensitive latch retiming, or in other words, moving the level-sensitive latch at the start or end of the timing-critical signal transmission path in the circuit structure can reduce the signal transmission path delay. In comparison, existing register retiming technology or the technology of moving the clock edge-triggered flip-flop in the circuit structure can balance the signal transmission path delay at the input and output of the flip-flop, but it can only achieve limited timing performance improvement. Converting the flip-flop into an equivalent module containing master-slave latches provides additional freedom for circuit optimization. Moving one of the level-sensitive latches in the circuit structure can reduce the delay of the signal transmission path connected to it without affecting the signal transmission path connected to the other level-sensitive latch.

[0012] In one embodiment of the present invention, the time when the data signal arrives at a level-sensitive latch is compared with the time when the latch-off signal arrives, and the latch-off signal is determined by the signal transmission path. This timing requirement is different from the traditional timing requirement based on time borrowing, which can provide additional space for integrated circuit performance optimization.

[0013] Level-sensitive latch retiming causes many signal transmission paths to pass through level-sensitive latches, and it is a low-probability event for signals to be transmitted through such paths. Not considering these low-probability events in integrated circuit optimization can improve power consumption, performance, and area; predicting or detecting and processing such low-probability events can ensure correct system function. In one embodiment of the present invention, predicting that a signal is transmitted through a critical path is based on observing certain edge inputs of the path. In another embodiment of the present invention, detecting timing errors is achieved by comparing the input and output of the level-sensitive latch when the level-sensitive latch and the latch before it are closed.

[0014] According to a first aspect of the present invention, there is provided an optimization method for an integrated circuit including an edge-triggered timing element, the optimization method comprising the following steps: a. converting the edge-triggered timing element into an equivalent module including a multi-phase level-sensitive latch; b. moving one of the level-sensitive latches in the circuit structure of the integrated circuit.

[0015] According to a second aspect of the present invention, there is provided an apparatus comprising a finite state machine which inputs signals from a plurality of combinatorial logic stages and outputs signals indicating signal transmission through a timing critical path through a level sensitive latch.

[0016] According to a third aspect of the present invention, there is provided a device comprising a comparator, wherein in an integrated circuit comprising a multi-phase level-sensitive latch, the comparator compares input and output signals of the level-sensitive latch when the level-sensitive latch and all previous-stage level-sensitive latches are opaque.

[0017] According to a fourth aspect of the present invention, there is provided a computer readable medium for storing computer instructions, which when executed by a computer implement the method according to the first aspect of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Advantages of the present invention are reflected in the following detailed description and accompanying drawings.

[0019] Figure 1 A schematic diagram showing a conventional flip-flop retiming technique.

[0020] Figure 2 A schematic diagram showing a conventional level-sensitive latch retiming technique.

[0021] Figure 3 A schematic diagram of converting an edge trigger into an equivalent module according to an embodiment of the present invention is shown. The equivalent module includes two level-sensitive latches that are transparent in two opposite clock phases.

[0022] Figure 4 A schematic diagram illustrating an example of an exemplary integrated circuit optimization method according to an embodiment of the present invention is shown.

[0023] Figure 5 A schematic diagram showing another example of an integrated circuit optimization method according to an embodiment of the present invention is shown.

[0024] Figure 6 A schematic diagram showing yet another example of an integrated circuit optimization method according to an embodiment of the present invention is shown.

[0025] Figure 7 A schematic diagram showing yet another example of an integrated circuit optimization method according to an embodiment of the present invention is shown.

[0026] Figure 8 A schematic diagram showing an existing static timing analysis method for a synchronous digital system is shown.

[0027] Fig. 9A schematic diagram of a time borrowing method in an existing static timing analysis is shown.

[0028] Fig.10 A schematic diagram showing a set of timing constraints for an integrated circuit including a bi-phase level sensitive latch according to an embodiment of the present invention is shown.

[0029] Fig.11 A schematic diagram showing a set of timing constraints for an integrated circuit including a four-phase level sensitive latch according to an embodiment of the present invention is shown.

[0030] Fig.12 A block diagram of a timing error prediction device in the form of a finite state machine according to an embodiment of the present invention is shown.

[0031] Fig.13 A block diagram of a timing error detection device according to an embodiment of the present invention is shown.

[0032] Fig.14 A flow chart of an integrated circuit optimization method according to an embodiment of the present invention is shown.

[0033] The present invention is susceptible to many modifications and different forms, and certain specific embodiments are shown in the drawings and will be described in detail. The drawings may not be to scale. It should be understood that the drawings and detailed description are not intended to limit the present invention to certain specific forms, but rather, are intended to cover all modifications, equivalents, and different forms within the spirit and scope of the present invention as defined by the claims. DETAILED DESCRIPTION

[0034] It should be understood that the present invention is not limited to a particular device or system, which of course vary from one another. It should also be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present invention.

[0035] Figure 1 shows a schematic diagram of the traditional flip-flop retiming technique. The timing performance improvement comes from better balancing the delays of the signal transmission paths that end and start at a flip-flop. Similarly, Figure 2 A schematic diagram showing a conventional level-sensitive latch retiming technique. The timing performance improvement comes from better balancing the delays of the signal transmission paths that end and start at a level-sensitive latch.

[0036] Figure 3 A schematic diagram of converting an edge-triggered sequential element into an equivalent module including a multi-phase level-sensitive latch according to an embodiment of the present invention is shown. Specifically, a D flip-flop is converted into a pair of master-slave latches that are transparent in two opposite clock phases. A more complex edge-triggered sequential element can be similarly converted into an equivalent module including a multi-phase level-sensitive latch.

[0037] Figure 4 A schematic diagram of an example of an integrated circuit optimization method according to an embodiment of the present invention is shown, the method comprising performing sequential element conversion and moving a latch from an input of a NAND logic gate to an output of the logic gate. Specifically, Figure 4 In the method shown, two edge-triggered flip-flops are converted into level-sensitive latches, and then the two level-sensitive latches are removed from the input of the NAND gate, a new level-sensitive latch is inserted at the output of the NAND gate, and another level-sensitive latch is inserted at the fan-out node of the fan-in cone of the NAND gate, that is, the input of the NOT gate.

[0038] Figure 5 A schematic diagram showing another example of an integrated circuit optimization method according to an embodiment of the present invention is shown, the method may include inserting a level-sensitive latch in a timing critical path, performing sequential element conversion and level-sensitive latch removal at the fan-in cone input of the inserted latch a, and inserting a latch at the output of the fan-in cone, these steps may be used after converting the edge-triggered sequential element to a level-sensitive latch. Specifically, in Figure 5 In the method shown, first, a timing critical path that needs to be shortened is identified, for example, for establishing a time constraint. Second, the trigger at the start of the path is converted into an equivalent module containing a level-sensitive latch. Third, the level-sensitive latch is moved from the start of the critical path to a new location. The new location (1) satisfies the timing constraint, and (2) minimizes the cost, such as chip area and / or power consumption. Next, the gate-level network is traversed from the newly inserted latch (a) to the initial input to obtain a fan-in cone of latches. The input of the fan-in cone is a set of sequential elements, in which each edge-triggered sequential element needs to be converted into an equivalent module containing a level-sensitive latch (including level-sensitive latches b and c). Next, each level-sensitive latch at the input of the fan-in cone is removed, and a level-sensitive latch (including d, e, and f) is inserted at each fan-out node of the fan-in cone, so that no signal transmission path passes through two simultaneously transparent level-sensitive latches in succession, even after the edge-triggered sequential elements are converted into equivalent modules containing level-sensitive latches.

[0039] Figure 6 A schematic diagram showing another example of an integrated circuit optimization method according to an embodiment of the present invention is shown, the method may include performing sequential element conversion and moving a latch from the output of a NAND logic gate to the input of the logic gate. Specifically, Figure 6In the method shown, two flip-flops are converted into level-sensitive latches, and then the two level-sensitive latches are removed from the fan-out cone output of the NAND gate, two new level-sensitive latches are inserted at the input of the NAND gate, and another level-sensitive latch is inserted at a fan-in node of the fan-out cone of the NAND gate, which fan-in node is also an input of the AND gate.

[0040] Figure 7 A schematic diagram showing another example of an integrated circuit optimization method according to an embodiment of the present invention is provided, wherein the method may include inserting a level-sensitive latch in a timing critical path, performing sequential element conversion and level-sensitive latch removal at the fan-out cone output of the inserted latch a, and inserting a latch at the input of the fan-out cone, wherein these steps may be used after converting an edge-triggered sequential element into a level-sensitive latch. Specifically, in Figure 7 In the method shown, first, a timing critical path that needs to be shortened is identified, for example, for establishing a time constraint. Second, the trigger at the end of the path is converted into an equivalent module containing a level-sensitive latch. Third, the level-sensitive latch is moved from the end of the critical path to a new location. The new location (1) satisfies the timing constraint, and (2) minimizes the cost, such as chip area and / or power consumption. Next, the gate-level network is traversed from the newly inserted latch (a) to the initial output end to obtain a fan-out cone of latches. The output of the fan-out cone is a set of sequential elements, in which each edge-triggered sequential element needs to be converted into an equivalent module containing a level-sensitive latch (including level-sensitive latches b and c). Next, each level-sensitive latch at the output of the fan-out cone is removed, and a level-sensitive latch (including d) is inserted into each fan-in node of the fan-out cone, so that no signal transmission path passes through two simultaneously transparent level-sensitive latches in succession, even after an edge-triggered sequential element is converted into an equivalent module containing a level-sensitive latch.

[0041] Integrated circuits are subject to timing constraints. Figure 8 FIG. 1 is a schematic diagram showing an existing static timing analysis method for a synchronous digital system. Figure 8 In the method, the signal arrival time is constrained by the signal establishment time and signal holding time. In addition, Figure 8 In the example above, the flip-flop is triggered by the rising clock edge. Specifically, Figure 8 Given the signal setup and hold time constraints in a traditional flip-flop based synchronous sequential circuit, where d is the signal propagation delay in a logic level, T c is the clock period, T hold is the signal hold time constraint, T setupIn this traditional static timing analysis method, logic gate and interconnect delays are accumulated in each logic level, and the resulting signal transmission path delay is compared with the signal setup and hold time constraints of the trigger that receives the signal.

[0042] Fig. 9 FIG. 1 is a schematic diagram showing a time borrowing method in an existing static timing analysis. Fig. 9 In the method, the time when the signal arrives at the level-sensitive latch is adjusted by the borrowing time. The borrowing time is the part of the signal arrival time that exceeds the latch opening clock edge arrival time, and the signal setup time and hold time of the latch are relative to the latch closing clock edge. The maximum borrowing time comes from the setup time constraint, and any borrowing time needs to be compensated in the next logic level. In the figure, the level-sensitive latch is transparent when the clock signal is high, and the clock signal is high for half a clock cycle. In particular, Fig. 9 The setup and hold times for an integrated circuit based on a single-phase level-sensitive latch are given, where the signal propagates through a series of level-sensitive latches controlled by a single-phase clock signal. d is the signal propagation delay in the logic level, T c is the clock period, T hold is the signal hold time constraint, T setup It is the signal setup time constraint. In the figure, the level-sensitive latch is transparent when the clock signal φ is high, and the clock signal is high within half a clock cycle. Each level-sensitive latch has a setup time and a hold time relative to the latch disable signal or the off clock edge, that is, the minimum time that the data signal must remain stable before and after the latch disable signal or the off clock edge. Time borrowing occurs when the signal reaches the data end of the level-sensitive latch after the latch enable signal or the on clock edge. Borrowing time T borrow It is the part of the data signal arrival time that exceeds the latch enable signal or the start clock signal arrival time. The maximum borrowing time is the time between the latch enable signal arrival time and the disable signal arrival time or the start clock edge arrival time and the close clock edge arrival time minus the setup time. Compensation time T compensate It is the borrowing time of the signal at the input of the latch transmitting the signal or the output of the previous logic level. In traditional static timing analysis, the logic gate and interconnection delays in each logic level are accumulated. The latest signal arrival time from all possible paths to the receiving end level-sensitive latch is used to calculate the borrowing time or compensation time of the level-sensitive latch. For the signal transmission path starting from the level-sensitive latch and ending at the edge-triggered flip-flop, the path delay check is based on the setup and hold time of the signal arriving at the edge-triggered flip-flop, and the setup and hold time are Figure 8 is the same as shown, but any compensation time of the level-sensitive latch at the start end needs to be taken into account in the signal transmission path delay.

[0043] In an integrated circuit based on a multi-phase latch, signals are transmitted through a series of level-sensitive latches that are opened by a set of multi-phase clock signals. In a typical design, when the clock signal makes the latch transparent, the data signal passes through the latch (usually through a combinational logic network) and arrives at the latch that becomes transparent in the next clock cycle. If the signal arrives before the receiving latch is transparent, the signal waits for the next stage to be transmitted. If the signal arrives when the receiving latch is transparent, time borrowing occurs and the signal continues to transmit through the next logic level. If the signal arrives after the receiving latch is transparent and then not transparent, the signal cannot be transmitted through the latch. The signal must wait for another clock cycle to pass through the latch, during which time the logic calculation of the next clock cycle may destroy the signal and cause a logic error.

[0044] Therefore, the signal needs to arrive before the receiving latch becomes opaque. The setup time describes the minimum allowed time between the time the signal arrives at the level-sensitive latch and the arrival time of the clock edge that makes the level-sensitive latch opaque. The data signal needs to remain stable after the clock edge that makes the level-sensitive latch opaque. The hold time describes the minimum time interval that the data signal needs to remain stable after the clock edge that makes the level-sensitive latch opaque.

[0045] Fig.10 A schematic diagram of a set of timing constraints for an integrated circuit including a bi-phase level sensitive latch according to an embodiment of the present invention is shown. In the figure, n is the number of logic levels through which the signal transmission path passes. Specifically, Fig.10 The signal setup and hold time constraints in a bi-phase level-sensitive latch based integrated circuit are given, in which the signal propagates through a sequence of level-sensitive latches alternately controlled by two clock signals of opposite phases. i is the signal transmission delay in the i-th logic level, T c is the clock period, T hold is the signal hold time constraint, T setup is the signal setup time constraint.

[0046] Fig.11 A schematic diagram of a set of timing constraints for an integrated circuit including a four-phase level-sensitive latch according to an embodiment of the present invention is shown. In the figure, n is the number of logic levels that the signal transmission path passes through, k is the number of clock phases, and m is the number of phases of the high level of the clock signal. Specifically, Fig.11The setup and hold time constraints for an integrated circuit based on a four-phase level-sensitive latch are given, where the signal is transmitted through a series of level-sensitive latches controlled by four different phases of clock signals. The four different phases of the clock signals in the figure rise at 0, 25%, 50%, and 75% of the clock cycle, and fall at 50%, 75%, 100%, and 25% of the clock cycle. i is the signal transmission delay in the i-th logic level, T c is the clock period, T hold is the signal hold time constraint, T setup It is a signal setup time constraint. On any data signal transmission path, level-sensitive latches become transparent in sequence: after the level-sensitive latch becomes transparent, the data signal is transmitted from it through the logic network, and the level-sensitive latch receiving the signal at the output of the logic network becomes transparent in the next clock phase. Each level-sensitive latch is transparent in two consecutive clock phases and opaque in the other two consecutive clock phases. The delay of the signal transmission through the first logic level must be less than three clock phases minus the setup time of the receiving end level-sensitive latch, so that the signal has time to establish before the receiving end level-sensitive latch becomes opaque; it must also be greater than the hold time of the receiving end level-sensitive latch minus one clock cycle, so that the signal of the previous cycle is held after the receiving end level-sensitive latch becomes opaque. This hold time constraint is usually easy to meet because it requires the signal transmission delay to be greater than a negative value. Any clock drift and / or uncertainty needs to be taken into account.

[0047] Fig.11 A general form of setup and hold time constraints for integrated circuits based on multiphase level-sensitive latches is also given, where the signal transmission passes through a series of level-sensitive latches that are controlled by clock signals of different phases. Let k be the number of clock phases, m be the number of clock phases for which the level-sensitive latch is opaque, and n be the number of logic levels traversed by the signal transmission path. Fig.14 The general form of setup time and hold time in integrated circuits based on multi-phase level-sensitive latches is given. Specifically, as n increases by one, the maximum and minimum allowable data transmission path delays through n logic levels increase by the duration of one clock phase respectively. This is for circuits based on multi-phase level-sensitive latches, where the signal transmission passes through a series of level-sensitive latches controlled by continuous phase clock signals. In some cases, some clock phases may be missing in the sequence of level-sensitive latches on a signal transmission path. In a more general sense, the setup time constraint of a data signal arriving at a level-sensitive latch depends on the next latch-off signal, and its hold time constraint depends on the previous latch-off signal. This also applies to flip-flops composed of level-sensitive latches.

[0048] When the number of logic levels n that the signal passes through approaches infinity, Fig.10 Or the timing constraints in 11 approach Figure 8 or the timing constraints in 9. But in most cases, n is small. Fig.10 Or the timing constraints in 11 are Figure 8 The timing constraints in or 9 are more relaxed, giving more room for IC performance optimization. This is because: (1) The signal transmission path passes through the level-sensitive latch only when the data signal arrives at the latch later than the latch enable signal; in other cases, the arrival time of the level-sensitive latch output signal depends on the arrival time of the latch enable signal. (2) Considering parameter perturbations, when the parameter perturbations are not completely correlated, the longer the signal transmission path, the greater the mutual cancellation effect of the parameter perturbations, resulting in the worst-case negative time margin appearing on a finite-length signal transmission path; the exception is that the signal is transmitted in a closed loop, and its worst-case negative time margin appears on an infinite-length signal transmission path. The above exceptions need to be considered in timing analysis. Timing analysis does not need to track the signal transmission through infinite logic levels, because when the number of logic levels n that the signal transmits through increases, the contribution of each logic level to any negative time margin decreases, so sufficient accuracy can be obtained by calculating the signal arrival time at a certain moment.

[0049] Compared with the traditional static timing analysis method that uses time borrowing for level-sensitive latches, Fig.10 The static timing analysis method of the timing constraints in or 11 needs to trace the signal transmission through the level-sensitive latch in multiple clock phases or cycles, and compare the time when the data signal arrives at the level-sensitive latch with the arrival time of the latch deactivation signal in the original design that closes the latch immediately after the data signal arrives. This timing analysis method requires a larger amount of calculation, a longer time, and a larger storage space to obtain the signal arrival time within multiple clock cycles. However, this method provides a complete signal transmission path across multiple logic levels, which is beneficial to the implementation of the optimization method of the present invention, for example, confirming the starting end and the ending end of the signal transmission path. Another advantage of this method is that its timing constraints are looser than the traditional timing constraints on level-sensitive latches based on time borrowing, giving more room for performance optimization. Because in the traditional method based on time borrowing, the signal transmission path does not pass through the level-sensitive latch, the maximum signal arrival time on the level-sensitive latch gives the borrowing time or the compensation time for all signal transmission paths starting from the level-sensitive latch. The compensation time is too large for some paths.

[0050] The above timing constraints provide more room for improving the performance of integrated circuits. In addition, converting edge-triggered sequential elements into equivalent modules containing multi-phase level-sensitive latches provides more freedom for optimizing integrated circuits. For example, if a timing critical path p 1terminates at the input of a flip-flop, and another timing critical path p 2 If the output of the trigger starts at the output of the trigger, moving the trigger in the circuit structure cannot improve the performance of the circuit or shorten the clock cycle, because shortening the timing critical path p starting from the trigger 2 Inevitably, the timing critical path p terminated at the trigger 1 After the flip-flop is converted into an equivalent module including a pair of master-slave level-sensitive latches by the present invention, for example, the shifting of the slave latch can reduce the critical timing path p starting from the output of the slave latch. 2 delay without affecting the timing critical path p terminating at the master latch input 1 , whose latency can be reduced in the next optimization step, for example, by moving 1 The starting point of the level-sensitive latch.

[0051] Repeating this process can reduce the delay of each critical path. As the number of edge-triggered timing elements converted into equivalent modules containing level-sensitive latches increases, the number of timing critical paths passing through level-sensitive latches or spanning multiple logic levels will also increase. The probability of a signal being transmitted through such a long path is very low. Therefore, such circuits are suitable for using integrated circuit design techniques that are better than the worst case. In one embodiment of the present invention, long signal transmission paths can be simply set as pseudo paths, so that better power consumption, performance, and / or area can be obtained in circuit optimization if the resulting error rate is acceptable. In another embodiment of the present invention, to ensure a zero error rate, the integrated circuit detects and then corrects or predicts and then prevents any possible timing errors.

[0052] Fig.12 A block diagram of a timing error prediction device in the form of a finite state machine according to an embodiment of the present invention is shown, wherein the device predicts timing errors by sampling signals in different logic levels in an integrated circuit including a multi-phase level sensitive latch. Specifically, Fig.12 An embodiment of the present invention based on the integrated circuit design technology that is better than the worst case is shown. In this embodiment, the signal transmission path delay exceeds the clock cycle. To ensure zero error rate, any time when the signal is transmitted in the path, the monitoring module generates a signal, which starts a clock control logic gate, gives an extra clock cycle, so that the too slow logic operation can be completed, and then the system operation is restored.

[0053] Fig.12A monitoring module in the form of a finite state machine is shown, which extracts input signals from a combinational logic network in multiple clock phases. To construct the finite state machine, it is first necessary to identify a timing critical path that spans one or more logic levels in an integrated circuit containing a multi-phase level-sensitive latch, then select some edge inputs of the timing critical path, and then design a finite state machine that outputs a logic 1 after the edge input receives a predetermined pattern of signals in multiple clock phases. For a logic gate on a signal transmission path, an edge input is a logic gate input that is not on the path. In order for the signal to be transmitted through the path, the edge input needs to take a non-control logic value of the logic gate. In order for the signal to be transmitted through the timing critical path in multiple clock phases, the edge input needs to take specific non-control logic values ​​at specific phases. For example, Fig.12 Two AND gates are shown on a timing critical path across two logic levels. The two edge inputs of the two AND gates need to take on a logic value of 1 in two consecutive clock phases. A finite state machine can be constructed that outputs a logic value of 1 when the two edge inputs take on a logic value of 1 in two consecutive clock phases.

[0054] The probability of a signal passing through a path depends on the probability that all edge inputs of the path take corresponding non-control logic values, which can be estimated by the probability of some minimum edge inputs taking non-control logic values. Therefore, it is best to select the edge input with the minimum non-control logic value as the input of the finite state machine in the timing error prediction device, so that the device predicts the minimum probability of the occurrence of timing errors, and at the same time selects a small number of edge inputs to reduce the silicon cost of the device. Such a device predicts every event of a signal passing through a given timing critical path, and any wrong prediction leads to performance degradation but not logic errors.

[0055] Fig.13 A block diagram of a timing error detection device according to an embodiment of the present invention is shown, wherein the device compares input and output signals of a level-sensitive latch in an integrated circuit including a multi-phase level-sensitive latch when both the level-sensitive latch and the previous level-sensitive latch are not transparent. Specifically, Fig.13 Another embodiment of the present invention is shown to be superior to the worst case design. Fig.13In the integrated circuit shown, the signal is transmitted through a series of level-sensitive latches controlled by a four-phase clock signal. The latches become transparent and opaque in turn. Each latch remains opaque in two consecutive clock phases. When the level-sensitive latch is opaque and its previous level-sensitive latch is also opaque, no signal should reach the logic network between them; otherwise, such a signal is a late signal, which cannot pass through the level-sensitive latch at the receiving end and will be destroyed in the subsequent logic operation. Such a late signal can be detected by a timing error detection device, which includes a group of comparators, each of which compares the input and output of the level-sensitive latch at the end of the timing critical path. Alternatively, if the signal is too late and cannot be captured by the device at the end of the timing critical path, a level-sensitive latch and a timing error detection device can be inserted in the middle of the timing critical path, and the inserted level-sensitive latch is controlled by the same clock signal as the latch at the end of the timing critical path.

[0056] Inserting such a timing error detection device includes identifying a set of timing critical paths whose delays relative to a given set of clock signals do not exceed a given margin. Detection of a timing error may invoke a timing error recovery mechanism, such as re-executing the erroneous operation, or a timing error correction mechanism, such as shifting the clock phase to catch a late signal.

[0057] The average performance of such an integrated circuit with a timing error prediction / detection device and a timing error recovery / correction mechanism depends on the probability of the event of predicting / detecting timing errors, the performance when timing errors do not occur, and the performance when timing errors occur, including the performance degradation caused by timing error recovery / correction. Therefore, the optimization of the combinational logic network in the integrated circuit can be targeted at probabilistic goals such as average performance while considering the probability of the event of predicting / detecting timing errors. For example, a timing critical path with a small signal transmission probability is suitable for better than worst case design, and a timing error prediction / detection device can be inserted; a timing critical path with a large signal transmission probability is suitable for combinational logic optimization or latch removal and insertion to reduce signal transmission delay.

[0058] Fig.14 A flow chart of an integrated circuit optimization method according to an embodiment of the present invention is shown, the integrated circuit optimization method comprising the following steps: converting edge-triggered sequential elements into equivalent modules including multi-phase level-sensitive latches, retiming the level-sensitive latches, performing more conversions to level-sensitive latches, retiming the level-sensitive latches, and performing a better-than-worst-case design technique. Specifically, Fig.14The preferred embodiment of the present invention is shown, i.e., an integrated circuit optimization system and method, comprising the following steps: converting an edge-triggered sequential element into an equivalent module including a multi-phase level-sensitive latch, retiming the level-sensitive latch, more conversion to level-sensitive latches, retiming the level-sensitive latches, and better than worst-case design techniques. There is usually an iterative process in which the integrated circuit is gradually optimized, and finally all design indicators are met to reach design completion.

[0059] The present invention relates to an integrated circuit optimization system and method, which includes converting edge-triggered sequential elements (such as flip-flops) into equivalent modules including multi-phase level-sensitive latches, and then adopting certain level-sensitive latch-based optimization techniques, such as level-sensitive latch retiming and better-than-worst-case design based on prediction or detection of signal transmission through the level-sensitive latches.

[0060] This patent references certain patents, patent applications, and other materials (such as articles). The text of these patents, patent applications, and other materials is cited only to the extent that it does not conflict with other text and diagrams. Any conflicting text of patents, patent applications, and other materials is not included in the scope of this patent reference.

[0061] It will be clear to those skilled in the art that the present invention has further modifications and different embodiments in various aspects through this description. The purpose of this description is to show and explain the general embodiment of the present invention for those skilled in the art. It should be understood that the methods of the present invention shown and described are examples of specific embodiments. The main points and materials shown and described may be replaced, parts and processes may be reversed, and certain functions of the present invention may be used independently, which will be clear to those skilled in the art through this description. Certain main points described herein may be changed, as long as they do not deviate from the spirit and scope of the present invention described in the following claims.

Claims

1. A method for optimizing an integrated circuit including an edge-triggered sequential element, the method comprising the following steps: a. Convert edge-triggered sequential elements into equivalent modules containing multi-phase level-sensitive latches; b. moving one of the level-sensitive latches in the circuit structure of the integrated circuit, wherein: The converted edge-triggered sequential element is at the start end of the critical timing path, and the optimization method further comprises the following steps: c. Find the fan-in cone of the moved level-sensitive latch by traversing the netlist, starting from the input of the moved level-sensitive latch and ending at the sequential element or the initial input; d. inserting edge-triggered sequential elements into any initial input of the input end of the fan-in cone, and then converting each edge-triggered sequential element of the input end of the fan-in cone into an equivalent module including a multi-phase level-sensitive latch; e. removing the level-sensitive latch for a particular clock phase at the input of the fan-in cone; f. Insert a level-sensitive latch of the clock phase at the output of the fan-in cone.

2. The optimization method according to claim 1, wherein steps a, b, c, d, e, and f are performed iteratively.

3. A method for optimizing an integrated circuit including an edge-triggered sequential element, the method comprising the following steps: a. Convert edge-triggered sequential elements into equivalent modules containing multi-phase level-sensitive latches; b. moving one of the level-sensitive latches in the circuit structure of the integrated circuit, wherein the converted edge-triggered sequential element is at the termination end of the timing critical path, and the optimization method further comprises the following steps: c. Find the fan-out cone of the moved level-sensitive latch by traversing the netlist, starting from the output of the moved multi-phase level-sensitive latch and ending at the sequential element or the initial output; d. inserting an edge-triggered sequential element into any final output of the input end of the fan-out cone, and then converting each edge-triggered sequential element at the output end of the fan-out cone into an equivalent module including a multi-phase level-sensitive latch; e. removing the level-sensitive latch of a particular clock phase at the output of the fan-out cone; f. Insert a level-sensitive latch of the clock phase at the input of the fan-out cone.

4. The optimization method according to claim 3, wherein steps a, b, c, d, e, and f are performed iteratively.

5. The optimization method according to claim 1 or 3, wherein: The optimization method further includes a first timing analysis step of finding the timing critical path, wherein the first timing analysis step further includes the following steps: a. The delays of logic gates and interconnects accumulated in the signal transmission paths in the logic level; b. If the level-sensitive latch is transparent when the signal arrives, the delay of the logic gates and interconnections on a signal transmission path continues to be accumulated through the level-sensitive latch; c. Constrain the input signal arrival time of each level-sensitive latch to be earlier than the closing time of the latch.

6. The optimization method according to claim 5, wherein: The optimization method further includes a second timing analysis step of finding the termination end of the timing critical path, and the second timing analysis step further includes the following steps: a. The delays of logic gates and interconnects accumulated in the signal transmission paths in the logic level; b. Find the maximum borrow time of the level sensitive latch; c. If the maximum borrow time of the level-sensitive latch is updated, re-accumulate the delay of the logic gates and interconnections on a signal transmission path starting from the level-sensitive latch; d. After the re-accumulation delay ends, constrain the arrival time of the input signal of each level-sensitive latch to be earlier than the closing time of the latch.

7. The optimization method according to claim 1 or 3, further comprising the step of setting a timing critical path as a false path and then optimizing the integrated circuit.

8. The optimization method according to claim 7 further comprises the step of adding a timing error prediction or detection module in the integrated circuit, and when the signal is transmitted through the timing critical path, the timing error prediction or detection module gives a timing error display signal.

9. The optimization method according to claim 8, further comprising the following steps: g. Find the edge input of the timing critical path, the edge input has a small probability of taking a non-control logic value to allow the signal to be transmitted through the timing critical path; h. Construct an integrated circuit module, when the edge input takes a non-control logic value, the timing error prediction or detection module outputs a timing error display signal.

10. The optimization method according to claim 8, wherein: The timing error detection module includes a comparator configured to compare the input and output of the level sensitive latch, and when the level sensitive latch and any previous level sensitive latch are opaque, if the input and output of the level sensitive latch do not match, the comparator outputs a timing error display signal.

11. The optimization method according to claim 1 or 3, further comprising an iterative process, wherein the iterative process comprises the steps of setting a timing critical path as a false path and then optimizing the integrated circuit.

12. A timing error prediction device, comprising a finite state machine, wherein in an integrated circuit comprising a multi-phase level-sensitive latch obtained by the optimization method described in any one of claims 1 to 11, the finite state machine inputs signals from a plurality of combinational logic levels and outputs signals to indicate that the signals are transmitted through a timing critical path passing through the level-sensitive latch.

13. A timing error detection device, comprising a comparator, wherein in an integrated circuit comprising a multi-phase level-sensitive latch obtained by the optimization method according to any one of claims 1 to 11, when the level-sensitive latch and all previous-stage level-sensitive latches are opaque, the comparator compares the input and output signals of the level-sensitive latch.

14. A computer-readable medium for storing computer instructions, which, when executed by a computer, implement the optimization method according to any one of claims 1 to 11.