Read voltage setting method, memory storage device and memory controller

By grouping and aging level updates of the physical programmatic units in NAND type flash memory, setting the appropriate reading voltage, the problem of inconsistent aging speed of different memory grains is solved and data reading efficiency is improved.

CN114724596BActive Publication Date: 2024-12-03HOSIN GLOBAL ELECTRONICS CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210232133.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-09
Publication Date
2024-12-03
Estimated Expiration
2042-03-09

AI Technical Summary

Technical Problem

In the prior art, the aging speed of different memory grains in NAND type flash memory is inconsistent, which makes it impossible to apply to the reading voltage of each entity programmable unit, affecting the data reading efficiency.

Method used

By grouping multiple entity programmable units, setting the corresponding read voltage according to the aging level of each group, and updating the aging level is updated using the count of error bits, ensuring that the read voltage suitable for the current aging level is used for data reading.

Benefits of technology

It effectively reduces data reading time, improves data reading efficiency, adapts to the aging level of different groups, and improves the accuracy of data reading.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114724596B_ABST
    Figure CN114724596B_ABST
Patent Text Reader

Abstract

The present invention provides a read voltage setting method, a memory storage device and a memory controller. The method includes: obtaining a first aging level corresponding to a first physical group, and using a first read voltage corresponding to the first aging level to read at least one first physical programming unit included in the first physical group; determining whether the number of error bits in a preset section of the first physical programming unit is greater than an error bit number threshold value, and counting the number of times the error bit number is determined to be greater than the error bit number threshold value to generate a first count value; in response to the first count value being greater than the first aging threshold value, updating the first aging level corresponding to the first physical group to a second aging level; and using a second read voltage corresponding to the second aging level to read data from the first physical programming unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a memory management technology, and in particular to a read voltage setting method, a memory storage device and a memory controller. Background Art

[0002] A rewritable non-volatile memory module (such as a flash memory module) has the advantages of non-volatile data storage, low power consumption, and fast data access. Among the rewritable non-volatile memory modules, the NAND type flash memory is the most widely used. According to the number of bits that each memory cell can store, the NAND type flash memory can be divided into a single level cell (SLC) NAND type flash memory, a multilevel cell (MLC) NAND type flash memory, and a trinary level cell (TLC) NAND type flash memory, wherein each memory cell of the SLC NAND type flash memory can store 1 bit of data (i.e., "1" and "0"), each memory cell of the MLC NAND type flash memory can store 2 bits of data, and each memory cell of the TLC NAND type flash memory can store 3 bits of data.

[0003] In a NAND flash memory, a physical programming unit is composed of several memory cells arranged on the same word line. Since each memory cell of an SLC NAND flash memory can store 1 bit of data, in an SLC NAND flash memory, several memory cells arranged on the same word line correspond to one physical programming unit. In addition, since each memory cell of a TLC NAND flash memory can store 3 bits of data, in a TLC NAND flash memory, several memory cells arranged on the same word line can form 3 physical programming units, including a lower physical programming unit, a middle physical programming unit, and an upper physical programming unit.

[0004] Generally speaking, a flash memory using a rewritable non-volatile memory module as a storage medium sets a consistent read voltage for each type of programming unit in the rewritable non-volatile memory module (e.g., the lower physical programming unit, the middle physical programming unit, and the upper physical programming unit of a TLC NAND flash memory) in a device unit. However, the aging speed of each memory die included in the rewritable non-volatile memory module is not necessarily the same, and the aging speed of each storage unit located in each memory die may be different due to the writing, erasing, and other operations during the operation of the flash memory, so that the read voltage used to read a physical programming unit in the flash memory may not be suitable for reading another physical programming unit. Summary of the invention

[0005] The embodiments of the present invention provide a read voltage setting method, a memory storage device and a memory controller, which can obtain a read voltage that meets the current aging degree of a physical programming unit, so as to reduce the time of reading data and improve the data reading efficiency.

[0006] An embodiment of the present invention provides a read voltage setting method for a memory module, wherein the memory module includes a plurality of memory dies. The plurality of memory dies have a plurality of physical erase units, each of which has a plurality of physical programming units. The method includes: grouping the plurality of physical programming units into a plurality of physical groups based on the memory dies to which they belong; obtaining a first aging level corresponding to a first physical group among the plurality of physical groups, and using a first read voltage corresponding to the first aging level to read at least one first physical programming unit included in the first physical group, wherein each of the first physical programming units has one or more preset sections; determining whether the number of error bits in the preset section of the first physical programming unit is greater than an error bit number threshold value, and counting the number of times the number of error bits is determined to be greater than the error bit number threshold value to generate a first count value; determining whether the first count value is greater than a first aging threshold value, and updating the first aging level corresponding to the first physical group to a second aging level in response to the first count value being greater than the first aging threshold value; and after the first physical group is updated to correspond to the second aging level, using a second read voltage corresponding to the second aging level to read data from the first physical programming unit.

