A method for testing open block characteristics of flash memory
By writing data in stages and comparing the number of error bits, the characteristics of the open block and the close block of the flash memory are analyzed to solve the problem of flash memory capacity waste and data stability, optimize the data recovery efficiency, and realize the effective use of the open block.
Patent Information
- Application Number
- CN202111268294.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-10-29
AI Technical Summary
When the open block of NAND Flash is not fully filled with data, the data stability of some word lines is poor, resulting in data reading errors. The existing technology causes a waste of flash memory capacity by closing the open block.
By writing data into the block in stages until the entire block is filled, and at each stage, a control block is selected to fill in the data, the error bits are compared, the characteristic relationship between the open block and the close block is analyzed, and the time and grouping are adjusted to optimize Data stability.
It achieves comprehensive and rapid detection of data stability inconsistencies during the use of open blocks, obtains usage intervals and grouping information, reduces the impact of data stability, and improves data recovery efficiency.
Smart Images

Figure CN113963741B
Abstract
Description
Technical Field
[0001] The invention relates to a flash memory testing method, in particular to a flash memory open block testing method. Background Art
[0002] When the NAND Flash block is not fully written with data, some word lines (WL) will have poor data stability, which will cause data reading errors on these word lines. Currently, one method of handling open blocks is to continue to write to some word lines sequentially and then close the open block and then not use it again, which will waste the flash memory capacity. Summary of the invention
[0003] In view of the defects of the prior art, the present invention provides a method for testing the characteristics of the open block of a flash memory, by which the characteristics of the data in different stages after the open block is closed are obtained through testing, and analysis and processing are performed according to the characteristic performance to fully utilize the capacity of the flash memory.
[0004] In order to solve the technical problem, the technical solution adopted by the present invention is: a method for testing the open block characteristics of a flash memory, the method writes data to the block in stages until the entire block is filled, so that each intermediate stage is an open block, and a group of control blocks are selected in each stage to be filled with data, and the characteristic relationship between the open block and the close block in each stage is obtained by comparing the number of error bits of the data.
[0005] Furthermore, the implementation steps of this method are:
[0006] S01), select N groups of blocks with similar positions in the NAND Flash, numbered 1, 2, 3, ..., n-1, n, where n is a positive integer greater than or equal to 2;
[0007] S02), according to the number of word lines M of the block, calculate the number of word lines m that need to be written each time, m=M / (N-1);
[0008] S03), write m word lines starting from word line 0 to block group numbered 1, fill block group numbered 2 with data, wait for a period of time T, write m word lines starting from word line m to block group numbered 1, fill block group numbered 3 with data, wait for a period of time T, write m word lines starting from word line 2m to block group numbered 1, fill block group numbered 4 with data, wait for a period of time T, repeat the above process, and wait for a period of time T after completing the writing of N groups of blocks;
[0009] S04), read word line 0 to word line m of block group numbered 1 to obtain error bit distribution P1[0,m), read word line 0 to word line m of block group numbered 2 to obtain error bit distribution P2[0,m), read word line m to word line 2m of block group numbered 1 to obtain error bit distribution P1[m,2m), read word line m to word line 2m of block group numbered 3 to obtain error bit distribution P3[m,2m), repeat the above process until word line (n-2)m to word line (n-1)m of block group numbered 1 is read to obtain error bit distribution P1[(n-2)m,(n-1)m), read word line (n-2)m to word line (n-1)m of block group numbered n to obtain error bit distribution Pn[(n-2)m,(n-1)m);
[0010] S05), compare the obtained P1[0,m) with P2[0,m), P1[m,2m) with P3[m,2m), and then P1[(n-2)m,(n-1)m) with Pn[(n-2)m,(n-1)m), to obtain the comparison of the number of data error bits at different stages during the continuous use of the open block and the close block.
[0011] Furthermore, through the data comparison in step S05 , the data stability performance of the original edge word line is obtained.
[0012] Furthermore, by adjusting the size of T, it is possible to determine how long it takes to continue using the open block without affecting data stability.
[0013] Furthermore, by adjusting the grouping of N, it is found that on which word lines of the open block the continued use will have a greater impact on data stability.
[0014] Furthermore, when recovering data, the word line with the least number of error bits is selected.
[0015] Beneficial effects of the invention: The method described in this patent can comprehensively and quickly obtain the characteristic of inconsistent stability of the data before and after the open block is used. The data results obtained by this method can easily derive information such as the interval time of the open block use and the open grouping, and based on this information, it is easy to process the open block. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a flow chart of the test process described in Example 1. DETAILED DESCRIPTION
[0017] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0018] Example 1
[0019] This embodiment discloses a method for testing the open block characteristics of a flash memory. The method writes data to a block in stages until the entire block is filled, so that each stage in the middle is an open block. In each stage, a group of control blocks are selected to be filled with data, and the characteristic relationship between the open block and the close block in each stage is obtained by comparing the number of error bits of the data, and corresponding processing can be performed according to these characteristics.
[0020] The implementation steps of this method are:
[0021] Select N groups of blocks with similar positions in the NAND Flash and number them 1, 2, 3, ..., n-1, n, where n is a positive integer greater than or equal to 2.
[0022] According to the number of word lines M in the block, the number of word lines m that need to be written each time is calculated, where m=M / (N-1).
[0023] Write m word lines to block group 1 starting from word line 0, write full data to block group 2, and wait for a period of time T. Write m word lines to block group 1 starting from word line m, write full data to block group 3, and wait for a period of time T. Write m word lines to block group 1 starting from word line 2m, write full data to block group 4, and wait for a period of time T. Repeat the above process, and wait for a period of time T after completing the writing of N groups of blocks.
[0024] Finally, read word line 0 to word line m of block group numbered 1 to obtain the error bit distribution P1[0,m), read word line 0 to word line m of block group numbered 2 to obtain the error bit distribution P2[0,m). Read word line m to word line 2m of block group numbered 1 to obtain the error bit distribution P1[m,2m), read word line m to word line 2m of block group numbered 3 to obtain the error bit distribution P3[m,2m). Repeat the above process until read word line (n-2)m to word line (n-1)m of block group numbered 1 to obtain the error bit distribution P1[(n-2)m,(n-1)m), read word line (n-2)m to word line (n-1)m of block group numbered n to obtain the error bit distribution Pn[(n-2)m,(n-1)m).
[0025] The data obtained at this time is:
[0026] P1[0,m) and P2[0,m) represent the comparison of the number of error bits of the original data of the open block and the close block at time nT respectively;
[0027] P1[m,2m) and P3[m,2m) represent the comparison of the number of error bits of the original data of the open block and the close block at time nT respectively;
[0028] ……;
[0029] P1[(n-2)m,(n-1)m) and Pn[(n-2)m,(n-1)m) represent the comparison of the number of error bits of the original data of the open block and the data of the close block at time nT respectively.
[0030] According to the data, we can get the comparison between the number of data error bits at different stages and the close block during the continuous use of the open block, especially the data stability performance of the original edge word line. By adjusting the size of T, we can easily find out how long the open block can be used without affecting the data stability. By adjusting the grouping of N, we can easily find out which word lines will be opened and continue to use will have a greater impact on data stability. In addition, according to the number of error bits, it is relatively easy to choose read retry for data recovery.
[0031] This embodiment executes the test method in a loop, such as Figure 1 As shown, the following steps are included:
[0032] 1. Get N groups of flash memory blocks, each group has the same number of blocks, and go to step 2;
[0033] 2. Calculate the number of word lines m that need to be written each time according to the total number of word lines in the block and the number of groups, and execute step 3;
[0034] 3. Set the loop count n and execute step 4
[0035] 4. Write the data of Block group 1 into m word lines in sequence. The corresponding word lines are numbered from (n-2)m to (n-1)m. The corresponding Block group n is filled with data. Then execute step 5.
[0036] 5. Wait for a period of time T, increase the loop count n by 1, and execute step 6;
[0037] 6. Determine whether n is less than N. If so, execute step 4; otherwise, execute step 7.
[0038] 7. Reset the loop count n and execute step 8;
[0039] 8. Block group 1 reads m word lines and obtains the corresponding error bit distribution. The read word lines are numbered from (n-2)m to (n-1)m, and step 9 is executed.
[0040] 9. The corresponding Block group n reads the same word line to obtain the corresponding error bit distribution, and executes step 10
[0041] 10. Increase the loop count n by 1 and execute step 11;
[0042] 11. Determine whether n is less than N. If so, execute step 8. If not, end.
[0043] The above description is only the basic principle and preferred embodiments of the present invention. Improvements and substitutions made by those skilled in the art based on the present invention belong to the protection scope of the present invention.
Claims
1. A method for testing the open block characteristics of a flash memory, characterized in that: This method writes data to the block in stages until the entire block is filled. In this way, each stage in the middle is an open block. In each stage, a group of control blocks are selected to be filled with data. By comparing the number of error bits in the data, the characteristic relationship between the open block and the close block in each stage is obtained. The implementation steps of this method are: S01), select N groups of blocks with similar positions in the NAND Flash, numbered 1, 2, 3, ..., n-1, n, where n is a positive integer greater than or equal to 2; S02), according to the number of word lines M of the block, calculate the number of word lines m that need to be written each time, m=M / (N-1); S03), write m word lines starting from word line 0 to block group numbered 1, fill block group numbered 2 with data, wait for a period of time T, write m word lines starting from word line m to block group numbered 1, fill block group numbered 3 with data, wait for a period of time T, write m word lines starting from word line 2m to block group numbered 1, fill block group numbered 4 with data, wait for a period of time T, repeat the above process, and wait for a period of time T after completing the writing of N groups of blocks; S04), read word line 0 to word line m of block group numbered 1 to obtain error bit distribution P1[0,m), read word line 0 to word line m of block group numbered 2 to obtain error bit distribution P2[0,m), read word line m to word line 2m of block group numbered 1 to obtain error bit distribution P1[m,2m), read word line m to word line 2m of block group numbered 3 to obtain error bit distribution P3[m,2m), repeat the above process until word line (n-2)m to word line (n-1)m of block group numbered 1 is read to obtain error bit distribution P1[(n-2)m,(n-1)m), read word line (n-2)m to word line (n-1)m of block group numbered n to obtain error bit distribution Pn[(n-2)m,(n-1)m); S05), compare the obtained P1[0,m) with P2[0,m), compare P1[m,2m) with P3[m,2m), and then compare P1[(n-2)m,(n-1)m) with Pn[(n-2)m,(n-1)m) to obtain the comparison of the number of data error bits at different stages during the continuous use of the open block and the close block.
2. The method for testing the open block characteristics of a flash memory according to claim 1, characterized in that: By comparing the data in step S05 ), the data stability performance of the original edge word line is obtained.
3. The method for testing the open block characteristics of a flash memory according to claim 1, characterized in that: By adjusting the size of T, we can determine how long we can continue to use the open block without affecting data stability.
4. The method for testing the open block characteristics of a flash memory according to claim 1, wherein: By adjusting the grouping of N, we can find out which word lines of the open block will have a greater impact on data stability if they are continued to be used.
5. The method for testing the open block characteristics of a flash memory according to claim 1, characterized in that: When recovering data, the word line with the least number of error bits is selected.
Citation Information
Patent Citations
Static random access memory and testing method thereof
CN105609140A
Method for repairing flash memory
CN112562775A
Testing and processing method for Open Block
CN112863591A
Method and apparatus with background reference positioning and local reference positioning
EP3491648A1
Semiconductor device
JP2008262710A
