Flash memory particle grading method, electronic equipment and computer readable storage medium

By acquiring and evaluating the number of bad blocks, original bit error rate and operation time of flash memory particles, fine grading of flash memory particles is achieved, solving the problem of low grading accuracy in the prior art, and improving the accuracy of grading.

CN119649892AActive Publication Date: 2025-03-18ZHEJIANG DAHUA TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510183885.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2025-03-18
Estimated Expiration
2045-02-19

AI Technical Summary

Technical Problem

In the prior art, the accuracy of flash memory particles is low, making it difficult to effectively distinguish flash memory particles with strong and weak performance.

Method used

By obtaining the number of bad blocks of flash particles and the original bit error rate of normal blocks, as well as the operation time, comprehensive scores are performed to finely grade flash particles.

Benefits of technology

It improves the accuracy of flash memory particle grading and can more accurately distinguish flash memory particles of different performance levels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119649892A_ABST
    Figure CN119649892A_ABST
Patent Text Reader

Abstract

The invention discloses a flash memory particle grading method, electronic equipment and a computer readable storage medium, and the method comprises the steps: obtaining to-be-screened flash memory particles, and determining the number of bad blocks corresponding to the bad blocks in all blocks of the flash memory particles; acquiring a corresponding first original bit error rate when the data is read and written in the normal block of the flash memory particle, and a corresponding second original bit error rate when the data is written in the normal block of the flash memory particle and after a preset waiting time; wherein the operation time of the flash memory particles is collected in the testing process; based on the flash memory particle operation time, the first original bit error rate and the second original bit error rate, determining a block grade corresponding to the normal block; and determining the particle classification of the flash memory particles based on the number of the bad blocks corresponding to the bad blocks in the flash memory particles and the block classification corresponding to the normal blocks. In this way, the precision of grading the flash memory particles can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of storage device analysis, and in particular to a flash memory particle grading method, an electronic device, and a computer-readable storage medium. Background Art

[0002] Flash memory, as an important component of storage devices, has been widely used in the market. Therefore, the quality and reliability of flash memory particles have been increasingly valued. However, the conventional way of screening flash memory particles is usually to use read and write operations for testing, so as to screen out flash memory particles with strong and poor performance, resulting in low accuracy of flash memory particle classification. In view of this, how to improve the accuracy of flash memory particle classification has become an urgent problem to be solved. Summary of the invention

[0003] The main technical problem solved by the present application is to provide a flash memory particle grading method, an electronic device and a computer-readable storage medium, which can improve the accuracy of flash memory particle grading.

[0004] To solve the above technical problems, the first aspect of the present application provides a flash memory particle grading method, comprising: obtaining flash memory particles to be screened, and determining the number of bad blocks corresponding to bad blocks in all blocks of the flash memory particles; obtaining a first original bit error rate corresponding to reading and writing data in a normal block of the flash memory particle, and a second original bit error rate corresponding to writing data in the normal block of the flash memory particle and after a preset waiting time; wherein, the flash memory particle operation time is collected during the test; based on the flash memory particle operation time, the first original bit error rate and the second original bit error rate, determining the block grade corresponding to the normal block; based on the number of bad blocks corresponding to the bad blocks in the flash memory particles and the block grade corresponding to the normal block, determining the particle grade of the flash memory particle.

[0005] To solve the above technical problems, the second aspect of the present application provides an electronic device, which includes: a memory and a processor coupled to each other, wherein the memory stores program data, and the processor calls the program data to execute the method described in the first aspect.

[0006] In order to solve the above technical problem, the third aspect of the present application provides a computer-readable storage medium on which program data is stored. When the program data is executed by a processor, the method described in the first aspect is implemented.

[0007] The above scheme obtains the flash memory particles to be screened, and determines the bad blocks and the number of bad blocks corresponding to them from all the blocks of the flash memory particles. Obtain the first original bit error rate corresponding to the normal blocks of the flash memory particles in the process of reading and writing data, and the second original bit error rate corresponding to the normal blocks of the flash memory particles after the data is written and the data is kept for a preset waiting time, wherein the operation time of the flash memory particles is collected during the test. Based on the obtained operation time of the flash memory particles, the first original bit error rate and the second original bit error rate, the normal blocks are graded, so as to comprehensively consider the operation time of the flash memory particles of the normal blocks, the data reading and writing effect and the data retention effect, and obtain the accurate block grade corresponding to the normal blocks. Based on the number of bad blocks corresponding to the bad blocks in the flash memory particles and the block grade corresponding to the normal blocks, the flash memory particles are graded, so as to comprehensively consider the information related to the bad blocks and the normal blocks in the flash memory particles, and finely grade the flash memory particles, determine the particle grade corresponding to the flash memory particles, and improve the accuracy of the flash memory particle grade. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them: Figure 1 It is a flow chart of an implementation method of a flash memory particle classification method of the present application; Figure 2 It is a flow chart of another implementation method of the flash memory particle classification method of the present application; Figure 3 It is a structural schematic diagram of an embodiment of the electronic device of the present application; Figure 4 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0009] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments, and different implementation methods can be adaptively combined. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0010] The flash memory particle grading method provided in the present application is used to screen and grade flash memory particles, and its corresponding execution subject is a processing unit capable of performing data processing.