[0007] An embodiment of the present invention further provides a memory storage device, comprising a connection interface, a memory module and a memory controller. The connection interface is used to connect to a host system. The memory module includes a plurality of memory dies, the plurality of memory dies have a plurality of physical erase units, and each of the physical erase units has a plurality of physical programming units. The memory controller connects the connection interface and the memory module. The memory controller is used to group the plurality of physical programming units into a plurality of physical groups based on the memory dies to which they belong. The memory controller is also used to obtain a first aging level corresponding to a first physical group among the plurality of physical groups, and use a first read voltage corresponding to the first aging level to read at least one first physical programming unit included in the first physical group, wherein each of the first physical programming units has one or more preset sections. The memory controller is also used to determine whether the number of error bits in the preset section of the first physical programming unit is greater than an error bit number threshold value, and to count the number of times the error bit number is determined to be greater than the error bit number threshold value to generate a first count value. The memory controller is further configured to determine whether the first count value is greater than a first aging threshold value, and in response to the first count value being greater than the first aging threshold value, update the first aging level corresponding to the first physical group to a second aging level. Furthermore, the memory controller is further configured to read data from the first physical programming unit using a second read voltage corresponding to the second aging level after the first physical group is updated to correspond to the second aging level.

[0008] An embodiment of the present invention further provides a memory controller, comprising a host interface, a memory interface, an error checking and correction circuit, and a memory control circuit. The host interface is used to connect to a host system. The memory interface is used to connect to a memory module, wherein the memory module includes a plurality of memory dies, the plurality of memory dies have a plurality of physical erase units, and each of the physical erase units has a plurality of physical programming units. The memory control circuit is connected to the host interface, the memory interface, and the error checking and correction circuit. The memory control circuit is used to group the plurality of physical programming units into a plurality of physical groups based on the memory dies to which they belong. The memory control circuit is also used to obtain a first aging level corresponding to a first physical group among the plurality of physical groups, and to read at least one first physical programming unit included in the first physical group using a first read voltage corresponding to the first aging level, wherein each of the first physical programming units has one or more preset sections. The memory control circuit is also used to determine whether the number of error bits in the preset section of the first physical programming unit is greater than an error bit number threshold value, and to count the number of times the number of error bits is determined to be greater than the error bit number threshold value to generate a first count value. The memory control circuit is further configured to determine whether the first count value is greater than a first aging threshold value, and in response to the first count value being greater than the first aging threshold value, update the first aging level corresponding to the first physical group to a second aging level. Furthermore, after the first physical group is updated to correspond to the second aging level, the memory control circuit is further configured to read data from the first physical programming unit using a second read voltage corresponding to the second aging level.

[0009] Based on the above, this embodiment can determine a read voltage suitable for the current aging degree of each group according to the different aging degrees of each group, thereby reducing the time for reading data. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 is a schematic diagram of a memory storage device according to an embodiment of the present invention;

[0011] Figure 2 is a schematic diagram of a memory controller according to an embodiment of the present invention;

[0012] Figure 3 is a schematic diagram of a management memory module according to an embodiment of the present invention;

[0013] Figure 4 is an example of a memory module of a TLC NAND type flash memory according to an embodiment of the present invention;

[0014] Figure 5 is a flow chart of a method for setting a read voltage according to an embodiment of the present invention;

[0015] Figure 6 is a schematic diagram of a preset section according to an embodiment of the present invention. DETAILED DESCRIPTION

[0016] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.

[0017] Figure 1 is a schematic diagram of a memory storage device according to an embodiment of the present invention. Figure 1 , the memory storage system 10 includes a host system 11 and a memory storage device 12. The host system 11 can be any type of computer system. For example. The host system 11 can be a notebook computer, a desktop computer, a smart phone, a tablet computer, an industrial computer, etc. The memory storage device 12 is used to store data from the host system 11. For example, the memory storage device 12 may include a solid state drive, a USB flash drive, or other types of non-volatile storage devices. The host system 11 can be electrically connected to the memory storage device 12 via a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCI Express), a Universal Serial Bus (USB), or other types of connection interfaces. Therefore, the host system 11 can store data to the memory storage device 12 and / or read data from the memory storage device 12.

[0018] The memory storage device 12 may include a connection interface 121, a memory module 122, and a memory controller 123. The connection interface 121 is used to connect the memory storage device 12 to the host system 11. For example, the connection interface 121 may support connection interface standards such as SATA, PCI Express, or USB. The memory storage device 12 may communicate with the host system 11 via the connection interface 121.

[0019] The memory module 122 is used to store data. The memory module 122 may include a rewritable non-volatile memory module. The memory module 122 includes a memory cell array. The memory cells in the memory module 122 store data in the form of voltage. For example, the memory module 122 may include a single level cell (SLC) NAND flash memory module, a multi level cell (MLC) NAND flash memory module, a triple level cell (TLC) NAND flash memory module, a quad level cell (QLC) NAND flash memory module, a three-dimensional NAND flash memory module (3D NAND flash memory module) (which may have multiple three-level or four-level memory cells) or other memory modules with similar characteristics. The memory cells in the memory module 122 are arranged in an array.

[0020] The memory controller 123 is connected to the connection interface 121 and the memory module 122. The memory controller 123 can be used to control the memory storage device 12. For example, the memory controller 123 can control the connection interface 121 and the memory module 122 to perform data access and data management. For example, the memory controller 123 may include a central processing unit (CPU), a graphics processing unit (GPU), or other programmable general-purpose or special-purpose microprocessors, digital signal processors (DSP), programmable controllers, application specific integrated circuits (ASIC), programmable logic devices (PLD) or other similar devices or combinations of these devices.

