[go: up one dir, main page]

CN111724851B - Data protection method, memory storage device and memory control circuit unit - Google Patents

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

Info

Publication number
CN111724851B
CN111724851B CN202010596690.7A CN202010596690A CN111724851B CN 111724851 B CN111724851 B CN 111724851B CN 202010596690 A CN202010596690 A CN 202010596690A CN 111724851 B CN111724851 B CN 111724851B
Authority
CN
China
Prior art keywords
memory
disk array
word lines
data
planes
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
CN202010596690.7A
Other languages
Chinese (zh)
Other versions
CN111724851A (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 CN202010596690.7A priority Critical patent/CN111724851B/en
Publication of CN111724851A publication Critical patent/CN111724851A/en
Application granted granted Critical
Publication of CN111724851B publication Critical patent/CN111724851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/04Erasable programmable read-only memories electrically programmable using variable threshold transistors, e.g. FAMOS
    • G11C16/0483Erasable programmable read-only memories electrically programmable using variable threshold transistors, e.g. FAMOS comprising cells having several storage transistors connected in series
    • 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/08Address circuits; Decoders; Word-line control circuits
    • 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/22Safety or protection circuits preventing unauthorised or accidental access to memory cells
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/08Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
    • G11C29/12Built-in arrangements for testing, e.g. built-in self testing [BIST] or interconnection details
    • G11C29/38Response verification devices
    • G11C29/42Response verification devices using error correcting codes [ECC] or parity check
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C8/00Arrangements for selecting an address in a digital store
    • G11C8/14Word line organisation; Word line lay-out

Landscapes

  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Security & Cryptography (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本发明提供一种数据保护方法、存储器存储装置及存储器控制电路单元。所述方法包括:设定与多个字线及多个存储器平面对应的多个磁盘阵列标签,并且其中一字线连接其中一存储器平面所对应的磁盘阵列标签与另一字线连接另一存储器平面所对应的磁盘阵列标签至少部分相同;从主机系统接收写入指令及写入指令对应的数据;以及将数据依序写入至多个磁盘阵列标签对应的多个字线及多个存储器平面中。

Figure 202010596690

The present invention provides a data protection method, a memory storage device and a memory control circuit unit. The method includes: setting a plurality of disk array labels corresponding to a plurality of word lines and a plurality of memory planes, wherein one word line is connected to the disk array label corresponding to one of the memory planes and another word line is connected to another memory The disk array labels corresponding to the planes are at least partially the same; receiving a write command and data corresponding to the write command from the host system; and sequentially writing the data into a plurality of word lines and a plurality of memory planes corresponding to the plurality of disk array labels .

Figure 202010596690

Description

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

技术领域technical field

本发明涉及一种存储器管理技术,尤其涉及一种数据保护方法、存储器存储装置及存储器控制电路单元。The present invention relates to a memory management technology, in particular to a data protection method, a memory storage device and a memory control circuit unit.

背景技术Background technique

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

在快闪存储器的领域中,目前发展出通过3D堆叠技术封装更多存储单元的3DNAND快闪存储器。然而,3D NAND快闪存储器可能因为各种因素(例如,存储单元的漏电、程序化失败、损毁等)导致字线短路等物理失效的问题。一般来说,为了确保数据的正确性,在某些编/解码技术中,存储于多个实体页面的数据可能被编码为同一个标签。属于同一个标签的数据可以彼此保护。当某一数据无法经由其本身的错误校正码来校正时,对应相同标签且存储于其他实体页面的数据可用于协助无法校正数据进行校正。例如,利用存储于可复写式非易失性存储器中对应于所欲校正的数据的同位信息(Parity)来校正此数据。In the field of flash memory, 3D NAND flash memory in which more memory cells are packaged through 3D stacking technology has been developed. However, the 3D NAND flash memory may cause physical failures such as short-circuiting of word lines due to various factors (eg, leakage of memory cells, program failure, damage, etc.). Generally speaking, in order to ensure the correctness of the data, in some encoding/decoding technologies, the data stored in multiple physical pages may be encoded as the same tag. Data belonging to the same label can protect each other. When a certain data cannot be corrected by its own error correction code, the data corresponding to the same tag and stored in other physical pages can be used to assist the correction of the uncorrectable data. For example, the data is corrected using the parity information (Parity) stored in the rewritable non-volatile memory corresponding to the data to be corrected.

然而,可复写式非易失性存储器模块的存储空间是有限的,随着存储器的容量变大,对应暂存标签的数据量可能会占用太多缓冲存储器的容量。特别是,在3D NAND快闪存储器中,上述情况更加显著。因此如何能够在减少所存储的标签的数据量下同时维持存储数据的可靠度,是此领域技术人员所关注的课题。However, the storage space of the rewritable non-volatile memory module is limited, and as the capacity of the memory increases, the amount of data corresponding to the temporary tag may occupy too much capacity of the buffer memory. In particular, in 3D NAND flash memory, the above situation is more pronounced. Therefore, how to maintain the reliability of the stored data while reducing the data amount of the stored tags is a topic of concern to those skilled in the art.

发明内容SUMMARY OF THE INVENTION

本发明提供一种数据保护方法、存储器存储装置及存储器控制电路单元,可在缓冲存储器的容量有限的状况下达成良好的数据保护能力。The present invention provides a data protection method, a memory storage device and a memory control circuit unit, which can achieve good data protection capability under the condition that the capacity of the buffer memory is limited.

本发明的实施例提供一种数据保护方法,用于存储器存储装置。所述存储器存储装置包括可复写式非易失性存储器模块。所述可复写式非易失性存储器模块包括多个实体单元,每一所述多个实体单元包括多个实体程序化单元,每一所述实体程序化单元对应多个字线其中之一及多个存储器平面其中之一。所述数据保护方法包括:设定与所述多个字线及所述多个存储器平面对应的多个磁盘阵列标签,并且其中一所述多个字线连接其中一所述多个存储器平面所对应的所述多个磁盘阵列标签与另一所述多个字线连接另一所述多个存储器平面所对应的所述多个磁盘阵列标签至少部分相同。其中所述多个磁盘阵列标签用于表示其中一所述多个字线连接其中一所述多个存储器平面所对应的所述实体程序化单元与另一所述多个字线连接另一所述多个存储器平面所对应的所述实体程序化单元数据之间的保护关系。Embodiments of the present invention provide a data protection method for a memory storage device. The memory storage device includes a rewritable non-volatile memory module. The rewritable non-volatile memory module includes a plurality of physical units, each of the plurality of physical units includes a plurality of physical programming units, and each of the physical programming units corresponds to one of a plurality of word lines and One of multiple memory planes. The data protection method includes: setting a plurality of disk array labels corresponding to the plurality of word lines and the plurality of memory planes, and wherein one of the plurality of word lines is connected to one of the plurality of memory planes. The corresponding plurality of disk array labels are at least partially identical to the plurality of disk array labels corresponding to another of the plurality of word lines connected to another of the plurality of memory planes. The plurality of disk array labels are used to indicate that one of the plurality of word lines is connected to the physical programming unit corresponding to one of the plurality of memory planes and the other of the plurality of word lines is connected to another the protection relationship between the physical programming unit data corresponding to the plurality of memory planes.

在本发明的一范例实施例中,上述多个存储器平面包括第一平面与第二平面,并且所述第一平面连接所述多个字线之中的第一字线与第二字线,所述第二平面连接所述第一字线与所述第二字线。其中所述第一字线连接所述第一平面并对应至多个第一磁盘阵列标签,并且所述第二字线连接所述第二平面并对应至多个第二磁盘阵列标签。其中所述多个第一磁盘阵列标签与所述多个第二磁盘阵列标签至少部分相同。In an exemplary embodiment of the present invention, the plurality of memory planes include a first plane and a second plane, and the first plane connects the first word line and the second word line among the plurality of word lines, The second plane connects the first word line and the second word line. The first word line is connected to the first plane and corresponds to a plurality of first disk array labels, and the second word line is connected to the second plane and corresponds to a plurality of second disk array labels. The plurality of first disk array labels are at least partially identical to the plurality of second disk array labels.

在本发明的一范例实施例中,上述不同的所述多个字线连接同一所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。In an exemplary embodiment of the present invention, the plurality of disk array labels corresponding to the plurality of word lines connected to the same plurality of memory planes are different.

在本发明的一范例实施例中,上述同一所述多个字线连接不同的所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。In an exemplary embodiment of the present invention, the plurality of disk array labels corresponding to the plurality of memory planes that are connected to the same plurality of word lines differently are different.

在本发明的一范例实施例中,上述设定与所述多个字线及所述多个存储器平面对应的所述多个磁盘阵列标签的步骤包括:设定所述多个磁盘阵列标签对应至所述多个存储器平面及所述多个实体程序化单元。In an exemplary embodiment of the present invention, the step of setting the plurality of disk array labels corresponding to the plurality of word lines and the plurality of memory planes includes: setting the plurality of disk array labels corresponding to the plurality of disk array labels to the plurality of memory planes and the plurality of physical programming units.

在本发明的一范例实施例中,上述方法还包括:根据所述数据产生同位信息,并且设定所述同位信息对应的所述磁盘阵列标签。In an exemplary embodiment of the present invention, the above method further includes: generating parity information according to the data, and setting the disk array label corresponding to the parity information.

在本发明的一范例实施例中,上述设定所述同位信息对应的所述磁盘阵列标签的步骤包括:设定所述同位信息对应的所述磁盘阵列标签对应至用于计算所述同位信息的所述数据所写入的所述多个存储器平面及所述多个实体程序化单元。In an exemplary embodiment of the present invention, the step of setting the disk array label corresponding to the parity information includes: setting the disk array label corresponding to the parity information to correspond to a label used for calculating the parity information The plurality of memory planes and the plurality of physical programming units to which the data is written.

本发明的一范例实施例提出一种存储器存储装置。存储器存储装置包括连接接口单元、可复写式非易失性存储器模块以及存储器控制电路单元。所述连接接口单元用以耦接至主机系统。所述可复写式非易失性存储器模块包括多个实体单元,每一所述多个实体单元包括多个实体程序化单元,每一所述实体程序化单元对应多个字线其中之一及多个存储器平面其中之一。所述存储器控制电路单元耦接至所述连接接口单元与所述可复写式非易失性存储器模块。所述存储器控制电路单元用以设定与所述多个字线及所述多个存储器平面对应的多个磁盘阵列标签,并且其中一所述多个字线连接其中一所述多个存储器平面所对应的所述多个磁盘阵列标签与另一所述多个字线连接另一所述多个存储器平面所对应的所述多个磁盘阵列标签至少部分相同。所述存储器控制电路单元还用以从主机系统接收写入指令及所述写入指令对应的数据。并且所述存储器控制电路单元还用以将所述数据依序写入至所述多个磁盘阵列标签对应的所述多个字线及所述多个存储器平面中。An exemplary embodiment of the present invention provides a memory storage device. The memory storage device includes a connection interface unit, a rewritable nonvolatile memory module, and a memory control circuit unit. The connection interface unit is used for coupling to the host system. The rewritable non-volatile memory module includes a plurality of physical units, each of the plurality of physical units includes a plurality of physical programming units, and each of the physical programming units corresponds to one of a plurality of word lines and One of multiple memory planes. The memory control circuit unit is coupled to the connection interface unit and the rewritable non-volatile memory module. The memory control circuit unit is used for setting a plurality of disk array labels corresponding to the plurality of word lines and the plurality of memory planes, and one of the plurality of word lines is connected to one of the plurality of memory planes The corresponding plurality of disk array labels are at least partially identical to the plurality of disk array labels corresponding to another of the plurality of word lines connected to another of the plurality of memory planes. The memory control circuit unit is further configured to receive a write command and data corresponding to the write command from the host system. And the memory control circuit unit is further used for sequentially writing the data into the plurality of word lines and the plurality of memory planes corresponding to the plurality of disk array tags.

在本发明的一范例实施例中,上述多个存储器平面包括第一平面与第二平面,并且所述第一平面连接所述多个字线之中的第一字线与第二字线,所述第二平面连接所述第一字线与所述第二字线。所述存储器控制电路单元还用以设定所述第一字线连接所述第一平面并对应至多个第一磁盘阵列标签,并且设定所述第二字线连接所述第二平面并对应至多个第二磁盘阵列标签。所述多个第一磁盘阵列标签与所述多个第二磁盘阵列标签至少部分相同。In an exemplary embodiment of the present invention, the plurality of memory planes include a first plane and a second plane, and the first plane connects the first word line and the second word line among the plurality of word lines, The second plane connects the first word line and the second word line. The memory control circuit unit is further configured to set the first word line to connect to the first plane and correspond to a plurality of first disk array labels, and to set the second word line to connect to the second plane and correspond to to multiple second disk array labels. The plurality of first disk array labels are at least partially identical to the plurality of second disk array labels.

在本发明的一范例实施例中,上述不同的所述多个字线连接的同一所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。In an exemplary embodiment of the present invention, the multiple disk array labels corresponding to the same multiple memory planes connected to the different multiple word lines are different.

在本发明的一范例实施例中,上述同一所述多个字线连接的不同的所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。In an exemplary embodiment of the present invention, the plurality of disk array labels corresponding to the plurality of different memory planes connected to the same plurality of word lines are different.

在本发明的一范例实施例中,上述存储器控制电路单元用以设定与所述多个字线及所述多个存储器平面对应的所述多个磁盘阵列标签的操作包括:所述存储器控制电路单元还用以设定所述多个磁盘阵列标签对应至所述多个存储器平面及所述多个实体程序化单元。In an exemplary embodiment of the present invention, the operation of the memory control circuit unit for setting the plurality of disk array labels corresponding to the plurality of word lines and the plurality of memory planes includes: the memory control The circuit unit is further configured to set the plurality of disk array labels to correspond to the plurality of memory planes and the plurality of physical programming units.

在本发明的一范例实施例中,上述存储器控制电路单元还用以根据所述数据产生同位信息,并且设定所述同位信息对应的所述磁盘阵列标签。In an exemplary embodiment of the present invention, the memory control circuit unit is further configured to generate parity information according to the data, and set the disk array label corresponding to the parity information.

在本发明的一范例实施例中,上述存储器控制电路单元还用以设定所述同位信息对应的所述磁盘阵列标签对应至用于计算所述同位信息的所述数据所写入的所述多个存储器平面及所述多个实体程序化单元。In an exemplary embodiment of the present invention, the memory control circuit unit is further configured to set the disk array label corresponding to the parity information to correspond to the data written for calculating the parity information a plurality of memory planes and the plurality of physical programming units.

本发明的一范例实施例提出一种存储器控制电路单元,用于控制包括一可复写式非易失性存储器模块的一存储器存储装置。所述可复写式非易失性存储器模块包括多个实体单元,每一所述多个实体单元包括多个实体程序化单元,每一所述实体程序化单元对应多个字线其中之一及多个存储器平面其中之一。所述存储器控制电路单元包括主机接口、存储器接口以及存储器管理电路。主机接口用以耦接至主机系统。存储器接口用以耦接至所述可复写式非易失性存储器模块。存储器管理电路耦接至所述主机接口与所述存储器接口。所述存储器管理电路用以设定与所述多个字线及所述多个存储器平面对应的多个磁盘阵列标签,并且其中一所述多个字线连接其中一所述多个存储器平面所对应的所述多个磁盘阵列标签与另一所述多个字线连接另一所述多个存储器平面所对应的所述多个磁盘阵列标签至少部分相同。所述存储器管理电路还用以从主机系统接收写入指令及所述写入指令对应的数据。并且所述存储器管理电路还用以将所述数据依序写入至所述多个磁盘阵列标签对应的所述多个字线及所述多个存储器平面中。An exemplary embodiment of the present invention provides a memory control circuit unit for controlling a memory storage device including a rewritable non-volatile memory module. The rewritable non-volatile memory module includes a plurality of physical units, each of the plurality of physical units includes a plurality of physical programming units, and each of the physical programming units corresponds to one of a plurality of word lines and One of multiple memory planes. The memory control circuit unit includes a host interface, a memory interface, and a memory management circuit. The host interface is used for coupling to the host system. The memory interface is used for coupling to the rewritable non-volatile memory module. A memory management circuit is coupled to the host interface and the memory interface. The memory management circuit is used for setting a plurality of disk array labels corresponding to the plurality of word lines and the plurality of memory planes, and one of the plurality of word lines is connected to one of the plurality of memory planes. The corresponding plurality of disk array labels are at least partially identical to the plurality of disk array labels corresponding to another of the plurality of word lines connected to another of the plurality of memory planes. The memory management circuit is further configured to receive a write command and data corresponding to the write command from the host system. And the memory management circuit is further used for sequentially writing the data into the plurality of word lines and the plurality of memory planes corresponding to the plurality of disk array tags.

在本发明的一范例实施例中,上述多个存储器平面包括第一平面与第二平面,并且所述第一平面连接所述多个字线之中的第一字线与第二字线,所述第二平面连接所述第一字线与所述第二字线。所述存储器管理电路还用以设定所述第一字线连接所述第一平面并对应至多个第一磁盘阵列标签,并且设定所述第二字线连接所述第二平面并对应至多个第二磁盘阵列标签。所述多个第一磁盘阵列标签与所述多个第二磁盘阵列标签至少部分相同。In an exemplary embodiment of the present invention, the plurality of memory planes include a first plane and a second plane, and the first plane connects the first word line and the second word line among the plurality of word lines, The second plane connects the first word line and the second word line. The memory management circuit is further configured to set the first word line to connect to the first plane and to correspond to a plurality of first disk array labels, and to set the second word line to connect to the second plane and correspond to at most a second disk array label. The plurality of first disk array labels are at least partially identical to the plurality of second disk array labels.

在本发明的一范例实施例中,上述不同的所述多个字线连接的同一所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。In an exemplary embodiment of the present invention, the multiple disk array labels corresponding to the same multiple memory planes connected to the different multiple word lines are different.

在本发明的一范例实施例中,上述同一所述多个字线连接的不同的所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。In an exemplary embodiment of the present invention, the plurality of disk array labels corresponding to the plurality of different memory planes connected to the same plurality of word lines are different.

在本发明的一范例实施例中,上述存储器管理电路用以设定与所述多个字线及所述多个存储器平面对应的所述多个磁盘阵列标签的操作包括:所述存储器管理电路还用以设定所述多个磁盘阵列标签对应至所述多个存储器平面及所述多个实体程序化单元。In an exemplary embodiment of the present invention, the operation of the memory management circuit for setting the plurality of disk array labels corresponding to the plurality of word lines and the plurality of memory planes includes: the memory management circuit It is also used for setting the plurality of disk array labels to correspond to the plurality of memory planes and the plurality of physical programming units.

在本发明的一范例实施例中,上述存储器管理电路还用以根据所述数据产生同位信息,并且设定所述同位信息对应的所述磁盘阵列标签。In an exemplary embodiment of the present invention, the memory management circuit is further configured to generate parity information according to the data, and set the disk array label corresponding to the parity information.

在本发明的一范例实施例中,上述存储器管理电路还用以设定所述同位信息对应的所述磁盘阵列标签对应至用于计算所述同位信息的所述数据所写入的所述多个存储器平面及所述多个实体程序化单元。In an exemplary embodiment of the present invention, the memory management circuit is further configured to set the disk array label corresponding to the parity information to correspond to the multiplicity of data written in the data for calculating the parity information a memory plane and the plurality of physical programming units.

基于上述,本发明的实施例所提供的数据保护方法、存储器存储装置及存储器控制电路单元,可以通过磁盘阵列标签的交错编排方式设定与多个字线及多个存储器平面对应的多个磁盘阵列标签。藉此,可在缓冲存储器的容量有限的状况下使用较少的磁盘阵列标签保护存储器的数据,而达到最大化保护效果。Based on the above, the data protection method, memory storage device, and memory control circuit unit provided by the embodiments of the present invention can set multiple disks corresponding to multiple word lines and multiple memory planes through the staggered arrangement of disk array labels Array label. In this way, under the condition that the capacity of the buffer memory is limited, fewer disk array labels can be used to protect the data in the memory, thereby maximizing the protection effect.

附图说明Description of drawings

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

图2是根据另一范例实施例所示出的主机系统、存储器存储装置及输入/输出(I/O)装置的示意图;2 is a schematic diagram of a host system, a memory storage device, and an input/output (I/O) device according to another exemplary embodiment;

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

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

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

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

图7是根据本发明一范例实施例所示出的同位信息缓冲器的概要方块图;7 is a schematic block diagram of a parity information buffer according to an exemplary embodiment of the present invention;

图8是根据本发明的一范例实施例所示出的数据保护方法的流程图。FIG. 8 is a flowchart of a data protection method according to an exemplary embodiment of the present invention.

具体实施方式Detailed ways

现将详细地参考本发明的示范性实施例,示范性实施例的实例说明于附图中。只要有可能,相同元件符号在附图和描述中用来表示相同或相似部分。Reference will now be made in detail to the exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numerals are used in the drawings and description to refer to the same or like parts.

一般而言,存储器存储装置(亦称,存储器存储系统)包括可复写式非易失性存储器模块与控制器(亦称,控制电路单元)。通常存储器存储装置是与主机系统一起使用,以使主机系统可将数据写入至存储器存储装置或从存储器存储装置中读取数据。In general, a memory storage device (also known as a memory storage system) includes a rewritable non-volatile memory module and a controller (also known as a control circuit unit). 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 example embodiment. And FIG. 2 is a schematic diagram of a host system, a memory storage device, and an input/output (I/O) device according to another exemplary embodiment.

请参照图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 ROM 113 and the data transmission interface 114 are all coupled to a 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 coupled to the memory storage device 10 through the data transmission interface 114 . For example, host system 11 may write data to or read data from memory storage device 10 via data transfer interface 114 . In addition, the host system 11 is coupled 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可例如是U盘201、存储卡202、固态硬盘(Solid State Drive,SSD)203或无线存储器存储装置204。无线存储器存储装置204可例如是近距离无线通信(Near FieldCommunication Storage,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 can be disposed on the mainboard 20 of the host system 11 . The number of data transfer interfaces 114 may be one or more. Through the data transfer interface 114, the motherboard 20 may be coupled to the memory storage device 10 via wired or wireless means. The memory storage device 10 may be, for example, a USB flash drive 201 , a memory card 202 , a Solid State Drive (SSD) 203 or a wireless memory storage device 204 . The wireless memory storage device 204 may be, for example, a Near Field Communication Storage (NFC) memory storage device, a wireless facsimile (WiFi) memory storage device, a Bluetooth (Bluetooth) memory storage device, or a Bluetooth low energy memory storage device (eg, iBeacon) and other memory storage devices based on various wireless communication technologies. In addition, the motherboard 20 can also be coupled to various I/O modules 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 and the like 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可为其所使用的SD卡32、CF卡33或嵌入式存储装置34等各式非易失性存储器存储装置。嵌入式存储装置34包括嵌入式多媒体卡(embeddedMMC,eMMC)341和/或嵌入式多芯片封装(embedded Multi Chip Package,eMCP)存储装置342等各类型将存储器模块直接耦接于主机系统的基板上的嵌入式存储装置。In an example embodiment, reference to a host system is substantially any system that can cooperate with a memory storage device to store data. Although in the above exemplary embodiment, 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. Referring to FIG. 3, in another exemplary embodiment, the host system 31 may also be a digital camera, a video camera, a communication device, an audio player, a video player, or a tablet computer, etc., and the memory storage device 30 may be used therefor Various non-volatile memory storage devices such as SD card 32 , CF card 33 or embedded storage device 34 . The embedded storage device 34 includes various types such as an embedded multimedia card (embedded MMC, eMMC) 341 and/or an embedded multi-chip package (embedded Multi Chip Package, eMCP) storage device 342 to directly couple the memory module to the substrate of the host system embedded storage device.

图4是根据本发明的一范例实施例所示出的存储器存储装置的概要方块图。请参照图4,存储器存储装置10包括连接接口单元402、存储器控制电路单元404与可复写式非易失性存储器模块406。4 is a schematic block diagram of a memory storage device according to an exemplary embodiment of the present invention. 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。存储器存储装置10可通过连接接口单元402与主机系统11通信。在本范例实施例中,连接接口单元402是相容于串行高级技术附件(Serial Advanced Technology Attachment,SATA)标准。然而,必须了解的是,本发明不限于此,连接接口单元402亦可以是符合并行高级技术附件(Parallel Advanced Technology Attachment,PATA)标准、电气和电子工程师协会(Institute of Electrical and Electronic Engineers,IEEE)1394标准、高速周边零件连接接口(Peripheral Component Interconnect Express,PCI Express)标准、通用串行总线(Universal Serial Bus,USB)标准、SD接口标准、超高速一代(Ultra High Speed-I,UHS-I)接口标准、超高速二代(Ultra High Speed-II,UHS-II)接口标准、存储棒(MemoryStick,MS)接口标准、MCP接口标准、MMC接口标准、eMMC接口标准、通用快闪存储器(Universal Flash Storage,UFS)接口标准、eMCP接口标准、CF接口标准、整合式驱动电子接口(Integrated Device Electronics,IDE)标准或其他适合的标准。连接接口单元402可与存储器控制电路单元404封装在一个芯片中,或者连接接口单元402是布设于一包含存储器控制电路单元404的芯片外。The connection interface unit 402 is used for coupling the memory storage device 10 to the host system 11 . The memory storage device 10 may communicate with the host system 11 through the connection interface unit 402 . In this exemplary embodiment, the connection interface unit 402 is compatible with the Serial Advanced Technology Attachment (SATA) standard. However, it must be understood that the present invention is not limited to this, and the connection interface unit 402 may also conform to the Parallel Advanced Technology Attachment (PATA) standard, Institute of Electrical and Electronic Engineers (IEEE) 1394 standard, Peripheral Component Interconnect Express (PCI Express) standard, Universal Serial Bus (USB) standard, SD interface standard, Ultra High Speed-I (UHS-I) Interface standard, Ultra High Speed-II (UHS-II) interface standard, Memory Stick (MS) interface standard, MCP interface standard, MMC interface standard, eMMC interface standard, Universal Flash memory (Universal Flash) Storage, UFS) interface standard, eMCP interface standard, CF interface standard, Integrated Device Electronics (IDE) standard or other suitable standards. The connection interface unit 402 and the memory control circuit unit 404 may be packaged in one chip, or the connection interface unit 402 may be 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 the form of hardware or firmware and to 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个比特的快闪存储器模块)、四阶存储单元(Quad Level Cell,QLC)NAND型快闪存储器模块(即,一个存储单元中可存储4个比特的快闪存储器模块)、其他快闪存储器模块或其他具有相同特性的存储器模块。The rewritable non-volatile memory module 406 is coupled 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 (Single Level Cell, SLC) NAND type flash memory module (ie, a flash memory module that can store 1 bit in one memory cell), a multi-level memory module. Multi Level Cell (MLC) NAND flash memory module (ie, a flash memory module that can store 2 bits in one memory cell), triple level cell (Triple Level Cell, TLC) NAND flash memory Module (that is, a flash memory module that can store 3 bits in one memory cell), Quad Level Cell (QLC) NAND-type flash memory module (that is, a memory cell that can store 4 bits of flash memory module) flash memory modules), 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 with a change in voltage (also referred to as a threshold voltage hereinafter). 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 threshold voltage of the memory cell. This operation of changing the threshold voltage of the memory cell is also referred to as "writing data to the memory cell" or "programming the memory cell". Each memory cell in the rewritable non-volatile memory module 406 has multiple storage states as the threshold voltage changes. By applying a read voltage, it is possible to determine which memory 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 may constitute a plurality of physical programming units, and these physical programming units may constitute a plurality of physical erasing units. Specifically, memory cells on the same word line can form one or more physical programming units. If each memory cell can store more than 2 bits, the physical programming unit on the same word line can be at least classified into a lower physical programming unit and an upper physical programming unit. For example, the Least Significant Bit (LSB) of a memory cell belongs to the lower physical programming unit, and the Most Significant Bit (MSB) of a memory cell belongs to the upper physical programming unit. Generally speaking, in MLC NAND flash memory, the writing speed of the lower physical programming unit is higher 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 Programmable unit reliability.