[0011] It can be understood that the essence of flash memory particle screening is the screening of storage units (target); among them, target is the largest unit of flash memory particle packaging, and there are several chips (die) in one target; among them, die is the unit that can perform concurrent operations in the target, and one Die contains several blocks (Block); Block is the minimum erase unit of flash memory particles, and one Block contains several data pages (Page); Page is the minimum read and write operation unit of flash memory particles; Raw Bit Error Rate (RBER) is an important indicator to measure the reliability of flash memory particles. The raw bit error rate refers to the bit error rate that occurs during data transmission or storage before error correction code processing.

[0012] See also Figure 1 , Figure 1 1 is a flow chart of an embodiment of a flash memory particle classification method of the present application, the method comprising: S101: Obtain a flash memory particle to be screened, and determine the number of bad blocks corresponding to bad blocks in all blocks of the flash memory particle.

[0013] Specifically, the flash memory particles to be screened are obtained, and bad blocks and their corresponding bad block numbers are determined from all blocks of the flash memory particles, wherein the blocks in the flash memory particles other than the bad blocks are normal blocks.

[0014] In some implementation scenarios, flash memory particles to be screened are obtained, writing results when writing data to all blocks in the flash memory particles are determined, and abnormal bad blocks and their corresponding bad block quantities are obtained from the writing results.

[0015] In some implementation scenarios, flash memory particles to be screened are obtained, reading results of all blocks in the flash memory particles when reading data are determined, and abnormal bad blocks and their corresponding bad block numbers are obtained from the reading results.

[0016] Optionally, the flash memory particles are provided with a lowest bad block level, a highest bad block level, and at least one intermediate bad block level between the lowest bad block level and the highest bad block level according to the number of bad blocks. When the flash memory particles correspond to the highest bad block level, the particle level of the flash memory particles is set to the lowest level particle. The lowest bad block level corresponds to the least number of bad blocks, and the highest bad block level corresponds to the greatest number of bad blocks. That is, when the flash memory particles are provided with the highest bad block level, the particle level of the flash memory particles can be directly set to the lowest level particle.

[0017] In a specific implementation scenario, the number of bad blocks corresponding to the bad blocks in the flash memory particles is obtained, a bad block relationship table is constructed with the flash memory particles as the unit, the number of bad blocks of each die in the flash memory particles is recorded, and the first bad block threshold corresponding to a single die is preset to be R1 and the second bad block threshold is preset to be R2, wherein R2 is greater than R1. If the number of bad blocks of each die in the flash memory particles is less than R1, it is classified as GOOD-level particles, that is, the lowest bad block classification; if the number of bad blocks of each die in the flash memory particles is less than R2, and there is at least one die with a number of bad blocks greater than or equal to R1, it is classified as NOMAL-level particles, that is, the intermediate bad block classification; if there is at least one die with a number of bad blocks greater than or equal to R2, it is classified as BAD-level particles; only GOOD and NOMAL-level particles enter the subsequent test process, and BAD-level particles can be directly set as the lowest-level particles. Among them, the number of bad block thresholds and intermediate bad block classifications can be customized and adaptively set, and this application does not impose specific restrictions on this.

[0018] S102: Obtain a first original bit error rate corresponding to reading and writing data in a normal block of a flash memory particle, and a second original bit error rate corresponding to writing data in a normal block of a flash memory particle after a preset waiting time; wherein, the operation time of the flash memory particles is collected during the test.

[0019] Specifically, a first original bit error rate corresponding to a normal block of a flash memory particle during the process of reading and writing data is obtained, as well as a second original bit error rate corresponding to a normal block of a flash memory particle after keeping data for a preset waiting time after writing data, wherein the operation time of the flash memory particles is collected during the test.

