Memory control method, memory storage device and memory control circuit unit

By using an array in the flash memory controller to record the number of reads of the virtual management unit and the physical block, the problem of inaccurate reading times in the existing technology is solved, the error checking and data movement frequency of the virtual management unit are reduced, and the efficiency is improved Performance and longevity of flash memory devices.

CN118535091APending Publication Date: 2024-08-23HEFEI KAIMENG TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410592928.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing flash memory controllers record the number of reads in units of virtual management units, resulting in inaccurate reading times and frequent triggering of error checking and correction or data movement, which reduces processing efficiency and shortens the life of the flash memory.

Method used

Use an array to record the number of reads of multiple virtual management units and the number of reads of each physical block, use the maximum number of reads as the number of reads of the virtual management unit, and perform data movement or error checking when the threshold is reached. Avoid frequently triggering virtual management unit operations.

Benefits of technology

It effectively avoids frequent error checking and correction and data movement of virtual management units, improves the read performance of flash memory devices and extends their service life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535091A
    Figure CN118535091A
Patent Text Reader

Abstract

The invention provides a memory control method, a memory storage device and a memory control circuit unit, the method is used in the memory storage device comprising a rewritable nonvolatile memory module, and the rewritable nonvolatile memory module comprises a plurality of virtual management units. Each virtual management unit comprises a plurality of entity blocks. The method comprises the following steps: acquiring and recording the reading times of the plurality of virtual management units and the reading times of each entity block in each virtual management unit by using an array; taking the maximum reading times of the entity block with the maximum reading times of the first virtual management unit in the plurality of virtual management units as the reading times of the first virtual management unit; and if the reading frequency of the first virtual management unit is greater than or equal to the reading frequency threshold, carrying out data migration on the first virtual management unit, or checking whether the first virtual management unit cannot realize UECC or not.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to recording the number of times a physical block is read, and in particular to a memory control method, a memory storage device and a memory control circuit unit. Background Art

[0002] Read count is used to record the number of times a physical block is read, and is used for read disturbance related processing. Since flash memory has a limit on the number of reads and writes, if certain areas in the flash memory are read and written too frequently, they will wear out faster than other areas, shortening the life of the entire SSD. When this area is relatively small and the number of reads is large enough, the SSD using flash memory as the storage medium will fail. The failure is called read disturbance. If the number of reads of a block exceeds a certain threshold (usually millions of times), the data stored in the flash memory will become unstable, and even uncorrectable errors may occur, resulting in data loss.

[0003] Due to buffer limitations, DRAM-less flash memory controllers usually record read counts in units of virtual management units (VBs). Each read of any physical block in the VB increases the read count of the VB. In other words, the read count of all physical blocks in the VB is currently the sum of the read counts of the VB.

[0004] The above method of recording the number of read times in units of VB has the following problems: for example, the read disturbance can be set to after a virtual management unit (VB) is read 10,000 times, it is necessary to check whether the virtual management unit generates an Unable Error Correcting Code (UECC) or uncorrectable error. In this embodiment, a VB may include multiple physical blocks. For example, the virtual management unit VB1 may include 10 physical blocks (PB1 to PB10). When the number of reads of the virtual management unit VB1 reaches 10,000 times, the number of reads of each physical block PB1, PB2... or PB10 included in the virtual management unit VB1 may be only 1,000 times. This may result in scanning the virtual management unit VB1 to check whether UECC is generated before the expected value of scanning the virtual management unit VB1 is reached, or moving the data of the virtual management unit VB1 to another new virtual management unit VB2 before the expected value of data migration is reached, thereby frequently triggering the scanning of the virtual management unit or performing data migration operations on the virtual management unit, resulting in low processing efficiency of the flash memory controller and shortening the service life of the flash memory. Summary of the invention

[0005] The present invention provides a memory control method, a memory storage device and a memory control circuit unit, which can effectively avoid frequently triggering a memory management circuit to execute UECC on a virtual management unit, or avoid frequently triggering a memory management circuit to execute data migration on a virtual management unit.

[0006] An exemplary embodiment of the present invention provides a memory control method, which is used for a memory storage device. The memory storage device includes a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module includes multiple virtual management units, each virtual management unit includes multiple physical blocks, and the memory control method includes: obtaining and using an array to record the read counts of the multiple virtual management units and the read counts of each physical block in each virtual management unit; using the maximum read count of the physical block with the maximum read count of the first virtual management unit among the multiple virtual management units as the read count of the first virtual management unit; and if the read count of the first virtual management unit is greater than or equal to the read count threshold, data is moved to the first virtual management unit, or checking whether the first virtual management unit cannot implement error checking and correction (Unable Error Correcting Code, UECC).

[0007] In an exemplary embodiment of the present invention, the memory control method further includes setting an array of n columns * i rows, where i is the number of multiple physical blocks included in each virtual management unit, n is the maximum supported number of virtual management units of the buffer memory used to temporarily store the number of read times, n is greater than or equal to 1 and less than or equal to the number of multiple virtual management units, and i and n are positive integers.

[0008] In an exemplary embodiment of the present invention, the array is a 1-byte unsigned byte array.

[0009] In an exemplary embodiment of the present invention, the steps of obtaining and using an array to record the number of reads of multiple virtual management units and the number of reads of each physical block in each virtual management unit also include: when the number of virtual management units whose read times are to be recorded is less than the maximum supported number of virtual management units, using the nth column of the array to record the number of reads of the first virtual management unit that is read (n+1) among the multiple virtual management units, and recording the serial number of the first virtual management unit; and updating the number of reads of the first virtual management unit to the nth column of the array according to the serial number of the first virtual management unit.

[0010] In an exemplary embodiment of the present invention, the step of obtaining and using an array to record the number of reads of multiple virtual management units and the number of reads of each physical block in each virtual management unit also includes: when using the nth column of the array to record the number of reads of the first virtual management unit that is read (n+1)th in the multiple virtual management units, using the i-th row and n-th column of the array to record the number of reads of the i-th physical block in the multiple physical blocks included in the first virtual management unit; and if the number of reads recorded in the i-th row and n-th column of the array is greater than the array recording threshold of the array, updating the number of reads recorded in the i-th row and n-th column to the number of reads of the first virtual management unit, clearing the number of reads of each physical block of the first virtual management unit recorded in the n-th column of the array, and setting the first virtual management unit to a reference value.

[0011] In an exemplary embodiment of the present invention, the steps of obtaining and using an array to record the read counts of multiple virtual management units and the read counts of each physical block in each virtual management unit further include: when the number of virtual management units whose read counts are to be recorded is equal to the maximum supported number of virtual management units and a newly added virtual management unit is read, the maximum read count recorded in the array is updated to the read count of a second virtual management unit among the multiple virtual management units, and the read count of each physical block in the second virtual management unit recorded in the Mth column for recording the second virtual management unit is cleared, and the Mth column is used to record the read count of each physical block of the newly added virtual management unit, where M is greater than or equal to 0 and less than or equal to n-1.

