Integrated circuit design optimization method and apparatus
By replacing standard cells in integrated circuit design with low leakage power versions and performing differentiated replacements based on evaluation values and frequency of occurrence, the problem of poor leakage optimization in existing technologies is solved, achieving better leakage power optimization and timing repair.
Patent Information
- Application Number
- CN202611056328.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-15
- Publication Date
- 2026-11-24
AI Technical Summary
Existing integrated circuit design optimization algorithms cannot achieve better leakage power optimization while meeting setup time requirements, and they cannot make differentiated decisions at the path level, resulting in limited leakage optimization effects.
The standard cells in the target design are uniformly replaced with low leakage power versions, which is transformed into a setup time violation repair problem. The energy efficiency and occurrence frequency of the alternative versions are evaluated by evaluation values, and cells are selectively replaced to repair setup time violations, with priority given to replacing cells that have a wide impact on timing.
While meeting setup time requirements, we can achieve better leakage power optimization by reducing leakage power increment and improving overall optimization effect through differentiated replacement decisions.
Smart Images

Figure CN123159253A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automated integrated circuit design and verification, specifically to an integrated circuit design optimization method and apparatus, as well as corresponding electronic devices and computer program products. Background Technology
[0002] In the physical design of integrated circuits, as process nodes continue to shrink, the leakage power consumption of standard cells accounts for an increasingly larger proportion of the total chip power consumption. In the chip design flow, it is necessary to minimize the leakage power consumption of standard cells while meeting timing requirements such as setup time. Setup time refers to the shortest time that a data signal needs to remain stable before the effective clock edge, and it is an important indicator for static timing analysis of integrated circuits.
[0003] Currently, commonly used electronic design automation (EDA) tools all offer leakage power optimization capabilities. These tools typically use optimization algorithms based on target designs that already meet setup time requirements. They search for standard cells with timing margins and replace them with cell types that have lower leakage power but are slower, thereby reducing leakage power without creating new setup time violations. However, the leakage power of integrated circuit designs optimized by existing methods still fails to meet designers' requirements in some scenarios, indicating room for improvement in leakage power optimization. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide an integrated circuit design optimization method and apparatus, as well as corresponding electronic devices and computer program products, which are expected to achieve better leakage power consumption optimization while meeting timing requirements.
[0005] In a first aspect, an integrated circuit design optimization method is provided, the method comprising: Replace each standard cell in the target design with the corresponding low-leakage-power version of the standard cell to determine the leakage-minimized design. Obtain the set of setup time violation paths in the leakage current minimization design, wherein the set of setup time violation paths includes a subset of the set of circuit paths with setup time violations, and each circuit path includes at least one standard cell. Based on the evaluation value determined by the energy efficiency ratio of the alternative versions of the standard unit, alternative units are used to replace each circuit path in the set of setup time violation paths to repair setup time violations. The alternative version is a threshold voltage version of the standard unit used to replace the low leakage power version. The alternative unit is the standard unit of the alternative version. The alternative unit has higher leakage power and lower latency than the standard unit of the corresponding low leakage power version.
[0006] In some implementations, alternative units are used to replace each target circuit path in the setup time violation path set to correct the setup time violation, including: The target circuit path is determined from the set of established time violation paths; For the target circuit path, the evaluation value of the alternative versions of each standard unit is calculated, wherein the evaluation value is determined at least based on the energy consumption ratio of the alternative version, and the energy consumption ratio is used to characterize the delay change caused by the unit leakage power consumption change. Based on the evaluation values, alternative unit replacement schemes with different priorities are determined; Based on the priority of the alternative unit replacement schemes, attempt to replace the alternative units in the target circuit path until a target replacement scheme that fixes the establishment time violation of the target circuit path is determined.
[0007] In some implementations, the alternative units of the target circuit path are attempted to be replaced according to their priority until a target replacement scheme that corrects the setup time violation of the target circuit path is determined, including: The current replacement scheme is determined according to the priority order from high to low; The alternative unit is replaced in the target circuit path according to the current replacement scheme; In response to the correction of the establishment time violation of the target circuit path after replacement, the current replacement scheme is determined as the target replacement scheme, and the replacement ends; In response to the failure to fix the establishment time violation of the target circuit path after replacement, return to determine a new current replacement scheme.
[0008] In some implementations, the evaluation value of each standard unit's alternative version is calculated, including: Determine at least one standard cell type that appears in the target circuit path; For each standard unit, at least one alternative version shall be determined; The energy efficiency ratio is calculated based on the delay and leakage power of the alternative versions and the delay and leakage power of the standard unit. The weighting parameters are determined based on the number or sorting of the occurrences of the standard unit in all circuit paths of setup time violations. The evaluation value is calculated based on the weighting parameters and the energy consumption ratio.
[0009] In some implementations, alternative unit replacement schemes with different priorities are determined based on the evaluation value, including: The candidate versions are sorted according to their evaluation scores; A first set of alternative unit replacement schemes is determined, wherein the first set of alternative unit replacement schemes includes multiple first alternative unit replacement schemes with priority set according to the sorting, wherein a type of standard unit is replaced with the corresponding alternative unit in the first alternative unit replacement scheme.
[0010] In some implementations, determining alternative unit replacement schemes with different priorities based on the evaluation value further includes: A second set of alternative unit replacement schemes is determined, wherein the second set of alternative unit replacement schemes includes multiple alternative unit replacement schemes with priority set according to the sorting, and in the second alternative unit replacement schemes, multiple types of standard units are replaced with corresponding alternative units.
[0011] In some implementations, the standard cells in the target design are replaced with corresponding low-leakage-power versions of the standard cells to determine a leakage-minimized design, including: Keep the threshold voltage versions of the standard cells and preset type standard cells on the clock tree unchanged, and replace other standard cells with the standard cells with the lowest leakage power version.
[0012] In some implementations, the method further includes, before replacing each standard cell in the target design with a corresponding low-leakage-power version of the standard cell: No hold-up time recovery is performed during the placement and routing phase to maximize the time margin for setup; and Preliminary fixes were made to establish time violations in order to minimize the establishment time violations in the target design.
[0013] In some implementations, alternative units are used to replace each target circuit path in the setup time violation path set to correct the setup time violation, including: The target circuit path is determined from the set of established time violation paths; For the target circuit path, at least one candidate replacement scheme is determined for each standard unit, wherein the candidate replacement scheme is a replacement scheme that can fix the establishment time violation of the target circuit path; Calculate the evaluation value of each candidate replacement scheme, wherein the evaluation value is determined at least based on the energy consumption ratio of the alternative versions of the candidate replacement scheme, and the energy consumption ratio is used to characterize the amount of delay change caused by the unit leakage power consumption change; The target replacement scheme is determined based on the evaluation value of each candidate replacement scheme, and the target circuit path is replaced with alternative units.
[0014] In a second aspect, an integrated circuit design optimization apparatus is provided, the apparatus comprising: The leakage current minimization unit is used to replace each standard unit in the target design with the corresponding low leakage current power consumption version of the standard unit to determine the leakage current minimization design. The acquisition unit is used to acquire the set of setup time violation paths in the leakage current minimization design. The set of setup time violation paths includes a subset of the set of circuit paths with setup time violations, and each circuit path includes at least one standard unit. A replacement unit is used to replace each circuit path in the setup time violation path set with a replacement unit based on the evaluation value determined by the energy efficiency ratio of the alternative versions of the standard unit, so as to repair the setup time violation. The alternative version is a threshold voltage version of the standard unit used to replace the low leakage power version. The alternative unit is a standard unit of the alternative version. The alternative unit has higher leakage power and lower latency than the standard unit of the corresponding low leakage power version.
[0015] Thirdly, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as described in the first aspect.
[0016] Fourthly, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the method described in the first aspect.
[0017] This invention transforms the leakage current optimization problem into a setup time violation repair problem by uniformly replacing all standard units in the target design with low leakage current power consumption versions of standard units. Then, for each circuit path in the setup time violation path set, an evaluation value is determined based on the energy consumption ratio of the alternative versions. In the process of repairing setup time violations, the replacement scheme in each circuit path is selectively determined. This solves the problem that existing optimization algorithms cannot make differentiated replacement decisions at the path level, resulting in a large room for improvement in leakage current power consumption optimization results. Under the premise of meeting the setup time requirements, better leakage current power consumption optimization is achieved.
[0018] Furthermore, in this embodiment of the invention, for each circuit path, the replacement priority is set according to the evaluation value of the alternative version, and the replacement scheme is tried step by step until it is confirmed that the establishment time violation of the circuit path is repaired, or the higher priority replacement scheme is selected from the replacement schemes that meet the establishment time constraint, thereby realizing fine control of the replacement process at the level of a single circuit path.
[0019] Furthermore, when calculating the evaluation value, this embodiment of the invention comprehensively considers the energy efficiency of the alternative versions and the number or ranking of the corresponding standard cell type appearing in all circuit paths with setup time violations. The energy efficiency measures the unit leakage power efficiency of each alternative version during replacement, while the number of times the standard cell type appears in all violation paths reflects the breadth of the impact of this type of cell on the overall chip design timing. The more times a standard cell type appears in setup time violation paths, the more common factors it is influencing the timing of more violation paths. Replacing it can simultaneously improve the timing of multiple paths, producing a broader optimization effect. Combining these two dimensions of information to calculate the evaluation value ensures that the replacement decision considers both the efficiency of the replacement itself and the scope of its impact, thereby more comprehensively controlling the leakage power increment during the repair of setup time violations. Attached Figure Description
[0020] The above and other objects, features and advantages of the present invention will become more apparent from the following description of embodiments of the invention with reference to the accompanying drawings, in which: Figure 1 This is a flowchart of an integrated circuit design optimization method according to an embodiment of the present invention; Figure 2 This is an exemplary flowchart of the method for replacing alternative units according to an embodiment of the present invention; Figure 3 This is another exemplary flowchart of the method for replacing alternative units according to an embodiment of the present invention; Figure 4 This is a schematic diagram of an exemplary circuit according to an embodiment of the present invention; Figure 5 This is a schematic diagram of another exemplary circuit according to an embodiment of the present invention; Figure 6 This is a block diagram of an integrated circuit design optimization device according to an embodiment of the present invention; Figure 7 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0021] The present application is described below based on embodiments, but it is not limited to these embodiments. In the detailed description of the present application below, certain specific details are described in detail. Those skilled in the art can fully understand the present application without these details. To avoid obscuring the substance of the present application, well-known methods, processes, flows, elements, and circuits are not described in detail.
[0022] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.
[0023] Unless the context explicitly requires it, words such as "including" or "contains" throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, meaning "including but not limited to".
[0024] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0025] In the physical design of integrated circuits, the leakage power of a standard cell originates from the subthreshold leakage current and gate leakage current of the transistor in the off state. To balance performance and power consumption in different design scenarios, standard cell libraries typically provide multiple threshold voltage versions of standard cells. These different versions of cells have the same function but different threshold voltages, resulting in different leakage power and delays. For example, for standard cells of the same functional type, the SVT (Standard Vt) cell has the lowest leakage power but the highest delay, the LVT (Low Vt) cell has intermediate leakage power and delay, and the ULVT (Ultra-Low Vt) cell has the lowest delay but the highest leakage power. Among standard cells of the same threshold voltage type, leakage power is roughly proportional to area. Therefore, during the design process, the selection of standard cells has a significant impact on the timing performance and leakage power level of the integrated circuit design.
[0026] Existing EDA tools offer leakage power optimization features by searching for standard cells with timing margins within a target design that already meets setup time requirements. These standard cells are then replaced with slower but lower-power cells, thus reducing overall leakage power without introducing new setup time violations. However, the inventors have discovered a structural flaw in this optimization approach: it treats all circuit paths equally, failing to differentiate between critical and non-critical paths. In fact, replacing some standard cells on critical paths with faster types can free up more timing margins, allowing for the replacement of more standard cells on non-critical paths with lower-power types, resulting in a greater overall reduction in leakage power. Because existing optimization algorithms cannot make such path-level differentiated decisions, their leakage power optimization performance has significant room for improvement.
[0027] To address the aforementioned issues, this application proposes an integrated circuit design optimization method. This method first reduces leakage power consumption to a low leakage power state, and then repairs setup time violations with minimal leakage power consumption. In one implementation, all standard cells in the target design are first uniformly replaced with the cell type with the lowest leakage power consumption. At this point, due to the slowdown of many cells, a large number of setup time violations will occur in the design. Then, some standard cells from these violation paths are selectively replaced with faster but also higher leakage types, thus repairing setup time violations while minimizing the increase in leakage power consumption.
[0028] Figure 1 This is a flowchart of an integrated circuit design optimization method according to an embodiment of the present invention. Figure 1 As shown, the method in this embodiment includes the following steps: In step S110, each standard cell in the target design is replaced with a low-leakage-power version of the standard cell to determine a leakage-minimized design.
[0029] Low-leakage-power versions of standard cells, such as the cell type with the highest threshold voltage in the standard cell library (e.g., SVT type), have the lowest leakage power. By replacing all non-special-purpose standard cells in the target design with this type, the overall leakage power of the target design can be minimized. However, because the cells with the highest threshold voltage have the greatest delay, the path originally composed of lower-latency standard cells will exhibit setup time violations after replacement, meaning that the data signal cannot reach the designated register within the specified time.
[0030] In one implementation, during the replacement process, the standard cells on the clock tree and the standard cells of the preset type (such as cells with special requirements for timing or noise) retain their original cell types to avoid introducing additional timing risks due to the replacement of cells on critical timing paths.
[0031] Meanwhile, in one implementation, before step S110 is executed, the hold time repair operation can be omitted during the layout and routing stage to maximize the setup time margin and initially repair setup time violations, so that the setup time of the target design reaches a state with basically no violations, providing more time adjustment space for subsequent leakage current optimization.
[0032] In step S120, the set of setup time violation paths in the leakage current minimization design is obtained.
[0033] After all replacements are completed in step S110, the target design contains a large number of setup time violations introduced by reduced cell speed. Static timing analysis tools (such as PrimeTime) can be used to perform signoff-level timing analysis on these violation paths and generate a setup time violation path report. This report contains detailed information on all circuit paths with setup time violations, including parameters such as the type, delay, and leakage power of each standard cell in the path. In practical applications, a subset of all setup time violation paths can be selected as the current processing target to control the number of paths processed each time. For example, a preset number of violation paths (such as 200,000) can be extracted to form a setup time violation path set.
[0034] In step S130, based on the evaluation value determined by the energy consumption ratio of the alternative versions of the standard unit, alternative units are used to replace each circuit path in the setup time violation path set in order to repair the setup time violation.
[0035] In general, in step S130, for each circuit path in the set of timing violation paths, this embodiment determines an evaluation value based on the energy efficiency ratio of the alternative versions of the standard cell, which serves as a reference for the replacement scheme. The energy efficiency ratio characterizes the delay change resulting from a unit change in leakage power consumption; that is, when replacing the current low leakage power consumption version with a certain alternative version, the delay improvement obtained for each additional unit of leakage power consumption. A higher energy efficiency ratio indicates that the alternative version can achieve greater timing improvement at a lower leakage power cost, thus having a higher priority during replacement.
[0036] Therefore, the solution in this embodiment transforms the leakage current optimization problem into a setup time violation repair problem: the first step minimizes leakage current power consumption, establishing a clear starting point for optimization; subsequently, based on the energy efficiency ratio, standard cells are selectively replaced to repair setup time violations with minimal leakage current power consumption increment. Compared with traditional optimization schemes, the solution in this embodiment can achieve better leakage current power consumption optimization while meeting setup time requirements.
[0037] Figure 2 This is an exemplary flowchart illustrating the method for replacing alternative units according to an embodiment of the present invention. Figure 1 One specific implementation of step S130. For example... Figure 2 As shown, step S130 includes the following sub-steps: In step S210, the target circuit path is determined.
[0038] The target circuit path to be processed is determined from the set of setup time violation paths obtained in step S120. Each circuit path in this set is a path with setup time violations in the leakage current minimization design. The processing order of the paths can be set according to actual needs. For example, they can be processed in order of increasing setup time margin, with priority given to paths with more stringent timing requirements.
[0039] In step S220, for the target circuit path, the evaluation value of the alternative versions of the standard cell for each type of low leakage power consumption version is calculated.
[0040] In this step, for the target circuit path determined in step S210, the evaluation value of the alternative versions of each standard unit in the target circuit path is calculated.
[0041] In this step, we first determine the functional type of each standard unit appearing in the target circuit path. A circuit path is usually composed of standard units of multiple functional types, such as different types of standard units like AND gates, buffers, and flip-flops, and standard units of the same type may also have different threshold voltage versions.
[0042] Next, for each standard cell type, at least one alternative version is determined. An alternative version is a cell type that has lower latency (i.e., faster speed) but higher leakage power consumption compared to the current cell type. For example, in the standard cell library, an alternative version for the SVT (Standard Threshold Voltage) type could be an LVT (Low Threshold Voltage) or an ULVT (Ultra-Low Threshold Voltage).
[0043] Next, the energy efficiency ratio of the alternative version is calculated. The energy efficiency ratio can be expressed as the ratio of the latency improvement of the alternative version relative to the current cell type to the increase in leakage power consumption. The higher the energy efficiency ratio, the greater the latency improvement achieved for each unit increase in leakage power consumption, and the more efficient the alternative version is in timing repair.
[0044] Furthermore, when calculating the evaluation value, the weighting parameters can be determined based on the number or ranking of the number of times the standard cell type appears in all circuit paths with setup time violations.
[0045] The design consideration is as follows: a setup time violation path consists of multiple standard units connected in series, and certain types of standard units may appear simultaneously in multiple violation paths, becoming common components of these paths. If a standard unit type appears repeatedly in multiple violation paths, it means that this type of unit is a common factor affecting the timing of these paths. Replacing and upgrading this type of unit can simultaneously improve the timing of all violation paths containing that unit type, producing a multi-effect optimization. Conversely, if a standard unit type appears only in a very small number of violation paths, the scope of its impact from replacement is relatively limited.
[0046] Based on the above principles, the total number of occurrences of the standard unit type in all establishment-time violation paths (or its ranking based on this number) can be used as a weighting parameter. A higher total number of occurrences indicates a wider impact of this unit type on the violation path, resulting in a greater global benefit from its replacement, and consequently, a larger weighting parameter value. After determining the evaluation value by combining the weighting parameter with the energy efficiency ratio, the candidate version with the higher evaluation value is prioritized for replacement.
[0047] For example, refer to Figure 4 AND gate 41 appears repeatedly as a common unit in multiple violation paths, resulting in a higher frequency of occurrence across all violation paths and a higher evaluation value, thus giving it a higher priority for replacement. Buffer 42, on the other hand, only appears in the current target circuit path, has a lower frequency of occurrence, a lower evaluation value, and a correspondingly lower replacement priority. This differentiated approach ensures that limited leakage power resources are prioritized for replacing units with the widest impact, thereby achieving maximum violation repair with the minimum increase in total leakage power.
[0048] After obtaining the energy efficiency ratios of each alternative version, an evaluation value for each alternative version can be calculated using weighted parameters. In one implementation, the evaluation value is determined by the product of the energy efficiency ratio and the weighted parameters. For example, for a standard cell type in the target circuit path, when it is replaced from the current cell type T to alternative version C, the energy efficiency ratio ER(T to C) can be calculated as follows: ER(T to C)=[Delay(T)-Delay(C)] / [Leakage(C)-Leakage(T)] Where Delay(T) and Delay(C) are the delay parameters of the current and alternative versions of the standard cell, respectively, and Leakage(T) and Leakage(C) are the leakage power parameters of the current and alternative versions, respectively. A positive value for the delay improvement Delay(T) - Delay(C) indicates a reduction in delay after replacement. A positive value for the leakage power increase Leakage(C) - Leakage(T) indicates an increase in leakage power after replacement. The larger the energy efficiency ratio ER(T to C), the greater the delay improvement achieved for each unit increase in leakage power for the standard cell, and the higher the efficiency of the replacement in terms of energy efficiency ratio.
[0049] Furthermore, the number of times this standard unit type appears in all establishment time violation paths (Count(T) or the ranking value Rank(T) based on this number) is used as a weighting parameter. The evaluation value Eval(T to C) can be calculated from the energy efficiency ratio and the weighting parameter as follows: Eval(T to C)=ER(T to C)×Count(T) or, Eval(T to C)=ER(T to C) × Rank(T) Where Count(T) is the total number of times this type of standard cell appears in all establishment time violation paths, and Rank(T) is the ranking value of this number among all standard cell types (for example, the type with the most occurrences is the largest integer value in reverse order). Through this calculation method, the evaluation value comprehensively reflects two factors: the energy efficiency ratio reflects the efficiency of the replacement, how much delay improvement is achieved for each unit increase in leakage power consumption; and the weighting parameter reflects the scope of the replacement's impact, that is, how many violation paths this type of cell simultaneously affects. The higher the evaluation value of the alternative version, the higher its replacement priority.
[0050] In step S230, alternative unit replacement schemes with different priorities are determined based on the evaluation value.
[0051] In one implementation, candidate unit replacement schemes are sorted according to their evaluation values, with higher-valued candidate versions having higher priority during replacement.
[0052] Based on the above sorting, a set of replacement schemes for various types of standard units can be generated. In one implementation, only a replacement scheme for replacing one type of standard unit is generated. Specifically, a first alternative unit replacement scheme is generated, wherein the set of first alternative unit replacement schemes includes multiple first alternative unit replacement schemes sorted by priority, and each first replacement scheme involves replacing only one type of standard unit in the target circuit path with the corresponding alternative unit. For example, for a target circuit path containing three types of standard units, A, B, and C, three first replacement schemes for replacing A, replacing B, and replacing C can be generated respectively, with priorities set according to evaluation values from high to low.
[0053] In one implementation, besides generating replacement schemes that replace only one type of standard cell, it is also possible to combine at least two types of standard cells for replacement. Specifically, a first alternative cell replacement scheme is generated, followed by a second alternative cell replacement scheme. The set of second alternative cell replacement schemes includes multiple second alternative cell replacement schemes ordered by priority. Each second replacement scheme involves replacing multiple types of standard cells in the target circuit path with their respective corresponding alternative cells. For example, replacing A and B simultaneously, or replacing A, B, and C simultaneously, etc. Multiple replacement schemes are typically used when a single replacement scheme cannot completely fix setup time violations, achieving greater timing improvement by combining the replacement of multiple cells. The priority of the second alternative cell replacement scheme can be determined by summing or averaging the evaluation values of the alternative versions of the various types of standard cells being replaced.
[0054] In step S240, attempts are made to replace the target replacement until a suitable replacement is determined.
[0055] The alternative unit replacement schemes are tried in descending order of priority until a target replacement scheme that can fix the setup time violation of the target circuit path is determined.
[0056] In one implementation, the highest priority replacement scheme is first determined as the current replacement scheme. Based on the current replacement scheme, the corresponding standard cells in the target circuit path are replaced with alternative cells. After replacement, the parameters of the target circuit path can be calculated to determine if the path's setup time meets the requirements. Alternatively, timing updates can be performed to determine if the path's setup time meets the requirements.
[0057] If the setup time violation of the target circuit path after replacement is corrected, the current replacement scheme is determined as the target replacement scheme, and the replacement process for that path ends. If the setup time violation of the target circuit path after replacement is not corrected, the process returns, and the next replacement scheme is determined as the new current replacement scheme according to priority, and the above replacement and judgment process is repeated.
[0058] This step-by-step trial mechanism allows for finding a replacement solution that can fix the setup time violation with the smallest increase in leakage power consumption within a limited number of attempts, thus avoiding excessive increases in leakage power consumption.
[0059] To better understand the principles and advantages of the above replacement process, the following will combine... Figure 4 and Figure 5 The examples in the text will be used to illustrate this.
[0060] Figure 4 A schematic diagram of a circuit is shown as an example. This circuit includes multiple circuit paths. The circuit contains an AND gate 41 and multiple buffers 42. In the chip design to which this path belongs, the AND gate 41 is a common cell in multiple setup time violation circuit paths; that is, the AND gate 41 appears simultaneously in multiple setup time violation paths. In this case, replacing the current low-leakage type (e.g., LVT) AND gate 41 with a faster type (e.g., ULVT) can simultaneously improve the timing of multiple violation paths, achieving a higher replacement benefit. Since the AND gate 41 is a highly critical cell (appearing in more violation paths), its corresponding evaluation value is also higher, and therefore it has a higher replacement priority in step S230. Conversely, each buffer appears only in one circuit path, has lower criticality, and a lower evaluation value, so it is ranked later in the replacement order. Through this differentiated processing, the cell with the greatest impact on overall timing can be replaced first, achieving the greatest timing improvement effect with the least increase in leakage power consumption.
[0061] Figure 5 A schematic diagram of another circuit is shown as an example. This circuit includes a circuit path. The circuit path comprises three different types of standard cells connected in series: D8, D4, and D1, with an area ratio of 8:4:1. Under the same threshold voltage conditions, the leakage power consumption of the standard cells is proportional to their area. If all cells are currently of type LVT, some cells need to be replaced with type ULVT to correct setup time violations, while minimizing the increase in leakage power consumption.
[0062] In this scenario, we consider the leakage power consumption and latency of different threshold voltage versions of different standard cells, and calculate the energy efficiency ratio accordingly. Taking the standard cell D8 as an example, replacing it from LVT to ULVT can improve latency, but it will also increase leakage power consumption. The leakage power consumption and latency changes caused by replacing larger cells are larger, and the energy efficiency ratio calculated based on these changes is different from that of smaller cells.
[0063] After obtaining the energy efficiency ratio of each type of unit, a weighting parameter is further determined based on the frequency of occurrence of each type of unit in all establishment time violation paths. For example, assuming that type D8 unit appears not only in the current target circuit path but also multiple times in other violation paths, D8 has a larger weighting parameter; while type D1 unit only appears in the current path, so its weighting parameter is smaller. After calculating the evaluation value by combining the energy efficiency ratio and the weighting parameter, the evaluation value of D8 may be higher than that of D1, thus ranking it higher in replacement priority. This mechanism ensures that the replacement decision considers not only the energy efficiency ratio of the unit type itself (how much delay improvement can be achieved by replacing this unit with an increase of one unit of leakage power consumption) but also the breadth of influence of this unit type in the entire violation path set (how many violation paths' timing can be improved simultaneously by replacing this unit). Both factors jointly determine the replacement priority.
[0064] pass Figure 2 The process shown, combined with a comprehensive evaluation of factors such as energy efficiency ratio and weighted parameters, can gradually approach the optimal replacement solution through step-by-step trials, minimizing the increase in leakage power consumption while fixing setup time violations.
[0065] Figure 3 This is another exemplary flowchart illustrating the method for replacing alternative units according to an embodiment of the present invention. Figure 1 Another implementation of step S130. This implementation utilizes the analytical capabilities provided by a static timing analysis tool to pre-select multiple candidate replacement schemes capable of repairing setup time violations, and then selects the target replacement scheme based on the evaluation value. For example... Figure 3 As shown, the process includes the following steps: In step S310, the target circuit path to be processed is determined from the set of established time violation paths. The processing method is similar to that in step S210, and will not be described again here.
[0066] In step S320, for the target circuit path determined in step S310, a static timing analysis tool is used to perform timing analysis on the path to identify at least one candidate replacement scheme that can improve the timing condition of the path. The candidate replacement scheme is one that can fix the setup time violation of the target circuit path. The static timing analysis tool can evaluate the delay and leakage characteristics of each standard cell in the path and analyze how the setup time margin of the path changes if a cell is replaced with a cell of a different threshold voltage version. Based on this analytical capability, the tool can automatically identify which standard cells in the target circuit path, when replaced with which alternative versions, can restore the setup time of the path to a satisfactory level. In other words, the tool generates one or more timing-verified candidate replacement schemes that can indeed fix the setup time violation of the path. In this implementation, the candidate replacement schemes have already been analyzed and confirmed by the timing tool during generation, so they can directly enter the evaluation value comparison and selection stage without additional verification iterations.
[0067] In step S330, an evaluation value is calculated for each candidate replacement scheme determined in step S320. The evaluation value of each candidate replacement scheme is determined at least based on the energy efficiency ratio of the alternative versions of the standard cell to be replaced. The energy efficiency ratio characterizes the delay change caused by a unit change in leakage power consumption, and can be expressed as the ratio of the delay improvement of the alternative version relative to the current cell type to the increase in leakage power consumption. A higher energy efficiency ratio indicates that the replacement scheme can achieve a greater timing improvement at the cost of less leakage power consumption. In one implementation, the calculation of the evaluation value also considers the number or ranking of the number of occurrences of the standard cell type in all circuit paths with setup time violations. When replacing multiple types of standard cells in the candidate replacement scheme, the evaluation values of the alternative versions of multiple different types of standard cells can be accumulated or averaged to determine the evaluation value of the candidate replacement scheme.
[0068] In step S340, the target replacement scheme is determined based on the evaluation values of each candidate replacement scheme. In one implementation, the candidate versions are sorted from highest to lowest evaluation value, and the replacement scheme corresponding to the candidate version with the highest evaluation value is selected as the target replacement scheme. Then, the candidate units of the target circuit path are replaced according to the target replacement scheme. Since the candidate replacement schemes have already undergone timing verification by a static timing analysis tool in step S320, the scheme with the highest evaluation value will inevitably be able to fix the establishment time violation of the target circuit path after replacement. Therefore, this implementation method has an advantage in processing speed and is suitable for scenarios with a large number of candidate replacement schemes and the need to quickly determine the optimal scheme.
[0069] This embodiment utilizes the time-series analysis capabilities of EDA tools to pre-screen feasible candidate replacement schemes, and then quickly determines the optimal target replacement scheme by ranking the evaluation values. It is suitable for scenarios with many candidate replacement schemes and where reducing the number of iterations is desired. This method has a high dependence on static time-series analysis tools, but it can find the optimal solution faster when there are sufficient candidate schemes. In practical applications, the appropriate tool can be flexibly selected based on the specific circumstances of the target design and the capabilities of the available tools. Figure 2 or Figure 3 The method shown can be used in the following way, or a combination of the two methods can be used.
[0070] This invention transforms the leakage current optimization problem into a setup time violation repair problem by uniformly replacing all standard units in the target design with low leakage current power consumption versions of standard units. Then, for each circuit path in the setup time violation path set, an evaluation value is determined based on the energy consumption ratio of the alternative versions. In the process of repairing setup time violations, the replacement scheme in each circuit path is selectively determined. This solves the problem that existing optimization algorithms cannot make differentiated replacement decisions at the path level, resulting in a large room for improvement in leakage current power consumption optimization results. Under the premise of meeting the setup time requirements, better leakage current power consumption optimization is achieved.
[0071] Furthermore, in this embodiment of the invention, for each circuit path, the replacement priority is set according to the evaluation value as the alternative version or replacement scheme, and the replacement scheme is tried step by step until it is confirmed that the establishment time violation of the circuit path is repaired, or the higher priority replacement scheme is selected from the replacement schemes that meet the establishment time constraint, thereby realizing fine control of the replacement process at the level of a single circuit path.
[0072] Furthermore, when calculating the evaluation value, this embodiment of the invention comprehensively considers the energy efficiency of the alternative versions and the number or ranking of the corresponding standard cell type appearing in all circuit paths with setup time violations. The energy efficiency measures the unit leakage power efficiency of each alternative version during replacement, while the number of times the standard cell type appears in all violation paths reflects the breadth of the impact of this type of cell on the overall chip design timing. The more times a standard cell type appears in setup time violation paths, the more common factors it is influencing the timing of more violation paths. Replacing it can simultaneously improve the timing of multiple paths, producing a broader optimization effect. Combining these two dimensions of information to calculate the evaluation value ensures that the replacement decision considers both the efficiency of the replacement itself and the scope of its impact, thereby more comprehensively controlling the leakage power increment during the repair of setup time violations.
[0073] Figure 6 This is a block diagram of an integrated circuit design optimization device according to an embodiment of the present invention. Figure 6 As shown, the device in this embodiment includes a leakage current minimization unit 61, an acquisition unit 62, and a replacement unit 63.
[0074] The leakage current minimization unit 61 is used to replace each standard cell in the target design with the corresponding low leakage current power consumption version of the standard cell to determine the leakage current minimization design. The leakage current minimization unit 61 receives the initial netlist of the target design as input, replaces each standard cell in the netlist with the cell type with the lowest leakage current power consumption, excludes the standard cells on the clock tree and the standard cells of the preset type, and outputs the leakage current minimization design to the acquisition unit 62.
[0075] The acquisition unit 62 is connected to the leakage current minimization unit 61 and is used to acquire the set of setup time violation paths in the leakage current minimization design. The set of setup time violation paths includes a subset of the set of circuit paths with setup time violations, and each circuit path includes at least one standard cell. The acquisition unit 62 can call a static timing analysis tool to perform timing analysis on the leakage current minimization design, extract a subset of all violation paths as the object to be processed, and output the set of setup time violation paths to the replacement unit 63.
[0076] Replacement unit 63 is connected to acquisition unit 62 and is used to replace each circuit path in the setup time violation path set with alternative units according to the evaluation value determined by the energy consumption ratio of the alternative version of the standard unit, so as to repair the setup time violation. The alternative version is a threshold voltage version of the standard unit used to replace the low leakage power version. The alternative unit is the standard unit of the alternative version. The alternative unit has higher leakage power and lower latency than the standard unit of the corresponding low leakage power version.
[0077] The three units above work together in sequence to form a complete optimization pipeline: the leakage current minimization unit 61 completes the initial leakage current minimization, the acquisition unit 62 extracts the set of violation paths to be repaired, the replacement unit 63 performs differentiated replacement decisions for each path based on the energy consumption ratio evaluation value, and finally outputs the optimized design data.
[0078] Figure 7 This is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device is used as a host to implement the above-described method of the present invention. Figure 7 As shown, the electronic device 7 includes at least one processor 71; a memory 72 communicatively connected to at least one processor 71; and a communication component 73 that receives and transmits data under the control of the processor 71; wherein the memory 72 stores instructions that can be executed by at least one processor 71 to implement the above-described method.
[0079] Specifically, the electronic device includes: one or more processors 71 and a memory 72. Figure 7 Taking a processor 71 as an example, the processor 71 and the memory 72 can be connected via a bus or other means. Figure 7 Taking a bus connection as an example, memory 72, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Processor 71 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions, and modules stored in memory 72, thus implementing the above method.
[0080] The memory 72 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store an option list, etc. Furthermore, the memory 72 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 72 may optionally include memory remotely located relative to the processor 71, and these remote memories can be connected to external devices via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0081] One or more modules are stored in memory 72 and, when executed by one or more processors 71, perform the methods in any of the above method embodiments.
[0082] The above-mentioned products can perform the methods provided in the embodiments of this application, and have the corresponding functional modules and beneficial effects of performing the methods. For technical details not described in detail in this embodiment, please refer to the methods provided in the embodiments of this application.
[0083] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program that, when executed by a processor, implements some or all of the method embodiments described above.
[0084] Another embodiment of the present invention relates to a computer program product, including a computer program / instructions that, when executed by a processor, implement some or all of the above-described method embodiments.
[0085] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. An integrated circuit design optimization method, characterized in that, The method includes: Replace each standard cell in the target design with the corresponding low-leakage-power version of the standard cell to determine the leakage-minimized design. Obtain the set of setup time violation paths in the leakage current minimization design, wherein the set of setup time violation paths includes a subset of the set of circuit paths with setup time violations, and each circuit path includes at least one standard cell. Based on the evaluation value determined by the energy efficiency ratio of the alternative versions of the standard unit, alternative units are used to replace each circuit path in the set of setup time violation paths to repair setup time violations. The alternative version is a threshold voltage version of the standard unit used to replace the low leakage power version. The alternative unit is the standard unit of the alternative version. The alternative unit has higher leakage power and lower latency than the standard unit of the corresponding low leakage power version.
2. The method according to claim 1, characterized in that, Replace each target circuit path in the setup time violation path set with alternative units to repair setup time violations, including: The target circuit path is determined from the set of established time violation paths; For the target circuit path, the evaluation value of the alternative versions of each standard unit is calculated, wherein the evaluation value is determined at least based on the energy consumption ratio of the alternative version, and the energy consumption ratio is used to characterize the delay change caused by the unit leakage power consumption change. Based on the evaluation values, alternative unit replacement schemes with different priorities are determined; Based on the priority of the alternative unit replacement schemes, attempt to replace the alternative units in the target circuit path until a target replacement scheme that fixes the establishment time violation of the target circuit path is determined.
3. The method according to claim 2, characterized in that, Based on the priority of alternative replacement schemes, attempt to replace the alternative units in the target circuit path until a target replacement scheme that corrects the setup time violation of the target circuit path is determined, including: The current replacement scheme is determined according to the priority order from high to low; The alternative unit is replaced in the target circuit path according to the current replacement scheme; In response to the correction of the establishment time violation of the target circuit path after replacement, the current replacement scheme is determined as the target replacement scheme, and the replacement ends; In response to the failure to fix the establishment time violation of the target circuit path after replacement, return to determine a new current replacement scheme.
4. The method according to claim 2, characterized in that, Calculate the evaluation value of each standard unit's alternative version, including: Determine at least one standard cell type that appears in the target circuit path; For each standard unit, at least one alternative version shall be determined; The energy efficiency ratio is calculated based on the delay and leakage power of the alternative versions and the delay and leakage power of the standard unit. The weighting parameters are determined based on the number or sorting of the occurrences of the standard unit in all circuit paths of setup time violations. The evaluation value is calculated based on the weighting parameters and the energy consumption ratio.
5. The method according to claim 1, characterized in that, Based on the evaluation values, alternative unit replacement schemes with different priorities are determined, including: The candidate versions are sorted according to their evaluation scores; A first set of alternative unit replacement schemes is determined, wherein the first set of alternative unit replacement schemes includes multiple first alternative unit replacement schemes with priority set according to the sorting, wherein a type of standard unit is replaced with the corresponding alternative unit in the first alternative unit replacement scheme.
6. The method according to claim 5, characterized in that, Determining alternative unit replacement schemes with different priorities based on the evaluation values also includes: A second set of alternative unit replacement schemes is determined, wherein the second set of alternative unit replacement schemes includes multiple alternative unit replacement schemes with priority set according to the sorting, and in the second alternative unit replacement schemes, multiple types of standard units are replaced with corresponding alternative units.
7. The method according to claim 1, characterized in that, Replace each standard cell in the target design with the corresponding low-leakage-power version of the standard cell to determine the leakage-minimized design, including: Keep the threshold voltage versions of the standard cells and preset type standard cells on the clock tree unchanged, and replace other standard cells with the standard cells with the lowest leakage power version.
8. The method according to claim 1, characterized in that, Before replacing each standard cell in the target design with a corresponding low-leakage-power version of the standard cell, the method further includes: No hold-up time recovery is performed during the placement and routing phase to maximize the time margin for setup; and Preliminary fixes were made to establish time violations in order to minimize the establishment time violations in the target design.
9. The method according to claim 1, characterized in that, Replace each target circuit path in the setup time violation path set with alternative units to repair setup time violations, including: The target circuit path is determined from the set of established time violation paths; For the target circuit path, at least one candidate replacement scheme is determined for each standard unit, wherein the candidate replacement scheme is a replacement scheme that can fix the establishment time violation of the target circuit path; Calculate the evaluation value of each candidate replacement scheme, wherein the evaluation value is determined at least based on the energy consumption ratio of the alternative versions of the candidate replacement scheme, and the energy consumption ratio is used to characterize the amount of delay change caused by the unit leakage power consumption change; The target replacement scheme is determined based on the evaluation value of each candidate replacement scheme, and the target circuit path is replaced with alternative units.
10. An integrated circuit design optimization device, characterized in that, The device includes: The leakage current minimization unit is used to replace each standard unit in the target design with the corresponding low leakage current power consumption version of the standard unit to determine the leakage current minimization design. The acquisition unit is used to acquire the set of setup time violation paths in the leakage current minimization design. The set of setup time violation paths includes a subset of the set of circuit paths with setup time violations, and each circuit path includes at least one standard unit. A replacement unit is used to replace each circuit path in the setup time violation path set with a replacement unit based on the evaluation value determined by the energy efficiency ratio of the alternative versions of the standard unit, so as to repair the setup time violation. The alternative version is a threshold voltage version of the standard unit used to replace the low leakage power version. The alternative unit is a standard unit of the alternative version. The alternative unit has higher leakage power and lower latency than the standard unit of the corresponding low leakage power version.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1-9.
12. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the method as described in any one of claims 1-9.
