This patent document generally relates to non-volatile memory devices, and more specifically, to error correction in non-volatile memory devices.
Data integrity is an important feature for any data storage device and data transmission. Use of strong error-correction codes (ECCs) is recommended for various types of data storage devices including NAND flash memory devices.
Solid-state drives (SSDs) use multi-level NAND flash devices for persistent storage. However, multi-level NAND flash devices can be inherently unreliable and generally need to use ECCs to allow dramatic increase in data reliability at the expense of extra storage space for ECC parity bits. There is a demand for more efficient decoding approaches that can provide data protection with improved decoding performance.
Embodiments of the disclosed technology relate to improving decoding performance of bit-flipping decoders associated with a non-volatile memory by detecting oscillations and mitigating them. Detecting and mitigating oscillations in the bit-flipping decoders reduce the failure-rate of the bit-flipping decoders, thereby improving the throughput and read-QoS (quality of service) of the non-volatile memory.
In an example aspect, a method for improving a decoding performance of a bit-flipping decoder is described. The method includes receiving a noisy codeword that is based on a transmitted codeword generated from a low-density parity-check (LDPC) code, performing a first plurality of decoding iterations on the noisy codeword, at least one of the first plurality of decoding iterations comprising performing a message passing algorithm in a first order, computing, based on a completion of the first plurality of decoding iterations, a plurality of checksum values and a plurality of bit flip counts corresponding to the first plurality of decoding iterations, determining that the plurality of checksum values and the plurality of bit flip counts are periodic with a period less than a predetermined threshold (T), and performing a subsequent decoding iteration on the noisy codeword, the subsequent decoding iteration comprising performing the message passing algorithm in a second order different from the first order.
In yet another example aspect, the above-described method may be implemented by a processor coupled to a memory.
In yet another example aspect, these methods may be embodied in the form of processor-executable instructions and stored on a computer-readable program medium.
The subject matter described in this patent document can be implemented in specific ways that provide one or more of the following features.
Solid state drives (SSDs) are a new generation of storage device used in computers. SSDs replace traditional mechanical hard disks by using flash-based memory, which is significantly faster. SSDs speed up computers significantly due to their low read-access times and fast throughputs. SSDs can be configured to use irregular quasi-cyclic low-density parity-check (QC-LDPC) codes to correct any bit-errors in pages read from NAND media. QC-LDPC codes are used to ensure data integrity in storage systems that use the new generation of NAND flash memories. Iterative decoders for LDPC code in general, and irregular QC-LDPC codes in particular, have wide range of complexities. The two primary types of decoders are the low-complexity bit-flipping (BF) decoder with low error-correction capability and the high-complexity min-sum (MS) decoder with high error-correction capability.
For typical SSD applications, most page reads (more than 99%) are by the bit-flipping decoder. Thus, designing hardware for fast and efficient bit-flipping (BF) decoder, which exhibits improved convergence properties, is critical especially in mobile and client SSD applications because of their strict power constraints and throughput requirements.
This document first overviews an example of a non-volatile memory system in which bit-flipping decoder can be implemented to decode irregular QC-LDPC codes, and then describes methods, systems and devices to improve the decoding performance of the bit-flipping decoder by, for example, computing the number of bit-flips over a previous number of circulant-columns in the irregular QC-LDPC code and subsequently updating the bit-flipping threshold.
The memory module 110 included in the memory system 100 can include memory areas (e.g., memory arrays) 102, 104, 106, and 108. Each of the memory areas 102, 104, 106, and 108 can be included in a single memory die or in multiple memory dice. The memory die can be included in an integrated circuit (IC) chip.
Each of the memory areas 102, 104, 106, and 108 includes a plurality of memory cells. Read, program, or erase operations can be performed on a memory unit basis. Thus, each memory unit can include a predetermined number of memory cells. The memory cells in a memory area 102, 104, 106, or 108 can be included in a single memory die or in multiple memory dice.
The memory cells in each of memory areas 102, 104, 106, and 108 can be arranged in rows and columns in the memory units. Each of the memory units can be a physical unit. For example, a group of a plurality of memory cells can form a memory unit. Each of the memory units can also be a logical unit. For example, the memory unit can be a block or a page that can be identified by a unique address such as a block address or a page address, respectively. For another example, wherein the memory areas 102, 104, 106, and 108 can include computer memories that include memory banks as a logical unit of data storage, the memory unit can be a bank that can be identified by a bank address. During a read or write operation, the unique address associated with a particular memory unit can be used to access that particular memory unit. Based on the unique address, information can be written to or retrieved from one or more memory cells in that particular memory unit.
The memory cells in the memory areas 102, 104, 106, and 108 can include non-volatile memory cells. Examples of non-volatile memory cells include flash memory cells, phase change random-access memory (PRAM) cells, magnetoresistive random-access memory (MRAM) cells, or other types of non-volatile memory cells. In an example implementation where the memory cells are configured as NAND flash memory cells, the read or write operation can be performed on a page basis. However, an erase operation in a NAND flash memory is performed on a block basis.
Each of the non-volatile memory cells can be configured as a single-level cell (SLC) or multiple-level memory cell. A single-level cell can store one bit of information per cell. A multiple-level memory cell can store more than one bit of information per cell. For example, each of the memory cells in the memory areas 102, 104, 106, and 108 can be configured as a multi-level cell (MLC) to store two bits of information per cell, a triple-level cell (TLC) to store three bits of information per cell, or a quad-level cells (QLC) to store four bits of information per cell. In another example, each of the memory cells in memory area 102, 104, 106 and 108 can be configured to store at least one bit of information (e.g., one bit of information or multiple bits of information), and each of the memory cells in memory area 102, 104, 106 and 108 can be configured to store more than one bit of information.
As shown in
The host can be a device or a system that includes one or more processors that operate to retrieve data from the memory system 100 or store or write data into the memory system 100. In some implementations, examples of the host can include a personal computer (PC), a portable digital device, a digital camera, a digital multimedia player, a television, and a wireless communication device.
In some implementations, the controller module 120 can also include a host interface 126 to communicate with the host. Host interface 126 can include components that comply with at least one of host interface specifications, including but not limited to, Serial Advanced Technology Attachment (SATA), Serial Attached Small Computer System Interface (SAS) specification, Peripheral Component Interconnect Express (PCIe).
In some implementations, the memory cell array can include NAND flash memory array that is partitioned into many blocks, and each block contains a certain number of pages. Each block includes a plurality of memory cell strings, and each memory cell string includes a plurality of memory cells.
In some implementations where the memory cell array is NAND flash memory array, read and write (program) operations are performed on a page basis, and erase operations are performed on a block basis. All the memory cells within the same block must be erased at the same time before performing a program operation on any page included in the block. In an implementation, NAND flash memories may use an even/odd bit-line structure. In another implementation, NAND flash memories may use an all-bit-line structure. In the even/odd bit-line structure, even and odd bit-lines are interleaved along each word-line and are alternatively accessed so that each pair of even and odd bit-lines can share peripheral circuits such as page buffers. In all-bit-line structure, all the bit-lines are accessed at the same time.
Although
In writing more than one data bit in a memory cell, fine placement of the threshold voltage levels of memory cells is needed because of the reduced distance between adjacent distributions. This is achieved by using incremental step pulse program (ISPP), i.e., memory cells on the same word-line are repeatedly programmed using a program-and-verify approach with a stair case program voltage applied to word-lines. Each programmed state associates with a verify voltage that is used in verify operations and sets the target position of each threshold voltage distribution window.
Read errors can be caused by distorted or overlapped threshold voltage distribution. An ideal memory cell threshold voltage distribution can be significantly distorted or overlapped due to, e.g., program and erase (P/E) cycle, cell-to-cell interference, and data retention errors, which will be discussed in the following, and such read errors may be managed in most situations by using error correction codes (ECC).
For n-bit multi-level cell NAND flash memory, the threshold voltage of each cell can be programmed to 2n possible values. In an ideal multi-level cell NAND flash memory, each value corresponds to a non-overlapping threshold voltage window.
Flash memory P/E cycling causes damage to a tunnel oxide of floating gate of a charge trapping layer of cell transistors, which results in threshold voltage shift and thus gradually degrades memory device noise margin. As P/E cycles increase, the margin between neighboring distributions of different programmed states decreases and eventually the distributions start overlapping. The data bit stored in a memory cell with a threshold voltage programmed in the overlapping range of the neighboring distributions may be misjudged as a value other than the original targeted value.
The dotted lines in
Bit-flipping decoders are typically employed as the first step of decoding LDPC codewords in non-volatile memory devices (e.g., as described in
According to some embodiments of the disclosed technology, methods, systems, and devices improve a decoding performance of bit-flipping decoder implementations for LDPC codes by detecting and mitigating oscillations that may occur during the decoding process. The embodiments described herein are also applicable to quasi-cyclic LDPC (QC-LDPC) codes.
Quasi-cyclic codes are defined by the property that, for an integer n0, every cyclic shift of a codeword by no places is also a codeword. For a systematic (n=mn0, k=mk0) quasi-cyclic linear code, the corresponding parity check matrix H is represented as.
Herein, n denotes the length of the code, k denotes the rank of the code (which corresponds to the number of codewords in its basis and the number of rows in its generating matrix), m denotes the size of the circulant matrix, k0 is an integer that is based on the values of n, m and n0, In-k represents an (n−k)×(n−k) identity matrix, and each Ci,j′ is a m×m circulant matrix (with size circulantSize or circSize) of the following form:
In contrast to a quasi-cyclic code in which all columns have an equal column weight (e.g., each column has the same number of 1's), an irregular quasi-cyclic code has at least two columns with different numbers of 1's, i.e., columns with different weights.
Both regular and irregular LDPC codes can be represented using a Tanner graph, which includes a set of nodes (or vertices) and a set of edges connecting the nodes. The Tanner graph corresponding to an M×N parity-check matrix contains M variable nodes (or bit nodes) and N check nodes (or check sum nodes), and provides a graphical representation of the parity-check matrix to which is corresponds. The performance and decoding of an LDPC code (regular or irregular) are based on the row-weights and column-weights of the parity-check matrix, or equivalently, the cycles in the Tanner graph representation.
In bit-flipping algorithms, at each iteration and for every variable node, the number of unsatisfied check nodes are compared with a threshold, and the hard decision estimate of the variable node is flipped if the number of unsatisfied check nodes is greater than the threshold. In existing implementations, a bit-flipping decoder typically uses a predetermined scheduling algorithm in which the processing order of the variable nodes in each iteration is fixed. However, some error patterns may be sensitive to the fixed processing order in that if a certain error pattern causes an oscillation, using the same processing order of the variable nodes in each iteration makes it impossible to escape the oscillation and results in an unsuccessful decoding operation.
When such an error occurs, embodiments of the disclosed technology can use one or more decoder parameters (e.g., number of flipped bits, checksum, etc.) to detect an oscillation. In an example, the values of the number of flipped bits and the checksum repeat with a period due to oscillating variable nodes. In this case, the bit-flipping decoder can be configured to use a randomized order to process the variable nodes, thereby enabling the decoder to escape the oscillation to improve decoding performance.
In some embodiments, because determining the period (T) of the decoder parameters may require additional hardware, the randomized order can be implemented only if the period of the oscillation is less than a predetermined threshold. In an example, T≤10.
For a majority of error patterns, oscillations in bit-flipping detectors are caused due to the processing order of the variable nodes. Thus, changing the flipping order of the variable nodes may assist the decoder in escaping from the oscillations. However, in traditional non-volatile memories (e.g., the example implementations described in
An efficient technique of changing the flipping order of the variable nodes in the bit-flipping decoder without changing the hardware design is to stochastically flip the bits that the bit-flipping decoder has configured to flip. That is, the decoder accepts the decision to flip a bit with a certain probability, therein rejecting some of the bit flip decisions. However, a random implementation of this type will typically slow down the bit-flipping decoder.
Embodiments of the disclosed technology use a stochastic decision to accept or reject the bit flipping decision only when an oscillation is detected, thereby reducing any loss in throughput. In an example, when the variables nodes that were flipped during an oscillation are skipped due to the stochastic decision, the decoding trajectory starts to diverge from the previous iterations. This advantageously enables the decoder to escape the oscillation and converge to the correct codeword in a few more iterations. In some embodiments, the stochastic decision may be generated in a pseudo-random manner by a linear feedback shift register (LFSR), which requires minimal hardware resources.
Example Algorithm for Oscillation Detection and Mitigation
For an iterative bit-flipping decoder, assume i (0≤i≤imax) represents the iteration number, dj(i) denotes the decision of variable node j of the jth decoding iteration, d(i)=[d0(i), d1(i), . . . , dN-1(i)] is the decision vector at the ith decoding iteration, and the syndrome at ith iteration is s(i)=[d0(i), d1(i), . . . , dN-1(i)]HT, where H is the parity-check matrix of the LDPC code.
It is further assumed that d(−1)=[d0(−1), d1(−1), . . . , dN-1(−1)]=y is the received word that is used as the initial decision vector, and that s(−1)=y HT is the initial syndrome vector. The following notation is also assumed:
Step 0: Set i=0, curr_flip_bits=0 and calculate s(−1) and go to Step 1;
Step 1: i=i+1, if reach max iteration, stop decoding. Otherwise, go to Step 2;
Step 2: if |s|=0, stop decoding. Otherwise, go to Step 3;
Step 3: (oscillation detection)
Step 4:
Step 5: Go to Step 1
In operation 715, i is incremented and the method determines whether decoding should continue by checking, in operation 720, whether the maximum number of iterations has been exceeded or the syndrome is zero, and which corresponds to Steps 1 and 2 described above.
If the maximum number of iterations has been exceeded or the syndrome is zero, the bit-flipping decoder is stopped in operation 790 (“No” branch in 720). Otherwise, decoding continues with operation 730 (“Yes” branch in 720).
In operation 730, the checksum (denoted CS_arr[i] for the ith decoding iteration) and the number of flips (denoted flip_num_arr[i] for the ith decoding iteration, and equivalent to the trajectories of the bit flips) in the previous iteration are updated.
In operation 740, method 700 checks whether the trajectories are periodic. In an example, the periodicity of the trajectories must be lower than a predetermined threshold. If the trajectories are periodic (“Yes” branch in 740), P[j] for all j are set to a probability generated by the random number generator (RNG) in operation 742. On the other hand, if the trajectories are not periodic (“No” branch in 740), P[j] for all j are set to 1 in operation 744. The method continues with operation 746, wherein the number of bit currently flipped (cur_flip_bits) and the circulant-column index (j) are set to 0.
In operation 750, the circulant-column index (j) is incremented, and in operation 760, the method determines whether all the circulant-columns have been processed, i.e., checking whether j is less than or equal to ncirc (the number of circulant-columns). If all the circulant-columns have been processed (“No” branch in 760), the algorithm begins the next iteration (by incrementing the circulant-column index i in operation 715), but if at least one circulant-column has not been processed (“Yes” branch in 760), the method continues to operation 770.
In operation 770, the method checks with the randomly assigned probability for the jth circulant-column is equal to 0. If it is (“Yes” branch in 770), then the stochastic decision process will never flip the bit associated with the jth variable node, and the method loops back to operation 750 to process the next circulant-column. However, if the probability P[j] is non-zero (“No” branch in 770), then (i) the flipping energy E[v] is calculated for all variable nodes v in the jth circulant (operation 780), (ii) the bits in the jth circulant for all v where E[v]>θji are flipped (operation 782), and (iii) the number of bit currently flipped (cur_flip_bits) and the syndrome vector are updated. The method 700 then loops back to operation 750 to process the next circulant-column.
In method 700, operations 730-760 correspond to Step 3 described above, and the remainder of the operations illustrated in
In some embodiments, the example algorithm for oscillation detection and mitigation (and as described in
In some embodiments, the example algorithm for oscillation detection and mitigation (and as described in
In some embodiments, a bit array is used to store the circulant-columns that are flipped in iterations after an oscillation is detected. At the start of the new period, P values for other circulant-columns is kept as 1 and only the variable nodes that were flipped during the entire period use pseudo-random bits for their corresponding elements in the P array.
The method 800 includes, at operation 820, performing a first plurality of decoding iterations on the noisy codeword, at least one of the first plurality of decoding iterations comprising performing a message passing algorithm in a first order.
The method 800 includes, at operation 830, computing, based on a completion of the first plurality of decoding iterations, a plurality of checksum values and a plurality of bit flip counts corresponding to the first plurality of decoding iterations.
The method 800 includes, at operation 840, determining that the plurality of checksum values and the plurality of bit flip counts are periodic with a period less than a predetermined threshold (T).
The method 800 includes, at operation 850, performing a subsequent decoding iteration on the noisy codeword, the subsequent decoding iteration comprising performing the message passing algorithm in a second order different from the first order.
In some embodiments, each decoding iteration of the first plurality of decoding iterations comprises passing one or more messages between a plurality of variable nodes and a plurality of check nodes that represent a parity check matrix of the LDPC code.
In some embodiments, the bit-flipping decoder uses two or more bits to store estimates for each of the plurality of variable nodes.
In some embodiments, the first order comprises a first decoding order of the plurality of variable nodes in the decoding iteration, and the second order comprises a second decoding order of the plurality of variable nodes in the decoding iteration.
In some embodiments, the subsequent decoding iteration comprises performing the message passing algorithm N times on each of N circulant columns that comprise a parity check matrix of the LDPC code, and N is an integer.
In some embodiments, the method 800 further includes the operations of determining the second order based on generating a pseudo-random array of bits of length N, wherein each bit of the pseudo-random array of bits has a value of one with probability p, and wherein the second order comprises flipping a bit when a corresponding bit in the pseudo-random array of bits has a value of one.
In some embodiments, p=0.8 and T=10.
In some embodiments, the method 800 further includes the operations of computing a syndrome, and refraining from performing, after the subsequent decoding iteration, an additional decoding iteration of the bit-flipping decoder upon a determination that a maximum number of iterations has been performed or that the syndrome is equal to zero.
In some embodiments, the LDPC code is an irregular QC-LDPC code.
Implementations of the subject matter and the functional operations described in this patent document can be implemented in various systems, digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them. Implementations of the subject matter described in this specification can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a tangible and non-transitory computer readable medium for execution by, or to control the operation of, data processing apparatus. The computer readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter effecting a machine-readable propagated signal, or a combination of one or more of them. The term “data processing unit” or “data processing apparatus” encompasses all apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers. The apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub programs, or portions of code). A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.
The processes and logic flows described in this specification can be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read only memory or a random access memory or both. The essential elements of a computer are a processor for performing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto optical disks, or optical disks. However, a computer need not have such devices. Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
While this patent document contains many specifics, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular inventions. Certain features that are described in this patent document in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Moreover, the separation of various system components in the embodiments described in this patent document should not be understood as requiring such separation in all embodiments.
Only a few implementations and examples are described and other implementations, enhancements and variations can be made based on what is described and illustrated in this patent document.
Number | Name | Date | Kind |
---|---|---|---|
8132065 | Chen et al. | Mar 2012 | B2 |
8407553 | Gunnam | Mar 2013 | B2 |
8484535 | Graef | Jul 2013 | B2 |
8645810 | Sharon | Feb 2014 | B2 |
8880987 | Sharon | Nov 2014 | B2 |
9459956 | Hubris | Oct 2016 | B2 |
10700706 | Zhang et al. | Jun 2020 | B2 |
20080168319 | Lee et al. | Jul 2008 | A1 |
20190288707 | Kumar et al. | Sep 2019 | A1 |
20200136644 | Zeng | Apr 2020 | A1 |
20200162108 | Kim et al. | May 2020 | A1 |
Number | Date | Country | |
---|---|---|---|
20220190845 A1 | Jun 2022 | US |