1. Field of the Invention
Embodiments of the invention generally relate to integrated circuits. In particular, embodiments of the invention relate to memory circuits.
2. Description of the Related Art
Flash memory is a form of erasable and reprogrammable non-volatile memory. In a flash memory, memory cells are arranged in “blocks” for erasure. After a block has been erased, it is ready for programming if desired. NOR flash memory is a type of flash memory that offers access to individual bytes for retrieval of data, but has relatively low density.
NAND flash memory is a type of flash memory that offers relatively high density. The high density is achieved in part by forming columns of cells connected in series. In addition, with NAND flash memory, data is programmed and accessed in relatively large groups of bytes, such as a page of data. For example, a page can correspond to a row or to a portion of a row in an array.
For example, a memory array of cells for storing data is typically arranged in a 2-dimensional array of rows and columns. These arrays can vary greatly in size. When the cells of the array are capable of holding 2 or more levels, that is, multiple levels or two or more bits of data per cell, the array effectively holds data in 3 dimensions.
In a typical array for NAND flash memory, sources and drains of flash cells are arranged in series (source to drain) and referred to as columns. Along rows are “word lines” that control the gates of cells. Data is typically accessed a row at a time, with one bit from each column. The word line for the row to be read is set to a particular voltage for reading the stored state(s) of the cells. Different voltage levels can be used for multiple-level cells. The other row lines for the other cells of the columns are set to turn “on” the cells to permit the reading of the stored state(s) of the cells of the row through the corresponding cells in the columns.
The number of bytes per row can vary in a very wide range, as can the number of bytes in a “page.” Some manufacturers define a page by a certain amount of data, so that, for example, two pages of data can correspond to one word line (row). For the purposes of the present description, a “page” of data corresponds to the amount of data that is written to or read from the NAND flash memory array during a write cycle or read cycle. In one example, 2,112 bytes are retrieved by activation of a word line. Of these 2,112 bytes, 2,048 are data bytes and 64 are spare bytes, which are typically used for error correction codes (ECC), wear-leveling information, or other overhead data. Error correction codes increase the robustness of the stored data. Typically, a form of block code is used to generate the error correction codes, such as cyclic redundancy check (CRC) checksums, Reed-Solomon error correction, or the like. These error correction codes detect if there were errors in the reading of the data bytes and can typically correct errors in the data bytes provided that the errors do not exceed the capability of the error correction code.
Flash memory has many uses. Examples include flash memory hard drives (replacements for hard drives), USB flash drives or thumb drives, mobile phones, digital cameras, digital media players, games, memory cards, navigation devices, personal digital assistants, computers, or the like. Within limits, the error correction codes can correct many errors in the data in the data bytes. However, beyond these limits, data with errors cannot typically be corrected. For example, if a word line fails, then there can be problems reading data for the entire row. This typically results in too many errors for the error correction codes to correct. Depending on the criticality of the data, the effects of uncorrectable errors in data can range from inconvenient to catastrophic.
These drawings and the associated description herein are provided to illustrate specific embodiments of the invention and are not intended to be limiting.
Data is stored in a non-volatile solid state memory device according to a rate-compatible code, such as a rate-compatible convolutional code (RCPC). An example of such a memory device is a flash memory device. Data can initially be block encoded, such as for error correction and detection. The block-encoded data is further convolutionally encoded. While convolutional encoding increases redundancy, it also increases the amount of data to be stored. When punctured (which is sometimes also referred to as “perforated”), some of the convolutionally-encoded data is removed according to a puncture pattern. Examples of puncture patterns will be described later in connection with
There are two contexts in which the term “block” is used. With respect to NAND flash, a block is a collection of pages corresponding to an erasable unit of memory. With respect to error correction, block code refers to a type of error correction. The two can be distinguished based on context.
The memory device 100 is illustrated in communication with a CPU 102, which represents a device that uses the memory device 100. The CPU 102 is a processor that can correspond to a microprocessor, a microcontroller, a signal processor, or the like. The illustrated memory device 100 includes a write buffer 104, a controller 106, a memory array 108, and a read buffer 110.
The controller 106 further includes a block code encoder 112, a rate-compatible encoder 124, a rate-compatible decoder 126, and a block code decoder 122. In the illustrated embodiment, the rate-compatible encoder 124 further includes a puncturable code encoder 114 and a puncturing circuit 116, and the rate-compatible decoder 126 further includes an insertion circuit 118 and a puncturable code decoder 120. The controller 106 can be implemented by hardware, by firmware (software), or by a combination of both hardware and firmware. The block code encoder 112 and the puncturable code encoder 114 each provide forward error correction (FEC). The controller 106 handles data storage to and data retrieval from the memory array 108. For clarity, familiar components such as buffers, row decoders, sense/amplifier circuits and the like are not shown in
In one embodiment, the memory array 108 corresponds to a NAND flash memory array. The NAND flash memory array can be of single level, multi-level, or can even correspond to multiple arrays. While particular embodiments will be described in the context of NAND flash memory, the principles and advantages described herein are applicable to other types of memories. A range of non-volatile solid state memory types can be used for the memory array 108. For example, the memory array 108 can correspond to other forms of flash (e.g., NOR type), electrically erasable programmable read only memory (EEPROM), magnetoresistive random access memory (MRAM), programmable conductor memory, ferroelectric memory, and the like.
The write buffer 104 stores data intended for storage to the memory array 108. The read buffer 110 stores data retrieved from the memory array 108 for reading by the CPU 102. For a NAND flash memory, a “page” of data is typically written to or read from the memory array 108 at a time. The size of this page of data can vary among memory devices. Typical page sizes include, but are not limited to, 512 bytes, 1024 bytes, 2048 bytes, and the like. In the schematic, a variable N represents the amount of data (e.g., number of bytes) for a page. While the particular page size is typically fixed in size from the vantage of the CPU 102, the page size stored in the memory array 108 will vary depending on the code rate as will be explained in greater detail in the following.
The N number of normal data bytes is encoded by the block code encoder 112. Examples of block codes include, but are not limited to, a Hamming code, a Reed-Solomon error correction code, a Bose-Chaudhuri-Hocquenghem (BCH) code, or the like. Within limits, these block error correction codes can be used to detect and correct many errors in the data. The data encoded using the block codes occupy additional bytes represented in
The rate-compatible encoder 124 encodes the block encoded data. In one embodiment, the rate-compatible encoder 124 includes the puncturable code encoder 114 and the puncturing circuit 116. The puncturable code encoder 114 encodes using an inner rate-compatible code, e.g., convolutional code, to encode the N+y bytes of data from the block code encoder 112. Typically, the code rate for the code before puncturing is 1/n, e.g., 1/2, 1/3, 1/4, etc. This encoding increases the amount of data for the page by a factor z0, such that z0(N+y) bytes are generated at an output of the puncturable code encoder 114. For a code rate of 1/n, then z0 is equal to n. For example, for a half-rate (½) code rate, z0 is equal to 2. Generation of convolutionally encoded data with a half-rate code will be described in greater detail later in connection with
The puncturing circuit 116 punctures the convolutionally encoded data. In one embodiment, the function of the puncturing circuit 116 is integrated with the puncturable code encoder 114. This decreases the amount of data, which increases the code rate (m/n). After puncturing, the number of bits for the page is z1(N+y) bytes, where z1 is the inverse of the code rate after puncturing. The z1(N+y) bytes are stored in the memory array 108. With the growth in size of the data, memory addresses can also be mapped internally to the memory device to reflect the increase in the size of the data stored. An advantage of puncturing is that it can be used to vary the code rate (m/n), and hence, the amount of storage used versus the amount of redundancy stored.
Examples of punctured code rates include, but are not limited to 2/3 and 4/5 as will be described later in connection with
The rate-compatible decoder 126 decodes the punctured data. The rate-compatible decoder 126 can also decode non-punctured data as applicable. In one embodiment, the rate-compatible decoder 126 includes the insertion circuit 118 and the puncturable code decoder 120. When z1(N+y) bytes of punctured data are retrieved from the memory array 108, the insertion circuit 118 uses the puncture pattern to insert dummy data, which, for example, does not affect the likelihood calculation (branch metrics) for a possible decoding sequence of a Viterbi decoder, to substitute for the data that was previously deleted (depuncture). In an alternative embodiment, rather than inserting dummy data, erasure pointers are used to indicate to the decoder that the particular data has been punctured. In one embodiment, the “insertion” function of the insertion circuit 118 is replaced by a hardwired mathematical equivalent in the puncturable code decoder 120. There should be enough redundancy to correctly decode the punctured data provided that the total number of errors is within the error correcting capability of the rate-compatible code.
The reconstituted code with z0(N+y) bytes is decoded by the puncturable code decoder 120. In one embodiment, the puncturable code decoder 120 is a Viterbi decoder, which deconvolves convolutionally encoded data. The deconvolved data is then provided to the block code decoder 122 (e.g., for further error detection and/or correction). The block code decoder 122 decodes the z(N+y) bytes of block-encoded data and generates N bytes of corrected data (unless the errors are uncorrectable). The N bytes of corrected data are placed in the read buffer 110 for access by the CPU 102.
At relatively low code rates, the concatenation of the outer block code and the inner convolutional code from the combination of the block code coder 112 and the rate compatible encoder 124 should improve the integrity of the stored data and increase the likelihood of recovering correctable data. The effect can be observed by a lowering of the bit error rate (BER). The improvement in BER can be used to allocate the available memory to encode more valuable data with more redundancy and less valuable data with less redundancy. For example, program data, such as firmware, operating system, or other program data, can be encoded with more redundancy than application data, such as a music file. In another example, to be described later in connection with
Returning to the first example at the top, the data stream x0, x1, x2, x3, . . . from the output of the block code encoder 112 is convolutionally encoded to generate two output data streams y00, y10, y20, y30, and y01, y11, y21, y31, . . . . These two output data streams are stored in the memory array 108 without puncturing. When data is retrieved from the memory array 108, the puncturable code decoder 120 can decode the y00, y10, y20, y30, . . . and y01, y11, y21, y31, . . . data streams without insertion of any data.
In the second example in the middle, the data stream x0, x1, x2, x3, . . . is convolutionally encoded to generate two output data streams y00, y10, y20, y30, . . . and y01, y11, y21, y31, . . . , which are then punctured to y00, y10, y20, y30, . . . and y01, y21, . . . , which are stored in the memory array 108. For a data read, the punctured data y00, y10, y20, y30, . . . and y01, y21, . . . are retrieved from the memory array 108, dummy values that do not disturb decoding are inserted to replace the deleted data or erasure pointers are used, and the punctured data with insertions y00, y10, y20, y30, . . . and y01, -, y21, -, . . . are decoded by the puncturable code decoder 120 to decode back to the original data stream x0, x1, x2, x3, . . . . The dash (-) indicates the data that has been erased.
In the third example at the bottom, the data stream x0, x1, x2, x3, . . . is convolutionally encoded to generate two output data streams y00, y10, y20, y30, . . . and y01, y11, y21, y31, . . . , which are then punctured to y00, y10, y20, y30, . . . and y01, . . . , which are stored in the memory array 108. For a data read, the punctured data y00, y10, y20, y30, . . . and y01, . . . are retrieved from the memory array 108, dummy values that do not disturb decoding are inserted to replace the deleted data or erasure pointers are used, and the punctured data with insertions y00, y10, y20, y30, . . . and y01, -, -, -, . . . are decoded by the puncturable code decoder 120 to decode back to the original data stream x0, x2, x3, . . . .
As illustrated in
In another example, an convolutional code with an m/n code rate of 1/4 is generated. The convolutional code with the unpunctured code rate of 1/4 is used to store reference information. For the storage of other data, the convolutional code is punctured to a different code rate, such as 1/3 or 1/2. In one embodiment, the amount of puncturing is selectable as will be described later in connection with
In one embodiment, code rates can also be varied after the memory device 100 (
In a NAND flash memory device, memory is erased in relatively large blocks of multiple pages, and data is typically written to and read from a page at a time. The process begins by receiving a command for erasing a block or programming 410 a portion of an erased block.
The process determines 420 whether there has been an indication of a marginal condition at the code rate being used for a particular block. A marginal condition can be indicated by an increase in the number of bits being corrected by block ECC. When, for example, block ECC indicates that it is within one bit of not being able to correct further errors, the page and/or block can be considered to be degraded and flagged for increased redundancy via less puncturing. This can postpone the retirement of a block and increase the service life of the memory device 100 (
Flash memory chips exhibit a wear out mechanism. For example, a memory device 100 (
If the block ECC indicates a marginal condition, the code rate is decreased 430. This can be accomplished by reducing an amount of puncturing for the next set of data. For example, the code rate can be adjusted from 2/3 to 1/2 (no puncturing).
If the block ECC does not indicate a marginal condition, the process can proceed to keep 440 using the previous code rate for the next set of data to be programmed to those memory locations.
One embodiment is an apparatus including: an encoder configured to receive data, wherein the encoder is configured to puncture the received data; one or more memory arrays configured to store the punctured data; and a decoder configured to decode the punctured data.
One embodiment is a method for storing data in a non-volatile memory device having one or more memory arrays, wherein the method includes: receiving data intended for storage in the one or more memory arrays; encoding the data to generate punctured data; and storing the punctured data in the one or more memory arrays.
One embodiment is a method of retrieving punctured data stored in a non-volatile memory device having one or more memory arrays, wherein the method includes: retrieving the punctured data from the one or more memory arrays of the memory device; and decoding the punctured data according to a puncture pattern associated with the punctured data.
One embodiment is a method of determining a code rate for a block of memory space in a non-volatile solid-state memory device, wherein the method includes: determining whether a marginal condition exists for at least a portion of a block of data of the memory device; and decreasing a code rate used with the block if the marginal condition exists.
Various embodiments have been described above. Although described with reference to these specific embodiments, the descriptions are intended to be illustrative and are not intended to be limiting. Various modifications and applications may occur to those skilled in the art without departing from the true spirit and scope of the invention as defined in the appended claims.
This application is a continuation application of U.S. application Ser. No. 13/680,908, filed Nov. 19, 2012, now U.S. Pat. No. 8,966,352, which is a divisional application of U.S. application Ser. No. 11/943,943, filed Nov. 21, 2007, now U.S. Pat. No. 8,327,245, the entireties of each of which are hereby incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
4112502 | Scheuneman | Sep 1978 | A |
5942004 | Cappelletti | Aug 1999 | A |
5956743 | Bruce et al. | Sep 1999 | A |
6279133 | Vafai | Aug 2001 | B1 |
6591394 | Lee et al. | Jul 2003 | B2 |
6628723 | Gerlach et al. | Sep 2003 | B1 |
6628732 | Takaki | Sep 2003 | B1 |
6684366 | Trott et al. | Jan 2004 | B1 |
6731538 | Noda | May 2004 | B2 |
6751772 | Kim | Jun 2004 | B1 |
6839870 | Fanfelle | Jan 2005 | B2 |
6871303 | Halter | Mar 2005 | B2 |
7020073 | Kadous et al. | Mar 2006 | B2 |
7061804 | Chun et al. | Jun 2006 | B2 |
7184356 | Noguchi et al. | Feb 2007 | B2 |
7260764 | Chen | Aug 2007 | B2 |
7389465 | Radke | Jun 2008 | B2 |
7451383 | Kim et al. | Nov 2008 | B2 |
7581159 | Hocevar | Aug 2009 | B2 |
7643342 | Litsyn et al. | Jan 2010 | B2 |
7689892 | Stolpman et al. | Mar 2010 | B2 |
7844879 | Ramamoorthy et al. | Nov 2010 | B2 |
7860200 | Furman et al. | Dec 2010 | B2 |
7904780 | Brandman | Mar 2011 | B2 |
8024644 | Shen | Sep 2011 | B2 |
8060796 | Wang et al. | Nov 2011 | B2 |
8291279 | Sharon et al. | Oct 2012 | B2 |
20030088821 | Yokokawa et al. | May 2003 | A1 |
20030112879 | Antia et al. | Jun 2003 | A1 |
20030126545 | Tan | Jul 2003 | A1 |
20030156454 | Wei et al. | Aug 2003 | A1 |
20040022087 | Satori | Feb 2004 | A1 |
20040268065 | Hilton et al. | Dec 2004 | A1 |
20060123277 | Hocevar | Jun 2006 | A1 |
20060221752 | Fasoli et al. | Oct 2006 | A1 |
20070061689 | Park et al. | Mar 2007 | A1 |
20070124647 | Chen et al. | May 2007 | A1 |
20070171714 | Wu et al. | Jul 2007 | A1 |
20070171730 | Ramamoorthy et al. | Jul 2007 | A1 |
20070266295 | Conley | Nov 2007 | A1 |
20070300130 | Gorobets | Dec 2007 | A1 |
20080002468 | Hemink | Jan 2008 | A1 |
20080010582 | Nieto et al. | Jan 2008 | A1 |
20080034272 | Wu et al. | Feb 2008 | A1 |
20080137414 | Park et al. | Jun 2008 | A1 |
20080168319 | Lee et al. | Jul 2008 | A1 |
20080222490 | Leung | Sep 2008 | A1 |
20080294960 | Sharon et al. | Nov 2008 | A1 |
20080320361 | Fukuda et al. | Dec 2008 | A1 |
20080320373 | Kim et al. | Dec 2008 | A1 |
20090013233 | Radke | Jan 2009 | A1 |
20090013234 | Radke | Jan 2009 | A1 |
20100199153 | Okamura et al. | Aug 2010 | A1 |
20100211724 | Weingarten | Aug 2010 | A1 |
20110060969 | Ramamoorthy et al. | Mar 2011 | A1 |
Number | Date | Country |
---|---|---|
797307 | Sep 1997 | EP |
9-261081 | Oct 1997 | JP |
2000-68862 | Mar 2000 | JP |
2000149592 | May 2000 | JP |
2004-071012 | Mar 2004 | JP |
100766042 | Oct 2007 | KR |
WO 2004062113 | Jul 2004 | WO |
WO 2006070668 | Jul 2006 | WO |
WO 2006135937 | Dec 2006 | WO |
WO 2007084749 | Jul 2007 | WO |
WO 2007084751 | Jul 2007 | WO |
WO 2008069385 | Jun 2008 | WO |
WO 2008078866 | Jul 2008 | WO |
Entry |
---|
Chinese Patent Office; Office Action dated Oct. 12, 2012, from related Chinese Patent Application No. 200880117049.8. |
Daneshgaran, et al.; An Extensive Search for Good Punctured Rate-k/(k+1) Recursive Convolutional Codes for Serially Concatenated Convolutional Codes; Information Theory, IEEE Transactions on, vol. 50, No. 1, pp. 208-217, Jan. 2004. |
European Patent Office; Extended European Search Report of Related European Application, Application No. 08851231.4; Mailing date Jan. 30, 2012. |
European Patent Office; Extended European Search Report of related European Application, Application No. 08852229.7; Report issue date Nov. 22, 2011. |
Frenger, et al; Rate-Compatible Convolutional Codes for Multirate DS-CDMA Systems; Communications, IEEE Transactions on, vol. 47, No. 6, pp. 828-836, Jun. 1999. |
International search report mailed Dec. 29, 2008 in PCT Application No. PCT/US2008/068240. |
International search report mailed Jan. 20, 2009 in PCT Application No. PCT/US2008/068236. |
Japanese Patent Office; Decision of Rejection dated Oct. 8, 2013, from related Japanese Application No. 2010-534994. |
Japanese Patent Office; Decision of Rejection dated Oct. 8, 2013, from related Japanese Application No. 2010-534993. |
Japanese Patent Office; Office Action dated Jun. 11, 2013, from related application Japanese Patent Application No. 2010-534994. |
Japanese Patent Office; Office Action dated Jun. 11, 2013, from related application Japanese Patent Application No. 2010-534993. |
Korean Intellectual Property Office; “Notification of Transmittal of the International Search Report and the Written Opinion of the International Searching Authority, or the Declaration”, “Written Opinion of the International Searching Authority”, and “International search report” of related International Application PCT/US2008/081743, filed Oct. 28, 2008; Dated Feb. 19, 2009; Daejeon, Republic of Korea. |
Korean Intellectual Property Office; “Notification of Transmittal of the International Search Report and the Written Opinion of the International Searching Authority, or the Declaration”, “Written Opinion of the International Searching Authority”, and “International Search Report” of corresponding PCT application PCT/US/2008/081475, filed Oct. 28, 2008; mailed Feb. 18, 2009; Daejeon, Republic of Korea. |
Korean Patent Office; Office action dated Oct. 30, 2014, from Related Korean Patent Application No. 10-2010-7013543 (filed Oct. 28, 2008). |
Lee, P. J.; Constructions of Rate (N-1)/N Punctured Convolutional Codes With Mininmum Required SNR Criterion; Communications, IEEE Transactions on, vol. 36, No. 10, pp. 1171-1174, Oct. 1988. |
Lin, et al.; A NAND Flash Memory Controller for SD/MMC Flash Memory Card; Electronics, Circuits and Systems; 2006; ICECS '06. 13th IEEE International Conference on, pp. 1284-1287, Dec. 10-13, 2006. |
Ohtsuki, T.; Rate Adaptive Indoor Infrared Wireless Communication Systems Using Repeated and Punctured Convolutional Codes; Communications, 1999. ICC '99. 1999 IEEE International Conference on, vol. 1, pp. 609-613, 1999. |
Sun, et al.; Design of On-Chip Error Correction Systems for Multilevel NOR and NAND Flash memories; Circuits, Devices & Systems, IET, vol. 1, No. 3, pp. 241-249, Jun. 2007. |
Taiwanese Patent Office; Office action dated Jun. 20, 2014, from Related Taiwanese Patent Application No. TW 097143255 (filed Nov. 7, 2008). |
Tang, et al; Viterbi Decoder for High-Speed Ultra-Wideband Communication Systems; Acoustics, Speech, and Signal Processing, 2005. Proceedings. (ICASSP '05); IEEE International Conference; vol. 5, pp. v/37, v/40, vol. 5; Mar. 18-23, 2005. |
The International Bureau of WIPO; International Preliminary Report on Patentability of related PCT Application No. PCT/US2008/068236, filed Jun. 25, 2008; mailing date Jan. 21, 2010; Geneva, Switzerland. |
The International Bureau of WIPO; International Preliminary Report on Patentability of related PCT Application No. PCT/US2008/068240, filed Jun. 25, 2008; mailing date Jan. 21, 2010; Geneva, Switzerland. |
USPTO; Office Action dated Dec. 9, 2011, from related application U.S. Appl. No. 13/281,007, filed Oct. 25, 2011. |
USPTO; Office Action dated Mar. 15, 2012, from related application U.S. Appl. No. 11/943,943, filed Nov. 21, 2011. |
USPTO; Office Action dated Nov. 30, 2011, from related application U.S. Appl. No. 13/267,262, filed Oct. 6, 2011. |
USPTO; Office Action dated Oct. 3, 2011, from related application U.S. Appl. No. 13/154,150, filed Jun. 6, 2011. |
USPTO; Office Action dated Oct. 3, 2012, from related application U.S. Appl. No. 13/570,180, filed Aug. 8, 2012. |
Ying, et al.; Seamless Data-Rate Change Using Punctured Convolutional Codes for Time-Varying Signal-to-Noise-Ratio; Communications, 1995. ICC '95 Seattle, ‘Gateway to Globalization’, 1995 IEEE International Conference on, vol. 1, pp. 342-346, Jun. 18-22, 1995. |
Zhou, et al.; High Rate Turbo Code Using Unevenly Punctured Convolutional Constituent Code; Communications, 1999, APCC/OECC '99. Fifth Asia-Pacific Conference on . . . and Fourth Optoelectronics and Communications Conference, vol. 1, pp. 751-754, 1999. |
USPTO; Office Action dated Aug. 28, 2013, from related application U.S. Appl. No. 13/680,908, filed Nov. 19, 2012. |
USPTO; Office Action dated Jun. 6, 2014, from related application U.S. Appl. No. 13/680,908, filed Nov. 19, 2012. |
Korean Patent Office; Office Action dated Oct. 19, 2015, from related Korean Patent Application No. 10-2010-7013543. |
Number | Date | Country | |
---|---|---|---|
20150234704 A1 | Aug 2015 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11943943 | Nov 2007 | US |
Child | 13680908 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13680908 | Nov 2012 | US |
Child | 14629228 | US |