[go: up one dir, main page]

CN112216329B - Data erasing method, memory control circuit unit and memory storage device - Google Patents

Data erasing method, memory control circuit unit and memory storage device Download PDF

Info

Publication number
CN112216329B
CN112216329B CN201910627492.XA CN201910627492A CN112216329B CN 112216329 B CN112216329 B CN 112216329B CN 201910627492 A CN201910627492 A CN 201910627492A CN 112216329 B CN112216329 B CN 112216329B
Authority
CN
China
Prior art keywords
physical
unit
erasure
units
erasing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910627492.XA
Other languages
Chinese (zh)
Other versions
CN112216329A (en
Inventor
叶志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Phison Electronics Corp
Original Assignee
Phison Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Phison Electronics Corp filed Critical Phison Electronics Corp
Priority to CN201910627492.XA priority Critical patent/CN112216329B/en
Publication of CN112216329A publication Critical patent/CN112216329A/en
Application granted granted Critical
Publication of CN112216329B publication Critical patent/CN112216329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/06Auxiliary circuits, e.g. for writing into memory
    • G11C16/10Programming or data input circuits
    • G11C16/14Circuits for erasing electrically, e.g. erase voltage switching circuits
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Read Only Memory (AREA)

Abstract

The invention provides a data erasing method, a memory control circuit unit and a memory storage device. The method comprises the following steps: selecting a first physical erase unit group from the plurality of physical erase unit groups; and performing an erase operation on the first physically erased cell group. The first physical erasing unit group comprises a plurality of first physical erasing units, and the number of at least one second physical erasing unit in the plurality of first physical erasing units used for executing the erasing operation in the same time point is different from the number of the plurality of first physical erasing units.

Description

数据抹除方法、存储器控制电路单元及存储器存储装置Data erasure method, memory control circuit unit and memory storage device

技术领域Technical field

本发明涉及一种数据抹除方法、存储器控制电路单元及存储器存储装置。The invention relates to a data erasure method, a memory control circuit unit and a memory storage device.

背景技术Background technique

数码相机、移动电话与MP3播放器在这几年来的成长十分迅速,使得消费者对存储媒体的需求也急速增加。由于可复写式非易失性存储器模块(例如,快闪存储器)具有数据非易失性、省电、体积小,以及无机械结构等特性,所以非常适合内建于上述所举例的各种可携式多媒体装置中。Digital cameras, mobile phones and MP3 players have grown rapidly in recent years, causing consumer demand for storage media to increase rapidly. Since rewritable non-volatile memory modules (such as flash memory) have the characteristics of non-volatile data, power saving, small size, and no mechanical structure, they are very suitable for being built into various removable memory modules as listed above. in portable multimedia devices.

一般来说,可复写式非易失性存储器模块可以包括多个存储器子模块。为了增加写入效率,通常存储器管理电路会以平行(parallel)方式将数据通过多个数据总线写入至前述的存储器子模块中。而在平行写入的过程中,假设用于写入的数据量刚好等于一个实体抹除单元组所能存储的数据量时,实体抹除单元组中的每一个实体抹除单元通常会在某一时间点同时地被数据写满。Generally speaking, a rewritable non-volatile memory module may include multiple memory sub-modules. In order to increase writing efficiency, the memory management circuit usually writes data into the aforementioned memory sub-modules through multiple data buses in a parallel manner. In the process of parallel writing, assuming that the amount of data used for writing is exactly equal to the amount of data that can be stored in a physical erasure unit group, each physical erasure unit in the physical erasure unit group will usually be A point in time is filled with data simultaneously.

假设之后存储器管理电路因故需对前述的实体抹除单元组中的实体抹除单元执行一抹除操作时(例如,执行有效数据合并或其他操作)时,存储器管理电路通常会同时地对实体抹除单元组中的多个实体抹除单元执行抹除操作。也就是说,在现有技术中,为了维持平行写入的效率,通常是以一个实体抹除单元组为单位执行抹除操作以释放一个实体抹除单元组的空间并作为后续的平行写入之用。Assuming that later the memory management circuit needs to perform an erasure operation on the physical erasure unit in the aforementioned physical erasure unit group for some reason (for example, performing valid data merging or other operations), the memory management circuit will usually perform the physical erasure operation at the same time. Perform erasure operations on multiple physical erasure units in the erasure unit group. That is to say, in the prior art, in order to maintain the efficiency of parallel writing, the erasing operation is usually performed in units of one physical erasing unit group to release the space of one physical erasing unit group and use it as a subsequent parallel writing Use.

在一实体抹除单元组包括每一个存储器子模块中的一实体抹除单元的情况下,当以一个实体抹除单元组为单位执行抹除操作时,由于可复写式非易失性存储器中的所有的存储器子模块皆被用来执行抹除操作,假设此时主机系统持续下达多个写入指令,则来自主机系统的数据并无法被写入可复写式非易失性存储器中而需被暂存在缓冲存储器中。然而,由于缓冲存储器的空间有限,在抹除操作的执行时间越长且主机系统持续下达写入指令的情况下,需要容量较大的缓冲存储器才能暂存来自主机系统的数据。因此,如何避免可复写式非易失性存储器中所有的存储器子模块同时被用来执行抹除操作所造成的问题,是本领域技术人员所欲解决的问题之一。In the case where a physical erasure unit group includes a physical erasure unit in each memory sub-module, when an erasure operation is performed in units of a physical erasure unit group, due to the rewritable non-volatile memory All memory sub-modules are used to perform erase operations. Assuming that the host system continues to issue multiple write commands at this time, the data from the host system cannot be written into the rewritable non-volatile memory. is temporarily stored in buffer memory. However, due to the limited space of the buffer memory, when the erase operation takes longer and the host system continues to issue write instructions, a buffer memory with a larger capacity is required to temporarily store data from the host system. Therefore, how to avoid the problem caused by all memory sub-modules in the rewritable non-volatile memory being used to perform erasure operations at the same time is one of the problems that those skilled in the art want to solve.

发明内容Contents of the invention

本发明提供一种数据抹除方法、存储器控制电路单元及存储器存储装置,可以不使用容量较大的缓冲存储器并且避免可复写式非易失性存储器中的所有的存储器子模块同时被用来执行抹除操作所造成的问题。The invention provides a data erasure method, a memory control circuit unit and a memory storage device, which can avoid using a buffer memory with a large capacity and avoid all memory sub-modules in a rewritable non-volatile memory from being used to execute at the same time. Problems caused by erasure operations.

本发明提出一种数据抹除方法,用于一可复写式非易失性存储器模块,所述可复写式非易失性存储器模块包括多个实体抹除单元组,所述多个实体抹除单元组中的每一个实体抹除单元组具有多个实体抹除单元,所述数据抹除方法包括:从所述多个实体抹除单元组中选择一第一实体抹除单元组;以及对所述第一实体抹除单元组执行一抹除操作,其中所述第一实体抹除单元组包括多个第一实体抹除单元,且在同一时间点中被用来执行所述抹除操作的所述多个第一实体抹除单元中的至少一第二实体抹除单元的数量不同于所述多个第一实体抹除单元的数量。The present invention proposes a data erasure method for a rewritable non-volatile memory module. The rewritable non-volatile memory module includes a plurality of physical erasure unit groups, and the multiple physical erasure units Each physical erasure unit group in the unit group has a plurality of physical erasure units, and the data erasure method includes: selecting a first physical erasure unit group from the plurality of physical erasure unit groups; and The first physical erasure unit group performs an erasure operation, wherein the first physical erasure unit group includes a plurality of first physical erasure units, and the first physical erasure unit group is used to perform the erasure operation at the same point in time. The number of at least one second physical erasing unit among the plurality of first physical erasing units is different from the number of the plurality of first physical erasing units.

在本发明的一实施例中,所述方法还包括:根据至少一写入指令对所述多个实体抹除单元组中的一第二实体抹除单元组执行一写入操作,其中所述第二实体抹除单元组包括多个第三实体抹除单元;当所述第二实体抹除单元组中所存储的数据量达到一第一门槛值时,执行对所述第一实体抹除单元组执行所述抹除操作的步骤以对所述多个第一实体抹除单元中的一第四实体抹除单元执行所述抹除操作;以及当所述第二实体抹除单元组中所存储的数据量达到一第二门槛值时,执行对所述第一实体抹除单元组执行所述抹除操作的步骤以对所述多个第一实体抹除单元中的一第五实体抹除单元执行所述抹除操作,其中所述第一门槛值小于所述第二门槛值。In an embodiment of the present invention, the method further includes: performing a write operation on a second physical erasure unit group among the plurality of physical erasure unit groups according to at least one write instruction, wherein the The second physical erasure unit group includes a plurality of third physical erasure units; when the amount of data stored in the second physical erasure unit group reaches a first threshold, the first physical erasure unit is executed. The unit group performs the step of the erasing operation to perform the erasing operation on a fourth physical erasing unit among the plurality of first physical erasing units; and when the second physical erasing unit group When the amount of stored data reaches a second threshold, the step of performing the erasure operation on the first entity erasure unit group is performed to erase a fifth entity among the plurality of first entity erasure units. The erasing unit performs the erasing operation, wherein the first threshold is smaller than the second threshold.

在本发明的一实施例中,当所述第二实体抹除单元组中所存储的数据量达到所述第二实体抹除单元组可用以存储数据的容量时,所述第一实体抹除单元组的所述多个第一实体抹除单元中所存储的数据皆已被抹除。In an embodiment of the present invention, when the amount of data stored in the second physical erasure unit group reaches the capacity of the second physical erasure unit group that can be used to store data, the first physical erasure unit group The data stored in the plurality of first physical erasure units of the unit group have all been erased.

在本发明的一实施例中,所述可复写式非易失性存储器模块包括多个存储器子模块,所述多个存储器子模块分别通过多个通道连接一存储器控制电路单元,所述多个实体抹除单元组中的每一个实体抹除单元组的所述多个实体抹除单元分别属于所述多个存储器子模块中不同的存储器子模块。In an embodiment of the present invention, the rewritable non-volatile memory module includes a plurality of memory sub-modules, and the plurality of memory sub-modules are respectively connected to a memory control circuit unit through a plurality of channels. The plurality of physical erasure units of each physical erasure unit group in the physical erasure unit group respectively belong to different memory sub-modules among the plurality of memory sub-modules.

在本发明的一实施例中,所述存储器控制电路单元通过所述多个通道对所述第二实体抹除单元组中的所述多个第三实体抹除单元执行所述写入操作以将多个数据平行地写入所述多个第三实体抹除单元中。In an embodiment of the present invention, the memory control circuit unit performs the write operation on the plurality of third physical erasure units in the second physical erasure unit group through the plurality of channels to A plurality of data are written into the plurality of third physical erasing units in parallel.

在本发明的一实施例中,在对所述第一实体抹除单元组执行所述抹除操作之前,所述方法还包括:调整对所述多个第一实体抹除单元执行一写入操作的顺序;以及根据所述写入顺序以及一写入指令对所述多个第一实体抹除单元执行所述写入操作以使得当所述第二实体抹除单元的存储空间被写满时,所述多个第一实体抹除单元中的至少一第六实体抹除单元尚有可使用的存储空间。In an embodiment of the present invention, before performing the erase operation on the first physical erase unit group, the method further includes: adjusting to perform a write operation on the plurality of first physical erase units. The order of operations; and performing the write operation on the plurality of first physical erasure units according to the write order and a write instruction so that when the storage space of the second physical erasure unit is full At this time, at least one sixth physical erasure unit among the plurality of first physical erasure units still has available storage space.

在本发明的一实施例中,在所述多个实体抹除单元组中,同一个实体抹除单元组中的所述多个实体抹除单元对应至一逻辑地址-实体地址映射表中一相同的索引码。In an embodiment of the present invention, among the plurality of physical erasure unit groups, the plurality of physical erasure units in the same physical erasure unit group correspond to a logical address-physical address mapping table. Same index code.

在本发明的一实施例中,所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括一第一实体程序化单元以及一第二实体程序化单元。当每一所述多个第一实体抹除单元的所述第一实体程序化单元皆先被程序化后,每一所述多个第一实体抹除单元的所述第二实体程序化单元会才可以被程序化。In an embodiment of the present invention, each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit and a second physical programming unit. After the first physical programming unit of each of the first physical erasing units is programmed first, the second physical programming unit of each of the first physical erasing units Only then can it be programmed.

在本发明的一实施例中,所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括一第一实体程序化单元。当所述第一实体抹除单元组被写入一连续数据时,所述第一实体抹除单元组中的所述第一实体抹除单元的所述第一实体程序化单元所存储的多个数据所对应的多个逻辑地址为连续的。In an embodiment of the present invention, each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit. When a continuous data is written into the first physical erasure unit group, the plurality of data stored in the first physical programming unit of the first physical erasure unit in the first physical erasure unit group Multiple logical addresses corresponding to each data are consecutive.

在本发明的一实施例中,所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括一第一实体程序化单元以及一第二实体程序化单元。当所述第一实体抹除单元组被写入一连续数据时,所述第一实体抹除单元组中的一第七实体抹除单元的所述第一实体程序化单元所存储的数据所对应的逻辑地址与所述第七实体抹除单元的所述第二实体程序化单元所存储的数据所对应的逻辑地址为不连续的,且所述第七实体抹除单元的所述第一实体程序化单元与所述第二实体程序化单元实体上是连续地排列。In an embodiment of the present invention, each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit and a second physical programming unit. When a continuous data is written into the first physical erasure unit group, the data stored in the first physical programming unit of a seventh physical erasure unit in the first physical erasure unit group is The corresponding logical address is discontinuous with the logical address corresponding to the data stored in the second physical programming unit of the seventh physical erasing unit, and the first physical erasing unit of the seventh physical erasing unit The physical programming unit and the second physical programming unit are physically continuously arranged.

本发明提出一种存储器控制电路单元,用于控制一可复写式非易失性存储器模块,其中所述可复写式非易失性存储器模块包括多个实体抹除单元组,所述多个实体抹除单元组中的每一个实体抹除单元组具有多个实体抹除单元,所述存储器控制电路单元包括:主机接口、存储器接口与存储器管理电路。主机接口用以电性连接至一主机系统。存储器接口用以电性连接至所述可复写式非易失性存储器模块。存储器管理电路电性连接至所述主机接口以及所述存储器接口,并用以执行下述运作:从所述多个实体抹除单元组中选择一第一实体抹除单元组;以及对所述第一实体抹除单元组执行一抹除操作,其中所述第一实体抹除单元组包括多个第一实体抹除单元,且在同一时间点中被用来执行所述抹除操作的所述多个第一实体抹除单元中的至少一第二实体抹除单元的数量不同于所述多个第一实体抹除单元的数量。The present invention proposes a memory control circuit unit for controlling a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module includes a plurality of physical erasure unit groups, and the plurality of physical erasure unit groups Each physical erasure unit group in the erasure unit group has multiple physical erasure units, and the memory control circuit unit includes: a host interface, a memory interface and a memory management circuit. The host interface is used to electrically connect to a host system. The memory interface is used to electrically connect to the rewritable non-volatile memory module. The memory management circuit is electrically connected to the host interface and the memory interface, and is used to perform the following operations: select a first physical erasure unit group from the plurality of physical erasure unit groups; and perform the following operations on the first physical erasure unit group: A group of physical erasing units performs an erasing operation, wherein the first group of physical erasing units includes a plurality of first physical erasing units, and the plurality of first physical erasing units are used to perform the erasing operation at the same point in time. The number of at least one second physical erasing unit among the first physical erasing units is different from the number of the plurality of first physical erasing units.

在本发明的一实施例中,所述存储器管理电路还用以根据至少一写入指令对所述多个实体抹除单元组中的一第二实体抹除单元组执行一写入操作,其中所述第二实体抹除单元组包括多个第三实体抹除单元。当所述第二实体抹除单元组中所存储的数据量达到一第一门槛值时,所述存储器管理电路还用以执行对所述第一实体抹除单元组执行所述抹除操作的运作以对所述多个第一实体抹除单元中的一第四实体抹除单元执行所述抹除操作。当所述第二实体抹除单元组中所存储的数据量达到一第二门槛值时,所述存储器管理电路还用以执行对所述第一实体抹除单元组执行所述抹除操作的运作以对所述多个第一实体抹除单元中的一第五实体抹除单元执行所述抹除操作,其中所述第一门槛值小于所述第二门槛值。In an embodiment of the present invention, the memory management circuit is further configured to perform a write operation on a second physical erasure unit group among the plurality of physical erasure unit groups according to at least one write instruction, wherein The second physical erasing unit group includes a plurality of third physical erasing units. When the amount of data stored in the second physical erasure unit group reaches a first threshold, the memory management circuit is also used to perform the erase operation on the first physical erasure unit group. Operated to perform the erasing operation on a fourth physical erasing unit among the plurality of first physical erasing units. When the amount of data stored in the second physical erasure unit group reaches a second threshold, the memory management circuit is also used to perform the erase operation on the first physical erasure unit group. Operate to perform the erase operation on a fifth physical erase unit among the plurality of first physical erase units, wherein the first threshold is less than the second threshold.

在本发明的一实施例中,当所述第二实体抹除单元组中所存储的数据量达到所述第二实体抹除单元组可用以存储数据的容量时,所述第一实体抹除单元组的所述多个第一实体抹除单元中所存储的数据皆已被抹除。In an embodiment of the present invention, when the amount of data stored in the second physical erasure unit group reaches the capacity of the second physical erasure unit group that can be used to store data, the first physical erasure unit group The data stored in the plurality of first physical erasure units of the unit group have all been erased.

在本发明的一实施例中,所述可复写式非易失性存储器模块包括多个存储器子模块,所述多个存储器子模块分别通过多个通道连接所述存储器管理电路,所述多个实体抹除单元组中的每一个实体抹除单元组的所述多个实体抹除单元分别属于所述多个存储器子模块中不同的存储器子模块。In an embodiment of the present invention, the rewritable non-volatile memory module includes a plurality of memory sub-modules, and the plurality of memory sub-modules are respectively connected to the memory management circuit through a plurality of channels. The plurality of physical erasure units of each physical erasure unit group in the physical erasure unit group respectively belong to different memory sub-modules among the plurality of memory sub-modules.

在本发明的一实施例中,所述存储器管理电路通过所述多个通道对所述第二实体抹除单元组中的所述多个第三实体抹除单元执行所述写入操作以将多个数据平行地写入所述多个第三实体抹除单元中。In an embodiment of the present invention, the memory management circuit performs the write operation on the plurality of third physical erasure units in the second physical erasure unit group through the plurality of channels to A plurality of data are written in the plurality of third physical erasing units in parallel.

在本发明的一实施例中,在对所述第一实体抹除单元组执行所述抹除运作之前,所述存储器管理电路还用以调整对所述多个第一实体抹除单元执行一写入操作的顺序。所述存储器管理电路还用以根据所述写入顺序以及一写入指令对所述多个第一实体抹除单元执行所述写入操作以使得当所述第二实体抹除单元的存储空间被写满时,所述多个第一实体抹除单元中的至少一第六实体抹除单元尚有可使用的存储空间。In an embodiment of the present invention, before performing the erasing operation on the first physical erasing unit group, the memory management circuit is further used to adjust the execution of an erasing operation on the plurality of first physical erasing units. The order of write operations. The memory management circuit is also used to perform the write operation on the plurality of first physical erasure units according to the write order and a write instruction, so that when the storage space of the second physical erasure unit When full, at least one sixth physical erasing unit among the plurality of first physical erasing units still has usable storage space.

在本发明的一实施例中,在所述多个实体抹除单元组中,同一个实体抹除单元组中的所述多个实体抹除单元对应至一逻辑地址-实体地址映射表中一相同的索引码。In an embodiment of the present invention, among the plurality of physical erasure unit groups, the plurality of physical erasure units in the same physical erasure unit group correspond to a logical address-physical address mapping table. Same index code.

在本发明的一实施例中,所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括一第一实体程序化单元以及一第二实体程序化单元。当每一所述多个第一实体抹除单元的所述第一实体程序化单元皆先被程序化后,每一所述多个第一实体抹除单元的所述第二实体程序化单元会才可以被程序化。In an embodiment of the present invention, each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit and a second physical programming unit. After the first physical programming unit of each of the first physical erasing units is programmed first, the second physical programming unit of each of the first physical erasing units Only then can it be programmed.

在本发明的一实施例中,所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括一第一实体程序化单元。当所述第一实体抹除单元组被写入一连续数据时,所述第一实体抹除单元组中的所述第一实体抹除单元的所述第一实体程序化单元所存储的多个数据所对应的多个逻辑地址为连续的。In an embodiment of the present invention, each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit. When a continuous data is written into the first physical erasure unit group, the plurality of data stored in the first physical programming unit of the first physical erasure unit in the first physical erasure unit group Multiple logical addresses corresponding to each data are consecutive.

在本发明的一实施例中,所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括一第一实体程序化单元以及一第二实体程序化单元。当所述第一实体抹除单元组被写入一连续数据时,所述第一实体抹除单元组中的一第七实体抹除单元的所述第一实体程序化单元所存储的数据所对应的逻辑地址与所述第七实体抹除单元的所述第二实体程序化单元所存储的数据所对应的逻辑地址为不连续的,且所述第七实体抹除单元的所述第一实体程序化单元与所述第二实体程序化单元实体上是连续地排列。In an embodiment of the present invention, each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit and a second physical programming unit. When a continuous data is written into the first physical erasure unit group, the data stored in the first physical programming unit of a seventh physical erasure unit in the first physical erasure unit group is The corresponding logical address is discontinuous with the logical address corresponding to the data stored in the second physical programming unit of the seventh physical erasing unit, and the first physical erasing unit of the seventh physical erasing unit The physical programming unit and the second physical programming unit are physically continuously arranged.

本发明提出一种存储器存储装置,包括:连接接口单元、可复写式非易失性存储器模块与存储器控制电路单元。连接接口单元用以电性连接至一主机系统。所述可复写式非易失性存储器模块包括多个实体抹除单元组,所述多个实体抹除单元组中的每一个实体抹除单元组具有多个实体抹除单元。存储器控制电路单元电性连接至所述连接接口单元与所述可复写式非易失性存储器模块并用以执行下述运作:从所述多个实体抹除单元组中选择一第一实体抹除单元组;以及对所述第一实体抹除单元组执行一抹除操作,其中所述第一实体抹除单元组包括多个第一实体抹除单元,且在同一时间点中被用来执行所述抹除操作的所述多个第一实体抹除单元中的至少一第二实体抹除单元的数量不同于所述多个第一实体抹除单元的数量。The invention proposes a memory storage device, which includes: a connection interface unit, a rewritable non-volatile memory module and a memory control circuit unit. The connection interface unit is used to electrically connect to a host system. The rewritable non-volatile memory module includes a plurality of physical erasure unit groups, and each of the plurality of physical erasure unit groups has a plurality of physical erasure units. The memory control circuit unit is electrically connected to the connection interface unit and the rewritable non-volatile memory module and is used to perform the following operations: select a first physical erasure unit from the plurality of physical erasure unit groups. unit group; and perform an erasure operation on the first physical erasure unit group, wherein the first physical erasure unit group includes a plurality of first physical erasure units and is used to perform all the first physical erasure units at the same point in time. In the erasing operation, the number of at least one second physical erasing unit among the plurality of first physical erasing units is different from the number of the plurality of first physical erasing units.

在本发明的一实施例中,所述存储器控制电路单元还用以根据至少一写入指令对所述多个实体抹除单元组中的一第二实体抹除单元组执行一写入操作,其中所述第二实体抹除单元组包括多个第三实体抹除单元。当所述第二实体抹除单元组中所存储的数据量达到一第一门槛值时,所述存储器控制电路单元还用以执行对所述第一实体抹除单元组执行所述抹除操作的步骤以对所述多个第一实体抹除单元中的一第四实体抹除单元执行所述抹除操作。当所述第二实体抹除单元组中所存储的数据量达到一第二门槛值时,所述存储器控制电路单元还用以执行对所述第一实体抹除单元组执行所述抹除操作的步骤以对所述多个第一实体抹除单元中的一第五实体抹除单元执行所述抹除操作,其中所述第一门槛值小于所述第二门槛值。In an embodiment of the present invention, the memory control circuit unit is further configured to perform a write operation on a second physical erasure unit group among the plurality of physical erasure unit groups according to at least one write instruction, The second physical erasing unit group includes a plurality of third physical erasing units. When the amount of data stored in the second physical erasure unit group reaches a first threshold, the memory control circuit unit is also used to perform the erase operation on the first physical erasure unit group. The step of performing the erasing operation on a fourth physical erasing unit among the plurality of first physical erasing units. When the amount of data stored in the second physical erasure unit group reaches a second threshold, the memory control circuit unit is also used to perform the erase operation on the first physical erasure unit group. The step of performing the erasing operation on a fifth physical erasing unit among the plurality of first physical erasing units, wherein the first threshold is smaller than the second threshold.

在本发明的一实施例中,当所述第二实体抹除单元组中所存储的数据量达到所述第二实体抹除单元组可用以存储数据的容量时,所述第一实体抹除单元组的所述多个第一实体抹除单元中所存储的数据皆已被抹除。In an embodiment of the present invention, when the amount of data stored in the second physical erasure unit group reaches the capacity of the second physical erasure unit group that can be used to store data, the first physical erasure unit group The data stored in the plurality of first physical erasure units of the unit group have all been erased.

在本发明的一实施例中,所述可复写式非易失性存储器模块包括多个存储器子模块,所述多个存储器子模块分别通过多个通道连接一存储器控制电路单元,所述多个实体抹除单元组中的每一个实体抹除单元组的所述多个实体抹除单元分别属于所述多个存储器子模块中不同的存储器子模块。In an embodiment of the present invention, the rewritable non-volatile memory module includes a plurality of memory sub-modules, and the plurality of memory sub-modules are respectively connected to a memory control circuit unit through a plurality of channels. The plurality of physical erasure units of each physical erasure unit group in the physical erasure unit group respectively belong to different memory sub-modules among the plurality of memory sub-modules.

在本发明的一实施例中,所述存储器控制电路单元通过所述多个通道对所述第二实体抹除单元组中的所述多个第三实体抹除单元执行所述写入操作以将多个数据平行地写入所述多个第三实体抹除单元中。In an embodiment of the present invention, the memory control circuit unit performs the write operation on the plurality of third physical erasure units in the second physical erasure unit group through the plurality of channels to A plurality of data are written into the plurality of third physical erasing units in parallel.

在本发明的一实施例中,在对所述第一实体抹除单元组执行所述抹除运作之前,所述存储器控制电路单元还用以调整对所述多个第一实体抹除单元执行一写入操作的顺序,述存储器控制电路单元还用以根据所述写入顺序以及一写入指令对所述多个第一实体抹除单元执行所述写入操作以使得当所述第二实体抹除单元的存储空间被写满时,所述多个第一实体抹除单元中的至少一第六实体抹除单元尚有可使用的存储空间。In an embodiment of the present invention, before performing the erasing operation on the first physical erasing unit group, the memory control circuit unit is further used to adjust the execution of the plurality of first physical erasing units. A sequence of write operations, the memory control circuit unit is further configured to perform the write operations on the plurality of first physical erasure units according to the write sequence and a write instruction, so that when the second When the storage space of the physical erasure unit is full, at least one sixth physical erasure unit among the plurality of first physical erasure units still has usable storage space.

在本发明的一实施例中,在所述多个实体抹除单元组中,同一个实体抹除单元组中的所述多个实体抹除单元对应至一逻辑地址-实体地址映射表中一相同的索引码。In an embodiment of the present invention, among the plurality of physical erasure unit groups, the plurality of physical erasure units in the same physical erasure unit group correspond to a logical address-physical address mapping table. Same index code.

在本发明的一实施例中,所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括一第一实体程序化单元以及一第二实体程序化单元。当每一所述多个第一实体抹除单元的所述第一实体程序化单元皆先被程序化后,每一所述多个第一实体抹除单元的所述第二实体程序化单元会才可以被程序化。In an embodiment of the present invention, each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit and a second physical programming unit. After the first physical programming unit of each of the first physical erasing units is programmed first, the second physical programming unit of each of the first physical erasing units Only then can it be programmed.

在本发明的一实施例中,所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括一第一实体程序化单元。当所述第一实体抹除单元组被写入一连续数据时,所述第一实体抹除单元组中的所述第一实体抹除单元的所述第一实体程序化单元所存储的多个数据所对应的多个逻辑地址为连续的。In an embodiment of the present invention, each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit. When a continuous data is written into the first physical erasure unit group, the plurality of data stored in the first physical programming unit of the first physical erasure unit in the first physical erasure unit group Multiple logical addresses corresponding to each data are consecutive.

在本发明的一实施例中,所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括一第一实体程序化单元以及一第二实体程序化单元。当所述第一实体抹除单元组被写入一连续数据时,所述第一实体抹除单元组中的一第七实体抹除单元的所述第一实体程序化单元所存储的数据所对应的逻辑地址与所述第七实体抹除单元的所述第二实体程序化单元所存储的数据所对应的逻辑地址为不连续的,且所述第七实体抹除单元的所述第一实体程序化单元与所述第二实体程序化单元实体上是连续地排列。In an embodiment of the present invention, each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit and a second physical programming unit. When a continuous data is written into the first physical erasure unit group, the data stored in the first physical programming unit of a seventh physical erasure unit in the first physical erasure unit group is The corresponding logical address is discontinuous with the logical address corresponding to the data stored in the second physical programming unit of the seventh physical erasing unit, and the first physical erasing unit of the seventh physical erasing unit The physical programming unit and the second physical programming unit are physically continuously arranged.

基于上述,在本发明的数据抹除方法、存储器控制电路单元及存储器存储装置中,由于同一时间点不会对一实体抹除单元组中的所有实体抹除单元执行抹除操作,因此于同一时间点并非所有的存储器子模块皆被用来执行抹除操作。此时当主机系统仍持续下达写入指令时,则来自主机系统的数据可以被写入可复写式非易失性存储器中而不需被暂存在缓冲存储器中等待抹除操作的完成。藉此,本发明的数据抹除方法可以不使用容量较大的缓冲存储器并且避免可复写式非易失性存储器中的所有的存储器子模块同时被用来执行抹除操作所造成的问题。Based on the above, in the data erasure method, memory control circuit unit and memory storage device of the present invention, since the erasure operation will not be performed on all physical erasure units in a physical erasure unit group at the same time, therefore at the same time Not all memory sub-modules are used to perform erase operations at this point in time. At this time, when the host system continues to issue write instructions, the data from the host system can be written into the rewritable non-volatile memory without being temporarily stored in the buffer memory to wait for the completion of the erasure operation. Thereby, the data erasing method of the present invention does not use a buffer memory with a large capacity and avoids the problem caused by all memory sub-modules in the rewritable non-volatile memory being used to perform erasing operations at the same time.

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and understandable, embodiments are given below and described in detail with reference to the accompanying drawings.

附图说明Description of the drawings

图1是根据本发明的一范例实施例所示出的主机系统、存储器存储装置及输入/输出(I/O)装置的示意图;FIG. 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;

图2是根据本发明的另一范例实施例所示出的主机系统、存储器存储装置及I/O装置的示意图;Figure 2 is a schematic diagram of a host system, a memory storage device and an I/O device according to another exemplary embodiment of the present invention;

图3是根据本发明的另一范例实施例所示出的主机系统与存储器存储装置的示意图;Figure 3 is a schematic diagram of a host system and a memory storage device according to another exemplary embodiment of the present invention;

图4是根据本发明的一范例实施例所示出的存储器存储装置的概要方块图;Figure 4 is a schematic block diagram of a memory storage device according to an exemplary embodiment of the present invention;

图5是根据本发明的一范例实施例所示出的存储器控制电路单元的概要方块图;FIG. 5 is a schematic block diagram of a memory control circuit unit according to an exemplary embodiment of the present invention;

图6是根据本发明第一范例实施例所示出的可复写式非易失性存储器模块的概要方块图;Figure 6 is a schematic block diagram of a rewritable non-volatile memory module according to the first exemplary embodiment of the present invention;

图7是根据本发明一范例实施例所示出的数据抹除方法的流程图;Figure 7 is a flow chart of a data erasure method according to an exemplary embodiment of the present invention;

图8A、图8B、图9A、图9B、图10A、图10B、图11A、图11B、图12A与图12B是根据本发明第一范例实施例所示出的数据抹除方法的范例的示意图;8A, 8B, 9A, 9B, 10A, 10B, 11A, 11B, 12A and 12B are schematic diagrams of an example of a data erasure method according to the first exemplary embodiment of the present invention. ;

图13是根据本发明第二范例实施例所示出的数据抹除方法的范例的示意图。FIG. 13 is a schematic diagram of an example of a data erasure method according to a second exemplary embodiment of the present invention.

附图标号说明:Explanation of reference numbers:

30、10:存储器存储装置30, 10: Memory storage device

31、11:主机系统31, 11: Host system

110:系统总线110: System bus

111:处理器111: Processor

112:随机存取存储器112: Random Access Memory

113:只读存储器113: Read-only memory

114:数据传输接口114: Data transmission interface

12:输入/输出(I/O)装置12: Input/output (I/O) device

20:主机板20: Motherboard

201:随身盘201: Flash drive

202:存储卡202: Memory card

203:固态硬盘203: Solid state drive

204:无线存储器存储装置204: Wireless memory storage device

205:全球定位系统模块205: Global Positioning System Module

206:网络接口卡206: Network interface card

207:无线传输装置207: Wireless transmission device

208:键盘208: Keyboard

209:屏幕209: Screen

210:喇叭210: Speaker

32:SD卡32: SD card

33:CF卡33: CF card

34:嵌入式存储装置34: Embedded storage device

341:嵌入式多媒体卡341: Embedded multimedia card

342:嵌入式多芯片封装存储装置342: Embedded multi-chip package storage device

402:连接接口单元402: Connect interface unit

404:存储器控制电路单元404: Memory control circuit unit

406:可复写式非易失性存储器模块406: Rewritable non-volatile memory module

502:存储器管理电路502: Memory management circuit

504:主机接口504: Host interface

506:存储器接口506: Memory interface

508:错误检查与校正电路508: Error checking and correction circuit

510:缓冲存储器510: Buffer memory

512:电源管理电路512: Power management circuit

310:第一存储器子模块310: First memory submodule

320:第二存储器子模块320: Second memory submodule

330:第三存储器子模块330: Third memory submodule

340:第四存储器子模块340: Fourth memory submodule

316、326、336、346:数据总线316, 326, 336, 346: Data bus

410(0)~410(N)、420(0)~420(N)、430(0)~430(N)、440(0)~440(N):实体抹除单元410(0)~410(N), 420(0)~420(N), 430(0)~430(N), 440(0)~440(N): Entity erasure unit

OD1~OD16、ND1~ND16、ID1~ID8:数据OD1~OD16, ND1~ND16, ID1~ID8: data

S701:从多个实体抹除单元组中选择第一实体抹除单元组的步骤S701: Step of selecting a first physical erasure unit group from multiple physical erasure unit groups

S703:对第一实体抹除单元组执行抹除操作,其中第一实体抹除单元组包括多个第一实体抹除单元,且在同一时间点中被用来执行抹除操作的第一实体抹除单元中的第二实体抹除单元的数量不同于第一实体抹除单元的数量的步骤S703: Perform an erasure operation on the first physical erasure unit group, where the first physical erasure unit group includes a plurality of first physical erasure units, and the first entities used to perform the erasure operation at the same point in time The number of second physical erasing units in the erasing unit is different from the number of first physical erasing units.

具体实施方式Detailed ways

一般而言,存储器存储装置(亦称,存储器存储系统)包括可复写式非易失性存储器模块(rewritable non-volatile memory module)与控制器(亦称,控制电路)。通常存储器存储装置是与主机系统一起使用,以使主机系统可将数据写入至存储器存储装置或从存储器存储装置中读取数据。Generally speaking, a memory storage device (also called a memory storage system) includes a rewritable non-volatile memory module (rerewritable non-volatile memory module) and a controller (also called a control circuit). Typically a memory storage device is used with a host system so that the host system can write data to or read data from the memory storage device.

图1是根据本发明的一范例实施例所示出的主机系统、存储器存储装置及输入/输出(I/O)装置的示意图。图2是根据本发明的另一范例实施例所示出的主机系统、存储器存储装置及I/O装置的示意图。FIG. 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. FIG. 2 is a schematic diagram of a host system, a memory storage device and an I/O device according to another exemplary embodiment of the present invention.

请参照图1与图2,主机系统11一般包括处理器111、随机存取存储器(randomaccess memory,RAM)112、只读存储器(read only memory,ROM)113及数据传输接口114。处理器111、随机存取存储器112、只读存储器113及数据传输接口114都电性连接至系统总线(system bus)110。Referring to FIGS. 1 and 2 , the host system 11 generally includes 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 are all electrically connected to the system bus 110 .

在本范例实施例中,主机系统11是通过数据传输接口114与存储器存储装置10电性连接。例如,主机系统11可经由数据传输接口114将数据存储至存储器存储装置10或从存储器存储装置10中读取数据。此外,主机系统11是通过系统总线110与I/O装置12电性连接。例如,主机系统11可经由系统总线110将输出信号传送至I/O装置12或从I/O装置12接收输入信号。In this exemplary embodiment, the host system 11 is electrically connected to the memory storage device 10 through the data transmission interface 114 . For example, the host system 11 may store data to or read data from the memory storage device 10 via the data transfer interface 114 . In addition, the host system 11 is electrically connected to the I/O device 12 through the system bus 110 . For example, host system 11 may transmit output signals to or receive input signals from I/O device 12 via system bus 110 .

在本范例实施例中,处理器111、随机存取存储器112、只读存储器113及数据传输接口114可设置在主机系统11的主机板20上。数据传输接口114的数目可以是一或多个。通过数据传输接口114,主机板20可以经由有线或无线方式电性连接至存储器存储装置10。存储器存储装置10可例如是随身盘201、存储卡202、固态硬盘(Solid State Drive,SSD)203或无线存储器存储装置204。无线存储器存储装置204可例如是近距离无线通讯(NearField Communication,NFC)存储器存储装置、无线传真(WiFi)存储器存储装置、蓝牙(Bluetooth)存储器存储装置或低功耗蓝牙存储器存储装置(例如,iBeacon)等以各式无线通讯技术为基础的存储器存储装置。此外,主机板20也可以通过系统总线110电性连接至全球定位系统(Global Positioning System,GPS)模块205、网络接口卡206、无线传输装置207、键盘208、屏幕209、喇叭210等各式I/O装置。例如,在一范例实施例中,主机板20可通过无线传输装置207存取无线存储器存储装置204。In this 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 data transmission interfaces 114 may be one or more. Through the data transmission interface 114, the motherboard 20 can be electrically connected to the memory storage device 10 via wired or wireless methods. The memory storage device 10 may be, for example, a pen 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 fax (WiFi) memory storage device, a Bluetooth (Bluetooth) memory storage device, or a low-power Bluetooth memory storage device (eg, iBeacon ) and other memory storage devices based on various wireless communication technologies. In addition, the motherboard 20 can also be electrically connected to various I 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. /O device. For example, in an exemplary embodiment, the motherboard 20 can access the wireless memory storage device 204 through the wireless transmission device 207 .

在一范例实施例中,所提及的主机系统为可实质地与存储器存储装置配合以存储数据的任意系统。虽然在上述范例实施例中,主机系统是以电脑系统来作说明,然而,图3是根据本发明的另一范例实施例所示出的主机系统与存储器存储装置的示意图。请参照图3,在另一范例实施例中,主机系统31也可以是数字相机、摄影机、通讯装置、音频播放器、视频播放器或平板电脑等系统,而存储器存储装置30可为其所使用的安全数字(SecureDigital,SD)卡32、小型快闪(Compact Flash,CF)卡33或嵌入式存储装置34等各式非易失性存储器存储装置。嵌入式存储装置34包括嵌入式多媒体卡(embedded Multi MediaCard,eMMC)341和/或嵌入式多芯片封装(embedded Multi Chip Package,eMCP)存储装置342等各类型将存储器模块直接电性连接于主机系统的基板上的嵌入式存储装置。In an example embodiment, the host system is substantially any system that can cooperate with a memory storage device to store data. Although in the above exemplary embodiments, the host system is described as a computer system, FIG. 3 is a schematic diagram of a host system and a memory storage device according to another exemplary embodiment of the present invention. Please refer to FIG. 3 . In another exemplary embodiment, the host system 31 can also be a digital camera, video camera, communication device, audio player, video player or tablet computer, and the memory storage device 30 can be used therefor. Various non-volatile memory storage devices such as Secure Digital (SD) card 32, Compact Flash (CF) card 33 or embedded storage device 34. The embedded storage device 34 includes various types such as an embedded Multi MediaCard (eMMC) 341 and/or an embedded Multi Chip Package (eMCP) storage device 342. The memory module is directly electrically connected to the host system. Embedded storage device on the substrate.

图4是根据本发明的一范例实施例所示出的存储器存储装置的概要方块图。FIG. 4 is a schematic block diagram of a memory storage device according to an exemplary embodiment of the present invention.

请参照图4,存储器存储装置10包括连接接口单元402、存储器控制电路单元404与可复写式非易失性存储器模块406。Referring to FIG. 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 .

连接接口单元402用以将存储器存储装置10电性连接至主机系统11。在本范例实施例中,连接接口单元402是符合高速周边零件连接接口(Peripheral ComponentInterconnect Express,PCI Express)标准,且相容于快速非易失性存储器(NVM express)接口标准。具体而言,快速非易失性存储器接口标准为一种主机系统与存储器装置之间通讯的协议,其定义了存储器存储装置的控制器与主机系统的作业系统之间的暂存器接口、指令集与功能集,并通过对存储器存储装置的接口标准最佳化,来促进以PCIe接口为主的存储器存储装置的数据存取速度与数据传输速率。然而,在另一范例实施例中,连接接口单元402亦可以是符合其他适合的标准。此外,连接接口单元402可与存储器控制电路单元404封装在一个芯片中,或者连接接口单元402是布设于一包含存储器控制电路单元404的芯片外。The connection interface unit 402 is used to electrically connect the memory storage device 10 to the host system 11 . In this exemplary embodiment, the connection interface unit 402 complies with the Peripheral Component Interconnect Express (PCI Express) standard and is compatible with the NVM express interface standard. Specifically, the fast non-volatile memory interface standard is a communication protocol between the host system and the memory device. It defines the temporary memory interface and instructions between the controller of the memory storage device and the operating system of the host system. Set and function set, and by optimizing the interface standard of the memory storage device, to promote the data access speed and data transfer rate of the memory storage device based on the PCIe interface. However, in another example embodiment, the connection interface unit 402 may also comply with other suitable standards. In addition, the connection interface unit 402 and the memory control circuit unit 404 may be packaged in a chip, or the connection interface unit 402 may be arranged outside a chip including the memory control circuit unit 404.

存储器控制电路单元404用以执行以硬件型式或固体型式实作的多个逻辑门或控制指令并且根据主机系统11的指令在可复写式非易失性存储器模块406中进行数据的写入、读取与抹除等运作。The memory control circuit unit 404 is used to execute a plurality of logic gates or control instructions implemented in hardware or solid state, and write and read data in the rewritable non-volatile memory module 406 according to the instructions of the host system 11 Operations such as fetching and erasing.

可复写式非易失性存储器模块406是电性连接至存储器控制电路单元404并且用以存储主机系统11所写入的数据。可复写式非易失性存储器模块406可以是单阶存储单元(Single Level Cell,SLC)NAND型快闪存储器模块(即,一个存储单元中可存储1个比特的快闪存储器模块)、多阶存储单元(Multi Level Cell,MLC)NAND型快闪存储器模块(即,一个存储单元中可存储2个比特的快闪存储器模块)、复数阶存储单元(Triple Level Cell,TLC)NAND型快闪存储器模块(即,一个存储单元中可存储3个比特的快闪存储器模块)、其他快闪存储器模块或其他具有相同特性的存储器模块。The rewritable non-volatile memory module 406 is electrically connected to the memory control circuit unit 404 and used to store data written by the host system 11 . The rewritable non-volatile memory module 406 may be a single-level cell (SLC) NAND flash memory module (that is, a flash memory module that can store 1 bit in one memory cell), a multi-level Memory cell (Multi Level Cell, MLC) NAND type flash memory module (that is, a flash memory module that can store 2 bits in one memory cell), Complex level memory cell (Triple Level Cell, TLC) NAND type flash memory module (ie, a flash memory module that can store 3 bits in one memory cell), other flash memory modules, or other memory modules with the same characteristics.

可复写式非易失性存储器模块406中的每一个存储单元是以电压(以下亦称为临界电压)的改变来存储一或多个比特。具体来说,每一个存储单元的控制门极(controlgate)与通道之间有一个电荷捕捉层。通过施予一写入电压至控制门极,可以改变电荷补捉层的电子量,进而改变存储单元的临界电压。此改变存储单元的临界电压的操作亦称为“把数据写入至存储单元”或“程序化(programming)存储单元”。随着临界电压的改变,可复写式非易失性存储器模块406中的每一个存储单元具有多个存储状态。通过施予读取电压可以判断一个存储单元是属于哪一个存储状态,藉此取得此存储单元所存储的一或多个比特。Each memory cell in the rewritable non-volatile memory module 406 stores one or more bits based on changes in voltage (hereinafter also referred to as critical voltage). Specifically, there is a charge trapping 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 trapping layer can be changed, thereby changing the critical voltage of the memory cell. This operation of changing the threshold voltage of the memory cell is also called "writing data to the memory cell" or "programming the memory cell." As the threshold voltage changes, each memory cell in the rewritable non-volatile memory module 406 has multiple memory 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 the memory cell.

在本范例实施例中,可复写式非易失性存储器模块406的存储单元会构成多个实体程序化单元,并且此些实体程序化单元会构成多个实体抹除单元。具体来说,同一条字线上的存储单元会组成一或多个实体程序化单元。若每一个存储单元可存储2个以上的比特,则同一条字线上的实体程序化单元至少可被分类为下实体程序化单元与上实体程序化单元。例如,一存储单元的最低有效比特(Least Significant Bit,LSB)是属于下实体程序化单元,并且一存储单元的最高有效比特(Most Significant Bit,MSB)是属于上实体程序化单元。一般来说,在MLC NAND型快闪存储器中,下实体程序化单元的写入速度会大于上实体程序化单元的写入速度,和/或下实体程序化单元的可靠度是高于上实体程序化单元的可靠度。In this exemplary embodiment, the storage units of the rewritable non-volatile memory module 406 will constitute multiple physical programming units, and these physical programming units will constitute multiple physical erasure units. Specifically, memory cells on the same word line will form one or more physical programming units. If each storage unit can store more than 2 bits, the physical programming units on the same word line can at least be classified into lower physical programming units and upper physical programming units. For example, the Least Significant Bit (LSB) of a memory unit belongs to the lower physical programming unit, and the Most Significant Bit (MSB) of a memory unit belongs to the upper physical programming unit. Generally speaking, in MLC NAND flash memory, the writing speed of the lower physical programming unit will be greater than the writing speed of the upper physical programming unit, and/or the reliability of the lower physical programming unit is higher than that of the upper physical programming unit. Reliability of programmed units.

在本范例实施例中,实体程序化单元为程序化的最小单元。即,实体程序化单元为写入数据的最小单元。例如,实体程序化单元为实体页面(page)或是实体扇(sector)。若实体程序化单元为实体页面,则此些实体程序化单元通常包括数据比特区与冗余(redundancy)比特区。数据比特区包含多个实体扇,用以存储使用者数据,而冗余比特区用以存储系统数据(例如,错误更正码等管理数据)。在本范例实施例中,数据比特区包含32个实体扇,且一个实体扇的大小为512比特组(byte,B)。然而,在其他范例实施例中,数据比特区中也可包含8个、16个或数目更多或更少的实体扇,并且每一个实体扇的大小也可以是更大或更小。另一方面,实体抹除单元为抹除的最小单位。亦即,每一实体抹除单元含有最小数目之一并被抹除的存储单元。例如,实体抹除单元为实体区块(block)。In this 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 entity programming unit is an entity page (page) or an entity sector (sector). If the entity programming units are entity pages, these entity programming units usually include data bit areas and redundancy bit areas. The data bit area contains multiple physical sectors to store user data, while the redundant bit area is used to store system data (for example, management data such as error correction codes). In this exemplary embodiment, the data bit area includes 32 physical sectors, and the size of one physical sector is 512 bytes (B). However, in other example embodiments, the data bit zone 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 erase unit contains one of the minimum number of erased memory cells. For example, the physical erasure unit is a physical block.

图5是根据本发明的一范例实施例所示出的存储器控制电路单元的概要方块图。FIG. 5 is a schematic block diagram of a memory control circuit unit according to an exemplary embodiment of the present invention.

请参照图5,存储器控制电路单元404包括存储器管理电路502、主机接口504及存储器接口506。Referring to FIG. 5 , the memory control circuit unit 404 includes a memory management circuit 502 , a host interface 504 and a memory interface 506 .

存储器管理电路502用以控制存储器控制电路单元404的整体运作。具体来说,存储器管理电路502具有多个控制指令,并且在存储器存储装置10运作时,此些控制指令会被执行以进行数据的写入、读取与抹除等运作。以下说明存储器管理电路502的操作时,等同于说明存储器控制电路单元404的操作。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 is operating, these control instructions will be executed to perform data writing, reading, erasing and other operations. When the operation of the memory management circuit 502 is described below, it is equivalent to describing the operation of the memory control circuit unit 404.

在本范例实施例中,存储器管理电路502的控制指令是以固体型式来实作。例如,存储器管理电路502具有微处理器单元(未示出)与只读存储器(未示出),并且此些控制指令是被烧录至此只读存储器中。当存储器存储装置10运作时,此些控制指令会由微处理器单元来执行以进行数据的写入、读取与抹除等运作。In this exemplary embodiment, the control instructions of the memory management circuit 502 are implemented in a solid state. For example, the memory management circuit 502 has a microprocessor unit (not shown) and a read-only memory (not shown), and the control instructions are burned into the read-only memory. When the memory storage device 10 is operating, these control instructions will be executed by the microprocessor unit to perform data writing, reading, erasing and other operations.

在另一范例实施例中,存储器管理电路502的控制指令亦可以程序码型式存储于可复写式非易失性存储器模块406的特定区域(例如,存储器模块中专用于存放系统数据的系统区)中。此外,存储器管理电路502具有微处理器单元(未示出)、只读存储器(未示出)及随机存取存储器(未示出)。特别是,此只读存储器具有开机码(boot code),并且当存储器控制电路单元404被致能时,微处理器单元会先执行此开机码来将存储于可复写式非易失性存储器模块406中的控制指令载入至存储器管理电路502的随机存取存储器中。之后,微处理器单元会运转此些控制指令以进行数据的写入、读取与抹除等运作。In another 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 in the form of program code (for example, a system area in the memory module dedicated to storing system data). middle. 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, this 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 store the data in the rewritable non-volatile memory module. The control instructions in 406 are loaded into the random access memory of the memory management circuit 502 . Afterwards, the microprocessor unit will run these control instructions to perform operations such as writing, reading and erasing data.

此外,在另一范例实施例中,存储器管理电路502的控制指令亦可以一硬件型式来实作。例如,存储器管理电路502包括微控制器、存储单元管理电路、存储器写入电路、存储器读取电路、存储器抹除电路与数据处理电路。存储单元管理电路、存储器写入电路、存储器读取电路、存储器抹除电路与数据处理电路是电性连接至微控制器。存储单元管理电路用以管理可复写式非易失性存储器模块406的存储单元或其群组。存储器写入电路用以对可复写式非易失性存储器模块406下达写入指令序列以将数据写入至可复写式非易失性存储器模块406中。存储器读取电路用以对可复写式非易失性存储器模块406下达读取指令序列以从可复写式非易失性存储器模块406中读取数据。存储器抹除电路用以对可复写式非易失性存储器模块406下达抹除指令序列以将数据从可复写式非易失性存储器模块406中抹除。数据处理电路用以处理欲写入至可复写式非易失性存储器模块406的数据以及从可复写式非易失性存储器模块406中读取的数据。写入指令序列、读取指令序列及抹除指令序列可各别包括一或多个程序码或指令码并且用以指示可复写式非易失性存储器模块406执行相对应的写入、读取及抹除等操作。在一范例实施例中,存储器管理电路502还可以下达其他类型的指令序列给可复写式非易失性存储器模块406以指示执行相对应的操作。In addition, in another 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 memory unit management circuit, a memory writing circuit, a memory reading circuit, a memory erasing circuit and a data processing circuit. The memory unit management circuit, the memory writing circuit, the memory reading circuit, the memory erasing circuit and the data processing circuit are electrically connected to the microcontroller. The memory cell management circuit is used to manage the memory cells or groups thereof of the rewritable non-volatile memory module 406 . The memory writing 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 reading 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 erasure circuit is used to issue an erasure instruction 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 instruction sequence, the read instruction sequence and the erase instruction 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 writing and reading. and erase operations. In an exemplary embodiment, the memory management circuit 502 can also issue other types of instruction sequences to the rewritable non-volatile memory module 406 to instruct the execution of corresponding operations.

主机接口504是电性连接至存储器管理电路502并且用以接收与识别主机系统11所传送的指令与数据。也就是说,主机系统11所传送的指令与数据会通过主机接口504来传送至存储器管理电路502。在本范例实施例中,主机接口504是相容于SATA标准。然而,必须了解的是本发明不限于此,主机接口504亦可以是相容于PATA标准、IEEE 1394标准、PCIExpress标准、USB标准、SD标准、UHS-I标准、UHS-II标准、MS标准、MMC标准、eMMC标准、UFS标准、CF标准、IDE标准或其他适合的数据传输标准。The host interface 504 is electrically connected to the memory management circuit 502 and is used to receive and identify instructions and data transmitted by the host system 11 . That is to say, the instructions and data transmitted by the host system 11 will be transmitted to the memory management circuit 502 through the host interface 504 . In this example embodiment, the host interface 504 is compatible with the SATA standard. However, it must be understood that the present invention is not limited to this. The host interface 504 may also be compatible with the PATA standard, IEEE 1394 standard, PCIExpress standard, USB standard, SD standard, UHS-I standard, UHS-II standard, MS standard, MMC standard, eMMC standard, UFS standard, CF standard, IDE standard or other suitable data transmission standards.

存储器接口506是电性连接至存储器管理电路502并且用以存取可复写式非易失性存储器模块406。也就是说,欲写入至可复写式非易失性存储器模块406的数据会经由存储器接口506转换为可复写式非易失性存储器模块406所能接受的格式。具体来说,若存储器管理电路502要存取可复写式非易失性存储器模块406,存储器接口506会传送对应的指令序列。例如,这些指令序列可包括指示写入数据的写入指令序列、指示读取数据的读取指令序列、指示抹除数据的抹除指令序列、以及用以指示各种存储器操作(例如,改变读取电压电平或执行垃圾回收操作等等)的相对应的指令序列。这些指令序列例如是由存储器管理电路502产生并且通过存储器接口506传送至可复写式非易失性存储器模块406。这些指令序列可包括一或多个信号,或是在总线上的数据。这些信号或数据可包括指令码或程序码。例如,在读取指令序列中,会包括读取的识别码、存储器地址等信息。The memory interface 506 is electrically connected to the memory management circuit 502 and used to access the rewritable non-volatile memory module 406 . That is to say, 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 instructing to write data, a read instruction sequence instructing to read data, an erase instruction sequence instructing to erase data, and to instruct various memory operations (e.g., change read corresponding instruction sequence to obtain voltage levels or perform garbage collection operations, etc.). These instruction sequences are generated, for example, by the memory management circuit 502 and transmitted to the rewritable non-volatile memory module 406 through the memory interface 506 . These command 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, the read instruction sequence will include the read identification code, memory address and other information.

在一范例实施例中,存储器控制电路单元404还包括错误检查与校正电路508、缓冲存储器510与电源管理电路512。In an exemplary embodiment, the memory control circuit unit 404 also includes an error checking and correction circuit 508, a buffer memory 510 and a power management circuit 512.

错误检查与校正电路508是电性连接至存储器管理电路502并且用以执行错误检查与校正操作以确保数据的正确性。具体来说,当存储器管理电路502从主机系统11中接收到写入指令时,错误检查与校正电路508会为对应此写入指令的数据产生对应的错误更正码(error correcting code,ECC)和/或错误检查码(error detecting code,EDC),并且存储器管理电路502会将对应此写入指令的数据与对应的错误更正码和/或错误检查码写入至可复写式非易失性存储器模块406中。之后,当存储器管理电路502从可复写式非易失性存储器模块406中读取数据时会同时读取此数据对应的错误更正码和/或错误检查码,并且错误检查与校正电路508会依据此错误更正码和/或错误检查码对所读取的数据执行错误检查与校正操作。The error checking and correcting circuit 508 is electrically connected to the memory management circuit 502 and is used to perform error checking and correcting operations to ensure the accuracy 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 error detecting code (EDC), and the memory management circuit 502 will write the data corresponding to this write instruction and the corresponding error correction code and/or error checking code into the rewritable non-volatile memory In module 406. Afterwards, when the memory management circuit 502 reads data from the rewritable non-volatile memory module 406, it will also read the error correction code and/or error checking code corresponding to the data, and the error checking and correction circuit 508 will This error correction code and/or error checking code performs error checking and correction operations on the data being read.

缓冲存储器510是电性连接至存储器管理电路502并且用以暂存来自于主机系统11的数据与指令或来自于可复写式非易失性存储器模块406的数据。电源管理电路512是电性连接至存储器管理电路502并且用以控制存储器存储装置10的电源。The buffer memory 510 is electrically 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 electrically connected to the memory management circuit 502 and used to control the power supply of the memory storage device 10 .

图6是根据本发明第一范例实施例所示出的可复写式非易失性存储器模块的概要方块图。FIG. 6 is a schematic block diagram of a rewritable non-volatile memory module according to the first exemplary embodiment of the present invention.

请参照图6,可复写式非易失性存储器模块406包括第一存储器子模块310、第二存储器子模块320、第三存储器子模块330与第四存储器子模块340。例如,第一、第二、第三与第四存储器子模块310、320、330与340分别地为存储器晶粒(die)。第一存储器子模块310具有实体抹除单元410(0)~410(N)。第二存储器子模块320具有实体抹除单元420(0)~420(N)。第三存储器子模块330具有实体抹除单元430(0)~430(N)。第四存储器子模块340具有实体抹除单元440(0)~440(N)。Referring to FIG. 6 , the rewritable non-volatile memory module 406 includes a first memory sub-module 310 , a second memory sub-module 320 , a third memory sub-module 330 and a fourth memory sub-module 340 . For example, the first, second, third and fourth memory sub-modules 310, 320, 330 and 340 are respectively memory dies. The first memory sub-module 310 has physical erasure units 410(0)˜410(N). The second memory sub-module 320 has physical erasure units 420(0)˜420(N). The third memory sub-module 330 has physical erasure units 430(0)˜430(N). The fourth memory sub-module 340 has physical erasure units 440(0)˜440(N).

例如,第一、第二、第三与第四存储器子模块310、320、330与340是分别地通过独立的数据总线316、326、336与346电性连接至存储器控制电路单元404。基此,存储器管理电路502可以平行(parallel)方式将数据通过数据总线316、326、336与346写入至第一、第二、第三与第四存储器子模块310、320、330与340。For example, the first, second, third and fourth memory sub-modules 310, 320, 330 and 340 are electrically connected to the memory control circuit unit 404 through independent data buses 316, 326, 336 and 346 respectively. Based on this, the memory management circuit 502 can write data to the first, second, third and fourth memory sub-modules 310, 320, 330 and 340 through the data buses 316, 326, 336 and 346 in a parallel manner.

然而,必须了解的是,在本发明另一范例实施例中,第一、第二、第三与第四存储器子模块310、320、330与340亦可仅通过1个数据总线与存储器控制电路单元404电性连接。在此,存储器管理电路502可以交错(interleave)方式将数据通过单一数据总线写入至第一、第二、第三与第四存储器子模块310、320、330与340。However, it must be understood that in another exemplary embodiment of the present invention, the first, second, third and fourth memory sub-modules 310, 320, 330 and 340 can also only use one data bus and a memory control circuit. Unit 404 is electrically connected. Here, the memory management circuit 502 may write data to the first, second, third and fourth memory sub-modules 310, 320, 330 and 340 through a single data bus in an interleave manner.

特别是,第一、第二、第三与第四存储器子模块310、320、330与340可以分别包括多条字线,而同一条字线上的多个存储单元会形成多个实体页面,同一条字线的多个实体页面可以称为实体页面组。第一、第二、第三与第四存储器子模块310、320、330与340的每一实体抹除单元分别具有多个实体页面,其中属于同一个实体抹除单元的实体页面可被独立地写入且被同时地抹除。例如,每一实体抹除单元是由128个实体页面所组成。然而,必须了解的是,本发明不限于此,每一实体抹除单元是可由64个实体页面、256个实体页面或其他任意个实体页面所组成。In particular, the first, second, third and fourth memory sub-modules 310, 320, 330 and 340 may respectively include multiple word lines, and multiple memory cells on the same word line will form multiple physical pages. Multiple entity pages of the same word line can be called entity page groups. Each physical erasure unit of the first, second, third and fourth memory sub-modules 310, 320, 330 and 340 respectively has a plurality of physical pages, wherein the physical pages belonging to the same physical erasure unit can be independently written and erased simultaneously. For example, each physical erasure unit is composed of 128 physical pages. However, it must be understood that the present invention is not limited thereto. Each physical erasure unit may be composed of 64 physical pages, 256 physical pages, or any other number of physical pages.

更详细来说,实体抹除单元为抹除的最小单位。亦即,每一实体抹除单元含有最小数目之一并被抹除的存储单元。实体页面为程序化的最小单元。即,实体页面为写入数据的最小单元。然而,必须了解的是,在本发明另一范例实施例中,写入数据的最小单位亦可以是扇区(Sector)或其他大小。每一实体页面通常包括数据比特区与冗余比特区。数据比特区用以存储使用者的数据,而冗余比特区用以存储系统的数据(例如,错误检查与校正码)。需注意的是,在另一范例实施例中,一个实体抹除单元亦可以是指一个实体地址、一个实体程序化单元或由多个连续或不连续的实体地址组成。In more detail, the physical erasure unit is the smallest unit of erasure. That is, each physical erase unit contains one of the minimum number of erased memory cells. The entity page is the smallest unit of programming. That is, the physical page is the smallest unit for writing data. However, it must be understood that in another exemplary embodiment of the present invention, the smallest unit of written data may also be a sector (Sector) or other sizes. Each entity page usually includes a data bit area and a redundant bit area. The data bit area is used to store user data, while the redundant bit area is used to store system data (for example, error checking and correction codes). It should be noted that in another exemplary embodiment, a physical erasure unit may also refer to a physical address, a physical programming unit, or be composed of multiple consecutive or discontinuous physical addresses.

值得一提的是,虽然本发明范例实施例是以包括四个存储器子模块的可复写式非易失性存储器模块406为例来描述。但本发明不限于此,在其他的实施例中,可复写式非易失性存储器模块406也可以包含六、八或十个存储器子模块。It is worth mentioning that although the exemplary embodiment of the present invention is described using a rewritable non-volatile memory module 406 including four memory sub-modules as an example. However, the present invention is not limited thereto. In other embodiments, the rewritable non-volatile memory module 406 may also include six, eight or ten memory sub-modules.

在此,可以将同时用于平行写入的多个实体抹除单元统称为一个“实体抹除单元组”。在本实施例中,一个实体抹除单元组中的多个实体抹除单元分别是属于不同的存储器子模块并且可以通过数据总线被同时地写入。以实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)所构成的实体抹除单元组为例,存储器管理电路502可以通过数据总线316、326、336与346平行地将数据写入实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)。实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)是分别位于不同的存储器子模块中。再例如,以实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)所构成的实体抹除单元组为例,存储器管理电路502可以通过数据总线316、326、336与346平行地将数据写入实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)。实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)是分别位于不同的存储器子模块中。Here, multiple physical erasing units simultaneously used for parallel writing may be collectively referred to as a "physical erasing unit group". In this embodiment, multiple physical erasure units in a physical erasure unit group respectively belong to different memory sub-modules and can be written simultaneously through the data bus. Taking the physical erasure unit group composed of the physical erasure unit 410(1), the physical erasure unit 420(1), the physical erasure unit 430(1) and the physical erasure unit 440(1) as an example, the memory management circuit 502 may write data to the physical erase unit 410(1), the physical erase unit 420(1), the physical erase unit 430(1), and the physical erase unit 440 in parallel through the data buses 316, 326, 336, and 346. (1). The physical erasure unit 410(1), the physical erasure unit 420(1), the physical erasure unit 430(1) and the physical erasure unit 440(1) are respectively located in different memory sub-modules. As another example, taking the physical erasure unit group composed of the physical erasure unit 410(0), the physical erasure unit 420(0), the physical erasure unit 430(0), and the physical erasure unit 440(0) as an example, The memory management circuit 502 may write data to the physical erase unit 410(0), the physical erase unit 420(0), the physical erase unit 430(0) and the physical erase unit in parallel through the data buses 316, 326, 336 and 346. Divide unit 440(0). The physical erasure unit 410(0), the physical erasure unit 420(0), the physical erasure unit 430(0) and the physical erasure unit 440(0) are respectively located in different memory sub-modules.

特别是,在本实施例中,为了方便于管理,同一个实体抹除单元组中的多个实体抹除单元会对应至一逻辑地址-实体地址映射表中一相同的索引码,不同的实体抹除单元组对应至不同的索引码。例如,以实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)所构成的实体抹除单元组为例,实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)会对应至逻辑地址-实体地址映射表中一相同的索引码,此索引码的值例如是「001」。再例如,以实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)所构成的实体抹除单元组为例,实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)会对应至逻辑地址-实体地址映射表中一相同的索引码,此索引码的值例如是「002」。其他的实体抹除单元组亦有相类似的情形,在此不再赘述。In particular, in this embodiment, in order to facilitate management, multiple physical erasure units in the same physical erasure unit group will correspond to the same index code in a logical address-physical address mapping table. Different entities The erasure unit groups correspond to different index codes. For example, taking the physical erasure unit group composed of the physical erasure unit 410(0), the physical erasure unit 420(0), the physical erasure unit 430(0) and the physical erasure unit 440(0) as an example, the physical erasure unit group The erasure unit 410(0), the physical erasure unit 420(0), the physical erasure unit 430(0) and the physical erasure unit 440(0) will correspond to the same index code in the logical address-physical address mapping table , the value of this index code is "001", for example. As another example, taking the physical erasure unit group composed of the physical erasure unit 410(1), the physical erasure unit 420(1), the physical erasure unit 430(1), and the physical erasure unit 440(1) as an example, The physical erasure unit 410(1), the physical erasure unit 420(1), the physical erasure unit 430(1) and the physical erasure unit 440(1) will correspond to the same index in the logical address-physical address mapping table code, the value of this index code is for example "002". Other entity erasure unit groups also have similar situations, which will not be described again here.

