A method for automatically establishing a circuit IP timing library

By processing the circuit IP netlist with the bisection method and the moment matching method, the problem that the existing technology cannot extract the timing characteristics of customized memory circuit IP and new storage and computing integrated circuit IP is solved, and efficient and reliable timing library construction is achieved. Improved circuit performance.

CN117473915BActive Publication Date: 2024-08-27NANJING INST OF INTELLIGENT TECH INST OF MICROELECTRONICS OF THE CHINESE ACAD OF
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311529026.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2024-08-27
Estimated Expiration
2043-11-16

AI Technical Summary

Technical Problem

Existing technology cannot effectively extract the timing characteristics of customized memory circuit IP and new storage and computing integrated circuit IP, and is limited to self-generated memory circuits.

Method used

By giving different input transmission times and output loads to the circuit IP netlist, the dichotomy method is used to determine the timing critical value, and the moment matching method is used to determine the timing margin, which is organized into a timing LUT and combined into a circuit IP timing library.

Benefits of technology

It realizes the rapid extraction of timing characteristics of customized circuit IP, ensures reliability, compresses the timing cycle of signals, and improves circuit performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117473915B
    Figure CN117473915B
Patent Text Reader

Abstract

The invention discloses a method for automatically establishing a circuit IP timing library, the method comprising: giving different input transmission times and output loads to an input circuit IP netlist; determining the timing critical value of each key signal under different input transmission times and output load states by a dichotomy method, wherein the critical value is the signal timing without a design margin; determining the timing margin of the timing critical value of each key signal under different input transmission times and output load states by a moment matching method; respectively arranging the timing margin of each key signal under different input transmission times and output load states into a two-dimensional LUT of the signal; combining the two-dimensional LUTs of each signal into a circuit IP timing library; the invention realizes compressing the timing cycle of the signal as much as possible and improving the circuit performance under the premise of ensuring reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for automatically establishing a circuit IP timing library, belonging to the technical field of electronic automation. Background Art

[0002] Existing logic circuit timing feature extraction software is only applicable to basic logic units, such as AND gates, OR gates, NOT gates, etc. Although Memory Compiler can extract the timing features of memory, it is limited to the memory circuits it generates itself and cannot be used for timing feature extraction of customized memory circuit IP and new storage-computing integrated circuit IP.

[0003] The present invention can quickly extract the timing characteristics of a customized circuit IP including storage and computing, and determine the timing margin that meets the reliability. Summary of the invention

[0004] The purpose of the present invention is to provide a method for automatically establishing a circuit IP timing library to solve the defect that the prior art memory is limited to the memory circuit generated by itself and cannot be used for timing feature extraction of customized memory circuit IP and new storage and computing integrated circuit IP.

[0005] A method for automatically establishing a circuit IP timing library, characterized in that the method comprises:

[0006] The input circuit IP netlist is given different input transmission time and output load;

[0007] Determine the critical timing value of each key signal under different input transmission time and output load conditions by binary search, wherein the critical value is the signal timing without design margin;

[0008] Determine the timing margin of the timing critical value of each key signal under different input transmission time and output load conditions by using the moment matching method;

[0009] The timing margin of each key signal under different input transmission time and output load state is sorted into a timing LUT of each signal, and the timing LUTs of each signal are combined into a circuit IP timing library.

[0010] Furthermore, the input circuit IP netlist is given different input transmission times and output loads by replacing keywords in the netlist through a Python program.

[0011] Furthermore, the method of determining the timing critical value of each key signal under different input transmission times and output load conditions by dichotomy includes:

[0012] Centered on the effective edge of the clock, expand 1 / 4 of the clock cycle to the left and right as the signal on time T start The left boundary value T min and right boundary value T max , for each transmission time and output load of the key signal:

[0013] Step 21, let T start =(T min +T max ) / 2, substitute it into the netlist for simulation, get the timing value of the signal, and judge whether the signal can be output normally under the timing value;

[0014] Step 22, if the signal can be output normally, then T min =T start , return to step 21, otherwise, T max =T start , return to step 21;

[0015] Step 23, repeating steps 21 and 22 until the two consecutive timing values ​​are less than a predetermined threshold.

[0016] Furthermore, the method of determining the timing margin of the timing critical value of each key signal under different input transmission time and output load conditions by the moment matching method includes:

[0017] Step 31, write the determined timing critical value into the netlist, run N Monte Carlo simulations, and calculate the mean, variance, sigma, skew, and kurtosis of the signal timing value distribution;

[0018] Step 32, construct the gamma distribution G(Y) of Y according to the mean, variance sigma, skew, and kurtosis, and solve G(Y) so that the cumulative probability density cdf[G(Y)] is equal to the working signal timing value.

[0019] Furthermore, the formula of the mean is as follows:

[0020]

[0021] Where N is the number of Monte Carlo simulations, Y i is the timing result of the ith simulation.

[0022] Furthermore, the formula of the variance sigma is as follows:

[0023]

[0024] Where N is the number of Monte Carlo simulations, Y iis the timing result of the ith simulation.

[0025] Furthermore, the formula of the skew is as follows:

[0026]

[0027] Where N is the number of Monte Carlo simulations, Y i is the timing result of the ith simulation.

[0028] Furthermore, the formula of kurtosis is as follows:

[0029]

[0030] Where N is the number of Monte Carlo simulations, Y i is the timing result of the ith simulation.

[0031] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: the present invention achieves high efficiency, which comes from the fact that the timing critical value for normal operation of the circuit can be quickly approximated by the dichotomy method, and the reliability is achieved by using the moment matching method to count the timing margin that can operate normally in 99.7% of the cases, thereby achieving the compression of the signal timing cycle as much as possible while ensuring reliability and improving circuit performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a flow chart of the present invention;

[0033] Figure 2 It is a working principle diagram of the present invention. DETAILED DESCRIPTION

[0034] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.

[0035] Existing logic circuit timing feature extraction software is only applicable to basic logic units, such as AND gates, OR gates, NOT gates, etc. Although Memory Compiler can extract the timing features of memories, it is limited to the memory circuits it generates itself and cannot be used for timing feature extraction of customized memory circuit IPs and new storage-computing integrated circuit IPs. In view of the defects of the prior art, the present invention discloses a method for automatically establishing a circuit IP timing library. First, the key paths and key signals that need to establish a timing LUT are extracted from the circuit IP netlist, mainly including input signals and output signals. In order to realize logic synthesis with peripheral digital logic, it is necessary to generate a circuit IP timing library file (composed of LUTs of all signals) under various PVT conditions. Therefore, it is necessary to establish a timing LUT for each signal under each PVT condition. For the start timing T of the signalsetup and hold time T hold The establishment of the LUT needs to be completed under different input transmission times and output transmission times, that is, the index of the two-dimensional LUT is the input transmission time and the output transmission time; and for the signal delay time T delay The establishment of the LUT needs to be completed under different input transmission times and output loads. Finally, the LUTs of all signals constitute the timing library of the circuit IP.

[0036] The method comprises:

[0037] The input circuit IP netlist is given different input transmission time and output load;

[0038] Determine the critical timing value of each key signal under different input transmission time and output load conditions by binary search, wherein the critical value is the signal timing without design margin;

[0039] Determine the timing margin of the timing critical value of each key signal under different input transmission time and output load conditions by using the moment matching method;

[0040] The timing margin of each key signal under different input transmission time and output load status is sorted into a two-dimensional LUT of each signal, and the two-dimensional LUT of each signal is combined into a circuit IP timing library.

[0041] The method of the present invention is specifically described as follows:

[0042] Step 1, giving different input transmission time and output load to the input circuit IP netlist;

[0043] Step 2: Use the binary method to determine the critical timing value of the key signal under different input transmission time and output load conditions. The critical value can be understood as the signal timing without design margin (such as the startup time T setup , keep time T hold , delay value T Delay );

[0044] Step 3: Determine the timing margin of each signal under different input transmission times and output load conditions by using a moment matching method.

[0045] Step 4: Arrange the timing of each signal under different input transmission time and output load state into LUT of each signal, and establish the circuit IP timing library with LUT of each signal.

[0046] 1. The way to give different input transmission time and output load to the input circuit IP netlist is to replace the keywords in the netlist through Python program.

[0047] 2. The process of removing the timing critical value by binary division is: take the effective edge of the clock as the center, and expand 1 / 4 clock cycle to the left and right as the signal opening time T start The left boundary value T min and right boundary value T max The transmission time and output load of each key signal are:

[0048] 2.1 Let T start =(T min +T max ) / 2, substitute it into the netlist for simulation, and get the timing value of the signal (such as the startup time T setup , keep time T hold Or delay value T Delay ) to determine whether the signal can be output normally under this timing value.

[0049] 2.2 If the signal can be output normally, then T min =T start , return to step 2.1. Otherwise, T max =T start , return to step 2.1.

[0050] 2.3 Repeat steps 2.1 and 2.2 until the two time series values ​​are less than the specified threshold, that is, there is almost no change.

[0051] 3. The process of determining the timing margin by the moment matching method is as follows: for each input transmission time and output load of the key signal, there is:

[0052] 3.1 Write the critical timing value determined in step 2 into the netlist, run N Monte Carlo simulations, and calculate the first-order moment (mean), second-order moment (variance sigma), third-order moment (skew), and fourth-order moment (kurtosis) of the signal timing value distribution, as shown in the following formula:

[0053]

[0054]

