Multi-channel NAND FLASH error control method

By adopting the multi-channel error control method of BCH and RAID-like technology in NAND FLASH, and using data grouping and FPGA parallel processing, the problem of insufficient error correction capability of the existing technology in an environment with high bit error rate is solved, and a higher performance is achieved. Data reliability and error correction speed.

CN113241110BActive Publication Date: 2024-10-25SHANGHAI SPACEFLIGHT INST OF TT&C & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110509484.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-10
Publication Date
2024-10-25
Estimated Expiration
2041-05-10

AI Technical Summary

Technical Problem

The existing technology cannot effectively correct data errors in NAND FLASH in an environment with a high bit error rate, and the error correction algorithm is highly complex and cannot meet the high-speed data error correction requirements.

Method used

Using a multi-channel NAND FLASH error control method based on BCH and RAID-like technology, it reduces the bit error rate through steps such as data grouping, interleaving, verification, parallel scrambling, BCH encoding and decoding, and error tolerance control, and uses FPGA multi-channel Parallel processing increases error correction speed.

Benefits of technology

It effectively reduces the bit error rate of NAND FLASH, improves the reliability of data storage, reduces the probability of flipping through data randomization and BCH error correction coding, and combines RAID technology to achieve autonomous recovery of faulty channel data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113241110B_ABST
    Figure CN113241110B_ABST
Patent Text Reader

Abstract

The present invention provides a multi-channel NAND FLASH error control method, including: grouping input data according to the number of channels N and then interleaving; performing XOR on the data of N channels according to the channels to generate check data; forming N+1 groups of channel data with the check data and N groups of channel data and performing parallel scrambling respectively; performing BCH parallel encoding on the N+1 groups of data respectively, dividing the data into blocks according to the page length of FLASH, and storing them in a storage array after encoding, the storage array is composed of N+1 FLASH storage chips, corresponding to the N+1 groups of data one by one; reading the number of N+1 groups in the storage array, performing parallel BCH decoding respectively, and giving the decoding "successful" status; performing parallel descrambling on the N+1 groups of data respectively; performing fault tolerance control on the N+1 groups of data according to the decoding "successful" status; and deinterleaving and recovering the data after error control. The present invention takes design measures from three dimensions of suppression, error correction, and replacement to reduce the bit error rate of NAND FLASH.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an error control method, and in particular to a multi-channel NANDFLASH error control method and system based on BCH and RAID-like technology. Background Art

[0002] NAND Flash has the advantages of non-volatility, high reliability, small size, light weight, low power consumption, strong shock resistance, and wide operating temperature range. It has been widely used in various fields, especially aerospace. However, as NAND FLASH is used and data storage time increases, the data stored in it is prone to bit flipping and random errors. In addition, as the number of times the FLASH block is erased and written increases, the oxide layer gradually ages, and it becomes easier for electrons to enter and exit the storage unit. Therefore, the charge stored in it is prone to abnormality, resulting in block failure.

[0003] At present, the commonly used method uses error coding control, such as Hamming check, BCH, LDPC and other error control codes. This method can meet the application occasions with low bit error rate. As the bit error rate increases, when it exceeds the error correction capability of the algorithm, data error correction cannot be completed; secondly, the stronger the error correction capability of the algorithm, the higher its complexity, which cannot meet the occasions of high-speed data error correction. Summary of the invention

[0004] In view of the defects in the prior art, the purpose of the present invention is to provide a multi-channel NAND FLASH error control method based on BCH and RAID-like technology, and to take design measures from three dimensions of suppression, error correction and replacement to reduce the bit error rate of NAND FLASH.

[0005] The multi-channel NAND FLASH error control method provided by the present invention includes:

[0006] S1: Group the input data according to the number of channels N to generate N groups of channel data, and interleave the channel data according to the number of channels N; N≥2;

[0007] S2: Perform bitwise XOR on N groups of channel data according to the number of channels to generate check data;

[0008] S3: The check data and N groups of channel data are formed into N+1 groups of channel data and are scrambled in parallel;

[0009] S4: BCH parallel encoding is performed on the check data and the N groups of channel data respectively, and the blocks are divided according to the page length of the FLASH memory chip and stored in a storage array, wherein the storage array includes N+1 FLASH memory chips, and the N+1 FLASH memory chips correspond to the N+1 groups of channel data one by one;

[0010] S5: Read N+1 groups of channel data in the storage array, perform parallel BCH decoding on the N+1 groups of channel data respectively, and give a status of whether the decoding is successful;

[0011] S6: Descramble the N+1 groups of channel data in parallel respectively;

[0012] S7: performing fault tolerance control on the N+1 groups of channel data according to whether the decoding is successful;

[0013] S8: Deinterleave and recover the channel data that has completed error control.

[0014] Preferably, the bit width of each channel data is consistent with the bit width of the FLASH memory chip in the memory array; and the bit width of the verification data is consistent with the bit width of the FLASH memory chip.

[0015] Preferably, the storage array includes N+1 groups of channels, wherein N groups of channels are used for data storage and 1 group of channels is used for verification information storage.

[0016] Preferably, in step S2, parity check is performed bit by bit in units of channels to generate check data.

[0017] Preferably, in step S4, the N+1 groups of channel data are respectively subjected to BCH parallel encoding, wherein the parallel width is consistent with the channel bit width, and the encoding block length L is a common divisor of the FLASH memory chip page length.

[0018] Preferably, in step S7, fault-tolerant control is performed according to the "successful status" of the BCH decoding of the N+1 groups of channel data groups. Specifically, if the BCH decoding of the N groups of channel data is successful, the decoded data is output; if only one group of the N groups of channel data fails to be decoded and the BCH decoding of the check data is successful, all the successfully decoded channel data are XORed to generate new data, and then the channel data that failed to be decoded are automatically replaced, and the FLASH blocks of this group are marked as bad blocks; if more than two groups of the N groups of channel data fail to be decoded, a system error message is given.

[0019] Preferably, multi-channel parallel processing technology is used in BCH encoding, BCH decoding, scrambling, descrambling, storing or reading data, and each channel data corresponds to a storage chip one by one, and the bit width of the channel data is consistent with the bit width of the storage chip.

[0020] Preferably, the error correction capability t of the BCH parallel coding must be greater than or equal to the channel bit width.

[0021] Preferably, the information bit length k of the BCH parallel coding is consistent with the block length of the scrambling and descrambling coding.

[0022] Preferably, in step S3, N+1 groups of channel data are scrambled respectively to complete data randomization; in step S6, N+1 groups of channel data are descrambled respectively to restore the data.

[0023] Compared with the prior art, the present invention has the following beneficial effects:

[0024] 1. The present invention uses data randomization to fully isolate the distribution of 0 and 1 stored in the FLASH chip, thereby reducing the influence of the coupling voltage between adjacent cells and reducing the flip probability.

[0025] 2. The present invention adopts BCH error correction coding to reduce the bit error rate of the multi-channel NAND FLASH storage system; and combines with RAID3-like fault tolerance technology to autonomously realize the recovery of fault channel data and improve the reliability of data storage.

[0026] 3. The present invention improves the speed of data randomization and error correction by grouping data and adopting FPGA multi-channel parallel data processing technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0028] Figure 1 It is an overall flow chart of a multi-channel NAND FLASH error control method based on BCH and RAID-like technology in an embodiment of the present invention;

[0029] Figure 2 It is a principle block diagram of an FPGA module of a multi-channel NAND FLASH error control method based on BCH and RAID-like technology in an embodiment of the present invention;

[0030] Figure 3 The present invention is a schematic diagram of BCH (4200, 4096, 8) coded data and check information storage of a multi-channel NAND FLASH error control method based on BCH and RAID-like technology in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0032] In the embodiment of the present invention, Figure 1As shown, the present invention provides a multi-channel NAND FLASH error control method based on BCH and RAID-like technology, comprising the following steps:

[0033] S1: The input 8-bit parallel data is grouped according to the number of channels N (N=8), the interleaving depth I is 8, the bit width of each group of channel data is 8 bits, the FLASH memory chip selected in the storage array is 3Dplus's 3DFN128G08VS8308, the bit width is 8 bits, the page length is 4320 bytes, including 224 bytes of blank area;

[0034] S2: Perform bitwise XOR on N (N=8) groups of data by channel to generate 8-bit check data, and the bit width of the check data is consistent with the bit width of the FLASH chip;