需注意的是,一般来说,为了增加写入效率,通常存储器管理电路502会以平行(parallel)方式将数据通过数据总线316、326、336与346写入至第一、第二、第三与第四存储器子模块310、320、330与340。例如,存储器管理电路502会通过数据总线316、326、336与346平行地将数据写入上述实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)所构成的实体抹除单元组中。而在平行写入的过程中,假设用于写入的数据量刚好等于一个实体抹除单元组所能存储的数据量(即,四个实体抹除单元所能存储的数据量)时,实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)通常会在某一时间点同时地被数据写满。It should be noted that, generally speaking, in order to increase writing efficiency, the memory management circuit 502 usually writes data to the first, second, and third bus terminals through the data buses 316, 326, 336, and 346 in a parallel manner. and fourth memory sub-modules 310, 320, 330 and 340. For example, the memory management circuit 502 writes data in parallel to the above-mentioned physical erasure unit 410(1), physical erasure unit 420(1), and physical erasure unit 430(1) through the data buses 316, 326, 336, and 346. In the physical erasure unit group formed with the physical erasure unit 440(1). In the process of parallel writing, it is assumed that the amount of data used for writing is exactly equal to the amount of data that can be stored by one physical erasure unit group (that is, the amount of data that can be stored by four physical erasure units). The erasure unit 410(1), the physical erasure unit 420(1), the physical erasure unit 430(1), and the physical erasure unit 440(1) are usually filled with data simultaneously at a certain point in time.

