Screening method for bad blocks in memory, related device and medium

By performing read retry operations in parallel on the marked blocks in the memory during the reliability verification test phase of the solid-state drive, and using multiple reread voltmeters to gradually adjust the read voltage, the problem of long test time in the existing technology is solved and the solid-state performance is improved. Drive mass production efficiency.

CN118626016APending Publication Date: 2024-09-10MAXIO TECHNOLOGY (HANGZHOU) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410805186.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the reliability verification test of existing solid-state drives, the status of each block is checked sequentially, which results in a long test time and reduces mass production efficiency.

Method used

During the reliability verification test phase of the solid-state drive, read retry operations are performed in parallel on the marked blocks in the memory, and multiple reread voltmeters are used to gradually adjust the read voltage to identify and screen out bad blocks.

Benefits of technology

By executing read retry operations in parallel, it saves the time of setting the memory reread voltage, significantly reduces the reliability verification test time of solid-state drives, and improves mass production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626016A
    Figure CN118626016A
Patent Text Reader

Abstract

The invention provides a method for screening bad blocks in a memory, a related device and a medium. The method comprises the following steps: acquiring a plurality of reread voltmeters of the memory, setting read voltage of the memory as default read voltage, executing full-disk read operation on a plurality of blocks in the memory in parallel, determining a mark block in the plurality of blocks, the mark block being a block with error bit number exceeding a preset threshold value in one read operation, and under the condition that the number of the mark blocks is not zero, using a plurality of rereading voltmeters one by one to set the read voltage of the memory as the corresponding rereading voltage so as to execute multiple rounds of read retry operation, executing the read retry operation on the previous round of mark blocks determined by the previous round of read retry operation in the current round of read retry operation, and executing the read retry operation on the next round of mark blocks determined by the next round of read retry operation in the next round of read retry operation. A plurality of reread voltmeters are used to determine a current round flag block, and if the number of the current round flag blocks is not zero and the plurality of reread voltmeters have been used to perform a read retry operation, the current round flag block is determined as a bad block in the memory, which reduces the RDT time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the technical field of memory, and in particular relates to a method for screening bad blocks in a memory, a related device and a medium. Background Art

[0002] Solid State Drive (SSD) is a storage hard disk made of solid-state electronic storage chips, mainly composed of a controller and a memory (including storage particles, such as flash memory chips). The memory can be divided into multiple planes (Plane), and the plane (Plane) can include multiple blocks (Block). Due to the influence and limitations of factors such as production technology and process, some "blocks" of the produced memory may not be used normally. These unusable blocks are called "bad blocks". Therefore, in the mass production process of solid-state drives with memory as storage medium, the memory needs to be subjected to reliability demonstration testing (Reliability Demonstration Testing, RDT) to screen out the "bad blocks" in the memory. At present, the status of each block is usually checked in sequence according to the "queue" mechanism to screen out the "bad blocks". Obviously, this makes the reliability verification test time of the solid-state drive longer and reduces the mass production efficiency of the solid-state drive. Summary of the invention

[0003] In view of the above problems, the present disclosure provides a method for screening bad blocks in a memory, related devices and media, aiming to perform read retry operations on marked blocks in the memory in parallel during the reliability verification test phase of a solid-state drive, so as to save the time of setting the reread voltage of the memory, reduce the reliability verification test time of the solid-state drive, and improve the mass production efficiency of the solid-state drive.

[0004] According to a first aspect of the present disclosure, a method for screening bad blocks in a memory is provided, comprising:

[0005] obtaining a plurality of re-read voltage tables of a memory, the memory comprising a plurality of blocks;

[0006] Setting the read voltage of the memory to a default read voltage, performing a full disk read operation on the multiple blocks in parallel, and determining a marked block among the multiple blocks, wherein the marked block is a block in which the number of error bits occurring in a read operation exceeds a preset threshold;

[0007] When the number of the marking blocks is not 0, the read voltage of the memory is set to a corresponding reread voltage using the multiple reread voltage tables one by one to perform multiple rounds of read retry operations, wherein in the current round of read retry operations, a read retry operation is performed on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round;

[0008] When the number of the marked blocks in the current round is not 0 and the plurality of re-read voltage tables have been used to perform a read retry operation, the marked blocks in the current round are determined as bad blocks in the memory.

[0009] Optionally, after acquiring a plurality of re-read voltage tables of the memory, the screening method further comprises:

[0010] Filling the memory with data;

[0011] Using the multiple reread voltage tables to perform a read retry operation on some of the multiple blocks, obtaining a matching degree between the multiple reread voltage tables and the memory, wherein the more times a reread voltage corresponding to the reread voltage table is used as an optimal read voltage, the higher the matching degree between the reread voltage table and the memory;

[0012] The plurality of re-read voltage tables are sorted in descending order of the matching degree between the re-read voltage table and the memory.

[0013] Optionally, when the number of the marking blocks is not 0, the multiple reread voltage tables are used one by one to set the read voltage of the memory to a corresponding reread voltage to perform multiple rounds of read retry operations, wherein in the current round of read retry operations, a read retry operation is performed on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round, including:

[0014] When the number of the marking blocks is not 0, the read voltage of the memory is set to the corresponding reread voltage using the multiple reread voltage tables one by one in the order of the matching degree between the reread voltage table and the memory from high to low, and multiple rounds of read retry operations are performed until all the multiple reread voltage tables have been used to perform one round of read retry operations.

[0015] Optionally, the block includes a plurality of basic read units, and when the number of the marking blocks is not 0, the plurality of reread voltage tables are used one by one to set the read voltage of the memory to a corresponding reread voltage, so as to perform multiple rounds of read retry operations, wherein in the current round of read retry operations, a read retry operation is performed on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round, and further comprising:

[0016] For each round of read retry operation, setting the read voltage of the memory to the corresponding reread voltage using the corresponding reread voltage table;

[0017] Obtaining the marking block of the previous round determined by the previous round of read retry operation;

[0018] Taking the basic reading unit as a unit, a reading operation is performed on the marking block of the previous round, and the block where the basic reading unit is located and the number of error bits in the marking block of the previous round exceeds a preset threshold is determined according to the reading result, and the block is determined as the marking block of the current round determined by the current round of read retry operation.

[0019] Optionally, the performing a read operation on the marking block of the previous round in units of the basic reading unit, determining a block where the number of error bits in the marking block of the previous round exceeds a preset threshold according to the reading result, and determining the block as the marking block of the current round determined by the read retry operation of the current round, comprises:

[0020] Taking the basic read unit as a unit, a read operation is performed on the marking block of the previous round, the number of error bits in the basic read unit is counted according to the read result, and the block where the basic read unit with a count value exceeding a preset threshold is located is determined as the marking block of the current round determined by the current round of read retry operation.

[0021] Optionally, when the number of the marking blocks is not 0, the read voltages of the memory are set to corresponding reread voltages using the multiple reread voltage tables one by one to perform multiple rounds of read retry operations, wherein, in the current round of read retry operations, after performing a read retry operation on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round, the screening method further comprises:

[0022] When the number of the marked blocks in the current round is 0, it is determined that there are no bad blocks in the memory.

[0023] Optionally, when the number of the marking blocks is not 0, the read voltages of the memory are set to corresponding reread voltages using the multiple reread voltage tables one by one to perform multiple rounds of read retry operations, wherein, in the current round of read retry operations, after performing a read retry operation on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round, the screening method further comprises:

[0024] The read voltage of the memory is set back to a default read voltage.

[0025] According to a second aspect of the present disclosure, a bad block screening device in a memory is provided, comprising:

[0026] a reread voltage table acquisition unit, used to acquire a plurality of reread voltage tables from a memory, wherein the memory includes a plurality of blocks;

[0027] a full disk read operation unit, configured to set the read voltage of the memory to a default read voltage, perform a full disk read operation on the plurality of blocks in parallel, and determine a marked block among the plurality of blocks, wherein the marked block is a block in which the number of error bits occurring in a read operation exceeds a preset threshold;

[0028] a read retry operation unit, configured to, when the number of the marking blocks is not 0, use the multiple reread voltage tables one by one to set the read voltage of the memory to a corresponding reread voltage, so as to perform multiple rounds of read retry operations, wherein in a current round of read retry operations, a read retry operation is performed on the marking blocks of a previous round determined by a previous round of read retry operations, so as to determine the marking blocks of a current round;

[0029] A bad block determination unit is used to determine the marked blocks of the current round as bad blocks in the memory when the number of the marked blocks of the current round is not 0 and the multiple re-read voltage tables have been used to perform a read retry operation.

[0030] According to three aspects of the present disclosure, a solid state drive is provided, comprising:

[0031] Memory;

[0032] A controller, wherein the controller comprises the screening device as described above, and the screening device is used to execute any of the methods described above to screen out bad blocks in the memory.

[0033] According to a fourth aspect of the present disclosure, a storage medium is provided, on which a computer program or instruction is stored, and the computer program or instruction implements the steps of the above method when executed by a processor.

[0034] The present disclosure brings the following beneficial effects:

[0035] The present disclosure provides a method for screening bad blocks in a memory, wherein a plurality of reread voltage tables of the memory are obtained, a read voltage of the memory is set to a default read voltage, a full disk read operation is performed on a plurality of blocks of the memory in parallel, and a marked block among the plurality of blocks is determined, wherein the marked block is a block in which the number of error bits occurring in a read operation exceeds a preset threshold value, and when the number of the marked blocks is not 0, the read voltage of the memory is set to a corresponding reread voltage one by one using a plurality of reread voltage tables, so as to perform a plurality of rounds of read retry operations, wherein in a current round of read retry operations, a read retry operation is performed on a marked block of a previous round determined by a previous round of read retry operations, To determine the marking blocks of the current round, when the number of marking blocks of the current round is not 0 and multiple reread voltage tables have been used to perform read retry operations, the marking blocks of the current round are determined as bad blocks in the memory. In this way, the corresponding reread voltage is updated - a round of read retry operations are performed on all marking blocks of the previous round - the marking blocks of the current round are determined, so that the read retry operations are performed on the marking blocks in the memory in parallel, thereby saving the time of setting the reread voltage of the memory during the reliability verification test stage of the solid-state drive, reducing the reliability verification test time of the solid-state drive, and improving the mass production efficiency of the solid-state drive.

