Writing method for differential resistive memories.

The proposed writing method for 2T2R resistive memories addresses variability and non-uniformity issues by alternating programming modes, improving reliability and reducing energy consumption.

FR3131426B1Active Publication Date: 2024-09-06COMMISSARIAT A LENERGIE ATOMIQUE ET AUX ENERGIES ALTERNATIVES +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
FR2021014324
Authority / Receiving Office
FR · FR
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-12-23
Publication Date
2024-09-06
Estimated Expiration
2041-12-23

AI Technical Summary

Technical Problem

Resistive memories, particularly 2T2R type, face performance degradation due to variability in resistance switching and cell-to-cell non-uniformity, leading to increased error rates and energy consumption during write operations.

Method used

A writing method for 2T2R resistive memories that involves alternating between programming in 1T1R mode for individual cells and differential verification, ensuring correct programming with reduced iterations and energy consumption.

Benefits of technology

The method enhances reliability and performance by reducing write operations, maintaining a sufficient reading margin, and optimizing energy usage while ensuring accurate data encoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000023_0000
    Figure 00000023_0000
  • Figure 00000024_0000
    Figure 00000024_0000
  • Figure 00000025_0000
    Figure 00000025_0000
Patent Text Reader

Abstract

The present invention relates to a method for writing a data word to a resistive memory composed of 2T2R differential cells, each comprising the first and second sets of a resistor (R) and a selection transistor (T). The method comprises the steps of generating an initial code word, programming it in 1T1R mode, verifying its programming in 1T1R mode, inverting it, programming the inverted initial code word in 1T1R mode, verifying its programming in 1T1R mode, and reading in 2T2R differential mode that the read data corresponds to said initial data. The present invention also relates to a device adapted for implementing this writing method and an electronic system comprising this device. Figure for the abstract: Fig. 2
Need to check novelty before this filing date? Find Prior Art

Description

Description Title of the invention: Writing method for re- memories differential resistors. Field of invention

[0001] — The present invention relates to a writing method for resistive memories differentials, of 2T2R structure. State of the art

[0002] — Resistive memories are non-volatile memories with a speed of higher performance than NAND flash (SSD memory), low electrical energy consumption and a long service life. For these reasons, the Resistive memories are promising candidates to replace both RAM and current non-volatile memories such as type memories flash.

