TW201401052A - Method for accessing flash memory and associated memory device - Google Patents

Method for accessing flash memory and associated memory device Download PDF

Info

Publication number
TW201401052A
TW201401052A TW102118811A TW102118811A TW201401052A TW 201401052 A TW201401052 A TW 201401052A TW 102118811 A TW102118811 A TW 102118811A TW 102118811 A TW102118811 A TW 102118811A TW 201401052 A TW201401052 A TW 201401052A
Authority
TW
Taiwan
Prior art keywords
data
page
pages
flash memory
data pages
Prior art date
Application number
TW102118811A
Other languages
Chinese (zh)
Other versions
TWI492052B (en
Inventor
Hsiao-Te Chang
Chun-Yi Chen
Original Assignee
Silicon Motion Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Silicon Motion Inc filed Critical Silicon Motion Inc
Priority to US13/920,074 priority Critical patent/US9384125B2/en
Priority to CN201310242985.4A priority patent/CN103514101A/en
Publication of TW201401052A publication Critical patent/TW201401052A/en
Application granted granted Critical
Publication of TWI492052B publication Critical patent/TWI492052B/en

Links

Abstract

The present invention provides a method for accessing a flash memory, where a block of the flash memory includes pages whose quantity is (2<SP>N</SP>+M), N and M are positive integers. The method includes: writing a data stream into 1<SP>st</SP>-(2<SP>N</SP>)<SP>th</SP>pages; and backing up data of a portion of the 1<SP>st</SP>-(2<SP>N</SP>)<SP>th</SP> pages into (2<SP>N</SP>+1)<SP>th</SP>-(2<SP>N</SP>+M)<SP>th</SP>pages.

Description

存取快閃記憶體的方法以及相關的記憶裝置 Method of accessing flash memory and related memory device

本發明係有關於一種存取快閃記憶體的方法,尤指一種備份快閃記憶體中部分資料的方法及其相關的記憶裝置。 The present invention relates to a method for accessing flash memory, and more particularly to a method for backing up partial data in a flash memory and related memory devices.

在某些快閃記憶體設計中,尤其是三層式儲存(Triple-Level Cell,TLC)快閃記憶體,其每一個區塊的資料頁數量並非剛剛好是2的冪次方,然而,考量到快閃記憶體控制器的設計以及存取速度,一個區塊中通常只會使用2N個資料頁來存取資料。舉例來說,假設一個區塊有258個資料頁,但是只有前面的256個(2的8次方)資料頁會被使用來儲存資料,而最後兩個資料頁通常就閒置不用。如此一來,最後兩個資料頁的使用空間就白白浪費了。 In some flash memory designs, especially Triple-Level Cell (TLC) flash memory, the number of data pages per block is not just a power of 2, however, Considering the design and access speed of the flash memory controller, only 2 N data pages are usually used to access data in one block. For example, suppose a block has 258 data pages, but only the first 256 (2 8th power) data pages are used to store data, and the last two data pages are usually unused. As a result, the space for the last two data pages is wasted.

因此,本發明的目的之一在於提供一種存取快閃記憶體的方法,其可以將習知技術中原本不使用的資料頁利用來備份資料,以解決習知技術中資料頁空間浪費的問題。 Therefore, an object of the present invention is to provide a method for accessing a flash memory, which can utilize a material page that is not used in the prior art to back up data, so as to solve the problem of waste of data page space in the prior art. .

依據本發明一實施例,係提供一種存取一快閃記憶體的方法,其中該快閃記憶體中一區塊所包含之資料頁的數量為(2N+M),且N、M均為正整數,以及該方法包含有:將一資料串流寫入至該區塊之第1~2N個資料頁中;以及將寫入至第1~2N個資料頁中部分資料頁的資料備份至該區塊之第 (2N+1)~(2N+M)個資料頁中。 According to an embodiment of the invention, a method for accessing a flash memory is provided, wherein the number of data pages included in a block in the flash memory is (2 N +M), and N and M are both Is a positive integer, and the method includes: writing a data stream to the 1~2 N data pages of the block; and writing to the data pages of the 1~2 N data pages The data is backed up to the (2 N +1)~(2 N +M) data pages of the block.

依據本發明另一實施例,係提供一種記憶裝置,其中該記憶裝置包含有一快閃記憶體以及一控制器,該快閃記憶體包含複數個區塊,該複數個區塊中任一區塊所包含之資料頁的數量為(2N+M),且N、M均為正整數,以及該控制器係用來將一資料串流寫入至該區塊之第1~2N個資料頁中,以及將寫入至第1~2N個資料頁中部分資料頁的資料備份至該區塊之第(2N+1)~(2N+M)個資料頁中。 According to another embodiment of the present invention, a memory device is provided, wherein the memory device includes a flash memory and a controller, the flash memory includes a plurality of blocks, and any of the plurality of blocks the number of pages contained in the data of (2 N + M), and N, M are positive integers, and the system controller is used to write a data stream through a 1 ~ 2 N data blocks of the In the page, and back up the data written to the partial data pages of the 1~2 N data pages to the (2 N +1)~(2 N +M) data pages of the block.

依據本發明另一實施例,係提供一種存取一快閃記憶體的方法,其中該快閃記憶體中一區塊所包含之資料頁的數量為(2N+M),第(2N+1)~(2N+M)個資料頁係用來備份第1~2N個資料頁中部分資料頁的資料,且N、M均為正整數,以及該方法包含有:讀取該部分資料頁中至少一資料頁的資料;以及選擇性地讀取第(2N+1)~(2N+M)個資料頁中用來備份該至少一資料頁的資料頁,以作為該至少一資料頁中的資料。 According to another embodiment of the present invention, a method for accessing a flash memory is provided, wherein the number of data pages included in a block in the flash memory is (2 N +M), the second (2 N +1)~(2 N +M) data pages are used to back up some data pages of the 1~2 N data pages, and N and M are positive integers, and the method includes: reading the data a data page of at least one of the data pages; and selectively reading the data page of the (2 N +1)~(2 N +M) data pages for backing up the at least one data page as the At least one data page.

依據本發明另一實施例,係提供一種記憶裝置,其中該記憶裝置包含有一快閃記憶體以及一控制器,該快閃記憶體包含複數個區塊,該複數個區塊中任一區塊所包含之資料頁的數量為(2N+M),第(2N+1)~(2N+M)個資料頁係用來備份第1~2N個資料頁中部分資料頁的資料,且N、M均為正整數;以及該控制器係用來讀取該部分資料頁中至少一資料頁的資料,以及選擇性地讀取第(2N+1)~(2N+M)個資料頁中用來備份該至少一資料頁的資料頁,以作為該至少一資料頁中的資料。 According to another embodiment of the present invention, a memory device is provided, wherein the memory device includes a flash memory and a controller, the flash memory includes a plurality of blocks, and any of the plurality of blocks The number of data pages included is (2 N +M), and the (2 N +1)~(2 N +M) data pages are used to back up some of the data pages of the 1~2 N data pages. And N and M are positive integers; and the controller is configured to read data of at least one data page of the part of the data page, and selectively read the (2 N +1)~(2 N +M a material page for backing up the at least one data page as the data in the at least one data page.

100‧‧‧記憶裝置 100‧‧‧ memory device

110‧‧‧記憶體控制器 110‧‧‧ memory controller

112‧‧‧微處理器 112‧‧‧Microprocessor

112C‧‧‧程式碼 112C‧‧‧ Code

112M‧‧‧唯讀記憶體 112M‧‧‧Reading memory

114‧‧‧控制邏輯 114‧‧‧Control logic

116‧‧‧緩衝記憶體 116‧‧‧Buffered memory

118‧‧‧介面邏輯 118‧‧‧Interface logic

120‧‧‧快閃記憶體 120‧‧‧Flash memory

200‧‧‧區塊 200‧‧‧ blocks

410‧‧‧資料頁緩衝器 410‧‧‧Material page buffer

P0~P257‧‧‧資料頁 P0~P257‧‧‧Information Page

WL0~WL85‧‧‧字元線 WL0~WL85‧‧‧ character line

300~304、500~504‧‧‧步驟 300~304, 500~504‧‧‧ steps

第1圖為依據本發明一實施例之一種記憶裝置的示意圖。 1 is a schematic diagram of a memory device in accordance with an embodiment of the present invention.

第2圖為依據本發明一實施例之快閃記憶體中一區塊的示意圖。 2 is a schematic diagram of a block in a flash memory according to an embodiment of the invention.

第3圖為依據本發明一實施例之將資料寫入至一快閃記憶體的方法的流程圖。 3 is a flow chart of a method of writing data to a flash memory in accordance with an embodiment of the present invention.

第4圖為第2圖所示之區塊進行資料備份的示意圖。 Figure 4 is a schematic diagram of data backup for the block shown in Figure 2.

第5圖為依據本發明一實施例之讀取一快閃記憶體的方法的流程圖。 Figure 5 is a flow chart of a method of reading a flash memory in accordance with an embodiment of the present invention.

請參考第1圖,第1圖為依據本發明一實施例之一種記憶裝置100的示意圖,其中本實施例之記憶裝置100尤其係為可攜式記憶裝置(例如:符合SD/MMC、CF、MS、XD標準之記憶卡)。記憶裝置100包含有一快閃記憶體(Flash Memory)120以及一控制器,該控制器可為一記憶體控制器110,且係用來存取快閃記憶體120。依據本實施例,記憶體控制器110包含一微處理器112、一唯讀記憶體(Read Only Memory,ROM)112M、一控制邏輯114、一緩衝記憶體116、與一介面邏輯118。唯讀記憶體係用來儲存一程式碼112C,而微處理器112則用來執行程式碼112C以控制對快閃記憶體120之存取(Access)。 Please refer to FIG. 1 . FIG. 1 is a schematic diagram of a memory device 100 according to an embodiment of the present invention. The memory device 100 of the present embodiment is specifically a portable memory device (eg, conforming to SD/MMC, CF, MS, XD standard memory card). The memory device 100 includes a flash memory 120 and a controller, which can be a memory controller 110 and is used to access the flash memory 120. According to the embodiment, the memory controller 110 includes a microprocessor 112, a read only memory (ROM) 112M, a control logic 114, a buffer memory 116, and an interface logic 118. The read-only memory system is used to store a code 112C, and the microprocessor 112 is used to execute the code 112C to control access to the flash memory 120.

於典型狀況下,快閃記憶體120包含複數個區塊(Block),而該控制器(例如:透過微處理器112執行程式碼112C之記憶體控制器110)對快閃記憶體120進行複製、抹除、合併資料等運作係以區塊為單位來進行複製、抹除、合併資料。另外,一區塊可記錄特定數量的資料頁(Page),其中該控制器(例如:透過微處理器112執行程式碼112C之記憶體控制器110)對快閃記憶體120進行寫入資料之運作係以資料頁為單位來進行寫入。 In a typical situation, the flash memory 120 includes a plurality of blocks, and the controller (eg, the memory controller 110 executing the code 112C through the microprocessor 112) copies the flash memory 120. Operations such as erasing and merging data are copied, erased, and combined in units of blocks. In addition, a block may record a specific number of pages, wherein the controller (eg, the memory controller 110 executing the code 112C through the microprocessor 112) writes data to the flash memory 120. The operation is written in units of data pages.

實作上,透過微處理器112執行程式碼112C之記憶體控制器110可利用其本身內部之元件來進行諸多控制運作,例如:利用控制邏輯114來控制快閃記憶體120之存取運作(尤其是對至少一區塊或至少一資料頁之存 取運作)、利用緩衝記憶體116進行所需之緩衝處理、以及利用介面邏輯118來與一主裝置(Host Device)溝通。 In practice, the memory controller 110 executing the program code 112C through the microprocessor 112 can perform various control operations by using its own internal components, for example, using the control logic 114 to control the access operation of the flash memory 120 ( Especially for at least one block or at least one data page The operation is performed, the buffer memory 116 is used to perform the required buffer processing, and the interface logic 118 is used to communicate with a host device.

請參考第2圖,第2圖為依據本發明一實施例之快閃記憶體120中一區塊200的示意圖。如第2圖所示,區塊200係為三層式儲存(TLC)架構,亦即圖式中的每一個儲存單元(亦即每一個電晶體)可以儲存三個位元,且區塊200具有86條字元線WL0~WL85,每一條字元線構成三個資料頁,故區塊200共包含有258個資料頁P0~P257。於以下之說明書內容中,係以第2圖所示之區塊大小來描述本發明的發明內容,然而,此並非作為本發明的限制,於本發明之其他實施例中,區塊200亦可具有其他數量的資料頁。 Please refer to FIG. 2, which is a schematic diagram of a block 200 in the flash memory 120 according to an embodiment of the invention. As shown in FIG. 2, the block 200 is a three-layer storage (TLC) architecture, that is, each storage unit (ie, each transistor) in the drawing can store three bits, and the block 200 There are 86 word lines WL0~WL85, and each word line constitutes three data pages, so the block 200 contains 258 data pages P0~P257. In the following description, the content of the present invention is described by the block size shown in FIG. 2, however, this is not a limitation of the present invention. In other embodiments of the present invention, the block 200 may also be used. Have a different number of profiles.

請同時參考第1圖、第3圖以及第4圖,第3圖為依據本發明一實施例之將資料寫入至一快閃記憶體的方法的流程圖,第4圖為區塊200中資料備份的示意圖。參考第3圖,流程敘述如下:於步驟300中,流程開始。接著,於步驟302,記憶體控制器110將一資料串流循序寫入至區塊200的資料頁P0~P255,而當資料頁P0~P255均寫完資料後,流程進入步驟304。於步驟304中,記憶體控制器110將寫入至資料頁P0~P255中的兩個資料頁的資料備份至資料頁P256與P257中。 Please refer to FIG. 1 , FIG. 3 and FIG. 4 simultaneously. FIG. 3 is a flowchart of a method for writing data to a flash memory according to an embodiment of the present invention, and FIG. 4 is a block 200. Schematic diagram of data backup. Referring to Figure 3, the flow is as follows: In step 300, the process begins. Next, in step 302, the memory controller 110 sequentially writes a data stream to the data pages P0 to P255 of the block 200, and after the data pages P0 to P255 have written the data, the flow proceeds to step 304. In step 304, the memory controller 110 backs up the data of the two data pages written to the data pages P0 to P255 to the data pages P256 and P257.

詳細來說,在步驟304中,記憶體控制器110可以依據一預設位置資訊來決定出將哪兩個資料頁中的資料備份至資料頁P256與P257中,而該預設位置資訊可由設計者依據快閃記憶體120的品質或是其他測試過的資料來決定,亦即,該預設位置資訊可以用來指出資料頁P0~P255中哪兩個資料頁的儲存品質不佳。於本發明一實施例中,由於區塊200係為三層式儲存 (TLC)架構,故區塊200之每一個字元線(WL0~WL85)上均包含有一最高位元資料頁(Most Significant Bit Page,MSB page)、一中間位元資料頁(Central Significant Bit Page,CSB page)以及一最低位元資料頁(Least Significant Bit Page,LSB page),此外,因為最高位元資料頁通常錯誤率較高,因此記憶體控制器110可以將區塊200中對應於兩條字元線上之最高位元資料頁的資料備份至資料頁P256與P257,或是將區塊200中對應於兩條字元線上之中間位元資料頁的資料備份至資料頁P256與P257,抑或是將區塊200中對應於一或兩條字元線上之一中間位元資料頁以及一最高位元資料頁的資料備份至資料頁P256與P257。 In detail, in step 304, the memory controller 110 can determine, according to a preset location information, which of the two data pages is backed up to the data pages P256 and P257, and the preset location information can be designed. The determination is based on the quality of the flash memory 120 or other tested data, that is, the preset location information can be used to indicate which of the data pages P0 to P255 has poor storage quality. In an embodiment of the invention, the block 200 is a three-layer storage. (TLC) architecture, so each word line (WL0~WL85) of block 200 includes a Most Significant Bit Page (MSB page) and a Central Significant Bit Page (Central Significant Bit Page). , CSB page) and a Least Significant Bit Page (LSB page). In addition, since the highest bit data page usually has a high error rate, the memory controller 110 can correspond to the two blocks 200. The data of the highest bit data page on the word line is backed up to the data pages P256 and P257, or the data corresponding to the middle bit data page of the two character lines in the block 200 is backed up to the data pages P256 and P257. Or, the data in the block 200 corresponding to one of the one- or two-character line and the highest-bit data page are backed up to the data pages P256 and P257.

另外,在將資料頁P0~P255中的兩個資料頁的資料備份至資料頁P256與P257的過程中,參考第4圖,假設資料頁P3的資料需要備份至資料頁P256,則記憶體控制器110可以依據一複製回存指令(copy-back command)來將資料頁P3的資料先複製到資料頁緩衝器410中,之後才將資料頁緩衝器410中的資料複製到資料頁P256;接著,記憶體控制器110再依據同樣的方法將另一資料頁中的資料備份至資料頁P257。此外,於本發明之另一實施例中,記憶體控制器110亦可以依據一標準讀取/寫入命令(normal read/write command)來將資料頁P3的資料先複製到資料頁緩衝器410後,再傳送到記憶體控制器110中的緩衝器,而後續將資料由記憶體控制器110寫入至資料頁P256。 In addition, in the process of backing up the data of the two data pages in the data pages P0~P255 to the data pages P256 and P257, refer to FIG. 4, and assume that the data of the data page P3 needs to be backed up to the data page P256, then the memory control The device 110 may copy the data of the data page P3 into the material page buffer 410 according to a copy-back command, and then copy the data in the data page buffer 410 to the data page P256; The memory controller 110 then backs up the data in another data page to the data page P257 according to the same method. In addition, in another embodiment of the present invention, the memory controller 110 can also copy the data of the data page P3 to the data page buffer 410 according to a standard read/write command. Thereafter, it is transferred to the buffer in the memory controller 110, and the data is subsequently written by the memory controller 110 to the material page P256.

綜上所述,由於區塊200中的資料頁P256與P257可以被用來備份資料,因此,相較於習知技術中不使用資料頁P256與P257的情形,區塊200中的所有儲存空間均可以被有效利用。 In summary, since the material pages P256 and P257 in the block 200 can be used to back up data, all the storage spaces in the block 200 are compared with the case where the data pages P256 and P257 are not used in the prior art. Both can be effectively utilized.

另外,上述第2~4圖所舉之例子僅為一範例說明,而並非作為本 發明的限制。於本發明之其他實施例中,只要一區塊所包含之資料頁的數量為(2N+M),且記憶體控制器110將寫入至第1~2N個資料頁中部分資料頁的資料備份至該區塊之第(2N+1)~(2N+M)個資料頁中,本發明之流程可以有其他適當的變化,而這些設計上的變化均應隸屬於本發明的範疇。 Further, the examples given in the above FIGS. 2 to 4 are merely illustrative and not limiting as to the present invention. In other embodiments of the present invention, as long as the number of data pages included in one block is (2 N + M), and the memory controller 110 writes to some data pages in the 1~2 N data pages. The data is backed up to the (2 N +1)~(2 N +M) data pages of the block, and the process of the present invention may have other suitable changes, and these design changes are all subject to the present invention. The scope.

接著,請同時參考第1圖、第2圖以及第5圖,第5圖為依據本發明一實施例之讀取一快閃記憶體的方法的流程圖。以下關於第5圖的說明係接續著第3圖的流程,亦即第5圖所示的流程為讀取區塊200中的資料,且區塊200中的資料頁P256與P257係已備份了資料頁P0~P255中兩個資料頁的資料。參考第5圖,流程敘述如下:於步驟500中,流程開始。於步驟502中,記憶體控制器110依據一指令以讀取資料頁P0~P255中至少一資料頁的資料,其中該至少一資料頁的資料係備份在資料頁P256或P257中。接著,在步驟504中,記憶體控制器110依據讀取該至少一資料頁的狀況來選擇性地讀取資料頁P256與P257,以作為該至少一資料頁中的資料。 Next, please refer to FIG. 1 , FIG. 2 and FIG. 5 simultaneously. FIG. 5 is a flow chart of a method for reading a flash memory according to an embodiment of the invention. The following description of FIG. 5 is continued from the flow of FIG. 3, that is, the flow shown in FIG. 5 is to read the data in the block 200, and the data pages P256 and P257 in the block 200 have been backed up. The data of two data pages in the data page P0~P255. Referring to Figure 5, the flow is as follows: In step 500, the process begins. In step 502, the memory controller 110 reads the data of at least one of the data pages P0~P255 according to an instruction, wherein the data of the at least one data page is backed up in the data page P256 or P257. Next, in step 504, the memory controller 110 selectively reads the data pages P256 and P257 according to the status of reading the at least one data page as the data in the at least one data page.

詳細來說,在步驟504中,假設資料頁P256有備份資料頁P3的資料,因此,當記憶體控制器110讀取資料頁P3時,若是記憶體控制器110判斷無法成功讀取資料頁P3的資料(亦即資料損壞嚴重,且使用錯誤更正碼亦無法回復),或是因為資料頁P3需要很長的時間來使用錯誤更正碼進行資料回復,因而造成資料頁P3的讀取時間會超過一預定時間,此時記憶體控制器110便可以直接讀取資料頁P256的資料,來作為資料頁P3的資料。另外,若是記憶體控制器110已成功讀取資料頁P3的資料,則不需要再對資料頁P256進行讀取。 In detail, in step 504, it is assumed that the material page P256 has the data of the backup material page P3. Therefore, when the memory controller 110 reads the data page P3, if the memory controller 110 determines that the data page P3 cannot be successfully read. The information (that is, the data is seriously damaged and cannot be replied with the error correction code), or because the data page P3 takes a long time to use the error correction code to reply the data, thus the reading time of the data page P3 will exceed At a predetermined time, the memory controller 110 can directly read the data of the data page P256 as the data of the data page P3. In addition, if the memory controller 110 has successfully read the data of the data page P3, it is not necessary to read the data page P256.

簡要歸納本發明,於本發明之存取一快閃記憶體的方法,係可以將一區塊中第1~2N個資料頁中部分資料頁的資料備份至該區塊之第(2N+1)~(2N+M)個資料頁中,如此一來,該區塊中的每個資料頁均可以被有效利用。此外,當第1~2N個資料頁中該部分資料頁的資料有錯誤而無法正確被讀取時,也可以藉由第(2N+1)~(2N+M)個資料頁中的備份資料來還原,以更加地增進快閃記憶體中資料的正確性。 Briefly summarized in the present invention, in the method for accessing a flash memory of the present invention, data of a part of the data pages of the 1~2 N data pages in a block can be backed up to the second part of the block (2 N +1)~(2 N +M) data pages, so that each data page in the block can be effectively utilized. Further, when the data of 1 ~ 2 N th page in the data portion of an error data page can not be correctly read, may be by the second (2 N +1) ~ (2 N + M) th profile page The backup data is restored to further improve the correctness of the data in the flash memory.

300~304‧‧‧步驟 300~304‧‧‧Steps

Claims (18)

一種存取一快閃記憶體(Flash Memory)的方法,其中該快閃記憶體中一區塊所包含之資料頁的數量為(2N+M),且N、M均為正整數,以及該方法包含有:將一資料串流寫入至該區塊之第1~2N個資料頁中;以及將寫入至第1~2N個資料頁中部分資料頁的資料備份至該區塊之第(2N+1)~(2N+M)個資料頁中。 A method for accessing a flash memory, wherein the number of data pages included in a block in the flash memory is (2 N +M), and N and M are positive integers, and The method includes: writing a data stream to the 1~2 N data pages of the block; and backing up data written to the partial data pages of the 1~2 N data pages to the area The first (2 N +1)~(2 N +M) data pages of the block. 如申請專利範圍第1項所述之方法,其中將寫入至第1~2N個資料頁中部分資料頁的資料備份至該區塊之第(2N+1)~(2N+M)個資料頁中的步驟包含有:自第1~2N個資料頁中選擇出M個資料頁;將所選擇出之資料頁的資料循序傳送至該快閃記憶體中的一資料頁緩衝器;以及將該資料頁緩衝器中所儲存的資料循序傳送至該區塊之第(2N+1)~(2N+M)個資料頁中。 The method of claim 1, wherein the data written to the partial data pages of the 1~2 N data pages is backed up to the (2 N +1)~(2 N +M) of the block. The steps in the data page include: selecting M data pages from the 1~2 N data pages; and sequentially transmitting the selected data page data to a data page buffer in the flash memory. And sequentially transferring the data stored in the data page buffer to the (2 N +1)~(2 N +M) data pages of the block. 如申請專利範圍第2項所述之方法,其中自第1~2N個資料頁中選擇出該M個資料頁的步驟包含有:依據一預設位置資訊以自第(2N+1)~(2N+M)個資料頁中選擇出該M個資料頁。 The method of claim 2, wherein the step of selecting the M data pages from the first to the second N data pages comprises: according to a preset location information from (2 N +1) The M data pages are selected from ~(2 N +M) data pages. 如申請專利範圍第1項所述之方法,其中該快閃記憶體為一三層式儲存(Triple-Level Cell,TLC)快閃記憶體。 The method of claim 1, wherein the flash memory is a Triple-Level Cell (TLC) flash memory. 如申請專利範圍第4項所述之方法,其中該快閃記憶體之該區塊包含有 多個最高位元資料頁(Most Significant Bit Page,MSB page)、中間位元資料頁(Central Significant Bit Page,CSB page)以及最低位元資料頁(Least Significant Bit Page,LSB page),且該部分資料頁均為最高位元資料頁、均為中間位元資料頁、或是部分最高位元資料頁部分中間位元資料頁。 The method of claim 4, wherein the block of the flash memory comprises Multiple Most Significant Bit Page (MSB page), Central Significant Bit Page (CSB page), and Least Significant Bit Page (LSB page), and this part The data pages are the highest bit data pages, all of which are intermediate bit data pages, or some of the highest bit data pages. 一種記憶裝置,其包含有:一快閃記憶體(Flash Memory),其中該快閃記憶體包含複數個區塊,該複數個區塊中任一區塊所包含之資料頁的數量為(2N+M),且N、M均為正整數;以及一控制器,用來將一資料串流寫入至該區塊之第1~2N個資料頁中,以及將寫入至第1~2N個資料頁中部分資料頁的資料備份至該區塊之第(2N+1)~(2N+M)個資料頁中。 A memory device includes: a flash memory, wherein the flash memory comprises a plurality of blocks, and the number of data pages included in any of the plurality of blocks is (2) N + M), and N and M are positive integers; and a controller for writing a data stream to the first to second N data pages of the block, and writing to the first ~2 The data of some data pages in N data pages is backed up to the (2 N +1)~(2 N +M) data pages of the block. 如申請專利範圍第6項所述之記憶裝置,其中該控制器自第1~2N個資料頁中選擇出M個資料頁,將所選擇出之資料頁的資料循序傳送至該快閃記憶體中的一資料頁緩衝器,以及將該資料頁緩衝器中所儲存的資料循序傳送至該區塊之第(2N+1)~(2N+M)個資料頁中。 The memory device of claim 6, wherein the controller selects M data pages from the first to the second N data pages, and sequentially transmits the selected data page data to the flash memory. A data page buffer in the body, and the data stored in the data page buffer are sequentially transmitted to the (2 N +1)~(2 N +M) data pages of the block. 如申請專利範圍第7項所述之記憶裝置,其中該控制器依據一預設位置資訊以自第1~2N個資料頁中選擇出該M個資料頁。 The memory device of claim 7, wherein the controller selects the M data pages from the first to the second N data pages according to a preset position information. 如申請專利範圍第6項所述之記憶裝置,其中該快閃記憶體為一三層式儲存(Triple-Level Cell,TLC)快閃記憶體。 The memory device of claim 6, wherein the flash memory is a Triple-Level Cell (TLC) flash memory. 如申請專利範圍第9項所述之記憶裝置,其中該快閃記憶體之該區塊包 含有多個最高位元資料頁(Most Significant Bit Page,MSB page)、中間位元資料頁(Central Significant Bit Page,CSB page)以及最低位元資料頁(Least Significant Bit Page,LSB page),且該部分資料頁均為最高位元資料頁、均為中間位元資料頁、或是部分最高位元資料頁部分中間位元資料頁。 The memory device of claim 9, wherein the block of the flash memory Containing a plurality of Most Significant Bit Pages (MSB pages), a Central Significant Bit Page (CSB page), and a Least Significant Bit Page (LSB page), and Some of the data pages are the highest bit data pages, all of which are intermediate bit data pages, or some of the highest bit data pages. 一種存取一快閃記憶體(Flash Memory)的方法,其中該快閃記憶體中一區塊所包含之資料頁的數量為(2N+M),第(2N+1)~(2N+M)個資料頁係用來備份第1~2N個資料頁中部分資料頁的資料,且N、M均為正整數,以及該方法包含有:讀取該部分資料頁中至少一資料頁的資料;以及選擇性地讀取第(2N+1)~(2N+M)個資料頁中用來備份該至少一資料頁的資料頁,以作為該至少一資料頁中的資料。 A method for accessing a flash memory, wherein the number of data pages included in a block in the flash memory is (2 N +M), the second (2 N +1)~(2 N + M) data pages are used to back up some of the data pages of the 1~2 N data pages, and N and M are positive integers, and the method includes: reading at least one of the data pages a data page; and selectively reading a data page of the (2 N +1)~(2 N +M) data pages for backing up the at least one data page as the at least one data page data. 如申請專利範圍第11項所述之方法,其中選擇性地讀取第(2N+1)~(2N+M)個資料頁中用來備份該至少一資料頁的資料頁的步驟包含有:判斷是否可以成功讀取該至少一資料頁的資料;以及當無法成功讀取該至少一資料頁的資料時,讀取第(2N+1)~(2N+M)個資料頁中用來備份該至少一資料頁的資料頁,以作為該至少一資料頁中的資料。 The method of claim 11, wherein the step of selectively reading the data pages of the (2 N +1)~(2 N +M) data pages for backing up the at least one data page comprises Yes: determining whether the data of the at least one data page can be successfully read; and reading the (2 N +1)~(2 N +M) data pages when the data of the at least one data page cannot be successfully read The data page used to back up the at least one data page as the data in the at least one data page. 如申請專利範圍第11項所述之方法,其中選擇性地讀取第(2N+1)~(2N+M)個資料頁中用來備份該至少一資料頁的資料頁的步驟包含有:判斷讀取該至少一資料頁的資料所需的時間是否會超過一預定時間;以及當判斷讀取該至少一資料頁的資料所需的時間會超過該預定時間時,讀 取第(2N+1)~(2N+M)個資料頁中用來備份該至少一資料頁的資料頁,以作為該至少一資料頁中的資料。 The method of claim 11, wherein the step of selectively reading the data pages of the (2 N +1)~(2 N +M) data pages for backing up the at least one data page comprises Determining whether the time required to read the data of the at least one data page exceeds a predetermined time; and when it is judged that the time required to read the data of the at least one data page exceeds the predetermined time, the first reading is performed ( 2 N +1)~(2 N +M) data pages are used to back up the data page of the at least one data page as the data in the at least one data page. 如申請專利範圍第11項所述之方法,其中該快閃記憶體為一三層式儲存(Triple-Level Cell,TLC)快閃記憶體。 The method of claim 11, wherein the flash memory is a Triple-Level Cell (TLC) flash memory. 一種記憶裝置,其包含有:一快閃記憶體(Flash Memory),其中該快閃記憶體包含複數個區塊,該複數個區塊中任一區塊所包含之資料頁的數量為(2N+M),第(2N+1)~(2N+M)個資料頁係用來備份第1~2N個資料頁中部分資料頁的資料,且N、M均為正整數;以及一控制器,用來讀取該部分資料頁中至少一資料頁的資料,以及選擇性地讀取第(2N+1)~(2N+M)個資料頁中用來備份該至少一資料頁的資料頁,以作為該至少一資料頁中的資料。 A memory device includes: a flash memory, wherein the flash memory comprises a plurality of blocks, and the number of data pages included in any of the plurality of blocks is (2) N + M), the (2 N +1)~(2 N +M) data pages are used to back up the data of some data pages in the 1~2 N data pages, and N and M are positive integers; And a controller for reading at least one data page of the part of the data page, and selectively reading the (2 N +1)~(2 N +M) data pages for backing up the at least A data page of a data page to serve as information in the at least one data page. 如申請專利範圍第15項所述之記憶裝置,其中該控制器判斷是否可以成功讀取該至少一資料頁的資料;以及當無法成功讀取該至少一資料頁的資料時,讀取第(2N+1)~(2N+M)個資料頁中用來備份該至少一資料頁的資料頁,以作為該至少一資料頁中的資料。 The memory device of claim 15, wherein the controller determines whether the data of the at least one data page can be successfully read; and when the data of the at least one data page cannot be successfully read, reading the 2 N +1)~(2 N +M) data pages are used to back up the data page of the at least one data page as the data in the at least one data page. 如申請專利範圍第15項所述之記憶裝置,其中該控制器判斷讀取該至少一資料頁的資料所需的時間是否會超過一預定時間;以及當判斷讀取該至少一資料頁的資料所需的時間會超過該預定時間時,讀取第(2N+1)~(2N+M)個資料頁中用來備份該至少一資料頁的資料頁,以作為該至少一資料頁中的資料。 The memory device of claim 15, wherein the controller determines whether a time required to read the data of the at least one data page exceeds a predetermined time; and when determining to read the data of the at least one data page When the required time exceeds the predetermined time, the data page of the (2 N +1)~(2 N +M) data pages for backing up the at least one data page is read as the at least one data page. Information in the middle. 如申請專利範圍第15項所述之記憶裝置,其中該快閃記憶體為一三層式儲存(Triple-Level Cell,TLC)快閃記憶體。 The memory device of claim 15, wherein the flash memory is a Triple-Level Cell (TLC) flash memory.
TW102118811A 2012-06-18 2013-05-28 Method for accessing flash memory and associated memory device TWI492052B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US13/920,074 US9384125B2 (en) 2012-06-18 2013-06-17 Method for accessing flash memory having pages used for data backup and associated memory device
CN201310242985.4A CN103514101A (en) 2012-06-18 2013-06-18 Method for accessing flash memory and related memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US201261660825P 2012-06-18 2012-06-18

Publications (2)

Publication Number Publication Date
TW201401052A true TW201401052A (en) 2014-01-01
TWI492052B TWI492052B (en) 2015-07-11

Family

ID=50345045

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102118811A TWI492052B (en) 2012-06-18 2013-05-28 Method for accessing flash memory and associated memory device

Country Status (1)

Country Link
TW (1) TWI492052B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI626541B (en) * 2017-08-31 2018-06-11 慧榮科技股份有限公司 Method for writing data into flash memory module and associated flash memory controller and electronic device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW504692B (en) * 2001-04-20 2002-10-01 Geneticware Co Ltd Method and architecture for DRAM defect management and status display
TWI386803B (en) * 2008-07-02 2013-02-21 Silicon Motion Inc Flash memory card and method for securing a flash memory against data damage
US8285970B2 (en) * 2008-11-06 2012-10-09 Silicon Motion Inc. Method for managing a memory apparatus, and associated memory apparatus thereof
TWI462104B (en) * 2010-08-04 2014-11-21 Silicon Motion Inc Data writing method and data storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI626541B (en) * 2017-08-31 2018-06-11 慧榮科技股份有限公司 Method for writing data into flash memory module and associated flash memory controller and electronic device

Also Published As

Publication number Publication date
TWI492052B (en) 2015-07-11

Similar Documents

Publication Publication Date Title
JP4524309B2 (en) Memory controller for flash memory
TWI692690B (en) Method for accessing flash memory module and associated flash memory controller and electronic device
TWI520153B (en) Non-volatile memory device and operation method thereof
CN110908925B (en) High-efficiency garbage collection method, data storage device and controller thereof
US8904086B2 (en) Flash memory storage system and controller and data writing method thereof
US8694748B2 (en) Data merging method for non-volatile memory module, and memory controller and memory storage device using the same
US20190227926A1 (en) Method for managing flash memory module and associated flash memory controller and electronic device
US9384125B2 (en) Method for accessing flash memory having pages used for data backup and associated memory device
CN109117383B (en) Method for managing flash memory module and flash memory controller
TWI626541B (en) Method for writing data into flash memory module and associated flash memory controller and electronic device
US9619380B2 (en) Data writing method, memory control circuit unit and memory storage apparatus
US9122583B2 (en) Memory controller and memory storage device and data writing method
TWI585778B (en) Operation method of non-volatile memory device
US9378130B2 (en) Data writing method, and memory controller and memory storage apparatus using the same
US9037781B2 (en) Method for managing buffer memory, memory controllor, and memory storage device
TW201917578A (en) Method for accessing flash memory module and associated flash memory controller and electronic device
US8607123B2 (en) Control circuit capable of identifying error data in flash memory and storage system and method thereof
TW202011194A (en) Flash memory controller and associated electronic device
CN109840165B (en) Memory system and method of operating the same
TWI492052B (en) Method for accessing flash memory and associated memory device
TWI657339B (en) Method for managing flash memory module and associated flash memory controller
CN111159069A (en) Flash memory controller, method for managing flash memory module and related electronic device
US9652378B2 (en) Writing method, memory controller and memory storage device
US8312205B2 (en) Method for identifying a page of a block of flash memory, and associated memory device
US20080059691A1 (en) Memory management module