假设之后存储器管理电路502因故需对实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)所构成的实体抹除单元组执行一抹除操作时(例如,执行有效数据合并或其他操作)时,存储器管理电路502通常会同时地对实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)执行抹除操作。也就是说,在现有技术中,为了维持平行写入的效率,通常是以一个实体抹除单元组为单位执行抹除操作以释放一个实体抹除单元组的空间并作为后续的平行写入之用。It is assumed that the memory management circuit 502 needs to perform physical erasure of the physical erasure unit 410(1), the physical erasure unit 420(1), the physical erasure unit 430(1), and the physical erasure unit 440(1) for some reason. When the erase unit group performs an erase operation (for example, performing valid data merging or other operations), the memory management circuit 502 usually simultaneously performs the physical erase unit 410(1), the physical erase unit 420(1), and the physical erase unit 410(1). The erase unit 430(1) and the physical erase unit 440(1) perform the erase operation. That is to say, in the prior art, in order to maintain the efficiency of parallel writing, the erasing operation is usually performed in units of one physical erasing unit group to release the space of one physical erasing unit group and use it as a subsequent parallel writing Use.

在此情况下,由于可复写式非易失性存储器406中的四个存储器子模块皆被用来执行抹除操作,假设此时主机系统11持续下达多个写入指令,则来自主机系统11的数据并无法被写入可复写式非易失性存储器406中而需被暂存在缓冲存储器510中。然而,由于缓冲存储器510的空间有限,在抹除操作的执行时间越长且主机系统11持续下达写入指令的情况下,需要容量较大的缓冲存储器510才能暂存来自主机系统11的数据。因此,如何避免可复写式非易失性存储器406中的所有的存储器子模块同时被用来执行抹除操作,是本领域技术人员所欲解决的问题之一。In this case, since the four memory sub-modules in the rewritable non-volatile memory 406 are all used to perform the erase operation, assuming that the host system 11 continues to issue multiple write instructions at this time, the host system 11 The data cannot be written into the rewritable non-volatile memory 406 but needs to be temporarily stored in the buffer memory 510 . However, due to the limited space of the buffer memory 510 , when the erase operation takes longer and the host system 11 continues to issue write instructions, a buffer memory 510 with a larger capacity is required to temporarily store data from the host system 11 . Therefore, how to prevent all memory sub-modules in the rewritable non-volatile memory 406 from being used to perform erasure operations at the same time is one of the problems that those skilled in the art want to solve.