[0020] In some implementation scenarios, data is written to a data page of a normal block at a preset temperature, and the written data in the normal block is read at a preset temperature, a first original bit error rate corresponding to reading and writing data is determined, data is written to a data page of the normal block at a preset temperature, and a corresponding second original bit error rate is obtained after a preset waiting time, and the writing time and reading time of the data page are counted as the operation time of the flash memory particles during the test.

[0021] In some implementation scenarios, data is written to a data page of a normal block at a first test temperature, and the written data in the normal block is read at a second test temperature to determine a first original bit error rate corresponding to reading and writing the data, wherein the first test temperature is higher than the second test temperature corresponding to a temperature difference, data is written to a data page of a normal block at the first test temperature, and the corresponding second original bit error rate is obtained after a preset waiting time, and during the test process, the writing time and reading time of the data page and the erasing time of the normal block are counted as the operation time of the flash memory particles.

[0022] S103: Determine a block level corresponding to a normal block based on the flash memory particle operation time, the first raw bit error rate, and the second raw bit error rate.

[0023] Specifically, based on the obtained flash memory particle operation time, the first original bit error rate and the second original bit error rate, the normal blocks are graded, so as to comprehensively consider the flash memory particle operation time, data reading and writing effect and data retention effect of the normal blocks to obtain the accurate block grade corresponding to the normal blocks.

[0024] Optionally, the test process corresponds to multiple test rounds. In different test rounds, the proportions of data pages with data written in normal blocks are different from each other. In multiple test rounds, multiple rounds of tests can be performed in a manner of decreasing or increasing or randomly setting the proportion of data pages with written data to all data pages, thereby covering the data reading and writing effects and data retention effects of normal blocks under different data page loads.

[0025] In some implementation scenarios, based on the obtained operation time of the flash memory particles, normal blocks that do not meet the time requirements and normal blocks that meet the time requirements are determined, the block level of the normal blocks that do not meet the time requirements is set to the lowest level block, and the normal blocks that meet the time requirements are used as blocks to be confirmed, and based on the obtained first original bit error rate and the second original bit error rate, the block level corresponding to the blocks to be confirmed is determined.

[0026] In some implementation scenarios, a test score corresponding to a normal block is determined based on the obtained operation time of the flash memory particles, a data read and write score corresponding to the normal block is determined based on the obtained first raw bit error rate, a data retention score corresponding to the normal block is determined based on the obtained second raw bit error rate, and a block grade corresponding to the normal block is determined based on the test score, the data read and write score and the data retention score.

[0027] In a specific implementation scenario, the test process corresponds to multiple test rounds, and the normal blocks correspond to multiple levels of block classification. The normal blocks that do not meet the time requirements in any test round are set as the lowest level blocks, and the normal blocks that meet the time requirements in all test rounds are used as the blocks to be confirmed. The first original bit error rate corresponds to multiple increasing classification thresholds, and the multiple preset waiting times correspond to respective second original bit error rates. The blocks to be confirmed whose first original bit error rates of all test rounds do not exceed the minimum classification threshold, and whose corresponding second original bit error rates under the longest preset waiting time do not exceed the preset threshold are set as the highest level blocks. The blocks to be confirmed whose first original bit error rates of all test rounds do not exceed the maximum classification threshold, and whose corresponding second original bit error rates under the shortest preset waiting time do not exceed the preset threshold are set as intermediate level blocks. The blocks to be confirmed whose first original bit error rates of any test round exceed the maximum classification threshold, or whose corresponding second original bit error rates of any test round exceed the preset threshold under the shortest preset waiting time are set as the lowest level blocks. Among them, for the intermediate-level blocks in different implementation scenarios, more specific level divisions can be set based on specific scenarios, and this application does not make specific restrictions on this.

[0028] S104: Determine the particle level of the flash memory particle based on the number of bad blocks corresponding to the bad blocks in the flash memory particle and the block level corresponding to the normal blocks.

[0029] Specifically, the flash memory particles are graded based on the number of bad blocks corresponding to the bad blocks in the flash memory particles and the block grades corresponding to the normal blocks. Thus, the flash memory particles are finely graded based on the information related to the bad blocks and normal blocks in the flash memory particles, the particle grades corresponding to the flash memory particles are determined, and the accuracy of the flash memory particle grading is improved.

[0030] In some implementation scenarios, a grading score of a flash memory particle is determined based on a block grade corresponding to a normal block in the flash memory particle, and the grading score is adjusted based on the number of bad blocks corresponding to the bad blocks in the flash memory particle, thereby determining a particle grade of the flash memory particle based on the adjusted grading score.