在本范例实施例中,实体程序化单元为程序化的最小单元。即,实体程序化单元为写入数据的最小单元。例如,实体程序化单元可为实体页面(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 in which data is written. For example, the physical programming unit may be a physical page or a physical sector. If the physical programming unit is a physical page, the physical programming unit may include a data bit area and a redundancy bit area. The data bit area includes a plurality of physical sectors for storing user data, and the redundant bit area is used for storing system data (eg, 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 (byte, B). However, in other exemplary embodiments, the data bit region 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 erasing unit is the smallest unit of erasing. That is, each physical erase unit contains a minimum number of memory units that are erased. For example, the physical erasing unit is a physical block.

图5是根据本发明的一范例实施例所示出的存储器控制电路单元的概要方块图。请参照图5,存储器控制电路单元404包括存储器管理电路502、主机接口504及存储器接口506。FIG. 5 is a schematic block diagram of a memory control circuit unit according to an exemplary embodiment of the present invention. 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 commands, and when the memory storage device 10 operates, these control commands are executed to perform operations such as data writing, reading, and erasing. The following description of the operation of the memory management circuit 502 is equivalent to the description of the operation of the memory control circuit unit 404 .

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

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

此外,在另一范例实施例中,存储器管理电路502的控制指令亦可以一硬件型式来实作。例如,存储器管理电路502包括微控制器、存储单元管理电路、存储器写入电路、存储器读取电路、存储器抹除电路与数据处理电路。存储单元管理电路、存储器写入电路、存储器读取电路、存储器抹除电路与数据处理电路是耦接至微控制器。存储单元管理电路用以管理可复写式非易失性存储器模块406的存储单元或存储单元群组。存储器写入电路用以对可复写式非易失性存储器模块406下达写入指令序列以将数据写入至可复写式非易失性存储器模块406中。存储器读取电路用以对可复写式非易失性存储器模块406下达读取指令序列以从可复写式非易失性存储器模块406中读取数据。存储器抹除电路用以对可复写式非易失性存储器模块406下达抹除指令序列以将数据从可复写式非易失性存储器模块406中抹除。数据处理电路用以处理欲写入至可复写式非易失性存储器模块406的数据以及从可复写式非易失性存储器模块406中读取的数据。写入指令序列、读取指令序列及抹除指令序列可分别包括一或多个代码或指令码并且用以指示可复写式非易失性存储器模块406执行相对应的写入、读取及抹除等操作。在一范例实施例中,存储器管理电路502还可以下达其他类型的指令序列给可复写式非易失性存储器模块406以指示执行相对应的操作。In addition, in another exemplary embodiment, the control commands 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 cell management circuit, a memory write circuit, a memory read circuit, a memory erase circuit, and a data processing circuit. The memory cell management circuit, the memory write circuit, the memory read circuit, the memory erase circuit and the data processing circuit are coupled to the microcontroller. The memory cell management circuit is used to manage the memory cells or memory cell groups of the rewritable non-volatile memory module 406 . The memory write circuit is used to issue a write command sequence to the rewritable non-volatile memory module 406 to write data into the rewritable non-volatile memory module 406 . The memory read circuit is used to issue a read command sequence to the rewritable non-volatile memory module 406 to read data from the rewritable non-volatile memory module 406 . The memory erase circuit is used to issue an erase command sequence to the rewritable non-volatile memory module 406 to erase data from the rewritable non-volatile memory module 406 . The data processing circuit is used to process the data to be written into the rewritable non-volatile memory module 406 and the data read from the rewritable non-volatile memory module 406 . The write command sequence, the read command sequence, and the erase command sequence may include one or more codes or command codes, respectively, and are used to instruct the rewritable non-volatile memory module 406 to perform the corresponding write, read, and erase operations such as removal. In an exemplary embodiment, the memory management circuit 502 may also issue other types of instruction sequences to the rewritable non-volatile memory module 406 to instruct the corresponding operations to be performed.

主机接口504是耦接至存储器管理电路502。存储器管理电路502可通过主机接口504与主机系统11通信。主机接口504可用以接收与识别主机系统11所传送的指令与数据。例如,主机系统11所传送的指令与数据可通过主机接口504来传送至存储器管理电路502。此外,存储器管理电路502可通过主机接口504将数据传送至主机系统11。在本范例实施例中,主机接口504是相容于SATA标准。然而,必须了解的是本发明不限于此,主机接口504亦可以是相容于PATA标准、IEEE 1394标准、PCI Express标准、USB标准、SD标准、UHS-I标准、UHS-II标准、MS标准、MMC标准、eMMC标准、UFS标准、CF标准、IDE标准或其他适合的数据传输标准。The host interface 504 is coupled to the memory management circuit 502 . Memory management circuitry 502 may communicate with host system 11 through host interface 504 . The host interface 504 can be used to receive and identify commands and data transmitted by the host system 11 . For example, instructions and data transmitted by the host system 11 may be transmitted to the memory management circuit 502 through the host interface 504 . Additionally, the memory management circuit 502 may communicate data to the host system 11 through the host interface 504 . In this exemplary embodiment, the host interface 504 is compliant with the SATA standard. However, it must be understood that the present invention is not limited thereto, and the host interface 504 can also be compatible with PATA standard, IEEE 1394 standard, PCI Express 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 standard.

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

在一范例实施例中,存储器控制电路单元404还包括错误检查与校正电路508、缓冲存储器510与电源管理电路512。In an exemplary embodiment, the memory control circuit unit 404 further 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 correction circuit 508 is coupled to the memory management circuit 502 and is used to perform error checking and correction operations to ensure the correctness of the 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 and/or an error detecting code (EDC), and the memory management circuit 502 writes the data corresponding to the write instruction and the corresponding error correcting code and/or error checking code to the rewritable non-volatile memory in module 406. Then, when the memory management circuit 502 reads data from the rewritable non-volatile memory module 406, it simultaneously reads the error correction code and/or error check code corresponding to the data, and the error check and correction circuit 508 will This error correction code and/or error checking code performs error checking and correction operations on the read data.

缓冲存储器510是耦接至存储器管理电路502并且用以暂存来自于主机系统11的数据与指令或来自于可复写式非易失性存储器模块406的数据。在本实施例中,缓冲存储器510包括同位信息缓冲器,同位信息缓冲器用以暂存同位信息。电源管理电路512是耦接至存储器管理电路502并且用以控制存储器存储装置10的电源。The buffer memory 510 is coupled to the memory management circuit 502 and used to temporarily store data and instructions from the host system 11 or data from the rewritable non-volatile memory module 406 . In this embodiment, the buffer memory 510 includes a parity information buffer, and the parity information buffer is used to temporarily store the parity information. The power management circuit 512 is coupled to the memory management circuit 502 and used to control the power of the memory storage device 10 .

在一范例实施例中,图4的可复写式非易失性存储器模块406亦称为快闪(flash)存储器模块,且存储器控制电路单元404亦称为用于控制快闪存储器模块的快闪存储器控制器。在一范例实施例中,图5的存储器管理电路502亦称为快闪存储器管理电路。In an exemplary embodiment, the rewritable non-volatile memory module 406 of FIG. 4 is also referred to as a flash memory module, and the memory control circuit unit 404 is also referred to as a flash for controlling the flash memory module. memory controller. In an example embodiment, the memory management circuit 502 of FIG. 5 is also referred to as a flash memory management circuit.

在本范例实施例中,错误检查与校正电路508是以低密度奇偶检查码(lowdensity parity code,LDPC)来实作。然而,在另一范例实施例中,错误检查与校正电路508也可以BCH码、回旋码(convolutional code)、涡轮码(turbo code)、比特翻转(bitflipping)等编码/解码算法来实作。In this exemplary embodiment, the error checking and correction circuit 508 is implemented with low density parity code (LDPC). However, in another exemplary embodiment, the error checking and correction circuit 508 may also be implemented with encoding/decoding algorithms such as BCH code, convolutional code, turbo code, bit flipping, and the like.

具体来说,存储器管理电路502会依据所接收的数据及对应的错误检查与校正码(以下亦称为错误校正码)来产生错误校正码框(ECC Frame)并且将错误校正码框写入至可复写式非易失性存储器模块406中。之后,当存储器管理电路502从可复写式非易失性存储器模块406读取数据时,错误检查与校正电路508会根据错误校正码框中的错误校正码来验证所读取的数据的正确性。Specifically, the memory management circuit 502 generates an error correction code frame (ECC Frame) according to the received data and the corresponding error check and correction code (hereinafter also referred to as an error correction code) and writes the error correction code frame to the Rewritable non-volatile memory module 406. After that, when the memory management circuit 502 reads data from the rewritable non-volatile memory module 406, the error checking and correction circuit 508 verifies the correctness of the read data according to the error correction code in the error correction code box .

需先说明的是,以下描述存储器管理电路502、主机接口504与存储器接口506、错误检查与校正电路508、缓冲存储器510与电源管理电路512所执行的操作,亦可参考为由存储器控制电路单元404所执行。It should be noted that the operations performed by the memory management circuit 502 , the host interface 504 and the memory interface 506 , the error checking and correction circuit 508 , the buffer memory 510 and the power management circuit 512 will also be referred to as the memory control circuit unit. 404 is executed.

在一范例实施例中,存储器存储装置10包括多个可复写式非易失性存储器模块406,可复写式非易失性存储器模块406包括多个字线(word line,WL)及多个存储器平面(plane)。并且,字线连接多个存储器平面。In an exemplary embodiment, the memory storage device 10 includes a plurality of rewritable non-volatile memory modules 406, and the rewritable non-volatile memory modules 406 include a plurality of word lines (WL) and a plurality of memories. plane. Also, word lines connect a plurality of memory planes.

上述可复写式非易失性存储器模块406的装置是依据可复写式非易失性存储器模块406的存储器晶粒(die)中的存储器平面所划分的。具体来说,可复写式非易失性存储器模块406可具有1个或多个存储器晶粒,每一存储器晶粒具有1个或多个存储器平面,并且每一存储器平面会有多个实体程序化单元。在出厂时,厂商会根据其需求将1个或多个存储器平面划分为1个装置。藉此,厂商可依装置为单位来管理整个可复写式非易失性存储器模块406。本发明并不限定每一装置所包含的存储器平面的数量。The devices of the rewritable non-volatile memory module 406 described above are divided according to the memory planes in the memory die of the rewritable non-volatile memory module 406 . Specifically, the rewritable non-volatile memory module 406 can have one or more memory dies, each memory die has one or more memory planes, and each memory plane has multiple physical programs chemical unit. At the factory, manufacturers divide one or more memory planes into one device according to their needs. Thereby, the manufacturer can manage the entire rewritable non-volatile memory module 406 on a device-by-device basis. The invention does not limit the number of memory planes included in each device.

在本范例实施例中,可复写式非易失性存储器模块406为三维(Three Dimension,3D)复数阶存储单元(Trinary Level Cell,TLC)NAND型快闪存储器模块(即,一个存储单元中可存储3个数据比特的快闪存储器模块)或其他具有相同特性的存储器模块。然而,本发明不限于此,可复写式非易失性存储器模块406亦可是3D多阶存储单元(Multi LevelCell,MLC)NAND型快闪存储器模块(即,一个存储单元中可存储2个比特数据的快闪存储器模块)或其他具有相同特性的存储器模块。In the present exemplary embodiment, the rewritable non-volatile memory module 406 is a three-dimensional (3D) complex level cell (Trinary Level Cell, TLC) NAND flash memory module (ie, a memory cell that can Flash memory modules that store 3 data bits) or other memory modules with the same characteristics. However, the present invention is not limited thereto, and the rewritable non-volatile memory module 406 may also be a 3D Multi Level Cell (MLC) NAND flash memory module (ie, one memory cell can store 2 bits of data) flash memory modules) or other memory modules with the same characteristics.

在本范例实施例中,可复写式非易失性存储器模块406包括多个实体单元且每一实体单元包括多个实体程序化单元,并且每一实体程序化单元对应一字线及一存储器平面。In this exemplary embodiment, the rewritable non-volatile memory module 406 includes a plurality of physical units and each physical unit includes a plurality of physical programming units, and each physical programming unit corresponds to a word line and a memory plane .

在一范例实施例中,存储器管理电路502从主机系统11接收写入指令与对应的数据时,存储器管理电路502会将数据暂存至缓冲存储器510,并且将数据根据实体程序化单元的大小整理成子数据串。之后,存储器管理电路502会将子数据串分别且依序地程序化至实体程序化单元。In an exemplary embodiment, when the memory management circuit 502 receives a write command and corresponding data from the host system 11, the memory management circuit 502 temporarily stores the data in the buffer memory 510, and organizes the data according to the size of the physical programming unit. into substrings. Afterwards, the memory management circuit 502 programs the sub-data strings to the physical programming units respectively and sequentially.

另一方面,存储器管理电路502会根据子数据串来产生用于保护子数据串的同位信息。详言之,存储器管理电路502可根据预设对照表或预设方程序决定每一同位信息对应的磁盘阵列标签,其中磁盘阵列标签用以表示每一同位信息是由哪些子数据串于同位信息缓冲器进行运算获得。据此,在将子数据串分别且依序地程序化至实体程序化单元时,存储器管理电路502根据预设对照表或预设方程序决定子数据串于同位信息缓冲器中与属于相同的磁盘阵列标签的子数据串进行逻辑运算产生同位信息。在一实施例中,产生同位信息的逻辑运算方式例如是XOR运算。然后,在计算完一组运算单位(例如,一组实体单元)后,存储器管理电路502会将同位信息程序化至可复写式非易失性存储器模块406中。特别地,存储器管理电路502设定的磁盘阵列标签可分别对应至用于计算同位信息的子数据串所写入的存储器平面及实体程序化单元。基此,存储器管理电路502可利用一磁盘阵列标签对照表记录磁盘阵列标签以及与磁盘阵列标签对应的用于计算同位信息的子数据串所写入的存储器平面及实体程序化单元,并可以利用另一对照表记录磁盘阵列标签以及与磁盘阵列标签对应的同位信息存储的地址。On the other hand, the memory management circuit 502 generates parity information for protecting the sub-data string according to the sub-data string. In detail, the memory management circuit 502 can determine the disk array label corresponding to each parity information according to a preset comparison table or a preset formula, wherein the disk array label is used to indicate which sub-data strings of each parity information belong to the parity information. The buffer is obtained by operation. Accordingly, when the sub-data strings are respectively and sequentially programmed into the physical programming unit, the memory management circuit 502 determines the sub-data strings in the parity information buffer to belong to the same one according to the preset comparison table or the preset formula. The sub-data string of the disk array label is logically operated to generate parity information. In one embodiment, the logical operation method for generating the parity information is, for example, an XOR operation. Then, after computing a set of operation units (eg, a set of physical units), the memory management circuit 502 programs the parity information into the rewritable non-volatile memory module 406 . In particular, the disk array label set by the memory management circuit 502 may correspond to the memory plane and the physical programming unit written in the sub-data string for calculating the parity information, respectively. Based on this, the memory management circuit 502 can use a disk array label comparison table to record the disk array label and the memory plane and the physical programming unit written by the sub-data string corresponding to the disk array label for calculating parity information, and can use Another comparison table records the disk array label and the address where the parity information corresponding to the disk array label is stored.

具体而言,存储器管理电路502设定与多个字线及多个存储器平面对应的多个磁盘阵列标签。并且其中一字线连接其中一存储器平面对应的多个磁盘阵列标签与另一字线连接另一存储器平面对应的多个磁盘阵列标签至少部分相同。于此,可复写式非易失性存储器模块406的其中一字线连接其中一存储器平面与另一字线连接另一存储器平面为不同的存储器平面。并且磁盘阵列标签用于表示其中一字线连接其中一存储器平面所对应的多个实体程序化单元与另一字线连接另一存储器平面所对应的多个实体程序化单元数据之间的保护关系。Specifically, the memory management circuit 502 sets a plurality of disk array labels corresponding to a plurality of word lines and a plurality of memory planes. And one word line connects the multiple disk array labels corresponding to one memory plane and the other word line connects the multiple disk array labels corresponding to the other memory plane at least partially identical. Here, one of the word lines of the rewritable non-volatile memory module 406 is connected to one of the memory planes, and the other word line is connected to the other memory plane, which are different memory planes. And the disk array label is used to indicate the protection relationship between a word line connecting a plurality of physical program units corresponding to one memory plane and another word line connecting a plurality of physical program units corresponding to another memory plane. .

举例来说,存储器存储装置10的存储器平面包括第一平面及第二平面,并且第一平面连接第一字线与第二字线,第二平面亦连接第一字线与第二字线。第一平面及第二平面分别对应实体程序化单元,其中部分实体程序化单元是由第一字线连接的多个存储单元所构成,部分实体程序化单元是由第二字线连接的多个存储单元所构成。在本范例实施例中,第一字线连接第一平面并对应至多个第一磁盘阵列标签,并且第二字线连接第二平面并对应至多个第二磁盘阵列标签。其中多个第一磁盘阵列标签与多个第二磁盘阵列标签至少部分相同。For example, the memory plane of the memory storage device 10 includes a first plane and a second plane, and the first plane connects the first word line and the second word line, and the second plane also connects the first word line and the second word line. The first plane and the second plane respectively correspond to physical programming units, wherein some physical programming units are composed of a plurality of memory cells connected by the first word line, and some physical programming units are a plurality of physical programming units connected by the second word line. composed of storage units. In this exemplary embodiment, the first word line is connected to the first plane and corresponds to the plurality of first disk array labels, and the second word line is connected to the second plane and corresponds to the plurality of second disk array labels. The plurality of first disk array labels are at least partially identical to the plurality of second disk array labels.

在一范例实施例中,不同的字线连接同一存储器平面所对应的磁盘阵列标签不相同。在一范例实施例中,同一字线连接不同的存储器平面所对应的磁盘阵列标签不相同。In an exemplary embodiment, the disk array labels corresponding to different word lines connected to the same memory plane are different. In an exemplary embodiment, the disk array labels corresponding to different memory planes connected to the same word line are different.

更详细来说,上述各字线连接多个实体程序化单元,并且存储器平面包括多个实体程序化单元。于此,存储器管理电路502设定多个磁盘阵列标签对应至多个存储器平面的多个实体程序化单元。而前述磁盘阵列标签对照表可记录与各存储器平面的各实体程序化单元所对应的磁盘阵列标签。In more detail, the above word lines are connected to a plurality of physical programming units, and the memory plane includes a plurality of physical programming units. Here, the memory management circuit 502 sets a plurality of disk array labels to correspond to a plurality of physical programming units of a plurality of memory planes. The aforementioned disk array label comparison table can record the disk array labels corresponding to each physical programming unit of each memory plane.

图6是根据本发明一范例实施例所示出的可复写式非易失性存储器模块的概要方块图。为了方便说明,本范例实施例以图6中的实体单元6101~6102做为一组运算单位为例进行说明。其中实体单元6101~6102分别包括24个实体程序化单元,然而本发明并不限制实体程序化单元的数量。6 is a schematic block diagram of a rewritable non-volatile memory module according to an exemplary embodiment of the present invention. For the convenience of description, this exemplary embodiment takes the physical units 6101 to 6102 in FIG. 6 as a set of operation units as an example for description. The physical units 6101-6102 respectively include 24 physical programming units, but the present invention does not limit the number of physical programming units.

图7是根据本发明一范例实施例所示出的同位信息缓冲器的概要方块图。请参照图6及图7,逻辑上属于同位信息缓冲器的存储单元702暂存同位信息,并且同位信息可分别存储于同位信息缓冲器包括的存储子单元720(0)~720(23)中。当存储器管理电路502从主机系统11接收写入指令与对应的数据时,存储器管理电路502将写入指令对应的数据依序写入至实体程序化单元6101(0)~6101(23)及6102(0)~6102(23)中。于此,数据例如是依据实体程序化单元6101(0)、6102(0)、6101(1)、6102(1)等顺序依序写入实体程序化单元。在本范例实施例中,实体程序化单元6101(0)~6101(23)及实体程序化单元6102(0)~6102(23)对应至不同存储器平面。FIG. 7 is a schematic block diagram of a parity information buffer according to an exemplary embodiment of the present invention. Referring to FIG. 6 and FIG. 7 , the storage unit 702 logically belonging to the parity information buffer temporarily stores parity information, and the parity information can be stored in the storage subunits 720(0) to 720(23) included in the parity information buffer, respectively. . When the memory management circuit 502 receives the write command and the corresponding data from the host system 11, the memory management circuit 502 sequentially writes the data corresponding to the write command to the physical programming units 6101(0)-6101(23) and 6102 (0) to 6102(23). Here, for example, the data is sequentially written into the physical programming units according to the sequence of the physical programming units 6101(0), 6102(0), 6101(1), and 6102(1). In this exemplary embodiment, the physical programming units 6101(0)-6101(23) and the physical programming units 6102(0)-6102(23) correspond to different memory planes.

以写入实体程序化单元6101(12)的数据为例。当数据写入至实体程序化单元6101(12)时,存储器管理电路502根据预设对照表或预设方程序决定实体程序化单元6101(12)对应至存储单元702的存储子单元720(12),并将所写入的数据与存储子单元720(12)中存储的同位信息进行逻辑运算。在本范例实施例中,存储子单元720(12)中存储的同位信息为根据预设对照表或预设方程序决定的与实体程序化单元6101(12)对应至相同存储子单元720(12)的实体程序化单元有实体程序化单元6102(0)。接着,存储器管理电路502在根据存储至实体单元6101~6102(即,一组运算单位)的数据计算完同位信息后,设定存储子单元720(0)~720(23)中存储的同位信息对应的磁盘阵列标签0~23,并将运算出的同位信息存储至可复写式非易失性存储器模块406中。特别地,存储器管理电路502设定的磁盘阵列标签0~23可分别对应至用于计算同位信息的数据所写入的实体程序化单元6101(0)~6101(23)、6102(0)~6102(23)。在本范例实施例中,存储器管理电路502利用磁盘阵列标签对照表记录磁盘阵列标签0~23以及与磁盘阵列标签0~23对应的用于计算同位信息的数据所写入的存储器平面及实体程序化单元6101(0)~6101(23)、6102(0)~6102(23),并利用另一对照表记录磁盘阵列标签0~23与磁盘阵列标签0~23对应的同位信息存储的地址。于此,本范例实施例产生的磁盘阵列标签0~23与存储器平面及实体程序化单元的对应关系可参照下表1。Take the data written to the physical programming unit 6101(12) as an example. When data is written into the physical programming unit 6101 ( 12 ), the memory management circuit 502 determines that the physical programming unit 6101 ( 12 ) corresponds to the storage sub-unit 720 ( 12 of the storage unit 702 ) according to the preset comparison table or the preset formula. ), and perform logical operation on the written data and the parity information stored in the storage subunit 720(12). In this exemplary embodiment, the parity information stored in the storage subunit 720(12) is determined according to a preset comparison table or a preset formula and corresponds to the same storage subunit 720(12) as the physical programming unit 6101(12). ) of the physical programming unit has the physical programming unit 6102(0). Next, the memory management circuit 502 sets the parity information stored in the storage subunits 720(0) to 720(23) after calculating the parity information according to the data stored in the physical units 6101 to 6102 (ie, a set of operation units). The corresponding disk array labels are 0 to 23, and the calculated parity information is stored in the rewritable non-volatile memory module 406. In particular, the disk array labels 0 to 23 set by the memory management circuit 502 can respectively correspond to the physical programming units 6101(0) to 6101(23) and 6102(0) to which the data for calculating the parity information is written. 6102(23). In this exemplary embodiment, the memory management circuit 502 uses the disk array tag comparison table to record the disk array tags 0-23 and the memory plane and the physical program written by the data for calculating the parity information corresponding to the disk array tags 0-23 Units 6101(0)-6101(23), 6102(0)-6102(23), and use another comparison table to record the addresses of the co-location information corresponding to disk array labels 0-23 and disk array labels 0-23. Here, the correspondence between the disk array labels 0 to 23 generated in this exemplary embodiment, the memory plane and the physical programming unit can be referred to in Table 1 below.