[0036] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or understood by practicing the present disclosure. The purpose and other advantages of the present disclosure are realized and obtained by the structures particularly pointed out in the description and the drawings.

[0037] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0039] Figure 1 A schematic diagram showing a flow chart of a method for screening bad blocks in a memory in the related art;

[0040] Figure 2 A schematic diagram showing the structure of a computer system provided according to an embodiment of the present disclosure is shown;

[0041] Figure 3 A schematic diagram showing a flow chart of a method for screening bad blocks in a memory provided according to an embodiment of the present disclosure;

[0042] Figure 4 A schematic diagram showing a flow chart of a method for screening bad blocks in a memory provided according to an embodiment of the present disclosure;

[0043] Figure 5 A schematic diagram showing a bad block screening device in a memory provided according to an embodiment of the present disclosure;

[0044] Figure 6 A schematic structural diagram of an electronic device provided according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0045] Various embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, the same elements are represented by the same or similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale.

[0046] The following terms are used in this article:

[0047] Solid State Drive (SSD) is a storage device consisting of a controller and a memory (e.g., NAND). The controller is responsible for managing and controlling the operation of the memory, including reading, programming, and erasing data. The programming and reading unit of SSD is a page, while the erasing unit is a block. In the memory, the gate structure of the memory cell includes a tunneling dielectric layer, a floating gate, a gate dielectric layer, and a control gate stacked in sequence. By applying a read voltage to the control gate, the threshold voltage of the memory cell can be used to obtain the amount of charge in the floating gate for reading. In the power-off state of the flash memory, the charge in the floating gate can be maintained due to the insulating effect of the tunneling dielectric layer.

[0048] The Read Retry Table (RRT) is set during the production phase of the solid-state drive and records parameters related to the characteristics of the memory in the solid-state drive, such as the reference voltage and offset of the read operation under specific conditions. During the data writing phase of the solid-state drive, the encoded data generated based on the original data encoding is stored in the memory of the solid-state drive. During the data reading phase of the solid-state drive, an ECC (Error Checking and Correction) decoding circuit is used to correct a certain number of error bits to obtain the original data. If an ECC failure occurs, a Read Retry operation is performed. Specifically, according to the reread voltage table provided by the manufacturer of the solid-state drive, a new read voltage is selected for a read operation to identify the charge state of the storage cell in the memory.

[0049] The first read effect is a phenomenon in which some error bits may appear in the memory when the stored data is read for the first time due to the characteristics of the memory cell. This phenomenon may occur because the charge state of the memory cell is unstable or affected by the previous programming operation. Usually, after the first read, the number of error bits will decrease because the charge state of the memory cell will gradually stabilize.

[0050] The intrinsic voltage shift (IVS) effect refers to the phenomenon that after a data is programmed in a memory, a large number of error bits appear when it is read for the first time. This phenomenon may be due to the change in the charge state of the memory cell caused by the programming operation, resulting in a large number of error bits during the first read. Similar to the First Read effect, the number of error bits usually decreases after the first read.

[0051] Codeword (CW for short), in the memory, CW is usually the smallest unit (4KB) for reading data, which means that when reading data, the system will operate in units of CW. The size of CW can be 4KB.

[0052] Figure 1 FIG. 1 is a flow chart of a method for screening bad blocks in a memory in the related art. It can be understood that the memory can be divided into m blocks, and each block can be divided into n basic reading units (such as CW). Where m and n are positive integers greater than 0. Figure 1 As shown, the method for screening bad blocks in a memory in the related art may include:

[0053] In step S101, N (where N is a positive integer greater than 0) re-read voltage tables are obtained from a memory, and random data is used to fill the entire memory.

[0054] In step S102, determine whether i (i is a positive integer greater than 0 and less than or equal to m, with an initial value of 1) is less than or equal to m. If yes, execute step S103; if not, end.

[0055] In step S103, determine whether j (j is a positive integer greater than 0 and less than or equal to n, with an initial value of 1) is less than or equal to n. If so, execute step S104; if not, execute i+1 and return to execute step S102.

[0056] In step S104, the read voltage of the memory is set to a default read voltage, and a read operation is performed on the jth basic fetch unit in the i-th block.

[0057] In step S105, it is determined whether the number of error bits in the read operation of the jth basic read unit in the i-th block exceeds a preset threshold. If yes, step S106 is executed. If not, step j+1 is executed and then the process returns to step S102.

[0058] In step S106, determine whether k (k is a positive integer greater than 0 and less than or equal to N, and its initial value is 1) is less than or equal to N. If so, execute step S107. If not, determine that the i-th block is a bad block, execute i+1, restore j to the initial value 1, restore k to the initial value 1, and then return to execute step S102.