[0031] In some implementation scenarios, each block rating corresponds to a respective score, and a first particle score is determined based on the scores corresponding to the block ratings corresponding to all normal blocks in the flash memory particles, and a second particle score is determined based on the number of bad blocks corresponding to the bad blocks in the flash memory particles, wherein the second particle score is negatively correlated with the number of bad blocks. Based on the first particle score and the second particle score, the particle rating of the flash memory particles is determined.

[0032] The above scheme obtains the flash memory particles to be screened, and determines the bad blocks and the number of bad blocks corresponding to them from all the blocks of the flash memory particles. Obtain the first original bit error rate corresponding to the normal blocks of the flash memory particles in the process of reading and writing data, and the second original bit error rate corresponding to the normal blocks of the flash memory particles after the data is written and the data is kept for a preset waiting time, wherein the operation time of the flash memory particles is collected during the test. Based on the obtained operation time of the flash memory particles, the first original bit error rate and the second original bit error rate, the normal blocks are graded, so as to comprehensively consider the operation time of the flash memory particles of the normal blocks, the data reading and writing effect and the data retention effect, and obtain the accurate block grade corresponding to the normal blocks. Based on the number of bad blocks corresponding to the bad blocks in the flash memory particles and the block grade corresponding to the normal blocks, the flash memory particles are graded, so as to comprehensively consider the information related to the bad blocks and the normal blocks in the flash memory particles, and finely grade the flash memory particles, determine the particle grade corresponding to the flash memory particles, and improve the accuracy of the flash memory particle grade.

[0033] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of another embodiment of the flash memory particle classification method of the present application, the method comprising: S201: Obtain a flash memory particle to be screened, and determine the number of bad blocks corresponding to bad blocks in all blocks of the flash memory particle.

[0034] Specifically, the flash memory particles to be screened are obtained, and bad blocks and their corresponding bad block numbers are determined from all blocks of the flash memory particles, wherein the blocks in the flash memory particles other than the bad blocks are normal blocks.

[0035] It should be noted that the flash memory particles are set with a minimum bad block level, a maximum bad block level, and at least one intermediate bad block level between the minimum bad block level and the maximum bad block level according to the number of bad blocks. When the flash memory particle corresponds to the highest bad block level, the particle level of the flash memory particle is set to the lowest level particle.

[0036] It can be understood that the lowest bad block level corresponds to the least number of bad blocks, and the highest bad block level corresponds to the greatest number of bad blocks. Only flash memory particles corresponding to the lowest bad block level and the middle bad block level enter the test process.

[0037] It should be noted that the test process corresponds to multiple test rounds, and in different test rounds, the proportion of data pages with data written in the normal block is different. Therefore, in the process of multiple rounds of testing, the data reading and writing effect and data retention effect of the normal block under different data page loads are covered. Among them, each test round executes steps S202-S203.

[0038] S202: writing data into a corresponding proportion of data pages in a normal block at a data read and write test temperature, and reading the written data in the normal block at the data read and write test temperature to determine a first original bit error rate corresponding to the reading and writing of data.

[0039] Specifically, a data read and write test temperature is obtained, data is written to a corresponding proportion of data pages in a normal block at the data read and write test temperature, and the written data in the normal block is read at the data read and write test temperature to determine a first raw bit error rate corresponding to the process of reading and writing data. The data read and write test temperature corresponds to the use environment of the flash memory particles, thereby simulating actual working conditions.

[0040] In some implementation scenarios, the data read and write test temperature is divided into a first test temperature and a second test temperature, and the first test temperature and the second test temperature have a temperature difference with opposite positive and negative properties compared to the preset temperature. Writing data to a corresponding proportion of data pages of a normal block at the data read and write test temperature, and reading the written data in the normal block at the data read and write test temperature, and determining the first original bit error rate corresponding to the reading and writing of data, including: writing data to a corresponding proportion of data pages of a normal block at the first test temperature, and reading the written data in the normal block at the second test temperature, writing data to a corresponding proportion of data pages of a normal block at the second test temperature, and reading the written data in the normal block at the first test temperature, and determining the first original bit error rate corresponding to the reading and writing of data.

[0041] Specifically, the preset temperature corresponds to the room temperature, one of the first test temperature and the second test temperature is higher than the room temperature, and the other is lower than the room temperature. Therefore, the first test temperature and the second test temperature correspond to the upper and lower limits of the rated operating temperature of the flash memory particles, so as to better test the read and write capabilities of normal blocks within a larger temperature difference range.

[0042] For ease of explanation, it is assumed that the first test temperature is higher than the second test temperature, the proportion of data pages used to write data in the current test round is determined, data is written to the corresponding proportion of data pages in the normal block at the first test temperature, and the data written in the normal block is read at the second test temperature, thereby realizing a scenario simulation of high-temperature writing and low-temperature reading, data is written to the corresponding proportion of data pages in the normal block at the second test temperature, and the data written in the normal block is read at the first test temperature, thereby realizing a scenario simulation of low-temperature writing and high-temperature reading, and the first original bit error rate corresponding to reading and writing data is determined under more stringent temperature conditions, thereby improving the accuracy of the first original bit error rate when used to feedback data reading and writing effects.

[0043] S203: writing data into a corresponding proportion of data pages of a normal block at a data retention test temperature, and obtaining a corresponding second original bit error rate after a preset waiting time; wherein the data retention test temperature is higher than a preset temperature, and the preset waiting time is divided into a first waiting time and a second waiting time having different durations.

[0044] Specifically, the data retention test temperature is usually higher than room temperature, thereby simulating with higher efficiency the process of reading data after long-term storage at room temperature, writing data to a corresponding proportion of data pages of the normal block at the data retention test temperature, and obtaining the corresponding second original bit error rate after a first waiting time and a second waiting time, respectively, thereby determining the data retention effect of the normal block at different time lengths.

[0045] Optionally, the first waiting time and the second waiting time match the activation level of the flash memory particles, so as to better verify the data retention capability.

[0046] It is understandable that the flash memory particle operation time is also collected during the test process, wherein the flash memory particle operation time generally includes the read time and write time corresponding to the data page and the erase time corresponding to the normal block.

[0047] S204: Determine a block level corresponding to a normal block based on the flash memory particle operation time, the first raw bit error rate, and the second raw bit error rate.

[0048] Specifically, based on the obtained flash memory particle operation time, the first original bit error rate and the second original bit error rate, the normal blocks are graded, so as to comprehensively consider the flash memory particle operation time, data reading and writing effect and data retention effect of the normal blocks to obtain the accurate block grade corresponding to the normal blocks.

[0049] In some implementation scenarios, based on the flash memory particle operation time obtained in each test round, the lowest-level blocks among all normal blocks and the blocks to be confirmed other than the lowest-level blocks are determined; wherein the flash memory particle operation time of the lowest-level blocks exceeds a time threshold; based on the first original bit error rate obtained in each test round, and the second original bit error rates corresponding to the first waiting time and the second waiting time obtained in each test round, respectively, the block level corresponding to the blocks to be confirmed is determined.

[0050] Specifically, the flash memory particle operation time obtained in each test round is compared with the time threshold, and based on the comparison result, all normal blocks are divided into lowest-level blocks and blocks to be confirmed outside the lowest-level blocks, thereby reducing the number of blocks to be confirmed and setting normal blocks with longer operation time as lowest-level blocks.

[0051] Further, based on the first raw bit error rate obtained in each test round, and the second raw bit error rate corresponding to the first waiting time and the second waiting time respectively obtained in each test round, the blocks to be confirmed are graded, and the block grade corresponding to the blocks to be confirmed is determined. The first raw bit error rate can be set with different grade thresholds, so that multiple grade standards can be set for both the data read and write test and the data retention test test dimensions, so as to more accurately divide the block grades.

[0052] It can be understood that the operation time of the flash memory particles includes the reading time and writing time corresponding to the data page and the erasing time corresponding to the normal block; wherein the erasing time of the block to be confirmed and the reading time and writing time corresponding to the data page of the block to be confirmed do not exceed the corresponding time threshold.

[0053] Specifically, the erase time starts when the erase command is sent to the flash memory particles and stops when the flash memory particles return the erase completion signal. Similarly, similar operations are performed on the write and read time timings of the data pages. The erase time of the block to be confirmed in each test round, as well as the read time and write time corresponding to the data page of the block to be confirmed, do not exceed the corresponding time thresholds, thereby utilizing the flash memory particle operation time to efficiently screen normal blocks.

