A memory system includes a flash subsystem for storing data identified by page numbers. The memory system further includes a central processing unit (CPU), and a flash controller coupled to the CPU, the CPU being operable to pair a lower with an upper page. Further included in the memory system is a buffer including a page of data to be programmed in a block of the flash subsystem, wherein split segments of pages are formed and concatenated with split error correcting code (ECC), the ECC having a code rate associated therewith.
|
12. A memory system comprising:
a flash subsystem for storing data grouped into pages including error correcting code (ECC), the pages of data being identified by page numbers, at least some of the pages of data including a lower page of data and an upper page of data; and
a buffer including a page of data, the page of data having at least a segment of an upper page of data and at least a segment of a lower page of data and to be programmed in the flash subsystem,
wherein the upper page of data or the lower page of data are concatenated with a split ECC.
1. A memory system comprising:
a flash subsystem grouped into pages of data, the pages of data including error correcting code (ECC) and being identified by page numbers, at least some of the pages of data having a lower page of data and an upper page of data, wherein the lower and upper pages of data form a pair;
a flash controller coupled to the flash subsystem, the flash controller configured to split the ECC; and
a buffer including a page of data from the at least some of the page of data, the page of data having an upper page of data and a lower page of data and to be programmed into the flash subsystem,
wherein at least a segment of the upper page of data or at least a segment of the lower page of data is concatenated with a split ECC.
2. The memory system, as recited in
3. The memory system, as recited in
5. The memory system, as recited in
6. The memory system, as recited in
7. The memory system, as recited in
8. The memory system, as recited in
9. The memory system, as recited in
10. The memory system, as recited in
13. The memory system, as recited in
14. The memory system, as recited in
16. The memory system, as recited in
17. The memory system, as recited in
18. The memory system, as recited in
19. The memory system, as recited in
20. The memory system, as recited in
21. The memory system, as recited in
22. The memory system, as recited in
23. The memory system, as recited in
24. The memory system, as recited in
25. The memory system, as recited in
|
This application is a continuation of U.S. patent application Ser. No. 13/840,327, filed on Mar. 15, 2013, by Siamack Nemazie, now U.S. Patent No. 8,656,255, which issued on Feb. 18, 2014, and entitled “Method for reducing Effective Raw Bit Error Rate in Multi-Level Cell NAND Flash Memory”.
1. Field of the Invention
This invention relates generally to memory systems, and particularly to Multi Level Cell (MLC) NAND flash memory and other types of storage devices using the same.
2. Background
Flash memory is a block-based non-volatile memory with each block organized into and made of various pages. For all practical purpose flash memory require sequential programming of pages within a block. A NAND flash memory is an array of cells organized in rows and columns. A group of cell in a row of array form a page. A page is unit of programming. A Multi Level Cell NAND flash Memory can be programmed to more than two threshold levels and hence can store more than one information bit. For example a four level cell can store two bits per cell, a first bit and a second bit, and an eight level cell can store 3 bits of information. Without loss of generality we will use an MLC with four level that can store two information bits per cell in the discussion that follows. The information bits are stored by programming cell threshold levels. that is the memory cell has a threshold voltage in any one of four threshold voltage distributions corresponding to one of four states indicating data “11”, data “10”, data “00”, and data “01”, respectively. The group of first bits of a page of MLC NAND flash are referred to as lower page and the group of second bits of a page are referred to as an upper page. (for 3 bit per cell MLC we have lower, middle and upper page, corresponding to first, second and third information bits). This is one conventional naming of pages that is adopted in this application, other naming of pages all fall within the scope and spirit of the invention. One basic programming scheme is multi-page programming scheme. In multi-page programming scheme only one page is programmed into a MLC cell during each programming operation. As mentioned before the pages are programmed sequentially, but the upper page and lower page of a page of cells are not generally sequential page addresses. The relation between the page address of a lower page and upper page is generally dependant on manufacturer and part number. Table 1 below shows an exemplary correspondence between page number and lower/upper page of a page of cells for a flash having blocks with 128 pages and 64 pages of cells. In table below “Lower Page k (Lk)” referrers to lower page of kth page of cells and similarly “Upper Page k U(k)” referrers to upper page of kth page of cells.
TABLE 1
Page #
Lower/Upper page #
0
Lower Page 0 (L0)
1
Lower Page 1 (L1)
2
Upper Page 0 (U0)
3
Lower Page 2 (L2)
4
Upper Page 1 (U1)
5
Lower Page 3 (L3)
6
Upper Page 2 (U2)
. . .
. . .
. . .
. . .
121
Lower Page 61 (L61)
122
Upper Page 60 (U60)
123
Lower Page 62 (L62)
124
Upper Page 61 (U61)
125
Lower Page 63 (L63)
126
Upper Page 62 (U62)
127
Upper Page 63 (U63)
Table 2 below shows another exemplary correspondence between page number and lower/upper page of a page of cells for a flash having blocks with 128 pages and 64 pages of cells.
TABLE 2
Page #
Lower/Upper page #
0
Lower Page 0 (L0)
1
Lower Page 1 (L1)
2
Lower Page 2 (L2)
3
Lower Page 3 (L3)
4
Upper Page 0 (U0)
5
Upper Page 1 (U1)
6
Lower Page 4 (L4)
7
Lower Page 5 (L5)
8
Upper Page 2 (U2)
9
Upper Page 3 (U3)
. . .
. . .
. . .
. . .
118
LowerPage 60 (L60)
119
Lower Page 61 (L61)
120
Upper Page 58 (U58)
121
Upper Page 59 (L59)
122
LowerPage 62 (L62)
123
Lower Page 63 (L63)
124
Upper Page 60 (U60)
125
UpperPage 61 (U61)
126
Upper Page 62 (U62)
127
Upper Page 63 (U63)
In MLC NAND flash, Gray mapping is widely employed, to map l bits to one of 2l levels in a cell, to reduce the overall bit error rate. In NAND Flash, dominant errors are mainly from misdetection of two adjacent levels, which results in just one bit error among 1 bits under Gray mapping.
NAND memories are not intrinsically error-free but rely on error correction coding (ECC) to correct raw bit errors. Generally the ECC circuit is not on the NAND and located in a Flash Controller. The ECC performs encoding and decoding of codewords. Generally the encoding is systematic that is the codeword consists of data and redundancy appended to data. The page data is split into one or more segments and the redundancy for each segment appended to the segment and all segments written to a page. Few examples a BCH code correcting 60 bits in a segment of 1032 bytes would require 105 parity bits for a code rate of 0.907, another BCH code correcting 120 bits in a segment of 2064 bytes would require 225 parity bits for a code rate of 0.901.
However, bits stored in each MLC memory cell are subject to different bit error rates. We can see the second bit's (upper page) error rate is two times that of first bit (lower page) (see “Techniques for embracing intra-cell unbalanced bit error characteristics in MLC NAND flash memory” by G. Dong December 2010 IEEE). In current practice, bits stored in upper and lower pages are protected using the same ECC tuned for the worst-case upper page bit error rate scenario, which results in over-protection for lower pages and not effectively using the ECC power on the lower page.
What is needed is a storage system with increased reliability.
Briefly, in accordance with one embodiment of the invention, in a memory system where memory data are identified using page numbers, a lower page (page numbers) is paired with an upper page. A page of data in a buffer to be programmed in a block is assigned to a page of the block. Split segments of pages are formed and concatenated with split error correcting code (ECC), the ECC having a code rate associated therewith. In an embodiment of the invention, the ECC is computed for concatenation of the split segment from a lower page with the corresponding split segment in the paired upper page. Split ECC are saved in the buffer and pages of data along with associated ECC are written to flash in sequential order, thereby reducing the error rate of the segment corrected by the ECC hence increasing ECC effectiveness at the same code rate. In some embodiments, the paired lower pages and upper pages are on the same dice.
In another embodiment of the invention, the paired lower pages and upper pages are in different flash dies, thereby allowing substantially concurrent read of the split segment and split ECC, more specifically first blocks of two flash dies are paired and then the lower/upper pages of a block of a first dice is paired with the upper/lower pages of the paired block of the second dice. In yet another embodiment of the invention, the paired lower pages and upper pages are in different flash dies on different flash channels, thereby allowing for substantial concurrent read and transfer of the split segment and split ECC, more specifically first blocks of two flash dies are paired and then lower/upper pages of a block of first die is paired with the upper/lower pages of the paired block of the second die.
In yet another embodiment of the invention, lower pages are paired with upper page, a page of data in the buffer to be programmed in a block is assigned to a page of block, segments of pages are formed and concatenated with ECC, the ECC is computed for the concatenation of the segment from lower page with the corresponding segment in the paired upper page, ECC are saved in buffer and pages of data and associated ECC written to flash in sequential order, thereby reducing the error rate on the segment covered by the ECC hence improving ECC effectiveness.
In yet another embodiment of the invention, a Multi Level Cell has 3 bits per cell (8 levels) includes a lower, middle and upper page. Lower pages are paired with upper pages, a page of data in the buffer to be programmed in a block is assigned to a page of blocks (lower, middle or upper). Segments of lower and upper pages are formed and concatenated with ECC, wherein for lower and upper pages, the ECC is computed of the concatenation of the segment from a lower page with the corresponding segment in the paired upper page, and the ECC is saved in the buffer. For a middle page, the ECC is computed for two sequential segments from the same middle page. Pages of data and associated ECC are written to flash in sequential order, thereby reducing the error rate of the segment covered by the ECC hence increasing ECC effectiveness.
These and other objects and advantages of the invention will no doubt become apparent to those skilled in the art after having read the following detailed description of the various embodiments illustrated in the several figures of the drawing.
As will be evident in the various embodiments of the invention, a storage device is disclosed to utilize and increase the effectiveness thereof by either correcting a higher raw bit error rates or reducing a code rate associated with error correction coding (ECC).
The ECC is well known in the art examples of which are the Bose-Chaudhuri-Hocquenghem (BCH) code or the Low Density Parity Check (LDPC) Code.
In accordance with an embodiment of the invention, the paired lower and upper pages are in the same block. In another embodiment of the invention the paired lower and upper pages are in the same block and more specifically lower and upper pages of the same page of cells.
In the discussions to follow without loss of generality examples and illustrations are used employing NAND flash devices having blocks with 128 pages and 64 pages of cells with correspondence between page number and lower/upper page of a page of cells, as shown in the Table 1. The lower and upper pages are not sequential pages. The pages of data must be kept in a buffer until the paired page of data is available so the split ECC for segments (or split segments) can be computed and saved in the buffer, and the available pages are written to flash sequentially.
In one embodiment, the paired pages are made of lower and upper pages of the same page of cells and the pages of data to be programmed in a block are assigned to sequential page addresses that are as follows: Lower Page 0 (page 0), Lower Page 1 (page 1), Upper Page 0 (Page 2), Lower Page 2 (page 3), Upper Page 1 (page 4), Lower Page 3 (page 5), . . . Upper Page 62 (page 126), Upper Page 63 (page 127). A flow chart, shown and discussed relative to
In another embodiment of the invention, the paired pages are lower and upper pages of the same page of cells and the pages of data to be programmed in a block are assigned sequentially to lower and upper pages that is: Lower Page 0 (page 0), Upper Page 0 (page 2), Lower Page 1 (Page 1), Upper Page 1 (page 4), Lower Page 2 (page 3), Upper Page 2 (page 6), . . . Lower Page 63 (page 125), Upper Page 63 (page 127). In accordance with another exemplary method of the invention, as shown and discussed shortly relative to
In yet another embodiment of the invention, the paired lower pages and upper pages are in different flash dies, thereby allowing concurrent read of the split segments and split ECC, more specifically flash dies are paired and blocks of the paired flash dies are also paired and then lower/upper pages of a block are paired with the upper/lower pages of the paired block.
In yet another embodiment of the invention, the paired flash dies are on different flash channels, thereby allowing concurrent transfer as well as concurrent read of the split segment and split ECC, more specifically flash dies on different flash channels are paired and blocks of the paired flash dies are also paired and then lower/upper pages of a block are paired with the upper/lower pages of the paired block.
Referring now to
The host bus 103 is shown coupled to the host interface controller 102 and the host interface controller 102 is shown coupled to the buffer memory control 106 through the host controller bus 104 and the buffer memory control 106 is shown coupled to the flash controller 112 through the flash controller bus 108. The buffer memory control 106 is further shown coupled to the buffer subsystem 160 through the buffer memory bus 114. The buffer memory control 106 and the flash controller 112 are each shown coupled to the CPU subsystem 170 through the CPU bus 116. The flash controller 112 is shown coupled to the flash subsystem 110 via flash interface 111.
The management of blocks within the flash subsystem 110, is referred to herein as “flash block management” and includes: Logical to Physical Mapping; Defect management for managing defective blocks (blocks that were identified to be defective at manufacturing and grown defective blocks thereafter); Wear leveling to keep program/erase cycle of blocks within a band; Keeping track of free available blocks; and Garbage collection for collecting valid pages from a plurality of blocks (with a mix of valid and invalid page) into one block and in the process creating free blocks. The flash block management requires maintaining various tables referred to as flash block management tables (or “flash tables”). In the embodiment of
The host interface controller 102 communicates with one or more hosts via host bus 103 and manages the host interface protocol. The buffer memory control 106 is shown to include a Direct Memory Access (DMA) 106-1, a local buffer 106-2 and an external memory control 106-3 for controlling access to the (optional) buffer subsystem 160. The buffer memory control 106 transfers data between the local buffer 106-2 or memory subsystem 160 and the host bus 103, Flash interface 111 and the CPU subsystem 170. The (optional) buffer subsystem 160 stores user and system management information. The flash interface controller 112 interfaces with flash subsystem. The flash 110 is used as persistent storage for storage of data. The CPU subsystem 170 controls and manages and execution of host commands.
The flash subsystem 110 is shown to include a number of flash memory components or devices (110-1-1 to 110-1-m, . . . 110-n-1 to 110-n-m, n, and m being integers) which can be formed from a single semiconductor or die or from a number of such dies. The flash subsystem 110 is shown coupled to the flash controller 112 via flash interface 111. The Flash interface 111 includes of one or more flash channels 111-1 to 111-n. 1.
In some embodiments, the buffer subsystem 160 is optional and in its place, the local buffer 106-2 is used. The buffer subsystem 160 can take on various configurations. In some configurations, it includes DRAM and in others, it includes MRAM and in yet others, such as that which is shown in
In the embodiment of
In some embodiments, the MRAM 150 is made of spin transfer torque MRAM (STTMRAM) cells and in other embodiments, it is made of other magnetic memory cells.
As known in the art a problem with volatile memory (such as DRAM or SRAM) for storing data is power fail prior to writing data in volatile memory to the flash subsystem 110, requiring a battery-backed volatile memory or a flash backed memory. In a flash-backed memory, a capacitor (specifically a supercapacitor) provides backup power for a short interval after power fail/shut down, sufficient to save critical data (data that can not be lost prior to saving in a non-volatile memory in the event of a power fail or shut down or a system crash) in a (volatile) memory to a non-volatile flash memory. In accordance with one embodiments of the invention the buffer (local buffer 106-2 or DRAM 162) is flash-backed, that is the critical data in buffer is saved in a designated area of the flash subsystem 110 in the event of a power fail or shut down or a system crash, a capacitor (specifically a supercapacitor) provides backup power for a short interval after power fail/shut down/crash, sufficient to save critical data in volatile memory to flash subsystem 110. In accordance with another embodiment of the invention, the buffer is a (non-volatile) Magnetic Random Access Memory (MRAM) where data along with state information (such as a journal or log as is known in the art) is written. On power up, during initialization the state information is read and any pending write in the MRAM which was not completed due to a power fail/shut down/crash will be completed. In yet another embodiment the MRAM is a Spin Torque Transfer MRAM (STT MRAM).
As mentioned earlier,
The steps for writing a page to the block is initiated at step 252. Next, in
Next, at step 260, the data and associated split ECC in the buffer (such as local buffer 106-2) and identified by the program page address is sent and programmed is into the memory, such as the flash subsystem 110 of
Subsequently, at step 262, the program page address is updated to identify the next or subsequent page of the block. At 264, a determination is made as to whether or not the next page address is the same as a lower page address and if so, the process goes back to step 266 and continues from there. If not, the process continues to step 269 and exits. At step 266, the data and associated split ECC in the buffer (such as local buffer 106-2) and identified by the program page address is sent and programmed is into the memory, such as the flash subsystem 110 of
Subsequently at step 268, a determination is made as to whether or not the entire block has been programmed and if not the process resumes at step 262, otherwise, the process ends at 269.
As mentioned earlier
Next, in
At step 278, a split ECC is computed for split segments of the lower page and upper page data and stored in the buffer. Next, at step 280, the data and associated split ECC in the buffer (such as local buffer 106-2) and identified by the program page address is sent and programmed is into the memory, such as the flash subsystem 110 of
Subsequently, at step 282, the value of the lower page address is assigned to the page address and the upper page address is updated to point to the next upper page address.
Subsequently, at step 283, the program page address is updated to identify the next or subsequent page of the block. At 264, a determination is made as to whether or not the t program page address is the same as a lower page address and if so, the process ends at step 289 exists. If not, goes back to step 288 and continues from there. At step 286, the data and associated split ECC in the buffer (such as local buffer 106-2) and identified by the program page address is sent and programmed is into the memory, such as the flash subsystem 110 of
Subsequently at step 288, a determination is made as to whether or not the entire block has been programmed and if not the process resumes at step 283, otherwise, the process ends at 289.
At step 321, the addresses of block A and block B are initialized and the page address of the block A and the page address of the block B are also initialized. Further, the lower or upper page addresses of block B are initialized. The steps for writing a page to the blocks A and B is initiated at step 322.
Next, at 324, a determination is made as to whether or not the page address of block A is a lower page address or not and if so, the process goes to 346, otherwise, the process continues to step 326. At step 346, the page address of block A is assigned to the page of data in the buffer (such as local buffer 106-2), which is to be written to the block A. Subsequently at step 348 the upper page address of block B is assigned to the page of data in the buffer (such as local buffer 106-2), which is to be written to the block B. At step 350, the split ECC is computed for split segments of the page address of block A and upper page address of block B and stored in the buffer. Next, at step 352, the data and associated split ECC in the buffer (such as local buffer 106-2) and identified by the page address of block A is sent and programmed is into the memory, such as the flash subsystem 110 of
At step 326, the page address of block A is assigned to the page of data in the buffer (such as local buffer 106-2), which is to be written to the block A. Subsequently at step 328 the lower page address of block B is assigned to the page of data in the buffer (such as local buffer 106-2), which is to be written to the block B.
At step 330, the split ECC is computed for split segments of the page address of block A and lower page address of block B and stored in the buffer. Next, at step 332, the data and associated split ECC in the buffer (such as local buffer 106-2) and identified by the page address of block A is sent and programmed is into the memory, such as the flash subsystem 110 of
Next, at 340, a determination is made as to whether or not the page address of the block B is an upper page address and if so, the process continues to the step 342, and otherwise, the process ends at step 359. At step 342, the data and associated split ECC in the buffer (such as local buffer 106-2) and identified by the page address of block B is sent and programmed is into the memory, such as the flash subsystem 110 of
Although the invention has been described primarily employing a two bit (4-level) per cell flash, the invention applies to more bits per cell such as three bit per cell(8-levels) or four bit per cell (16 levels) or higher. For example, in a 3-bit per Cell (having lower, middle and upper page associated with a page of memory cells), lower pages are paired with upper page, a page of data in the buffer to be programmed in a block is assigned to a page of blocks (lower, middle or upper), segments of lower and upper pages are formed and concatenated with ECC, wherein for lower and upper pages, the ECC is computed for the concatenation of the segment from a lower page with the corresponding segment in the paired upper page, and the ECC saved in buffer. For a middle page, the ECC is computed for two sequential segments from the same middle page. Pages of data and associated ECC written to flash in sequential order, thereby reducing the error rate on the segment covered by the ECC hence increasing ECC effectiveness. In another example, in a 4-bit per Cell (having lower, first middle, second middle and upper page associated with a page of memory cells), lower pages are paired with upper page, a page of data in the buffer to be programmed in a block is assigned to a page of blocks (lower, middle or upper), lower and upper pages are paired together, first middle and second middle also paired together, segments of lower/upper pages and first middle and second middle are formed and concatenated with ECC, wherein for lower and upper pages, the ECC is computed for the concatenation of the segment from a lower page with the corresponding segment in the paired upper page, and same for first middle and second middle and the ECC saved in buffer. Pages of data and associated ECC written to flash in sequential order, thereby reducing the error rate on the segment covered by the ECC hence increasing ECC effectiveness.
Although the invention has been described in terms of specific embodiments, it is anticipated that alterations and modifications thereof will no doubt become apparent to those skilled in the art. It is therefore intended that the following claims be interpreted as covering all such alterations and modification as fall within the true spirit and scope of the invention.
Nemazie, Siamack, Mandapuram, Anilkumar
Patent | Priority | Assignee | Title |
9983910, | May 15 2015 | Samsung Electronics Co., Ltd.; Korea Advanced Institute of Science and Technology | Method and processor for implementing thread and recording medium thereof |
Patent | Priority | Assignee | Title |
7590795, | Aug 03 2005 | SanDisk Technologies LLC | Flash memory systems utilizing direct data file storage |
7984360, | Dec 31 2006 | RAMOT AT TEL AVIV UNIVERSITY LTD | Avoiding errors in a flash memory by using substitution transformations |
8397127, | Nov 25 2009 | Panasonic Corporation | Semiconductor recording device and semiconductor recording device control method |
8473809, | Nov 20 2009 | SanDisk Technologies LLC | Data coding for improved ECC efficiency |
8726140, | Apr 06 2011 | Samsung Electronics Co., Ltd. | Dummy data padding and error code correcting memory controller, data processing method thereof, and memory system including the same |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Feb 13 2014 | Avalanche Technology, Inc. | (assignment on the face of the patent) | / | |||
Apr 13 2017 | AVALANCHE TECHNOLOGY, INC | STRUCTURED ALPHA LP | SECURITY INTEREST SEE DOCUMENT FOR DETAILS | 042273 | /0813 | |
Feb 12 2020 | AVALANCHE TECHNOLOGY, INC | STRUCTURED ALPHA LP | SECURITY INTEREST SEE DOCUMENT FOR DETAILS | 051930 | /0396 | |
Feb 12 2020 | AVALANCHE TECHNOLOGY, INC | Silicon Valley Bank | SECURITY INTEREST SEE DOCUMENT FOR DETAILS | 053156 | /0223 | |
Apr 08 2021 | AVALANCHE TECHNOLOGY, INC | STRUCTURED ALPHA LP | SECURITY INTEREST SEE DOCUMENT FOR DETAILS | 057217 | /0674 | |
Feb 28 2022 | AVALANCHE TECHNOLOGY, INC | STRUCTURED ALPHA LP | SECURITY INTEREST SEE DOCUMENT FOR DETAILS | 059436 | /0203 |
Date | Maintenance Fee Events |
Feb 16 2018 | M2551: Payment of Maintenance Fee, 4th Yr, Small Entity. |
Jun 07 2022 | M2552: Payment of Maintenance Fee, 8th Yr, Small Entity. |
Date | Maintenance Schedule |
Jan 13 2018 | 4 years fee payment window open |
Jul 13 2018 | 6 months grace period start (w surcharge) |
Jan 13 2019 | patent expiry (for year 4) |
Jan 13 2021 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jan 13 2022 | 8 years fee payment window open |
Jul 13 2022 | 6 months grace period start (w surcharge) |
Jan 13 2023 | patent expiry (for year 8) |
Jan 13 2025 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jan 13 2026 | 12 years fee payment window open |
Jul 13 2026 | 6 months grace period start (w surcharge) |
Jan 13 2027 | patent expiry (for year 12) |
Jan 13 2029 | 2 years to revive unintentionally abandoned end. (for year 12) |