[0059] In step S107, the read voltage of the memory is set to the re-read voltage corresponding to the k-th re-read voltage table, and the k-th read retry operation is performed on the j-th basic read unit in the i-th block.

[0060] In step S108, it is determined whether the number of error bits in the jth basic read unit in the ith block in the kth read retry operation exceeds a preset threshold. If not, j+1 is executed, k is restored to an initial value of 1, and then the process returns to step S102. If yes, k+1 is executed and then the process returns to step S106.

[0061] It can be understood that in the related art, for each block, the read operation execution state is checked in units of basic read units, the read voltage of the memory is set to the default read voltage, the read operation is performed on the basic read unit, and when the number of error bits in the basic read unit exceeds the preset threshold value during the read operation, a read retry operation is performed in sequence through multiple reread voltage tables. After each read retry operation, it is checked whether the number of error bits in the basic read unit exceeds the preset threshold value. When the number of error bits in the basic read unit exceeds the preset threshold value, the next read retry operation is performed. When the number of error bits in the basic read unit does not exceed the preset threshold value, the read operation execution state of the next basic read unit is checked until the read operation execution state of a block is checked. When the number of error bits in the basic read unit still exceeds the preset threshold value after all reread voltage tables are used to perform the read retry operation, it is determined that the block where the basic read unit is located is a bad block. Each read retry operation requires that the read voltage of the memory be set to the reread voltage corresponding to the reread voltage table. After checking the read operation execution state of a basic read unit, the read voltage of the memory needs to be set back to the default read voltage. For the jth basic read unit in the ith block, when k read retry operations are performed, the required bad block screening time is (1+k)*tR+(1+k)*tSF, where tR is the time consumed to perform a read operation on a basic read unit, and tSF is the time consumed to perform a read voltage setting operation of the memory. In some cases, when n basic read units in m blocks of the memory perform N read retry operations, the required bad block screening time is m*n((1+N)*tR+(1+N)*tSF). Obviously, the storage capacity of the current memory is getting larger and larger, and some basic read units with poor quality may require many read retry operations. As the read retry operations increase, the reliability verification test time of the solid-state drive increases accordingly, which reduces the mass production efficiency of the solid-state drive. Since the First Read effect and IVS effect take a long time to dissipate after a read operation, and the time interval for continuously performing read retry operations in basic read units for each block is short, the First Read effect and IVS effect may not be able to completely dissipate. This reduces the accuracy of bad block screening and the accuracy of the reliability verification test of the solid-state drive and the product yield due to the influence of the First Read effect and IVS effect.

[0062] Based on this, the present disclosure provides a method for screening bad blocks in a memory, a related device and a medium to reduce the reliability verification test time of a solid-state drive and improve the mass production efficiency of the solid-state drive. This will be described in detail below.

[0063] Figure 2FIG. 1 is a schematic diagram showing a structure of a computer system provided according to an embodiment of the present disclosure. Figure 2 As shown, the computer system 200 provided in the embodiment of the present disclosure includes: a computer device 210 and a solid state drive 220, wherein the solid state drive 220 can be understood as an external memory of the computer device 210. The solid state drive 220 can include a controller 221 and a memory (e.g., NAND) 222. The controller 221 includes firmware (FirmWare, referred to as FW) 223 and a bad block screening device 224. The computer device 210 includes a host 211.

[0064] In some embodiments, an operating system may be run on the computer device 210, and the operating system may be understood as a host 211 of the solid-state drive 220. The host 211 may send instructions (including read / write commands, Trim commands, and commands for FW-related tasks) to the firmware 223. When the host 211 sends a write command to the firmware 223, the firmware 223 may write data to the memory 222 according to the write command. When the host 211 sends a read command to the firmware 223, the firmware 223 may read data from the memory 222 according to the read command and return the read data to the host 211. It should be noted that, for ease of description, Figure 1 In the example, the component of the computer device 210 does not include the solid state drive 220. Alternatively, the solid state drive 220 may be used as a part of the computer device 210.

[0065] In some embodiments, the bad block screening device 224 performs a read retry operation on the marked blocks in the memory 222 in parallel during the reliability verification test phase of the solid-state drive 220, so as to save the time spent in setting the reread voltage of the memory 222, reduce the reliability verification test time of the solid-state drive 220, and improve the mass production efficiency of the solid-state drive 220. It is easy to understand that for the convenience of description, Figure 2 In the example, the firmware 223 does not include the bad block screening device 224 . Alternatively, the bad block screening device 224 may also be a part of the firmware 223 .

[0066] Since the process of screening bad blocks in a memory using the method for screening bad blocks in a memory according to the embodiment of the present disclosure will be described in detail below, it will not be repeated here.

[0067] Figure 3 FIG. 1 is a flow chart of a method for screening bad blocks in a memory according to an embodiment of the present disclosure. The screening method of the embodiment of the present disclosure can be performed by Figure 2 The bad block screening device 224 performs the operation. Figure 3 As shown, the screening method of the embodiment of the present disclosure may include:

[0068] In step S310 , a plurality of re-read voltage tables of a memory are acquired, where the memory includes a plurality of blocks.

