EEPROM simulation method

By defining the write granularity according to the data packet size and calculating the error correction code in the phase change memory, the compatibility problem of EEPROM simulation in phase change memory is solved, the compatibility and memory life optimization of EEPROM simulation are realized, and a flexible Error correcting code calculation.

CN118643783APending Publication Date: 2024-09-13STMICROELECTRONICS INT NV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410147988.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-02-01
Filing Date
2024-02-02
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Existing EEPROM simulation methods are mainly dedicated to flash memory and are difficult to implement in other memory technologies, especially in phase change memories, which are incompatible with the operation of EEPROM, resulting in loss of memory life and complexity of hardware error correction code calculations.

Method used

By defining the write granularity based on the packet size in a circuit integrated with the microprocessor, calculating and storing the first error correction code, utilizing each row of the phase change memory to store at least two packets, and deactivating the hardware during EEPROM emulation Error correction code calculation, using software to calculate error correction codes to optimize write operations.

Benefits of technology

It achieves the compatibility of EEPROM simulation in phase change memory, avoids the loss of memory life, provides flexible error correction code calculation and granular configuration, reduces the loss of available memory size in EEPROM simulation mode, and does not require hardware modification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643783A_ABST
    Figure CN118643783A_ABST
Patent Text Reader

Abstract

The invention relates to an EEPROM simulation method. An EEPROM emulation is provided in a phase change memory of a circuit integrated with a microprocessor. The granularity for writing to the rows of the phase change memory is defined according to the size of each packet to be written. A first error correction code calculated by a program executed by the microprocessor is associated with each packet. A number of data packets and their associated first error correction codes are stored in the same row of phase change memory data packets.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to French Patent Application No. 2301000, filed on February 2, 2023, which is incorporated herein by reference to the maximum extent permitted by law. Technical Field

[0003] The present disclosure generally relates to EEPROM emulation methods and memory circuits implementing these methods. Background Art

[0004] Many applications require non-volatile data storage during their use. Electrically Erasable Programmable Read Only Memory (EEPROM) type memories can be used for this purpose. These EEPROMs are often external to the integrated circuit in which they are used.

[0005] There have been proposals to emulate the operation of an EEPROM in a flash memory integrated into a system-on-chip. These solutions are specific to flash memory and cannot be transferred to other memory technologies.

[0006] There is a need to obtain a device integrating a memory that operates similarly to an EEPROM, which device is compatible with another memory technology other than flash. More specifically, there is a need for a solution to emulate an EEPROM in a phase change memory. Summary of the invention

[0007] The embodiment provides an EEPROM emulation method in a phase change memory of a circuit integrated with a microprocessor. The method includes the following steps: defining the granularity of rows for writing into the phase change memory according to the size of each data packet to be written; associating a first error correction code calculated by a program executed by the microprocessor with each data packet; and storing the first error correction code of each data packet in the same row as the data packet.

[0008] According to an embodiment, each row of the phase change memory has a capacity to store at least two data packets associated with their first error correction codes.

[0009] According to an embodiment, each row of the phase change memory includes a data area and an area for storing a second error correction code calculated by a hardware operator for the corresponding row, and when the row is used for EEPROM emulation, the storage of the second error correction code is disabled.

[0010] According to an embodiment, data packets and their first error correction codes are stored in said data area.

[0011] According to an embodiment, each first error correction code is written after its corresponding data packet.

[0012] According to an embodiment, the data packets and their corresponding first error correction codes are written one after another.

[0013] According to an embodiment, the granularity of the writing depends on parameters that can be modified by the user.

[0014] An embodiment provides an integrated circuit, including a phase change memory and a microprocessor, configured to implement such a method. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The foregoing features and advantages, as well as other features and advantages, will be described in detail in the following section in the disclosure of specific embodiments given by way of illustration and not limitation, with reference to the accompanying drawings, in which:

[0016] Figure 1 An example of an integrated circuit of the type to which the described embodiments apply is shown.

[0017] Figure 2 An exemplary implementation of a general method of emulation of an EEPROM in a phase change memory is illustrated.

[0018] Figure 3 illustrates an implementation of an EEPROM emulation method according to one embodiment; and

[0019] Figure 4 The implementation of an EEPROM emulation method according to another embodiment is illustrated. DETAILED DESCRIPTION

[0020] In the various figures, the same features are designated by the same reference numerals. In particular, common structural and / or functional features in the various embodiments may have the same reference numerals, and may be provided with the same structural, dimensional and material properties.

[0021] For clarity, only the steps and elements that are useful for the understanding of the embodiments described herein are illustrated and described in detail.

[0022] Unless otherwise indicated, when referring to two elements being connected together, this means a direct connection without any intervening elements other than conductors, and when referring to two elements being coupled together, this means the two elements can be connected or they can be coupled via one or more other elements.