图7是根据本发明一范例实施例所示出的数据抹除方法的流程图。FIG. 7 is a flow chart of a data erasure method according to an exemplary embodiment of the present invention.

请参照图7,假设需执行抹除操作时,在步骤S701中,存储器管理电路502从可复写式非易失性存储器406中的多个实体抹除单元组中选择一实体抹除单元组(亦称为,第一实体抹除单元组)。之后,在步骤S703中,存储器管理电路502会对前述的第一实体抹除单元组执行抹除操作。特别是,第一实体抹除单元组包括多个实体抹除单元(亦称为,第一实体抹除单元),且在同一时间点中被用来执行抹除操作的第一实体抹除单元中的至少一实体抹除单元(亦称为,第二实体抹除单元)的数量不同于第一实体抹除单元的数量。Referring to FIG. 7 , assuming that an erasure operation needs to be performed, in step S701 , the memory management circuit 502 selects a physical erasure unit group from a plurality of physical erasure unit groups in the rewritable non-volatile memory 406 ( Also known as, first physical erasure unit group). Thereafter, in step S703, the memory management circuit 502 performs an erasure operation on the aforementioned first physical erasure unit group. In particular, the first physical erasure unit group includes a plurality of physical erasure units (also referred to as first physical erasure units), and the first physical erasure unit is used to perform the erasure operation at the same point in time. The number of at least one physical erasing unit (also referred to as the second physical erasing unit) in is different from the number of the first physical erasing unit.

需说明的是,在本实施例中,由于一个实体抹除单元组中的多个实体抹除单元分别是属于不同的存储器子模块,而在本发明的数据抹除方法中,由于同一时间点不会对一实体抹除单元组中的所有实体抹除单元执行抹除操作,因此于同一时间点并非所有的存储器子模块皆被用来执行抹除操作。此时当主机系统11仍持续下达写入指令时,则来自主机系统11的数据可以被写入可复写式非易失性存储器406中而不需被暂存在缓冲存储器510中等待抹除操作的完成。藉此,本发明的数据抹除方法可以不使用容量较大的缓冲存储器510并且避免可复写式非易失性存储器406中的所有的存储器子模块同时被用来执行抹除操作所造成的问题。It should be noted that in this embodiment, since multiple physical erasure units in a physical erasure unit group belong to different memory sub-modules respectively, in the data erasure method of the present invention, since the same time point The erase operation is not performed on all physical erase units in a physical erase unit group, so not all memory sub-modules are used to perform the erase operation at the same point in time. At this time, when the host system 11 continues to issue write instructions, the data from the host system 11 can be written into the rewritable non-volatile memory 406 without being temporarily stored in the buffer memory 510 waiting for an erasure operation. Finish. Thereby, the data erasing method of the present invention does not need to use the buffer memory 510 with a large capacity and avoids the problem caused by all memory sub-modules in the rewritable non-volatile memory 406 being used to perform erasing operations at the same time. .

以下以多个实施例来描述本发明的数据抹除方法。The data erasure method of the present invention is described below with multiple embodiments.

[第一实施例][First Embodiment]

图8A、图8B、图9A、图9B、图10A、图10B、图11A、图11B、图12A与图12B是根据本发明第一范例实施例所示出的数据抹除方法的范例的示意图。8A, 8B, 9A, 9B, 10A, 10B, 11A, 11B, 12A and 12B are schematic diagrams of an example of a data erasure method according to the first exemplary embodiment of the present invention. .

首先,请参照图8A与图8B,在此将实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)所构成的实体抹除单元组称为“第一实体抹除单元组”,且第一实体抹除单元组所拥有的多个实体抹除单元可以称为“第一实体抹除单元”。此外,在此将实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)所构成的实体抹除单元组称为“第二实体抹除单元组”,且第二实体抹除单元组所拥有的多个实体抹除单元可以称为“第三实体抹除单元”。First, please refer to FIG. 8A and FIG. 8B. Here, the physical erasure unit 410(1), the physical erasure unit 420(1), the physical erasure unit 430(1), and the physical erasure unit 440(1) are constituted. The physical erasure unit group is called the "first physical erasure unit group", and the multiple physical erasure units owned by the first physical erasure unit group may be called the "first physical erasure unit". In addition, here, the physical erasure unit group composed of the physical erasure unit 410(0), the physical erasure unit 420(0), the physical erasure unit 430(0), and the physical erasure unit 440(0) is called "Second physical erasure unit group", and the plurality of physical erasure units owned by the second physical erasure unit group may be called "third physical erasure unit".

在第一实施例的初始状态中,第二实体抹除单元组的实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)尚未存储数据,而第一实体抹除单元组的实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)存储数据OD1~OD16。如图8B所示,实体抹除单元410(1)的第1~4个实体程序化单元分别存储数据OD1、数据OD5、数据OD9与数据OD13。实体抹除单元420(1)的第1~4个实体程序化单元分别存储数据OD2、数据OD6、数据OD10与数据OD14。实体抹除单元430(1)的第1~4个实体程序化单元分别存储数据OD3、数据OD7、数据OD11与数据OD15。实体抹除单元440(1)的第1~4个实体程序化单元分别存储数据OD4、数据OD8、数据OD12与数据OD16。In the initial state of the first embodiment, the physical erasure unit 410(0), the physical erasure unit 420(0), the physical erasure unit 430(0) and the physical erasure unit 440 of the second physical erasure unit group (0) No data has been stored, and the physical erasure unit 410(1), the physical erasure unit 420(1), the physical erasure unit 430(1) and the physical erasure unit 440(1) of the first physical erasure unit group ) stores data OD1~OD16. As shown in FIG. 8B , the first to fourth physical programming units of the physical erasing unit 410(1) respectively store data OD1, data OD5, data OD9 and data OD13. The first to fourth physical programming units of the physical erasing unit 420(1) respectively store data OD2, data OD6, data OD10 and data OD14. The first to fourth physical programming units of the physical erasing unit 430(1) respectively store data OD3, data OD7, data OD11 and data OD15. The first to fourth physical programming units of the physical erasure unit 440(1) respectively store data OD4, data OD8, data OD12 and data OD16.

由于实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)已存储数据OD1~OD16,假设存储器管理电路502因故需对实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)进行抹除操作,在本实施例中,存储器管理电路502会将对前述多个实体抹除单元所执行的抹除操作分散在写入操作中执行。Since the physical erasure unit 410(1), the physical erasure unit 420(1), the physical erasure unit 430(1), and the physical erasure unit 440(1) have stored data OD1˜OD16, it is assumed that the memory management circuit 502 is It is necessary to perform erasing operations on the physical erasing unit 410(1), the physical erasing unit 420(1), the physical erasing unit 430(1), and the physical erasing unit 440(1). In this embodiment, the memory management The circuit 502 distributes the erasing operations performed on the plurality of physical erasing units into writing operations.

更详细来说,请同时参照图9A与图9B,假设之后主机系统11下达写入指令以将数据ND1~ND4写入至可复写式非易失性存储器10中。由于第二实体抹除单元组尚未存储数据,故存储器管理电路502可以选择第二实体抹除单元组用于写入。之后,存储器管理电路502可以根据主机系统11下达的写入指令对第二实体抹除单元组执行一写入操作。例如,存储器管理电路502可以根据主机系统11下达的写入指令先将数据ND1~ND4平行地写入至第二实体抹除单元组中实体抹除单元410(0)的第1个实体程序化单元、实体抹除单元420(0)的第1个实体程序化单元、实体抹除单元430(0)的第1个实体程序化单元以及实体抹除单元440(0)的第1个实体程序化单元中。In more detail, please refer to FIG. 9A and FIG. 9B at the same time. It is assumed that the host system 11 then issues a write command to write the data ND1 to ND4 into the rewritable non-volatile memory 10 . Since the second physical erasure unit group has not yet stored data, the memory management circuit 502 may select the second physical erasure unit group for writing. Afterwards, the memory management circuit 502 may perform a write operation on the second physical erasure unit group according to the write instruction issued by the host system 11 . For example, the memory management circuit 502 may first write the data ND1 to ND4 in parallel to the first physical program of the physical erasure unit 410(0) in the second physical erasure unit group according to the write instruction issued by the host system 11. unit, the first physical programming unit of the physical erasure unit 420(0), the first physical programming unit of the physical erasure unit 430(0), and the first physical program of the physical erasure unit 440(0) in the unit.

此时,存储器管理电路502会判断第二实体抹除单元组中所存储的数据量是否达到一门槛值(亦称为,第一门槛值)。在本范例中,假设第一门槛值为一个实体抹除单元组中可存储的数据量的四分之一,然而本发明并不用于限定第一门槛值的确切数值。At this time, the memory management circuit 502 determines whether the amount of data stored in the second physical erasure unit group reaches a threshold (also referred to as the first threshold). In this example, it is assumed that the first threshold is one quarter of the amount of data that can be stored in a physical erasure unit group. However, the present invention is not used to limit the exact value of the first threshold.

由于图9A中第二实体抹除单元组中含有16个实体程序化单元,而此些实体程序化单元中有4个实体程序化单元存储数据ND1~ND4,故存储器管理电路502会判断第二实体抹除单元组中所存储的数据量达到第一门槛值。此时,存储器管理电路502可以对第一实体抹除单元组的实体抹除单元410(1)(亦称为,第四实体抹除单元)执行抹除操作,如图9B所示。Since the second physical erasure unit group in FIG. 9A contains 16 physical programming units, and 4 of these physical programming units store data ND1˜ND4, the memory management circuit 502 determines that the second physical erasing unit group The amount of data stored in the physical erasure unit group reaches the first threshold. At this time, the memory management circuit 502 may perform an erasure operation on the physical erasure unit 410(1) of the first physical erasure unit group (also known as the fourth physical erasure unit), as shown in FIG. 9B.

之后,请同时参照图10A与图10B,假设之后主机系统11下达写入指令以将数据ND5~ND8写入至可复写式非易失性存储器10中。存储器管理电路502可以根据前述主机系统11下达的写入指令对第二实体抹除单元组再次执行写入操作。例如,存储器管理电路502可以根据主机系统11下达的写入指令将数据ND5~ND8平行地写入至第二实体抹除单元组中实体抹除单元410(0)的第2个实体程序化单元、实体抹除单元420(0)的第2个实体程序化单元、实体抹除单元430(0)的第2个实体程序化单元以及实体抹除单元440(0)的第2个实体程序化单元中。After that, please refer to FIG. 10A and FIG. 10B at the same time. It is assumed that the host system 11 then issues a write command to write the data ND5 to ND8 into the rewritable non-volatile memory 10 . The memory management circuit 502 may perform a write operation on the second physical erasure unit group again according to the write instruction issued by the host system 11 . For example, the memory management circuit 502 may write the data ND5˜ND8 in parallel to the second physical programming unit of the physical erasing unit 410(0) in the second physical erasing unit group according to the write command issued by the host system 11 , the second physical programming unit of the physical erasure unit 420(0), the second physical programming unit of the physical erasure unit 430(0), and the second physical programming unit of the physical erasure unit 440(0). in the unit.