[0069] In some embodiments, in the memory 222, the memory is usually divided into different planes, and each plane is divided into multiple blocks (for example, m blocks). Each block can be divided into n basic read units (for example, CW). In some embodiments, multiple re-read voltage tables are stored in the memory 222. It should be noted that in order to reduce the error rate of the data read from the memory 222, during the production stage of the solid-state drive, it is necessary to configure a re-read voltage table matching its memory 222 for the solid-state drive to adjust the read voltage (also referred to as the sensing voltage) applied to each storage cell of the storage page of the memory 222. It should be noted that since the error distribution of the read operation will be affected by the composite influence of multiple parameters, in order to cover all possible parameters that may be affected, the manufacturer generally produces multiple re-read voltage tables corresponding to multiple different conditions, and performs a read retry operation by polling these re-read voltage tables to obtain the best read voltage (also referred to as the best sensing voltage) in the current state. The various parameters include, for example, the current state of the flash memory system, including erase count (PE cycle), read count (Read Count), retention time (Retention), open page / block working condition, and the like.

[0070] In some embodiments, during the reliability verification test phase of the solid-state drive 220, multiple reread voltage tables (e.g., N reread voltage tables) may be obtained from the memory 222. In some embodiments, after obtaining multiple reread voltage tables from the memory 222, the memory 222 may be fully written with data, and a read retry operation may be performed on a portion of multiple blocks (e.g., m blocks) in the memory using the multiple reread voltage tables to obtain the matching degree between the multiple reread voltage tables and the memory 222. In some embodiments, for each block in the portion of blocks, a read retry operation is performed in units of basic read units. It should be noted that the more times the reread voltage corresponding to the reread voltage table is used as the optimal read voltage, the higher the matching degree between the reread voltage table and the memory 222. In some embodiments, the multiple reread voltage tables are sorted in descending order of the matching degree between the reread voltage table and the memory 222.

[0071] In step S320, the read voltage of the memory is set to a default read voltage, a full disk read operation is performed on the multiple blocks in parallel, and a marked block among the multiple blocks is determined, wherein the marked block is a block in which the number of error bits occurring in a read operation exceeds a preset threshold.

[0072] In some embodiments, the read voltage of the memory 222 is set to a default read voltage, and a full disk read operation is performed on multiple blocks in the memory 222 block by block in units of basic read units. After each reading of data in the basic read unit, the number of error bits in the basic read unit that occurs in the read operation is counted based on the read result, and the block where the basic read unit where the count value exceeds the preset threshold is located is determined as a marked block. In some embodiments, when the number of marked blocks is not 0, step S330 is performed, so that a read retry operation is performed on the marked block determined by setting the read voltage of the memory 222 to the default read voltage and performing a full disk read operation. It should be noted that in the data reading stage of the solid-state drive, decoding and error correction are performed using ECC (Error Correction Code) decoding technology to generate output data. In some cases, after the number of error bits in the data read from the storage unit of the memory 222 exceeds a certain value, it will exceed the error correction capability of the ECC (Error Correction Code) decoding technology, which increases the bit error rate of reading data from the storage unit of the memory 222. Therefore, during the reliability verification test phase of the solid-state drive, the preset threshold here can be determined based on the error correction capability of the ECC (Error Correction Code) decoding technology.

[0073] In step S330, when the number of the marking blocks is not 0, the read voltage of the memory is set to the corresponding reread voltage using the multiple reread voltage tables one by one to perform multiple rounds of read retry operations, wherein in the current round of read retry operations, a read retry operation is performed on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round.

[0074] In some embodiments, when the number of marking blocks is not 0, multiple reread voltage tables are used one by one to set the read voltage of the memory 222 to the corresponding reread voltage in the order of the matching degree between the reread voltage table and the memory 222 from high to low, and multiple rounds of read retry operations are performed until multiple reread voltage tables have been used to perform the read retry operation. In some embodiments, for each round of read retry operation, the read voltage of the memory is set to the corresponding reread voltage using the corresponding reread voltage table. The marking blocks of the previous round determined by the previous round of read retry operation are obtained. In units of basic read units, a read operation is performed on the marking blocks of the previous round, and a block of basic read units where the number of error bits in the marking blocks of the previous round exceeds a preset threshold is determined according to the read result, and the block is determined as the marking block of the current round determined by the current round of read retry operation. In some embodiments, a read operation is performed on the marked blocks of the previous round in units of basic read units, the number of error bits in the basic read units is counted according to the read result, and the block where the basic read unit with the count value exceeding a preset threshold is located is determined as the marked block of the current round determined by the read retry operation of the current round. In some embodiments, when the number of marked blocks of the current round is determined to be 0, it is determined that there is no bad block in the memory 222.

[0075] In step S340, when the number of the marked blocks in the current round is not 0 and the multiple re-read voltage tables have been used to perform a read retry operation, the marked blocks in the current round are determined as bad blocks in the memory.

