[go: up one dir, main page]

TWI596614B - Memory writing method - Google Patents

Memory writing method Download PDF

Info

Publication number
TWI596614B
TWI596614B TW105128422A TW105128422A TWI596614B TW I596614 B TWI596614 B TW I596614B TW 105128422 A TW105128422 A TW 105128422A TW 105128422 A TW105128422 A TW 105128422A TW I596614 B TWI596614 B TW I596614B
Authority
TW
Taiwan
Prior art keywords
page
storage unit
paging
strong
order storage
Prior art date
Application number
TW105128422A
Other languages
Chinese (zh)
Other versions
TW201810276A (en
Inventor
jia-huang Cai
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 filed Critical
Priority to TW105128422A priority Critical patent/TWI596614B/en
Application granted granted Critical
Publication of TWI596614B publication Critical patent/TWI596614B/en
Publication of TW201810276A publication Critical patent/TW201810276A/en

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Description

記憶體的寫入方法Memory writing method

本發明係關於一種記憶體的寫入方法,尤指一種可提升記憶體使用壽命及可靠度的相關技術。The invention relates to a method for writing a memory, in particular to a related technology for improving the service life and reliability of a memory.

目前市面上常見的一種快閃記憶體,其包括一單階單元(single level cell, SLC)記憶體、一三階單元(triple level cell, TLC)記憶體,該單階單元記憶體中的一記憶單元可儲存一個資料位元,而三階單元記憶體的一記憶單元可儲存三個資料位元,因此三階單元記憶體的資料容量為單階單元記憶體的資料容量的三倍;並且,上述各單元記憶體的多個頁(pages)分別可被區分為多組頁配對(page pair),每一頁配對包括一強分頁(strong page)與一弱分頁(weak page),該強分頁與弱分頁分別用於儲存資料,該弱分頁具有較低的可讀寫次數,以及較慢的資料存取速度,該強分頁具有較高的讀寫次數,以及較快的資料存取速度,以平均而言,單階單元記憶體的分頁較三階單元記憶體的分頁具有較高的可讀寫次數,以及較快的資料存取速度。A flash memory commonly used in the market, which comprises a single level cell (SLC) memory, a third level cell (TLC) memory, and one of the single order cell memories. The memory unit can store one data bit, and one memory unit of the third-order unit memory can store three data bits, so the data capacity of the third-order unit memory is three times the data capacity of the single-stage unit memory; Each of the plurality of pages of the unit memory can be divided into a plurality of page pairs, each page pairing includes a strong page and a weak page, the strong Pagination and weak pagination are respectively used to store data. The weak pagination has a lower number of readable and writable times and a slower data access speed. The strong pagination has a higher number of reading and writing times and a faster data access speed. On average, the paging of the single-order unit memory has a higher number of readable and writable times than the paging of the third-order unit memory, and a faster data access speed.

如我國發明專利第I403906號「快閃記憶裝置及其運作方法」,其主要由一快閃記憶裝置連接至一主機,其包括一多階單元快閃記憶體與一控制器;該多階單元快閃記憶體包括一加速區與一正常區,該加速區包括多個第一區塊,該正常區包括多個第二區塊,該等第一區塊及第二區塊皆分別包括多個分頁,其中該等分頁被區分為具有高資料讀寫次數的強分頁與具有低資料讀寫次數的弱分頁;該控制器自主機接收欲寫入該快閃記憶體裝置的一筆資料,並判斷該資料是否為重要資料,若該資料為重要資料,則將該資料寫入該加速區的各個第一區塊的強分頁中,若該資料不為是要資料,則將該資料寫入正常區的各個第二區塊的分頁中,以此方式能夠同時運用兩種不同區塊的資料儲存區。For example, Chinese Patent No. I403906 "Flash Memory Device and Operation Method" thereof is mainly connected to a host by a flash memory device, which comprises a multi-level unit flash memory and a controller; the multi-level unit The flash memory includes an acceleration zone and a normal zone, the acceleration zone includes a plurality of first blocks, the normal zone includes a plurality of second blocks, and the first block and the second block respectively include multiple a page, wherein the pages are divided into a strong page with a high number of data read and write times and a weak page with a low number of data read and write times; the controller receives a piece of data to be written into the flash memory device from the host, and Determining whether the data is important data, if the data is important data, writing the data into the strong page of each first block of the acceleration zone, and if the data is not the data, the data is written In the paging of each of the second blocks of the normal zone, in this way, the data storage areas of the two different blocks can be simultaneously used.

然而,目前市面上常見的快閃記憶體以及上述專利中的快閃記憶體裝置,皆存在使用壽命較短的問題,尤其是以加速區提高讀寫次數與速度的方式,更容易加速記憶體的損耗,如圖8、圖9所示,其分別為一單階單元記憶體分頁及一三階單元記憶體分頁的效能曲線圖,其中包括一水平軸與一垂直軸,其分別代表記憶體的使用量與誤碼率(bit error),當誤碼率達到上限時該記憶體的分頁W’即無法被校正而再被使用,因此,如圖10所示,當單階單元記憶體的弱分頁W’與三階單元記憶體的弱分頁W’被頁配對(page pair)後,記憶體的誤碼率會迅速攀升至上限(例如:70),使得記憶體的使用壽命變短、資料的可靠度變差;因此,上述之現有技術確實有待提出更佳解決方案的必要性。However, the flash memory commonly used in the market and the flash memory device in the above patents all have the problem of short service life, especially in the way that the acceleration zone improves the number and speed of reading and writing, and it is easier to accelerate the memory. The loss, as shown in FIG. 8 and FIG. 9 , is a performance curve of a single-order unit memory page and a third-order unit memory page, respectively, including a horizontal axis and a vertical axis, respectively representing the memory. The usage amount and the bit error, when the bit error rate reaches the upper limit, the page W' of the memory cannot be corrected and is used again. Therefore, as shown in FIG. 10, when the single-order unit memory is used After the weak page W' and the weak page W' of the third-order unit memory are page paired, the bit error rate of the memory will rapidly climb to the upper limit (for example, 70), resulting in a shortened memory life. The reliability of the data deteriorates; therefore, the above-mentioned prior art does have a need to propose a better solution.

有鑑於上述現有技術的不足,本發明主要目的係提供一種記憶體的寫入方法,透過將不同效能屬性分頁的資料被分散配對處理,以達到提升記憶體使用壽命及可靠度的目的。In view of the above deficiencies of the prior art, the main object of the present invention is to provide a method for writing a memory by dispersing and pairing data of different performance attributes to achieve the purpose of improving the service life and reliability of the memory.

欲達上述目的所採取的主要技術手段係令前述記憶體的寫入方法,主要是使一記憶體空間具有多數的單階儲存單元以及多數的三階儲存單元,其中各個單階儲存單元、三階儲存單元分別具有多數的分頁,每一分頁具有一效能屬性,且令每三個單階儲存單元的分頁對應一個三階儲存單元的分頁,並執行以下步驟: 分別取得該等單階儲存單元的分頁、三階儲存單元的分頁的效能屬性以判斷其優劣; 將單階儲存單元的分頁的資料寫入相對應三階儲存單元的不同效能屬性分頁中。The main technical means to achieve the above purpose is to write the memory in the above method, mainly to make a memory space have a plurality of single-stage storage units and a plurality of third-order storage units, wherein each single-stage storage unit, three The order storage units respectively have a plurality of pagings, each of the pagings has a performance attribute, and the paging of each of the three single-level storage units corresponds to the paging of a third-order storage unit, and performs the following steps: respectively obtaining the single-order storage units The paging attribute of the paging, third-order storage unit is used to judge the pros and cons; the paging data of the single-level storage unit is written into the different performance attribute pages of the corresponding third-order storage unit.

藉由上述方法實施於上述記憶體空間,當記憶體空間進行資料寫入時,先分別取得該等單階儲存單元的分頁、三階儲存單元的分頁的效能屬性,並判斷該等單階儲存單元的分頁的優劣,將效能屬性為優/劣的單階儲存單元的分頁的資料,寫入對應之不同效能屬性為劣/優的三階儲存單元的分頁中,使得不同效能屬性分頁的資料被分散配對處理,相同性能屬性的資料不會被配對,因此可提升記憶體使用壽命以及記憶體資料的可靠度。The method is implemented in the memory space, and when the memory space is used for data writing, the performance attributes of the paging of the single-order storage unit and the paging of the third-order storage unit are respectively obtained, and the single-stage storage is determined. The pros and cons of the paging of the unit, the paging data of the single-level storage unit with the performance attribute being excellent/bad is written into the paging of the third-order storage unit with different performance attributes being inferior/excellent, so that the information of different performance attributes is paged. Dispersed pairing, data of the same performance attribute will not be paired, thus improving the memory life and the reliability of the memory data.

關於本發明之較佳實施例,請參閱圖1與圖2所示,其包括一控制器10連結一記憶體空間20,該記憶體空間20具有多數的單階儲存單元以及多數的三階儲存單元,該控制器10係用以管理該記憶體空間20內的各個儲存單元;本實施例中,多數的單階儲存單元包括一第一單階儲存單元21、一第二單階儲存單元22及一第三單階儲存單元23,且該第一單階儲存單元21、該第二單階儲存單元22及該第三單階儲存單元23分別對應連接一個三階儲存單元24。Referring to FIG. 1 and FIG. 2, a controller 10 is coupled to a memory space 20 having a plurality of single-stage storage units and a plurality of third-order storages. The controller 10 is configured to manage each storage unit in the memory space 20; in this embodiment, the plurality of single-stage storage units include a first single-stage storage unit 21 and a second single-stage storage unit 22 And a third single-stage storage unit 23, and the first single-stage storage unit 21, the second single-stage storage unit 22, and the third single-stage storage unit 23 are respectively connected to a third-order storage unit 24.

上述所有的單階儲存單元21,22,23、三階儲存單元24係分別具有多數的分頁,每一分頁具有一效能屬性,且令每單階儲存單元21,22,23的分頁對應一個三階儲存單元24的分頁,本實施例中,該控制器10係與預先建立一個以上的效能查照表30連接,並由該控制器10分別取得該記憶體空間20的該等單階儲存單元21,22,23的分頁、三階儲存單元24的分頁的效能屬性,分別依次序編輯於該效能查照表30中,以供該控制器10判斷其優劣,再將單階儲存單元21,22,23的分頁的資料寫入相對應三階儲存單元24的不同效能屬性分頁中,使得不同效能屬性分頁的資料被分散處理。All of the above-mentioned single-stage storage units 21, 22, 23, and third-order storage units 24 have a plurality of pages, each page has a performance attribute, and the pages of each single-stage storage unit 21, 22, 23 correspond to one page. In the embodiment, the controller 10 is connected to one or more performance checklists 30, and the controller 10 obtains the single-stage storage units 21 of the memory space 20, respectively. The paging attribute of the 22, 23 page and the third-order storage unit 24 are sequentially edited in the performance check table 30 for the controller 10 to judge the merits and demerits, and then the single-stage storage unit 21, 22, The paged data of 23 is written into the different performance attribute pages of the corresponding third-order storage unit 24, so that the data of the different performance attribute pages are distributed.

請參考圖2所示,主要係由該控制器10取得上述該第一單階儲存單元21的分頁、該第二單階儲存單元22的分頁及該第三單階儲存單元23的分頁與該三階儲存單元24的分頁的效能屬性,並依效能屬性分別判斷該等單階儲存單元21,22,23的分頁與該三階儲存單元24的分頁分別是屬於一易損壞的弱分頁W或是一高可靠度的強分頁S,若該三階儲存單元24的分頁為弱分頁W,且該等單階儲存單元21,22,23的分頁為強分頁S時,將該等強分頁S的資料分別寫入該弱分頁W中。Referring to FIG. 2, the controller 10 obtains the paging of the first single-stage storage unit 21, the paging of the second single-stage storage unit 22, and the paging of the third single-stage storage unit 23. The performance attribute of the paging of the third-order storage unit 24, and determining, according to the performance attribute, that the paging of the single-stage storage units 21, 22, 23 and the paging of the third-order storage unit 24 respectively belong to a vulnerable weak page W or Is a high-reliability strong page S, if the page of the third-order storage unit 24 is a weak page W, and the pages of the single-stage storage units 21, 22, 23 are strong pages S, the strong pages S The data is written into the weak page W, respectively.

又如圖3所示,若該三階儲存單元24的分頁為強分頁S,且該等單階儲存單元21,22,23的分頁為弱分頁W時,將該等弱分頁W的資料分別寫入該強分頁S中;其中,該控制器10將取得的效能屬性分別依次序編輯於該效能查照表30中,以判斷其優劣(S/W),並將強分頁S對應至弱分頁W,或將弱分頁W對應至強分頁S,該效能查照表30可為下列圖表形式: <TABLE border="1" borderColor="#000000" width="_0001"><TBODY><tr><td> 次序 </td><td> 單階儲存單元 </td><td>   </td><td> 三階儲存單元 </td></tr><tr><td> 1 </td><td><img wi="155" he="210" file="02_image001.gif" img-format="jpg"></img><img wi="154" he="89" file="02_image002.gif" img-format="jpg"></img>S1 </td><td> S1 </td></tr><tr><td> 2 </td><td><img wi="154" he="87" file="02_image003.gif" img-format="jpg"></img>S2 </td><td> S2 </td></tr><tr><td> 3 </td><td> S3 </td><td> W1 </td></tr><tr><td> 4 </td><td> S4 </td><td> W2 </td></tr><tr><td> 5 </td><td> S5 </td><td> S3 </td></tr><tr><td> 6 </td><td> W1 </td><td> S4 </td></tr><tr><td><img wi="4" he="41" file="02_image004.gif" img-format="jpg"></img></td><td><img wi="4" he="41" file="02_image005.gif" img-format="jpg"></img></td><td><img wi="3" he="41" file="02_image006.gif" img-format="jpg"></img></td></tr></TBODY></TABLE>上述圖表中,其包括該等單階儲存單元21,22,23的分頁、三階儲存單元24的分頁的效能屬性(S/W),並分別以次序1,2,3,4,5,6編排於該效能查照表30中,當該控制器10判斷於次序1、2之單階儲存單元的是強分頁S1、S2,則係可查照到對應至次序3、4之三階儲存單元的弱分頁W1、W2,而當該控制器10判斷於次序6之單階儲存單元的是弱分頁W1時,則又查照到對應至次序1之三階儲存單元的強分頁S1,如上述對應方式可提升控制器10的判斷效率。 As shown in FIG. 3, if the page of the third-order storage unit 24 is a strong page S, and the pages of the single-stage storage units 21, 22, 23 are weak pages W, the data of the weak pages W are respectively The strong page S is written into the strong page S; wherein the controller 10 sequentially edits the obtained performance attributes in the performance check table 30 to determine its merits and demerits (S/W), and maps the strong page S to the weak page. W, or the weak page W corresponds to the strong page S, the performance check table 30 can be in the form of the following chart:         <TABLE border="1" borderColor="#000000" width="_0001"><TBODY><tr><td> order</td><td> single-stage storage unit</td><td> </td ><td> Third-order storage unit</td></tr><tr><td> 1 </td><td><img wi="155" he="210" file="02_image001.gif" img -format="jpg"></img><img wi="154" he="89" file="02_image002.gif" img-format="jpg"></img>S1 </td><td> S1 </td></tr><tr><td> 2 </td><td><img wi="154" he="87" file="02_image003.gif" img-format="jpg"> </img>S2 </td><td> S2 </td></tr><tr><td> 3 </td><td> S3 </td><td> W1 </td></ Tr><tr><td> 4 </td><td> S4 </td><td> W2 </td></tr><tr><td> 5 </td><td> S5 </ Td><td> S3 </td></tr><tr><td> 6 </td><td> W1 </td><td> S4 </td></tr><tr><td ><img wi="4" he="41" file="02_image004.gif" img-format="jpg"></img></td><td><img wi="4" he="41 " file="02_image005.gif" img-format="jpg"></img></td><td><img wi="3" he="41" file="02_image006.gif" img-format= "jpg"></img></td></tr></TBODY></TABLE> in the above chart, which includes the paging of the single-stage storage units 21, 22, 23, and the third-order storage unit 24 Paging effect Attributes (S/W) are arranged in the performance lookup table 30 in the order of 1, 2, 3, 4, 5, 6, respectively, when the controller 10 determines that the single-order storage unit of the order 1, 2 is strong. The pages S1, S2 can be traced to the weak pages W1, W2 corresponding to the third-order storage unit of the order 3, 4, and when the controller 10 determines that the single-stage storage unit of the sequence 6 is the weak page W1, Then, the strong page S1 corresponding to the third-order storage unit of the sequence 1 is looked up, and the above-mentioned corresponding manner can improve the judgment efficiency of the controller 10.       

進一步的,當上述該控制器10判斷該第一單階儲存單元21的分頁、該第二單階儲存單元22的分頁及該第三單階儲存單元23的分頁分別為弱分頁W時,便將該弱分頁W的資料寫入該強分頁S中,並且將該等單階儲存單元21,22,23的分頁標記為一已使用過的弱分頁W,當依序判斷到的該等單階儲存單元21,22,23的分頁不為弱分頁W時,則繼續搜尋其他可用的弱分頁W;同樣上述該控制器10判斷該第一單階儲存單元21的分頁、該第二單階儲存單元22的分頁及該第三單階儲存單元23的分頁分別為強分頁S時,便將該強分頁S的資料寫入該弱分頁W中,再將該等單階儲存單元21,22,23的分頁標記為一已使用過的強分頁S,當依序判斷到的該等單階儲存單元21,22,23的分頁不為強分頁S時,則繼續搜尋其他可用的強分頁S。Further, when the controller 10 determines that the page of the first single-stage storage unit 21, the page of the second single-stage storage unit 22, and the page of the third single-stage storage unit 23 are respectively weak pages W, The data of the weak page W is written into the strong page S, and the pages of the single-stage storage units 21, 22, 23 are marked as a used weak page W, when the orders are sequentially determined. When the page of the storage unit 21, 22, 23 is not the weak page W, the search continues to search for other available weak pages W. Similarly, the controller 10 determines the page of the first single-stage storage unit 21, the second single stage. When the page of the storage unit 22 and the page of the third single-stage storage unit 23 are respectively strong page S, the data of the strong page S is written into the weak page W, and the single-stage storage units 21, 22 are The page of 23 is marked as a used strong page S. When the pages of the single-stage storage units 21, 22, 23 that are sequentially determined are not strong pages S, the search continues for other available strong pages S. .

為說明本發明的應用效果,請參閱圖如4、5所示,其分別為一單階單元記憶體的分頁及一三階單元記憶體的分頁之效能曲線圖,其中包括一水平軸與一垂直軸,該水平軸代表記憶體的使用量(單位:column/page),該垂直軸代表一誤碼率(單位:bit error),當誤碼率達到一門檻值(如70)時,該記憶體空間20的所有分頁即無法再被校正、再被使用,因此藉由本發明上述較佳實施例將所有單階儲存單元21,22,23的分頁的資料寫入相對應三階儲存單元24的不同效能屬性分頁中,如圖5、6所示,將所有單階儲存單元21,22,23的弱分頁W與三階單元記憶體的強分頁S進行頁配對,以及將所有單階儲存單元21,22,23的強分頁S與三階單元記憶體的弱分頁W進行頁配對,使得不同效能屬性分頁(S/W)的資料被分散處理,讓該記憶體空間20的誤碼率有效降至該門檻值以下,使得該記憶體空間20的使用壽命增加。To illustrate the application effect of the present invention, please refer to the figures shown in FIG. 4 and FIG. 5, which are respectively a page of a single-order unit memory and a page efficiency performance of a third-order unit memory, including a horizontal axis and a The vertical axis, which represents the amount of memory used (unit: column/page), the vertical axis represents a bit error rate (unit: bit error), when the bit error rate reaches a threshold (such as 70), All the pages of the memory space 20 can no longer be corrected and reused. Therefore, the paged data of all the single-stage storage units 21, 22, 23 is written into the corresponding third-order storage unit 24 by the above preferred embodiment of the present invention. In the different performance attribute pages, as shown in FIGS. 5 and 6, the weak page W of all the single-stage storage units 21, 22, 23 is page-paired with the strong page S of the third-order unit memory, and all single-stage storage is performed. The strong page S of the cells 21, 22, 23 is page-paired with the weak page W of the third-order cell memory, so that the data of different performance attribute pages (S/W) is distributed and the bit error rate of the memory space 20 is made. Effectively below the threshold, making the note The lifetime of the body space 20 is increased.

由本發明上述較佳實施例的具體應用方式及說明,可歸納出一記憶體的寫入方法,主要是使該記憶體空間20具有多數的單階儲存單元以及多數的三階儲存單元,其中各個單階儲存單元、三階儲存單元分別具有多數的分頁,每一分頁具有一效能屬性,且令每三個單階儲存單元的分頁對應一個三階儲存單元的分頁,並執行以下步驟: 建立一個以上的效能查照表(S71); 分別取得該等單階儲存單元的分頁、三階儲存單元的分頁的效能屬性以判斷其優劣(S72); 依效能屬性判斷該三階儲存單元的分頁是屬於高可靠度的強分頁或易損壞的弱分頁:若該三階儲存單元的分頁為強分頁,則進一步判斷該等單階儲存單元的分頁是否為易損壞的弱分頁,若該三階儲存單元的分頁為弱分頁,則進一步判斷該等單階儲存單元的分頁是否為高可靠度的強分頁(S73); 當該等單階儲存單元的分頁為弱分頁時,將弱分頁的資料寫入強分頁中,當該等單階儲存單元的分頁為強分頁時,將強分頁的資料寫入弱分頁中(S74); 當該等單階儲存單元的分頁為弱分頁時,將該弱分頁的資料寫入該強分頁中,且將該等單階儲存單元的分頁標記為已使用過的弱分頁,當該等單階儲存單元的分頁為強分頁時,將該強分頁的資料寫入該弱分頁中,且將該等單階儲存單元的分頁標記為已使用過的強分頁(S75)。According to the specific application mode and description of the above preferred embodiment of the present invention, a memory writing method can be summarized, which mainly causes the memory space 20 to have a plurality of single-stage storage units and a plurality of third-order storage units, wherein each The single-stage storage unit and the third-order storage unit respectively have a plurality of pagings, each paging has a performance attribute, and the paging of each three single-order storage units corresponds to the paging of a third-order storage unit, and performs the following steps: The above performance checklist (S71); respectively obtaining the paging attribute of the single-order storage unit and the paging attribute of the third-order storage unit to judge the pros and cons (S72); determining the paging of the third-order storage unit according to the performance attribute belongs to High-reliability strong paging or fragile weak paging: if the paging of the third-order storage unit is strong paging, further determining whether the paging of the single-level storage unit is a vulnerable weak paging, if the third-order storage unit If the page break is a weak page, further determining whether the page of the single-stage storage unit is a high-reliability strong page (S73); When the paging of the single-stage storage unit is a weak paging, the weak paging data is written into the strong paging, and when the paging of the single-level storage unit is a strong paging, the strong paging data is written into the weak paging (S74); When the pages of the single-stage storage units are weakly paged, the weak paged data is written into the strong page, and the pages of the single-stage storage units are marked as used weak pages, when the orders are When the page of the order storage unit is a strong page, the strong page data is written into the weak page, and the pages of the single-level storage unit are marked as used strong pages (S75).

本發明可藉由上述方法實施於該記憶體空間20,當記憶體空間20進行資料寫入並分別取得該等單階儲存單元的分頁、三階儲存單元的分頁的效能屬性,經由判斷該等單階儲存單元的分頁的優劣,將效能屬性為強分頁的單階儲存單元的分頁的資料寫入對應之效能屬性為弱分頁的三階儲存單元的分頁中,或將效能屬性為弱分頁的單階儲存單元的分頁的資料寫入對應之效能屬性為強分頁的三階儲存單元的分頁中,使得不同效能屬性分頁的資料被分散配對處理,相同性能屬性的資料不會被配對,因此可提升記憶體使用壽命以及記憶體資料的可靠度。The present invention can be implemented in the memory space 20 by the above method. When the memory space 20 performs data writing and separately obtains the paging attribute performance of the paging and the third-order storage unit of the single-order storage unit, the judgment is performed by determining the performance attributes of the paging of the single-stage storage unit. The pros and cons of the paging of the single-order storage unit, the paging attribute of the single-level storage unit whose performance attribute is strong page is written into the paging of the third-order storage unit whose performance attribute is weakly paged, or the performance attribute is weakly paged. The paged data of the single-stage storage unit is written into the page of the third-order storage unit whose performance attribute is strong page, so that the data of the different performance attribute pages are distributed and paired, and the data of the same performance attribute is not paired, so Improve memory life and reliability of memory data.

10‧‧‧控制器10‧‧‧ Controller

20‧‧‧記憶體空間20‧‧‧ memory space

21,22,23‧‧‧單階儲存單元21,22,23‧‧‧ single-stage storage unit

24‧‧‧三階儲存單元24‧‧‧ third-order storage unit

30‧‧‧效能查照表30‧‧‧Performance Checklist

圖1 係本發明一較佳實施例的系統架構方塊圖。 圖2 係本發明一較佳實施例的應用狀態圖。 圖3 係本發明一較佳實施例的另一應用狀態圖。 圖4 係本發明一較佳實施例的單階儲存單元的分頁曲線圖。 圖5 係本發明一較佳實施例的三階儲存單元的分頁曲線圖。 圖6 係本發明一較佳實施例的單階/三階儲存單元的分頁配對曲線圖。 圖7 係本發明一較佳實施例的方法流程圖。 圖8 係已知的單階單元記憶體的分頁曲線圖。 圖9 係已知的三階單元記憶體的分頁曲線圖。 圖10 係已知的單階/三階單元記憶體的分頁配對曲線圖。1 is a block diagram of a system architecture in accordance with a preferred embodiment of the present invention. 2 is an application state diagram of a preferred embodiment of the present invention. 3 is another application state diagram of a preferred embodiment of the present invention. 4 is a page diagram of a single-stage storage unit in accordance with a preferred embodiment of the present invention. FIG. 5 is a page diagram of a third-order storage unit in accordance with a preferred embodiment of the present invention. 6 is a page alignment curve diagram of a single-stage/third-order memory cell in accordance with a preferred embodiment of the present invention. 7 is a flow chart of a method in accordance with a preferred embodiment of the present invention. Figure 8 is a page plot of a known single-order unit memory. Figure 9 is a breakdown of a known third-order unit memory. Figure 10 is a diagram of a paged pairing curve of known single-order/third-order unit memories.

10‧‧‧控制器 10‧‧‧ Controller

20‧‧‧記憶體空間 20‧‧‧ memory space

21,22,23‧‧‧單階儲存單元 21,22,23‧‧‧ single-stage storage unit

24‧‧‧三階儲存單元 24‧‧‧ third-order storage unit

30‧‧‧效能查照表 30‧‧‧Performance Checklist

Claims (8)

一種記憶體的寫入方法,主要是使一記憶體空間具有多數的單階儲存單元以及多數的三階儲存單元,其中各個單階儲存單元、三階儲存單元分別具有多數的分頁,每一分頁具有一效能屬性,且令每三個單階儲存單元的分頁對應一個三階儲存單元的分頁,並執行以下步驟:分別取得該等單階儲存單元的分頁、三階儲存單元的分頁的效能屬性以判斷其優劣;將單階儲存單元的分頁的資料寫入相對應三階儲存單元的不同效能屬性分頁中;其中,當上述步驟執行將單階儲存單元的分頁的資料寫入相對應三階儲存單元的不同效能屬性的分頁中時,更包括以下第一方式或第二方式:其中,在該第一方式中包括以下步驟:取得上述該等單階儲存單元的分頁與該三階儲存單元的分頁的效能屬性;依效能屬性判斷該三階儲存單元的分頁是否屬於一高可靠度的強分頁;若該三階儲存單元的分頁為強分頁,則進一步判斷該等單階儲存單元的分頁是否屬於一易損壞的弱分頁;當該等單階儲存單元的分頁為弱分頁時,將該弱分頁的資料寫入該三階儲存單元的強分頁中;在該第二方式中,包括以下步驟:取得上述該等單階儲存單元的分頁與該三階儲存單元的分頁的效能屬性;依效能屬性判斷該三階儲存單元的分頁是否屬於一易損壞的弱分頁; 若該三階儲存單元的分頁為弱分頁,則進一步判斷該等單階儲存單元的分頁是否屬於一高可靠度的強分頁;當該等單階儲存單元的分頁為強分頁時,將該強分頁的資料寫入該三階儲存單元的弱分頁中。 A memory writing method mainly comprises a memory space having a plurality of single-order storage units and a plurality of third-order storage units, wherein each single-stage storage unit and third-order storage unit respectively have a plurality of pages, each page Having a performance attribute, and having the paging of each of the three single-order storage units correspond to the paging of a third-order storage unit, and performing the following steps: respectively obtaining the paging attribute performance of the paging of the single-order storage unit and the paging of the third-order storage unit In order to judge the merits and demerits; the paged data of the single-order storage unit is written into the different performance attribute pages of the corresponding third-order storage unit; wherein, when the above step is performed, the paged data of the single-order storage unit is written into the corresponding third-order When the paging of the different performance attributes of the storage unit is included, the following first or second manner is further included: wherein the first manner includes the following steps: obtaining the paging of the single-order storage unit and the third-order storage unit The performance attribute of the paging; determining whether the paging of the third-order storage unit belongs to a strong page with high reliability according to the performance attribute; The page of the third-order storage unit is a strong page, and further determines whether the page of the single-stage storage unit belongs to a vulnerable page; when the page of the single-stage storage unit is a weak page, the page is weakly The data is written into the strong page of the third-order storage unit. In the second mode, the method includes the following steps: obtaining the paging attribute of the single-level storage unit and the paging attribute of the third-order storage unit; determining the performance attribute according to the performance attribute Whether the page of the third-order storage unit belongs to a vulnerable page that is vulnerable; If the page of the third-order storage unit is a weak page, further determining whether the page of the single-stage storage unit belongs to a high-reliability strong page; when the page of the single-stage storage unit is a strong page, the strong The paged data is written into the weak page of the third-order storage unit. 如請求項1所述之記憶體的寫入方法,當上述步驟執行分別取得該等單階儲存單元的分頁、三階儲存單元的分頁的效能屬性時,更包括以下步驟:建立一個以上的效能查照表;將該等單階儲存單元的分頁、三階儲存單元的分頁的效能屬性,分別依次序編輯於該效能查照表中。 The method for writing a memory according to claim 1, wherein when the step of performing the paging attribute of the paging of the single-stage storage unit and the paging attribute of the third-order storage unit are respectively performed, the method further includes the following steps: establishing more than one performance. The lookup table; the paging attribute of the single-stage storage unit and the paging attribute of the third-order storage unit are sequentially edited in the performance checklist. 如請求項1所述之記憶體的寫入方法,其中當該等單階儲存單元分頁為弱分頁時,將該弱分頁的資料寫入該強分頁中,且將該等單階儲存單元的分頁標記為一已使用過的弱分頁。 The method for writing a memory according to claim 1, wherein when the single-level storage unit pages are weakly paged, the weak paged data is written into the strong page, and the single-stage storage units are The pagination is marked as a weak page that has been used. 如請求項1所述之記憶體的寫入方法,其中當該等單階儲存單元的分頁為強分頁時,將該強分頁的資料寫入該弱分頁中,且將該等單階儲存單元的分頁標記為一已使用過的強分頁。 The method for writing a memory according to claim 1, wherein when the page of the single-stage storage unit is a strong page, the strong page data is written into the weak page, and the single-order storage unit is The tabs are marked as a strong page that has been used. 如請求項3所述之記憶體的寫入方法,其中當該等單階儲存單元的分頁為強分頁時,將該強分頁的資料寫入該弱分頁中,且將該等單階儲存單元的分頁標記為一已使用過的強分頁。 The method for writing a memory according to claim 3, wherein when the page of the single-stage storage unit is a strong page, the strong page data is written into the weak page, and the single-order storage unit is used. The tabs are marked as a strong page that has been used. 如請求項4所述之記憶體的寫入方法,其中當該等單階儲存單元的分頁為弱分頁時,將該弱分頁的資料寫入該強分頁中,且將該等單階儲存單元的分頁標記為一已使用過的弱分頁。 The method for writing a memory according to claim 4, wherein when the page of the single-stage storage unit is a weak page, the weak page data is written into the strong page, and the single-stage storage unit is The tabs are marked as a weak page that has been used. 如請求項1所述之記憶體的寫入方法,其中當判斷該等單階儲存單元的分頁是否屬於一易損壞的弱分頁時,進一步包括以下步驟: 當該等單階儲存單元的分頁不為弱分頁時,則繼續搜尋其他可用的弱分頁。 The method for writing a memory according to claim 1, wherein when determining whether the paging of the single-order storage units belongs to a vulnerable page that is vulnerable, the method further comprises the following steps: When the pages of the single-stage storage units are not weakly paged, the search for other available weak pages continues. 如請求項1所述之記憶體的寫入方法,其中當判斷該等單階儲存單元的分頁是否屬於一高可靠度的強分頁時,進一步包括以下步驟:當該等單階儲存單元的分頁不為強分頁時,則繼續搜尋其他可用的強分頁。 The method for writing a memory according to claim 1, wherein when determining whether the page of the single-order storage unit belongs to a high-reliability strong page, further comprising the step of: paging when the single-stage storage unit If it is not strong, then continue to search for other available strong pages.
TW105128422A 2016-09-02 2016-09-02 Memory writing method TWI596614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105128422A TWI596614B (en) 2016-09-02 2016-09-02 Memory writing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105128422A TWI596614B (en) 2016-09-02 2016-09-02 Memory writing method

Publications (2)

Publication Number Publication Date
TWI596614B true TWI596614B (en) 2017-08-21
TW201810276A TW201810276A (en) 2018-03-16

Family

ID=60189381

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105128422A TWI596614B (en) 2016-09-02 2016-09-02 Memory writing method

Country Status (1)

Country Link
TW (1) TWI596614B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130282955A1 (en) * 2012-04-19 2013-10-24 Liam M. Parker System and method for limiting fragmentation
US20140003142A1 (en) * 2012-06-29 2014-01-02 Samsung Electronics Co., Ltd. Nonvolatile memory device performing garbage collection
US8923045B2 (en) * 2012-05-31 2014-12-30 Seagate Technology Llc Multi-level cell (MLC) update with protected mode capability
US20150301763A1 (en) * 2014-04-16 2015-10-22 Sandisk Technologies Inc. Storage Module and Method for Adaptive Burst Mode

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130282955A1 (en) * 2012-04-19 2013-10-24 Liam M. Parker System and method for limiting fragmentation
US8923045B2 (en) * 2012-05-31 2014-12-30 Seagate Technology Llc Multi-level cell (MLC) update with protected mode capability
US20140003142A1 (en) * 2012-06-29 2014-01-02 Samsung Electronics Co., Ltd. Nonvolatile memory device performing garbage collection
US20150301763A1 (en) * 2014-04-16 2015-10-22 Sandisk Technologies Inc. Storage Module and Method for Adaptive Burst Mode

Also Published As

Publication number Publication date
TW201810276A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
US10089174B2 (en) Flash memory controller and memory device for accessing flash memory module, and associated method
US8074148B2 (en) Memory management method and controller for non-volatile memory storage device
US8644071B2 (en) Flash memory apparatus capable of extending data retention and improving data reliability, and method for controlling the same
TWI567554B (en) Methods for caching and reading data to be written into a storage unit and apparatuses using the same
CN109491596B (en) Method for reducing data storage error rate in charge trapping type 3D flash memory
TW201526010A (en) Method for performing error correction, and associated memory apparatus thereof and associated controller thereof
TWI506422B (en) Method for managing a memory device having multiple channels and multiple ways, and associated memory device and controller thereof
CN104091617A (en) Flash memory equipment detection method and apparatus thereof
CN106484558A (en) A kind of error correcting code based on variable bit rate improves the reliability method of solid-state disk
TWI760215B (en) Method for performing access management of memory device with aid of information arrangement, associated memory device and controller thereof, associated electronic device
US8634243B2 (en) Data writing method and data storage device
CN102214143A (en) Method and device for managing multilayer unit flash memory, and storage equipment
CN104991738A (en) Solid state disk and read and write operation method thereof
CN101556555A (en) Block management method for flash memory, controller and storage system thereof
CN115145755A (en) System and method for remapping bad blocks in a memory subsystem
CN107527655A (en) A kind of flash memories mixing reading/writing method and mixing read-write flash memories
TW202226252A (en) Method for accessing flash memory module, flash memory controller, and electronic device
CN108681509A (en) A method of quickly establishing Flash table
US10289334B2 (en) Valid data merging method, memory controller and memory storage apparatus
TWI596614B (en) Memory writing method
US20250087278A1 (en) Eliminating write disturb for system metadata in a memory sub-system
CN103164344A (en) Method and device for data management in flash memory device
JP5908106B2 (en) Device and method for storing validity mask and operating device
CN101566969A (en) Method and controller for improving management efficiency of nonvolatile memory storage device
CN105677244A (en) Solid state disk write amplification method capable of reducing TLC flash memory