此时,存储器管理电路502会判断第二实体抹除单元组中所存储的数据量是否达到另一门槛值(亦称为,第二门槛值)。在本范例中,假设第二门槛值为一个实体抹除单元组中可存储的数据量的二分之一,然而本发明并不用于限定第二门槛值的确切数值。At this time, the memory management circuit 502 determines whether the amount of data stored in the second physical erasure unit group reaches another threshold (also called a second threshold). In this example, it is assumed that the second threshold is half the amount of data that can be stored in a physical erasure unit group. However, the present invention is not used to limit the exact value of the second threshold.

由于图10A中第二实体抹除单元组中含有16个实体程序化单元,而此些实体程序化单元中有8个实体程序化单元存储数据ND1~ND8,故存储器管理电路502会判断第二实体抹除单元组中所存储的数据量达到第二门槛值。此时,存储器管理电路502可以对第一实体抹除单元组的实体抹除单元420(1)(亦称为,第五实体抹除单元)执行抹除操作,如图10B所示。Since the second physical erasure unit group in FIG. 10A contains 16 physical programming units, and 8 of these physical programming units store data ND1˜ND8, the memory management circuit 502 determines that the second physical erasing unit group The amount of data stored in the physical erasure unit group reaches the second threshold. At this time, the memory management circuit 502 may perform an erasure operation on the physical erasure unit 420(1) of the first physical erasure unit group (also known as the fifth physical erasure unit), as shown in FIG. 10B.

之后,请同时参照图11A与图11B,假设之后主机系统11下达写入指令以将数据ND9~ND12写入至可复写式非易失性存储器10中。存储器管理电路502可以根据前述主机系统11下达的写入指令对第二实体抹除单元组再次执行写入操作。例如,存储器管理电路502可以根据主机系统11下达的写入指令将数据ND9~ND12平行地写入至第二实体抹除单元组中实体抹除单元410(0)的第3个实体程序化单元、实体抹除单元420(0)的第3个实体程序化单元、实体抹除单元430(0)的第3个实体程序化单元以及实体抹除单元440(0)的第3个实体程序化单元中。After that, please refer to FIG. 11A and FIG. 11B at the same time, assuming that the host system 11 then issues a write command to write the data ND9 to ND12 into the rewritable non-volatile memory 10 . The memory management circuit 502 may perform a write operation on the second physical erasure unit group again according to the write instruction issued by the host system 11 . For example, the memory management circuit 502 may write the data ND9 to ND12 in parallel to the third physical programming unit of the physical erasing unit 410(0) in the second physical erasing unit group according to the write command issued by the host system 11. , the third physical programming unit of the physical erasure unit 420(0), the third physical programming unit of the physical erasure unit 430(0), and the third physical programming unit of the physical erasure unit 440(0). in the unit.

此时,存储器管理电路502会判断第二实体抹除单元组中所存储的数据量是否达到另一门槛值(亦称为,第三门槛值)。在本范例中,假设第三门槛值为一个实体抹除单元组中可存储的数据量的四分之三,然而本发明并不用于限定第三门槛值的确切数值。At this time, the memory management circuit 502 determines whether the amount of data stored in the second physical erasure unit group reaches another threshold (also called a third threshold). In this example, it is assumed that the third threshold is three-quarters of the amount of data that can be stored in a physical erasure unit group. However, the present invention is not used to limit the exact value of the third threshold.

由于图11A中第二实体抹除单元组中含有16个实体程序化单元,而此些实体程序化单元中有12个实体程序化单元存储数据ND1~ND12,故存储器管理电路502会判断第二实体抹除单元组中所存储的数据量达到第三门槛值。此时,存储器管理电路502可以对第一实体抹除单元组的实体抹除单元430(1)执行抹除操作,如图11B所示。Since the second physical erasure unit group in FIG. 11A contains 16 physical programming units, and 12 of these physical programming units store data ND1˜ND12, the memory management circuit 502 determines that the second physical erasing unit group The amount of data stored in the physical erasure unit group reaches the third threshold. At this time, the memory management circuit 502 may perform an erasure operation on the physical erasure unit 430(1) of the first physical erasure unit group, as shown in FIG. 11B.

之后,请同时参照图12A与图12B,假设之后主机系统11下达写入指令以将数据ND13~ND16写入至可复写式非易失性存储器10中。存储器管理电路502可以根据前述主机系统11下达的写入指令对第二实体抹除单元组再次执行写入操作。例如,存储器管理电路502可以根据主机系统11下达的写入指令将数据ND13~ND16平行地写入至第二实体抹除单元组中实体抹除单元410(0)的第4个实体程序化单元、实体抹除单元420(0)的第4个实体程序化单元、实体抹除单元430(0)的第4个实体程序化单元以及实体抹除单元440(0)的第4个实体程序化单元中。After that, please refer to FIG. 12A and FIG. 12B at the same time, assuming that the host system 11 then issues a write command to write the data ND13 to ND16 into the rewritable non-volatile memory 10 . The memory management circuit 502 may perform a write operation on the second physical erasure unit group again according to the write instruction issued by the host system 11 . For example, the memory management circuit 502 may write the data ND13 to ND16 in parallel to the fourth physical programming unit of the physical erasing unit 410(0) in the second physical erasing unit group according to the write command issued by the host system 11. , the fourth physical programming unit of the physical erasure unit 420(0), the fourth physical programming unit of the physical erasure unit 430(0), and the fourth physical programming unit of the physical erasure unit 440(0). in the unit.

此时,存储器管理电路502会判断第二实体抹除单元组中所存储的数据量是否达到另一门槛值(亦称为,第四门槛值)。在本范例中,假设第四门槛值为一个实体抹除单元组可存储的数据量,然而本发明并不用于限定第四门槛值的确切数值。At this time, the memory management circuit 502 determines whether the amount of data stored in the second physical erasure unit group reaches another threshold (also known as the fourth threshold). In this example, it is assumed that the fourth threshold is the amount of data that can be stored by a physical erasure unit group. However, the present invention is not used to limit the exact value of the fourth threshold.

由于图12A中第二实体抹除单元组中含有16个实体程序化单元,而此些实体程序化单元中有16个实体程序化单元存储数据ND1~ND16,故存储器管理电路502会判断第二实体抹除单元组中所存储的数据量达到第四门槛值。此时,存储器管理电路502可以对第一实体抹除单元组的实体抹除单元440(1)执行抹除操作,如图12B所示。Since the second physical erasure unit group in FIG. 12A contains 16 physical programming units, and 16 of these physical programming units store data ND1˜ND16, the memory management circuit 502 determines that the second physical erasing unit group The amount of data stored in the physical erasure unit group reaches the fourth threshold. At this time, the memory management circuit 502 may perform an erasure operation on the physical erasure unit 440(1) of the first physical erasure unit group, as shown in FIG. 12B.

换句话说,在本发明的数据写入方法中,当第二实体抹除单元组中所存储的数据量达到第二实体抹除单元组可用以存储数据的容量时(即,第二实体抹除单元组中的16个实体程序化单元皆已被写入数据时),第一实体抹除单元组的实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)中所存储的数据皆已被抹除。因此,在完成前述对应于数据ND1~ND16的写入操作后,由于第二实体抹除单元组会恢复为闲置状态,故当主机系统11持续下达写入指令时,存储器管理电路502可以直接地对第二实体抹除单元组平行地写入。In other words, in the data writing method of the present invention, when the amount of data stored in the second physical erasure unit group reaches the capacity of the second physical erasure unit group that can be used to store data (i.e., the second physical erasure unit group When all 16 physical programming units in the erasure unit group have been written with data), the physical erasure unit 410(1), the physical erasure unit 420(1), and the physical erasure unit of the first physical erasure unit group 430(1) and the data stored in the physical erasure unit 440(1) have been erased. Therefore, after completing the aforementioned write operations corresponding to data ND1 to ND16, since the second physical erasure unit group will return to the idle state, when the host system 11 continues to issue write instructions, the memory management circuit 502 can directly The second group of physical erase units is written in parallel.

在此需说明的是,在此可以将实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)中的第1个实体程序化单元称为“第一实体程序化单元”,并且将实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)中的第2个实体程序化单元称为“第二实体程序化单元”。特别是,在平行写入的过程中,在实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)中的第1个实体程序化单元皆先被程序化后,实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)中的第2个实体程序化单元才可以被程序化。It should be noted here that the first of the physical erasing unit 410(0), the physical erasing unit 420(0), the physical erasing unit 430(0) and the physical erasing unit 440(0) may be used here. Each physical programming unit is called a "first physical programming unit", and the physical erasing unit 410(0), the physical erasing unit 420(0), the physical erasing unit 430(0) and the physical erasing unit 440 are The second entity programming unit in (0) is called the "second entity programming unit". In particular, during the parallel writing process, the physical erasure unit 410(0), the physical erasure unit 420(0), the physical erasure unit 430(0), and the physical erasure unit 440(0) After one physical programming unit is programmed first, the physical erasing unit 410(0), the physical erasing unit 420(0), the physical erasing unit 430(0) and the physical erasing unit 440(0) Only the second entity programming unit can be programmed.

此外,假设前述的数据ND1~ND16为连续的数据。也就是说,数据ND1~ND16的数据依序为数据ND1~ND16。在前述的范例中,由于实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)所构成的实体抹除单元组被用来写入连续的数据ND1~ND16,故实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)所存储的数据所对应的多个逻辑地址为连续的。举例来说,实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)中的第1个实体程序化单元分别用以存储数据ND1~ND4,而数据ND1~ND4所对应的多个逻辑地址为连续的。In addition, it is assumed that the aforementioned data ND1 to ND16 are continuous data. In other words, the data of data ND1 to ND16 are data ND1 to ND16 in order. In the aforementioned example, the physical erasure unit group composed of the physical erasure unit 410(0), the physical erasure unit 420(0), the physical erasure unit 430(0), and the physical erasure unit 440(0) is used to write consecutive data ND1 to ND16, so the physical erase unit 410(0), the physical erase unit 420(0), the physical erase unit 430(0) and the physical erase unit 440(0) store The multiple logical addresses corresponding to the data are consecutive. For example, the first physical programming unit in the physical erasure unit 410(0), the physical erasure unit 420(0), the physical erasure unit 430(0) and the physical erasure unit 440(0) is respectively used. The data ND1 to ND4 are stored, and the multiple logical addresses corresponding to the data ND1 to ND4 are consecutive.

需注意的是,在前述将连续的数据ND1~ND16平行地写入实体抹除单元410(0)、实体抹除单元420(0)、实体抹除单元430(0)与实体抹除单元440(0)的过程当中,同一个实体抹除单元中的多个实体程序化单元所存储的数据彼此为不连续的。举例来说,以实体抹除单元430(0)(亦称为,第七实体抹除单元)为例,实体抹除单元430(0)的第1个实体程序化单元所存储的数据ND3所对应的逻辑地址与实体抹除单元430(0)的第2个实体程序化单元所存储的数据ND7所对应的逻辑地址为不连续的。然而,在实体抹除单元430(0)中,实体抹除单元430(0)的第1个实体程序化单元与实体抹除单元430(0)的第2个实体程序化单元实体上是连续地排列。其他的实体抹除单元也有相类似的现象,在此不再赘述。It should be noted that in the foregoing, continuous data ND1 to ND16 are written in parallel to the physical erasure unit 410(0), the physical erasure unit 420(0), the physical erasure unit 430(0) and the physical erasure unit 440. In the process of (0), the data stored in multiple physical programming units in the same physical erasure unit are discontinuous with each other. For example, taking the physical erasure unit 430(0) (also known as the seventh physical erasure unit) as an example, the data ND3 stored in the first physical programming unit of the physical erasure unit 430(0) is The corresponding logical address is discontinuous with the logical address corresponding to the data ND7 stored in the second physical programming unit of the physical erasing unit 430(0). However, in the physical erasure unit 430(0), the first physical programming unit of the physical erasure unit 430(0) and the second physical programming unit of the physical erasure unit 430(0) are physically continuous. arranged ground. Other entity erasure units also have similar phenomena, which will not be described again here.

通过前述方式,由于同一时间点存储器管理电路502不会对一实体抹除单元组中的所有实体抹除单元执行抹除操作,因此于同一时间点并非所有的存储器子模块皆被用来执行抹除操作。通过此方式,可以避免现有技术中同时对可复写式非易失性存储器406中的所有的存储器子模块同时执行抹除操作所造成的问题,并且可以有效地降低缓冲存储器510的容量。Through the aforementioned method, since the memory management circuit 502 will not perform the erase operation on all physical erasure units in a physical erasure unit group at the same time point, not all memory sub-modules are used to perform the erase operation at the same time point. delete operation. In this way, problems caused by simultaneously performing erasure operations on all memory sub-modules in the rewritable non-volatile memory 406 in the prior art can be avoided, and the capacity of the buffer memory 510 can be effectively reduced.

[第二实施例][Second Embodiment]

图13是根据本发明第二范例实施例所示出的数据抹除方法的范例的示意图。在此需说明的是,在本发明的第二实施例中,存储器管理电路502会调整对一实体抹除单元组中的多个实体抹除单元执行写入操作的顺序,藉此让该些实体抹除单元不会同时间地被写满数据。特别是,先被写满数据的实体抹除单元可以先被用来执行抹除操作,藉此避免现有技术中同时对可复写式非易失性存储器406中的所有的存储器子模块同时执行抹除操作所造成的问题。FIG. 13 is a schematic diagram of an example of a data erasure method according to a second exemplary embodiment of the present invention. It should be noted here that in the second embodiment of the present invention, the memory management circuit 502 adjusts the order in which write operations are performed on multiple physical erasure units in a physical erasure unit group, thereby allowing these The physical erase unit will not be filled with data at the same time. In particular, the physical erase unit that is filled with data first can be used to perform the erase operation first, thereby avoiding the simultaneous execution of all memory sub-modules in the rewritable non-volatile memory 406 in the prior art. Problems caused by erasure operations.

详细来说,请参照图13,在此假设对前述的第一实体抹除单元组进行写入。假设主机系统11下达写入指令以将数据ID1~ID8写入至可复写式非易失性存储器10中。存储器管理电路502可以根据前述主机系统11下达的写入指令对第一实体抹除单元组执行写入操作。特别是,不同于现有技术使用平行写入的方式,在本发明的第二实施例中,存储器管理电路502会调整对第一抹除单元中的多个第一实体抹除单元执行写入操作的顺序。例如,存储器管理电路502可以根据一算法或一查找表来获得对一实体抹除单元组中的多个实体抹除单元执行写入操作的顺序。特别是,本发明并不用于限制写入操作的顺序以及该顺序的产生与获得方式。Specifically, please refer to FIG. 13 , where it is assumed that the aforementioned first physical erasure unit group is written. Assume that the host system 11 issues a write command to write data ID1 to ID8 into the rewritable non-volatile memory 10 . The memory management circuit 502 may perform a write operation on the first physical erasure unit group according to the write instruction issued by the host system 11 . In particular, unlike the parallel writing method used in the prior art, in the second embodiment of the present invention, the memory management circuit 502 adjusts the writing to a plurality of first physical erasing units in the first erasing unit. The order of operations. For example, the memory management circuit 502 may obtain the order of performing write operations on multiple physical erasure units in a physical erasure unit group according to an algorithm or a lookup table. In particular, the present invention is not intended to limit the order of write operations and the manner in which the order is generated and obtained.

