A method, device, electronic device and storage medium for solving unit delay
By determining whether the target operating voltage has the corresponding preset operating voltage in the IC design, and solving it based on the cell timing library or preset relation function of the preset operating voltage, the problem of increasing analysis time caused by the lack of the cell timing library is solved, and the analysis time is achieved. More efficient timing analysis coverage.
Patent Information
- Application Number
- CN202411446833.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-10-16
AI Technical Summary
In IC design, when performing timing analysis for different voltage conditions, the lack of corresponding cell timing library will lead to the need to re-characterize the library, increase the analysis time, and be detrimental to time analysis covering more voltage conditions.
Provide a method to solve the delay of the unit, by obtaining the target working voltage and determining whether there is a corresponding preset working voltage. If not, the solution is based on the preset working voltage cell timing library or preset relationship function to avoid re-progression. Library feature.
It significantly shortens the analysis time, improves the time series analysis coverage capability of multiple voltage conditions, and reduces the complexity of the library feature process and computing resource occupancy.
Smart Images

Figure CN118966109B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of integrated circuit technology, and in particular to a method, device, electronic device and storage medium for solving unit delay. Background Art
[0002] Timing analysis is a very important part of IC design. In actual analysis, the chip needs to meet the timing requirements under multiple working conditions (corners). That is, static timing analysis of multiple corners is crucial for the timing signoff analysis of the chip.
[0003] Among them, when performing timing analysis for different voltage conditions (voltage corner), the unit delay under different working voltages is usually calculated based on the unit timing library of different voltages. The unit timing library is a series of data tables established by the library characterization software (k library software) based on the unit netlist, simulation settings, and environment settings, calling the dynamic simulator. It can usually include the working environment and conditions of the unit, such as process, working voltage, and working temperature, as well as unit delay information, unit signal conversion time information, power consumption information, etc. Library characterization (also known as "k library") requires complete transistor information, and the library characterization process is usually a dynamic simulation of the transistor level implemented based on the process library. The process is long and occupies more computing resources. It can be seen that when the working voltage of the unit delay to be solved does not correspond to the unit timing library, the library needs to be characterized again, which increases the analysis time and is not conducive to timing analysis covering more voltage conditions. Summary of the invention
[0004] In response to the above technical problems, the present application provides a method, device, electronic device and storage medium for solving unit delay, which can reduce the library characterization process, significantly shorten the analysis time, and facilitate timing analysis covering more voltage conditions.
[0005] In order to solve the above technical problems, the present application provides a method for solving unit delay, which comprises the following steps:
[0006] Get the target operating voltage;
[0007] Determining whether the target operating voltage has a corresponding preset operating voltage;
[0008] If the target operating voltage does not have a corresponding preset operating voltage, the cell delay corresponding to the target operating voltage is solved based on the cell delay corresponding to the cell timing library of the preset operating voltage or based on a preset relationship function between the operating voltage and the cell delay.
[0009] In some embodiments, solving the cell delay corresponding to the target operating voltage based on the cell delay corresponding to the cell timing library of the preset operating voltage includes at least one of the following:
[0010] Perform interpolation calculation based on the cell delay corresponding to the cell timing library of the preset working voltage to solve the cell delay corresponding to the target working voltage;
[0011] The cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the adjustment coefficient to solve the cell delay corresponding to the target working voltage.
[0012] In some embodiments, the interpolation calculation of the cell delay corresponding to the cell timing library based on the preset working voltage to solve the cell delay corresponding to the target working voltage includes:
[0013] Determine at least two preset operating voltages matching the target operating voltage according to the interpolation model;
[0014] Obtaining the cell delays corresponding to the cell timing libraries of the at least two preset working voltages respectively as the target cell delay;
[0015] An interpolation calculation is performed according to the target unit delay to solve the unit delay corresponding to the target operating voltage.
[0016] In some embodiments, determining at least two preset operating voltages matching the target operating voltage according to the interpolation model includes:
[0017] When the interpolation model is a linear interpolation model, the at least two preset operating voltages include a first preset operating voltage and a second preset operating voltage that are closest to the target operating voltage, and the target operating voltage is greater than the first preset operating voltage and less than the second preset operating voltage;
[0018] When the interpolation model is a nonlinear interpolation model, the at least two preset operating voltages include a third preset operating voltage, a fourth preset operating voltage and a fifth preset operating voltage that are closest to the target operating voltage, the target operating voltage and the fourth preset operating voltage are both greater than the third preset operating voltage and less than the fifth preset operating voltage, and the target operating voltage is not equal to the fourth preset operating voltage.
[0019] In some embodiments, adjusting the cell delay corresponding to the cell timing library of the preset working voltage based on the adjustment coefficient to solve the cell delay corresponding to the target working voltage includes at least one of the following:
[0020] Adjusting the cell delay corresponding to the cell timing library of the preset working voltage based on the first adjustment coefficient corresponding to the cell timing library of the preset working voltage, and solving the cell delay corresponding to the target working voltage;
[0021] The cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the second adjustment coefficient determined according to the target working voltage, and the cell delay corresponding to the target working voltage is solved.
[0022] In some embodiments, adjusting the cell delay corresponding to the cell timing library of the preset working voltage based on the first adjustment coefficient to solve the cell delay corresponding to the target working voltage includes:
[0023] Determining a preset operating voltage that matches the target operating voltage;
[0024] Acquire a first adjustment coefficient corresponding to the unit timing library of the preset working voltage, and acquire a unit delay corresponding to the unit timing library of the preset working voltage as a target unit delay;
[0025] The target unit delay is adjusted according to the first adjustment coefficient to solve the unit delay corresponding to the target operating voltage.
[0026] In some embodiments, determining a preset operating voltage that matches the target operating voltage includes:
[0027] Determining a preset operating voltage closest to the target operating voltage as a matching preset operating voltage;
[0028] The obtaining of the first adjustment coefficient corresponding to the unit timing library of the preset working voltage includes:
[0029] Among the first adjustment coefficients corresponding to the unit timing library of the preset working voltage, a first adjustment coefficient matching the characteristics of the output signal is selected.
[0030] In some embodiments, adjusting the cell delay corresponding to the cell timing library of the preset operating voltage based on the second adjustment coefficient determined according to the target operating voltage to solve the cell delay corresponding to the target operating voltage includes:
[0031] Determining a target voltage interval that matches the target operating voltage;
[0032] Determine the second adjustment coefficient according to the adjustment coefficient corresponding to the target voltage interval, and obtain the cell delay corresponding to the cell timing library of the preset working voltage closest to the target working voltage as the target cell delay;
[0033] The target unit delay is adjusted according to the second adjustment coefficient to solve the unit delay corresponding to the target operating voltage.
[0034] In some embodiments, determining a target voltage interval matching the target operating voltage includes:
[0035] Determining whether the target operating voltage is within a preset voltage range;
[0036] If yes, taking the preset voltage interval as the target voltage interval;
[0037] If not, two voltage interval boundary values matching the target operating voltage are determined from the existing voltage interval boundary values, and target preset voltage intervals corresponding to the two voltage interval boundary values are obtained as the target voltage interval.
[0038] In some embodiments, determining the second adjustment coefficient according to the adjustment coefficient corresponding to the target voltage range includes:
[0039] If the target operating voltage is within the preset voltage range, obtaining an adjustment coefficient corresponding to the preset voltage range as the second adjustment coefficient;
[0040] If the target operating voltage is not within the preset voltage range, an interpolation calculation is performed according to the adjustment coefficient corresponding to the target preset voltage range to determine the second adjustment coefficient.
[0041] In some embodiments, the method further comprises:
[0042] Based on the dynamic simulation, a plurality of data points are obtained, wherein the data points represent the relationship between the operating voltage and the unit delay;
[0043] Divide the voltage interval according to the multiple data points to determine a plurality of preset voltage intervals;
[0044] The unit delay change rate corresponding to each of the preset voltage intervals is calculated as the adjustment coefficient corresponding to each of the preset voltage intervals.
[0045] In some embodiments, the method further comprises:
[0046] Based on the dynamic simulation, a plurality of data points are obtained, wherein the data points represent the relationship between the operating voltage and the unit delay;
[0047] Divide the voltage interval according to the multiple data points to determine multiple voltage intervals;
[0048] Calculating the unit delay change rate corresponding to each of the voltage intervals;
[0049] Merging the voltage intervals according to the unit delay change rate corresponding to each of the voltage intervals;
[0050] The combined voltage interval is determined to be the preset voltage interval, and an adjustment coefficient corresponding to the preset voltage interval is determined according to a unit delay change rate corresponding to the combined voltage interval.
[0051] In some embodiments, the method further comprises:
[0052] Based on the dynamic simulation, a plurality of data points are obtained, wherein the data points represent the relationship between the operating voltage and the unit delay;
[0053] Numerical fitting is performed on the multiple data points to solve and obtain the preset relationship function.
[0054] In some embodiments, after determining whether the target operating voltage has a corresponding preset operating voltage, the method further includes:
[0055] If the target operating voltage has a corresponding preset operating voltage, a static timing analysis is performed based on a cell timing library of the corresponding preset operating voltage to determine a cell delay corresponding to the target operating voltage.
[0056] The present application also provides a device for solving unit delay, comprising:
[0057] A target operating voltage acquisition module is used to obtain the target operating voltage of the delay of the unit to be solved;
[0058] A judging module, used for judging whether the target operating voltage has a corresponding unit timing library;
[0059] The first unit delay solving module is used to solve the unit delay corresponding to the target operating voltage based on the unit delay corresponding to the unit timing library of the preset operating voltage or based on the preset relationship function between the operating voltage and the unit delay if the target operating voltage does not have a corresponding unit timing library.
[0060] The present application also provides an electronic device, including a storage medium and a controller, characterized in that a computer program is stored on the storage medium, and when the computer program is executed by the controller, the steps of the method for solving unit delay as described above are implemented.
[0061] The present application also provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for solving the unit delay as described above are implemented.
[0062] The method, electronic device and storage medium for solving unit delay of the present application include the following steps: obtaining a target operating voltage; determining whether the target operating voltage has a corresponding unit timing library; if the target operating voltage does not have a corresponding unit timing library, solving the unit delay corresponding to the target operating voltage based on the unit delay corresponding to the unit timing library of the preset operating voltage or based on a preset relationship function between the operating voltage and the unit delay. The technical solution of the present application can solve the unit delay corresponding to other operating voltages based on the established unit timing library of the preset operating voltage, or solve the unit delay corresponding to different operating voltages based on a preset established relationship function, without the need to characterize the library for the target operating voltage, significantly shortening the analysis time, and facilitating timing analysis covering more voltage conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 The figure is a flow chart of a method for solving unit delay according to an embodiment.
[0064] Figure 2 The invention is a circuit processing diagram of static timing analysis according to an embodiment.
[0065] Figure 3 is a schematic diagram of data points obtained by dynamic simulation according to an embodiment.
[0066] Figure 4 It is a schematic diagram showing the corresponding relationship between voltage interval division and adjustment coefficient according to an embodiment.
[0067] Figure 5 It is a schematic diagram of a curve corresponding to a preset relationship function according to an embodiment.
[0068] Figure 6 It is a schematic diagram of the structure of a device for solving unit delay according to an embodiment. DETAILED DESCRIPTION
[0069] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thoroughly understood.
[0070] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items. In the present invention, "each" includes one and more than two quantities.
[0071] Figure 1 FIG. 1 is a flow chart showing a method for solving unit delay according to an embodiment. Figure 1 As shown, the method for solving the unit delay of the present application includes the following steps:
[0072] S1, obtain the target operating voltage;
[0073] S2, determining whether the target operating voltage has a corresponding preset operating voltage;
[0074] S3, if the target operating voltage does not have a corresponding preset operating voltage, then solving the cell delay corresponding to the target operating voltage based on the cell delay corresponding to the cell timing library of the preset operating voltage or based on a preset relationship function between the operating voltage and the cell delay.
[0075] The circuit unit for solving the unit delay can be a standard circuit unit or other circuit unit. The target operating voltage is the operating voltage for solving the unit delay, that is, a voltage condition that needs to be analyzed at present. The preset operating voltage refers to the operating voltage for which the unit timing library has been established.
[0076] The cell delay corresponding to the cell timing library of the preset working voltage can be solved and stored before step S3, that is, static timing analysis is performed in advance on the cell timing library corresponding to each preset working voltage to determine the cell delay corresponding to each preset working voltage. The cell delay corresponding to the cell timing library of the preset working voltage can also be solved in a targeted manner in step S3, that is, static timing analysis is performed on the cell timing library of the preset working voltage to be used as needed to determine the cell delay corresponding to the preset working voltage. The above two methods can be selected according to the number of voltage conditions that need to be analyzed to shorten the analysis time.
[0077] By solving the cell delay corresponding to the target operating voltage based on the cell delay corresponding to the cell timing library of the preset operating voltage, it is possible to solve the cell delay corresponding to other operating voltages based on the established cell timing library of the preset operating voltage, without the need to characterize the library for the target operating voltage, which significantly shortens the analysis time and is conducive to quickly obtaining the cell delay under multiple voltage conditions and covering timing analysis of more voltage conditions.
[0078] In IC design, cell delay is affected by three factors, namely process, voltage, and temperature, collectively known as PVT parameters. Therefore, the cell timing library with different preset working voltages (voltage corner) used keeps the process conditions (process corner) and temperature conditions (temperature corner) the same.
[0079] The preset relationship function between the operating voltage and the unit delay is solved and stored in advance. The unit delay corresponding to the target operating voltage is solved based on the preset relationship function between the operating voltage and the unit delay, without using the unit timing library for solving, which can further reduce the analysis time.
[0080] In some embodiments, after step S2, determining whether the target operating voltage has a corresponding preset operating voltage, the method further includes:
[0081] If the target operating voltage has a corresponding preset operating voltage, a static timing analysis is performed based on a unit timing library corresponding to the preset operating voltage to determine a unit delay corresponding to the target operating voltage.
[0082] Among them, for a target operating voltage with a corresponding preset operating voltage (i.e., a corresponding unit timing library), a static timing analysis can be directly performed based on the unit timing library corresponding to the corresponding preset operating voltage to obtain the unit delay corresponding to the target operating voltage. For a target operating voltage that does not have a corresponding preset operating voltage (i.e., does not correspond to a unit timing library), the unit delay corresponding to the target operating voltage is solved through step S3.
[0083] In some embodiments, static timing analysis is performed based on a unit timing library corresponding to a preset operating voltage, including:
[0084] Simplify the circuit unit into a preset circuit model;
[0085] Solve the effective capacitance corresponding to the preset circuit model;
[0086] According to the input conversion time and the effective capacitance, a table is looked up in the unit timing library of the preset working voltage and an interpolation calculation is performed to obtain the unit delay corresponding to the preset working voltage.
[0087] The example circuit includes circuit cells and interconnects, please refer to Figure 2 A in the figure, the preset circuit model is, for example, a pi-model circuit, and the corresponding effective capacitor circuit is as follows Figure 2 As shown in B. Next, an equation is established based on the equal amount of charged charge, and the effective capacitance value Ceff can be solved.
[0088] Among them, the position of the circuit unit in the design is obtained. If the signal at the input end of the circuit unit comes directly from the port, the input conversion time of the circuit unit is determined according to the port input conversion time set in the design constraint file; if the input end of the circuit unit is connected to a section of interconnection line (net), the input conversion time of the circuit unit is determined according to the output conversion time of the interconnection line solved at the previous level.
[0089] The above-mentioned static timing analysis process can be used to solve the cell delay corresponding to the cell timing library of each preset working voltage, and can also be used to solve the cell delay corresponding to the target working voltage of the cell timing library.
[0090] In some embodiments, in step S3, solving the cell delay corresponding to the target operating voltage based on the cell delay corresponding to the cell timing library of the preset operating voltage includes at least one of the following:
[0091] Perform interpolation calculation based on the cell delay corresponding to the cell timing library of the preset working voltage to solve the cell delay corresponding to the target working voltage;
[0092] The cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the adjustment coefficient to solve the cell delay corresponding to the target working voltage.
[0093] The adjustment coefficient is a coefficient used to adjust the unit delay corresponding to the unit timing library of the preset working voltage within a specific voltage range. Depending on whether the corresponding relationship between the working voltage and the unit delay is linear or nonlinear, interpolation calculation and / or adjustment coefficient calculation can be selectively used to ensure better accuracy.
[0094] In some embodiments, adjusting the cell delay corresponding to the cell timing library of the preset working voltage based on the adjustment coefficient to solve the cell delay corresponding to the target working voltage includes at least one of the following:
[0095] Adjusting the cell delay corresponding to the cell timing library of the preset working voltage based on the first adjustment coefficient corresponding to the cell timing library of the preset working voltage, and solving the cell delay corresponding to the target working voltage;
[0096] The cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the second adjustment coefficient determined according to the target working voltage, and the cell delay corresponding to the target working voltage is solved.
[0097] Among them, the first adjustment coefficient corresponds to the unit timing library of the preset working voltage. The first adjustment coefficient can speed up the analysis. At the same time, for the situation where the relationship between the working voltage and the unit delay is relatively linear, the solution accuracy can be improved. When the second adjustment coefficient is used, the second adjustment coefficient is adjusted according to the different intervals where the target working voltage is located, and the solution result is more accurate; in addition, for the interval where the working voltage and the delay present a nonlinear relationship, the solution accuracy can be improved.
[0098] The solution method used in step S3 is described below through different embodiments.
[0099] Embodiment 1
[0100] In this embodiment, interpolation calculation is performed based on the cell delay corresponding to the cell timing library of the preset working voltage to determine the cell delay corresponding to the target working voltage, including:
[0101] Determining at least two preset operating voltages matching the target operating voltage according to the interpolation model;
[0102] Obtaining cell delays corresponding to at least two cell timing libraries of preset working voltages as target cell delays;
[0103] An interpolation calculation is performed based on the target unit delay to determine the unit delay corresponding to the target operating voltage.
[0104] The interpolation model can be a linear interpolation model or a nonlinear interpolation model, such as a one-dimensional linear interpolation model, a quadratic interpolation model, a cubic spline interpolation model, etc. When a linear interpolation model is used, two or more unit timing libraries need to be configured. These unit timing libraries need to be based on different working voltages (v1, v2, ... v n ), and keep the process conditions and temperature conditions the same. When a nonlinear interpolation model is used, taking quadratic interpolation as an example, three or more unit timing libraries need to be configured. These unit timing libraries need to be based on different working voltages (v1, v2,…v n ), and keep the process conditions and temperature conditions the same.
[0105] In some embodiments, determining at least two preset operating voltages matching the target operating voltage according to the interpolation model includes:
[0106] When the interpolation model is a linear interpolation model, the at least two preset operating voltages include a first preset operating voltage and a second preset operating voltage that are closest to the target operating voltage, and the target operating voltage is greater than the first preset operating voltage and less than the second preset operating voltage;
[0107] When the interpolation model is a non-linear interpolation model, at least two preset operating voltages include a third preset operating voltage, a fourth preset operating voltage, and a fifth preset operating voltage that are closest to the target operating voltage. The target operating voltage and the fourth preset operating voltage are both greater than the third preset operating voltage and less than the fifth preset operating voltage, and the target operating voltage and the fourth preset operating voltage are not equal.
[0108] In some embodiments, when the interpolation model is a linear interpolation model, interpolation calculation is performed according to the target cell delay to determine the cell delay corresponding to the target operating voltage, including:
[0109] Interpolation calculation is performed based on the target cell delay and at least two preset operating voltages to determine the cell delay corresponding to the target operating voltage.
[0110] When the interpolation model is a linear interpolation model, at least two preset operating voltages are required. The first preset operating voltage and the second preset operating voltage are selected according to the target operating voltage v0. For example, v1 and v2 are selected. Generally, v1, v2 satisfy v1 < v0 < v2, and v1, v2 are the values closest to the target operating voltage among the existing preset operating voltages to approximate v0 as much as possible. When the number of cell timing libraries is limited, the above rule may not be followed, and only v2 > v1 is required during selection. After v1 and v2 are selected, the cell delays d1 and d2 corresponding to the cell timing libraries of v1 and v2 are obtained respectively.
[0111] Interpolation is performed to calculate the cell delay d0 at the target operating voltage v0. The formula is as follows:
[0112]
[0113] Among them, k is a correction parameter that can adjust the result. The preferred parameter range is (0.9, 1.1). For example, k = 1 can be taken. After the calculation of v0 is completed, the cell delays under other target operating voltages can also be completed according to the above process, thus realizing the calculation of cell delays under multiple voltage conditions.
[0114] The value of the correction parameter k is selected according to experience. For example, it can be selected with reference to the non-linear characteristics of the device relative to the voltage conditions, or it can be considered according to the pessimistic degree requirement of calculating the delay. Taking k = 1 is equivalent to not adjusting. By using the correction parameter, the linear interpolation can be adjusted towards the non-linear direction to improve the accuracy of the linear interpolation, and the calculation complexity is also lower than that of the non-linear interpolation. When k = 1, v1 in can be directly replaced with v2, and the k·d1 term is modified to k·d2; when k ≠ 1, different values of the correction parameter are selected after replacing with v2 and d2.
[0115] When using a non-linear interpolation model, at least three preset operating voltages are required. Select the third preset operating voltage, the fourth preset operating voltage, and the fifth preset operating voltage according to the target operating voltage v0. For example, select v1, v2, v3. Generally, v1, v2, v3 satisfy v3>v2>v1, v1<v<v3, and v2≠v0. v1, v2, v3 are selected as the values in the existing preset operating voltages that are closest to the target operating voltage to approximate v0 as much as possible. When the number of libraries is limited, the above rules may not be followed, and only v3>v2>v1 is required during selection. After v1, v2, v3 are selected, obtain the unit delays d1, d2, d3 corresponding to the unit timing libraries of v1, v2, v3. When using quadratic interpolation, the initial formula is:
[0116]
[0117] In the above formula, a, b, c are parameters to be solved, and d represents the unit delay when working at voltage v. Substitute v1, v2, v3 and d1, d2, d3 into the solution to obtain the following formula:
[0118]
[0119] Solving for the unit delay d0 under the condition of v0 is:
[0120]
[0121] Through the above method, for the set operating voltage, the unit delay of the target operating voltage can be obtained through one calculation, without introducing the unit timing library of the target operating voltage, and without calculating data such as the effective capacitance of the unit connection under the target operating voltage. It has the characteristics of high efficiency, simplicity, and wide generality, and can maintain high precision in a region with good linearity.
[0122] Embodiment 2
[0123] In this embodiment, based on the first adjustment coefficient, adjust the unit delay corresponding to the unit timing library of the preset operating voltage, and solve for the unit delay corresponding to the target operating voltage, including:
[0124] Determine the preset operating voltage that matches the target operating voltage;
[0125] Obtain the first adjustment coefficient corresponding to the unit timing library of the preset operating voltage, and obtain the unit delay corresponding to the unit timing library of the preset operating voltage as the target unit delay;
[0126] Adjust the target unit delay according to the first adjustment coefficient to solve for the unit delay corresponding to the target operating voltage.
[0127] In this embodiment, one or more cell timing libraries with different voltages but the same process conditions and temperature conditions are configured. It is a coefficient used to linearly adjust the cell delay corresponding to the cell timing library of the preset working voltage, which can be expressed as follows:
[0128] ,
[0129] Among them, d1 represents the target unit delay, Represents the voltage difference, The value of the first adjustment coefficient F can be obtained by approximately solving the relationship between the operating voltage and the unit delay according to the physical characteristics of the circuit unit, or it can be an empirical coefficient generated by the circuit unit in actual application.
[0130] In some embodiments, obtaining a first adjustment coefficient corresponding to a unit timing library of a preset working voltage includes:
[0131] A first adjustment coefficient matching the characteristics of the output signal is selected from the first adjustment coefficients corresponding to the unit timing library of the preset working voltage.
[0132] Typically, for a cell timing library, only fixed Value, where the output signal is a rising edge or a falling edge corresponding to a The output signal characteristic is used to characterize whether the output signal is a rising edge or a falling edge. Therefore, the corresponding value, so that the adjustment coefficient better matches the characteristics of the output signal and improves the accuracy of the adjustment result.
[0133] In some embodiments, determining a preset operating voltage that matches a target operating voltage includes:
[0134] A preset operating voltage closest to the target operating voltage is determined as a matching preset operating voltage.
[0135] In some embodiments, the calculation formula for determining the unit delay d0 corresponding to the target operating voltage can be expressed as follows:
[0136]
[0137] Among them, v0 represents the target operating voltage, v1 represents the preset operating voltage closest to the target operating voltage, and d1 represents the target unit delay.
[0138] Through the above method, for a set operating voltage, less data can be used to complete the solution of the unit delay, and a higher accuracy can be maintained within a range with better linearity.
[0139] Embodiment 3
[0140] In this embodiment, the cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the second adjustment coefficient determined according to the target working voltage, and the cell delay corresponding to the target working voltage is solved, including.
[0141] Determine a target voltage range that matches a target operating voltage;
[0142] Determine a second adjustment coefficient according to the adjustment coefficient corresponding to the target voltage interval, and obtain a cell delay corresponding to a cell timing library of a preset operating voltage closest to the target operating voltage as the target cell delay;
[0143] The target unit delay is adjusted according to the second adjustment coefficient to solve the unit delay corresponding to the target operating voltage.
[0144] The second adjustment coefficient is actually adjusted according to the different intervals in which the target operating voltage is located, and for the interval in which the operating voltage and the unit delay present a nonlinear relationship, the accuracy of the solution can be improved.
[0145] The target voltage interval is one or more of the preset voltage intervals. In some embodiments, the method further includes:
[0146] Based on dynamic simulation, multiple data points are obtained, and the data points represent the relationship between the operating voltage and the unit delay;
[0147] Divide the voltage interval according to the multiple data points to determine multiple preset voltage intervals;
[0148] The unit delay change rate corresponding to each preset voltage interval is calculated as the adjustment coefficient corresponding to each preset voltage interval.
[0149] Among them, multiple data points are referenced based on dynamic simulation Figure 3 The data of each working voltage point is processed and divided into different voltage intervals [v1,v2), [v2,v3), ... [v n-1 , v n ), and determine the corresponding adjustment coefficients (p1, p2…p n-1 ),like Figure 4 The use of dynamic simulation to assist in determining the adjustment coefficient corresponding to each preset voltage interval can improve the accuracy of the analysis.
[0150] A uniform voltage interval is used as the preset voltage interval. Specifically, a uniform voltage interval is selected to divide the voltage interval. For example, the voltage point range is 0.4~2V, and the voltage interval is uniformly selected as 0.4V. At this time, the interval is divided into [0.4,0.8), [0.8,1.2), [1.2, 1.6), [1.6, 2.0). The slope of each interval (unit delay change rate) is extracted as the adjustment coefficient, which is recorded as (p1, p2, p3, p4). Thus, the adjustment coefficient corresponding to each preset voltage interval is obtained. It can be understood that the unit delay change rate can be expressed by the rate of change of delay with voltage, or by the rate of change of voltage according to delay.
[0151] In some embodiments, the method further comprises:
[0152] Based on dynamic simulation, multiple data points are obtained, and the data points represent the relationship between the operating voltage and the unit delay;
[0153] Divide the voltage interval according to the multiple data points to determine multiple voltage intervals;
[0154] Calculate the unit delay change rate corresponding to each voltage interval;
[0155] Merging voltage intervals according to the unit delay change rate corresponding to each voltage interval;
[0156] The combined voltage interval is determined to be a preset voltage interval, and an adjustment coefficient corresponding to the preset voltage interval is determined according to a unit delay change rate corresponding to the combined voltage interval.
[0157] The preset voltage intervals are divided according to the unit delay change rate corresponding to each voltage interval. Specifically, a uniform voltage interval is selected to divide the voltage interval. At this time, the voltage interval value is as small as possible, such as 0.1, and the values are [0.4, 0.5), [0.5, 0.6), ... [1.9, 2.0). The slope (unit delay change rate) of each interval is extracted and recorded as (p1, p2 ... p n-1 ), logarithmic series (p1,p2…p n-1 ) rate of change The calculation formula is as follows:
[0158] ,
[0159] Among them, i takes the value of 1, 2, 3...n-2. Traverse the sequence (p1, p2...p n-1 ),when When , rate[i] is recorded as infinite, and the retention The corresponding interval. When the corresponding rate[i] is greater than a specific value (for example, 5%), the corresponding interval is retained as a preset voltage interval; if it is less than a specific value (for example, 5%), this interval is merged with the next interval as a preset voltage interval. At this time, the adjustment coefficient of the corresponding preset voltage interval is determined according to the unit delay change rate corresponding to the merged voltage interval. For example, the average of the slopes corresponding to the two intervals can be taken as the adjustment coefficient of the merged voltage interval. Compared with the pure uniform division of voltage intervals, this division and data storage method is more efficient. In this way, the operating voltage and unit delay corresponding to each preset voltage interval can be made closer to a linear relationship, thereby improving the accuracy of the analysis.
[0160] In some embodiments, determining a target voltage interval that matches a target operating voltage includes:
[0161] Determine whether the target operating voltage is within a preset voltage range;
[0162] If yes, the preset voltage range is used as the target voltage range;
[0163] If not, a voltage interval boundary value matching the target operating voltage is determined from the existing voltage interval boundary values, and target preset voltage intervals corresponding to the two voltage interval boundary values are obtained as the target voltage interval.
[0164] When the above two methods are used to divide the preset voltage intervals, the upper and lower limits of the voltages in different intervals are connected to each other. When all voltage intervals are retained, the continuous division of the voltage intervals is achieved. If only a small number of intervals are provided in order to compress data storage, for example [v 01 ,v 02 ],[v 03 ,v 04 ]…[v n-1 ,v n ], there will be a discontinuous division of the voltage interval. After the preset voltage interval is divided, the boundary values of all intervals constitute the set of voltage interval boundary values, that is, [v 01 ,v 02, v 03 ,v 04 …v n-1 ,v n ], the values in the set are the existing voltage range boundary values. The target operating voltage may be within the preset voltage range or not. For this, different methods are used to determine the adjustment coefficient for real-time solution.
[0165] When the target operating voltage is within the preset voltage interval, the preset voltage interval is directly used as the target voltage interval. When the target operating voltage is not within the preset voltage interval, two voltage interval boundary values matching the target operating voltage are selected from the existing voltage interval boundary values, and usually the two voltage interval boundary values closest to the target operating voltage are selected, and the value of the target operating voltage is between the two voltage interval boundary values. Since the two voltage interval boundary values must be the boundary values of the two preset voltage intervals, respectively, the two preset voltage intervals will be determined as the target voltage intervals according to the selected voltage interval boundary values.
[0166] In some embodiments, determining the second adjustment coefficient according to the adjustment coefficient corresponding to the target voltage range includes:
[0167] If the target operating voltage is within the preset voltage range, obtaining an adjustment coefficient corresponding to the preset voltage range as a second adjustment coefficient;
[0168] If the target operating voltage is not within the preset voltage range, an interpolation calculation is performed based on the adjustment coefficient corresponding to the target preset operating voltage range to determine the second adjustment coefficient. At this time, it is equivalent to adding a voltage range with the two voltage range boundary values as the upper and lower limits in the two target preset voltage ranges, and the adjustment coefficient of this range is the second adjustment coefficient solved above.
[0169] If the target operating voltage is within a preset voltage range, the adjustment coefficient corresponding to the preset voltage range may be directly used as the second adjustment coefficient.
[0170] If the target operating voltage is not within the preset voltage range, that is, the target operating voltage range is default, it is necessary to first perform interpolation calculation based on the adjustment coefficients corresponding to the two target preset operating voltage ranges to determine the second adjustment coefficient. The process is as follows:
[0171] Obtaining a first initial adjustment coefficient corresponding to a target preset voltage interval with the larger of two voltage interval boundary values matching the target operating voltage as a lower limit, and a second initial adjustment coefficient corresponding to a target preset voltage interval with the smaller of two voltage interval boundary values matching the target operating voltage as an upper limit;
[0172] An interpolation calculation is performed based on the first initial adjustment coefficient and the second initial adjustment coefficient to determine the second adjustment coefficient.
[0173] Specifically, the second adjustment coefficient p0 may be determined by a linear interpolation method, and the formula is as follows:
[0174]
[0175] Among them, k is a correction parameter that can be used to adjust the result. The preferred parameter range is (0.9, 1.1), for example, k=1. P1 is the second initial adjustment coefficient, P2 is the first initial adjustment coefficient, v0 is the target operating voltage, v1 is the smaller of the two voltage interval boundary values that match the target operating voltage, and v2 is the larger of the two voltage interval boundary values that match the target operating voltage. The above formula uses a one-dimensional linear interpolation solution. In actual implementation, other interpolation methods, such as cubic spline interpolation, can also be used to calculate p0, which will not be repeated here.
[0176] Select the preset working voltage closest to the target working voltage from the working voltages of the established timing library, and obtain the unit delay corresponding to the unit timing library of the preset working voltage as the target unit delay. It can be understood that the preset working voltage may be within the voltage interval where the target working voltage is located (the voltage interval may be a preset voltage interval, or a voltage interval bounded by the two voltage interval boundary values determined above), or may not be within the voltage interval where the target working voltage is located. Therefore, different methods are used to calculate the unit delay for the above situations.
[0177] If the preset working voltage is within the voltage range of the target working voltage, then the calculation formula of the unit delay d0 corresponding to the target working voltage v0 is as follows:
[0178]
[0179] Among them, p0 is the second adjustment coefficient, v1 is the preset working voltage, and d1 is the target unit delay.
[0180] If the preset operating voltage is not within the voltage interval where the target operating voltage is located, the voltage interval where the target operating voltage is located is set as the first voltage interval, and the voltage interval where the preset operating voltage is located is obtained as the second voltage interval. Among them, the preset operating voltage may be within the preset voltage interval or not. When the preset operating voltage is not within the preset voltage interval, a boundary value that is greater than and closest to the preset operating voltage is determined in the existing voltage interval boundary values, and a boundary value that is less than and closest to the preset operating voltage is determined, and the two boundary values are used as the upper and lower limits as the second voltage interval. When the preset operating voltage is not within the preset voltage interval, the adjustment coefficient corresponding to the second voltage interval is calculated using the same method as when the interval where the target operating voltage is located is defaulted, that is, it is obtained by interpolation calculation based on the adjustment coefficients corresponding to the two preset operating voltage intervals close to the preset voltage zone.
[0181] If the first voltage interval is adjacent to the second voltage interval or the other voltage intervals between the first voltage interval and the second voltage interval are continuous, that is, the voltage intervals are adjacent from beginning to end, then when the preset working voltage is greater than the target working voltage, the first voltage interval [v01 ,v 02 ), the corresponding adjustment coefficient is p0 (i.e., the second adjustment coefficient), and the second voltage range is [v n-1 ,v n ), the corresponding adjustment coefficient is p n-1 , other voltage ranges are [v 02 ,v 03 ) [v 03 ,v 04 )…[v n-2 ,v n-1 ), the corresponding adjustment coefficients are p2, p3, ... p n-2 , the calculation formula of the unit delay d0 corresponding to the target working voltage v0 is as follows:
[0182]
[0183] When the first voltage interval is adjacent to the second voltage interval, the above formula is defaulted ( )part.
[0184] When the preset working voltage is lower than the target working voltage, the second voltage interval [v 01 ,v 02 ), the corresponding adjustment coefficient is p1, and the first voltage interval is [v n-1 ,v n ), the corresponding adjustment coefficient is p0, and the other voltage ranges are [v 02 ,v 03 ) [v 03 ,v 04 )…[v n-2 ,v n-1 ), the corresponding adjustment coefficients are p2, p3, ... p n-2 , the calculation formula of the unit delay d0 corresponding to the target working voltage v0 is as follows:
[0185]
[0186] When the first voltage interval is adjacent to the second voltage interval, the above formula is defaulted ( )part.
[0187] If the other voltage intervals between the first voltage interval and the second voltage interval are not continuous, the default interval needs to be supplemented. 02 ,v 03 ) [v 04 ,v 05 ) interval default [v 03 ,v 04) interval, when adding this interval, the adjustment coefficient of this interval can be preferably the average of the adjustment coefficients of the left and right intervals. The interval interval is supplemented, that is, at this time, the other voltage intervals between the first voltage interval and the second voltage interval are continuous, and d0 is calculated according to the above process.
[0188] In this way, for the set working voltage, there is no need to introduce the corresponding unit timing library, and there is no need to calculate the effective capacitance of the unit connection under the target working voltage, which improves the speed of analysis. At the same time, since the adjustment coefficient is adjusted according to the different intervals of the target working voltage, the accuracy of the solution can be improved for the intervals where the working voltage and the unit delay show a nonlinear relationship.
[0189] Embodiment 4
[0190] In this embodiment, the method for solving the preset relationship function includes:
[0191] Based on dynamic simulation, multiple data points are obtained, and the data points represent the relationship between the operating voltage and the unit delay;
[0192] Numerical fitting is performed on multiple data points to solve the preset relationship function.
[0193] Among them, dynamic simulation obtains multiple data points for reference Figure 3 Using dynamic simulation to assist in obtaining data points can improve the accuracy of the preset relationship function.
[0194] In some embodiments, the fitting equation used is:
[0195] ,
[0196] Among them, A, B, and C are fitting coefficients, and the fitting curve is as follows: Figure 5 As shown by the solid line in .
[0197] In actual implementation, other functions may be used for fitting, such as an inverse proportional function, a quasi-inverse proportional function, etc., or a machine learning training method may be used to establish a preset relationship function, which is not limited here.
[0198] Based on the preset relationship function obtained by fitting, the formula for solving the unit delay corresponding to the target operating voltage is as follows:
[0199]
[0200] In this way, for the set operating voltage, there is no need to use the unit timing library to solve, which can further reduce the analysis time while ensuring the accuracy of the analysis.
[0201] The above four embodiments for solving the unit delay can solve the corresponding unit delay according to the target operating voltage without library characterization, thereby realizing efficient calculation of the unit delay under multi-voltage conditions.
[0202] In addition, the accuracy of the calculation results was studied and characterized. Taking the chip design based on the 28nm process node as an example, the method of this application was used to solve the test results (test data) of the unit delay of 100,000 design cases. The unit delay obtained by timing analysis after library characterization was used as the comparison data (golden data). The comparison results show that the error between the test results and the comparison data is within the allowable error range (absolute error ±5%). Therefore, the unit delay solved by the method of this application meets the error requirements and has a high accuracy.
[0203] like Figure 6 As shown, the present application also provides a device for solving unit delay, comprising:
[0204] A target operating voltage acquisition module 11 is used to acquire a target operating voltage of a unit delay to be solved;
[0205] A determination module 12 is configured to determine whether the target operating voltage has a corresponding preset operating voltage;
[0206] The first unit delay solving module 13 is used to solve the unit delay corresponding to the target operating voltage based on the unit delay corresponding to the unit timing library of the preset operating voltage or based on the preset relationship function between the operating voltage and the unit delay if the target operating voltage does not have a corresponding preset operating voltage.
[0207] In some embodiments, based on the cell delay corresponding to the cell timing library of the preset working voltage, the cell delay corresponding to the target working voltage is solved, and the first cell delay solving module 13 is used to perform at least one of the following:
[0208] Perform interpolation calculation based on the cell delay corresponding to the cell timing library of the preset working voltage to solve the cell delay corresponding to the target working voltage;
[0209] The cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the adjustment coefficient to solve the cell delay corresponding to the target working voltage.
[0210] In some embodiments, interpolation calculation is performed based on the cell delay corresponding to the cell timing library of the preset working voltage to solve the cell delay corresponding to the target working voltage. The first cell delay solving module 13 is used to:
[0211] Determining at least two preset operating voltages matching the target operating voltage according to the interpolation model;
[0212] Obtaining cell delays corresponding to at least two cell timing libraries of preset working voltages as target cell delays;
[0213] An interpolation calculation is performed based on the target unit delay to solve the unit delay corresponding to the target operating voltage.
[0214] In some embodiments, at least two preset operating voltages matching the target operating voltage are determined according to the interpolation model, and the first unit delay solving module 13 is used to:
[0215] When the interpolation model is a linear interpolation model, the at least two preset operating voltages include a first preset operating voltage and a second preset operating voltage that are closest to the target operating voltage, and the target operating voltage is greater than the first preset operating voltage and less than the second preset operating voltage;
[0216] When the interpolation model is a nonlinear interpolation model, at least two preset operating voltages include a third preset operating voltage, a fourth preset operating voltage and a fifth preset operating voltage that are closest to the target operating voltage. The target operating voltage and the fourth preset operating voltage are both greater than the third preset operating voltage and less than the fifth preset operating voltage. The target operating voltage and the fourth preset operating voltage are not equal.
[0217] In some embodiments, the cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the adjustment coefficient to solve the cell delay corresponding to the target working voltage. The first cell delay solving module 13 is used to perform at least one of the following:
[0218] Adjusting the cell delay corresponding to the cell timing library of the preset working voltage based on the first adjustment coefficient corresponding to the cell timing library of the preset working voltage, and solving the cell delay corresponding to the target working voltage;
[0219] The cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the second adjustment coefficient solved according to the target working voltage to solve the cell delay corresponding to the target working voltage.
[0220] In some embodiments, the cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the first adjustment coefficient to solve the cell delay corresponding to the target working voltage. The first cell delay solving module 13 is used to:
[0221] determining a preset operating voltage that matches a target operating voltage;
[0222] Obtaining a first adjustment coefficient corresponding to a unit timing library of a preset working voltage, and obtaining a unit delay corresponding to the unit timing library of the preset working voltage as a target unit delay;
[0223] The target unit delay is adjusted according to the first adjustment coefficient to solve the unit delay corresponding to the target operating voltage.
[0224] In some embodiments, a preset operating voltage matching the target operating voltage is determined, and the first unit delay solving module 13 is used to:
[0225] Determine a preset operating voltage closest to the target operating voltage as a matching preset operating voltage;
[0226] Obtaining a first adjustment coefficient corresponding to a unit timing library of a preset working voltage includes:
[0227] A first adjustment coefficient matching the characteristics of the output signal is selected from the first adjustment coefficients corresponding to the unit timing library of the preset working voltage.
[0228] In some embodiments, the cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the second adjustment coefficient solved according to the target working voltage to solve the cell delay corresponding to the target working voltage. The first cell delay solving module 13 is used to:
[0229] Determine a target voltage range that matches a target operating voltage;
[0230] Determine a second adjustment coefficient according to the adjustment coefficient corresponding to the target voltage interval, and obtain a cell delay corresponding to a cell timing library of a preset operating voltage closest to the target operating voltage as a target cell delay;
[0231] The target unit delay is adjusted according to the second adjustment coefficient to determine the unit delay corresponding to the target operating voltage.
[0232] In some embodiments, to determine a target voltage interval that matches the target operating voltage, the first unit delay solving module 13 is used to:
[0233] Determining whether the target operating voltage is within a preset voltage range;
[0234] If yes, the preset voltage range is used as the target voltage range;
[0235] If not, two voltage interval boundary values matching the target operating voltage are determined from the existing voltage interval boundary values, and target preset voltage intervals corresponding to the two voltage interval boundary values are obtained as the target voltage interval.
[0236] In some embodiments, the second adjustment coefficient is determined according to the adjustment coefficient corresponding to the target voltage range, and the first unit delay solving module 13 is used to:
[0237] If the target operating voltage is within the preset voltage range, obtaining an adjustment coefficient corresponding to the preset voltage range as a second adjustment coefficient;
[0238] If the target operating voltage is not within the preset voltage range, an interpolation calculation is performed according to the adjustment coefficient corresponding to the target preset voltage range to determine the second adjustment coefficient.
[0239] In some embodiments, the apparatus further comprises an adjustment coefficient calculation module, configured to:
[0240] Based on dynamic simulation, multiple data points are obtained, and the data points represent the relationship between the operating voltage and the unit delay;
[0241] Divide the voltage interval according to the multiple data points to determine multiple preset voltage intervals;
[0242] The unit delay change rate corresponding to each preset voltage interval is calculated as the adjustment coefficient corresponding to each preset voltage interval.
[0243] In some embodiments, the apparatus further comprises an adjustment coefficient calculation module, configured to:
[0244] Based on dynamic simulation, multiple data points are obtained, and the data points represent the relationship between the operating voltage and the unit delay;
[0245] Divide the voltage interval according to the multiple data points to determine multiple voltage intervals;
[0246] Calculate the unit delay change rate corresponding to each voltage interval;
[0247] Merging voltage intervals according to the unit delay change rate corresponding to each voltage interval;
[0248] The combined voltage interval is determined to be a preset voltage interval, and an adjustment coefficient corresponding to the preset voltage interval is determined according to a unit delay change rate corresponding to the combined voltage interval.
[0249] In some embodiments, the device further comprises a solution module of a preset relationship function, which is used to:
[0250] Based on dynamic simulation, multiple data points are obtained, and the data points represent the relationship between the operating voltage and the unit delay;
[0251] Numerical fitting is performed on multiple data points to solve the preset relationship function.
[0252] In some embodiments, the apparatus further comprises a second unit delay solving module, configured to:
[0253] If the target operating voltage has a corresponding preset operating voltage, a static timing analysis is performed based on a cell timing library corresponding to the preset operating voltage to solve the cell delay corresponding to the target operating voltage.
[0254] For the specific working process of each module in the above-mentioned device for solving unit delay, please refer to the description of the above-mentioned method embodiment, which will not be repeated here.
[0255] The present application also provides an electronic device, including a storage medium and a controller, wherein the storage medium stores a computer program, and when the computer program is executed by the controller, the steps of the method for solving the unit delay as described in the above embodiment are implemented.
[0256] The present application also provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for solving the unit delay as described in the above embodiment are implemented.
[0257] The present application relates to a method for solving unit delay, an electronic device and a storage medium, the method comprising the following steps: obtaining a target operating voltage; determining whether the target operating voltage has a corresponding unit timing library; if the target operating voltage does not have a corresponding unit timing library, solving the unit delay corresponding to the target operating voltage based on the unit delay corresponding to the unit timing library of the preset operating voltage or based on a preset relationship function between the operating voltage and the unit delay. The technical solution of the present application can solve the unit delay corresponding to other operating voltages based on an established unit timing library of a preset operating voltage, or solve the unit delay corresponding to different operating voltages based on a preset established relationship function, without the need to characterize the library for the target operating voltage, significantly shortening the analysis time, and facilitating timing analysis covering more voltage conditions.
[0258] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for solving unit delay, characterized in that: The method comprises the following steps: Get the target operating voltage; Determining whether the target operating voltage has a corresponding preset operating voltage; If the target operating voltage does not have a corresponding preset operating voltage, solving the unit delay corresponding to the target operating voltage based on the unit delay corresponding to the unit timing library of the preset operating voltage or based on a preset relationship function between the operating voltage and the unit delay; Solving the cell delay corresponding to the target operating voltage based on the cell delay corresponding to the cell timing library of the preset operating voltage includes at least one of the following: Perform interpolation calculation based on the cell delay corresponding to the cell timing library of the preset working voltage to solve the cell delay corresponding to the target working voltage; The cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the adjustment coefficient to solve the cell delay corresponding to the target working voltage.
2. The method according to claim 1, characterized in that The interpolation calculation of the cell delay corresponding to the cell timing library based on the preset working voltage to solve the cell delay corresponding to the target working voltage includes: Determine at least two preset operating voltages matching the target operating voltage according to the interpolation model; Obtaining the cell delays corresponding to the cell timing libraries of the at least two preset working voltages respectively as the target cell delay; An interpolation calculation is performed according to the target unit delay to solve the unit delay corresponding to the target operating voltage.
3. The method according to claim 2, characterized in that The determining, according to the interpolation model, at least two preset operating voltages matching the target operating voltage comprises: When the interpolation model is a linear interpolation model, the at least two preset operating voltages include a first preset operating voltage and a second preset operating voltage that are closest to the target operating voltage, and the target operating voltage is greater than the first preset operating voltage and less than the second preset operating voltage; When the interpolation model is a nonlinear interpolation model, the at least two preset operating voltages include a third preset operating voltage, a fourth preset operating voltage and a fifth preset operating voltage that are closest to the target operating voltage, the target operating voltage and the fourth preset operating voltage are both greater than the third preset operating voltage and less than the fifth preset operating voltage, and the target operating voltage is not equal to the fourth preset operating voltage.
4. The method according to claim 1, characterized in that: The step of adjusting the cell delay corresponding to the cell timing library of the preset working voltage based on the adjustment coefficient to solve the cell delay corresponding to the target working voltage includes at least one of the following: Adjusting the cell delay corresponding to the cell timing library of the preset working voltage based on the first adjustment coefficient corresponding to the cell timing library of the preset working voltage, and solving the cell delay corresponding to the target working voltage; The cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the second adjustment coefficient determined according to the target working voltage, and the cell delay corresponding to the target working voltage is solved.
5. The method according to claim 4, characterized in that The first adjustment coefficient corresponding to the unit timing library of the preset working voltage is adjusted based on the first adjustment coefficient corresponding to the unit timing library of the preset working voltage to solve the unit delay corresponding to the target working voltage, including: Determining a preset operating voltage that matches the target operating voltage; Acquire a first adjustment coefficient corresponding to the unit timing library of the preset working voltage, and acquire a unit delay corresponding to the unit timing library of the preset working voltage as a target unit delay; The target unit delay is adjusted according to the first adjustment coefficient to solve the unit delay corresponding to the target operating voltage.
6. The method according to claim 5, characterized in that The determining of a preset operating voltage matching the target operating voltage includes: Determining a preset operating voltage closest to the target operating voltage as a matching preset operating voltage; The obtaining of the first adjustment coefficient corresponding to the unit timing library of the preset working voltage includes: Among the first adjustment coefficients corresponding to the unit timing library of the preset working voltage, a first adjustment coefficient matching the characteristics of the output signal is selected.
7. The method according to claim 4, characterized in that The step of adjusting the cell delay corresponding to the cell timing library of the preset working voltage based on the second adjustment coefficient determined according to the target working voltage to solve the cell delay corresponding to the target working voltage includes: Determining a target voltage interval that matches the target operating voltage; Determine the second adjustment coefficient according to the adjustment coefficient corresponding to the target voltage interval, and obtain the cell delay corresponding to the cell timing library of the preset working voltage closest to the target working voltage as the target cell delay; The target unit delay is adjusted according to the second adjustment coefficient to solve the unit delay corresponding to the target operating voltage.
8. The method according to claim 7, characterized in that The determining a target voltage interval matching the target operating voltage includes: Determining whether the target operating voltage is within a preset voltage range; If yes, taking the preset voltage interval as the target voltage interval; If not, two voltage interval boundary values matching the target operating voltage are determined from the existing voltage interval boundary values, and target preset voltage intervals corresponding to the two voltage interval boundary values are obtained as the target voltage interval.
9. The method according to claim 8, characterized in that The determining the second adjustment coefficient according to the adjustment coefficient corresponding to the target voltage range includes: If the target operating voltage is within the preset voltage range, obtaining an adjustment coefficient corresponding to the preset voltage range as the second adjustment coefficient; If the target operating voltage is not within the preset voltage range, an interpolation calculation is performed according to the adjustment coefficient corresponding to the target preset voltage range to determine the second adjustment coefficient.
10. The method according to claim 9, characterized in that The method further comprises: Based on the dynamic simulation, a plurality of data points are obtained, wherein the data points represent the relationship between the operating voltage and the unit delay; Divide the voltage interval according to the multiple data points to determine a plurality of preset voltage intervals; The unit delay change rate corresponding to each of the preset voltage intervals is calculated as the adjustment coefficient corresponding to each of the preset voltage intervals.
11. The method according to claim 9, characterized in that The method further comprises: Based on the dynamic simulation, a plurality of data points are obtained, wherein the data points represent the relationship between the operating voltage and the unit delay; Divide the voltage interval according to the multiple data points to determine multiple voltage intervals; Calculating the unit delay change rate corresponding to each of the voltage intervals; Merging the voltage intervals according to the unit delay change rate corresponding to each of the voltage intervals; The combined voltage interval is determined to be the preset voltage interval, and an adjustment coefficient corresponding to the preset voltage interval is determined according to a unit delay change rate corresponding to the combined voltage interval.
12. The method according to claim 1, characterized in that The method further comprises: Based on the dynamic simulation, a plurality of data points are obtained, wherein the data points represent the relationship between the operating voltage and the unit delay; Numerical fitting is performed on the multiple data points to obtain the preset relationship function.
13. The method according to any one of claims 1 to 12, characterized in that After determining whether the target operating voltage has a corresponding unit timing library, the method further includes: If the target operating voltage has a corresponding preset operating voltage, a static timing analysis is performed based on a cell timing library of the corresponding preset operating voltage to solve a cell delay corresponding to the target operating voltage.
14. A device for solving unit delay, characterized in that: include: A target operating voltage acquisition module is used to obtain the target operating voltage of the delay of the unit to be solved; A judging module, used for judging whether the target operating voltage has a corresponding preset operating voltage; A first unit delay solving module, configured to solve the unit delay corresponding to the target operating voltage based on the unit delay corresponding to the unit timing library of the preset operating voltage or based on a preset relationship function between the operating voltage and the unit delay if the target operating voltage does not have a corresponding preset operating voltage; Solving the cell delay corresponding to the target operating voltage based on the cell delay corresponding to the cell timing library of the preset operating voltage includes at least one of the following: Perform interpolation calculation based on the cell delay corresponding to the cell timing library of the preset working voltage to solve the cell delay corresponding to the target working voltage; The cell delay corresponding to the cell timing library of the preset working voltage is adjusted based on the adjustment coefficient to solve the cell delay corresponding to the target working voltage.
15. An electronic device, comprising a storage medium and a controller, characterized in that: The storage medium stores a computer program, which, when executed by the controller, implements the steps of the method for solving unit delay according to any one of claims 1 to 13.
16. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for solving unit delay according to any one of claims 1 to 13.
Citation Information
Patent Citations
Delay control circuit and method, and memory
WO2024073908A1
Delay buffer unit and operation method therefor, and calculation apparatus and operation method therefor
WO2024131396A1