Reference voltage determination method and apparatus
By gradually adjusting the reference voltage and determining the target reference voltage according to the number of error bits, the reading error problem caused by data state offset in solid-state drive is solved, ensuring data accuracy and normal use of flash blocks.
Patent Information
- Application Number
- CN201910645148.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-17
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2039-07-17
AI Technical Summary
In the NAND memory of a solid state hard disk, due to read and write operations, erase operations and data retention time, the reference voltage corresponding to the data state will be offset, resulting in data reading errors.
By gradually adjusting the preset reference voltage, reading the data of the flash page using multiple different reference voltages, determining the target reference voltage based on the number of error bits, ensuring the accuracy of data reading. The specific steps include: adjusting the reference voltage at the first step length, gradually reducing the number of error bits until the convergence value is reached, and further optimizing the target reference voltage using the second step length.
Effectively determine the true reference voltage of the flash memory block, ensure the accuracy of data reading and the normal use of the flash memory block, reduce the number of error bits, and improve the reliability of data storage.
Smart Images

Figure CN112242171B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of integrated circuit technology, and in particular to a method and device for determining a reference voltage. Background Art
[0002] Solid-state drives (SSDs) use NAND flash memory particles as storage media for data storage. NAND memory is composed of multiple storage cells. Usually, the reference voltage configured when the SSD leaves the factory can be added to the storage cell to read the data stored in the storage cell. However, in actual applications, due to NAND read and write operations, erase and write operations, data retention time, usage time, etc., the actual reference voltage corresponding to each data state will be offset compared to the reference voltage configured at the factory. This phenomenon may cause data reading errors. Summary of the invention
[0003] In view of this, the present disclosure proposes a reference voltage determination method, the method comprising:
[0004] Using a plurality of different reference voltages to read data of a first flash memory page, and using a reference voltage at which the number of first error bits of the read data reaches a convergence value as a first target reference voltage, wherein the first flash memory page is any one of a plurality of flash memory pages of a flash memory block to be tested;
[0005] Adjusting the first target reference voltage to obtain a plurality of second target reference voltages;
[0006] The data of the multiple flash memory pages of the flash memory block are read using the multiple second target reference voltages, and the second target reference voltage with the smallest second error bit number of the read data is used as the target reference voltage.
[0007] In a possible implementation, the method further includes:
[0008] The preset reference voltage is gradually adjusted with a first step length to obtain the plurality of different reference voltages, wherein the number of first error bits of data read using the reference voltage obtained after each adjustment gradually decreases.
[0009] In a possible implementation manner, the step of gradually adjusting the preset reference voltage with a first step length to obtain the multiple different reference voltages includes:
[0010] The preset reference voltage is adjusted upward and downward with the first step length to obtain a first reference voltage and a second reference voltage respectively;
[0011] Compare the data of the first flash memory page read by using the preset reference voltage, the first reference voltage and the second reference voltage with preset data respectively, to obtain the number of error bits corresponding to the preset reference voltage, the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage;
[0012] determining an adjustment direction according to a smaller value of the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage compared to the number of error bits corresponding to the preset reference voltage;
[0013] The first reference voltage or the second reference voltage is gradually adjusted in the adjustment direction with the first step length to obtain the multiple different reference voltages.
[0014] In a possible implementation, the method further includes:
[0015] The first step length is adjusted according to the number of error bits of the data read by the reference voltage obtained after each adjustment and the number of error bits of the previous data.
[0016] In a possible implementation manner, adjusting the first step length according to the number of error bits of data read by the reference voltage obtained after each adjustment and the number of error bits of the previous reference voltage includes:
[0017] In a case where the number of error bits of the data read according to the adjusted reference voltage is less than the previous number of error bits, increasing the first step length; or
[0018] When the number of error bits of data read according to the reference voltage obtained after adjustment is greater than the number of previous error bits, the adjustment direction is changed and the first step length is reduced.
[0019] In a possible implementation manner, the preset reference voltage includes multiple ones.
[0020] In a possible implementation manner, the adjusting the first target reference voltage to obtain a plurality of second target reference voltages includes:
[0021] The second step length is halved successively and rounded to obtain multiple third step lengths;
[0022] The first target reference voltage is adjusted upward and downward by using the second step size and the plurality of third step sizes to obtain the plurality of second target reference voltages.
[0023] In a possible implementation manner, using the multiple second target reference voltages to read data of multiple flash memory pages of the flash memory block, and using the second target reference voltage with the smallest number of second error bits of the read data as the target reference voltage, includes:
[0024] A second number of error bits obtained by taking the first second target reference voltage as a minimum intermediate result;
[0025] In the case that the second error bit number obtained by any one of the second target reference voltages is smaller than the minimum intermediate result, the minimum intermediate result is updated using the second error bit number obtained by the current second target reference voltage.
[0026] In a possible implementation, the method further includes:
[0027] When the number of error bits of some flash memory pages of the flash memory block obtained by using any one of the second target reference voltages is greater than the minimum intermediate result, the calculation of the number of error bits of the remaining flash memory pages is stopped.
[0028] According to another aspect of the present disclosure, a reference voltage determination device is provided, the device comprising:
[0029] A first determination module is used to read data of a first flash memory page using a plurality of different reference voltages, and use a reference voltage at which the number of first error bits of the read data reaches a convergence value as a first target reference voltage, wherein the first flash memory page is any one of a plurality of flash memory pages of a flash memory block to be tested;
[0030] an adjustment module, connected to the first determination module, and configured to adjust the first target reference voltage to obtain a plurality of second target reference voltages;
[0031] A second determination module is connected to the adjustment module and is used for reading data of multiple flash memory pages of the flash memory block using the multiple second target reference voltages, and taking the second target reference voltage with the smallest number of second error bits of the read data as the target reference voltage.
[0032] In a possible implementation, the device further includes:
[0033] The third determination module is connected to the first determination module and is used to gradually adjust the preset reference voltage with a first step length to obtain the multiple different reference voltages, wherein the number of first error bits of the data read using the reference voltage obtained after each adjustment gradually decreases.
[0034] In a possible implementation manner, the step of gradually adjusting the preset reference voltage with a first step length to obtain the multiple different reference voltages includes:
[0035] The preset reference voltage is adjusted upward and downward with the first step length to obtain a first reference voltage and a second reference voltage respectively;
[0036] Compare the data of the first flash memory page read by using the preset reference voltage, the first reference voltage and the second reference voltage with preset data respectively, to obtain the number of error bits corresponding to the preset reference voltage, the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage;
[0037] determining an adjustment direction according to a smaller value of the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage compared to the number of error bits corresponding to the preset reference voltage;
[0038] The first reference voltage or the second reference voltage is gradually adjusted in the adjustment direction with the first step length to obtain the multiple different reference voltages.
[0039] In a possible implementation manner, the third determining module includes:
[0040] The step length adjustment submodule is used to adjust the first step length according to the number of error bits of the data read by the reference voltage obtained after each adjustment and the number of error bits of the previous step length.
[0041] In a possible implementation manner, adjusting the first step length according to the number of error bits of data read by the reference voltage obtained after each adjustment and the number of error bits of the previous reference voltage includes:
[0042] In a case where the number of error bits of the data read according to the adjusted reference voltage is less than the previous number of error bits, increasing the first step length; or
[0043] When the number of error bits of data read according to the reference voltage obtained after adjustment is greater than the number of previous error bits, the adjustment direction is changed and the first step length is reduced.
[0044] In a possible implementation manner, the preset reference voltage includes multiple ones.
[0045] In a possible implementation manner, the adjusting the first target reference voltage to obtain a plurality of second target reference voltages includes:
[0046] The second step length is halved successively and rounded to obtain multiple third step lengths;
[0047] The first target reference voltage is adjusted upward and downward by using the second step size and the plurality of third step sizes to obtain the plurality of second target reference voltages.
[0048] In a possible implementation manner, using the multiple second target reference voltages to read data of multiple flash memory pages of the flash memory block, and using the second target reference voltage with the smallest number of second error bits of the read data as the target reference voltage, includes:
[0049] A second number of error bits obtained by taking the first second target reference voltage as a minimum intermediate result;
[0050] In the case that the second error bit number obtained by any one of the second target reference voltages is smaller than the minimum intermediate result, the minimum intermediate result is updated using the second error bit number obtained by the current second target reference voltage.
[0051] In a possible implementation, the device further includes:
[0052] When the number of error bits of some flash memory pages of the flash memory block obtained by using any one of the second target reference voltages is greater than the minimum intermediate result, the calculation of the number of error bits of the remaining flash memory pages is stopped.
[0053] According to another aspect of the present disclosure, a reference voltage determination device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the above method.
[0054] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.
[0055] Through the above method and device, the present disclosure can determine the first target reference voltage of the first flash memory page, and use the first target voltage to obtain multiple second target reference voltages, and use the multiple second target reference voltages to obtain a target reference voltage suitable for the flash memory block. Through the above method, the present disclosure can determine the current real reference voltage of the flash memory block to ensure the normal use of the flash memory block and the accuracy of the read data.
[0056] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0058] Figure 1 A flowchart of a reference voltage determination method according to an embodiment of the present disclosure is output.
[0059] Figure 2 A schematic diagram showing data storage in a TLC memory cell in a NAND memory.
[0060] Figure 3 A flow chart of a reference voltage determination method according to an embodiment of the present disclosure is shown.
[0061] Figure 4 A schematic diagram of determining a plurality of second target reference voltages using the present disclosure is shown.
[0062] Figure 5 A block diagram of a reference voltage determination device according to an embodiment of the present disclosure is shown.
[0063] Figure 6 A block diagram of a reference voltage determination device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0064] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0065] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0066] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0067] See also Figure 1 , Figure 1 A flowchart of a reference voltage determination method according to an embodiment of the present disclosure is output.
[0068] like Figure 1 As shown, the method includes:
[0069] Step S110, using a plurality of different reference voltages to read data of a first flash memory page, and using a reference voltage at which the number of first error bits of the read data reaches a convergence value as a first target reference voltage, wherein the first flash memory page is any one of a plurality of flash memory pages of a flash memory block to be tested;
[0070] Step S120, adjusting the first target reference voltage to obtain a plurality of second target reference voltages;
[0071] Step S130, using the plurality of second target reference voltages to read data of a plurality of flash memory pages of the flash memory block, and using the second target reference voltage having the smallest number of second error bits of the read data as the target reference voltage.
[0072] Through the above method, the present disclosure can determine the first target reference voltage of the first flash memory page, and use the first target voltage to obtain multiple second target reference voltages, and use the multiple second target reference voltages to obtain a target reference voltage suitable for the flash memory block. Through the above method, the present disclosure can determine the current real reference voltage of the flash memory block to ensure the normal use of the flash memory block and the accuracy of the read data.
[0073] In a possible implementation, the convergence value may be determined according to actual conditions, and the present disclosure does not limit the specific value of the convergence value.
[0074] The storage units included in the NAND memory can be divided into multiple types according to different NAND types. For example, they can include SLC (Single-Level Cell), MLC (Multi-Level Cell), and TLC (Trinary-Level Cell), which can store 1 bit, 2 bits, and 3 bits of data respectively.
[0075] For example, see TLC Figure 2 , Figure 2 A schematic diagram showing data storage in a TLC memory cell in a NAND memory.
[0076] like Figure 2 As shown, TLC can store 3-bit data (high bit, middle bit, low bit), so its stored data can have 8 data states (i.e. 8 data information): 000, 001, 010, 011, 100, 101, 110, 111, and its 8 data states correspond to different reference voltages Vref H1, Vref M1, Vref L1, Vref M2, Vref H2, Vref M3, Vref L2. When it is necessary to read the high bit, middle bit, and low bit, the corresponding reference voltage can be applied to the storage unit.
[0077] See also Figure 3 , Figure 3 A flow chart of a reference voltage determination method according to an embodiment of the present disclosure is shown.
[0078] In a possible implementation, Figure 3 As shown, the method may also include:
[0079] Step S210 , gradually adjusting the preset reference voltage with a first step length to obtain the plurality of different reference voltages, wherein the number of first error bits of data read using the reference voltage obtained after each adjustment gradually decreases.
[0080] In a possible implementation, taking TLC as an example, the preset reference voltage may be one of Vref H1, Vref M1, Vref L1, Vref M2, Vref H2, Vref M3, and Vref L2. In other types of storage cells, other reference voltages may be selected as the preset reference voltage.
[0081] In a possible implementation manner, the first step length can be set as needed, and the present disclosure does not limit this.
[0082] In one example, the first step length may be a fixed value, such as a unit of 1.
[0083] In other examples, the first may also be a variable value, for example, 1 unit is added after each calculation, such as 1, 2, 3, 4, ...; or an exponential increase, such as 1, 2, 4, 8, ... and so on.
[0084] It should be noted that the first step length can be converted into a voltage value. For different SSDs, the conversion method may be different. For example, the first step length is 1, which represents a corresponding voltage value of 0.01V, 0.02V, etc. The specific corresponding relationship is not limited in this disclosure, and technicians in this field can determine it according to actual conditions.
[0085] In a possible implementation manner, gradually adjusting the preset reference voltage with a first step size to obtain the multiple different reference voltages may include:
[0086] The preset reference voltage is adjusted upward and downward with the first step length to obtain a first reference voltage and a second reference voltage respectively;
[0087] Compare the data of the first flash memory page read by using the preset reference voltage, the first reference voltage and the second reference voltage with preset data respectively, to obtain the number of error bits corresponding to the preset reference voltage, the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage;
[0088] determining an adjustment direction according to a smaller value of the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage compared to the number of error bits corresponding to the preset reference voltage;
[0089] The first reference voltage or the second reference voltage is gradually adjusted in the adjustment direction with the first step length to obtain the multiple different reference voltages.
[0090] In a possible implementation, the flash memory block for which the target reference voltage needs to be determined may be erased in advance, and known data may be written into the flash memory block.
[0091] In one example, the known data written into the flash memory block may be random data with a 0 / 1 balance.
[0092] In an example, if the reference voltage (e.g., VrefL1) for reading lower page data needs to be adjusted to determine the actual reference voltage of the lower page data, assuming that the first step length is 1 (converted to a voltage value of 0.02V), and assuming that Vref L1 is 2V, according to "adjusting the preset reference voltage upward and downward with the first step length to obtain the first reference voltage and the second reference voltage respectively", the first reference voltage can be obtained to be 2.02V and the second reference voltage to be 1.98V.
[0093] By using Vref L1 and the first reference voltage and the second reference voltage to read the data in the first flash memory page respectively and compare them with the known preset data, the number of error bits corresponding to the preset reference voltage, the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage can be obtained respectively.
[0094] In a possible implementation, the data read from the first flash memory page is compared with the preset data. This may be achieved by software or hardware. The present disclosure does not limit the specific implementation of the data comparison.
[0095] By determining the direction in which the number of error bits is smaller than the number of error bits corresponding to Vref L1 as the adjustment direction, the adjustment range can be narrowed.
[0096] In an example, assuming that the number of error bits corresponding to the first reference voltage (2.02V) is a smaller value, it can be determined that upward adjustment is the adjustment direction.
[0097] In one example, according to "gradually adjusting the first reference voltage or the second reference voltage in the adjustment direction with the first step to obtain the multiple different reference voltages", in one example, the multiple different reference voltages obtained may include 2.02V, 2.04V, 2.06V, 2.08V, etc.
[0098] Through the above method, the present disclosure can obtain a plurality of different reference voltages according to a preset reference voltage and a preset step size.
[0099] Through the above method, multiple different reference voltages can be obtained. After obtaining the multiple different reference voltages, according to step S110, the data of the first flash memory page can be read using the multiple different reference voltages obtained, and the read data can be compared with the preset data to determine the number of first error bits corresponding to each different reference voltage, and the reference voltage at which the number of first error bits reaches the convergence value is used as the first target reference voltage.
[0100] In a possible implementation, in the process of using the reference voltage to read the data of the first flash memory page and comparing it with preset data to obtain the first number of error bits, the reference voltage may also be dynamically adjusted, for example, the first step length may be adjusted.
[0101] In a possible implementation, the method may further include:
[0102] The first step length is adjusted according to the number of error bits of the data read by the reference voltage obtained after each adjustment and the number of error bits of the previous data.
[0103] In a possible implementation manner, adjusting the first step length according to the number of error bits of data read by the reference voltage obtained after each adjustment and the number of error bits of the previous step may include:
[0104] In a case where the number of error bits of the data read according to the adjusted reference voltage is less than the previous number of error bits, increasing the first step length; or
[0105] When the number of error bits of data read according to the reference voltage obtained after adjustment is greater than the number of previous error bits, the adjustment direction is changed and the first step length is reduced.
[0106] In an example, if the number of error bits is getting smaller and smaller, the first step length may be gradually increased, for example, the first step length may be gradually increased from 1 to 2, 3, 4, 5, and so on.
[0107] In this way, by gradually increasing the first step length, the calculation speed can be accelerated, thereby saving calculation resources and costs.
[0108] If the number of error bits of the data read according to the adjusted reference voltage is greater than the previous number of error bits, it proves that the actual reference voltage is between the current reference voltage and the previous reference voltage. In this case, the adjustment direction can be changed from upward adjustment (increase) to downward adjustment (decrease), and the first step length can be reduced.
[0109] In an example, assuming that the current reference voltage is 2.26V, the previous reference voltage is 2.2V, and the current first step length is 3 (corresponding to 0.06V), it can be determined that the actual reference voltage is between 2.2V and 2.26V. Therefore, the reference voltage can be adjusted downward from the current reference voltage of 2.26V, and the step length can be reduced to 2 (corresponding to 0.02V). The adjusted reference voltage is 2.22V (2.26V-0.04V), and the adjusted reference voltage 2.22V is used for the next reading and calculation.
[0110] By repeating the above process, a reference voltage at which the first number of error bits reaches a convergence value can be finally obtained, that is, a first target reference voltage.
[0111] In a possible implementation manner, step S120 of adjusting the first target reference voltage to obtain a plurality of second target reference voltages may include:
[0112] The second step length is halved successively and rounded to obtain multiple third step lengths;
[0113] The first target reference voltage is adjusted upward and downward by using the second step size and the plurality of third step sizes to obtain the plurality of second target reference voltages.
[0114] In a possible implementation, the rounding may be rounding up or rounding down, and the following takes rounding down as an example for introduction. In a possible implementation, the second step length may be different from each step length, and the second step length may be determined as needed, which is not limited in the present disclosure.
[0115] In an example, assuming that the second step length is 10, according to “reducing the second step length in half in sequence and rounding it up to obtain multiple third step lengths”, the multiple third step lengths can be 5, 2, 1, and 0 respectively. The voltage values corresponding to the second step length and the multiple third step lengths (the conversion relationship is assumed to be 1 unit step length corresponds to 0.02V) can be 0.2V, 0.1V, 0.04V, 0.02V, and 0.
[0116] In a possible implementation, the "using the second step size and the multiple third step sizes to adjust the first target reference voltage upward and downward to obtain the multiple second target reference voltages" may be based on the previous second target reference voltage. For example, assuming that the first target reference voltage is 3.6V, the multiple second target reference voltages may be obtained based on 3.6V, which is 3.6+ / -0.2V (3.8V, 3.4V); based on 3.8V, which is 3.8+ / -0.1V (3.9V, 3.7V); based on 3.4V, which is 3.4+ / -0.1V (3.5V, 3.3V)... and so on.
[0117] See also Figure 4 , Figure 4 A schematic diagram of determining a plurality of second target reference voltages using the present disclosure is shown.
[0118] Assuming that Vref L1 is the first target reference voltage (other preset reference voltages are fixed, such as Vref L2), multiple second target reference voltages (lines 1 to 10) can be obtained by adjusting Vref L1 upward and downward multiple times. Of course, Figure 4 Only a portion of the second target reference voltage adjusted upward is shown (line 2, line 4), and the rest corresponds to multiple second target reference voltages adjusted downward (lines 1, 3, 5, 6, 7, 8, 9, 10) according to the mirror principle.
[0119] Through the above method, the present disclosure can determine multiple second target reference voltages according to the first target reference voltage.
[0120] After obtaining a plurality of second target reference voltages, real target reference voltages for a plurality of flash memory pages of a flash memory block may be determined from the plurality of second target reference voltages.
[0121] In a possible implementation manner, step S130 uses the multiple second target reference voltages to read data of multiple flash memory pages of the flash memory block, and uses the second target reference voltage with the smallest second error bit number of the read data as the target reference voltage, which may include:
[0122] A second number of error bits obtained by taking the first second target reference voltage as a minimum intermediate result;
[0123] In the case that the second error bit number obtained by any one of the second target reference voltages is smaller than the minimum intermediate result, the minimum intermediate result is updated using the second error bit number obtained by the current second target reference voltage.
[0124] In one example, the first second target reference voltage can be the first reference voltage selected from multiple second target reference voltages for reading data of multiple flash memory pages of a flash memory block and comparing them, wherein the selection method can be random selection or selection in the order of generating the second target reference voltages, and the present disclosure does not limit this.
[0125] For example, assuming that the second target reference voltages obtained according to step S120 include 3.6V, 3.8V, and 3.9V, one of the three second target reference voltages can be randomly selected as the first second target reference voltage, or 3.6V can be selected as the first second target reference voltage (the first of the generated second target reference voltages).
[0126] In a possible implementation manner, the multiple flash memory pages of the flash memory block may refer to all flash memory pages of the flash memory block.
[0127] By testing all flash memory pages of a flash memory block, the real reference voltage corresponding to all flash memory pages of the flash memory block can be obtained. Using the target reference voltage obtained by the above method, the data of all flash memory pages of the flash memory block can be accurately read.
[0128] In a possible implementation, the method may further include:
[0129] When the number of error bits of some flash memory pages of the flash memory block obtained by using any one of the second target reference voltages is greater than the minimum intermediate result, the calculation of the number of error bits of the remaining flash memory pages is stopped.
[0130] When the minimum intermediate result obtained using the first second target reference voltage is determined, for each subsequent second target reference voltage, when calculating the number of error bits, after calculating the number of error bits of each flash memory page, the calculated number of error bits can be compared with the minimum intermediate value result, and when the value is greater than the minimum intermediate value result, the calculation of the number of error bits for the remaining flash memory pages of the flash memory block using the current second target reference voltage can be ended.
[0131] Through this method, the amount of calculation can be reduced and the calculation efficiency can be improved.
[0132] In one example, assuming that the flash memory block includes M flash memory pages, if the number of error bits of N flash memory pages is greater than the minimum intermediate result, the number of error bits of the remaining MN flash memory pages will no longer be calculated, where M>N.
[0133] Of course, in other implementations, those skilled in the art may arrange to perform comparison after reading all flash memory pages, and the present disclosure does not limit this.
[0134] It should be understood that the above description is about the adjustment and determination of a reference voltage of a NAND storage cell. According to the previous introduction, the number of reference voltages of NAND storage cells varies depending on their types, that is, the reference voltage may include multiple ones. Of course, for other reference voltages, the determination method is the same as the determination method described above, and will not be repeated here.
[0135] Through the above method, the present disclosure can determine the real reference voltage after the preset reference voltage of the solid-state hard disk is offset, so that the solid-state hard disk can be used normally and the accuracy of reading the data stored in the solid-state hard disk is ensured.
[0136] See also Figure 5 , Figure 5 A block diagram of a reference voltage determination device according to an embodiment of the present disclosure is shown.
[0137] like Figure 5 As shown, the device comprises:
[0138] A first determination module is used to read data of a first flash memory page using a plurality of different reference voltages, and use a reference voltage at which the number of first error bits of the read data reaches a convergence value as a first target reference voltage, wherein the first flash memory page is any one of a plurality of flash memory pages of a flash memory block to be tested;
[0139] an adjustment module, connected to the first determination module, and configured to adjust the first target reference voltage to obtain a plurality of second target reference voltages;
[0140] A second determination module is connected to the adjustment module and is used for reading data of multiple flash memory pages of the flash memory block using the multiple second target reference voltages, and taking the second target reference voltage with the smallest number of second error bits of the read data as the target reference voltage.
[0141] Through the above device, the present disclosure can determine the first target reference voltage of the first flash memory page, and use the first target voltage to obtain multiple second target reference voltages, and use the multiple second target reference voltages to obtain a target reference voltage suitable for the flash memory block. Through the above method, the present disclosure can determine the current real reference voltage of the flash memory block to ensure the normal use of the flash memory block and the accuracy of the read data.
[0142] See also Figure 6 , Figure 6 A block diagram of a reference voltage determination device according to an embodiment of the present disclosure is shown.
[0143] In a possible implementation, Figure 6 As shown, the device may include:
[0144] The third determination module is connected to the first determination module and is used to gradually adjust the preset reference voltage with a first step length to obtain the multiple different reference voltages, wherein the number of first error bits of the data read using the reference voltage obtained after each adjustment gradually decreases.
[0145] In a possible implementation manner, the step of gradually adjusting the preset reference voltage with a first step length to obtain the multiple different reference voltages includes:
[0146] The preset reference voltage is adjusted upward and downward with the first step length to obtain a first reference voltage and a second reference voltage respectively;
[0147] Compare the data of the first flash memory page read by using the preset reference voltage, the first reference voltage and the second reference voltage with preset data respectively, to obtain the number of error bits corresponding to the preset reference voltage, the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage;
[0148] determining an adjustment direction according to a smaller value of the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage compared to the number of error bits corresponding to the preset reference voltage;
[0149] The first reference voltage or the second reference voltage is gradually adjusted in the adjustment direction with the first step length to obtain the multiple different reference voltages.
[0150] In a possible implementation manner, the third determining module includes:
[0151] The step length adjustment submodule is used to adjust the first step length according to the number of error bits of the data read by the reference voltage obtained after each adjustment and the number of error bits of the previous step length.
[0152] In a possible implementation manner, adjusting the first step length according to the number of error bits of data read by the reference voltage obtained after each adjustment and the number of error bits of the previous reference voltage includes:
[0153] In a case where the number of error bits of the data read according to the adjusted reference voltage is less than the previous number of error bits, increasing the first step length; or
[0154] When the number of error bits of data read according to the reference voltage obtained after adjustment is greater than the number of previous error bits, the adjustment direction is changed and the first step length is reduced.
[0155] In a possible implementation manner, the preset reference voltage includes multiple ones.
[0156] In a possible implementation manner, the adjusting the first target reference voltage to obtain a plurality of second target reference voltages includes:
[0157] The second step length is halved successively and rounded to obtain multiple third step lengths;
[0158] The first target reference voltage is adjusted upward and downward by using the second step size and the plurality of third step sizes to obtain the plurality of second target reference voltages.
[0159] In a possible implementation manner, using the multiple second target reference voltages to read data of multiple flash memory pages of the flash memory block, and using the second target reference voltage with the smallest number of second error bits of the read data as the target reference voltage, includes:
[0160] A second number of error bits obtained by taking the first second target reference voltage as a minimum intermediate result;
[0161] In the case that the second error bit number obtained by any one of the second target reference voltages is smaller than the minimum intermediate result, the minimum intermediate result is updated using the second error bit number obtained by the current second target reference voltage.
[0162] In a possible implementation, the device further includes:
[0163] When the number of error bits of some flash memory pages of the flash memory block obtained by using any one of the second target reference voltages is greater than the minimum intermediate result, the calculation of the number of error bits of the remaining flash memory pages is stopped.
[0164] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for determining a reference voltage, characterized in that: The method comprises: Using a plurality of different reference voltages to read data of a first flash memory page, and using a reference voltage at which the number of first error bits of the read data reaches a convergence value as a first target reference voltage, wherein the first flash memory page is any one of a plurality of flash memory pages of a flash memory block to be tested; Adjusting the first target reference voltage to obtain a plurality of second target reference voltages; Using the plurality of second target reference voltages to read data of a plurality of flash memory pages of the flash memory block, taking the second target reference voltage with the smallest second error bit number of the read data as the target reference voltage, The method further comprises: The method comprises: gradually adjusting the preset reference voltage with a first step length to obtain the plurality of different reference voltages, wherein the number of first error bits of data read using the reference voltage obtained after each adjustment gradually decreases, including: The preset reference voltage is adjusted upward and downward with the first step length to obtain a first reference voltage and a second reference voltage respectively; Compare the data of the first flash memory page read by using the preset reference voltage, the first reference voltage and the second reference voltage with preset data respectively, to obtain the number of error bits corresponding to the preset reference voltage, the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage; determining an adjustment direction according to a smaller value of the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage compared to the number of error bits corresponding to the preset reference voltage; The first reference voltage or the second reference voltage is gradually adjusted in the adjustment direction with the first step length to obtain the multiple different reference voltages.
2. The method according to claim 1, characterized in that: The method further comprises: The first step length is adjusted according to the number of error bits of the data read by the reference voltage obtained after each adjustment and the number of error bits of the previous data.
3. The method according to claim 2, characterized in that The first step length is adjusted according to the number of error bits of the data read from the reference voltage obtained after each adjustment and the number of error bits of the previous step, including: In a case where the number of error bits of the data read according to the adjusted reference voltage is less than the previous number of error bits, increasing the first step length; or When the number of error bits of data read according to the reference voltage obtained after adjustment is greater than the number of previous error bits, the adjustment direction is changed and the first step length is reduced.
4. The method according to any one of claims 1 to 3, characterized in that: The preset reference voltage includes a plurality of preset reference voltages.
5. The method according to claim 1, characterized in that The adjusting the first target reference voltage to obtain a plurality of second target reference voltages includes: The second step length is halved successively and rounded to obtain multiple third step lengths; The first target reference voltage is adjusted upward and downward by using the second step size and the plurality of third step sizes to obtain the plurality of second target reference voltages.
6. The method according to claim 1, characterized in that The method of reading data of a plurality of flash memory pages of a flash memory block by using the plurality of second target reference voltages and taking the second target reference voltage with the smallest second error bit number of the read data as the target reference voltage comprises: A second number of error bits obtained by taking the first second target reference voltage as a minimum intermediate result; In the case that the second error bit number obtained by any one of the second target reference voltages is smaller than the minimum intermediate result, the minimum intermediate result is updated using the second error bit number obtained by the current second target reference voltage.
7. The method according to claim 6, characterized in that The method further comprises: When the number of error bits of some flash memory pages of the flash memory block obtained by using any one of the second target reference voltages is greater than the minimum intermediate result, the calculation of the number of error bits of the remaining flash memory pages is stopped.
8. A reference voltage determination device, characterized in that: The device comprises: A first determination module is used to read data of a first flash memory page using a plurality of different reference voltages, and use a reference voltage at which the number of first error bits of the read data reaches a convergence value as a first target reference voltage, wherein the first flash memory page is any one of a plurality of flash memory pages of a flash memory block to be tested; an adjustment module, connected to the first determination module, and configured to adjust the first target reference voltage to obtain a plurality of second target reference voltages; A second determination module is connected to the adjustment module and is used to read data of multiple flash memory pages of the flash memory block using the multiple second target reference voltages, and use the second target reference voltage with the smallest second error bit number of the read data as the target reference voltage. The device also includes: A third determination module is connected to the first determination module and is used to gradually adjust the preset reference voltage with a first step length to obtain the plurality of different reference voltages, wherein the number of first error bits of the data read using the reference voltage obtained after each adjustment gradually decreases, including: The preset reference voltage is adjusted upward and downward with the first step length to obtain a first reference voltage and a second reference voltage respectively; Compare the data of the first flash memory page read by using the preset reference voltage, the first reference voltage and the second reference voltage with preset data respectively, to obtain the number of error bits corresponding to the preset reference voltage, the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage; determining an adjustment direction according to a smaller value of the number of error bits corresponding to the first reference voltage and the number of error bits corresponding to the second reference voltage compared to the number of error bits corresponding to the preset reference voltage; The first reference voltage or the second reference voltage is gradually adjusted in the adjustment direction with the first step length to obtain the multiple different reference voltages.
9. The device according to claim 8, characterized in that The third determining module comprises: The step length adjustment submodule is used to adjust the first step length according to the number of error bits of the data read by the reference voltage obtained after each adjustment and the number of error bits of the previous step length.
10. The device according to claim 9, characterized in that The first step length is adjusted according to the number of error bits of the data read from the reference voltage obtained after each adjustment and the number of error bits of the previous step, including: In a case where the number of error bits of the data read according to the adjusted reference voltage is less than the previous number of error bits, increasing the first step length; or When the number of error bits of data read according to the reference voltage obtained after adjustment is greater than the number of previous error bits, the adjustment direction is changed and the first step length is reduced.
11. The device according to any one of claims 8 to 10, characterized in that: The preset reference voltage includes a plurality of preset reference voltages.
12. The device according to claim 8, characterized in that The adjusting the first target reference voltage to obtain a plurality of second target reference voltages includes: The second step length is halved successively and rounded to obtain multiple third step lengths; The first target reference voltage is adjusted upward and downward by using the second step size and the plurality of third step sizes to obtain the plurality of second target reference voltages.
13. The device according to claim 8, characterized in that The method of reading data of a plurality of flash memory pages of a flash memory block by using the plurality of second target reference voltages and taking the second target reference voltage with the smallest second error bit number of the read data as the target reference voltage comprises: A second number of error bits obtained by taking the first second target reference voltage as a minimum intermediate result; In the case that the second error bit number obtained by any one of the second target reference voltages is smaller than the minimum intermediate result, the minimum intermediate result is updated using the second error bit number obtained by the current second target reference voltage.
14. The device according to claim 13, characterized in that The device also includes: When the number of error bits of some flash memory pages of the flash memory block obtained by using any one of the second target reference voltages is greater than the minimum intermediate result, the calculation of the number of error bits of the remaining flash memory pages is stopped.