在此,假设存储器管理电路502根据算法或查找表所获得的写入操作的顺序依序为“实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)、实体抹除单元440(1)、实体抹除单元420(1)与实体抹除单元420(1)”。存储器管理电路502会根据此写入顺序以及前述的写入指令对实体抹除单元410(1)、实体抹除单元420(1)、实体抹除单元430(1)与实体抹除单元440(1)执行写入操作。更详细来说,存储器管理电路502会根据前述的写入顺序,将数据ID1写入至实体抹除单元410(1)、将数据ID2写入至实体抹除单元420(1)、将数据ID3写入至实体抹除单元410(1)、将数据ID4写入至实体抹除单元420(1)、将数据ID5写入至实体抹除单元430(1)、将数据ID6写入至实体抹除单元440(1)、将数据ID7写入至实体抹除单元420(1)以及将数据ID8写入至实体抹除单元420(1)中,结果如图13所示。Here, it is assumed that the order of write operations obtained by the memory management circuit 502 according to the algorithm or lookup table is "physical erasure unit 410(1), physical erasure unit 420(1), physical erasure unit 410(1). ), physical erasure unit 420(1), physical erasure unit 430(1), physical erasure unit 440(1), physical erasure unit 420(1) and physical erasure unit 420(1)". The memory management circuit 502 will perform operations on the physical erasure unit 410(1), the physical erasure unit 420(1), the physical erasure unit 430(1) and the physical erasure unit 440( 1) Perform a write operation. In more detail, the memory management circuit 502 writes data ID1 to the physical erasure unit 410(1), writes data ID2 to the physical erasure unit 420(1), and writes data ID3 to the physical erasure unit 420(1) according to the aforementioned writing sequence. Write to the physical erase unit 410(1), write data ID4 to the physical erase unit 420(1), write data ID5 to the physical erase unit 430(1), write data ID6 to the physical erase unit erase unit 440(1), write data ID7 to the physical erase unit 420(1), and write data ID8 into the physical erase unit 420(1). The result is as shown in FIG. 13 .

也就是说,在本发明的第二实施例中,当一实体程序化单元组中的一实体抹除单元(例如,实体抹除单元420(1))的存储空间被写满时,实体程序化单元组中其他至少一实体抹除单元尚有可使用的存储空间。特别是,先被写满数据的实体抹除单元可以先被用来执行抹除操作,藉此避免现有技术中同时对可复写式非易失性存储器406中的所有的存储器子模块同时执行抹除操作所造成的问题。That is to say, in the second embodiment of the present invention, when the storage space of a physical erasure unit (for example, the physical erasure unit 420(1)) in a physical programming unit group is filled, the physical program At least one other physical erasure unit in the unit group still has available storage space. In particular, the physical erase unit that is filled with data first can be used to perform the erase operation first, thereby avoiding the simultaneous execution of all memory sub-modules in the rewritable non-volatile memory 406 in the prior art. Problems caused by erasure operations.

基于上述,在本发明的数据抹除方法、存储器控制电路单元及存储器存储装置中,由于同一时间点不会对一实体抹除单元组中的所有实体抹除单元执行抹除操作,因此于同一时间点并非所有的存储器子模块皆被用来执行抹除操作。此时当主机系统仍持续下达写入指令时,则来自主机系统的数据可以被写入可复写式非易失性存储器中而不需被暂存在缓冲存储器中等待抹除操作的完成。藉此,本发明的数据抹除方法可以不使用容量较大的缓冲存储器并且避免可复写式非易失性存储器中的所有的存储器子模块同时被用来执行抹除操作所造成的问题。Based on the above, in the data erasure method, memory control circuit unit and memory storage device of the present invention, since the erasure operation will not be performed on all physical erasure units in a physical erasure unit group at the same time, therefore at the same time Not all memory sub-modules are used to perform erase operations at this point in time. At this time, when the host system continues to issue write instructions, the data from the host system can be written into the rewritable non-volatile memory without being temporarily stored in the buffer memory to wait for the completion of the erasure operation. Thereby, the data erasing method of the present invention does not use a buffer memory with a large capacity and avoids the problem caused by all memory sub-modules in the rewritable non-volatile memory being used to perform erasing operations at the same time.

虽然本发明已以实施例揭示如上,然其并非用以限定本发明,任何所属技术领域中技术人员,在不脱离本发明的精神和范围内,当可作些许的更改与润饰,故本发明的保护范围当视权利要求所界定的为准。Although the present invention has been disclosed above through embodiments, they are not intended to limit the present invention. Any person skilled in the art can make some modifications and modifications without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection shall be determined by the claims.

Claims (27)