[0021] In one embodiment, the memory controller 123 is also called a flash memory controller. In one embodiment, the memory module 122 is also called a flash memory module. The memory module 122 can receive a command sequence from the memory controller 123 and access data stored in the storage unit according to the command sequence.

[0022] Figure 2 FIG. 1 is a schematic diagram of a memory controller according to an embodiment of the present invention. Figure 1 and Figure 2The memory controller 123 includes a host interface 21, a memory interface 22, a memory control circuit 23, and an error checking and correction circuit 24. The host interface 21 is used to connect to the host system 11 via the connection interface 121 to communicate with the host system 11. The memory interface 22 is used to connect to the memory module 122 to communicate with the memory module 122.

[0023] The memory control circuit 23 is connected to the host interface 21 and the memory interface 22. The memory control circuit 23 can communicate with the host system 11 via the host interface 21 and access the memory module 122 via the memory interface 22. The memory control circuit 23 can also be regarded as the control core of the memory controller 123, which has a plurality of control instructions. When the memory storage device 12 operates, these control instructions will be executed to implement operations such as writing, reading, and erasing data. In different embodiments, the control instructions of the memory control circuit 23 can be implemented in the form of firmware, code, or hardware, and the present invention is not limited thereto. In the following embodiments, the description of the memory control circuit 23 is equivalent to the description of the memory controller 123. In addition, the memory control circuit 23 may also include one or more buffer memories for temporarily storing data.

[0024] The error checking and correction circuit 24 is electrically connected to the memory control circuit 23 and is used to perform an error checking and correction procedure to ensure the correctness of the data. When the memory control circuit 23 receives a write instruction from the host system 11, the error checking and correction circuit 24 generates an error checking and correction code (ECC Code) for the data corresponding to the write instruction, and the memory control circuit 23 writes the data and the corresponding error checking and correction code into the memory module 122. When the memory control circuit 23 reads data from the memory module 122, the error checking and correction code is read at the same time. And the memory control circuit 23 performs an error checking and correction procedure on the read data according to the read error checking and correction code.

[0025] Figure 3 is a schematic diagram of a management memory module according to an embodiment of the present invention.

[0026] Please refer to Figure 1 and Figure 3 , the memory module 122 includes a plurality of physical programming units, such as Figure 3The physical units 301(0) to 301(C) are shown. The memory module 122 is managed based on physical programming units, each of which includes multiple storage units and is used to store data in a non-volatile manner. Multiple physical programming units can form a physical erase unit (for example, a physical block). Multiple physical programming units (or storage units) in a physical erase unit can be erased simultaneously. In addition, the memory control circuit 23 can configure multiple logical units 311(0) to 311(D) to map at least part of the physical programming units. For example, a logical unit can be composed of one or more logical addresses. The mapping relationship between the logical unit and the physical programming unit can be recorded in a logical to physical mapping table.

[0027] In one embodiment, the memory module is logically divided into a data area 310, an idle area 320, and a system area 330. The physical units 301(1)-301(A) logically belonging to the data area 310 store data (also called user data) from the host system 11. After being erased, the physical programming units in the data area 310 will be associated with the idle area 320. In other words, the physical units 301(A+1)-301(B) in the idle area 320 have been erased and do not store valid data. Among them, multiple physical programming units in the idle area 320 can form an idle physical erase unit.

[0028] The physical units 301(B+1)-301(C) logically belonging to the system area 330 are used to record system data. For example, the system data includes the manufacturer and model of the memory module, the number of physical erase units of the memory module, the number of physical programming units of each physical erase unit, etc. In particular, the number of physical programming units of the data area 310, the idle area 320 and the system area 330 will vary according to different memory specifications.

[0029] In an embodiment where a memory cell can store multiple bits (e.g., an MLC or TLC NAND flash memory), the physical programming cells belonging to the same word line (or the same word line layer) can be classified into at least a lower physical programming cell and an upper physical programming cell. For example, in an MLC NAND flash memory, the least significant bit (LSB) of a memory cell belongs to the lower physical programming cell, and the most significant bit (MSB) of the memory cell belongs to the upper physical programming cell. The reliability of the lower physical programming cell is generally higher than the reliability of the upper physical programming cell. In an exemplary embodiment, the lower physical programming cell is also called a fast page, and the upper physical programming cell is also called a slow page. In other words, taking the MLC NAND flash memory as an example, in the MLC NAND flash memory, a plurality of memory cells arranged on the same word line can form two physical programming units, including a lower physical programming unit composed of the least significant bit (also called the first significant bit) of the memory cell and an upper physical programming unit composed of the most significant bit (also called the second significant bit) of the memory cell.

[0030] In addition, in a TLC NAND flash memory, the least significant bit (LeastSignificant Bit, LSB) of a storage cell belongs to a lower physical programming unit, the center significant bit (CenterSignificant Bit, CSB) of the storage cell belongs to a middle physical programming unit, and the most significant bit (MostSignificant Bit, MSB) of the storage cell belongs to an upper physical programming unit.

