Data recovery method for flash memory
By dynamically adjusting the read voltage step size of flash memory, the problem that the bit error rate exceeds the error correction capability in flash memory data recovery is solved, a more efficient data recovery process is achieved, and the number and time of reread error correction operations are reduced.
Patent Information
- Application Number
- CN202110380094.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-08
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-04-08
AI Technical Summary
During the data storage process of the flash memory, the threshold voltage distribution state shifts due to charge leakage, causing the bit error rate of the read data to exceed the error correction capability of the error control encoding, making it impossible to correctly restore the data.
Read data from the flash memory through the preset read voltage, calculate the error rate of the check node, dynamically adjust the read voltage step size until the error rate of the check node is minimum, select the read voltage corresponding to the minimum error rate for data recovery, and reduce re-read error correction The time for optimal read voltage search in the algorithm.
It effectively reduces the time required for data recovery and the number of rereads, improves the accuracy and efficiency of data recovery, and reduces unnecessary error control encoding and decoding processes.
Smart Images

Figure CN112988453B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of non-volatile memory of semiconductor integrated circuits, and in particular to a data recovery method for flash memory. Background Art
[0002] Flash memory, especially NAND flash memory, is a type of non-volatile memory, which is widely used in storage fields such as mobile phones, laptops, and cloud storage. The basic function of flash memory is to save data, and ensuring the consistency of written data and read data is a basic requirement of the storage system. Error Correcting Code (ECC) can correct errors in read data, and is an important means to ensure the consistency of written data and read data and improve the reliability of storage systems. However, error control coding also has a certain error correction range. If the original bit error rate of the read data is high, it will exceed the error correction capability of the error control coding and the written data cannot be correctly restored.
[0003] During the data storage process, flash memory will be affected by data retention noise. After the data is stored in the flash memory for a period of time, the charge stored in the flash memory storage unit will leak, and the threshold voltage distribution state of the flash memory will shift to the side with a smaller threshold voltage. If the read voltage used in the initial stage of data storage is used for the read operation, the problem of the bit error rate of the read data exceeding the error control coding error correction capability will occur. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] In view of the problems in the prior art, the present disclosure proposes a data recovery method for a flash memory, which is used to at least partially solve the above technical problems.
[0006] (II) Technical solution
[0007] The present disclosure provides a data recovery method for a flash memory, comprising: reading data from the flash memory using a preset read voltage; calculating a check node error rate corresponding to the data; calculating a read voltage adjustment step length according to the check node error rate; adjusting the preset read voltage according to the read voltage adjustment step length, reading data from the flash memory using the adjusted preset read voltage, and repeating the operation of calculating the check node error rate corresponding to the data to the operation of adjusting the preset read voltage according to the read voltage adjustment step length until the check node error rate is minimized; and selecting a read voltage corresponding to the minimum check node error rate to read data from the flash memory for data recovery.
[0008] Optionally, the method also includes: determining whether the current check node error rate is less than a preset threshold; if so, stopping the operation of adjusting the preset read voltage according to the read voltage adjustment step, using the adjusted preset read voltage to read data from the flash memory, and performing data recovery with the currently read data.
[0009] Optionally, the method also includes: determining whether the current check node error rate is greater than the last check node error rate, and if so, stopping the operation of adjusting the preset read voltage according to the read voltage adjustment step, using the adjusted preset read voltage to read data from the flash memory, and performing data recovery using the data read last time.
[0010] Optionally, the calculating the check node error rate corresponding to the data includes: according to the formula:
[0011] R C =sum(H·D k ) / m
[0012] Calculate the check node error rate, where R C is the check node error rate, H is the parity check matrix, D k is the data of a codeword read out, and m is the number of check nodes.
[0013] Optionally, calculating the read voltage adjustment step size according to the check node error rate includes: establishing a functional relationship between the check node error rate and the bit error rate and a functional relationship between the bit error rate and the read voltage adjustment step size based on the threshold voltage distribution state of the flash memory; establishing a functional relationship between the check node error rate and the read voltage adjustment step size according to the functional relationship between the check node error rate and the bit error rate and the functional relationship between the bit error rate and the read voltage adjustment step size; calculating the read voltage adjustment step size according to the functional relationship between the check node error rate and the read voltage adjustment step size.
[0014] Optionally, the establishing the functional relationship between the check node error rate and the bit error rate and the functional relationship between the bit error rate and the read voltage adjustment step size includes: calculating the bit error rate corresponding to the preset read voltage, wherein the calculating the bit error rate corresponding to the preset read voltage includes: according to the formula:
[0015]
[0016] Calculate the bit error rate, where P e is the bit error rate, i is the sequence number of the threshold voltage distribution state, is the i-th preset reading voltage, μ i is the mean value of the ith threshold voltage distribution state of the flash memory, μ i-1is the mean value of the i-1th threshold voltage distribution state of the flash memory, The mean is 0 and the variance is σ i-1 The distribution function of the Gaussian distribution corresponding to the threshold voltage distribution state is, The mean is 0 and the variance is σ i The distribution function of the Gaussian distribution.
[0017] Optionally, the i-th preset read voltage and the i-th optimal read voltage have the following relationship:
[0018]
[0019] in, is the i-th optimal reading voltage, A read voltage adjustment step length between the i-th preset read voltage and the i-th optimal read voltage;
[0020] The i-th optimal read voltage is calculated by the following formula:
[0021]
[0022]
[0023] Among them, μ i is the mean value of the ith threshold voltage distribution state, σ i is the variance of the ith threshold voltage distribution, μ i-1 is the mean value of the i-1th threshold voltage distribution state, σ i-1 is the variance of the i-1th threshold voltage distribution state.
[0024] Optionally, the method further comprises: quantifying the functional relationship between the check node error rate and the read voltage adjustment step length into a lookup table, and obtaining the read voltage adjustment step length by looking up the lookup table.
[0025] Optionally, the method further includes: establishing a functional relationship between a read voltage adjustment step between the i-th preset read voltage and the i-th optimal read voltage and a read voltage adjustment step between the j-th preset read voltage and the j-th optimal read voltage; based on the functional relationship, calculating a read voltage adjustment step between the j-th preset read voltage and the j-th optimal read voltage according to the read voltage adjustment step between the i-th preset read voltage and the i-th optimal read voltage.
[0026] Optionally, selecting a read voltage corresponding to a minimum check node error rate to read data from the flash memory to perform data recovery includes: performing data recovery on the read data using error control coding.
[0027] (III) Beneficial effects
[0028] The present disclosure provides a data recovery method for flash memory, which has at least the following beneficial effects:
[0029] The data recovery method disclosed in the present invention can dynamically adjust the step size of the read voltage adjustment based on the check node error rate, and the number of additional reads required to find the optimal read voltage is relatively small, thereby reducing the time required to search for the optimal read voltage in the reread error correction algorithm.
[0030] The present disclosure predicts the original bit error rate of the read data by checking the node error rate, and can predict whether the read data can be correctly corrected by the ECC decoder without the ECC decoding process before ECC decoding. When it is predicted that the read data can be corrected by ECC, the reread error correction operation is stopped and ECC decoding is performed; when it is predicted that the read data cannot be corrected by ECC, the reread error correction operation is continued to search for the best read voltage until the best read voltage is found or the read data is predicted to be corrected by ECC. That is, this method reduces unnecessary ECC decoding, thereby reducing the time required for data recovery. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A flow chart of a method for recovering data from a flash memory provided by an embodiment of the present disclosure is schematically shown;
[0032] Figure 2 Schematic flow chart of a method for calculating a read voltage adjustment step size according to the check node error rate provided by an embodiment of the present disclosure;
[0033] Figure 3 A threshold voltage distribution diagram of a NAND flash memory provided by an embodiment of the present disclosure is schematically shown;
[0034] Figure 4 The schematic diagram shows the i-th threshold voltage offset provided by the embodiment of the present disclosure. and the jth threshold voltage offset There is a linear function relationship curve between them;
[0035] Figure 5 Schematic diagram showing the threshold voltage distribution of the TLC NAND flash memory provided by the embodiment of the present disclosure
[0036] Figure 6 A graph schematically shows a functional relationship between a check node error rate and a read voltage adjustment step length provided by an embodiment of the present disclosure;
[0037] Figure 7 A flowchart of a data recovery method for a flash memory provided by another embodiment of the present disclosure is schematically shown;
[0038] Figure 8A flowchart of a data recovery method for a flash memory provided by another embodiment of the present disclosure is schematically shown;
[0039] Fig. 9 A monotonic function relationship curve diagram between a check node error rate and a bit error rate provided by an embodiment of the present disclosure is schematically shown;
[0040] Fig.10 A flowchart of a data recovery method for a flash memory provided by another embodiment of the present disclosure is schematically shown;
[0041] Fig.11 The structure diagram of the data recovery system for flash memory provided by the embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0042] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0043] Figure 1 A flow chart of a method for recovering data from a flash memory provided by an embodiment of the present disclosure is schematically shown.
[0044] like Figure 1 As shown, the method may include, for example, operations S101 to S105.
[0045] In operation S101 , data is read from a flash memory using a preset read voltage.
[0046] The preset read voltage is generally set to an initial read voltage, that is, an optimal read voltage for a data retention time of 0. The read data may refer to data written into the NAND flash memory after ECC encoding, and data read when the storage system performs a read operation.
[0047] In operation S102, the check node error rate corresponding to the data is calculated.
[0048] In operation S103 , a read voltage adjustment step size is calculated according to the check node error rate and the bit error rate.
[0049] The read voltage adjustment step length may also be referred to as a decision distance, which refers to the voltage value adjusted each time during the process of adjusting the initial read voltage to the optimal read voltage.
[0050] In operation S104, the preset read voltage is adjusted according to the read voltage adjustment step length, data is read from the flash memory using the adjusted preset read voltage, and the process returns to operation S102.
[0051] After returning to operation S102, operations S102 to S104 are continuously performed until the check node error rate is minimized.
[0052] In operation S105, a read voltage corresponding to a minimum check node error rate is selected to read data from a flash memory to perform data recovery.
[0053] The data recovery method provided by the above embodiment calculates the decision distance according to the check node error rate of the read data, and adjusts the read voltage by taking the decision distance as the step size of the read voltage adjustment. After the read voltage is adjusted, the data is read using the new read voltage, and the check node error rate of the read data with the new read voltage is calculated. The decision distance is calculated based on the check node error rate, and this process is repeated, and the read voltage with the smallest corresponding check node error rate is selected as the optimal read voltage, so that the step size of the read voltage adjustment can be dynamically adjusted, reducing the number of additional reads required to find the optimal read voltage, thereby reducing the time required to search for the optimal read voltage in the reread error correction algorithm.
[0054] According to the embodiments of the present disclosure, since NAND flash memory uses a page as the smallest reading unit, a page may contain multiple codewords in actual engineering applications. In this example, the average value of the check node error rate of each codeword on a page is used as the check node error rate of a page. Specifically, a method for calculating the check node error rate can be, for example:
[0055] According to the formula:
[0056] R C =sum(H·D k ) / m
[0057] Calculate the check node error rate, where R C is the check node error rate, H is the parity check matrix, D k is the data of a codeword read out, which is a part of a page of data read out, and m is the number of check nodes, which is also the total number of rows of the H matrix.
[0058] Figure 2 Schematic flowchart of a method for calculating a read voltage adjustment step size according to the check node error rate provided by an embodiment of the present disclosure.
[0059] Figure 3 The threshold voltage distribution diagram of the flash memory provided by the embodiment of the present disclosure is schematically shown.
[0060] According to the embodiments of the present disclosure, Figure 2 As shown, the method may include operations S201 to S203. In operation S201, based on the threshold voltage distribution of the flash memory, a functional relationship between the check node error rate and the bit error rate and a functional relationship between the bit error rate and the read voltage adjustment step length are established.
[0061] Generally speaking, the bit error rate of NAND flash memory is related to the read voltage, such as Figure 3 As shown, The i-th initial read voltage is generally the optimal read voltage for data retention time 0. The i-th optimal read voltage is the read voltage with the lowest error rate of the read data, and is also the intersection of the two threshold voltage distribution states after a period of data retention time. i is the ith threshold voltage distribution state, P i-1 The i-1th threshold voltage distribution state, is the threshold voltage offset of the ith threshold voltage distribution state, is the threshold voltage offset of the i-1th threshold voltage distribution state, is the read voltage adjustment step between the ith preset read voltage and the ith optimal read voltage. The dotted line portion may represent the initial threshold voltage distribution of the flash memory. After the data is stored in the flash memory for a period of time, the charge stored in the flash memory storage unit will leak, and the threshold voltage distribution of the flash memory will shift to the side with a smaller threshold voltage, that is, move to the threshold voltage distribution represented by the solid line portion. Figure 3 The area of the shaded part is the bit error rate of the NAND flash memory read data, and the area of the shaded part can be solved by integrating the threshold voltage distribution. Therefore, the bit error rate between two threshold voltage distributions is also called the bit error rate under the i-th read voltage.
[0062] In the process of establishing the functional relationship, it is necessary to calculate the bit error rate corresponding to the preset read voltage. Figure 3 , a method for calculating the bit error rate corresponding to the preset read voltage can be:
[0063] According to the formula:
[0064]
[0065] Calculate the bit error rate, where P e is the bit error rate, i is the sequence number of the threshold voltage distribution state, is the i-th preset reading voltage, μ i is the mean value of the ith threshold voltage distribution state of the flash memory, μ i-1 is the mean value of the i-1th threshold voltage distribution state of the flash memory, The mean is 0 and the variance is σ i-1 The distribution function of the Gaussian distribution corresponding to the threshold voltage distribution state, the distribution function of the Gaussian distribution is the integral of the probability density of the Gaussian distribution, The mean is 0 and the variance is σ i The distribution function of the Gaussian distribution.
[0066] The i-th preset read voltage and the i-th optimal read voltage have the following relationship:
[0067]
[0068] is the i-th optimal reading voltage, A read voltage adjustment step length between the i-th preset read voltage and the i-th optimal read voltage;
[0069] The i-th optimal read voltage is calculated by the following formula:
[0070]
[0071]
[0072] Among them, μ i is the mean value of the ith threshold voltage distribution state, σ i is the variance of the ith threshold voltage distribution, μ i-1 is the mean value of the i-1th threshold voltage distribution state, σ i-1 is the variance of the i-1th threshold voltage distribution state.
[0073] Specifically, the derivation process of the calculation formula for the i-th optimal read voltage is:
[0074] Will Figure 3 The threshold voltage distribution shown is modeled as a Gaussian distribution. The intersection of two Gaussian distributions is the i-th optimal read voltage, which can be expressed as:
[0075]
[0076] Solving the above equation, when:
[0077] σ i-1 ≠σ i
[0078] available:
[0079]
[0080] However, in actual NAND flash memory, due to:
[0081] σ i-1 ≈σ i
[0082] Therefore, this embodiment uses the following formula for simplification:
[0083]
[0084] Therefore, the expression method of the i-th optimal read voltage can be expressed as:
[0085]
[0086]
[0087] Furthermore, a functional relationship between the check node error rate and the bit error rate is established:
[0088] In an LDPC check matrix H, the bits that are 1 in the i-th row of H form the i-th parity check equation and are also the i-th check nodes in the Tanner graph. The probability of the i-th check equation being wrong is R Ci It can be calculated using the following formula:
[0089]
[0090] Among them, P e is the probability of a single bit error in the ECC codeword, and is also the original bit error rate of the read data, d i is the number of 1s in the i-th row of the H matrix.
[0091] Assume H is a matrix with m rows and n columns. Therefore, the number of check equations in the ECC formed by the null space of the H matrix is m (that is, the number of check nodes in the Tanner graph is m). Then the average error probability of these m check equations, that is, the check node error rate, can be calculated using the following formula:
[0092]
[0093] In particular, if the number of 1s in each row of the H matrix is the same, that is, d1 = d2 = ... = d m =d, then the check node error rate can be simplified to:
[0094]
[0095] Based on the above calculation, the functional relationship between the check node error rate and the bit error rate can be obtained.
[0096] Establish the functional relationship between the bit error rate and the read voltage adjustment step size:
[0097] In this embodiment, if Figure 4 As shown, the i-th threshold voltage offset and the jth threshold voltage offset There is a linear function relationship between them, as shown in the following formula:
[0098]
[0099] The i-th read voltage adjustment step (decision distance) and the ith threshold voltage offset There is a linear function relationship between them, as shown in the following formula:
[0100]
[0101] According to the above two linear relationships, the functional relationship between the bit error rate and the read voltage adjustment step length is calculated as follows:
[0102]
[0103] Similarly, if Figure 5 As shown in the figure, for TLC NAND flash memory, the functional relationship between the bit error rate of Low Page and the read voltage adjustment step size is:
[0104]
[0105] The functional relationship between the bit error rate of the Middle Page and the read voltage adjustment step size is:
[0106]
[0107] For the Upper Page bit error rate and the function relationship of the read voltage adjustment step size:
[0108]
[0109] In operation S202, a functional relationship between the check node error rate and the read voltage adjustment step length is established according to the functional relationship between the check node error rate and the bit error rate and the functional relationship between the bit error rate and the read voltage adjustment step length.
[0110] In one embodiment of the present disclosure, the functional relationship between the check node error rate and the read voltage adjustment step length is established as follows: Figure 6 shown.
[0111] In operation S203, the read voltage adjustment step length is calculated according to the functional relationship between the check node error rate and the read voltage adjustment step length.
[0112] The functional relationship between the check node error rate and the read voltage adjustment step length can be quantified into a lookup table (Look Up Table, LUT), and the read voltage adjustment step length is obtained by searching the lookup table.
[0113] Based on the calculation method of the above check node error rate, bit error rate and functional relationship, the accuracy of the check node error rate and bit error rate corresponding to each page of data can be guaranteed, thereby ensuring the accuracy of data recovery.
[0114] According to an embodiment of the present disclosure, when a read voltage corresponding to a minimum check node error rate is selected to read data from a flash memory for data recovery, error control coding is used to recover the read data.
[0115] Figure 7A flow chart of a data recovery method for a flash memory provided by yet another embodiment of the present disclosure is schematically shown.
[0116] like Figure 7 As shown, the data recovery method provided in this embodiment may further include operations S701 to S702.
[0117] In operation S701 , a functional relationship between a read voltage adjustment step length between an i th preset read voltage and an i th optimal read voltage and a read voltage adjustment step length between a j th preset read voltage and a j th optimal read voltage is established.
[0118] In operation S702 , a read voltage adjustment step length between a j th preset read voltage and a j th optimal read voltage is calculated according to a read voltage adjustment step length between an ith preset read voltage and an ith optimal read voltage based on a functional relationship.
[0119] For example, for a TLC NAND flash memory, the seven read voltages of the TLC NAND flash memory are adjusted. Specifically, for the Low Page, the voltages need to be adjusted according to calculate For Middle Page, you need to calculate and
[0120] The method can quickly adjust other read voltage adjustment step sizes based on a read voltage adjustment step size.
[0121] Figure 8 A flow chart of a data recovery method for a flash memory provided by yet another embodiment of the present disclosure is schematically shown.
[0122] like Figure 8 As shown, the data recovery method provided in this embodiment may further include operations S801 to S802.
[0123] In operation S801, it is determined whether the current check node error rate is less than a preset threshold.
[0124] If the current check node error rate is less than the preset threshold, operation S802 is performed.
[0125] According to the embodiments of the present disclosure, Fig. 9As shown, there is a monotonic function relationship between the check node error rate and the bit error rate. Therefore, the check node error rate can be used instead of the bit error rate, and the size of the check node error rate can be used to determine whether the read data can be corrected by ECC. When the check node error rate of the read data is less than a certain value, the read data error can be corrected by ECC. For example, in a specific example, a check node error rate less than 0.2338 can be corrected by ECC hard decision decoding, and a check node error rate less than 0.3749 can be corrected by ECC soft decision decoding.
[0126] In operation S802, the operation of adjusting the preset read voltage according to the read voltage adjustment step length is stopped, and data is read from the flash memory using the adjusted preset read voltage, and data recovery is performed using the currently read data.
[0127] The data recovery method for flash memory provided in this embodiment is based on the aforementioned method of determining the decision distance according to the error rate of the check node and thus adjusting the read voltage, and adds a judgment on whether the read data can be corrected by ECC. When it is judged that the read data can be corrected by ECC, the operation of adjusting the read voltage is stopped to improve system performance.
[0128] Fig.10 A flowchart of a data recovery method for a flash memory provided by another embodiment of the present disclosure is schematically shown. Fig.10 As shown, the data recovery method provided in this embodiment may further include operations S1001 to S1002.
[0129] In operation S1001, it is determined whether the current check node error rate is greater than the previous check node error rate.
[0130] The current check node error rate is greater than the last check node error rate, indicating that the bit error rate of the current read data is increasing relative to the last time, and the read voltage of the last read data is the optimal read voltage. Therefore, when the current check node error rate is greater than the last check node error rate, operation S1002 is performed.
[0131] In operation S1002, the operation of adjusting the preset read voltage according to the read voltage adjustment step length is stopped, and data is read from the flash memory using the adjusted preset read voltage, and data recovery is performed using the data read last time.
[0132] The data recovery method for flash memory provided in this embodiment is based on the aforementioned method of determining the decision distance according to the error rate of the check node and thus adjusting the read voltage, and adds a judgment on whether the read data can be corrected by ECC. When it is judged that the read data can be corrected by ECC, the operation of adjusting the read voltage is stopped to improve system performance.
[0133] Fig.11The structure diagram of the data recovery system for flash memory provided by the embodiment of the present disclosure is schematically shown.
[0134] like Fig.11 As shown, the system mainly includes:
[0135] The check node error rate calculation circuit (Cal_CNER) is used to calculate the check node error rate corresponding to the calculation data.
[0136] A table lookup circuit (Fun_CNER) for finding the decision distance according to the check node error rate is used to calculate the read voltage adjustment step size according to the check node error rate and the bit error rate.
[0137] The functional relationship table lookup circuit (Cal_RVDD) of the i-th decision distance and the j-th decision distance is used to calculate the read voltage adjustment step between the j-th preset read voltage and the j-th optimal read voltage according to the read voltage adjustment step between the i-th preset read voltage and the i-th optimal read voltage.
[0138] For any details not included in the device embodiment, please refer to the method embodiment section and will not be repeated here.
[0139] It should be noted that the check node is also called a check equation, which is a parity check equation composed of the positions of 1 in each row of the ECC check matrix. The concept of the check node error rate in the embodiment of the present disclosure includes both the concept of the check node error rate itself and the concept of the check equation. If the functional relationship between the check equation and the decision distance is used to adjust the read voltage, it should be included in the protection scope of the present disclosure.
[0140] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present disclosure. It should be understood that the above description is only a specific embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A data recovery method for a flash memory, comprising: Reading data from the flash memory using a preset read voltage; Calculating a check node error rate corresponding to the data; Calculating the read voltage adjustment step length according to the check node error rate, including: establishing a functional relationship between the check node error rate and the bit error rate and a functional relationship between the bit error rate and the read voltage adjustment step length based on the threshold voltage distribution state of the flash memory; According to the functional relationship between the check node error rate and the bit error rate and the functional relationship between the bit error rate and the read voltage adjustment step length, a functional relationship between the check node error rate and the read voltage adjustment step length is established; according to the functional relationship between the check node error rate and the read voltage adjustment step length, the read voltage adjustment step length is calculated; adjusting the preset read voltage according to the read voltage adjustment step length, reading data from the flash memory using the adjusted preset read voltage, and repeating the operation of calculating the check node error rate corresponding to the data to the operation of adjusting the preset read voltage according to the read voltage adjustment step length until the check node error rate is minimized; A read voltage corresponding to a minimum check node error rate is selected to read data from the flash memory to perform data recovery.
2. The method for recovering data from a flash memory according to claim 1, further comprising: Determine whether the current check node error rate is less than a preset threshold; If so, the operation of adjusting the preset read voltage according to the read voltage adjustment step is stopped, and the operation of reading data from the flash memory using the adjusted preset read voltage is performed, and data recovery is performed using the currently read data.
3. The data recovery method for flash memory according to claim 1, further comprising: Determine whether the current check node error rate is greater than the previous check node error rate, If so, the operation of adjusting the preset read voltage according to the read voltage adjustment step is stopped, and data is read from the flash memory using the adjusted preset read voltage, and data recovery is performed using the data read last time.
4. The data recovery method for flash memory according to any one of claims 1 to 3, wherein: The calculating the check node error rate corresponding to the data comprises: According to the formula: R C =sum(H·D k ) / m Calculate the check node error rate, where R C is the check node error rate, H is the parity check matrix, D k is the data of a codeword read out, and m is the number of check nodes.
5. The data recovery method for flash memory according to claim 1, wherein: The establishing of the functional relationship between the check node error rate and the bit error rate and the functional relationship between the bit error rate and the read voltage adjustment step size includes: Calculating the bit error rate corresponding to the preset read voltage, wherein calculating the bit error rate corresponding to the preset read voltage includes: according to the formula: Calculate the bit error rate, where P e is the bit error rate, i is the sequence number of the threshold voltage distribution state, is the i-th preset reading voltage, μ i is the mean value of the ith threshold voltage distribution state of the flash memory, μ i-1 is the mean value of the i-1th threshold voltage distribution state of the flash memory, The mean is 0 and the variance is σ i-1 The distribution function of the Gaussian distribution corresponding to the threshold voltage distribution state is, The mean is 0 and the variance is σ i The distribution function of the Gaussian distribution.
6. The data recovery method for flash memory according to claim 5, wherein: The i-th preset read voltage and the i-th optimal read voltage have the following relationship: in, is the i-th optimal reading voltage, A read voltage adjustment step length between the i-th preset read voltage and the i-th optimal read voltage; The i-th optimal read voltage is calculated by the following formula: Among them, μ i is the mean value of the ith threshold voltage distribution state, σ i is the variance of the ith threshold voltage distribution, μ i-1 is the mean value of the i-1th threshold voltage distribution state, σ i-1 is the variance of the i-1th threshold voltage distribution state.
7. The data recovery method for flash memory according to claim 1, wherein: The method further comprises: The functional relationship between the check node error rate and the read voltage adjustment step length is quantified into a lookup table, and the read voltage adjustment step length is obtained by looking up the lookup table.
8. The method for recovering data from a flash memory according to claim 6, wherein: The method further comprises: Establishing a functional relationship between a read voltage adjustment step length between an i-th preset read voltage and the i-th optimal read voltage and a read voltage adjustment step length between a j-th preset read voltage and the j-th optimal read voltage; Based on the functional relationship, the read voltage adjustment step length between the jth preset read voltage and the jth optimal read voltage is calculated according to the read voltage adjustment step length between the ith preset read voltage and the ith optimal read voltage.
9. The data recovery method for flash memory according to any one of claims 1 to 3, wherein: Selecting a read voltage corresponding to a minimum check node error rate to read data from the flash memory to perform data recovery includes: Error control coding is used to recover the read data.
