Adaptive DSP generation of read thresholds for solid-state storage devices
By adjusting the read threshold based on count differences in solid-state storage devices and using gradient descent or tracking aggregation methods, the problem of excessive error rates when reading data is solved, achieving more efficient data reading and error correction capabilities, and adapting to storage Data retention noise caused by device aging.
Patent Information
- Application Number
- CN202210205928.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-04-06
- Filing Date
- 2022-03-04
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-03-04
AI Technical Summary
When the existing technology reads data in a solid-state storage device, as the storage time increases, the number of errors exceeds the error correction capability. The existing read threshold generation method assumes an unreasonable Gaussian distribution, resulting in long delays and unrealistic requirements. , it is difficult to effectively reduce read errors.
By determining level count differences in solid-state storage devices, adjusting read thresholds based on observed and expected counts, using gradient descent or trace aggregation methods to generate new read thresholds, avoiding the assumption of Gaussian distributions, reducing the reliance on error correction decoding, and improving read Get the latency and throughput.
Effectively reducing the number of errors in read data, the error correction code can correct errors, improve read latency and throughput, adapt to the data retention noise problem caused by the aging of storage devices, and avoid lengthy error correction and decoding processes.
Smart Images

Figure CN115206381B_ABST
Abstract
Description
Background Art
[0001] In some types of solid-state storage devices (e.g., NAND flash memory devices), data is stored in cells by incrementally injecting a predetermined amount of charge in the floating gate of a special type of transistor. After the memory cell is programmed (i.e., written), the floating gate gradually loses its charge over time (e.g., due to charge de-trapping and oxide leakage, more generally referred to as data retention noise). In some cases (e.g., solid-state storage devices, which have longer retention times, higher storage temperatures, and higher program / erase (PE) cycle counts, which exacerbate data retention noise), the number of errors in the read data may exceed the error correction capability of the code applied to the stored data. Selecting a better non-default / non-initial voltage threshold (sometimes referred to as a read threshold in this article) for reading back data from a solid-state storage device can reduce the number of errors in the read data so that it is within the error correction capability of the code. However, the prior art of selecting or otherwise generating a read threshold assumes a basic Gaussian distribution (which is not always the case), has an undesirably long delay, and / or has other unrealistic requirements or limitations. It would be desirable to have new techniques for selecting or otherwise generating better non-default / non-initial read thresholds that overcome these problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0002] Various embodiments of the invention are disclosed in the following detailed description and accompanying drawings.
[0003] Figure 1 is a flow chart illustrating an embodiment of a process of reading back data from a solid-state storage device, including reading back data by determining a next read threshold.
[0004] Figure 2 is a diagram illustrating an embodiment of a distribution associated with state levels in a single-level cell (SLC) NAND flash memory device.
[0005] Figure 3 is a block diagram illustrating an embodiment of a solid-state storage device system with read thresholds generated using gradient descent and hard-decision error correction decoding if required.
[0006] Figure 4 is a block diagram illustrating an embodiment of a solid-state storage device system with read thresholds generated using tracking aggregation and soft-decision error correction decoding if required.
[0007] Figure 5 is a diagram illustrating an embodiment of neighbor count differences used in tracking aggregation.
[0008] Figure 6is a flow chart illustrating an embodiment of a process of generating a read threshold using tracking aggregation and performing soft decision error correction decoding on read data. DETAILED DESCRIPTION
[0009] The present invention may be implemented in many ways, including as a process; an apparatus; a system; a composition of matter; a computer program product embodied on a computer-readable storage medium; and / or a processor, such as a processor configured to execute instructions stored on and / or provided by a memory coupled to the processor. In this specification, these implementations or any other form in which the present invention may take may be referred to as techniques. In general, the order of the steps of the disclosed processes may be changed within the scope of the present invention. Unless otherwise stated, a component described as being configured to perform a task (such as a processor or memory) may be implemented as a general component that is temporarily configured to perform the task at a given time, or as a specific component manufactured to perform the task. As used herein, the term "processor" refers to one or more devices, circuits, and / or processing cores that are configured to process data (such as computer program instructions).
[0010] A detailed description of one or more embodiments of the present invention is provided below together with the accompanying drawings that illustrate the principles of the present invention. The present invention is described in conjunction with such embodiments, but the present invention is not limited to any embodiment. The scope of the present invention is limited only by the claims, and the present invention encompasses many alternatives, modifications and equivalents. Many specific details are set forth in the following description in order to provide a thorough understanding of the present invention. These details are provided for illustrative purposes, and the present invention can be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical materials known in the technical field related to the present invention have not been described in detail so that the present invention will not be unnecessarily obscured.
[0011] Various embodiments of techniques for determining a next read threshold to obtain or otherwise output decoded data are described herein. In some embodiments, the techniques include: determining a level count difference based at least in part on an expected count of cells in a solid-state storage device and an observed count of cells in the solid-state storage device, wherein the observed count is obtained from a read performed on the solid-state storage device using a previous read threshold; determining a next read threshold based at least in part on the level count difference; performing a read on the solid-state storage device using the next read threshold to obtain read data; and performing error correction decoding on the read data to obtain decoded data.
[0012] For example, at the beginning of the life of a solid-state storage device, (one or more) default read thresholds may be used to perform reads with good performance (e.g., relatively few errors in the read data that can be corrected by an error correction decoder). However, as the solid-state storage device ages, if data is stored for a relatively long time, the number of errors in the read data may increase due to wear on the memory cells (e.g., due to programming and erasing) and / or charge leakage. Determining a new non-default read threshold can return read data with fewer errors that the error correction decoder is able to correct. The following figures describe various embodiments of the technology.
[0013] Figure 1 is a flow chart illustrating an embodiment of a process for reading back data from a solid-state storage device, including reading back the data by determining a next read threshold. In some embodiments, the process is performed by a read controller when a default or previously used read threshold returns read data that fails error correction decoding and therefore cannot be passed up to an application that requested the data from the storage device. For example, when a solid-state storage device (e.g., a NAND flash storage device) is new and the data stored thereon has only been retained for a relatively short amount of time, the default or initial read threshold for reading the solid-state storage device may be sufficient to obtain read data with few enough errors so that an error correction code (e.g., applied to the data prior to storage) can correct the errors in the read data. However, as the solid-state storage device becomes older, more worn, and / or hotter, the default or initial read threshold may return read data with too many errors that the error correction code cannot correct. A better non-default and / or non-initial read threshold may be selected or generated that returns read data with fewer errors so that the error correction code can correct the errors, and the corrected data may be output or otherwise returned. In some embodiments, that Figure 1 Contexts and / or applications of the exemplary processes described in .
[0014] At 100, a level count difference (eg, D i (t) ), where the observation counts are obtained using a previous read threshold (e.g., T i (t) ) obtained from a read performed on the solid-state storage device (e.g., a read at the tth iteration or count).
[0015] In some embodiments, the expected counts and / or observed counts used at step 100 are sums (e.g., expected sums, such as E( S i), and / or cumulative observation counts, such as S i (t) ) associated with a value. In which each cell stores two or more bits (i.e. b ≥2, such as b = 2 multi-level cell (MLC) memory devices, etc.) and multiple read thresholds are being determined, this may be desirable. For example, with the (previous) read threshold T i (t) To perform a read will turn on or otherwise activate a state at or below the corresponding status level L i of (most) cells, and using the cumulative count does not require a second read to distinguish cells at different state levels, and / or using the cumulative count permits multiple read thresholds to be determined or otherwise generated independently of each other.
[0016] At 102, a next read threshold is determined based at least in part on the level count difference. For example, this may include determining a direction of the next read threshold relative to a previous read threshold based at least in part on the level count difference, and (also) determining a magnitude of the next read threshold based at least in part on the level count difference. In one example (which will be described in more detail below), a next offset (e.g., ) to express or otherwise determine the next read threshold (e.g., T i (t+1) ):
[0017]
[0018] in T i and Δ are fixed and / or predefined, and thus in such an embodiment, determining the next read threshold at step 102 includes determining the next offset (eg, ). (For the sake of clarity, and to explain the exemplary process at least initially at a high level, the terminology will be explained and described in more detail below.).
[0019] In one example described in more detail below, the (first) level count difference (e.g., D ) associated with the previous read at the tth iteration or count is used. i (t) ), and the (second) level count difference associated with the (t-1)th read (e.g., D i (t−1) ) to determine the next offset (for example, ):
[0020]
[0021] Among them, broadly speaking, is a positive value and corresponds to the amount to be replaced with the previous offset (e.g. ) is the magnitude or value to add or subtract from the previous offset. Whether the magnitude is added to or subtracted from the previous offset (and therefore whether the next offset is to the left or right of the previous offset) is determined by sign (D i (t) ) to decide, sign (D i (t) ) returns the previous offset D i (t) symbol.
[0022] Note that some types of solid-state storage devices store more than one bit per cell (i.e., b ≥ 2), and in such embodiments, determining the next read threshold (e.g., offset) at step 102 includes determining multiple read thresholds (e.g., offsets). b = 1, only a single next read threshold is determined (e.g. T 0 (t+1) ), and for b = 2 multi-level (MLC) case, determine the three next read thresholds (e.g., T 0 (t+1) , T 1 (t+1) and T 2 (t+1) ). To more generally and / or formally express the next read threshold(s) T i (t+1) and the next offset(s) , step 102 may include determining T i (t+1) and / or ,in i =0, ..., (2 b −2).
[0023] At 104, the next read threshold (eg, T i (t+1) ) performs a read on the solid-state storage device to obtain read data.
[0024] At 106, error correction decoding is performed on the read data. If the error correction decoding is successful (e.g., the errors contained in the read data are within the error correction capabilities of the decoder), the decoded data (e.g., output or generated at step 106) is passed up to the appropriate or requesting entity or block (e.g., the application that passed the read instruction down).
[0025] and Figure 1 In contrast to the method described in , some other methods for finding the optimal read threshold perform several reads by shifting or scanning the read threshold in one direction (e.g., from right to left) and performing error correction decoding on each read data returned until the error correction decoding is successful. The recovered data is then compared to the read output to find the threshold that produces the lowest BER. However, this method requires performing error correction decoding, which significantly adds read latency and / or significantly degrades read throughput. In contrast, Figure 1 The exemplary process of can determine the next read threshold without having to perform error correction decoding, which is better for read latency and read throughput.
[0026] Some other methods for finding the optimal read threshold assume an underlying Gaussian distribution of voltage or charge levels for cells at various state levels. For example, one technique assumes a Gaussian distribution and uses asymptotic reads to estimate the mean and variance of the assumed Gaussian distribution, and then estimates or otherwise determines the optimal read threshold (e.g., the voltage at which adjacent assumed Gaussian distributions intersect each other) from the mean and variance. This assumption of a Gaussian distribution is not always a good assumption under which to generate the next or new read threshold. For example, if the data has been stored in a solid-state storage device for a long time (i.e., high retention time), the distribution is unlikely to be Gaussian-like. In addition, some of these techniques perform two reads at the very tail of the assumed Gaussian distribution (e.g., in order to achieve a tractable solution for mean and variance estimation), which can be problematic because the portion of the distribution that is considered to be the tail may not behave very much like the tail (e.g., because the distribution is not actually Gaussian and / or because of a small sample size).
[0027] Use specific examples to walk through Figure 1 The following figure shows a single-level cell (SLC) NAND flash example to illustrate how it can be performed. Figure 1 process (at least in some embodiments).
[0028] Figure 2is a diagram illustrating an embodiment of a distribution associated with state levels in a single-level cell (SLC) NAND flash memory device. For simplicity and ease of explanation, an SLC example is shown in which the number of (information) bits stored in each cell ( b ) is 1 (i.e., b = 1). Although this example shows an SLC example, the techniques described herein are not limited to SLC embodiments and can be extended to other types of storage devices (e.g., b =2 multi-level cell (MLC) storage device, where b =3 triple-level cell (TLC) storage device, where b =4 quad-level cell (QLC) storage device, etc.).
[0029] In it b =1, there are two status levels: L 0 (e.g., a cell that is written or programmed to hold a first lower amount of charge) and L 1 (e.g., a cell that is written or programmed to hold a second higher amount of charge). For example, a cell is written or otherwise programmed to be at a particular state level by incrementally injecting a predetermined amount of charge into the floating gate of a particular type of transistor. In general, if each cell stores b The status level is { L i},in i =0, 1, ..., (2 b −1). The state levels correspond to different amounts or levels of charge stored, such that L 0 corresponds to the smallest amount of charge, L 1 corresponds to the ratio L 0 more charge, and so on (e.g., assuming no noise, charge loss, etc.).
[0030] Even if cells are programmed or written to be at the same state level, cells with the same state level may retain slightly different amounts of charge. As such, the state levels are shown here as a distribution. For example, L The cells associated with the 0 distribution (200 and 204) are all programmed to be in the first state level (ie, L 0), and with L 1 distribution (202 and 206) are all programmed to be in the second state level (i.e., L 1). Some other read threshold generation techniques assume a Gaussian distribution, in which case the state level distribution will be similar to a Gaussian L 0 distribution (200) and Gaussian L1 distribution (202). In the real world (e.g., depending on data retention noise, data retention time, storage temperature, wear on the storage device (e.g., program / erase (PE) cycle count), etc.), the state level distribution may be noisy and / or non-Gaussian, such as non-Gaussian L 0 distribution (204) and non-Gaussian L 1 distribution (206). In some embodiments, the distribution starts out as a more Gaussian distribution (e.g., due to shorter data retention times and less worn cells with low program and erase counts) and decays to a non-Gaussian distribution (e.g., due to data retention times becoming longer and the cells becoming worn with larger program and erase counts).
[0031] Each (e.g., readback) status level is mapped or interpreted as a specific (e.g., payload) number, symbol, or value. In this example, L A status level of 0 is associated with or mapped to a value of 1, and L A state level of 1 is associated with or mapped to a value of 0. More generally, each state level L i Mapped to or corresponding to 0 to (2 b −1). Each value is L i The mapping between state levels (sometimes referred to as cell-level bit mapping) is typically vendor-specific and grayscale encoding is often used to minimize the number of bit errors due to the prevalence of crossover errors between adjacent state levels.
[0032] As used herein, superscript ( t ) identifies a variable associated with the read of page t (eg, with respect to the read threshold generation technique). One such variable is the read threshold T 0 (0) (208), read threshold T 0 (0) (208) is associated with the read at iteration 0 (e.g., note that T 0 (0) superscript (0) in the , and its on or otherwise activated has a value less than or equal to the read threshold T 0 (0) As such, at or below T 0 (0) The cell is read back as being in L 0 status level (e.g., value 1), and has a value of 1 or L The number or count of such cells at the 0 state level is l 0 (0) (212). With a value greater than T 0(0) The other units of charge are l 1 (0) (214) to count. This means that when reading the threshold T 0 (0) (208) Non-Gaussian on the right L A cell in the 0 distribution (204) will be incorrectly read as a 0 value or L 1 status level and at the read threshold T 0 (0) (208) Non-Gaussian on the left L 1 A cell in the distribution (206) will be incorrectly read as a 1 value or L 0 status level.
[0033] In some embodiments, the one or more initial read thresholds are predefined values. For example, for a read at t=0, the read threshold(s) used at the 0th read ( T i (0) ) may be a read threshold and / or a recent estimate of an optimal read threshold from a previous read (e.g., the previous read that recently failed error correction decoding and thus triggered the read generation process). For the read at t=1, the read threshold(s) used (e.g., T i (1) ) is the read threshold (or thresholds) shifted to the left (eg, downward) by some predefined value (or values) from the read at t=0 (eg, T i (1) ← T i (0) − < Predefined values >). The main effect of retention noise is to widen and shift the cell-level voltage distribution to the left (i.e., downward, since retention noise tends to be dominated by charge leakage rather than charge addition), and so shifting the read threshold at t=0 to the left by some amount may be a good estimate for that read threshold. In one example, a predefined (downward) shift is used σ i , that is, the i-th level from T i (0) arrive T i (1) The estimated standard deviation of the distribution of σ i It is the leading indicator of the tail distribution.
[0034] Return to the observation count, using the read threshold T 0(0) (208) reads yielded observed counts l 0 (0) (212), observation count l 0 (0) (212) is at the 0th read (for example, note l 0 (0) The superscript (0) in the L 0 status level (for example, note l 0 (0) Similarly, the observation count l 1 (0) (214) is read as being in the 0th read L The number of cells at state level 1. These observation counts include those from the read threshold T 0 (0) (208) Non-Gaussian on the right L 0 cells in the distribution (204) and the read threshold T 0 (0) (208) Non-Gaussian on the left L 1 distribution (206) of read errors for cells in the distribution. These counts (i.e., l 0 (0) and l 1 (0) )yes Figure 1 Example of observation counts at step 100 in . Using T 0 (0) A read of (208) also returns or otherwise permits the value l 1 (0) (214) because it is not turned on or read as a value of 1 (i.e., in L 0 state level) are read as having a value of 0 and / or have a value of 0 by elimination (i.e., L 1 state level). More generally, l i (t) is obtained at the tth read and is in (is read as in) L i Observation counts for cells at the state level.
[0035] Return to the topic with the read threshold, no need to use the index (2 b −1) that turns on or otherwise activates cells at state levels up to and including the highest state level (i.e., it turns on or otherwise activates most, if not all, cells). For example, Figure 2In the SLC example, a single read threshold is sufficient to distinguish between the two state levels, and therefore no read threshold is required. T 1 (0) (e.g., it will read or otherwise turn on most, if not all, cells.) Similarly, for an MLC embodiment in which there are four state levels, only three read thresholds will be needed to distinguish between or otherwise read the four state levels, and the read thresholds T 3 (t) is unnecessary. Therefore, only b −2) The read thresholds for indices within the range are of interest: T i (t)},in i =0, ..., (2 b −2).
[0036] When determining the next read threshold (e.g., Figure 1 The goal of step 102 in (210) is to determine a read threshold that is (closer) to the optimal read threshold (210). The optimal read threshold corresponds to two adjacent distributions (e.g., non-Gaussian L 0 and L 1 distribution (204 and 206)) at which the voltage or charge level crosses each other, and the optimal read threshold is the read threshold that produces the smallest number of errors. As will be described in more detail below, Figure 1 The process of can be conceptually viewed as a gradient descent process that does not assume an underlying Gaussian distribution (an assumption that does not always hold) and does not require error correction decoding to be performed in order to generate the next read threshold (which is relatively time consuming and significantly adds to the overall read latency).
[0037] In this example, all read thresholds (such as previous read thresholds (e.g., T i (t) ) or the next read threshold (e.g. T i (t+1) )) is constrained to a value from a predefined or permitted set of values. For example, some solid-state systems have a fixed or predefined read threshold value that is associated with a particular state level and is referred to herein as a target (voltage) threshold value ( T i ). These target thresholds cannot be changed or otherwise adjusted by the user and can be conceptually considered as default thresholds. If the user wants to use a value that is not equal to the corresponding target threshold (e.g., T i ) of the read threshold (e.g., Ti (t) ), some solid-state storage devices permit reads using incremental offsets relative to a fixed target threshold. In some such embodiments, the read threshold (e.g., T i (t) ) is expressed as:
[0038]
[0039] in T i is a (eg, fixed and / or predefined) target threshold, Δ is a (eg, fixed and / or predefined) minimum voltage increment supported by the solid-state storage device, and is a scalar parameter (eg, variable) referred to herein as a threshold offset. The currently described example has this configuration, and therefore attempts to find or otherwise determine the next threshold offset ( ), which is equivalent to determining the next read threshold ( T i (t+1) As described above, with index (2 b −1) is not of interest, so { T i},in i =0, ..., (2 b –2), and ,in i =0, ..., (2 b −2).
[0040] Back to Figure 1 In addition to the observed number of cells, step 100 also uses the expected number of cells. In this example, the expected number of cells at each state level (sometimes referred to herein as the expected count) is the length of the read (data) (e.g., n ) divided by the number of state levels (e.g., 2 b ). For example, if a word line in an SLC memory device is being read, then E ( l 0) is to divide the length of the word line by 2, since there are only two state levels: L 0 and L 1. During the writing and / or encoding process, a scrambling process is (usually) performed on the data, which results in an even distribution of values to be stored (e.g., an equal distribution or number of 0s and 1s to be stored for an SLC storage device). As a result, in many applications it is safe to assume that in an SLC storage device, half of the bits read back should be 1 values (i.e., L0 state level), and half of the bits should be 0 value (i.e., L 1 status level). E ( l i ) is sometimes referred to herein as the expected count (e.g., L i The expected value of the number of cells at the state level).
[0041] In describing how you can Figure 1 At step 100, the level count difference (e.g., D i (t) and / or the preceding D i (t−1) ), it will be helpful to first define some other terms or variables. S i (t) is referred to herein as the cumulative observation count, and is the number of times the state is observed to be (or read back to be) up to and including the state level L i The sum of the number of units at the state level. By definition:
[0042]
[0043] By definition, S 0 and therefore S 0 (t) is equal to 0, and l j (t) is the sum of the state at the t-th read and the j-th state level (e.g., L j ) associated with the observation count. We observe that the number of thresholds is 2 b −1, which correspond to S i , i =1, 2, ..., 2 b −1. Figure 2 The SLC example shown in b =2, and t =0, S 0 (0) =0 and S 1 (0) = l 0 (0) The following table shows example cumulative observed counts for an MLC storage device, where b =2 and there are four status levels.
[0044]
[0045] Table 1: Cumulative observation counts for MLC storage devices ( S i (t) ) .
[0046] Note that each cumulative observation count in the table above corresponds to a cell that is turned on or activated (eg, observed) by a particular read threshold. That is, S i (t) Depends only on T i−1 (t) (For example, only T i−1 (t) For example, for S 1 (t) ,by l 0 (t) The cells counted are all turned on and can only use the read threshold T 0 (t) To count. S 2 (t) ,by l 0 (t) and l 1 (t) The cells counted are all turned on and can only use the read threshold T 1 (t) to count, etc. In some cases (e.g., for b ≥2 storage devices), handles cumulative observation counts instead of l i (t) Counting may be more convenient because a single read threshold (e.g., for a single state level) may be used to obtain the cumulative observed count from a single read. It may also be useful to eliminate dependencies on other read thresholds for other state levels, since those other read thresholds may (also) be in the process of being adjusted or otherwise refined to find the next better read threshold for those state levels, and it is desirable for the read threshold generation processes to be independent of each other.
[0047] sum( E ( S i )) is As described above, it is assumed that there is a scrambler in the write and / or encoding path to evenly distribute the values stored and / or the state levels that the cells are in, and therefore the expected sum is assumed to be evenly distributed. The following table shows an example expected sum for an MLC storage device ( E ( S i )).
[0048]
[0049] Table 2: Expected sum of MLC storage devices ( E ( S i ) .
[0050] In the table above, n is the number of cells read or measured, and scrambling is assumed to be (e.g., perfectly) uniform. For example, if a word line is read, then n Equal to the length of the word line.
[0051] Level count differences D i (t) (For example, its Figure 1 is determined at step 100 in ) is defined as the cumulative observation count ( S i (t) ) minus the expected sum ( E ( S i )):
[0052]
[0053] Assume that the scrambler is perfect and uniform in n If the values or state levels stored in the distribution are distributed among the units, then the following statement can be made about the expected sum ( E ( S i )) and the associated standard deviation ( σ 2 ( S i )):
[0054]
[0055] When the read offset is determined for t ≥ 2 ( ), use the following:
[0056]
[0057] in{ } is a positively damped sequence, such as , which may be desirable in some applications, since without a positively damped sequence the iterations may oscillate.
[0058] As described above, the next threshold offset is determined (eg, ) is equivalent (at least in this example) to determining the next read threshold (e.g. T i (t+1) ),in In the above equation, sign ( D i (t) )return D i (t) The sign of , and therefore determines whether the (t+1)th read offset (and correspondingly, the read threshold) is to the left or right of the tth read offset (and correspondingly, the read threshold). Specifies the next read offset Will be at the previous read offset In other words, determining the next read threshold includes: determining the next read threshold based at least in part on the level count difference (e.g., D i (t) ) and the second and older level count differences (e.g. D i (t−1) ) determines an offset for a next read threshold (e.g., relative to a previous read threshold), and determines whether to add or subtract the offset from the previous read threshold based at least in part on the sign of the level count difference. Generally speaking, this is like gradient descent, where the process attempts to follow the slope of the distribution downward.
[0059] It is noted that the exemplary technique for determining or otherwise generating the next read threshold described above does not assume an underlying Gaussian distribution, does not require lengthy error correction decoding, and does not require reading in a particular portion of the distribution (e.g., does not require reading in the tail). For these reasons, the exemplary technique may produce better results (e.g., because it does not assume a Gaussian distribution where one does not exist), and / or may return results faster than some other techniques (e.g., because it does not perform error correction decoding, which may take a relatively long time).
[0060] Briefly return to Figure 1 In some embodiments, hard decision error correction decoding is performed at step 106. The following figure shows the execution Figure 1An example block diagram of a solid-state storage device system of an exemplary process of the present invention, the exemplary process including hard decoding at step 106.
[0061] Figure 3 1 is a block diagram illustrating an embodiment of a solid-state storage device system having a read threshold generated using gradient descent and hard decision error correction decoding (if necessary). In this example, write data to be stored is passed to an error correction encoder (300), for example, from an application that wants to store data on a solid-state storage device, which is a NAND flash storage device (302) in this example. The encoder (300) applies an error correction code to the write data and performs scrambling (e.g., to evenly distribute the stored values or cell state levels), and outputs the encoded and scrambled data, which is passed to a write controller (304). The write controller stores the encoded and scrambled data at a physical address in the NAND flash storage device and associates or otherwise maps the physical address with a logical address. The mapping information is stored in a memory (306) shared by and / or accessible to both the write controller (304) and the read controller (308).
[0062] To retrieve the stored data (e.g., in response to a read request directed to a logical address), the read controller (308) accesses the shared memory (306) to determine the physical address associated with the logical address. In this example, the read controller will use one or more default, initial, and / or previous read thresholds (such as a target threshold ( T i )) initially reads the NAND flash memory device (302) at the sought physical address. In this example, the read data (e.g., obtained using (one or more) default, initial, and / or previous read threshold values) has so many errors that the hard decision error correction decoder (310) is unable to correct the read data and therefore is unable to output corrected read data (e.g., to an application). For example, the NAND flash memory device (302) may be relatively old, have high program and erase counts, and / or data may have been stored in the NAND flash memory device for a relatively long time.
[0063] In response to a failure of the hard decision error correction decoder (310) to decode the read data, the read controller (308) uses Figure 1 The process for determining one or more new and / or non-default read thresholds (at least in this example) is as described above. Figure 1The process may use previous read thresholds attempted and / or counts obtained by reading the solid-state storage device using various read thresholds, and this information may be stored in a memory (306) and retrieved by a read controller (308) as needed / if required. Once the next read threshold(s) are determined, the read threshold(s) are used to read the appropriate physical address in the NAND flash storage device in order to obtain read data (e.g., with fewer errors and / or different error patterns that are correctable). The (new) read data is then passed to a hard decision error correction decoder (310) for another decoding attempt, and if the decoding is successful, the corrected read data is output (e.g., to the application that issued the read instruction or request). If unsuccessful, the process may be repeated (e.g., Figure 1 The process (e.g., until a predefined limit or maximum number of attempts is reached) Figure 1 process).
[0064] In this example, the decoder (310) is a hard decision error correction decoder (sometimes referred to herein as a hard decoder), rather than a soft decision error correction decoder (sometimes referred to herein as a soft decoder). Although a soft decoder is able to decode some errors that a hard decoder is not able to decode, they tend to take longer. As such, in this example, a hard decoder is used (e.g., first). The following figure describes a similar system, where if hard decoding of read data obtained using the gradient descent technique described above continues to fail within some number of attempts, then a second technique (e.g., tracking aggregation) is used to determine a new and / or next read threshold, and soft decoding is performed on the read data.
[0065] Figure 4 is a block diagram illustrating an embodiment of a solid-state storage device system with read thresholds generated using tracking aggregation and soft-decision error correction decoding if required. Figure 4 Similar to Figure 3 , and for the sake of brevity, some blocks are not described in this article. Figure 3 As in the example of , the read controller ( 400 ) performs the read operation by using (one or more) default, initial and / or previous read thresholds (such as (one or more) target thresholds ( T i )) to read the NAND flash memory device (402), and the read data is decoded using a hard decoder (404). If either the hard decoder (404) or the soft decoder (408) succeeds at any time, a multiplexer (406) selects the output from the successful decoder and outputs it as corrected read data (e.g., to an application that issued a read instruction or read request).
[0066] If the hard decoder (404) fails to decode the read data obtained using (one or more) initial, default and / or previous read thresholds, the read controller (400) generates one or more new read thresholds using the gradient descent method as described above. As described in the example above, the (one or more) read thresholds for t=0 and t=1 are predefined, and the read data from those reads are not error corrected. Instead, the read data for t=0 and t=1 is used to generate the (one or more) next read thresholds according to the gradient descent example described above. However, hard decoding is performed on the read data obtained using the read thresholds (offsets) generated via the gradient descent technique described above. The (one or more) read thresholds generated by the gradient descent and the hard decoder are given a predefined and / or fixed number of attempts to successfully output the corrected read data, but in some other embodiments, different limits or maximum numbers of attempts are used.
[0067] Read Threshold Generation Technique Error Correction Decoding Initial, default and / or previous read threshold(s) Hard judgment (one or more) predefined read thresholds (e.g., part of the gradient descent process) N / A Gradient Descent Hard judgment Predefined ascending and descending sequences around the last gradient descent threshold(s) (e.g., to track part of an aggregation process) Hard judgment Tracking Aggregation Soft Decision
[0068] Table 3: Figure 4 An example sequence of read threshold generation and error correction decoding combinations attempted by the system.
[0069] If the maximum number of attempts is reached, the read controller (400) switches to an aggregate tracking technique to generate the next read threshold(s) (e.g., expressed as offset(s)). To this end, the read controller (400) performs reads around the last read threshold(s) generated using gradient descent. More specifically, these reads are performed with increments Δ around the last read threshold (offset) generated by the gradient descent technique. Let (in i =0, 1, 2, ..., (2 b −2)) is the latest read offset(s) generated using gradient descent, and nearby reads are performed along the following two sequences to the right and left of the latest read offset(s) (threshold) offset(s):
[0070]
[0071] in i =0, 1, 2, ..., (2 b −2), (as described above) Δ is the minimum voltage increment supported by the solid-state storage device, and v 1 and v 2 is a dynamically determined positive integer (this is described in more detail below). The read data from these reads is decoded by a hard decoder (404), and if the decoding is successful, the decoded data is output as corrected read data, and the process ends.
[0072] In this example, the number of reads around the read threshold (offset(s)) generated by the last gradient descent(s) is not predefined but is dynamically determined based on when a (stopping) condition is met. In this example, the stopping condition depends on c i (j) , c i (j) is to use adjacent read offsets ( )and( ) is read as on (i.e., in L i The following figure shows an example of adjacent count differences.
[0073] Figure 5 is a diagram illustrating an embodiment of adjacent count differences used in tracking aggregation. In this example, table 500 shows an increasing sequence of read offsets (e.g., , ,……, , ) is associated with adjacent count differences ( c i (j) In this table, the top row (502) shows the devices that are read as on (e.g., in L i The sequence of offsets increases in value, so the number of cells in the top row (502) will tend to (but not always) increase.
[0074] The bottom row (504) shows adjacent count differences between counts from adjacent read offsets in the top row (502). In this example, the predefined threshold (magnitude) is 200, and the first time the threshold is exceeded is for c i (4) =266, the c i (4) =266 and and Adjacent offsets are associated. Therefore, the reading process will be The read stops at the offset (at least in that direction).
[0075] Table 510 shows a decreasing sequence for read offsets (e.g., , ,……, , ). As before, the top row (512) shows the number of cells that were read as on for a given offset, and the bottom row (514) shows the adjacent count differences between adjacent offsets. In this case, the predefined threshold (amplitude) 200 was set earlier at c i (−3) = −216 is exceeded, the c i (−3) = −216 and and Adjacent read offsets are associated. Therefore, the read process will be The read stops at the offset (at least in that direction). As described above, the case where j=0 is ignored.
[0076] Back to Figure 5 ,use Figure 5 The exemplary adjacent difference count shown in , in this aggregate tracking example uses the following inverse weighted average to determine the next read threshold (offset):
[0077]
[0078] where (for example, in the second term) the minimum value is used is a trade-off for read noise, and is the last read offset (e.g., if this is the first iteration of trace aggregation, it is generated by the gradient descent process, or if this is the second or subsequent iteration of trace aggregation, it is the last offset generated by trace aggregation), Δ is the offset (e.g., the minimum voltage offset supported by the solid-state storage device system), and the range over which the summation is performed (e.g., from − v 2 to v 1) Determined by how far up and down the ascending and descending sequences are read. 0.5 vs. c i (j) The addition is to prevent precision overflow and make the minimum value of the second term at least is to make a tradeoff for read noise. The effect of the product of the two sums will depend on which difference count is smaller: the difference count associated with the ascending sequence to the right, or the difference count associated with the descending sequence to the left. Smaller difference counts carry more weight, while larger adjacent difference counts carry less weight (hence it is called an inverse weighted average). Intuitively or conceptually, the inverse weighted average attempts to insert more weight on reads that occur at valleys in the data distribution.
[0079] For example, if you use Figure 5 to find the next offset using the value shown in:
[0080]
[0081] Etc. As a practical matter, since Δ is the smallest voltage increment supported by the system, the next offset (or threshold) is rounded to the nearest integer multiple of Δ.
[0082] Returning briefly to Table 3, the read threshold(s) (offset(s)) generated using the tracking aggregation are (e.g., by Figure 4 The combination of tracking aggregation and soft decoding for generating read threshold(s) (offset(s)) may be repeated as many times as desired until the combination stops.
[0083] It should be noted that the sequences and combinations shown in the examples of Table 3 and other examples described herein are merely exemplary and are not intended to be limiting. In some other embodiments, different combination sequences, different combinations, and / or different attempts may be used compared to the examples shown here. For example, soft decoding may be performed on the read data obtained using the read threshold generated using (one or more) gradient descents.
[0084] This example is more formally and / or generally described in the following flow chart.
[0085] Figure 6 is a flow chart illustrating an embodiment of a process of using tracking aggregation to generate read thresholds and perform soft decision error correction decoding on read data (if necessary). In this example, Figure 6 continue Figure 1 (e.g., after some maximum number of attempts to generate new read threshold(s) at step 102, read at step 104, and perform error correction decoding at step 106 have been reached without success). In some embodiments, the decoding at step 106 includes and / or is limited to hard decision error correction decoding.
[0086] At 600, a plurality of reads are performed on a solid-state memory device in integer increments Δ to obtain a plurality of read data in increments Δ, where Δ is the minimum voltage increment supported by the solid-state memory device. Figure 5 500 in Table 500, and Figure 5 A read performed with a negative increment Δ (eg, to the left of the previous read threshold) in table 510 in FIG.
[0087] At 602, a second next read threshold is determined based at least in part on the inverse weighted average and the plurality of read data in increments Δ. Figure 5 In the example shown in , the adjacent difference count ( c i (j) ), and those values are then used for an inverse weighted average to determine the next read offset (threshold).
[0088] At 604, a read is performed on the solid-state storage device using the second next read threshold to obtain second read data. At 606, error correction decoding is performed on the second read data. For example, as shown in the example of Table 3, soft decoding can be performed on the read data, even though soft decoding tends to take longer than hard decoding. In this example, a new read threshold has been tried and subsequent error correction decoding has failed multiple times, and therefore it is acceptable (at least in some applications) to use a soft decoder that may take longer but is able to decode some errors that the hard decoder cannot decode.
[0089] Repeat as needed or if necessary Figure 6 The process shown in continues until a timeout occurs or error correction decoding (either soft decoding or hard decoding) succeeds.
[0090] Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways to implement the invention. The disclosed embodiments are illustrative rather than restrictive.
Claims
1. A system comprising: A solid-state storage device comprising a plurality of cells, wherein each cell of the plurality of cells is configured to store at least two bits per cell; Read the controller, which is configured to: determining a level count difference based at least in part on an expected count of a plurality of cells in the solid-state storage device and a cumulative observed count of a plurality of cells in the solid-state storage device, wherein the cumulative observed count is associated with a number of cells in the solid-state storage device activated by performing a single read of the solid-state storage device using a previous read threshold, wherein the cumulative observed count includes a first number of cells associated with a 0th state level and a second number of cells associated with a 1st state level, wherein the level count difference is a difference value between the expected count of the cells and the cumulative observed count of the cells, and wherein the cumulative observed count is independent of other read thresholds; determining a next read threshold based at least in part on the level count difference; and performing a read on the solid-state storage device using the next read threshold to obtain read data; and an error correction decoder configured to perform error correction decoding on the read data; where the expected count of a cell is the length of the read data divided by the number of cell state levels.
2. The system of claim 1, wherein the error correction decoder comprises a hard decision error correction decoder that performs hard decision error correction decoding on the read data.
3. The system of claim 1 , wherein the read controller is configured to determine a next read threshold by: determining an offset of a next read threshold relative to a previous read threshold based at least in part on the level count difference and a second and older level count difference; and A determination is made whether to add or subtract the offset from the previous read threshold based at least in part on the sign of the level count difference.
4. The system of claim 1 , wherein the read controller is configured to determine a next read threshold by: determining an offset of a next read threshold relative to a previous read threshold based at least in part on the level count difference, the second and older level count difference, and a damping sequence, wherein the damping sequence is a parameter used to avoid oscillations in determining the offset of the next read threshold; and A determination is made whether to add or subtract the offset from the previous read threshold based at least in part on the sign of the level count difference.
5. The system of claim 1 , wherein the read controller is further configured to: performing a plurality of reads on the solid-state memory device in integer increments Δ to obtain a plurality of read data in increments Δ, wherein Δ is a minimum voltage increment supported by the solid-state memory device; determining a second next read threshold based at least in part on the plurality of read data in increments Δ; as well as A read is performed on the solid-state storage device using a second next read threshold to obtain second read data.
6. The system of claim 1, wherein: The error correction decoder includes a hard decision error correction decoder that performs hard decision error correction decoding on the read data; The read controller is further configured to: performing a plurality of reads on the solid-state memory device in integer increments Δ to obtain a plurality of read data in increments Δ, wherein Δ is a minimum voltage increment supported by the solid-state memory device; determining a second next read threshold based at least in part on the inverse weighted average and the plurality of read data in increments Δ; as well as performing a read on the solid-state storage device using a second next read threshold to obtain second read data; as well as The system further includes a soft decision error correction decoder that performs soft decision error correction decoding on the second read data.
7. A method comprising: determining a level count difference based at least in part on an expected count of a plurality of cells in a solid-state storage device and a cumulative observed count of a plurality of cells in the solid-state storage device, wherein each of the plurality of cells is configured to store at least two bits per cell; wherein the cumulative observed count is associated with a number of cells in the solid-state storage device activated by performing a single read of the solid-state storage device using a previous read threshold, wherein the cumulative observed count includes a first number of cells associated with a 0th state level and a second number of cells associated with a 1st state level, wherein the level count difference refers to a difference value between the expected count of the cell and the cumulative observed count of the cell, and wherein the cumulative observed count is independent of other read thresholds; determining a next read threshold based at least in part on the level count difference; performing a read on the solid-state storage device using the next read threshold to obtain read data; and performing error correction decoding on the read data; where the expected count of a cell is the length of the read data divided by the number of cell state levels.
8. The method of claim 7, wherein performing error correction decoding comprises performing hard decision error correction decoding on the read data.
9. The method of claim 7, wherein determining a next read threshold comprises: determining an offset of a next read threshold relative to a previous read threshold based at least in part on the level count difference and a second and older level count difference; as well as A determination is made whether to add or subtract the offset from the previous read threshold based at least in part on the sign of the level count difference.
10. The method of claim 7, wherein determining a next read threshold comprises: determining an offset of a next read threshold relative to a previous read threshold based at least in part on the level count difference, the second and older level count difference, and a damping sequence, wherein the damping sequence is a parameter used to avoid oscillations in determining the offset of the next read threshold; and A determination is made whether to add or subtract the offset from the previous read threshold based at least in part on the sign of the level count difference.
11. The method according to claim 7, further comprising: performing a plurality of reads on the solid-state memory device in integer increments Δ to obtain a plurality of read data in increments Δ, wherein Δ is a minimum voltage increment supported by the solid-state memory device; determining a second next read threshold based at least in part on the plurality of read data in increments Δ; as well as A read is performed on the solid-state storage device using a second next read threshold to obtain second read data.
12. The method according to claim 7, wherein: Performing error correction decoding includes performing hard decision error correction decoding on the read data; as well as The method further comprises: performing a plurality of reads on the solid-state memory device in integer increments Δ to obtain a plurality of read data in increments Δ, wherein Δ is a minimum voltage increment supported by the solid-state memory device; determining a second next read threshold based at least in part on the inverse weighted average and the plurality of read data in increments Δ; performing a read on the solid-state storage device using a second next read threshold to obtain second read data; and Soft decision error correction decoding is performed on the second read data.
13. A computer program product embodied in a non-transitory computer readable medium and comprising computer instructions for: A level count difference is determined based at least in part on an expected count of a plurality of cells in the solid-state storage device and a cumulative observed count of a plurality of cells in the solid-state storage device, wherein Each of the plurality of cells is configured to store at least two bits per cell; wherein the cumulative observation count is associated with a number of cells in the solid-state storage device that are activated by performing a single read of the solid-state storage device using a previous read threshold, wherein the cumulative observation count includes a first number of cells associated with a 0th state level and a second number of cells associated with a 1st state level, wherein the level count difference refers to a difference value between an expected count of the cell and a cumulative observation count of the cell, and wherein the cumulative observation count is independent of other read thresholds; determining a next read threshold based at least in part on the level count difference; performing a read on the solid-state storage device using the next read threshold to obtain read data; and performing error correction decoding on the read data; where the expected count of a cell is the length of the read data divided by the number of cell state levels.
14. The computer program product of claim 13, wherein performing error correction decoding comprises performing hard decision error correction decoding on the read data.
15. The computer program product of claim 13, wherein determining a next read threshold comprises: determining an offset of a next read threshold relative to a previous read threshold based at least in part on the level count difference and a second and older level count difference; as well as A determination is made whether to add or subtract the offset from the previous read threshold based at least in part on the sign of the level count difference.
16. The computer program product of claim 13, wherein determining a next read threshold comprises: determining an offset of a next read threshold relative to a previous read threshold based at least in part on the level count difference, the second and older level count difference, and a damping sequence, wherein the damping sequence is a parameter used to avoid oscillations in determining the offset of the next read threshold; and A determination is made whether to add or subtract the offset from the previous read threshold based at least in part on the sign of the level count difference.
17. The computer program product of claim 13, further comprising computer instructions for: performing a plurality of reads on the solid-state memory device in integer increments Δ to obtain a plurality of read data in increments Δ, wherein Δ is a minimum voltage increment supported by the solid-state memory device; determining a second next read threshold based at least in part on the plurality of read data in increments Δ; as well as A read is performed on the solid-state storage device using a second next read threshold to obtain second read data.
18. The computer program product of claim 13, wherein: Performing error correction decoding includes performing hard decision error correction decoding on the read data; and The computer program product further comprises computer instructions for: performing a plurality of reads on the solid-state memory device in integer increments Δ to obtain a plurality of read data in increments Δ, wherein Δ is a minimum voltage increment supported by the solid-state memory device; determining a second next read threshold based at least in part on the inverse weighted average and the plurality of read data in increments Δ; performing a read on the solid-state storage device using a second next read threshold to obtain second read data; as well as Soft decision error correction decoding is performed on the second read data.