[0031] Figure 4 It is an example of a memory module of a TLC NAND flash memory according to an embodiment of the present invention. It should be noted that the following embodiment is described based on the architecture of a TLC NAND flash memory, but those skilled in the art should be able to adjust the technology of this embodiment and implement it in an SLC NAND flash memory, an MLC NAND flash memory, a QLC NAND flash memory or other flash memories with storage units that can store more bits of data.

[0032] In this embodiment, since each memory cell of the TLC NAND flash memory can store 3 bits of data, in the TLC NAND flash memory, a plurality of memory cells arranged on the same word line can form 3 physical programming units, including a lower physical programming unit composed of the least significant bit (also called the first significant bit) of the memory cell, a middle physical programming unit composed of the middle significant bit (also called the third significant bit) of the memory cell, and an upper physical programming unit composed of the most significant bit (also called the second significant bit) of the memory cell. Please refer to Figure 4 The memory module 122 includes memory dies D(0)-D(3), but the present invention does not limit the number of memory dies. Each memory die includes lower physical programming units L0-Ln, middle physical programming units M0-Mn and upper physical programming units U0-Un.

[0033] It should be noted that, although the first significant bit is the “least significant bit”, in other embodiments, the first significant bit may also be the “middle significant bit” or the “most significant bit”. Similarly, in this embodiment, although the third significant bit is the “middle significant bit”, in other embodiments, the third significant bit may also be the “most significant bit” or the “least significant bit”. Similarly, in this embodiment, although the second significant bit is the “most significant bit”, in other embodiments, the second significant bit may also be the “least significant bit” or the “middle significant bit”.

[0034] Generally speaking, the memory storage device 12 sets consistent read voltages for the lower physical programming units L0-Ln, the middle physical programming units M0-Mn, and the upper physical programming units U0-Un of each memory die in the memory module 122, based on the device. For example, the memory control circuit 23 uses the same read voltage to perform a read operation on the lower physical programming units L0-Ln of the memory dies D(0)-D(3), uses the same read voltage to perform a read operation on the middle physical programming units M0-Mn of the memory dies D(0)-D(3), and uses the same read voltage to perform a read operation on the upper physical programming units U0-Un of the memory dies D(0)-D(3). However, the aging speed of each memory chip included in the memory module 122 is not necessarily the same, and the aging speed of each memory cell located in each memory chip may be different due to operations such as writing and erasing during the operation of the flash memory, so that the read voltage used to read a certain physical programming cell in the memory module 122 may not be suitable for reading another physical programming cell.

[0035] Based on this, the read voltage setting method provided by the present invention can set a suitable read voltage to perform a read operation on each physical programming unit. Figure 5 is a flow chart of a method for setting a read voltage according to an embodiment of the present invention. Figure 5 The method of this embodiment is applicable to the memory storage device 12 in the above embodiment. The following is a detailed description of the steps of this embodiment in conjunction with the various components in the memory storage device 12. It is worth noting that Figure 5 Each step in the above process may be implemented as multiple codes or circuits, which is not limited by the present invention. Figure 5 The method can be used in conjunction with the following exemplary embodiments or can be used alone, and the present invention is not limited thereto.

[0036] In step S502, the memory control circuit 23 may group the plurality of physical programming units into a plurality of physical groups based on the memory dies to which they belong. Specifically, the memory control circuit 23 may group the physical programming units consisting of the same valid bit into a plurality of physical groups based on the memory dies to which they belong. For example, the memory control circuit 23 may group the physical programming units belonging to the same memory die and consisting of the same valid bit into a physical group, but the present invention is not limited to this grouping method.

[0037] For example, see Figure 4 In the illustrated memory module 122, the upper physical programming units U0-Un, the middle physical programming units M0-Mn and the lower physical programming units L0-Ln of the memory die D(0) are respectively grouped into physical groups 401, 402 and 403. In addition, the upper physical programming units U0-Un, the middle physical programming units M0-Mn and the lower physical programming units L0-Ln of the memory die D(1) are respectively grouped into physical groups 411, 412 and 413; the upper physical programming units U0-Un, the middle physical programming units M0-Mn and the lower physical programming units L0-Ln of the memory die D(2) are respectively grouped into physical groups 421, 422 and 423; the upper physical programming units U0-Un, the middle physical programming units M0-Mn and the lower physical programming units L0-Ln of the memory die D(3) are respectively grouped into physical groups 431, 432 and 433.

[0038] In step S504, the memory control circuit 23 may obtain a first aging level corresponding to a first physical group among the plurality of physical groups, and use a first read voltage corresponding to the first aging level to read at least one first physical programming unit included in the first physical group, wherein each first physical programming unit has one or more preset sections. Specifically, the memory control circuit 23 may obtain a read voltage corresponding to the first aging level as the first read voltage by querying a read voltage lookup table, wherein the read voltage lookup table records a plurality of aging levels and a read voltage corresponding to each aging level.

[0039] In the present embodiment, one aging level corresponds to one read voltage. For example, the first aging level may correspond to the first read voltage, the second aging level may correspond to the second read voltage, and the nth aging level may correspond to the nth read voltage. Corresponding to the degree of aging change of the physical group, the read voltage for reading the physical programming units in the physical group may be updated between the first read voltage and the nth read voltage. If the current physical group corresponds to the mth aging level (m is, for example, an integer between 0 and n), the current memory control circuit 23 will use the mth read voltage corresponding to the mth aging level to read the physical programming units in the current physical group.

[0040] Furthermore, in the present embodiment, a read voltage lookup table is also proposed, which stores the aging level of the memory chip and the read voltage corresponding to the aging level. Specifically, the read voltage corresponding to each aging level can be determined by prior testing and analysis of the memory chips D(0)~D(n), and the aging level of the memory chips D(0)~D(n) and the read voltage corresponding to the aging level are recorded in the read voltage lookup table. This read voltage lookup table can be stored in the memory module 122 or the buffer memory of the memory control circuit 23, and the present invention is not limited thereto. Specifically, a preset read voltage is used to read the physical programming unit in the memory chip, and the number of error bits in the preset segment of each physical programming unit is obtained. This preset segment is a unit set by the error checking and correction circuit 24 to protect the storage data of a specific length in the physical programming unit, and the present invention is not limited thereto.

[0041] As described above, the error checking and correction circuit 24 is configured to verify whether the data stored in the memory module 122 is correct. Generally speaking, when executing the error checking and correction procedure, whether it is the encoding or decoding step, the error checking and correction circuit 24 needs to know the length of the data to be protected in order to calculate the correct feature code to check the correct error position. In this embodiment, when the memory control circuit 23 receives the data, the memory control circuit 23 first divides the data into a plurality of code frames. Afterwards, the error checking and correction circuit 24 generates an error checking and correction code corresponding to each code frame, so as to encode these code frames and their respective corresponding error checking and correction codes to form an error checking and correction frame. The size of the error checking and correction frame is determined according to the specification of the memory module 122, that is, how many bits must be protected in each unit. For example, the error checking and correction frame is 512 bytes, protecting 12 bits. However, it should be understood that the size of the error checking and correction frame can also be 1K bytes or 2K bytes, etc., and the present invention is not limited thereto. It is worth mentioning that the size of each physical programming unit is at least larger than the size of an ECC frame, so that the data stored in the physical programming unit can be protected by the ECC circuit 24 in units of the size of the ECC frame. The ECC frame in the exemplary embodiment of the present invention is only an example of the size of a preset section for setting the number of error bits of each physical programming unit, and the present invention is not limited thereto.

[0042] Furthermore, multiple physical programming units can be divided into different aging levels according to the number of times the number of error bits in the preset segment of each physical programming unit is greater than a preset threshold value (or according to the continuous writing time of data). For example, multiple physical programming units are divided into three aging levels: old, medium and young. In addition, the read voltage that can correctly read the data stored in the physical programming unit of each aging level is recorded. Then, the read voltage corresponding to each aging level can be formulated and stored based on the recorded read voltage.

[0043] In one embodiment, the physical programming units composed of the same valid bits can be further grouped into the same group for testing. Taking the TLC NAND flash memory as an example, the upper physical programming units in the memory grain are grouped into the same group, and the upper physical programming units included in this group are divided into different aging levels according to the number of error bits in the preset segment of each upper physical programming unit that is greater than a preset threshold value. Then, the read voltage that can correctly read the data stored in the upper physical programming unit of each aging level is recorded, and the read voltage corresponding to each aging level can be formulated and stored based on the recorded read voltage. The test method of the middle physical programming unit and the lower physical programming unit can refer to the above, and will not be repeated here. For example, referring to Table 1 below, multiple upper physical programming units, multiple middle physical programming units and multiple lower physical programming units can be respectively divided into three aging levels, namely aging level 0, aging level 1 and aging level 2. In this embodiment, the physical programming units belonging to aging level 0 have a lower aging degree than the physical programming units belonging to aging level 1 , and the physical programming units belonging to aging level 1 have a lower aging degree than the physical programming units belonging to aging level 2 .

[0044] Table 1 below is an example of a read voltage lookup table. After experiments, the read voltage corresponding to the aging level can be formulated and stored, such as the read voltages V0 to V8 shown in Table 1 below. It is worth noting that the formulated read voltage is a voltage suitable for reading the physical programming unit of the aging level. Referring to Table 1 below, it can be seen that the read voltages corresponding to different aging levels of the upper physical programming unit, the middle physical programming unit, and the lower physical programming unit can be recorded respectively. In one embodiment, aging level 0 is also referred to as the initial aging level, and the read voltage corresponding to aging level 0 is also referred to as the initial read voltage.

[0045] Table 1

[0046] Upper entity programming unit Entity Programming Unit Entity Programming Unit Aging level 0 V0 V3 V6 Aging level 1 V1 V4 V7 Aging level 2 V2 V5 V8

[0047] In this embodiment, when it is necessary to obtain a read voltage for reading a physical programming unit composed of a certain valid bit (for example, a first physical programming unit composed of a first valid bit), the memory control circuit 23 can query the column associated with the first physical programming unit in the read voltage lookup table to obtain the read voltage corresponding to the specific aging level in the column associated with the first physical programming unit to perform a read operation. The read voltage lookup table records a plurality of aging levels associated with a plurality of physical programming units composed of different valid bits and a read voltage corresponding to each aging level.