[0012] An exemplary embodiment of the present invention provides a memory storage device, comprising: a connection interface unit for connecting to a host system; a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module includes a plurality of virtual management units, each of which includes a plurality of physical blocks; and a memory control circuit unit connected to the connection interface unit and the rewritable non-volatile memory module, wherein the memory control circuit unit is used to obtain and use an array to record the read counts of the plurality of virtual management units and the read counts of each physical block in each virtual management unit, wherein the memory control circuit unit is used to use the maximum read count of the physical block with the maximum read count of a first virtual management unit among the plurality of virtual management units as the read count of the first virtual management unit, and if the read count of the first virtual management unit is greater than or equal to a read count threshold, the memory control circuit unit is used to move data to the first virtual management unit, or the memory control circuit unit is used to check whether the first virtual management unit cannot implement error checking and correction (Unable Error Correcting Code, UECC).

[0013] In an exemplary embodiment of the present invention, the memory control circuit unit is further used to set an array of n columns * i rows, where i is the number of multiple physical blocks included in each virtual management unit, n is the maximum supported number of virtual management units of the buffer memory used to temporarily store the number of read times, n is greater than or equal to 1 and less than or equal to the number of multiple virtual management units, and i and n are positive integers.

[0014] In an exemplary embodiment of the present invention, the array is a 1-byte unsigned byte array.

[0015] In an exemplary embodiment of the present invention, a memory control circuit unit is used to obtain and use an array to record the number of reads of multiple virtual management units and the number of reads of each physical block in each virtual management unit. When the number of virtual management units whose read times are to be recorded is less than the maximum supported number of virtual management units, the memory control circuit unit is further used to use the nth column of the array to record the number of reads of the first virtual management unit that is read (n+1)th among the multiple virtual management units, and to record the serial number of the first virtual management unit, and the memory control circuit unit is further used to update the number of reads of the first virtual management unit to the nth column of the array according to the serial number of the first virtual management unit.

[0016] In an exemplary embodiment of the present invention, a memory control circuit unit is used to obtain and use an array to record the number of reads of multiple virtual management units and the number of reads of each physical block in each virtual management unit. When the nth column of the array is used to record the number of reads of the first virtual management unit that is read (n+1)th among the multiple virtual management units, the memory control circuit unit is further used to use the i-th row and n-th column of the array to record the number of reads of the i-th physical block among the multiple physical blocks included in the first virtual management unit, and if the number of reads recorded in the i-th row and n-th column of the array is greater than the array recording threshold of the array, the memory control circuit unit is further used to update the number of reads recorded in the i-th row and n-th column to the number of reads of the first virtual management unit, and clear the number of reads of each physical block of the first virtual management unit recorded in the n-th column of the array, and set the first virtual management unit to a reference value.

[0017] In an exemplary embodiment of the present invention, a memory control circuit unit is used to obtain and use an array to record the number of reads of multiple virtual management units and the number of reads of each physical block in each virtual management unit. When the number of virtual management units whose read times are to be recorded is equal to the maximum supported number of virtual management units and a newly added virtual management unit is read, the memory control circuit unit is further used to update the maximum number of reads recorded in the array to the number of reads of a second virtual management unit among the multiple virtual management units, and clear the number of reads of each physical block in the second virtual management unit recorded in the Mth column for recording the second virtual management unit, and use the Mth column to record the number of reads of each physical block of the newly added virtual management unit, where M is greater than or equal to 0 and less than or equal to n-1.

[0018] An exemplary embodiment of the present invention provides a memory control circuit unit, comprising: a host interface for connecting to a host system; a memory interface for connecting to a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module includes multiple virtual management units, each of which includes multiple physical blocks; and a memory management circuit connected to the host interface and the memory interface, characterized in that the memory management circuit is used to obtain and use an array to record the read counts of the multiple virtual management units and the read counts of each physical block in each virtual management unit, wherein the memory management circuit is used to use the maximum read count of the physical block with the maximum read count of the first virtual management unit among the multiple virtual management units as the read count of the first virtual management unit; and if the read count of the first virtual management unit is greater than or equal to the read count threshold, the memory management circuit is used to move data to the first virtual management unit, or the memory management circuit is used to check whether the first virtual management unit cannot implement error checking and correction (Unable Error Correcting Code, UECC).

[0019] In an exemplary embodiment of the present invention, the memory management circuit is further used to set up an array of n columns * i rows, where i is the number of multiple physical blocks included in each virtual management unit, n is the maximum supported number of virtual management units of the buffer memory used to temporarily store the number of read times, n is greater than or equal to 1 and less than or equal to the number of multiple virtual management units, and i and n are positive integers.

[0020] In an exemplary embodiment of the present invention, the array is a 1-byte unsigned byte array.

[0021] In an exemplary embodiment of the present invention, a memory management circuit is used to obtain and use an array to record the number of reads of multiple virtual management units and the number of reads of each physical block in each virtual management unit. When the number of virtual management units whose read times are to be recorded is less than the maximum supported number of virtual management units, the memory management circuit is further used to use the nth column of the array to record the number of reads of the first virtual management unit that is read (n+1)th among the multiple virtual management units, and to record the serial number of the first virtual management unit. The memory management circuit is further used to update the number of reads of the first virtual management unit to the nth column of the array based on the serial number of the first virtual management unit.

[0022] In an exemplary embodiment of the present invention, a memory management circuit is used to obtain and use an array to record the number of reads of multiple virtual management units and the number of reads of each physical block in each virtual management unit. When the nth column of the array is used to record the number of reads of the first virtual management unit that is read (n+1)th among the multiple virtual management units, the memory management circuit is further used to use the i-th row and n-th column of the array to record the number of reads of the i-th physical block among the multiple physical blocks included in the first virtual management unit; and if the number of reads recorded in the i-th row and n-th column of the array is greater than the array recording threshold of the array, the memory management circuit is further used to update the number of reads recorded in the i-th row and n-th column to the number of reads of the first virtual management unit, and clear the number of reads of each physical block of the first virtual management unit recorded in the n-th column of the array, and set the first virtual management unit to a reference value.

[0023] In an exemplary embodiment of the present invention, a memory management circuit is used to obtain and use an array to record the number of reads of multiple virtual management units and the number of reads of each physical block in each virtual management unit. When the number of virtual management units whose read times are to be recorded is equal to the maximum supported number of virtual management units and a newly added virtual management unit is read, the memory management circuit is further used to update the maximum number of reads recorded in the array to the number of reads of a second virtual management unit among the multiple virtual management units, and clear the number of reads of each physical block in the second virtual management unit recorded in the Mth column for recording the second virtual management unit, and use the Mth column to record the number of reads of each physical block of the newly added virtual management unit, where M is greater than or equal to 0 and less than or equal to n-1.

[0024] Based on the above, the present invention provides a memory control method, a memory storage device and a memory control circuit unit, which can not only effectively avoid frequently triggering the memory management circuit to execute UECC on the virtual management unit, or avoid frequently triggering the memory management circuit to execute data migration on the virtual management unit, but also improve the read performance of the flash memory device and extend the service life of the flash memory device. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings are included to provide a further understanding of the present invention and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the present invention and together with the description serve to explain the principles of the present invention.