[0023] In the following disclosure, when reference is made to absolute position qualifiers, such as terms "front", "back", "top", "bottom", "left", "right", etc., or relative position qualifiers, such as terms "above", "below", "higher", "lower", etc., or orientation qualifiers, such as "horizontal", "vertical", etc., reference is made to the orientation of the accompanying drawings unless otherwise stated.

[0024] Unless otherwise stated, the expressions "about", "approximately", "substantially" and "in the range of" mean plus or minus 10%, and preferably plus or minus 5%.

[0025] Figure 1 An example of an integrated circuit of the type to which the described embodiments apply is shown.

[0026] More precisely, Figure 1 An example of an integrated circuit device 100 integrating a phase change memory 104 (PCM) is shown. The phase change memory 104 (PCM) can communicate with a driver circuit 106 (DRIVER) via a communication bus 114, and the driver circuit 106 (DRIVER) is configured to write data to the memory 102 or read data from the memory 102. The driver circuit 106 includes, for example, a dedicated hardware circuit that, when activated, is configured to calculate an error correction code (ECC) during writing each element to the memory 102.

[0027] The device 100 further includes, for example, a processing unit 110 (CPU), which includes one or more processors under the control of instructions stored in an instruction memory 112 (INSTR MEM). The instruction memory 112 is, for example, of a random access type (RAM). The processing unit 110 and the memory 112 communicate, for example, via a system (data, address and control) bus 140. The memory 102 is coupled to the system bus 140 via a driver circuit 106 and a communication bus 114. The device 100 further includes an input / output interface 108 (I / O INTERFACE) coupled to the system bus 140 to communicate with the outside world.

[0028] Device 100 may integrate circuits for implementing other functions (e.g., one or more volatile and / or non-volatile memories, other processing units, etc.), Figure 1 The functional module 116 (FCT) in is represented.

[0029] The described embodiments provide for emulating EEPROM-type memory operations in a phase change memory of device 100. In other words, portions of the phase change memory of integrated circuit 100 are allocated to storage of data by emulating EEPROM-type operations.

[0030] The emulation of EEPROM-type operation in particular enables the device 100 to be compatible with applications or programs designed to operate using EEPROMs, without having to adapt them to the properties of the phase change memory integrated in the device, and to utilize a memory technology (phase change memory) that is cheaper than EEPROM technology. In particular, this enables running applications designed for operation using an EEPROM circuit with an integrated phase change memory and enables avoiding the use of external memory.

[0031] Among the standards to be followed for the simulation of EEPROM operations, it will be noted that the granularity of writes needs to be followed, i.e., the size of the EEPROM data packets provided by the application. Typically, the word length is one or two bytes and these words are aggregated (packaged) in packets or in elements of four, six or eight bytes. For example, the granularity of writes depends on the size of the rows of the EEPROM that the application is provided to operate.

[0032] In the properties of phase change memory, attention will be paid to the fact that phase change memory can be written with a granularity from one byte to the size of a memory row, ie typically sixteen bytes, or even more. Circuit 106 is therefore able to address only part of a row, depending on the size of the data to be written.

[0033] As in any memory write, an error correction code needs to be associated with each data write to be stored in the same memory row. In phase change memory, this error correction code is calculated by circuit 106 in hardware, typically by a combinatorial process. Further, it is desirable to optimize the cycles, i.e., the number of write operations, since this regulates the life of the memory.

[0034] Figure 2 An example implementation of EEPROM emulation in phase change memory is illustrated.

[0035] Figure 2 The example more particularly illustrates the content of a row of a phase change memory at the end of two steps A) and step B) of writing an EEPROM element or packet. Although a single row 210 is shown, the memory 102 includes tens, hundreds, or thousands of rows in all or part of the rows where the writing method is implemented. In the example shown, each row of the phase change memory includes a data area 202 of 128 bits (16 bytes) and an error correction area 224 of 16 bits (2 bytes) for storing the error correction code of this data row. The number of bits written simultaneously to the data area 202 is configurable at the level of the circuit 106 by one or more configuration or user selection bytes.

[0036] exist Figure 2 In the example of FIG. 1 , it is assumed that it is desired to emulate the writing of 64-bit EEPROM-type data packets in memory 102. Data area 202 is therefore configured to write in 8-byte segments.

[0037] Figure 2 Step A) illustrates the writing of the first element EEelement1 to the first 64 bits of the data area 202 via the driver circuit 106. The error correction code ECC associated with the content of the data area 202 (the element EEelement1 and the content of the next 64 bits) is calculated by the circuit 106 and stored in the area 204. At the end of step A), half (in this example) of the data area 202 is not used.

