Prediction model training method, resistance state retentivity repairing method, device and equipment
By performing specific operations on RRAM, collecting training sample data, training an impedance-state retention prediction model, and repairing RRAM before prediction failure, solving the problem of difficult to judge the stability of RRAM information storage, and achieving improved RRAM stability and reliability.
Patent Information
- Application Number
- CN202311451895.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2025-05-06
AI Technical Summary
The information storage stability of RRAM is difficult to judge, and it is an important factor that hinders the industrialization of RRAM. It is urgently needed to accurately predict the stability of RRAM information storage and repair RRAM in an unstable state.
It provides a training method and an anti-state retention recovery method for the resistive state retention prediction model. By performing specific erase and read operations on the RRAM, collecting training sample data, training an anti-state retention prediction model, and performing repair operations when the prediction results characterize the RRAM will fail.
Accurate prediction of the stability of RRAM information storage is realized, and RRAM is repaired before the prediction fails, improving the resistance retention of RRAM and the stability of information storage.
Smart Images

Figure CN119943107A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of computer technology, artificial intelligence technology and microelectronics technology, and in particular to a prediction model training method, a resistance state retention repair method, a device and equipment, a medium and a program product. Background Art
[0002] Resistive Random Access Memory (RRAM) is an embedded non-volatile memory (NVM) that can be applied to advanced process nodes. RRAM has great application prospects in edge computing and IoT terminal devices due to its good compatibility with CMOS process, low power consumption and high reliability.
[0003] In the related technology, it is difficult to judge whether the information storage of RRAM is stable. Therefore, the stability of RRAM's information storage has become an important factor hindering the industrialization of RRAM. It is urgent to find a method that can accurately predict the information storage stability of RRAM and a method to repair RRAM in an unstable state. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a prediction model training method, a resistance state preservation repair method, a device and equipment, a medium and a program product.
[0005] According to a first aspect of the present disclosure, a method for training a resistance state retention prediction model is provided, comprising:
[0006] Performing a first preset number of erasing and writing operations on the M resistive memories in the on state to obtain M first resistive memories and erasing and writing operation voltages respectively corresponding to the M first resistive memories;
[0007] For each of the M first resistive memories, within a first preset time length, and at intervals of a second preset time length, a continuous read operation is performed on the first resistive memory to obtain first resistance state data;
[0008] At every second preset time, the first resistive memory is gradually read to obtain second resistive state data;
[0009] Obtaining training sample data according to each of the first resistance state data, each of the second resistance state data and the erase / write operation voltage respectively corresponding to the M first resistive memories;
[0010] The resistance state retention prediction model is trained according to the above training sample data;
[0011] When the prediction accuracy of the resistance state retention prediction model for the resistance state retention of the M first resistive random access memories is greater than or equal to a first preset value, a target prediction model is obtained.
[0012] A second aspect of the present disclosure provides a method for repairing resistance state retention, comprising:
[0013] Performing a first preset number of erase / write operations on a target resistive memory in a conducting state to obtain a first target resistive memory and an erase / write operation voltage corresponding to the first target resistive memory;
[0014] Performing a continuous read operation on the first target resistive memory to obtain third resistive state data;
[0015] Performing a step-by-step read operation on the first target resistive memory to obtain fourth resistive state data;
[0016] Obtaining target resistance state data according to the third resistance state data, the fourth resistance state data and the erase / write operation voltage corresponding to the first target resistance memory;
[0017] Inputting the target resistance state data into the target prediction model to obtain a resistance state retention prediction result corresponding to the first target resistive memory;
[0018] When the retention prediction result indicates that the first target resistive memory fails after a preset time period, a repair operation is performed on the first target resistive memory to obtain a second target resistive memory.
[0019] A third aspect of the present disclosure provides a training device for a resistance state retention prediction model, comprising:
[0020] A first obtaining module is used to perform a first preset number of erase / write operations on M resistive random access memories in a conducting state to obtain M first resistive random access memories and erase / write operation voltages respectively corresponding to the M first resistive random access memories;
[0021] A second obtaining module is used to perform a continuous read operation on each of the M first resistive memories within a first preset time length and at intervals of a second preset time length to obtain first resistance state data;
[0022] A third obtaining module is used to perform a step-by-step reading operation on the first resistive memory at intervals of a second preset time length to obtain second resistance state data;
[0023] A fourth obtaining module is used to obtain training sample data according to each of the first resistance state data, each of the second resistance state data and the erase / write operation voltage respectively corresponding to the M first resistive memory cells;
[0024] A training module, used for training the resistance state retention prediction model according to the above training sample data;
[0025] The fifth obtaining module is used to obtain a target prediction model when the prediction accuracy of the resistance state retention prediction model for the resistance state retention of the M first resistive random access memories is greater than or equal to a first preset value.
[0026] A fourth aspect of the present disclosure provides a resistance state retention repair device, comprising:
[0027] A first target resistive memory and an erase / write operation voltage obtaining module, used in a sixth obtaining module, for performing a first preset number of erase / write operations on a target resistive memory in a conducting state to obtain a first target resistive memory and an erase / write operation voltage corresponding to the first target resistive memory;
[0028] A third resistance state data obtaining module is used to perform a continuous read operation on the first target resistive memory to obtain third resistance state data;
[0029] A fourth resistance state data obtaining module is used to perform a step-by-step read operation on the first target resistive memory to obtain fourth resistance state data;
[0030] A target resistance state data obtaining module, used for obtaining target resistance state data according to the third resistance state data, the fourth resistance state data and the erase / write operation voltage corresponding to the first target resistive memory;
[0031] A prediction result obtaining module, used for inputting the above-mentioned target resistance state data into the above-mentioned target prediction model to obtain a resistance state retention prediction result corresponding to the above-mentioned first target resistive memory;
[0032] The second target resistive memory obtaining module is used to perform a repair operation on the first target resistive memory to obtain a second target resistive memory when the retention prediction result indicates that the first target resistive memory fails after a preset time period.
[0033] The fifth aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the training method of the resistive state retention prediction model and the resistive state retention repair method.
[0034] The sixth aspect of the present disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned resistance state retention prediction model training method and resistance state retention repair method.
[0035] The seventh aspect of the present disclosure also provides a computer program product, including a computer program, which, when executed by a processor, implements the training method of the above-mentioned resistance state retention prediction model and the resistance state retention repair method. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The above contents and other purposes, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0037] Figure 1 A diagram schematically shows an application scenario of a method for training a resistance state retention prediction model and a method for repairing resistance state retention according to an embodiment of the present disclosure;
[0038] Figure 2 A flowchart of a method for training a resistance state retention prediction model according to an embodiment of the present disclosure is schematically shown;
[0039] Figure 3 A schematic diagram schematically shows N identical first preset voltages according to an embodiment of the present disclosure;
[0040] Figure 4 A schematic diagram schematically shows P gradually increasing second preset voltages according to an embodiment of the present disclosure;
[0041] Figure 5 A flowchart for collecting resistance state data of a first resistive memory according to an embodiment of the present disclosure is schematically shown;
[0042] Figure 6 A flowchart of a method for training a resistance state retention prediction model according to another embodiment of the present disclosure is schematically shown;
[0043] Figure 7 A schematic diagram schematically shows a resistance value drifting toward a low resistance of a resistive random access memory according to an embodiment of the present disclosure;
[0044] Figure 8 A schematic diagram of a resistive memory array according to an embodiment of the present disclosure is schematically shown;
[0045] Fig. 9 A flowchart of a method for repairing resistance state retention according to an embodiment of the present disclosure is schematically shown;
[0046] Fig.10 A flowchart of a method for repairing resistance state retention according to another embodiment of the present disclosure is schematically shown;
[0047] Fig.11 A schematic diagram schematically illustrates a repair voltage used in a repair operation according to an embodiment of the present disclosure;
[0048] Fig.12A schematic diagram schematically shows the reference resistance values of M first resistive memories after every second preset time period according to an embodiment of the present disclosure;
[0049] Fig.13 The training result of the retention prediction model according to the embodiment of the present disclosure is schematically shown;
[0050] Fig.14 Schematically showing the test results of the retention prediction model according to the embodiment of the present disclosure;
[0051] Fig.15 The structural block diagram of the training device of the resistance state retention prediction model according to the embodiment of the present disclosure is schematically shown;
[0052] Fig.16 A structural block diagram of a resistance state preserving repair device according to an embodiment of the present disclosure is schematically shown; and
[0053] Fig.17 A block diagram of an electronic device suitable for implementing a training method for a resistance state retention prediction model and a resistance state retention repair method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0054] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0055] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0056] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0057] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0058] In the related technology, it is difficult to judge whether the information storage of RRAM is stable. Therefore, the stability of RRAM's information storage has become an important factor hindering the industrialization of RRAM. It is urgent to find a method that can accurately predict the information storage stability of RRAM and a method to repair RRAM in an unstable state.
[0059] According to the embodiments of the present disclosure, the resistance state retention is an important characteristic of RRAM and an important indicator for measuring the stability of information storage in RRAM. For example, for IoT terminal devices, when the resistance state of RRAM fails, RRAM is in an unstable state, which will cause data storage errors in RRAM in the chip of IoT terminal devices. For edge computing, when the resistance state of RRAM fails, RRAM is in an unstable state, which will cause changes in the network weights of the neural network stored in RRAM, ultimately affecting the accuracy of the neural network algorithm.
[0060] Therefore, the stability of information storage in RRAM can be determined by determining the resistance state retention of RRAM. Then, when it is determined that the resistance state of RRAM will fail, the RRAM whose resistance state will fail can be repaired to obtain RRAM with better resistance state retention, thereby obtaining RRAM in a stable state.
[0061] In order to at least partially solve the technical problems existing in the related art, the embodiments of the present disclosure provide a prediction model training method, a resistance state retention repair method, an apparatus and equipment, a medium and a program product, which can be applied to the fields of computer technology, artificial intelligence technology and microelectronics technology.
[0062] According to the embodiments of the present disclosure, the resistance state failure caused by the decrease in the resistance state retention of RRAM mainly occurs in the high resistance state. Therefore, the training method of the resistance state retention prediction model and the resistance state retention repair method provided in the embodiments of the present disclosure are mainly aimed at predicting the resistance state retention of RRAM in the high resistance state and repairing the RRAM that will fail in the high resistance state.
[0063] According to an embodiment of the present disclosure, retention characterizes the ability of the resistive memory to remain in a high-resistance state after being placed in a second preset time period when the resistive memory is in a high-resistance state. It can also be called the ability of the resistive memory to remain in a high-resistance state within the second preset time period.
[0064] Figure 1 The application scenario diagram of the resistance state retention prediction model training method and the resistance state retention repair method according to the embodiment of the present disclosure is schematically shown.
[0065] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0066] The user may use at least one of the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0067] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0068] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0069] It should be noted that the training method of the resistance state retention prediction model and the resistance state retention repair method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the training device of the resistance state retention prediction model and the resistance state retention repair device provided in the embodiment of the present disclosure can generally be set in the server 105. The training method of the resistance state retention prediction model and the resistance state retention repair method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the training device of the resistance state retention prediction model and the resistance state retention repair device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0070] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0071] The following will be based on Figure 1 The scene described by Figure 2 to Figure 14 The training method of the resistance state retention prediction model and the resistance state retention repair method of the disclosed embodiment are described in detail.
[0072] Figure 2 The flowchart of the method for training the resistance state retention prediction model according to the embodiment of the present disclosure is schematically shown.
[0073] like Figure 2 As shown, the training method of the resistance state retention prediction model of this embodiment includes operations S210 to S260.
[0074] In operation S210, a first preset number of erase / write operations are performed on M resistive memories in the on state to obtain M first resistive memories and erase / write operation voltages respectively corresponding to the M first resistive memories.
[0075] According to the embodiments of the present disclosure, M can be selected according to actual conditions and is not limited here. For example, M can be 200, 300 or 400.
[0076] According to an embodiment of the present disclosure, the M resistive random access memories may be M oxide-based RRAMs.
[0077] According to the embodiments of the present disclosure, M resistive memories in a conducting state can be obtained by performing a forming operation, ie, a FORMING operation, on the M resistive memories respectively.
[0078] According to an embodiment of the present disclosure, the FORMING operation may include: for each of the M resistive memories, applying a voltage pulse of 1.7V / 3us to the source line end (SL end, Source Level End) of the resistive memory, and then applying a voltage pulse of 0.3V / 700ns to the bit line end (BL end, Bit Line End) of the resistive memory, and then reading the resistance value of the resistive memory. When the resistance value of the resistive memory is less than 700KΩ, it indicates that the forming operation is successful and a resistive memory in a conductive state is obtained.
[0079] According to the embodiment of the present disclosure, the first preset number can be selected according to actual conditions and is not limited here. For example, the first preset number can be 10, 30, 50, 100, 500, 1000, etc.
[0080] According to an embodiment of the present disclosure, after performing a first preset number of erase and write operations on M resistive memories in the on state, the obtained M first resistive memories are all in a high-resistance state. When the resistance value of the first resistive memory is greater than 80 kΩ, it can be characterized that the first resistive memory is in a high-resistance state.
[0081] According to an embodiment of the present disclosure, before performing a first preset number of erase and write operations on M resistive memories, quality inspection is performed on the M resistive memories to ensure that after performing the first preset number of erase and write operations on the M resistive memories, the resistance values of the M resistive memories are all greater than 80kΩ. At the same time, it can be preliminarily determined that the M resistive memories are all qualified devices and can be used in actual edge computing and Internet of Things terminal devices.
[0082] According to an embodiment of the present disclosure, a first preset number of erase and write operations are performed on M resistive memories in an on state to obtain M first resistive memories and erase and write operation voltages corresponding to the M first resistive memories, including: a first preset number of incremental step-pulse programming (ISPP) operations are performed on the M resistive memories in an on state.
[0083] According to an embodiment of the present disclosure, each ISPP operation performed on each resistive memory in the on state includes: performing a set sub-operation on the resistive memory using at least one set voltage, and then performing a reset sub-operation on the resistive memory using at least one reset voltage.
[0084] According to an embodiment of the present disclosure, the erase operation voltage may include a set sub-operation voltage and a reset sub-operation voltage. The erase operation voltage may also include a set sub-operation voltage, a reset sub-operation voltage, and a last reset sub-operation voltage. The last set voltage in each ISPP operation may be used as the set sub-operation voltage, and the last reset voltage may be used as the reset sub-operation voltage.
[0085] According to an embodiment of the present disclosure, using at least one set voltage to perform a set sub-operation on a resistive memory includes: for each of the M resistive memories in the on state, applying a voltage pulse of 1.2V / 700ns to the BL end of the resistive memory, and then applying a voltage pulse of 0.3V / 700ns to the BL end of the resistive memory, and then reading the resistance value of the resistive memory. When the resistance value of the resistive memory is less than 40KΩ, it indicates that the resistive memory is in a low resistance state, the set sub-operation is successful, and at least one subsequent reset sub-operation can be performed. When the resistance value of the resistive memory is greater than or equal to 40KΩ, the set voltage 1.2V is increased by 0.1V to obtain a second set voltage 1.3V, and the set sub-operation can be continued on the resistive memory according to the second set voltage 1.3V, and so on, until the set sub-operation is successful or the number of set sub-operations reaches 7 times.
[0086] According to an embodiment of the present disclosure, using at least one reset voltage to perform a reset sub-operation on a resistive memory includes: for each resistive memory after a set operation, applying a voltage pulse of 1.6V / 700ns to the SL end of the resistive memory, and then applying a voltage pulse of 0.3V / 700ns to the BL end of the resistive memory, reading the resistance value of the resistive memory, and when the resistance value of the resistive memory is greater than 80kΩ, the reset sub-operation is successful, and a first resistive memory is obtained, and when the resistance value of the resistive memory is less than or equal to 80KΩ, the reset voltage 1.6V is increased by 0.1V to obtain a second reset voltage of 1.7V, and subsequently the reset sub-operation of the resistive memory can be continued according to the second reset voltage 1.7V, and so on, until the set sub-operation is successful or the number of set sub-operations reaches 7 times.
[0087] According to an embodiment of the present disclosure, in performing the last ISPP operation on each resistive memory, the reset sub-operation included in the last ISPP operation can successfully reset the resistive memory, thereby obtaining a first resistive memory with a resistance value greater than 80 kΩ.
[0088] In operation S220, for each of the M first resistive memories, a continuous read operation is performed on the first resistive memory every second preset time period within a first preset time period to obtain first resistive state data.
[0089] According to an embodiment of the present disclosure, the first preset duration can be selected according to actual conditions and is not limited here. For example, the first preset duration can be 540 minutes, 1080 minutes, 2 days, 3 days or 5 days.
[0090] According to an embodiment of the present disclosure, the second preset duration can be selected according to actual conditions and is not limited here. For example, the second preset duration can be 60 minutes, 360 minutes, or 600 minutes.
[0091] According to an embodiment of the present disclosure, during a continuous read operation on a first resistive memory, multiple read operation voltages applied to the first resistive memory by the continuous read operation are the same. Therefore, the obtained first resistance state data can reflect the fluctuation of the resistance value of the first resistive memory under the same read operation voltage.
[0092] In operation S230, the first resistive memory is gradually read at intervals of a second preset time to obtain second resistive state data.
[0093] According to an embodiment of the present disclosure, in the process of performing a step-by-step read operation on the first resistive memory, the multiple read operation voltages applied to the first resistive memory by the step-by-step read operation are different. Therefore, the obtained second resistance state data can reflect the fluctuation of the resistance value of the second resistive memory under different read operation voltages.
[0094] In operation S240, training sample data is obtained according to the first resistance state data, the second resistance state data, and the erase / write operation voltages respectively corresponding to the M first resistive memories.
[0095] According to an embodiment of the present disclosure, the first resistance state data of each first resistive memory at each second preset time length, the second resistance state data at each second preset time length, and the erase operation voltage in the erase operation can be spliced and normalized to obtain training sample data of each first resistive memory at each second preset time length.
[0096] In operation S250, a resistance state retention prediction model is trained according to training sample data.
[0097] According to an embodiment of the present disclosure, the training sample data and the training sample data of each first resistive memory at each second preset time length can be used as input respectively to train the resistance state retention prediction model, so that the resistance state retention prediction model can fully learn the first resistive memory in a high resistance state, within the preset time length, and after every second preset time length, the fluctuation characteristics of the resistance value of the first resistive memory and the setting characteristics of the erase operation voltage in the erase operation.
[0098] In operation S260, when the prediction accuracy of the resistance state retention prediction model for the resistance state retention of the M first resistive memories is greater than or equal to a first preset value, a target prediction model is obtained.
[0099] According to the embodiment of the present disclosure, the first preset value can be selected according to actual conditions and is not limited here. For example, the first preset value can be 90%, 95% or 98%.
[0100] According to an embodiment of the present disclosure, by performing a continuous read operation on each of the M first resistive memories within a first preset time period and at intervals of a second preset time period to obtain first resistance state data, a fluctuation of the resistance value of each first resistive memory under the same read operation voltage can be obtained. By performing a step-by-step read operation on the first resistive memory at intervals of a second preset time period to obtain second resistance state data, a fluctuation of the resistance value of each second resistive memory under different read operation voltages can be obtained. Then, according to the training sample data obtained from each first resistance state data, each second resistance state data and the erase operation voltage corresponding to the M first resistive memories, the resistance state retention prediction model is trained, so that the resistance state retention prediction model can fully learn the first resistive memory in a high resistance state, within a preset time length, and after each second preset time length, the fluctuation characteristics of the resistance value of the first resistive memory and the setting characteristics of the erase operation voltage in the erase operation, so that the obtained target prediction model can accurately predict the resistance state retention result of the first resistive memory after the second preset time length, and then accurately predict the stability of information storage of the first resistive memory after the second preset time length.
[0101] According to the embodiments of the present disclosure, Figure 2 The operation S220 shown, for each of the M first resistive memories, continuously reads the first resistive memories every second preset time period within a first preset time period to obtain first resistive state data, may include the following operations:
[0102] At every second preset time length, for each first resistive memory, N identical first preset voltages are continuously applied to the first resistive memory, and after each application of the first preset voltage to the first resistive memory, the resistance value of the first resistive memory is read to obtain N first resistance values;
[0103] Calculate the variance of N first resistance values to obtain a first variance;
[0104] Calculate the average of the N first resistance values to obtain a first average value;
[0105] Calculating the local fluctuation amounts of N first resistance values to obtain a first local fluctuation amount;
[0106] The first variance, the first mean, and the first local fluctuation are concatenated to obtain first resistance state data.
[0107] For example, the first preset voltage may be 0.3V.
[0108] According to the embodiments of the present disclosure, N can be selected according to actual conditions and is not limited here. For example, N can be 50, 100 or 200.
[0109] According to an embodiment of the present disclosure, the first local fluctuation amount may be obtained by subtracting the minimum value from the maximum value of the N first resistance values.
[0110] Figure 3 A schematic diagram schematically shows N identical first preset voltages according to an embodiment of the present disclosure.
[0111] like Figure 3 As shown, the magnitudes of N identical first preset voltages are all 0.3V, and N may be 100.
[0112] For example, the first resistive memory after a second preset time period may be Figure 3 The 100 0.3V voltages shown are continuously applied to the BL terminal of the first first resistive memory, and after each 0.3V voltage is applied, the resistance value of the first first resistive memory is read to obtain 100 first resistance values of the first first resistive memory after a second preset time length.
[0113] According to the embodiments of the present disclosure, the first resistance state data obtained by splicing the first variance, the first mean value and the first local fluctuation amount can fully reflect the fluctuation of the resistance value of the first resistive memory under the same read voltage.
[0114] According to the embodiments of the present disclosure, Figure 2 The operation S230 shown, performing a step-by-step reading operation on the first resistive memory every second preset time length to obtain second resistive state data, may include the following operations:
[0115] At every second preset time length, for each first resistive memory, P second preset voltages that gradually increase are continuously applied to the first resistive memory, and after each application of the second preset voltage to the first resistive memory, the resistance value of the first resistive memory is read to obtain P second resistance values;
[0116] Calculate the variance of P first resistance values to obtain a second variance;
[0117] Calculate the average of the P first resistance values to obtain a second average value;
[0118] Calculate the local fluctuations of P first resistance values to obtain a second local fluctuation;
[0119] The second variance, the second mean, and the second local fluctuation are concatenated to obtain second resistance state data.
[0120] According to an embodiment of the present disclosure, the second local fluctuation amount can be obtained by subtracting the minimum value from the maximum value of the P second resistance values.
[0121] According to the embodiments of the present disclosure, P can be selected according to actual conditions and is not limited here. For example, P can be 5, 9, 11 or 15, etc.
[0122] According to the embodiment of the present disclosure, the P gradually increasing second preset voltages can be selected according to actual conditions, and are not limited here. For example, the P gradually increasing second preset voltages can be a voltage between 0.1V and 0.5V.
[0123] Figure 4 A schematic diagram schematically shows P gradually increasing second preset voltages according to an embodiment of the present disclosure.
[0124] like Figure 4 As shown, the P gradually increasing second preset voltages are voltages between 0.1V and 0.5V, including 0.1V and 0.5V, and the difference between two adjacent second preset voltages is 0.05V. At this time, P is 9.
[0125] For example, the first resistive memory after a second preset time period may be Figure 4 The 9 gradually increasing second preset voltages of 0.1V, 0.15V, 0.2V, 0.25V, 0.3V, 0.35V, 0.4V, 0.45V and 0.5V are continuously applied to the BL end of the first first resistive memory, and after applying each second preset voltage, the resistance value of the first first resistive memory is read to obtain 9 second resistance values of the first first resistive memory after a second preset time length.
[0126] According to the embodiments of the present disclosure, the second resistance state data obtained by splicing the second variance, the second mean and the second local fluctuation amount can fully reflect the fluctuation of the resistance value of the second resistive memory under different read voltages.
[0127] According to the embodiments of the present disclosure, Figure 2 Operation S240 shown in the figure, obtaining training sample data according to each first resistance state data, each second resistance state data and erase / write operation voltage respectively corresponding to the M first resistive memories, may include the following operations:
[0128] For each first resistive memory, the erase / write operation voltage corresponding to the first resistive memory, the first resistance state data corresponding to the i-th second preset time length, and the second resistance state data corresponding to the i-th second preset time length are concatenated to obtain an i-th resistance state data vector, wherein i is an integer greater than or equal to 1 and less than or equal to R, and R is obtained by dividing the first preset time length by the second preset time length and rounding the integer;
[0129] Each vector value included in the i-th resistive data vector is normalized to obtain i-th training sample data corresponding to the first resistive memory.
[0130] According to an embodiment of the present disclosure, the first resistance state data corresponding to the i-th second preset time length represents the first resistance state data corresponding to the first resistance memory collected after the first resistance memory is placed for the i-th second preset time length. Similarly, the second resistance state data corresponding to the i-th second preset time length can be collected.
[0131] For example, when the first preset time length is 540 minutes and the second preset time length is 60 minutes, R is 9.
[0132] According to an embodiment of the present disclosure, by splicing the erase and write operation voltage corresponding to the first resistive memory, the first resistance state data corresponding to the i-th second preset time length, and the second resistance state data corresponding to the i-th second preset time length for each first resistive memory to obtain an i-th resistance state data vector, and then normalizing the vector values included in the i-th resistance state data vector to obtain the i-th training sample data corresponding to the first resistive memory, the i-th training sample data reflecting the fluctuation characteristics of the resistance value of the first resistive memory after the i-th second preset time length and the setting characteristics of the erase and write operation voltage in the erase operation can be obtained.
[0133] According to an embodiment of the present disclosure, the M first resistive random access memories may be continuously baked within a first preset time period and at a preset temperature.
[0134] According to the embodiments of the present disclosure, the preset temperature can be selected according to actual conditions and is not limited here. For example, the preset temperature can be 100° C., 125° C., or 150° C., etc.
[0135] According to the embodiments of the present disclosure, since high temperature will accelerate the speed at which the high resistance of the first resistive memory drifts to low resistance, before obtaining the training sample data, continuously baking the M first resistive memories at a preset temperature can accelerate the M first resistive memories to reach a resistance state of a target preset time length by placing them at room temperature, thereby improving the speed of collecting training sample data.
[0136] For example, the first preset time period may be 540 minutes, and the normal temperature may be 25° C. When the M first resistive memories are baked for 540 minutes at a high temperature of 125° C., it is equivalent to placing the M first resistive memories at normal temperature for 9216 minutes.
[0137] Figure 5 The flowchart of collecting resistance state data of the first resistive memory according to an embodiment of the present disclosure is schematically shown.
[0138] like Figure 5 As shown, in step S510, a forming operation and a first preset number of erasing and writing operations are performed on M resistive memories to obtain M first resistive memories and erasing and writing operation voltages respectively corresponding to the M first resistive memories.
[0139] In step S520, under high temperature baking, for each of the M first resistive memories, the first resistive memories are gradually read and continuously read 100 times every 60 minutes within a first preset time.
[0140] like Figure 5 As shown, the first preset time length is R×60 minutes. Step S520 includes step S521, step S522, step S523 to step S524. Among them, step S521, step S522, step S523 to step S524 are all step-by-step reading and 100 consecutive reading operations.
[0141] According to the embodiments of the present disclosure, Figure 2 The training method of the resistance state retention prediction model shown in the figure may include the following operations before performing a continuous read operation on each of the M first resistive memories within a first preset time length and every second preset time length to obtain the first resistance state data:
[0142] At every second preset time, a first preset voltage is applied to each first resistive memory, and a resistance value of the first resistive memory is read to obtain L reference resistance values corresponding to the first resistive memory, wherein L is obtained by dividing the first preset time by the second preset time, rounding the value, and adding the result to the second preset value;
[0143] For any two adjacent reference resistance values among the L reference resistance values, the resistance deviation is obtained by subtracting the second reference resistance value from the first reference resistance value and rounding the result to an integer, wherein the any two adjacent reference resistance values include the first reference resistance value and the second reference resistance value, and the time of reading the first reference resistance value is earlier than the time of reading the second reference resistance value;
[0144] Calculating a ratio between the resistance deviation and a first reference resistance;
[0145] According to the magnitude relationship between the ratio and the third preset value, the resistance state retention classification label corresponding to the target sample data is determined, wherein the target sample data represents the training sample data within the second preset time length corresponding to the first reference resistance value.
[0146] For example, the second preset value may be 1, and when the first preset duration is 540 minutes and the second preset duration is 60 minutes, L may be 10.
[0147] According to the embodiment of the present disclosure, the third preset value can be selected according to actual conditions and is not limited here. For example, the third preset value can be 10%, 20% or 30%.
[0148] For example, when the third preset value is 10%, the ratio is greater than 10%, indicating that after the second preset time period, the resistance value of the first resistive memory drifts toward low resistance by more than 10% of its own resistance value, the first resistive memory remains invalid, and the resistance state retention classification of the training sample data corresponding to the first resistive memory is marked as 0. When the ratio is less than or equal to 10%, it indicates that after the second preset time period, the resistance value of the first resistive memory drifts toward low resistance by less than 10% of its own resistance value, the first resistive memory remains valid, and the resistance state retention classification of the training sample data corresponding to the first resistive memory is marked as 1.
[0149] According to an embodiment of the present disclosure, after obtaining the resistance state retention classification label corresponding to each target sample data, the resistance state retention classification result of the training sample data corresponding to each first resistive memory after each second preset time period can be obtained.
[0150] According to the embodiments of the present disclosure, Figure 2 Operation S250 shown, training the resistance state retention prediction model according to the training sample data, may include the following operations:
[0151] In each round of training of the resistance state retention prediction model, the training sample data corresponding to the j-th second preset time length is input into the resistance state retention prediction model in batches to obtain the resistance state retention prediction results corresponding to each batch of training sample data, wherein j is an integer greater than or equal to 1 and less than or equal to S, and S is the first preset time length divided by the second preset time length and rounded;
[0152] Calculate the loss value corresponding to each batch of training sample data according to the resistance state preservation prediction result corresponding to each batch of training sample data and the resistance state preservation classification label corresponding to each batch of training sample data;
[0153] Update the model parameters of the resistance state preservation prediction model according to the loss value corresponding to each batch of training sample data;
[0154] Increment j and return to the operation of training the retention prediction model based on the training sample data corresponding to the j-th second preset duration.
[0155] For example, when the first preset time length is 540 minutes and the second preset time length is 60 minutes, S is 9.
[0156] According to an embodiment of the present disclosure, the training sample data corresponding to the jth second preset time length represents the training sample data corresponding to the first resistive memory collected after the first resistive memory is placed for the jth second preset time length.
[0157] For example, when M is 300, in the first round of training of the resistance state retention prediction model, the 300 training sample data corresponding to the first and second preset time lengths can be divided into 10 batches, and 30 training sample data are used in each batch to train the resistance state retention prediction model, and the model parameters of the resistance state retention prediction model are updated, so as to achieve 10 parameter updates of the resistance state retention prediction model according to the 300 training sample data within the first and second preset time lengths. Similarly, the 300 training sample data corresponding to the second and second preset time lengths are divided into 10 batches, the resistance state retention prediction model is trained and the parameters are updated 10 times... the 300 training sample data corresponding to the Sth second preset time length are divided into 10 batches, the resistance state retention prediction model is trained and the parameters are updated 10 times.
[0158] According to an embodiment of the present disclosure, the resistance state retention prediction result finally output by the resistance state retention prediction model can be 0 or 1. When the resistance state retention prediction result is 0, it indicates that the first resistive memory is predicted to remain failed. When the resistance state retention prediction result is 1, it indicates that the first resistive memory is predicted to remain unfailed.
[0159] According to an embodiment of the present disclosure, when calculating the loss value corresponding to each batch of training sample data based on the resistance state retention prediction results corresponding to each batch of training sample data and the resistance state retention classification labels corresponding to each batch of training sample data, the resistance state retention prediction results use the decimal predicted by the resistance state retention prediction model corresponding to the resistance state retention prediction result 0 or 1 finally output by the resistance state retention prediction model.
[0160] According to an embodiment of the present disclosure, a binary cross entropy loss function can be used to calculate the loss value corresponding to each batch of training sample data based on the resistance state preservation prediction results corresponding to each batch of training sample data and the resistance state preservation classification labels corresponding to each batch of training sample data.
[0161] According to an embodiment of the present disclosure, the resistance state retention prediction model is a long short-term memory network model (LSTM, Long Short-Term Memory), and the last layer of the long short-term memory network model is a fully connected layer.
[0162] According to the embodiments of the present disclosure, the long short-term memory network model can better capture the long-term dependencies in the training sample data by introducing the gating mechanism and the long-term memory mechanism, and obtain the resistance state retention prediction results with higher accuracy.
[0163] Figure 6 The flowchart of a method for training a resistance state retention prediction model according to another embodiment of the present disclosure is schematically shown.
[0164] Depend on Figure 6 It can be seen from the tth training sample data input in each round that each training sample data input in each round includes: a first variance, a first mean, a first local fluctuation, a second variance, a second mean, a second local fluctuation, a set sub-operation voltage, a reset sub-operation voltage and a last reset sub-operation voltage, where t is an integer greater than or equal to 1.
[0165] like Figure 6 As shown, firstly, the t-th training sample data 611, the t+1-th training sample data 612 and the t+2-th training sample data 613 are obtained in each round of input. Then, the t-th training sample data 611, the t+1-th training sample data 612 and the t+2-th training sample data 613 are sequentially input into the resistance state retention prediction model 620, wherein the resistance state retention prediction model is an LSTM model.
[0166] like Figure 6 As shown, in the process of inputting the t-th training sample data 611 into the resistance state retention prediction model 620, the t-th training sample data 611 will be input into the resistance state retention prediction model 620 together with the t-1th hidden state and the t-1th unit state included in the t-1th intermediate parameter 631 for calculation, and the t-th hidden state and the t-th unit state included in the t-1th intermediate parameter 641 will be output, wherein the t-1th intermediate parameter 631 is the intermediate parameter obtained by the resistance state retention prediction model 620 processing the t-1th training sample data.
[0167] Then, the t-th intermediate parameter 641 and the first training sample data are processed by the fully connected layer 650, and the t-th resistance state retention prediction result 661 is output, wherein the t-th resistance state retention prediction result 661 is retention failure (label 0) or retention non-failure (label 1).
[0168] In the process of inputting the t+1th training sample data 611 into the resistance state retention prediction model 620, the t+1th training sample data 612 is input into the resistance state retention prediction model 620 together with the tth hidden state and the tth unit state included in the tth intermediate parameter 632 for operation, and the t+1th hidden state and the t+1th unit state included in the t+1th intermediate parameter 642 are output. Then, after the t+1th intermediate parameter 642 and the first training sample data are processed through the fully connected layer 650, the t+1th resistance state retention prediction result 662 is output, wherein the t+1th resistance state retention prediction result 662 is retention failure (label 0) or retention is not failed (label 1).
[0169] Similarly, the t+2th training sample data 613 executes the same training process for the resistance state retention prediction model 620 as the tth training sample data 611 and the t+1th training sample data 611 .
[0170] According to an embodiment of the present disclosure, when t is 1, there is no t-1th training sample data. At this time, the t-1th hidden state and the t-1th unit state included in the t-1th intermediate parameter 631 are both 0, that is, the initial values of the hidden state and the unit state are 0.
[0171] Figure 7 The schematic diagram schematically shows the resistance value of the resistive random access memory drifting toward low resistance according to an embodiment of the present disclosure.
[0172] Depend on Figure 7 It can be seen that there are hourglass-shaped conductive filaments in the low-resistance state of the resistive memory 710. At high temperatures, the lateral drift of oxygen ions in the low-resistance state of the resistive memory 710 is smaller than the generation of oxygen vacancies in the oxygen storage layer, resulting in the hourglass-shaped conductive filaments becoming thicker and thicker, and the thicker the hourglass-shaped conductive filaments, the lower the resistance value of the resistive memory 710 in the low-resistance state. Therefore, after the resistive memory 710 in the low-resistance state is baked at high temperature, the hourglass-shaped conductive filaments will be thicker, and the baked low-resistance state resistive memory 720 obtained is still in the low-resistance state.
[0173] The hourglass-shaped conductive filaments in the high-resistance state of the resistive random access memory 730 are broken. Under high-temperature baking, the lateral drift of the oxygen ions in the high-resistance state of the resistive random access memory 730 is smaller than the generation of oxygen vacancies in the oxygen storage layer, which will cause the hourglass-shaped conductive filaments to connect up and down, so that the resistance value of the resistive random access memory 730 in the high-resistance state drifts toward the low-resistance state, and the resistive random access memory 740 in the intermediate resistance state is obtained.
[0174] Depend on Figure 7It can be seen that under high-temperature baking, the resistance value of the resistive random access memory in the high-resistance state drifts toward the low-resistance state. When the resistive random access memory in the high-resistance state drifts toward the low-resistance state by more than the third preset value, it is considered that the retention of the resistive random access memory in the high-resistance state fails, and the data stored in the resistive random access memory in the high-resistance state is erroneous. Therefore, in the process of applying the resistive random access memory in the high-resistance state, it is necessary to timely predict the retention of the resistive random access memory in the high-resistance state, and repair it before the retention of the resistive random access memory in the high-resistance state fails, so as to avoid errors in the data stored in the resistive random access memory in the high-resistance state.
[0175] According to the embodiments of the present disclosure, when the resistive random access memory in a high resistance state is placed at room temperature, the resistance state of the resistive random access memory will also drift toward a low resistance state. Figure 7 The high temperature conditions in the circuit will only accelerate the speed at which the resistance state drifts toward low resistance.
[0176] Figure 8 The diagram schematically shows a resistive memory array according to an embodiment of the present disclosure.
[0177] like Figure 8 As shown, the RRAM array includes a plurality of resistive memory cells 810 arranged in an array. The training method of the resistive state retention prediction model provided by the embodiment of the present disclosure can be used to train Figure 8 The target prediction model can also be obtained by processing multiple resistive memory 810 in the application. Figure 8 In the process of repairing multiple resistive memories 810 in the apparatus, the multiple resistive memories 810 are repaired respectively according to the resistive state retention repair method provided in the embodiment of the present disclosure.
[0178] Fig. 9 The flowchart of the resistance state retention repair method according to the embodiment of the present disclosure is schematically shown.
[0179] like Fig. 9 As shown, the resistance state retention repair method of this embodiment includes operations S910 to S960.
[0180] In operation S910, a first preset number of erase / write operations are performed on a target resistive memory in a conductive state to obtain a first target resistive memory and an erase / write operation voltage corresponding to the first target resistive memory.
[0181] According to an embodiment of the present disclosure, the erase / write operation performed on the target resistive memory in operation S910 is similar to the erase / write operation performed on any resistive memory in operation S210, and will not be described in detail herein.
[0182] In operation S920, a continuous read operation is performed on the first target resistive memory to obtain third resistive state data.
[0183] According to an embodiment of the present disclosure, the continuous read operation performed on the first target resistive memory in operation S920 is similar to the continuous read operation performed on any first resistive memory of any preset time length in operation S220, and is not described again herein.
[0184] In operation S930, a step-by-step read operation is performed on the first target resistive memory to obtain fourth resistive state data.
[0185] According to an embodiment of the present disclosure, the step-by-step reading operation performed on the first target resistive memory in operation S930 is similar to the step-by-step reading operation performed on any first resistive memory of any preset time length in operation S230, and will not be described in detail herein.
[0186] In operation S940, target resistance state data is obtained according to the third resistance state data, the fourth resistance state data, and the erase operation voltage corresponding to the first target resistance memory.
[0187] According to an embodiment of the present disclosure, the third resistance state data, the fourth resistance state data and the erase / write operation voltage corresponding to the first target resistive memory may be concatenated and normalized to obtain the target resistance state data.
[0188] According to an embodiment of the present disclosure, the operation of obtaining the target resistive state data in operation S940 is similar to the operation of obtaining the training sample data corresponding to each first resistive memory and each second preset time length in operation S250, and will not be repeated here.
[0189] In operation S950, the target resistance state data is input into a target prediction model to obtain a resistance state retention prediction result corresponding to the first target resistive memory.
[0190] According to the embodiments of the present disclosure, Figure 2 The training method of the resistance state retention prediction model shown obtains the target prediction model.
[0191] In operation S960, when the retention prediction result indicates that the first target resistive memory fails after a preset time period, a repair operation is performed on the first target resistive memory to obtain a second target resistive memory.
[0192] According to an embodiment of the present disclosure, the preset duration may be equal to the second preset duration.
[0193] According to the embodiments of the present disclosure, a reset voltage may be cyclically applied to a first target resistive memory, and a repair operation may be performed on the first target resistive memory to obtain a second target resistive memory.
[0194] According to an embodiment of the present disclosure, during the process of repairing the resistance state retention of the target resistive random access memory, the target resistive random access memory may be continuously baked at a preset temperature, wherein the preset temperature may be 125° C.
[0195] According to an embodiment of the present disclosure, by inputting the target resistive state data into the target prediction model to obtain a resistive state retention prediction result corresponding to the first target resistive memory, the resistive state retention prediction result can be obtained quickly and accurately, and then when the retention prediction result indicates that the first target resistive memory fails after a preset time period, the first target resistive memory is repaired in time to obtain a second target resistive memory, and a second target resistive memory with better resistive state retention after the preset time period is obtained, thereby obtaining a second target resistive memory in a stable state.
[0196] According to an embodiment of the present disclosure, when the retention prediction result indicates that the first target resistive memory fails after a preset time, a repair operation is performed on the first target resistive memory to obtain a second target resistive memory including:
[0197] Performing a k-th reset operation on the first target resistive random access memory, where k is an integer greater than or equal to 1;
[0198] Reading a repair resistance value of the first target resistive random access memory after the kth reset operation;
[0199] When the repair resistance value is less than or equal to the preset resistance value, k is incremented and the process returns to performing the kth reset operation on the first target resistive memory;
[0200] When the repaired resistance value is greater than the preset resistance value, a second target resistive random access memory is obtained.
[0201] According to the embodiments of the present disclosure, the preset resistance value can be selected according to actual conditions and is not limited here. For example, the preset resistance value can be 80 kΩ.
[0202] Fig.10 The flowchart of a resistance state retention repair method according to another embodiment of the present disclosure is schematically shown.
[0203] like Fig.10 As shown, in step S1010, it is determined that the first target resistive random access memory fails after a preset time period according to the retention prediction result.
[0204] In step S1020, a reset operation is performed on the first target resistive memory, and a repair resistance value of the first target resistive memory after the reset operation is read.
[0205] In step S1030, is it determined whether the repair resistance value is greater than 80 kΩ?
[0206] When it is determined that the repair resistance value is greater than 80 kΩ, the repair is successful, and in step S1040 , the repair operation is stopped.
[0207] When it is determined that the repair resistance is ≤80 kΩ, the process returns to step S1020 to continue repairing the first target resistive random access memory.
[0208] Fig.11 A schematic diagram schematically illustrates a repair voltage used in a repair operation according to an embodiment of the present disclosure.
[0209] Fig.10 Step S1020 in the embodiment may include: applying a voltage to the SL terminal of the first target resistive memory. Fig.11 A voltage pulse of 1.35V / 50ns is applied to the BL end of the first target resistive memory, and then a voltage pulse of 0.3V / S0ns is applied to the BL end of the first target resistive memory to read the repair resistance value of the first target resistive memory.
[0210] The following will be based on Figure 12 to Figure 14 The experimental results are used to illustrate the reference resistance value obtained by the training method of the resistance state retention prediction model according to the embodiment of the present disclosure, as well as the training results and test results of the resistance state retention prediction model obtained.
[0211] Fig.12 The schematic diagram schematically shows the reference resistance values of M first resistive memories after every second preset time period according to an embodiment of the present disclosure.
[0212] Fig.12 The calculation process of the reference resistance is as follows: after performing 10 erasing and writing operations on 300 resistive random access memories, 300 first resistive random access memories are obtained. Then, at a high temperature of 125°C, within 540 minutes, every 60 minutes, a first preset voltage of 0.3V is applied to each of the 300 first resistive random access memories, and the resistance value of each first resistive random access memory is read to obtain 1 reference resistance value corresponding to each first resistive random access memory, and 10 reference resistance values corresponding to each first resistive random access memory are obtained within 540 minutes.
[0213] exist Fig.12In the figure, the horizontal axis is the reference resistance value of the first resistive random access memory, and the vertical axis is the ratio of the number of 300 reference resistance values of the first resistive random access memories at each reference resistance value to 300 after every second preset time. Therefore, the vertical axis can also be called the resistance distribution. Among them, the circular dotted line is the resistance distribution corresponding to 0 minutes, the square dotted line is the resistance distribution corresponding to 60 minutes, the regular triangle dotted line is the resistance distribution corresponding to 120 minutes, the inverted triangle dotted line is the resistance distribution corresponding to 180 minutes, the diamond dotted line is the resistance distribution corresponding to 240 minutes, the hexagonal dotted line is the resistance distribution corresponding to 300 minutes, the star dotted line is the resistance distribution corresponding to 360 minutes, the triangle dotted line with the vertex to the left is the resistance distribution corresponding to 420 minutes, the pentagonal dotted line is the resistance distribution corresponding to 480 minutes, and the triangle dotted line with the vertex to the right is the resistance distribution corresponding to the second preset time of 540 minutes, wherein the resistance distribution corresponding to 0 minutes represents the resistance distribution corresponding to the first second preset time.
[0214] like Fig.12 As shown, after 10 erase and write operations are performed on 300 resistive random access memories, the resistance values of the obtained 300 first resistive random access memories are all greater than 80 kΩ, indicating that the 300 resistive random access memories are all qualified devices.
[0215] exist Figure 2 In the embodiment, when the resistance value of the first resistive memory drifts toward low resistance by more than 10% of its own resistance value, it is considered that the first resistive memory remains failed. When the resistance value of the first resistive memory drifts toward low resistance by more than 20% of its own resistance value, it is considered that the first resistive memory remains failed. When the resistance value of the first resistive memory drifts toward low resistance by more than 30% of its own resistance value, it is considered that the first resistive memory remains failed.
[0216] Fig.13 The training result of the retention prediction model according to the embodiment of the present disclosure is schematically shown.
[0217] exist Figure 3 , Figure 4 , Figure 5 ,and Fig.12 Under the experimental conditions, according to Figure 1 The training sample data is obtained by following the process in . 200 of the 300 RRAMs are selected as the training set.
[0218] Depend on Fig.13It can be seen that the experiment trained three resistance state retention prediction models. Among them, the prediction model corresponding to the square dotted line can predict the resistance state retention when the resistance value of the first resistive memory drifts toward low resistance by more than 10% of its own resistance value, and the first resistive memory is considered to be maintained. The model corresponding to the circular dotted line can predict the situation where the resistance value of the first resistive memory drifts toward low resistance by more than 20% of its own resistance value, and the first resistive memory is considered to be maintained. The model corresponding to the triangular dotted line can predict the situation where the resistance value of the first resistive memory drifts toward low resistance by more than 30% of its own resistance value, and the first resistive memory is considered to be maintained.
[0219] Fig.13 In the figure, the horizontal axis represents the prediction span, that is, the second preset time length. The vertical axis represents the prediction accuracy of the model.
[0220] Depend on Fig.13 It can be seen that with the increase of the prediction span, that is, with the increase of the second preset time length, the prediction accuracy of the three prediction models becomes higher and higher, and the final prediction accuracy is greater than or equal to 95%, indicating that after training, the three resistance state retention prediction models can accurately predict whether the resistance state of the first resistive memory will fail after being placed for the second preset time length.
[0221] Fig.14 The test results of the retention prediction model according to the embodiment of the present disclosure are schematically shown.
[0222] The remaining 100 of the 300 RRAMs are selected as the test set. Fig.13 The three resistance state retention prediction models obtained were tested and obtained Fig.14 The test results in .
[0223] Fig.14 In the figure, the horizontal axis represents the prediction span, that is, the second preset time length. The vertical axis represents the prediction accuracy of the model.
[0224] Depend on Fig.14 It can be seen that with the increase of the prediction span, that is, with the increase of the second preset time length, the prediction accuracy of the three resistance state retention prediction models for the test set is equivalent to the prediction accuracy of the three resistance state retention prediction models for the training set, which further shows that the three resistance state retention prediction models can accurately predict whether the first resistive memory will fail after being placed for the second preset time length, and three target prediction models are obtained that can accurately predict whether the first resistive memory will fail after being placed for the second preset time length.
[0225] It should be noted that, unless it is explicitly stated that there is a sequence of execution between different operations shown in the flowchart in the embodiments of the present disclosure, or there is a sequence of execution between different operations in technical implementation, otherwise, the execution order of multiple operations may not be prioritized, and multiple operations may also be executed simultaneously.
[0226] Based on the above-mentioned training method of the resistance state retention prediction model, the present disclosure also provides a training device for the resistance state retention prediction model. Fig.15 The device is described in detail.
[0227] Fig.15 The structural block diagram of the training device of the resistance state retention prediction model according to the embodiment of the present disclosure is schematically shown.
[0228] like Fig.15 As shown, the training device 1500 of the resistance state retention prediction model of this embodiment includes a first obtaining module 1510, a second obtaining module 1520, a third obtaining module 1530, a fourth obtaining module 1540, a training module 1550 and a fifth obtaining module 1560.
[0229] The first obtaining module 1510 is used to perform a first preset number of erase and write operations on the M resistive memories in the on state to obtain the M first resistive memories and the erase and write operation voltages corresponding to the M first resistive memories. In one embodiment, the first obtaining module 1510 can be used to perform the operation S210 described above, which will not be repeated here.
[0230] The second obtaining module 1520 is used to perform a continuous read operation on each of the M first resistive memories within the first preset time length and every second preset time length to obtain the first resistive state data. In one embodiment, the second obtaining module 1520 can be used to perform the operation S220 described above, which will not be repeated here.
[0231] The third obtaining module 1530 is used to perform a step-by-step reading operation on the first resistive memory every second preset time length to obtain the second resistive state data. In one embodiment, the third obtaining module 1530 can be used to perform the operation S230 described above, which will not be described in detail here.
[0232] The fourth obtaining module 1540 is used to obtain training sample data according to the first resistance state data, the second resistance state data and the erase operation voltage corresponding to the M first resistive memories. In one embodiment, the fourth obtaining module 1540 can be used to perform the operation S240 described above, which will not be repeated here.
[0233] The training module 1550 is used to train the resistance state retention prediction model according to the training sample data. In one embodiment, the training module 1550 can be used to perform the operation S250 described above, which will not be described in detail here.
[0234] The fifth obtaining module 1560 is used to obtain the target prediction model when the prediction accuracy of the resistance state retention prediction model for the resistance state retention of the M first resistive memories is greater than or equal to the first preset value. In one embodiment, the fifth obtaining module 1560 can be used to perform the operation S260 described above, which will not be repeated here.
[0235] According to an embodiment of the present disclosure, the second obtaining module includes a first resistance value obtaining submodule, a first variance obtaining submodule, a first mean value obtaining submodule, a first local fluctuation quantity obtaining submodule and a first resistance state data obtaining submodule.
[0236] The first resistance value obtaining submodule is used to continuously apply N identical first preset voltages to the first resistive memory for each first resistive memory at every second preset time length, and read the resistance value of the first resistive memory after applying the first preset voltage to the first resistive memory each time, so as to obtain N first resistance values.
[0237] The first variance obtaining submodule is used to calculate the variance of N first resistance values to obtain the first variance.
[0238] The first average value obtaining submodule is used to calculate the average value of N first resistance values to obtain a first average value.
[0239] The first local fluctuation obtaining submodule is used to calculate the local fluctuations of N first resistance values to obtain the first local fluctuations.
[0240] The first resistance state data obtaining submodule is used to concatenate the first variance, the first mean value and the first local fluctuation amount to obtain the first resistance state data.
[0241] According to an embodiment of the present disclosure, the third obtaining module includes a second resistance value obtaining submodule, a second variance obtaining submodule, a second mean value obtaining submodule, a second local fluctuation quantity obtaining submodule and a second resistance state data obtaining submodule.
[0242] The second resistance value obtaining submodule is used to continuously apply P gradually increasing second preset voltages to the first resistive memory for each first resistive memory at every second preset time length, and read the resistance value of the first resistive memory after each application of the second preset voltage to the first resistive memory to obtain P second resistance values.
[0243] The second variance obtaining submodule is used to calculate the variance of P first resistance values to obtain the second variance.
[0244] The second average value obtaining submodule is used to calculate the average value of P first resistance values to obtain a second average value.
[0245] The second local fluctuation obtaining submodule is used to calculate the local fluctuations of P first resistance values to obtain the second local fluctuations.
[0246] The second resistance state data obtaining submodule is used to concatenate the second variance, the second mean and the second local fluctuation to obtain the second resistance state data.
[0247] According to an embodiment of the present disclosure, the fourth obtaining module includes a resistance state data vector obtaining submodule and a training sample data obtaining submodule.
[0248] The resistance state data vector obtaining submodule is used to splice the erase and write operation voltage corresponding to the first resistive memory, the first resistance state data corresponding to the i-th second preset time length, and the second resistance state data corresponding to the i-th second preset time length for each first resistive memory, to obtain the i-th resistance state data vector, wherein i is an integer greater than or equal to 1 and less than or equal to R, and R is the first preset time length divided by the second preset time length and rounded.
[0249] The training sample data obtaining submodule is used to normalize each vector value included in the i-th resistive data vector to obtain the i-th training sample data corresponding to the first resistive memory.
[0250] According to an embodiment of the present disclosure, for each of the M first resistive memories, within a first preset time period, a continuous read operation is performed on the first resistive memory every second preset time period to obtain first resistance state data, and a training device for a resistance state retention prediction model includes a reference resistance value obtaining module, a resistance value deviation obtaining sub-module, a ratio obtaining sub-module and a marking determination sub-module.
[0251] The reference resistance value obtaining module is used to apply a first preset voltage to each first resistive memory once every second preset time length, read the resistance value of the first resistive memory, and obtain L reference resistance values corresponding to the first resistive memory, wherein L is obtained by dividing the first preset time length by the second preset time length and rounding, and then adding the result to the second preset value.
[0252] The resistance deviation obtaining submodule is used to obtain the resistance deviation for any two adjacent reference resistances among the L reference resistances by subtracting the second reference resistance from the first reference resistance and rounding the result, wherein the any two adjacent reference resistances include the first reference resistance and the second reference resistance, and the time for reading the first reference resistance is earlier than the time for reading the second reference resistance.
[0253] The ratio obtaining submodule is used to calculate the ratio between the resistance deviation and the first reference resistance.
[0254] The label determination submodule is used to determine the resistance state retention classification label corresponding to the target sample data according to the size relationship between the ratio and the third preset value, wherein the target sample data represents the training sample data within the second preset time length corresponding to the first reference resistance value.
[0255] According to an embodiment of the present disclosure, the training module includes a prediction result obtaining submodule, a loss value obtaining submodule, a model parameter updating submodule and a return training operation submodule.
[0256] The prediction result obtaining submodule is used to input the training sample data corresponding to the jth second preset time length into the resistance state retention prediction model in batches in each round of training of the resistance state retention prediction model, and obtain the resistance state retention prediction results corresponding to each batch of training sample data, wherein j is an integer greater than or equal to 1 and less than or equal to S, and S is the first preset time length divided by the second preset time length and rounded.
[0257] The loss value obtaining submodule is used to calculate the loss value corresponding to each batch of training sample data according to the resistance state preservation prediction results corresponding to each batch of training sample data and the resistance state preservation classification labels corresponding to each batch of training sample data.
[0258] The model parameter updating submodule is used to update the model parameters of the resistance state retention prediction model according to the loss value corresponding to each batch of training sample data.
[0259] The training operation submodule is returned, which is used to increment j and return the operation of training the retention prediction model according to the training sample data corresponding to the j-th second preset duration.
[0260] According to an embodiment of the present disclosure, within a first preset time period and at a preset temperature, the M first resistive random access memories are continuously baked.
[0261] According to an embodiment of the present disclosure, the resistance state retention prediction model is a long short-term memory network model, and the last layer of the long short-term memory network model is a fully connected layer.
[0262] According to an embodiment of the present disclosure, any multiple modules of the first obtaining module 1510, the second obtaining module 1520, the third obtaining module 1530, the fourth obtaining module 1540, the training module 1550 and the fifth obtaining module 1560 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first obtaining module 1510, the second obtaining module 1520, the third obtaining module 1530, the fourth obtaining module 1540, the training module 1550 and the fifth obtaining module 1560 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the first obtaining module 1510, the second obtaining module 1520, the third obtaining module 1530, the fourth obtaining module 1540, the training module 1550 and the fifth obtaining module 1560 can be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function can be performed.
[0263] Based on the above-mentioned resistance state retention repair method, the present disclosure also provides a resistance state retention repair device. Fig.16 The device is described in detail.
[0264] Fig.16 The structural block diagram of the resistance state preserving repair device according to the embodiment of the present disclosure is schematically shown.
[0265] like Fig.16 As shown, the resistance state retention repair device 1600 of this embodiment includes a first target resistive memory and erase operation voltage obtaining module 1610, a third resistance state data obtaining module 1620, a fourth resistance state data obtaining module 1630, a target resistance state data obtaining module 1640, a prediction result obtaining module 1650 and a second target resistive memory obtaining module 1660.
[0266] The first target resistive memory and the erase / write operation voltage obtaining module 1610 is used for the sixth obtaining module, and is used to perform a first preset number of erase / write operations on the target resistive memory in the on state to obtain the first target resistive memory and the erase / write operation voltage corresponding to the first target resistive memory. In one embodiment, the first target resistive memory and the erase / write operation voltage obtaining module 1610 can be used to perform the operation S910 described above, which will not be described in detail herein.
[0267] The third resistance state data obtaining module 1620 is used to perform a continuous read operation on the first target resistive memory to obtain the third resistance state data. In one embodiment, the third resistance state data obtaining module 1620 can be used to perform the operation S920 described above, which will not be described in detail here.
[0268] The fourth resistance state data obtaining module 1630 is used to perform a step-by-step read operation on the first target resistive memory to obtain fourth resistance state data. In one embodiment, the fourth resistance state data obtaining module 1630 can be used to perform the operation S930 described above, which will not be described in detail here.
[0269] The target resistance state data obtaining module 1640 is used to obtain the target resistance state data according to the third resistance state data, the fourth resistance state data and the erase operation voltage corresponding to the first target resistive memory. In one embodiment, the target resistance state data obtaining module 1640 can be used to perform the operation S940 described above, which will not be repeated here.
[0270] The prediction result obtaining module 1650 is used to input the target resistance state data into the target prediction model to obtain the resistance state retention prediction result corresponding to the first target resistive memory. In one embodiment, the prediction result obtaining module 1650 can be used to perform the operation S950 described above, which will not be repeated here.
[0271] The second target resistive memory obtaining module 1660 is used to perform a repair operation on the first target resistive memory to obtain the second target resistive memory when the retention prediction result indicates that the first target resistive memory fails after a preset time. In one embodiment, the second target resistive memory obtaining module 1660 can be used to perform the operation S960 described above, which will not be repeated here.
[0272] According to an embodiment of the present disclosure, the second target resistive memory obtaining module includes a reset operation submodule, a resistance value reading submodule, a return reset operation submodule and a second target resistive memory obtaining submodule.
[0273] The reset operation submodule is used to perform a k-th reset operation on the first target resistive random access memory, where k is an integer greater than or equal to 1.
[0274] The resistance reading submodule is used to read the repair resistance of the first target resistive random access memory after the kth reset operation.
[0275] The return reset operation submodule is used to increment k and return to performing the kth reset operation on the first target resistive random access memory when the repair resistance value is less than or equal to the preset resistance value.
[0276] The second target resistive random access memory obtaining submodule is used to obtain the second target resistive random access memory when the repair resistance value is greater than the preset resistance value.
[0277] According to an embodiment of the present disclosure, any multiple modules of the first target resistive memory and erase / write operation voltage obtaining module 1610, the third resistive state data obtaining module 1620, the fourth resistive state data obtaining module 1630, the target resistive state data obtaining module 1640, the prediction result obtaining module 1650, and the second target resistive memory obtaining module 1660 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first target resistive memory and erase operation voltage obtaining module 1610, the third resistive state data obtaining module 1620, the fourth resistive state data obtaining module 1630, the target resistive state data obtaining module 1640, the prediction result obtaining module 1650 and the second target resistive memory obtaining module 1660 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the first target resistive memory and erase operation voltage obtaining module 1610, the third resistive state data obtaining module 1620, the fourth resistive state data obtaining module 1630, the target resistive state data obtaining module 1640, the prediction result obtaining module 1650 and the second target resistive memory obtaining module 1660 can be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function can be executed.
[0278] Fig.17 A block diagram of an electronic device suitable for implementing a training method for a resistance state retention prediction model and a resistance state retention repair method according to an embodiment of the present disclosure is schematically shown.
[0279] like Fig.17As shown, the electronic device 1700 according to an embodiment of the present disclosure includes a processor 1701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1702 or a program loaded from a storage part 1708 into a random access memory (RAM) 1703. The processor 1701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1701 may also include an onboard memory for caching purposes. The processor 1701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0280] In RAM 1703, various programs and data required for the operation of electronic device 1700 are stored. Processor 1701, ROM 1702 and RAM 1703 are connected to each other through bus 1704. Processor 1701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1702 and / or RAM 1703. It should be noted that the program can also be stored in one or more memories other than ROM 1702 and RAM 1703. Processor 1701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0281] According to an embodiment of the present disclosure, the electronic device 1700 may further include an input / output (I / O) interface 1705, which is also connected to the bus 1704. The electronic device 1700 may further include one or more of the following components connected to the input / output (I / O) interface 1705: an input portion 1706 including a keyboard, a mouse, etc.; an output portion 1707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1708 including a hard disk, etc.; and a communication portion 1709 including a network interface card such as a LAN card, a modem, etc. The communication portion 1709 performs communication processing via a network such as the Internet. A drive 1710 is also connected to the input / output (I / O) interface 1705 as needed. A removable medium 1711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1710 as needed, so that a computer program read therefrom is installed into the storage portion 1708 as needed.
[0282] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0283] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 1702 and / or RAM 1703 described above and / or one or more memories other than ROM 1702 and RAM 1703.
[0284] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the training method of the resistance state retention prediction model and the resistance state retention repair method provided by the embodiment of the present disclosure.
[0285] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 1701. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0286] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1709, and / or installed from a removable medium 1711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0287] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1709, and / or installed from the removable medium 1711. When the computer program is executed by the processor 1701, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0288] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0289] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0290] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0291] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for training a resistance retention prediction model, comprising: Performing a first preset number of erasing and writing operations on the M resistive random access memories in the on state to obtain M first resistive random access memories and erasing and writing operation voltages respectively corresponding to the M first resistive random access memories; For each of the M first resistive memories, within a first preset time length, and at intervals of a second preset time length, a continuous read operation is performed on the first resistive memory to obtain first resistance state data; Performing a step-by-step read operation on the first resistive memory at intervals of a second preset time to obtain second resistive state data; Obtaining training sample data according to each of the first resistance state data, each of the second resistance state data and the erase / write operation voltage respectively corresponding to the M first resistive random access memories; Training the resistance state retention prediction model according to the training sample data; When the prediction accuracy of the resistance state retention prediction model for the resistance state retention of the M first resistive random access memories is greater than or equal to a first preset value, a target prediction model is obtained.
2. The method according to claim 1, wherein: For each of the M first resistive memories, within a first preset time length, and at intervals of a second preset time length, continuously reading the first resistive memory to obtain first resistance state data includes: At every second preset time length, for each first resistive memory, N identical first preset voltages are continuously applied to the first resistive memory, and after each application of the first preset voltage to the first resistive memory, the resistance value of the first resistive memory is read to obtain N first resistance values; Calculating the variance of the N first resistance values to obtain a first variance; Calculating an average of the N first resistance values to obtain a first average value; Calculating the local fluctuations of the N first resistance values to obtain a first local fluctuation; The first variance, the first mean, and the first local fluctuation are concatenated to obtain the first resistive state data.
3. The method according to claim 1, wherein: The stepwise reading operation is performed on the first resistive memory at every second preset time to obtain the second resistance state data, which includes: At every second preset time length, for each first resistive memory, continuously applying P second preset voltages that gradually increase to the first resistive memory, and after each application of the second preset voltage to the first resistive memory, reading the resistance value of the first resistive memory to obtain P second resistance values; Calculating the variance of the P first resistance values to obtain a second variance; Calculating the average of the P first resistance values to obtain a second average value; Calculating the local fluctuations of the P first resistance values to obtain a second local fluctuation; The second variance, the second mean, and the second local fluctuation are concatenated to obtain the second resistive state data.
4. The method according to claim 1, wherein: The obtaining of training sample data according to each of the first resistance state data, each of the second resistance state data and the erase / write operation voltage respectively corresponding to the M first resistive memories comprises: For each of the first resistive memory, the erase / write operation voltage corresponding to the first resistive memory, the first resistance state data corresponding to the i-th second preset time length, and the second resistance state data corresponding to the i-th second preset time length are concatenated to obtain an i-th resistance state data vector, wherein i is an integer greater than or equal to 1 and less than or equal to R, and R is obtained by dividing the first preset time length by the second preset time length and rounding the result; Each vector value included in the i-th resistive data vector is normalized to obtain i-th training sample data corresponding to the first resistive memory.
5. The method according to claim 1, wherein: Before the step of performing a continuous read operation on each of the M first resistive memories within a first preset time period and at intervals of a second preset time period to obtain first resistive state data includes: At every second preset time, a first preset voltage is applied to each of the first resistive memory cells, and a resistance value of the first resistive memory cells is read to obtain L reference resistance values corresponding to the first resistive memory cells, wherein L is obtained by dividing the first preset time length by the second preset time length, rounding the result, and adding the result to the second preset value; For any two adjacent reference resistance values among the L reference resistance values, subtract the second reference resistance value from the first reference resistance value and round the result to obtain a resistance deviation, wherein the any two adjacent reference resistance values include the first reference resistance value and the second reference resistance value, and the time of reading the first reference resistance value is earlier than the time of reading the second reference resistance value; Calculating a ratio between the resistance deviation and the first reference resistance; According to the magnitude relationship between the ratio and the third preset value, a resistance state retention classification label corresponding to the target sample data is determined, wherein the target sample data represents training sample data within a second preset time length corresponding to the first reference resistance value.
6. The method according to claim 1, wherein: The training of the resistance state retention prediction model according to the training sample data comprises: In each round of training of the resistance state retention prediction model, the training sample data corresponding to the j-th second preset time length is input into the resistance state retention prediction model in batches to obtain the resistance state retention prediction results corresponding to each batch of training sample data, wherein j is an integer greater than or equal to 1 and less than or equal to S, and S is the first preset time length divided by the second preset time length and rounded; Calculate the loss value corresponding to each batch of training sample data according to the resistance state preservation prediction result corresponding to each batch of training sample data and the resistance state preservation classification label corresponding to each batch of training sample data; Updating the model parameters of the resistance state retention prediction model according to the loss value corresponding to each batch of training sample data; Increment j and return to the operation of training the retention prediction model based on the training sample data corresponding to the j-th second preset duration.
7. The method according to claim 1, wherein: The M first resistive random access memories are continuously baked at a preset temperature within a first preset time period.
8. The method according to claim 1, wherein: The resistance state retention prediction model is a long short-term memory network model, and the last layer of the long short-term memory network model is a fully connected layer.
9. A method for repairing resistance state retention, comprising: Performing a first preset number of erase / write operations on a target resistive memory in a conducting state to obtain a first target resistive memory and an erase / write operation voltage corresponding to the first target resistive memory; Performing a continuous read operation on the first target resistive memory to obtain third resistive state data; Performing a step-by-step read operation on the first target resistive memory to obtain fourth resistive state data; Obtaining target resistance state data according to the third resistance state data, the fourth resistance state data and the erase / write operation voltage corresponding to the first target resistance random access memory; Inputting the target resistance state data into the target prediction model according to any one of claims 1 to 8 to obtain a resistance state retention prediction result corresponding to the first target resistive memory; When the retention prediction result indicates that the first target resistive random access memory fails after a preset time period, a repair operation is performed on the first target resistive random access memory to obtain a second target resistive random access memory.
10. The method according to claim 9, wherein: When the retention prediction result indicates that the first target resistive memory fails after a preset time period, performing a repair operation on the first target resistive memory to obtain a second target resistive memory includes: Performing a k-th reset operation on the first target resistive random access memory, where k is an integer greater than or equal to 1; Reading a repair resistance value of the first target resistive random access memory after the kth reset operation; When the repair resistance is less than or equal to the preset resistance, k is incremented and the process returns to performing the kth reset operation on the first target resistive random access memory; When the repair resistance is greater than the preset resistance, the second target resistive random access memory is obtained.