[0026] Figure 1 is a schematic diagram of a host system, a memory storage device, and an input / output (I / O) device according to an exemplary embodiment of the present invention;

[0027] Figure 2 is a schematic diagram of a host system, a memory storage device and an I / O device according to an exemplary embodiment of the present invention;

[0028] Figure 3 is a schematic diagram of a host system and a memory storage device according to an exemplary embodiment of the present invention;

[0029] Figure 4 is a schematic block diagram of a memory storage device according to an exemplary embodiment of the present invention;

[0030] Figure 5 is a schematic block diagram of a memory control circuit unit according to an exemplary embodiment of the present invention;

[0031] Figure 6 is a schematic diagram of managing a rewritable non-volatile memory module according to an exemplary embodiment of the present invention;

[0032] Figure 7 is a schematic diagram showing a method of using an array to record the number of reads of a virtual management unit according to a first exemplary embodiment of the present invention;

[0033] Figure 8 is a schematic diagram showing a method of using an array to record the number of reads of a virtual management unit according to a second exemplary embodiment of the present invention;

[0034] Fig. 9 is a schematic diagram showing a method of using an array to record the number of reads of a virtual management unit according to a third exemplary embodiment of the present invention;

[0035] Fig.10 is a flow chart of a memory control method according to an exemplary embodiment of the present invention;

[0036] Fig.11 is a flow chart of a memory control method according to a first exemplary embodiment of the present invention;

[0037] Fig.12 is a flow chart of a memory control method according to a second exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0038] 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.

[0039] Generally speaking, a memory storage device (also known as a memory storage system) includes a rewritable non-volatile memory module and a controller (also known as a control circuit). The memory storage device can be used together with a host system so that the host system can write data to the memory storage device or read data from the memory storage device.

[0040] Figure 1 is a schematic diagram of a host system, a memory storage device, and an input / output (I / O) device according to an exemplary embodiment of the present invention. Figure 2 is a schematic diagram of a host system, a memory storage device, and an I / O device according to an exemplary embodiment of the present invention.

[0041] Please refer to Figure 1 and Figure 2 The host system 11 may include a processor 111, a random access memory (RAM) 112, a read only memory (ROM) 113, and a data transmission interface 114. The processor 111, the random access memory 112, the read only memory 113, and the data transmission interface 114 may be connected to a system bus 110.

[0042] In an exemplary embodiment, the host system 11 may be connected to the memory storage device 10 via the data transmission interface 114. For example, the host system 11 may store data to the memory storage device 10 or read data from the memory storage device 10 via the data transmission interface 114. In addition, the host system 11 may be connected to the I / O device 12 via the system bus 110. For example, the host system 11 may transmit an output signal to the I / O device 12 or receive an input signal from the I / O device 12 via the system bus 110.

[0043] In an exemplary embodiment, the processor 111, the random access memory 112, the read-only memory 113 and the data transmission interface 114 may be disposed on the motherboard 20 of the host system 11. The number of the data transmission interface 114 may be one or more. Through the data transmission interface 114, the motherboard 20 may be connected to the memory storage device 10 via a wired or wireless manner.

[0044] In an exemplary embodiment, the memory storage device 10 may be, for example, a USB flash drive 201, a memory card 202, a solid state drive (SSD) 203, or a wireless memory storage device 204. The wireless memory storage device 204 may be, for example, a near field communication (NFC) memory storage device, a wireless fidelity (WiFi) memory storage device, a Bluetooth memory storage device, or a low power Bluetooth memory storage device (e.g., iBeacon) or other memory storage devices based on various wireless communication technologies. In addition, the motherboard 20 may also be connected to various I / O devices such as a global positioning system (GPS) module 205, a network interface card 206, a wireless transmission device 207, a keyboard 208, a screen 209, a speaker 210, etc. through the system bus 110. For example, in an exemplary embodiment, the motherboard 20 may access the wireless memory storage device 204 through the wireless transmission device 207.

[0045] In an exemplary embodiment, the host system 11 is a computer system. In an exemplary embodiment, the host system 11 can be substantially any system that can cooperate with a memory storage device to store data.

[0046] Figure 3 is a schematic diagram of a host system and a memory storage device according to an exemplary embodiment of the present invention. Figure 3 In an exemplary embodiment, the host system 31 may be a digital camera, a video camera, a communication device, an audio player, a video player, or a tablet computer. The memory storage device 30 may be a Secure Digital (SD) card 32, a Compact Flash (CF) card 33, or an embedded storage device 34, etc., used by the host system 31. The embedded storage device 34 includes various types of embedded storage devices that directly connect the memory module to the substrate of the host system, such as an embedded Multi Media Card (eMMC) 341 and / or an embedded Multi Chip Package (eMCP) storage device 342.

[0047] Figure 4 is a schematic block diagram of a memory storage device according to an exemplary embodiment of the present invention. Figure 4 The memory storage device 10 includes a connection interface unit 402 , a memory control circuit unit 404 and a rewritable non-volatile memory module 406 .

[0048] The connection interface unit 402 is used to connect the memory storage device 10 to the host system 11. The memory storage device 10 can communicate with the host system 11 via the connection interface unit 402. In an exemplary embodiment, the connection interface unit 402 is compatible with the Peripheral Component Interconnect Express (PCI Express) standard. However, it should be understood that the present invention is not limited thereto, and the connection interface unit 402 may also comply with the Serial Advanced Technology Attachment (SATA) standard, the Parallel Advanced Technology Attachment (PATA) standard, the Institute of Electrical and Electronic Engineers (IEEE) 1394 standard, the Universal Serial Bus (USB) standard, the SD interface standard, the Ultra High Speed-I (UHS-I) interface standard, the Ultra High Speed-II (UHS-II) interface standard, the Memory Stick (MS) interface standard, the MCP interface standard, the MMC interface standard, the eMMC interface standard, the Universal Flash Storage (UFS) interface standard, the eMCP interface standard, the CF interface standard, the Integrated Device Electronics (IDE) standard or other suitable standards. The connection interface unit 402 and the memory control circuit unit 404 may be packaged in one chip, or the connection interface unit 402 may be disposed outside a chip including the memory control circuit unit 404 .

[0049] The memory control circuit unit 404 is connected to the connection interface unit 402 and the rewritable non-volatile memory module 406. The memory control circuit unit 404 is used to execute a plurality of logic gates or control instructions implemented in hardware or firmware and to perform operations such as writing, reading and erasing data in the rewritable non-volatile memory module 406 according to the instructions of the host system 11.

[0050] The rewritable non-volatile memory module 406 is used to store data written by the host system 11. The rewritable non-volatile memory module 406 may include a single-level cell (SLC) NAND flash memory module (i.e., a flash memory module that can store 1 bit in one storage cell), a multi-level cell (MLC) NAND flash memory module (i.e., a flash memory module that can store 2 bits in one storage cell), a triple-level cell (TLC) NAND flash memory module (i.e., a flash memory module that can store 3 bits in one storage cell), a quad-level cell (QLC) NAND flash memory module (i.e., a flash memory module that can store 4 bits in one storage cell), other flash memory modules, or other memory modules with the same characteristics.