[0035] S3: scramble the 9 groups of verification data in parallel respectively;

[0036] S4: Perform BCH parallel encoding on the 9 groups of data respectively. The data are divided into blocks according to the 4096 bytes of the FLASH page length excluding the blank area. The code length of each block is 512 bytes, that is, 4096 bits. After encoding, they are stored in a storage array one by one. The storage array consists of 9 (N+1) FLASH storage chips.

[0037] S5: read 9 groups (N+1) of data (including verification data) in the storage array, perform BCH decoding in parallel, and give the decoding "successful" status;

[0038] S6: Descramble the 9 (N+1) groups of data (including check data) in parallel respectively;

[0039] S7: Based on the decoding "successful" status, RAID technology fault-tolerant control is used for 9 groups (N+1) of data (including verification data);

[0040] S8: Deinterleave and recover the error-controlled data.

[0041] further, Figure 2 FIG. 1 is a block diagram of the FPGA module principle of the multi-channel NAND FLASH error control method based on BCH and RAID-like technology in an embodiment of the present invention. Figure 2 As shown, the present invention also includes an FPGA and a storage array.

[0042] Furthermore, the storage array is multi-channel and contains 9 channels, 8 of which are used for data storage and 1 channel is specifically used for verification information storage.

[0043] Furthermore, the data storage and verification of the storage array is controlled in a RAID3 (Redundant Array of Independent Disks)-like fault-tolerant technology manner, each FLASH storage chip acts as a "disk", and each channel corresponds to a FLASH storage chip.

[0044] Furthermore, in step S1, the input data is interleaved, and the bit width of each group of channel data after interleaving is consistent with the bit width of the FLASH storage chip in the storage array, and the bit width B is 8, and then stored in the cache to complete the data conversion.

[0045] Further, in step S2, a parity check is performed bit by bit in units of channels to generate 8-bit check data.

[0046] Further, in step S3, the 9 sets of data (including the check data) are scrambled in parallel to complete the data randomization. The code length is 512 bytes, and the generating polynomial is F(X)=X 8 +X 7 +X 5 +X 3 +1.

[0047] further, Figure 3 The schematic diagram of BCH (4200, 4096, 8) coded data and check information storage of the multi-channel NAND FLASH error control method based on BCH and RAID-like technology provided by the present invention is as follows: Figure 3 As shown, in step S4, 9 groups of data (including check data) are respectively subjected to BCH parallel encoding, and the encoding width is 8 bits; the encoding block length is 512 bytes, that is, the information length k=4096; the BCH error correction capability t=8, the check bit length is 13×8=104 bits, and the total length n=4200 (525 bytes). The FLASH memory chip has a page length of 4096 bytes + 224 bytes of blank area, and 8 blocks of BCH (4200, 4096, 8) information codes and check codes are stored alternately in sequence.

[0048] Further, 9 groups of data in the storage array are read and stored in the cache. In step S5, the 9 groups of data (including the verification data) are respectively decoded in parallel using BCH (4200, 4096, 8) at a rate 3 times the rate, and the "successful" status of each group of decoding is given.

[0049] Further, in step S6, the 9 sets of data (including the check data) are descrambled in parallel to complete data recovery. The code length is 512 bytes, and the generating polynomial is F(X)=X 8 +X 7 +X 5 +X 3 +1.

[0050] Further, in step S7, RAID3-like fault tolerance control is performed according to the "successful or not" status of the 9 groups of BCH decoding. If the BCH decoding of the 8 groups of data is successful, the output decoded data remains unchanged; if only one group of the 8 groups of data fails to be decoded and the BCH decoding of the check data is successful, all the successfully decoded channel data are XORed to generate new data, and then replace the data group that failed to be decoded, and the FLASH block of the channel is marked as a bad block; if more than two groups of the 9 groups of data fail to be decoded, a system error message is given.

[0051] Further, in step S8, the data is deinterleaved and restored for output.

[0052] Furthermore, BCH encoding, BCH decoding, scrambling, descrambling, storage or reading all use multi-channel processing technology, 9 groups of data are processed in parallel, and each group of channel data corresponds to a storage chip one by one, and the channel data bit width and chip bit width are both 8 bits.

