Electroforming process using a linear inversion-invariant ECC and associated device.
The use of a linear error correcting code invariant to inversion simplifies the electroforming process for resistive memory cells by ensuring all bits have the same logical value, reducing complexity and improving memory reliability.
Patent Information
- Application Number
- FR2021014446
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2041-12-23
AI Technical Summary
Existing resistive memory technologies face challenges in simplifying the electroforming process for resistive memory cells, particularly in managing the complexity of writing error correcting code (ECC) bits, which leads to larger memory surfaces and increased control complexity, and there is a need for efficient verification of correct electroforming without adding complexity.
An electroforming process using a linear error correcting code (ECC) that is invariant to inversion, allowing for simplified writing and verification of resistive memory cells by encoding data bits with verification bits that depend on an odd number of data bits, ensuring all bits have the same logical value, and iteratively checking for correct programming.
This approach simplifies the electroforming process by reducing the need for additional steps and hardware, ensures accurate programming of resistive memory cells, and reduces the risk of faulty resistors, thereby enhancing memory performance and reliability.
Smart Images

Figure 00000024_0000 
Figure 00000024_0001 
Figure 00000025_0000
Abstract
Description
Title of the invention: Electroforming method using an inversion-invariant linear ECC and associated device. Field of invention
[0001] The present invention relates to a method of electroforming a resistive memory. Particularly, the invention relates to a method of electroforming a resistive memory coupled to a memory controller. State of the art
[0002] Resistive memories are non-volatile memories with high density, low electrical energy consumption and which can have a long lifespan depending on the conditions of use.
[0003] There are several resistive memory technologies. These include conductive bridge resistive memories, also called CBRAM (for “Conductive-Bridging Random-Access Memory” in English terminology), or oxide-based resistive memories, also called OxRAM (for “Oxide-based Random-Access Memory” in English terminology) or phase change memories, also called PCM (for “Phase Change Memory”).
[0004] A resistive memory (also called RRAM memory) is composed of a multitude of resistive memory cells arranged in rows and columns so as to form a matrix. An RRAM memory cell is provided with at least one resistive element whose conductance can be modified.
[0005] Typically, an RRAM memory cell is made up of a metal-metal insulating stack and has, in its initial state, a high resistance state (HRS) (for "High Resistance State" according to English terminology). Before their use, certain types of resistive memory, such as OxRAM or CBRAM memories require electrical activation or in other words "electroforming". The application of a high voltage pulse across the RRAM cell allows the formation of conductive paths in the switching layer (insulating part) and leads to "switching" the RRAM cell into a low resistance state (LRS) (for "Low Resistance State" according to English terminology), corresponding to a partial breakdown of the insulating structure, or in other words to the formation of a conductive "filament" through the oxide.
[0006] The general process of this "breaking" of the insulating layer of the cell is generally called "electroforming" (or "forming" according to Anglo-Saxon terminology) and is carried out prior to the use of the RRAM memory. Following this "electroforming" process, the application of an appropriate voltage (and significantly lower than the high voltage pulse) for a predefined duration allows, depending on the case, either to reduce the "length" of the conductive filament, resulting in an HRS resistance state, or to lengthen the conductive path, resulting in an LRS resistance state. These operations are known to those skilled in the art according to the anglicism "SET" or "RESET". The dielectric material placed between two conductive electrodes of the cell is then capable of reversibly switching between the two resistance states HRS and LRS, these states making it possible to store a bit of information in the memory cell.
[0007] An elementary resistive memory cell generally consists of a transistor (1T) and a resistive component or resistor (IR), where a bit of information is encoded through the value of the electrical resistance of the resistor. For these elementary cells called 1T1R, a logic '0' can be encoded for example by programming the resistor in a high resistance state HRS and a logic '1' can be encoded by programming the resistor in a low resistance state LRS, and we then speak of encoding in 1T1R mode.
[0008] However, the difference between the lowest resistance value corresponding to an LRS level and the highest resistance value corresponding to the HRS level, also called a "memory window", is often small. Therefore, "differential encoding" is commonly used to encode a binary value to be stored. An information bit can be encoded in a so-called 2T2R memory cell, composed of two elementary 1T1R cells, comprising 2 transistors (2T) and 2 resistors (2R), and this is then referred to as 2T2R mode encoding.
[0009] Since each of the LRS and HRS states can be associated with a logic value, i.e. 1 or 0, it can be considered that in a 2T2R cell one of the two resistive elements encodes the bit to be programmed in a non-inverted version while the other resistive element encodes the same bit in an inverted version. For example, a logic '1' is encoded by programming the resistor of the first 1T1R cell in a high resistance state HRS and the resistor of the second 1T1R cell in a low resistance state LRS, and a logic '0' is encoded by programming the resistor of the first 1T1R cell in a low resistance state LRS and the resistor of the second cell in a high resistance state HRS.
[0010] Thus in differential encoding, each bit of information is encoded in a 2T2R elementary cell formed of two resistive elements which are written in opposition of state, that is to say one of the resistive elements written with an HRS level and the other with an LRS level. The respective resistance levels of the two resistive elements are always determined in the same order between the two elements, and define whether we are in the presence of a '1' or a logical '0' depending on whether it corresponds to the HRS-LRS states. or LRS-HRS.
[0011] During a write operation in a 1T1R or 2T2R memory cell, it must be ensured that each electrical resistance that must be programmed to an HRS or LRS state is respectively either larger or smaller than a reference value R REF. The comparison of an electrical resistance with the value Rref is made by a read operation during which the programmed resistance is compared to the value RKu using a sense amplifier or SA (for "Sense Amplifier" according to English terminology). Subsequently, this read operation with comparison to a reference value is called 1T1R mode.
[0012] All read operations in 1T1R memories are performed in 1T1R mode. To read the data stored in an RRAM cell, a small read voltage that does not disturb the current state of the cell is preferably applied to determine what logic state the cell is in.
[0013] In memories where the information is encoded in 2T2R mode, the reading operations are generally carried out in 2T2R mode, also called differential mode reading. The values of the two resistors present in a 2T2R memory cell can be compared with each other using a differential SA detection amplifier consisting of comparing the two resistance values making up the memory cell. It will also be noted that the reading device can also be provided to carry out a reading of each resistor of a cell, individually, by comparing the resistance of each resistor to a reference value. The presence of such a “single” reading device is commonly used in electroforming operations to be able to check the resistance level of each resistor individually.
[0014] A technique for reading data stored in a 2T2R memory cell is described in the document: "Hybrid Analog-Digital Learning with Differential RRAM synapses" by Bocquet et al. IEDM19-534. It uses a read circuit equipped with a latch-type sense amplifier which, during a read operation, is coupled to the differential pair of resistive elements via a pair of bit lines and is equipped with nodes whose potentials switch according to current values flowing through the resistive elements. This type of sense amplifier is made with few transistors and operates as a high-gain differential current amplifier. It allows direct comparison of currents flowing through the resistive elements and circulating via bit lines.
[0015] It will be noted that memories comprising 2T2R cells are generally provided with a device for writing the resistors of each cell which in practice performs two 1T1R writes to write each of the resistors to the state which must be its own (reminder: two different states for the resistors of a 2T2R differential cell).
[0016] Since the resistive elements retain their respective values even after the applied voltage is removed, the resistive RRAM memory is one of the non-volatile memories. However, certain uses of a memory involve frequent transitions between the HRS and LRS states which may introduce damage, the values of the programmed resistors may change due to relaxation phenomena, and then lead to a degradation of the performance of the RRAM.
[0017] The retention time of information in a resistive memory then depends on (a) the reading operations, (b) the operating temperatures and / or (c) the high magnetic fields in the case of magnetic memories.
[0018] The variations in switching voltages and the cell-to-cell non-uniformity mean that the resistors that are programmed in the LRS state can drift towards an HRS state or vice versa. Therefore, this shift in the values of the programmed resistors can cause errors during read operations, and reduce the performance of the memories.
[0019] To reduce the error rate of RRAM memories, a commonly used solution is to use an error correcting code or ECC (for "Error Correcting Code" according to English terminology) which encodes the data before writing them to memory. Generally, the ECC encoder is located inside or near the memory controller. A memory controller according to the present invention is an electronic circuit whose function is to translate requests, generally from a host electronic system, for electroforming, reading or writing on resistive memories.
[0020] When encoding data with an ECC code, check bits are added to the data bits, the check bits representing redundant information calculated from the data bits, which allows the detection and correction of errors affecting both the data bits and the check bits. The set of data bits and check bits forms a code word.
[0021] The generation of these verification bits is performed transparently for the memory user. During a memory write operation, the ECC encoder internal to the memory prepares the code word and all the bits of the code word are written into 2T2R memory cells, by performing for each memory cell a SET operation for one of the resistors and a RESET operation for the other of the resistors (each operation generally being performed in 1T1R write mode). During the electroforming step prior to the use of the memory, the equivalent of a SET operation is performed for each resistor by writing a "1" in each resistor. This writing during the electroforming step differs essentially from another writing (after electroforming) by the voltage-current conditions which are applied, nevertheless, at the level of the memory controller, it is indeed a writing of a “1” which is requested for each resistor being electroformed.
[0022] In known RRAM memories using an ECC encoder, the bits of the memory encoding the ECCs are generally positioned in particular locations, generally in a grouped manner. The device for writing the cells dedicated to the ECC bits generally comprises a particular writing mode for the electroforming step in order to be able to "impose" the value "1" to be written during the special writing operation that constitutes the electroforming step (with the specific current / voltage conditions).This writing device with its writing mode dedicated to ECC bits is in practice more complex than the writing device for the rest of the memory matrix, because it must be able to be controlled in order to take as input either the ECC values calculated by the encoder during a classic writing operation (excluding electroforming), or imposed values (values at "1") during a special electroforming writing operation for each of the resistors of the memory cells.
[0023] Thus, there is a need to be able to simplify the device for writing ECC bits to avoid this complexity of managing the values to be taken as input, which results in a larger memory surface and more complicated memory control in order to carry out all of the electroforming operations of all the memory cells.
[0024] Furthermore, it is also desirable to be able to ensure that there is no faulty resistor always resulting in a reading of a logic value "1" or "0" during verification readings. Also, there is a need for testing after an electroforming operation, which makes it possible to verify that the electroforming has been carried out correctly, and this without complicating the memory device. Brief description of the invention
[0025] The invention aims to overcome all or part of the problems mentioned above by proposing an electroforming method using a linear ECC invariant to inversion. Thus, the invention aims to avoid additional steps for carrying out the electroforming of memory cells, or a complication of a writing system.
[0026] To this end, the invention relates to a method for electroforming a resistive memory of a memory device including a memory controller and an encoder calculating a linear and inversion-invariant error correcting code, the method comprising the following steps: - request a write in the memory device at an initial address corresponding to the selection of several resistors, with data to be written comprising k data bits and all having the same first logic value called electroforming among two possible logic values “0” or “1”; - encoding the k data bits with the linear and inversion-invariant error-correcting code so as to obtain a code word comprising the data bits and r check bits, such that the check bits depend on an odd number of the data bits resulting in the data bits and the check bits all having the same first logical value; - performing the writing of the code word in the selected resistors of said resistive memory, the memory controller performing a write in 1T1R mode corresponding to an individual write of each resistor, each resistor being placed in a high or low impedance state according to the respective logic value of each bit of the code word, the memory controller applying write conditions allowing electroforming.
[0027] Advantageously, the method comprises the following subsequent steps: - request a reading by the memory controller at the initial address in the resistive memory where said code word was written and compare the read value with the expected value, and if said values do not correspond save said electroforming address in a status register of the memory controller and / or in a register of an external processor connected to the memory device, - increment or decrement the initial address, so as to obtain a new address corresponding to the selection of resistors other than those of the initial address; and - check if this new address is out of range: • if yes, complete the process; • if not, repeat the steps described in paragraph
[0026] at the new address.
[0028] Advantageously, the electroforming process comprises the following subsequent steps: - supplying the read code word to a decoder capable of supplying k bits of corrected data if necessary from the verification bits, the decoder being capable of informing a status register of the memory controller indicating the presence or not of a correctable or non-correctable error in the word which has just been read; - and in which, the step of comparing the read value and the expected value includes an operation of consulting said controller status register.
[0029] Advantageously, the electroforming process comprises the following subsequent steps: - request, by an external processor, a reading at the initial address and / or at the new address and check whether all the data bits returned to said processor, obtained at the output of a decoder having received the read code mode, all have the same logical value among two possible logical values “0” and “1”: - if all the data bits have the same expected logic value “0” or “1”, read the status register of the memory controller to check whether or not an error has been corrected by said decoder in the word that has just been read; and depending on the result of the check: • report an electroforming error; or • complete the process. - if all data bits do not have the same logic value "0" or "1", report an electroforming error.
[0030] Advantageously, the steps of the method are iterated at least once with data to be written whose logical value of the bits is different from the logical value of the bits of the previous iteration.
[0031] Another object of the invention relates to a device for electroforming a resistive memory of a memory device including a memory controller and an encoder calculating a linear and inversion-invariant error correcting code, the electroforming device comprising means for implementing the steps of one of the electroforming methods described previously.
[0032] Advantageously, the means comprise a host processor and the steps of the electroforming method are implemented by interactions between the host processor and the memory controller.
[0033] Advantageously, the linear and inversion-invariant error correcting code is of the SEC, SEC-DED, DEC, DEC-TED, TEC, TEC-QED type, etc.
[0034] The invention also relates to a method for verifying writing in a resistive memory of a memory device including a memory controller and an encoder calculating a linear and inversion-invariant error correcting code, the method comprising the following steps: - request a reading of a code word written at an initial address and check if all the bits of this code word all have the same logical value among two possible logical values “0” and “1”: - if all the bits of this code word all have the same logical value “0” or “1”, read a status register of the memory controller to check whether there is a correctable or uncorrectable error in the word that has just been read; and depending on the result of the check: report a writing error; or terminate the process. - if all the bits of this code word do not have the same logical value "0" or "1", report a write error.
[0035] Advantageously, the steps of the method described in paragraph
[0034] are implemented for verifying the writing of a code word of an electroforming operation.
[0036] Advantageously, the steps of the method described in paragraph
[0034] are implemented for verifying the writing of a code word after steps consisting of: - requesting a write in the memory device at an initial address corresponding to the selection of several resistors, with data to be written comprising k data bits and all having the same first logic value among two possible logic values “0” or “1”; - encoding the k data bits with the linear and inversion-invariant error-correcting code so as to obtain a code word comprising the data bits and r check bits, such that the check bits depend on an odd number of the data bits resulting in the data bits and the check bits all having the same first logical value; and - writing the code word into the selected resistors of said resistive memory, the memory controller writing the code word in 1T1R or 2T2R mode into the selected resistors.
[0037] The invention also relates to a device for verifying writing in a resistive memory of a memory device including a memory controller, an encoder calculating a linear and inversion-invariant error correcting code and an associated decoder, the memory device being connected to an external processor, the verification device comprising means for implementing the steps of one of the methods described in paragraphs
[0034] to
[0036] . Brief description of the figures
[0038] Other characteristics, details and advantages of the invention will emerge from reading the description given with reference to the appended drawings given by way of example and which represent:
[0039] [Fig.l] represents a general system which uses a resistive memory and makes it possible to implement the steps of a method of electroforming a resistive memory according to an embodiment of the invention.
[0040] [Fig.2] represents a method of electroforming a resistive memory of a memory device including a memory controller and an encoder calculating a linear and inversion-invariant error correcting code.
[0041] [Fig.3] details steps of the electroforming process of [Fig.2].
[0042] [Fig. 4] represents a method of verifying an electroforming operation, and in particular electroforming carried out according to the method of figures 2 or 3.
[0043] [Fig.5] is an illustration of a parity matrix H for an error correcting code with 3 data bits. Detailed description of the invention
[0044] Faced with the previously stated problem of simplifying the electroforming operations of memory cells encoding ECC bits, different approaches can be envisaged.
[0045] It could be envisaged not to have a specific writing device for the ECC bits and to have a writing device which only takes as input the code words supplied by the encoder, without having a specific mode of "bypassing" the values to be written in the ECC bits in electroforming mode. Thus, it is possible to search for data to be written which, once passed into the encoder, leads to a code word whose ECC bits all have the value "1" making it possible to carry out the electroforming of these ECC bits. However, such data may not exist depending on the type of encoder chosen. Furthermore, it is unlikely that the identified input data will itself be a sequence of only "1" values making it possible to carry out the electroforming operation of the non-ECC cells simultaneously.Thus, it would most likely be necessary to double the number of memory cell programming operations to perform a first write aimed at electroforming the non-ECC cells (with a write value of "1" for these cells) and a second electroforming write aimed at the ECC cells. A disadvantage of this process is that the memory cells would undergo twice the high voltage pulses necessary for electroforming, which could weaken them.
[0046] Another possible path is to choose an encoder that allows having ECC bits all at "1" for an input data that corresponds to a sequence of "1" values. This path is possible if we use an encoder that implements a particular correction code as will appear below.
[0047] By "linear binary correcting code" is meant a set of code words which are generated by adding a defined number (r) of verification bits to a plurality k of data bits, the verification bits being generated from the data bits in accordance with the following equation:
[0048] [Math. 1] Equation (1)
[0049] H • v = 0
[0050] Where v is a column vector corresponding to a code word (k data bits and r check bits) and H corresponds to a parity matrix, the parity matrix comprising only binary values ('0' or '1'), each column of the matrix
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057] being different from the other columns, and each column of the matrix including at least one value other than 0. Systematic linear error correcting codes are defined using a parity matrix H = [P, lr] composed of a submatrix P where each column corresponds to data bits, and an identity submatrix lr where each column corresponds to check bits. [Fig.5] illustrates a parity matrix H for a binary linear error correcting code with 3 data bits (k=3) and 3 check bits (r=3). The first 3 columns correspond to the submatrix P and the last 3 columns to the submatrix lr for r equal to 3. The example presented in Figure 5 corresponds to a systematic correction code, i.e., each code word is divided into a vector of data bits d and a vector of check bits c and can be noted: [Math. 2] Equation (2) d2 d3 V cl c2 \c3l This code word must satisfy equation (1) and the verification bits are for example calculated as follows: cl = d2 + d3 ; c2 = dl + d3 ; c3 = dl + d2 + d3, each verification bit corresponding to a value congruent to the sum modulo 2 (so each verification bit has a binary value, '0' or '1'). In the example of the matrix in [Fig.5], the verification bits cl and c2 are even (because they are linked to two data bit values), the bit c3 is an odd verification bit (because they are linked to three data bit values). So, according to this example, if all the data bits are reversed, cl and c2 will preserve their values while the value of c3 will be reversed. This is particularly because c3 depends on an odd number of data bits. A linear binary ECC is said to be "inversion invariant" when the inversion of all the data bits of a codeword requires the inversion of all the check bits in order to obtain a new codeword. Thus, and following what was recalled previously, a linear binary ECC is inversion invariant when all the check bits depend on an odd number of data bits. It follows that with a linear and inversion invariant ECC, all the check bits become 0 or 1 if all the data bits are respectively equal to 0, 1. Therefore, a linear and inversion invariant ECC contains a codeword where all the bits are equal to 0 and another codeword where all the bits are equal to 1.
[0058] [Fig.l] represents a general system 100 which uses a resistive memory and makes it possible to implement the steps of a method for electroforming a resistive memory according to an embodiment of the invention. The system comprises an electronic subsystem 110, also called a host electronic subsystem, a memory controller 112 comprising an error correcting code encoder 130 (called an ECC encoder) having an input register 120 and an output register 140, and a resistive memory 150. The host electronic subsystem may comprise one or more processor cores, a microcontroller and a programmable logic circuit also called an FPGA (acronym for "Field Programmable Gate Array"). In addition or alternatively, the host subsystem may correspond to an ASIC (acronym for "Application-Specific Integrated Circuit") integrated circuit.
[0059] During an electroforming operation, as for a write and read operation, of a resistive memory such as that included in the general system 100, data bits are emitted by the electronic subsystem 110 and sent to the memory controller via the input register in the ECC encoder. A memory controller controls the programming operation necessary for the electroforming operation, as well as future write and read operations in the resistive memory. The programming operations are carried out according to the data bits of a word emitted by the electronic subsystem 110. The memory controller 112 comprises an encoder and an ECC decoder, the encoder being used during a write (or programming) operation and the decoder used during a read phase.The data bits of a word transmitted by the electronic subsystem 110 are first used by the ECC encoder which generates verification bits which are added after the data bits in order to form a code word. All the bits of the code word will be programmed / written to the same address during an electroforming or writing procedure. These verification bits may in particular be used by an ECC decoder to correct possible errors in storing a word in the resistive memory during a reading operation.
[0060] [Fig.2] represents a method 200 for electroforming a resistive memory of a memory device such as for example that of [Fig.l] including a memory controller and an encoder calculating a correction code. The method comprises a step 210 of requesting a writing of data in the memory device at an initial address which corresponds to the selection of several memory cells, i.e. to write the corresponding resistors. This data to be written comprises k data bits which all have the same first logic value, called electroforming value, selected from the two logic values “0” and “1”.
[0061] The method according to [Fig.2] continues with a step 220 of encoding the data bits with a linear and inversion-invariant error-correcting code, resulting in a code word comprising k data bits and r check bits. The check bits depend on an odd number of data bits, which implies that the data bits and the check bits all have the same first logical value (always selected from the two logical values "0" and "1").
[0062] The method according to [Fig.2] continues with a step 230 of writing the code word obtained in the previous step in the selected resistors of the resistive memory. The memory controller performs this operation in 1T1R mode by individually writing each resistor, placing them in HRS or LRS states according to the respective logic value of each bit of the code word and according to writing conditions allowing electroforming, that is to say in particular according to a high voltage.
[0063] [Fig. 3] details steps of the electroforming method described above, for a resistive memory coupled to a memory controller and having data protected by a linear and inversion-invariant error correcting code. The electroforming method 300 comprises a step 310 consisting of encoding data bits equal to 1 with a linear and inversion-invariant error correcting code (ECC).
[0064] Following the encoding of these data bits and the obtaining of a code word, the method comprises a step 320 consisting of initializing the electroforming address in the resistive memory to a first value corresponding for example to the smallest address value among the address values allowing a memory cell to be selected. Furthermore, during step 320, the memory controller is configured in 1T1R write mode and in electroforming mode for this “special electroforming” write operation. It is notably indicated that the configuration of the memory controller is in 1T1R because the electroforming method is also necessary for differential resistive memories which must be programmed in 1T1R mode during the electroforming operations.
[0065] The step 320 of initializing an address in the resistive memory and configuring the memory controller in 1T1R mode and the step 310 of encoding data bits with a linear and inversion-invariant ECC are steps which can be alternated chronologically or carried out in parallel depending on the hardware organization of the circuit, and in particular the control means used by the host to control the memory controller, and possibly the encoder.
[0066] The electroforming method continues with a step 330 consisting of writing into the resistive memory according to said code word at said electroforming address. The fact of having configured the memory controller in electroforming mode guarantees that the writing operation will be carried out by applying high voltage pulses necessary for the electroforming of cells of a resistive memory.
[0067] In the electroforming method of the present invention, this step 330 consisting to write to the resistive memory data bits equal to 1 that are encoded with linear and inversion-invariant ECC guarantees that the code word written to the memory will have all its bits equal to 1. Writing a code word with all bits equal to 1 in 1T1R mode will result in LRS programming of all memory cell resistors at the specified address. The electroforming mode of the memory controller guarantees that an electroforming operation is performed on the memory cells at the specified address.
[0068] The method of electroforming a resistive memory according to [Fig. 3] continues with a step 331 consisting of verifying at the electroforming address in the resistive memory that said code word has been correctly programmed and, consequently, that the memory cells have been correctly electroformed. This step can be executed by the host processor through a read operation at the electroforming address. An electroforming error can be identified by the host through the identification of the bits which are not equal to 1. The host must also verify whether the memory controller has not signaled errors, in particular errors detected by the decoder during the post-forming read step. This verification of possible read errors can be done either by a signal of a read error sent by the memory controller to the host, or by an action of the host consisting of verifying status registers of the memory controller.In the second case, it is assumed that the address of any correctable or non-correctable error identified by the ECC decoder will be saved in a status register of the memory controller, and / or in a register of an external processor connected to the memory device. If a write error has been identified, the electroforming method continues with a step 340 consisting of saving said electroforming address "with error" in a dedicated memory, called working memory, associated with the host (and not shown). In this way, it will be possible in the rest of the procedure to retry the electroforming of the resistive memory cells located at the addresses saved in the working memory of the host.
[0069] Whether in the case of an identified write error or in the case where no write error has been identified, the electroforming method continues with a step 350 consisting of incrementing or decrementing the electroforming address in order to generate a new electroforming address. Thus the method can be continued by repeating step 330 of writing said code word, all of whose bits have the value '1', to said incremented or decremented electroforming address, so as to form the entire resistive memory.
[0070] The method of electroforming the resistive memory according to [Fig. 3] continues with a step 360 consisting of verifying that the incremented or decremented electroforming address is included in the scope of the resistive memory. By "included in the scope of the resistive memory" it is understood that the electroforming method is considered as a portion or all of the resistive memory and that the electroforming addresses cannot exceed the perimeter of these portions or of the entire resistive memory.
[0071] In the case where the result of the verification is that the new incremented or decremented electroforming address is not included in the range of the resistive memory, then the electroforming process can end. In the case where the result of the verification is that the incremented or decremented electroforming address is included in the range of the resistive memory, then the process continues with the reiteration of step 330 of forming the resistive memory according to said code word at said incremented or decremented electroforming address.
[0072] In one embodiment, the electroforming method comprises the subsequent step of providing the read code word to a decoder capable of providing k bits of corrected data if necessary from the verification bits, the decoder being capable of informing a status register of the memory controller indicating the presence or not of a correctable or non-correctable error in the word which has just been read, and where the step of comparing the read value and the expected value includes an operation of consulting said status register of the controller.
[0073] [Fig.4] represents steps of a method 400 for verifying an electroforming operation, and in particular electroforming carried out according to the method described previously with reference to FIGS. 2 and 3. These steps can be carried out independently or in addition to the steps of the electroforming method described.
[0074] Furthermore, these steps can be carried out as a method of verifying writing in a resistive memory of a memory device including a memory controller and an encoder calculating a linear and inversion-invariant error correcting code and an associated decoder.
[0075] The method 400 comprises a first step 410 of verification reading, consisting of requesting, by an external processor, a reading at the initial address and / or at the new address and verifying whether all the data bits returned to said processor, obtained at the output of a decoder having received the read code mode, all have the same logical value among two possible logical values “0” and “1”.
[0076] In the case where it is read and verified that certain data bits have a value different from the expected logic value '0' or '1' (Yes branch of 412), then the method continues with a step 431 consisting of signaling an electroforming error.
[0077] In the case where it is read and verified that no bit of this code word has a logical value different from '1' or '0' from the expected value (No branch of 412), then the method continues with a step 420 consisting of reading a status register of the memory controller to verify 430 the presence or not of an error having been corrected by said decoder in the word which has just been read (check if the ECC decoder has raised a flag (from the Anglicism "flag") indicating the presence of an error, correctable or not, in the word which has just been read).
[0078] In the case (No branch of 430) where the result is that there is no error (correctable or non-correctable) indicated by the memory controller status register, the method ends with a step 432 of concluding that there are no electroforming errors.
[0079] In the case (Yes branch of 430) where the result is that there is an error, correctable or not correctable, indicated by the memory controller status register, the method continues with step 431 consisting of taking into account the electroforming error, i.e. in practice keeping the current address at which an electroforming operation has just been carried out and verified. Subsequently, the host may restart a possible electroforming operation at this address, or may possibly decide not to use the memory cells located at this address having caused errors.
[0080] Generally speaking, the steps described in the flowcharts of Figures 2 to 4 are a “high level” description of the programming and verification operations that one wishes to carry out in a resistive memory. Nevertheless, these operations are in practice implemented by interactions between the host 110 and the memory controller 112. It will be noted that the ECC encoder and decoder are generally included in the “boundaries” of the memory device which also includes, beyond the memory cell matrix, row / column control devices, writing and reading devices as well as the memory controller. The “boundaries” of the memory device are delimited by the input / output (or I / O) blocks.The host that requires the execution of an electroforming process may be a processor connected to the memory device by a "system" bus comprising a data bus, an address bus and control signals connected to the input / output blocks of the memory.
[0081] According to one embodiment of the electroforming method, the host processor directly sends successive write and read commands to carry out the operations described in relation to Figures 2 to 4. Thus, to carry out the equivalent of steps 310 to 330, the host processor sends a write instruction to the memory device, with a control signal from the memory device bus indicating that it is in “electroforming” mode, by setting the value “1” on the data bus, and by setting the initial address on the address bus. Upon receipt of this write command, the memory device, via its memory controller, will launch the execution of the ECC calculation by the encoder and will then command the actual writing of the code word (with values at 1) by activating the devices of control lines / columns from the received address, and by activating the writing devices which receive the code word from the encoder as a writing instruction.
[0082] To perform the equivalent of step 331, or 410, the host processor sends a read instruction to the memory device with a control signal from the memory device bus indicating that it is in read mode, by positioning the initial address on the address bus and waiting for the read data which will be received on the data bus. Upon receipt of this read command, the memory device, via its memory controller, will launch the execution of the actual reading of the code word by activating the row / column control devices from the received address, then transmit the read code word to the decoder. The decoder identifies whether there are errors in the data part of the code word using the ECC bits. If there is one error (or several), the decoder signals it to the memory controller, for example by writing to an internal register of the memory controller.Additionally, if there is an error, the decoder corrects the data if possible. If data correction was possible or if there were no errors, the decoder provides the data on the data bus via the input-output block. The host processor retrieves the data present on the bus and checks if these data are all equal to the value "1" which should correspond to the expected value after an electroforming step.
[0083] The processor also checks that there have been no error corrections carried out by the decoder (via, for example, consultation of the internal register of the memory controller which can be made accessible to the host processor) before validating the correct completion of the electroforming at the current address.
[0084] In all the previously described embodiments, it has been assumed that the electroforming step consists of carrying out a SET operation leading to writing the selected resistive memory to a low impedance LRS state.
[0085] It has also been considered that the values of the data coming out of the encoder are transmitted to the writing device and written in the selected memory without any operation of inverting the value in this chain. Thus, a person skilled in the art would understand that it is necessary to adapt accordingly the data value indicated by the processor during a write request if, for example, an inverter were placed at the output of the encoder block, between the latter and the writing device. Thus, a person skilled in the art will of course be able to envisage adaptations of the method and the device previously described, to retain the advantage of the present invention, namely not needing a specific ECC bit writing device (which would then involve having a bypass of the encoder for the ECC bits in electroforming mode).
[0086] In the present invention, the writing device for the data and ECC bits is directly connected to the encoder and receives as a writing value instruction di directly the values from the encoder, without there being any need to differentiate this operating mode depending on whether one is in electroforming or in “standard” writing. This advantage of simplicity of the memory device is obtained thanks to an encoder implementing a linear error correcting code and invariant to inversion as explained previously
[0087] In the examples described above, the electroforming is normally carried out with a single write, in electroforming mode, to put each memory cell into the LRS state. This is particularly the case for resistive memories of the CBRAM and OxRAM type. It is possible that for other types of resistive memories, it is necessary to carry out several write operations to properly carry out the electroforming operation. In the case, for example, of PCM memories, it is necessary, before their standard use, to carry out several SET and RESET cycles under particular write conditions (in voltage / current). Thus, in this case, the electroforming logic diagrams described above must be adapted to carry out, not a write operation, but a series of writes to successively write “1” (do a SET) then “0” (do a RESET), and start again several times.At the end of this repetition of SET / RESET writing, we can also check that the writing state at "0" and / or "1" is correct. Here too, the advantage of using an encoder implementing a linear error correcting code that is invariant to inversion allows "naturally", without additional hardware or software, to carry out T electroforming of the ECC bits at the same time as T electroforming of the data bits, which allows for faster processing in the end, and avoids unnecessary "stress" to the memory cells (which would be linked to voltage / current conditions that are harmful to the cells if repeated several / too many times).
[0088] In the examples described above, the single electroforming step performed aims to change each resistor from an initial technological state (called “pristine” in English) which has a high “very HRS” impedance to a low LRS impedance state. Furthermore, we have taken the convention that the SET operation is performed by requesting the writing of a value “1” in the memory. In the case where an inverse convention is taken, namely writing a value of “0” to perform an operation of setting to the LRS state (transition from HRS to LRS) and a value of “1” to perform the inverse operation of setting to the HRS state, then it is possible to use an encoder implementing a “simple” linear correcting code, without it being necessary for the linear correcting code to also be invariant to inversion.
[0089] It will nevertheless be noted that, beyond carrying out the electroforming step by means of a memory device that does not require an encoder that can be bypassed (“bypass” so that the memory controller can control directly), it is advantageous to be able to carry out verification writes of the memory matrix. consisting of writing a "1" in all cells, then a "0" in all cells, including in the ECC cells, not only in the data cells. These verification writes make it possible in particular to ensure that there is no faulty resistor always resulting in a reading of a "1" or a "0". To be able to carry out these checks, without additional hardware cost embedded in the memory device, and from the host processor, it is necessary to use an encoder which implements a linear error correcting code which is invariant to inversion. Thus, the use of such an encoder makes it possible in practice to simplify the memory device, for carrying out the electroforming steps and / or for carrying out the "all 1" and "all 0" test steps.
[0090] The various embodiments presented in this description are not limiting and can be combined with each other. Furthermore, the present invention is not limited to the embodiments previously described but extends to any embodiment falling within the scope of the claims.
[0091] Without limitation, a known ECC is the SEC-DED code (acronym for Single Error Correction Double Error Detection) which allows the correction of errors on a single bit (SEC) and the detection of errors on two bits (DED). Those skilled in the art may refer to various documents available in the literature which describe types of error correcting code and mechanisms for correcting and detecting errors by an ECC in a resistive memory.
Claims
Claims
1. Method for electroforming (200) a resistive memory of a memory device including a memory controller, an encoder calculating a linear and inversion-invariant error correcting code, and a writing device directly connected to the encoder, the method comprising the following steps: - (210) requesting a write in the memory device at an initial address corresponding to the selection of several resistors, with data to be written comprising k bits of data and all having the same first logic value called electroforming among two possible logic values "0" or "1";- (220) encoding the k data bits with the linear and inversion-invariant error correcting code so as to obtain a code word comprising the data bits and r check bits, such that the check bits depend on an odd number of the data bits resulting in the data bits and the check bits all having the same first logical value;- (230) carrying out, by the writing device directly connected to the encoder and receiving as writing value instructions directly the values from the encoder, the writing of the code word in the selected resistors of said resistive memory, the memory controller carrying out a writing in 1T1R mode corresponding to an individual writing of each resistor, each resistor being placed in a high or low impedance state according to the respective logic value of each bit of the code word, the memory controller applying writing conditions allowing electroforming.;
2. A method of electroforming a resistive memory according to claim 1, the method comprising the following subsequent steps: - (331) requesting a reading by the memory controller at the initial address in the resistive memory where said code word was written and comparing the read value to the expected value, and if said values do not match (340) saving said electroforming address in a status register of the memory controller and / or in a register of an external processor connected to the memory device, (350) increment or decrement the initial address, so as to obtain a new address corresponding to the selection of resistors other than those of the initial address; and (360) check whether this new address is out of range: if yes, complete the process; if not repeat the steps of claim 1 at the new address.
3.
4. A method of electroforming a resistive memory according to claim 1 or 2, the electroforming method comprising the following subsequent steps: providing the read code word to a decoder capable of providing k bits of corrected data if necessary from the verification bits, the decoder being capable of informing a status register of the memory controller indicating the presence or not of a correctable or non-correctable error in the word which has just been read; and in which, the step of comparing the read value and the expected value includes an operation of consulting said status register of the controller. Method of electroforming a resistive memory according to one of any of the preceding claims, the electroforming method comprising the following further steps: (410) request, by an external processor, a reading at the initial address and / or at the new address and check whether all the data bits returned to said processor, obtained at the output of a decoder having received the read code mode, all have the same logical value among two possible logical values “0” and “1”; if all the data bits all have the same expected logic value "0" or "1", (420) read the status register of the memory controller to check whether or not an error has been corrected by said decoder in the word which has just been read; and depending on the result (430) of the verification: - (431) report an electroforming error; or - (432) terminate the process; - if all the data bits do not all have the same logic value “0” or “1”, (431) report an electroforming error.
5. A method of electroforming a resistive memory according to any one of the preceding claims, the steps of the method being iterated at least once with data to be written whose logical value of the bits is different from the logical value of the bits of the previous iteration.
6. A device for electroforming a resistive memory of a memory device including a memory controller, an encoder calculating a linear and inversion-invariant error correcting code, and a writing device directly connected to the encoder, the electroforming device comprising means for implementing the steps of the electroforming method according to any one of the preceding claims.
7. A device according to claim 6 wherein the means comprises a host processor, the steps of the electroforming method according to any one of the preceding claims being implemented by interactions between the host processor and the memory controller.
8. The electroforming device according to claim 6 or 7 wherein the linear and inversion-invariant error correcting code is of the SEC, SEC-DED, DEC, DEC-TED, TEC, TEC-QED type...
9. Method for verifying writing in a resistive memory of a memory device including a memory controller and an encoder calculating a linear error correcting code that is invariant to inversion, the method comprising the following steps: - (410) requesting a reading of a code word written to an initial address, the code word having been written by a writing device directly connected to the encoder and having received as writing value instructions directly the values from the encoder, and verifying whether all the bits of this code word all have the same logic value among two possible logic values "0" and "1"; if all the bits of this code word all have the same logic value “0” or “1”, (420) read a status register of the memory controller to check the presence or not of a correctable or non-correctable error in the word which has just been read; and according to the result (430) of the check: - (431) signal a write error; or - (432) terminate the process; if all bits in this code word do not have the same logical value "0" or "1", (431) report a write error.
10. The method of claim 9 wherein the steps are performed for verifying the writing of a code word of an electroforming operation.
11. The method according to claim 9 for which the steps are implemented for the verification of the writing of a code word after steps consisting in: - (210) requesting a write in the memory device at an initial address corresponding to the selection of several resistors, with data to be written comprising k data bits and all having the same first logic value among two possible logic values "0" or "1"; - (220) encoding the k data bits with the linear error correcting and inversion invariant code so as to obtain a code word comprising the data bits and r verification bits, such that the verification bits depend on an odd number of the data bits resulting in the data bits and the verification bits all having the same first logic value;and - (230) performing the writing of the code word in the selected resistors of said resistive memory, the memory controller performing a writing in 1T1R or 2T2R mode of the code word in the selected resistors.;
12. Device for verifying writing in a resistive memory of a memory device including a memory controller, an encoder calculating a linear and inversion-invariant error correcting code and an associated decoder, the memory device being connected to an external processor, the verification device comprising means for implementing the steps of the method according to any one of the claims indications 9 to 11.