[0051] Each memory cell in the rewritable non-volatile memory module 406 stores one or more bits by changing the voltage (hereinafter also referred to as the critical voltage). Specifically, there is a charge capture layer between the control gate and the channel of each memory cell. By applying a write voltage to the control gate, the amount of electrons in the charge capture layer can be changed, thereby changing the critical voltage of the memory cell. This operation of changing the critical voltage of the memory cell is also called "writing data to the memory cell" or "programming the memory cell". As the critical voltage changes, each memory cell in the rewritable non-volatile memory module 406 has multiple storage states. By applying a read voltage, it is possible to determine which storage state a memory cell belongs to, thereby obtaining one or more bits stored in this memory cell.

[0052] In an exemplary embodiment, the memory cells of the rewritable non-volatile memory module 406 may constitute a plurality of physical programming units, and these physical programming units may constitute a plurality of physical erasing units. Specifically, the memory cells on the same word line may constitute one or more physical programming units. If each memory cell can store more than 2 bits, the physical programming units on the same word line may be classified into at least a lower physical programming unit and an upper physical programming unit. For example, the least significant bit (LSB) of a memory cell belongs to the lower physical programming unit, and the most significant bit (MSB) of a memory cell belongs to the upper physical programming unit. Generally speaking, in an MLC NAND flash memory, the write speed of the lower physical programming unit is greater than the write speed of the upper physical programming unit, and / or the reliability of the lower physical programming unit is higher than the reliability of the upper physical programming unit.

[0053] In an exemplary embodiment, the physical programming unit is the smallest unit of programming. That is, the physical programming unit is the smallest unit for writing data. For example, the physical programming unit may be a physical page or a physical sector. If the physical programming unit is a physical page, these physical programming units may include a data bit area and a redundancy bit area. The data bit area includes a plurality of physical sectors for storing user data, and the redundancy bit area is used to store system data (for example, management data such as error correction codes). In an exemplary embodiment, the data bit area includes 32 physical sectors, and the size of a physical sector is 512 bytes (byte, B). However, in other exemplary embodiments, the data bit area may also include 8, 16 or more or less physical sectors, and the size of each physical sector may also be larger or smaller. On the other hand, the physical erasure unit is the smallest unit of erasure. That is, each physical erasure unit contains the minimum number of storage cells that are erased together. For example, the physical erasure unit is a physical block.

[0054] Figure 5 is a schematic block diagram of a memory control circuit unit according to an exemplary embodiment of the present invention. Figure 5 The memory control circuit unit 404 includes a memory management circuit 502 , a host interface 504 , a memory interface 506 and an error checking and correction circuit 508 .

[0055] The memory management circuit 502 is used to control the overall operation of the memory control circuit unit 404. Specifically, the memory management circuit 502 has a plurality of control instructions, and when the memory storage device 10 operates, these control instructions are executed to perform operations such as writing, reading and erasing data. The following description of the operation of the memory management circuit 502 is equivalent to the description of the operation of the memory control circuit unit 404.

[0056] In an exemplary embodiment, the control instructions of the memory management circuit 502 are implemented in a firmware format. For example, the memory management circuit 502 has a microprocessor unit (not shown) and a read-only memory (not shown), and these control instructions are burned into the read-only memory. When the memory storage device 10 is operating, these control instructions are executed by the microprocessor unit to perform operations such as writing, reading and erasing data.

[0057] In an exemplary embodiment, the control instructions of the memory management circuit 502 can also be stored in a specific area of ​​the rewritable non-volatile memory module 406 (for example, a system area in the memory module dedicated to storing system data) in the form of program code. In addition, the memory management circuit 502 has a microprocessor unit (not shown), a read-only memory (not shown) and a random access memory (not shown). In particular, the read-only memory has a boot code, and when the memory control circuit unit 404 is enabled, the microprocessor unit will first execute the boot code to load the control instructions stored in the rewritable non-volatile memory module 406 into the random access memory of the memory management circuit 502. Afterwards, the microprocessor unit will execute these control instructions to perform operations such as writing, reading and erasing data.

[0058] In an exemplary embodiment, the control instructions of the memory management circuit 502 can also be implemented in a hardware form. For example, the memory management circuit 502 includes a microcontroller, a storage unit management circuit, a memory write circuit, a memory read circuit, a memory erase circuit, and a data processing circuit. The storage unit management circuit, the memory write circuit, the memory read circuit, the memory erase circuit, and the data processing circuit are connected to the microcontroller. The storage unit management circuit is used to manage the storage unit or storage unit group of the rewritable non-volatile memory module 406. The memory write circuit is used to issue a write instruction sequence to the rewritable non-volatile memory module 406 to write data into the rewritable non-volatile memory module 406. The memory read circuit is used to issue a read instruction sequence to the rewritable non-volatile memory module 406 to read data from the rewritable non-volatile memory module 406. The memory erase circuit is used to issue an erase command sequence to the rewritable non-volatile memory module 406 to erase data from the rewritable non-volatile memory module 406. The data processing circuit is used to process data to be written to the rewritable non-volatile memory module 406 and data to be read from the rewritable non-volatile memory module 406. The write command sequence, the read command sequence, and the erase command sequence may each include one or more program codes or instruction codes and are used to instruct the rewritable non-volatile memory module 406 to perform corresponding write, read, and erase operations. In an exemplary embodiment, the memory management circuit 502 may also issue other types of command sequences to the rewritable non-volatile memory module 406 to instruct the execution of corresponding operations.

[0059] The host interface 504 is connected to the memory management circuit 502. The memory management circuit 502 can communicate with the host system 11 through the host interface 504. The host interface 504 can be used to receive and identify instructions and data transmitted by the host system 11. For example, the instructions and data transmitted by the host system 11 can be transmitted to the memory management circuit 502 through the host interface 504. In addition, the memory management circuit 502 can transmit data to the host system 11 through the host interface 504. In this exemplary embodiment, the host interface 504 is compatible with the PCI Express standard. However, it should be understood that the present invention is not limited thereto, and the host interface 504 can also be compatible with the SATA standard, the PATA standard, the IEEE 1394 standard, the USB standard, the SD standard, the UHS-I standard, the UHS-II standard, the MS standard, the MMC standard, the eMMC standard, the UFS standard, the CF standard, the IDE standard or other suitable data transmission standards.

[0060] The memory interface 506 is connected to the memory management circuit 502 and is used to access the rewritable non-volatile memory module 406. That is, the data to be written to the rewritable non-volatile memory module 406 will be converted into a format acceptable to the rewritable non-volatile memory module 406 through the memory interface 506. Specifically, if the memory management circuit 502 wants to access the rewritable non-volatile memory module 406, the memory interface 506 will transmit a corresponding instruction sequence. For example, these instruction sequences may include a write instruction sequence indicating writing data, a read instruction sequence indicating reading data, an erase instruction sequence indicating erasing data, and corresponding instruction sequences for indicating various memory operations (for example, changing the read voltage level or performing garbage collection operations, etc.). These instruction sequences are, for example, generated by the memory management circuit 502 and transmitted to the rewritable non-volatile memory module 406 through the memory interface 506. These instruction sequences may include one or more signals, or data on the bus. These signals or data may include instruction codes or program codes. For example, in a read instruction sequence, information such as a read identification code and a memory address may be included.