[0053] Furthermore, the error correction capability t of BCH (4200, 4096, 8) is equal to the channel bit width. The information bit length k of the BCH coding block is consistent with the block length of the scrambling and descrambling coding, both of which are 512 bytes.

[0054] In the embodiment of the present invention, the data randomization method is used to fully isolate the distribution of 0 and 1 stored in the FLASH chip, reduce the influence of the coupling voltage between adjacent units, and reduce the flip probability; secondly, by adopting BCH error correction coding, the error rate of the multi-channel NAND FLASH storage system is reduced; and combined with RAID3-like fault tolerance technology, the data recovery of the fault channel is realized autonomously, and the reliability of data storage is improved. Finally, through data grouping and using FPGA multi-channel parallel data processing technology, the speed of data randomization and error correction is improved.

[0055] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art may make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention.

Claims

1. A multi-channel NAND FLASH error control method, characterized in that: include: S1: Group the input data according to the number of channels N to generate N groups of channel data, and interleave the channel data according to the number of channels N; S2: Perform bitwise XOR on the interleaved N groups of channel data according to the number of channels to generate check data; S3: forming N+1 groups of channel data from the check data and the interleaved N groups of channel data and performing parallel scrambling on each of them; S4: After scrambling, the check data and the interleaved N groups of channel data are respectively subjected to BCH parallel encoding, and are divided into blocks according to the page length of the FLASH memory chip and stored in a storage array, wherein the storage array includes N+1 FLASH memory chips, and the N+1 FLASH memory chips correspond one to one to the encoded N+1 groups of channel data; S5: Read N+1 groups of channel data in the storage array, perform parallel BCH decoding on the encoded N+1 groups of channel data respectively, and give a status of whether the decoding is successful; S6: Descramble the decoded N+1 groups of channel data in parallel respectively; S7: performing fault tolerance control on the descrambled N+1 groups of channel data according to the state of whether the decoding is successful; S8: Deinterleave and recover the channel data that has completed error control.

2. The multi-channel NAND FLASH error control method according to claim 1, characterized in that: The bit width of each channel data is consistent with the bit width of the FLASH memory chip in the memory array; the bit width of the verification data is consistent with the bit width of the FLASH memory chip.

3. The multi-channel NAND FLASH error control method according to claim 1, characterized in that: The storage array includes N+1 groups of channels, wherein the N groups of channels are used for data storage and the 1 group of channels is used for verification information storage.

4. The multi-channel NAND FLASH error control method according to claim 1, characterized in that: In step S2, parity check is performed bit by bit in units of channels to generate check data.

5. The multi-channel NAND FLASH error control method according to claim 1, characterized in that: In step S4, the N+1 groups of channel data are respectively subjected to BCH parallel encoding, wherein the parallel width is consistent with the channel bit width, and the encoding block length L is a common divisor of the FLASH memory chip page length.

6. The multi-channel NAND FLASH error control method according to claim 1, characterized in that: In step S7, fault tolerance control is performed according to the "successful status" of the BCH decoding of the N+1 group of channel data groups. Specifically, if the BCH decoding of the N groups of channel data is successful, the decoded data is output; if only one group of the N groups of channel data fails to be decoded and the BCH decoding of the check data is successful, all the successfully decoded channel data are XORed to generate new data, and then the channel data that failed to be decoded is automatically replaced, and the FLASH block of this group is marked as a bad block; If more than two groups of BCH decoding fail among N groups of channel data, a system error message will be given.

7. The multi-channel NAND FLASH error control method according to claim 1, characterized in that: Multi-channel parallel processing technology is used in BCH encoding, BCH decoding, scrambling, descrambling, storing or reading data, and each channel data corresponds to a storage chip one by one, and the bit width of the channel data is consistent with the bit width of the storage chip.

8. The multi-channel NAND FLASH error control method according to claim 2, characterized in that: The error correction capability t of the BCH parallel coding must be greater than or equal to the channel bit width.

9. The multi-channel NAND FLASH error control method according to claim 1, characterized in that: The information bit length k of the BCH parallel coding is consistent with the block length of the scrambling and descrambling coding.

10. The multi-channel NAND FLASH error control method according to claim 1, characterized in that: In step S3, N+1 groups of channel data are scrambled respectively to complete data randomization; in step S6, N+1 groups of channel data are descrambled respectively to restore the data.