[0003] There are several resistive memory technologies. These include: conductive bridge resistive memories, also called CBRAM (for " Conductive-Bridging Random-Access Memory” according to English terminology. Saxon), or oxide-based resistive memories, also called OXRAM (for “Oxide-based Random-Access Memory” in Anglo-Saxon terminology) or phase change memories, also called PCM (for “Phase Change Memory”).

[0004] A resistive memory is composed of a multitude of resistive memory cells arranged in rows and columns to form a matrix. A memory cell RRAM has at least one resistive element whose resistance can be changed electric.

[0005] = An elementary resistive memory cell as illustrated in [Fig.1a] (with a example of associated reading device), is generally made up of a transistor (T) and a resistive component (R) or resistor (12), where a bit of information is encoded by the value of the electrical resistance of the resistor and accessed via the transistor to the crossing of a bit line (BL) and a word line (WL). For these ele- mentaries, a logic '0' can for example be encoded by programming the resistor in a high resistance state HRS, and a logic '1' can then be encoded in pro- placing the resistor in a low resistance state LRS, and we then speak encoding in 1T1R mode.

[0006] To program a memory cell, a programming voltage is applied between the electrodes of the memory cell. This can be a write voltage for write the memory cell, i.e. place it in the low resistive state LRS, or of an erase voltage to erase the memory cell, i.e., place it in the highly resistive state HRS. However, after a programming operation, it may happen that the memory cell does not go into the desired resistance state. For this reason, a check is usually carried out to ensure that the memory cell is correctly programmed by comparing its resistance value R to a predefined resistance threshold Rper. However, the difference between the lowest value corresponding to an RS level and the highest value corresponding to the LRS level, also called a "memory window", is often small. Therefore, "differential encoding" is commonly used to encode a binary value to be stored. A bit of information can then 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 called encoding in 2T2R mode. [Fig.1b] illustrates an alternative implementation of a 2T2R cell with a device for reading such a memory cell. Since each of the HRS and LRS states can be associated with a logic value, i.e. '0' or '1', it can be considered that in a 2T2R cell one of the two resistive elements encodes the bit to be programmed in the non-inverted version while the other resistive element encodes the same bit in the inverted version. For example, a logic '0' 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 '1' 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. Thus, in differential encoding, each bit of information is encoded in a 2T2R elementary cell formed by two resistive elements which are written in opposition of state, that is to say one of the resistive elements with an HRS level and the other with an LRS level, the respective resistance levels of the two resistive elements being always determined in the same order between the two elements, which define whether we are in the presence of a '0' or a logical '1' depending on whether it corresponds to the HRS-LRS or LRS-HRS states. When writing to a 1T1R or 2T2R memory cell, it must be ensured that each electrical resistance that is to be programmed to an HRS state or the LRS state is respectively either larger or smaller than a reference value Rgez. The comparison of an electrical resistance with the value Rger is made by a read operation during which the programmed resistance is compared with the value Rrer using a sense amplifier or SA (for "Sense Amplifier" according to the English terminology) illustrated by the component 14 in [Fig.1a], 24 in [Fig.1b], and 34 in Figure 1c. Subsequently, this read operation with comparison to a reference value is called 1T1R mode. In [Fig.1a], the detection amplifier 14 reacts to the difference of its two inputs 'SL' (coming from the cell 1T1R) and 'ref' (representative of a reference electrical resistance value Rgzr), to generate an output signal “Vou which indicates the resistive state of the memory element of the cell and thus informing the value which is stored in the cell 1T1R. In [Fig.1b], the detection amplifier 24 is sensitive to the difference on its inputs, to generate an output signal “Vox . Two multiplexers (23-1, 23-2) are respectively connected, on a first input, to each SL line (SLI, SL2) connected to a 1T1R cell (22-1, 22-2). The second input of each multiplexer is connected to a reference resistor Rper. The outputs of the multiplexers are respectively connected to the inputs of the differential detection amplifier 24. This diagram is very symbolic and does not represent all the electronic elements necessary for carrying out a reading operation which are well known to those skilled in the art (in particular the polarization circuits of the elementary cells and the reference resistor). This simplified diagram makes it possible to illustrate several possible reading principles for differential cells.Thus, when the two multiplexers are configured to pass the signals present on the SLI and SL2 lines, the amplifier 24 evaluates a difference in resistance of the two resistive elements of the 2T2R cell (respectively, the difference between 22-1 and 22-2), thus providing information on the value which is stored in the selected differential pair of the 2T2R cell. When it is desired to carry out a reading of a single 1T1R cell, and to return to the reading mode represented in [Fig. 1a], the multiplexers are positioned so as to pass an SLI or SL2 line on one of the multiplexers and to pass the signal connected to the reference resistor on the other of the multiplexers. Read operations in resistive memories are usually performed in 1TI1R mode. To read data from the RRAM cell, a small read voltage that does not disturb the current state of the cell is applied to determine what logic state the cell is in. In memories where the information is encoded in 2T2R mode, the reading operations, except for the programming verification operation, can be carried out in 2T2R mode, also called differential reading mode. The values ​​of the two resistors present in each 2T2R memory cell that is addressed are compared with each other using a sense amplifier SA. 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. IEDM 19-534. It uses a read circuit 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 has nodes whose potentials switch depending on the current values ​​flowing through the resistive elements. This type of sense amplifier is made with few transistors and operates as a high-gain current differential amplifier. It allows direct comparison of currents flowing through the resistive elements and circulating via bit lines. Since the resistive elements retain their respective values ​​even after the applied voltage is removed, resistive RRAM is a non-volatile memory. However, memory usage involves frequent transitions between a high resistance state (HRS) and a low resistance state (LRS), and vice versa, and each switching event between these resistive states can introduce damage, as the programmed resistance values ​​may change due to relaxation phenomena, thus leading to degradation of the RRAM performance. The retention time of information in a resistive memory then depends on (a) read and write operations, (b) operating temperatures and / or (c) high magnetic fields in the case of magnetic memories. In addition, switching voltages are also parameters with a high degree of variation. Variations in resistance switching include temporal (cycle-to-cycle) fluctuations and spatial (device-to-device) fluctuations. Furthermore, resistive memories also exhibit cell-to-cell non-uniformity which also degrades memory performance by reducing the memory margin between two states. The origin of this variability is attributed to manufacturing process non-uniformities such as switching film thickness, etching damage and electrode surface roughness. These variations cause the resistances of resistive memories that are programmed in the LRS state to drift toward an HRS state, and the resistances that are programmed in the HRS state to drift toward an LRS state. Therefore, this shift in the values ​​of the programmed resistances can cause errors during read operations and reduce the performance of the memories. A common way to improve the performance of RRAM memories is to reduce their error rate. To reduce the error rate of memories, a commonly used solution is to use an error correcting code (ECC) that encodes the data before it is written to memory. Typically, the ECC encoder is located inside or near the memory controller. When encoding data with an ECC code, check bits are added to the data bits, the check bits information 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. The use of 2T2R resistive memories, which theoretically have a reading window twice as large, allows to reduce the error rate and the need to use an expensive correction code. The efficiency of differential encoding is greater in the case where the programming of each resistor used for differential encoding is carried out in 1T1R mode, that is to say in a mode where it is necessary to guarantee that if the value of the resistor must be in HRS / LRS state then it is much larger / smaller than a reference value Rrez. However this last constraint makes the operation of writing a resistive memory more difficult and longer. In 2T2R resistive memories, a write operation uses significantly more energy than a read operation and, moreover, it affects the performance of the memory cells, much more than a read operation does. Faced with this problem of performance loss, there is a need for a solution to avoid or reduce write operations in STIR resistive memories. Brief description of the invention The invention aims to overcome all or part of the problems mentioned above by proposing a writing method for resistive type memories of the 2T2R type which is less restrictive and also faster. This writing method makes it possible to guarantee the functionality of the resistive memory despite the intrinsic variability of the writing operations for resistive memories. To this end, the invention relates to a method for writing a data word into a resistive memory composed of 2T2R differential cells each comprising first and second sets of a resistor (R) and a selection transistor (T), the method comprising steps consisting of: generating an initial code word from initial data bits and verification bits generated from the data word, and initializing a programming number counter, the number of programmings corresponding to a maximum number of programmings for said word in a group of selected differential cells; programming in 1T1R mode this initial code word into the resistive memory, by selecting the first 1T1R sets of the selected differential cells, then performing a 1TI1R verification reading and incrementing or decrementing the programming number counter;repeat the previous step until all bits of the initial code word have been programmed correctly and the maximum number of programmings has not been reached; invert the initial code word and reset it; programming number counter; programming in 1T1R mode in the resistive memory, the initial code word inverted in the previous step, by selecting the second 1T1R sets of the selected differential cells, then carrying out a 1T1R verification reading and incrementing or decrementing the programming number counter; repeating the previous step until all the bits of the initial inverted code word have been programmed correctly and the maximum number of programmings has not been reached; carrying out a verification reading in 2T2R differential mode of the selected differential cells and verifying at least that the data read correspond to said initial data; and depending on the result of the verification, terminating the writing process or signaling an error in the writing process. In one embodiment, said 2T2R differential mode verification reading includes verifying all bits of the read codeword against bits of the original codeword. In one embodiment, the step of repeating the previous step (programming in IT1R mode this initial code word in the resistive memory) comprises the following substeps of: checking by reading in 1T1R mode in the resistive memory if there are unprogrammed data and verification bits remaining; and if there are unprogrammed bits remaining and if the maximum number of memory writes for said initial code word is not reached, repeating the step of programming in IT1R mode said initial code word in the resistive memory; or if there are no unprogrammed bits remaining or if the maximum number of memory writes for said initial code word is reached, continuing with the next step. In one embodiment, the step of repeating the previous step (if there are unprogrammed bits remaining and if the maximum number of memory writes for said initial code word is not reached) comprises the following substeps of: checking by reading in 1T1R mode in the resistive memory if there are unprogrammed data and verification bits of the inverted initial code word remaining; and if there are unprogrammed bits remaining and if the maximum number of memory writes for said inverted initial code word is not reached, repeating the step of programming in 1T1R mode said inverted initial code word in the resistive memory;or if there are no unprogrammed bits remaining or if the maximum number of memory writes for said inverted initial code word is reached, continue with the next step (perform a verification reading in 2T2R differential mode of the selected differential cells and verify at least that the data read correspond to said initial data). ; In one embodiment, the step of repeating the previous step (programming in 1T1R mode in the resistive memory, the initial code word inverted to the previous step) comprises the following substeps consisting of: checking by reading in 1T1R mode in the resistive memory whether there are still unprogrammed data and verification bits of the inverted initial code word; and if there are still unprogrammed bits and if the maximum number of memory writes for said inverted initial code word is not reached, repeating the step consisting of programming in 1T1R mode said inverted initial code word in the resistive memory; or if there are no unprogrammed bits or if the maximum number of memory writes for said inverted initial code word is reached, continuing with the next step (performing a verification reading in 2T2R differential mode of the selected differential cells and checking at least that the data read correspond to said initial data). In one embodiment, the step of terminating the writing process is performed if the data read in 2T2R mode matches said initial data; and wherein the step of signaling an error of the writing process is performed if the data read in 2T2R mode does not match said initial data. In one embodiment, the step of programming in 1T1R mode the initial code word in the resistive memory and / or the step of programming in ITIR mode the inverted initial code word in the resistive memory comprising sub-steps consists of: reading in 1T1R mode in the resistive memory the bits at the programming address of the code word and comparing the bits read at said programming address and the bits of the code word to be programmed, and programming in 1T1R mode in the resistive memory only the bits of the code word which do not correspond to the read bits. In one embodiment, the step of programming in 1T1R mode the initial code word in the resistive memory or the step of programming in 1TI1R mode the inverted initial code word in the resistive memory are performed by a single write circuit adapted to configure the cells of the resistive memory in an HRS or LRS state. In one embodiment, the step of programming in IT1R mode the initial code word in the resistive memory and / or the step of programming in ITIR mode the inverted initial code word in the resistive memory are performed by a first write circuit only adapted to configure in an HRS state the cells of the resistive memory and, in parallel, by a second write circuit only adapted to configure in an LRS state the cells of the resistive memory. In one embodiment, the step of programming in IT1R mode the initial code word in the resistive memory and / or the step of programming in 1ITI1R mode the inverted initial code word in the resistive memory are performed. firstly by the first write circuit concerning the cells of the resistive memory to be programmed in an HRS state and then being carried out secondarily by the second write circuit concerning the cells of the resistive memory to be programmed in an LRS state, or vice versa. The invention also relates to a device for writing a data word in a resistive memory composed of 2T2R differential cells each comprising first and second sets of a resistor (R) and a selection transistor (T), the device comprising means for implementing the steps of the writing method of the invention. In one embodiment, the means of the device for writing a data word comprise a memory controller coupled to the resistive memory to implement the verification reading step in 2T2R differential mode of the writing method of the invention. In one embodiment, the means of the device for writing a data word comprise a host processor coupled to the resistive memory adapted to implement the verification reading step in 2T2R differential mode of the method of the invention. Brief description of the figures Other characteristics, details and advantages of the invention will emerge from reading the description given with reference to the appended drawing given by way of example and which represents: [Fig.1a] and [Fig.1b] illustrate implementations of an ITI1R memory cell and a 2T2R memory cell respectively. [Fig.2] represents the steps of a method of writing a data word in a resistive memory composed of 2T2R differential cells according to an embodiment of the invention. [Fig.3] represents a particular embodiment of the step of programming in 1T1R mode an initial code word in a resistive memory. [Fig.4] represents a general system for implementing the steps of a method for writing a data word in a resistive memory composed of 2T2R differential cells according to an embodiment of the invention. Detailed description of the invention A write operation in 2T2R type resistive memories requires the programming of two resistors. A write operation in a 2T2R resistive memory, such as the 2T2R resistive memory 430 of Figure 1, allows differential encoding which can be achieved by programming the code word in 1TIR mode a first time as it was generated, to write in the “left” cells 22-1 and a second time in a complementary way to write in the “right” cells 22-2. [Fig.2] represents a method 200 for writing a data word in a resistive memory of type 2T2R according to an embodiment of the invention. When initiating the writing method, the initial data bits that must be written are first encoded by an ECC encoder, during step 210 of generating an initial code word. Also during this step 210, a counter is initialized with a maximum number of programmings. For example, the maximum number of programmings can be 10 units, the counter starting at 10 and being decremented by one unit at each programming operation until reaching 0 in which case there are no more programmings available. Alternatively, the maximum number of programs can be 10 units, the counter starting at 0 and being incremented by one unit at each operation until reaching 10 in which case there are no more programs available. The writing method 200 continues with a step 220 of programming the initial code word in the resistive memory according to a 1T1R writing mode. In practice, it is the “left” cells of each differential cell which are written in 1TIR mode. This programming step 220 also includes the decrementing of the programming counter. The programming counter is decremented or incremented at each new data bit programming step. After the programming step 220, a reading step 230 in 1TIR mode according to the address of the initial code word which has just been programmed is carried out. Similarly, it is the "left" cells of each differential cell which are read in 1TIR mode. These two programming and reading steps 220, 230 correspond to an operation generally called WRITE / VERIFY, making it possible to check whether there are still unprogrammed bits of a code word after its programming. In the affirmative case, i.e. in the case where data and / or verification bits have not been programmed, and if the maximum number of memory writes according to the programming number counter for said initial code word has not yet been reached, the programming step 220 is repeated (yes branch of 230). At each repetition of a programming step 220, the programming number of the counter is only incremented if it has already been incremented during the first programming. Alternatively, the programming number of the counter is decremented if it has already been decremented during the first programming. This cycle of steps 220, 230 is carried out as many times as necessary until the data and verification bits of the initial code word are all programmed or until the maximum number of memory writes according to the programming number counter for said initial code word is reached. If all bits of the initial code word or if the maximum number of writes has been reached (branch no. 230), the method continues with the next step 240 of inverting the initial code word and resetting the counter of the number of programmings. The writing method 200 continues with a step 240 of inverting the initial code word, making it possible to obtain a new word and to reset the counter of the number of programmings. By inverting the initial code word, it is understood that each data and verification bit of the initial code word is inverted, the logic values ​​'1' becoming '0' and vice versa. The writing method 200 then continues with a step 241 of programming the bits of the inverted initial code word according to a 1T1R writing mode. In practice, this time it is the "right" cells of each differential cell that are written in ITIR mode. This programming step 241 also includes the decrementing of the programming counter. After this programming step 241, a reading step 242 in 1T1R mode, at the memory address that has just been programmed, is carried out. Here too, it is the "right" cells of each differential cell that are read in 1T1R mode. These two steps 241, 242, of programming and reading and verification also correspond to an operation generally called WRITE / VERIFY, making it possible to check whether there are still unprogrammed bits of the inverted initial code word after its programming. When programming in 1T1R mode the data bits and the verification bits of the inverted initial code word (or complementary word) the programming address is generally incremented so as to correspond to the complementary address of each 2T2R resistive memory cell for which the data and verification bits of the initial code word had to be programmed during programming step 220 (for the "left" cells). Thus, the complementary address corresponds to the "right" resistors complementary to the "left" resistors for which programming has already been carried out (or attempted if there has been a programming error). Returning to step 242, in the affirmative case where data and verification bits of the inverted initial code word have not been programmed, and if there are still programming operations available, i.e. if the maximum number of memory writes according to the programming number counter for said inverted initial code word has not yet been reached, the programming step 241 is repeated (yes branch of 242). This cycle of steps 241, 242 is carried out as many times as necessary until the bits of the inverted initial code word are all programmed or until the maximum number of memory writes according to the programming number counter for said inverted initial code word is reached, in which case (branch no. of 242) the The writing process continues with the next step 250 which consists of a verification reading operation in 2T2R differential mode of the selected differential cells and a minimum verification operation that the read data correspond to said initial data. By this verification, it is determined whether the differential reading in 2T2R mode of the bits which were programmed during the previous steps makes it possible to read data which correspond to the initial data for which the writing process was carried out. If the data read in 2T2R mode correspond to the initial data, then the writing process can be terminated 251. If the data read in 2T2R mode do not correspond to the initial data, then an error in the writing process is signaled 252. Advantageously, the step 240 of inverting the initial code word followed by the step 241 of programming in 1T1R mode the inverted initial code word are carried out without any other operation of writing and verifying the initial code word which was programmed in 1T1R mode during the previous step 220 of programming the initial code word. The writing method of the present invention makes it possible to overcome programming failures or errors in 1T1R mode when programming an initial code word or this initial code word in an inverted form. Indeed, if it is customary in the technical field of resistive memories to verify after each writing the correct programming of data and verification bits, it is also customary not to continue such writing operations until all the bits are programmed. Thus, if in the field a limitation of the maximum number of programming operations is already known, this maximum number of programming operations is determined so as to ensure sufficient reliability of the programming in 1T1R mode and therefore a sufficient number of programming cycles. The inventors have established that the method of writing a code word in a resistive memory composed of 2T2R cells of the present invention can at least partially overcome this level of reliability of programming in ITIR mode required in the art. Indeed, the method of the present invention relies on doubling the reading margin when this reading is carried out in differential mode, which makes it possible to reduce the repetition of the writing procedures while maintaining a sufficient level of reliability. In other words, the maximum number of writing iterations in 1T1R mode is in the present invention chosen to be lower than the maximum number of writing iterations in 1IT1R mode generally retained in the devices of the state of the art. Thus, the writing method of the present invention makes it possible to maximize the chances of correctly reading a code word while the maximum number of programmings is reduced. Consequently, the writing method of the present invention makes it possible to optimize the performance and reliability of a resistive memory in 2T2R mode by going against a search for the reliability of programming carried out in ITIR mode. In a particular case concerning writing for resistive memories in 2T2R mode where the writing method 200 does not involve writing data bits constituting a whole word but only a subdivision of this whole word, it is necessary beforehand to carry out a reading of the whole word at the memory address targeted by the writing operation 200, to correct any storage or reading errors using the ECC decoder and to include in the possibly corrected whole word, the subdivision of the word to be written. The writing method 200 can then be carried out according to the first step 210 of generating a code word from the data bits corresponding to the corrected and modified word. [Fig. 3] represents a particular embodiment of a method 300 consisting of programming in ITI1R mode a word in a resistive memory. The method 300 of programming a word in the 1T1R memory can be applied for the step 220 presented in [Fig. 2], of programming the bits of the initial code word generated in the resistive memory according to an IT1R mode and also for the step 241 of programming the bits of the inverted initial code word, in the resistive memory and according to an ITIR mode. Programming a word in the memory in 1TIR mode according to [Fig.3] begins with a step 310 consisting of reading in 1T1R mode in the resistive memory the bits at the programming address and comparing the bits read at said programming address and the bits of the word to be programmed. Thanks to this comparison, it is possible to determine which bits read are already programmed correctly for the word to be programmed and which are not programmed correctly. Following this step 310, the programming 300 continues with a step 320 consisting of programming in IT1R mode in the resistive memory only the bits which do not correspond to the bits of the word to be programmed. In particular, in the particular embodiment of [Fig. 3], only the bits which were not equal to '1' are programmed and the bits which were already programmed to '1' are not programmed. This step is also known as a "set" type operation. Also, during this programming the programming number counter is decremented. This step 310, of reading then programming bits only equal to '1', corresponds to a step known according to the Anglicism "READ BEFORE WRITE" which makes it possible to save the programming of cells which do not need to be programmed. The programming of a code word in the memory in 1T1R mode according to [Fig.3] continues with a step consisting of checking by reading in 1T1R mode at the address of programming in the resistive memory if there are still unprogrammed bits at '1'. This step corresponds to steps 230 and 242 of [Fig.2]. The programming of a word in the memory in 1TIR mode according to [Fig. 3] continues with a step 340 consisting of programming in 1TIR mode in the resistive memory the bits of the code word equal to '0' which do not correspond to the bits read. In particular, in the particular embodiment of [Fig. 3], the data bits which were already programmed to '0' are not modified. This step is also known as a "reset" type operation. Also, during this programming the programming number counter is decremented. The programming of a code word in the memory in 1TI1R mode according to [Fig.3] continues with a step consisting of checking by reading in 1T1R mode at the programming address in the resistive memory whether there are any unprogrammed bits at '0'. This step also corresponds to steps 230 and 242 of [Fig.2]. which are thus doubled, one step being carried out for each operation, one of the "set" type and one of the "reset" type. A particular embodiment of a writing method according to the present invention consists in carrying out the writing method represented by [Fig. 2], the steps 220 and 241 of programming in 1T1R mode in the resistive memory being carried out according to [Fig. 3], this particular embodiment not comprising a step of verifying unprogrammed bits carried out just after the step 320 of programming bits equal to 1, and / or a step of verifying unprogrammed bits carried out just after the step 340 of programming bits equal to 0. In another particular embodiment of the invention which can be combined with the embodiments previously described, the device implementing the writing method 300 in a resistive memory in IT1R mode comprises a first writing circuit solely adapted to configure the cells of the resistive memory in an HRS state and a second writing circuit solely adapted to configure the cells of the resistive memory in an LRS state.In this particular embodiment, step 320 consisting of programming bits equal to 1 (operation of type "set" used to program the cells in LRS state) and step 340 consisting of programming bits equal to 0 (operation of type "reset" used to program the cells in HRS state) are carried out in parallel, that is to say at the same time by the first writing circuit concerning the cells of the resistive memory to be programmed in an HRS state and by the second writing circuit concerning the cells of the resistive memory to be programmed in an LRS state. Such an embodiment allows in particular a saving in writing time, the programming of data bits being able to be done by two writing circuits at the same time during each programming step. In another particular embodiment of the invention, the device implementing the writing method 200 in a resistive memory composed of 2T2R differential cells comprises a single writing circuit adapted to configure the cells of the resistive memory in an HRS or LRS state. In comparison with the embodiments where the device implementing the writing method 200 of the invention comprises two writing circuits, a device comprising a single writing circuit allows a saving in surface area and a reduction in static consumption in the production of this device. It will be noted that this “single” writing circuit, because it is capable of programming “0” and “1”, is in practice often constituted of several writing circuits associated for example with columns of different memory cells, in order to be able to carry out several writing operations in parallel in distinct memory cells. Furthermore, it will be noted that the writing of the memory cells associated with a code word is, in a conventional manner in itself, carried out in a group of memory cells selected from the same address value which is provided by the host processor, the number of memory cells selected being for example equal to k+r (k being the size of the data and r the number of ECC bits). Thus, when a reading is carried out, in “2T2R” differential mode at an address indicated by the processor, a plurality of parallel differential readings of the memory cells associated with the indicated address are carried out in practice. Some types of memory devices can be configured for data storage in "single" cells or "differential" cells, with the possibility of doubling the memory size if the data is stored in single. Thus, the address range provided for this type of memory is that corresponding to the maximum storage space, in 1T1R storage configuration, in practice this corresponds to an address space twice that required for a memory operating only in 2T2R storage mode. When such a dual storage mode device is configured in 1T1R storage mode, then writes and reads are all, always, carried out in 1TI1R read mode and of course in 1TIR write mode only.It is only when such a memory device is configured in 2T2R storage mode that the writing of a cell is done as described previously with 1T1R programming to program the "left" cells then the "right" cells and finally by doing a 2T2R differential reading if necessary to exit the writing cycle, possibly without error if the differential reading is correct. With a dual storage mode memory device, reading the left then right cells in 1TI1R mode results in the host processor producing two different successive addresses, which could, for example, be differentiated only by an address bit (thus meaning “left” or “right”). According to an alternative embodiment, the selection of the "left" or "right" cells of the differential cells can also be transparent to the host processor and ensured by the memory controller. Thus, the host processor can request a write to a given address and it is the memory controller which will be responsible for carrying out the entire iterative process of verification writes / reads and which will therefore be responsible for controlling the row / column selection devices of the memory matrix to select either the left cells or the right cells in the write and read phases in IT1R. In other words, from outside the memory device, the processor can only see differential writes and reads at a selection address, and it is the memory controller which carries out all the sub-steps constituting a write operation requiring the transition to IT1R mode. Thus, in the case where we have a memory device that does not have a dual storage mode, the selection of "left" or "right" cells can be managed by the memory controller, transparently for the host processor as explained previously. [Fig. 4] represents a general system 400 for implementing the steps of a method of writing in a resistive memory composed of 2T2R differential cells according to an embodiment of the invention, which comprises an electronic subsystem 410, also called a host electronic subsystem or host processor, a memory controller 420 comprising an encoder and decoder for an error correcting code (ECC) and a 2T2R resistive memory 430. The host electronic subsystem may comprise one or more processor cores, a microcontroller or a programmable logic circuit also called 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.During an operation of writing a word in a resistive memory such as that included in the calculation system 400, data bits of this word are emitted by the electronic subsystem 410 and sent to the memory controller 420. The data bits of a word emitted by the electronic subsystem 410 are first used by the ECC encoder, which will generate verification bits which are added after the data bits in order to form a code word. These verification bits will be stored at the same address in the resistive memory composed of 2T2R differential cells 430 as the data bits of the same word. These verification bits may in particular be used by an ECC decoder to correct possible errors in storing a word in the resistive memory in 2T2R mode 430 during the reading phase. The data bits and the check bits then constitute a code word which must be programmed into the cells of the . 2T2R 430 resistive memory. In the example of the method described in relation to [Fig. 2], a verification reading in 2T2R differential mode of the selected differential cells is carried out in step 250 and it is verified at least that the data read correspond to said initial data. This assumes that this verification is carried out internally of the memory device, by the memory controller. The memory controller then has direct access to the data provided by the reading devices which read the data bits and the ECC bits, that is to say has access to the bits which are sent to the decoder present in the memory device to correct any errors before outputting only the data bits, possibly corrected.The memory controller can then detect programming difficulties in the data bits or ECC bits and thus achieve a more precise identification of the bits that have been incorrectly programmed, in order to then focus on these unique bits that are more difficult to program in programming iteration phases. According to an alternative embodiment, it is possible for the last step 250 to be carried out differently, by considering only the data leaving the ECC decoder. This alternative can in particular be envisaged in the case where it is the host processor which carries out the final verification and makes the final decision whether or not to accept the writing. We can also consider a combination of the two variants, namely a verification of the code word by the memory controller with raising of a flag to the processor in the event of an error detected on the code word, followed by a verification of the data read by the processor, which may possibly decide to validate the writing anyway if the data read is exact, even though this required using the correction mechanism by the decoder. An advantage of using a code word check by the memory controller is that it is possible to ensure that the write was satisfactory enough to have a written word that does not require correction by ECC, by the decoder. This allows more margin for correction by ECC to cope with errors that may creep into the memory over time. However, if the programmer of the application executed by the processor considers that the data will not be kept for very long, it is possible to be satisfied with a less "reliable" write, but which gives, during a subsequent reading, correct data thanks to the ECC correction. Here again, it is a compromise between reliability and write time that can be adjusted according to the application being executed. This description illustrates a preferred implementation of the invention, but is not limiting. Examples are chosen to allow a good understanding of the principles of the invention and a concrete application, but are in no way exhaustive and must allow those skilled in the art to make modifications. fications and implementation variants while maintaining the same principles. For example, the different processes described can be implemented within the same device.

Claims

Claims

1. Method of writing (200) a data word into a memory resistive composed of 2T2R differential cells each comprising first and second sets of a resistor (R) and a transistor selection (T), the method comprising steps consisting of: (210) generating an initial code word from data bits initials and check bits generated from the word data, and initialize a counter of the number of pro- programmings, the number of programmings corresponding to a maximum number of programmings for said word in a group of selected differential cells; (220) program in IT1R mode this initial code word in resistive memory, selecting the first sets 1T1R of the selected differential cells, then perform a 1T1R verification reading and increment or de- increment the number of programming counter; (230) repeat the previous step (220) until all the bits of the initial code word were not programmed correctly and that the maximum number of programs is not reached; (240) reverse the initial code word and reset the counter number of programs; (241) program in 1T1R mode in the resistive memory, the initial code word inverted in the previous step (240), in se- selecting the second IT1R sets of the different cells selected entials, then perform a 1T1R reading of ver- fication and increment or decrement the number counter of programming; (242) repeat the previous step (241) until all the bits of the initial reverse code word were not programmed cor- directly and that the maximum number of programs is not reached; (250) perform a differential mode verification reading 2T2R of the selected differential cells and check at minimum that the data read correspond to said data initials; and depending on the result of the verification, (251) terminate the writing process or, (252) report an error in the writing process.

2. Method of writing (200) a data word into a memory resistive composed of 2T2R differential cells according to the resale indication 1, wherein said differential mode verification reading 2T2R includes verification of all bits of the code word read by relative to the bits of the initial code word.

3. Method of writing (200) a data word into a memory resistive composed of 2T2R differential cells according to one any of the preceding claims, wherein step (230) consisting of repeating the previous step (220), includes the sub-steps following consisting of: check by reading in 1T1R mode in resistive memory if there are any data and verification bits left programmed; and if there are unprogrammed bits remaining and if the number maximum number of memory writes for said word initial code is not reached, repeat step (220) consisting of programming in 1T1R mode said word of initial code in resistive memory; or if there are no unprogrammed bits remaining or if the maximum number of memory writes for said initial code word is reached, continue with step next (240).

4. Method of writing (200) a data word into a memory resistive composed of 2T2R differential cells according to one any of the preceding claims, wherein step (242) consisting of repeating the previous step (241) includes the sub-steps following consisting of: check by reading in 1T1R mode in resistive memory if there are any data and verification bits remaining in the code word initial reversed unscheduled; and if there are unprogrammed bits remaining and if the number maximum number of memory writes for said word initial reverse code is not reached, repeat step (241) consisting of programming in ITI1R mode said if there are no unprogrammed bits remaining or if the maximum number of memory writes for said initial reverse code word is reached, continue with the next step (250).

5. Method of writing (200) a data word into a memory resistive composed of 2T2R differential cells according to one any of the preceding claims, wherein step (251) consisting of completing the writing process is performed if the data read in 2T2R mode correspond to said initial data; and in which step (252) consists of signaling an error of the method writing is performed if the data read in 2T2R mode does not cor- do not correspond to the said initial data.

6. Method of writing (200) a data word into a memory resistive composed of 2T2R differential cells according to one of the re- previous claims, the step (220) consisting of programming in mode 1TI1R the initial code word in the resistive memory and / or the step (241) consisting of programming the initial code word in 1T1R mode inverted in the resistive memory comprising sub-steps consisting of has: (310) read in IT1R mode in the resistive memory the bits to the programming address of the code word and compare the bits read at said programming address and the bits of the word code to program, and (320, 340) program in 1IT1R mode in memory resistive only the bits of the code word that do not cor- do not respond to the bits read.

7. Method of writing (200) a data word into a memory resistive composed of 2T2R differential cells according to one any of the preceding claims, the step (220) consisting of program in 1TIR mode the initial code word into memory resistive or step (241) consisting of programming in 1T1R mode the word of inverted initial code in the resistive memory, being carried out by a single write circuit suitable for configuring in an HRS state or LRS resistive memory cells.

8. Method of writing (200) a data word into a memory resistive composed of 2T2R differential cells according to one of the re- claims | at 6, the step (220) of programming in mode 1T1R the initial code word in the resistive memory and / or step (241) consisting of programming in 1T1R mode the inverted initial code word in the resistive memory, being carried out by a first circuit writing only suitable for configuring in an HRS state the resistive memory cells and, in parallel, by a second circuit writing only suitable for configuring in an LRS state the resistive memory cells.

9. Method of writing (200) a data word into a memory resistive composed of 2T2R differential cells according to the resale indication 8, step (220) consisting of programming in 1T1R mode the word of initial code in the resistive memory and / or the step (241) consisting of program in ITIR mode the initial inverted code word in the resistive memory being performed first by the first circuit writing concerning the resistive memory cells to be programmed in an HRS state then being carried out secondarily by the second write circuit relating to the cells of the resistive memory program in an LRS state, or vice versa.

10. Device for writing a data word into a resistive memory composed of 2T2R differential cells each comprising first and second sets of a resistor (R) and a transistor of selection (T), the device comprising means for implementing the steps of the writing process according to any one of the re- previous instructions.

11. Device for writing a data word into a resistive memory composed of 2T2R differential cells according to claim 10, wherein the means comprises a memory controller coupled to the resistive memory suitable for implementing the ve- reading step 2T2R differential mode verification of the writing process according to one any of the preceding claims.

12. Device for writing a data word into a resistive memory composed of 2T2R differential cells according to claim 10 or 11, wherein the means comprises a host processor coupled to the resistive memory suitable for implementing the ve- reading step 2T2R differential mode verification of the writing method according to any of the preceding claims.