Out-of-order bit flip decoder for non-volatile memory devices
The unordered bit-flip decoder solves the problem of high latency in existing bit-flip decoders by performing real-time column quality estimation and sorting of cyclic columns, achieving faster decoding and lower power consumption, and is suitable for non-volatile memory devices.
Patent Information
- Application Number
- CN202211584478.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-09-22
- Filing Date
- 2022-12-09
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-12-09
AI Technical Summary
In existing non-volatile memory devices, bit-flip decoders have high latency when processing low-density parity check codes, and existing decoding methods require additional loops to identify error columns and calculate cyclic redundancy checks, resulting in increased power consumption and decreased performance.
An unordered bit-flipping decoder is used to estimate the quality of each cyclic column through an instant column quality estimator, and to sort and process the cyclic columns according to the quality metric, skipping columns that do not need to be processed, thus reducing unnecessary iterations and CRC calculations.
It effectively reduces the latency of the bit-flip decoder, improves convergence and throughput, and reduces power consumption, making it suitable for power constraints and throughput requirements in mobile and client SSD applications.
Smart Images

Figure CN117746959B_ABST
Abstract
Description
Technical Field
[0001] The patent document generally relates to a non-volatile memory device, and more specifically to error correction in a non-volatile memory device. Background Technology
[0002] Data integrity is a critical characteristic of any data storage device and data transfer. Strong error correction coding (ECC) is recommended for various types of data storage devices, including NAND flash memory. Solid-state drives (SSDs) use multi-layer NAND flash memory for persistent storage. However, multi-layer NAND flash memory devices can be inherently unreliable, often requiring ECC to significantly improve data reliability, at the cost of additional storage space for ECC parity bits. More efficient decoding methods are needed to provide data protection with reduced latency. Summary of the Invention
[0003] Embodiments of the disclosed technology relate to the operation of a bit-flip (BF) decoder in a non-volatile memory device for decoding low-density parity-check (LDPC) codes. In the examples, the described embodiments enable out-of-order processing of cyclic columns based on a quality metric associated with the cyclic columns of the parity-check matrix of the LDPC code, which advantageously reduces the latency of the BF decoder and improves convergence.
[0004] In one example, a method for reducing the latency of a decoder in non-volatile memory is described. The method includes: receiving a noisy codeword based on a transmitted codeword generated from a low-density parity-check (LDPC) code, the LDPC code having an associated parity-check matrix comprising multiple cyclic matrix columns; then performing a sorting operation that sorts the multiple cyclic matrix columns in descending order of a first quality metric, the first quality metric indicating the number of errors in the respective cyclic matrix columns; and iteratively processing the multiple sorted cyclic matrix columns to determine candidate versions of the transmitted codeword. As part of the iterative processing of the multiple sorted columns, for each of the multiple sorted cyclic matrix columns, the following operations are performed: determining a second quality metric indicating the number of errors in the column; comparing the second quality metric with at least one threshold; and, in response to the comparison, selectively processing the column according to the order determined by the sorting operation. In this document, processing the columns includes performing a message-passing algorithm between multiple variable nodes and multiple parity nodes representing the parity-check matrix of the LDPC code to determine candidate versions of the transmitted codeword.
[0005] In another example, a system for reducing the latency of a decoder in non-volatile memory is described. The system includes a processor and a memory, the memory containing instructions stored thereon, wherein the instructions, when executed by the processor, cause the processor to: receive a noisy codeword based on a transmitted codeword generated from a low-density parity-check (LDPC) code having an associated parity-check matrix comprising a plurality of cyclic matrix columns; perform a sorting operation that sorts the plurality of cyclic matrix columns in descending order of a first quality metric to generate a plurality of sorted cyclic matrix columns, the first quality metric indicating the number of errors in the respective cyclic matrix columns; and iteratively process the plurality of sorted cyclic matrix columns to determine candidate versions of the transmitted codeword. For each of the plurality of sorted cyclic matrix columns, the instructions, when executed by the processor, cause the processor to perform the following as part of the iterative processing of the plurality of sorted columns: determine a second quality metric indicating the number of errors in the column, compare the second quality metric with at least one threshold, and, in response to the comparison, selectively process the column in the order determined by the sorting operation. In this paper, the processing column includes performing a message passing algorithm between multiple variable nodes and multiple parity nodes of the parity check matrix representing the LDPC code to determine candidate versions of the transmitted codeword.
[0006] In yet another example, the method can be implemented as processor-executable instructions and stored on a computer-readable program medium.
[0007] The subject matter described in this patent document may be implemented in a particular manner by providing one or more of the following features. Attached Figure Description
[0008] Figure 1 An example of a memory system is shown.
[0009] Figure 2 This is a diagram illustrating an example of a non-volatile memory device.
[0010] Figure 3 This shows the cell voltage level distribution (V) of a non-volatile memory device. th Example diagram.
[0011] Figure 4 This shows the cell voltage level distribution (V) of a non-volatile memory device. th Another example diagram.
[0012] Figure 5 This shows the cell voltage level distribution (V) of the non-volatile memory device before and after programming interference. th Example diagram.
[0013] Figure 6This illustrates the cell voltage level distribution (V) of a non-volatile memory device based on a reference voltage. th Example diagram.
[0014] Figure 7 A flowchart illustrating an example method for reducing the latency of a decoder in non-volatile memory is shown.
[0015] Figure 8 A flowchart is shown as another example method for reducing the latency of decoders in non-volatile memory.
[0016] Figure 9 This is an example diagram illustrating a storage device that can be configured to implement the described embodiments. Detailed Implementation
[0017] Solid-state drives (SSDs) are a new generation of storage devices used in computers. SSDs replace traditional hard disk drives (HDDs) by using significantly faster flash-based memory. SSDs can significantly improve computer speed due to their shorter read access times and higher throughput. SSDs can be configured to use low-density parity-check (LDPC) codes to correct for any bit errors in pages read from NAND media. LDPC codes are used to ensure data integrity in storage systems using next-generation NAND flash memory. Iterative decoders of LDPC codes exhibit a wide range of complexities. Two main types of decoders are low-complexity bit-flip decoders with lower error correction capabilities and high-complexity minimum-sum (MS) decoders with higher error correction capabilities.
[0018] Bit-flipping (BF) decoders are typically configured to calculate the flipping energy of a variable node based on messages received from neighboring parity nodes and compare it to a threshold to determine whether the variable node's value should be flipped. For typical SSD applications, most (over 95%) page reads are performed by the BF decoder. However, existing implementations of BF decoders often require additional loops to determine which columns of the LDPC code's parity matrix to process, and additional loops to compute LDPC cyclic redundancy check (CRC) parity to check convergence. Therefore, designing hardware with reduced latency for a fast and efficient BF decoder is particularly important in mobile and client SSD applications with stringent power constraints and throughput requirements.
[0019] The patent document first outlines an example of a non-volatile memory system that can implement a bit-flip decoder to decode LDPC codes. It then describes a method, system, and apparatus for reducing the latency of the bit-flip decoder, for example, when decoding codewords in a BF decoder, by estimating the quality of each cyclic column using an on-the-fly column quality (CQ) estimator. CQ estimation can be performed without imposing additional latency and can advantageously accelerate convergence and skip processing of cyclic columns that do not contain any errors.
[0020] Figures 1 to 6 This paper outlines non-volatile memory systems (e.g., flash memory, NAND flash memory) that can implement embodiments of the disclosed technology.
[0021] Figure 1 This is a block diagram of an example memory system 100 implemented based on some embodiments of the disclosed technology. The memory system 100 includes a memory module 110, which can be used to store information for use by other electronic devices or systems. The memory system 100 can be included in other electronic devices and systems (e.g., located on a circuit board). Optionally, the memory system 100 can be implemented as an external storage device, such as a USB flash drive and a solid-state drive (SSD).
[0022] The memory module 110 included in the memory system 100 may include memory regions (e.g., memory arrays) 102, 104, 106, and 108. Each of the memory regions 102, 104, 106, and 108 may be included in a single memory die or multiple memory dies. The memory die may be included in an integrated circuit (IC) chip.
[0023] Each of memory regions 102, 104, 106, and 108 includes multiple memory cells. Read operations, programming operations, or erase operations can be performed on a memory unit basis. Therefore, each memory unit may include a predetermined number of memory cells. The memory cells in memory regions 102, 104, 106, and 108 may be included in a single memory die or multiple memory dies.
[0024] Memory cells in each of memory regions 102, 104, 106, and 108 can be arranged in rows and columns to form memory units. Each memory unit can be a physical unit. For example, a group of multiple memory cells can form a memory unit. Each memory unit can also be a logical unit. For example, a 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. As another example, memory regions 102, 104, 106, and 108 can include computer memory, and the computer memory includes memory banks as logical units of data storage. The memory unit can be a memory bank that can be identified by a bank address. During a read or write operation, a unique address associated with a particular memory unit can be used to access that particular memory unit. Based on this unique address, information can be written to or retrieved from one or more memory cells in that particular memory unit.
[0025] Memory cells in memory regions 102, 104, 106, and 108 may 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 embodiment where memory cells are configured as NAND flash memory cells, read or write operations may be performed on a page-by-page basis. However, erase operations in NAND flash memory are performed on a block-by-block basis.
[0026] Each of the non-volatile memory cells can be configured as a single-level cell (SLC) or a multi-level memory cell. A single-level cell can store one bit of information per cell. A multi-level memory cell can store more than one bit of information per cell. For example, each memory cell in memory regions 102, 104, 106, and 108 can be configured as a multi-level cell (MLC) storing two bits of information per cell, a three-level cell (TLC) storing three bits of information per cell, or a four-level cell (QLC) storing four bits of information per cell. In another example, each memory cell in memory regions 102, 104, 106, and 108 can be configured to store at least one bit of information (e.g., one bit or more bits of information), and each memory cell in memory regions 102, 104, 106, and 108 can be configured to store more than one bit of information.
[0027] like Figure 1As shown, the memory system 100 includes a controller module 120. The controller module 120 includes: a memory interface 121 communicating with the memory module 110; a host interface 126 communicating with a host (not shown); a processor 124 running firmware-level code; and caches or memories 123 and 122 that temporarily or permanently store executable firmware / instructions and related information, respectively. In some embodiments, the controller unit 120 may include an error correction engine 125 for performing error correction operations on the information stored in the memory module 110. The error correction engine 125 may be configured to detect / correct single bit errors or multiple bit errors. In another embodiment, the error correction engine 125 may be located within the memory module 110.
[0028] The host can be a device or system including one or more processors that operate to retrieve data from or store data in or write data to the memory system 100. In some embodiments, examples of the host may include a personal computer (PC), a portable digital device, a digital camera, a digital multimedia player, a television, and a wireless communication device.
[0029] In some implementations, controller module 120 may further include a host interface 126 for communicating with a host. Host interface 126 may include components conforming to at least one of the host interface specifications, including but not limited to: Serial Advanced Technology Attachment (SATA), Serial Small Computer System Interface (SAS) specification, and High Speed Peripheral Component Interconnect (PCIe).
[0030] Figure 2 Examples of memory cell arrays implemented based on some embodiments of the disclosed technology are shown.
[0031] In some implementations, the memory cell array may include a NAND flash memory array divided into many blocks, with each block containing a number of pages. Each block includes multiple memory cell strings, and each memory cell string includes multiple memory cells.
[0032] In some implementations where the memory cell array is a NAND flash memory array, read and write (programming) operations are performed on a page-by-page basis, and erase operations are performed on a block-by-block basis. Before programming any page included in the same block, all memory cells in that block must be erased simultaneously. In one implementation, the NAND flash memory can use an even / odd bit-line structure. In another implementation, the NAND flash memory can use a full bit-line structure. In the even / odd bit-line structure, even and odd bit lines are interleaved along each word line and are optionally accessed, allowing each pair of even and odd bit lines to share peripheral circuitry such as page buffers. In the full bit-line structure, all bit lines are accessed simultaneously.
[0033] Figure 3 An example of a threshold voltage distribution curve in a multi-layer cell device is shown, where the number of cells for each program / erase state is plotted according to the threshold voltage. As shown, the threshold voltage distribution curve includes an erase state with the lowest threshold voltage (denoted as "ER" and corresponding to "11") and three programming states (denoted as "P1", "P2", and "P3" corresponding to "01", "00", and "10", respectively), where the read voltage is between these states (represented by dashed lines). In some embodiments, each of the threshold voltage distributions for the programming / erase states has a finite width due to differences in material properties within the memory array.
[0034] although Figure 3 The multi-level cell device is illustrated by way of example, but each memory cell can be configured to store any number of bits per cell. In some embodiments, each memory cell can be configured as a single-level cell (SLC) storing one bit of information per cell, or as a three-level cell (TLC) storing three bits of information per cell, or as a four-level cell (QLC) storing four bits of information per cell.
[0035] When writing more than one data bit into a memory cell, the threshold voltage levels of the memory cell need to be finely arranged due to the reduced distance between adjacent distributions. This is achieved using Incremental Stepped Pulse Programming (ISPP), which involves repeatedly programming memory cells on the same word line using a programming and verification method, where a stepped programming voltage is applied to the word line. Each programming state is associated with a verification voltage used in the verification operation, setting the target position for each threshold voltage distribution window.
[0036] Read errors can be caused by distorted or overlapping threshold voltage distributions. Ideal memory cell threshold voltage distributions can be severely distorted or overlapping due to factors such as program / erase (P / E) cycles, inter-cell interference, and data retention errors, which will be discussed later. In most cases, such read errors can be managed using error correction codes (ECC).
[0037] Figure 4 Examples of ideal threshold voltage distribution curve 410 and distorted threshold voltage distribution curve 420 are shown. The vertical axis represents the number of memory cells with a specific threshold voltage represented on the horizontal axis.
[0038] For an n-bit multi-layer cell NAND flash memory, the threshold voltage of each cell can be programmed to 2. n There are several possible values. In an ideal multi-cell NAND flash memory, each value corresponds to a non-overlapping threshold voltage window.
[0039] Flash memory P / E cycles can damage the tunnel oxide of the floating gate in the charge-harvesting layer of the cell transistors. This causes a threshold voltage shift, gradually reducing the noise margin of the memory device. As the number of P / E cycles increases, the margin between adjacent distributions of different programming states decreases, eventually leading to overlap. Data bits stored in memory cells within the overlapping range of adjacent distributions, programmed by the threshold voltage, may be misinterpreted as values other than the original target value.
[0040] Figure 5 An example of inter-cell interference (ICI) in NAND flash memory is shown. ICI can also cause threshold voltage distortion in flash memory cells. A threshold voltage shift in a memory cell transistor can affect the threshold voltage of its neighboring memory cell transistors through parasitic capacitive coupling between the interfering cell and the victim cell. The amount of ICI can be affected by the NAND flash memory bitline architecture. In an even / odd bitline architecture, memory cells on a word line are alternately connected to even and odd bitlines, and even cells in the same word line are programmed before odd cells. Therefore, even and odd cells experience different amounts of ICI. Cells in a full bitline architecture experience less ICI than even cells in an even / odd bitline architecture, and full bitline architectures can effectively support high-speed current sensing to improve memory read and verification speeds.
[0041] Figure 5 The dashed lines in the diagram represent the nominal distribution of the P / E states of the considered cell (before programming disturbances), and "adjacent state values" represent the values of adjacent states that have been programmed. For example... Figure 5As shown, if the adjacent state is programmed as P1, the threshold voltage distribution of the considered cell shifts by a specific amount. However, if the adjacent state is programmed as P2, where the threshold voltage is higher than P1, it will result in a larger shift compared to the adjacent state being P1. Similarly, the shift in the threshold voltage distribution is greatest when the adjacent state is programmed as P3.
[0042] Figure 6 An example of retention errors in NAND flash memory is illustrated by comparing the normal threshold voltage distribution with the offset threshold voltage distribution. Data stored in NAND flash memory can become corrupted over time, a phenomenon known as data retention errors. Retention errors are caused by charge loss stored in the floating gate or charge-harvesting layer of the cell transistor. Memory cells with more program-erase cycles are more likely to experience retention errors due to losses in the floating gate or charge-harvesting layer. Figure 6 In the example, a comparison of the top row of the voltage distribution (before the damage) and the bottom row of the voltage distribution (contaminated by retained errors) shows an offset to the left.
[0043] For a specific codeword read in a NAND-based storage system (e.g., Figures 1 to 6 As shown in the example, because the number of errors to be decoded decreases, most of the BF decoder loops are wasted on processing loops without errors. To correct the last few errors, an ordered BF decoder typically iterates over the same column multiple times in an attempt to correct them. This increases latency, wastes energy, and degrades performance.
[0044] Existing implementations of out-of-order BF decoders only allow processing of cyclic columns that are highly likely to contain errors. However, additional loops are required to identify these columns. Furthermore, more loops are needed at the end of each iteration to calculate the CRC. Embodiments of the disclosed technology relate to out-of-order BF decoders that do not require additional loops to determine which columns to process or to calculate the CRC. This benefits from reduced decoding latency and power consumption, and improves the convergence of the BF decoder.
[0045] In some embodiments, the flip energy of the BF decoder is calculated as:
[0046]
[0047] Among them, s old The corrector is dec_prev, the current value of the variable node is chn(i), and the channel value is chn(i).
[0048] In some embodiments, the unordered BF decoder is configured with an instantaneous column quality (CQ) estimator for estimating the quality of each cyclic column. The CQ estimator is based on a partial group sorting algorithm and can estimate column quality instantaneously without imposing additional latency. The CQ estimator can be applied when certain conditions are met. For example, a CQ estimator based on the initial checksum can help speed up convergence compared to a conventional ordered BF decoder. Using the CQ estimator in later iterations allows skipping cyclic columns that do not contain errors, thereby reducing latency by reducing the amount of processing performed.
[0049] In some embodiments, column quality (denoted as "cq") can be calculated as the maximum number of unsatisfied check nodes on the bits of a particular cyclic column. In other embodiments, the average number of unsatisfied check nodes across all bits in a particular column can be used.
[0050] In some embodiments, the partial group sorting algorithm includes dividing the cyclic column into multiple groups such that the first group has (cq≤2), the second group has (cq==3), the third group has (cq==4), and the fourth group has (cq≥5). For example, two N values can be used. col int8 register (where N) col An array (total number of columns) is used to record the column indices for sorting; the first array is used for the column indices in the previous iteration, and the second array is used for the column indices in the current iteration.
[0051] In some embodiments, the example of a group-ranked CQ estimator uses the following variables:
[0052] -qccsNpt is the counter for the Nth group. For example, qccs5pt corresponds to the fourth group and qccs2pt corresponds to the first group.
[0053] -colperm, which is an array used to store column indices;
[0054] -cq(i), which is the quality metric calculated for the i-th cycle column; and
[0055] -qccnt is a counter for the circular column.
[0056] The algorithm for the CQ estimator based on group sorting includes an initialization step and a processing step for cyclic columns.
[0057] During the initialization process, the pointer is set to the next available slot for each segment:
[0058] qccs5pt = 1;
[0059] qccs4pt = 1;
[0060] qccs3pt = 1;
[0061] qccs2pt = 1;
[0062] colperm = zeros(1, 129);
[0063] qccnt = 0;
[0064] The processing steps involve calculating the column quality of the i-th loop column and performing the following operations to insert the column index into the sorted array:
[0065]
[0066]
[0067] In some embodiments, the algorithm for the group-ranked CQ estimator includes:
[0068] Sorting occurs during data transmission and initial checksum calculation. While data is being transmitted from the external data buffer to the decoder's internal buffer, the initial checksum is calculated, and the maximum column quality in each loop column is recorded as cq. Sorting is performed during cq calculation so that at the end of data transmission, the loop columns are sorted in descending order of cq.
[0069] Sorting is performed during decoding. During decoding, the decoder can process columns in sorted order (e.g., based on the sorting operation in the previous iteration). During decoding, the cq of the column being processed is calculated, while a new sorting operation is run for the current iteration. Therefore, as mentioned earlier, two arrays of int8 values are needed to store the results of the sorting operation.
[0070] CRC Calculation. When the decoder converges, a CRC check is performed to ensure it passes. If the decoder processes columns in an unordered manner, a CRC calculation cannot be performed. To perform a CRC calculation, the decoder switches to ordered mode when the checksum falls below a certain threshold, or when decoding is about to converge. In ordered processing mode, the CRC is calculated and convergence is checked.
[0071] Column skipping. In the later stages of decoding, few errors remain, and most columns are error-free. In this case, the out-of-order BF decoder can skip columns where cq equals 0 and does not need to be processed. This operation can reduce latency and improve throughput. It is important to note that column skipping and operating in ordered mode (e.g., for CRC calculation) cannot be enabled simultaneously.
[0072] In some embodiments, the above operations are performed in Figure 7 It is further explained in the context of Figure 7 A flowchart illustrating an example method for reducing the latency of a decoder in non-volatile memory is shown. Figure 7 As shown, data transfer and initial column sorting operations are performed first (710). If the checksum (CS) is zero ("Yes" at 705), the decoding operation succeeds (720), and the BF decoder can return the determined candidate codewords. However, if CS is not equal to zero ("No" at 705), CS is compared with a first threshold T1 (725). Threshold T1 is configured to have a high value (compared to other thresholds such as T2 and T3), such that if CS is greater than T1 ("Yes" at 725), then unordered iteration is performed because that particular column is largely (especially) noisy (or error-prone) based on its CS exceeding the highest threshold. This allows the algorithm to first focus on decoding columns with fewer errors. After unordered iteration, it is checked whether the maximum number of iterations has been reached (775).
[0073] On the other hand, if CS is less than T1 ("No" at 725), then CS is compared with the second threshold T2 (735). If CS is greater than T2 ("No" at 735), which means that there are still a considerable number of errors in the column, then an unordered iteration with column skipping is performed (740), and then it is checked whether the maximum number of iterations has been reached (775).
[0074] If CS is less than T2 (yes at 735), then ordered (IO) iterations and CRC calculation are performed (750). If the CRC passes and CS is less than the third threshold T3 (yes at 765), then the decoding operation succeeds (720). The threshold T3 is configured to be lower than both T1 and T2 to ensure that if CS is less than T3, the algorithm can declare that the decoding operation has succeeded. If the CRC fails or CS is greater than T3 (no at 765), the algorithm checks whether the maximum number of iterations has been reached (775). If the maximum number of iterations has been reached (yes at 775), then decoding fails (770), but if this is not the case (no at 775), then decoding continues.
[0075] In some embodiments, the maximum number of iterations is a predefined value.
[0076] In some embodiments, Figure 7 The method described can be configured to use more than three thresholds (e.g., T1≥T2≥T3≥……≥T). N In this example, T1 and T N Corresponding to Figure 7 T1 and T3 (corresponding to the highest and lowest thresholds, respectively) are used, and multiple intermediate thresholds T2, T3, ..., T can be used. (N-1) to replace Figure 7The single threshold T2 in the table. CS can be compared with each intermediate threshold to determine whether a column should be temporarily or permanently skipped, and in what order a particular cyclic column should be processed to reduce latency and improve convergence.
[0077] Figure 8 A flowchart of an example method 800 for reducing the latency of a decoder in non-volatile memory is shown. Method 800 includes, at operation 810, receiving a noisy codeword based on a transmitted codeword generated from a low-density parity-check (LDPC) code having an associated parity-check matrix comprising a plurality of cyclic matrix columns.
[0078] Method 800 includes, at operation 820, performing a sorting operation that sorts a plurality of circular matrix columns in descending order of a first quality metric to generate a plurality of sorted circular matrix columns, the first quality metric indicating the number of errors in the respective circular matrix columns.
[0079] Method 800 includes, at operation 830, iteratively processing multiple sorted circular matrix columns to determine candidate versions of the transmitted codeword.
[0080] In some embodiments, iteratively processing the plurality of sorted columns for each of a plurality of sorted circular matrix columns includes: determining a second quality metric indicating the number of errors in the column; comparing the second quality metric with at least one threshold; and selectively processing the columns in order determined by the sorting operation in response to the comparison, wherein processing the columns includes performing a message passing algorithm between a plurality of variable nodes and a plurality of check nodes of a parity check matrix representing LDPC codes to determine candidate versions of the transmitted codewords.
[0081] In one example, selectively processing columns according to the order determined by the sorting operation includes: processing columns in a first order if the second quality metric is greater than a threshold; and processing columns in a second order if the second quality metric is less than or equal to the threshold. In another example, selectively processing columns according to the order determined by the sorting operation includes: processing columns in the determined order if the second quality metric is greater than or equal to a threshold; and not processing columns if the second quality metric is less than the threshold (and vice versa).
[0082] In some embodiments, method 800 further includes: determining a first quality metric for each of a plurality of cyclic matrix columns before performing a sorting operation, wherein the first quality metric is based on the number of unsatisfied check nodes associated with bits in the corresponding cyclic column.
[0083] In some embodiments, the first quality metric is the maximum number of unsatisfied check nodes across all bits in the corresponding cyclic column.
[0084] In some embodiments, the first quality metric is the average number of unsatisfied check nodes across all bits in the corresponding cyclic column.
[0085] In some embodiments, the second quality metric is a checksum.
[0086] In some embodiments, the first quality metric is a checksum.
[0087] In some embodiments, at least one threshold is selected from a first threshold (T1) and one or more intermediate thresholds (T1). N-1 ) and final threshold (T) N Multiple thresholds, where T1 <T N-1 <T N For example, such as Figure 7 As shown, N = 3. In other embodiments, one or more intermediate thresholds (T2, T3, ..., T...) can be selected. N-1 ), making T1 <T2<T3<…<T N-1 <T N .
[0088] In some embodiments, at least one threshold is a first threshold, and as part of selectively processing columns, method 800 further includes: in response to a second quality metric exceeding the first threshold, prohibiting processing of the column corresponding to the second quality metric.
[0089] In some embodiments, at least one threshold is one of one or more intermediate thresholds, and as part of selectively processing columns, method 800 further includes: in response to a second quality metric being less than the threshold among one or more intermediate thresholds, processing columns corresponding to the second quality metric in an order determined by a sorting operation, and calculating cyclic redundancy check (CRC) for a plurality of circular matrix columns.
[0090] In some embodiments, at least one threshold is a final threshold, and as part of selectively processing columns, method 800 further includes: prohibiting subsequent iterations in response to a second quality metric being less than the final threshold and a CRC passing.
[0091] In some embodiments, method 800 further includes: prohibiting subsequent iterations when it is determined that the checksum of a candidate transmitted codeword is equal to zero or the maximum number of iterations has been performed.
[0092] The disclosed embodiments include an apparatus for reducing the latency of a decoder in non-volatile memory. The apparatus includes a processor and a memory, the memory including instructions stored thereon, wherein the instructions, when executed by the processor, cause the processor to: receive a noisy codeword based on a transmitted codeword generated from a low-density parity-check (LDPC) code having an associated parity-check matrix comprising a plurality of cyclic matrix columns; perform a sorting operation that sorts the plurality of cyclic matrix columns in descending order of a first quality metric to generate a plurality of sorted cyclic matrix columns, the first quality metric indicating the number of errors in the respective cyclic matrix columns; and iteratively process the plurality of sorted cyclic matrix columns to determine candidate versions of the transmitted codeword. For each of the plurality of sorted cyclic matrix columns, when the instructions are executed by the processor, the processor causes the processor to perform the following as part of iteratively processing the plurality of sorted columns: determine a second quality metric indicating the number of errors in the column; compare the second quality metric with at least one threshold; and selectively process the column in the order determined by the sorting operation in response to the comparison. In this paper, the processing column includes performing a message passing algorithm between multiple variable nodes and multiple parity nodes of the parity check matrix representing the LDPC code to determine candidate versions of the transmitted codeword.
[0093] Figure 9 This is an example diagram illustrating a storage device that can be configured to implement the described embodiments. (Refer to...) Figure 9 The data storage device 900 may include a flash memory 910, a memory controller 920, and a bit-flip (BF) decoder 930. The memory controller 920 may control the flash memory 910 and the BF decoder 930 in response to control signals input externally to the data storage device 900. In the data storage device 900, the flash memory 910 may be configured to be the same as or substantially the same as a non-volatile memory device. That is, the flash memory 910 may read data from selected memory cells to output it to the memory controller 920. Based on the embodiments described in this document, the read data may be decoded using the BF decoder 930 before being output to the memory controller 920.
[0094] In some embodiments, the data storage device 900 may be a memory card device, an SSD device, a multimedia card device, an SD card, a memory stick device, an HDD device, a hybrid drive device, or a USB flash drive device. For example, the data storage device 900 may be a card that conforms to the standards of user devices such as digital cameras and personal computers.
[0095] In some embodiments, the BF decoder 930 can be used to implement Figure 7 and Figure 8 The methods described herein, and the embodiments described in this patent document.
[0096] The embodiments of the subject matter and functional operation described in this patent document can be implemented in various systems, digital electronic circuits, or computer software, firmware, or hardware including the structures disclosed in this specification and their equivalents, or in a combination of one or more of these. Embodiments 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 operation by a data processing device or for controlling the operation of a data processing device. The computer-readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a material composition affecting machine-readable propagation signals, or a combination of one or more of these. The terms "data processing unit" or "data processing device" encompass all devices, apparatuses, and machines for processing data, including, for example, programmable processors, computers, or multiple processors or computers. In addition to hardware, the device may include code that creates an execution environment for the computer program in question, such as code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of these.
[0097] Computer programs (also known as programs, software, software applications, scripts, or code) can be written in any form of programming language, including compiled or interpreted languages, and can be configured in any form, including as standalone programs or as modules, components, subroutines, or other units suitable for a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored as a portion of a file that contains 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 coordinating files (e.g., a file storing one or more modules, subroutines, or code sections). Computer programs can be deployed to execute on a single computer or on multiple computers located at a site or distributed across multiple sites and interconnected via a communication network.
[0098] The processes and logic flows described in this specification can be executed by one or more programmable processors running one or more computer programs to perform functions by manipulating input data and generating outputs. These processes and logic flows can also be executed by special-purpose logic circuitry, and the device can also be implemented as special-purpose logic circuitry, such as an FPGA (Field-Programmable Gate Array) or an ASIC (Application-Specific Integrated Circuit).
[0099] Processors suitable for running computer programs include, for example, general-purpose and special-purpose microprocessors, and any one or more processors in any type of digital computer. Typically, the processor receives instructions and data from read-only memory or random access memory, or both. The key components of a computer are the processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as magneto-, magneto-optical, or optical discs, or operatively coupled thereto to receive data or transfer data to or from them, or both. However, a computer does not necessarily need to 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, for example, semiconductor memory devices (e.g., EPROM, EEPROM, flash memory devices). The processor and memory may be supplemented by or incorporated into special-purpose logic circuitry.
[0100] Although this patent document contains numerous details, these details should not be construed as limiting any invention or the scope of the claims, but rather as descriptions of features specific to particular embodiments of a particular invention. Certain features described in this patent document in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. Furthermore, although features may be described above as functioning in certain combinations and even initially claimed in this way, in some cases one or more features may be removed from the claimed combination, and the claimed combination may involve sub-combinations or variations thereof.
[0101] Similarly, although operations are depicted in a specific order in the accompanying drawings, this should not be construed as requiring such operations to be performed in the specific order shown or in a sequential order, or to perform all the operations shown, in order to achieve the desired result. Furthermore, the separation of various system components in the embodiments described in this patent document should not be construed as requiring such separation in all embodiments.
[0102] Only some implementation schemes and examples are described, and other implementation schemes, improvements and variations may be made based on the content described and shown in this patent document.
Claims
1. A method for reducing latency of a decoder in non-volatile memory, comprising: Receive a noisy codeword, the noisy codeword being based on a transmission codeword generated from a low-density parity-check code, i.e., an LDPC code, the LDPC code having an associated parity-check matrix, the parity-check matrix comprising multiple cyclic matrix columns; A sorting operation is performed, which sorts the plurality of circular matrix columns in descending order of a first quality metric to generate a plurality of sorted circular matrix columns, wherein the first quality metric indicates the number of errors in the corresponding circular matrix column; as well as The plurality of sorted cyclic matrix columns are iteratively processed to determine candidate versions of the transmitted codeword. Specifically, for each column of the plurality of sorted circular matrix columns, iteratively processing the plurality of sorted columns includes: Determine a second quality metric that indicates the number of errors in the column. The second quality metric is compared with at least one threshold, and In response to the comparison, the columns are selectively processed according to the order determined by the sorting operation. Selectively processing the columns includes performing a message passing algorithm between multiple variable nodes and multiple check nodes of the parity check matrix representing the LDPC code to determine the candidate version of the transmitted codeword.
2. The method according to claim 1, further comprising: Before performing the sorting operation, a first quality metric is determined for each of the plurality of cyclic matrix columns, wherein the first quality metric is based on the number of unsatisfied check nodes associated with bits in the corresponding cyclic matrix column.
3. The method according to claim 2, wherein, The first quality metric is the maximum number of unsatisfied check nodes across all bits in the corresponding cyclic matrix column.
4. The method according to claim 2, wherein, The first quality metric is the average number of unsatisfied check nodes for all bits in the corresponding cyclic matrix column.
5. The method according to claim 1, wherein, The second quality metric is the checksum.
6. The method according to claim 5, wherein, The first quality metric is the checksum.
7. The method according to claim 1, wherein, The at least one threshold is selected from a group including the first threshold. T 1. One or more intermediate thresholds T N-1 and final threshold T N Multiple thresholds, and T 1< T N-1 < T N .
8. The method according to claim 7, wherein, The at least one threshold is the first threshold, and as part of selectively processing the column, the method includes: In response to the second quality metric exceeding the first threshold, processing of the column corresponding to the second quality metric is prohibited.
9. The method according to claim 7, wherein, The at least one threshold is one of the one or more intermediate thresholds, and as part of selectively processing the column, the method includes: In response to the second quality metric being less than one of the one or more intermediate thresholds, The columns corresponding to the second quality metric are processed in the order determined by the sorting operation, and Calculate the cyclic redundancy check (CRC) for the multiple cyclic matrix columns.
10. The method according to claim 9, wherein, The at least one threshold is the final threshold, and as part of selectively processing the column, the method includes: In response to the second quality metric being less than the final threshold and the CRC passing, subsequent iterations are prohibited.
11. A system for reducing the latency of a decoder in non-volatile memory, comprising: A processor and memory, the memory including instructions stored in the memory, wherein the instructions, when executed by the processor, cause the processor to: Receive a noise codeword, the noise codeword being based on a transmission codeword generated from a low-density parity-check code, i.e., an LDPC code, the LDPC code having an associated parity-check matrix, the associated parity-check matrix comprising multiple cyclic matrix columns; A sorting operation is performed, which sorts the plurality of circular matrix columns in descending order of a first quality metric to generate the plurality of sorted circular matrix columns, wherein the first quality metric indicates the number of errors in the respective circular matrix column; and The plurality of sorted cyclic matrix columns are iteratively processed to determine candidate versions of the transmitted codeword. Wherein, for each column of the plurality of sorted circular matrix columns, the instruction, when executed by the processor, causes the processor to perform the following operation as part of iteratively processing the plurality of sorted columns: Determine a second quality metric that indicates the number of errors in the column. The second quality metric is compared with at least one threshold, and In response to the comparison, the columns are selectively processed according to the order determined by the sorting operation. The processing of the column includes performing a message passing algorithm between multiple variable nodes and multiple check nodes of the parity check matrix representing the LDPC code to determine candidate versions of the transmitted codeword.
12. The system according to claim 11, wherein, The instruction, when executed by the processor, causes the processor to: Before performing the sorting operation, a first quality metric is determined for each of the plurality of cyclic matrix columns, wherein the first quality metric is based on the number of unsatisfied check nodes associated with bits in the corresponding cyclic matrix column.
13. The system according to claim 11, wherein, The first quality metric is the maximum or average number of unsatisfied check nodes in all bits of the corresponding cyclic matrix column.
14. The system according to claim 11, wherein, The at least one threshold is selected from a group including the first threshold, i.e. T 1. One or more intermediate thresholds T N-1 and the final threshold T N Multiple thresholds, and T 1< T N-1 < T N .
15. The system according to claim 14, wherein, The at least one threshold is the first threshold, and the instruction, when executed by the processor, causes the processor to perform the following operation as part of selectively processing the column: In response to the second quality metric exceeding the first threshold, processing of the column corresponding to the second quality metric is prohibited.
16. The system according to claim 14, wherein, The at least one threshold is one of the one or more intermediate thresholds, and the instruction, when executed by the processor, causes the processor to perform the following operation as part of selectively processing the column: In response to the second quality metric being less than one of the one or more intermediate thresholds, Process the columns corresponding to the second quality metric in the order determined by the sorting operation, and Calculate the cyclic redundancy check (CRC) for the multiple cyclic matrix columns.
17. The system according to claim 16, wherein, The at least one threshold is the final threshold, and the instruction, when executed by the processor, causes the processor to perform the following operation as part of selectively processing the column: In response to the second quality metric being less than the final threshold and the CRC passing, subsequent iterations are prohibited.
18. The system according to claim 11, wherein, When the instruction is executed by the processor, it causes the processor to perform the following operations as part of selectively processing the column: In response to the second quality metric being greater than the at least one threshold, the columns are processed in a first order; and In response to the second quality metric being less than or equal to the at least one threshold, the column is processed in a second order.
19. The system according to claim 11, wherein, When the instruction is executed by the processor, it causes the processor to perform the following operations as part of selectively processing the column: In response to the second quality metric being less than or equal to the at least one threshold, the columns are processed in the order determined by the sorting operation; and In response to the second quality metric being greater than the at least one threshold, processing of the column is prohibited.
20. A non-transitory computer-readable storage medium storing instructions thereon for reducing latency of a decoder in non-volatile memory, the instructions, when executed by a processor, causing the processor to perform operations including: Receive a noisy codeword, the noisy codeword being based on a transmission codeword generated from a low-density parity-check code, i.e., an LDPC code, the LDPC code having an associated parity-check matrix, the parity-check matrix comprising multiple cyclic matrix columns; A sorting operation is performed, which sorts the plurality of circular matrix columns in descending order according to a first quality metric to generate a plurality of sorted circular matrix columns, wherein the first quality metric indicates the number of errors in the corresponding circular matrix column; as well as The plurality of sorted cyclic matrix columns are iteratively processed to determine candidate versions of the transmitted codeword. Specifically, for each column of the plurality of sorted circular matrix columns, iteratively processing the plurality of sorted columns includes: Determine a second quality metric that indicates the number of errors in the column. The second quality metric is compared with at least one threshold, and In response to the comparison, the columns are selectively processed according to the order determined by the sorting operation. The processing of the column includes performing a message passing algorithm between multiple variable nodes and multiple check nodes of the parity check matrix representing the LDPC code to determine the candidate version of the transmitted codeword.
Citation Information
Patent Citations
Memory sub-system codeword quality metrics streaming
US20200019460A1
Out-of-order processing for bit-flipping decoders in non-volatile memory devices
US20210359705A1
