Service life prediction and repair method for resistive random access memory chip

By predicting the failure mode of the RRAM chip storage unit and performing targeted repairs using the LSTM-based model, the problems of inaccurate life prediction and poor repair effect in the existing technology are solved, achieving higher accuracy and extending the life of the storage unit.

WO2024187572A1PCT designated stage expired Publication Date: 2024-09-19INST OF MICROELECTRONICS CHINESE ACAD OF SCI LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/093388
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-16
Filing Date
2023-05-11
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

The accuracy of the existing RRAM chip life prediction model is not high, and the existing false failure memory unit repair method is difficult to truly improve the life of the memory unit in the chip, and the existing technology easily accelerates the aging of the memory unit during repair.

Method used

A model based on LSTM is used to predict the life of RRAM chips. By constructing a training data set, including parameters such as molding voltage, normalized set and reset resistance, etc., two-category annotation is performed to predict the failure mode of the memory unit, and based on Based on the prediction results, targeted voltage repair operations are performed to avoid the aging of the memory cells caused by simply increasing the voltage.

Benefits of technology

It significantly improves the prediction accuracy of RRAM chip memory cells, reduces the error rate, and extends the life of the memory cells by reducing the number of set/reset operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023093388_19092024_PF_FP_ABST
    Figure CN2023093388_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of chip reliability, and relates to a service life prediction and repair method for a resistive random access memory (RRAM) chip, which method solves the problem of the prediction accuracy of existing RRAM chip service life prediction models being not high, and the problem of it being difficult for existing reliability optimization policies to truly improve the service life of memory chips. The method comprises: training a model by constructing a training data set, which includes input data Xt and a binary classification label of true failure or false failure, so as to obtain a trained model; processing, into input data in nine dimensions, actually measured data of a memory cell to be predicted, and inputting the input data into the trained model, so as to obtain prediction results of the memory cell in subsequent several erase-write cycles; and finally determining whether the memory cell is a false failure memory cell that actually needs to be repaired, and then executing a repair operation on the false failure memory cell that actually needs to be repaired. The model construction mode and a repair method based on a prediction result in the present application achieve a significant improvement in the accuracy of model prediction and more effective repair of a false failure memory cell, and can effectively prolong the service life of a chip.
Need to check novelty before this filing date? Find Prior Art

Description

A life prediction and repair method for resistive memory chip Technical Field

[0001] The present application relates to the field of chip reliability technology, and in particular to a life prediction and repair method for a resistive 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 memory chips commonly face issues such as write errors, read disturb, read errors, and thermal stability, complicating their large-scale deployment. RRAM's complex failure modes include "true failure" and "false failure" as the number of consecutive erases and writes increases. By building failure models to predict the failure behavior of memory cells, more efficient storage space allocation can be achieved. For memory cells predicted to be true failures, the stored data can be pre-emptively transferred to other memory cells to prevent data loss. For memory cells predicted to be false failures, a reset voltage greater than the average voltage can be applied to "revive" them based on their physical failure mechanism, allowing the conductive filaments to resume normal growth and fracture, thereby improving the utilization of the memory cell array.

[0003] Current research on RRAM lifespan prediction focuses primarily on physical modeling of individual devices. This approach only considers the physical variations and failure mechanisms within the memory cell, ignoring the variability of devices within actual chips due to their high integration density and large scale. Consequently, physical models based on individual devices are of limited value for predicting actual chip lifespan. With the continuous development of machine learning (ML), the use of ML to model memory cell failure behavior based on statistical data has provided a path for chip-level failure prediction. Currently, only one article has addressed chip-level lifespan prediction, but the prediction accuracy is low and no optimization solution exists. Existing methods for preventing RRAM chip cell failures rely on remediating the failure after a false failure occurs. This remediation approach simply increases the voltage and expands the storage window. However, since this approach cannot predict and repair the failure in advance, excessive voltage accelerates cell aging and, in turn, reduces cell lifespan. Therefore, a lifespan prediction method for RRAM chips is urgently needed to achieve more accurate failure prediction of RRAM cells at the chip level. This approach, through better storage space allocation and cell repair, can enable the large-scale deployment of RRAM chips.

[0004] Summary of the Invention

[0005] In view of the above analysis, the embodiments of the present application aim to provide a method for predicting and repairing the lifespan of a resistive random access memory (RRAM) to address the problems of low prediction accuracy of existing RRAM chip lifespan prediction models and the difficulty of existing methods for repairing false failure memory cells in truly improving the lifespan of memory cells in RRAM chips.

[0006] In one aspect, an embodiment of the present application provides a method for predicting and repairing the life of a resistive random access memory, comprising the following steps:

[0007] Construct a model training dataset, which includes input data X t And the binary classification of true failure or false failure; where the input data X t Including forming voltage FV t , Normalized set resistance SR t , Normalized reset resistance RR t , local fluctuation of the set resistance value SF t , local fluctuation of reset resistance RF t , global volatility SVAR of set resistance value t , global volatility of reset resistance RVAR t , average set voltage SVOL t and the average reset voltage RVOL t ;

[0008] The constructed training dataset is used to train the model M, which 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;

[0009] Obtain the measured data of each memory cell to be predicted completing a read / write cycle under normal working conditions; process the measured data to obtain input data X pt[i] ; X pt[i] Input the corresponding trained model to obtain the prediction result Y of the storage unit in the next erase cycle t+1 t[i] , and finally determine whether it is a false failure storage unit that actually needs to be repaired;

[0010] The address of the pseudo-failed storage unit that actually needs to be repaired is obtained; and a repair operation is performed on the storage unit.

[0011] Furthermore, the model training data set construction includes:

[0012] Get the original data D t ;

[0013] 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};

[0014] Based on the preprocessed 9-dimensional data, a dataset D1 with a data structure of K×9×T is constructed; where K is the total number of storage cells in the RRAM chip; T is the number of simulation cycles covered by the original data;

[0015] The dataset D1 is labeled as true failure or false failure, and the external input X containing the model M is obtained. t and the corresponding label C t The model training dataset D2.

[0016] Furthermore, obtaining the original data includes:

[0017] (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;

[0018] (2) Verify the forming effect and record the forming resistance R of each memory cell f And the output result O;

[0019] (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;

[0020] (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;

[0021] (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);

[0022] (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 ;

[0023] (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;

[0024] (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 ;

[0025] (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 .

[0026] Furthermore, the input data X t include:

[0027] (1)FV t Characterize the forming voltage. The value of the first time slice is FV in the original data, and the subsequent time slices are set to 0.

[0028] (2)SR t The normalized set resistance is represented by the average of the raw set resistance SR_RAW divided by the stable low resistance R of the RRAM. low Then we get: low This is the low resistance value of the memory cell when the RRAM chip is working normally, and it is also the low resistance value in the most stable state;

[0029] (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 This is the high resistance value of the memory cell when the RRAM chip is working normally, and it is also the high resistance value in the most stable state;

[0030] (4)SF tCharacterizes the local fluctuation of the set resistance value of the storage unit, which is obtained by convolving and summing the normalized set resistance value samples with the one-dimensional edge detection operator [-1, 0, 1];

[0031] (5)RF t Characterizes the local fluctuation of the reset resistance of the storage unit, obtained by convolving and summing the normalized reset resistance samples with the one-dimensional edge detection operator [-1, 0, 1];

[0032] (6)SVAR t Characterize 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;

[0033] (7)RVAR t Characterize the global volatility of the reset resistance of the memory cell, obtained by normalizing each resistance value in the reset resistance sample and then calculating the variance;

[0034] (8)SVOL t Characterizes the average set voltage of the memory cell, obtained by averaging the set voltages of all records within a span in the simulation cycle;

[0035] (9)RVOL t Characterizes the average reset voltage of the memory cell, obtained by averaging all recorded reset voltages within a span of the simulation cycle.

[0036] Furthermore, the binary classification of true failure or false failure includes:

[0037] (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:

[0038] 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;

[0039] b) In other cases except i, the status result is S t+1[i] =1, indicating that the memory cell has a false failure in the t+1th simulation cycle;

[0040] (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:

[0041] i. When the state result St+1[i] =0, X t[i] The corresponding label c t[i] =[1,0] t ;

[0042] ii. When the status result S t+1[i] =1, X t[i] The corresponding label c t[i] =[0,1] t ;

[0043] (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}.

[0044] Furthermore, the model M includes:

[0045] The model M is built based on LSTM, and the cell parameters include: cell state (Cell State) C t 、Hidden State H t and the state update value U t ; 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);

[0046] 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 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.

[0047] Furthermore, the iterative calculation of the 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 external input X t[i] With the previous time slice T t-1 The hidden state H t-1 Perform splicing to 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;

[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) Input the current hidden state Ht into the neural network to enter the next time slice T t+1 The loop calculation repeats (2) to (5), and 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 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:

[0055] 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;

[0056] 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.

[0057] Furthermore, the measured data includes:

[0058] (1) Obtaining the forming voltage FV for the new RRAM chip forming operation p ;

[0059] (2) Recording the measured data of each storage unit in each erase / write cycle of the RRAM chip after molding under normal working conditions; wherein, one erase / write cycle includes: the storage unit completes a set / reset cycle operation with a preset number of cycles N, which is recorded as a span within the erase / write cycle; after completing a span operation within the erase / write cycle, the storage unit is subjected to a preset number of repeated read operations n times, then a set operation is performed, and then a preset number of repeated read operations n times; the measured data D pt Includes: the set voltage SVOL_RAW recorded within a span of the erase cycle p[i] and reset voltage RVOL_RAW p[i] , and set resistance SR_RAW p[i] and reset resistance RR_RAW p[i] , reset resistance sample R recorded by the first repeated read operation in the erase / write cycle pr[i] , the set resistance value sample R recorded by the second repeated read operation in the erase / write cycle ps[i] , the set resistance value R recorded between two repeated read operations pset[i] and the set voltage V pset[i] And all the output results in the erase and write cycle O p[i] .

[0060] Furthermore, the processing of the measured data to obtain input data includes:

[0061] (1)FV pt[i] Characterizes the forming voltage of the memory cell. The value of the first erase / write cycle is the forming voltage FV of the chip. p , the value is set to 0 in subsequent erase and write cycles;

[0062] (2)SR pt[i] Characterizes the normalized set resistance value of the memory cell, which is represented by the original set resistance value SR_RAW pt[i] The average value of the RRAM is divided by the stable low resistance R low Afterwards,

[0063] (3)RR pt[i] Characterizes the normalized reset resistance of the storage unit, which is represented by the original reset resistance RR_RAW pt[i] The average value of the RRAM is divided by the stable high resistance R high Afterwards,

[0064] (4)SF pt[i] 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];

[0065] (9)RF pt[i] 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;

[0066] (10)SVAR pt[i] Characterize 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;

[0067] (11)RVAR t[i] Characterize the global volatility of the reset resistance of the memory cell, obtained by normalizing each resistance value in the reset resistance sample and then calculating the variance;

[0068] (12)SVOL pt[i] Characterizes the average set voltage of the memory cell, obtained by averaging the set voltages of all records within a span of the erase / write cycle;

[0069] (10)RVOL pt[i] 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 erase / write cycle.

[0070] Furthermore, the final determination of whether the memory cell is a false failure memory cell that actually needs to be repaired includes:

[0071] (1) The pre-processed data X after an erase cycle pt[i] Input the trained model M trained ;

[0072] (2)M trained[i] Output Y t[i]is the prediction result of the storage unit in the next erase cycle t+1; t[i] =1 indicates that the unit is predicted to fail in the next time slice, and (3) is executed; when Y t[i] =0 means that the unit is predicted to fail in the next time slice and its stored data is transferred to other storage units;

[0073] (3) For Y t[i] =1 is judged twice, when the output result of the current erase / write cycle t of the storage unit is O t[i] When the setting is successful N+1 times and the reset is successful N times, it is determined that the storage unit does not need to be repaired; otherwise, the storage unit is a false failure storage unit that actually needs to be repaired, and a repair operation is performed through the digital-to-analog conversion circuit.

[0074] Furthermore, the repair operation includes:

[0075] (1) Gradually set: For the i-th memory cell to be repaired, a set pulse is applied to its bit line end to perform a set operation, and then a read operation is performed to read its resistance value; when the read resistance value is less than the stable low resistance R low If the set operation succeeds, proceed to (2); otherwise, the pulse amplitude of the set operation is increased by a preset increment value, and the set operation and read operation cycle are repeated until the set operation and read operation reach a preset number of cycles or the resistance value read by the read operation is less than the stable low resistance R of the RRAM chip. low ;

[0076] (2) Reset repair: For the i-th memory cell to be repaired, a reset pulse higher than the average reset voltage of the current erase / write cycle is applied to its source line end to perform a reset operation, and then a read operation is performed to read its resistance value; the reset pulse voltage amplitude is RVOL pt[i] +Preset increase value; RVOL pt[i] The average voltage of N reset operations of the memory cell within one span of the current erase / write cycle;

[0077] (3) Repeat the repair cycles (1) and (2) until the preset number of repair cycles is accumulated, completing the repair operation of the storage unit.

[0078] Compared with the prior art, this application can achieve at least the following beneficial effects:

[0079] 1. 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, and more comprehensively reflecting the physical state of the RRAM device;

[0080] 2. Based on the model's predictions, a specific voltage stimulus is applied to memory cells that may experience false failures, and the voltage amplitude is gradually increased to prevent false failures. Compared with the existing method of remediating false failures in memory cells by simply increasing the voltage and increasing the storage window, this method does not accelerate the aging of memory cells due to excessive voltage and shorten the lifespan of memory cells. It can significantly reduce the error rate of memory cells in RRAM chips.

[0081] 3. The prediction accuracy of the model constructed using the method described in this application reaches 86.75%, which is much higher than the 65% of the existing prediction model. At the same time, compared with the disadvantage of the existing model that there are too many set / reset operations in one prediction cycle, the model of this application realizes the prediction of storage cells with a smaller number of set / reset operations. That is, one prediction cycle of the existing model needs to include 100,000 set / reset operations, and the model of this application can shorten the prediction cycle to 500 set / reset operations, which can predict and repair the storage cells more timely.

[0082] In this application, the above-mentioned technical solutions can be combined with each other to achieve more preferred combination solutions. Other features and advantages of this application will be described in the subsequent description, and some advantages will become apparent from the description or be understood by practicing this application. The objectives and other advantages of this application can be achieved and obtained through the contents particularly pointed out in the description and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] The accompanying drawings are only for the purpose of illustrating particular embodiments and are not to be considered as limiting the present application. Like reference symbols denote like components throughout the drawings.

[0084] FIG1 is a flow chart of a method for predicting and repairing the life of a resistive memory chip according to an embodiment of the present application;

[0085] FIG2 is a schematic diagram of an RRAM chip storage unit and array structure according to an embodiment of the present application;

[0086] FIG3 is a flowchart of raw data acquisition according to an embodiment of the present application;

[0087] FIG4 is a schematic diagram of the overall LSTM architecture of an embodiment of the present application;

[0088] FIG5 is a schematic diagram of a model training based on LSTM according to an embodiment of the present application;

[0089] FIG6 is a schematic diagram of a RRAM chip lifespan prediction method according to an embodiment of the present application;

[0090] FIG7 is a schematic diagram of a repair voltage applied to a pseudo-failed memory cell according to an embodiment of the present application;

[0091] FIG8 is a schematic diagram illustrating the morphology of conductive filaments in a memory cell during application of a repair method according to an embodiment of the present application;

[0092] FIG9 is a flow chart of a method for repairing a memory cell for a false failure according to an embodiment of the present application;

[0093] FIG10 is a histogram of the statistical results of the prediction accuracy of the prediction task model including different time slices according to an embodiment of the present application;

[0094] FIG11 shows the repair rate and the improvement rate of the repair rate of memory cells with false failures in different resistance ranges before and after using the repair method according to an embodiment of the present application;

[0095] FIG12 shows the probability of false failure occurring in different resistance value intervals before and after the repair method is used and the rate of decrease of the probability of false failure occurring in an embodiment of the present application. DETAILED DESCRIPTION

[0096] The preferred embodiments of the present application are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of the present application and are used together with the embodiments of the present application to illustrate the principles of the present application, and are not used to limit the scope of the present application.

[0097] A specific embodiment of the present application discloses a life prediction and repair method for a resistive memory chip, as shown in FIG1 , comprising the following steps:

[0098] Step S110, constructing a model training data set: obtaining the raw data of all storage cells of the RRAM chip in multiple simulation cycles; the simulation cycle is a cycle that simulates the actual erase and write process of the RRAM chip to evaluate the durability; pre-processing the raw data to obtain the forming voltage FV t , Normalized set resistance SR t , Normalized reset resistance RR t , local fluctuation of the set resistance value SFt , local fluctuation of reset resistance RF t , global volatility SVAR of set resistance value t , global volatility of reset resistance RVAR t , average set voltage SVOL t and the average reset voltage RVOL t The nine-dimensional input data X t ={FV t ,SR t ,RR t ,SF t ,RF t ,SVAR t , RVAR t ,SVOL t ,RVOL t}; X t The dataset D1 is constructed with a data structure of K×9×T, where K is the number of RRAM chip storage units and T is the number of simulation cycles covered by the original data. The dataset D1 is labeled as true failure or false failure according to the output results within a span in each simulation cycle, and the external input X containing the model M is obtained. t and the corresponding label C t A model training data set D2; wherein a span in the simulation cycle is N set-reset cycle operations;

[0099] Step S120: Model training step: Divide the model training data set into training set D train and the test set D test ; Initialize the model M and construct M into 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 K storage units; using the training set D train Train the model M to obtain the final model M trained , using the test set D test For model M trained Conduct testing;

[0100] Step S130, prediction step of the model: obtaining measured data of each memory cell completing a write-erase cycle under normal working conditions through the read-write circuit; wherein the write-erase cycle is a cycle for evaluating the durability of the memory cell after a certain number of write-erase times under normal working conditions of the RRAM chip; pre-processing the measured data to obtain the input data X of the memory cell in the current write-erase cycle t, which contains nine dimensions. pt[i] ={FV p[i],SR p[i] ,RR p[i] ,SF p[i] ,RF p[i] ,SVAR p[i] , RVAR p[i] ,SVOL p[i] ,RVOL p[i]} t ; X pt[i] Input the corresponding trained model M trained , get the prediction result Y of the storage unit in the next erase cycle t+1 t[i] , and finally determine whether it is a false failure storage unit that actually needs to be repaired;

[0101] Step S140, a step of repairing a storage unit: obtaining the address of a pseudo-failed storage unit that actually needs to be repaired; performing a repair operation on the storage unit; and the storage unit enters the next erase / write cycle.

[0102] Specifically, the construction of the model training data set in step S110 includes the following steps:

[0103] 1. Get 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;

[0104] 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;

[0105] Specifically, the original data D t It is obtained by reading and writing the circuit and using the test software to perform the following steps:

[0106] (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;

[0107] (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;

[0108] (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;

[0109] 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;

[0110] 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Ω;

[0111] 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;

[0112] (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;

[0113] 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;

[0114] 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Ω;

[0115] 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;

[0116] (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;

[0117] (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 storage unit, i∈[0,K-1]; K is the total number of storage units in the RRAM chip;

[0118] (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;

[0119] 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;

[0120] 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Ω;

[0121] 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;

[0122] (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 storage unit, i∈[0,K-1]; K is the total number of storage units in the RRAM chip;

[0123] (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,Rr , 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.

[0124] 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;

[0125] 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;

[0126] Optionally, the chip testing machine model may be ADVANTEST V93000;

[0127] 2. 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}, the steps include:

[0128] (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;

[0129] (2)SR t The normalized set resistance is represented by the average 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:

[0130] 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;

[0131] (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_RAWt[i] The normalized reset resistance of the ith storage unit in the tth cycle is expressed as follows:

[0132] 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;

[0133] (4)SF t Characterizes the local fluctuation of the set resistance value of the storage unit, which is obtained by normalizing the set resistance value samples and performing convolution summation 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: R s't[i] =R st[i] / R low δ=[-1,0,1] SF t ={SF [1] ,SF [2] ,……,SF [K-1]} t

[0134] 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;

[0135] (5)RF t Characterize the local fluctuation of the reset resistance of the storage unit, which is obtained by normalizing the reset resistance sample and performing convolution summation with the one-dimensional edge detection operator [-1, 0, 1]. 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 r't[i] =R rt[i] / R high δ=[-1,0,1] RF t ={RF [1] ,RF [2] ,……,RF [K-1]} t

[0136] 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;

[0137] (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 formula is: s't[i] =R st[i] / R low SVAR t ={SVAR [1] ,SVAR [2] ,……,SVAR [K-1]} t

[0138] 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;

[0139] (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 t Characterizes 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 formula is: r't[i] =R rt[i] / R high RVAR t ={RVAR [1] ,RVAR [2] ,……,RVAR [K-1]} t

[0140] 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 lth 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;

[0141] (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 SVOLt Characterizes the average set voltage of the memory cell in a span operation within the t-th simulation cycle. The formula is:

[0142] 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;

[0143] (9)RVOL t Characterizes the average reset voltage of the memory cell, obtained by averaging all the reset voltages recorded 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:

[0144] Where i represents the i-th storage unit, i∈[0,K-1]; j 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;

[0145] 3. Based on the preprocessed data of 9 dimensions, construct a data set D1 with a data structure of K×9×T;

[0146] Specifically, the number of cycles T covered by the original data is recorded as a training span, and 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 Representing the t-th time slice contains 9 dimensions of data of K memory units;

[0147] 4. Make a binary classification label for the dataset D1 as true failure or false failure, and obtain the external input X containing the model M t and the corresponding label C t The model training data set D2 is used; specifically, the following steps are included:

[0148] (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:

[0149] 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;

[0150] b) In other cases except i, the status result is S t+1[i] =1, indicating that the memory cell has a false failure in the t+1th simulation cycle;

[0151] (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:

[0152] i. When the state result S t+1[i] =0, X t[i] The corresponding label c t[i] =[1,0] t ;

[0153] ii. When the status result S t+1[i] =1, X t[i] The corresponding label c t[i] =[0,1] t ;

[0154] (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 , D2_1 ,……,D 2_T-1}.

[0155] Specifically, the model M is constructed based on a long short-term memory (LSTM) neural network, as shown in Figure 6. LSTM is used to predict important events with long intervals and delays in a time series. For the lifespan 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 / write cycle under actual operating conditions. The time slice immediately after the forming operation is defined as T0, followed by T1, T2, ..., Tt, T(t+1), ...

[0156] 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;

[0157] 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);

[0158] Specifically, the iterative calculation of the model M includes the following steps:

[0159] (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]};

[0160] (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 Perform splicing to get the current time slice T t The current neural network input I t , the formula is: t ={H t-1 , X t[i]}

[0161] (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)

[0162] 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.

[0163] (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

[0164] 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 tThe 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;

[0165] (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 )

[0166] 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;

[0167] (6) Input the current hidden state Ht into the neural network to enter the next time slice T t+1 The loop calculation repeats (2) to (5), and 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] , the formula is:

[0168] 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;

[0169] (7) 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:

[0170] 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.

[0171] 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.

[0172] Specifically, the training of the model in step S120 includes the following steps:

[0173] 1. Divide the model training data set D2 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}; Preferably, the value of T is 25 and the value of TS is 20;

[0174] 2. Initialize the model M and 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]};

[0175] 3. D train The input data for each time slice in {D2} t , split into K 9-dimensional vectors Xt ={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 Conduct testing;

[0176] Specifically, the step S130 of obtaining the measured data of each storage unit completing a read / write cycle during the actual erase / write process includes:

[0177] (1) Obtaining the forming voltage FV for the new RRAM chip forming operation p ;

[0178] (2) Recording the measured data of each storage unit in each erase / write cycle of the RRAM chip after molding under normal working conditions; wherein, one erase / write cycle includes: the storage unit completes a set / reset cycle operation with a preset number of cycles N, which is recorded as a span within the erase / write cycle; after completing a span operation within the erase / write cycle, the storage unit is subjected to a preset number of repeated read operations n times, then a set operation is performed, and then a preset number of repeated read operations n times; the measured data D pt Includes: the set voltage SVOL_RAW recorded within a span of the erase cycle p[i] and reset voltage RVOL_RAW p[i] , and set resistance SR_RAW p[i] and reset resistance RR_RAW p[i] , reset resistance sample R recorded by the first repeated read operation in the erase / write cycle pr[i] , the set resistance value sample R recorded by the second repeated read operation in the erase / write cycle ps[i] , the set resistance value R recorded between two repeated read operations pset[i] and the set voltage V pset[i] And all the output results in the erase and write cycle O p[i] ; Specifically include:

[0179] i. The resistance value of each memory cell {RVOL_RAW when the memory cell is successfully positioned in a span of the erase / write cycle t p[i]} t and the corresponding set voltage {SVOL_RAW p[i]}t , or the resistance value of each storage unit {RVOL_RAW p[i]} t and the corresponding set voltage {SVOL_RAW p[i]} t ; and the resistance of each storage unit when reset is successful {RR_RAW p[i]} t and the corresponding reset voltage {RVOL_RAW p[i]} t , or the resistance value of each storage unit when the reset reaches the preset number of times and still fails {RR_RAW p[i]} t and the corresponding reset voltage {RVOL_RAW p[i]} t ; and output result {O p[i]} t Writing in real time into the flash memory outside the RRAM chip; wherein the setting success includes a single setting success, or a step-by-step setting process, where the number of successful settings does not reach a preset number, and the output result is 0 for setting success; wherein the resetting success includes a single setting success, or a step-by-step resetting process, where the number of successful settings does not reach a preset number, and the output result is 0 for resetting success;

[0180] ii. The reset resistance value sample {R pr[i]} t , the set resistance value sample {R ps[i]} t , the set resistance value {R pset[i]} t and the set voltage {V pset[i]} t And all the output results in the erase and write cycle {O p[i]} t Write to the flash memory outside the RRAM chip.

[0181] Specifically, the measured data is preprocessed in step S3 to obtain the nine-dimensional input data X of the storage unit in the current erase / write cycle t. pt[i] ={FV p[i] ,SR p[i] ,RR p[i] ,SF p[i] ,RF p[i] ,SVAR p[i] , RVAR p[i] ,SVOL p[i] ,RVOL p[i]} t ,include:

[0182] (1)FV pt[i] Characterizes the forming voltage of the memory cell. The value of the first erase / write cycle is the forming voltage FV of the chip. p , the value of the subsequent erase and write cycles is set to 0; the time slice corresponds to the erase and write cycle of the memory cell to be predicted; specifically, Among them, t = 0 is the first time slice, corresponding to the first erase and write cycle of the storage unit, FV p0[i] =FV=1.7v; t∈[1,TS-1] is the second to TS-1 time slice, corresponding to the second to TS-1 erase and write cycle of the storage unit, that is, FV pt[i] ={FV p[1] ,FV p[2] ,……,FV p[K-1]} t =0;

[0183] (2)SR pt[i] Characterizes the normalized set resistance value of the memory cell, which is represented by the original set resistance value SR_RAW pt[i] The average value of the RRAM is divided by the stable low resistance R low Then we get: 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. Its formula is:

[0184] Where i represents the i-th storage unit, i∈[0,K-1]; j represents the j-th set operation within a span of the erase / write cycle, j∈[0,N-1]; t represents the t-th time slice corresponding to the current erase / write cycle, K is the total number of storage units in the RRAM chip; N is the number of cycles in which the storage unit completes the set / reset cycle operation within a span of the erase / write cycle;

[0185] (3)RR pt[i] Characterizes the normalized reset resistance of the storage unit, which is represented by the original reset resistance RR_RAW pt[i] The average value of the RRAM is divided by the stable high resistance R high Then we get: high This 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; its formula is:

[0186] Where i represents the i-th storage unit, i∈[0,K-1]; j represents the j-th set operation within a span of the erase / write cycle, j∈[0,N-1]; t represents the t-th time slice corresponding to the current erase / write cycle; K is the total number of storage units in the RRAM chip; N is the number of cycles that the storage unit completes the set / reset cycle operation within a span of the erase / write cycle;

[0187] (4)SF pt[i] Characterize the local fluctuation of the set resistance value of the storage unit, which is obtained by convolving and summing the normalized set resistance value samples with the one-dimensional edge detection operator [-1, 0, 1]. The formula is: δ=[-1,0,1]

[0188] in, t represents the tth time slice corresponding to the current erase / write cycle; K is the total number of storage cells in the RRAM chip, TS is the number of time slices covered by the training set of the training model; n is the set resistance value R obtained by repeated read operations after a span in the erase / write cycle pst[i] The number of samples;

[0189] (5)RF pt[i] Characterize the local fluctuation of the reset resistance of the storage unit, which is obtained by convolving and summing the normalized reset resistance samples with the one-dimensional edge detection operator [-1, 0, 1]. The formula is: δ=[-1,0,1]

[0190] in, t represents the tth time slice corresponding to the current erase / write cycle; K is the total number of storage cells in the RRAM chip, TS is the number of time slices covered by the training set of the training model; n is the reset resistance value R obtained by repeated read operations after a span in the erase / write cycle rt[i] The number of samples;

[0191] (6)SVAR pt[i] The global volatility of the set resistance value of the memory cell is characterized by normalizing each resistance value in the set resistance value sample and then calculating the variance; the formula is:

[0192] in, t represents the tth time slice corresponding to the current erase / write cycle; K represents the total number of memory cells in the RRAM chip; k represents the kth read operation among n consecutive read operations after a span operation and then a set operation of the memory cell in each erase / write cycle; n represents the set resistance value R obtained by repeated read operations after a span in the erase / write cycle. pst[i] The number of samples;

[0193] (7)RVAR t[i] The global volatility of the reset resistance of the memory cell is characterized by normalizing each resistance value in the reset resistance sample and then calculating the variance. The formula is:

[0194] in, t represents the tth time slice corresponding to the current erase / write cycle; K is the total number of memory cells in the RRAM chip; l represents the lth read operation in n consecutive read operations after a span operation of the memory cell in each erase / write cycle; n is the reset resistance value R obtained by repeated read operations after a span in the erase / write cycle rt[i] The number of samples;

[0195] (8)SVOL pt[i] The average set voltage of the memory cell is obtained by averaging the set voltages of all records within a span of the erase / write cycle. The formula is:

[0196] 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 time slice corresponding to the current erase / write cycle; K is the total number of storage units in the RRAM chip, and N is the number of cycles in which the storage unit completes the set / reset cycle operation in a span during the erase / write cycle;

[0197] (9)RVOL pt[i] 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 erase / write cycle. The formula is:

[0198] Where i represents the i-th storage unit, i∈[0,K-1]; j represents the m-th reset operation in a span, m∈[0,N-1]; t represents the t-th time slice corresponding to the current erase / write cycle; K is the total number of storage units in the RRAM chip, and N is the number of cycles in which the storage unit completes the set-reset cycle operation in a span during the erase / write cycle.

[0199] Specifically, in step S3, X pt[i] Input the corresponding trained model M trained Get the prediction result Y of the storage unit in the next erase cycle t+1 t[i] , and finally determine whether it is a false failure storage unit that actually needs to be repaired, including:

[0200] (3) The pre-processed data X after an erase cycle pt[i] Input the trained model M trained ;

[0201] (4)M trained[i] Output Y t[i] is the prediction result of the storage unit in the next erase cycle t+1; t[i] =1 indicates that the unit is predicted to fail in the next time slice, and (3) is executed; when Yt[i] =0 means that the unit is predicted to fail in the next time slice and its stored data is transferred to other storage units;

[0202] (3) For Y t[i] =1 is judged twice, when the output result of the current erase / write cycle t of the storage unit is O t[i] If the setting is successful N+1 times and the reset is successful N times, it is determined that the memory cell does not need to be repaired; otherwise, the memory cell is a false failure memory cell that actually needs to be repaired, and a repair operation is performed through the digital-to-analog conversion circuit.

[0203] Specifically, the repair operation on the storage unit in step S140 includes:

[0204] (1) Gradually set: For the i-th memory cell to be repaired, a set pulse is applied to its bit line end to perform a set operation, and then a read operation is performed to read its resistance value; when the read resistance value is less than the stable low resistance R low If the set operation succeeds, proceed to (2); otherwise, the pulse amplitude of the set operation is increased by a preset increment value, and the set operation and read operation cycle are repeated until the set operation and read operation reach a preset number of cycles or the resistance value read by the read operation is less than the stable low resistance R of the RRAM chip. low ; Wherein, the stable low resistance R low The low resistance value of the memory cell when the RRAM chip is working normally is also the low resistance value in the most stable state; wherein, the read operation pulse is 0.3v / 700ns, the initial set pulse value is 1.2v / 700ns, and R low 35KΩ; optionally, when the resistance value read by the read operation after the set operation is greater than or equal to the stable low resistance R low When the output is set to fail; optionally, the preset increase value is 0.05v to 0.5v; preferably, the preset increase value is 0.1v, and the preset number of cycles is 8 times;

[0205] (2) Reset repair: For the i-th memory cell to be repaired, a reset pulse higher than the average reset voltage of the current erase / write cycle is applied to its source line end to perform a reset operation, and then a read operation is performed to read its resistance value; the reset pulse voltage amplitude is RVOL pt[i] +Preset increase value; RVOL pt[i] It is the average voltage of N reset operations of the memory cell within a span of the current erase / write cycle; wherein, the read operation pulse is 0.3v / 700ns and the initial set pulse value is 1.2v / 700ns; optionally, the preset increase value can be 0.1v~0.3v; the preferred preset increase value is 0.2v.

[0206] (3) Repeating the repair cycles of (1) and (2) until the preset number of repair cycles is accumulated, and the repair operation of the storage unit is completed; optionally, the preset number of repair cycles is accumulated from 5 to 15 times; preferably, the preset number of repair cycles is accumulated from 10 times;

[0207] Compared with the prior art, this application can achieve at least one of the following beneficial effects:

[0208] 1. The prediction accuracy of the model constructed using the method described in this application reaches 86.75%, which is much higher than the 65% of the existing prediction model. At the same time, compared with the disadvantage of the existing model that too many set / reset operations are performed in one prediction cycle, the model of this application can predict the memory cell with a smaller number of set / reset operations. That is, the existing model needs to include 100,000 set / reset operations in one prediction cycle, while the model of this application can reduce the prediction cycle to 500 set / reset operations, which can predict and repair the memory cell more timely.

[0209] 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, and more comprehensively reflecting the physical state of the RRAM device;

[0210] 3. Based on the model's predictions, a specific voltage stimulus is applied to memory cells that may experience false failures, and the voltage amplitude is gradually increased to prevent the occurrence of false failures. Compared with the existing method of remediating false failures in memory cells after they have occurred and simply increasing the voltage and increasing the storage window, this method does not result in the consequences of accelerated aging of memory cells due to excessive voltage and shortening the lifespan of memory cells. It can significantly reduce the error rate of memory cells in RRAM chips.

[0211] 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.

[0212] The above is only a preferred specific implementation method of the present application, but the scope of protection of the present application is not limited thereto. Any changes or replacements that can be easily thought of by any technician familiar with this technical field within the technical scope disclosed in this application should be covered by the scope of protection of the present application.

Claims

1. A method for predicting and repairing the life of a resistive memory chip, characterized in that: The steps include: Construct a model training data set, which includes input data X t and binary classification labeling of true failure or false failure; Among them, the input data X t Including forming voltage FV t 、Normalized set resistance SR t , Normalized reset resistance RR t , local fluctuation of the setting resistance value SF t , local fluctuation of reset resistance RF t , global volatility SVAR of set resistance value t , global volatility of reset resistance RVAR t , average set voltage SVOL t and the average reset voltage RVOL t ; The model M is trained using the constructed training data set, wherein the model M includes K LSTM replica models {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; Acquire the measured data of the memory cell to be predicted completing a read / write cycle under normal working conditions; process the measured data to obtain the input data X pt[i] ; X pt[i] Input the corresponding trained model to get the prediction result Y of the storage unit in the next erase cycle t+1 t[i] , and finally determine whether it is a false failed storage unit that actually needs to be repaired; Obtaining the address of the fake failed storage unit that actually needs to be repaired; Perform a repair operation on the storage unit.

2. The method according to claim 1, characterized in that The model training data set construction includes: Get the original data D t ; 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 }; According to the preprocessed data of 9 dimensions, a data set D1 with a data structure of K×9×T is constructed; K is the total number of storage cells in the RRAM chip; T is the number of simulation cycles covered by the original data; The dataset D1 is labeled as true failure or false failure, and the external input X containing the model M is obtained. t and the corresponding label C t The model training dataset D2.

3. The method according to claim 2, characterized in that The obtaining of original data comprises: (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, and a setting success before reaching a preset number of times; (4) Reset the chip after setting, 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 .

4. The method according to claim 1 or 2, characterized in that The input data X t include: (1) FV t Characterize the forming voltage, the value of the first time slice is FV in the original data, and the subsequent time slices are set to 0; (2)SR t The normalized set resistance is represented by the average of the raw set resistance SR_RAW 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, and it is also the low resistance value in the most stable state; (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 This 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; (4) SF t Characterize the local volatility 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]; (5)RF t Characterizes the local volatility of the reset resistance of the storage unit, which is obtained by convolving and summing the reset resistance samples after normalization with the one-dimensional edge detection operator [-1, 0, 1]; (6)SVAR t Characterize the global volatility of the set resistance value of the memory cell, which is obtained by normalizing each resistance value in the set resistance value sample and then calculating the variance; (7) RVAR t Characterize the global volatility of the reset resistance of the storage unit, which is obtained by normalizing each resistance value in the reset resistance sample and then calculating the variance; (8)SVOL t Characterizes the average set voltage of the memory cell, obtained by averaging all recorded set voltages within a span in the simulation cycle; (9)RVOL t Characterizes the average reset voltage of the memory cell, obtained by averaging all recorded reset voltages within a span in the simulation cycle.

5. The method according to claim 1 or 2, characterized in that The binary classification labeling of true failure or false failure includes: (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: 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; b) In all cases except i, the status result is 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 c t[i] =[c i 0 ,c i 1 ] t ; The superscripts 0 and 1 are the index values ​​of the two-dimensional 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 ; (3) Construct T K × 2 matrices in units of time slices as the external input X of 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 }.

6. The method according to claim 1 or 2, characterized in that The model M comprises: The model M is built based on LSTM, and the cell parameters include: Cell State C t 、Hidden State t and the state update value U t ; 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); AND=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.

7. The method according to claim 6, characterized in that The iterative calculation of the model M includes: (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 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 ; (3) Input the current neural network into I t After affine transformation, it is activated by tanh function to obtain the current state update value U; (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 Ht; (6) Input the current hidden state Ht into the neural network to enter the next time slice T t+1 The loop calculation repeats (2) to (5), and 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 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.

8. The method according to claim 1, characterized in that The measured data include: (1) Obtaining the forming voltage FV for the new RRAM chip forming operation p ; (2) Recording the measured data of each storage unit in each erase / write cycle under normal working conditions of the formed RRAM chip; wherein an erase / write cycle includes: the storage unit completes a preset number of set / reset cycles N, which is recorded as a span within the erase / write cycle; After a span operation in the erase-write cycle, the storage unit is repeatedly read for a preset number of times n, then a set operation is performed, and then a repeated read operation is performed for a preset number of times n; the measured data D pt Includes: The set voltage SVOL_RAW recorded within a span of the erase cycle p[i] and reset voltage RVOL_RAW p[i] , and set resistance value SR_RAW p[i] and reset resistance RR_RAW p[i] , the reset resistance sample R recorded by the first repeated read operation in the erase-write cycle pr[i] , the set resistance value sample R recorded by the second repeated read operation in the erase-write cycle ps[i] , the set resistance value R recorded between two repeated read operations pset[i] and the set voltage V pset[i] And all the output results within the erase and write cycle O p[i] .

9. The method according to claim 1, characterized in that The step of processing the measured data to obtain input data comprises: (1) FV pt[i] Characterizes the forming voltage of the storage unit. The value of the first erase and write cycle is the forming voltage FV of the chip. p , the value of the subsequent erase and write cycles is set to 0; (2)SR pt[i] Characterizes the normalized set resistance value of the storage unit, which is the original set resistance value SR_RAW pt[i] The average value of RRAM is divided by the stable low resistance R low Afterwards, (3)RR pt[i] Characterizes the normalized reset resistance of the storage unit, which is the original reset resistance RR_RAW pt[i] The average value of RRAM divided by the stable high resistance R high Afterwards, (4) SF pt[i] Characterize the local volatility 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]; (5)RF pt[i] Characterize the local volatility of the reset resistance of the storage unit, which is obtained by convolving and summing the reset resistance samples after normalization with the one-dimensional edge detection operator [-1, 0, 1]; (6)SVAR pt[i] Characterizing 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; (7) RVAR t[i] Characterize the global volatility of the reset resistance of the storage unit, and obtain it by normalizing each resistance in the reset resistance sample and then calculating the variance; (8)SVOL pt[i] Characterizes the average set voltage of the memory cell, obtained by averaging the set voltages of all records within a span in the write-erase cycle; (9)RVOL pt[i] The average reset voltage of the memory cell is characterized by averaging the reset voltages of all records within a span in the erase / write cycle.

10. The method according to claim 1, characterized in that The final determination of whether the storage unit is a false failure unit that actually needs to be repaired includes: (1) After a write cycle, the pre-processed data X pt[i] Input the trained model M trained ; (2)M trained[i] Output Y t[i] is the prediction result of the storage unit in the next erase cycle t+1; t[i] =1 indicates that the unit is predicted to fail in the next time slice, and (3) is executed; when Y t[i] =0 means that the unit is predicted to fail in the next time slice, and its stored data is transferred to other storage units; (3) For Y t[i] =1 is used for secondary judgment. When the output result of the current erase / write cycle t of the storage unit is O t[i] When the setting is successful for N+1 times and the resetting is successful for N times, it is determined that the storage unit does not need to be repaired; otherwise, the storage unit is a false failure storage unit that actually needs to be repaired, and a repair operation is performed through the digital-to-analog conversion circuit.

11. The method according to claim 1, characterized in that The repair operation includes: (1) Step-by-step setting: For the i-th memory cell to be repaired, a set pulse is applied to its bit line end to perform a set operation, and then a read operation is performed to read its resistance value; when the read resistance value is less than the stable low resistance R low If the set operation succeeds, the process proceeds to (2); otherwise, the pulse amplitude of the set operation is increased by a preset increment value, and the set operation and read operation cycle are repeated until the set operation and read operation reach a preset number of cycles or the resistance value read by the read operation is less than the stable low resistance R of the RRAM chip. low ; (2) Reset repair: For the i-th memory cell to be repaired, a reset pulse higher than the average reset voltage of the current erase / write cycle is applied to its source line end to perform a reset operation, and then a read operation is performed to read its resistance value; the amplitude of the reset pulse voltage is RVOL pt[i] +Preset increase value; RVOL pt[i] The average voltage of N reset operations of the storage unit within a span of the current erase-write cycle; (3) Repeat the repair cycles (1) and (2) until the repair cycle accumulates a preset number of times and the repair operation of the storage unit is completed.

Citation Information

Patent Citations

  • Mathematical model based flash memory chip lifetime prediction method

    CN107967928A

  • Method and device for dynamically predicting service life of flash memory chip online

    CN108766496A

  • Method and system for predicting service life of flash memory block based on three-dimensional flash memory storage structure

    CN112085107A

  • Method for evaluating application-level erasing and writing life of nonvolatile memory

    CN112435706A

  • Chip life prediction system and method using artificial intelligence technology

    CN114781128A