WO2014167535A2 - Restoring ecc syndrome in non-volatile memory devices - Google Patents

Restoring ecc syndrome in non-volatile memory devices Download PDF

Info

Publication number
WO2014167535A2
WO2014167535A2 PCT/IB2014/060643 IB2014060643W WO2014167535A2 WO 2014167535 A2 WO2014167535 A2 WO 2014167535A2 IB 2014060643 W IB2014060643 W IB 2014060643W WO 2014167535 A2 WO2014167535 A2 WO 2014167535A2
Authority
WO
WIPO (PCT)
Prior art keywords
sector
ecc
page
flag
bits
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/IB2014/060643
Other languages
French (fr)
Other versions
WO2014167535A3 (en
Inventor
Ilan Bloom
Amichai Givant
Yoav Yogev
Amit Shefi
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spansion LLC
Original Assignee
Spansion LLC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spansion LLC filed Critical Spansion LLC
Publication of WO2014167535A2 publication Critical patent/WO2014167535A2/en
Publication of WO2014167535A3 publication Critical patent/WO2014167535A3/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • G06F11/1068Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices in sector programmable memories, e.g. flash disk
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • G06F11/1048Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using arrangements adapted for a specific error detection or correction feature
    • G06F11/1052Bypassing or disabling error detection or correction
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/52Protection of memory contents; Detection of errors in memory contents

Definitions

  • the present invention relates to non-volatile memory devices generally and to a method for restoring an invalidated ECC syndrome in non-volatile memory devices in particular.
  • Non-volatile memory devices such as, for example FLASH memory devices, may include an array of memory cells divided into a number of sectors. Each sector may include a large number of bits which may number into the millions, for example, 1 million bits or even two million bits, or more. The bits may be arranged into pages where each page includes data bits for storing user information and ECC (error correcting code) bits corresponding to an ECC syndrome for protecting the user information by for error correction. Use of the EEC bits substantially ensures that the stored user information, when read, is the same as that which was written to memory.
  • a typical sector in a memory device may have hundreds, and in some cases, thousands of pages.
  • Non-volatile memory devices may be subject to program-on-program operations. These type of operations generally include overwriting one or more data bits on a page that already includes some programmed bits in it, while the ECC syndrome for the page is left unchanged. Consequently, the ECC syndrome in the changed page may no longer be valid and is unable to protect the data in the page (the page may be considered to be unprotected). Furthermore, as the unprotected page is included in a sector, the sector may also be considered to be unprotected.
  • a sector is typically programmed by writing onto the pages one page at a time. This allows the user to write onto only one page, if so desired. Erasing, on the other hand, generally requires that all pages in the sector be erased. Consequently, a user wishing to erase only one page must erase all the pages and then rewrite the erased information onto all the pages except that intended to be erased.
  • Non-volatile memory devices are generally limited to a maximum number of program/erase (P/E) cycles. This represents the maximum number of times a sector may be programmed and erased in a device (may also be referred to as maximum number of erase cycles, or maximum ECN, erase cycle number). Once a sector reaches the maximum number of P/E cycles, the device is considered to have reached "end-of-life" and may be considered unreliable, at which point it is generally discarded. This is of particular importance when data is continuously written to a same sector in a memory device as the maximum number of P/E cycles is quickly reached, shortening the lifetime of the device.
  • P/E program/erase
  • Wear-leveling is a process used for increasing the lifetime of non-volatile memories by storing data in a manner so that sector ECN is distributed more evenly across the different sectors of a memory array.
  • These algorithms generally serve to remap logical-sector addresses to different physical- sector addresses in the array in what is frequently referred to as "address swapping".
  • the algorithms may include tracking least used sectors to identify next areas where data may be written into the array.
  • the algorithms may also include tracking sectors to detect conditions which may trigger wear-leveling events associated with high P/E cycling. This process may reduce or even eliminate single sector failures resulting from a high concentration of P/E cycles in a limited number of sectors.
  • Figure 1 is a flow chart of an exemplary known (prior art) wear-leveling algorithm for non-volatile devices and includes address swapping.
  • a wear-leveling event is detected in a sector of a memory array in a non-volatile memory device, for example a sector E.
  • the wear-leveling event may be associated with sector E reaching a predetermined number of P/E cycles, for example, 10000 P/E cycles or 20000 P/E cycles.
  • a sector with minimum ECN is identified in the memory array, for example a sector M.
  • sector E is erased.
  • the physical address of sectors M and E are swapped. Data which is addressed to sector M will now be written from now on to sector E and data addressed to sector E will now be written from now on to sector M.
  • the wear-leveling algorithm ends. The algorithm may be reinitiated any time a sector is to be erased and a cycle counter of the sector reaches a pre-determined level associated with a requisite for swapping.
  • a method of restoring an ECC syndrome in a non-volatile memory device having memory cells arranged in a plurality of sectors within a memory cell array includes identifying a first sector including one page having a disabled ECC (error correction code) flag; reading the value of all data bits in the page; calculating values for ECC bits in the page; and writing the data bit values and the calculated ECC bit values to a second sector in the memory cell array.
  • ECC error correction code
  • the method additionally includes reading all pages in the first sector; identifying all pages having disabled ECC flags; for all other pages in the first sector having disabled ECC flags reading the value of all data bits in each one of the all other pages; calculating values for ECC bits in each one of the all other pages; and writing the data bit values and the calculated ECC bit values to the second sector.
  • the method additionally includes identifying in the first sector all pages having an enabled ECC flag; reading the values of all data bits and ECC bits in the pages having an enabled ECC flag; correcting any incorrect data bit values in the data bits using the ECC bits; and writing the data bit values including corrected data bit values and the ECC bit values in the pages having an enabled ECC flag to the second sector.
  • the method additionally includes erasing the first sector.
  • the method additionally includes erasing the second sector prior to writing the data bit values and the calculated ECC bit values from the first sector. [0019] In some exemplary embodiments, the method additionally includes swapping the physical addresses of the first and second sectors.
  • a method for performing a program-on-program operation on a page in a memory cell array of a nonvolatile memory device includes reading the page; rewriting the page with a different value for one of the data bits in the page; disabling an ECC flag in the page; and setting a flag indicative of a sector including the page with the disabled ECC flag.
  • a nonvolatile memory device including a memory cell array having memory cells distributed among a plurality of sectors; and a controller operable to program, read, and erase memory cells in the memory array.
  • the controller is additionally operable to set an indicator flag in a sector of the plurality of sectors when rewriting a page in the sector with a different value for one of the data bits in the page, the flag being indicative of the one sector being an unprotected sector.
  • the controller is additionally operable to identify the first sector having a disabled ECC (error correction code) flag; read the value of all data bits in the page; calculate values for all ECC bits in the page; and write the data bit values and the calculated ECC bit values to a second sector in the memory cell array.
  • ECC error correction code
  • a nonvolatile memory device including memory cells arranged into a plurality of sectors, each sector divided into pages and comprising an indicator flag to indicate that a page in the sector is rewritten with a different value for one of the data bits in the page.
  • Figure 1 is a flow chart of an exemplary known wear-leveling algorithm for nonvolatile memory devices
  • Figure 2 is a flow chart of an exemplary program-on-program algorithm for nonvolatile memory devices, according to an embodiment of the present invention
  • Figure 3 is a flow chart of an ECC syndrome restoration algorithm for non-volatile memory devices, according to an embodiment of the present invention.
  • Figure 4 is a flow chart of an exemplary algorithm for transferring data between sectors including invalidated ECC syndrome restoration, according to an exemplary embodiment of the present invention.
  • Figure 5 schematically illustrates an improved non- volatile memory device including the ECC syndrome restoration algorithm, according to an embodiment of the present invention.
  • Applicants have realized that address swapping methods generally used in wear leveling algorithms may be used to restore invalidated ECC syndromes for unprotected pages in non-volatile memory devices.
  • the invalidated ECC syndromes may be restored using an ECC restoration algorithm which advantageously includes sector erase operations purposely initiated by a memory device user. Included in the ECC restoration algorithm is the memory device user transfering the data in the unprotected sector into an erased sector using address swapping methods and restoring the ECC syndrome in the unprotected sector in an intermediate step during the swapping.
  • FIG. 2 is a flow chart of an exemplary program- on-program algorithm for use in a non- volatile memory device, according to an embodiment of the present invention.
  • a command is initiated in the non-volatile memory device by a user to program a page in the device.
  • a page (or pages) in the sector which is to be programmed by the program-on-program operation is read.
  • the page is rewritten with the one or more data bits to be changed through the program-on-program operation.
  • the ECC syndrome for the page is invalidated as a result of the one or more data bits which were overwritten by the program-on-program operation.
  • an ECC flag associated with the page is disabled.
  • An ECC flag in the page is generally enabled (set to a state which may be associated with the the data in the page being protected by the ECC syndrome) indicative the page being a protected page.
  • the ECC flag is generally enabled following erasing of the sector and programming of the page using a standard programming operation (not program-on-program). Additionally, the ECC flag may be enabled the first time the page is programmed (when the memory device is programmed for the first time).
  • an indicator flag in the non-volatile memory device is set, indicative that the sector includes one or more unprotected pages and is an unprotected sector.
  • the indicator flag may be located in the sector and setting of the flag is detected by an internal controller in the memory device, or by a controller externally connected to the memory device.
  • the indicator flag may be set immediately upon detection of a first disabled ECC flag in an unprotected page in the sector .
  • reading the indicator flag may provide an immediate indication that the sector is an unprotected sector, thereby eliminating scanning every page in the unprotected sector to detect one or more disabled ECC flags.
  • the indicator flag may be set to an enabled state in a protected sector indicative that all ECC flags of all pages in the sector are enabled (all pages are protected). In an alternate mode, the memory device may not include indicator flags so that an unprotected sector is determined by detection of at least one disabled ECC flag associated with an unprotected page in the sector.
  • FIG. 3 is a flow chart of an ECC syndrome restoration algorithm for non- volatile memory devices, according to an embodiment of the present invention.
  • a sector in a memory array of the non- volatile memory device may be selected to be erased.
  • Sector E may be selected responsive to a user erase command or alternatively, to an erase command which may be automatically initiated in the device.
  • the user may initiate the erase command in order to write new data into sector E, or responsive to detection of a wear-leveling event, or to restore ECC syndrome in an unprotected sector, among other possible reasons for erasing sector E.
  • a search is made through the memory array to identify one or more unprotected sectors.
  • An unprotected sector may be identified by detecting an indicator flag which is set in the sector, for example, in an unprotected sector X. Additionally or alternatively, the indicator flag may be associated with Sector X and may be set elsewhere in the memory device, or in an externally connected device. Additionally or alternatively, the unprotected sector may be identified by detecting at an ECC disabled flag in a page of in the sector.
  • the stored information in unprotected sector X may be copied to erased sector E.
  • An exemplary data transfer algorithm for copying the data and which restores invalidated ECC syndromes in sector pages is described further on below and shown in the flow chart of Figure 4, according to an embodiment of the present invention.
  • the data in unprotected sector X may be erased.
  • the physical- sector addresses of sectors E and X may be swapped while the logical-sector addresses are maintained (every time a request is made to read or write to sector X, the actual physical reading or writing is made to sector E; and inversely).
  • Figure 4 shows a flow chart of the exemplary data transfer algorithm including invalidated ECC syndrome restoration, according to an exemplary embodiment of the present invention.
  • the ECC flag in each page in unprotected sector X is read to determine if the flag is disabled. Reading of each ECC flag may be automatically initiated in the memory device or manually initiated by the user of the device.
  • step 402 if a disabled ECC flag is detected in the page, continue to step 407. If a disabled ECC flag is not detected in the page, continue to next step 404.
  • Reading includes the data bits and ECC bits.
  • step 405 if the value of one or more data bits have changed (incorrect values), continue to a step 406. If the values are correct, continue to step 410.
  • the ECC syndrome performs error correction and the incorrect value or values are corrected. All data bits now contain correct values. Continue to step 410.
  • the data bits in the unprotected page are read.
  • the invalidated ECC bits are not read.
  • the device computes new ECC bits for the data bits read from the unprotected page.
  • the page may be copied to the new destination sector, for example sector M, whose physical-sector address was swapped with the unprotected sector X. If the page is from step 405 or step 406, the data bits and the ECC bits as read into sector X are written into sector E. If the page is from step 408, the data bits with the newly calculated, valid ECC bits are written into sector X.
  • a step 412 the algorithm ends, the data bits and valid ECC bits in the page have been moved to erased sector E.
  • the ECC flag in the now protected (previously unprotected) page is enabled.
  • the steps 400 - 412 may be repeated for each page stored in the unprotected sector X.
  • Memory device 600 includes a memory cell array 602, a controller 606, array access circuitry 608, and an I/O interface 610.
  • Altough memory device 600 is shown including controller 606, a skilled person may realize that memory device 600 may not include controller 606 and that memory cell array 602 may be accessed by an external processor located externally to the device for reading from, and for writing to, the memory cell array.
  • Memory cell array 602 may include a plurality of non-volatile memory cells equally distributed into sectors 604.
  • the memory cells may be Mirrorbit® cells, NROM cells, or other type of memory cells, and may be configured to store one bit per cell, or alternatively, more than one bit per cell, for example 2 bits, 3 bits, 4 bits, or more. These may include data bits and error correction code (ECC) bits, the number of ECC bits may be according to a predetermined ECC Syndrome programmed in controller 606.
  • ECC error correction code
  • the bits may be arranged within a sector 604 in pages 612, for example, pages of size 2 Kb (Kilobits), 4 Kb, or 8 Kb, although larger size and smaller size pages may be possible.
  • Controller 606 may manage all programming, reading, and erasing of the memory cells, responsive to commands which may be received through I/O interface 610 from a user connected to device 600 by means of an external processor 650, and/or commands internally programmed in the controller. Additionally, controller 606 may execute, or may manage the execution, of some or all of the steps in the previously described algorithms and shown in Figures 1 - 4. Additionally, controller 606 may manage possible data flow between memory device 600 and external processor 650 through I/O interface 610. Accessing the memory cells for programming, reading, and erasing may be through array access circuitry 608 which may include sense amplifiers, decoders, and other applicable circuitry as may be required for performing these functions. Additionally or alternatively to including controller 606 in memory device 600, the functions performed by the may be implemented through an external processor connected to the memory device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Abstract

A method of restoring an ECC syndrome in a non-volatile memory device having memory cells arranged in a plurality of sectors within a memory cell array, the method includess identifying a first sector having a page with a disabled ECC (error correction code) flag; reading the value of all data bits in the page; calculating values for ECC bits in the page; and writing the data bit values and the calculated ECC bit values to a second sector in the memory cell array.

Description

RESTORING ECC SYNDROME IN NON- VOLATILE MEMORY DEVICES
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims benefit from U.S. Patent Application No. 13/860,542 filed on 11 April 2013 and which is hereby incorporated in its entirety by reference.
FIELD OF THE INVENTION
[0002] The present invention relates to non-volatile memory devices generally and to a method for restoring an invalidated ECC syndrome in non-volatile memory devices in particular.
BACKGROUND OF THE INVENTION
[0003] Non-volatile memory devices such as, for example FLASH memory devices, may include an array of memory cells divided into a number of sectors. Each sector may include a large number of bits which may number into the millions, for example, 1 million bits or even two million bits, or more. The bits may be arranged into pages where each page includes data bits for storing user information and ECC (error correcting code) bits corresponding to an ECC syndrome for protecting the user information by for error correction. Use of the EEC bits substantially ensures that the stored user information, when read, is the same as that which was written to memory. A typical sector in a memory device may have hundreds, and in some cases, thousands of pages.
Non-volatile memory devices may be subject to program-on-program operations. These type of operations generally include overwriting one or more data bits on a page that already includes some programmed bits in it, while the ECC syndrome for the page is left unchanged. Consequently, the ECC syndrome in the changed page may no longer be valid and is unable to protect the data in the page (the page may be considered to be unprotected). Furthermore, as the unprotected page is included in a sector, the sector may also be considered to be unprotected.
[0004] A sector is typically programmed by writing onto the pages one page at a time. This allows the user to write onto only one page, if so desired. Erasing, on the other hand, generally requires that all pages in the sector be erased. Consequently, a user wishing to erase only one page must erase all the pages and then rewrite the erased information onto all the pages except that intended to be erased.
[0005] Non-volatile memory devices are generally limited to a maximum number of program/erase (P/E) cycles. This represents the maximum number of times a sector may be programmed and erased in a device (may also be referred to as maximum number of erase cycles, or maximum ECN, erase cycle number). Once a sector reaches the maximum number of P/E cycles, the device is considered to have reached "end-of-life" and may be considered unreliable, at which point it is generally discarded. This is of particular importance when data is continuously written to a same sector in a memory device as the maximum number of P/E cycles is quickly reached, shortening the lifetime of the device.
[0006] Wear-leveling is a process used for increasing the lifetime of non-volatile memories by storing data in a manner so that sector ECN is distributed more evenly across the different sectors of a memory array. These algorithms generally serve to remap logical-sector addresses to different physical- sector addresses in the array in what is frequently referred to as "address swapping". The algorithms may include tracking least used sectors to identify next areas where data may be written into the array. The algorithms may also include tracking sectors to detect conditions which may trigger wear-leveling events associated with high P/E cycling. This process may reduce or even eliminate single sector failures resulting from a high concentration of P/E cycles in a limited number of sectors.
[0007] Reference is made to Figure 1 which is a flow chart of an exemplary known (prior art) wear-leveling algorithm for non-volatile devices and includes address swapping.
[0008] At a step 100, a wear-leveling event is detected in a sector of a memory array in a non-volatile memory device, for example a sector E. The wear-leveling event may be associated with sector E reaching a predetermined number of P/E cycles, for example, 10000 P/E cycles or 20000 P/E cycles.
[0009] At a step 102, a sector with minimum ECN (P/E cycles) is identified in the memory array, for example a sector M.
[0010] At a step 104, sector E is erased.
[0011] At a step 106, the data in sector M is moved into the now erased sector E.
[0012] At a step 108, sector M is erased.
[0013] At a step 110, the physical address of sectors M and E are swapped. Data which is addressed to sector M will now be written from now on to sector E and data addressed to sector E will now be written from now on to sector M. At a step 112, the wear-leveling algorithm ends. The algorithm may be reinitiated any time a sector is to be erased and a cycle counter of the sector reaches a pre-determined level associated with a requisite for swapping. SUMMARY OF THE PRESENT INVENTION
[0014] There is provided , according to an embodiment of the present invention, a method of restoring an ECC syndrome in a non-volatile memory device having memory cells arranged in a plurality of sectors within a memory cell array, the method includes identifying a first sector including one page having a disabled ECC (error correction code) flag; reading the value of all data bits in the page; calculating values for ECC bits in the page; and writing the data bit values and the calculated ECC bit values to a second sector in the memory cell array.
[0015] In some exemplary embodiments, the method additionally includes reading all pages in the first sector; identifying all pages having disabled ECC flags; for all other pages in the first sector having disabled ECC flags reading the value of all data bits in each one of the all other pages; calculating values for ECC bits in each one of the all other pages; and writing the data bit values and the calculated ECC bit values to the second sector.
[0016] In some exemplary embodiments, the method additionally includes identifying in the first sector all pages having an enabled ECC flag; reading the values of all data bits and ECC bits in the pages having an enabled ECC flag; correcting any incorrect data bit values in the data bits using the ECC bits; and writing the data bit values including corrected data bit values and the ECC bit values in the pages having an enabled ECC flag to the second sector.
[0017] In some exemplary embodiments, the method additionally includes erasing the first sector.
[0018] In some exemplary embodiments, the method additionally includes erasing the second sector prior to writing the data bit values and the calculated ECC bit values from the first sector. [0019] In some exemplary embodiments, the method additionally includes swapping the physical addresses of the first and second sectors.
[0020] There is provided , according to an embodiment of the present invention, a method for performing a program-on-program operation on a page in a memory cell array of a nonvolatile memory device. The method includes reading the page; rewriting the page with a different value for one of the data bits in the page; disabling an ECC flag in the page; and setting a flag indicative of a sector including the page with the disabled ECC flag.
[0021] There is provided , according to an embodiment of the present invention, a nonvolatile memory device including a memory cell array having memory cells distributed among a plurality of sectors; and a controller operable to program, read, and erase memory cells in the memory array. The controller is additionally operable to set an indicator flag in a sector of the plurality of sectors when rewriting a page in the sector with a different value for one of the data bits in the page, the flag being indicative of the one sector being an unprotected sector.
[0022] In some exemplary embodiments, the controller is additionally operable to identify the first sector having a disabled ECC (error correction code) flag; read the value of all data bits in the page; calculate values for all ECC bits in the page; and write the data bit values and the calculated ECC bit values to a second sector in the memory cell array.
[0023] There is provided , according to an embodiment of the present invention, a nonvolatile memory device including memory cells arranged into a plurality of sectors, each sector divided into pages and comprising an indicator flag to indicate that a page in the sector is rewritten with a different value for one of the data bits in the page. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The subject matter regarded as the invention is particularly pointed out and distinctly claimed in the concluding portion of the specification. The invention, however, both as to organization and method of operation, together with objects, features, and advantages thereof, may best be understood by reference to the following detailed description when read with the accompanying drawings in which:
[0025] Figure 1 is a flow chart of an exemplary known wear-leveling algorithm for nonvolatile memory devices;
[0026] Figure 2 is a flow chart of an exemplary program-on-program algorithm for nonvolatile memory devices, according to an embodiment of the present invention;
[0027] Figure 3 is a flow chart of an ECC syndrome restoration algorithm for non-volatile memory devices, according to an embodiment of the present invention;
[0028] Figure 4 is a flow chart of an exemplary algorithm for transferring data between sectors including invalidated ECC syndrome restoration, according to an exemplary embodiment of the present invention; and
[0029] Figure 5 schematically illustrates an improved non- volatile memory device including the ECC syndrome restoration algorithm, according to an embodiment of the present invention.
[0030] It will be appreciated that for simplicity and clarity of illustration, elements shown in the figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements for clarity. Further, where considered appropriate, reference numerals may be repeated among the figures to indicate corresponding or analogous elements. DETAILED DESCRIPTION OF THE PRESENT INVENTION
[0031] In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be understood by those skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, and components have not been described in detail so as not to obscure the present invention.
[0032] Applicants have realized that address swapping methods generally used in wear leveling algorithms may be used to restore invalidated ECC syndromes for unprotected pages in non-volatile memory devices. Applicants have further realized that the invalidated ECC syndromes may be restored using an ECC restoration algorithm which advantageously includes sector erase operations purposely initiated by a memory device user. Included in the ECC restoration algorithm is the memory device user transfering the data in the unprotected sector into an erased sector using address swapping methods and restoring the ECC syndrome in the unprotected sector in an intermediate step during the swapping.
[0033] Reference is now made to Figure 2 which is a flow chart of an exemplary program- on-program algorithm for use in a non- volatile memory device, according to an embodiment of the present invention.
[0034] At a step 200, a command is initiated in the non-volatile memory device by a user to program a page in the device.
[0035] At a step 202, a page (or pages) in the sector which is to be programmed by the program-on-program operation is read.
[0036] At a step 204, the page is rewritten with the one or more data bits to be changed through the program-on-program operation. The ECC syndrome for the page is invalidated as a result of the one or more data bits which were overwritten by the program-on-program operation.
[0037] At a step 206, an ECC flag associated with the page is disabled. An ECC flag in the page is generally enabled (set to a state which may be associated with the the data in the page being protected by the ECC syndrome) indicative the page being a protected page. The ECC flag is generally enabled following erasing of the sector and programming of the page using a standard programming operation (not program-on-program). Additionally, the ECC flag may be enabled the first time the page is programmed (when the memory device is programmed for the first time).
[0038] At a step 208, an indicator flag in the non-volatile memory device is set, indicative that the sector includes one or more unprotected pages and is an unprotected sector. The indicator flag may be located in the sector and setting of the flag is detected by an internal controller in the memory device, or by a controller externally connected to the memory device. The indicator flag may be set immediately upon detection of a first disabled ECC flag in an unprotected page in the sector . According to an embodiment of the present invention, reading the indicator flag may provide an immediate indication that the sector is an unprotected sector, thereby eliminating scanning every page in the unprotected sector to detect one or more disabled ECC flags. In some memory devices, the indicator flag may be set to an enabled state in a protected sector indicative that all ECC flags of all pages in the sector are enabled (all pages are protected). In an alternate mode, the memory device may not include indicator flags so that an unprotected sector is determined by detection of at least one disabled ECC flag associated with an unprotected page in the sector. [0039] At a step 210, the program-on-program algorithm ends, and the memory device includes an unprotected sector.
[0040] Reference is now made to Figure 3 which is a flow chart of an ECC syndrome restoration algorithm for non- volatile memory devices, according to an embodiment of the present invention.
[0041] At a step 300, a sector in a memory array of the non- volatile memory device, for example a sector E, may be selected to be erased. Sector E may be selected responsive to a user erase command or alternatively, to an erase command which may be automatically initiated in the device. For example, the user may initiate the erase command in order to write new data into sector E, or responsive to detection of a wear-leveling event, or to restore ECC syndrome in an unprotected sector, among other possible reasons for erasing sector E.
[0042] At a step 302, sector E is erased
[0043] At a step 304, a search is made through the memory array to identify one or more unprotected sectors. An unprotected sector may be identified by detecting an indicator flag which is set in the sector, for example, in an unprotected sector X. Additionally or alternatively, the indicator flag may be associated with Sector X and may be set elsewhere in the memory device, or in an externally connected device. Additionally or alternatively, the unprotected sector may be identified by detecting at an ECC disabled flag in a page of in the sector.
[0044] At a step 306, the stored information in unprotected sector X may be copied to erased sector E. An exemplary data transfer algorithm for copying the data and which restores invalidated ECC syndromes in sector pages is described further on below and shown in the flow chart of Figure 4, according to an embodiment of the present invention.
[0045] At a step 308, the data in unprotected sector X may be erased. [0046] At a step 310, the physical- sector addresses of sectors E and X may be swapped while the logical-sector addresses are maintained (every time a request is made to read or write to sector X, the actual physical reading or writing is made to sector E; and inversely).
[0047] At a step 312, the algorithm ends and the physical- sector addresses have been swapped in the memory device.
[0048] Figure 4 shows a flow chart of the exemplary data transfer algorithm including invalidated ECC syndrome restoration, according to an exemplary embodiment of the present invention.
[0049] At a step 400, the ECC flag in each page in unprotected sector X is read to determine if the flag is disabled. Reading of each ECC flag may be automatically initiated in the memory device or manually initiated by the user of the device.
[0050] At a step 402, if a disabled ECC flag is detected in the page, continue to step 407. If a disabled ECC flag is not detected in the page, continue to next step 404.
[0051] At step 404, the page (having enabled ECC flag) is read. Reading includes the data bits and ECC bits.
[0052] At a step 405, if the value of one or more data bits have changed (incorrect values), continue to a step 406. If the values are correct, continue to step 410.
[0053] At a step 406, the ECC syndrome performs error correction and the incorrect value or values are corrected. All data bits now contain correct values. Continue to step 410.
[0054] At a step 407, the data bits in the unprotected page are read. The invalidated ECC bits are not read.
[0055] At a step 408, the device computes new ECC bits for the data bits read from the unprotected page. [0056] At a step 410, the page may be copied to the new destination sector, for example sector M, whose physical-sector address was swapped with the unprotected sector X. If the page is from step 405 or step 406, the data bits and the ECC bits as read into sector X are written into sector E. If the page is from step 408, the data bits with the newly calculated, valid ECC bits are written into sector X.
[0057] At a step 412, the algorithm ends, the data bits and valid ECC bits in the page have been moved to erased sector E. The ECC flag in the now protected (previously unprotected) page is enabled. The steps 400 - 412 may be repeated for each page stored in the unprotected sector X.
[0058] Reference is now made to Figure 5 which schematically illustrates an exemplary improved non-volatile memory device 600 including the the ECC syndrome restoration algorithm, according to an embodiment of the present invention. Memory device 600 includes a memory cell array 602, a controller 606, array access circuitry 608, and an I/O interface 610. Altough memory device 600 is shown including controller 606, a skilled person may realize that memory device 600 may not include controller 606 and that memory cell array 602 may be accessed by an external processor located externally to the device for reading from, and for writing to, the memory cell array.
[0059] Memory cell array 602 may include a plurality of non-volatile memory cells equally distributed into sectors 604. The memory cells may be Mirrorbit® cells, NROM cells, or other type of memory cells, and may be configured to store one bit per cell, or alternatively, more than one bit per cell, for example 2 bits, 3 bits, 4 bits, or more. These may include data bits and error correction code (ECC) bits, the number of ECC bits may be according to a predetermined ECC Syndrome programmed in controller 606. The bits may be arranged within a sector 604 in pages 612, for example, pages of size 2 Kb (Kilobits), 4 Kb, or 8 Kb, although larger size and smaller size pages may be possible.
[0060] Controller 606 may manage all programming, reading, and erasing of the memory cells, responsive to commands which may be received through I/O interface 610 from a user connected to device 600 by means of an external processor 650, and/or commands internally programmed in the controller. Additionally, controller 606 may execute, or may manage the execution, of some or all of the steps in the previously described algorithms and shown in Figures 1 - 4. Additionally, controller 606 may manage possible data flow between memory device 600 and external processor 650 through I/O interface 610. Accessing the memory cells for programming, reading, and erasing may be through array access circuitry 608 which may include sense amplifiers, decoders, and other applicable circuitry as may be required for performing these functions. Additionally or alternatively to including controller 606 in memory device 600, the functions performed by the may be implemented through an external processor connected to the memory device.
[0061] While certain features of the invention have been illustrated and described herein, many modifications, substitutions, changes, and equivalents will now occur to those of ordinary skill in the art. It is, therefore, to be understood that the appended claims are intended to cover all such modifications and changes as fall within the true spirit of the invention.

Claims

CLAIMS What is claimed is:
1. A method of restoring an ECC syndrome in a non-volatile memory device having memory cells arranged in a plurality of sectors within a memory cell array, the method comprising:
- identifying a first sector including at least one page having a disabled ECC (error correction code) flag;
- reading the value of all data bits in said at least one page;
- calculating values for ECC bits in said at least one page; and
- writing said data bit values and said calculated ECC bit values to a second sector in the memory cell array.
2. The method according to claim 1 further comprising:
- reading all pages in said first sector;
- identifying all pages having disabled ECC flags;
for all other pages in said first sector having disabled ECC flags:
- reading the value of all data bits in each one of said all other pages;
- calculating values for ECC bits in each one of said all other pages; and
- writing said data bit values and said calculated ECC bit values to said second sector.
3. The method according to claim 1 further comprising:
- identifying in said first sector all pages having an enabled ECC flag;
- reading the values of all data bits and ECC bits in said pages having an enabled ECC flag;
- correcting any incorrect data bit values in said data bits using said ECC bits; and
- writing said data bit values including corrected data bit values and said ECC bit values in said pages having an enabled ECC flag to said second sector.
4. The method according to claim 1 further comprising erasing said first sector.
5. The method according to claim 1 further comprising erasing said second sector prior to writing said data bit values and said calculated ECC bit values from said first sector.
6. The method according to claim 1 further comprising swapping the physical addresses of said first and second sectors.
7. A method for performing a program-on-program operation on a page in a memory array sector of a non-volatile memory device comprising:
- reading the page;
- rewriting the page with a different value for at least one of the data bits in the page; - disabling an ECC flag in the page; and
- setting a flag indicative of the sector comprising the page with said disabled ECC flag.
8. A non- volatile memory device comprising:
a memory cell array including memory cells distributed among a plurality of sectors;
a controller operable to program, read, and erase memory cells in said memory array, said controller further operable to set an indicator flag in at least one sector of said plurality of sectors when rewriting a page in said at least one sector with a different value for at least one of the data bits in said page, said flag being indicative of said at least one sector being an unprotected sector.
9. The memory device according to claim 8 wherein said controller is further operable to:
- identify said first sector having a disabled ECC (error correction code) flag;
- read the value of all data bits in said page;
- calculate values for all ECC bits in said page; and
- write said data bit values and said calculated ECC bit values to a second sector in said memory cell array.
10. A non-volatile memory device comprising memory cells arranged into a plurality of sectors, each sector in said plurality of sectors divided into pages, the device comprising an indicator flag to indicate that at least one page in said sector is rewritten with a different value for at least one of the data bits in said page.
PCT/IB2014/060643 2013-04-11 2014-04-11 Restoring ecc syndrome in non-volatile memory devices Ceased WO2014167535A2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US13/860,542 US9081710B2 (en) 2013-04-11 2013-04-11 Restoring ECC syndrome in non-volatile memory devices
US13/860,542 2013-04-11

Publications (2)

Publication Number Publication Date
WO2014167535A2 true WO2014167535A2 (en) 2014-10-16
WO2014167535A3 WO2014167535A3 (en) 2015-02-19

Family

ID=51687648

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2014/060643 Ceased WO2014167535A2 (en) 2013-04-11 2014-04-11 Restoring ecc syndrome in non-volatile memory devices

Country Status (2)

Country Link
US (2) US9081710B2 (en)
WO (1) WO2014167535A2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10025652B2 (en) 2015-10-27 2018-07-17 Western Digital Technologies, Inc. Error location pointers for non volatile memory

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9400712B2 (en) * 2014-01-22 2016-07-26 Macronix International Co., Ltd. Memory device and erasing method thereof
US9830087B2 (en) * 2014-11-13 2017-11-28 Micron Technology, Inc. Memory wear leveling
CN111209137B (en) * 2020-01-06 2021-09-17 支付宝(杭州)信息技术有限公司 Data access control method and device, data access equipment and system
KR102822816B1 (en) * 2020-04-01 2025-06-19 삼성전자주식회사 Semiconductor memory devices
US12066891B2 (en) * 2021-08-25 2024-08-20 Micron Technology, Inc. Real time syndrome check
JP7550895B2 (en) * 2023-02-02 2024-09-13 ウィンボンド エレクトロニクス コーポレーション Semiconductor device and wear leveling method
US20240289019A1 (en) * 2023-02-23 2024-08-29 Micron Technology, Inc. Techniques for efficient memory system programming

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4135680B2 (en) * 2004-05-31 2008-08-20 ソニー株式会社 Semiconductor memory device and signal processing system
US7849381B2 (en) 2004-12-21 2010-12-07 Sandisk Corporation Method for copying data in reprogrammable non-volatile memory
US7634585B2 (en) * 2005-11-04 2009-12-15 Sandisk Corporation In-line cache using nonvolatile memory between host and disk device
US7349254B2 (en) * 2006-05-31 2008-03-25 Qimonda Flash Gmbh & Co. Kg Charge-trapping memory device and methods for its manufacturing and operation
US7900120B2 (en) 2006-10-18 2011-03-01 Micron Technology, Inc. Memory system and method using ECC with flag bit to identify modified data
US8595573B2 (en) 2006-12-03 2013-11-26 Apple Inc. Automatic defect management in memory devices
US7894270B2 (en) 2009-02-11 2011-02-22 Mosys, Inc. Data restoration method for a non-volatile memory
US8161355B2 (en) 2009-02-11 2012-04-17 Mosys, Inc. Automatic refresh for improving data retention and endurance characteristics of an embedded non-volatile memory in a standard CMOS logic process
US8190974B2 (en) 2009-09-28 2012-05-29 Nvidia Corporation Error detection and correction for external DRAM
US8589766B2 (en) * 2010-02-24 2013-11-19 Apple Inc. Codeword remapping schemes for non-volatile memories
US9378829B2 (en) * 2013-02-07 2016-06-28 Cypress Semiconductor Corporation Non-volatile memory device with an EPLI comparator

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10025652B2 (en) 2015-10-27 2018-07-17 Western Digital Technologies, Inc. Error location pointers for non volatile memory

Also Published As

Publication number Publication date
US20140310569A1 (en) 2014-10-16
US9910729B1 (en) 2018-03-06
WO2014167535A3 (en) 2015-02-19
US9081710B2 (en) 2015-07-14

Similar Documents

Publication Publication Date Title
US9910729B1 (en) Restoring ECC syndrome in non-volatile memory devices
US10373693B2 (en) Storage device and method of operating the storage device
US8453021B2 (en) Wear leveling in solid-state device
US8694855B1 (en) Error correction code technique for improving read stress endurance
US8347138B2 (en) Redundant data distribution in a flash storage device
US9626118B2 (en) Efficient error handling mechanisms in data storage systems
CN100541439C (en) Flash memory data correction and erasure techniques
JP5675954B2 (en) Detection of irregular parity distribution via metadata tag
US8266481B2 (en) System and method of wear-leveling in flash storage
US20090193058A1 (en) System and method for providing copyback data integrity in a non-volatile memory system
EP2372549A1 (en) Emerging bad block detection
TWI633428B (en) Data storage device and methods for processing data in the data storage device
US20100125696A1 (en) Memory Controller For Controlling The Wear In A Non-volatile Memory Device And A Method Of Operation Therefor
US9811275B2 (en) Memory system and data control method
TW201337559A (en) Scrub techniques for use with dynamic read
KR20100102925A (en) Non-volatile memory device and memory system generating read reclaim signal
KR20160039153A (en) Method and device for error correcting code (ecc) error handling
JP5815388B2 (en) Memory access control apparatus and method
JP6080180B2 (en) Marker programming in non-volatile memory
CN101124639A (en) System and method for accessing non-volatile computer memory
JP4488048B2 (en) MEMORY CONTROLLER, FLASH MEMORY SYSTEM HAVING MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD
US7657795B2 (en) Method and apparatus for writing to a target memory page of a memory
JP2012068765A (en) Memory controller, flash memory system with memory controller, and control method of flash memory
US9619325B2 (en) Method for renewing data in order to increase the reliability of flash memories
TWI500036B (en) Nonvolatile storage device and control method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14783118

Country of ref document: EP

Kind code of ref document: A2

122 Ep: pct application non-entry in european phase

Ref document number: 14783118

Country of ref document: EP

Kind code of ref document: A2