TW201506931A - Method for managing a memory apparatus, and associated memory apparatus thereof and associated controller thereof - Google Patents
Method for managing a memory apparatus, and associated memory apparatus thereof and associated controller thereof Download PDFInfo
- Publication number
- TW201506931A TW201506931A TW102144911A TW102144911A TW201506931A TW 201506931 A TW201506931 A TW 201506931A TW 102144911 A TW102144911 A TW 102144911A TW 102144911 A TW102144911 A TW 102144911A TW 201506931 A TW201506931 A TW 201506931A
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- volatile memory
- memory
- specific
- block
- Prior art date
Links
Landscapes
- Read Only Memory (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
本發明係有關於快閃記憶體(Flash Memory)之控制,尤指一種用來管理一記憶裝置之方法以及其相關之記憶裝置與控制器。 The present invention relates to the control of flash memory, and more particularly to a method for managing a memory device and its associated memory device and controller.
近年來由於快閃記憶體的技術不斷地發展,各種可攜式記憶裝置(例如:符合SD/MMC、CF、MS、XD標準之記憶卡)被廣泛地實施於諸多應用中。因此,這些可攜式記憶裝置中之快閃記憶體的存取控制遂成為相當熱門的議題。 In recent years, due to the continuous development of flash memory technology, various portable memory devices (for example, memory cards conforming to SD/MMC, CF, MS, and XD standards) have been widely implemented in many applications. Therefore, access control of flash memory in these portable memory devices has become a hot topic.
以常用的NAND型快閃記憶體而言,其主要可區分為單階細胞(Single Level Cell,SLC)與多階細胞(Multiple Level Cell,MLC)兩大類之快閃記憶體。單階細胞快閃記憶體中之每個被當作記憶細胞(Memory Cell;亦可稱為「記憶單元」)的電晶體只有兩種電荷值,分別用來表示邏輯值0與邏輯值1。另外,多階細胞快閃記憶體中之每個被當作記憶細胞的電晶體的儲存能力則被充分利用,係採用較高的電壓來驅動,以透過不同級別的電壓在一個電晶體中記錄多個位元之資訊(例如:00、01、11、10);理論上,多階細胞快閃記憶體的記錄密度可以達到單階細胞快閃記憶體的記錄密度之兩倍以上,這對於曾經在發展過程中遇到瓶頸的NAND型快閃記憶體之相關產業而言,是非常好的消息。 In the conventional NAND type flash memory, it can be mainly divided into two types of flash memory: single level cell (SLC) and multiple level cell (MLC). Each of the single-order cellular flash memories, which are treated as memory cells (also known as "memory cells"), has only two types of charge values, which are used to represent a logical value of 0 and a logical value of 1, respectively. In addition, the storage capacity of each of the multi-order cellular flash memory, which is treated as a memory cell, is fully utilized and is driven by a higher voltage to record in a transistor through different levels of voltage. Information on multiple bits (eg 00, 01, 11, 10); in theory, the recording density of multi-level cellular flash memory can reach more than twice the recording density of single-order cellular flash memory, It is very good news for industries related to NAND-type flash memory that have encountered bottlenecks in the development process.
相較於單階細胞快閃記憶體,由於多階細胞快閃記憶體之價格較便宜,並且在有限的空間裡可提供較大的容量,故多階細胞快閃記憶體很快地成為市面上之可攜式記憶裝置競相採用的主流。依據相關技術,由於 某些類型的多階細胞快閃記憶體的運作複雜,故傳統的記憶體控制器會將多階細胞快閃記憶體內的一部分實體區塊組態成單階細胞記憶區塊,以供接收來自主裝置(Host Device)之寫入資料。然而,某些問題就產生了。例如:由於多階細胞快閃記憶體內的一部分實體區塊被組態成單階細胞記憶區塊,多階細胞快閃記憶體內可供用來作為多階細胞記憶區塊的實體區塊之數量就減少了,使得傳統的記憶裝置之整體儲存容量減少了。又例如:傳統的記憶體控制器先將接收資料暫時地寫入單階細胞記憶區塊,再將資料從單階細胞記憶區塊收集到多階細胞記憶區塊,其中這些單階細胞記憶區塊的儲存空間很容易用完,故傳統的記憶體控制器需要頻繁地抹除這些單階細胞記憶區塊。於是,傳統的記憶體控制器的工作負荷大幅地增加了,且這些額外的運作需要額外的處理時間,使得傳統的記憶裝置之整體效能變差。因此,需要一種新穎的方法來加強控管快閃記憶體之資料存取,以在不產生副作用(例如:儲存資料錯誤)的狀況下提升整體效能。 Compared to single-order cellular flash memory, multi-order cellular flash memory quickly becomes a market because multi-stage cellular flash memory is cheaper and provides a larger capacity in a limited space. The mainstream of portable memory devices on the competition. According to related technology, due to Some types of multi-order cellular flash memory are complicated to operate, so the traditional memory controller configures a part of the physical blocks in the multi-order cellular flash memory into a single-order cellular memory block for receiving from The data written by the host device (Host Device). However, some problems have arisen. For example, since a part of the physical block in the multi-order cell flash memory is configured as a single-order cell memory block, the number of physical blocks available in the multi-order cell flash memory as a multi-order cell memory block is This has been reduced, resulting in a reduction in the overall storage capacity of conventional memory devices. For example, the traditional memory controller temporarily writes the received data into the single-order cell memory block, and then collects the data from the single-order cell memory block to the multi-order cell memory block, wherein these single-order cell memory regions The storage space of the block is easy to use, so the traditional memory controller needs to erase these single-order cell memory blocks frequently. As a result, the workload of the conventional memory controller has been greatly increased, and these additional operations require additional processing time, which deteriorates the overall performance of the conventional memory device. Therefore, there is a need for a novel method to enhance data access to control flash memory to improve overall performance without side effects (eg, storage data errors).
因此,本發明之目的之一在於提供一種用來管理一記憶裝置之方法以及其相關之記憶裝置與控制器,以解決上述問題。 Accordingly, it is an object of the present invention to provide a method for managing a memory device and associated memory device and controller to solve the above problems.
本發明之另一目的在於提供一種用來管理一記憶裝置之方法以及其相關之記憶裝置與控制器,以提昇記憶裝置之運作效能。 Another object of the present invention is to provide a method for managing a memory device and its associated memory device and controller to improve the operational efficiency of the memory device.
本發明之至少一較佳實施例中提供一種用來管理一記憶裝置之方法,該記憶裝置包含至少一非揮發性(Non-volatile,NV)記憶體元件,每一非揮發性記憶體元件包含複數個區塊(Block),該方法係應用於該記憶裝置中之一控制器,該控制器係用來控制該至少一非揮發性記憶體元件,該方法包含有下列步驟:將接收自一主裝置(Host Device)之資料暫時地儲存於該控制器中之一揮發性記憶體作為接收資料,並動態地監控該接收資料的資料量以決定是否立即將該接收資料寫入該至少一非揮發性記憶體元件,其中接收自該主裝置之至少一寫入指令指出該主裝置要求寫入該資料;以及當 接收到一特定訊號、並且偵測到該接收資料中存在特定資料尚未被寫入該至少一非揮發性記憶體元件中之一特定非揮發性記憶體元件當中被組態成多階細胞(Multiple Level Cell,MLC)記憶區塊之一特定區塊內之相同位置達一預定次數時,立即將該特定資料寫入該至少一非揮發性記憶體元件中之另一區塊,以避免該特定資料之損失,其中該特定訊號指出該控制器之電源係反常、或指出該記憶裝置將關機,而該預定次數大於一,以及該另一區塊係被組態成單階細胞(Single Level Cell,SLC)記憶區塊。 At least one preferred embodiment of the present invention provides a method for managing a memory device, the memory device including at least one non-volatile (NV) memory component, each non-volatile memory component comprising a plurality of blocks, the method being applied to a controller in the memory device, the controller is for controlling the at least one non-volatile memory component, the method comprising the following steps: receiving a block The data of the host device is temporarily stored in the controller as one of the volatile memory as the received data, and dynamically monitors the amount of data of the received data to determine whether to immediately write the received data to the at least one non- a volatile memory component, wherein at least one write command received from the master device indicates that the master device requires writing of the data; Receiving a specific signal, and detecting that the specific data in the received data has not been written into one of the at least one non-volatile memory element, the specific non-volatile memory element is configured as a multi-order cell (Multiple Level Cell (MLC), when the same location in a particular block of a memory block reaches a predetermined number of times, immediately writes the specific data to another block of the at least one non-volatile memory element to avoid the specific Loss of data, wherein the particular signal indicates that the power supply to the controller is abnormal, or indicates that the memory device is shut down, and the predetermined number of times is greater than one, and the other block is configured as a single-stage cell (Single Level Cell) , SLC) memory block.
本發明於提供上述方法之同時,亦對應地提供一種記憶裝置,包含有:至少一非揮發性記憶體元件,每一非揮發性記憶體元件包含複數個區塊;以及一控制器,用來控制該至少一非揮發性記憶體元件,該控制器包含一處理單元,以依據內嵌於該處理單元或接收自該處理單元之外之一程式碼來管理該記憶裝置。另外,該控制器將接收自一主裝置之資料暫時地儲存於該控制器中之一揮發性記憶體作為接收資料,並動態地監控該接收資料的資料量以決定是否立即將該接收資料寫入該至少一非揮發性記憶體元件,其中接收自該主裝置之至少一寫入指令指出該主裝置要求寫入該資料。此外,當接收到一特定訊號、並且偵測到該接收資料中存在特定資料尚未被寫入該至少一非揮發性記憶體元件中之一特定非揮發性記憶體元件當中被組態成多階細胞記憶區塊之一特定區塊內之相同位置達一預定次數時,該控制器立即將該特定資料寫入該至少一非揮發性記憶體元件中之另一區塊,以避免該特定資料之損失,其中該特定訊號指出該控制器之電源係反常、或指出該記憶裝置將關機,而該預定次數大於一,以及該另一區塊係被組態成單階細胞記憶區塊。 While providing the above method, the present invention also correspondingly provides a memory device comprising: at least one non-volatile memory element, each non-volatile memory element comprising a plurality of blocks; and a controller for The at least one non-volatile memory component is controlled, the controller including a processing unit to manage the memory device according to a code embedded in or received from the processing unit. In addition, the controller temporarily stores the data received from a master device in one of the volatile memory of the controller as the received data, and dynamically monitors the amount of data of the received data to determine whether to immediately write the received data. The at least one non-volatile memory component is received, wherein at least one write command received from the master device indicates that the master device requires writing of the data. In addition, when a specific signal is received, and it is detected that the specific data in the received data has not been written into one of the at least one non-volatile memory element, the plurality of non-volatile memory elements are configured to be multi-order. When the same location in a particular block of the cell memory block reaches a predetermined number of times, the controller immediately writes the specific data to another block of the at least one non-volatile memory element to avoid the specific data. The loss, wherein the particular signal indicates that the power supply to the controller is abnormal, or indicates that the memory device is to be turned off, and the predetermined number of times is greater than one, and the other block is configured as a single-order cellular memory block.
本發明於提供上述方法之同時,亦對應地提供一種記憶裝置之控制器,該記憶裝置包含至少一非揮發性記憶體元件,每一非揮發性記憶體元件包含複數個區塊,該控制器包含有:一處理單元,用來依據內嵌於該處理單元或接收自該處理單元之外之一程式碼來管理該記憶裝置。另外,該 控制器將接收自一主裝置之資料暫時地儲存於該控制器中之一揮發性記憶體作為接收資料,並動態地監控該接收資料的資料量以決定是否立即將該接收資料寫入該至少一非揮發性記憶體元件,其中接收自該主裝置之至少一寫入指令指出該主裝置要求寫入該資料。此外,當接收到一特定訊號、並且偵測到該接收資料中存在特定資料尚未被寫入該至少一非揮發性記憶體元件中之一特定非揮發性記憶體元件當中被組態成多階細胞記憶區塊之一特定區塊內之相同位置達一預定次數時,該控制器立即將該特定資料寫入該至少一非揮發性記憶體元件中之另一區塊,以避免該特定資料之損失,其中該特定訊號指出該控制器之電源係反常、或指出該記憶裝置將關機,而該預定次數大於一,以及該另一區塊係被組態成單階細胞記憶區塊。 While providing the above method, the present invention also correspondingly provides a controller for a memory device, the memory device comprising at least one non-volatile memory component, each non-volatile memory component comprising a plurality of blocks, the controller The method includes: a processing unit configured to manage the memory device according to a code embedded in the processing unit or received from the processing unit. In addition, the The controller temporarily stores the data received from a master device in the volatile memory of the controller as the received data, and dynamically monitors the amount of data of the received data to determine whether to immediately write the received data to the at least A non-volatile memory component, wherein at least one write command received from the master device indicates that the master device requires writing of the data. In addition, when a specific signal is received, and it is detected that the specific data in the received data has not been written into one of the at least one non-volatile memory element, the plurality of non-volatile memory elements are configured to be multi-order. When the same location in a particular block of the cell memory block reaches a predetermined number of times, the controller immediately writes the specific data to another block of the at least one non-volatile memory element to avoid the specific data. The loss, wherein the particular signal indicates that the power supply to the controller is abnormal, or indicates that the memory device is to be turned off, and the predetermined number of times is greater than one, and the other block is configured as a single-order cellular memory block.
本發明的好處之一是,相較於相關技術,本發明之方法、記憶裝置、與控制器不必使用大量的單階細胞記憶區塊,故能省下上述大量的單階細胞記憶區塊所佔用的儲存空間,以提供更多的多階細胞記憶區塊。因此,本發明提供較相關技術更高的儲存容量。 One of the advantages of the present invention is that the method, the memory device, and the controller of the present invention do not have to use a large number of single-order cell memory blocks compared to the related art, so that the above-mentioned large number of single-order cell memory blocks can be saved. Take up storage space to provide more multi-level cell memory blocks. Thus, the present invention provides a higher storage capacity than related art.
本發明的另一好處是,相較於相關技術,本發明之方法、記憶裝置、與控制器可在不產生副作用(例如:儲存資料錯誤)的狀況下提升整體效能。尤其是,本發明之方法、記憶裝置、與控制器可大幅地省下先將接收資料暫時地寫入上述大量的單階細胞記憶區塊再將資料從上述大量的單階細胞記憶區塊收集到多階細胞記憶區塊的時間,還可省下頻繁地抹除上述大量的單階細胞記憶區塊的時間。因此,本發明提供較相關技術更佳的效能。 Another advantage of the present invention is that the method, memory device, and controller of the present invention can improve overall performance without causing side effects (e.g., storing data errors) as compared to the related art. In particular, the method, the memory device, and the controller of the present invention can substantially save the temporary reception of the received data into the plurality of single-order cellular memory blocks and collect the data from the plurality of single-order cellular memory blocks. By the time of the multi-order cell memory block, the time to frequently erase the above-mentioned large number of single-order cell memory blocks can be saved. Thus, the present invention provides better performance than related techniques.
100‧‧‧記憶裝置 100‧‧‧ memory device
110‧‧‧處理單元 110‧‧‧Processing unit
120‧‧‧揮發性記憶體 120‧‧‧ volatile memory
130‧‧‧傳輸介面 130‧‧‧Transport interface
140_0,140_1,...,140_N‧‧‧非揮發性記憶體元件 140_0,140_1,...,140_N‧‧‧Non-volatile memory components
150‧‧‧匯流排 150‧‧‧ busbar
200‧‧‧用來管理一記憶裝置之方法 200‧‧‧Methods for managing a memory device
210,220‧‧‧步驟 210,220‧‧ steps
BLK(0),BLK(1),BLK(2),...,BLK(M),BLK(m),BLK(m’)‧‧‧區塊 BLK(0), BLK(1), BLK(2),...,BLK(M),BLK(m),BLK(m’)‧‧‧ blocks
CHP(n)‧‧‧快閃晶片 CHP(n)‧‧‧flash chip
Data(0),Data(1),Data(2),Data(6),Data(7),Data(8),...‧‧‧資料 Data(0), Data(1), Data(2), Data(6), Data(7), Data(8),...‧‧‧Information
Data(3),Data(4),Data(5), Page(0),Page(1),Page(2),Page(3),Page(4),Page(5),Page(6),Page(7),Page(8),..., Page(189),Page(190),Page(191)‧‧‧頁 Data(3), Data(4), Data(5), Page(0), Page(1), Page(2), Page(3), Page(4), Page(5), Page(6), Page(7), Page(8),..., Page (189), Page (190), Page (191) ‧ ‧ page
SEC(0),SEC(1),SEC(2),SEC(3)‧‧‧區段 SEC(0), SEC(1), SEC(2), SEC(3)‧‧‧ Section
WL0,WL1,WL2, WL3,WL4,WL5,WL6,...,WL63‧‧‧字線 WL0, WL1, WL2, WL3, WL4, WL5, WL6,..., WL63‧‧‧ word line
第1圖為依據本發明一第一實施例之一種記憶裝置的示意圖。 1 is a schematic view of a memory device in accordance with a first embodiment of the present invention.
第2圖繪示本發明之一實施例中關於第1圖所示之非揮發性記憶體元件中之一者的內容安排,其中該非揮發性記憶體元件於本實施例中係為快閃晶片。 2 is a view showing an arrangement of one of the non-volatile memory elements shown in FIG. 1 in an embodiment of the present invention, wherein the non-volatile memory element is a flash chip in this embodiment. .
第3圖繪示本發明之另一實施例中關於第1圖所示之非揮發性記憶體元件中之一者的內容安排,其中該非揮發性記憶體元件於本實施例中係為快閃晶片。 FIG. 3 is a diagram showing the content arrangement of one of the non-volatile memory elements shown in FIG. 1 in another embodiment of the present invention, wherein the non-volatile memory element is flashed in this embodiment. Wafer.
第4圖為依據本發明一實施例之一種用來管理一記憶裝置之方法。 Figure 4 is a diagram of a method for managing a memory device in accordance with an embodiment of the present invention.
第5圖繪示第4圖所示之方法於一實施例中所涉及之控制方案。 FIG. 5 is a diagram showing the control scheme involved in the method shown in FIG. 4 in an embodiment.
第6圖繪示第4圖所示之方法於另一實施例中所涉及之控制方案。 Figure 6 is a diagram showing the control scheme involved in the method shown in Figure 4 in another embodiment.
第7圖繪示第4圖所示之方法於另一實施例中所涉及之控制方案。 Figure 7 is a diagram showing the control scheme involved in the method shown in Figure 4 in another embodiment.
第8圖繪示第4圖所示之方法於另一實施例中所涉及之控制方案。 Figure 8 is a diagram showing the control scheme involved in the method shown in Figure 4 in another embodiment.
第9圖繪示第4圖所示之方法於另一實施例中所涉及之控制方案。 Figure 9 is a diagram showing the control scheme involved in the method shown in Figure 4 in another embodiment.
第10圖繪示第4圖所示之方法於另一實施例中所涉及之控制方案。 Figure 10 is a diagram showing the control scheme involved in the method shown in Figure 4 in another embodiment.
請參考第1圖,其繪示依據本發明一第一實施例之一種記憶裝置100的示意圖。記憶裝置100包含:一處理單元110,一揮發性(Volatile)記憶體120,一傳輸介面130,複數個非揮發性(Non-volatile,NV)記憶體元件140_0、140_1、...、與140_N(符號「N」代表一正整數)諸如(N+1)個快閃晶片,以及一匯流排150。於典型狀況下,於傳輸介面130耦接至一主裝置(未顯示於第1圖)之後,該主裝置可透過傳輸介面130來存取(Access)記憶裝置100。舉例來說,該主裝置可代表一個人電腦,例如一膝上型電腦或一桌上型電腦。 Please refer to FIG. 1 , which illustrates a schematic diagram of a memory device 100 in accordance with a first embodiment of the present invention. The memory device 100 includes: a processing unit 110, a volatile (Volatile) memory 120, a transmission interface 130, and a plurality of non-volatile (NV) memory elements 140_0, 140_1, ..., and 140_N (The symbol "N" represents a positive integer) such as (N+1) flash chips, and a bus 150. In a typical case, after the transmission interface 130 is coupled to a host device (not shown in FIG. 1), the host device can access the memory device 100 through the transmission interface 130. For example, the primary device can represent a personal computer, such as a laptop or a desktop computer.
處理單元110可依據內嵌於處理單元110中或接收自處理單元110之外的程式碼(未顯示)來管理記憶裝置100。例如:該程式碼可為內嵌於處理單元110之硬體碼,尤其是一唯讀記憶體碼(ROM code)。又例如:該程式碼可為接收自處理單元110之外的韌體碼。尤其是,處理單元110係用來控制揮發性記憶體120、傳輸介面130、非揮發性記憶體元件140_0、140_1、...、與140_N、以及匯流排150。本實施例之處理單元110可為一高 級縮減指令集電腦機器(Advanced Reduced Instruction Set Computer Machine,Advanced RISC Machine,ARM)處理器或一亞哥縮減指令集電腦核心(Argonaut RISC Core,ARC)處理器。這只是為了說明的目的而已,並非對本發明之限制。依據本實施例之不同的變化例,處理單元110可為其它種處理器。 The processing unit 110 can manage the memory device 100 in accordance with code (not shown) embedded in or received from the processing unit 110. For example, the code may be a hardware code embedded in the processing unit 110, especially a ROM code. For another example, the code may be a firmware code received from the processing unit 110. In particular, processing unit 110 is used to control volatile memory 120, transmission interface 130, non-volatile memory elements 140_0, 140_1, . . . , and 140_N, and bus bar 150. The processing unit 110 of this embodiment may be a high An Advanced Reduced Instruction Set Computer Machine (Advanced RISC Machine, ARM) processor or an Argonaut RISC Core (ARC) processor. This is for illustrative purposes only and is not a limitation of the invention. According to various variations of this embodiment, processing unit 110 can be other types of processors.
另外,揮發性記憶體120可用來儲存一全域頁位址鏈結表(Global Page Address Linking Table)、該主裝置所存取之資料、以及用來存取記憶裝置100之其它所需資訊。本實施例之揮發性記憶體120可為一動態隨機存取記憶體(Dynamic Random Access Memory,DRAM)或一靜態隨機存取記憶體(Static Random Access Memory,SRAM)。這只是為了說明的目的而已,並非對本發明之限制。依據本實施例之不同的變化例,揮發性記憶體120可為其它種揮發性記憶體。例如:揮發性記憶體120可包含一靜態隨機存取記憶體(Static Random Access Memory,SRAM)。 In addition, the volatile memory 120 can be used to store a Global Page Address Linking Table, information accessed by the host device, and other required information for accessing the memory device 100. The volatile memory 120 of this embodiment may be a dynamic random access memory (DRAM) or a static random access memory (SRAM). This is for illustrative purposes only and is not a limitation of the invention. According to various variations of the embodiment, the volatile memory 120 can be other types of volatile memory. For example, the volatile memory 120 can include a static random access memory (SRAM).
依據本實施例,第1圖所示之傳輸介面130係用來傳輸資料以及該主裝置與記憶裝置100之間的指令,其中傳輸介面130符合一特定通訊標準諸如串列高級技術附件(Serial Advanced Technology Attachment,SATA)標準、並列高級技術附件(Parallel Advanced Technology Attachment,PATA)標準、或通用序列匯流排(Universal Serial Bus,USB)標準。例如:記憶裝置100係一設置於該主裝置中之固態硬碟(Solid State Drive,SSD),且該特定通訊標準可為用來實施該主裝置之內部通訊的一些典型通訊標準,諸如串列高級技術附件標準或並列高級技術附件標準。又例如:記憶裝置100係一固態硬碟且位於該主裝置之外,並且該特定通訊標準可為用來實施該主裝置之外部通訊的一些典型通訊標準,諸如通用序列匯流排標準。這只是為了說明的目的而已,並非對本發明之限制。依據本實施例之不同的變化例,記憶裝置100可為一可攜式記憶裝置諸如一記憶卡,且該特定通訊標準可為用來實施一記憶卡之輸入/輸出介面的一些典型通訊標準,諸如安全數碼 (Secure Digital,SD)標準或小型快閃(Compact Flash,CF)標準。 According to the embodiment, the transmission interface 130 shown in FIG. 1 is used for transmitting data and instructions between the host device and the memory device 100, wherein the transmission interface 130 conforms to a specific communication standard such as a serial advanced technology accessory (Serial Advanced). Technology Attachment (SATA) standard, Parallel Advanced Technology Attachment (PATA) standard, or Universal Serial Bus (USB) standard. For example, the memory device 100 is a Solid State Drive (SSD) disposed in the host device, and the specific communication standard may be some typical communication standard used to implement internal communication of the host device, such as serial Advanced Technical Attachment Standard or Parallel Advanced Technical Attachment Standard. For another example, the memory device 100 is a solid state drive and is external to the host device, and the particular communication standard can be some typical communication standard used to implement external communication of the host device, such as a universal serial bus standard. This is for illustrative purposes only and is not a limitation of the invention. According to different variants of the embodiment, the memory device 100 can be a portable memory device such as a memory card, and the specific communication standard can be some typical communication standard for implementing an input/output interface of a memory card. Such as security digital (Secure Digital, SD) standard or Compact Flash (CF) standard.
另外,非揮發性記憶體元件140_0、140_1、...、與140_N係用來儲存資料,其中非揮發性記憶體元件140_0、140_1、...、與140_N可為(但不限於)NAND型快閃晶片。匯流排150係用來耦接處理單元110、揮發性記憶體120、傳輸介面130、和非揮發性記憶體元件140_0、140_1、...、與140_N,以及用來進行其通訊。於本實施例中,第1圖所示架構中除了非揮發性記憶體元件140_0、140_1、...、與140_N之外的部分可整合成一控制器,尤其是一積體電路(Integrated Circuit,IC)諸如一控制器晶片,其中該控制器係用來控制記憶裝置100中之至少一非揮發性記憶體元件諸如非揮發性記憶體元件140_0、140_1、...、與140_N,故可視為記憶裝置100之控制器。 In addition, the non-volatile memory elements 140_0, 140_1, ..., and 140_N are used to store data, wherein the non-volatile memory elements 140_0, 140_1, ..., and 140_N may be (but are not limited to) NAND type Flash chip. The bus bar 150 is used to couple the processing unit 110, the volatile memory 120, the transmission interface 130, and the non-volatile memory elements 140_0, 140_1, ..., and 140_N, and to communicate therewith. In this embodiment, the parts other than the non-volatile memory elements 140_0, 140_1, ..., and 140_N in the architecture shown in FIG. 1 can be integrated into a controller, especially an integrated circuit (Integrated Circuit, IC), such as a controller chip, wherein the controller is used to control at least one non-volatile memory component such as non-volatile memory components 140_0, 140_1, ..., and 140_N in memory device 100, such that The controller of the memory device 100.
第2圖繪示本發明一實施例中關於第1圖所示之非揮發性記憶體元件140_0、140_1、...、與140_N中之任一非揮發性記憶體元件140_n的內容安排,其中非揮發性記憶體元件140_n於本實施例中可稱為快閃晶片CHP(n),而索引n可代表落入區間[0,N]的範圍內之任一整數。如第2圖所示,非揮發性記憶體元件140_0、140_1、...、與140_N中之每一非揮發性記憶體元件諸如快閃晶片CHP(n)可包含複數個區塊(Block)諸如第2圖所示之各個區塊BLK(0)、BLK(1)、BLK(2)、...、與BLK(M)(符號「M」代表一正整數),其中每一區塊可包含複數頁,而每一頁可包含複數個區段。於本實施例中,一區段可為最小讀取單位。換言之,在一讀取運作期間,處理單元110可讀取一個區段或複數個區段。這只是為了說明的目的而已,並非對本發明之限制。 2 is a diagram showing the content arrangement of any one of the non-volatile memory elements 140_0, 140_1, . . . , and 140_N shown in FIG. 1 according to an embodiment of the present invention, wherein The non-volatile memory element 140_n may be referred to as a flash wafer CHP(n) in this embodiment, and the index n may represent any integer falling within the range of the interval [0, N]. As shown in FIG. 2, each of the non-volatile memory elements 140_0, 140_1, ..., and 140_N, such as the flash wafer CHP(n), may include a plurality of blocks. Each of the blocks BLK(0), BLK(1), BLK(2), ..., and BLK(M) (the symbol "M" represents a positive integer) as shown in Fig. 2, each block Multiple pages can be included, and each page can contain a plurality of segments. In this embodiment, a segment can be the minimum read unit. In other words, during a read operation, processing unit 110 can read one segment or a plurality of segments. This is for illustrative purposes only and is not a limitation of the invention.
如第2圖所示,在非揮發性記憶體元件140_n諸如快閃晶片CHP(n)中之一區塊(例如區塊BLK(0))被組態成單階細胞(Single Level Cell,SLC)記憶區塊的狀況下,該區塊諸如區塊BLK(0)可包含一預定數量之多頁,諸如分別對應於複數個字線(Word-Line)WL0、WL1、WL2、...、與WL63之各頁Page(0)、Page(1)、Page(2)、...、與Page(63),其中每一頁諸如頁Page(0) 可包含區段SEC(0)、SEC(1)、SEC(2)、與SEC(3)。這只是為了說明的目的而已,並非對本發明之限制。依據本實施例之某些變化例,諸如第3圖所示之實施例,在非揮發性記憶體元件140_n諸如快閃晶片CHP(n)中之一區塊(例如區塊BLK(0))被組態成多階細胞(Multiple Level Cell,MLC)記憶區塊諸如三階細胞(Triple Level Cell,TLC)記憶區塊的狀況下,該區塊諸如區塊BLK(0)可包含一預定數量之多頁,諸如分別對應於上述複數個字線WL0、WL1、WL2、...、與WL63之各組頁{Page(0),Page(1),Page(2)}、{Page(3),Page(4),Page(5)}、{Page(6),Page(7),Page(8)}、...、與{Page(189),Page(190),Page(191)},其中每一頁諸如頁Page(0)可包含區段SEC(0)、SEC(1)、SEC(2)、與SEC(3)。 As shown in FIG. 2, one of the non-volatile memory elements 140_n such as the flash wafer CHP(n) (for example, the block BLK(0)) is configured as a single-level cell (Single Level Cell, SLC). In the case of a memory block, the block, such as block BLK(0), may comprise a predetermined number of pages, such as corresponding to a plurality of word lines (Word-Line) WL0, WL1, WL2, ..., respectively. Pages (0), Page(1), Page(2), ..., and Page(63) with WL63, each page such as Page(0) Sections SEC(0), SEC(1), SEC(2), and SEC(3) may be included. This is for illustrative purposes only and is not a limitation of the invention. According to some variations of this embodiment, such as the embodiment illustrated in FIG. 3, one of the non-volatile memory elements 140_n, such as a flash wafer CHP(n) (eg, block BLK(0)) In the case of being configured as a multiple level cell (MLC) memory block such as a Triple Level Cell (TLC) memory block, the block such as block BLK(0) may contain a predetermined number a plurality of pages, such as respective pages {Page(0), Page(1), Page(2)}, {Page(3) corresponding to the plurality of word lines WL0, WL1, WL2, ..., and WL63, respectively. ), Page(4), Page(5)}, {Page(6), Page(7), Page(8)},..., and {Page(189), Page(190), Page(191) }, where each page such as page Page(0) may contain sections SEC(0), SEC(1), SEC(2), and SEC(3).
請注意,上述之至少一非揮發性記憶體元件中之任一區塊中之每一記憶細胞(Memory Cell)的儲存容量大於一個位元,其中該控制器可選擇性地將這個區塊組態成單階細胞記憶區塊以於一個記憶細胞儲存一個位元,亦可選擇性地將這個區塊組態成多階細胞記憶區塊以於一個記憶細胞儲存多個位元。 Note that each of the at least one non-volatile memory component has a storage capacity greater than one bit per memory cell, wherein the controller selectively selects the block group The single-order cell memory block stores a bit in a memory cell, and can also selectively configure the block into a multi-order cell memory block to store a plurality of bits in one memory cell.
第4圖為依據本發明一實施例之一種用來管理一記憶裝置之方法200。該方法可應用於第1圖所示之記憶裝置100,尤其是上述之控制器(例如:透過處理單元110執行上述程式碼之記憶體控制器),其中執行上述程式碼之該控制器係用來控制上述之至少一非揮發性記憶體元件諸如第1圖所示之非揮發性記憶體元件140_0、140_1、...、與140_N。該方法說明如下: 4 is a diagram of a method 200 for managing a memory device in accordance with an embodiment of the present invention. The method can be applied to the memory device 100 shown in FIG. 1 , in particular, the above-mentioned controller (for example, a memory controller that executes the above code through the processing unit 110 ), wherein the controller for executing the above code is used. The at least one non-volatile memory component such as the non-volatile memory components 140_0, 140_1, ..., and 140_N shown in FIG. 1 are controlled. The method is described as follows:
於步驟210中,該控制器將接收自該主裝置之資料暫時地儲存於該控制器中之揮發性記憶體120作為接收資料,並動態地監控該接收資料的資料量以決定是否立即將該接收資料寫入上述之至少一非揮發性記憶體元件,其中接收自該主裝置之至少一寫入指令指出該主裝置要求寫入該資料。例如:當該接收資料中之部分資料(Partial Data)的資料量達到一預定資料量門檻值PDDA_TH時,該控制器立即將該部分資料寫入上述之至少一 非揮發性記憶體元件,尤其是將該部分資料直接寫入至少一個多階細胞記憶區塊,而非藉由先將該接收資料暫時地寫入如相關技術中之大量的單階細胞記憶區塊中之一個或多個單階細胞記憶區塊來間接地將該接收資料寫入上述至少一個多階細胞記憶區塊。如此,該控制器不必使用上述大量的單階細胞記憶區塊,故能避免相關技術的問題。 In step 210, the controller temporarily stores the data from the host device in the volatile memory 120 stored in the controller as receiving data, and dynamically monitors the amount of data of the received data to determine whether to immediately The received data is written to the at least one non-volatile memory component, wherein at least one write command received from the master device indicates that the master device requires the data to be written. For example, when the amount of data of the Partial Data in the received data reaches a predetermined data threshold PDDA_TH, the controller immediately writes the partial data to at least one of the above. The non-volatile memory component, in particular, directly writes the portion of the data to at least one multi-level cell memory block, rather than by temporarily writing the received data to a large number of single-order cell memory regions as in the related art. One or more single-order cellular memory blocks in the block indirectly write the received data into the at least one multi-level cellular memory block. Thus, the controller does not have to use a large number of single-order cell memory blocks as described above, so that the problems of the related art can be avoided.
於步驟220中,當接收到一特定訊號、並且偵測到該接收資料中存在特定資料尚未被寫入上述之至少一非揮發性記憶體元件中之一特定非揮發性記憶體元件當中被組態成多階細胞記憶區塊(例如第3圖所示實施例中具有192頁Page(0),Page(1),...,Page(191)之該區塊)之一特定區塊內之相同位置達一預定次數PDNT_WR時,該控制器立即將該特定資料寫入上述之至少一非揮發性記憶體元件中之另一區塊,以避免該特定資料之損失,其中該特定訊號指出該控制器之電源係反常、或指出記憶裝置100將關機,而預定次數PDNT_WR大於一,並且該另一區塊係被組態成單階細胞(Single Level Cell,SLC)記憶區塊(例如第2圖所示實施例中具有64頁Page(0),Page(1),...,Page(63)之該區塊)。依據本實施例之不同的變化例,該特定訊號可包含一關機指令與一電源偵測訊號中之至少一者(例如:該關機指令;又例如:該電源偵測訊號;又例如:該關機指令與該電源偵測訊號),其中該電源偵測訊號係用來指出關於該電源之電源喪失(Power Loss)與電源下降(Power Down)中之任一者之發生。該關機指令的例子可包含(但不限於)來自該主裝置之清除快取指令。 In step 220, when a specific signal is received, and it is detected that the specific data in the received data has not been written into one of the at least one non-volatile memory element, the specific non-volatile memory element is grouped. The state is a multi-order cell memory block (for example, in the embodiment shown in FIG. 3, there is a page of 192 pages of Page(0), Page(1), ..., Page(191)) in a specific block. When the same position reaches a predetermined number of times PDNT_WR, the controller immediately writes the specific data into another block of the at least one non-volatile memory element to avoid loss of the specific data, wherein the specific signal indicates The power supply of the controller is abnormal, or indicates that the memory device 100 will be turned off, and the predetermined number of times PDNT_WR is greater than one, and the other block is configured as a single level cell (SLC) memory block (for example, In the embodiment shown in Fig. 2, there are 64 pages of Page(0), Page(1), ..., Page(63). According to different variants of the embodiment, the specific signal may include at least one of a shutdown command and a power detection signal (eg, the shutdown command; for example, the power detection signal; and, for example, the shutdown The command and the power detection signal are used to indicate the occurrence of any of Power Loss and Power Down of the power source. Examples of the shutdown command may include, but are not limited to, a clear cache instruction from the master device.
實作上,該特定非揮發性記憶體元件可為第3圖所示實施例中之快閃晶片CHP(n),而該特定區塊可為區塊{BLK(0),BLK(1),BLK(2),...,BLK(M)}中之一區塊諸如區塊BLK(m),並且索引m可代表落入區間[0,M]的範圍內之任一整數。尤其是,該另一區塊可為異於該特定區塊之任何區塊,諸如區塊BIK(m’),而索引m’可代表落入區間[0,M]的範圍內之任一可能的整數。例如:該另一區塊和該特定區塊可位於同一個快閃晶片,其中索引m’ 不等於索引m。又例如:該另一區塊和該特定區塊可位於不同的快閃晶片,其中索引m’可為落入區間[0,M]的範圍內之任一整數。 In practice, the specific non-volatile memory component can be the flash wafer CHP(n) in the embodiment shown in FIG. 3, and the specific block can be the block {BLK(0), BLK(1). One of the blocks BLK(2), ..., BLK(M)} such as block BLK(m), and the index m may represent any integer falling within the range of the interval [0, M]. In particular, the other block may be any block that is different from the particular block, such as block BIK(m'), and the index m' may represent any of the ranges falling within the interval [0, M] Possible integer. For example, the other block and the specific block can be located on the same flash chip, where index m' Not equal to index m. For another example, the other block and the particular block may be located on different flash chips, wherein the index m' may be any integer falling within the range of the interval [0, M].
依據本實施例,在該特定區塊中之一記憶細胞被用來儲存複數個位元的狀況下,該複數個位元需被重複地寫入該記憶細胞達預定次數PDNT_WR以使該記憶細胞於該特定非揮發性記憶體元件當中被正確地程式化(Programmed),以致該複數個位元中之每一位元均正確地儲存於該記憶細胞以供進一步讀取。實作上,揮發性記憶體120的儲存容量大於或等於預定資料量門檻值PDDA_TH和預定次數PDNT_WR之乘積(PDDA_TH * PDNT_WR),以容許該接收資料之至少一部分被用於該記憶細胞之重複寫入運作。例如:針對某些類型的多階細胞快閃記憶體而言,該特定區塊可被組態成三階細胞記憶區塊,而預定次數PDNT_WR可等於三,並且預定資料量門檻值PDDA_TH可等於該特定非揮發性記憶體元件當中屬於一個字線(Word-Line)之一組記憶細胞的儲存容量。這只是為了說明的目的而已,並非對本發明之限制。 According to this embodiment, in a case where one of the memory cells in the specific block is used to store a plurality of bits, the plurality of bits are repeatedly written into the memory cell for a predetermined number of times PDNT_WR to make the memory cell It is correctly programmed among the particular non-volatile memory elements such that each of the plurality of bits is correctly stored in the memory cell for further reading. In practice, the storage capacity of the volatile memory 120 is greater than or equal to a product of a predetermined data threshold PDDA_TH and a predetermined number of PDNT_WR (PDDA_TH * PDNT_WR) to allow at least a portion of the received data to be used for repeated writing of the memory cell. Into the operation. For example, for certain types of multi-level cellular flash memory, the particular block can be configured as a third-order cellular memory block, and the predetermined number of PDNT_WR can be equal to three, and the predetermined data threshold value PDDA_TH can be equal to Among the specific non-volatile memory elements, the storage capacity of one of the memory cells belonging to one word line. This is for illustrative purposes only and is not a limitation of the invention.
請注意,於本實施例中,該控制器可多次將該接收資料直接寫入該特定區塊,以確保使用者資料不會有任何錯誤。尤其是,在該控制器之控制下,該接收資料被寫入該特定區塊之次數達到預定次數PDNT_WR以使該特定區塊中屬於一特定字線之一特定組記憶細胞於該特定非揮發性記憶體元件當中被正確地程式化,以致該接收資料中之每一位元均正確地儲存於該特定組記憶細胞以供進一步讀取。 Please note that in this embodiment, the controller can directly write the received data to the specific block to ensure that the user data does not have any errors. In particular, under the control of the controller, the received data is written into the specific block for a predetermined number of times PDNT_WR such that a particular group of memory cells belonging to a particular word line in the particular block is in the particular non-volatile The memory elements are correctly programmed so that each bit in the received data is correctly stored in the particular set of memory cells for further reading.
依據本實施例之某些變化例,該控制器自該主裝置分別接收複數組資料{Data(0),Data(1),Data(2)}、{Data(3),Data(4),Data(5)}、{Data(6),Data(7),Data(8)}、...,且將該複數組資料{Data(0),Data(1),Data(2)}、{Data(3),Data(4),Data(5)}、{Data(6),Data(7),Data(8)}、...暫時地儲存於揮發性記憶體120,其中該複數組資料中之每一組資料包含複數頁,且該複數組資料中之每一組資料的資料量等於預定資料量門檻值PDDA_TH。尤其是,該控制器自 揮發性記憶體120讀取該複數組資料{Data(0),Data(1),Data(2)}、{Data(3),Data(4),Data(5)}、{Data(6),Data(7),Data(8)}、...中之至少一組資料,以將上述之至少一組資料直接寫入該特定區塊,其中上述之至少一組資料被寫入該特定區塊之次數尚未達到預定次數PDNT_WR,並且步驟220中所述之該特定資料包含上述之至少一組資料。這只是為了說明的目的而已,並非對本發明之限制。依據本發明之某些實施例,該控制器自揮發性記憶體120讀取該複數組資料{Data(0),Data(1),Data(2)}、{Data(3),Data(4),Data(5)}、{Data(6),Data(7),Data(8)}、...,以分別將該複數組資料{Data(0),Data(1),Data(2)}、{Data(3),Data(4),Data(5)}、{Data(6),Data(7),Data(8)}、...直接寫入該特定區塊,並且多次將該複數組資料{Data(0),Data(1),Data(2)}、{Data(3),Data(4),Data(5)}、{Data(6),Data(7),Data(8)}、...中之第一組資料{Data(0),Data(1),Data(2)}直接寫入該特定區塊,其中第一組資料{Data(0),Data(1),Data(2)}被寫入該特定區塊之次數達到預定次數PDNT_WR以使該特定區塊中屬於一特定字線之一特定組記憶細胞於該特定非揮發性記憶體元件當中被正確地程式化,以致第一組資料{Data(0),Data(1),Data(2)}中之每一位元均正確地儲存於該特定組記憶細胞以供進一步讀取。 According to some variations of the embodiment, the controller receives the complex array data {Data(0), Data(1), Data(2)}, {Data(3), Data(4), respectively, from the master device. Data(5)}, {Data(6), Data(7), Data(8)}, ..., and the complex array data {Data(0), Data(1), Data(2)}, {Data(3), Data(4), Data(5)}, {Data(6), Data(7), Data(8)}, ... are temporarily stored in the volatile memory 120, wherein the plural Each group of data in the group data includes a plurality of pages, and the data amount of each group of data in the complex array data is equal to a predetermined data amount threshold PDDA_TH. In particular, the controller is self-contained The volatile memory 120 reads the complex array data {Data(0), Data(1), Data(2)}, {Data(3), Data(4), Data(5)}, {Data(6) And at least one set of data of Data (7), Data (8)}, ... to write at least one of the above-mentioned materials directly to the specific block, wherein at least one of the above-mentioned materials is written to the specific block The number of blocks has not reached the predetermined number of times PDNT_WR, and the specific data described in step 220 contains at least one of the above-mentioned materials. This is for illustrative purposes only and is not a limitation of the invention. According to some embodiments of the present invention, the controller reads the complex array data {Data(0), Data(1), Data(2)}, {Data(3), Data(4) from the volatile memory 120. ), Data(5)}, {Data(6), Data(7), Data(8)}, ..., to separate the complex array data {Data(0), Data(1), Data(2 )}, {Data(3), Data(4), Data(5)}, {Data(6), Data(7), Data(8)}, ... directly write to the specific block, and more The complex array data {Data(0), Data(1), Data(2)}, {Data(3), Data(4), Data(5)}, {Data(6), Data(7) The first set of data {Data(0), Data(1), Data(2)} in Data(8)},... is directly written to the specific block, where the first set of data {Data(0) , Data(1), Data(2)} is written to the specific block for a predetermined number of times PDNT_WR such that a particular group of memory cells belonging to a particular word line in the particular block is in the particular non-volatile memory The components are correctly programmed so that each of the first set of data {Data(0), Data(1), Data(2)} is correctly stored in the particular set of memory cells for further reading. .
依據本發明之某些實施例,該控制器可自該主裝置逐頁地接收該複數組資料{Data(0),Data(1),Data(2)}、{Data(3),Data(4),Data(5)}、{Data(6),Data(7),Data(8)}、...中之至少一組資料中之至少一頁(例如:一頁或多頁),且將該組資料中之上述至少一頁暫時地儲存於揮發性記憶體120,其中該特定資料包含該組資料中之上述至少一頁,以及在該組資料之總接收資料量達到預定資料量門檻值PDDA_TH之前,該組資料並未被寫入該特定區塊。當該特定訊號所代表之危機狀況(例如:該電源係反常;又例如:記憶裝置100將關機)解除時,該控制器可自該另一區塊讀取該組資料中之上述至少一頁,並將讀取自該另一區塊之上述至少一頁暫時地儲存於揮發性記憶體120,以供寫入該特定區塊。如此,該控制器可確保揮發性記憶體120 中之最新儲存資訊等同於上述之危機狀況出現時揮發性記憶體120中之儲存資訊,藉此,該控制器可繼續正常的運作,猶如上述之危機狀況未曾出現。 According to some embodiments of the present invention, the controller may receive the complex array data {Data(0), Data(1), Data(2)}, {Data(3), Data (page by page) from the host device. 4) at least one of at least one of the data of Data(5)}, {Data(6), Data(7), Data(8)}, ... (for example: one or more pages), And storing at least one of the at least one page of the set of data in the volatile memory 120, wherein the specific data includes the at least one page of the set of data, and the total amount of received data in the set of data reaches a predetermined amount of data Before the threshold value PDDA_TH, the data of this group was not written to the specific block. When the crisis condition represented by the specific signal (for example, the power source is abnormal; for example, the memory device 100 is turned off), the controller may read the at least one page of the group of materials from the other block. And storing the at least one page read from the other block temporarily in the volatile memory 120 for writing to the specific block. As such, the controller ensures volatile memory 120 The latest storage information is equivalent to the stored information in the volatile memory 120 when the above-mentioned crisis situation occurs, whereby the controller can continue to operate normally as if the above-mentioned crisis situation has not occurred.
尤其是,在該組資料尚未被完整地接收的狀況下(例如:該組資料中之上述至少一頁的資料量小於該組資料的資料量),該控制器可自該主裝置逐頁地接收該組資料中之至少一其它頁(例如:一頁或多頁),且將該組資料中之上述至少一其它頁暫時地儲存於揮發性記憶體120,直到該組資料之該總接收資料量達到預定資料量門檻值PDDA_TH。當該組資料之該總接收資料量達到預定資料量門檻值PDDA_TH時(亦即,於這些實施例中,該組資料現在已經被完整地接收),該控制器可自揮發性記憶體120讀取該組資料之至少一部分,以將該組資料直接寫入該特定區塊。 In particular, in a situation where the group of materials has not been completely received (for example, the amount of data of the at least one page in the group of materials is less than the amount of data of the group of materials), the controller may be page by page from the main device. Receiving at least one other page (eg, one or more pages) of the set of materials, and temporarily storing the at least one other page of the set of data in the volatile memory 120 until the total receipt of the set of data The amount of data reaches the predetermined data amount threshold PDDA_TH. When the total received data amount of the group of data reaches the predetermined data amount threshold PDDA_TH (that is, in these embodiments, the group of data has now been completely received), the controller can read from the volatile memory 120. At least a portion of the set of data is taken to write the set of data directly to the particular block.
另外,在該組資料已經被完整地接收的狀況下(例如:該組資料中之上述至少一頁的資料量等於該組資料的資料量;又例如:該組資料中之上述至少一頁的資料量小於該組資料的資料量並且該控制器另接收該組資料中之上述至少一其它頁),該控制器可自該主裝置逐頁地接收該複數組資料{Data(0),Data(1),Data(2)}、{Data(3),Data(4),Data(5)}、{Data(6),Data(7),Data(8)}、...中之另一組資料且將該另一組資料暫時地儲存於揮發性記憶體120,直到該另一組資料的總接收資料量達到預定資料量門檻值PDDA_TH,其中在該另一組資料之該總接收資料量達到預定資料量門檻值PDDA_TH之前,該另一組資料並未被寫入該特定區塊。當該另一組資料之該總接收資料量達到預定資料量門檻值PDDA_TH時,該控制器自揮發性記憶體120讀取該另一組資料之至少一部分,以將該另一組資料直接寫入該特定區塊,並且再一次將該組資料直接寫入該特定區塊。於是,藉由多次將該組資料直接寫入該特定區塊,該組資料中之任一頁資料的每一位元均正確地儲存於該特定區塊以供進一步讀取。 In addition, in the case that the group of materials has been completely received (for example, the amount of data of the at least one page in the group of materials is equal to the amount of data of the group of materials; for example, the at least one page of the group of materials mentioned above) The amount of data is less than the amount of data of the set of data and the controller further receives the at least one other page of the set of data, the controller may receive the complex array data page by page from the primary device {Data(0), Data (1), Data(2)}, {Data(3), Data(4), Data(5)}, {Data(6), Data(7), Data(8)}, ... a set of data and temporarily storing the other set of data in the volatile memory 120 until the total received data amount of the other set of data reaches a predetermined data amount threshold PDDA_TH, wherein the total receiving of the other set of data Before the amount of data reaches the predetermined data threshold PDDA_TH, the other group of data is not written to the specific block. When the total received data amount of the another set of data reaches a predetermined data amount threshold PDDA_TH, the controller reads at least a portion of the other set of data from the volatile memory 120 to directly write the other set of data. Enter the specific block and write the group data directly to the specific block again. Thus, by writing the set of data directly to the particular block multiple times, each bit of any page of the set of data is correctly stored in the particular block for further reading.
第5圖繪示第4圖所示之方法200於一實施例中所涉及之控制方案,其中第5圖所示之資料Data(0)、Data(1)、Data(2)、Data(3)、Data(4)、 Data(5)、Data(6)、...中之每一者可為一頁資料。例如:一頁資料的大小可為16KB(Kilobyte,即千位元組)。這只是為了說明的目的而已,並非對本發明之限制。該特定資料包含 FIG. 5 is a diagram showing a control scheme involved in the method 200 shown in FIG. 4, wherein the data shown in FIG. 5 is Data(0), Data(1), Data(2), Data(3). ), Data(4), Each of Data (5), Data (6), ... can be a page of data. For example, the size of a page of data can be 16KB (Kilobyte, that is, thousands of bytes). This is for illustrative purposes only and is not a limitation of the invention. This specific material contains
依據本實施例,該控制器自該主裝置逐頁地接收第一組資料{Data(0),Data(1),Data(2)}且將第一組資料{Data(0),Data(1),Data(2)}暫時地儲存於揮發性記憶體120,其中在第一組資料{Data(0),Data(1),Data(2)}之總接收資料量達到預定資料量門檻值PDDA_TH之前,第一組資料{Data(0),Data(1),Data(2)}並未被寫入該特定區塊。實作上,一組資料(例如:第一組資料{Data(0),Data(1),Data(2)};又例如:其它組資料{Data(3),Data(4),Data(5)}、{Data(6),Data(7),Data(8)}、...中之任一組資料)之總接收資料量可為這一組資料當中已經暫時地儲存於揮發性記憶體120的資料之資料量。這只是為了說明的目的而已,並非對本發明之限制。如第5圖所示,當第一組資料{Data(0),Data(1),Data(2)}之總接收資料量達到預定資料量門檻值PDDA_TH時,該控制器自揮發性記憶體120讀取第一組資料{Data(0),Data(1),Data(2)}之至少一部分,以將第一組資料{Data(0),Data(1),Data(2)}直接寫入該特定區塊諸如區塊BLK(m)。相仿地,該控制器對第二組資料{Data(3),Data(4),Data(5)}進行了類似的運作。 According to this embodiment, the controller receives the first group of data {Data(0), Data(1), Data(2)} page by page from the master device and sets the first group of data {Data(0), Data( 1), Data(2)} is temporarily stored in the volatile memory 120, wherein the total amount of received data in the first set of data {Data(0), Data(1), Data(2)} reaches a predetermined data amount threshold. Before the value PDDA_TH, the first set of data {Data(0), Data(1), Data(2)} is not written to the specific block. In practice, a set of data (for example: the first group of data {Data (0), Data (1), Data (2)}; and for example: other group data {Data (3), Data (4), Data ( The total amount of received data of 5)}, {Data(6), Data(7), Data(8)}, ...) can be temporarily stored in the volatility of this group of data. The amount of data of the data of the memory 120. This is for illustrative purposes only and is not a limitation of the invention. As shown in FIG. 5, when the total received data amount of the first group of data {Data(0), Data(1), Data(2)} reaches the predetermined data amount threshold PDDA_TH, the controller is self-volatile memory. 120 reads at least a portion of the first set of data {Data(0), Data(1), Data(2)} to directly direct the first set of data {Data(0), Data(1), Data(2)} This particular block is written, such as block BLK(m). Similarly, the controller performs a similar operation on the second set of data {Data(3), Data(4), Data(5)}.
請注意,本實施例之該特定資料包含第一組資料{Data(0),Data(1),Data(2)}與第二組資料{Data(3),Data(4),Data(5)}。當該特定訊號所代表之危機狀況出現時,由於第一組資料{Data(0),Data(1),Data(2)}與第二組資料{Data(3),Data(4),Data(5)}尚未被寫入該特定區塊達預定次數PDNT_WR,故該控制器立即將第一組資料{Data(0),Data(1),Data(2)}與第二組資料{Data(3),Data(4),Data(5)}寫入該另一區塊諸如區塊BLK(m’),尤其是分別寫入區塊BLK(m’)中之某些頁Page(0)、Page(1)、Page(2)、Page(3)、Page(4)、與Page(5)。 Please note that the specific data of this embodiment includes the first group of data {Data(0), Data(1), Data(2)} and the second group of data {Data(3), Data(4), Data(5). )}. When the crisis situation represented by the specific signal occurs, because the first group of data {Data(0), Data(1), Data(2)} and the second group of data {Data(3), Data(4), Data (5)} has not been written to the specific block for a predetermined number of times PDNT_WR, so the controller immediately sets the first group of data {Data(0), Data(1), Data(2)} and the second group of data {Data (3), Data(4), Data(5)} writes the other block such as the block BLK(m'), in particular, writes to some pages in the block BLK(m'), respectively (0) ), Page(1), Page(2), Page(3), Page(4), and Page(5).
第6圖繪示第4圖所示之方法200於另一實施例中所涉及之 控制方案,其中第6圖所示之資料Data(0)、Data(1)、Data(2)、Data(3)、Data(4)、Data(5)、Data(6)、...中之每一者可為一頁資料。例如:該控制器已進行第5圖所示實施例中之運作。依據本實施例,當該特定訊號所代表之危機狀況解除時,該控制器自該另一區塊讀取第一組資料{Data(0),Data(1),Data(2)}與第二組資料{Data(3),Data(4),Data(5)},並將讀取自該另一區塊之第一組資料{Data(0),Data(1),Data(2)}與第二組資料{Data(3),Data(4),Data(5)}暫時地儲存於揮發性記憶體120,以供寫入該特定區塊。 Figure 6 is a diagram showing the method 200 shown in Figure 4 in another embodiment. Control scheme, in which the data shown in Fig. 6 is Data(0), Data(1), Data(2), Data(3), Data(4), Data(5), Data(6), ... Each of them can be a page of information. For example, the controller has performed the operation in the embodiment shown in FIG. According to this embodiment, when the crisis condition represented by the specific signal is released, the controller reads the first group of data {Data(0), Data(1), Data(2)} and the first block from the other block. Two sets of data {Data(3), Data(4), Data(5)}, and will read the first set of data from the other block {Data(0), Data(1), Data(2) And the second set of data {Data(3), Data(4), Data(5)} is temporarily stored in the volatile memory 120 for writing to the specific block.
第7圖繪示第4圖所示之方法200於另一實施例中所涉及之控制方案。相較於第5圖所示實施例,本實施例之該特定資料包含第一組資料{Data(0),Data(1),Data(2)}、第二組資料{Data(3),Data(4),Data(5)}、與資料Data(3)。另外,資料Data(3)可視為前述該組資料中之上述至少一頁,諸如第三組資料{Data(6),Data(7),Data(8)}中之上述至少一頁。本實施例與前述實施例/變化例相仿之處不再重複贅述。 FIG. 7 illustrates a control scheme involved in the method 200 shown in FIG. 4 in another embodiment. Compared with the embodiment shown in FIG. 5, the specific data in this embodiment includes a first group of data {Data(0), Data(1), Data(2)}, and a second group of data {Data(3), Data (4), Data (5)}, and data Data (3). In addition, the data Data(3) may be regarded as the above-mentioned at least one page in the aforementioned group of materials, such as the above-mentioned at least one page in the third group of materials {Data(6), Data(7), Data(8)}. The description of the embodiment that is similar to the foregoing embodiment/variation will not be repeated.
第8圖繪示第4圖所示之方法200於另一實施例中所涉及之控制方案。相較於第5圖所示實施例,本實施例之該特定資料包含第一組資料{Data(0),Data(1),Data(2)}以及資料Data(3)與Data(4)。另外,資料Data(3)與Data(4)可視為前述該組資料中之上述至少一頁,諸如第二組資料{Data(3),Data(4),Data(5)}中之上述至少一頁。本實施例與前述實施例/變化例相仿之處不再重複贅述。 FIG. 8 illustrates a control scheme involved in the method 200 shown in FIG. 4 in another embodiment. Compared with the embodiment shown in FIG. 5, the specific data of the embodiment includes the first group of data {Data(0), Data(1), Data(2)} and the data Data(3) and Data(4). . In addition, the data Data(3) and Data(4) may be regarded as the above-mentioned at least one page in the foregoing group of materials, such as the above-mentioned at least in the second group of materials {Data(3), Data(4), Data(5)}. One page. The description of the embodiment that is similar to the foregoing embodiment/variation will not be repeated.
第9圖繪示第4圖所示之方法200於另一實施例中所涉及之控制方案。相較於第5圖所示實施例,本實施例之該特定資料包含資料Data(0)。另外,資料Data(0)可視為前述該組資料中之上述至少一頁,諸如第一組資料{Data(0),Data(1),Data(2)}中之上述至少一頁。本實施例與前述實施例/變化例相仿之處不再重複贅述。 FIG. 9 illustrates a control scheme involved in the method 200 shown in FIG. 4 in another embodiment. Compared with the embodiment shown in FIG. 5, the specific material of this embodiment includes the data Data(0). In addition, the data Data(0) can be regarded as the above-mentioned at least one page in the aforementioned group of materials, such as the above-mentioned at least one page in the first group of materials {Data(0), Data(1), Data(2)}. The description of the embodiment that is similar to the foregoing embodiment/variation will not be repeated.
第10圖繪示第4圖所示之方法200於另一實施例中所涉及之控制方案。相較於第5圖所示實施例,本實施例之該特定資料包含資料Data(0) 與Data(1)。另外,資料Data(0)與Data(1)可視為前述該組資料中之上述至少一頁,諸如第一組資料{Data(0),Data(1),Data(2)}中之上述至少一頁。本實施例與前述實施例/變化例相仿之處不再重複贅述。 FIG. 10 illustrates a control scheme involved in the method 200 shown in FIG. 4 in another embodiment. Compared with the embodiment shown in FIG. 5, the specific data of the embodiment includes data Data(0). With Data(1). In addition, the data Data(0) and Data(1) may be regarded as the at least one page in the foregoing group of materials, such as the above-mentioned at least in the first group of materials {Data(0), Data(1), Data(2)}. One page. The description of the embodiment that is similar to the foregoing embodiment/variation will not be repeated.
以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention.
200‧‧‧用來管理一記憶裝置之方法 200‧‧‧Methods for managing a memory device
210,220‧‧‧步驟 210,220‧‧ steps
Claims (20)
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710855455.5A CN107741913B (en) | 2013-08-05 | 2014-06-19 | Method for managing a memory device, memory device and controller |
CN201410275650.7A CN104346292B (en) | 2013-08-05 | 2014-06-19 | method for managing a memory device, memory device and controller |
US14/335,939 US9507708B2 (en) | 2013-08-05 | 2014-07-20 | Method for managing memory apparatus, associated memory apparatus thereof and associated controller thereof |
KR1020140100427A KR101566849B1 (en) | 2013-08-05 | 2014-08-05 | Method for managing memory apparatus, associated memory apparatus thereof and associated controller thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201361862094P | 2013-08-05 | 2013-08-05 |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201506931A true TW201506931A (en) | 2015-02-16 |
TWI502591B TWI502591B (en) | 2015-10-01 |
Family
ID=53019466
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW102144911A TWI502591B (en) | 2013-08-05 | 2013-12-06 | Method for managing a memory apparatus, and associated memory apparatus thereof and associated controller thereof |
TW102144913A TWI523016B (en) | 2013-08-05 | 2013-12-06 | Method for managing a memory apparatus, and associated memory apparatus thereof and associated controller thereof |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW102144913A TWI523016B (en) | 2013-08-05 | 2013-12-06 | Method for managing a memory apparatus, and associated memory apparatus thereof and associated controller thereof |
Country Status (1)
Country | Link |
---|---|
TW (2) | TWI502591B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210255783A1 (en) * | 2020-02-19 | 2021-08-19 | Silicon Motion, Inc. | Method and apparatus for performing data storage management to enhance data reliability with aid of repeated write command detection |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8452912B2 (en) * | 2007-10-11 | 2013-05-28 | Super Talent Electronics, Inc. | Flash-memory system with enhanced smart-storage switch and packed meta-data cache for mitigating write amplification by delaying and merging writes until a host read |
KR101548175B1 (en) * | 2008-11-05 | 2015-08-28 | 삼성전자주식회사 | Wear leveling method of Non-volatile memory device having single level memory cell block and multi level memory cell block |
US8040744B2 (en) * | 2009-01-05 | 2011-10-18 | Sandisk Technologies Inc. | Spare block management of non-volatile memories |
US8244960B2 (en) * | 2009-01-05 | 2012-08-14 | Sandisk Technologies Inc. | Non-volatile memory and method with write cache partition management methods |
US20110041005A1 (en) * | 2009-08-11 | 2011-02-17 | Selinger Robert D | Controller and Method for Providing Read Status and Spare Block Management Information in a Flash Memory System |
US8886990B2 (en) * | 2011-01-27 | 2014-11-11 | Apple Inc. | Block management schemes in hybrid SLC/MLC memory |
US8537613B2 (en) * | 2011-03-31 | 2013-09-17 | Sandisk Technologies Inc. | Multi-layer memory system |
US9176862B2 (en) * | 2011-12-29 | 2015-11-03 | Sandisk Technologies Inc. | SLC-MLC wear balancing |
-
2013
- 2013-12-06 TW TW102144911A patent/TWI502591B/en active
- 2013-12-06 TW TW102144913A patent/TWI523016B/en active
Also Published As
Publication number | Publication date |
---|---|
TWI523016B (en) | 2016-02-21 |
TWI502591B (en) | 2015-10-01 |
TW201506932A (en) | 2015-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107741913B (en) | Method for managing a memory device, memory device and controller | |
TWI566253B (en) | Method for managing a memory apparatus, and associated memory apparatus thereof and associated controller thereof | |
US9514042B2 (en) | Method for managing memory apparatus to perform writing control according to monitored data amount of received data, associated memory apparatus thereof and associated controller thereof | |
TWI782644B (en) | Method for performing data storage management to enhance data reliability, associated memory device and controller thereof, and associated electronic device | |
US20140013030A1 (en) | Memory storage device, memory controller thereof, and method for writing data thereof | |
US9037781B2 (en) | Method for managing buffer memory, memory controllor, and memory storage device | |
US10747660B2 (en) | Method and system for forming and using memory superblocks based on performance grades | |
US11709732B2 (en) | Mitigating read disturb effects in memory devices | |
CN111399751B (en) | Flash memory controller, method for managing flash memory module and related electronic device | |
US9728264B2 (en) | Nonvolatile memory device, operating method thereof, and data storage device including the same | |
US20240256454A1 (en) | Tokens to indicate completion of data storage | |
TW201941208A (en) | Memory management method and storage controller | |
TWI502591B (en) | Method for managing a memory apparatus, and associated memory apparatus thereof and associated controller thereof | |
US20190163625A1 (en) | Data storage device and operating method thereof | |
US12056367B2 (en) | Memory system and operating method thereof for performing urgent fine program operation | |
US20240094915A1 (en) | Method for accessing flash memory module, flash memory controller, and memory device | |
US20240094912A1 (en) | Method for accessing flash memory module, flash memory controller, and memory device | |
CN118672937A (en) | Control method of flash memory controller, flash memory controller and storage device | |
US10169224B2 (en) | Data protecting method for preventing received data from losing, memory storage apparatus and memory control circuit unit |