Integrated circuit timing violation correction method, device, electronic device and storage medium
By exchanging logic cells in high-density integrated circuits to correct timing violations, the problem of low timing violation repair efficiency in high-density designs is solved, and efficient timing violation correction and signal path optimization are achieved.
Patent Information
- Application Number
- CN202311157444.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-07
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-09-07
AI Technical Summary
In the design of high-density integrated circuits, timing violation repair efficiency is low. Existing tools have difficulty finding enough space when repairing setup or hold violations, causing the chip to fail to work properly.
By determining the target violation path and the coordinate position and search radius of the target violation unit, the logic unit is exchanged to correct the timing violation, the signal flow direction is redesigned, the signal path is optimized, and the timing violation correction is realized.
Without changing the location of the logical unit and without adding or deleting units, the efficiency and practicality of timing violation correction are improved, the correction process is simplified, and the accuracy of the correction results is improved.
Smart Images

Figure CN117150997B
Abstract
Description
Technical Field
[0001] The present application relates to electronic design technology, and in particular to an integrated circuit timing violation correction method, device, electronic device and storage medium. Background Art
[0002] In the field of integrated circuits, the location and signal path of each logic unit should meet the preset timing rules, but timing violations often occur in the process of designing circuits. Timing violations refer to the failure to meet the timing requirements when a signal reaches a register or trigger. For example, it arrives before or after the correct sampling rising edge of the clock, resulting in the sampling clock not accurately sampling the signal. Typical timing violations are usually divided into two situations: setup violations and hold violations. A setup violation refers to the fact that the data signal has changed before the rising edge of the sampling clock arrives, resulting in incorrect sampled data. A hold violation refers to the fact that the data signal is still changing after the rising edge of the clock arrives, resulting in unstable sampled data, which may lead to data corruption.
[0003] As the scale of chip integration increases, the density of cells in the chip backend design will naturally be very high, especially when the local area is full of cells and there is almost no free space. If there is a timing violation, it is particularly difficult to repair the timing. This is because the current timing repair tool usually inserts a buffer cell on the data path or changes the cell size to increase or reduce the cell delay when repairing setup or hold, thereby repairing the setup violation or hold violation. However, as the integration of chips becomes higher and higher, sometimes in high-density designs, if engineers insert a buffer cell on a certain path or change the cell size to change the cell, the tool cannot find enough space within a certain search range, which will cause the tool to be unable to repair the timing on this path, thereby making the chip unable to work properly. In summary, the current integrated circuit timing violation correction method requires replacement, deletion or addition of components, so that in the application scenario of high-density integrated chips, the feasibility of physical implementation is not high, and the efficiency of timing violation correction is not good. Therefore, a timing violation correction method for integrated circuits is needed to improve the efficiency and practicality of timing violation correction. Summary of the invention
[0004] The present application provides an integrated circuit timing violation correction method, device, electronic device and storage medium, which are used to solve the problem of low efficiency and poor practicality of integrated circuit timing violation correction.
[0005] In a first aspect, the present application provides a method for correcting timing violations of an integrated circuit, the method comprising:
[0006] Determine the target violation path;
[0007] Determine at least one target violation unit according to the target violation path, and determine the coordinate position and search radius of each target violation unit;
[0008] Determine the target exchange unit according to the coordinate position and search radius of each target violation unit;
[0009] The target switching unit is used to indicate the logic unit that meets the preset timing condition after exchanging the path with the target violation unit;
[0010] According to the coordinate positions corresponding to each target violation unit and the corresponding target exchange unit, a target correction path is determined, and metal routing is performed according to the target correction path to execute a timing violation correction operation.
[0011] As an optional implementation manner, determining at least one target violation unit according to the target violation path includes:
[0012] Determine a first endpoint and a second endpoint according to the target violation path, and determine a search path according to the first endpoint and the second endpoint;
[0013] The first endpoint is used to indicate the starting point of the search path for traversing the search target violation unit, and the second endpoint is used to indicate the end point of the search path for traversing the search target violation unit;
[0014] According to the search path, each target violation unit is determined in turn.
[0015] As an optional implementation manner, the target violation path includes at least a first violation path and a second violation path, and the first violation path and the second violation path have at least one intersection;
[0016] Determining a first endpoint and a second endpoint according to the target violation path, and determining a search path according to the first endpoint and the second endpoint, including:
[0017] Determining timing violation parameters of the first violation path and the second violation path, and determining a search order and / or a search speed according to the timing violation parameters;
[0018] Wherein, the timing violation parameter is used to indicate the timing violation degree of the corresponding target violation path;
[0019] Determine the endpoints of the first violation path and the second violation path close to the integrated circuit signal endpoint as corresponding first endpoints;
[0020] Pre-searching the first violation path and the second violation path according to the first endpoint, the search order and / or the search speed, determining the second endpoints of the first violation path and the second violation path, and determining the search path;
[0021] And, after determining each target violation unit in sequence according to the search path, the method further includes:
[0022] If there is at least one target violation unit that belongs to both the first violation path and the second violation path, the violation path to which the target violation unit actually belongs is determined according to the timing violation parameter.
[0023] As an optional implementation, determining the target exchange unit according to the coordinate position and search radius of each target violation unit includes:
[0024] According to the coordinate position and search radius of each target violation unit, all pre-processing exchange units whose distance from each target violation unit is not greater than the search radius are determined;
[0025] Wherein, the pre-processing exchange unit and the corresponding target violation unit have the same functional logic, but different threshold voltages or driving conditions;
[0026] Calculating the timing violation parameters of each pre-processing switching unit corresponding to each target violation unit, and removing each pre-processing switching unit that does not meet the preset timing condition according to the timing violation parameters;
[0027] The remaining pre-processing exchange units are determined as target exchange units.
[0028] As an optional implementation, the timing violation parameter includes a first violation parameter and a second violation parameter, and the preset timing condition includes: the first violation parameter and the second violation parameter are both greater than a first value;
[0029] The first violation parameter and the second violation parameter are used to indicate the timing violation values of the two paths after each target violation unit is exchanged with each corresponding pre-processing exchange unit;
[0030] And, determining the remaining pre-processing switching units as target switching units, including:
[0031] Determine the weight values of the remaining preprocessing exchange units according to the timing violation values and coordinate positions corresponding to the remaining preprocessing exchange units;
[0032] According to the weight values corresponding to the remaining pre-processing exchange units, the remaining pre-processing exchange units with weight values higher than a preset weight threshold are determined as target exchange units, and the exchange order is determined according to the weight values.
[0033] In a second aspect, the present application provides an integrated circuit timing violation correction device, the device comprising:
[0034] An acquisition module, used to determine a target violation path;
[0035] A processing module, used to determine at least one target violation unit according to the target violation path, and determine the coordinate position and search radius of each target violation unit;
[0036] The processing module is further used to determine the target exchange unit according to the coordinate position and search radius of each target violation unit;
[0037] The target switching unit is used to indicate the logic unit that meets the preset timing condition after exchanging the path with the target violation unit;
[0038] The processing module is also used to determine the target correction path according to the coordinate positions of each target violation unit and the corresponding target exchange unit, and perform metal winding according to the target correction path to execute the timing violation correction operation.
[0039] As an optional implementation manner, the processing module determines a specific manner of at least one target violation unit according to the target violation path, including:
[0040] Determine a first endpoint and a second endpoint according to the target violation path, and determine a search path according to the first endpoint and the second endpoint;
[0041] The first endpoint is used to indicate the starting point of the search path for traversing the search target violation unit, and the second endpoint is used to indicate the end point of the search path for traversing the search target violation unit;
[0042] According to the search path, each target violation unit is determined in turn.
[0043] As an optional implementation manner, the target violation path includes at least a first violation path and a second violation path, and the first violation path and the second violation path have at least one intersection;
[0044] The processing module determines the first endpoint and the second endpoint according to the target violation path, and determines a specific method of searching the path according to the first endpoint and the second endpoint, including:
[0045] Determining timing violation parameters of the first violation path and the second violation path, and determining a search order and / or a search speed according to the timing violation parameters;
[0046] Wherein, the timing violation parameter is used to indicate the timing violation degree of the corresponding target violation path;
[0047] Determine the endpoints of the first violation path and the second violation path close to the integrated circuit signal endpoint as corresponding first endpoints;
[0048] Pre-searching the first violation path and the second violation path according to the first endpoint, the search order and / or the search speed, determining the second endpoints of the first violation path and the second violation path, and determining the search path;
[0049] And, the processing module is further used for, after determining each target violation unit in sequence according to the search path,
[0050] If there is at least one target violation unit that belongs to both the first violation path and the second violation path, the violation path to which the target violation unit actually belongs is determined according to the timing violation parameter.
[0051] As an optional implementation, the processing module determines the specific method of the target exchange unit according to the coordinate position and search radius of each target violation unit, including:
[0052] According to the coordinate position and search radius of each target violation unit, all pre-processing exchange units whose distance from each target violation unit is not greater than the search radius are determined;
[0053] Wherein, the pre-processing exchange unit and the corresponding target violation unit have the same functional logic, but different threshold voltages or driving conditions;
[0054] Calculating the timing violation parameters of each pre-processing switching unit corresponding to each target violation unit, and removing each pre-processing switching unit that does not meet the preset timing condition according to the timing violation parameters;
[0055] The remaining pre-processing exchange units are determined as target exchange units.
[0056] As an optional implementation, the timing violation parameter includes a first violation parameter and a second violation parameter, and the preset timing condition includes: the first violation parameter and the second violation parameter are both greater than a first value;
[0057] The first violation parameter and the second violation parameter are used to indicate the timing violation values of the two paths after each target violation unit is exchanged with each corresponding pre-processing exchange unit;
[0058] And, the specific manner in which the processing module determines the remaining pre-processing switching units as target switching units includes:
[0059] Determine the weight values of the remaining preprocessing exchange units according to the timing violation values and coordinate positions corresponding to the remaining preprocessing exchange units;
[0060] According to the weight values corresponding to the remaining pre-processing exchange units, the remaining pre-processing exchange units with weight values higher than a preset weight threshold are determined as target exchange units, and the exchange order is determined according to the weight values.
[0061] In a third aspect, the present application provides an electronic device, including:
[0062] at least one processor; and
[0063] a memory communicatively connected to at least one processor; wherein,
[0064] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to the first aspect.
[0065] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method of the first aspect.
[0066] The integrated circuit timing violation correction method, device, electronic device and storage medium provided by the present application can determine at least one target violation unit on the target violation path by determining the target violation path, thereby determining the logic unit that meets the preset timing conditions after exchange as one or more target exchange units according to the coordinate position and search radius of the target violation unit, and further exchange and rewind the path of the target violation unit according to the determined target exchange unit, without changing the coordinate position of each existing logic unit on the integrated circuit and without adding or deleting logic units, the timing violation correction operation is realized, the signal path is optimized, and the efficiency and practicality of the integrated circuit timing violation correction are improved. The method simplifies the correction process in the timing violation correction process of high-density integrated circuits and improves the accuracy of the correction results. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0068] Figure 1 It is a schematic diagram of an application scenario of an integrated circuit timing violation correction method disclosed in an embodiment of the present invention;
[0069] Figure 2 It is a flow chart of a method for correcting timing violation of an integrated circuit disclosed in an embodiment of the present invention;
[0070] Figure 3 It is a flow chart of another integrated circuit timing violation correction method disclosed in an embodiment of the present invention;
[0071] Figure 4 It is a structural schematic diagram of an integrated circuit timing violation correction device disclosed in an embodiment of the present invention;
[0072] Figure 5 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present invention.
[0073] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0074] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0075] In digital integrated circuits, in order for the chip to work properly and reach the expected working frequency, the timing requirements must be met. Timing violation means that the timing requirements when the signal arrives at the register or trigger are not met. For example, it arrives before or after the correct sampling rising edge of the clock, resulting in the sampling clock not accurately sampling the signal. Typical timing violations are usually divided into two cases: setup violation and hold violation. Setup violation means that the data signal has changed before the rising edge of the sampling clock arrives, resulting in incorrect sampled data. Hold violation means that the data signal is still changing after the rising edge of the clock arrives, resulting in unstable sampled data, which may lead to data corruption. In recent years, with the continuous and rapid development of large-scale integrated circuits, the integration density has become higher and higher, and the process size has become smaller and smaller. In the future, it will continue to develop towards smaller size and higher integration density processes.
[0076] However, as the scale of chip integration increases, the density of cells in the chip backend design will naturally be very high, especially when local areas are already full of cells and there is almost no free space. At this time, if there is a timing violation, it will be particularly difficult to repair the timing. This is because the current timing repair tools usually repair setup or hold by inserting buffer cells on the data path or changing the cell size to increase or decrease the cell delay to repair the setup violation or hold violation. However, as the integration of chips becomes higher and higher, sometimes in high-density designs, if engineers insert buffer cells or change the cell size to change a certain path, the tool cannot find enough space within a certain search range, which will cause the tool to be unable to repair the timing on that path, and the chip will not work properly.
[0077] In high-density physical implementation design, when the tool cannot find enough space to insert buffer units or change the unit size in the local area of high density, the problem of being unable to repair the timing violation is caused. The technical concept of this application is to propose a method that can not change the position information of the timing path unit in the high-density area, only change the path of the metal winding, and achieve the purpose of repairing the timing by exchanging the units of the two timing paths.
[0078] See also Figure 1 , Figure 1 It is a schematic diagram of an application scenario of an integrated circuit timing violation correction method disclosed in an embodiment of the present invention, which is used to illustrate the technical concept of the present application.
[0079] Among them, the path where the logic unit B is located meets the preset timing conditions, but the paths where the logic units A1 and A2 are located have timing violations, which should be corrected. Without changing the physical position of the logic unit, the signal flow direction is redesigned to achieve timing violation correction. The logic unit A1 and the logic unit B in the figure have the same functional logic, but different threshold voltages or driving conditions. No new timing violations are generated after the paths are exchanged. Therefore, the logic unit A1 and the logic unit B can be exchanged on the path to achieve the purpose of repairing the timing violation.
[0080] The present application can determine at least one target violation unit on the target violation path by determining the target violation path, thereby determining the logic unit that meets the preset timing conditions after exchange as one or more target exchange units according to the coordinate position of the target violation unit and the search radius, and further exchange and rewind the path of the target violation unit according to the determined target exchange unit, without changing the coordinate position of each existing logic unit on the integrated circuit and without adding or deleting logic units, the timing violation correction operation is realized, the signal path is optimized, and the efficiency and practicality of the timing violation correction of the integrated circuit are improved. The method simplifies the correction process in the timing violation correction process of high-density integrated circuits and improves the accuracy of the correction results.
[0081] Embodiment 1
[0082] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of a method for correcting timing violations of an integrated circuit disclosed in an embodiment of the present invention. Figure 2 As shown, the method includes:
[0083] S101, determining a target violation path;
[0084] There can be one or more target violation paths, and when there are multiple target violation paths, these violation paths may intersect, or some logic units may belong to different target violation paths. At this time, if correction is made by adding correction units, removing logic units, or exchanging physical positions, the amount of data that needs to be calculated will be greatly increased, and other violation problems or digital logic problems may occur after correction. The compatibility of each logic unit should also be taken into consideration, which will seriously complicate the process of timing violation correction. By redesigning the path through unit exchange, the amount of calculation can be significantly reduced, the efficiency of timing violation correction can be improved, and the effectiveness of the integrated circuit function after correction can be ensured.
[0085] S102, determining at least one target violation unit according to the target violation path, and determining the coordinate position and search radius of each target violation unit;
[0086] The target violation unit may belong to multiple target violation paths, and the affiliation relationship of each target violation unit can be determined by referring to the solutions provided in other embodiments. The coordinate position and search radius of each target violation unit on the integrated circuit can be used to determine the target exchange unit. The search radius can be the radius of a circle, or a distance threshold corresponding to the radius of a circle in other distance calculation methods. Those skilled in the art will easily think of this.
[0087] S103, determining a target exchange unit according to the coordinate position and search radius of each target violation unit;
[0088] The target switching unit is used to indicate the logic unit that meets the preset timing condition after exchanging the path with the target violation unit;
[0089] S104, determining a target correction path according to the coordinate positions of each target violation unit and the corresponding target exchange unit, and performing metal routing according to the target correction path to execute a timing violation correction operation.
[0090] After the target switching unit is determined, there may be multiple signal flow modes. In this case, during the timing violation correction process, it is also necessary to determine the target correction path in which the performance indicated by one parameter indicator exceeds that of other paths. For example, two logic units with the same functional logic but different threshold voltages or driving conditions may have different numbers of interfaces and different internal structural compositions, which will result in multiple routing modes after correction. In actual applications, a solution with the lowest violation value or the lowest delay can be selected. For multiple target violation paths and multiple target violation units, the correction results of the entire integrated circuit should be comprehensively considered, and a solution with comprehensive performance that meets the preset conditions can be selected.
[0091] As an optional implementation manner, determining at least one target violation unit according to the target violation path includes:
[0092] Determine a first endpoint and a second endpoint according to the target violation path, and determine a search path according to the first endpoint and the second endpoint;
[0093] The first endpoint is used to indicate the starting point of the search path for traversing the search target violation unit, and the second endpoint is used to indicate the end point of the search path for traversing the search target violation unit;
[0094] According to the search path, each target violation unit is determined in turn.
[0095] Generally, in order to reduce the impact of the swapped logic unit on the timing of other paths passing through the unit, the starting point of the search path can be selected as an endpoint close to the output end of the integrated circuit, and the search is performed from back to front.
[0096] By determining the starting point and the end point of the search path for searching the target violation unit on the target violation path, an effective search direction can be determined. The search process of the target violation unit is then performed according to the search direction, which can reduce the impact of the interchanged logic unit on the timing of other paths passing through the unit, thereby improving the efficiency and practicality of integrated circuit timing violation correction. This method simplifies the correction process in the timing violation correction process of high-density integrated circuits and improves the accuracy of the correction results.
[0097] As an optional implementation manner, the target violation path includes at least a first violation path and a second violation path, and the first violation path and the second violation path have at least one intersection;
[0098] Determining a first endpoint and a second endpoint according to the target violation path, and determining a search path according to the first endpoint and the second endpoint, including:
[0099] Determining timing violation parameters of the first violation path and the second violation path, and determining a search order and / or a search speed according to the timing violation parameters;
[0100] Wherein, the timing violation parameter is used to indicate the timing violation degree of the corresponding target violation path;
[0101] Determine the endpoints of the first violation path and the second violation path close to the integrated circuit signal endpoint as corresponding first endpoints;
[0102] Pre-searching the first violation path and the second violation path according to the first endpoint, the search order and / or the search speed, determining the second endpoints of the first violation path and the second violation path, and determining the search path;
[0103] And, after determining each target violation unit in sequence according to the search path, the method further includes:
[0104] If there is at least one target violation unit that belongs to both the first violation path and the second violation path, the violation path to which the target violation unit actually belongs is determined according to the timing violation parameter.
[0105] This embodiment provides a processing method for the intersection of multiple violation paths. According to the severity of the timing violations of the multiple paths, the search priority can be determined. The priority is reflected by the search order and / or the search speed, and the severity of the timing violation can be measured by the timing violation value, or directly analyzed according to the data reported by the timing analysis tool. According to the search order and / or the search speed, it can be used to determine the actual ownership of the target violation unit located on different violation paths at the same time. For example, according to the search order and / or the search speed, the target violation unit traversed first directly belongs to the corresponding path, and the impact of the target violation unit on different violation paths can also be determined according to the timing violation parameters, and the path ownership relationship of the target violation unit is determined. It should be noted that the target violation unit can still be determined to belong to multiple violation paths at the same time according to the actual timing violation situation. Exchanging the target violation unit will affect multiple target violation paths at the same time, thereby ensuring the accuracy of timing violation correction.
[0106] In addition, this embodiment is only an exemplary description, and does not mean that the target violation path only includes the first violation path and the second violation path. It can be extended to other application scenarios where three or even more paths intersect and the path ownership of the target violation unit needs to be determined.
[0107] By determining the search priority of multiple intersecting violation paths, the search order and / or search speed are determined, and each violation path is pre-searched to determine the target violation unit belonging to each violation path, and the actual belonging of the target violation unit belonging to multiple violation paths at the same time is determined, thereby further reducing the impact of the exchanged logic unit on the timing of each path, and improving the overall timing performance of each path after the exchange, thereby improving the efficiency and practicality of integrated circuit timing violation correction. This method simplifies the correction process in the timing violation correction process of high-density integrated circuits and improves the accuracy of the correction results.
[0108] This embodiment can determine at least one target violation unit on the target violation path by determining the target violation path, thereby determining the logic unit that meets the preset timing conditions after exchange as one or more target exchange units according to the coordinate position of the target violation unit and the search radius, and further exchange and rewind the path of the target violation unit according to the determined target exchange unit, without changing the coordinate position of each existing logic unit on the integrated circuit and without adding or deleting logic units, the timing violation correction operation is realized, the signal path is optimized, and the efficiency and practicality of the timing violation correction of the integrated circuit are improved. This method simplifies the correction process in the timing violation correction process of high-density integrated circuits and improves the accuracy of the correction results.
[0109] Embodiment 2
[0110] See also Figure 3 , Figure 3 FIG. 1 is a flow chart of another integrated circuit timing violation correction method disclosed in an embodiment of the present invention. Figure 3 As shown, the method includes:
[0111] S201, determining a target violation path;
[0112] S202, determining at least one target violation unit according to the target violation path, and determining the coordinate position and search radius of each target violation unit;
[0113] S203, determining all pre-processing exchange units whose distances from each target violation unit are not greater than the search radius according to the coordinate position and search radius of each target violation unit;
[0114] Wherein, the pre-processing exchange unit and the corresponding target violation unit have the same functional logic, but different threshold voltages or driving conditions;
[0115] As before, the search radius may include equivalent distance thresholds of other distance measurement forms. For example, the distance measurement forms may include Manhattan distance, Euclidean distance, Chebyshev distance, etc., so the expression of the distance threshold will be different. Here, the search radius is used as a comprehensive expression, and it should be generalized and understood according to actual conditions in specific application scenarios.
[0116] S204, calculating the timing violation parameters of each pre-processing switching unit corresponding to each target violation unit, and removing each pre-processing switching unit that does not meet the preset timing condition according to the timing violation parameters;
[0117] The timing violation parameters may generally include timing violation values reported by a timing analysis tool, which are used as a benchmark to determine whether each pre-processing switching unit meets the preset timing conditions.
[0118] S205, determining the remaining pre-processing switching units as target switching units;
[0119] S206 , determining a target correction path according to the coordinate positions of each target violation unit and the corresponding target exchange unit, and performing metal routing according to the target correction path to execute a timing violation correction operation.
[0120] Among them, for the relevant descriptions of S201, S202, and S206, please refer to the relevant descriptions in Example 1, which will not be repeated here.
[0121] As an optional implementation, the timing violation parameter includes a first violation parameter and a second violation parameter, and the preset timing condition includes: the first violation parameter and the second violation parameter are both greater than a first value;
[0122] The first value may be 0.
[0123] The first violation parameter and the second violation parameter are used to indicate the timing violation values of the two paths after each target violation unit is exchanged with each corresponding pre-processing exchange unit;
[0124] And, determining the remaining pre-processing switching units as target switching units, including:
[0125] Determine the weight values of the remaining preprocessing exchange units according to the timing violation values and coordinate positions corresponding to the remaining preprocessing exchange units;
[0126] According to the weight values corresponding to the remaining pre-processing exchange units, the remaining pre-processing exchange units with weight values higher than a preset weight threshold are determined as target exchange units, and the exchange order is determined according to the weight values.
[0127] In addition, the total weight value of each timing violation unit can be comprehensively considered to select an exchange scheme with the smallest total weight value and no conflict in the logic units used for exchange, or the degree of timing violation generated by each timing violation unit can be examined, and a unit parameter can be assigned to each timing violation unit to increase the processing priority of the timing violation unit with more serious timing violations, and then the exchange scheme at the global level of the integrated circuit can be determined based on the unit parameters and the aforementioned weight values.
[0128] In addition, in some application scenarios, it may not be possible to select the aforementioned global-level exchange scheme. No matter how the exchange is performed, it is impossible to achieve the condition that no timing violation occurs on each exchanged path. At this time, the weight value should be further weighted according to the aforementioned total weight value, or the weight value and the unit parameter, and the overall timing violation degree of each target violation unit and the exchange should be comprehensively considered. A scheme with the smallest overall timing violation degree should be selected for the first step of exchange, and the design should be redesigned on this basis to ensure the accuracy and effectiveness of the correction results through multiple rounds of logic unit exchanges.
[0129] The timing violation values of the two paths after being exchanged by the target violation unit and the preprocessing exchange unit can be used to screen the preprocessing exchange unit. The preprocessing exchange unit with the timing violation values of both paths greater than 0 is determined as the remaining preprocessing exchange unit that meets the conditions. Further, the weight value is determined according to the timing violation value and the coordinate position, and the exchange order is determined according to the weight value. Thus, the efficiency and practicality of correcting the timing violation of the integrated circuit can be improved. This method simplifies the correction process in the process of correcting the timing violation of the high-density integrated circuit and improves the accuracy of the correction result.
[0130] An example, in an application scenario of an electronic design, the method provided by the present application can be implemented according to the following steps:
[0131] First, use the timing analysis tool to report all the target violation paths that generate timing violations in the design.
[0132] After that, use the tool to extract all the combinational logic units except the timing units on the data path of all the target violation paths, and arrange them in the order of the logical relationship on the path and set them into a list.
[0133] Secondly, start from the combinational logic unit close to the endpoint in this list and search sequentially to determine the target violation unit. This is because starting from the endpoint is the most effective way to reduce the impact of the swapped unit on the timing of other paths passing through this unit. As mentioned before, the endpoint is the end point close to the signal end of the integrated circuit.
[0134] Thirdly, taking each target violation unit as the center in turn, the position information of unit A1 on the chip layout can be expressed as (Xa, Ya). The search radius R can be customarily set, and the swappable unit B is searched within this search radius area. The search area can be expressed as {|(x - Xa)| < R, |(y - Ya)| < R}. The position information of the searched unit B on the chip layout is (Xb, Yb). Further, unit A1 and unit B are swapped. Here, the swappable unit B is a unit with the same functional logic as unit A1 on the violation path but different threshold voltage or driving ability, which can ensure that the path after swapping has no change in functional logic and only changes the unit delay on the violation path. It should be noted that after swapping the units, no new path timing violation should be caused. Then, it is necessary to consider the timing values of all the paths passing through the swapped units A1 and B, including two types: setup and hold. Use the tool to report the worst setup and hold timing values of all the paths passing through the swapped unit. If at least one of them is less than 0, the swapped unit B does not meet the timing condition, and other swappable units will continue to be searched.
[0135] Furthermore, the tool is used to report the timing violation values of the two new paths after the interchange, which are expressed as SlackA and SlackB respectively. If the violation value of any of the two new paths after the interchange is less than 0, that is, SlackA*SlackB<0, the timing requirement is not met. If the violation values of the two new paths after the interchange are both greater than 0, that is, SlackA>0, and SlackB>0, the timing requirement is met, and the interchangeable unit B can be temporarily included in the interchangeable set as an alternative unit to calculate its weight value. After the search for the violating unit is completed, the next combination unit is determined in the list starting from the endpoint end, which can be set to A1, A2, A3... in sequence, and the search continues. The operation is the same as the previous round. Finally, the search result weight values W1, W2, W3... of all interchangeable units are included in the set for comparison.
[0136] The calculation of the weight value is affected by the violation value of the two new paths after the interchange and the distance between the two interchanged units. This is because the interchanged units must consider not only the timing value but also the distance between the interchanged units, which is related to the change in metal winding after the interchange. It can be specifically expressed as W=K1*(SlackA+SlackB)+K2(|Xa-Xb|+|Ya-Yb|), where K1 and K2 are constant coefficients.
[0137] Finally, the interchangeable unit B with the largest weight value is selected from the set for interchange, and the tool is reused for metal winding to repair the timing violation. As before, the total weight value of each timing violation unit can be comprehensively considered, and the exchange scheme with the smallest total weight value and no conflict in the logic unit used for exchange can be selected, or the degree of timing violation generated by each timing violation unit can be examined, and a unit parameter can be assigned to each timing violation unit to improve the processing priority of the timing violation unit with more serious timing violation, and then the exchange scheme at the global level of the integrated circuit can be determined according to the unit parameter and the aforementioned weight value.
[0138] This embodiment determines all qualified pre-processing exchange units through the coordinate position and search radius of each target violation unit, and calculates the timing violation parameters that will be generated after the exchange of each pre-processing exchange unit, thereby screening and selecting the logic unit that meets the preset timing conditions in the pre-processing exchange unit as the target exchange unit, thereby improving the efficiency and accuracy of determining the target exchange unit, and further improving the efficiency and practicality of integrated circuit timing violation correction. This method simplifies the correction process in the timing violation correction process of high-density integrated circuits and improves the accuracy of the correction result.
[0139] Embodiment 3
[0140] The embodiment of the present invention also provides an integrated circuit timing violation correction device to implement the above method, please refer to Figure 4 , Figure 4 Schematic diagram of the structure of an integrated circuit timing violation correction device disclosed in an embodiment of the present invention. Figure 4 As shown, based on any other embodiment, the device includes:
[0141] An acquisition module 31 is used to determine a target violation path;
[0142] A processing module 32, for determining at least one target violation unit according to the target violation path, and determining the coordinate position and search radius of each target violation unit;
[0143] The processing module 32 is further used to determine the target exchange unit according to the coordinate position and search radius of each target violation unit;
[0144] The target switching unit is used to indicate the logic unit that meets the preset timing condition after exchanging the path with the target violation unit;
[0145] The processing module 32 is further used to determine a target correction path according to the coordinate positions of each target violation unit and the corresponding target exchange unit, and perform metal routing according to the target correction path to execute a timing violation correction operation.
[0146] By determining the target violation path, at least one target violation unit on the target violation path can be determined, thereby determining the logic unit that meets the preset timing conditions after exchange as one or more target exchange units according to the coordinate position of the target violation unit and the search radius, and further according to the determined target exchange unit, the path of the target violation unit is exchanged and rewound, and the timing violation correction operation is realized without changing the coordinate position of each existing logic unit on the integrated circuit and without adding or deleting logic units, and the signal path is optimized, thereby improving the efficiency and practicality of the timing violation correction of the integrated circuit. This method simplifies the correction process in the timing violation correction process of high-density integrated circuits and improves the accuracy of the correction results.
[0147] As an optional implementation, the processing module 32 determines the specific manner of at least one target violation unit according to the target violation path, including:
[0148] Determine a first endpoint and a second endpoint according to the target violation path, and determine a search path according to the first endpoint and the second endpoint;
[0149] The first endpoint is used to indicate the starting point of the search path for traversing the search target violation unit, and the second endpoint is used to indicate the end point of the search path for traversing the search target violation unit;
[0150] According to the search path, each target violation unit is determined in turn.
[0151] By determining the starting point and the end point of the search path for searching the target violation unit on the target violation path, an effective search direction can be determined. The search process of the target violation unit is then performed according to the search direction, which can reduce the impact of the interchanged logic unit on the timing of other paths passing through the unit, thereby improving the efficiency and practicality of integrated circuit timing violation correction. This method simplifies the correction process in the timing violation correction process of high-density integrated circuits and improves the accuracy of the correction results.
[0152] As an optional implementation manner, the target violation path includes at least a first violation path and a second violation path, and the first violation path and the second violation path have at least one intersection;
[0153] The processing module 32 determines the first endpoint and the second endpoint according to the target violation path, and determines a specific way of searching the path according to the first endpoint and the second endpoint, including:
[0154] Determining timing violation parameters of the first violation path and the second violation path, and determining a search order and / or a search speed according to the timing violation parameters;
[0155] Wherein, the timing violation parameter is used to indicate the timing violation degree of the corresponding target violation path;
[0156] Determine the endpoints of the first violation path and the second violation path close to the integrated circuit signal endpoint as corresponding first endpoints;
[0157] Pre-searching the first violation path and the second violation path according to the first endpoint, the search order and / or the search speed, determining the second endpoints of the first violation path and the second violation path, and determining the search path;
[0158] Furthermore, the processing module 32 is further configured to, after sequentially determining each target violation unit according to the search path,
[0159] If there is at least one target violation unit that belongs to both the first violation path and the second violation path, the violation path to which the target violation unit actually belongs is determined according to the timing violation parameter.
[0160] By determining the search priority of multiple intersecting violation paths, the search order and / or search speed are determined, and each violation path is pre-searched to determine the target violation unit belonging to each violation path, and the actual belonging of the target violation unit belonging to multiple violation paths at the same time is determined, thereby further reducing the impact of the exchanged logic unit on the timing of each path, and improving the overall timing performance of each path after the exchange, thereby improving the efficiency and practicality of integrated circuit timing violation correction. This method simplifies the correction process in the timing violation correction process of high-density integrated circuits and improves the accuracy of the correction results.
[0161] As an optional implementation, the processing module 32 determines the specific method of the target exchange unit according to the coordinate position and search radius of each target violation unit, including:
[0162] According to the coordinate position and search radius of each target violation unit, all pre-processing exchange units whose distance from each target violation unit is not greater than the search radius are determined;
[0163] Wherein, the pre-processing exchange unit and the corresponding target violation unit have the same functional logic, but different threshold voltages or driving conditions;
[0164] Calculating the timing violation parameters of each pre-processing switching unit corresponding to each target violation unit, and removing each pre-processing switching unit that does not meet the preset timing condition according to the timing violation parameters;
[0165] The remaining pre-processing exchange units are determined as target exchange units.
[0166] Through the coordinate position and search radius of each target violation unit, all qualified pre-processing exchange units are determined, and the timing violation parameters that will be generated after the exchange of each pre-processing exchange unit are calculated, and screening is performed to select the logic unit that meets the preset timing conditions in the pre-processing exchange unit as the target exchange unit, thereby improving the efficiency and accuracy of determining the target exchange unit, and further improving the efficiency and practicality of integrated circuit timing violation correction. This method simplifies the correction process in the timing violation correction process of high-density integrated circuits and improves the accuracy of the correction results.
[0167] As an optional implementation, the timing violation parameter includes a first violation parameter and a second violation parameter, and the preset timing condition includes: the first violation parameter and the second violation parameter are both greater than a first value;
[0168] The first violation parameter and the second violation parameter are used to indicate the timing violation values of the two paths after each target violation unit is exchanged with each corresponding pre-processing exchange unit;
[0169] And, the specific manner in which the processing module 32 determines the remaining pre-processing switching units as target switching units includes:
[0170] Determine the weight values of the remaining preprocessing exchange units according to the timing violation values and coordinate positions corresponding to the remaining preprocessing exchange units;
[0171] According to the weight values corresponding to the remaining pre-processing exchange units, the remaining pre-processing exchange units with weight values higher than a preset weight threshold are determined as target exchange units, and the exchange order is determined according to the weight values.
[0172] The preprocessing exchange units can be screened by the timing violation values of the two paths after the target violation unit and the preprocessing exchange unit are exchanged, and the preprocessing exchange units whose timing violation values of the two paths are both greater than 0 are determined as the remaining preprocessing exchange units that meet the conditions. The weight values are further determined according to the timing violation values and the coordinate positions, and the exchange order is determined according to the weight values, thereby improving the efficiency and practicality of integrated circuit timing violation correction. This method simplifies the correction process in the timing violation correction process of high-density integrated circuits and improves the accuracy of the correction results.
[0173] Embodiment 4
[0174] The present application provides an electronic device, including:
[0175] at least one processor; and
[0176] a memory communicatively connected to at least one processor; wherein,
[0177] The memory stores instructions that can be executed by at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of the embodiments.
[0178] The present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement a method as in any embodiment.
[0179] For details, please refer to Figure 5 , Figure 5 Schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. Figure 5 As shown, the electronic device may include:
[0180] The device also includes a processor (Processor) 291, and a memory (Memory) 292 storing executable program code; it can also include a communication interface (Communication Interface) 293 and a bus 294. Among them, the processor 291, the memory 292, and the communication interface 293 can communicate with each other through the bus 294. The communication interface 293 can be used for information transmission. The processor 291 is coupled to the memory 292, and the processor 291 can call the logic instructions (executable program code) in the memory 292 to execute the text processing model training method of any of the above embodiments.
[0181] In addition, the logic instructions in the above-mentioned memory 292 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0182] The memory 292 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present application. The processor 291 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 292, that is, implementing the methods in the above method embodiments.
[0183] The memory 292 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 292 may include a high-speed random access memory and may also include a non-volatile memory.
[0184] An embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are called, they are used to implement the method in any embodiment.
[0185] An embodiment of the present invention also discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in the text processing model training method described in any embodiment.
[0186] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0187] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0188] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0189] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for correcting timing violations of an integrated circuit, It is characterized in that The method comprises: Determine the target violation path; Determine at least one target violation unit according to the target violation path, and determine the coordinate position and search radius of each target violation unit; Determine the target exchange unit according to the coordinate position and search radius of each target violation unit; The target switching unit is used to indicate the logic unit that meets the preset timing condition after exchanging the path with the target violation unit; Determine a target correction path according to the coordinate positions of each target violation unit and the corresponding target exchange unit, perform metal routing according to the target correction path, and execute a timing violation correction operation; The step of determining at least one target violation unit according to the target violation path comprises: Determine a first endpoint and a second endpoint according to the target violation path, and determine a search path according to the first endpoint and the second endpoint; The first endpoint is used to indicate the starting point of the search path for traversing the search target violation unit, and the second endpoint is used to indicate the end point of the search path for traversing the search target violation unit; According to the search path, determining each of the target violation units in sequence from back to front; The target violation path includes at least a first violation path and a second violation path, and the first violation path and the second violation path have at least one intersection point; The step of determining a first endpoint and a second endpoint according to the target violation path, and determining a search path according to the first endpoint and the second endpoint, comprises: Determining timing violation parameters of the first violation path and the second violation path, and determining a search order and / or a search speed according to the timing violation parameters; Wherein, the timing violation parameter is used to indicate the timing violation degree of the corresponding target violation path; Determine the endpoints of the first violation path and the second violation path close to the integrated circuit signal endpoint as corresponding first endpoints; Pre-searching the first violation path and the second violation path according to the first endpoint, the search order and / or the search speed, determining the second endpoints of the first violation path and the second violation path, and determining a search path; And, after determining each of the target violation units in sequence according to the search path, the method further includes: If there is at least one target violation unit that belongs to both the first violation path and the second violation path, the violation path to which the target violation unit actually belongs is determined according to the timing violation parameter.
2. The method according to claim 1, It is characterized in that The step of determining the target exchange unit according to the coordinate position and search radius of each target violation unit comprises: According to the coordinate position and search radius of each target violation unit, determine all pre-processing exchange units whose distance from each target violation unit is not greater than the search radius; Wherein, the pre-processing exchange unit and the corresponding target violation unit have the same functional logic, but different threshold voltages or driving conditions; Calculating the timing violation parameters of each of the pre-processing switching units corresponding to each of the target violation units, and removing each of the pre-processing switching units that do not meet the preset timing conditions according to the timing violation parameters; The remaining pre-processing exchange units are determined as target exchange units.
3. The method according to claim 2, It is characterized in that The timing violation parameter includes a first violation parameter and a second violation parameter, and the preset timing condition includes: the first violation parameter and the second violation parameter are both greater than a first value; The first violation parameter and the second violation parameter are used to indicate the timing violation values of the two paths after each of the target violation units is exchanged with the corresponding pre-processing exchange units; And, determining the remaining pre-processing switching units as target switching units includes: Determine the weight values of the remaining pre-processing exchange units according to the timing violation values and coordinate positions corresponding to the remaining pre-processing exchange units; According to the weight values corresponding to the remaining pre-processing exchange units, the remaining pre-processing exchange units whose weight values are higher than a preset weight threshold are determined as target exchange units, and the exchange order is determined according to the weight values.
4. An integrated circuit timing violation correction device, It is characterized in that The device comprises: An acquisition module, used to determine a target violation path; A processing module, used to determine at least one target violation unit according to the target violation path, and determine the coordinate position and search radius of each target violation unit; The processing module is further used to determine the target exchange unit according to the coordinate position and search radius of each target violation unit; The target switching unit is used to indicate the logic unit that meets the preset timing condition after exchanging the path with the target violation unit; The processing module is further used to determine a target correction path according to the coordinate positions of each target violation unit and the corresponding target exchange unit, and perform metal winding according to the target correction path to execute a timing violation correction operation; The processing module determines a specific method of at least one target violation unit according to the target violation path, including: Determine a first endpoint and a second endpoint according to the target violation path, and determine a search path according to the first endpoint and the second endpoint; The first endpoint is used to indicate the starting point of the search path for traversing the search target violation unit, and the second endpoint is used to indicate the end point of the search path for traversing the search target violation unit; According to the search path, determining each of the target violation units in sequence from back to front; The target violation path includes at least a first violation path and a second violation path, and the first violation path and the second violation path have at least one intersection point; The processing module determines a first endpoint and a second endpoint according to the target violation path, and determines a specific method of searching the path according to the first endpoint and the second endpoint, including: Determining timing violation parameters of the first violation path and the second violation path, and determining a search order and / or a search speed according to the timing violation parameters; Wherein, the timing violation parameter is used to indicate the timing violation degree of the corresponding target violation path; Determine the endpoints of the first violation path and the second violation path close to the integrated circuit signal endpoint as corresponding first endpoints; Pre-searching the first violation path and the second violation path according to the first endpoint, the search order and / or the search speed, determining the second endpoints of the first violation path and the second violation path, and determining a search path; Furthermore, the processing module is further configured to, after sequentially determining each of the target violation units according to the search path, If there is at least one target violation unit that belongs to both the first violation path and the second violation path, the violation path to which the target violation unit actually belongs is determined according to the timing violation parameter.
5. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 3.
6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 3 when executed by a processor.