[0048] In step S506 , the memory control circuit 23 may determine whether the number of error bits in the preset section of the first physical programming unit is greater than the error bit number threshold, and count the number of times the number of error bits is determined to be greater than the error bit number threshold to generate a first count value.

[0049] In the present embodiment, when the memory storage device 12 is in operation, the memory control circuit 23 counts the number of times the number of error bits in the preset segment of the physical programming unit in each physical group is greater than a preset threshold value. For example, in the present embodiment, the maximum protection capability of the error checking and correction circuit 24 is 12 bits. Therefore, when the number of error bits occurring in the preset segment is greater than 12, the error checking and correction circuit 24 will not be able to correct the error data in the preset segment, resulting in the data stored in the preset segment being unable to be read normally. Based on this, the memory control circuit 23 records the number of times the number of error bits in the preset segment of the physical programming unit included in the physical group exceeds the error bit number threshold value predefined by the system to generate a first count value. For example, the error bit number threshold value predefined by the system is 9. The error bit number threshold value predefined by the system can be defined at the time of shipment, or can be set by firmware or software after shipment. It is worth noting that the error bit number threshold value does not exceed the maximum protection capability of the error checking and correction circuit 24. In the present embodiment, a physical group corresponds to a first count value, and this correspondence can be recorded in an error number lookup table.

[0050] Figure 6 is a schematic diagram of a preset segment according to an embodiment of the present invention. Figure 6 In this embodiment, the size of the upper physical programming unit U0 in the physical group 401 is 2K bytes (2048 bytes), which can store data of 4 preset segments, namely the first preset segment 61, the second preset segment 62, the third preset segment 63 and the fourth preset segment 64. The size of each preset segment is 512 bytes. Furthermore, the upper physical programming unit U1 is similar to the upper physical programming unit U0, and can store data of 4 preset segments, namely the first preset segment 65, the second preset segment 66, the third preset segment 67 and the fourth preset segment 68. During the operation of the memory storage device 12, the memory control circuit 23 will continue to detect the number of error bits occurring in each preset segment, and when the number of error bits occurring in a preset segment is greater than the preset threshold value, the first count value corresponding to the physical group corresponding to this preset segment will be updated.

[0051] Please also refer to Figure 6As shown in Table 1, it is assumed that the current aging level of the physical group 401 corresponds to the aging level 0 in Table 1, so the memory control circuit 23 uses the read voltage V0 corresponding to the aging level 0 to read the physical programming units included in the physical group 401. In this embodiment, when the memory control circuit 23 uses the read voltage V0 corresponding to the aging level 0 to read the physical programming unit U0, if the number of error bits in the first preset section 61 is greater than the error bit number threshold value (for example, 9), the memory control circuit 23 updates the first count value corresponding to the physical group 401 to 1. Then, when the memory control circuit 23 uses the read voltage V0 corresponding to the aging level 0 to read the physical programming unit U0, if the number of error bits in the second preset section 62 is greater than the error bit number threshold value, the memory control circuit 23 may update the first count value corresponding to the physical group 401 to 2, and so on.

[0052] In step S508, the memory control circuit 23 can determine whether the first count value is greater than the aging threshold value, and in response to the first count value being greater than the aging threshold value, update the first aging level corresponding to the first physical group to the second aging level. The first count value can be obtained by querying the error count lookup table. Table 2 below is an example of the error count lookup table.

[0053] Table 2

[0054] Entity Group Count value 401 1

[0055] Referring to the example of Table 1 above, the first count value corresponding to the physical group 401 is 1, indicating that the memory control circuit 23 determines that the number of error bits in the preset segment of the physical programming unit included in the physical group 401 exceeds the error bit number threshold value once. The memory control circuit 23 can look up Table 1 to obtain the first count value corresponding to the physical group 401, and the obtained first count value is 1.

[0056] In step S510 , the memory control circuit 23 may read data from the first physical programming unit using a second read voltage corresponding to the second aging level after the first physical group is updated to correspond to the second aging level.

[0057] Specifically, the first count value corresponding to the physical group will continue to accumulate as the physical programming unit ages. When the first count value accumulates to a certain level, it means that the aging level of this physical programming unit has entered the next level, and another appropriate read voltage is required to correctly read the data in this physical programming unit. Therefore, in this embodiment, the memory control circuit 23 can determine whether the first count value is greater than an aging threshold value, and the present invention does not limit the size of the aging threshold value. When the memory control circuit 23 determines that the first count value is greater than the aging threshold value, the aging level corresponding to the physical group can be updated to the next aging level corresponding to a higher aging level.