[0038] A solution would provide for emulation to allocate a row 210 of memory 102 to each EEPROM data packet. However, due to the size difference between the memory row 102 and the EEPROM element, too much memory space would be lost. It could also be designed to use phase change memory depending on the size of the EEPROM element. However, this would not be able to emulate the EEPROM in existing circuits. Further, the size of the EEPROM element may vary depending on the application being executed for which the EEPROM operation is desired to be emulated.

[0039] exist Figure 2 The solution illustrated in (step B) consists in using the remainder of the data area 202 to store the second EEPROM element EEelement2 therein. Thus, in the example of an 8-byte element and a 16-byte data area 202, the entire write area is used. The error correction code of area 202 must however be recalculated and the new code ECC' is written into area 204 of the row by replacing the previous error correction code ECC.

[0040] The fact that the error correction code must be rewritten into the same area 204 when the second EEPROM element is written into the same row reduces the number of possible cycles of the data area 204 of the phase change memory by a factor of two. Since the difference between the size of the EEPROM packet and the size of the row 201 is significant, the loss of memory life is greater. Furthermore, for the calculation of the error correction code to be performed by a dedicated hardware circuit, it is complicated to modify its operation once it has been put into production, if necessary, to adapt it to the desired EEPROM operation (number of detectable errors and number of correctable errors).

[0041] According to the described embodiment, when an EEPROM must be simulated in a phase change memory, it is possible to provide for calculating in software the error correction code of the EEPROM elements to be stored in the phase change memory and storing each pair of the EEPROM element and the error correction code one by one in the data area of ​​the row of the phase change memory. Thus, the configurable granularity of writing into the phase change memory can be fully utilized so that, depending on the application, the granularity corresponds to the size of the record (element+code) required in the EEPROM simulation. Further, due to the configurable writing granularity in the phase change memory, once the EEPROM has been written, the writing of the error correction code into the data area 202 is not a problem.

[0042] Therefore, the hardware error correction code of area 204 is no longer useful and its storage may be disabled in the part of the phase change memory allocated to the EEPROM emulation. This makes it impossible to adversely affect the life of the phase change memory. The price to be paid is the reduction of the total available size of the row of the phase change memory in the EEPROM emulation mode, which corresponds to the area 204 that cannot be used in the EEPROM mode. In fact, due to the circuit structure, this area is reserved to the error correction code calculated in hardware form.

[0043] The size of the portion (number of rows) of the phase change memory allocated to the storage of "EEPROM" data depends on the application and the memory capacity that is desired to be retained to the program code in the remainder of the phase change memory and to the data in the emulated portion. The configuration is performed using the usual configuration bytes or user selection bytes.

[0044] Figure 3 The implementation of the EEPROM emulation method according to the embodiment is illustrated.

[0045] Figure 3 The example more particularly shows two steps A') and B') of writing EEPROM-type elements in the same row of a phase-change memory 104. Each row of the phase-change memory comprises, as in Figure 2 In the data area 202 and the adjacent area 204 dedicated to the hardware error correction code. Figure 3 In the example of , area 204, however, is no longer written to the memory portion assigned to the EEPROM emulation. For this purpose, the user configuration byte for circuit 106 includes one or more bits that adjust the recording of the code calculated in area 204. It is thus possible to prevent the writing of error correction codes to the rows of the phase change memory assigned to the EEPROM emulation. As previously mentioned, this makes it possible to utilize the configurable granularity of the recording (element + associated correction code) without adversely affecting the life of the phase change memory. When relevant, the configuration byte also disables the hardware error correction code operator.

[0046] exist Figure 3 In the example, it is assumed that a 64-bit record (EEPROM element + correction code) needs to be stored, ie, each row 210 has a maximum of two EEPROM elements.

[0047] At step A'), a first EEPROM element EEelement1 is written via the driver circuit 106 over the first 48 bits of the write area 202. The error correction code ECC1 associated with the first EEPROM element EEelement1 is calculated by a microprocessor, e.g. a program (SW) executable by the microprocessor of the processing unit 110 or the driver circuit 106, and then written after the first EEPROM element EEelement1 into the area 202 of the memory row 102. The error correction code ECC1 has, for example, a size of 16 bits.

[0048] At step B'), the 48-bit second EEPROM element EEelement2 is written into the next 64 bits adjacent to the space into which the error correction code ECC1 is written. The error correction code ECC2 associated with the writing of the second EEPROM element EEelement2 is calculated by the microprocessor executable program SW and then written into the area 202 of the row after the error correction code ECC1 of the second EEPROM element EEelement2.

[0049] Figure 4 The implementation of an EEPROM emulation method according to another embodiment is illustrated.