[0061] The error checking and correction circuit 508 is connected to the memory management circuit 502 and is used to perform error checking and correction operations to ensure the correctness of data. Specifically, when the memory management circuit 502 receives a write command from the host system 11, the error checking and correction circuit 508 generates a corresponding error correcting code (ECC) and / or an error detecting code (EDC) for the data corresponding to the write command, and the memory management circuit 502 writes the data corresponding to the write command and the corresponding error correcting code and / or error detecting code into the rewritable non-volatile memory module 406. Afterwards, when the memory management circuit 502 reads data from the rewritable non-volatile memory module 406, it simultaneously reads the error correcting code and / or error detecting code corresponding to the data, and the error checking and correction circuit 508 performs error checking and correction operations on the read data according to the error correcting code and / or error detecting code.

[0062] In an exemplary embodiment, the memory control circuit unit 404 further includes a buffer memory 510 and a power management circuit 512. The buffer memory 510 is connected to the memory management circuit 502 and is used to temporarily store data and instructions from the host system 11 or data from the rewritable non-volatile memory module 406. The power management circuit 512 is connected to the memory management circuit 502 and is used to control the power of the memory storage device 10.

[0063] In an exemplary embodiment, the buffer memory 510 may be used to temporarily store system parameters of the memory storage device 10 , such as the number of programming, erasing and / or reading times of at least some physical cells in the rewritable non-volatile memory module 406 .

[0064] In an exemplary embodiment, Figure 4 The memory storage device 10 is also called a flash memory storage device, the rewritable non-volatile memory module 406 is also called a flash memory module, and the memory control circuit unit 404 is also called a flash memory controller. In an exemplary embodiment, Figure 5 The memory management circuit 502 is also called a flash memory management circuit.

[0065] Figure 6 FIG. 1 is a schematic diagram of managing a rewritable non-volatile memory module according to an exemplary embodiment of the present invention. Figure 6 , the memory management circuit 502 can logically group the physical units 610(0)-610(B) in the rewritable non-volatile memory module 406 into a storage region 601 and a spare region 602. In an exemplary embodiment, a physical unit refers to a physical address or a physical programming unit. In an exemplary embodiment, a physical unit can also be composed of multiple continuous or discontinuous physical addresses.