[0058] Continuing from the previous example, please also refer to Figure 6 As shown in Table 1, it is assumed that the current aging level of the physical group 401 corresponds to the aging level 0 in Table 1. When the memory control circuit 23 determines that the first count value corresponding to the physical group 401 is greater than the first aging threshold value, the aging level 0 of the physical group 401 may be updated to the aging level 1 according to the classification rule. After the physical group 401 is updated to correspond to the aging level 1, the memory control circuit 23 may use the read voltage V1 corresponding to the aging level 1 to read data from the physical programming unit (e.g., the physical programming unit U0) in the physical group 401. In this embodiment, the first count value of the physical group 401 is continuously accumulated when the memory storage device 12 operates. When the memory control circuit 23 determines that the first count value corresponding to the physical group 401 is greater than the second aging threshold value, the aging level 1 of the physical group 401 may be updated to the aging level 2 according to the classification rule. In this implementation, the second aging threshold value is greater than the first aging threshold value. After the physical group 401 is updated to correspond to the aging level 2, the memory control circuit 23 can use the read voltage V2 corresponding to the aging level 2 to read data from the physical programming unit (e.g., the physical programming unit U0) in the physical group 401. It should be noted that the present invention is not limited to the above-mentioned grading method of aging levels, and those skilled in the art can design rules for dividing into more levels by themselves based on the enlightenment of the above-mentioned exemplary embodiments.

[0059] In summary, the read voltage setting method, memory storage device and memory controller provided by the present embodiment can group multiple physical programming units based on the memory grains to which they belong, and determine the aging level corresponding to the group according to the number of times the number of error bits of each group is determined to be greater than the error bit number threshold value. In this way, the present embodiment can determine the read voltage suitable for the current aging level of each group according to the different aging levels of each group, thereby reducing the time to read data. In addition, multiple physical programming units can also be grouped based on the valid bits that constitute the physical programming units, so that physical programming units with the same characteristics are grouped together. Therefore, the group of physical programming units composed of the same valid bits can determine the read voltage suitable for the current aging level of the group according to the aging level of the valid bit comparison and the read voltage corresponding to the aging level, thereby determining a read voltage that is more in line with the current aging level, so as to reduce the time to read data and improve data reading efficiency.

