Circuit path-level NBTI aging prediction method and device based on key gates
Through the circuit path-level NBTI aging prediction method based on key gates, the linear regression model is used to train and verify the aging delay data of the circuit, which solves the problem of difficulty in balancing prediction accuracy and speed in the existing technology and achieves efficient aging delay. time prediction.
Patent Information
- Application Number
- CN202210452108.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-04-27
AI Technical Summary
When using existing technology to predict the aging delay of circuit critical paths, it is difficult to ensure accuracy and speed at the same time. Existing methods are time-consuming or have low accuracy.
A circuit path-level NBTI aging prediction method based on key gates is adopted. By constructing a training set and a test set, a linear regression model is used to train the aging delay data of the key subcircuit in the 0th and 1st years, and predict its 2nd year. Aging delay data to the Nth year reduces training complexity and improves prediction speed.
It achieves a significant improvement in prediction speed while ensuring prediction accuracy, meets application needs, and ensures the accuracy of prediction results through critical path verification.
Smart Images

Figure CN114841097B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of circuit technology, and more specifically to a circuit path-level NBTI aging prediction method and device based on key gates. Background Art
[0002] As the size of CMOS process continues to shrink, the performance of circuits continues to improve, and the characteristics of transistors have also changed greatly, which has brought great challenges to the reliability of circuits. Negative bias temperature instability (NBTI) and hot-carrier injection (HCI) are the main causes of circuit aging. They will affect the electrical characteristics of transistors, cause circuit timing disorder, and even cause circuit function failure. Among these aging effects, NBTI is considered to be the most important factor. NBTI mainly acts on PMOS tubes. When the PMOS tube is in a negative bias state, that is, V gs =-V dd When the transistor is under pressure, the threshold voltage (|Vth|) of the transistor will continue to increase over time, and the drive current will continue to decrease, which will eventually increase the circuit delay and cause timing failure.
[0003] Existing solutions to NBTI effects mainly include input vector control, implanting delay protection bands, gate replacement, etc. However, these methods require predicting the aging delay of the critical path of the circuit, so as to reduce the impact of NBTI effects in the design stage. At present, the research on aging delay mainly includes the following methods:
[0004] (1) The paper "Tu RH, Rosenbaum E, Chan WY, et al. Berkeley reliability tools-BERT [J]. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2002, 12 (10), 1524-1534." introduces an aging-aware transistor-level timing analysis method. The initial circuit without aging effects is simulated under different operating conditions for each transistor. Then, using the collected information, the threshold shift caused by aging for each transistor in the entire circuit is calculated. Finally, the shifted threshold is applied to each transistor and the circuit delay for the predicted lifetime is calculated. This method is highly accurate but time-consuming.
[0005] (2) The paper "Lorenz D, Georgakos G, Schlichtmann U. Aging analys Is of circuit timing considering NBTI and HCI [C]. In 2009 15th IEEE International On-Line Testing Symposium. IEEE, 2009, 3-8." proposed a gate-level aging timing analysis method based on a look-up table (LUT). The threshold shift caused by the NBTI effect of the PMOS transistor is associated with the gate delay degradation. However, it does not have the PBTI effect in the NMOS transistor, nor does it take into account the rising and falling slopes of the gate, and the accuracy is very low.
[0006] (3) The paper "Kiamehr S, Firouzi F, Tahoori M B. Aging-aware timing analysis considering combined effects of NBTI and PBTI [J]. In International Symposium on Quality Electronic Design (ISQED). IEEE, 2013, 53-5." uses an aging standard cell library. Considering different input signal probabilities, the cell library is expanded and multiple copies of each library cell are provided. Then, technology mapping is performed based on the expected input signal probability of each gate, and the original gate is replaced with the fault-tolerant cell in the expanded cell library. However, only the input signal is considered, and the accuracy is still not high.
[0007] In summary, it is difficult to ensure both the accuracy and speed of the existing methods for predicting critical path aging delay. Summary of the invention
[0008] The technical problem to be solved by the present invention is that it is difficult to simultaneously ensure the prediction accuracy and speed of the prior art method for predicting critical path aging delay.
[0009] The present invention solves the above technical problems through the following technical means: a circuit path level NBTI aging prediction method based on key gates, the method comprising:
[0010] Step 1: Construct training set and test set;
[0011] Step 2: Use the training set to train the linear regression model. During the training process, the input of the model is the aging delay data of the key subcircuit in the 0th and 1st year, and the output of the model is the aging delay data of the key subcircuit from the 2nd to the Nth year, where N is a positive integer greater than 2.
[0012] Step 3: After the training is completed, the trained linear regression model is verified using the test set. During the verification process, the input of the model is the aging delay data of the critical path in the 0th and 1st years, and the output of the model is the aging delay data of the critical path from the 2nd to the Nth year, where N is a positive integer greater than 2.
[0013] Step 4: After the test is completed, the final linear regression model is obtained, and the aging delay data of the critical path to be predicted in the 0th and 1st years are input into the final linear regression model to predict its aging delay data from the 2nd to the Nth year.
[0014] The present invention uses a linear regression model to perform aging prediction, which has a significantly improved speed compared to the prior art. The training process uses data from key sub-circuits instead of key path data, which reduces the training complexity. All aging delay data can be obtained using the aging delay data of the 0th year and the 1st year, and the model calculation amount is greatly reduced, further improving the prediction speed. After the training is completed, it is also verified through a test set composed of key paths to ensure prediction accuracy. The entire solution can meet both prediction accuracy and speed and meet application requirements.
[0015] Furthermore, before step 1, the step of obtaining a key sub-circuit is also included, and the step of obtaining a key sub-circuit includes:
[0016] The circuit is represented by a directed graph, G = (V, E), V = {v i ,1≤i≤n} as a set of nodes, representing the gates in the circuit; E={e j ,1≤j≤m} as the edge set, representing the connection between gates; first establish the initial set TO i , v i Join TO i , then v i The predecessor node and successor node are added to the set To i and set TO1 i , To1 i Called v i A topological ring, then TO1 i The predecessor and successor nodes of each node in TO1, and these nodes are not included in TO1 i In, add TO i and TO2 i ,TO2 i Called v iThe second-layer topology ring, and so on, TO3 i Called v i The three-layer topology ring finally obtained is TO i This is a three-layer ring subcircuit. By using the above method, we can find out the v of each node in the circuit. i Corresponding TO i , and calculate each To i The number of gates in the area, then, from TO1 to TO n The subcircuit with the most gates is selected as the key subcircuit.
[0017] Furthermore, before step 1, the step of obtaining a critical path is also included, and the step of obtaining a critical path includes:
[0018] Get the delay T before each path ages s The delay T of the longest path max , considering the timing margin T c and the upper limit of circuit aging max , then the formula T is satisfied s ×(1+Agine max )≥T max ×(1+T c ) are taken as potential critical paths of the circuit, and then the aging delay T of all paths in the PCP set within ten years is calculated using the backtracking algorithm based on the NBTI effect. d , satisfying the formula T d ≥T max ×(1+T c ) is added to the critical path set.
[0019] Furthermore, the step 1 comprises:
[0020] Get the aging delay of each gate from the 0th to the Nth year;
[0021] The aging delay of each gate on the longest path of the critical subcircuit is accumulated to obtain the aging delay of the critical subcircuit from the 0th to the Nth year;
[0022] The aging delay from the 0th to the Nth year of each key sub-circuit is taken as a training sample, and multiple training samples are extracted to form a training set;
[0023] The aging delay of each gate in the critical path is accumulated to obtain the aging delay of the critical path from the 0th to the Nth year;
[0024] The aging delay from the 0th to the Nth year of each critical path is taken as a test sample, and multiple test samples are extracted to form a test set.
[0025] Furthermore, the linear regression model architecture in step 2 is:
[0026] y=wx+b
[0027] Among them, x is the input feature vector, y is the output label, and w and b are model parameters.
[0028] Furthermore, in the step 2, the model is trained, and when the prediction result error of the model is lower than a preset value, the training is completed.
[0029] Furthermore, through the formula Get the prediction result error of the model, where q represents the model output data dimension. Indicates the actual output result. Represents the predicted result.
[0030] The present invention also provides a circuit path level NBTI aging prediction device based on key gates, the device comprising:
[0031] Dataset construction module, used to construct training sets and test sets;
[0032] A training module is used to train the linear regression model using the training set. During the training process, the input of the model is the aging delay data of the key subcircuit in the 0th and 1st years, and the output of the model is the aging delay data of the key subcircuit in the 2nd to Nth years, where N is a positive integer greater than 2.
[0033] The verification module is used to verify the trained linear regression model using the test set after the training is completed. The input of the model in the verification process is the aging delay data of the critical path in the 0th and 1st years, and the output of the model is the aging delay data of the critical path from the 2nd to the Nth year, where N is a positive integer greater than 2;
[0034] The prediction module is used to obtain the final linear regression model after the test is completed. The aging delay data of the 0th and 1st years of the critical path to be predicted are input into the final linear regression model to predict its aging delay data from the 2nd to the Nth year.
[0035] Furthermore, the data set construction module further includes a step of obtaining a key subcircuit, and the step of obtaining a key subcircuit includes:
[0036] The circuit is represented by a directed graph, G = (V, E), V = {v i ,1≤i≤n} as a set of nodes, representing the gates in the circuit; E={e j ,1≤j≤m} as the edge set, representing the connection between gates; first establish the initial set TO i , v i Join TO i , then vi The predecessor node and successor node are added to the set TO i and set TO1 i ,TO1 i Called v i A topological ring, then TO1 i The predecessor and successor nodes of each node in TO1, and these nodes are not included in TO1 i In, add TO i and TO2 i ,TO2 i Called v i The second-layer topology ring, and so on, TO3 i Called v i The three-layer topology ring finally obtained is TO i This is a three-layer ring subcircuit. By using the above method, we can find out the v of each node in the circuit. i Corresponding TO i , and calculate each TO i The number of gates in the area, then, from TO1 to TO n The subcircuit with the most gates is selected as the key subcircuit.
[0037] Furthermore, the data set construction module further includes a step of obtaining a key path, and the step of obtaining a key path includes:
[0038] Get the delay T before each path ages s The delay T of the longest path max , considering the timing margin T c and the upper limit of circuit aging max , then the formula T is satisfied s ×(1+Agine max )≥T max ×(1+T c ) are taken as potential critical paths of the circuit, and then the aging delay T of all paths in the PCP set within ten years is calculated using the backtracking algorithm based on the NBTI effect. d , satisfying the formula T d ≥T max ×(1+T c ) is added to the critical path set.
[0039] Furthermore, the data set construction module is also used for:
[0040] Get the aging delay of each gate from the 0th to the Nth year;
[0041] The aging delay of each gate on the longest path of the critical subcircuit is accumulated to obtain the aging delay of the critical subcircuit from the 0th to the Nth year;
[0042] The aging delay from the 0th to the Nth year of each key sub-circuit is taken as a training sample, and multiple training samples are extracted to form a training set;
[0043] The aging delay of each gate in the critical path is accumulated to obtain the aging delay of the critical path from the 0th to the Nth year;
[0044] The aging delay from the 0th to the Nth year of each critical path is taken as a test sample, and multiple test samples are extracted to form a test set.
[0045] Furthermore, the linear regression model architecture in the training module is:
[0046] y=wx+b
[0047] Among them, x is the input feature vector, y is the output label, and w and b are model parameters.
[0048] Furthermore, the model is trained in the training module, and the training is completed when the prediction result error of the model is lower than a preset value.
[0049] Furthermore, through the formula Get the prediction result error of the model, where q represents the model output data dimension. Indicates the actual output result. Represents the predicted result.
[0050] The advantages of the present invention are as follows: the present invention uses a linear regression model to perform aging prediction, which is significantly faster than the prior art, and the training process uses data of key subcircuits instead of key path data, so the training complexity is reduced and the model converges quickly. All aging delay data can be obtained by using the aging delay data of the 0th year and the 1st year, and the model calculation amount is greatly reduced, further improving the prediction speed. After the training is completed, it is also verified by a test set composed of key paths to ensure the prediction accuracy. The entire solution can meet the prediction accuracy and speed at the same time and meet the application requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A schematic diagram of a three-layer ring subcircuit in a circuit path-level NBTI aging prediction method based on a critical gate provided by an embodiment of the present invention, wherein (a) is a one-layer ring subcircuit of G7, (b) is a two-layer ring subcircuit of G7, and (c) is a three-layer ring subcircuit of G7;
[0052] Figure 2 Obtaining a critical path flow chart in the circuit path-level NBTI aging prediction method based on critical gates provided in an embodiment of the present invention;
[0053] Figure 3A schematic diagram of aging delay of key subcircuits and key paths of different benchmark circuits in the circuit path-level NBTI aging prediction method based on key gates provided in an embodiment of the present invention, wherein (a) is a schematic diagram of aging delay of key subcircuits and key paths of a C1908 benchmark circuit, (b) is a schematic diagram of aging delay of key subcircuits and key paths of a C5315 benchmark circuit, (c) is a schematic diagram of aging delay of key subcircuits and key paths of an s5378 benchmark circuit, and (d) is a schematic diagram of aging delay of key subcircuits and key paths of an s13207 benchmark circuit;
[0054] Figure 4 A scatter plot of actual values and predicted values of one of the key paths of the s5378 circuit under different experimental conditions in the circuit path-level NBTI aging prediction method based on key gates provided in an embodiment of the present invention, wherein the temperature of each experimental condition is T′=50°C, but the duty cycle a′ is different, wherein (a) is a schematic diagram when a′=1%, (b) is a schematic diagram when a′=25%, (c) is a schematic diagram when a′=50%, (d) is a schematic diagram when a′=75%, and (e) is a schematic diagram when a′=99%;
[0055] Figure 5 A scatter plot of actual and predicted values of one of the key paths of the s5378 circuit under different experimental conditions in the circuit path-level NBTI aging prediction method based on key gates provided in an embodiment of the present invention, wherein the duty cycle a′ of each experimental condition is 50%, but the temperature T′ is different, wherein (a) is a schematic diagram when T′=25°C, (b) is a schematic diagram when T′=50°C, and (c) is a schematic diagram when T′=50°C. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] Example 1
[0058] A circuit path-level NBTI aging prediction method based on key gates, the method comprising:
[0059] S1, obtain key sub-circuits, such as Figure 1 As shown, the steps of obtaining the key sub-circuit include:
[0060] The circuit is represented by a directed graph, G = (V, E), V = {vi ,1≤i≤n} as a set of nodes, representing the gates in the circuit; E={e j ,1≤j≤m} as the edge set, representing the connection between gates; first establish the initial set TO i , v i Join TO i , then v i The predecessor node and successor node are added to the set TO i and set TO1 i ,TO1 i Called v i A topological ring, then TO1 i The predecessor and successor nodes of each node in TO1, and these nodes are not included in TO1 i In, add TO i and TO2 i ,TO2 i Called v i The second-layer topology ring, and so on, TO3 i Called v i The three-layer topology ring finally obtained is TO i This is a three-layer ring subcircuit. By using the above method, we can find out the v of each node in the circuit. i Corresponding TO i , and calculate each TO i The number of gates in the area, then, from TO1 to TO n Select the subcircuit with the most gates as the key subcircuit. Find the TO in the circuit i The number of doors in the area, and then the door with the largest number is selected based on the sorting, which is the key door.
[0061] S2, get the critical path, such as Figure 2 As shown, the steps to obtain the critical path include:
[0062] In order to compare with the aging delay predicted by the present invention, that is, to construct a test set, the present invention uses the static timing analysis method (STA) to obtain the delay of the critical path. First, the gate-level circuit netlist file after DC synthesis is used to establish a directed graph structure through a topological algorithm. Then, the static timing analysis is used to obtain the delay T before aging of each path. s The delay T of the longest path max , considering the timing margin T c and the upper limit of circuit aging max , then the paths that satisfy formula (1) are all regarded as potential critical paths of the circuit, and then the aging delay T of all paths in the PCP set within ten years is calculated using the backtracking algorithm based on the NBTI effect. d , the paths satisfying formula (2) are added to the critical path set.
[0063] T s ×(1+Agine max )≥T max ×(1+T c ) (1)
[0064] T d ≥T max ×(1+T c ) (2)
[0065] S3. Construct training set and test set; the general idea is:
[0066] Get the aging delay of each gate from the 0th to the Nth year;
[0067] The aging delay of each gate on the longest path of the critical subcircuit is accumulated to obtain the aging delay of the critical subcircuit from the 0th to the Nth year;
[0068] The aging delay from the 0th to the Nth year of each key sub-circuit is taken as a training sample, and multiple training samples are extracted to form a training set;
[0069] The aging delay of each gate in the critical path is accumulated to obtain the aging delay of the critical path from the 0th to the Nth year;
[0070] The aging delay from the 0th to the Nth year of each critical path is taken as a test sample, and multiple test samples are extracted to form a test set.
[0071] S4. Use the training set to train the linear regression model. During the training process, the input of the model is the aging delay data of the key subcircuit in the 0th and 1st year, and the output of the model is the aging delay data of the key subcircuit from the 2nd to the Nth year, where N is a positive integer greater than 2. After the training is completed, use the test set to verify the trained linear regression model. During the verification process, the input of the model is the aging delay data of the key path in the 0th and 1st year, and the output of the model is the aging delay data of the key path from the 2nd to the Nth year, where N is a positive integer greater than 2. After the test is completed, the final linear regression model is obtained, and the known aging delay data of the key subcircuit or key path to be tested is input into the model to obtain the aging prediction result. The detailed process is as follows:
[0072] Linear regression is a basic machine learning regression algorithm that uses a linear regression equation to model the relationship between one or more independent variables and a dependent variable. The linear regression algorithm represents the decision function by a linear superposition function, and uses the supervised learning method to minimize the loss function to obtain the best model for the training set samples. In this way, for a newly added x, the fitted model can be used for analysis and prediction. The linear regression model is:
[0073] y=wx+b (3)
[0074] Among them, x is the input feature vector, the input feature vector in the present invention is the aging delay data of the 0th year and the 1st year, y is the output label, the output label in the present invention is the aging delay data from the 2nd year to the Nth year, and w and b are model parameters.
[0075] The linear regression model contains parameters w and b. The common method for obtaining w and b is the least squares method, which minimizes the sum of the mean square errors of all target values to the straight line by finding a straight line. The least squares formula is as follows:
[0076]
[0077] The present invention uses the aging delay data of the key sub-circuit as a training set to establish a set T = {t a ,1≤a≤n},t a Represents all aging delay data of the ath critical subcircuit of the set; the circuit critical path delay is used as the test set, and the set K = {k b ,1≤b≤m},k b represents all the aging delay data of the bth critical path in the circuit. Since a small amount of known aging delay data of the path is used to obtain other unknown aging delay data of the path, t a and k b The data is divided into two categories: Represents t a The known aging delay data in , where x represents the dimension of the input feature vector, is used as the input data of the linear regression model training set. Represents t a The output data in , where y represents the dimension of the output label; Indicates k b The known aging delay data in is used as the input data of the linear regression model test set. Represents k b The output data in .
[0078] In summary, the input set T of T in , output set T out and the input set K in , output set K out The formula is as follows:
[0079]
[0080]
[0081]
[0082]
[0083] Train T with a linear regression model in and T out Get the model ML, so that for K in K in , we can use the ML model to get the predicted The machine learning model is as follows:
[0084]
[0085] Using the input set K in , output set K out The trained model is verified. During the verification process, the predicted value obtained by the model is compared with the accurate value using the root mean square percentage error rRMSE to calculate the prediction accuracy of the model. The formula is as follows:
[0086]
[0087] The following is a specific simulation experiment: In the experiment, four key subcircuits in the c1908 reference circuit are obtained. a ,1≤a≤4}0~10 years of aging delay (in ps), with a step length of 1 year; two circuit critical paths K={k b ,1≤b≤2}0~1 year aging delay (in ps), as shown in Table 1. According to the previous definition, T in 、T out and K in The results are formulas (11), (12) and (13) respectively. The area included by “-” in Table 1 is the predicted value.
[0088]
[0089]
[0090]
[0091] Table 1 C1908 benchmark circuit key subcircuit and key path aging delay
[0092]
[0093] The reference circuits C1908, C5315, s5378 and s13207 in ISCAS'85 and ISCAS'89 are selected to verify the idea of the present invention. The experimental conditions are set as a'=50%, T'=50°C. The experimental simulation results are as follows: Figure 3As shown. The black solid line in the figure represents the aging delay of the critical subcircuit, and the black dotted line represents the aging delay of the critical path of the circuit. The horizontal axis represents the aging time of the circuit, including time t=0, that is, the delay data without aging, and the vertical axis represents the aging delay at the corresponding time. It can be observed that the most drastic change in the aging delay occurs in the first year, while it maintains a slow growth trend in the following years. In addition, the aging delay trends of the critical subcircuit and the critical path are similar, and machine learning can simulate their trends very well, so that for the critical path, less aging delay data can be used to obtain all its aging delay data.
[0094] In order to evaluate the accuracy of the model under different experimental conditions, two conditions are considered, namely O = [a′, T′], a′ takes 1%, 25%, 50%, 75%, 99%, and T′ takes 25°C, 50°C, and 75°C. The critical path aging delay will be used as the comparison value of the model, and rRMSE will be used as a reliable indicator to evaluate the accuracy of the model. Figure 4 It is a scatter plot of the actual value and predicted value of one of the key paths of the s5378 circuit at temperature T′=50℃ and duty cycle a′ of 1%, 25%, 50%, 75%, and 99%. The actual value is on the x-axis and the predicted value is on the y-axis. It can be observed that the scatter points are all near the oblique line (45°). The proposed model can accurately predict the aging of the circuit. Table 2 is the average rRMSE of all key paths predicted by the s5378 benchmark circuit at T′=50℃ and a′ of 1%, 25%, 50%, 75%, and 99%. It can be seen that the average rRMSE is less than 0.25%.
[0095] Table 2 rRMSE (%) of s5378 circuit at T′=50℃ and different a′
[0096]
[0097] In order to verify that the model still has high accuracy at different temperatures, a′=50% was considered, and T′ was 25°C, 50°C, and 75°C respectively. Figure 5 It is a scatter plot of the predicted value and actual value of one of the key paths of the s5378 circuit under this condition. It can be observed that the model of the present invention can accurately predict the aging of the circuit even at different temperatures. Table 3 is the average rRMSE of all key paths predicted by the s5378 benchmark circuit when a′=50% and T′ is 25℃, 50℃, and 75℃ respectively. For the aging prediction at different temperatures, the rRMSE can also be kept within 0.25%.
[0098] Table 3 rRMSE (%) of s5378 circuit at a′=50% and different T′
[0099]
[0100] In order to prove that the model proposed in the present invention has better accuracy than other models, the method of the present invention is compared with "A Learning-Based Framework for Circuit Path-Level NBTIDegradationPrediction". The first column in Table 4 is the benchmark circuit selected from ISCAS'85 and ISCAS'89, the second column is the worst rRMSE under O=[a′=50%, T′=50℃] using the model proposed in the present invention, and the third column is the worst rRMSE obtained under the same experimental conditions using "A Learning-Based Framework for Circuit Path-Level NBTI DegradationPrediction". It can be seen that the model proposed in the present invention has a lower error rate. At the same time, compared with calculating the aging delay of the critical path, the model of the present invention only needs to calculate the aging delay of the critical sub-circuit, and the running time is also greatly optimized.
[0101] Table 4 Comparison of average aging prediction results under different model conditions
[0102]
[0103] Through the above technical scheme, the present invention uses a linear regression model to perform aging prediction, which is significantly faster than the existing technology. The training process uses data from key sub-circuits instead of key path data, which reduces the training complexity. All aging delay data can be obtained using the aging delay data of the 0th year and the 1st year, and the model calculation amount is greatly reduced, further improving the prediction speed. After the training is completed, it is also verified by a test set composed of key paths to ensure prediction accuracy. The entire scheme can meet both prediction accuracy and speed and meet application requirements.
[0104] Example 2
[0105] Based on embodiment 1, embodiment 2 of the present invention further provides a circuit path level NBTI aging prediction device based on key gates, the device comprising:
[0106] Dataset construction module, used to construct training sets and test sets;
[0107] A training module is used to train the linear regression model using the training set. During the training process, the input of the model is the aging delay data of the key subcircuit in the 0th and 1st years, and the output of the model is the aging delay data of the key subcircuit in the 2nd to Nth years, where N is a positive integer greater than 2.
[0108] The verification module is used to verify the trained linear regression model using the test set after the training is completed. The input of the model in the verification process is the aging delay data of the critical path in the 0th and 1st years, and the output of the model is the aging delay data of the critical path from the 2nd to the Nth year, where N is a positive integer greater than 2;
[0109] The prediction module is used to obtain the final linear regression model after the test is completed. The aging delay data of the 0th and 1st years of the critical path to be predicted are input into the final linear regression model to predict its aging delay data from the 2nd to the Nth year.
[0110] Specifically, the data set construction module further includes a step of obtaining a key subcircuit, and the step of obtaining a key subcircuit includes:
[0111] The circuit is represented by a directed graph, G = (V, E), V = {v i ,1≤i≤n} as a set of nodes, representing the gates in the circuit; E={e j ,1≤j≤m} as the edge set, representing the connection between gates; first establish the initial set TO i , v i Join TO i , then v i The predecessor node and successor node are added to the set To i and set TO1 i , To1 i Called v i A topological ring, then TO1 i The predecessor and successor nodes of each node in TO1, and these nodes are not included in TO1 i In, add TO i and TO2 i ,TO2 i Called v i The second-layer topology ring, and so on, TO3 i Called v i The three-layer topology ring finally obtained is TO i This is a three-layer ring subcircuit. By using the above method, we can find out the v of each node in the circuit. i Corresponding TO i , and calculate each To i The number of gates in the area, then, from TO1 to TO n The subcircuit with the most gates is selected as the key subcircuit.
[0112] More specifically, the data set construction module also includes a step of obtaining a key path, and the step of obtaining a key path includes:
[0113] Get the delay T before each path ages s The delay T of the longest path max , considering the timing margin T c and the upper limit of circuit aging max , then the formula T is satisfied s ×(1+Agine max )≥T max ×(1+T c ) are taken as potential critical paths of the circuit, and then the aging delay T of all paths in the PCP set within ten years is calculated using the backtracking algorithm based on the NBTI effect. d , satisfying the formula T d ≥T max ×(1+T c ) is added to the critical path set.
[0114] More specifically, the data set construction module is also used to:
[0115] Get the aging delay of each gate from the 0th to the Nth year;
[0116] The aging delay of each gate on the longest path of the critical subcircuit is accumulated to obtain the aging delay of the critical subcircuit from the 0th to the Nth year;
[0117] The aging delay from the 0th to the Nth year of each key sub-circuit is taken as a training sample, and multiple training samples are extracted to form a training set;
[0118] The aging delay of each gate in the critical path is accumulated to obtain the aging delay of the critical path from the 0th to the Nth year;
[0119] The aging delay from the 0th to the Nth year of each critical path is taken as a test sample, and multiple test samples are extracted to form a test set.
[0120] More specifically, the linear regression model architecture in the training module is:
[0121] y=wx+b
[0122] Among them, x is the input feature vector, y is the output label, and w and b are model parameters.
[0123] More specifically, the model is trained in the training module, and the training is completed when the prediction result error of the model is lower than a preset value.
[0124] More specifically, through the formula Get the prediction result error of the model, where q represents the model output data dimension. Indicates the actual output result. Represents the predicted result.
[0125] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A circuit path-level NBTI aging prediction method based on key gates, characterized in that: The method comprises: Step 1: Construct training set and test set; Step 2: Use the training set to train the linear regression model. During the training process, the input of the model is the aging delay data of the key subcircuit in the 0th and 1st year, and the output of the model is the aging delay data of the key subcircuit from the 2nd to the Nth year, where N is a positive integer greater than 2. Step 3: After the training is completed, the trained linear regression model is verified using the test set. During the verification process, the input of the model is the aging delay data of the critical path in the 0th and 1st years, and the output of the model is the aging delay data of the critical path from the 2nd to the Nth year, where N is a positive integer greater than 2. Step 4: After the test is completed, the final linear regression model is obtained, and the aging delay data of the critical path to be predicted in the 0th and 1st years are input into the final linear regression model to predict its aging delay data from the 2nd to the Nth year.
2. The circuit path level NBTI aging prediction method based on key gates according to claim 1 is characterized in that: The step of obtaining a key sub-circuit is also included before step 1, and the step of obtaining a key sub-circuit includes: The circuit is represented by a directed graph, G = (V, E), V = {v i , 1≤i≤n} as a set of nodes, representing the gates in the circuit; E={e j , 1≤j≤m} as the edge set, representing the connection between gates; first establish the initial set TO i , v i Join TO i , then v i The predecessor node and successor node are added to the set TO i and set TO1 i ,TO1 i Called v i A topological ring, then TO1 i The predecessor and successor nodes of each node in TO1, and these nodes are not included in TO1 i In, add TO i and TO2 i ,TO2 i Called v i The second-layer topology ring, and so on, TO3 i Called v i The three-layer topology ring finally obtained is TO i That is, a three-layer ring subcircuit. The above method is used to find the v of each node in the circuit. i Corresponding TO i , and calculate each TO i The number of gates in the area, then, from TO1 to TO n The subcircuit with the most gates is selected as the key subcircuit.
3. The circuit path level NBTI aging prediction method based on key gates according to claim 2 is characterized in that: The step of obtaining a critical path is also included before step 1, and the step of obtaining a critical path includes: Get the delay T before each path ages s The delay T of the longest path max , considering the timing margin T c and the upper limit of circuit aging Agine max , then the formula T is satisfied s ×(1+Agine max )≥T max ×(1+T c ) are taken as potential critical paths of the circuit, and then the aging delay T of all paths in the PCP set within ten years is calculated using the backtracking algorithm based on the NBTI effect. d , satisfying the formula T d ≥T max ×(1+T c ) is added to the critical path set.
4. The circuit path level NBTI aging prediction method based on key gates according to claim 3 is characterized in that: The step one comprises: Get the aging delay of each gate from the 0th to the Nth year; The aging delay of each gate on the longest path of the critical subcircuit is accumulated to obtain the aging delay of the critical subcircuit from the 0th to the Nth year; The aging delay from the 0th to the Nth year of each key sub-circuit is taken as a training sample, and multiple training samples are extracted to form a training set; The aging delay of each gate in the critical path is accumulated to obtain the aging delay of the critical path from the 0th to the Nth year; The aging delay from the 0th to the Nth year of each critical path is taken as a test sample, and multiple test samples are extracted to form a test set.
5. The circuit path level NBTI aging prediction method based on key gates according to claim 4 is characterized in that: The linear regression model architecture in step 2 is: y=wx+b Among them, x is the input feature vector, y is the output label, and w and b are model parameters.
6. The circuit path level NBTI aging prediction method based on key gates according to claim 5, characterized in that: In the step 2, the model is trained, and when the prediction result error of the model is lower than a preset value, the training is completed.
7. The circuit path level NBTI aging prediction method based on critical gates according to claim 6, characterized in that: By formula Get the prediction result error of the model, where q represents the model output data dimension. Indicates the actual output result. Represents the predicted result.
8. A circuit path-level NBTI aging prediction device based on key gates, characterized in that: The device comprises: Dataset construction module, used to construct training sets and test sets; A training module is used to train the linear regression model using the training set. During the training process, the input of the model is the aging delay data of the key subcircuit in the 0th and 1st years, and the output of the model is the aging delay data of the key subcircuit in the 2nd to Nth years, where N is a positive integer greater than 2. The verification module is used to verify the trained linear regression model using the test set after the training is completed. The input of the model in the verification process is the aging delay data of the critical path in the 0th and 1st years, and the output of the model is the aging delay data of the critical path from the 2nd to the Nth year, where N is a positive integer greater than 2; The prediction module is used to obtain the final linear regression model after the test is completed. The aging delay data of the 0th and 1st years of the critical path to be predicted are input into the final linear regression model to predict its aging delay data from the 2nd to the Nth year.
9. The circuit path level NBTI aging prediction device based on key gates according to claim 8, characterized in that: The data set construction module also includes a step of obtaining a key subcircuit, and the step of obtaining a key subcircuit includes: The circuit is represented by a directed graph, G = (V, E), V = {v i , 1≤i≤n} as a set of nodes, representing the gates in the circuit; E={e j , 1≤j≤m} as the edge set, representing the connection between gates; first establish the initial set TO i , v i Join TO i , then v i The predecessor node and successor node are added to the set TO i and set TO1 i ,TO1 i Called v i A topological ring, then TO1 i The predecessor and successor nodes of each node in TO1, and these nodes are not included in TO1 i In, add TO i and TO2 i ,TO2 i Called v i The second-layer topology ring, and so on, TO3 i Called v i The three-layer topology ring finally obtained is TO i That is, a three-layer ring subcircuit. The above method is used to find the v of each node in the circuit. i Corresponding TO i , and calculate each TO i The number of gates in the area, then, from TO1 to TO n The subcircuit with the most gates is selected as the key subcircuit.
10. The circuit path level NBTI aging prediction device based on key gates according to claim 9, characterized in that: The data set construction module also includes a step of obtaining a key path, and the step of obtaining a key path includes: Get the delay T before each path ages s The delay T of the longest path max , considering the timing margin T c and the upper limit of circuit aging Agine max , then the formula T is satisfied s ×(1+Agine max )≥T max ×(1+T c ) are taken as potential critical paths of the circuit, and then the aging delay T of all paths in the PCP set within ten years is calculated using the backtracking algorithm based on the NBTI effect. d , satisfying the formula T d ≥T max ×(1+T c ) is added to the critical path set.