[0054] It should be noted that the first original bit error rate corresponds to a first threshold and a second threshold that increase in sequence, the first waiting time is greater than the second waiting time, and the second original bit error rate corresponds to a third threshold. Based on the first original bit error rate obtained in each test round, and the second original bit error rate corresponding to the first waiting time and the second waiting time obtained in each test round, the block level corresponding to the block to be confirmed is determined, including: obtaining a first proportion of data pages whose first original bit error rate does not exceed the first threshold in each test round, and a second proportion of data pages whose first original bit error rate is between the first threshold and the second threshold; based on the first proportion and the second proportion obtained in each test round, and the second original bit error rate corresponding to the first waiting time and the second waiting time obtained in each test round and the corresponding third threshold, the block level corresponding to the block to be confirmed is determined.

[0055] Specifically, a first proportion of data pages whose first original bit error rate does not exceed the first threshold in each test round is obtained, and a second proportion of data pages whose first original bit error rate is between the first threshold and the second threshold is obtained, and the second proportion of data pages whose data has been written is obtained. Thus, the blocks to be confirmed are graded according to the first proportion and the second proportion obtained in each test round, and the size of the second original bit error rates corresponding to the first waiting time and the second waiting time respectively obtained in each test round compared with the third threshold, to obtain a block grade with multiple gradients corresponding to the blocks to be confirmed.

[0056] For ease of explanation, it is taken as an example that the first original bit error rate corresponds to a first threshold value θ1 and a second threshold value θ2 which increase in sequence, and the second original bit error rate corresponds to a third threshold value θ3.

[0057] Regarding the determination of the highest-level block, for a single block to be confirmed, if in each test round, the first original bit error rate of all written data pages does not exceed the first threshold value θ1, and the second original bit error rate of all written data pages does not exceed the third threshold value θ3 when the first waiting time is placed, then the corresponding block to be confirmed is determined to be a first-level block, that is, the highest-level block.

[0058] Regarding the determination of the block second only to the highest level, for a single block to be confirmed, if the first original bit error rate of all written data pages in each test round does not exceed the second threshold θ2 and exceeds the first threshold θ1 of the data pages, the second proportion of all data pages in the block to be confirmed does not exceed the proportion threshold P1, and when the second waiting time is placed, the second original bit error rate of all written data pages does not exceed the third threshold θ3, then the corresponding block to be confirmed is determined to be a secondary block, that is, an intermediate block.

[0059] Regarding the determination of blocks higher than the lowest level, for a single block to be confirmed, if only the first original bit error rate of the data page written in one test round does not exceed the second threshold θ2 and exceeds the first threshold θ1, the second ratio of all data pages in the block to be confirmed does not exceed the ratio threshold P1, and the second original bit error rate of all its written data pages does not exceed the third threshold θ3 when the second waiting time is placed, then the corresponding block to be confirmed is determined to be a third-level block, that is, an intermediate-level block.

[0060] Regarding the determination of the lowest level block, if a block to be confirmed does not meet the above three conditions, the corresponding block to be confirmed is determined to be a fourth-level block, that is, the lowest level block.

[0061] S205: Determine the particle level of the flash memory particle based on the number of bad blocks corresponding to the bad blocks in the flash memory particle and the block level corresponding to the normal blocks.

[0062] Specifically, the flash memory particles are graded based on the number of bad blocks corresponding to the bad blocks in the flash memory particles and the block grades corresponding to the normal blocks, thereby comprehensively integrating the information related to the bad blocks and normal blocks in the flash memory particles, finely grading the flash memory particles, and determining the particle grades corresponding to the flash memory particles.

[0063] In some implementation scenarios, the initial classification of the flash memory particles is determined based on the ratio of the number of normal blocks corresponding to each block classification in the flash memory particles to all normal blocks; based on the number of bad blocks corresponding to the bad blocks in the flash memory particles, the initial classification of the flash memory particles is adjusted to obtain the particle classification of the flash memory particles.

[0064] Specifically, the ratio of the number of normal blocks corresponding to each block level in the flash memory particles to all normal blocks is obtained, and the flash memory particles are divided into initial levels only related to the performance of normal blocks based on the corresponding ratio, thereby improving the accuracy of the initial level.

[0065] Furthermore, based on the number of bad blocks corresponding to the bad blocks in the flash memory particles, the initial classification of the flash memory particles is adjusted to determine the final particle classification of the flash memory particles, so that the particle classification is evaluated in combination with multiple dimensions to obtain a particle classification with higher accuracy.

[0066] For ease of explanation, taking the four levels corresponding to particle classification as an example, if the number of primary blocks in a certain flash memory particle exceeds the first ratio threshold β1 relative to the total number of all normal blocks of the flash memory particle, then the initial classification of the flash memory particle is considered to be a primary particle; if the number of secondary blocks in a certain flash memory particle exceeds the second ratio threshold β2 relative to the total number of all normal blocks of the flash memory particle, then the initial classification of the particle is considered to be a secondary particle; if the number of tertiary blocks in a certain flash memory particle exceeds the third ratio threshold β3 relative to the total number of all normal blocks of the flash memory particle, then the initial classification of the particle is considered to be a tertiary particle; in other cases, it is classified as a fourth-level particle.

