Concatenated error correction code
By using an iterative decoding scheme that concatenates BCH and LDPC codes, the error plateau problem of LDPC codes is solved, the convergence speed of the LDPC decoder is improved, and the performance of data transmission and storage systems is enhanced.
Patent Information
- Application Number
- CN202210518127.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-06-01
- Filing Date
- 2022-05-12
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-05-12
AI Technical Summary
Low-density parity-check (LDPC) codes suffer from error plateaus and slow convergence speed of LDPC decoders, which affects system throughput.
A concatenated encoding scheme of Bose-Chaudhuri-Hocquenghem (BCH) code and QC-LDPC code is adopted. Through an iterative concatenated decoding process, the LDPC decoder and BCH decoder are combined, and the BCH scheduler is used to decide whether to activate the BCH decoder during the LDPC decoding process to improve decoding efficiency.
This reduces the error plateau of LDPC decoding, improves the convergence speed of the LDPC decoder, and enhances the data transmission and storage efficiency of the system.
Smart Images

Figure CN115276673B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to protecting data from corruption using parity check data, and more specifically to protecting data using concatenated error correction codes. Background Technology
[0002] A common problem in many data communication or storage systems is data corruption, for example, due to noise during write / read operations in the communication channel or storage system. One technique to address data corruption is the use of error-correcting codes (ECC) or forward error-correcting codes (FEC). ECC and FEC add redundant or parity data to the user data so that even if many errors are introduced during transmission to memory or during corruption (depending on the capabilities of the codes used), the user data can still be recovered by the receiver or reader.
[0003] Over the years, many different coding schemes have been developed, such as Hamming codes, Reed-Solomon codes, and Turbo codes. Recently, Low-Density Parity-Check (LDPC) codes have been widely used due to their excellent error correction capabilities. However, LDPC codes have a well-known error floor problem. One way to reduce the error floor of LDPC codes is to minimize the number of harmful graph patterns in the parity check matrix (e.g., trap sets, stopping sets, absorption sets) that cause the error floor. Furthermore, quasi-cyclic LDPC codes are used because their quasi-cyclic properties make hardware implementation easier. However, error floors are difficult to eliminate through code construction, and the convergence speed of the LDPC decoder has a significant impact on system throughput. Summary of the Invention
[0004] The system and method of this invention provide a novel ECC scheme to reduce the error plateau of low-density parity-check (LDPC) codes (e.g., quasi-cyclic LDPC codes) and improve the convergence speed of LDPC decoders. The encoding scheme may include a concatenation of Bose-Chaudhuri-Hocquenghem (BCH) codes and QC-LDPC codes, and the encoded codewords can be decoded through an iterative concatenated decoding process involving both LDPC decoders and BCH decoders. In various embodiments, after each iteration of the iterative LDPC decoding process, a BCH scheduler can be used to determine whether the BCH decoder can be activated to process the intermediate decoding results of the LDPC decoder. The decoding results of the BCH decoder can be fed back to the LDPC decoder for the next LDPC decoding iteration.
[0005] In some embodiments, the BCH decoder can be configured to perform BCH decoding. In some other embodiments, the BCH decoder can be simplified to a checksum calculator for calculating BCH checksums for BCH error detection. The cascaded ECC scheme can reduce the error plateau of any LDPC decoding algorithm and can be used to accelerate the convergence of any LDPC decoding algorithm (e.g., BP, min-sum, BF, etc.). In at least one embodiment, the cascaded ECC scheme is implemented in a solid-state drive (SSD) controller.
[0006] In one exemplary embodiment, a method is provided that may include: reading bits of a low-density parity-check (LDPC) codeword from a non-volatile storage device; feeding the bits of the LDPC codeword read from the non-volatile storage device to an LDPC decoder; and performing an iterative concatenated decoding process on the LDPC codeword by inserting one or more Bose-Chaudhuri-Hocquenghem (BCH) decoding processes during the iterative LDPC decoding process. The LDPC codeword may be generated by LDPC encoding a BCH codeword, and the BCH codeword may be generated by BCH encoding data units. The iteration of the iterative cascaded decoding process may include: performing an LDPC decoding iteration of the iterative LDPC decoding process on the LDPC codeword to generate an intermediate LDPC decoding result; determining that the LDPC checksum of the intermediate LDPC decoding result does not reach zero; using the BCH scheduler to determine whether the triggering condition for BCH decoding is met; when the triggering condition for BCH decoding is met, performing the BCH decoding process on the intermediate LDPC decoding result; when the triggering condition for BCH decoding is not met or the BCH decoding process has been performed but has not successfully decoded the BCH codeword, performing the next iteration of the iterative cascaded decoding process.
[0007] In another exemplary embodiment, a different method is provided, which may include: reading bits of a low-density parity-check (LDPC) codeword from a non-volatile storage device; feeding the bits of the LDPC codeword read from the non-volatile storage device to an LDPC decoder; and performing an iterative concatenated decoding process on the LDPC codeword by inserting one or more Bose-Chaudhuri-Hocquenghem (BCH) checksum calculations during the iterative LDPC decoding process. The LDPC codeword may be generated by LDPC-encoded BCH codewords, and the BCH codewords may be generated by BCH-encoded data units. The iteration of the iterative cascaded decoding process may include: performing LDPC decoding iterations on the LDPC codeword to generate intermediate LDPC decoding results; determining that the LDPC checksum of the intermediate LDPC decoding results does not reach zero; using the BCH scheduler to determine whether the triggering condition for BCH checksum calculation is met; when the triggering condition for BCH checksum calculation is met, calculating the BCH checksum for BCH error detection on the intermediate LDPC decoding results; and when the triggering condition for BCH checksum calculation is not met or the BCH checksum does not reach zero, executing the next iteration of the iterative cascaded decoding process.
[0008] In yet another exemplary embodiment, an apparatus is provided that may include: a low-density parity-check (LDPC) decoder configured to perform an iterative LDPC decoding process on bits of an LDPC codeword; a Bose-Chaudhuri-Hocquenghem (BCH) decoder coupled to the LDPC decoder; and a BCH scheduler coupled to the LDPC decoder and the BCH decoder. The LDPC codeword may be generated by LDPC encoding of a Bose-Chaudhuri-Hocquenghem (BCH) codeword, and the BCH codeword may be generated by BCH encoding data units. The BCH scheduler may be configured to determine, after each iteration of the iterative LDPC decoding process, whether a trigger condition of the BCH decoder is met, and if the trigger condition of the BCH decoder is met, to activate the BCH decoder to operate on intermediate decoding results of the LDPC decoder. Brief description of the attached figures
[0009] Figure 1 A non-volatile memory controller according to an embodiment of the present invention is illustrated schematically.
[0010] Figure 2 An coded data path according to an embodiment of the present invention is illustrated schematically.
[0011] Figure 3 This is a flowchart of a process for performing cascaded ECC according to an embodiment of the present invention.
[0012] Figure 4 An iterative cascaded decoding process according to an embodiment of the present invention is illustrated schematically.
[0013] Figure 5 This is a flowchart of a process for performing cascaded ECC according to another embodiment of the present invention.
[0014] Figure 6 An iterative cascaded decoding process according to another embodiment of the present invention is illustrated schematically. Detailed Implementation
[0015] Specific embodiments according to the invention will now be described in detail with reference to the accompanying drawings. For consistency, similar elements in the various drawings are indicated by similar reference numerals.
[0016] Figure 1 A non-volatile memory controller 100 according to an embodiment of the present invention is schematically illustrated. The non-volatile memory controller 100 may include a processor 102, an ECC engine 104, a first interface 106, and a second interface 108. The first interface 106 may be any existing or yet-to-be-developed interface configured to couple the non-volatile memory controller 100 to the system bus of a host computer system, and to receive and send data from the host computer system. In one embodiment, for example, the first interface 106 may be a Peripheral Component Interconnect Express (PCIe) interface. The second interface 108 may be any existing or yet-to-be-developed interface configured to couple the memory controller 100 to one or more non-volatile memory (NVM) devices. In one embodiment, the second interface 108 may be a multi-channel interface configured to transmit encoded data (e.g., ECC codewords) in parallel across multiple channels. For example, the second interface 108 may be an Open NAND Flash Interface (ONFI) that supports different protocols (e.g., Non-Volatile Double Data Rate (NVDDR), NVDDR Type 2 (NVDDR2), NVDDR Type 3 (NVDDR3)), or it may be the Toggle protocol and operate at different transfer speeds.
[0017] Processor 102 may be a microcontroller unit (MCU) configured to execute executable instructions (e.g., software or firmware). In various embodiments, processor 102 may be a microprocessor, microcontroller, field-programmable gate array (FPGA), or application-specific integrated circuit (ASIC). Non-volatile memory controller 100 may receive commands from a host via a first interface 106, such as to store data into the non-volatile memory system (e.g., a write command) or to read data stored in the non-volatile memory system (e.g., a read command).
[0018] ECC engine 104 may include encoders for performing BCH encoding and LDPC encoding, such as BCH encoder 110 and LDPC encoder 112. ECC engine 104 may also include decoders, such as BCH decoder 118 and LDPC decoder 114. LDPC decoder 114 may be configured to perform an iterative LDPC decoding process, such as, but not limited to, bit-flipping or message passing algorithms (MPA) (e.g., sum-product algorithm (“SPA”), min-sum algorithm, random decoding algorithm). In some embodiments, quasi-cyclic LDPC codes may be used for LDPC encoding.
[0019] ECC engine 104 may also include a BCH scheduler 116 coupled to LDPC decoder 114 and BCH decoder 118. After each iteration of the LDPC decoding process, some information about the LDPC decoding process can be passed from LDPC decoder 114 to BCH scheduler 116. The input to the BCH scheduler may include one or more of the following: LDPC iteration number, LDPC column index, LDPC layer index, LDPC checksum, number of toggled bits in the LDPC decoding iteration, and number of toggled bits in the previous LDPC decoding iteration.
[0020] ECC engine 104 can be configured to perform an iterative concatenated decoding process by inserting one or more BCH decoding processes (or BCH checksum calculation processes) during the iterative LDPC decoding process. In some embodiments, the iteration of the iterative concatenated decoding process may include: performing an LDPC decoding iteration of the iterative LDPC decoding process on the LDPC codeword to produce an intermediate LDPC decoding result, determining that the LDPC checksum of the intermediate LDPC decoding result does not reach zero, using BCH scheduler 116 to determine whether the triggering condition for BCH decoding (or BCH checksum calculation) is met, activating BCH decoder 118 when the triggering condition for BCH decoding (or BCH checksum calculation) is met, and executing the next iteration of the iterative concatenated decoding process when the triggering condition for BCH decoding (or BCH checksum calculation) is not met, or when BCH decoder 118 is activated but BCH decoding by BCH decoder 118 is unsuccessful (or BCH error detection reports an error). If BCH decoding is performed, the BCH decoding result can be fed from BCH decoder 118 to LDPC decoder 114.
[0021] In some embodiments, the BCH decoder 118 may be simplified to a BCH checksum calculator for BCH error detection, rather than a full version of the BCH decoder for BCH decoding. In these embodiments, the triggering condition for BCH decoding may be replaced by a triggering condition calculated by the BCH checksum. In any case, the triggering condition may be referred to as the triggering condition for activating the BCH decoder 118 or the triggering condition for the BCH decoder 118. In one embodiment, the triggering condition for the BCH decoder 118 may be that the number of toggled bits in the current LDPC iteration is zero and the LDPC checksum is greater than zero. In another embodiment, the triggering condition for the BCH decoder 118 may be that the number of "1"s in the LDPC checksum is less than a predetermined threshold (e.g., 64). In yet another embodiment, the triggering condition for the BCH decoder 118 may be that both the number of toggled bits in the current LDPC iteration and the number of toggled bits in previous LDPC iterations are less than a threshold. In yet another embodiment, the triggering condition for the BCH decoder 118 may be that the current LDPC iteration number is not less than a predetermined threshold.
[0022] Figure 2An encoded data path according to an embodiment of the present invention is schematically illustrated. Data protected by a cascaded ECC scheme (e.g., data unit 202) can be encoded by a BCH encoder 110. A BCH codeword 208 can be generated by the BCH encoder 110, and the BCH codeword 208 may include the data unit 202 and a BCH parity check unit 204. The BCH codeword 208 can then be encoded by an LDPC encoder 112. An LDPC codeword 210 can be generated by the LDPC encoder 112. The LDPC codeword 210 may include the data unit 202, the BCH parity check unit 204, and the LDPC parity check unit 206. The LDPC codeword 210 can be stored in a non-volatile storage device, such as a non-volatile memory (NVM) device. In some embodiments, one LDPC codeword can be generated by LDPC encoding multiple BCH codewords. Furthermore, in some embodiments, one LDPC codeword can be distributed to be stored on multiple dies of one or more NVM devices.
[0023] Figure 3 This is a flowchart of a process 300 for performing cascaded ECC decoding according to an embodiment of the present invention. In block 302, bits of a low-density parity-check (LDPC) codeword can be read from a non-volatile storage device. These bits may contain errors and may be referred to as raw bits. The LDPC codeword can be generated by LDPC encoding a Bose-Chaudhuri-Hocquenghem (BCH) codeword, and the BCH codeword can be generated by BCH encoding data units. In some embodiments, multiple BCH codewords can be encoded together by LDPC encoding to generate a single LDPC codeword. In block 304, bits of the LDPC codeword read from the non-volatile storage device can be fed to an LDPC decoder. For example, raw bits read from an NVM can be fed to LDPC decoder 114, and LDPC decoding begins on these bits read from the NVM. In block 306, an iterative cascaded decoding process can be performed on the LDPC codeword. LDPC decoder 114 can be configured to perform an iterative LDPC decoding process, and one or more BCH decoding processes can be inserted into the iterative LDPC decoding process. In some embodiments, the BCH decoder 118 may be a full-fledged BCH decoder, and the BCH decoding process may be performed by the full-fledged BCH decoder.
[0024] Figure 4An iterative cascaded decoding process 400 according to an embodiment of the present invention is schematically illustrated. The iteration of the iterative cascaded decoding process 400 may begin at block 402, where an LDPC decoding iteration of the iterative LDPC decoding process can be performed on the LDPC codeword to produce an intermediate LDPC decoding result. In block 404, it can be determined that the LDPC checksum of the intermediate LDPC decoding result has not reached zero. In block 406, a BCH scheduler can be used to determine whether the triggering condition for BCH decoding is met. In block 408, when the triggering condition for BCH decoding is met, a BCH decoding process can be performed on the intermediate LDPC decoding result. For example, in an embodiment where BCH decoder 118 is a complete BCH decoder, the complete BCH decoding process (including BCH decoding and BCH checksum calculation) can be performed by BCH decoder 118.
[0025] In box 410, the next iteration of the iterative concatenated decoding process can be executed if the triggering condition for BCH decoding is not met or if the BCH decoding process has been performed but failed. The iterative concatenated decoding process can continue to the next iteration if either of the following two conditions is met: One condition is that the triggering condition for activating the BCH decoder is not met, in which case the iterative concatenated decoding process can begin the next LDPC iteration. The other condition is that the BCH decoder is activated but BCH decoding fails. That is, the BCH decoder has not yet successfully decoded the BCH codeword, therefore the next iteration of the iterative concatenated decoding process is required.
[0026] Figure 5This is a flowchart of a process 500 for performing cascaded ECC decoding according to another embodiment of the present invention. In block 502, bits of a low-density parity-check (LDPC) codeword can be read from a non-volatile storage device. These bits may be raw bits containing errors. The LDPC codeword can be generated by LDPC encoding a Bose-Chaudhuri-Hocquenghem (BCH) codeword, and the BCH codeword can be generated by BCH encoding data units. In some embodiments, multiple BCH codewords can be encoded together by LDPC encoding to generate a single LDPC codeword. In block 504, bits of the LDPC codeword read from the non-volatile storage device can be fed to an LDPC decoder. For example, raw bits read from an NVM can be fed to LDPC decoder 114, and LDPC decoding can begin on these bits read from the NVM. In block 506, an iterative cascaded decoding process can be performed on the LDPC codeword. LDPC decoder 114 can be configured to perform an iterative LDPC decoding process. In some embodiments, the BCH decoder 118 may be a simplified version containing only a BCH checksum calculator for BCH error detection, and one or more BCH checksum calculation processes may be inserted into the iterative LDPC decoding process. Each of the one or more BCH checksum calculation processes may calculate a BCH checksum for BCH error detection.
[0027] Figure 6 An iterative cascaded decoding process 600 according to an embodiment of the present invention is schematically illustrated. The iteration of the iterative cascaded decoding process 600 may begin at block 602, where an LDPC decoding iteration of the iterative LDPC decoding process can be performed on the LDPC codeword to produce an intermediate LDPC decoding result. In block 604, it can be determined that the LDPC checksum of the intermediate LDPC decoding result has not reached zero. In block 606, a BCH scheduler can be used to determine whether the triggering condition for BCH checksum calculation is met. In block 608, when the triggering condition for BCH checksum calculation is met, a BCH checksum for BCH error detection can be calculated on the intermediate LDPC decoding result. In an embodiment where the BCH decoder 118 is a simplified version including a BCH checksum calculator but without other BCH decoding circuitry, the BCH checksum calculator can calculate the BCH checksum for BCH error detection.
[0028] In box 610, the next iteration of the iterative concatenated decoding process can be executed if the triggering condition for BCH checksum calculation is not met or the BCH checksum used for BCH error detection calculation has not reached zero. The iterative concatenated decoding process can continue to the next iteration if either of the following two conditions is met: One condition is that the triggering condition for BCH checksum calculation is not met, in which case the iterative concatenated decoding process can begin the next LDPC iteration. The other condition is that the triggering condition for BCH checksum calculation is met, but the BCH checksum used for BCH error detection calculation has not reached zero. That is, after the LDPC decoding process, the data units of the BCH codeword still contain errors and have not been successfully recovered, therefore the next iteration of the iterative concatenated decoding process is required.
[0029] It should be noted that the first iteration can begin with the raw bits obtained from the NVM device, but subsequent iterations can operate on the previous decoding results. Furthermore, if a BCH decoding process is performed, the next LDPC iteration can operate on the decoding results produced by the BCH decoding process. Decoding is considered successful whenever the LDPC checksum reaches zero after an LDPC decoding iteration or the BCH checksum reaches zero (e.g., after a BCH decoding process or BCH error detection). The iterative cascaded decoding process can have a preset maximum number of iterations. Decoding failure can be declared when the iterative cascaded decoding process has reached the maximum number of iterations but has still not successfully completed decoding.
[0030] In some embodiments, the LDPC decoder 114 can be an iterative decoder, and the BCH decoding process can be inserted between multiple LDPC iterations. As long as the number of residual errors in the data portion of the intermediate LDPC decoding result is less than the decoding capability of the BCH, the data portion can be corrected by the BCH decoder instead of waiting for the LDPC decoder to continue the LDPC decoding process. By introducing BCH error decoding into the iterations of the LDPC decoder, the convergence speed of the LDPC decoder can be improved. Conversely, if the BCH decoder is not activated, the LDPC decoder can correct these residual errors in future iterations, or the LDPC decoder may fail to correct these errors after completing a preset maximum number of iterations. In both cases, the decoding process may introduce longer delays. Therefore, embodiments of the present invention can achieve decoding success earlier than conventional decoding processes and can terminate the decoding process as soon as possible.
[0031] In one exemplary embodiment, a method is provided that may include reading bits of a low-density parity-check (LDPC) codeword from a non-volatile storage device; feeding the bits of the LDPC codeword read from the non-volatile storage device to an LDPC decoder; and performing an iterative concatenated decoding process on the LDPC codeword by inserting one or more Bose-Chaudhuri-Hocquenghem (BCH) decoding processes during the iterative LDPC decoding process. The LDPC codeword may be generated by BCH-encoded codewords, and the BCH codewords may be generated by BCH-encoded data units. The iteration of the iterative cascaded decoding process may include: performing an LDPC decoding iteration of the iterative LDPC decoding process on the LDPC codeword to generate an intermediate LDPC decoding result; determining that the LDPC checksum of the intermediate LDPC decoding result does not reach zero; using the BCH scheduler to determine whether the triggering condition for BCH decoding is met; when the triggering condition for BCH decoding is met, performing the BCH decoding process on the intermediate LDPC decoding result; when the triggering condition for BCH decoding is not met or the BCH decoding process has been performed but has not successfully decoded the BCH codeword, performing the next iteration of the iterative cascaded decoding process.
[0032] In one embodiment, the triggering condition for BCH decoding is that the number of flipped bits in the LDPC decoding iteration is zero and the LDPC checksum is greater than zero.
[0033] In one embodiment, the trigger condition for BCH decoding is that the number of "1"s in the LDPC checksum is less than a predetermined threshold.
[0034] In one embodiment, the trigger condition for BCH decoding is that the number of flipped bits in the LDPC decoding iteration and the number of flipped bits in the previous LDPC decoding iteration are both less than a threshold.
[0035] In one embodiment, the trigger condition for BCH decoding is that the current iteration count has reached a predetermined threshold.
[0036] In one embodiment, the input to the BCH scheduler may include one or more of the following: LDPC iteration count, LDPC column index, LDPC layer index, LDPC checksum, number of flipped bits in the LDPC decoding iteration, and number of flipped bits in the previous LDPC decoding iteration.
[0037] In one embodiment, the iterative LDPC decoding process can be a hard-decision decoding process or a soft-decision decoding process.
[0038] In another exemplary embodiment, a different method is provided, which may include: reading bits of a low-density parity-check (LDPC) codeword from a non-volatile storage device; feeding the bits of the LDPC codeword read from the non-volatile storage device to an LDPC decoder; and performing an iterative concatenated decoding process on the LDPC codeword by inserting one or more Bose-Chaudhuri-Hocquenghem (BCH) checksum calculations during the iterative LDPC decoding process. The LDPC codeword can be generated from BCH-encoded codewords, and the BCH codewords can be generated from BCH-encoded data units. The iteration of the iterative cascaded decoding process may include: performing LDPC decoding iterations on the LDPC codeword to generate intermediate LDPC decoding results; determining that the LDPC checksum of the intermediate LDPC decoding results does not reach zero; using the BCH scheduler to determine whether the triggering condition for BCH checksum calculation is met; when the triggering condition for BCH checksum calculation is met, calculating the BCH checksum for BCH error detection on the intermediate LDPC decoding results; and when the triggering condition for BCH checksum calculation is not met or the BCH checksum does not reach zero, executing the next iteration of the iterative cascaded decoding process.
[0039] In one embodiment, the BCH checksum calculation is triggered when the number of flipped bits in the LDPC decoding iteration is zero and the LDPC checksum is greater than zero.
[0040] In one embodiment, the triggering condition for BCH checksum calculation is that the number of "1"s in the LDPC checksum is less than a predetermined threshold.
[0041] In one embodiment, the BCH checksum calculation is triggered when the number of flipped bits in the LDPC decoding iteration and the number of flipped bits in the previous LDPC decoding iteration are both less than a threshold.
[0042] In one embodiment, the BCH checksum calculation is triggered when the current iteration count has reached a predetermined threshold.
[0043] In one embodiment, the input to the BCH scheduler includes one or more of the following: LDPC iteration count, LDPC column index, LDPC layer index, LDPC checksum, number of flipped bits in the LDPC decoding iteration, and number of flipped bits in the previous LDPC decoding iteration.
[0044] In yet another exemplary embodiment, an apparatus is provided that may include: a low-density parity-check (LDPC) decoder configured to perform an iterative LDPC decoding process on bits of an LDPC codeword; a Bose-Chaudhuri-Hocquenghem (BCH) decoder coupled to the LDPC decoder; and a BCH scheduler coupled to the LDPC decoder and the BCH decoder. The LDPC codeword can be generated by LDPC encoding a Bose-Chaudhuri-Hocquenghem (BCH) codeword, and the BCH codeword can be generated by BCH encoding data units. The BCH scheduler may be configured to determine, after each iteration of the iterative LDPC decoding process, whether a trigger condition of the BCH decoder is met, and if the trigger condition of the BCH decoder is met, to activate the BCH decoder to operate on intermediate decoding results of the LDPC decoder.
[0045] In one embodiment, the BCH decoder may be a simplified decoder that includes a BCH error detector configured to calculate the BCH checksum from the decoding result of the LDPC decoder.
[0046] In one embodiment, the trigger condition for the BCH decoder is that the number of toggled bits in the current LDPC decoding iteration is zero, and the LDPC checksum after the current LDPC decoding iteration is greater than zero.
[0047] In one embodiment, the trigger condition for the BCH decoder is that the number of "1"s in the LDPC checksum after the current LDPC decoding iteration is less than a predetermined threshold.
[0048] In one embodiment, the trigger condition for the BCH decoder is that the number of toggled bits in the current LDPC decoding iteration and the number of toggled bits in the previous LDPC decoding iteration are both less than a threshold.
[0049] In one embodiment, the trigger condition for the BCH decoder is that the current iteration count has reached a predetermined threshold.
[0050] In one embodiment, the input to the BCH scheduler includes one or more of the following: LDPC iteration number, LDPC column index, LDPC layer index, LDPC checksum weight, number of flipped bits in the current LDPC decoding iteration, and number of flipped bits in the previous LDPC decoding iteration.
[0051] While various aspects and embodiments have been disclosed herein, other aspects and embodiments will be apparent to those skilled in the art. The various aspects and embodiments disclosed herein are for illustrative purposes and are not intended to be limiting; their true scope and spirit are indicated by the appended claims.
Claims
1. A cascaded decoding method, characterized in that, include: Bits of a low-density parity-check (LDPC) codeword are read from a non-volatile storage device. The LDPC codeword is generated by LDPC encoding a Bose-Chaudhuri-Hocquenghem (BCH) codeword, which is generated by BCH encoding a data unit. The bits of the LDPC codeword read from the non-volatile storage device are fed to the LDPC decoder; as well as An iterative concatenated decoding process is performed on the LDPC codeword by inserting one or more BCH decoding processes during the iterative LDPC decoding process. The iterations of the iterative concatenated decoding process include: The LDPC decoding process is performed iteratively on the LDPC codeword to generate intermediate LDPC decoding results; It was determined that the LDPC checksum of the intermediate LDPC decoding result did not reach zero; The BCH scheduler is used to determine whether the triggering conditions for BCH decoding are met, and the triggering conditions for BCH decoding are based on the information input to the LDPC decoding process; When the triggering condition for BCH decoding is met, the BCH decoding process is performed on the intermediate LDPC decoding result; and When the triggering condition for BCH decoding is not met, or when the BCH decoding process has been executed but the BCH codeword has not been successfully decoded, the next iteration of the iterative cascaded decoding process is executed.
2. The method according to claim 1, characterized in that, The triggering condition for BCH decoding is that the number of flipped bits in the LDPC decoding iteration is zero and the LDPC checksum is greater than zero.
3. The method according to claim 1, characterized in that, The triggering condition for BCH decoding is that the number of "1"s in the LDPC checksum is less than a predetermined threshold.
4. The method according to claim 1, characterized in that, The triggering condition for BCH decoding is that the number of flipped bits in the LDPC decoding iteration and the number of flipped bits in the previous LDPC decoding iteration are both less than a threshold.
5. The method according to claim 1, characterized in that, The trigger condition for BCH decoding is that the current iteration number has reached a predetermined threshold.
6. The method according to claim 1, characterized in that, The input to the BCH scheduler includes one or more of the following: LDPC iteration count, LDPC column index, LDPC layer index, the LDPC checksum, the number of flipped bits in the LDPC decoding iteration, and the number of flipped bits in the previous LDPC decoding iteration.
7. The method according to claim 1, characterized in that, The iterative LDPC decoding process is either a hard-decision decoding process or a soft-decision decoding process.
8. A cascaded decoding method, characterized in that, include: Bits of a low-density parity-check (LDPC) codeword are read from a non-volatile storage device. The LDPC codeword is generated by LDPC encoding a Bose-Chaudhuri-Hocquenghem (BCH) codeword, which is generated by BCH encoding a data unit. The bits of the LDPC codeword read from the non-volatile storage device are fed to the LDPC decoder; as well as An iterative concatenated decoding process is performed on the LDPC codeword by inserting one or more BCH checksum calculation processes during the iterative LDPC decoding process. The iterations of the iterative concatenated decoding process include: The LDPC decoding process is performed iteratively on the LDPC codeword to generate intermediate LDPC decoding results; It was determined that the LDPC checksum of the intermediate LDPC decoding result did not reach zero; The BCH scheduler is used to determine whether the triggering condition for BCH checksum calculation is met, the triggering condition for BCH checksum calculation being based on the information input to the LDPC decoding process; When the triggering condition for calculating the BCH checksum is met, a BCH checksum for BCH error detection is calculated based on the intermediate LDPC decoding result; and If the triggering condition for calculating the BCH checksum is not met or the BCH checksum is not zero, the next iteration in the iterative cascade decoding process is executed.
9. The method according to claim 8, characterized in that, The triggering condition for calculating the BCH checksum is that the number of flipped bits in the LDPC decoding iteration is zero and the LDPC checksum is greater than zero.
10. The method according to claim 8, characterized in that, The triggering condition for calculating the BCH checksum is that the number of "1"s in the LDPC checksum is less than a predetermined threshold.
11. The method according to claim 8, characterized in that, The triggering condition for the BCH checksum calculation is that the number of flipped bits in the LDPC decoding iteration and the number of flipped bits in the previous LDPC decoding iteration are both less than a threshold.
12. The method according to claim 8, characterized in that, The triggering condition for calculating the BCH checksum is that the current iteration number has reached a predetermined threshold.
13. The method according to claim 8, characterized in that, The input to the BCH scheduler includes one or more of the following: LDPC iteration count, LDPC column index, LDPC layer index, the LDPC checksum, the number of flipped bits in the LDPC decoding iteration, and the number of flipped bits in the previous LDPC decoding iteration.
14. A cascaded decoding device, comprising: A low-density parity-check (LDPC) decoder is configured to perform an iterative LDPC decoding process on bits of LDPC codewords, which are generated by LDPC encoding Bose-Chaudhuri-Hocquenghem (BCH) codewords, which are generated by BCH encoding data units. The Bose-Chaudhuri-Hocquenghem (BCH) decoder is coupled to the LDPC decoder; as well as A BCH scheduler is coupled to the LDPC decoder and the BCH decoder, wherein the BCH scheduler is configured to determine, after each iteration of the iterative LDPC decoding process, whether a trigger condition of the BCH decoder is met, the trigger condition of the BCH decoder being based on information from the input LDPC decoding process, and if the trigger condition of the BCH decoder is met, to activate the BCH decoder to operate on the intermediate decoding results of the LDPC decoder.
15. The apparatus according to claim 14, characterized in that, The BCH decoder is a simplified decoder that includes a BCH error detector, which is configured to calculate the BCH checksum based on the decoding result of the LDPC decoder.
16. The apparatus according to claim 14, characterized in that, The triggering condition for the BCH decoder is that the number of toggled bits in the current LDPC decoding iteration is zero and the LDPC checksum after the current LDPC decoding iteration is greater than zero.
17. The apparatus according to claim 14, characterized in that, The triggering condition for the BCH decoder is that the number of "1"s in the LDPC checksum after the current LDPC decoding iteration is less than a predetermined threshold.
18. The apparatus according to claim 14, characterized in that, The trigger condition for the BCH decoder is that the number of flipped bits in the current LDPC decoding iteration and the number of flipped bits in the previous LDPC decoding iteration are both less than a threshold.
19. The apparatus according to claim 14, characterized in that, The triggering condition for the BCH decoder is that the current iteration count has reached a predetermined threshold.
20. The apparatus according to claim 14, characterized in that, The input to the BCH scheduler includes one or more of the following: LDPC iteration count, LDPC column index, LDPC layer index, LDPC checksum, number of toggled bits in the current LDPC decoding iteration, and number of toggled bits in the previous LDPC decoding iteration.
Citation Information
Patent Citations
Decoder for LDPC code and BCH code and decoding method thereof
US20150188574A1
Low power error correcting code (ECC) system
US20180175882A1
Hybrid LDPC-SEC / SECDED Decoding
US20180175885A1