[0055]

[0056]

[0057] Where N is the number of Monte Carlo simulations, Y i is the timing result of the ith simulation;

[0058] 3.2 The gamma distribution G(Y) of Y can be constructed based on mean, sigma, skew, and kurtosis. By finding the Y value that makes the cumulative probability density cdf[G(Y)] equal to 99.7%, the signal timing value that can guarantee normal operation in 99.7% of cases can be determined. Skew and kurtosis measure the normality of the distribution. If skew and kurtosis are close to 0, it means that the timing distribution is normally distributed. For a normal distribution, the timing value can be directly set to mean+3*sigma.

[0059] 4. Repeat steps 2 and 3 for each input transmission time and output load of the signal, organize it into a 2D LUT of the signal, and fill it into the timing library file.

[0060] The efficiency of this application comes from the ability to quickly approximate the critical timing value for normal operation of the circuit through the binary search method, while the reliability is achieved by using the moment matching method to calculate the timing margin that can operate normally in 99.7% of cases, thereby compressing the timing period of the signal as much as possible and improving the circuit performance while ensuring reliability.

[0061] The present invention is applicable to the automatic timing library building tool of circuit IP including customized memory and storage-computation integration. Its core mainly includes the method of determining the initial timing constraints of input and output signals and the method of counting the timing margins of each signal. The tool can automatically determine the timing characteristics of each signal in different states under different process, voltage, temperature (PVT) conditions, build a timing lookup table (LUT) for each signal, and then form a timing library of the circuit IP.

[0062] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for automatically establishing a circuit IP timing library, characterized in that: The method comprises: The input circuit IP netlist is given different input transmission time and output load; Determine the critical timing value of each key signal under different input transmission time and output load conditions by binary search, wherein the critical value is the signal timing without design margin; Determine the timing margin of the timing critical value of each key signal under different input transmission time and output load conditions by using the moment matching method; The timing margin of each key signal under different input transmission time and output load state is sorted into a timing LUT of each signal, and the timing LUTs of each signal are combined into a circuit IP timing library.

2. The method for automatically establishing a circuit IP timing library according to claim 1, characterized in that: The input circuit IP netlist is given different input transmission times and output loads by replacing keywords in the netlist through a Python program.

3. The method for automatically establishing a circuit IP timing library according to claim 1, characterized in that: The method of determining the timing critical value of each key signal under different input transmission time and output load conditions by dichotomy includes: Centered on the effective edge of the clock, expand 1 / 4 of the clock cycle to the left and right as the signal on time T start The left boundary value T min and right boundary value T max , for each transmission time and output load of the key signal: Step 21, let T start =(T min +T max ) / 2, substitute it into the netlist for simulation, get the timing value of the signal, and determine whether the signal can be output normally under the timing value; Step 22, if the signal can be output normally, then T min =T start , return to step 21, otherwise, T max =T start , return to step 21; Step 23, repeating steps 21 and 22 until the two consecutive timing values ​​are less than a predetermined threshold.

4. The method for automatically establishing a circuit IP timing library according to claim 1, characterized in that: The method for determining the timing margin of the timing critical value of each key signal under different input transmission time and output load conditions by the moment matching method includes: Step 31, write the determined timing critical value into the netlist, run N Monte Carlo simulations, and calculate the mean, variance, sigma, skew, and kurtosis of the signal timing value distribution; Step 32, construct the gamma distribution G(Y) of Y according to the mean, variance sigma, skew, and kurtosis, and solve G(Y) so that the cumulative probability density cdf[G(Y)] is equal to 99.7% of the signal time series values.

5. The method for automatically establishing a circuit IP timing library according to claim 4, characterized in that: The formula of the mean is as follows: Where N is the number of Monte Carlo simulations, Y i is the timing result of the ith simulation.

6. The method for automatically establishing a circuit IP timing library according to claim 4, characterized in that: The formula for the variance sigma is as follows: Where N is the number of Monte Carlo simulations, Y i is the timing result of the ith simulation.

7. The method for automatically establishing a circuit IP timing library according to claim 4, characterized in that: The formula for the skew is as follows: Where N is the number of Monte Carlo simulations, Y i is the timing result of the ith simulation.

8. The method for automatically establishing a circuit IP timing library according to claim 4, characterized in that: The formula for the kurtosis is as follows: Where N is the number of Monte Carlo simulations, Y i is the timing result of the ith simulation.

Citation Information

Patent Citations

  • Method for fast extracting SRAM timing sequence library

    CN101751496A

  • Tool for automatically establishing time sequence base

    CN101968826A

  • Spice simulation method containing IP / Memory timing path

    CN107844678A

  • Circuit reliability analysis method

    CN111898335A

  • Circuit time sequence optimization method based on register flexible time sequence library

    CN113673193A