[0066] The physical units 610(0)-610(A) in the storage area 601 are used to store user data (e.g. Figure 1 The user data of the host system 11 of the idle area 602 can be stored in the physical units 610(0)~610(A) in the storage area 601. For example, the physical units 610(0)~610(A) in the storage area 601 can store valid data and invalid data. The physical units 610(A+1)~610(B) in the idle area 602 do not store data (such as valid data). For example, if a physical unit does not store valid data, the physical unit can be associated (or added) to the idle area 602. In addition, the physical units in the idle area 602 (or the physical units that do not store valid data) can be erased. When writing new data, a physical unit can be extracted from the idle area 602 to store the new data. In an exemplary embodiment, the idle area 602 is also called a free pool.

[0067] The memory management circuit 502 can configure the logical units 612 (0) to 612 (C) to map the physical units 610 (0) to 610 (A) in the storage area 601. In an exemplary embodiment, each logical unit corresponds to a logical address. For example, a logical address may include one or more logical block addresses (Logical Block Address, LBA) or other logical management units. In an exemplary embodiment, a logical unit may also correspond to a logical programming unit or be composed of multiple continuous or discontinuous logical addresses. In addition, a logical unit can be mapped to one or more physical units. It should be noted that if a physical unit is currently mapped by a logical unit, it means that the data currently stored in this physical unit is valid data. On the contrary, if a physical unit is not currently mapped by any logical unit, it means that the data currently stored in this physical unit is invalid data.

[0068] The memory management circuit 502 may record management data describing the mapping relationship between the logical unit and the physical unit (also referred to as logical-to-physical mapping information) in at least one logical-to-physical mapping table. When the host system 11 wishes to read data from the memory storage device 10 or write data to the memory storage device 10, the memory management circuit 502 may perform data access operations on the memory storage device 10 according to the logical-to-physical mapping table.

[0069] In an exemplary embodiment, the rewritable non-volatile memory module 406 may include multiple dies and have multiple planes, each of which belongs to one die. In this exemplary embodiment, the number of planes may be greater than the number of dies. That is, two or more planes may belong to one die. Each plane may include multiple physical erase units (physical blocks) and multiple physical programming units, and multiple physical programming units may be combined into one physical block.

[0070] In an exemplary embodiment, the memory management circuit 502 combines multiple physical blocks into a minimum management unit (virtual management unit), and multiple physical blocks in the same virtual management unit can be deleted at the same time. The rewritable non-volatile memory module 406 includes multiple virtual management units. Each of the multiple physical blocks included in each virtual management unit belongs to a different plane.

[0071] The memory management circuit 502 can detect the system parameters of the memory storage device 10. The system parameters can reflect the degree of wear of the rewritable non-volatile memory module 406. For example, before the rewritable non-volatile memory module 406 leaves the factory, the degree of wear of the rewritable non-volatile memory module 406 may be relatively low and each storage unit in the rewritable non-volatile memory module 406 is relatively healthy. After the rewritable non-volatile memory module 406 leaves the factory, in response to the increase in the usage time and / or usage frequency of the rewritable non-volatile memory module 406, the degree of wear of the rewritable non-volatile memory module 406 may continue to increase and the health of each storage unit in the rewritable non-volatile memory module 406 may gradually decrease.

[0072] In an exemplary embodiment, the wear level of the rewritable non-volatile memory module 406 may be affected by the number of programming, erasure, and / or reading times of at least some of the physical units in the rewritable non-volatile memory module 406. For example, in response to the increase in the number of programming, erasure, and / or reading times of at least some of the physical units in the rewritable non-volatile memory module 406, the wear level of the rewritable non-volatile memory module 406 may increase accordingly. In addition, in response to the increase in the wear level of the rewritable non-volatile memory module 406, the reliability of the data stored in the rewritable non-volatile memory module 406 may also decrease. Once the reliability of the data stored in the rewritable non-volatile memory module 406 decreases, the bit error rate (BER) of the data read from the rewritable non-volatile memory module 406 may also increase (indicating that the number of error bits carried by the read data increases).

[0073] In an exemplary embodiment, the system parameter may include one or more count values. The count value may reflect the degree of wear (also referred to as the degree of use) of at least one physical unit in the rewritable non-volatile memory module 406. For example, the count value may include at least one of a programming count value, an erasure count value, a read count value, and a bit error rate, or a combination thereof. The programming count value may reflect the number of times the at least one physical unit is programmed. The erase count value may reflect the number of times the at least one physical unit is erased. The read count value may reflect the number of times the at least one physical unit is read. The bit error rate may reflect the bit error rate of the at least one physical unit or the data read from the at least one physical unit. It should be noted that, in an exemplary embodiment, the system parameter may also include other types of count values, as long as they can reflect the degree of wear of at least one physical unit in the rewritable non-volatile memory module 406.

[0074] In an exemplary embodiment, the memory management circuit 502 may obtain or estimate the wear level of the rewritable non-volatile memory module 406 according to the system parameter. For example, the count value may be positively correlated with the wear level of the rewritable non-volatile memory module 406. For example, in response to an increase in the program count value, the erase count value, the read count value, and / or the bit error rate, the memory management circuit 502 may determine that the wear level of the rewritable non-volatile memory module 406 increases.

[0075] In an exemplary embodiment, the memory management circuit 502 may set a two-dimensional array of n columns and i rows, such as an array PB[n][i], to record the read counts of the multiple virtual management units included in the rewritable non-volatile memory module 406 and the read counts of each physical block in each virtual management unit. The two-dimensional array PB[n][i] of n columns and i rows may be an unsigned byte array of 1 byte size, which may store integers between 0 and 255, i is the number of physical blocks included in each virtual management unit, n is the maximum support count of virtual management units that can be stored in the buffer memory for temporarily storing the read counts (MAX Support Count), n is greater than or equal to 1 and less than or equal to the number of virtual management units, and i and n are positive integers.

[0076] The memory management circuit 502 may use the maximum read count of the physical block with the maximum read count of the first virtual management unit among the plurality of virtual management units as the read count of the first virtual management unit. In an exemplary embodiment, if the read count of the first virtual management unit is greater than or equal to the read count threshold, the memory management circuit 502 performs data migration on the first virtual management unit. Alternatively, in another exemplary embodiment, if the read count of the first virtual management unit is greater than or equal to the read count threshold, the memory management circuit 502 checks whether the first virtual management unit cannot implement Unable Error Correcting Code (UECC).

[0077] Figure 7 is a schematic diagram showing the use of an array to record the number of reads of a virtual management unit according to a first exemplary embodiment of the present invention.

[0078] In the first embodiment, when the number of virtual management units whose read counts are to be recorded is less than the maximum supported number of virtual management units, the memory management circuit 502 may use the nth column in the array PB[n][i] to record the read count of the first virtual management unit that is read (n+1)th, record the serial number of the first virtual management unit, and update the read count of the first virtual management unit to the nth column of the array according to the serial number of the first virtual management unit.

[0079] like Figure 7As shown, the memory management circuit 502 can use the array PB[0] (i.e., the 0th column of the array) to record the number of times the first virtual management unit (VB10) is read, use the array PB[1] (i.e., the 1st column of the array) to record the number of times the second virtual management unit (VB100) is read, and use the array PB[2] (i.e., the 2nd column of the array) to record the number of times the third virtual management unit (VB0) is read. When the virtual management unit (VB10) is read again, the memory management circuit 502 updates the number of times the virtual management unit (VB10) is read and records it in the array PB[0] (i.e., the 0th column of the array).

[0080] Figure 8 FIG. 4 is a schematic diagram showing a method of using an array to record the number of reads of a virtual management unit according to a second exemplary embodiment of the present invention.

[0081] In the second embodiment, when the memory management circuit 502 uses the nth column of the array to record the read count of the n+1th read first virtual management unit, the memory management circuit 502 may use the i-th row and n-th column of the array to record the read count of the i-th physical block of the first virtual management unit.

[0082] If the read count recorded in the i-th row and n-th column of the array is greater than the array record threshold of the array, the memory management circuit 502 updates the read count recorded in the i-th row and n-th column to the read count of the first virtual management unit, clears the read count of each physical block of the first virtual management unit recorded in the n-th column of the array, and sets the first virtual management unit to the reference value. In this embodiment, the two-dimensional array PB[n][i] can be an unsigned byte array of 1 byte size, which can store integers between 0 and 255, so the array record threshold can be set to 255.

[0083] like Figure 8 As shown, the number of reads recorded in the array PB[1][2] is 255, that is, the number of reads of the second physical block PB2 of the first virtual management unit VB1 is 255. When the physical block PB2 is read again, the memory management circuit 502 adds 1 to the number of reads of the array PB[1][2] and updates it to 256. At this time, the number of reads of the virtual management unit VB1 is updated to 256. Since the number of reads of the virtual management unit VB1 (256) is greater than the array record threshold (255), the memory management circuit 502 clears the number of reads of all physical blocks (PB0 to PB Max) in the virtual management unit VB1 and sets the virtual management unit VB1 to a reference value, for example, setting the virtual management unit VB1 to 0xFFFF, that is, the virtual management unit VB1 is not used to record the number of reads.

[0084] In this embodiment, the read count threshold can be set to 1024. At this time, the read count (256) of the virtual management unit VB1 does not reach the read count threshold (1024), and the memory management circuit 502 will not be triggered to perform UECC on the virtual management unit VB1. The read count threshold can be set or adjusted according to actual needs, and the present invention is not limited thereto.

[0085] When the number of reads of the virtual management unit VB1 is greater than or equal to the number of reads threshold, the memory management circuit 502 is triggered to perform UECC on the virtual management unit VB1. In another embodiment, when the number of reads of the virtual management unit VB1 is greater than or equal to the number of reads threshold, the memory management circuit 502 is triggered to move data on the virtual management unit VB1. At this time, each physical block in the virtual management unit VB1 has undergone multiple rounds of data reading, which can effectively avoid frequently triggering the memory management circuit 502 to perform UECC on the virtual management unit VB1, thereby improving the processing efficiency of the memory management circuit 502.

[0086] Fig. 9 FIG. 4 is a schematic diagram showing a method of using an array to record the number of reads of a virtual management unit according to a third exemplary embodiment of the present invention.

[0087] In the third embodiment, when the number of virtual management units whose read counts are to be recorded is equal to the maximum support number MAX Support Count of the virtual management units, and a newly added virtual management unit VBN is read, PB[M] with the maximum read count recorded in arrays PB[0] to PB[MAX Support Count-1] is selected, and the memory management circuit 502 updates the maximum read count in array PB[M] to the read count of the corresponding virtual management unit, and clears the read counts of all physical blocks in array PB[M], and the memory management circuit 502 uses array PB[M] to record the read count of each physical block of the newly added virtual management unit VBN, where M is greater than or equal to 0 and less than or equal to n-1.

[0088] like Fig. 9 As shown, when the number of virtual management units whose read counts are to be recorded is equal to the maximum support number MAX Support Count of the virtual management units, and a newly added virtual management unit VBN is read, since the maximum read count 230 is recorded in the array PB[1], this read count 230 is updated to the read count of the corresponding virtual management unit VB0x20, and the read counts of all physical blocks in the array PB[1] are cleared to zero. In this way, the memory management circuit 502 uses the array PB[1] to record the read counts of each physical block of the newly added virtual management unit VBN.

[0089] In the above exemplary embodiment, when recording the number of reads, the array needs to be loaded into the buffer memory 510. Due to the space limitation of the buffer memory 510, the maximum support number MAX Support Count of its virtual management units is limited. Using an unsigned byte array to record the number of reads can solve the problem of improving the accuracy of recording the number of reads while using a small amount of space. Moreover, since the maximum support number MAX Support Count of the virtual management units is limited, when a new virtual management unit (such as VBN) is read, the memory management circuit 502 can clear all the read times of the array recording the maximum number of reads to zero, so as to replace the read times of each physical block recording the newly added virtual management unit VBN.

[0090] Fig.10 is a flow chart of a memory control method according to an exemplary embodiment of the present invention.

[0091] like Fig.10 As shown, in step S101, the memory management circuit 502 sets an array of n columns and i rows, where i is the number of physical blocks included in each virtual management unit, n is the maximum supported number of virtual management units of the buffer memory used to temporarily store the number of read times, n is greater than or equal to 1 and less than or equal to the number of multiple virtual management units, and i and n are positive integers.

[0092] In step S102 , the memory management circuit 502 obtains and uses an array to record the read counts of multiple virtual management units and the read counts of each physical block in each virtual management unit.

[0093] In step S103 , the memory management circuit 502 uses the maximum read count of the physical block with the maximum read count of the first virtual management unit among the plurality of virtual management units as the read count of the first virtual management unit.

[0094] In step S104, the memory management circuit 502 determines whether the number of reads of the first virtual management unit is greater than or equal to the number of reads threshold. If the number of reads of the first virtual management unit is not greater than the number of reads threshold, the process jumps to step S102.

[0095] In step S105 , if the read count of the first virtual management unit is greater than or equal to the read count threshold, the memory management circuit 502 performs data migration on the first virtual management unit, or executes UECC on the first virtual management unit.

[0096] Fig.11 is a flow chart of a memory control method according to a first exemplary embodiment of the present invention.

[0097] like Fig.11As shown, in step S111, when the number of virtual management units whose read counts are to be recorded is less than the maximum supported number of virtual management units, the memory management circuit 502 uses the i-th row and n-th column of the array to record the read count of the i-th physical block in the first virtual management unit, and records the serial number of the first virtual management unit.

[0098] In step S112, the memory management circuit 502 determines whether the read count of the record of the i-th row and n-th column of the array is greater than the array record threshold of the array. If the read count of the record of the i-th row and n-th column of the array is not greater than the array record threshold of the array, the process jumps to step S111.

[0099] In step S113, if the read count recorded in the i-th row and n-th column of the array is greater than the array record threshold of the array, the memory management circuit 502 updates the read count recorded in the i-th row and n-th column of the array to the read count of the first virtual management unit, and the memory management circuit 502 clears the read count of each physical block of the first virtual management unit recorded in the n-th column of the array, and sets the first virtual management unit to a reference value.

[0100] Fig.12 is a flow chart of a memory control method according to a second exemplary embodiment of the present invention.

[0101] like Fig.12 As shown, in step S121, when the number of virtual management units whose read times are to be recorded is equal to the maximum supported number of virtual management units and a newly added virtual management unit is read, the memory management circuit 502 updates the maximum read times recorded in the array to the read times of the second virtual management unit among the multiple virtual management units.

[0102] In step S122 , the memory management circuit 502 clears the read times of each physical block in the second virtual management unit recorded in the Mth column for recording the read times of the second virtual management unit, where M is greater than or equal to 0 and less than or equal to n−1.

[0103] In step S123 , the memory management circuit 502 uses the Mth column of the array to record the number of reads of each physical block of the newly added virtual management unit.

[0104] However, Figures 10 to 12 The steps in the above are described in detail, so I will not repeat them here. It is worth noting that Figures 10 to 12 Each step in the above process can be implemented as multiple program codes or circuits, and the present invention is not limited thereto. Figures 10 to 12 The method can be used in conjunction with the above exemplary embodiments or can be used alone, and the present invention is not limited thereto.

[0105] In summary, the exemplary embodiments of the present invention provide a memory control method, a memory storage device and a memory control circuit unit, which can not only effectively avoid frequently triggering the memory management circuit to execute UECC on the virtual management unit, or avoid frequently triggering the memory management circuit to execute data migration on the virtual management unit, but also improve the read performance of the flash memory device and extend the service life of the flash memory device.

[0106] 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 memory control method for a memory storage device, wherein the memory storage device comprises a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of virtual management units, each of the plurality of virtual management units comprises a plurality of physical blocks, wherein: The memory control method comprises: Acquire and use an array to record the number of reads of the plurality of virtual management units and the number of reads of each of the physical blocks in each of the plurality of virtual management units; Using the maximum read count of the physical block with the maximum read count of a first virtual management unit among the plurality of virtual management units as the read count of the first virtual management unit; and If the number of reads of the first virtual management unit is greater than or equal to the reading number threshold, data is moved to the first virtual management unit, or it is checked whether the first virtual management unit is unable to implement error checking and correction.

2. The memory control method according to claim 1, characterized in that: The memory control method further includes: The array is set to n columns * i rows, where i is the number of the multiple physical blocks included in each of the multiple virtual management units, n is the maximum supported number of virtual management units of the buffer memory used to temporarily store the number of read times, n is greater than or equal to 1 and less than or equal to the number of the multiple virtual management units, and i and n are positive integers.

3. The memory control method according to claim 2, characterized in that: The array is an unsigned byte array of 1 byte.

4. The memory control method according to claim 3, characterized in that: The step of obtaining and using the array to record the number of reads of the plurality of virtual management units and the number of reads of each of the physical blocks in each of the plurality of virtual management units further includes: When the number of the virtual management units whose read counts are to be recorded is less than the maximum supported number of the virtual management units, using the nth column of the array to record the read count of the first virtual management unit that is read (n+1)th among the multiple virtual management units, and recording the sequence number of the first virtual management unit; and The reading times of the first virtual management unit are updated to the nth column of the array according to the sequence number of the first virtual management unit.

5. The memory control method according to claim 4, characterized in that: The step of obtaining and using the array to record the number of reads of the plurality of virtual management units and the number of reads of each of the physical blocks in each of the plurality of virtual management units further includes: When the nth column of the array is used to record the number of reads of the first virtual management unit that is read the n+1th one of the plurality of virtual management units, the i-th row and n-th column of the array are used to record the number of reads of the i-th physical block among the plurality of physical blocks included in the first virtual management unit; and If the number of reads recorded in the i-th row and n-th column of the array is greater than the array record threshold of the array, the number of reads recorded in the i-th row and n-th column is updated to the number of reads of the first virtual management unit, the number of reads of each physical block of the first virtual management unit recorded in the n-th column of the array is cleared, and the first virtual management unit is set to a reference value.

6. The memory control method according to claim 3, characterized in that: The step of obtaining and using the array to record the number of reads of the plurality of virtual management units and the number of reads of each of the physical blocks in each of the plurality of virtual management units further includes: When the number of virtual management units whose read counts are to be recorded is equal to the maximum supported number of the virtual management units and the newly added virtual management unit is read, the maximum read count recorded in the array is updated to the read count of the second virtual management unit among the multiple virtual management units, and the read count of each physical block in the second virtual management unit recorded in the Mth column used to record the read count of the second virtual management unit is cleared, and the Mth column is used to record the read count of each physical block of the newly added virtual management unit, where M is greater than or equal to 0 and less than or equal to n-1.

7. A memory storage device, characterized in that: include: A connection interface unit for connecting to a host system; A rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of virtual management units, each of the plurality of virtual management units comprises a plurality of physical blocks; and A memory control circuit unit connected to the connection interface unit and the rewritable non-volatile memory module, wherein the memory control circuit unit is used to obtain and use an array to record the number of reads of the plurality of virtual management units and the number of reads of each of the physical blocks in each of the plurality of virtual management units, wherein the memory control circuit unit is used to use the maximum read count of the physical block with the maximum read count of the first virtual management unit among the plurality of virtual management units as the read count of the first virtual management unit, and If the read count of the first virtual management unit is greater than or equal to the read count threshold, the memory control circuit unit is used to move data of the first virtual management unit, or the memory control circuit unit is used to check whether the first virtual management unit cannot implement error checking and correction.

8. The memory storage device according to claim 7, characterized in that: The memory control circuit unit is further used for: The array is set to n columns * i rows, where i is the number of the multiple physical blocks included in each of the multiple virtual management units, n is the maximum supported number of virtual management units of the buffer memory used to temporarily store the number of read times, n is greater than or equal to 1 and less than or equal to the number of the multiple virtual management units, and i and n are positive integers.

9. The memory storage device according to claim 8, characterized in that: The array is an unsigned byte array of 1 byte.

10. The memory storage device according to claim 9, characterized in that: In the operation of the memory control circuit unit for acquiring and using the array to record the read times of the plurality of virtual management units and the read times of each of the physical blocks in each of the plurality of virtual management units, When the number of the virtual management units whose read times are to be recorded is less than the maximum supported number of the virtual management units, the memory control circuit unit is further configured to use the nth column of the array to record the read times of the first virtual management unit that is read (n+1)th among the plurality of virtual management units, and record the sequence number of the first virtual management unit, and The memory control circuit unit is further used for updating the reading times of the first virtual management unit to the nth column of the array according to the sequence number of the first virtual management unit.

11. The memory storage device according to claim 10, characterized in that: In the operation of the memory control circuit unit for acquiring and using the array to record the read times of the plurality of virtual management units and the read times of each of the physical blocks in each of the plurality of virtual management units, When the nth column of the array is used to record the number of reads of the first virtual management unit that is read the n+1th one of the plurality of virtual management units, the memory control circuit unit is further used to use the i-th row and n-th column of the array to record the number of reads of the i-th physical block among the plurality of physical blocks included in the first virtual management unit, and If the number of reads recorded in the i-th row and n-th column of the array is greater than the array record threshold of the array, the memory control circuit unit is further used to update the number of reads recorded in the i-th row and n-th column to the number of reads of the first virtual management unit, and clear the number of reads of each physical block of the first virtual management unit recorded in the n-th column of the array, and set the first virtual management unit to a reference value.

12. The memory storage device according to claim 9, characterized in that In the operation of the memory control circuit unit for acquiring and using the array to record the read times of the plurality of virtual management units and the read times of each of the physical blocks in each of the plurality of virtual management units, When the number of virtual management units whose read counts are to be recorded is equal to the maximum supported number of the virtual management units and the newly added virtual management unit is read, the memory control circuit unit is further used to update the maximum read count recorded in the array to the read count of the second virtual management unit among the multiple virtual management units, and clear the read count of each physical block in the second virtual management unit recorded in the Mth column used to record the read count of the second virtual management unit, and use the Mth column to record the read count of each physical block of the newly added virtual management unit, where M is greater than or equal to 0 and less than or equal to n-1.

13. A memory control circuit unit, comprising: A host interface for connecting to a host system; A memory interface for connecting to a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module includes a plurality of virtual management units, each of the plurality of virtual management units includes a plurality of physical blocks; and A memory management circuit is connected to the host interface and the memory interface, characterized in that: wherein the memory management circuit is used to obtain and use an array to record the number of reads of the plurality of virtual management units and the number of reads of each of the physical blocks in each of the plurality of virtual management units, wherein the memory management circuit is used to use the maximum read count of the physical block with the maximum read count of a first virtual management unit among the plurality of virtual management units as the read count of the first virtual management unit; as well as If the read count of the first virtual management unit is greater than or equal to the read count threshold, the memory management circuit is used to move data of the first virtual management unit, or the memory management circuit is used to check whether the first virtual management unit cannot implement error checking and correction.

14. The memory control circuit unit according to claim 13, characterized in that: The memory management circuit is further configured to: The array is set to n columns * i rows, where i is the number of the multiple physical blocks included in each of the multiple virtual management units, n is the maximum supported number of virtual management units of the buffer memory used to temporarily store the number of read times, n is greater than or equal to 1 and less than or equal to the number of the multiple virtual management units, and i and n are positive integers.

15. The memory control circuit unit according to claim 14, characterized in that: The array is an unsigned byte array of 1 byte.

16. The memory control circuit unit according to claim 15, characterized in that: The memory management circuit is used to obtain and use the array to record the number of reads of the plurality of virtual management units and the number of reads of each of the physical blocks in each of the plurality of virtual management units. When the number of the virtual management units whose read counts are to be recorded is less than the maximum supported number of the virtual management units, the memory management circuit is further configured to use the nth column of the array to record the read count of the first virtual management unit that is read (n+1)th among the plurality of virtual management units, and record the sequence number of the first virtual management unit, and The memory management circuit is further configured to update the reading times of the first virtual management unit to the nth column of the array according to the sequence number of the first virtual management unit.

17. The memory control circuit unit according to claim 16, characterized in that: The memory management circuit is used to obtain and use the array to record the number of reads of the plurality of virtual management units and the number of reads of each of the physical blocks in each of the plurality of virtual management units. When the nth column of the array is used to record the number of reads of the first virtual management unit that is read the n+1th one of the plurality of virtual management units, the memory management circuit is further used to use the ith row and the nth column of the array to record the number of reads of the ith physical block among the plurality of physical blocks included in the first virtual management unit; as well as If the number of reads recorded in the i-th row and n-th column of the array is greater than the array record threshold of the array, the memory management circuit is further used to update the number of reads recorded in the i-th row and n-th column to the number of reads of the first virtual management unit, and clear the number of reads of each physical block of the first virtual management unit recorded in the n-th column of the array, and set the first virtual management unit to a reference value.

18. The memory control circuit unit according to claim 15, characterized in that: The memory management circuit is used to obtain and use the array to record the number of reads of the plurality of virtual management units and the number of reads of each of the physical blocks in each of the plurality of virtual management units. When the number of virtual management units whose read counts are to be recorded is equal to the maximum supported number of the virtual management units and the newly added virtual management unit is read, the memory management circuit is further used to update the maximum read count recorded in the array to the read count of the second virtual management unit among the multiple virtual management units, and clear the read count of each physical block in the second virtual management unit recorded in the Mth column used to record the read count of the second virtual management unit, and use the Mth column to record the read count of each physical block of the newly added virtual management unit, where M is greater than or equal to 0 and less than or equal to n-1.

Citation Information

Cited By

  • Management method of read disturb of flash memory and flash memory device

    TWI933553B