[0067] It should be noted that based on the number of bad blocks corresponding to the bad blocks in the flash memory particles, the initial classification of the flash memory particles is adjusted to obtain the particle classification of the flash memory particles, including: in response to the initial classification of the flash memory particles being the highest-level particles, and the flash memory particles are provided with an intermediate bad block classification, based on the intermediate bad block classification, the initial classification of the flash memory particles is adjusted to obtain the particle classification of the flash memory particles.

[0068] Specifically, when the initial classification of the flash memory particles is the highest level particles and the flash memory particles are set with intermediate bad block classification, the initial classification of the flash memory particles is adjusted based on the intermediate bad block classification, so that the flash memory particle classification is corrected by integrating the number of bad blocks, and the particle classification of the corresponding flash memory particles is lowered, thereby improving the standard of the highest level particles and meeting the application scenarios with high quality and reliability requirements for flash memory particles.

[0069] In this embodiment, the flash memory particles to be screened are obtained, and the bad blocks and the number of bad blocks corresponding to them are determined from all the blocks of the flash memory particles. Only the normal blocks enter the test process. The test process corresponds to multiple test rounds. In different test rounds, the proportions of data pages with data written in the normal blocks are different from each other. Therefore, in the process of multiple rounds of testing, the data reading and writing effects and data retention effects of the normal blocks under different data page loads are covered, and the operation time, data reading and writing effects and data retention effects of the flash memory particles of the normal blocks in each test round are comprehensively considered to obtain the accurate block classification corresponding to the normal blocks. Based on the number of bad blocks corresponding to the bad blocks in the flash memory particles and the block classification corresponding to the normal blocks, the flash memory particles are classified, so as to comprehensively consider the information related to the bad blocks and normal blocks in the flash memory particles, finely classify the flash memory particles, determine the particle classification corresponding to the flash memory particles, and improve the accuracy of the flash memory particle classification.

[0070] See also Figure 3 , Figure 3 It is a structural diagram of an embodiment of an electronic device of the present application, wherein the electronic device 30 includes a memory 301 and a processor 302 coupled to each other, wherein the memory 301 stores program data (not shown), and the processor 302 calls the program data to implement the method in any of the above embodiments. For descriptions of related contents, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0071] See also Figure 4 , Figure 4 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. The computer-readable storage medium 40 stores program data 400. When the program data 400 is executed by a processor, the method in any of the above embodiments is implemented. For descriptions of related contents, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0072] It should be noted that the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present implementation scheme.

[0073] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0074] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0075] The above description is only an implementation method of the present application, and does not limit the protection scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the protection scope of the present application.

Claims

1. A flash memory particle classification method, characterized in that: The method comprises: Obtaining a flash memory particle to be screened, and determining the number of bad blocks corresponding to bad blocks in all blocks of the flash memory particle; Obtaining a first original bit error rate corresponding to reading and writing data in a normal block of the flash memory particle, and a second original bit error rate corresponding to writing data in the normal block of the flash memory particle after a preset waiting time; wherein, the operation time of the flash memory particle is collected during the test; Determine a block level corresponding to the normal block based on the flash memory particle operation time, the first raw bit error rate, and the second raw bit error rate; The particle level of the flash memory particle is determined based on the number of bad blocks corresponding to the bad blocks in the flash memory particle and the block level corresponding to the normal blocks.

2. The flash memory particle classification method according to claim 1, characterized in that: The test process corresponds to a plurality of test rounds, and in different test rounds, the proportions of data pages in which the data is written in the normal blocks are different from each other; The obtaining of the first original bit error rate corresponding to reading and writing data in the normal block of the flash memory particle, and the second original bit error rate corresponding to writing data in the normal block of the flash memory particle after a preset waiting time, comprises performing the following steps for each test round: Writing data into a corresponding proportion of data pages of the normal block at a data read and write test temperature, and reading the written data in the normal block at the data read and write test temperature to determine the first original bit error rate corresponding to the reading and writing of data; Data is written into a corresponding proportion of data pages of the normal block at a data retention test temperature, and the corresponding second original bit error rate is obtained after the preset waiting time; wherein the data retention test temperature is higher than a preset temperature, and the preset waiting time is divided into a first waiting time and a second waiting time with different durations.