本范例实施例所产生的存储器平面、实体程序化单元与磁盘阵列标签的对应关系如下表1所示。请同时参照图6及下表1,在本范例实施例中,存储器存储装置10的存储器平面包括第一平面P0(即,第一存储器平面)及第二平面P1(即,第二存储器平面),并且第一平面P0连接第一字线WL0与第二字线WL1,第二平面P1亦连接第一字线WL0与第二字线WL1。于此,可复写式非易失性存储器模块406所包括的实体单元6101属于第一平面P0,实体单元6102属于第二平面P1。第一平面P0及第二平面P1分别包括实体程序化单元6101(0)~6101(23)与实体程序化单元6102(0)~6102(23),其中实体程序化单元6101(0)~6101(11)与6102(0)~6102(11)是由第一字线WL0连接的多个存储单元所构成,实体程序化单元6101(12)~6101(23)与6102(12)~6102(23)是由第二字线WL1连接的多个存储单元所构成。基于上述架构,本范例实施例对应实体单元6101~6102的48个实体程序化单元6101(0)~6101(23)、6102(0)~6102(23)设置的同位信息缓冲器包括24个存储子单元。The correspondence between the memory plane, the physical programming unit and the disk array label generated by this exemplary embodiment is shown in Table 1 below. 6 and Table 1 below, in this exemplary embodiment, the memory plane of the memory storage device 10 includes a first plane P0 (ie, the first memory plane) and a second plane P1 (ie, the second memory plane) , and the first plane P0 is connected to the first word line WL0 and the second word line WL1, and the second plane P1 is also connected to the first word line WL0 and the second word line WL1. Here, the physical unit 6101 included in the rewritable non-volatile memory module 406 belongs to the first plane P0, and the physical unit 6102 belongs to the second plane P1. The first plane P0 and the second plane P1 respectively include physical programming units 6101(0)-6101(23) and physical programming units 6102(0)-6102(23), wherein the physical programming units 6101(0)-6101 (11) and 6102(0)-6102(11) are composed of a plurality of memory cells connected to the first word line WL0. The physical programming units 6101(12)-6101(23) and 6102(12)-6102( 23) is composed of a plurality of memory cells connected by the second word line WL1. Based on the above structure, the parity information buffers set by the 48 physical programming units 6101(0)-6101(23) and 6102(0)-6102(23) corresponding to the physical units 6101-6102 in this exemplary embodiment include 24 storages subunit.