[0076] In some embodiments, when the number of marking blocks is not 0, multiple reread voltage tables are used one by one in the order of the matching degree between the reread voltage table and the memory 222 from high to low to set the read voltage of the memory 222 to the corresponding reread voltage to perform multiple rounds of read retry operations, until the multiple reread voltage tables have been used to perform the read retry operation, and then the read voltage of the memory 222 is set back to the default read voltage.

[0077] In some embodiments, when the number of marked blocks in the current round is determined to be 0, after determining that there are no bad blocks in the memory 222 , the read voltage of the memory 222 is set back to the default read voltage.

[0078] It can be understood that when the number of marking blocks is not 0, multiple reread voltage tables are used one by one to set the read voltage of memory 222 to the corresponding reread voltage in order of the matching degree between the reread voltage table and the memory 222 from high to low to perform multiple rounds of read retry operations. The read voltage of memory 222 can be preferentially set to the reread voltage corresponding to the reread voltage table with a higher matching degree with memory 222, which can reduce the number of read retry operations performed during the reliability verification test phase of the solid-state drive, thereby reducing the reliability verification test time of the solid-state drive and improving the mass production efficiency of the solid-state drive.

[0079] It can be understood that since it is not necessary to set the read voltage of the memory back to the default read voltage after checking the read operation execution status of a basic read unit, for the j-th basic read unit in a marking block, when performing k read retry operations, the required bad block screening time is (1+k)*tR+k*tSF. In some cases, when n basic read units in M ​​marking blocks (where M is a natural number, and M is less than or equal to m) of the memory perform N read retry operations, the required bad block screening time is M*n*(1+N)*tR+(1+N)*tSF. By adopting the method of updating the corresponding reread voltage-performing a round of read retry operations on all marking blocks of the previous round-determining the marking blocks of the current round, the reading retry operations are performed on the marking blocks in the memory in parallel, thereby saving the time of setting the reread voltage of the memory in the reliability verification test stage of the solid-state drive, reducing the reliability verification test time of the solid-state drive, and improving the mass production efficiency of the solid-state drive.

[0080] It can be understood that when the number of marking blocks is not 0, multiple reread voltage tables are used one by one to set the read voltage of the memory to the corresponding reread voltage, and multiple rounds of read retry operations are performed until multiple reread voltage tables have been used to perform the read retry operation. For each round of read retry operation, the read voltage of the memory is set to the corresponding reread voltage using the corresponding reread voltage table, and the read retry operation is performed on all marking blocks of the previous round determined by the previous round of read retry operation in units of basic read units. For the same basic read unit, the time interval between performing two rounds of read retry operations is longer, and the First Read effect and the IVS effect can be completely dissipated, which makes it immune to the influence of the First Read effect and the IVS effect, improves the accuracy of bad block screening, and improves the accuracy of the reliability verification test of the solid-state drive and the product yield.

[0081] Figure 4 FIG. 1 is a flow chart of a method for screening bad blocks in a memory according to an embodiment of the present disclosure. The screening method of the embodiment of the present disclosure can be performed by Figure 2The bad block screening device 224 performs the operation. It is understood that the memory 222 can be divided into m blocks, and each block can be divided into n basic reading units (such as CW). Wherein, m and n are positive integers greater than 0. Figure 4 As shown, the method for screening bad blocks in a memory in the embodiment of the present disclosure may include:

[0082] In step S401 , N (where N is a positive integer greater than 0) re-read voltage tables stored in the memory 222 are obtained, and the memory 222 is completely filled with random data.

[0083] In step S402, a read retry operation is performed on a portion of the multiple blocks in the memory 222 using N reread voltage tables to obtain the matching degree between the N reread voltage tables and the memory 222. It should be noted that the more times the reread voltage corresponding to the reread voltage table is used as the optimal read voltage, the higher the matching degree between the reread voltage table and the memory 222. In some embodiments, the N reread voltage tables are sorted in descending order of the matching degree between the reread voltage table and the memory 222.

[0084] In step S403, the read voltage of the memory 222 is set to a default read voltage, and a full disk read operation is performed in parallel on multiple blocks in the memory 222 block by block in units of basic read units. After each reading of data in a basic read unit, the number of error bits occurring in the read operation in the basic read unit is counted based on the read result, and the block where the basic read unit with a count value exceeding a preset threshold is located is determined as a marked block.

[0085] In step S404, based on the previous round of read retry operations, the number M of marked blocks in the previous round is updated.

[0086] In step S405, it is determined whether the number M of the marked blocks in the previous round (where M is a natural number and M is less than or equal to m) is 0, if yes, then step S406 is performed. If not, then step S407 is performed to perform the current round of read retry operation.

[0087] In step S406 , it is determined that there is no bad block in the memory 222 , and the read voltage of the memory 222 is set back to the default read voltage.

[0088] In step S407, it is determined whether k (k is a positive integer greater than 0 and less than or equal to N, and its initial value is 1) is less than or equal to N. If so, step S408 is executed; if not, the marked block of the current round is determined as a bad block.

[0089] In step S408 , the read voltage of the memory 222 is set to the re-read voltage corresponding to the kth re-read voltage table.