3. The flash memory particle classification method according to claim 2, characterized in that: The data reading and writing test temperature is divided into a first test temperature and a second test temperature, and the first test temperature and the second test temperature have a temperature difference with opposite positive and negative properties compared with the preset temperature; The step of writing data into a corresponding proportion of data pages of the normal block at a data read and write test temperature, and reading the written data in the normal block at the data read and write test temperature to determine the first original bit error rate corresponding to the reading and writing of data includes: Writing data to a corresponding proportion of data pages of the normal block at the first test temperature, and reading the written data in the normal block at the second test temperature; writing data to a corresponding proportion of data pages of the normal block at the second test temperature, and reading the written data in the normal block at the first test temperature, and determining the first raw bit error rate corresponding to reading and writing data.

4. The flash memory particle classification method according to claim 2, characterized in that: The determining, based on the flash memory particle operation time, the first raw bit error rate, and the second raw bit error rate, a block level corresponding to the normal block includes: Based on the flash memory particle operation time obtained in each test round, determine the lowest-level block among all the normal blocks and the blocks to be confirmed other than the lowest-level block; wherein the flash memory particle operation time of the lowest-level block exceeds a time threshold; The block level corresponding to the block to be confirmed is determined based on the first original bit error rate obtained in each test round and the second original bit error rates corresponding to the first waiting time and the second waiting time respectively obtained in each test round.

5. The flash memory particle classification method according to claim 4, characterized in that: The flash memory particle operation time includes the read time and write time corresponding to the data page and the erase time corresponding to the normal block; wherein the erase time of the block to be confirmed, and the read time and write time corresponding to the data page of the block to be confirmed do not exceed the corresponding time threshold.

6. The flash memory particle classification method according to claim 4, characterized in that: The first original bit error rate corresponds to a first threshold and a second threshold that increase in sequence, the first waiting time is greater than the second waiting time, and the second original bit error rate corresponds to a third threshold; The determining, based on the first original bit error rate obtained in each test round and the second original bit error rate corresponding to the first waiting time and the second waiting time respectively obtained in each test round, the block level corresponding to the block to be confirmed includes: Obtaining a first proportion of data pages whose first original bit error rate does not exceed the first threshold in each test round, and a second proportion of data pages whose first original bit error rate is between the first threshold and the second threshold; The block grade corresponding to the block to be confirmed is determined based on the first ratio and the second ratio obtained in each test round, and the second original bit error rate corresponding to the first waiting time and the second waiting time obtained in each test round and the corresponding third threshold.

7. The flash memory particle classification method according to claim 1, characterized in that: The determining the particle classification of the flash memory particle based on the number of bad blocks corresponding to the bad blocks in the flash memory particle and the block classification corresponding to the normal blocks includes: Determining an initial classification of the flash memory particles based on a ratio of the number of normal blocks corresponding to each block classification in the flash memory particles to all the normal blocks; Based on the number of bad blocks corresponding to the bad blocks in the flash memory particles, the initial classification of the flash memory particles is adjusted to obtain the particle classification of the flash memory particles.

8. The flash memory particle classification method according to claim 7, characterized in that: The flash memory particles are provided with a lowest bad block level, a highest bad block level, and at least one intermediate bad block level between the lowest bad block level and the highest bad block level according to the number of bad blocks, and when the flash memory particles correspond to the highest bad block level, the particle level of the flash memory particles is set to the lowest level particle; The step of adjusting the initial classification of the flash memory particles based on the number of bad blocks corresponding to the bad blocks in the flash memory particles to obtain the particle classification of the flash memory particles includes: In response to the initial classification of the flash memory particles being the highest level particles and the flash memory particles being provided with the intermediate bad block classification, the initial classification of the flash memory particles is adjusted based on the intermediate bad block classification to obtain the particle classification of the flash memory particles.

9. An electronic device, characterized in that: include: A memory and a processor coupled to each other, wherein the memory stores program data, and the processor calls the program data to execute the method according to any one of claims 1 to 8.

10. A computer-readable storage medium having program data stored thereon, characterized in that: When the program data is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Method for screening and classifying flash memory particles

    CN108648779A

  • Life estimation method and device of NAND Flash memory and medium

    CN112256462A

  • Bad block screening method and device, readable storage medium and electronic equipment

    CN113035265A

  • Management method of particles in NAND flash memory, storage medium and storage device

    CN114550772A

  • Flash memory particle screening and grading method

    CN117809725A