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 PDFInfo
- 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
Links
- 230000015654 memory Effects 0.000 title claims abstract description 396
- 230000005055 memory storage Effects 0.000 title claims abstract description 56
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000008878 coupling Effects 0.000 claims description 7
- 238000010168 coupling process Methods 0.000 claims description 7
- 238000005859 coupling reaction Methods 0.000 claims description 7
- 238000003860 storage Methods 0.000 description 24
- 238000012937 correction Methods 0.000 description 21
- 239000000872 buffer Substances 0.000 description 19
- 238000010586 diagram Methods 0.000 description 14
- 238000005516 engineering process Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000002372 labelling Methods 0.000 description 2
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C16/00—Erasable programmable read-only memories
- G11C16/02—Erasable programmable read-only memories electrically programmable
- G11C16/04—Erasable programmable read-only memories electrically programmable using variable threshold transistors, e.g. FAMOS
- G11C16/0483—Erasable programmable read-only memories electrically programmable using variable threshold transistors, e.g. FAMOS comprising cells having several storage transistors connected in series
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C16/00—Erasable programmable read-only memories
- G11C16/02—Erasable programmable read-only memories electrically programmable
- G11C16/06—Auxiliary circuits, e.g. for writing into memory
- G11C16/08—Address circuits; Decoders; Word-line control circuits
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C16/00—Erasable programmable read-only memories
- G11C16/02—Erasable programmable read-only memories electrically programmable
- G11C16/06—Auxiliary circuits, e.g. for writing into memory
- G11C16/22—Safety or protection circuits preventing unauthorised or accidental access to memory cells
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/04—Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
- G11C29/08—Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
- G11C29/12—Built-in arrangements for testing, e.g. built-in self testing [BIST] or interconnection details
- G11C29/38—Response verification devices
- G11C29/42—Response verification devices using error correcting codes [ECC] or parity check
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C8/00—Arrangements for selecting an address in a digital store
- G11C8/14—Word 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
本发明提供一种数据保护方法、存储器存储装置及存储器控制电路单元。所述方法包括:设定与多个字线及多个存储器平面对应的多个磁盘阵列标签,并且其中一字线连接其中一存储器平面所对应的磁盘阵列标签与另一字线连接另一存储器平面所对应的磁盘阵列标签至少部分相同;从主机系统接收写入指令及写入指令对应的数据;以及将数据依序写入至多个磁盘阵列标签对应的多个字线及多个存储器平面中。
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 .
Description
技术领域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
在本范例实施例中,主机系统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
在本范例实施例中,处理器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
在一范例实施例中,所提及的主机系统为可实质地与存储器存储装置配合以存储数据的任意系统。虽然在上述范例实施例中,主机系统是以电脑系统来作说明,然而,图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
图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
连接接口单元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
存储器控制电路单元404用以执行以硬件型式或固件型式实作的多个逻辑门或控制指令并且根据主机系统11的指令在可复写式非易失性存储器模块406中进行数据的写入、读取与抹除等运作。The memory
可复写式非易失性存储器模块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
可复写式非易失性存储器模块406中的每一个存储单元是以电压(以下亦称为临界电压)的改变来存储一或多个比特。具体来说,每一个存储单元的控制栅极(controlgate)与通道之间有一个电荷捕捉层。通过施予一写入电压至控制栅极,可以改变电荷补捉层的电子量,进而改变存储单元的临界电压。此改变存储单元的临界电压的操作亦称为“把数据写入至存储单元”或“程序化(programming)存储单元”。随着临界电压的改变,可复写式非易失性存储器模块406中的每一个存储单元具有多个存储状态。通过施予读取电压可以判断一个存储单元是属于哪一个存储状态,藉此取得此存储单元所存储的一或多个比特。Each memory cell in the rewritable
在本范例实施例中,可复写式非易失性存储器模块406的存储单元可构成多个实体程序化单元,并且此些实体程序化单元可构成多个实体抹除单元。具体来说,同一条字线上的存储单元可组成一或多个实体程序化单元。若每一个存储单元可存储2个以上的比特,则同一条字线上的实体程序化单元可至少可被分类为下实体程序化单元与上实体程序化单元。例如,一存储单元的最低有效位(Least Significant Bit,LSB)是属于下实体程序化单元,并且一存储单元的最高有效位(Most Significant Bit,MSB)是属于上实体程序化单元。一般来说,在MLC NAND型快闪存储器中,下实体程序化单元的写入速度会大于上实体程序化单元的写入速度,和/或下实体程序化单元的可靠度是高于上实体程序化单元的可靠度。In this exemplary embodiment, the storage units of the rewritable
在本范例实施例中,实体程序化单元为程序化的最小单元。即,实体程序化单元为写入数据的最小单元。例如,实体程序化单元可为实体页面(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
存储器管理电路502用以控制存储器控制电路单元404的整体运作。具体来说,存储器管理电路502具有多个控制指令,并且在存储器存储装置10运作时,此些控制指令会被执行以进行数据的写入、读取与抹除等运作。以下说明存储器管理电路502的操作时,等同于说明存储器控制电路单元404的操作。The
在本范例实施例中,存储器管理电路502的控制指令是以固件型式来实作。例如,存储器管理电路502具有微处理器单元(未示出)与只读存储器(未示出),并且此些控制指令是被烧录至此只读存储器中。当存储器存储装置10运作时,此些控制指令会由微处理器单元来执行以进行数据的写入、读取与抹除等运作。In this exemplary embodiment, the control commands of the
在另一范例实施例中,存储器管理电路502的控制指令亦可以代码型式存储于可复写式非易失性存储器模块406的特定区域(例如,存储器模块中专用于存放系统数据的系统区)中。此外,存储器管理电路502具有微处理器单元(未示出)、只读存储器(未示出)及随机存取存储器(未示出)。特别是,此只读存储器具有开机码(boot code),并且当存储器控制电路单元404被致能时,微处理器单元会先执行此开机码来将存储于可复写式非易失性存储器模块406中的控制指令载入至存储器管理电路502的随机存取存储器中。之后,微处理器单元会运转此些控制指令以进行数据的写入、读取与抹除等运作。In another exemplary embodiment, the control instructions of the
此外,在另一范例实施例中,存储器管理电路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
主机接口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
存储器接口506是耦接至存储器管理电路502并且用以存取可复写式非易失性存储器模块406。也就是说,欲写入至可复写式非易失性存储器模块406的数据会经由存储器接口506转换为可复写式非易失性存储器模块406所能接受的格式。具体来说,若存储器管理电路502要存取可复写式非易失性存储器模块406,存储器接口506会传送对应的指令序列。例如,这些指令序列可包括指示写入数据的写入指令序列、指示读取数据的读取指令序列、指示抹除数据的抹除指令序列、以及用以指示各种存储器操作(例如,改变读取电压电平或执行垃圾收集操作等)的相对应的指令序列。这些指令序列例如是由存储器管理电路502产生并且通过存储器接口506传送至可复写式非易失性存储器模块406。这些指令序列可包括一或多个信号,或是在总线上的数据。这些信号或数据可包括指令码或代码。例如,在读取指令序列中,会包括读取的识别码、存储器地址等信息。The
在一范例实施例中,存储器控制电路单元404还包括错误检查与校正电路508、缓冲存储器510与电源管理电路512。In an exemplary embodiment, the memory
错误检查与校正电路508是耦接至存储器管理电路502并且用以执行错误检查与校正操作以确保数据的正确性。具体来说,当存储器管理电路502从主机系统11中接收到写入指令时,错误检查与校正电路508会为对应此写入指令的数据产生对应的错误更正码(error correcting code,ECC)和/或错误检查码(error detecting code,EDC),并且存储器管理电路502会将对应此写入指令的数据与对应的错误更正码和/或错误检查码写入至可复写式非易失性存储器模块406中。之后,当存储器管理电路502从可复写式非易失性存储器模块406中读取数据时会同时读取此数据对应的错误更正码及/或错误检查码,并且错误检查与校正电路508会依据此错误更正码和/或错误检查码对所读取的数据执行错误检查与校正操作。The error checking and
缓冲存储器510是耦接至存储器管理电路502并且用以暂存来自于主机系统11的数据与指令或来自于可复写式非易失性存储器模块406的数据。在本实施例中,缓冲存储器510包括同位信息缓冲器,同位信息缓冲器用以暂存同位信息。电源管理电路512是耦接至存储器管理电路502并且用以控制存储器存储装置10的电源。The
在一范例实施例中,图4的可复写式非易失性存储器模块406亦称为快闪(flash)存储器模块,且存储器控制电路单元404亦称为用于控制快闪存储器模块的快闪存储器控制器。在一范例实施例中,图5的存储器管理电路502亦称为快闪存储器管理电路。In an exemplary embodiment, the rewritable
在本范例实施例中,错误检查与校正电路508是以低密度奇偶检查码(lowdensity parity code,LDPC)来实作。然而,在另一范例实施例中,错误检查与校正电路508也可以BCH码、回旋码(convolutional code)、涡轮码(turbo code)、比特翻转(bitflipping)等编码/解码算法来实作。In this exemplary embodiment, the error checking and
具体来说,存储器管理电路502会依据所接收的数据及对应的错误检查与校正码(以下亦称为错误校正码)来产生错误校正码框(ECC Frame)并且将错误校正码框写入至可复写式非易失性存储器模块406中。之后,当存储器管理电路502从可复写式非易失性存储器模块406读取数据时,错误检查与校正电路508会根据错误校正码框中的错误校正码来验证所读取的数据的正确性。Specifically, the
需先说明的是,以下描述存储器管理电路502、主机接口504与存储器接口506、错误检查与校正电路508、缓冲存储器510与电源管理电路512所执行的操作,亦可参考为由存储器控制电路单元404所执行。It should be noted that the operations performed by the
在一范例实施例中,存储器存储装置10包括多个可复写式非易失性存储器模块406,可复写式非易失性存储器模块406包括多个字线(word line,WL)及多个存储器平面(plane)。并且,字线连接多个存储器平面。In an exemplary embodiment, the
上述可复写式非易失性存储器模块406的装置是依据可复写式非易失性存储器模块406的存储器晶粒(die)中的存储器平面所划分的。具体来说,可复写式非易失性存储器模块406可具有1个或多个存储器晶粒,每一存储器晶粒具有1个或多个存储器平面,并且每一存储器平面会有多个实体程序化单元。在出厂时,厂商会根据其需求将1个或多个存储器平面划分为1个装置。藉此,厂商可依装置为单位来管理整个可复写式非易失性存储器模块406。本发明并不限定每一装置所包含的存储器平面的数量。The devices of the rewritable
在本范例实施例中,可复写式非易失性存储器模块406为三维(Three Dimension,3D)复数阶存储单元(Trinary Level Cell,TLC)NAND型快闪存储器模块(即,一个存储单元中可存储3个数据比特的快闪存储器模块)或其他具有相同特性的存储器模块。然而,本发明不限于此,可复写式非易失性存储器模块406亦可是3D多阶存储单元(Multi LevelCell,MLC)NAND型快闪存储器模块(即,一个存储单元中可存储2个比特数据的快闪存储器模块)或其他具有相同特性的存储器模块。In the present exemplary embodiment, the rewritable
在本范例实施例中,可复写式非易失性存储器模块406包括多个实体单元且每一实体单元包括多个实体程序化单元,并且每一实体程序化单元对应一字线及一存储器平面。In this exemplary embodiment, the rewritable
在一范例实施例中,存储器管理电路502从主机系统11接收写入指令与对应的数据时,存储器管理电路502会将数据暂存至缓冲存储器510,并且将数据根据实体程序化单元的大小整理成子数据串。之后,存储器管理电路502会将子数据串分别且依序地程序化至实体程序化单元。In an exemplary embodiment, when the
另一方面,存储器管理电路502会根据子数据串来产生用于保护子数据串的同位信息。详言之,存储器管理电路502可根据预设对照表或预设方程序决定每一同位信息对应的磁盘阵列标签,其中磁盘阵列标签用以表示每一同位信息是由哪些子数据串于同位信息缓冲器进行运算获得。据此,在将子数据串分别且依序地程序化至实体程序化单元时,存储器管理电路502根据预设对照表或预设方程序决定子数据串于同位信息缓冲器中与属于相同的磁盘阵列标签的子数据串进行逻辑运算产生同位信息。在一实施例中,产生同位信息的逻辑运算方式例如是XOR运算。然后,在计算完一组运算单位(例如,一组实体单元)后,存储器管理电路502会将同位信息程序化至可复写式非易失性存储器模块406中。特别地,存储器管理电路502设定的磁盘阵列标签可分别对应至用于计算同位信息的子数据串所写入的存储器平面及实体程序化单元。基此,存储器管理电路502可利用一磁盘阵列标签对照表记录磁盘阵列标签以及与磁盘阵列标签对应的用于计算同位信息的子数据串所写入的存储器平面及实体程序化单元,并可以利用另一对照表记录磁盘阵列标签以及与磁盘阵列标签对应的同位信息存储的地址。On the other hand, the
具体而言,存储器管理电路502设定与多个字线及多个存储器平面对应的多个磁盘阵列标签。并且其中一字线连接其中一存储器平面对应的多个磁盘阵列标签与另一字线连接另一存储器平面对应的多个磁盘阵列标签至少部分相同。于此,可复写式非易失性存储器模块406的其中一字线连接其中一存储器平面与另一字线连接另一存储器平面为不同的存储器平面。并且磁盘阵列标签用于表示其中一字线连接其中一存储器平面所对应的多个实体程序化单元与另一字线连接另一存储器平面所对应的多个实体程序化单元数据之间的保护关系。Specifically, the
举例来说,存储器存储装置10的存储器平面包括第一平面及第二平面,并且第一平面连接第一字线与第二字线,第二平面亦连接第一字线与第二字线。第一平面及第二平面分别对应实体程序化单元,其中部分实体程序化单元是由第一字线连接的多个存储单元所构成,部分实体程序化单元是由第二字线连接的多个存储单元所构成。在本范例实施例中,第一字线连接第一平面并对应至多个第一磁盘阵列标签,并且第二字线连接第二平面并对应至多个第二磁盘阵列标签。其中多个第一磁盘阵列标签与多个第二磁盘阵列标签至少部分相同。For example, the memory plane of the
在一范例实施例中,不同的字线连接同一存储器平面所对应的磁盘阵列标签不相同。在一范例实施例中,同一字线连接不同的存储器平面所对应的磁盘阵列标签不相同。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
图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
图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
以写入实体程序化单元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
本范例实施例所产生的存储器平面、实体程序化单元与磁盘阵列标签的对应关系如下表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
表1Table 1
在本范例实施例中,存储器管理电路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
基于前述本发明所提供的数据保护方法,即使连接不同实体平面的单一字线(例如,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
图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)
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)
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)
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 |
-
2020
- 2020-06-28 CN CN202010596690.7A patent/CN111724851B/en active Active
Patent Citations (3)
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 |