表1Table 1

Figure BDA0002557593260000111
Figure BDA0002557593260000111

在本范例实施例中,存储器管理电路502设定第一字线WL0连接第一平面P0对应至多个磁盘阵列标签(亦称为,第一磁盘阵列标签)。并且存储器管理电路502设定第二字线WL1连接第二平面P1对应至多个磁盘阵列标签(亦称为,第二磁盘阵列标签)。在本范例实施例中,存储器管理电路502设定第一字线WL0连接第一平面P0包括的实体程序化单元6101(0)~6101(11)分别对应第一磁盘阵列标签0~11,并且设定第二字线WL1连接第二平面P1包括的实体程序化单元6102(12)~6102(23)分别对应第二磁盘阵列标签0~11。另一方面,存储器控制电路单元404设定第一字线WL0连接第二平面P1包括的实体程序化单元6102(0)~6102(11)分别对应第一磁盘阵列标签12~23,并且设定第二字线WL1连接第一平面P0包括的实体程序化单元6101(12)~6101(23)分别对应第二磁盘阵列标签12~23。也就是说,本范例实施例的第一字线WL0与第二字线WL1连接的同一存储器平面(第一平面P0或第二平面P1)之中,各实体程序化单元对应的磁盘阵列标签没有相同的磁盘阵列标签。In this exemplary embodiment, the memory management circuit 502 sets the first word line WL0 to connect the first plane P0 to correspond to a plurality of disk array labels (also referred to as first disk array labels). And the memory management circuit 502 sets the second word line WL1 to connect the second plane P1 to a plurality of disk array labels (also referred to as second disk array labels). In this exemplary embodiment, the memory management circuit 502 sets the first word line WL0 to connect to the physical programming units 6101(0)-6101(11) included in the first plane P0 to correspond to the first disk array labels 0-11, respectively, and The physical programming units 6102 ( 12 ) to 6102 ( 23 ) included in the second word line WL1 connected to the second plane P1 are set to correspond to the second disk array labels 0 to 11 respectively. On the other hand, the memory control circuit unit 404 sets the first word line WL0 to connect the physical programming units 6102(0) to 6102(11) included in the second plane P1 to correspond to the first disk array labels 12 to 23 respectively, and sets The second word line WL1 connects the physical programming units 6101 ( 12 ) to 6101 ( 23 ) included in the first plane P0 and corresponds to the second disk array labels 12 to 23 , respectively. That is to say, in the same memory plane (the first plane P0 or the second plane P1) where the first word line WL0 and the second word line WL1 of the present exemplary embodiment are connected, the disk array labels corresponding to the physical programming units do not have The same disk array label.

基于前述本发明所提供的数据保护方法,即使连接不同实体平面的单一字线(例如,2P1WL)部分或全部失效,仍然能够根据本发明提供的磁盘阵列标签技术将存储的数据恢复。另一方面,即使同一实体平面连接的连续两个字线(例如,1P2WL)部分或全部失效,亦能够根据本发明提供的磁盘阵列标签技术将存储的数据恢复。相较过去只能保护其中一种实体失效的状况,本发明的实施例所提供的数据保护方法可同时保护上述两种状况。除此之外,以本发明实施例的实体单元6101~6102分别包括24个实体程序化单元为例,过去同位信息恢复技术若要同时保护2P1WL与1P2WL两种实体失效的状况时,需要与实体单元6101~6102中总共48个实体程序化单元对应的48个磁盘阵列标签及对应的暂存空间(例如,图7所示存储单元701包括的存储子单元710(0)~710(47))来存储暂存数据。此是因为一组同位信息缓冲器对应的一组实体单元中只能有一个实体程序化单元失效。相较于此,本发明提供的数据保护方法只需使用一半的磁盘阵列标签及对应的暂存空间即可同时保护2P1WL与1P2WL两种物理失效的状况,而可节省暂存空间。须注意的是,所属技术领域技术人员应当知晓如何利用同位信息将存储的数据恢复,故在此便不赘述。Based on the data protection method provided by the present invention, even if a single word line (eg, 2P1WL) connecting different physical planes partially or completely fails, the stored data can still be recovered according to the disk array labeling technology provided by the present invention. On the other hand, even if part or all of two consecutive word lines (eg, 1P2WL) connected to the same physical plane fail, the stored data can be recovered according to the disk array labeling technology provided by the present invention. Compared with the past situation where only one of the entities fails to be protected, the data protection method provided by the embodiment of the present invention can protect the above two situations at the same time. In addition, taking the physical units 6101 to 6102 of the embodiment of the present invention including 24 physical programming units as an example, in the past, when the co-located information recovery technology wanted to protect both the 2P1WL and 1P2WL physical failures, it was necessary to 48 disk array labels and corresponding temporary storage spaces corresponding to a total of 48 physical programming units in units 6101 to 6102 (for example, the storage subunits 710(0) to 710(47) included in the storage unit 701 shown in FIG. 7 ) to store temporary data. This is because only one physical programming unit in a group of physical units corresponding to a group of parity information buffers can fail. Compared with this, the data protection method provided by the present invention only needs to use half of the disk array label and the corresponding temporary storage space to simultaneously protect the two physical failures of 2P1WL and 1P2WL, thereby saving the temporary storage space. It should be noted that those skilled in the art should know how to use the parity information to restore the stored data, so it is not repeated here.

图8是根据本发明的一范例实施例所示出的数据保护方法的流程图。在步骤S802中,设定与多个字线及多个存储器平面对应的多个磁盘阵列标签。在步骤S804中,从主机系统接收写入指令及所述写入指令对应的数据。在步骤S806中,将所述数据依序写入至所述多个磁盘阵列标签对应的所述多个字线及所述多个存储器平面中。在步骤S808中,根据所述数据产生同位信息,并且设定所述同位信息对应的所述磁盘阵列标签。FIG. 8 is a flowchart of a data protection method according to an exemplary embodiment of the present invention. In step S802, a plurality of disk array labels corresponding to a plurality of word lines and a plurality of memory planes are set. In step S804, a write command and data corresponding to the write command are received from the host system. In step S806, the data is sequentially written into the plurality of word lines and the plurality of memory planes corresponding to the plurality of disk array tags. In step S808, parity information is generated according to the data, and the disk array label corresponding to the parity information is set.

值得注意的是,图8中各步骤可以实作为多个程序码或是电路,本发明不加以限制。此外,图8的方法可以搭配以上范例实施例使用,也可以单独使用,本发明不加以限制。It is worth noting that each step in FIG. 8 can be implemented as a plurality of program codes or circuits, which is not limited by the present invention. In addition, the method of FIG. 8 can be used in conjunction with the above exemplary embodiments, or can be used alone, which is not limited in the present invention.

综上所述,本发明的实施例所提供的数据保护方法、存储器存储装置及存储器控制电路单元,可以通过设定与多个字线及多个存储器平面对应的多个磁盘阵列标签。藉此,可在缓冲存储器的容量有限的状况下使用较少的磁盘阵列标签保护存储器的数据,而达到最大化保护效果。To sum up, the data protection method, the memory storage device, and the memory control circuit unit provided by the embodiments of the present invention can set a plurality of disk array labels corresponding to a plurality of word lines and a plurality of memory planes. In this way, under the condition that the capacity of the buffer memory is limited, fewer disk array labels can be used to protect the data in the memory, thereby maximizing the protection effect.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.

Claims (18)

1.一种数据保护方法,用于存储器存储装置,所述存储器存储装置包括可复写式非易失性存储器模块,所述可复写式非易失性存储器模块包括多个实体单元,每一所述多个实体单元包括多个实体程序化单元,每一所述实体程序化单元对应多个字线其中之一及多个存储器平面其中之一,所述数据保护方法包括:1. A data protection method for a memory storage device, the memory storage device comprising a rewritable non-volatile memory module, the rewritable non-volatile memory module comprising a plurality of physical units, each The plurality of physical units include a plurality of physical programming units, each of which corresponds to one of a plurality of word lines and one of a plurality of memory planes, and the data protection method includes: 设定与所述多个字线及所述多个存储器平面对应的多个磁盘阵列标签,setting a plurality of disk array labels corresponding to the plurality of word lines and the plurality of memory planes, 并且其中一所述多个字线连接其中一所述多个存储器平面所对应的所述多个磁盘阵列标签与另一所述多个字线连接另一所述多个存储器平面所对应的所述多个磁盘阵列标签至少部分相同;And one of the plurality of word lines is connected to the plurality of disk array tags corresponding to one of the plurality of memory planes and the other of the plurality of word lines is connected to the corresponding to the other plurality of memory planes. said multiple disk array labels are at least partially identical; 从主机系统接收写入指令及所述写入指令对应的数据;以及receiving a write command and data corresponding to the write command from a host system; and 将所述数据依序写入至所述多个磁盘阵列标签对应的所述多个字线及所述多个存储器平面中,writing the data into the plurality of word lines and the plurality of memory planes corresponding to the plurality of disk array tags in sequence, 根据所述数据产生同位信息,并且设定所述同位信息对应的所述磁盘阵列标签。Generate parity information according to the data, and set the disk array label corresponding to the parity information. 2.根据权利要求1所述的数据保护方法,其中所述多个存储器平面包括第一平面与第二平面,并且所述第一平面连接所述多个字线之中的第一字线与第二字线,所述第二平面连接所述第一字线与所述第二字线,2. The data protection method of claim 1, wherein the plurality of memory planes include a first plane and a second plane, and the first plane connects a first word line among the plurality of word lines to the a second word line, the second plane connects the first word line and the second word line, 其中所述第一字线连接所述第一平面并对应至多个第一磁盘阵列标签,并且所述第二字线连接所述第二平面并对应至多个第二磁盘阵列标签,wherein the first word line is connected to the first plane and corresponds to a plurality of first disk array labels, and the second word line is connected to the second plane and corresponds to a plurality of second disk array labels, 其中所述多个第一磁盘阵列标签与所述多个第二磁盘阵列标签至少部分相同。The plurality of first disk array labels are at least partially identical to the plurality of second disk array labels. 3.根据权利要求1所述的数据保护方法,其中不同的所述多个字线连接同一所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。3 . The data protection method of claim 1 , wherein the plurality of disk array labels corresponding to the same plurality of memory planes connected to the plurality of different word lines are different. 4 . 4.根据权利要求1所述的数据保护方法,其中同一所述多个字线连接不同的所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。4 . The data protection method according to claim 1 , wherein the plurality of disk array labels corresponding to the plurality of memory planes connected to the same plurality of word lines differently are different. 5 . 5.根据权利要求1所述的数据保护方法,其中设定与所述多个字线及所述多个存储器平面对应的所述多个磁盘阵列标签的步骤包括:5. The data protection method of claim 1, wherein the step of setting the plurality of disk array labels corresponding to the plurality of word lines and the plurality of memory planes comprises: 设定所述多个磁盘阵列标签对应至所述多个存储器平面及所述多个实体程序化单元。The plurality of disk array labels are set to correspond to the plurality of memory planes and the plurality of physical programming units. 6.根据权利要求1所述的数据保护方法,其中设定所述同位信息对应的所述磁盘阵列标签的步骤包括:6. The data protection method according to claim 1, wherein the step of setting the disk array label corresponding to the parity information comprises: 设定所述同位信息对应的所述磁盘阵列标签对应至用于计算所述同位信息的所述数据所写入的所述多个存储器平面及所述多个实体程序化单元。The disk array label corresponding to the parity information is set to correspond to the plurality of memory planes and the plurality of physical programming units in which the data for calculating the parity information is written. 7.一种存储器存储装置,包括:7. A memory storage device comprising: 连接接口单元,用以耦接至主机系统;a connection interface unit for coupling to the host system; 可复写式非易失性存储器模块,其中所述可复写式非易失性存储器模块包括多个实体单元,每一所述多个实体单元包括多个实体程序化单元,每一所述实体程序化单元对应多个字线其中之一及多个存储器平面其中之一;以及A rewritable non-volatile memory module, wherein the rewritable non-volatile memory module includes a plurality of physical units, each of the plurality of physical units includes a plurality of physical programming units, each of the physical programs The UL unit corresponds to one of the plurality of word lines and one of the plurality of memory planes; and 存储器控制电路单元,耦接至所述连接接口单元与所述可复写式非易失性存储器模块,a memory control circuit unit, coupled to the connection interface unit and the rewritable non-volatile memory module, 其中所述存储器控制电路单元用以设定与所述多个字线及所述多个存储器平面对应的多个磁盘阵列标签,wherein the memory control circuit unit is used for setting a plurality of disk array labels corresponding to the plurality of word lines and the plurality of memory planes, 并且其中一所述多个字线连接其中一所述多个存储器平面所对应的所述多个磁盘阵列标签与另一所述多个字线连接另一所述多个存储器平面所对应的所述多个磁盘阵列标签至少部分相同,And one of the plurality of word lines is connected to the plurality of disk array tags corresponding to one of the plurality of memory planes and the other of the plurality of word lines is connected to the corresponding to the other plurality of memory planes. said multiple disk array labels are at least partially identical, 所述存储器控制电路单元还用以从主机系统接收写入指令及所述写入指令对应的数据,并且The memory control circuit unit is further configured to receive a write command and data corresponding to the write command from the host system, and 所述存储器控制电路单元还用以将所述数据依序写入至所述多个磁盘阵列标签对应的所述多个字线及所述多个存储器平面中,The memory control circuit unit is further configured to sequentially write the data into the plurality of word lines and the plurality of memory planes corresponding to the plurality of disk array tags, 所述存储器控制电路单元还用以根据所述数据产生同位信息,并且设定所述同位信息对应的所述磁盘阵列标签。The memory control circuit unit is further configured to generate parity information according to the data, and set the disk array label corresponding to the parity information. 8.根据权利要求7所述的存储器存储装置,其中所述多个存储器平面包括第一平面与第二平面,并且所述第一平面连接所述多个字线之中的第一字线与第二字线,所述第二平面连接所述第一字线与所述第二字线,8. The memory storage device of claim 7, wherein the plurality of memory planes include a first plane and a second plane, and the first plane connects a first word line among the plurality of word lines to the a second word line, the second plane connects the first word line and the second word line, 其中所述存储器控制电路单元还用以设定所述第一字线连接所述第一平面并对应至多个第一磁盘阵列标签,并且设定所述第二字线连接所述第二平面并对应至多个第二磁盘阵列标签,The memory control circuit unit is further configured to set the first word line to connect to the first plane and to correspond to a plurality of first disk array labels, and to set the second word line to connect to the second plane and corresponding to multiple second disk array labels, 其中所述多个第一磁盘阵列标签与所述多个第二磁盘阵列标签至少部分相同。The plurality of first disk array labels are at least partially identical to the plurality of second disk array labels. 9.根据权利要求7所述的存储器存储装置,其中不同的所述多个字线连接的同一所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。9 . The memory storage device of claim 7 , wherein the plurality of disk array labels corresponding to the same plurality of memory planes connected to the different plurality of word lines are different. 10 . 10.根据权利要求7所述的存储器存储装置,其中同一所述多个字线连接的不同的所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。10. The memory storage device of claim 7, wherein the plurality of disk array labels corresponding to the different memory planes connected to the same plurality of word lines are different. 11.根据权利要求7所述的存储器存储装置,其中所述存储器控制电路单元用以设定与所述多个字线及所述多个存储器平面对应的所述多个磁盘阵列标签的操作包括:11. The memory storage device of claim 7, wherein the operation of the memory control circuit unit to set the plurality of disk array labels corresponding to the plurality of word lines and the plurality of memory planes comprises : 所述存储器控制电路单元还用以设定所述多个磁盘阵列标签对应至所述多个存储器平面及所述多个实体程序化单元。The memory control circuit unit is further configured to set the plurality of disk array labels to correspond to the plurality of memory planes and the plurality of physical programming units. 12.根据权利要求7所述的存储器存储装置,其中所述存储器控制电路单元还用以设定所述同位信息对应的所述磁盘阵列标签对应至用于计算所述同位信息的所述数据所写入的所述多个存储器平面及所述多个实体程序化单元。12. The memory storage device according to claim 7, wherein the memory control circuit unit is further configured to set the disk array label corresponding to the parity information to correspond to the data used to calculate the parity information. The plurality of memory planes and the plurality of physical programming units written. 13.一种存储器控制电路单元,用于控制包括可复写式非易失性存储器模块的存储器存储装置,其中所述可复写式非易失性存储器模块包括多个实体单元,每一所述多个实体单元包括多个实体程序化单元,每一所述实体程序化单元对应多个字线其中之一及多个存储器平面其中之一,且所述存储器控制电路单元包括:13. A memory control circuit unit for controlling a memory storage device comprising a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical units, each of the plurality of Each physical unit includes a plurality of physical programming units, each of which corresponds to one of a plurality of word lines and one of a plurality of memory planes, and the memory control circuit unit includes: 主机接口,用以耦接至主机系统;a host interface for coupling to a host system; 存储器接口,用以耦接至所述可复写式非易失性存储器模块;以及a memory interface for coupling to the rewritable non-volatile memory module; and 存储器管理电路,耦接至所述主机接口与所述存储器接口,memory management circuitry, coupled to the host interface and the memory interface, 其中所述存储器管理电路用以设定与所述多个字线及所述多个存储器平面对应的多个磁盘阵列标签,wherein the memory management circuit is used for setting a plurality of disk array labels corresponding to the plurality of word lines and the plurality of memory planes, 并且其中一所述多个字线连接其中一所述多个存储器平面所对应的所述多个磁盘阵列标签与另一所述多个字线连接另一所述多个存储器平面所对应的所述多个磁盘阵列标签至少部分相同,And one of the plurality of word lines is connected to the plurality of disk array tags corresponding to one of the plurality of memory planes and the other of the plurality of word lines is connected to the corresponding to the other plurality of memory planes. said multiple disk array labels are at least partially identical, 所述存储器管理电路还用以从主机系统接收写入指令及所述写入指令对应的数据,并且The memory management circuit is further configured to receive a write command and data corresponding to the write command from the host system, and 所述存储器管理电路还用以将所述数据依序写入至所述多个磁盘阵列标签对应的所述多个字线及所述多个存储器平面中,The memory management circuit is further configured to sequentially write the data into the plurality of word lines and the plurality of memory planes corresponding to the plurality of disk array tags, 所述存储器管理电路还用以根据所述数据产生同位信息,并且设定所述同位信息对应的所述磁盘阵列标签。The memory management circuit is further configured to generate parity information according to the data, and set the disk array label corresponding to the parity information. 14.根据权利要求13所述的存储器控制电路单元,其中所述多个存储器平面包括第一平面与第二平面,并且所述第一平面连接所述多个字线之中的第一字线与第二字线,所述第二平面连接所述第一字线与所述第二字线,14. The memory control circuit unit of claim 13, wherein the plurality of memory planes include a first plane and a second plane, and the first plane connects a first word line among the plurality of word lines and the second word line, the second plane connects the first word line and the second word line, 其中所述存储器管理电路还用以设定所述第一字线连接所述第一平面并对应至多个第一磁盘阵列标签,并且设定所述第二字线连接所述第二平面并对应至多个第二磁盘阵列标签,The memory management circuit is further configured to set the first word line to connect to the first plane and to correspond to a plurality of first disk array labels, and to set the second word line to connect to the second plane and correspond to to multiple second disk array labels, 其中所述多个第一磁盘阵列标签与所述多个第二磁盘阵列标签至少部分相同。The plurality of first disk array labels are at least partially identical to the plurality of second disk array labels. 15.根据权利要求13所述的存储器控制电路单元,其中不同的所述多个字线连接的同一所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。15. The memory control circuit unit according to claim 13, wherein the plurality of disk array labels corresponding to the same plurality of memory planes connected by different plurality of word lines are different. 16.根据权利要求13所述的存储器控制电路单元,其中同一所述多个字线连接的不同的所述多个存储器平面所对应的所述多个磁盘阵列标签不相同。16. The memory control circuit unit of claim 13, wherein the plurality of disk array labels corresponding to the different memory planes connected to the same plurality of word lines are different. 17.根据权利要求13所述的存储器控制电路单元,其中所述存储器管理电路用以设定与所述多个字线及所述多个存储器平面对应的所述多个磁盘阵列标签的操作包括:17. The memory control circuit unit of claim 13, wherein the operation of the memory management circuit to set the plurality of disk array tags corresponding to the plurality of word lines and the plurality of memory planes comprises : 所述存储器管理电路还用以设定所述多个磁盘阵列标签对应至所述多个存储器平面及所述多个实体程序化单元。The memory management circuit is further configured to set the plurality of disk array labels to correspond to the plurality of memory planes and the plurality of physical programming units. 18.根据权利要求13所述的存储器控制电路单元,其中所述存储器管理电路还用以设定所述同位信息对应的所述磁盘阵列标签对应至用于计算所述同位信息的所述数据所写入的所述多个存储器平面及所述多个实体程序化单元。18. The memory control circuit unit according to claim 13, wherein the memory management circuit is further configured to set the disk array label corresponding to the parity information to correspond to the data used to calculate the parity information. The plurality of memory planes and the plurality of physical programming units written.
CN202010596690.7A 2020-06-28 2020-06-28 Data protection method, memory storage device and memory control circuit unit Active CN111724851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010596690.7A CN111724851B (en) 2020-06-28 2020-06-28 Data protection method, memory storage device and memory control circuit unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010596690.7A CN111724851B (en) 2020-06-28 2020-06-28 Data protection method, memory storage device and memory control circuit unit

Publications (2)

Publication Number Publication Date
CN111724851A CN111724851A (en) 2020-09-29
CN111724851B true CN111724851B (en) 2022-05-10

Family

ID=72569253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010596690.7A Active CN111724851B (en) 2020-06-28 2020-06-28 Data protection method, memory storage device and memory control circuit unit

Country Status (1)

Country Link
CN (1) CN111724851B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6735765B1 (en) * 1999-12-07 2004-05-11 Storage Technology Corporation Sharing data between operating systems
CN105513635A (en) * 2014-09-23 2016-04-20 群联电子股份有限公司 Programming method, memory storage device and memory control circuit unit
CN107958687A (en) * 2016-10-18 2018-04-24 群联电子股份有限公司 Memory programming method, memory control circuit unit and memory device thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004265162A (en) * 2003-03-03 2004-09-24 Renesas Technology Corp Storage device and address management method
US8291305B2 (en) * 2008-09-05 2012-10-16 Freescale Semiconductor, Inc. Error detection schemes for a cache in a data processing system
US9286160B2 (en) * 2014-02-07 2016-03-15 Stmicroelectronics S.R.L. System and method for phase change memory with erase flag cells
US9348695B2 (en) * 2014-05-21 2016-05-24 Sandisk Technologies Inc. System and method of storing redundancy data
TWI640997B (en) * 2017-12-27 2018-11-11 群聯電子股份有限公司 Data protecting method, memory control circuit unit and memory storage apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6735765B1 (en) * 1999-12-07 2004-05-11 Storage Technology Corporation Sharing data between operating systems
CN105513635A (en) * 2014-09-23 2016-04-20 群联电子股份有限公司 Programming method, memory storage device and memory control circuit unit
CN107958687A (en) * 2016-10-18 2018-04-24 群联电子股份有限公司 Memory programming method, memory control circuit unit and memory device thereof

Also Published As

Publication number Publication date
CN111724851A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
CN111078149B (en) Memory management method, memory storage device and memory control circuit unit
TWI658463B (en) Data access method,memory control circuit unit and memory storage device
US11614997B2 (en) Memory storage apparatus with protection of command data in a host buffer in response to a system abnormality
CN107045890B (en) Data protection method, memory control circuit unit and memory storage device
US12197737B2 (en) Decoding method, memory storage device and memory control circuit unit
TW202230377A (en) Data accessing method, memory control circuit unit and memory storage device
TWI658402B (en) Data writing method, memory control circuit unit and memory storage device
CN112051963B (en) Data writing method, memory control circuit unit and memory storage device
TWI738390B (en) Data protection method, memory storage device and memory control circuit unit
US20240028506A1 (en) Mapping table re-building method, memory storage device and memory control circuit unit
CN111724851B (en) Data protection method, memory storage device and memory control circuit unit
CN110874282B (en) Data access method, memory control circuit unit and memory storage device
CN114077515A (en) Data writing method, memory control circuit unit, and memory storage device
TWI804236B (en) Memory management method, memory storage device and memory control circuit unit
CN111831210A (en) Memory management method, memory control circuit unit, and memory storage device
US11817172B2 (en) Table management method, memory storage device and memory control circuit unit
US12008239B1 (en) Memory management method, memory storage device and memory control circuit unit
CN112965670B (en) Host memory buffer management method, storage device and control circuit unit
CN112347010B (en) Memory control method, memory storage device and memory control circuit unit
CN114527941B (en) Memory control method, memory storage device and memory control circuit unit
TWI763310B (en) Memory control method, memory storage device and memory control circuit unit
TWI777087B (en) Data managing method, memory controlling circuit unit and memory storage device
CN112099727B (en) Data writing method, memory control circuit unit, and memory storage device
CN111858389B (en) Data writing method, memory control circuit unit and memory storage device
CN107305476B (en) Data correction 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