Solid state drive (SSD) devices commonly employ NAND flash memory chips and a flash controller to manage the flash memory and to transfer data between the flash memory and a host computer. Uncorrectable Bit Error Rates (UBER) requirements for client and enterprise Solid State Drives (SSD's) are very stringent, requiring UBER of 10−15 for client SSD's and 10−16 for enterprise SSD's. Error correction codes have been widely adopted to obtain the low Bit Error Rate (BER) required to achieve these low UBER requirements. Driven by cost, the NAND industry keeps pushing hard on process technology shrink. Technology shrink has been successful in increasing the number of Gbit per mm2, but this success has resulted in increased BER of NAND flash memory chips and SSD's that use NAND flash memory chips.
Standard read operations are performed over the lifetime of the SSD. However, as the NAND devices in the SSD age and are subjected to numerous read, and program and erase cycles, the BER increases, ultimately resulting in decode failures in which the decoding process is unsuccessful in recovering the stored codeword. Conventional Flash Management techniques have extended the lifetime of SSDs by performing a read retry immediately after a failed standard read operation, allowing the SSD to recover the codeword that was not recovered in the original standard read operation. However, the price that is paid for this extension of the SSD's life is increased read latency. When read retry is triggered as a result of a decode failure, the latency of the SSD is increased by the time required to perform the standard read operation plus the time required for the read retry operation. This presents a problem. Accordingly, there is a need for a method and apparatus that will reduce read latency and that will meet stringent UBER requirements.
A nonvolatile memory controller is disclosed that includes a storage module configured to store data indicating threshold voltage shift read parameters and corresponding index values and a read circuit configured to read a memory address of the nonvolatile memory device using a threshold voltage shift read instruction when an immediately preceding read of the memory address did not result in a decode failure.
In embodiments of the present invention the nonvolatile memory controller includes a storage module configured to store data indicating threshold voltage shift read parameters and corresponding index values and a status circuit configured to determine at least one usage characteristic of a nonvolatile memory device. The nonvolatile memory controller includes a read circuit configured to determine whether a usage characteristic meets a usage characteristic threshold. When a usage characteristic is determined to meet the usage characteristic threshold, the read circuit is configured to perform all subsequent reads of the nonvolatile memory device using a threshold voltage shift read instruction identified using the threshold voltage shift read parameter, wherein the read of the nonvolatile memory device immediately prior to the performing all subsequent reads did not result in a decode failure.
A method for reducing latency of a nonvolatile memory controller is disclosed that includes storing data indicating threshold voltage shift read parameters and corresponding index values, and performing all reads of a nonvolatile memory device using a threshold voltage shift read instruction identified using at least one of the threshold voltage shift read parameters.
A method for reducing latency of a nonvolatile memory controller is disclosed that includes storing data indicating threshold voltage shift read parameters and corresponding index values, determining whether a usage characteristic of a nonvolatile memory device meets a usage characteristic threshold, and when a usage characteristic is determined to meet the usage characteristic threshold, performing all subsequent reads of the nonvolatile memory device using a threshold voltage shift read instruction identified using the stored threshold voltage shift read parameters, wherein a read of the nonvolatile memory device immediately prior to the performing all subsequent reads did not result in a decode failure.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention, and together with the description, serve to explain the principles of the invention.
A nonvolatile memory system 10 is shown in
Nonvolatile memory controller 11 is configured to perform program operations and read operations on memory cells of nonvolatile memory devices 20. Nonvolatile memory controller 11 includes a storage module 12, a status circuit 13 and a read circuit 14. Storage module 12 is configured to store data indicating threshold voltage shift read parameters and corresponding index values. In one embodiment data indicating threshold voltage shift read parameters and corresponding index values are stored in memory storage on nonvolatile memory controller 11. Alternatively, the data can be stored in one or more NAND devices 20.
Status circuit 13 is configured to determine usage characteristics of NAND devices 20. The determined usage characteristics may be stored in memory storage on nonvolatile memory controller 11. Alternatively, the determined usage characteristics can be stored in one or more NAND devices 20. The term “usage characteristic” as used in the present invention is a value determined during usage of a nonvolatile memory device that indicates the historical usage of the nonvolatile memory device up to a particular point in time (e.g., the number of program and erase cycles, the number of errors in a decoded codeword, the number of reads performed in the block since the last erase operation, etc.).
Nonvolatile memory controller 11 also includes a retention monitor 15 that is operable for performing retention tests during the operation of nonvolatile memory controller 11. Retention monitor 15 includes an online test circuit 16 that is configured to perform online testing and an offline test circuit 17 that is configured to perform offline retention testing.
In one exemplary embodiment each NAND device 20 is coupled to nonvolatile memory controller 11 by chip enable line (CE#), a command latch enable (CLE) line, a read enable signal line (RE#), an address latch enable (ALE) signal line, a write enable single line (WE#), a read/busy (R/B) signal line and input and output (I/O) signal lines.
Referring now to
In the present embodiment, a logical page 23 is the smallest addressable unit for reading from and writing to the NAND memory and a logical block 22 is the smallest erasable unit. However, it is appreciated that in embodiments of the present invention programming to less than an entire page may be possible, depending on the structure of the NAND array.
An exemplary NAND array 30 is shown in
In the embodiment shown in
Method 400 further includes determining least one usage characteristic of a nonvolatile memory device 102. In the embodiment shown in
As shown by steps 104-110 all reads of the nonvolatile memory device are performed using a threshold voltage shift read operation. When a read is not being performed the normal operation of the nonvolatile memory controller is resumed as shown by step 114 and arrow 115. More particularly, writes and other operations of the nonvolatile memory controller 11 are performed such as monitoring the operation of NAND devices 20, wear leveling, trash collection, etc.
In the embodiment shown in
In one embodiment read circuit 14 is configured to perform all reads of the NAND device 20 using a threshold voltage shift read instruction. In this embodiment, use of the threshold voltage shift read instruction is not dependent on the previous read of the memory address resulting in a decode failure, but rather, the read is performed using the threshold voltage shift read instruction regardless of the type of read operation that was used to perform the immediately preceding read of the memory address. More particularly, the read is performed using a threshold voltage shift read instruction when the immediately preceding read of the memory address did not result in a decode failure.
When the identified threshold voltage shift read instruction requires that a threshold voltage offset value be provided as shown by step 106 and 108, in one embodiment, the threshold voltage shift read instruction and the threshold voltage offset value are identified 105, 108 using one or more table stored in step 101 indicating threshold voltage shift read instructions, threshold voltage offset values corresponding to each of the threshold voltage shift read instructions that require threshold voltage offset values be provided, and corresponding indexes, that may be referred to hereinafter as a “threshold voltage offset value and threshold voltage shift read instruction table” or as a “VT offset value and VT shift read instruction table.” The values in the VT offset value and VT shift read instruction table(s) are determined by performing testing on exemplary NAND devices that are similar to NAND devices 20 (e.g., the same manufacturer, model, manufacturing batch, etc.) to identify threshold voltages that will minimize Bit Error Rate (BER) for a given set of manufacturing characteristics (manufacturer, model, manufacturing batch, etc.), usage characteristics and a given set of retention characteristics. The table can include index values corresponding to one or more identifying characteristic, index values corresponding to one or more usage characteristic, and index values corresponding to one or more retention characteristic. Steps 105 and 108 may include indexing the table using one or more index value, where the one or more index value may include index values corresponding to one or more identifying characteristic, index values corresponding to one or more usage characteristic, and index values corresponding to one or more retention characteristic to identify a threshold voltage shift read instruction 105 and a threshold voltage offset value 108.
In some applications of nonvolatile memory controller may be custom-configured to work with a single type of NAND device 20 (a single manufacturer, model, manufacturing batch, etc.) In these embodiments there may be only one threshold voltage shift read instruction or at most two threshold voltage shift read instructions that could be used. In these embodiments, the possible threshold voltage shift read instructions may be stored in one or memory location (e.g., in a register of memory controller 11 and not in a table, allowing for the use of a smaller table that only identifies voltage thresholds, that may be referred to hereinafter as a “threshold voltage offset value table” or “VT offset value table.” In this embodiment the parameters stored in step 101 include one or more threshold voltage offset value table indicating threshold voltage offset values and corresponding indexes determined by performing testing on exemplary NAND devices that are similar to NAND devices 20 (e.g., the same manufacturer, model, manufacturing batch, etc.) to identify threshold voltages that will minimize Bit Error Rate (BER) for a given set of identifying characteristics (manufacturer, model, manufacturing batch, etc.), usage characteristics and retention characteristics. The table can include threshold voltage offset values and corresponding index values, including index values corresponding to one or more identifying characteristic, index values corresponding to one or more usage characteristic, and index values corresponding to one or more retention characteristic. Steps 108 may include indexing the table using one or more index value, where the one or more index value may include index values corresponding to one or more identifying characteristic, index values corresponding to one or more usage characteristic, and index values corresponding to one or more retention characteristic to identify the corresponding threshold voltage offset value.
The threshold voltage shift read instruction identified in step 105 and the threshold voltage offset value identified in step 108 are then sent to the NAND device 20 to be read as shown by step 109. In response, data and ECC bits are received 110 at nonvolatile memory controller 11 and the corresponding codeword is decoded 111. In one embodiment the decoding of step 111 uses a 4 kB ECC code such as a Low Density Parity Check (LDPC) code that operates on 4 kB “chunks.”
When the identified threshold voltage shift read instruction does not require that a threshold voltage offset value be provided as shown by step 106 and 107, in one embodiment, the threshold voltage shift read instruction can be identified 107 using one or more table stored in step 101 indicating threshold voltage shift read instructions and corresponding identifying (ID) index values that may be referred to hereinafter as a “threshold voltage shift read instruction table” or more simply as a “VT shift read instruction table,” where the (ID) index values distinguish different NAND devices (e.g., the manufacturer, model, manufacturing batch, etc.). In this embodiment threshold voltage shift read instruction is identified by indexing the table using one or more ID index value corresponding to the NAND device 20.
In one embodiment one or more table corresponding to each different type of NAND device is stored in step 101, and a VT offset value and VT shift read instruction table, VT offset value table, or VT shift read instruction table is selected based on the identifying characteristics of the NAND devices 20 to be used (e.g. manufacturer, model, batch no., etc.). In this embodiment the VT offset value and VT shift read instruction table, the VT shift offset table, the VT shift read instruction table, and the VT offset value tables are each specific to a particular manufacturer and model and possibly manufacturing batch of NAND device, and do not include indexes corresponding to identifying characteristics. In this embodiment, steps 107, 108 the table corresponding to the type of NAND device 20 is selected and is indexed using one or more of the usage characteristics and one or more of the retention characteristics. In this embodiment the index values for each threshold voltage shift read instruction or threshold voltage shift read instruction and correspond threshold voltage offset value are determined by performing testing on exemplary NAND devices that are similar to NAND devices 20 (e.g., the same manufacturer, model, manufacturing batch, etc.) to identify threshold voltages that will minimize Bit Error Rate (BER) for a given set of identifying characteristics (manufacturer, model, manufacturing batch, etc.), usage characteristics and a given set of retention characteristics.
The use of tables that indicate the exact threshold voltage shift read instruction to use or the exact threshold voltage offset value to use, as previously discussed is ideal for most applications. However, in high-end nonvolatile memory controllers 11 more flexibility and precision may be required. In these embodiments, the tables do not indicate the exact threshold voltage shift read instruction or the exact threshold voltage offset value to use, but rather indicate the bit error rate corresponding to a particular set of index values (e.g., index values corresponding to one or more identifying characteristic, index values corresponding to one or more usage characteristic, and index values corresponding to one or more retention characteristic). These tables may be referred to hereinafter jointly as “BER table(s)” or more particularly as a “VT offset value and VT shift read instruction BER table,” a “VT offset value BER table” and a “VT shift read instruction BER table.” In these embodiments read circuitry 14 is operable for determining the threshold voltage shift read instruction to use and the threshold voltage offset value to use by comparing the BER of all threshold voltage shift read instructions and threshold voltage offset value combinations stored in step 101 having index values corresponding to the characteristics of the NAND device 20 being read. In the present embodiment one or more of the BER tables are indexed using one or more of the following: one or more identifying characteristic, one or more usage characteristic and one or more retention characteristic to determine the voltage shift read instruction and the threshold voltage offset value having the lowest BER.
The construction of the VT offset value and VT shift read instruction table, the VT offset value table, the VT shift read instruction table, the VT offset value table and VT shift read instruction BER table, the VT offset value BER table and the VT shift read instruction BER table, can be generated by analysis of test semiconductor devices having characteristics similar to the NAND device 20 being read, in a testing environment, prior to shipping a nonvolatile memory controller 11 to a customer.
In the event that a decode failure occurs as shown by steps 112 and 113, a read retry operation is performed. Read retry operations are operations that immediately follow a decode failure 111-113 and address the same memory address as the read operation that experienced the decode failure 111-113. A decode failure occurs when the ECC used to perform decoding 111 fails to recover the codeword. Read retry operations typically use a threshold voltage shift read instruction to read a given memory address a second time. However, conventionally, read retry operations are performed only after a decode failure 111-113 (when the immediately preceding read of a memory address has resulted in a decode failure 111-113) and are only used to read the same memory address that resulted in decode failure 111-113. Read retry operations are undesirable as they significantly increase the latency of the memory controller 11.
In method 400 all reads are performed using a threshold voltage shift read instruction, with the threshold voltage shift read instruction that is to be sent to the NAND device 20 corresponding to the type of NAND device 20 being read and the types of read instructions that the NAND device 20 that is being read is capable of receiving. The threshold voltage shift read parameters can include different types of threshold voltage shift reads, such as, threshold voltage shift read operations that require that the threshold voltage offset value be indicated along with the threshold voltage shift read instruction that have a NAND read time that is the same as the NAND read time of a standard read instruction, threshold voltage shift read operations that require that the threshold voltage offset value be indicated along with the threshold voltage shift read instruction that have a NAND read time that is longer than the NAND read time of a standard read instruction, threshold voltage shift read operations that do not require that the threshold voltage offset value be provided along with the threshold voltage shift read instruction and that have a NAND read time that is the same as the NAND read time of a standard read, and threshold voltage shift read operations that do not require that the threshold voltage offset value be indicated along with the threshold voltage shift read instruction that have a NAND read time that is longer than the NAND read time of a standard read (e.g., enhanced threshold voltage shift read instructions). Enhanced threshold voltage shift read instructions are threshold voltage shift read instructions in which the NAND determines the threshold voltage to use and performs certain algorithms to improve the accuracy of the read operation, and enhanced threshold voltage shift read operations have longer NAND read time than a standard read instruction.
In one embodiment that is illustrated in
In one embodiment read circuit 14 is configured to perform reads of the NAND device 20 using a threshold voltage shift read instruction 105-110. In this embodiment, use of the threshold voltage shift read instruction is not dependent on the previous read of the memory address resulting in a decode failure, but rather, the read is performed using the threshold voltage shift read instruction regardless of the type of read operation that was used to perform the immediately preceding read of the memory address. Accordingly, the read is performed using a threshold voltage shift read instruction when the immediately preceding read of the memory address did not result in a decode failure.
In one embodiment the read of steps 105-110 uses a threshold voltage shift read instruction having a NAND read time that is the same as the NAND read time of the standard read instruction 131. In another embodiment the read of steps 105-110 has a NAND read time that is greater than the NAND read time of the standard read instruction 131, such as, for example, a threshold voltage shift read operation that requires a threshold voltage offset value and that takes longer than the NAND read time of a standard read operation or an enhanced threshold voltage shift read instruction.
The usage characteristic threshold is chosen so as to move from performing a standard read operation 131, 110 to a threshold voltage shift read operation 105-110 before a read using a standard read instruction 131 results in a decode failure as shown by steps 111-113, requiring a read retry operation 113. Thereby, the latency from the read using the standard read instruction 131 and the latency of the read retry 113 is avoided as well as the latency of repeating steps 110-112.
Without the reads 105-110 using voltage threshold shift read instructions disclosed in
According to coding theory a 4 kB ECC chunk is much more efficient than a 1 kB ECC chunk. More particularly, given the same code rate, a 4 kB ECC decode process shows a better correction capability. Furthermore, given a target correction capability, 4 kB ECC decode process will achieve the target correction capability with a higher code rate. If properly designed a 4 kB ECC chunk and a 1 kB ECC chunk can achieve the same UBER (e.g., a UBER of 10−16) at the same BER as shown in
In the embodiment shown in
In the present embodiment the usage characteristic threshold of step 130 is set so as to go as long as possible using the faster threshold voltage shift reads of steps 105-110, but not so long as to get decode failures 112 that would require read retry 113 prior to switching over to the slower threshold voltage shift read instruction 145-147, 108-110. In one embodiment the threshold voltage shift reads of steps 105-110 use threshold voltage shift read instructions with the same NAND read time as the NAND read time of a standard read instruction (e.g., 100 μs) and the enhanced threshold voltage shift reads of steps 145-147, 108-110 correct up to a higher BER than the reads of steps 105-110 but use enhanced threshold voltage shift read instructions having longer NAND read times (e.g., 130 μs).
In one embodiment the index values are program and erase cycle values and step 102 determines the number of program and erase cycles of the NAND devices 20. In the present embodiment status circuit 13 is configured to determine the number of program and erase cycles after each program and erase cycle of NAND devices 20. In this embodiment step 105, 108, 145 includes identifying a threshold voltage shift read instruction and the threshold voltage offset value corresponding to the determined number of program and erase cycles for the NAND device 20 being read. In the present embodiment read circuit 14 is configured to identify a threshold voltage shift read instruction and a threshold voltage offset value corresponding to the most recently determined number of program and erase cycles for the NAND device 20 being read by indexing one or more table stored in step 101 using the determined number of program and erase cycles of the NAND device 20 being read.
In one embodiment the index values of
In another embodiment the index values are block read values that indicate the number of reads performed in a block since the last erase operation, and step 102 includes determining the number of reads performed in a block since the last erase operation on the block and steps 105, 145 and 108 include identifying the threshold voltage shift read instruction and threshold voltage offset value corresponding to the determined number of reads performed since the last erase of the block. In one specific embodiment a table is stored in step 101 that indicates threshold voltage offset values and corresponding index values that are block read values.
BER is also a function of temperature. In one embodiment the index values include program and erase cycle values and temperature values, and step 102 includes determining the number of program and erase cycles and the temperature of nonvolatile memory controller 11 and steps 105, 145 and 108 include identifying the threshold voltage shift read instruction and threshold voltage offset value corresponding to the determined number of program and erase cycles and the determined temperature. In one specific embodiment a table is stored in step 101 that indicates threshold voltage offset values and corresponding index values that are program and erase cycle values and temperature values.
In one embodiment the usage characteristic threshold is a threshold number of program and erase cycles. In this embodiment step 102 includes determining a number of program and erase cycles of a NAND device 20 being read, and step 130 includes determining whether the determined number of program and erase cycles for the NAND device 20 exceed the threshold number of program and erase cycles. In this embodiment status circuit 13 is configured to determine the number of program and erase cycles after each program and erase cycle of the NAND device 20, and read circuit 14 is configured to determine whether the most recently determined number of program and erase cycles for the NAND device 20 being read exceed the threshold number of program and erase cycles.
In one embodiment the number of program and erase cycles is used for both the usage characteristic threshold and to determine which threshold voltage to use. In this embodiment, after the usage characteristic is determined to meet the usage characteristic threshold, read circuit 14 is configured to identify a threshold voltage corresponding to the most recently determined number of program and erase cycles for the NAND device 20 being read, and send a threshold voltage shift read instruction to the NAND device 20 that is to be read indicating the memory address and indicating the identified threshold voltage offset value.
In another embodiment the usage characteristic threshold is an error threshold. In this embodiment, each time that a read of a codeword of a nonvolatile memory device is performed by the nonvolatile memory controller, the number of errors in the codeword is determined and step 130 includes determining whether the number of errors in the codeword exceed the error threshold.
In the present embodiment the read circuit 14 is configured to read a memory address of the NAND device 20 using the threshold voltage shift read instruction when an immediately preceding read of the memory address did not result in a decode failure. Also, read circuit 14 is operable to perform a read of a memory address of the NAND device 20 using the threshold voltage shift read instruction, wherein no previous read of the memory address of NAND device 20 has resulted in a decode failure. In the embodiment shown in
In one embodiment a single usage characteristic is used both in step 130 (compared to the usage characteristic threshold) and in step 105 (used to identify a threshold voltage shift read instruction) and in step 108 (to identify a threshold voltage) such as, for example, the most recently determined number of program and erase cycles for the NAND device 20 being read. However, alternatively, more than one usage characteristic could be determined in step 102 and used. For example, one characteristic can be used in step 130 to determine if the usage characteristic threshold is met and a different characteristic can be used in step 105 to identify a threshold voltage shift read instruction and a different characteristic can be used in step 108 to identify a threshold voltage offset value. Moreover, in embodiments of the present invention more than one usage characteristic is used in step 108 to identify a threshold voltage offset value. In these embodiments, one or more table is stored in step 101 having more than one index (e.g., a first index corresponding to a first usage characteristic and a second index corresponding to a different usage characteristic) corresponding to an indicated threshold voltage offset value.
Methods 400, 500 and 600 can include the optional step of determining at least one retention characteristic 103 of the nonvolatile memory device 20. In this embodiment step 105 includes identifying a threshold voltage shift read instruction and a threshold voltage offset value having an index value corresponding to at least one usage characteristic and having an index value corresponding to at least one retention characteristic. Retention tests are performed during the operation of nonvolatile memory controller 11 to identify retention characteristics. In the present embodiment the retention tests include both offline retention tests and online retention tests.
In the embodiment shown in
In one embodiment a table is stored in step 101 that indicates usage characteristic threshold and a first index corresponding to a usage characteristic and a second index corresponding to a retention characteristic. In another embodiment a table is stored in step 101 that indicates a usage characteristic threshold, a first index corresponding to a usage characteristic, a second index corresponding to a first retention characteristic and a third index corresponding to a second retention characteristic, where the first retention characteristic is an online retention value (e.g., marginal error rate or normalized marginal error rate) and the second retention characteristic is an offline retention value (e.g., delta worst value).
Online test circuit 16 performs online retention tests during normal operation nonvolatile memory controller 11 at certain times, which may be regular intervals of time such as hourly, daily, weekly, monthly or after a predetermined number of operating hours. In one exemplary embodiment, online retention tests are performed after every 12 operating hours of nonvolatile memory controller 11. First, test codewords are read and the number of errors is determined for each codeword that is read. In the present embodiment test codewords are one or more pages that are dedicated to storing data for retention testing. In one embodiment each test codeword is a logical page. Alternatively, a page may contain more than test codeword. The number of test codewords read may be as few as two to three or as many as an entire block of each NAND device 20. In one exemplary embodiment each codeword is a logical page and the online test reads all of the pages of a dedicated test block of a single NAND device 20. The read is performed on a regular basis an interval is that may be, for example, 12, 24, 36 or 48 hours. In the present embodiment the online retention test is performed every 12 operating hours of nonvolatile memory controller 11. Marginal error rate is then determined for the codewords that were read. In one embodiment marginal error rate, that can also be referred to as Delta Read and ΔR(t,ts) is determined by subtracting the number of errors at time (t) from the number of errors at the following interval (t+ts) as is illustrated by the equation:
ΔR(t,ts)=#Errors(t+ts)−#Errors(t).
In one embodiment, each time that the test codewords are read, the number of errors are stored for use in the following calculation of marginal error rate.
In one embodiment nonvolatile memory controller 11 includes a temperature sensor that is operable for determining the temperature of the nonvolatile memory controller at the time of the test. Because temperatures can be different between online and offline periods (and they usually are) an acceleration factor (AF) is used to normalize measured retention errors. More particularly, an acceleration factor may be determined that corresponds to the measured temperature using conventional methodology such as, for example, the Arrhenius equation. In one embodiment the determined marginal error rate (ΔR (t,ts)) is then multiplied by the acceleration factor (AF) to obtain a normalized marginal error rate.
In one embodiment a table that includes marginal error values and temperature values is stored in step 101, and is indexed using the calculated marginal error rate and temperature to determine a corresponding online test index which is then used in steps 105, 108 and 145 to index a VT offset value and VT shift read instruction table, VT offset value table, VT shift read instruction table, VT offset value table, VT shift read instruction BER table, VT offset value BER table or VT shift read instruction BER table for identifying a threshold voltage shift read instruction and threshold voltage.
Offline test circuit 17 performs offline retention tests when the memory controller is being shut off and when it is turned back on. In the present embodiment a first portion of the offline retention test is performed as the memory controller is being shut down (e.g., as a part of the shut-down process) and a second part of the offline retention test is performed as the memory controller is restarted (e.g., as a part of the power-on-start-up process) in the next start-up of the nonvolatile memory controller 11.
More particularly, when a power-off indication is received test codewords are read and the number of errors in each codeword is determined. In the present embodiment test codewords are one or more pages that are dedicated to storing data for retention testing. In one embodiment each test codeword is a logical page. Alternatively, a page may contain more than test codeword. The number of test codewords read may be as few as two to three or as many as two to three codewords in each block of each NAND device 20. In one exemplary embodiment only three codewords are read so as to keep shutdown time to a minimum. In another embodiment a page of each block of each NAND device 20 is read.
The highest number of errors in the tested codewords is determined. More particularly, the number of errors in the codeword having the highest number of errors is determined. The highest number of errors can also be referred to as the “worst number of errors”. The highest number of errors value is then stored in nonvolatile memory controller 11 or on a NAND device 20 prior to powering off the nonvolatile memory controller 11. In the present embodiment the time (t0) at which test codewords were read is determined and is stored along with the highest number of errors.
The nonvolatile memory controller is then powered off. After powering-on the nonvolatile memory controller at a subsequent time, the codewords that were read prior to the power-off are again read and the number of errors in each codeword is determined as each codeword is decoded. In embodiments in which all of the active codewords are read on startup to refresh active memory pages, the reading of the offline retention test is integrated into the startup-refresh process so as to provide a quick startup of the nonvolatile memory controller 11.
The number of errors in the codeword having the highest number of errors (at the subsequent time) is determined. The after-offline-retention-highest number of errors value may then be stored along with the time of the reading of the codeword having the highest number of errors, that can be referred to as the subsequent read time (t).
A delta worst (ΔWorst) value is calculated by subtracting the number of errors in the codeword having the highest number of errors at time t0 (Worst(t0)) from the number of errors in the codeword having the highest number of errors at time t (Worst(t)) and can be represented by the equation:
ΔWorst(t)=Worst(t)−Worst(t0)
where t represents offline time. In one embodiment a table that includes delta worst values and offline times is stored in step 101, and is indexed using the calculated delta worst value and offline time to determine a corresponding offline test index which is then used in steps 105, 108 and 145 to index a VT offset value and VT shift read instruction table, VT offset value table, VT shift read instruction table, VT offset value table, VT shift read instruction BER table, VT BER table or VT shift read instruction BER table for identifying a threshold voltage shift read instruction and threshold voltage.
Though the test codewords read in the offline retention test may be codewords stored in NAND devices 20 for the exclusive purpose of retention testing, alternatively, any codeword could be chosen as a test codeword for offline retention testing.
Though the previous discussion describes using both online and offline testing, in one embodiment retention monitor 15 does not include an online test circuit 16 and only offline testing is performed. In an alternate embodiment retention monitor 15 does not include an offline test circuit 17 and only online testing is performed.
In the present embodiment at least one retention characteristic is determined 103 and is used in step 108 for identifying a threshold voltage having index values corresponding to the at least one usage characteristic and the at least one retention characteristic. In the present embodiment retention monitor 15 is operable for determining retention characteristic(s). In one embodiment online test circuit 16 is operable for determining one or more online test value by performing an online retention test. Offline test circuit 17 is operable for determining one or more offline retention value by performing an offline retention test.
In one embodiment step 101 includes storing one or more table that indicates threshold voltage offset values and corresponding index values, where more than one index value corresponds to each indicated threshold voltage offset value. More particularly one or more index corresponds to a usage characteristic and one or more index corresponds to a retention characteristic. In one exemplary embodiment each indicated threshold voltage offset value corresponds to a first index that is a number of program and erase cycles value and a second index that is an online test value and a third index that is an offline test value. This can be in the form of a first table that indexes retention test values into a retention index that can then be used in a second table that indicates threshold voltage offset values.
By using both usage characteristic(s) and retention characteristic(s) a more accurate threshold voltage offset value is determined. Thereby bit error probability is reduced, reducing the bit error rate so as to further delay the onset of decode failures 111-113 that require decode failure read retry mode 113 and extending the useful lifetime of NAND devices 20.
The bit error rate (BER) of the flash memory changes over the lifetime of the device. It is well known that NAND flash memory program and erase (PE) cycling gradually degrades the storage reliability of the memory device. Flash memory PE cycling causes damage to the tunnel oxide of the floating gate transistors in the form of charge trapping in the oxide and interface states. This charge trapping directly results in a shifting of the threshold voltage and gradually degrades the memory device noise margin. Additionally, the BER may change over the lifetime of the flash memory due to a decrease in retention time resulting from the PE cycling of the device.
The methods and apparatus of the present invention provide for selecting a threshold voltage shift read instruction and a corresponding threshold voltage offset value that corresponds to the point in the lifetime of the nonvolatile memory device 20 being read. More particularly, in embodiments in which the use characteristics include the number of program and erase cycles, the determined number of program and erase cycles correspond to a point in the lifetime of the nonvolatile memory device 20 being read, providing a more accurate read of the nonvolatile memory device 20 being read than prior art systems that use standard read instructions.
In various embodiments, the system of the present invention may be implemented in a Field Programmable Gate Array (FPGA) or Application Specific Integrated Circuit (ASIC).
Though the method and apparatus of the present invention is described above with respect to a single level memory cell, it is within the scope of the present invention to extend the methods and apparatus of the present invention to MLC (multiple-level cell) devices, as would be evident to one of skill in the art. In this embodiment, the memory cells of NAND devices 20 are multi-level cells and the steps of
Although the invention has been described with reference to particular embodiments thereof, it will be apparent to one of ordinary skill in the art that modifications to the described embodiment may be made without departing from the spirit of the invention. Accordingly, the scope of the invention will be defined by the attached claims not by the above detailed description.
Number | Name | Date | Kind |
---|---|---|---|
815137 | Beecher | Mar 1906 | A |
5615235 | Kakuishi et al. | Mar 1997 | A |
5732092 | Shinohara | Mar 1998 | A |
5822244 | Hansen et al. | Oct 1998 | A |
5875343 | Binford et al. | Feb 1999 | A |
6115788 | Thowe | Sep 2000 | A |
6148360 | Leak et al. | Nov 2000 | A |
6412041 | Lee et al. | Jun 2002 | B1 |
6539515 | Gong | Mar 2003 | B1 |
6567313 | Tanaka et al. | May 2003 | B2 |
6633856 | Richardson et al. | Oct 2003 | B2 |
6725409 | Wolf | Apr 2004 | B1 |
6789227 | De Souza et al. | Sep 2004 | B2 |
6871168 | Tanaka et al. | Mar 2005 | B1 |
6895547 | Eleftheriou et al. | May 2005 | B2 |
6934804 | Hashemi | Aug 2005 | B2 |
6963507 | Tanaka et al. | Nov 2005 | B2 |
6976194 | Cypher | Dec 2005 | B2 |
6976197 | Faust et al. | Dec 2005 | B2 |
7032081 | Gefen et al. | Apr 2006 | B1 |
7050334 | Kim et al. | May 2006 | B2 |
7116732 | Worm et al. | Oct 2006 | B2 |
7206992 | Xin et al. | Apr 2007 | B2 |
7209527 | Smith et al. | Apr 2007 | B2 |
7237183 | Xin | Jun 2007 | B2 |
7324559 | McGibney | Jan 2008 | B2 |
7376015 | Tanaka et al. | May 2008 | B2 |
7450668 | Ghosh et al. | Nov 2008 | B2 |
7457906 | Pettey et al. | Nov 2008 | B2 |
7472331 | Kim et al. | Dec 2008 | B2 |
7484158 | Sharon et al. | Jan 2009 | B2 |
7529215 | Osterling | May 2009 | B2 |
7567472 | Gatzemeier et al. | Jul 2009 | B2 |
7620784 | Panabaker et al. | Nov 2009 | B2 |
7650480 | Jiang | Jan 2010 | B2 |
7694047 | Alston | Apr 2010 | B1 |
7708195 | Yoshida et al. | May 2010 | B2 |
7739472 | Guterman et al. | Jun 2010 | B2 |
7752346 | Talayco et al. | Jul 2010 | B2 |
7801233 | Chow et al. | Sep 2010 | B1 |
7860930 | Freimuth et al. | Dec 2010 | B2 |
7904793 | Mokhlesi et al. | Mar 2011 | B2 |
7937641 | Amidi | May 2011 | B2 |
7945721 | Johnsen et al. | May 2011 | B1 |
7958430 | Kolokowsky et al. | Jun 2011 | B1 |
7975193 | Johnson | Jul 2011 | B2 |
8094508 | Gatzemeier et al. | Jan 2012 | B2 |
8140930 | Maru | Mar 2012 | B1 |
8176367 | Dreifus et al. | May 2012 | B2 |
8219894 | Au et al. | Jul 2012 | B2 |
8223745 | Johnsen et al. | Jul 2012 | B2 |
8228728 | Yang et al. | Jul 2012 | B1 |
8244946 | Gupta et al. | Aug 2012 | B2 |
8245112 | Hicken et al. | Aug 2012 | B2 |
8245117 | Wu | Aug 2012 | B1 |
8250286 | Yeh et al. | Aug 2012 | B2 |
8254112 | Yang et al. | Aug 2012 | B2 |
8255770 | Park et al. | Aug 2012 | B2 |
8259498 | Yogev et al. | Sep 2012 | B2 |
8261136 | D'Abreu et al. | Sep 2012 | B2 |
8281217 | Kim et al. | Oct 2012 | B2 |
8281227 | Thatcher et al. | Oct 2012 | B2 |
8286004 | Williams | Oct 2012 | B2 |
8307258 | Flynn et al. | Nov 2012 | B2 |
8327220 | Borchers et al. | Dec 2012 | B2 |
8335977 | Weingarten et al. | Dec 2012 | B2 |
8341502 | Steiner et al. | Dec 2012 | B2 |
8351258 | Yang et al. | Jan 2013 | B1 |
8359522 | Gunnam et al. | Jan 2013 | B2 |
8392789 | Biscondi et al. | Mar 2013 | B2 |
8402201 | Strasser et al. | Mar 2013 | B2 |
8418023 | Gunnam et al. | Apr 2013 | B2 |
8429325 | Onufryk et al. | Apr 2013 | B1 |
8429497 | Tu et al. | Apr 2013 | B2 |
8473812 | Ramamoorthy et al. | Jun 2013 | B2 |
8493791 | Karakulak et al. | Jul 2013 | B2 |
8504885 | Haratsch et al. | Aug 2013 | B2 |
8504887 | Varnica et al. | Aug 2013 | B1 |
8555140 | Gunnam et al. | Oct 2013 | B2 |
8621318 | Micheloni et al. | Dec 2013 | B1 |
8640005 | Wilkerson et al. | Jan 2014 | B2 |
8645613 | Tan et al. | Feb 2014 | B2 |
8656257 | Micheloni et al. | Feb 2014 | B1 |
8694849 | Micheloni et al. | Apr 2014 | B1 |
8694855 | Micheloni et al. | Apr 2014 | B1 |
8706956 | Cagno et al. | Apr 2014 | B2 |
8707122 | Micheloni et al. | Apr 2014 | B1 |
8737141 | Melik-Martirosian | May 2014 | B2 |
8739008 | Liu et al. | May 2014 | B2 |
8755229 | Beltrami et al. | Jun 2014 | B1 |
8762620 | Prins et al. | Jun 2014 | B2 |
8769374 | Franceschini et al. | Jul 2014 | B2 |
8775913 | Haratsch et al. | Jul 2014 | B2 |
8787428 | Dai et al. | Jul 2014 | B2 |
8856622 | Ramamoorthy et al. | Oct 2014 | B2 |
8898372 | Yeh | Nov 2014 | B2 |
8917734 | Brown | Dec 2014 | B1 |
8924824 | Lu | Dec 2014 | B1 |
8953373 | Haratsch et al. | Feb 2015 | B1 |
8958247 | Asaoka et al. | Feb 2015 | B2 |
8959280 | Ma et al. | Feb 2015 | B2 |
8984216 | Fillingim | Mar 2015 | B2 |
8995197 | Steiner et al. | Mar 2015 | B1 |
8995302 | Brown et al. | Mar 2015 | B1 |
9025495 | Onufryk et al. | May 2015 | B1 |
9058289 | Tai et al. | Jun 2015 | B2 |
9142314 | Beltrami et al. | Sep 2015 | B2 |
9164891 | Karamcheti et al. | Oct 2015 | B2 |
9257182 | Grunzke | Feb 2016 | B2 |
9294132 | Peleato-Inarrea | Mar 2016 | B1 |
20020051501 | Demjanenko et al. | May 2002 | A1 |
20020129308 | Kinoshita et al. | Sep 2002 | A1 |
20020181438 | McGibney | Dec 2002 | A1 |
20030033567 | Tamura et al. | Feb 2003 | A1 |
20030104788 | Kim | Jun 2003 | A1 |
20030225970 | Hashemi | Dec 2003 | A1 |
20040088636 | Cypher | May 2004 | A1 |
20040123230 | Lee et al. | Jun 2004 | A1 |
20040136236 | Cohen et al. | Jul 2004 | A1 |
20040181735 | Xin | Sep 2004 | A1 |
20040234150 | Chang | Nov 2004 | A1 |
20040252791 | Shen et al. | Dec 2004 | A1 |
20040268015 | Pettey et al. | Dec 2004 | A1 |
20050010846 | Kikuchi et al. | Jan 2005 | A1 |
20050226355 | Kibune et al. | Oct 2005 | A1 |
20050248999 | Tamura et al. | Nov 2005 | A1 |
20050252791 | Pechtold et al. | Nov 2005 | A1 |
20050286511 | Johnsen et al. | Dec 2005 | A1 |
20060039370 | Rosen et al. | Feb 2006 | A1 |
20060050694 | Bury et al. | Mar 2006 | A1 |
20060126728 | Yu et al. | Jun 2006 | A1 |
20060206655 | Chappell et al. | Sep 2006 | A1 |
20060282603 | Onufryk et al. | Dec 2006 | A1 |
20070050688 | Thayer | Mar 2007 | A1 |
20070089031 | Huffman et al. | Apr 2007 | A1 |
20070101225 | Moon et al. | May 2007 | A1 |
20070118743 | Thornton et al. | May 2007 | A1 |
20070136628 | Doi et al. | Jun 2007 | A1 |
20070147489 | Sun et al. | Jun 2007 | A1 |
20070217253 | Kim et al. | Sep 2007 | A1 |
20070233939 | Kim | Oct 2007 | A1 |
20070239926 | Gyl et al. | Oct 2007 | A1 |
20080005382 | Mimatsu | Jan 2008 | A1 |
20080016425 | Khan et al. | Jan 2008 | A1 |
20080049869 | Heinrich et al. | Feb 2008 | A1 |
20080077843 | Cho et al. | Mar 2008 | A1 |
20080148129 | Moon et al. | Jun 2008 | A1 |
20080229079 | Flynn et al. | Sep 2008 | A1 |
20080229164 | Tamura et al. | Sep 2008 | A1 |
20080256280 | Ma | Oct 2008 | A1 |
20080256292 | Flynn et al. | Oct 2008 | A1 |
20080263265 | Litsyn et al. | Oct 2008 | A1 |
20080267081 | Roeck | Oct 2008 | A1 |
20080276156 | Gunnam et al. | Nov 2008 | A1 |
20080320214 | Ma et al. | Dec 2008 | A1 |
20090027991 | Kaizu et al. | Jan 2009 | A1 |
20090067320 | Rosenberg et al. | Mar 2009 | A1 |
20090077302 | Fukuda | Mar 2009 | A1 |
20090164694 | Talayco et al. | Jun 2009 | A1 |
20090290441 | Gatzemeier et al. | Nov 2009 | A1 |
20090296798 | Banna et al. | Dec 2009 | A1 |
20090303788 | Roohparvar et al. | Dec 2009 | A1 |
20090307412 | Yeh et al. | Dec 2009 | A1 |
20090327802 | Fukutomi et al. | Dec 2009 | A1 |
20100085076 | Danilin et al. | Apr 2010 | A1 |
20100162075 | Brannstrom et al. | Jun 2010 | A1 |
20100185808 | Yu et al. | Jul 2010 | A1 |
20100199149 | Weingarten et al. | Aug 2010 | A1 |
20100211737 | Flynn et al. | Aug 2010 | A1 |
20100211852 | Lee et al. | Aug 2010 | A1 |
20100226422 | Taubin et al. | Sep 2010 | A1 |
20100246664 | Citta et al. | Sep 2010 | A1 |
20100262979 | Borchers et al. | Oct 2010 | A1 |
20100293440 | Thatcher et al. | Nov 2010 | A1 |
20110010602 | Chung et al. | Jan 2011 | A1 |
20110055453 | Bennett et al. | Mar 2011 | A1 |
20110055659 | Tu et al. | Mar 2011 | A1 |
20110066902 | Sharon et al. | Mar 2011 | A1 |
20110072331 | Sakaue et al. | Mar 2011 | A1 |
20110119553 | Gunnam et al. | May 2011 | A1 |
20110161678 | Niwa | Jun 2011 | A1 |
20110209031 | Kim et al. | Aug 2011 | A1 |
20110225341 | Satoh et al. | Sep 2011 | A1 |
20110246136 | Haratsch et al. | Oct 2011 | A1 |
20110246842 | Haratsch et al. | Oct 2011 | A1 |
20110246853 | Kim et al. | Oct 2011 | A1 |
20110296084 | Nango | Dec 2011 | A1 |
20110307758 | Fillingim et al. | Dec 2011 | A1 |
20120008396 | Park et al. | Jan 2012 | A1 |
20120051144 | Weingarten et al. | Mar 2012 | A1 |
20120054413 | Brandt | Mar 2012 | A1 |
20120096192 | Tanaka et al. | Apr 2012 | A1 |
20120140583 | Chung et al. | Jun 2012 | A1 |
20120141139 | Bakhru et al. | Jun 2012 | A1 |
20120166690 | Regula | Jun 2012 | A1 |
20120167100 | Li et al. | Jun 2012 | A1 |
20120179860 | Falanga et al. | Jul 2012 | A1 |
20120203986 | Strasser et al. | Aug 2012 | A1 |
20120239991 | Melik-Martirosian | Sep 2012 | A1 |
20120254515 | Melik-Martirosian et al. | Oct 2012 | A1 |
20120311388 | Cronin et al. | Dec 2012 | A1 |
20120311402 | Tseng et al. | Dec 2012 | A1 |
20130013983 | Livshitz et al. | Jan 2013 | A1 |
20130024735 | Chung et al. | Jan 2013 | A1 |
20130060994 | Higgins et al. | Mar 2013 | A1 |
20130086451 | Grube et al. | Apr 2013 | A1 |
20130094286 | Sridharan et al. | Apr 2013 | A1 |
20130094290 | Sridharan et al. | Apr 2013 | A1 |
20130117616 | Tai et al. | May 2013 | A1 |
20130117640 | Tai et al. | May 2013 | A1 |
20130145235 | Alhussien et al. | Jun 2013 | A1 |
20130163327 | Karakulak et al. | Jun 2013 | A1 |
20130163328 | Karakulak et al. | Jun 2013 | A1 |
20130176779 | Chen et al. | Jul 2013 | A1 |
20130185598 | Haratsch et al. | Jul 2013 | A1 |
20130198451 | Hyun et al. | Aug 2013 | A1 |
20130205085 | Hyun et al. | Aug 2013 | A1 |
20130314988 | Desireddi et al. | Nov 2013 | A1 |
20130315252 | Emmadi et al. | Nov 2013 | A1 |
20130318422 | Weathers et al. | Nov 2013 | A1 |
20140040704 | Wu et al. | Feb 2014 | A1 |
20140053037 | Wang et al. | Feb 2014 | A1 |
20140068368 | Zhang et al. | Mar 2014 | A1 |
20140068382 | Desireddi et al. | Mar 2014 | A1 |
20140072056 | Fay | Mar 2014 | A1 |
20140085982 | Asaoka et al. | Mar 2014 | A1 |
20140101510 | Wang et al. | Apr 2014 | A1 |
20140181426 | Grunzke et al. | Jun 2014 | A1 |
20140181617 | Wu et al. | Jun 2014 | A1 |
20140185611 | Lie et al. | Jul 2014 | A1 |
20140198569 | Kim et al. | Jul 2014 | A1 |
20140198581 | Kim et al. | Jul 2014 | A1 |
20140215175 | Kasorla et al. | Jul 2014 | A1 |
20140219003 | Ebsen et al. | Aug 2014 | A1 |
20140229774 | Melik-Martirosian et al. | Aug 2014 | A1 |
20140281767 | Alhussien et al. | Sep 2014 | A1 |
20140281808 | Lam et al. | Sep 2014 | A1 |
20140281822 | Wu et al. | Sep 2014 | A1 |
20140281823 | Micheloni et al. | Sep 2014 | A1 |
20150039952 | Goessel et al. | Feb 2015 | A1 |
20150043286 | Park et al. | Feb 2015 | A1 |
20150046625 | Peddle et al. | Feb 2015 | A1 |
20150127883 | Chen et al. | May 2015 | A1 |
20150131373 | Alhussien | May 2015 | A1 |
20150149871 | Chen et al. | May 2015 | A1 |
20150186055 | Darragh | Jul 2015 | A1 |
20150221381 | Nam | Aug 2015 | A1 |
20150242268 | Wu et al. | Aug 2015 | A1 |
20150332780 | Kim et al. | Nov 2015 | A1 |
20150371718 | Becker et al. | Dec 2015 | A1 |
20160034206 | Ryan et al. | Feb 2016 | A1 |
20160049203 | Alrod | Feb 2016 | A1 |
20160071601 | Shirakawa et al. | Mar 2016 | A1 |
20160155507 | Grunzke | Jun 2016 | A1 |
20160293259 | Kim et al. | Oct 2016 | A1 |
20170213597 | Micheloni et al. | Jul 2017 | A1 |
Entry |
---|
Wu et al. ‘Reducing SSD Read Latency via NAND Flash Program and Erase Suspension;’ 2012. |
Cai, et al., “Data Retention in MLC NAND Flash Memory: Characterization, Optimization, and Recovery”, 2015 IEEE 21st International Symposium on High Performance Computer Architecture (HPCA); Carnegie Mellon University, LSI Corporation, 2015, pp. 551-563. |
Chen, et al., “Increasing flash memory lifetime by dynamic voltage allocation for constant mutual information”, 2014 Information Theory and Applications Workshop (ITA), 2014, 1-5. |
Peleato, et al., “Probabilistic graphical model for flash memory programming”, Statistical Signal Processing Workshop (SSP), 2012 IEEE, 2012, pp. 1-4. |
Wu, et al., “Reducing SSD Read Latency via NAND Flash Program and Erase Suspension”, Proceedings of FAST'2012; Department of Electrical and Computer Engineering Virginia Commonwealth University, Richmond, VA 23284, 2012, pp. 117-123. |
NVM Express, Revision 1.0; Intel Corporation; Mar. 1, 2011. |
NVM Express, revision 1.0; Intel Corporation; pp. 103-106 and 110-114; Jul. 12, 2011. |