[0050] and Figure 3 Compared to the embodiment of the present invention, assume that the application requiring the emulation of the EEPROM needs to store smaller packets or elements, for example 4 bytes (32 bits). Their error correction code is then also smaller (for the same characteristics in terms of the number of detectable errors and correctable errors), for example 12 bits. Three records (EEPROM element + correction code) can then be stored by row 210 of the phase memory. Figure 2 The gain in terms of recycling over the solution of , by avoiding three re-writes to region 204, is then greater than Figure 3 The three EEPROM elements EEelement1, EEelement2 and EEelement3 are written successively one after the other and their respective error correction codes ECC1, ECC2, ECC3 calculated in software are inserted.

[0051] More generally, the number of EEPROM elements that can be stored per row depends on the required size for the EEPROM record and the size of the row.As long as at least two elements can be stored per row of the phase change memory, the provided solution provides a gain in terms of cycles.

[0052] Another advantage is that using a program executable by the microprocessor SW instead of a usual dedicated hardware circuit HW to calculate the error correction code provides flexibility in the parameterization of the error correction code (number of detectable errors and number of correctable errors).

[0053] Another advantage of the described solution is that its implementation does not require hardware modifications or structural modifications of the circuits integrating the phase change memory.Thus, it enables emulation of EEPROM operation in existing integrated circuits comprising a phase change memory.

[0054] Various embodiments and variants have been described. It will be appreciated by those skilled in the art that certain features of these various embodiments and variants may be combined, and other variants will occur to those skilled in the art. In particular, the size of the EEPROM element (preferably 4, 6 or 8 bytes), the size of the error correction code calculated in software (preferably 8, 12 or 16 bits for 32, 48 or 64 bit packets, respectively), the size of the data area 202 of the phase change memory row (preferably 128 or 256 bits) and the size of the portion of the memory (number of rows) allocated to the EEPROM emulation depend on the application.

[0055] Finally, based on the functional indications given above, the practical implementation of the described embodiments and variants is within the capabilities of a person skilled in the art. In particular, with regard to the arrangement of the EEPROM elements and their associated error correction codes in the rows of the memory 102, it can be envisaged that all error correction codes are gathered at the end of the data area 202. A person skilled in the art can also envisage one or more free spaces between one of the EEPROM elements and the associated error correction code. However, the advantage of storing each error correction code after the packet associated with it is that this simplifies the addressing in the memory while avoiding, in particular in read mode, having to address the error correction codes separately from the data packets to which they correspond.

Claims

1. A method for emulating an electrically erasable programmable read-only memory (EEPROM) in a phase change memory of a circuit integrated with a microprocessor, the method comprising the following steps: defining a granularity for writing rows of the phase change memory according to the size of each data packet to be written; associating a first error correction code calculated by a program executed by the microprocessor with each data packet; as well as A plurality of data packets and their associated first error correction codes are stored in a same row of the phase change memory.

2. The method of claim 1, wherein each row of the phase change memory has a capacity to store at least two data packets and their associated first error correction codes.

3. The method of claim 1 , wherein each row of the phase change memory comprises a data area and a storage area for a second error correction code calculated by a hardware operator for that row, the method further comprising disabling the second error correction code when that row is used for EEPROM emulation storage. 4 . The method of claim 3 , wherein the data packets and their associated first error correction codes are stored in the data region of the row of the phase change memory.

5. The method of claim 1, wherein each first error correction code is written after its associated data packet. 6 . The method of claim 1 , wherein the data packets and their associated first error correction codes are written one after another in the same row of the phase change memory. The method of claim 1 , wherein the granularity of writing depends on a parameter that can be modified by a user.

8. An integrated circuit comprising a phase change memory and a microprocessor, the integrated circuit being configured to implement the method according to claim 1.

9. A method for emulating an electrically erasable programmable read-only memory (EEPROM) in a phase change memory of a circuit integrated with a microprocessor, the method comprising the following steps: associating a first data packet with a first error correction code calculated by a program executed by the microprocessor; storing the first data packet and its associated first error correction code in a first row of the phase change memory; associating a second data packet with a second error correction code calculated by the program executed by the microprocessor; as well as The second data packet and its associated second error correction code are also stored in the first row of the phase change memory following the first data packet and its associated first error correction code.

10. The method according to claim 9, further comprising: associating a third data packet with a third error correction code calculated by the program executed by the microprocessor; as well as The third data packet and its associated third error correction code are also stored in the first row of the phase change memory following the second data packet and its associated second error correction code.

11. The method according to claim 9, wherein each row of the phase change memory comprises a data area and a storage area for a second error correction code calculated by a hardware operator for the corresponding row, and the method further comprises disabling the second error correction code when the row is used for EEPROM emulation storage.

12. The method of claim 11, wherein at least the first data packet and the second data packet and their associated first and second error correction codes are stored in the data region of the row of the phase change memory.

13. An integrated circuit comprising a phase change memory and a microprocessor, configured to implement the method according to claim 9.