[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A read voltage setting method for a memory module, wherein the memory module comprises a plurality of memory dies, the plurality of memory dies have a plurality of physical erase units, each of the physical erase units has a plurality of physical programming units, the method comprising: Grouping the plurality of physical programming units into a plurality of physical groups based on the memory dies to which they belong; Obtaining a first aging level corresponding to a first physical group among the plurality of physical groups, and using a first read voltage corresponding to the first aging level to read at least one first physical programming unit included in the first physical group, wherein each of the first physical programming units has one or more preset sections; Determine whether the number of error bits in the preset section of the first physical programming unit is greater than an error bit number threshold value, and count the number of times the number of error bits is determined to be greater than the error bit number threshold value to generate a first count value; determining whether the first count value is greater than a first aging threshold value, and updating the first aging level corresponding to the first entity group to a second aging level in response to the first count value being greater than the first aging threshold value; as well as After the first physical group is updated to correspond to the second aging level, data is read from the first physical programming unit using a second read voltage corresponding to the second aging level.

2. The read voltage setting method according to claim 1, characterized in that: The step of using the first read voltage corresponding to the first aging level to read the at least one first physical programming unit included in the first physical group includes: A read voltage lookup table is queried to obtain a read voltage corresponding to the first aging level as the first read voltage, wherein the read voltage lookup table records a plurality of aging levels and a read voltage corresponding to each of the aging levels.

3. The read voltage setting method according to claim 1, characterized in that: The memory module has a plurality of storage units, each of the plurality of storage units has a first valid bit, and the storage units constitute the at least one first physical programming unit. The step of grouping the plurality of physical programming units into the plurality of physical groups based on the memory dies to which they belong comprises: The at least one first physical programming unit that belongs to the same memory die and consists of the first valid bits is formed into the first physical group.

4. The method for setting a read voltage according to claim 3, wherein: The step of using the first read voltage corresponding to the first aging level to read the at least one first physical programming unit included in the first physical group includes: The column associated with the first physical programming unit in the read voltage lookup table is queried to obtain the read voltage corresponding to the first aging level in the column associated with the first physical programming unit as the first read voltage, wherein the read voltage lookup table records multiple aging levels associated with the multiple physical programming units composed of different valid bits and the read voltage corresponding to each of the aging levels.

5. The read voltage setting method according to claim 1, characterized in that: The method further comprises: The first physical group and the first count value corresponding to the first physical group are recorded in an error count lookup table.

6. The read voltage setting method according to claim 1, characterized in that: The method further comprises: Determine whether the first count value is greater than a second aging threshold value, and update the second aging level corresponding to the first entity group to a third aging level in response to the first count value being greater than the second aging threshold value, wherein the second aging threshold value is greater than the first aging threshold value.

7. A memory storage device, characterized in that: include: A connection interface for connecting to a host system; A memory module includes a plurality of memory dies, wherein the plurality of memory dies have a plurality of physical erasing units, and each of the physical erasing units has a plurality of physical programming units; as well as a memory controller, connecting the connection interface with the memory module, wherein the memory controller is used to group the plurality of physical programming units into a plurality of physical groups based on the memory dies to which they belong, The memory controller is further configured to obtain a first aging level corresponding to a first physical group among the plurality of physical groups, and use a first read voltage corresponding to the first aging level to read at least one first physical programming unit included in the first physical group, wherein each of the first physical programming units has one or more preset sections. The memory controller is further configured to determine whether the number of error bits in the preset section of the first physical programming unit is greater than an error bit number threshold value, and to count the number of times the number of error bits is determined to be greater than the error bit number threshold value to generate a first count value. The memory controller is further configured to determine whether the first count value is greater than a first aging threshold value, and in response to the first count value being greater than the first aging threshold value, update the first aging level corresponding to the first physical group to a second aging level, and The memory controller is further configured to read data from the first physical programming unit using a second read voltage corresponding to the second aging level after the first physical group is updated to correspond to the second aging level.

8. The memory storage device according to claim 7, characterized in that: The memory controller is further used for querying a read voltage lookup table to obtain a read voltage corresponding to the first aging level as the first read voltage, wherein the read voltage lookup table records a plurality of aging levels and a read voltage corresponding to each of the aging levels.

9. The memory storage device according to claim 7, characterized in that: The memory module has a plurality of storage units, each of the plurality of storage units has a first valid bit, and the storage units constitute the at least one first physical programming unit. The memory controller is further configured to group the at least one first physical programming unit that belongs to the same memory die and is composed of the first valid bits into the first physical group.

10. The memory storage device according to claim 9, characterized in that: The memory controller is further used to query a column associated with the first physical programming unit in a read voltage lookup table to obtain a read voltage corresponding to the first aging level in the column associated with the first physical programming unit as the first read voltage, wherein the read voltage lookup table records multiple aging levels associated with the multiple physical programming units composed of different valid bits and a read voltage corresponding to each of the aging levels.

11. The memory storage device according to claim 7, characterized in that: The memory controller is further configured to record the first physical group and the first count value corresponding to the first physical group in an error count lookup table.

12. The memory storage device according to claim 7, characterized in that: The memory controller is further configured to determine whether the first count value is greater than a second aging threshold value, and in response to the first count value being greater than the second aging threshold value, update the second aging level corresponding to the first physical group to a third aging level, wherein the second aging threshold value is greater than the first aging threshold value.

13. A memory controller, characterized in that: include: Host interface, used to connect to the host system; A memory interface for connecting a memory module, wherein the memory module includes a plurality of memory dies, the plurality of memory dies have a plurality of physical erase units, and each of the physical erase units has a plurality of physical programming units; Error checking and correction circuits; as well as a memory control circuit, connecting the host interface, the memory interface and the error checking and correction circuit, wherein the memory control circuit is used to group the plurality of physical programming units into a plurality of physical groups based on the memory dies to which they belong, The memory control circuit is further used to obtain a first aging level corresponding to a first physical group among the plurality of physical groups, and use a first read voltage corresponding to the first aging level to read at least one first physical programming unit included in the first physical group, wherein each of the first physical programming units has one or more preset sections. The memory control circuit is further configured to determine whether the number of error bits in the preset section of the first physical programming unit is greater than an error bit number threshold value, and to count the number of times the number of error bits is determined to be greater than the error bit number threshold value to generate a first count value. The memory control circuit is further configured to determine whether the first count value is greater than a first aging threshold value, and in response to the first count value being greater than the first aging threshold value, update the first aging level corresponding to the first physical group to a second aging level, and The memory control circuit is further configured to read data from the first physical programming unit using a second read voltage corresponding to the second aging level after the first physical group is updated to correspond to the second aging level.

14. The memory controller according to claim 13, wherein: The memory control circuit is further used for querying a read voltage lookup table to obtain a read voltage corresponding to the first aging level as the first read voltage, wherein the read voltage lookup table records a plurality of aging levels and a read voltage corresponding to each of the aging levels.

15. The memory controller according to claim 13, wherein: The memory module has a plurality of storage units, each of the plurality of storage units has a first valid bit, and the storage units constitute the at least one first physical programming unit. The memory control circuit is further configured to group the at least one first physical programming unit that belongs to the same memory die and is composed of the first valid bits into the first physical group.

16. The memory controller according to claim 15, characterized in that: The memory control circuit is further used to query a column associated with the first physical programming unit in a read voltage lookup table to obtain a read voltage corresponding to the first aging level in the column associated with the first physical programming unit as the first read voltage, wherein the read voltage lookup table records multiple aging levels associated with the multiple physical programming units composed of different valid bits and a read voltage corresponding to each of the aging levels.

17. The memory controller according to claim 13, wherein: The memory control circuit is further configured to record the first physical group and the first count value corresponding to the first physical group in an error count lookup table.

18. The memory controller according to claim 13, wherein: The memory control circuit is further used to determine whether the first count value is greater than a second aging threshold value, and in response to the first count value being greater than the second aging threshold value, update the second aging level corresponding to the first physical group to a third aging level, wherein the second aging threshold value is greater than the first aging threshold value.

Citation Information

Patent Citations

  • Data storage method, memorizer control circuit unit and memorizer storage device

    CN105022695A

  • Data protection method, memory control circuit unit and memory storage device

    CN107045890A

  • Data reading method, memory control circuit unit and memory storage device

    CN108959109A

  • Decoding method, memory control circuit unit and memory storage device

    CN109559774A

  • Method and device for judging data storage state in solid state disk

    CN110825556A