A large-scale memory reliability analysis method, device, storage medium and equipment
Through improved sub-RBF and MLP models, combined with slice vector and layer normalization operations, the problems of low accuracy and low efficiency in large-scale memory reliability analysis are solved, and efficient reliability analysis is achieved.
Patent Information
- Application Number
- CN202311279659.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-09-28
AI Technical Summary
The existing technology has problems of low accuracy and low efficiency in large-scale memory reliability analysis. Especially in high-dimensional parameter scenarios, it is difficult to ensure the accuracy of the model and reduce the model training overhead.
Using improved sub-RBF and MLP models, by dividing ultra-high-dimensional process parameters into slice vectors and connecting them using layer normalization operations, combined with the solution of the LASSO problem and the Relu nonlinear activation function, the model training overhead is reduced and the accuracy is improved. .
It greatly reduces model training overhead, improves model accuracy under limited training samples, and achieves a balance between efficiency and accuracy.
Smart Images

Figure CN117271173B
Abstract
Description
Technical Field
[0001] The present invention relates to a large-scale memory reliability analysis method, device, storage medium and equipment, belonging to the technical field of memory performance analysis. Background Art
[0002] Reliability analysis of memory usually requires running tens of thousands of Monte Carlo (MC) simulations, and then statistically evaluating the performance. However, since the memory is composed of millions of unit circuits, it is large in scale and requires transistor-level simulation to evaluate performance each time, so the overall time consumption is extremely long. Existing models that reduce simulation overhead by replacing transistor-level simulations show high accuracy on small-scale circuits. However, when the circuit scale increases and the input process parameters reach tens of thousands of dimensions, the modeling overhead increases significantly, resulting in low efficiency and difficulty in ensuring accuracy.
[0003] Traditional high-dimensional nonlinear models are implemented by decomposing high-dimensional functions into linear sums of low-dimensional functions. However, since the input parameters in the memory performance model have reached tens of thousands of dimensions, and with the advancement of technology, these parameters have complex nonlinear effects and interactions on performance. Therefore, it is extremely difficult to ensure the accuracy of the model under limited training samples. Moreover, in the tens of thousands of dimensional scenarios, the number of first-order terms alone exceeds ten thousand, and the second-order combinations of variables will reach hundreds of thousands, which will make the model training overhead unacceptable. Summary of the invention
[0004] The purpose of the present invention is to provide a large-scale memory reliability analysis method, device, storage medium and equipment to solve the problems of low accuracy and low efficiency in the prior art.
[0005] To achieve the above objectives, the present invention is implemented by adopting the following technical solutions:
[0006] In a first aspect, the present invention provides a large-scale memory reliability analysis method, comprising:
[0007] Obtaining ultra-high-dimensional process parameters in memory;
[0008] Segmenting the ultra-high-dimensional process parameters into slice vectors;
[0009] The slice vector is input into a trained memory reliability analysis model to obtain a circuit response, thereby completing the memory reliability analysis.
[0010] In combination with the first aspect, further, the memory reliability analysis model includes an improved sub-RBF and an MLP, wherein the improved sub-RBF is used to measure the influence of the slice vector on the circuit in the memory, and the MLP is used to establish a mapping relationship between the slice influence and the circuit response, and the improved sub-RBF and the MLP are connected through a layer normalization operation;
[0011] The slice vector is input into the improved sub-RBF to obtain a slice influence, and the slice influence is input into the MLP after a layer normalization operation to obtain a circuit response.
[0012] In combination with the first aspect, further, the expression of the slice influence is:
[0013]
[0014] Among them, f0 is a constant used to measure the zero-order effect of the reference point on the circuit, X0 is an ultra-high dimensional variable containing multiple slice vectors, is to use the slice vector x i The variable obtained by replacing the i-th slice vector in X0, Y is the simulated circuit response, f i (x i ) is x i first-order impact.
[0015] In combination with the first aspect, further, the expression of the improved sub-RBF is:
[0016] G sub-RBF (x) = G linear (x)+G RBF (x)
[0017]
[0018] Where x is the input slice vector, G sub-RBF (x) is the output of the improved sub-RBF, G RBF (x) is the traditional RBF output, G linear (x) is a linear prior, n is the dimension of x, and x l represents the lth slice vector, a l Represents x l The lth coefficient of , b represents the constant coefficient of the linear prior.
[0019] In combination with the first aspect, further, in the process of solving the linear prior, the solution of the objective function is converted into the solution of the LASSO problem, and the expression of the objective function is:
[0020]
[0021] Where Q(Ω) is the objective function, N is the number of input slice vectors, λ‖Ω‖1 is the L1 regularization term, and λ is the constant penalty coefficient;
[0022] The objective function is solved by a minimum angle regression algorithm.
[0023] In combination with the first aspect, further, the MLP includes 3 fully connected layers, the first layer is the input layer, the second layer is the intermediate hidden layer, and the third layer is the output layer. The slice influence is input into the input layer after layer normalization operation. The number of neurons in the hidden layer is more than twice the number of neurons in the input layer. The output layer has only one neuron, and each neuron is provided with a Relu nonlinear activation function.
[0024] In combination with the first aspect, further, dividing the ultra-high-dimensional process parameters into slice vectors includes:
[0025] The ultra-high-dimensional process parameters are divided into slice vectors according to the circuit nodes in the memory.
[0026] In a second aspect, the present invention further provides a large-scale memory reliability analysis device, comprising:
[0027] The parameter acquisition module is configured to: acquire ultra-high-dimensional process parameters in the memory;
[0028] A parameter segmentation module is configured to: segment the ultra-high-dimensional process parameters into slice vectors;
[0029] The reliability analysis module is configured to: input the slice vector into a trained memory reliability analysis model to obtain a circuit response and complete the memory reliability analysis.
[0030] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the large-scale memory reliability analysis method as described in any one of the first aspects.
[0031] In a third aspect, the present invention further provides a device, comprising:
[0032] A memory for storing instructions;
[0033] The processor is used to execute the instruction so that the device performs the operation of implementing the large-scale memory reliability analysis method as described in any one of the first aspects.
[0034] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0035] The present invention provides a large-scale memory reliability analysis method, device, storage medium and equipment, which greatly reduces the model training overhead by dividing and slicing the input parameters and fitting the slice influence in the trained memory reliability analysis model. This is due to the improved sub-RBF with linear prior and sparsity constraints. According to the idea of "divide and conquer", the scheme first uses sub-RBF to learn the slice influence, and then uses MLP to restore the relationship between the slice and the circuit response, thereby improving both efficiency and accuracy.
[0036] At the same time, unlike directly linearly accumulating the slice effects, this scheme directly performs black-box training on the slice effects and the final circuit response through a shallow MLP, thereby greatly improving the model accuracy under limited training samples. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a flow chart of a large-scale memory reliability analysis method provided by an embodiment of the present invention;
[0038] Figure 2 is a schematic diagram of a memory reliability analysis model provided by an embodiment of the present invention;
[0039] Figure 3 It is a schematic diagram of the working principle of the memory reliability analysis model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and are not intended to limit the protection scope of the present invention.
[0041] Example 1
[0042] As shown in the figure, the present invention provides a large-scale memory reliability analysis method, comprising the following steps:
[0043] S1. Obtain ultra-high-dimensional process parameters in the memory.
[0044] Ultra-high-dimensional process parameters refer to process parameters that affect memory performance indicators (such as the threshold voltage of each transistor, gate oxide thickness, length and width, etc.). Since the memory is composed of tens of thousands of transistors, the process parameters that affect memory performance reach tens or millions, so the process parameters of the memory are ultra-high-dimensional process parameters, which constitute a high-dimensional input vector that affects memory performance.
[0045] S2. Segment the ultra-high dimensional process parameters into slice vectors.
[0046] like Figure 3As shown, the ultra-high-dimensional process parameters are segmented according to the slicing points (circuit nodes in the memory) shown in the SRAM circuit example to obtain slicing vectors.
[0047] S3. Input the slice vector into a trained memory reliability analysis model to obtain a circuit response, thereby completing the memory reliability analysis.
[0048] The main body of the memory reliability analysis model is as follows Figure 2 As shown in the figure, it is a mixed neural network (Mixed Neural Network, Mixer), which mainly includes two parts: improved sub-RBF (sub-Radial Basis Function Network for learning local features of memory) and MLP (Multilayer Perceptron for learning global features). The improved sub-RBF is mainly used to learn the impact of each slice vector on circuit performance. Each slice vector is a multidimensional variable cut from the ultra-high-dimensional process parameters in the entire memory array. The MLP is used to learn the mapping relationship between each slice vector and the final circuit response.
[0049] Specifically, there are:
[0050] In order to measure the impact of slicing, this scheme vectorizes the high-dimensional model representation (HDMR) proposed by Sobol. Define X0 as the reference point and express the impact of the tangent vector as the superposition of hyperplanes passing through the reference point, which can be expressed as formula (1):
[0051]
[0052] Where X0=(x 10 , x 20 ,...x i0 , ..., x m0 ) is a very high-dimensional variable containing m slice vectors' is a slice vector containing n univariate variables. is to use x i The variable obtained by replacing the i-th slice in X0. Y is the corresponding simulated circuit response, that is, the memory performance. f0 is a constant used to measure the zero-order effect of the reference point on the circuit. i (x i ) is the slice vector x i first-order impact.
[0053] In order to reduce the modeling overhead, this scheme uses an improved sub-RBF network to fit fi (x i ), as follows:
[0054] G sub-RBF (x) = G linear (x)+G RBF (x) (2)
[0055]
[0056] Where n is the dimension of x, a l is a single variable x l The lth coefficient of . Although in Mixer, each improved sub-RBF only receives slice vectors of limited dimensions, the total training samples are the number of slice vectors multiplied by the training samples of a single improved sub-RBF. When the number of slice vectors is too large, the total training samples will also increase significantly. When the number of slice vectors is too small, the input dimension of each improved sub-RBF will increase, resulting in an increase in the training overhead of a single improved sub-RBF. In order to minimize the total training overhead of the improved sub-RBF, this scheme firstly adds a new RBF network to the traditional RBF network G. RBF (x) adds a linear prior G linear (x), at this time G RBF (x) is equivalent to G linear (x) is modified based on the G, thereby reducing the number of training samples and accelerating model convergence. Considering that only some parameters have a major impact on a specific circuit performance, the sparsity constraint of circuit performance can be used to increase the input dimension that a single sub-RBF can receive without increasing the number of training samples. linear (x) adds an L1 regularization term and converts the objective function into the solution of the LASSO problem. linear (x) process, useless variables in the slice are filtered out in advance.
[0057]
[0058] Where Ω=(a1,…a l ,…,a n ) is G linear The coefficient set in (x). λ‖Ω‖1 is the L1 regularization term used for sparse input parameters. λ is a constant penalty coefficient. The objective function can be easily solved by the Least Angle Regression algorithm (LAR), which is also commonly used to accelerate the LASSO solution process. In the process of solving equation (4), variables with zero coefficients in x can be filtered out by λ‖Ω‖1.
[0059] In order to further improve the accuracy of the model, this scheme uses MLP to learn the complex interactions and nonlinear relationships between slice vectors, rather than simply linearly accumulating the slice effects. The MLP of this scheme consists of 3 fully connected layers. The output of the improved sub-RBF is fully connected to the first layer. The number of neurons in the middle hidden layer is much larger than the number of neurons in the first layer, and each neuron is equipped with a Relu nonlinear activation function to enhance the nonlinear fitting ability of the MLP. In this scheme, when there are 9 sub-RBFs, the number of neurons in the first layer is at least 9, and the number of neurons in the hidden layer is preferably twice that of the first layer to ensure a sufficiently high fitting ability. Since this scheme establishes a regression model, the final output layer has only one neuron.
[0060] In the prediction phase, Mixer divides the high-dimensional input parameters into slice vectors according to the circuit nodes. The impact of these slice vectors on the circuit will be predicted by the improved sub-RBF, and then the output of the improved sub-RBF will be used as the input of the MLP to predict the final circuit response.
[0061] In the training phase, first generate a slice training set related to each improved sub-RBF. In the training set of the improved sub-RBF, the training samples are composed of circuit slices that generate fluctuations, and the circuit response corresponding to the sample is obtained by first splicing the slices that generate fluctuations with other fixed slices, then simulating the corresponding circuit performance, and finally subtracting the circuit performance corresponding to the reference hyperplane. For the training of MLP, this scheme first prepares a new data set. The samples of this data set are uniformly sampled in the entire parameter space, and each sample is evaluated by the simulator. Then, the samples in the new data set are segmented and sent to each improved sub-RBF to obtain the output of each improved sub-RBF. Finally, the output of each improved sub-RBF is used as the input variable of the MLP training set, and the simulation results corresponding to the samples in the new data are used as the output of the MLP training set, and finally the training of the MLP is completed.
[0062] Example 2
[0063] The embodiment of the present invention further provides a large-scale memory reliability analysis device, comprising:
[0064] The parameter acquisition module is configured to: acquire ultra-high-dimensional process parameters in the memory;
[0065] A parameter segmentation module is configured to: segment the ultra-high-dimensional process parameters into slice vectors;
[0066] The reliability analysis module is configured to: input the slice vector into a trained memory reliability analysis model to obtain a circuit response and complete the memory reliability analysis.
[0067] Example 3
[0068] The present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the large-scale memory reliability analysis method provided in Example 1 is implemented:
[0069] Obtaining ultra-high-dimensional process parameters in memory;
[0070] Segmenting the ultra-high-dimensional process parameters into slice vectors;
[0071] The slice vector is input into a trained memory reliability analysis model to obtain a circuit response, thereby completing the memory reliability analysis.
[0072] Example 4
[0073] The present invention provides a device, comprising:
[0074] A memory for storing instructions;
[0075] A processor, configured to execute the instruction so that the device performs operations to implement the large-scale memory reliability analysis method provided in Embodiment 1:
[0076] Obtaining ultra-high-dimensional process parameters in memory;
[0077] Segmenting the ultra-high-dimensional process parameters into slice vectors;
[0078] The slice vector is input into a trained memory reliability analysis model to obtain a circuit response, thereby completing the memory reliability analysis.
[0079] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0080] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0081] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0082] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0083] 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 large-scale memory reliability analysis method, characterized in that: include: Obtaining ultra-high-dimensional process parameters in memory; Segmenting the ultra-high-dimensional process parameters into slice vectors; Inputting the slice vector into a trained memory reliability analysis model to obtain a circuit response and complete the memory reliability analysis; The memory reliability analysis model includes an improved sub-RBF and an MLP, wherein the improved sub-RBF is used to measure the influence of a slice vector on a circuit in the memory, and the MLP is used to establish a mapping relationship between the slice influence and the circuit response, and the improved sub-RBF and the MLP are connected through a layer normalization operation; The slice vector is input into the improved sub-RBF to obtain a slice effect, and the slice effect is input into the MLP after a layer normalization operation to obtain a circuit response; The expression of the slice effect is: Among them, f0 is a constant used to measure the zero-order effect of the reference point on the circuit, X0 is an ultra-high dimensional variable containing multiple slice vectors, is to use the slice vector x i The variable obtained by replacing the i-th slice vector in X0, Y is the simulated circuit response, f i (x i ) is x i The first-order impact of The expression of the improved sub-RBF is: G sub-RBF (x)=G linear (x)+G RBF (x) Where x is the input slice vector, G sub-RBF (x) is the output of the improved sub-RBF, G RBF (x) is the traditional RBF output, G linear (x) is a linear prior, n is the dimension of x, and x l represents the lth slice vector, a l Represents x l The lth coefficient of , b represents the constant coefficient of the linear prior.
2. The large-scale memory reliability analysis method according to claim 1, characterized in that: In the process of solving the linear prior, the solution of the objective function is converted into the solution of the LASSO problem. The expression of the objective function is: Where Q(Ω) is the objective function, N is the number of input slice vectors, λ||Ω||1 is the L1 regularization term, and λ is the constant penalty coefficient; The objective function is solved by a minimum angle regression algorithm.
3. The large-scale memory reliability analysis method according to claim 1, characterized in that: The MLP includes three fully connected layers, the first layer is the input layer, the second layer is the middle hidden layer, and the third layer is the output layer. The slice influence is input into the input layer after layer normalization operation. The number of neurons in the hidden layer is more than twice the number of neurons in the input layer. The output layer has only one neuron, and each neuron is provided with a Relu nonlinear activation function.
4. The large-scale memory reliability analysis method according to claim 1, characterized in that: The step of dividing the ultra-high-dimensional process parameters into slice vectors includes: The ultra-high-dimensional process parameters are divided into slice vectors according to the circuit nodes in the memory.
5. A large-scale memory reliability analysis device, characterized in that: include: The parameter acquisition module is configured to: acquire ultra-high-dimensional process parameters in the memory; A parameter segmentation module is configured to: segment the ultra-high-dimensional process parameters into slice vectors; The reliability analysis module is configured to: input the slice vector into a trained memory reliability analysis model to obtain a circuit response and complete the memory reliability analysis; The memory reliability analysis model includes an improved sub-RBF and an MLP, wherein the improved sub-RBF is used to measure the influence of a slice vector on a circuit in the memory, and the MLP is used to establish a mapping relationship between the slice influence and the circuit response, and the improved sub-RBF and the MLP are connected through a layer normalization operation; The slice vector is input into the improved sub-RBF to obtain a slice effect, and the slice effect is input into the MLP after a layer normalization operation to obtain a circuit response; The expression of the slice effect is: Among them, f0 is a constant used to measure the zero-order effect of the reference point on the circuit, X0 is an ultra-high dimensional variable containing multiple slice vectors, is to use the slice vector x i The variable obtained by replacing the i-th slice vector in X0, Y is the simulated circuit response, f i (x i ) is x i The first-order impact of The expression of the improved sub-RBF is: G sub-RBF (x)=G linear (x)+G RBF (x) Where x is the input slice vector, G sub-RBF (x) is the output of the improved sub-RBF, G RBF (x) is the traditional RBF output, G linear (x) is a linear prior, n is the dimension of x, and x l represents the lth slice vector, a l Represents x l The lth coefficient of , b represents the constant coefficient of the linear prior.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the large-scale memory reliability analysis method according to any one of claims 1 to 4 is implemented.
7. A device, characterized in that: include: A memory for storing instructions; A processor is used to execute the instructions so that the device performs operations to implement the large-scale memory reliability analysis method according to any one of claims 1 to 4.
