[go: up one dir, main page]

TW575806B - A method for enhancing flash memory error correction capability and providing data encryption in the same time - Google Patents

A method for enhancing flash memory error correction capability and providing data encryption in the same time Download PDF

Info

Publication number
TW575806B
TW575806B TW91115685A TW91115685A TW575806B TW 575806 B TW575806 B TW 575806B TW 91115685 A TW91115685 A TW 91115685A TW 91115685 A TW91115685 A TW 91115685A TW 575806 B TW575806 B TW 575806B
Authority
TW
Taiwan
Prior art keywords
data
flash memory
page
block
address
Prior art date
Application number
TW91115685A
Other languages
Chinese (zh)
Inventor
Lung-Yi Gau
Original Assignee
Silicon Motion Tech 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 Tech Inc filed Critical Silicon Motion Tech Inc
Priority to TW91115685A priority Critical patent/TW575806B/en
Application granted granted Critical
Publication of TW575806B publication Critical patent/TW575806B/en

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Description

575806 五、發明說明(i) 發明領域 =發明係關於在快閃記憶體_ 料的技術:!別係可以增強快閃記憶體中錯誤更正=貝 力而且同時具備對所儲存資料之内容進行加密的功能。 發明背景 在快閃記憶體上為了避& ^ . 、止士、的宝、S片 之免。己丨思體早兀(c e 1 1)因使用而 a成的,心會使用阶的演算法來提高資料的正確 性,。一曼吊用的ECC 一次約管理128或2 56個bytes,更正能 力為一個位兀的錯誤,而超過2個位元以上時則可以偵測 出來。為了提什記憶體容量及減少成本,業界已經發展出 多位準(Multi-levei)的快閃記憶體,而且利用較低等級 的快閃記憶體來製作具較低成本的儲存卡,以上兩種作法 將會增加ECC更正能力的需求,但是增加£(:(:的更正能力勢 必會造成硬體電路的增加及增加存放錯誤更正碼(Err〇r Correction Code)的空間,此係f知技藝所面臨之一難 題。 此外’目前未對資料加密的快閃記憶體演算法是很容 易被破解的’一種簡單的作法係在週邊裝置和主機(H〇st) 之間增加認證的手續,但此法依然有機會被破解,因為只 要知道記憶體中邏輯區塊和實體區塊的連結關係,就能從 快閃記憶體的原始資料中找出檔案的位置,所以只要以特 定的資料寫入並且將快閃記憶體中的原始資料加以追蹤, 便可以輕易找出該週邊裝置所使用的演算法,此則為習知575806 V. Description of the invention (i) Field of invention = The invention is about the technology of flash memory _ material :! It can enhance the error correction in flash memory, and it also has the function of encrypting the content of the stored data. BACKGROUND OF THE INVENTION In order to avoid & ^. I already think of the body early (c e 1 1) because of the use of a, the mind will use the order of the algorithm to improve the accuracy of the data. The ECC used by One Man manages about 128 or 2 56 bytes at a time. The correction capability is a bit error, and it can be detected when it exceeds 2 bits. In order to improve memory capacity and reduce costs, the industry has developed multi-level flash memory, and uses lower-level flash memory to make lower-cost memory cards. This method will increase the demand for ECC correction capability, but increasing the £ (:(: correction capability will inevitably cause an increase in hardware circuits and increase the space for storing Error Correction Codes. This is a know-how One of the problems we face is: In addition, "the flash memory algorithm that does not encrypt data is easy to be cracked." A simple method is to add authentication procedures between the peripheral device and the host (Hosite), but This method still has a chance to be cracked, because as long as the connection between the logical block and the physical block in the memory is known, the location of the file can be found from the original data of the flash memory, so as long as it is written with specific data And by tracking the original data in the flash memory, you can easily find out the algorithm used by the peripheral device. This is a common practice.

第4頁 575806 五、發明說明(2) 技藝所面臨之另一挑戰。 發明概要 本發明目的,主要係為解決上述習知技藝之不足,而 提出一種可以同時增強快閃記憶體的錯誤更正能力及對資 料加密的方法。Page 4 575806 V. Description of the Invention (2) Another challenge facing technology. SUMMARY OF THE INVENTION The purpose of the present invention is mainly to solve the above-mentioned shortcomings in the prior art, and propose a method that can simultaneously enhance the error correction capability of flash memory and encrypt data.

為達到上述目的,本發明提供一種增強快閃記憶體的 錯誤更正能力及同時對資料加密的方法,適用於將一待寫 入之資料寫入該快閃記憶體中,其中該待寫入之資料的每 一分頁具有一第一資料區塊、一第二資料區塊、該第一資 料區塊所屬的第一錯誤更正碼、該第二資料區塊所屬的第 二錯誤更正碼、及一備用區塊,該方法包含:· 一資料寫 入程序,包含下列步驟:(a )將一缓衝記憶體的每一分頁 規劃成具有一第一存取區塊、一第二存取區塊、一備用區 存取區塊;(b )設定該待寫入之資料的每一分頁其所屬的 映射方式,其中該映射方式係關於產生該每一分頁中之每 一個位元於映射時的位址;(c )使一位元映射器依照該每 一分頁所屬的映射方式,執行下列步驟:(c 1 )使該位元映 射器依序且交錯地將該第一資料區塊内各位元的邏輯位址 映射至該第一存取區塊及該第二存取區塊中的實際位址; (c2 )使該位元映射器依序且交錯地將該第二資料區塊内各 位元的邏輯位址映射至該第一存取區塊及該第二存取區塊 中的實際位址;(c 3)使該位元映射器依序且交錯地將該第In order to achieve the above object, the present invention provides a method for enhancing the error correction capability of the flash memory and encrypting data at the same time, which is suitable for writing a data to be written into the flash memory, wherein the data to be written is Each page of data has a first data block, a second data block, a first error correction code to which the first data block belongs, a second error correction code to which the second data block belongs, and a Spare block, the method includes: A data writing procedure including the following steps: (a) planning each page of a buffer memory to have a first access block and a second access block A spare area access block; (b) setting a mapping mode of each page of the data to be written, wherein the mapping mode is about generating each bit of each page during mapping Address; (c) causing a bit mapper to perform the following steps in accordance with the mapping mode to which each page belongs: (c 1) causing the bit mapper to sequentially and interleave the bits in the first data block Element's logical address is mapped to this The access block and the actual address in the second access block; (c2) causing the bit mapper to sequentially and staggerly map the logical addresses of the bits in the second data block to the first An access block and the actual address in the second access block; (c 3) causing the bit mapper to sequentially and stagger the first

第5頁 575806 五、發明說明(3) ~—- 一錯誤更正碼内各位元的邏輯位址映射至該第一存取區塊 及該第二存取區塊中的實際位址;(C4)使該位元映射二依 序且交錯地將該第二錯誤更正碼内各位元的邏輯位址^射 至該第一存取區塊及該第二存取區塊中的實際位址; 使該位元映射器將該備用區塊的各位元依序映射至該備用 區存取區塊中的實際位址;(d)使一快閃記憶體寫入器將 该緩衝記憶體内的資料寫入到該快閃記憶體中。 °° 為使熟悉該項技藝人士瞭解本發明之目的、特徵及功 放’兹藉由下述具體實施例,並配合所附之圖式,對本發 明详加說明如后: 發明詳細說明 本發明之技術思想係考量在應用於多位準 (Mu 11 i - 1 e ve 1 )的快閃記憶體之情況下,每一個記憶體單 凡可能儲存2個位元以上的資訊,如果一個記憶體單元發 生錯誤時,多個位元同時被影響的機會很大,亦即同一區 域中2個位元以上錯誤的機會增加。緣此,藉由實施本發 明之方法,可以將每一個記憶體單元中多個位元以上的資 訊儘可能打散至不同區域,然後寫入至實際的快閃記憶體 令,如此一來,可以降低單一記憶體單元中的多個資訊全 部錯誤的機率,亦不會有傳統技藝受限於ECC硬體線路的 錯誤更正能力的窘境。Page 5 575806 V. Description of the invention (3) ~ --- The logical address of each element in an error correction code is mapped to the actual address in the first access block and the second access block; (C4 ) Causing the bitmap two to sequentially and staggerly project the logical addresses of the bits in the second error correction code to the actual addresses in the first access block and the second access block; Make the bit mapper sequentially map each element of the spare block to the actual address in the spare block access block; (d) Have a flash memory writer make the buffer memory Data is written into the flash memory. °° In order to make those skilled in the art understand the purpose, characteristics and power amplifier of the present invention, the present invention will be described in detail with the following specific embodiments and the accompanying drawings as follows: Detailed description of the invention The technical thought considers that in the case of multi-level (Mu 11 i-1 e ve 1) flash memory, each memory may store more than 2 bits of information. If a memory unit When an error occurs, the chance of multiple bits being affected at the same time is great, that is, the chance of errors of more than 2 bits in the same area increases. Therefore, by implementing the method of the present invention, the information of multiple bits or more in each memory unit can be scattered to different areas as much as possible, and then written into the actual flash memory order. As a result, It can reduce the probability of all information in a single memory unit being erroneous, and there is no dilemma that traditional techniques are limited by the error correction capability of ECC hardware circuits.

第6頁 575806 五、發明說明(4) 依據本^明所帶來之另一具體效益,乃在於資料保密 方面-由於每個5己憶體單元中多個位元的資訊已被打散 至不同區域,所以快閃記憶體上的原始資料也已經被更動 而具有加密的作用,然而本發明又進一步考量到位元映射 (b^ ^PPing)的方法不能是固定的,因為固定的映射方 法退疋可此被用特殊的測試資料而找出其規則,因此打散 資料的方法必須是隨機變動的,&照本發明的作法,係設 定每一分頁的資料其各自的映射法則,然後儲存在每一分 頁的備用區域(spare),最後由韌體讀取而進行映射。 一圖-顯不本發明在資料寫入實際快閃記憶體之前,各 位疋進订映射程序的示意圖。其中待寫入資料的邏輯分 =之内容如習知技藝中快閃記憶體的每一分頁,具有第二 區塊1 0 0、第二貧料區塊丨〇 2、第一資料區塊1⑽所屬 勺弟一錯誤更正碼1〇4、第二資料區塊ι〇2所屬的第二錯莩 =正碼1G6、及備用區塊,備用區塊1〇8係用以存放、 ίΪ入貢料的每—分頁10其所屬的映射方式。至於緩衝:己 十思體的每一分百1 9目丨I 六i °己 甘刀貝12則具有弟一存取區塊120、第二存取區 尾、備用區存取區塊124。關於每一個位元的映射情 形,則需配合圖二的流程圖作進一步的說明。 二〃圖一係本發明之資料寫入程序的流程圖。步驟2 〇係將 ,衝d憶體的每一分頁1 2規劃成具有第一存取區塊丨2 〇、: 第一存取區塊122、備用區存取區塊124(如圖一所示);步Page 6 575806 V. Description of the invention (4) Another specific benefit brought by the present invention is in the aspect of data confidentiality-because the information of multiple bits in each 5 memory unit has been scattered to Different regions, so the original data on the flash memory has also been changed to have the role of encryption. However, the present invention further considers that the bit mapping (b ^ ^ PPing) method cannot be fixed because the fixed mapping method疋 This can be used to find the rules using special test data, so the method of dispersing the data must be randomly changed. According to the method of the present invention, each page of data is set with its own mapping rule, and then stored. In the spare area of each page (spare), it is finally read by firmware and mapped. Figure 1-shows a schematic diagram of the mapping procedure for each user before the data is written into the actual flash memory. The logical score of the data to be written = the content, such as each page of flash memory in the conventional art, has a second block 100, a second lean block 丨 02, a first data block 1⑽ The error correction code 104 belonging to the owner, the second error belonging to the second data block ι〇2 = the positive code 1G6, and the spare block, the spare block 108 is used to store and enter the tributary material. Each-page 10 maps to which it belongs. As for buffering: each of the nineteenth of the tenth of the tenth of the tenth of the tenth of the tenth style, the six swords have 12 access blocks 120, the end of the second access area, and the access block 124 of the spare area. Regarding the mapping of each bit, it needs to be further explained in conjunction with the flowchart in Figure 2. Figure 2 is a flowchart of the data writing procedure of the present invention. Step 2 0 is to plan each page 12 of the memory to have a first access block 丨 2 〇: First access block 122, spare area access block 124 (as shown in Figure 1) Show); step

第7頁 575806Page 7 575806

驟21係設定該待寫入之資料的每一分頁1〇其所屬的映射方 式,其中該映射方式係關於產生每一分頁1〇中之每一個位 元於映射時的位址;步驟22係使一位元映射器依昭每一分 頁1〇所屬的映射方式,執行下列步驟;步驟23係使該位元 映射器依序且交錯地將該第一資料區塊1〇〇内各位元的邏 軏位址映射至第一存取區塊120及第二存取區塊122中的實 際位址;步驟24係使該位元映射器依序且交錯 ,區塊職各位元的邏輯位址映射至第一乂存錯取 f 一存取區塊122中的實際位址;步驟25係使該位元映射 态依序且交錯地將第一錯誤更正碼1〇4内各位元的邏輯位 址映射至第一存取區塊12〇及第二存取區塊122中的實際位 止,步‘ 2 6係使该位元映射器依序且交錯地將第二錯誤更 正碼106内各位元的邏輯位址映射至第一存取區塊及第 存取區塊1 2 2中的貫際亨址;步驟2 7係使該位元映射器 將備用區塊108的各位元依序映射至備用區存取區塊124中 =實際位址;步驟28係使一快閃記憶體寫入器將緩衝記憶 體1 2内的資料寫入到該快閃記憶體中。 “ 、 相對於本發明所使用的資料寫入方式,本發明又可以 進步包含一資料讀取程序。如圖三所示,係本發明之資 料讀取程序的流程圖。步驟3〇係使/快閃記憶體讀取器對 该快閃記憶體中的資料進行讀取;步驟32係使一位元反映 ^為依據該每一分頁1 〇所屬的映射方式,依序將該快閃記 體内各位元的實際位址反映射至其原有的邏輯位址,然Step 21 is to set the mapping mode of each page 10 of the data to be written, where the mapping mode is about generating the address of each bit in each page 10 at the time of mapping; step 22 is Make the one-bit mapper perform the following steps according to the mapping mode of each page 10. The step 23 is to make the bit mapper sequentially and staggered the data in the first data block 100. The logical address is mapped to the actual address in the first access block 120 and the second access block 122. Step 24 is to make the bit mapper sequentially and interleaved, and the logical address of each element in the block. Map to the first memory and fetch the actual address in f-an access block 122. Step 25 is to make the bit mapping state sequentially and staggered the logical bits of each bit in the first error correction code 104. The addresses are mapped to the actual bits in the first access block 120 and the second access block 122. Step '26 causes the bit mapper to sequentially and interleave the bits in the second error correction code 106. The logical address of the element is mapped to the first address in the first access block and the first address in the second access block 1 2 2; Step 2 7 The bit mapper sequentially maps each element of the spare block 108 to the spare area access block 124 = the actual address; step 28 is to cause a flash memory writer to buffer the data in the memory 12 Write to this flash memory. "Compared with the data writing method used in the present invention, the present invention can further include a data reading program. As shown in Fig. 3, it is a flowchart of the data reading program of the present invention. Step 30 is to make / The flash memory reader reads the data in the flash memory; step 32 is to make a bit reflect ^ according to the mapping method that each page 1 〇 belongs to, and sequentially store the flash memory The actual address of each element is mapped back to its original logical address.

第8頁 575806 五、發明說明(6) 後存入缓衝記憶 記憶體1 2中讀取 以上實施例 一記憶單元能儲 以上,則該待寫 料區塊、該二個 區塊。對於緩衝 區塊及一備用區 理包含有下列步 各個資料區塊内 的實際位址;B· 更正碼内各位元 址;C.使該位元 用區存取區塊中 缓衝記憶體内的 體12中;步驟34係 資料。 係以多位準(Mul ti 存2位元為例,若一 入資料的每一分頁 以上資料區塊所屬 記憶體的每一分頁 存取區塊。每—分 驟·· A·使該位元映 各位元的邏輯位址 使該位元映射器依 的邏輯位址映射至 映射器將備用區塊 的實際位址;D·使 資料寫入到該快閃 由一微處理器自該緩衝 — level)快閃記憶體之 一記憶單元能儲存2位元 ,則具有二個以上之資 的錯誤更正碼、及備用 則具有二個以上之存取 頁所屬的映射方式,同 射器依序且交錯地將該 映射至各個存取區塊中 序且交錯地將各個錯誤 各個取區塊中的實際位 的各位元依序映射至備 一快閃記憶體寫入器將 記憶體中。 茲歸納本發明之特點如后·· 本發f以最少的硬體需求即能夠同時達成提高錯誤更 正能力及 料保密的功能。 、 月將原始貝料重新映射(remapping)的規則只有 設計者知逞,所以很難以特定資料來測試出演算法。 本發明適用於多位準(Mul ti_levei)的快閃記憶體, 特別係在不增加硬體的情況下,㈣錯誤 正,以取得最大資料回復性。 更 第9頁 575806 五、發明說明(7) 本發明相當容易以撰寫韌體的方式來實施,除了可以 將硬體成本控制到最低,而且在相關領域中係一新穎作 法,同時兼具有進步性及產業實用性。 雖然本發明已以一具體實施例揭露如上,然其並非用 以限定本發明,任何熟悉此技藝者,在不脫離本發明之精 神和範圍内,當可作各種之更動與潤飾,因此本發明之保 護範圍當視後附之申請專利範圍所界定者為準。Page 8 575806 V. Description of the invention (6) It is stored in the buffer memory and read in the memory 12 above. Example 1 A memory unit can store the above, then the block to be written and the two blocks. For the buffer block and a spare area management, the actual address in each data block in the following steps is included; B. Correct each bit address in the code; C. Make the bit area access the buffer memory in the block. Body 12; Step 34 is information. It takes multiple bits (Mul ti stores 2 bits as an example). If each page of the data contains more than one page of data, each page of the memory block accesses the block. Every-minute ... A The logical address of each bit of the element maps the logical address of the bit mapper to the actual address of the spare block by the mapper; D · Makes data written to the flash by a microprocessor from the buffer — One level of flash memory. A memory unit can store 2 bits, and it has more than two error correction codes, and it has more than two access pages. The mapping method is in order. And the maps to each access block are sequentially and sequentially, each bit of each actual bit in each error block is sequentially mapped to a spare flash memory writer to store the memory. The features of the present invention are summarized as follows ... The present invention can simultaneously achieve the functions of improving error correction ability and data confidentiality with minimum hardware requirements. The rules of remapping the original shell material are only known to the designer, so it is difficult to test the algorithm with specific data. The present invention is applicable to multi-level (Mul ti_levei) flash memory, especially when no hardware is added, the error is positive so as to obtain maximum data resilience. Page 9 575806 V. Description of the invention (7) The present invention is quite easy to implement by writing firmware. In addition to controlling the hardware cost to a minimum, it is a novel method in the related field, and it also has progress. And industrial applicability. Although the present invention has been disclosed as above with a specific embodiment, it is not intended to limit the present invention. Any person skilled in the art can make various modifications and retouches without departing from the spirit and scope of the present invention. The scope of protection shall be determined by the scope of the attached patent application.

第10頁 575806 圖式簡單說明 圖式簡單說明 圖一顯示本發明在資料寫入實際快閃記憶體之前,各位 元進行映射程序的示意圖。 圖二係本發明之資料寫入程序的流程圖。 圖二係本發明之貧料言買取程序的流程圖。 圖號編號說明 1 0.待寫入之資料的邏輯分頁 1 0 0 .第一資料區塊 1 0 2.第二資料區塊 1 0 4.第一資料區塊所屬的第一錯誤更正碼 1 0 6.第二資料區塊所屬的第二錯誤更正碼 1 0 8.備用區塊 1 2.緩衝記憶體的每一分頁 1 2 0 .第一存取區塊 122.第二存取區塊 124.備用區存取區塊Page 10 575806 Brief description of the diagram Brief description of the diagram Figure 1 shows a schematic diagram of the mapping process performed by each element before the data is written into the actual flash memory of the present invention. FIG. 2 is a flowchart of a data writing procedure of the present invention. FIG. 2 is a flowchart of a lean purchase process of the present invention. Description of drawing number 1 0. Logical pagination of data to be written 1 0 0. First data block 1 0 2. Second data block 1 0 4. First error correction code 1 to which the first data block belongs 0 6. The second error correction code to which the second data block belongs 1 0 8. Spare block 1 2. Each page of the buffer memory 1 2 0. First access block 122. Second access block 124. Spare Area Access Block

第11頁Page 11

Claims (1)

$75806$ 75806 575806 六、申請專利範圍 碼内各位元的邏輯位址映射至該第一存取區塊及 該第二存取區塊中的實際位址; (c 5)使該位元映射器將該備用區塊的各位元依序映射 至該第備用區存取區塊中的實際位址; (d)使一快閃記憶體寫入器將該緩衝記憶體内的資料寫 入到該快閃記憶體中。 2. 如申請專利範圍第1項所述的方法,其中該方法進一步 包含一資料讀取程序,該資料讀取程序包含下列步驟: 使一快閃記憶體讀取器對該快閃記憶體中的資料進行讀 取; 使一位元反映射器依據該每一分頁所屬的映射方式,依 序將該快閃記憶體内各位元的實際位址反映射至其原有的 邏輯位址,然後存入該緩衝記憶體中; 由一微處理器自該緩衝記憶體中讀取資料。 3. 如申請專利範圍第1項所述的方法,其中該備用區塊用 以存放该待寫入之貢料的母一分頁其所屬的映射方式。 4. 一種增強快閃記憶體的錯誤更正能力及同時對資料加密 的方法,適用於將一待寫入之資料寫入該快閃記憶體中, 其中該待寫入之資料的每一分頁(p age)具有二個以上之資 料區塊、該二個以上資料區塊所屬的錯誤更正碼、及一備575806 VI. The logical address of each element in the patent application code is mapped to the actual address in the first access block and the second access block; (c 5) The bit mapper makes the spare Each element of the block is sequentially mapped to the actual address in the access block of the second spare area; (d) A flash memory writer is caused to write data in the buffer memory to the flash memory. Body. 2. The method according to item 1 of the scope of patent application, wherein the method further comprises a data reading program, and the data reading program comprises the following steps: a flash memory reader is used to store the flash memory into the flash memory; Read the data of the memory; make a one-bit anti-mapper reverse-map the actual address of each element in the flash memory to its original logical address according to the mapping mode of each page; Stored in the buffer memory; a microprocessor reads data from the buffer memory. 3. The method according to item 1 of the scope of patent application, wherein the spare block is used to store a mapping method of a parent page of the tributary material to be written. 4. A method for enhancing the error correction capability of the flash memory and encrypting the data at the same time, which is suitable for writing data to be written into the flash memory, where each page of the data to be written ( p age) has more than two data blocks, the error correction code to which the two or more data blocks belong, and a backup 第13頁 575806 六、申請專利範圍 用區塊,該方法包含: 一資料寫入程序,包冬^ s下列步驟· 有二個以上之 (a) 將一緩衝記憶體的各 ’ · 母一分頁規劃成 存取區塊及一備用區存取區塊· (b) 設定該待寫入之資耝从二’ # * ^ Λ ,.,;、卄的母一分頁其所屬的映射方 武,其中该映射方式係關· 一 %產生該每一分頁中之每 /個位兀於映射時的位址; Γ C )使一位元映射哭佑日刀Μ > 1 耵°σ依知该每一分頁所屬的映射方式, 執行下列步驟: (cl)使該位元映射器依序且交錯地將該各個資料區塊 内各位元的邏輯位址映射至該各個存取區塊中的 實際位址; (c 2)使遠位元映射器依序且交錯地將該各個錯誤更正 石馬内各位元的邏輯位址映射至該各個存取區塊的 實際位址; (c 3)使3亥位元映射器將该備用區塊的各位元依序映射 I該備用區存取區塊中的實際位址; (d)使一快閃記憶體寫入器將該缓衝記憶體内的資料寫 人到該快閃記憶體中。 5如申請專利範圍第4項所述的方法,其中該方法進一步 包含一資料讀取程序,該資料讀取程序包含下列步驟:Page 13 575806 VI. Block for patent application, the method includes: a data writing program, including the following steps: s The following steps: There are two or more (a) Each of the buffer memory ' Plan into an access block and a spare area access block. (B) Set the resource to be written from the two '# * ^ Λ,.,;, The parent's first page of the map to which it belongs, Wherein, the mapping method is related to the fact that one% of each page in each page generates the address at the time of mapping; Γ C) makes a one-bit mapping cry. For each mapping method to which each page belongs, perform the following steps: (cl) Make the bit mapper sequentially and staggerly map the logical address of each element in each data block to the actual address in each access block. Address; (c 2) enable the remote bitmaper to sequentially and staggerly map the logical addresses of the bits in each error correction stone to the actual addresses of the access blocks; (c 3) enable 3 bit mapper sequentially maps each element of the spare block to the actual address in the spare block access block (D) having a flash memory writer write the data in the buffer memory to the flash memory. 5. The method according to item 4 of the scope of patent application, wherein the method further comprises a data reading program, and the data reading program comprises the following steps: 第14頁 575806 六、申請專利範圍 使一快閃記憶體讀取器對該快閃記憶體中的資料進行讀 取; 使一位元反映射器依據該每一分頁所屬的映射方式,依 序將該快閃記憶體内各位元的實際位址反映射至其原有的 邏輯位址,然後存入該緩衝記憶體中; 由一微處理器自該緩衝記憶體中讀取資料。 6、如申請專利範圍第4項所述的方法,其中該備用區塊用 以存放該待寫入之資料的每一分頁其所屬的映射方式。Page 14 575806 6. The scope of the patent application enables a flash memory reader to read the data in the flash memory; enables a one-bit anti-mapper to sequentially according to the mapping mode to which each page belongs. The actual address of each element in the flash memory is mapped back to its original logical address, and then stored in the buffer memory; a microprocessor reads data from the buffer memory. 6. The method according to item 4 of the scope of patent application, wherein the spare block is used to store a mapping mode of each page of the data to be written. 第15頁Page 15
TW91115685A 2002-07-15 2002-07-15 A method for enhancing flash memory error correction capability and providing data encryption in the same time TW575806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW91115685A TW575806B (en) 2002-07-15 2002-07-15 A method for enhancing flash memory error correction capability and providing data encryption in the same time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW91115685A TW575806B (en) 2002-07-15 2002-07-15 A method for enhancing flash memory error correction capability and providing data encryption in the same time

Publications (1)

Publication Number Publication Date
TW575806B true TW575806B (en) 2004-02-11

Family

ID=32734168

Family Applications (1)

Application Number Title Priority Date Filing Date
TW91115685A TW575806B (en) 2002-07-15 2002-07-15 A method for enhancing flash memory error correction capability and providing data encryption in the same time

Country Status (1)

Country Link
TW (1) TW575806B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7844879B2 (en) 2006-01-20 2010-11-30 Marvell World Trade Ltd. Method and system for error correction in flash memory
US8055979B2 (en) 2006-01-20 2011-11-08 Marvell World Trade Ltd. Flash memory with coding and signal processing
US8583981B2 (en) 2006-12-29 2013-11-12 Marvell World Trade Ltd. Concatenated codes for holographic storage

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7844879B2 (en) 2006-01-20 2010-11-30 Marvell World Trade Ltd. Method and system for error correction in flash memory
US8055979B2 (en) 2006-01-20 2011-11-08 Marvell World Trade Ltd. Flash memory with coding and signal processing
US8473812B2 (en) 2006-01-20 2013-06-25 Marvell World Trade Ltd. Method and system for error correction in flash memory
US8677215B2 (en) 2006-01-20 2014-03-18 Marvell World Trade Ltd. Method and system for error correction in flash memory
US8856622B2 (en) 2006-01-20 2014-10-07 Marvell World Trade Ltd. Apparatus and method for encoding data for storage in multi-level nonvolatile memory
US9053051B2 (en) 2006-01-20 2015-06-09 Marvell World Trade Ltd. Multi-level memory controller with probability-distribution-based encoding
US8583981B2 (en) 2006-12-29 2013-11-12 Marvell World Trade Ltd. Concatenated codes for holographic storage

Similar Documents

Publication Publication Date Title
Birrell et al. A design for high-performance flash disks
US11249840B2 (en) Data storage devices and methods for rebuilding a memory address mapping table
US20080192928A1 (en) Portable Electronic Storage Devices with Hardware Security Based on Advanced Encryption Standard
US8621139B2 (en) Data writing method for writing data into block of multi-level cell NAND flash memory by skipping a portion of upper page addresses and storage system and controller using the same
TWI475385B (en) Method of programming memory cells and reading data, memory controller and memory storage device using the same
US6769087B2 (en) Data storage device and method for controlling the device
CN100478922C (en) Method, apparatus, and system for protecting memory
JP7716526B2 (en) Flash translation layer with hierarchical security
US9146854B2 (en) Restoring storage devices based on flash memories and related circuit, system, and method
US11416417B2 (en) Method and apparatus to generate zero content over garbage data when encryption parameters are changed
CN101194238B (en) Memory controller, nonvolatile storage device, nonvolatile storage system, and data writing method
US9348693B2 (en) Data accessing method for flash memory module
US20100332952A1 (en) Flash Memory Controller and the Method Thereof
TW200945037A (en) Data writing method, and flash storage system and controller using the same
TWI633428B (en) Data storage device and methods for processing data in the data storage device
US20130080787A1 (en) Memory storage apparatus, memory controller and password verification method
TWI718709B (en) Data storage device and non-volatile memory control method
US8607123B2 (en) Control circuit capable of identifying error data in flash memory and storage system and method thereof
CN112130750B (en) Data storage device and non-volatile memory control method
TW201828069A (en) Memory device, memory system and operation method thereof
TW575806B (en) A method for enhancing flash memory error correction capability and providing data encryption in the same time
CN113190470B (en) FLASH chip storage area and high-performance power-down prevention read-write method thereof
US20080046760A1 (en) Storage device for storing encrypted data and control method thereof
TW201935247A (en) Management method of metadata and memory device using the same
CN103324581A (en) Programming storage unit and data reading method, memory controller and storage device

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees