Technical Field
This disclosure relates to data storage systems for computer systems. More particularly, the disclosure relates to ECC encoder supporting multiple code rates and throughput speeds.
Description of the Related Art
Non-volatile memory arrays often have limited endurance. The endurance of the memory array is typically contingent on usage pattern and wear. In addition, the endurance depends on a type of the non-volatile memory array used. For example, memory arrays with multi-level cell (MLC) NAND media typically have a lower endurance than memory arrays with single-level cell (SLC) NAND media. To protect user data stored to memory arrays from corruption, which may be caused by a diminished endurance, parity data can be generated and stored along with user data to facilitate error detection and/or correction. Generation of parity data can time consuming and resource intensive. Accordingly, it is desirable to provide more efficient mechanisms for generating parity data.
Systems and methods that embody the various features of the invention will now be described with reference to the following drawings, in which:
While certain embodiments are described, these embodiments are presented by way of example only, and are not intended to limit the scope of protection. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms. Furthermore, various omissions, substitutions, and changes in the form of the methods and systems described herein may be made without departing from the scope of protection.
Overview
Data storage systems, such as solid state drives, typically include one or more controllers coupled with one or more non-volatile memory arrays. Depending on the type of non-volatile memory array used, stored data may be subject to corruption as a result of, for example, read/write disturbs, loss of data retention, and/or loss of endurance. Data storage systems can utilize one or more error correction or error coding mechanisms to detect and/or correct errors in the stored data. One such mechanism can determine parity data when writing user data. Parity data can be stored, for example, in a memory array. When stored user data is retrieved, parity data can be utilized to determine the integrity of the retrieved user data. If one or more errors are detected in the retrieved user data, such errors may be corrected.
Generation of parity data can involve considerable system overhead, such as processing time overhead, system resources overhead, and/or system components overhead (e.g., necessity to use additional hardware, firmware, etc.). Furthermore, storing parity data (e.g., in a memory array) can reduce memory space available for storage of user data. Accordingly, it can be advantageous for a data storage system to support different error code rates, code lengths, and/or different coding throughput speeds. For example, a data storage system can encode stored data using a higher coding rate, so that less parity data is generated and stored, when non-volatile memory is early in the lifecycle and thus has sufficient retention and/or endurance. As non-volatile memory wears out over time, the data storage system can switch to lower coding rates such that more parity data is generated to protect user data from errors. However, supporting multiple code rates, lengths, and/or throughput speeds can require adding and/or duplicating system components (hardware, firmware, etc.).
Embodiments of the present invention are directed to an ECC encoder supporting multiple code rates and throughput speeds. In one embodiment, the ECC encoder can support multiple error code rates and/or error code lengths by using nominal or no redundancy of system components. For example, the ECC encoder can be configured so that the existing encoding components can be used and/or reused for supporting various code rates and/or lengths. The ECC encoder can further support multiple error coding throughput speeds by, for example, utilizing parallel computation techniques. In other words, the architecture of the ECC encoder can be scalable and/or flexible. Accordingly, encoding efficiency and, consequently, data storage system performance can be increased without a substantial increase in the number and/or size of system components data encoding.
System Overview
The controller 130 can be configured to receive data and/or storage access commands from a storage interface module 112 (e.g., a device driver) of a host system 110. Storage access commands communicated by the storage interface 112 can include write data and read data commands issued by the host system 110. Read and write commands can specify a logical address (e.g., logical block addresses or LBAs) used to access the data storage system 120A. The controller 130 can execute the received commands in the non-volatile memory array 150.
Data storage system 120A can store data communicated by the host system 110. In other words, the data storage system 120A can act as memory storage for the host system 110. To facilitate this function, the controller 130 can implement a logical interface. The logical interface can present to the host system 110 data storage system's memory as a set of logical addresses (e.g., contiguous address) where user data can be stored. Internally, the controller 130 can map logical addresses to various physical locations or addresses in the non-volatile memory array 150 and/or other storage modules. The controller 130 includes a data storage and error correction module 132 configured to store data in and retrieve data from the non-volatile memory array 150, determine integrity of data retrieved from the non-volatile memory array, perform, if necessary, error correction of retrieved data, and perform transfer of data between the data storage system 120A and the host system 110.
Overview of Low-Density Parity-Check (LDPC) Coding
In one embodiment, an ECC encoder can utilize low-density parity-check (LDPC) linear block codes for generation of data. LDPC codes can be generated using a generator matrix GK×N, where K=N−M corresponds to the number of information units or bits per codeword, which correspond to user data. Accordingly, M=N−k corresponds to the number parity bits. The LDPC encoder generates a codeword u=(u0, u1, . . . , uN-1) from a user data vector v=(v0, v1, . . . , vk−1) via following matrix multiplication:
v=u×G (1)
A generator matrix of an LDPC coder can be referred to as matrix producing systematic codes if the encoded codewords include the original user data bits followed by N−K parity check bits. Such generator matrix can be represented as:
GK×N=[IK×K|QK×(N−K)] (2)
For LDPC codes, Q submatrix of the generator matrix G is generally a high density matrix, and I submatrix is a k×k identity matrix. In one embodiment, the generator matrix G used for Quasi-Cyclic LDPC (QC-LDPC) encoding can have the following form:
where I is a p×p identity matrix, 0 is a p×p zero matrix, Gi,j for 1≦i≦n−m and 1≦j≦m is a p×p circulant, and n=N/p and m=M/p. In p×p circulant matrix Gi,j row number y is rotated to the right by one as compared to row number y−1. In one embodiment, code rate for QC-LDPC encoding can be defined as:
In one embodiment, when systematic LDPC codes are used, multiplication by a systematic portion of the generator matrix GQC (e.g., I(n-m)p) may be dispensed with. In one embodiment, non-systematic portion Q of the generator matrix is not a low-density matrix. Still, matrix Q may be follow QC format (e.g., be circulant). Further, user data bits can be divided into k (or n−m) segments:
u={s1,s2,s3, . . . ,sn-m} (5)
where sj is a jth subsegment of user data of size P (e.g., P bits). In one embodiment, gi,j can correspond to the first row of Gi,j matrix and hi,j can correspond to the first column of Gi,j matrix. In addition, gi,j(f) can correspond to gi,j right-shifted by f and hi,j(f) can correspond to hi,j right-shifted by f Jth segment of parity data with size of P bits can be represented as:
Qj=si×Gi,j=s1G1,j+s2G2,j+ . . . +sn-mGn-m,j (6)
In one embodiment, encoding 200 can include the following operations. User data 210 subsegment 212 can be multiplied by submatrices 228 in row 222 in order to determine:
Qj=s1G1,j for j={0,m−1} (7a)
User data 210 subsegment 214 can be multiplied by submatrices 228 in row 224 in order to determine:
Qj=Qj+s2G2,j for j={0,m−1} (7b)
These multiplication operations can be continued and Qj of equation (6) can be determined as follows:
Qj=Qj+sn-mGn-m j for j={0,m−1} (7c)
Finally, user data 210 subsegment 216 can be multiplied by submatrices 228 in row 226 in order to determine the final value of Qj. The result can be saved in a row vector 230.
ECC Encoder Supporting Multiple Code Rates and Throughput Speeds
In one embodiment, the encoder 300 can determine si×Gi,j as follows. A row gi,j of the submatrix is loaded into the register 320 and next user subsegment (e.g., of size p bits) is loaded in the register 310. Every computational cycle one bit si of register 310 is feed to as input into the logic gates 330. This can be accomplished by right shifting the register 310. The result of the multiplication by si is computed and stored in the register 350, which can indicate a completion of a computational cycle. In one embodiment, a computational cycle can correspond to a system clock cycle. At the start of the next computational cycle, the contents of the register 320 can be right-rotated by one, which results in loading the next row of the submatrix. Then, the next bit si from register 310 is feed as input to the logic gates 330, and the foregoing process is repeated. In one embodiment, the contents of the register 320 are right-rotated by one every computational cycle. It can take a total of P computational cycles to perform the operation si×Gi,j. At the completion of P cycles, the encoder 300 can compute si×Gi+1,j by loading a row gi+1,j of the next submatrix into the register 320. As is illustrated in
In one embodiment, any number of encoders 300 can be utilized in order to improve throughput associated with the computation of parity data. In one embodiment, an LDPC encoder comprising, for example, an encoding module having five encoders 300 configured to compute parity data associated with user data in parallel may still provide throughput below a target throughput. For instance, the throughput in one embodiment can be about 100 MBytes/s when clock frequency of about 800 MHz is used. Many encoding modules may be needed to achieve higher throughput. For example, 80 or more encoding modules may be needed to achieve the throughput of about 8 GBytes/s or higher, with each encoding module having five encoders 300. In such configuration, the overall logic may comprise multiple million(s) of logic gates and use a large amount of buffer memory.
In one embodiment, the encoder 400 is configured to perform in parallel and/or substantially in parallel multiplication of X bits of user data stored in the register 410. X can be an integer value, such as 2, 8, 16, 32, 64, and so on, and X corresponds to the internal parallelism of the encoder 400. In some embodiments, the internal parallelism can be scaled up and/or down depending on the desired tradeoff between throughput of the encoder and size of logic associated with the encoder.
In one embodiment, the encoder 400 configured can determine si×Gi,j as follows. The encoder 400 can be configured with X=32. A row gi,j of the submatrix is loaded into the register 420 and next user subsegment (e.g., of size p bits) is loaded in the register 410. Every computational cycle X bits (e.g., 32 bits or 4 bytes) of user data si,X stored in register 410 are feed as input to the logic gates 430. This can be accomplished by right shifting the register 410 by X. The result of the multiplication by si,X is computed and stored in the register 450, which can indicate a completion of a computational cycle. At the start of the next computational cycle, the contents of the register 420 can be right-rotated by X (e.g., 32 bits or 4 bytes). Then, the next X bits si+1,X stored in register 410 is feed to as input into the logic gates 430, and the foregoing process is repeated. In one embodiment, the contents of the register 420 are right-rotated by X every computational cycle. In one embodiment, there are X−1 virtual copies of the register 420 having corresponding matrix data corresponding to right-rotated data by 1, 2, . . . , X−1. It can take a total of P/X (e.g., P/32) computational cycles to perform the operation si×Gi,j. At the completion of P/X cycles, the encoder 400 can compute the si×Gi+1,j by loading a row gi+1,j of the next submatrix into the register 420. As is illustrated in
In one embodiment, a number of encoder modules 520 can be selected in accordance with a desired throughput. For example, the number of encoder modules can be 1, 2, 3, 4, and so on. In one embodiment, the upper limit on the number of encoder modules can be selected as a number of submatrices in the generator matrix. In such embodiment, parity data can be determined in parallel or substantially in parallel using all submatrices. In one embodiment, coding rate of the encoder 500 can be selected based on the combination of the number of submatrices and the value of P. In another embodiment, coding rate of the encoder 500 can be selected based on the combination of the values of X and P.
In one embodiment, each encoder module 620 includes three registers having size P, X*P logic gates (e.g., logic gates 430) having X inputs, and P logic gates (e.g., logic gates 440) having X+1 inputs. Accordingly, the encoder 600 includes 15 register groups having size P, 5*X*P logic gates having X inputs, and 5*P logic gates having X+1 inputs. For example, for X=32 the encoder 600 includes 15 register groups having size P, 160*P logic gates having 32 inputs, and P logic gates having X+33 inputs. In one embodiment, a double buffer may be used for registers 410, 420, and/or 450 of
Utilizing ECC encoder supporting multiple code rates and throughput speeds as is disclosed herein can provide for flexible and scalable encoding of user data, particularly when QC-LDPC encoding is used. The encoder can be scaled in size based on, for example, the desired encoding throughput and/or computational cycle duration. The encoder architecture can thus be used to support multiple code rates and throughput speeds. Accordingly, encoding speed and efficiency and system performance is improved.
Those skilled in the art will appreciate that in some embodiments, other suitable error correction mechanisms can be used in addition to and/or in place of LDPC coding. For example, Hamming coding, Reed-Solomon coding, BCH coding, and the like can be used. Further, user data can encompass data provided by a host system, data generated internally by a data storage system, etc., and/or a combination thereof. Also, any suitable unit or grouping of data, such as octet, nibble, word, byte, etc., can be used in addition to or in place of a bit of user data. Moreover, when code shortening techniques are utilized, encoding may be partially or fully skipped. The actual steps taken in the disclosed processes, such as the processes illustrated in
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the protection. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms. Furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the protection. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the protection. For example, the systems and methods disclosed herein can be applied to hard disk drives, hybrid hard drives, and the like. In addition, other forms of storage (e.g., DRAM or SRAM, battery backed-up volatile DRAM or SRAM devices, EPROM, EEPROM memory, etc.) may additionally or alternatively be used. As another example, the various components illustrated in the figures may be implemented as software and/or firmware on a processor, ASIC/FPGA, or dedicated hardware. Also, the features and attributes of the specific embodiments disclosed above may be combined in different ways to form additional embodiments, all of which fall within the scope of the present disclosure. Although the present disclosure provides certain preferred embodiments and applications, other embodiments that are apparent to those of ordinary skill in the art, including embodiments which do not provide all of the features and advantages set forth herein, are also within the scope of this disclosure. Accordingly, the scope of the present disclosure is intended to be defined only by reference to the appended claims.
The present application claims the benefit of priority under 35 U.S.C. §120 as a continuation of U.S. patent application Ser. No. 13/718,289 entitled “Error Correcting Code Encoder Supporting Multiple Code Rates and Throughput Speeds for Data Storage Systems,” filed on Dec. 18, 2012, the disclosure of which is hereby incorporated by reference in its entirety for all purposes.
Number | Name | Date | Kind |
---|---|---|---|
2728222 | Becker et al. | Dec 1955 | A |
4760358 | Inoue | Jul 1988 | A |
5118982 | Inoue et al. | Jun 1992 | A |
5262643 | Hammond et al. | Nov 1993 | A |
5301558 | Livingston et al. | Apr 1994 | A |
RE37030 | Lloyd et al. | Jan 2001 | E |
6249890 | Ukani et al. | Jun 2001 | B1 |
6510752 | Sacks et al. | Jan 2003 | B1 |
6556028 | Umanskiy et al. | Apr 2003 | B1 |
6556933 | Sacks et al. | Apr 2003 | B1 |
6639411 | Thomsen | Oct 2003 | B1 |
6831807 | Koso et al. | Dec 2004 | B2 |
6856556 | Hajeck | Feb 2005 | B1 |
6861854 | Guo et al. | Mar 2005 | B1 |
6870377 | Thomsen | Mar 2005 | B2 |
6895547 | Eleftheriou et al. | May 2005 | B2 |
6975477 | Hu et al. | Dec 2005 | B1 |
6977793 | White et al. | Dec 2005 | B2 |
7009804 | Sharma et al. | Mar 2006 | B2 |
7062698 | Yang | Jun 2006 | B2 |
7072134 | Hirano et al. | Jul 2006 | B1 |
7072417 | Burd et al. | Jul 2006 | B1 |
7075748 | White et al. | Jul 2006 | B2 |
7079338 | Semba et al. | Jul 2006 | B1 |
7079339 | Semba et al. | Jul 2006 | B1 |
7106552 | Hirano et al. | Sep 2006 | B2 |
7124654 | Davies et al. | Oct 2006 | B1 |
7126857 | Hajeck | Oct 2006 | B2 |
7184230 | Chue et al. | Feb 2007 | B1 |
7336434 | Lille et al. | Feb 2008 | B2 |
7346832 | Richardson et al. | Mar 2008 | B2 |
7395490 | Richardson et al. | Jul 2008 | B2 |
7423837 | Hutsell | Sep 2008 | B2 |
7430136 | Merry, Jr. et al. | Sep 2008 | B2 |
7447807 | Merry et al. | Nov 2008 | B1 |
7500172 | Shen et al. | Mar 2009 | B2 |
7502256 | Merry, Jr. et al. | Mar 2009 | B2 |
7509441 | Merry et al. | Mar 2009 | B1 |
7577892 | He | Aug 2009 | B1 |
7596643 | Merry, Jr. et al. | Sep 2009 | B2 |
7653778 | Merry, Jr. et al. | Jan 2010 | B2 |
7657816 | Cohen et al. | Feb 2010 | B2 |
7685337 | Merry, Jr. et al. | Mar 2010 | B2 |
7685338 | Merry, Jr. et al. | Mar 2010 | B2 |
7685374 | Diggs et al. | Mar 2010 | B2 |
7733712 | Walston et al. | Jun 2010 | B1 |
7765373 | Merry et al. | Jul 2010 | B1 |
7768276 | Yao | Aug 2010 | B2 |
7783950 | Esumi et al. | Aug 2010 | B2 |
7814393 | Kyung et al. | Oct 2010 | B2 |
7898855 | Merry, Jr. et al. | Mar 2011 | B2 |
7912991 | Merry et al. | Mar 2011 | B1 |
7913149 | Gribok et al. | Mar 2011 | B2 |
7936603 | Merry, Jr. et al. | May 2011 | B2 |
7962792 | Diggs et al. | Jun 2011 | B2 |
8010869 | Wehn et al. | Aug 2011 | B2 |
8037388 | Heinrich et al. | Oct 2011 | B2 |
8078918 | Diggs et al. | Dec 2011 | B2 |
8090899 | Syu | Jan 2012 | B1 |
8095851 | Diggs et al. | Jan 2012 | B2 |
8095859 | Peterson | Jan 2012 | B1 |
8108692 | Merry et al. | Jan 2012 | B1 |
8122185 | Merry, Jr. et al. | Feb 2012 | B2 |
8127048 | Merry et al. | Feb 2012 | B1 |
8135903 | Kan | Mar 2012 | B1 |
8151020 | Merry, Jr. et al. | Apr 2012 | B2 |
8161227 | Diggs et al. | Apr 2012 | B1 |
8161345 | Graef | Apr 2012 | B2 |
8166245 | Diggs et al. | Apr 2012 | B2 |
8171367 | Gao et al. | May 2012 | B2 |
8243525 | Kan | Aug 2012 | B1 |
8254172 | Kan | Aug 2012 | B1 |
8261012 | Kan | Sep 2012 | B2 |
8296625 | Diggs et al. | Oct 2012 | B2 |
8312207 | Merry, Jr. et al. | Nov 2012 | B2 |
8316176 | Phan et al. | Nov 2012 | B1 |
8322235 | Keopuang et al. | Dec 2012 | B1 |
8335049 | Liu et al. | Dec 2012 | B1 |
8341339 | Boyle et al. | Dec 2012 | B1 |
8347195 | Varnica et al. | Jan 2013 | B1 |
8375151 | Kan | Feb 2013 | B1 |
8392635 | Booth et al. | Mar 2013 | B2 |
8397107 | Syu et al. | Mar 2013 | B1 |
8407449 | Colon et al. | Mar 2013 | B1 |
8423722 | Deforest et al. | Apr 2013 | B1 |
8433858 | Diggs et al. | Apr 2013 | B1 |
8443167 | Fallone et al. | May 2013 | B1 |
8447920 | Syu | May 2013 | B1 |
8458435 | Rainey, III et al. | Jun 2013 | B1 |
8478930 | Syu | Jul 2013 | B1 |
8489854 | Colon et al. | Jul 2013 | B1 |
8495479 | Varnica et al. | Jul 2013 | B1 |
8503237 | Horn | Aug 2013 | B1 |
8521972 | Boyle et al. | Aug 2013 | B1 |
8549236 | Diggs et al. | Oct 2013 | B2 |
8583835 | Kan | Nov 2013 | B1 |
8601311 | Horn | Dec 2013 | B2 |
8601313 | Horn | Dec 2013 | B1 |
8612669 | Syu et al. | Dec 2013 | B1 |
8612804 | Kang et al. | Dec 2013 | B1 |
8615681 | Horn | Dec 2013 | B2 |
8638602 | Horn | Jan 2014 | B1 |
8639872 | Boyle et al. | Jan 2014 | B1 |
8683113 | Abasto et al. | Mar 2014 | B2 |
8700834 | Horn et al. | Apr 2014 | B2 |
8700950 | Syu | Apr 2014 | B1 |
8700951 | Call et al. | Apr 2014 | B1 |
8706985 | Boyle et al. | Apr 2014 | B1 |
8707104 | Jean | Apr 2014 | B1 |
8966339 | Lu | Feb 2015 | B1 |
9122625 | Lu | Sep 2015 | B1 |
20030037298 | Eleftheriou et al. | Feb 2003 | A1 |
20030065992 | Yang | Apr 2003 | A1 |
20030076121 | Guo et al. | Apr 2003 | A1 |
20030123563 | Lu | Jul 2003 | A1 |
20040098659 | Bjerke et al. | May 2004 | A1 |
20050204253 | Sukhobok et al. | Sep 2005 | A1 |
20050216821 | Harada | Sep 2005 | A1 |
20050246617 | Kyung et al. | Nov 2005 | A1 |
20060036925 | Kyung et al. | Feb 2006 | A1 |
20060036933 | Blankenship et al. | Feb 2006 | A1 |
20060171062 | Hirano et al. | Aug 2006 | A1 |
20080028274 | Lin | Jan 2008 | A1 |
20080126908 | Lin | May 2008 | A1 |
20080165444 | Zafer | Jul 2008 | A1 |
20080172592 | Wehn et al. | Jul 2008 | A1 |
20080301521 | Gunnam et al. | Dec 2008 | A1 |
20090113256 | Radosavljevic et al. | Apr 2009 | A1 |
20090249159 | Lee et al. | Oct 2009 | A1 |
20090249160 | Gao et al. | Oct 2009 | A1 |
20090303839 | Narayanan et al. | Dec 2009 | A1 |
20100037121 | Jin et al. | Feb 2010 | A1 |
20100037674 | Yashchuk et al. | Feb 2010 | A1 |
20100100788 | Yang et al. | Apr 2010 | A1 |
20100107030 | Graef | Apr 2010 | A1 |
20100131819 | Graef | May 2010 | A1 |
20100169735 | Biscondi et al. | Jul 2010 | A1 |
20100174849 | Walston et al. | Jul 2010 | A1 |
20100250793 | Syu | Sep 2010 | A1 |
20100275088 | Graef | Oct 2010 | A1 |
20100318872 | Wang | Dec 2010 | A1 |
20110099323 | Syu | Apr 2011 | A1 |
20110126078 | Ueng et al. | May 2011 | A1 |
20110179333 | Wesel et al. | Jul 2011 | A1 |
20110246862 | Graef | Oct 2011 | A1 |
20110252286 | Li et al. | Oct 2011 | A1 |
20110252294 | Ng et al. | Oct 2011 | A1 |
20110283049 | Kang et al. | Nov 2011 | A1 |
20120079341 | Wajcer et al. | Mar 2012 | A1 |
20120260020 | Suryabudi et al. | Oct 2012 | A1 |
20120278531 | Horn | Nov 2012 | A1 |
20120284460 | Guda | Nov 2012 | A1 |
20120297267 | Chinnici et al. | Nov 2012 | A1 |
20120324191 | Strange et al. | Dec 2012 | A1 |
20130031447 | Sharon et al. | Jan 2013 | A1 |
20130132638 | Horn et al. | May 2013 | A1 |
20130145106 | Kan | Jun 2013 | A1 |
20130290793 | Booth et al. | Oct 2013 | A1 |
20140059405 | Syu et al. | Feb 2014 | A1 |
20140115427 | Lu | Apr 2014 | A1 |
20140122968 | Kazi | May 2014 | A1 |
20140223255 | Lu et al. | Aug 2014 | A1 |
Number | Date | Country |
---|---|---|
20940 | Feb 2007 | UA |
20948 | Feb 2007 | UA |
WO-2009128546 | Oct 2009 | WO |
WO-2011127287 | Oct 2011 | WO |
Entry |
---|
Z. Li, et al., “Efficient Encoding of Quasi-Cyclic Low-Density Parity-Check Codes”, Communications, IEEE Transactions: vol. 54, No. 1, pp. 71-81, Jan. 2006. |
Bernhard M.J. Leiner, “LDPC Codes—a brief Tutorial”, Stud. ID: 53418L, Apr. 8, 2005, pp. 1-9. |
Number | Date | Country | |
---|---|---|---|
20150370633 A1 | Dec 2015 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13718289 | Dec 2012 | US |
Child | 14841607 | US |