[0090] In step S409, determine whether t (t is a positive integer greater than 0 and less than or equal to M, with an initial value of 1) is less than or equal to M. If so, execute step S410; if not, return to execute step S404.

[0091] In step S410, determine whether j (j is a positive integer greater than 0 and less than or equal to n, with an initial value of 1) is less than or equal to n. If so, execute step S411; if not, execute t+1 and return to execute step S409.

[0092] In step S411, a read retry operation is performed on the j-th basic fetch unit in the t-th block.

[0093] In step S412, it is determined whether the number of error bits in the read operation of the jth basic read unit in the tth block exceeds a preset threshold. If yes, the tth block is determined to be the marked block of the current round, t+1 is executed, and step S409 is returned to execute. If not, j+1 is set and step S410 is returned to execute.

[0094] Figure 5 FIG. 1 is a schematic diagram of a bad block screening device for a solid-state drive according to an embodiment of the present disclosure. Figure 5 As shown, the bad block screening device includes a reread voltage table acquisition unit 510, a full disk read operation unit 520, a read retry operation unit 530 and a bad block determination unit 540.

[0095] The reread voltage table acquisition unit 510 is used to acquire a plurality of reread voltage tables from a memory, where the memory includes a plurality of blocks.

[0096] The full disk read operation unit 520 is used to set the read voltage of the memory to a default read voltage, perform a full disk read operation on the multiple blocks in parallel, and determine a marked block among the multiple blocks, wherein the marked block is a block in which the number of error bits occurring in a read operation exceeds a preset threshold.

[0097] A read retry operation unit 530 is used to set the read voltage of the memory to a corresponding reread voltage one by one using the multiple reread voltage tables when the number of the marking blocks is not 0, so as to perform multiple rounds of read retry operations, wherein in the current round of read retry operations, a read retry operation is performed on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round.

[0098] The bad block determination unit 540 is configured to determine the marked blocks of the current round as bad blocks in the memory when the number of the marked blocks of the current round is not 0 and the multiple re-read voltage tables have all been used to perform a read retry operation.

[0099] Since the process of screening bad blocks in a memory using the method for screening bad blocks in a memory according to an embodiment of the present disclosure has been described in detail in the method embodiment above, it will not be repeated here.

[0100] The present disclosure also provides an electronic device, such as Figure 6 As shown, it includes a memory 620, a processor 610, and a program stored in the memory 620 and executable on the processor 610. When the program is executed by the processor 610, each process of each embodiment of the bad block screening method in the above-mentioned memory can be implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0101] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, the embodiments of the present disclosure also provide a storage medium, on which a computer program or instruction is stored, and when the computer program or instruction is executed by the processor, each process in each embodiment of the above-mentioned method for screening bad blocks in the memory can be implemented.

[0102] Since the instructions stored in the storage medium can execute the steps in the bad block screening method in the memory provided by the embodiment of the present disclosure, the beneficial effects that can be achieved by the bad block screening method in the memory provided by the embodiment of the present disclosure can be achieved. For details, please refer to the previous embodiment, which will not be repeated here. The specific implementation of each of the above operations can be referred to the previous embodiment, which will not be repeated here.

[0103] In summary, the present disclosure provides a method for screening bad blocks in a memory, obtains multiple reread voltage tables of the memory, sets the read voltage of the memory to a default read voltage, performs a full disk read operation on multiple blocks of the memory in parallel, determines a marked block among the multiple blocks, the marked block being a block in which the number of error bits occurring in a read operation exceeds a preset threshold, and when the number of marked blocks is not 0, sets the read voltage of the memory to a corresponding reread voltage one by one using multiple reread voltage tables, so as to perform multiple rounds of read retry operations, wherein in the current round of read retry operations, a read retry operation is performed on the marked blocks of the previous round determined by the previous round of read retry operations , to determine the marking blocks of the current round. When the number of marking blocks of the current round is not 0 and multiple reread voltage tables have been used to perform the read retry operation, the marking blocks of the current round are determined as bad blocks in the memory. In this way, the corresponding reread voltage is updated - a round of read retry operation is performed on all marking blocks of the previous round - the marking blocks of the current round are determined, so that the read retry operation is performed on the marking blocks in the memory in parallel, thereby saving the time of setting the reread voltage of the memory in the reliability verification test stage of the solid-state drive, reducing the reliability verification test time of the solid-state drive, and improving the mass production efficiency of the solid-state drive.

[0104] Finally, it should be noted that: Obviously, the above embodiments are only examples for clearly illustrating the present disclosure, and are not intended to limit the implementation methods. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from this are still within the scope of protection of the present disclosure.

Claims

1. A method for screening bad blocks in a memory, comprising: obtaining a plurality of re-read voltage tables of a memory, the memory comprising a plurality of blocks; Setting the read voltage of the memory to a default read voltage, performing a full disk read operation on the multiple blocks in parallel, and determining a marked block among the multiple blocks, wherein the marked block is a block in which the number of error bits occurring in a read operation exceeds a preset threshold; When the number of the marking blocks is not 0, the read voltage of the memory is set to a corresponding reread voltage using the multiple reread voltage tables one by one to perform multiple rounds of read retry operations, wherein in the current round of read retry operations, a read retry operation is performed on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round; When the number of the marked blocks in the current round is not 0 and the plurality of re-read voltage tables have been used to perform a read retry operation, the marked blocks in the current round are determined as bad blocks in the memory.