1.一种数据抹除方法,用于可复写式非易失性存储器模块,所述可复写式非易失性存储器模块包括多个实体抹除单元组,所述多个实体抹除单元组中的每一个实体抹除单元组具有多个实体抹除单元,其特征在于,所述数据抹除方法包括:1. A data erasure method for a rewritable non-volatile memory module, the rewritable non-volatile memory module includes a plurality of physical erasure unit groups, the plurality of physical erasure unit groups Each physical erasure unit group in has multiple physical erasure units, characterized in that the data erasure method includes: 从所述多个实体抹除单元组中选择第一实体抹除单元组;Select a first physical erasure unit group from the plurality of physical erasure unit groups; 对所述第一实体抹除单元组执行抹除操作,其中所述第一实体抹除单元组包括多个第一实体抹除单元,且在同一时间点中被用来执行所述抹除操作的所述多个第一实体抹除单元中的至少一第二实体抹除单元的数量不同于所述多个第一实体抹除单元的数量;Perform an erasure operation on the first physical erasure unit group, wherein the first physical erasure unit group includes a plurality of first physical erasure units and is used to perform the erasure operation at the same point in time. The number of at least one second physical erasure unit among the plurality of first physical erasure units is different from the number of the plurality of first physical erasure units; 根据至少一写入指令对所述多个实体抹除单元组中的第二实体抹除单元组执行写入操作,其中所述第二实体抹除单元组包括多个第三实体抹除单元;Perform a write operation on a second physical erasure unit group among the plurality of physical erasure unit groups according to at least one write instruction, wherein the second physical erasure unit group includes a plurality of third physical erasure units; 当所述第二实体抹除单元组中所存储的数据量达到第一门槛值时,执行对所述第一实体抹除单元组执行所述抹除操作的步骤以对所述多个第一实体抹除单元中的第四实体抹除单元执行所述抹除操作;以及When the amount of data stored in the second physical erasing unit group reaches a first threshold, performing the step of performing the erasing operation on the first physical erasing unit group to erase the plurality of first physical erasing units. A fourth physical erasing unit among the physical erasing units performs the erasing operation; and 当所述第二实体抹除单元组中所存储的数据量达到第二门槛值时,执行对所述第一实体抹除单元组执行所述抹除操作的步骤以对所述多个第一实体抹除单元中的第五实体抹除单元执行所述抹除操作,When the amount of data stored in the second physical erasing unit group reaches a second threshold, performing the step of performing the erasing operation on the first physical erasing unit group to erase the plurality of first physical erasing units. The fifth physical erasing unit in the physical erasing unit performs the erasing operation, 其中所述第一门槛值小于所述第二门槛值。The first threshold value is smaller than the second threshold value. 2.根据权利要求1所述的数据抹除方法,其中当所述第二实体抹除单元组中所存储的数据量达到所述第二实体抹除单元组可用以存储数据的容量时,所述第一实体抹除单元组的所述多个第一实体抹除单元中所存储的数据皆已被抹除。2. The data erasing method according to claim 1, wherein when the amount of data stored in the second physical erasing unit group reaches the capacity of the second physical erasing unit group that can be used to store data, the The data stored in the plurality of first physical erasure units of the first physical erasure unit group have all been erased. 3.根据权利要求1所述的数据抹除方法,其中所述可复写式非易失性存储器模块包括多个存储器子模块,所述多个存储器子模块分别通过多个通道连接存储器控制电路单元,所述多个实体抹除单元组中的每一个实体抹除单元组的所述多个实体抹除单元分别属于所述多个存储器子模块中不同的存储器子模块。3. The data erasing method according to claim 1, wherein the rewritable non-volatile memory module includes a plurality of memory sub-modules, and the plurality of memory sub-modules are respectively connected to the memory control circuit unit through a plurality of channels. , the plurality of physical erasing units of each of the plurality of physical erasing unit groups respectively belong to different memory sub-modules among the plurality of memory sub-modules. 4.根据权利要求3所述的数据抹除方法,其中所述存储器控制电路单元通过所述多个通道对所述第二实体抹除单元组中的所述多个第三实体抹除单元执行所述写入操作以将多个数据平行地写入所述多个第三实体抹除单元中。4. The data erasing method according to claim 3, wherein the memory control circuit unit performs on the plurality of third physical erasing units in the second physical erasing unit group through the plurality of channels. The writing operation is to write a plurality of data into the plurality of third physical erasing units in parallel. 5.根据权利要求1所述的数据抹除方法,其中在对所述第一实体抹除单元组执行所述抹除操作之前,所述方法还包括:5. The data erasing method according to claim 1, wherein before performing the erasing operation on the first physical erasing unit group, the method further comprises: 调整对所述多个第一实体抹除单元执行所述写入操作的顺序;以及Adjust the order in which the write operations are performed on the plurality of first physical erasure units; and 根据写入顺序以及所述至少一写入指令对所述多个第一实体抹除单元执行所述写入操作以使得当所述第二实体抹除单元的存储空间被写满时,所述多个第一实体抹除单元中的至少一第六实体抹除单元尚有可使用的存储空间。The writing operation is performed on the plurality of first physical erasing units according to the writing sequence and the at least one writing instruction, so that when the storage space of the second physical erasing unit is full, the writing operation is performed on the plurality of first physical erasing units. At least one sixth physical erasing unit among the plurality of first physical erasing units still has available storage space. 6.根据权利要求1所述的数据抹除方法,其中在所述多个实体抹除单元组中,同一个实体抹除单元组中的所述多个实体抹除单元对应至一逻辑地址-实体地址映射表中相同的索引码。6. The data erasing method according to claim 1, wherein among the plurality of physical erasing unit groups, the plurality of physical erasing units in the same physical erasing unit group correspond to a logical address - The same index code in the entity address mapping table. 7.根据权利要求1所述的数据抹除方法,其中所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括第一实体程序化单元以及第二实体程序化单元,7. The data erasing method according to claim 1, wherein each of the plurality of first physical erasing units in the first physical erasing unit group includes a first physical programming unit and a second physical program. ization unit, 当每一所述多个第一实体抹除单元的所述第一实体程序化单元都先被程序化后,每一所述多个第一实体抹除单元的所述第二实体程序化单元会才可以被程序化。After the first physical programming unit of each of the first physical erasing units is programmed first, the second physical programming unit of each of the first physical erasing units Only then can it be programmed. 8.根据权利要求1所述的数据抹除方法,其中所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括第一实体程序化单元,8. The data erasure method according to claim 1, wherein each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit, 当所述第一实体抹除单元组被写入连续数据时,所述第一实体抹除单元组中的所述第一实体抹除单元的所述第一实体程序化单元所存储的多个数据所对应的多个逻辑地址为连续的。When the first physical erasure unit group is written with continuous data, the plurality of physical programming units stored in the first physical erasure unit in the first physical erasure unit group Multiple logical addresses corresponding to data are consecutive. 9.根据权利要求1所述的数据抹除方法,其中所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括第一实体程序化单元以及第二实体程序化单元,9. The data erasing method according to claim 1, wherein each of the plurality of first physical erasing units in the first physical erasing unit group includes a first physical programming unit and a second physical program. ization unit, 当所述第一实体抹除单元组被写入连续数据时,所述第一实体抹除单元组中的第七实体抹除单元的所述第一实体程序化单元所存储的数据所对应的逻辑地址与所述第七实体抹除单元的所述第二实体程序化单元所存储的数据所对应的逻辑地址为不连续的,且所述第七实体抹除单元的所述第一实体程序化单元与所述第二实体程序化单元实体上是连续地排列。When the first physical erasure unit group is written with continuous data, the data stored in the first physical programming unit of the seventh physical erasure unit in the first physical erasure unit group corresponds to The logical address corresponding to the data stored in the second physical programming unit of the seventh physical erasing unit is discontinuous, and the first physical program of the seventh physical erasing unit The programming unit and the second physical programming unit are physically continuously arranged. 10.一种存储器控制电路单元,用于控制可复写式非易失性存储器模块,其中所述可复写式非易失性存储器模块包括多个实体抹除单元组,所述多个实体抹除单元组中的每一个实体抹除单元组具有多个实体抹除单元,其特征在于,所述存储器控制电路单元包括:10. A memory control circuit unit for controlling a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module includes a plurality of physical erasure unit groups, and the plurality of physical erasure units Each physical erasure unit group in the unit group has multiple physical erasure units, characterized in that the memory control circuit unit includes: 主机接口,用以电性连接至主机系统;Host interface, used to electrically connect to the host system; 存储器接口,用以电性连接至所述可复写式非易失性存储器模块;A memory interface for electrically connecting to the rewritable non-volatile memory module; 存储器管理电路,电性连接至所述主机接口以及所述存储器接口,A memory management circuit electrically connected to the host interface and the memory interface, 其中所述存储器管理电路用以从所述多个实体抹除单元组中选择第一实体抹除单元组,wherein the memory management circuit is used to select a first physical erasure unit group from the plurality of physical erasure unit groups, 其中所述存储器管理电路还用以对所述第一实体抹除单元组执行抹除操作,其中所述第一实体抹除单元组包括多个第一实体抹除单元,且在同一时间点中被用来执行所述抹除操作的所述多个第一实体抹除单元中的至少一第二实体抹除单元的数量不同于所述多个第一实体抹除单元的数量,The memory management circuit is further used to perform an erasure operation on the first physical erasure unit group, wherein the first physical erasure unit group includes a plurality of first physical erasure units, and at the same point in time The number of at least one second physical erasing unit among the plurality of first physical erasing units used to perform the erasing operation is different from the number of the plurality of first physical erasing units, 其中所述存储器管理电路还用以根据至少一写入指令对所述多个实体抹除单元组中的第二实体抹除单元组执行写入操作,其中所述第二实体抹除单元组包括多个第三实体抹除单元,The memory management circuit is further configured to perform a write operation on a second physical erasure unit group among the plurality of physical erasure unit groups according to at least one write instruction, wherein the second physical erasure unit group includes Multiple third entity erasure units, 当所述第二实体抹除单元组中所存储的数据量达到第一门槛值时,所述存储器管理电路还用以执行对所述第一实体抹除单元组执行所述抹除操作的运作以对所述多个第一实体抹除单元中的第四实体抹除单元执行所述抹除操作,When the amount of data stored in the second physical erasure unit group reaches a first threshold, the memory management circuit is further configured to perform an operation of performing the erase operation on the first physical erasure unit group. to perform the erasing operation on a fourth physical erasing unit among the plurality of first physical erasing units, 当所述第二实体抹除单元组中所存储的数据量达到第二门槛值时,所述存储器管理电路还用以执行对所述第一实体抹除单元组执行所述抹除操作的运作以对所述多个第一实体抹除单元中的第五实体抹除单元执行所述抹除操作,When the amount of data stored in the second physical erasure unit group reaches a second threshold, the memory management circuit is also used to perform the operation of performing the erase operation on the first physical erasure unit group. to perform the erasing operation on a fifth physical erasing unit among the plurality of first physical erasing units, 其中所述第一门槛值小于所述第二门槛值。The first threshold value is smaller than the second threshold value. 11.根据权利要求10所述的存储器控制电路单元,其中当所述第二实体抹除单元组中所存储的数据量达到所述第二实体抹除单元组可用以存储数据的容量时,所述第一实体抹除单元组的所述多个第一实体抹除单元中所存储的数据皆已被抹除。11. The memory control circuit unit according to claim 10, wherein when the amount of data stored in the second physical erasure unit group reaches a capacity of the second physical erasure unit group that can be used to store data, the The data stored in the plurality of first physical erasure units of the first physical erasure unit group have all been erased. 12.根据权利要求10所述的存储器控制电路单元,其中所述可复写式非易失性存储器模块包括多个存储器子模块,所述多个存储器子模块分别通过多个通道连接所述存储器管理电路,所述多个实体抹除单元组中的每一个实体抹除单元组的所述多个实体抹除单元分别属于所述多个存储器子模块中不同的存储器子模块。12. The memory control circuit unit according to claim 10, wherein the rewritable non-volatile memory module includes a plurality of memory sub-modules, and the plurality of memory sub-modules are respectively connected to the memory management through a plurality of channels. In a circuit, the plurality of physical erasing units of each of the plurality of physical erasing unit groups respectively belong to different memory sub-modules among the plurality of memory sub-modules. 13.根据权利要求12所述的存储器控制电路单元,其中所述存储器管理电路通过所述多个通道对所述第二实体抹除单元组中的所述多个第三实体抹除单元执行所述写入操作以将多个数据平行地写入所述多个第三实体抹除单元中。13. The memory control circuit unit according to claim 12, wherein the memory management circuit performs the plurality of third physical erasure units in the second physical erasure unit group through the plurality of channels. The writing operation is to write a plurality of data into the plurality of third physical erasing units in parallel. 14.根据权利要求10所述的存储器控制电路单元,其中在对所述第一实体抹除单元组执行所述抹除操作之前,14. The memory control circuit unit of claim 10, wherein before performing the erase operation on the first physical erase unit group, 所述存储器管理电路还用以调整对所述多个第一实体抹除单元执行所述写入操作的顺序,The memory management circuit is also used to adjust the order in which the write operations are performed on the plurality of first physical erasure units, 所述存储器管理电路还用以根据写入顺序以及所述至少一写入指令对所述多个第一实体抹除单元执行所述写入操作以使得当所述第二实体抹除单元的存储空间被写满时,所述多个第一实体抹除单元中的至少一第六实体抹除单元尚有可使用的存储空间。The memory management circuit is further configured to perform the write operation on the plurality of first physical erasure units according to the writing sequence and the at least one write instruction, so that when the storage of the second physical erasure unit When the space is full, at least one sixth physical erasing unit among the plurality of first physical erasing units still has usable storage space. 15.根据权利要求10所述的存储器控制电路单元,其中在所述多个实体抹除单元组中,同一个实体抹除单元组中的所述多个实体抹除单元对应至逻辑地址-实体地址映射表中相同的索引码。15. The memory control circuit unit according to claim 10, wherein among the plurality of physical erasure unit groups, the plurality of physical erasure units in the same physical erasure unit group correspond to a logical address-physical The same index code in the address mapping table. 16.根据权利要求10所述的存储器控制电路单元,其中所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括第一实体程序化单元以及第二实体程序化单元,16. The memory control circuit unit of claim 10, wherein each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit and a second physical program ization unit, 当每一所述多个第一实体抹除单元的所述第一实体程序化单元都先被程序化后,每一所述多个第一实体抹除单元的所述第二实体程序化单元会才可以被程序化。After the first physical programming unit of each of the first physical erasing units is programmed first, the second physical programming unit of each of the first physical erasing units Only then can it be programmed. 17.根据权利要求10所述的存储器控制电路单元,其中所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括第一实体程序化单元,17. The memory control circuit unit of claim 10, wherein each of the plurality of first physical erase units in the first physical erase unit group includes a first physical programming unit, 当所述第一实体抹除单元组被写入连续数据时,所述第一实体抹除单元组中的所述第一实体抹除单元的所述第一实体程序化单元所存储的多个数据所对应的多个逻辑地址为连续的。When the first physical erasure unit group is written with continuous data, the plurality of physical programming units stored in the first physical erasure unit in the first physical erasure unit group Multiple logical addresses corresponding to data are consecutive. 18.根据权利要求10所述的存储器控制电路单元,其中所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括第一实体程序化单元以及第二实体程序化单元,18. The memory control circuit unit of claim 10, wherein each of the plurality of first physical erasure units in the first physical erasure unit group includes a first physical programming unit and a second physical program ization unit, 当所述第一实体抹除单元组被写入连续数据时,所述第一实体抹除单元组中的第七实体抹除单元的所述第一实体程序化单元所存储的数据所对应的逻辑地址与所述第七实体抹除单元的所述第二实体程序化单元所存储的数据所对应的逻辑地址为不连续的,且所述第七实体抹除单元的所述第一实体程序化单元与所述第二实体程序化单元实体上是连续地排列。When the first physical erasure unit group is written with continuous data, the data stored in the first physical programming unit of the seventh physical erasure unit in the first physical erasure unit group corresponds to The logical address corresponding to the data stored in the second physical programming unit of the seventh physical erasing unit is discontinuous, and the first physical program of the seventh physical erasing unit The programming unit and the second physical programming unit are physically continuously arranged. 19.一种存储器存储装置,其特征在于,包括:19. A memory storage device, characterized by comprising: 连接接口单元,用以电性连接至主机系统;The connection interface unit is used to electrically connect to the host system; 可复写式非易失性存储器模块,所述可复写式非易失性存储器模块包括多个实体抹除单元组,所述多个实体抹除单元组中的每一个实体抹除单元组具有多个实体抹除单元;以及A rewritable non-volatile memory module, the rewritable non-volatile memory module includes a plurality of physical erasure unit groups, each of the plurality of physical erasure unit groups has a plurality of physical erasure units; and 存储器控制电路单元,电性连接至所述连接接口单元与所述可复写式非易失性存储器模块,a memory control circuit unit electrically connected to the connection interface unit and the rewritable non-volatile memory module, 其中所述存储器控制电路单元用以从所述多个实体抹除单元组中选择第一实体抹除单元组,wherein the memory control circuit unit is used to select a first physical erasure unit group from the plurality of physical erasure unit groups, 其中所述存储器控制电路单元还用以对所述第一实体抹除单元组执行抹除操作,其中所述第一实体抹除单元组包括多个第一实体抹除单元,且在同一时间点中被用来执行所述抹除操作的所述多个第一实体抹除单元中的至少一第二实体抹除单元的数量不同于所述多个第一实体抹除单元的数量,The memory control circuit unit is further used to perform an erasure operation on the first physical erasure unit group, wherein the first physical erasure unit group includes a plurality of first physical erasure units, and at the same point in time The number of at least one second physical erasing unit among the plurality of first physical erasing units used to perform the erasing operation is different from the number of the plurality of first physical erasing units, 其中所述存储器控制电路单元还用以根据至少一写入指令对所述多个实体抹除单元组中的第二实体抹除单元组执行写入操作,其中所述第二实体抹除单元组包括多个第三实体抹除单元,The memory control circuit unit is further configured to perform a write operation on a second physical erase unit group among the plurality of physical erase unit groups according to at least one write instruction, wherein the second physical erase unit group Including multiple third entity erasure units, 当所述第二实体抹除单元组中所存储的数据量达到第一门槛值时,所述存储器控制电路单元还用以执行对所述第一实体抹除单元组执行所述抹除操作的步骤以对所述多个第一实体抹除单元中的第四实体抹除单元执行所述抹除操作,When the amount of data stored in the second physical erasure unit group reaches a first threshold, the memory control circuit unit is also used to perform the erase operation on the first physical erasure unit group. the step of performing the erasing operation on a fourth physical erasing unit among the plurality of first physical erasing units, 当所述第二实体抹除单元组中所存储的数据量达到第二门槛值时,所述存储器控制电路单元还用以执行对所述第一实体抹除单元组执行所述抹除操作的步骤以对所述多个第一实体抹除单元中的第五实体抹除单元执行所述抹除操作,When the amount of data stored in the second physical erasure unit group reaches a second threshold, the memory control circuit unit is also used to perform the erase operation on the first physical erasure unit group. the step of performing the erasing operation on a fifth physical erasing unit among the plurality of first physical erasing units, 其中所述第一门槛值小于所述第二门槛值。The first threshold value is smaller than the second threshold value. 20.根据权利要求19所述的存储器存储装置,其中当所述第二实体抹除单元组中所存储的数据量达到所述第二实体抹除单元组可用以存储数据的容量时,所述第一实体抹除单元组的所述多个第一实体抹除单元中所存储的数据皆已被抹除。20. The memory storage device of claim 19, wherein when the amount of data stored in the second physical erasure unit group reaches a capacity of the second physical erasure unit group that can be used to store data, the The data stored in the plurality of first physical erasure units of the first physical erasure unit group have all been erased. 21.根据权利要求19所述的存储器存储装置,其中所述可复写式非易失性存储器模块包括多个存储器子模块,所述多个存储器子模块分别通过多个通道连接存储器控制电路单元,所述多个实体抹除单元组中的每一个实体抹除单元组的所述多个实体抹除单元分别属于所述多个存储器子模块中不同的存储器子模块。21. The memory storage device according to claim 19, wherein the rewritable non-volatile memory module includes a plurality of memory sub-modules, and the plurality of memory sub-modules are respectively connected to the memory control circuit unit through a plurality of channels, The plurality of physical erasure units in each of the plurality of physical erasure unit groups respectively belong to different memory sub-modules among the plurality of memory sub-modules. 22.根据权利要求21所述的存储器存储装置,其中所述存储器控制电路单元通过所述多个通道对所述第二实体抹除单元组中的所述多个第三实体抹除单元执行所述写入操作以将多个数据平行地写入所述多个第三实体抹除单元中。22. The memory storage device according to claim 21, wherein the memory control circuit unit performs the plurality of third physical erasure units in the second physical erasure unit group through the plurality of channels. The writing operation is to write a plurality of data into the plurality of third physical erasing units in parallel. 23.根据权利要求19所述的存储器存储装置,其中在对所述第一实体抹除单元组执行所述抹除操作之前,23. The memory storage device of claim 19, wherein before performing the erase operation on the first physical erase unit group, 所述存储器控制电路单元还用以调整对所述多个第一实体抹除单元执行所述写入操作的顺序,The memory control circuit unit is also used to adjust the order in which the write operations are performed on the plurality of first physical erasure units, 所述存储器控制电路单元更用以根据写入顺序以及所述至少一写入指令对所述多个第一实体抹除单元执行所述写入操作以使得当所述第二实体抹除单元的存储空间被写满时,所述多个第一实体抹除单元中的至少一第六实体抹除单元尚有可使用的存储空间。The memory control circuit unit is further configured to perform the writing operation on the plurality of first physical erasing units according to the writing sequence and the at least one writing instruction, so that when the second physical erasing unit When the storage space is full, at least one sixth physical erasing unit among the plurality of first physical erasing units still has usable storage space. 24.根据权利要求19所述的存储器存储装置,其中在所述多个实体抹除单元组中,同一个实体抹除单元组中的所述多个实体抹除单元对应至逻辑地址-实体地址映射表中相同的索引码。24. The memory storage device according to claim 19, wherein among the plurality of physical erasure unit groups, the plurality of physical erasure units in the same physical erasure unit group correspond to a logical address-physical address. The same index code in the mapping table. 25.根据权利要求19所述的存储器存储装置,其中所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括第一实体程序化单元以及第二实体程序化单元,25. The memory storage device of claim 19, wherein each of the plurality of first physical erase units in the first group of physical erase units includes a first physical programming unit and a second physical programming unit. unit, 当每一所述多个第一实体抹除单元的所述第一实体程序化单元都先被程序化后,每一所述多个第一实体抹除单元的所述第二实体程序化单元会才可以被程序化。After the first physical programming unit of each of the first physical erasing units is programmed first, the second physical programming unit of each of the first physical erasing units Only then can it be programmed. 26.根据权利要求19所述的存储器存储装置,其中所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括第一实体程序化单元,26. The memory storage device of claim 19, wherein each of the plurality of first physical erase units in the first group of physical erase units includes a first physical programming unit, 当所述第一实体抹除单元组被写入连续数据时,所述第一实体抹除单元组中的所述第一实体抹除单元的所述第一实体程序化单元所存储的多个数据所对应的多个逻辑地址为连续的。When the first physical erasure unit group is written with continuous data, the plurality of physical programming units stored in the first physical erasure unit in the first physical erasure unit group Multiple logical addresses corresponding to data are consecutive. 27.根据权利要求19所述的存储器存储装置,其中所述第一实体抹除单元组中的每一所述多个第一实体抹除单元包括第一实体程序化单元以及第二实体程序化单元,27. The memory storage device of claim 19, wherein each of the plurality of first physical erase units in the first group of physical erase units includes a first physical programming unit and a second physical programming unit. unit, 当所述第一实体抹除单元组被写入连续数据时,所述第一实体抹除单元组中的第七实体抹除单元的所述第一实体程序化单元所存储的数据所对应的逻辑地址与所述第七实体抹除单元的所述第二实体程序化单元所存储的数据所对应的逻辑地址为不连续的,且所述第七实体抹除单元的所述第一实体程序化单元与所述第二实体程序化单元实体上是连续地排列。When the first physical erasure unit group is written with continuous data, the data stored in the first physical programming unit of the seventh physical erasure unit in the first physical erasure unit group corresponds to The logical address corresponding to the data stored in the second physical programming unit of the seventh physical erasing unit is discontinuous, and the first physical program of the seventh physical erasing unit The programming unit and the second physical programming unit are physically continuously arranged.
CN201910627492.XA 2019-07-12 2019-07-12 Data erasing method, memory control circuit unit and memory storage device Active CN112216329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910627492.XA CN112216329B (en) 2019-07-12 2019-07-12 Data erasing method, memory control circuit unit and memory storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910627492.XA CN112216329B (en) 2019-07-12 2019-07-12 Data erasing method, memory control circuit unit and memory storage device

Publications (2)

Publication Number Publication Date
CN112216329A CN112216329A (en) 2021-01-12
CN112216329B true CN112216329B (en) 2023-11-07

Family

ID=74048522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910627492.XA Active CN112216329B (en) 2019-07-12 2019-07-12 Data erasing method, memory control circuit unit and memory storage device

Country Status (1)

Country Link
CN (1) CN112216329B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115857808A (en) * 2022-12-05 2023-03-28 群联电子股份有限公司 Memory management method, memory storage device and memory control circuit unit

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5949716A (en) * 1997-04-16 1999-09-07 Invox Technology Look-ahead erase for sequential data storage
US6055188A (en) * 1997-04-30 2000-04-25 Kabushiki Kaishi Toshiba Nonvolatile semiconductor memory device having a data circuit for erasing and writing operations
CN102890617A (en) * 2011-07-18 2013-01-23 群联电子股份有限公司 Memory control method, memory controller and memory storage device
CN104732153A (en) * 2013-12-18 2015-06-24 群联电子股份有限公司 Data erasing method, memory control circuit unit and memory storage device
CN109308930A (en) * 2017-07-28 2019-02-05 群联电子股份有限公司 Data writing method, memory control circuit unit and memory storage device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5949716A (en) * 1997-04-16 1999-09-07 Invox Technology Look-ahead erase for sequential data storage
US6055188A (en) * 1997-04-30 2000-04-25 Kabushiki Kaishi Toshiba Nonvolatile semiconductor memory device having a data circuit for erasing and writing operations
CN102890617A (en) * 2011-07-18 2013-01-23 群联电子股份有限公司 Memory control method, memory controller and memory storage device
CN104732153A (en) * 2013-12-18 2015-06-24 群联电子股份有限公司 Data erasing method, memory control circuit unit and memory storage device
CN109308930A (en) * 2017-07-28 2019-02-05 群联电子股份有限公司 Data writing method, memory control circuit unit and memory storage device

Also Published As

Publication number Publication date
CN112216329A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
CN104765569B (en) Data writing method, memory control circuit unit and memory storage device
CN106951186B (en) Data programming method, memory storage device and memory control circuit unit
CN111078146A (en) Memory management method, memory storage device and memory control circuit unit
CN111258505B (en) Data merging method of flash memory, control circuit unit and storage device
TWI705331B (en) Valid data merging method, memory control circuit unit and memory storage device
TWI717751B (en) Data writing method, memory control circuit unit and memory storage device
CN112463018B (en) Instruction transmission method, memory control circuit unit and memory storage device
CN109273033B (en) Memory management method, memory control circuit unit and memory storage device
CN106959818A (en) Data writing method, memory control circuit unit and memory storage device
CN111240602B (en) Data sorting method of flash memory, control circuit unit and storage device
CN112216329B (en) Data erasing method, memory control circuit unit and memory storage device
CN107132989B (en) Data programming method, memory control circuit unit and memory storage device
TWI711048B (en) Value adjusting method, memory control circuit unit and memory storage device for flash memory
CN111831210B (en) Memory management method, memory control circuit unit and memory storage device
TWI769386B (en) Data erasing method, memory control circuit unit and memory storage device
CN114115739B (en) Memory management method, memory storage device and memory control circuit unit
TWI886949B (en) Device control method, memory storage device and memory control circuit unit
CN114527941B (en) Memory control method, memory storage device and memory control circuit unit
US12236132B2 (en) Status checking method, memory storage device and memory control circuit unit
TWI831366B (en) Data writing method, memory storage device and memory control circuit unit
TWI823792B (en) Mapping table updating method, memory storage device and memory control circuit unit
CN112099727B (en) Data writing method, memory control circuit unit, and memory storage device
US20240289022A1 (en) Data arrangement method based on file system, memory storage device and memory control circuit unit
CN112181859B (en) Effective data merging method, memory control circuit unit and storage device
CN111858389B (en) Data writing method, memory control circuit unit and memory storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant