Construction method for resistive random access memory chip failure model
The RRAM chip failure model is constructed through the LSTM model, and the simulation environment is used to obtain nine-dimensional data for training, which solves the problems of low prediction accuracy and high number of operations in the existing technology, and achieves more accurate and timely memory unit failure prediction.
Patent Information
- Application Number
- PCT/CN2023/134711
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-16
- Filing Date
- 2023-11-28
- Publication Date
- 2024-09-19
AI Technical Summary
The prediction accuracy of existing RRAM chip failure models is not high, the prediction cycle includes too many operations, and the optimization scheme is complex, making it difficult to achieve timely and accurate failure predictions for chip storage units.
The long short-term memory network (LSTM) is used to construct the RRAM chip failure model. The nine-dimensional data of the storage unit is obtained in a simulation environment for preprocessing and training, and a time series model is established to reduce the number of set/reset operations within the prediction cycle and improve the model. prediction accuracy.
It improves the accuracy of RRAM chip failure prediction, shortens the number of set/reset operations within the prediction cycle, achieves more timely storage unit failure prediction, and reduces the error rate.
Smart Images

Figure CN2023134711_19092024_PF_FP_ABST
Abstract
Description
A method for constructing a failure model of a resistive memory chip Technical Field
[0001] The present disclosure relates to the field of chip reliability technology, and in particular to a method for constructing a failure model of a resistive random access memory chip. Background Art
[0002] Resistive random access memory (RRAM) is an embedded non-volatile memory (NVM) suitable for advanced process nodes. It offers advantages such as low power consumption, high reliability, and good compatibility with CMOS processes, making it highly valuable for IoT devices. However, RRAM chips commonly face issues such as write errors, read disturb, read errors, and thermal stability, complicating their large-scale application. RRAM's complex failure modes include "true failure" and "false failure" as the number of consecutive erases and writes to a memory cell increases. Constructing a failure model tailored to the failure modes of RRAM cells and predicting their failure behavior can more efficiently allocate storage space, improving both cell utilization and memory reliability.
[0003] Current models for RRAM chip failure behavior, limited by test cycles and evaluation methods, often rely on physical models based on the physical quantity changes and failure mechanisms of individual devices. However, due to the inevitable presence of noise and defects in system and process manufacturing, physical models lack high reference value for chip-level failure prediction. With the popularization of machine learning and neural networks, research on chip-level RRAM failure models based on statistical data has begun. Currently, only one paper (Iwasaki.T, Ning.S, Yamazawa.H, Sun.C, Tanakamaru.S and Takeuchi.K, "Machine learning prediction for 13X endurance enhancement in ReRAM SSD system," IEEE IMW) addresses RRAM chip-level lifespan prediction. The model constructed suffers from low prediction accuracy, excessive number of operations included in the prediction cycle, and a relatively complex optimization scheme. Therefore, there is an urgent need for a method to construct a failure model for RRAM chips that can achieve more timely and accurate failure prediction of RRAM cells at the chip level, providing a basis for pre-allocation of storage space and execution of repair operations, thereby reducing the error rate of RRAM chip storage cells.
[0004] Summary of the Invention
[0005] In view of the above analysis, the embodiments of the present disclosure aim to provide a method for constructing a resistive random access memory failure model to solve the problem that the RRAM chip failure model constructed by the existing method has too many operations within the prediction cycle and low prediction accuracy.
[0006] In one aspect, an embodiment of the present disclosure provides a method for constructing a failure model of a resistive random access memory, comprising the following steps:
[0007] Obtain the original data D of the resistive memory chip when each storage unit completes the preset simulation cycle number read and write operations in the simulation environment t ;
[0008] The raw data is preprocessed to construct a dataset D1 with a data structure of K×9×T. Dataset D1 is then labeled as either true failures or false failures to obtain a training dataset D2. K is the total number of memory cells in the RRAM chip, and T is the number of simulation cycles covered by the raw data.
[0009] Use the model training data set D2 to train the failure model M and obtain the final failure model M trained .
[0010] Furthermore, the failure model M includes K LSTM replica models with the same parameters {M [0] , M [1] ,......,M [K-1] Different replica models are used to perform independent forward inference and error calculation on the K storage units.
[0011] Furthermore, the original data is preprocessed to obtain the input data X containing nine dimensions. t ={FV t , SR t , RR t , SF t , RF t , SVAR t , RVAR t ,SVOL t , RVOL t}, constructing the data set D1 based on the input data of the nine dimensions;
[0012] Among them, FV t is the forming voltage, SR t is the normalized set resistance value, RR t is the normalized reset resistance, SF t is the local fluctuation parameter of the set resistance value, RF t is the local fluctuation parameter of the reset resistance, SVAR t is the global volatility parameter of the set resistance, RVARt is the global fluctuation parameter of the reset resistance, SVOL t is the average set voltage, RVOL t is the average reset voltage.
[0013] Furthermore, the original data D is obtained. t include:
[0014] (1) Performing a forming operation on the RRAM chip to turn each memory cell in the chip into a conductive state, and recording the forming operation voltage FV;
[0015] (2) Verify the forming effect and record the forming resistance R of each memory cell f And the output result O;
[0016] (3) Setting the formed chip, recording the resistance value SR_RAW and the corresponding setting voltage SVOL_RAW of each memory cell when the setting is successful, or recording the resistance value SR_RAW and the corresponding setting voltage SVOL_RAW of each memory cell when the setting reaches a preset number of times but still fails, and outputting the result 0; wherein the setting success includes a single setting success, or a step-by-step setting success before reaching the preset number of times;
[0017] (4) Reset the formed chip, record the resistance value RR_RAW and the corresponding reset voltage RVOL_RAW of each memory cell when the reset is successful, or record the resistance value RR_RAW and the corresponding reset voltage RVOL_RAW of each memory cell when the reset reaches a preset number of times and still fails, and output the result 0;
[0018] (5) Repeat the set and reset operations to complete a preset number of cycles N within a span; specifically, repeat (3) to (4) until the preset number of cycles are completed, which is considered to be a span, and then execute (6);
[0019] (6) Repeat the read operation on the chip memory array for a preset number of times n to obtain the reset resistance value sample R for calculating the reset resistance value fluctuation r ;
[0020] (7) Set the chip and record the resistance value R of each storage unit when the setting is successful set and the current set voltage V set , or record the resistance value R of each storage unit when the setting reaches the preset number of times and still fails set and the current set voltage V set , and output result O;
[0021] (8) Repeat the read operation for a preset number of times n to obtain the set resistance value sample R for calculating the set resistance value fluctuation s ;
[0022] (9) (3) to (8) are recorded as a simulation cycle. Repeat T simulation cycles to obtain the original data D t ={FV,SVOL_RAW,RVOL_RAW,SR_RAW,RR_RAW,R r , R s , R set , V set} t .
[0023] Furthermore, the input data X containing nine dimensions is obtained. t ,include:
[0024] FV t The value of the first time slice in is the FV in the original data, and the rest are set to 0;
[0025] SR t The average value of the raw set resistance SR_RAW is divided by the stable low resistance R of the RRAM. low Then we get: low It is the low resistance value of the memory cell when the RRAM chip is working normally;
[0026] RR t The average value of the raw reset resistance RR_RAW is divided by the stable high resistance R of the RRAM. high Then we get: high This is the high resistance value of the memory cell when the RRAM chip is working normally;
[0027] SF t It is obtained by normalizing the set resistance value sample and performing convolution summation with the one-dimensional edge detection operator [-1, 0, 1];
[0028] RF t It is obtained by normalizing the reset resistance sample and performing convolution summation with the one-dimensional edge detection operator [-1, 0, 1];
[0029] SVAR t It is obtained by normalizing each resistance value in the set resistance value sample and then calculating the variance;
[0030] RVAR t Obtained by normalizing each resistance value in the reset resistance sample and then calculating the variance;
[0031] SVOL t It is obtained by averaging all recorded set voltages within a span of the simulation cycle;
[0032] RVOL tObtained by averaging all recorded reset voltages within a span of the simulation cycle.
[0033] Furthermore, the binary classification of true failure or false failure includes:
[0034] (1) According to the output result O in each span of the t+1th simulation cycle t+1[i] , determine the state result S of the storage unit in the t+1th simulation cycle t[i] ; The basis for judgment is:
[0035] a) When O t+1[i] When the setting success or reset success is not included in the status result S t+1[i] =0, indicating that the storage unit has a true failure in the t+1th simulation cycle;
[0036] b) In cases other than a), the status result is S t+1[i] =1, indicating that the memory cell has a false failure in the t+1th simulation cycle;
[0037] (2) According to the status result S t+1[i] , for X t[i] Mark the corresponding label The superscripts 0 and 1 are the index values of the two-dimensional vector; the notation method is:
[0038] i. When the state result S t+1[i] =0, X t[i] The corresponding label c t[i] =[1,0]t;
[0039] ii. When the status result S t+1[i] =1, X t[i] The corresponding label c t[i] =[0,1] t .
[0040] Furthermore, the training data set D2 is obtained, which includes:
[0041] Construct T K×2 matrices in units of time slices as the external input X of the failure model M t Corresponding label C t , where C t ={C [0] , C [1] ,......,C [K-1]} t ;
[0042] X t and the corresponding label C t Composition model training data D 2_t , construct T D in time slices2_t As the model training data set D2, where D2 = {D 2_0 , D 2_1 ,......,D 2_T-1}.
[0043] Furthermore, the failure model M is constructed based on LSTM, and neural network calculation is realized through unit parameters and control gates; the control gates include: forget gate FG, input gate IG and output gate OG, and their formulas are: FG=sigmoid(I t ×WF+BF); IG=sigmoid(I t ×WI+BI); OG=sigmoid(I t ×WO+BO);
[0044] Among them, WF, WI, and WO are the current neural network input I of the current time slice by the forget gate, input gate, and output gate respectively. t The weight of affine transformation; BF, BI, BO are the offsets of affine transformation of forget gate, input gate and output gate respectively; the current neural network input I t By externally inputting the current neural network into X t[i] and the hidden state H of the previous time slice t-1 Get by splicing;
[0045] The cell parameters include: cell state (Cell State) C t 、Hidden State H t and the state update value U t , and their formulas are: U t =tanh(I t ×WC+BC) C t =FG·C t-1 +IG·U t H t =OG·tanh(C t )
[0046] Among them, WC is the weight of the affine transformation, and BC is the offset of the affine transformation.
[0047] Furthermore, the iterative calculation of the failure model M includes:
[0048] (1) The input data of each time slice {D2} t , split into K 9-dimensional vectors and input them into K LSTM replica models with the same parameters;
[0049] (2) Set the current time slice T t The current neural network external input Xt[i] With the previous time slice T t-1 The hidden state H t-1 Splice and get the current time slice T t The current neural network input I t ;
[0050] (3) Input the current neural network into I t After affine transformation and activation by tanh function, the current state update value U is obtained t ;
[0051] (4) Combine the forget gate FG and the previous time slice T t-1 The cell state C t-1 Point-by-point multiplication, input gate IG and current update value U t Multiply point by point and add the two results to get the current cell state C t ;
[0052] (5) Set the current cell state C t After tanh activation, it is multiplied point by point with the output gate OG to obtain the current hidden state Ht;
[0053] (6) The current hidden state H t Through affine transformation to two-dimensional space, and activation by softmax function to obtain the current two-dimensional vector P t , take P t The index value of the element with the larger value in the two elements is used as the current model output Y t[i] ;
[0054] (7) The current hidden state Ht is re-entered into the neural network to join the next time slice T t+1 Repeat (2) to (7) until the two-dimensional vector calculation results of all time slices are obtained;
[0055] (8) The two-dimensional vector P t Splice along the time dimension to form an output array P of K×TS×2; t Splice along the time dimension to form a K×TS×2 output array C; compare P with C and use cross entropy as the loss function, which is as follows:
[0056] Among them, TS is the training span, and its value is the training set D train The number of time slices covered; K is the total number of storage units in the RRAM chip, and the data structure of the label of a single storage unit is [c 0 , c 1 ], i represents the i-th storage unit, t represents the t-th time slice;
[0057] Backpropagate the loss and update the weights of K LSTM copies simultaneously until the loss no longer decreases. Get K trained LSTM copies and select any copy as the final model M. trained ; where M trained ={M trained_[0] , M trained_[1] ,......,M trained_[K-1]}; Preferably, the Adam optimizer is used for back propagation of the neural network and updating weights;
[0058] Furthermore, the use of the model training data set D2 to train the failure model M includes:
[0059] The model training data set D2 is divided into training sets D by time slices. train and the test set D test ; The first TS time slice data in D2 is divided into training set, D train ={D 2_0 , D 2_1 ,......,D 2_TS-1}, the data of the last T-TS time slices are divided into the test set, D test ={D 2_TS-1 , D 2_TS ,......,D 2_T-1};
[0060] Initialize the failure model M, set the initial values of the LSTM unit state and hidden state to 0; construct M into K LSTM replica models with the same parameters {M [0] , M [1] ,......,M [K-1]}
[0061] D train The input data for each time slice in {D2} t , split into K 9-dimensional vectors X t ={X [0] , X [1] ,......,X [K-1]} t , respectively input the split data into K LSTM replica models with the same parameters M={M [0] , M [1] ,......,M [K-1] Complete model training and obtain K trained replica models, and select one of them as the final model M trained , using D test To M trained Conducting tests
[0062] Compared with the prior art, the present disclosure can achieve at least the following beneficial effects:
[0063] 1. We used a long-short-term memory network (LSTM), which is more temporally relevant to the failure behavior of RRAM chips, to construct an RRAM chip failure model. By simulating the normal chip operation, we rationally set the number of operations in the prediction cycle and obtained a large number of storage cell-related parameters as raw data. This data was then used to construct a dimensional, rich model input data, enabling the model to be fully trained and improving the accuracy of the model prediction.
[0064] 2. The input of the model uses nine-dimensional data, among which the three parameters related to voltage are SVOL t , RVOL t , FV t Contains key external operating information of the RRAM chip and six parameters related to resistance SR t , RR t , SF t , RF t , SVAR t , RVAR t It contains the main physical state information of the RRAM chip storage unit, which is very consistent with the physical model of the RRAM resistive switching process. The time series model established based on this is more scientific and effective. t / RF t , SVAR t / RVAR t , respectively characterizing the local and global fluctuations of resistance, taking into account the random fluctuations and jumps of RRAM resistance into the model input, more comprehensively reflecting the physical state of the RRAM device and reducing the impact of random factors on the prediction results;
[0065] 3. Compared with the disadvantage of the existing model that includes too many set / reset operations in one prediction cycle, the model obtained by the construction method disclosed in the present invention realizes the prediction of storage units with fewer set / reset operations in one prediction cycle. That is, the prediction model constructed by the existing method needs to include 100,000 set / reset operations in one prediction cycle, and the model constructed by the method disclosed in the present invention can reduce the number of set / reset operations included in one prediction cycle to 500 times, which can predict the storage units more timely.
[0066] In the present disclosure, the above-mentioned technical solutions can be combined with each other to achieve more preferred combination solutions. Other features and advantages of the present disclosure will be described in the subsequent description, and some advantages will become apparent from the description or be understood through practice of the present disclosure. The objectives and other advantages of the present disclosure can be achieved and obtained through the contents particularly pointed out in the description and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The drawings are only for purposes of illustrating particular embodiments and are not to be considered limiting of the present disclosure. Like reference characters designate like components throughout the drawings.
[0068] FIG1 is a flow chart of a method for constructing a failure model of a resistive memory chip according to an embodiment of the present disclosure;
[0069] FIG2 is a schematic diagram of a RRAM chip storage unit and array structure according to an embodiment of the present disclosure;
[0070] FIG3 is a flowchart of obtaining raw data according to an embodiment of the present disclosure;
[0071] FIG4 is a schematic diagram of the overall LSTM architecture of an embodiment of the present disclosure;
[0072] FIG5 is a schematic diagram of a model training based on LSTM according to an embodiment of the present disclosure;
[0073] FIG6 is a schematic diagram of a method for predicting an RRAM chip lifespan model according to an embodiment of the present disclosure;
[0074] FIG7 is a bar chart showing the statistical results of the prediction accuracy of the prediction task model including different time slices according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0075] The preferred embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present disclosure to illustrate the principles of the present disclosure, and are not used to limit the scope of the present disclosure.
[0076] A specific embodiment of the present disclosure discloses a method for constructing a failure model of a resistive memory chip, as shown in FIG1 , including the following steps:
[0077] Step S110: Obtain the original data D of each storage unit of the resistive memory chip completing the preset simulation cycle number of read and write operations under the simulation environment. t ;
[0078] Step S120: Preprocess the raw data to construct a dataset D1 with a data structure of K×9×T. Binary classification of true failures or false failures is performed on the dataset D1 to obtain a training dataset D2. K is the total number of memory cells in the RRAM chip; T is the number of simulation cycles covered by the raw data.
[0079] Step S130: Use the model training data set D2 to train the failure model M to obtain the final failure model M trained .
[0080] Specifically, in step S110, the original data D t={D t[0] , D t[1] ,......,D t[K-1]}, where D t[i] ={FV, SVOL_RAW [i] , RVOL_RAW [i] ,SR_RAW [i] ,RR_RAW [i] , R r[i] , R s[i] , R set[i] , V set[i]} t , t represents the t-th simulation cycle, t∈[0, T-1], i represents the i-th storage unit, i∈[0, K-1]; K is the total number of storage units in the RRAM chip;
[0081] More specifically, FV represents the forming operation voltage; Respectively characterize the set voltage and reset voltage of each memory cell in N set-reset cycle operations within a span of each simulation cycle in all TS simulation cycles; Respectively representing the N original set resistance values and N original reset resistance values read after each memory cell undergoes N set-reset cycle operations within a span of each simulation cycle in all TS simulation cycles; Respectively represent the reset resistance value obtained by n consecutive read operations after a span operation and the set resistance value obtained by n consecutive read operations after a set operation of each memory cell in each simulation cycle of all T simulation cycles; where t∈[0,T-1] represents the t-th simulation cycle, i represents the i-th memory cell, i∈[0,K-1]; K is the total number of memory cells in the RRAM chip;
[0082] Furthermore, the original data D t It is obtained by reading and writing the circuit and using the test software to perform the following steps:
[0083] (1) Performing a forming operation on the RRAM chip to turn each memory cell in the chip into a conducting state, and recording a forming operation voltage FV; specifically, performing a forming operation on a brand new RRAM chip, applying a pulse of a forming operation voltage to a source line terminal (SL terminal) of a chip memory array to turn each memory cell in the chip into a conducting state, and recording a forming voltage FV = 1.7V; wherein the forming operation voltage FV is set according to the actual predicted forming operation voltage of the chip, and the range is 1.5V to 2.5V; preferably, the forming operation voltage pulse is 1.7V / 3us, and FV = 1.7V;
[0084] (2) Verify the forming effect and record the forming resistance R of each memory cell f Specifically, the forming effect is verified by a read operation, a read operation voltage is applied to the bit line terminal (BL terminal) of the chip memory array, and the resistance value of each memory cell is read to determine whether it is within the resistance value range of a successful forming operation; when the read resistance value is within the resistance value range of a successful forming operation, the result O is output. [i] The forming is successful and the resistance value R is recorded. f[i] , execute (3); otherwise, output the result O [i] It is forming failure and the resistance value R is recorded. f[i] Execute (3); wherein i represents the i-th storage unit; optionally, the resistance of the read device is reduced from the MΩ level to the KΩ level, and the output molding is successful; preferably, the resistance range for the molding operation to be successful is below 700KΩ; wherein, the read operation voltage is set according to the actual predicted chip read operation voltage, and the range is 0.1V to 0.4V; preferably, the read operation voltage is 0.3V;
[0085] (3) Setting the formed chip, recording the resistance value SR_RAW and the corresponding setting voltage SVOL_RAW of each memory cell when the setting is successful, or recording the resistance value SR_RAW and the corresponding setting voltage SVOL_RAW of each memory cell when the setting reaches a preset number of times but still fails, and outputting the result O; wherein the setting success includes a single setting success, or a step-by-step setting success before reaching the preset number of times. Specifically, it includes the following a to c;
[0086] a. performing a set operation on the formed chip memory array, applying a set operation voltage pulse to the bit line terminal (BL terminal) of the memory cell to be set in the chip memory array; wherein the initial value of the set operation voltage is set according to the initial value of the set operation voltage of the chip during actual prediction, the initial memory cells to be set are all memory cells, and the set operation voltage range is 0.8V to 2.5V; preferably, the initial set operation voltage is a set operation voltage that enables the RRAM chip to operate stably, and the initial set operation pulse is 1.2V / 700ns;
[0087] b. Verify the validity of the setting, record the resistance of each memory cell and the current set voltage when the setting is successful; read the resistance of each memory cell after the setting a through a read operation to determine whether it is within the resistance range under the setting success condition; when the read resistance value is within the resistance range under the setting validity condition, output the result O [i]The setting is successful (set success) and the resistance value SR_RAW is recorded [i] and the current set voltage SVOL_RAW [i] , where i represents the i-th storage unit, execute (4); otherwise, the storage unit is still a storage unit to be set, execute c; preferably, the resistance range under the setting success condition is less than the stable low resistance R low ; where R low It is the low resistance value of the storage unit when the RRAM chip is working normally, and it is also the low resistance value in the most stable state. Preferably, R low The value is 35kΩ;
[0088] c. gradually set until the set fails, record the resistance value and current set voltage of each memory cell that fails to set; specifically, gradually set, gradually increase the current value of the set operation voltage by a preset increase value, repeat a, b, until the step-by-step set operation reaches a preset number of times, and output the result O [i] To set fail, record the resistance value and the current set voltage Execute (4); wherein i represents the i-th storage unit, i∈[0, K-1]; K is the total number of storage units in the RRAM chip; optionally, the preset increment value is 1 to 10 integer multiples of 0.05V; preferably, the preset increment value is 0.1V, and the preset number of the step-by-step setting operation is 7 times;
[0089] (4) Reset the formed chip, record the resistance value RR_RAW and the corresponding reset voltage RVOL_RAW of each memory cell when the reset is successful, or record the resistance value RR_RAW and the corresponding reset voltage RVOL_RAW of each memory cell when the reset reaches a preset number of times but still fails, and output the result O; where a successful reset includes a successful reset once, or a successful reset after step-by-step resetting without reaching a preset number of times. Specifically, it includes the following a to c;
[0090] a. performing a reset operation on the chip memory array by applying a reset voltage pulse to the source line terminal (SL terminal) of the memory cell to be reset; wherein the initial value of the reset voltage is set according to the initial value of the reset operating voltage of the chip during actual prediction, the memory cells to be initially set are all memory cells, and the reset operating voltage range is 1V to 3V; preferably, the initial reset operating voltage is the set operating voltage that enables the RRAM chip to operate stably, and the initial reset operating pulse is 1.6V / 700ns;
[0091] b. Verify the reset validity, record the resistance of each memory cell and the current reset voltage when the reset is successful; read the resistance of each memory cell after a reset by a read operation to determine whether it is within the resistance range of a successful reset; when the read resistance is within the reset effective resistance range, output the result O [i] To indicate a successful reset, record the resistance value. and the current reset voltage Where i represents the i-th storage unit, i∈[0, K-1]; K is the total number of storage units in the RRAM chip, execute (5); otherwise, execute c; preferably, the resistance range under the reset success condition is greater than the stable high resistance R high ; where R high It is the high resistance value of the storage unit when the RRAM chip is working normally, and it is also the high resistance value in the most stable state. Preferably, R high The value is 200KΩ;
[0092] c. Gradually reset until the reset fails, record the resistance of each memory cell and the current reset voltage that failed to reset; specifically, gradually reset, gradually increase the current value of the reset operation voltage by a preset increase value, repeat a, b, until the reset operation reaches a preset number of times, and output the result O [i] If reset fails, record the resistance value. and the current set voltage Execute (5); wherein i represents the i-th storage unit, i∈[0, K-1]; K is the total number of storage units in the RRAM chip; optionally, the preset increment value is 1 to 10 integer multiples of 0.05V; preferably, the preset increment value is 0.1V, and the preset number of the step-by-step reset operation is 7 times;
[0093] (5) Repeat the set and reset operations to complete a preset number of cycles N within a span; specifically, repeat (3) to (4) until the preset number of cycles are completed, which is considered to be a span, and then execute (6); preferably, the preset number of cycles is set to 500;
[0094] (6) Repeat the read operation on the chip memory array for a preset number of times n to obtain the reset resistance value sample R for calculating the reset resistance value fluctuation r Specifically, a read operation is used to read and record the resistance values of all storage cells, and this is repeated n times to obtain n resistance records of each storage cell; wherein the value of n should be a compromise between being able to obtain resistance volatility and reducing the impact on the life of the storage cell; preferably, the value of n is 100, Where i represents the i-th memory cell, i∈[0,K-1]; K is the total number of memory cells in the RRAM chip;
[0095] (7) Set the chip and record the resistance value R of each storage unit when the setting is successful set and the current set voltage V set , or record the resistance value R of each storage unit when the setting reaches the preset number of times and still fails set and the current set voltage V set , and output result O; wherein the setting success includes a single setting success, or a step-by-step setting success before reaching a preset number of times. Specifically, it includes the following a to c;
[0096] a. performing a set operation on the chip memory array, applying a set operation voltage pulse to the bit line terminal (BL terminal) of the memory cell to be set in the chip memory array; wherein the initial value of the set operation voltage is set according to the initial value of the set operation voltage of the chip during actual prediction, the initial memory cells to be set are all memory cells, and the set operation voltage range is 0.8V to 2.5V; preferably, the initial set operation voltage pulse is 1.2V / 700ns;
[0097] b. Verify the validity of the setting, record the resistance of each memory cell and the current set voltage when the setting is successful; read the resistance of each memory cell after the setting a through a read operation to determine whether it is within the resistance range under the setting success condition; when the read resistance value is within the resistance range under the setting validity condition, output the result O [i] The setting is successful (set success) and the resistance value is recorded and the current set voltage Where i represents the i-th storage unit, execute (8); otherwise, the storage unit is still a storage unit to be set, execute c; preferably, the resistance range under the setting success condition is less than the stable low resistance R low ; where R low It is the low resistance value of the storage unit when the RRAM chip is working normally, and it is also the low resistance value in the most stable state. Preferably, R low The value is 35kΩ;
[0098] c. Set the memory cells step by step until the setting fails, and record the resistance value R of each memory cell that fails to set. set and the current set voltage V set Specifically, gradually set, gradually increase the current value of the set operation voltage by a preset increase value, repeat a, b, until the step-by-step set operation reaches a preset number of times, and output the result O [i] For set fail, record the resistance value R set[i] and the current set voltage V set[i], execute (8); wherein i represents the i-th storage unit, i∈[0,K-1]; K is the total number of storage units in the RRAM chip; optionally, the preset increment value is 1 to 10 integer multiples of 0.05v; preferably, the preset increment value is 0.1v, and the preset number of the step-by-step setting operation is 7 times;
[0099] (8) Repeat the read operation for a preset number of times n to obtain the set resistance value sample R for calculating the set resistance value fluctuation s Specifically, a read operation is used to read and record the resistance values of all storage cells, and this is repeated n times to obtain n resistance records of each storage cell; wherein the value of n should be a compromise between being able to obtain resistance volatility and reducing the impact on the life of the storage cell; preferably, the value of n is 100, Where i represents the i-th memory cell, i∈[0,K-1]; K is the total number of memory cells in the RRAM chip;
[0100] (9) (3) to (8) are recorded as a simulation cycle. Repeat T simulation cycles to obtain the original data D t ={FV, SVOL_RAW, RVOL_RAW, SR_RAW, RR_RAW, R r , R s , R set , V set} t Preferably, when the preset number of cycles N of a span is 500 and the preset number of repeated read operations n after a span is 100, Wherein, t represents the t-th simulation cycle, t∈[0, T-1]i represents the i-th storage unit, i∈[0, K-1]; K is the total number of storage units in the RRAM chip; preferably, raw data of 25 simulation cycles are obtained, that is, T=25.
[0101] One span operation of the simulation cycle is used to simulate the actual chip erasing process and determine the preset number of cycles according to the endurance evaluation requirements; the repeated operation after one span is used to obtain resistance data samples for calculating resistance fluctuation.
[0102] Optionally, the RRAM chip is placed on a test board of a chip test machine and the raw data is acquired using test software to automatically acquire the raw data.
[0103] Optionally, the chip testing machine may be of the model ADVANTEST V93000.
[0104] Specifically, the raw data is preprocessed in step S120, including:
[0105] Preprocess the original data to obtain input data X containing nine dimensions t ={FV t , SR t , RR t , SF t , RF t , SVAR t , RVAR t ,SVOL t , RVOL t},in,
[0106] (1)FV t Characterize the forming voltage. The first time slice is FV in the original data, and the subsequent time slices are set to 0. The time slice is the interval of equal cycles on the time axis of the RRAM chip life model. The t-th time slice corresponds to the read operation, set and reset operation of the t-th simulation cycle in the simulation environment. The time slice just after the forming operation is T0, followed by T1, T2...Tt,...T T-1 ; Specifically, FV t ={FV [1] , FV [2] ,......,FV [K-1]} t , where t=0 is the first time slice T0 of the training model, FV0={FV [0] , FV [1] ,......,FV [K-1]}0=FV; t∈[1, T-1] is the second to T-1 time slices of the training model, FV t ={FV [1] , FV [2] ,......,FV [K]} t =0;
[0107] (2) SRt represents the normalized set resistance value, which is the average value of the raw set resistance SR_RAW divided by the stable low resistance R of the RRAM. low Then we get: low The low resistance value of the storage unit when the RRAM chip is working normally is also the low resistance value in the most stable state; Task R in this embodiment low The value is 35kΩ; specifically, SR t ={SR [0] , SR [1] ,......,SR [K-1]} t , where SR t[i]is the normalized set resistance value of the i-th storage unit in the t-th cycle, and its formula is:
[0108] Where i represents the i-th storage unit, i∈[0, K-1]; j represents the j-th set operation in a span, j∈[0, N-1]; t represents the t-th simulation cycle or the t-th time slice in the simulation environment, t∈[0, T-1]; K is the total number of storage units in the RRAM chip, T is the number of simulation cycles covered by the original data; N is the number of cycles in which the storage unit completes the set-reset cycle operation in a span in the simulation cycle;
[0109] (3)RR t The normalized reset resistance is represented by the average value of the raw reset resistance RR_RAW divided by the stable high resistance R of the RRAM. high Then we get: high It is the high resistance value of the storage unit when the RRAM chip is working normally, and it is also the high resistance value in the most stable state; the task of this embodiment is to stabilize the high resistance R high The value is 200KΩ; specifically, RR t ={RR [0] , RR [1] ,......,RR [K-1]} t , where RR t[i] The original reset resistance RR_RAW t[i] The normalized reset resistance of the ith storage unit in the tth cycle is expressed as follows:
[0110] Where i represents the i-th storage unit, i∈[0, K-1]; m represents the m-th reset operation in a span, m∈[0, N-1]; t represents the t-th cycle or t-th time slice in the simulation environment, t∈[0, T-1]; K is the total number of storage units in the RRAM chip, T is the number of simulation cycles covered by the original data; N is the number of cycles in which the storage unit completes the set-reset cycle operation in a span in the simulation cycle;
[0111] (4)SF t Characterize the local fluctuation of the set resistance value of the storage unit, which is obtained by convolving and summing the set resistance value samples normalized with the one-dimensional edge detection operator [-1, 0, 1]. Specifically, R s ={SF [0] , SF [1] ,......,SF [K-1]} t , where SF t[i]The set resistance value sample R is obtained by the memory cell after n consecutive read operations after a span operation and then n consecutive read operations after a set operation in each simulation cycle. st[i] The local volatility of R st[i] After normalization, it is obtained by convolution and summation with the one-dimensional edge detection operator [-1, 0, 1]. The formula is: s′t[i] =R st[i] / R low δ=[-1, 0, 1] SF t ={SF [1] , SF [2] ,......,SF [K-1]} t
[0112] in, t represents the tth cycle or the tth time slice in the simulation environment, t∈[0,T-1]; K is the total number of storage cells in the RRAM chip, T is the number of simulation cycles covered by the original data; n is the set resistance value R obtained by repeated read operations after a span in the simulation cycle st[i] The number of samples;
[0113] (5)RF t Characterize the local fluctuation of the reset resistance of the storage unit, which is obtained by convolving and summing the reset resistance samples with the one-dimensional edge detection operator [-1, 0, 1] after normalization; specifically, RF t ={RF [0] , RF [1] ,......,RF [K-1]} t , where RF t[i] Characterizes the resistance value R obtained after n consecutive read operations after a span operation in each simulation cycle. rt[i] The local volatility of R rt[i] After normalization, it is obtained by convolution and summation with the one-dimensional edge detection operator [-1, 0, 1]. The formula is: r′t[i ]=R rt[i] / R high δ=[-1, 0, 1] RF t ={RF [1] , RF [2] ,......,RF [K-1]} t
[0114] in, t represents the tth cycle or the tth time slice in the simulation environment, t∈[0,T-1]; K is the total number of storage cells in the RRAM chip, T is the number of simulation cycles covered by the original data; n is the reset resistance value R obtained by repeated read operations after a span in the simulation cycle rt[i] The number of samples;
[0115] (6)SVAR t Characterizes the global volatility of the set resistance value of the memory cell, obtained by normalizing each resistance value in the set resistance value sample and then calculating the variance; specifically, SVAR t ={SVAR [0] , SVAR [1] ,......,SVAR [K-1]} t , where SVAR t Characterizes the resistance value R obtained by the storage unit after n consecutive read operations after a span operation and n consecutive read operations after a set operation in each simulation cycle st[i] The global volatility of R st[i] The variance of each resistance value in is normalized and obtained by calculating the formula: s′t[i] =R st[i] / R low SVAR t ={SVAR [1] , SVAR [2] ,......,SVAR [K-1]} t
[0116] in, t represents the tth cycle or the tth time slice in the simulation environment, t∈[0,T-1]; K is the total number of storage cells in the RRAM chip, T is the number of simulation cycles covered by the original data; k represents the kth read operation in the n consecutive read operations after a span operation and a set operation of the storage cell in each simulation cycle; n is the set resistance value R obtained by the repeated read operation after a span in the simulation cycle st[i] The number of samples;
[0117] (7)RVAR t Characterizes the global volatility of the reset resistance of the storage unit, obtained by normalizing each resistance value in the reset resistance sample and then calculating the variance; specifically, RVAR t ={RVAR [0] , RVAR [1] ,......,RVAR [K-1]} t , where RVAR tCharacterizes the resistance value R obtained after n consecutive read operations after a span operation in each simulation cycle. rt[i] The global volatility of R rt[i] The variance of each resistance value in is normalized and obtained by calculating the formula: r′t[i] =R rt[i] / R high RVAR t ={RVAR [1] , RVAR [2] ,......,RVAR [K-1]} t
[0118] in, t represents the tth cycle or the tth time slice in the simulation environment, t∈[0,T-1]; K is the total number of storage cells in the RRAM chip, T is the number of simulation cycles covered by the original data; l represents the first read operation in n consecutive read operations after the storage cell undergoes a span operation in each simulation cycle; n is the reset resistance value R obtained by the repeated read operation after a span in the simulation cycle rt[i] The number of samples;
[0119] (8)SVOL t Characterizes the average set voltage of the memory cell, which is obtained by averaging the set voltages of all records within a span in the simulation cycle; specifically, SVOL t ={SVOL [0] ,SVOL [1] ,......,SVOL [K-1]} t , where SVOL t Characterizes the average set voltage of the memory cell in a span operation within the t-th simulation cycle. The formula is:
[0120] Where i represents the i-th storage unit, i∈[0, K-1]; j represents the j-th set operation in a span, j∈[0, N-1]; t represents the t-th cycle or t-th time slice in the simulation environment, t∈[0, T-1]; K is the total number of storage units in the RRAM chip, T is the number of simulation cycles covered by the original data; N is the number of cycles in which the storage unit completes the set-reset cycle operation in a span in the simulation cycle;
[0121] (9)RVOL t Characterizes the average reset voltage of the memory cell, which is obtained by averaging the reset voltages of all records within a span of the simulation cycle; specifically, RVOL t ={RVOL [0], RVOL [1] ,......,RVOL [K-1]}, where RVOL t Characterizes the average reset voltage of the memory cell during a span operation in the t-th simulation cycle. The formula is:
[0122] Where i represents the i-th storage cell, i∈[0, K-1]; j represents the m-th reset operation within a span, m∈[0, N-1]; t represents the t-th cycle or t-th time slice in the simulation environment, t∈[0, T-1]; K is the total number of storage cells in the RRAM chip, T is the number of simulation cycles covered by the original data; N is the number of cycles in which the storage cell completes the set-reset cycle operation within a span in the simulation cycle.
[0123] Specifically, the data set D1 with a data structure of K×9×T constructed in step S120 includes:
[0124] The number of cycles T covered by the original data is recorded as a training span. Each training span contains T time slices. T K×9 matrices are constructed in units of time slices as the external input X of the model M, where X={X0,X1,……X T-1}, X t ={X [0] , X [1] ,......,X [K-1]} t , X t The data representing the t-th time slice contains 9 dimensions of K memory units.
[0125] Specifically, in step S120, the dataset D1 is labeled as true failure or false failure, and the training dataset D2 is obtained, including:
[0126] (1) According to the output result O in each span of the t+1th simulation cycle t+1[i] , determine the state result S of the storage unit in the t+1th simulation cycle t[i] ; The basis for judgment is:
[0127] a) When O t+1[i] When the setting success or reset success is not included in the status result S t+1[i] =0, indicating that the storage unit has a true failure in the t+1th simulation cycle;
[0128] b) In cases other than a), the status result is S t+1[i] =1, indicating that the memory cell has a false failure in the t+1th simulation cycle;
[0129] (2) According to the status result St+1[i] , for X t[i] Mark the corresponding label The superscripts 0 and 1 are the index values of the two-dimensional vector; the notation method is:
[0130] i. When the state result S t+1[i] =0, X t[i] The corresponding label c t[i] =[1,0] t ;
[0131] ii. When the status result S t+1[i] =1, X t[i] The corresponding label c t[i] =[0,1] t ;
[0132] (3) Construct T K × 2 matrices as the external input X of model M in units of time slices t Corresponding label C t , where C t ={C [0] , C [1] ,......,C [K-1]} t ;X t and the corresponding label C t Composition model training data D 2_t , construct T D in time slices 2_t As the model training data set D2, where D2 = {D 2_0 , D 2_1 ,......,D 2_T-1}.
[0133] Specifically, in step S130, the failure model M is trained using the model training data set D2 to obtain the final failure model M trained include:
[0134] The model M is trained using the model training dataset D2. The failure model M includes K LSTM replica models with the same parameters {M [0] , M [1] ,......,M [K-1] Different replica models are used to perform independent forward inference and error calculation on the K storage units.
[0135] More specifically, training the failure model M includes the following steps:
[0136] Step S210: Divide the model training data set D2 into training sets D train and the test set D test; The first TS time slice data in D2 is divided into training set, D train ={D 2_0 , D 2_1 ,......,D 2_TS-1}, the data of the last T-TS time slices are divided into the test set, D test ={D 2_TS-1 , D 2_TS ,......,D 2_T-1}; Preferably, the value of T is 25 and the value of TS is 20;
[0137] Step S220: Initialize the failure model M, set the initial values of the LSTM unit state and hidden state to 0; construct M into K LSTM replica models with the same parameters {M [0] , M [1] ,......,M [K-1]};
[0138] Step S230: D train The input data for each time slice in {D2} t , split into K 9-dimensional vectors X t ={X [0] , X [1] ,......,X [K-1]} t , respectively input the split data into K LSTM replica models with the same parameters in the order of time slices M={M [0] , M [1] ,......,M [K-1] Complete model training and obtain K trained replica models, and select one of them as the final model M trained , using D test To M trained Run a test.
[0139] Furthermore, the failure model M is constructed based on a long short-term memory (LSTM) neural network, as shown in Figure 4. LSTM is used to predict important events with long intervals and delays in time series. For the life prediction task of RRAM chips, the state changes of the RRAM chip's memory cells are modeled along the time axis. The event intervals in the time series are defined as time slices. Each time slice includes the repeated read, set, and reset operations of all memory cells in the RRAM chip during a simulation cycle, or the repeated read, set, and reset operations of each memory cell during an erase and write cycle under actual working conditions. The time slice immediately after the forming operation is defined as T0, followed by T1, T2, Tt, T(t+1), etc.
[0140] The long short-term memory neural network (LSTM) can be regarded as a cell that iterates over time during calculation. The cell parameters include: cell state C t 、Hidden State H t and the state update value U t ; Wherein, the cell state (Cell State) C t It is used to assume the function of memory, and take the cumulative impact of the neural network input of the time slice before the current time slice into the current prediction; the hidden state H t , used to calculate the predicted classification result of the current time slice and update the neural network input of the next time slice; the state update value U t , used to convert the neural network input of the current time slice into data that can participate in neural network calculation; for the task in this embodiment, C t 、H t and U t The data structure is a 200-dimensional vector;
[0141] The long short-term memory neural network (LSTM) uses a gate mechanism to control the transmission of information, including three gates: forget gate FG (forget gate), input gate IG (input gate) and output gate OG (output gate);
[0142] Furthermore, the iterative calculation of the failure model M includes the following steps:
[0143] (1) The input data of each time slice {D2} t , split into K 9-dimensional vectors X t ={X [0] , X [1] ,......,X [K-1]} t , input K LSTM replica models with the same parameters M={M [0] , M [1] ,......,M [K-1]};
[0144] (2) Set the current time slice T t The current external input X t[i] With the previous time slice T t-1 The hidden state H t-1 Splice and get the current time slice T t The current neural network input I t , the formula is: t ={H t-1 , X t[i]}
[0145] (3) Input the current neural network into I t After affine transformation and activation by tanh function, the current state update value U is obtained t , the formula is: U t =tanh(I t ×WC+BC)
[0146] Among them, WC is the t The weight for affine transformation, BC is the offset of affine transformation. For the task in this embodiment, the WC data structure is a 209×200 matrix, and the BC data structure is a 200-dimensional vector.
[0147] (4) Combine the forget gate FG and the previous time slice T t-1 The cell state C t-1 Point-by-point multiplication, input gate IG and current update value U t Multiply point by point and add the two results to get the current cell state C t , whose formula is C t =FG·C t-1 +IG·U t
[0148] Where FG = sigmoid(I t ×WF+BF),IG=sigmoid(I t ×WI+BI); WF and WI are the forget gate and input gate for the current time slice T t Current input I t The weights for affine transformation; BF and BI are the offsets of the affine transformation of the forget gate and input gate, respectively; for the task in this embodiment, the WF and WI data structures are both 209×200 matrices, and the BF and BI data structures are both 200-dimensional vectors;
[0149] (5) Set the current cell state C t After tanh activation, it is multiplied point by point with the output gate OG to obtain the current hidden state Ht; H t =OG·tanh(C t )
[0150] Among them, OG=sigmoid(I t ×WO+BO); WO is the current input I of the output gate to the current time slice Tt t The weight for affine transformation; BO is the offset of the output gate affine transformation; for the task in this embodiment, the WO data structure is a 209×200 matrix, and the BO data structure is a 200-dimensional vector;
[0151] (6) The current hidden state Ht Through affine transformation to two-dimensional space, and activation by softmax function to obtain the current two-dimensional vector P t , take P t The index value of the element with the larger value in the two elements is used as the current model output Y t[i] , the formula is:
[0152] Among them, WY is the current hidden state H t The weight of the affine transformation, BY is the offset of the affine transformation, and its data structure is a 2-dimensional vector; for this embodiment, the WY data structure is a 200×2 matrix, and the current model outputs Y t For the next time slice T t+1 The binary classification prediction result of whether the storage unit is failed, Y t[i] =1 indicates that the unit is predicted to fail in the next time slice, Y t[i] = 0 indicates that the unit is predicted to fail in the next time slice; the current two-dimensional vector When P t =[1,0], that is, Y t[i] = 0, indicating that the unit is truly failed in the next time slice; when P t =[0,1], that is, Y t[i] =1 indicates that the unit will be falsely failed in the next time slice;
[0153] (7) Input the current hidden state Ht into the neural network to enter the next time slice T t+1 Repeat (2) to (7) until the two-dimensional vector calculation results of all time slices are obtained;
[0154] (8) The two-dimensional vector Splice along the time dimension to form an output array P of K×TS×2; t Splice along the time dimension to form a K×TS×2 output array C; compare P with C and use cross entropy as the loss function, which is as follows:
[0155] Among them, TS is the training span, and its value is the training set D train The number of time slices covered; K is the total number of storage units in the RRAM chip, and the data structure of the label of a single storage unit is [c 0 , c 1 ], i represents the i-th storage unit, and t represents the t-th time slice.
[0156] Backpropagate the loss and update the weights of K LSTM copies simultaneously until the loss no longer decreases. Get K trained LSTM copies and select any copy as the final failure model M.trained ; where M trained ={M trained_[0] , M trained_[1] ,......,M trained_[K-1]}; Preferably, the Adam optimizer is used for back propagation of the neural network and updating weights.
[0157] Furthermore, the final failure model M trained Used to predict true and false failures of each storage unit of the resistive memory chip under normal working conditions, including:
[0158] Obtain the data of a memory cell in a resistive memory chip completing an erase / write cycle under normal working conditions.
[0159] Measured data of periodic read and write operations;
[0160] Processing the measured data to obtain input data Xpt[i]; wherein the input data Xpt[i] includes a forming voltage FVpt[i], a normalized set resistance value SRpt[i], a normalized reset resistance value RRpt[i], a local fluctuation of the set resistance value SFpt[i], a local fluctuation of the reset resistance value RFpt[i], a global fluctuation of the set resistance value SVARpt[i], a global fluctuation of the reset resistance value RVARpt[i], an average set voltage SVOLpt[i], and an average reset voltage RVOLpt[i];
[0161] Input Xpt[i] into the corresponding trained failure model to obtain the true or false failure binary classification prediction result of the storage unit in the next erase / write cycle t+1.
[0162] For example, Figure 7 shows a bar chart of the prediction accuracy statistics for a prediction task model based on an embodiment of the present disclosure, including different time slices. The prediction span is the prediction period, that is, the number of time slices between two predictions. It can be seen that setting the prediction period too large will affect the accuracy of the model's predictions. However, the model constructed using the method described in the present disclosure achieves a prediction accuracy of up to 83.08% when the prediction period is one prediction span, far exceeding the 65% of existing prediction models, achieving a significant improvement in prediction accuracy.
[0163] Compared with the prior art, the present disclosure can achieve at least one of the following beneficial effects:
[0164] 1. We used a long-short-term memory network (LSTM), which is more temporally relevant to the failure behavior of RRAM chips, to construct an RRAM chip failure model. By simulating the normal chip operation, we rationally set the number of operations in the prediction cycle and obtained a large number of storage cell-related parameters as raw data. This data was then used to construct a dimensional, rich model input data, enabling the model to be fully trained and improving the accuracy of the model prediction.
[0165] 2. The input of the model uses nine-dimensional data, among which the three parameters related to voltage are SVOL t , RVOL t , FV t Contains key external operating information of the RRAM chip and six parameters related to resistance SR t , RR t , SF t , RF t , SVAR t , RVAR t It contains the main physical state information of the RRAM chip storage unit, which is very consistent with the physical model of the RRAM resistive switching process. The time series model established based on this is more scientific and effective. t / RF t , SVAR t / RVAR t , respectively characterizing the local and global fluctuations of resistance, taking into account the random fluctuations and jumps of RRAM resistance into the model input, more comprehensively reflecting the physical state of the RRAM device and reducing the impact of random factors on the prediction results;
[0166] 3. Compared with the disadvantage of the existing model that includes too many set / reset operations in one prediction cycle, the model obtained by the construction method disclosed in the present invention realizes the prediction of storage units with fewer set / reset operations in one prediction cycle. That is, the prediction model constructed by the existing method needs to include 100,000 set / reset operations in one prediction cycle, and the model constructed by the method disclosed in the present invention can reduce the number of set / reset operations included in one prediction cycle to 500 times, which can predict the storage units more timely.
[0167] Those skilled in the art will appreciate that all or part of the process steps of the above-described embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a magnetic disk, an optical disk, a read-only memory, or a random access memory.
[0168] The above description is only a preferred specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or replacements that can be easily conceived by any technician familiar with this technical field within the technical scope disclosed in this disclosure should be covered by the protection scope of the present disclosure.
Claims
1. A method for constructing a failure model of a resistive memory chip, comprising the following steps: Obtain the original data D of each storage unit of the resistive memory chip completing the preset simulation cycle number read and write operations in the simulation environment t ; The original data is preprocessed to construct a data set D1 with a data structure of K×9×T. The data set D1 is labeled as true failure or false failure in two categories to obtain a training data set D2. K is the total number of storage units in the RRAM chip. T is the number of simulation cycles covered by the original data. Use the model training data set D2 to train the failure model M and obtain the final failure model M trained .
2. According to the method according to claim 1, the failure model M includes K LSTM replica models with the same parameters {M [0] , M [1] ,......,M [K-1] }; Different replica models are used to perform independent forward reasoning and error calculation on the K storage units.
3. According to the method of claim 1, the original data is preprocessed to obtain input data X containing nine dimensions t ={FV t , SR t , R.R. t , SF t , RF t , SVAR t , RVAR t ,SVOL t , RVOL t }, construct the data set D1 based on the input data of the nine dimensions; in, FV t is the forming voltage, SR t is the normalized set resistance value, RR t is the normalized reset resistance, SF t is the local fluctuation parameter of the setting resistance value, RF t is the local fluctuation parameter of the reset resistance, SVAR t is the global volatility parameter of the set resistance, RVAR t is the global fluctuation parameter of the reset resistance, SVOL t is the average set voltage, RVOL t is the average reset voltage.
4. According to the method of claim 3, obtaining the original data D t include: (1) Performing a forming operation on the RRAM chip to turn each memory cell in the chip into a conducting state, and recording a forming operation voltage FV; (2) Verify the forming effect and record the forming resistance R of each memory cell f And the output result O; (3) Setting the formed chip, recording the resistance value SR_RAW and the corresponding setting voltage SVOL_RAW of each storage unit when the setting is successful, or recording the resistance value SR_RAW and the corresponding setting voltage SVOL_RAW of each storage unit when the setting reaches a preset number of times but still fails, and outputting the result O; wherein the setting success includes a single setting success, or a step-by-step setting success before reaching a preset number of times; (4) Reset the formed chip, record the resistance value RR_RAW and the corresponding reset voltage RVOL_RAW of each storage unit when the reset is successful, or record the resistance value RR_RAW and the corresponding reset voltage RVOL_RAW of each storage unit when the reset reaches a preset number of times and still fails, and output the result 0; (5) Repeat the set and reset operations to complete a preset number of cycles N within a span; specifically, repeat (3) to (4) until a preset number of cycles are completed, which is considered to be the completion of a span, and execute (6); (6) Repeat the read operation on the chip memory array for a preset number of times n to obtain the reset resistance value sample R for calculating the reset resistance value fluctuation r ; (7) Set the chip and record the resistance value R of each storage unit when the setting is successful set and the current set voltage V set , or record the resistance value R of each storage unit when the setting reaches the preset number of times but still fails set and the current set voltage V set , and output result O; (8) Repeat the read operation for a preset number of times n to obtain the set resistance value sample R for calculating the set resistance value fluctuation s ; (9) Consider (3) to (8) as one simulation cycle. Repeat T simulation cycles to obtain the original data D t ={FV,SVOL_RAW,RVOL_RAW,SR_RAW,RR_RAW,R r , R s , R set , V set } t .
5. The method according to claim 3 or 4, wherein the input data X comprising nine dimensions is obtained. t ,include: FV t The value of the first time slice in is the FV in the original data, and the rest are set to 0; SR t The average value of the original set resistance SR_RAW is divided by the stable low resistance R of the RRAM low Then we get: low It is the low resistance value of the storage unit when the RRAM chip is working normally; RR t The average value of the original reset resistance RR_RAW is divided by the stable high resistance R of RRAM high Then we get: high It is the high resistance value of the storage unit when the RRAM chip is working normally; SF t It is obtained by normalizing the set resistance value samples and performing convolution summation with the one-dimensional edge detection operator [-1, 0, 1]; RF t It is obtained by normalizing the reset resistance sample and performing convolution summation with the one-dimensional edge detection operator [-1, 0, 1]; SVAR t It is obtained by normalizing each resistance value in the set bit resistance value sample and then calculating the variance; RVAR t It is obtained by normalizing each resistance value in the reset resistance value sample and then calculating the variance; SVOL t It is obtained by averaging all recorded set voltages within a span in the simulation cycle; RVOL t Obtained by averaging all recorded reset voltages within a span of the simulation cycle.
6. According to the method of claim 1, the binary classification labeling of true failure or false failure comprises: (1) According to the output result O in each span of the t+1th simulation cycle t+1[i] , determine the state result S of the storage unit in the t+1th simulation cycle t[i] ; The basis for judgment is: When O t+1[i] When the setting success or reset success is not included in the status result S t+1[i] =0, indicating that the storage unit has a true failure in the t+1th simulation cycle; Otherwise, the status result S t+1[i] =1, indicating that the storage unit has a false failure in the t+1th simulation cycle; (2) According to the status result S t+1[i] , for X t[i] Mark the corresponding label The superscripts 0 and 1 are The index value of the dimension vector; the notation method is: i. When the status result is S t+1[i] = 0, X t[i] The corresponding label c t[i] =[1,0] t ; ii When the status result S t+1[i] =1, X t[i] The corresponding label c t[i] =[0,1] t .
7. The method according to claim 6, characterized in that: Get the training data set The training data set D2 includes: Construct T K × 2 matrices in units of time slices as the external input X of the failure model M t The corresponding label C t , where C t ={C [0] , C [1] , ..., C [K-1] } t ; X t and the corresponding label C t Composition model training data D 2_t , construct T D in units of time slices 2_t As the model training data set D2, where D2 = {D 2_0 , D 2_1 , ..., D 2_T-1 }.
8. According to the method of claim 1, the failure model M is constructed based on LSTM, and neural network calculation is realized through unit parameters and control gates; the control gates include: The forget gate FG, input gate IG and output gate OG have the following formulas: FG = sigmoid (I t ×WF+BF); IG=sigmoid(I t ×WI+BI); OG=sigmoid(I t ×WO+BO); Among them, WF, WI, and WO are the input gates of the forget gate, input gate, and output gate for the current neural network input I of the current time slice. t The weights for affine transformation; BF, BI, and BO are the offsets of the affine transformation of the forget gate, input gate, and output gate, respectively; the current neural network input I t By externally inputting the current neural network into X t[i] The hidden state H of the previous time slice t-1 Get by splicing; The cell parameters include: cell state (Cell State) C t 、Hidden State t and the state update value U t , and their formulas are: U t =tanh(I t ×WC+BC) C t =FG·C t-1 +IG·U t H t =OG tanh(C t ) Among them, WC is the weight of the affine transformation, and BC is the offset of the affine transformation.
9. According to the method of claim 1, the iterative calculation of the failure model M comprises: (1) The input data {D2} of each time slice t , split into K 9-dimensional vectors and input them into K LSTM replica models with the same parameters; (2) Set the current time slice T t The current neural network external input X t[i] With the previous time slice T t-1 The hidden state H t-1 Splice and get the current time slice T t Current neural network input] t ; (3) Input the current neural network into I t After affine transformation and activation by tanh function, the current state update value U is obtained t ; (4) The forget gate FG and the previous time slice T t-1 The cell state C t-1 Multiply point by point, input gate IG and current update Value U t Multiply point by point, and add the two results to get the current cell state C t ; (5) Set the current cell state C t After tanh activation, it is multiplied point by point with the output gate OG to obtain the current hidden state H t ; (6) Set the current hidden state H t Through affine transformation to two-dimensional space, and activation by softmax function, the current two-dimensional vector P is obtained t , take P t The index value of the element with the larger value in the two elements is used as the current model output Y t[i] ; (7) The current hidden state Ht is re-entered into the neural network to join the next time slice T t+1 Repeat (2) to (7) until the two-dimensional vector calculation results of all time slices are obtained; (8) The two-dimensional vector P t Splice along the time dimension to form a K×TS×2 output array P; the label array C t Concatenate along the time dimension to form a K×TS×2 output array C; compare P with C, and use cross entropy as the loss function, the formula is as follows: Among them, TS is the training span, and its value is the training set D train The number of time slices covered; K is the total number of storage units in the RRAM chip, and the data structure of the label of a single storage unit is [c 0 , c 1 ], i represents the i-th storage unit, and t represents the t-th time slice; Back propagate the loss and update the weights of K LSTM copies simultaneously until the loss stops decreasing. Get K trained LSTM copies and select any copy as the final model M. trained ; where M trained ={M trained_[0] , M trained_[1] , ..., M trained_[K-1] }; Preferably, the Adam optimizer is used to perform back propagation of the neural network and update weights; 10. According to the method of claim 1, the method of using the model training data set D2 to train the failure model M comprises: The model training data set D2 is divided into training sets D by time slices. train and the test set D test ; The first TS time slices of data in D2 are classified as training sets, and D train ={D 2_0 , D 2_1 ,......,D 2_TS-1 }, the data of the last T-TS time slices are divided into the test set, D test ={D 2_TS-1 , D 2_TS ,......,D 2_T-1 }; Initialize the failure model M, set the initial values of the LSTM unit state and hidden state to 0; construct M into K LSTM replica models with the same parameters {M [0] , M [1] , ..., M [K-1] } D train The input data for each time slice in {D2} t , split into K 9-dimensional vectors X t ={X [0] , X [1] , ..., X [K-1] } t , respectively input the split data into K LSTM replica models with the same parameters M={M [0] , M [1] , ..., M [K-1] }Complete model training and obtain K trained replica models, select one of them as the final model M trained , use D test To M trained Conduct a test.
Citation Information
Patent Citations
System, method and apparatus for memory failure prediction
CN115393259A
Memory controller and memory system including same
CN115794481A
Memory module and memory system
KR1020140067875A
Computer System Predicting Memory Failure
US20160148707A1
Machine learning apparatus, life prediction apparatus, numerical control device, production system, and machine learning method for predicting life of NAND flash memory
US20180174658A1
Cited By
Data-driven power system period steady-state initialization method and system and medium
CN121118476A