2. The screening method according to claim 1, wherein After acquiring the plurality of reread voltage tables of the memory, the screening method further comprises: Filling the memory with data; Using the multiple reread voltage tables to perform a read retry operation on some of the multiple blocks, obtaining a matching degree between the multiple reread voltage tables and the memory, wherein the more times a reread voltage corresponding to the reread voltage table is used as an optimal read voltage, the higher the matching degree between the reread voltage table and the memory; The plurality of re-read voltage tables are sorted in descending order of the matching degree between the re-read voltage table and the memory.

3. The screening method according to claim 1, wherein When the number of the marking blocks is not 0, the read voltage of the memory is set to a corresponding reread voltage using the multiple reread voltage tables one by one to perform multiple rounds of read retry operations, wherein in the current round of read retry operations, the read retry operation is performed on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round, including: When the number of the marking blocks is not 0, the read voltage of the memory is set to the corresponding reread voltage using the multiple reread voltage tables one by one in the order of the matching degree between the reread voltage table and the memory from high to low, and multiple rounds of read retry operations are performed until all the multiple reread voltage tables have been used to perform one round of read retry operations.

4. The screening method according to claim 3, wherein The block includes a plurality of basic read units, and when the number of the marking blocks is not 0, the plurality of reread voltage tables are used one by one to set the read voltage of the memory to a corresponding reread voltage to perform multiple rounds of read retry operations, wherein in the current round of read retry operations, a read retry operation is performed on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round, and further comprising: For each round of read retry operation, setting the read voltage of the memory to the corresponding reread voltage using the corresponding reread voltage table; Obtaining the marking block of the previous round determined by the previous round of read retry operation; Taking the basic reading unit as a unit, a reading operation is performed on the marking block of the previous round, and the block where the basic reading unit is located and the number of error bits in the marking block of the previous round exceeds a preset threshold is determined according to the reading result, and the block is determined as the marking block of the current round determined by the current round of read retry operation.

5. The screening method according to claim 4, wherein The step of performing a read operation on the marking block of the previous round in units of the basic reading unit, determining a block where the number of error bits in the marking block of the previous round exceeds a preset threshold according to the reading result, and determining the block as the marking block of the current round determined by the read retry operation of the current round, comprises: Taking the basic read unit as a unit, a read operation is performed on the marking block of the previous round, the number of error bits in the basic read unit is counted according to the read result, and the block where the basic read unit with a count value exceeding a preset threshold is located is determined as the marking block of the current round determined by the current round of read retry operation.

6. The screening method according to claim 1, wherein In the case where the number of the marking blocks is not 0, the read voltage of the memory is set to a corresponding reread voltage using the multiple reread voltage tables one by one to perform multiple rounds of read retry operations, wherein in the current round of read retry operations, after performing a read retry operation on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round, the screening method further includes: When the number of the marked blocks in the current round is 0, it is determined that there are no bad blocks in the memory.

7. The screening method according to claim 1, wherein In the case where the number of the marking blocks is not 0, the read voltage of the memory is set to a corresponding reread voltage using the multiple reread voltage tables one by one to perform multiple rounds of read retry operations, wherein in the current round of read retry operations, after performing a read retry operation on the marking blocks of the previous round determined by the previous round of read retry operations to determine the marking blocks of the current round, the screening method further includes: The read voltage of the memory is set back to a default read voltage.

8. A bad block screening device in a memory, comprising: a reread voltage table acquisition unit, used to acquire a plurality of reread voltage tables from a memory, wherein the memory includes a plurality of blocks; a full disk read operation unit, configured to set the read voltage of the memory to a default read voltage, perform a full disk read operation on the plurality of blocks in parallel, and determine a marked block among the plurality of blocks, wherein the marked block is a block in which the number of error bits occurring in a read operation exceeds a preset threshold; a read retry operation unit, configured to, when the number of the marking blocks is not 0, use the multiple reread voltage tables one by one to set the read voltage of the memory to a corresponding reread voltage, so as to perform multiple rounds of read retry operations, wherein in a current round of read retry operations, a read retry operation is performed on the marking blocks of a previous round determined by a previous round of read retry operations, so as to determine the marking blocks of a current round; A bad block determination unit is used to determine the marked blocks of the current round as bad blocks in the memory when the number of the marked blocks of the current round is not 0 and the multiple re-read voltage tables have been used to perform a read retry operation.

9. A solid state drive comprising: Memory; A controller, the controller comprising the screening device according to claim 7, the screening device being used to execute the method according to any one of claims 1 to 7 to screen out bad blocks in the memory.

10. A storage medium having a computer program or instruction stored thereon, wherein the computer program or instruction, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Read operation processing method for storage device and storage device

    CN119473687A