Various embodiments of the present invention provide systems and methods for data processing, and more particularly to systems and methods for multi-stage encoding for concatenated low density parity check codes.
Various data processing systems have been developed including storage systems, cellular telephone systems, and radio transmission systems. In such systems data is transferred from a sender to a receiver via some medium. For example, in a storage system, data is sent from a sender (i.e., a write function) to a receiver (i.e., a read function) via a storage medium. As information is stored and transmitted in the form of digital data, errors are introduced that, if not corrected, can corrupt the data and render the information unusable. The effectiveness of any transfer is impacted by any losses in data caused by various factors. Many types of error checking systems have been developed to detect and correct errors in digital data. For example, in perhaps the simplest system, a parity bit can be added to a group of data bits, ensuring that the group of data bits (including the parity bit) has either an even or odd number of ones. The parity bits may also be used in error correction systems, including in low density parity check (LDPC) encoding and decoding circuits. In some cases, the data decoding circuit operates on a very large codeword that includes a number of parity bits to decode relatively large encoded data sectors. Traditional low density parity check encoders and decoders for relatively large sectors require large memory sizes and long latency.
Various embodiments of the present invention provide systems and methods for data processing, and more particularly to systems and methods for multi-stage encoding for concatenated low density parity check codes.
A data encoding system is disclosed including a data encoder circuit operable to encode each of a number of data sectors with a component matrix of a low density parity check code matrix and to yield an output codeword. The data encoder circuit includes a syndrome calculation circuit operable to calculate and combine syndromes for the data sectors.
This summary provides only a general outline of some embodiments of the invention. The phrases “in one embodiment,” “according to one embodiment,” “in various embodiments”, “in one or more embodiments”, “in particular embodiments” and the like generally mean the particular feature, structure, or characteristic following the phrase is included in at least one embodiment of the present invention, and may be included in more than one embodiment of the present invention. Importantly, such phrases do not necessarily refer to the same embodiment. This summary provides only a general outline of some embodiments of the invention. Additional embodiments are disclosed in the following detailed description, the appended claims and the accompanying drawings.
A further understanding of the various embodiments of the present invention may be realized by reference to the figures which are described in remaining portions of the specification. In the figures, like reference numerals may be used throughout several drawings to refer to similar components. In the figures, like reference numerals are used throughout several figures to refer to similar components.
Various embodiments of the present invention provide systems and methods for multi-stage data encoding for concatenated low density parity check codes. Multi-stage encoding reduces latency and can use relatively small memories when encoding large data sectors. A large data sector can be divided into a number of smaller sectors or subsectors, each of which is encoded in a multi-stage low density parity check encoding process to yield a codeword for the large data sector. The systems and methods for multi-stage data encoding for concatenated low density parity check codes may be applied to binary and non-binary encoding using any suitable encoding algorithm, such as a low density parity check algorithm of any variety. The term “data sector” is used herein to refer to a block of data to be encoded. In some embodiments, a data sector comprises a sector to be written to a magnetic hard disk, although the term “data sector” is not limited to this application or structure.
Turning to
First level encoding circuit 110 applies a data encoding algorithm to a user data input (u) 102 using component matrices from the first group to yield a first level encoded output (p2) 112. A syndrome calculation circuit 116 calculates a syndrome for the data sector just encoded by the first level encoding circuit 110, using the component matrix from the second group, and the syndrome 122 is stored in a syndrome XOR/memory circuit 120. The first level encoding circuit 110 thus encodes a data sector using a component matrix from the first group and the syndrome calculation circuit 116 calculates a syndrome for that data sector using the component matrix from the second group in the same H matrix column as the component matrix from the first group used by the first level encoding circuit 110. The process is repeated column by column across the prepared parity check matrix 106, encoding data sectors using the first group component matrix in the first level encoding circuit 110 and calculating syndromes for the same syndrome using the second group component matrix in the syndrome calculation circuit 116. In some embodiments, the data sectors encoded with each column of the prepared parity check matrix 106 are each portions of a single large data sector to be encoded. As each successive syndrome is calculated in the syndrome calculation circuit 116, it is combined with the previous syndromes in an XOR operation performed by the syndrome XOR/memory circuit 120 with the result stored in the syndrome XOR/memory circuit 120. When the final column of the prepared parity check matrix 106 is reached, the last data sector is encoded in a multi-stage encoding operation using both the first level encoding circuit 110 and second level encoding circuit 114 to encode the data sector using both the first group and second group component matrices in the final column, with the final syndrome from the syndrome XOR/memory circuit 120 converging to the non-zero value [0;S] to yield output codeword or second level encoded output (p1) 126.
During this final column encoding operation, in order to encode using both the first group and second group component matrices, the data sector is encoded using the first group component matrix in the first level encoding circuit 110, and the resulting first level encoded output (p2) 112 is provided to the second level encoding circuit 114 applying the second group component matrix to yield the second level encoded output (p1) 126 or output codeword.
A selector or switch 130 selects either the first level encoded output (p2) 112 or the second level encoded output (p1) 126 at various stages of the encoding process to form the output codeword 132. The switch 130 selects the first level encoded output (p2) 112 from the first level encoding circuit 110 as each sector is encoded using each column of the prepared parity check matrix 106 but the final, and selects the second level encoded output (p1) 126 as the last sector is encoded using the final column of the prepared parity check matrix 106. The output codeword 132 thus includes encoded data (or parity bits to be added to the corresponding data sectors in user data set 102) that has been encoded using the first group component matrices for all but the final sector, and encoded data that has been encoded using both the first and second group component matrices in a multi-stage encoding operation for the final sector.
Output codeword 132 is provided to a medium 140. Medium 140 may be, but is not limited to, a magnetic storage medium, a wireless transmission medium, a wired transmission medium, an optical transmission medium, or the like. Based upon the disclosure provided herein, one of ordinary skill in the art will recognize a variety of medium and combinations of mediums that may be used in relation to different embodiments of the present invention.
Turning to
A component matrix from parity check matrix 200 is applied to a data sector in an encoder circuit 104 to yield a codeword C, and a syndrome S is calculated for the codeword C by taking the dot product of the codeword C vector with a component matrix H (e.g., H13), or S=C·H13. The syndromes or syndrome vectors calculated using the component matrices from the first component matrix group 202 converge in a decoder to 0 to indicate correct data values, and converge to non-zero values to indicate the presence of errors. However, syndromes calculated using the component matrices from the second component matrix group 204 converge in a decoder to non-zero values even when no errors exist.
During operation, a large sector is divided into a number of smaller sectors, each to be encoded using a component matrix from the first component matrix group 202 from a different column in the parity check matrix 200 corresponding to the smaller sector being encoded. The last smaller sector, encoded during the final column of the parity check matrix 200 (which may be but is not necessarily the right-most column), is encoded differently, using both the component matrix from the first component matrix group 202 and the component matrix from the second component matrix group 204, or HL=[H1L;H2L] in a multi-stage encoding process.
Although syndromes for codewords generated using an encoding process based only on a component matrix from the first component matrix group 202 converge to 0 in the absence of errors, the syndrome for the multi-stage encoding process disclosed herein is based on the XOR of all the non-zero syndromes for each column, generated by taking the dot product of the codeword C vector with the corresponding component matrix from the second component matrix group 204. In other words, the first component matrix group 202 is used for encoding in all columns but the final, and the second component matrix group 204 is used for calculating non-zero syndromes. In the final column, both the first component matrix group 202 and second component matrix group 204 are used for encoding using a multi-stage encoding process, with the syndrome for the final column converging to [0;S], where S is the XOR of each syndrome calculated for all other columns in the parity check matrix 200, using the component matrix from the second component matrix group 204. The resulting syndrome for the overall encoded large sector based on the parity check matrix 200 will converge to 0 in the absence of errors. The total overall codeword for the large sector includes the codewords generated by the encoding process for the small sectors using one column of the parity check matrix 200 for each.
Turning to
Turning to
Once the process has reached the last of the L sectors (block 514), the last sector L is encoded based on a component matrix HX=[H1L;H2L], with the syndrome SL for the last column converging to [0;S] (block 522). The overall syndrome converges to 0 for error-free data. The codeword for the L sectors is then output (block 524) to be stored or transmitted.
The encoding of the last sector is performed using the same encoding algorithm as the other sectors, although it is encoded using component matrices from both groups, e.g., using component matrix HX=[H1L;H2L], which is a column-wise overlapping of two component matrices. The encoding using component matrix HX=[H1L;H2L] may be performed in any suitable manner, such as but not limited to that disclosed in
Turning to
In operation, data encoding circuit 104 applies a first level encoding algorithm to user data input (u) 102. This encoding algorithm includes parity information with user data input (u) 102 such that the following equation is made true:
The second level encoding algorithm is applied to user data input (u) 102. This encoding algorithm includes parity information with user data input (u) 102 such that the following equation is made true:
In one embodiment of the present invention, Hp11 is a 4×4 circulant with full rank and the inversion of Hp11 (i.e., Hp11 Inv) is a sparse circulant matrix.
Rearranging the combination of the H1 and H2 portions of the above mentioned equations yields the following:
(−Hp21×Hp11Inv×H1×C)+(H2×C)≡0;
[0(−Hp21×Hp11Inv×Hp12+Hp22)(−Hp21×Hp11Inv×Hu1+Hu2)]×C≡0; and
[0(Hp22)(−Hp21×Hp11Inv×Hu1+Hu2)]×C≡0.
In some embodiments of the present invention, {tilde over (H)}p22 is a 192×192 sparse matrix. The resulting equation from above can be further expanded as follows:
where
{tilde over (H)}u2=−Hp21×Hp11Inv×Hu1+Hu2.
In some embodiments of the present invention, Hp21, Hp11 Inv, Hu1, and Hu2 are all sparse circulant matrices. If {tilde over (H)}p22 is not a full rank matrix, the full rank base matrix {tilde over (H)}p22 which has the same rank as {tilde over (H)}p22 is found in accordance with the above mentioned equation.
In some embodiments of the present invention, the inverse of {tilde over (H)}p22 (i.e., {tilde over (H)}p22 Inv) may be used to implement encoder circuit 104. Turning to
S11=Hu1×u.
Hu1 is a sparse matrix in circulant form. In turn, S11 is provided to a sparse circulant vector multiplier circuit 810 that multiplies it by an inverse of an Hp11 parity matrix portion (Hp11 Inv) maintained in a second vector memory 840 to yield an interim output S21′ in accordance with the following equation:
S21′=Hp11Inv×Hu1×u.
Hp11 Inv is a sparse matrix in circulant form. In turn, S21′ is provided to a sparse circulant vector multiplier circuit 814 that multiplies it by the negative of an Hp21 parity matrix portion (−Hp21) maintained in a third vector memory 842 to yield an interim output S21 in accordance with the following equation:
S21=−Hp21×Hp11Inv×Hu1×u.
−Hp21 is a sparse matrix in circulant form.
In parallel, user data input (u) 202 is provided to a sparse circulant vector multiplier circuit 846 that multiplies it by an Hu2 parity matrix portion maintained in a fourth vector memory 856 to yield an interim output S22 in accordance with the following equation:
S22=Hu2×u.
The interim outputs S21 and S22 are provided to an array adder circuit 820 that sums the received vectors to yield another interim output S2 in accordance with the following equation:
S2=(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u).
Interim output S2 is provided to a dense circulant multiplier circuit 824 that multiplies S2 by an inverse of an {tilde over (H)}p22 parity matrix portion ({tilde over (H)}p22 Inv) maintained in a fifth vector memory 852 to yield an interim output p2 in accordance with the following equation:
P2={tilde over (H)}p22Inv×[(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u)]=−S2.
In one particular embodiment of the present invention, {tilde over (H)}p22 Inv is a dense circulant matrix having a reduced size compared with Hp22. For example, where Hp22 is a 192×192 matrix, {tilde over (H)}p22 Inv may be a 96×96 matrix.
Interim output P2 is provided to a sparse circulant vector multiplier circuit 860 that multiplies it by an Hp 12 parity matrix portion maintained in a sixth vector memory 874 to yield an interim output S12′ in accordance with the following equation:
S12′=(Hp12)×{tilde over (H)}p22Inv×[(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u)].
Interim output S12′ is an array adder circuit 864 that sums the received vectors to yield another interim output S12 in accordance with the following equation:
S12=(Hp12)×{tilde over (H)}p22Inv×[(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u)]+u.
Interim output S12 is then provided to a sparse circulant vector multiplier circuit 870 that multiplies it by an Hp11 Inv parity matrix portion maintained in a seventh vector memory 878 to yield an encoded output P1 in accordance with the following equation:
P1=Hp11Inv×[(Hp12)×{tilde over (H)}p22Inv×[(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u)]+u],
Which satisfies the equation:
Accordingly, the implementation of multi-stage non-binary encoding circuit 800 yields the same output as encoder circuit 104.
Turning to
where:
{tilde over (H)}u2=−Hp21×Hp11Inv×Hu1+Hu2; and
P2={tilde over (H)}p22×[(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u)].
The user data input (u) is multiplied by the Hu1 parity matrix portion to yield and S11 vector (block 904), and is multiplied by Hu2 to yield an S22 vector (block 912). The S11 vector and the S12 vector are respectively represented by the following equations:
S11=Hu1×u; and
S22=Hu2×u
In turn, the S11 vector is multiplied by the Hp11 Inv parity matrix portion to yield an S21′ vector (block 910) in accordance with the following equation:
S21′=Hp11Inv×Hu1×u.
The S21′ vector is multiplied by the negative of the Hp21 parity matrix portion to yield an S21 vector (block 916) in accordance with the following equation:
S21=−Hp21×Hp11Inv×Hu1×u.
The S21 vector is vector added to the S22 vector to yield an S2 vector (block 916) in accordance with the following equation.
S2=[(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u)].
The S2 vector is then multiplied by the {tilde over (H)}p22 Inv parity matrix portion to yield a vector P2 (block 920) in accordance with the following equation:
P2={tilde over (H)}p22×[(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u)].
The P2 vector is then multiplied by the Hp12 vector to yield an S12′ vector (block 922) in accordance with the following equation:
S12′=Hp12×{tilde over (H)}p22×[(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u)].
The S12′ vector is then added to the S11 vector to yield an S12 vector (block 924) in accordance with the following equation:
S12=Hu1×u+Hp12×{tilde over (H)}p22×[(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u)].
The S12 vector is then multiplied by the Hp11 Inv parity matrix portion to yield a vector P1 (block 925) in accordance with the following equation:
P1=Hp11Inv×[Hu1×u+Hp12×{tilde over (H)}p22×[(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u)]],
which is equivalent to:
where:
Hu2=−Hp21×Hp11Inv×Hu1+Hu2; and
P2={tilde over (H)}p22×[(−Hp21×Hp11Inv×Hu1×u)+(Hu2×u)].
The resulting vector P1 is provided as a multi-stage non-binary encoded codeword (block 930). This codeword may be stored to a storage medium or transferred via a transmission medium.
Turning to
In operation, a data input 1005 is provided to transmitter 1010. Multi-stage encoder circuit 1012 encodes the received data input and provides an encoded output to data transmission circuit 1014. Data transmission circuit 1014 converts the data into a radio frequency signal 1090 that is transmitted via transmission medium 1070. Receiver 1050 receives the radio frequency signal that is processed by data read circuit 1018. Such processing includes data decoding by decoder 1016. Ultimately, the decoded data is provided as a data output 1045 which corresponds to data input 1005.
Turning to
In addition, data storage system 1100 includes a preamplifier 1170 that amplifies a minute electrical signal received from a read/write head assembly 1176. Read/write head assembly 1176 is disposed in relation to disk platter 1178. Data storage system 1100 also includes an interface controller 1120, a hard disk controller 1166, a motor controller 1168, and a spindle motor 1172. Interface controller 1120 controls addressing and timing of data to/from disk platter 1178. The data on disk platter 1178 consists of groups of magnetic signals that may be detected by read/write head assembly 1176 when the assembly is properly positioned over disk platter 1178. In one embodiment, disk platter 1178 includes magnetic signals recorded in accordance with a perpendicular recording scheme. In other embodiments of the present invention, disk platter 1178 includes magnetic signals recorded in accordance with a longitudinal recording scheme.
In a read operation, read/write head assembly 1176 is accurately positioned by motor controller 1168 over a desired data track on disk platter 1178. Motor controller 1168 both positions read/write head assembly 1176 in relation to disk platter 1178 and drives spindle motor 1172 by moving read/write head assembly to the proper data track on disk platter 1178 under the direction of hard disk controller 1166. Spindle motor 1172 spins disk platter 1178 at a determined spin rate (RPMs). Once read/write head assembly 1178 is positioned adjacent the proper data track, magnetic signals representing data on disk platter 1178 are sensed by read/write head assembly 1176 as disk platter 1178 is rotated by spindle motor 1172. The sensed magnetic signals are provided as a continuous, minute analog signal representative of the magnetic data on disk platter 1178. This minute analog signal is transferred from read/write head assembly 1176 to data read circuit 1118 of read channel circuit 1110 via preamplifier 1170. Preamplifier 1170 is operable to amplify the minute analog signals accessed from disk platter 1178. In turn, data read circuit 1118 decodes the received information using decoder 1116 as part of a process of digitizing the received analog signal to recreate the information originally written to disk platter 1178. This data is provided as read data 1103 to a receiving circuit.
A write operation is substantially the opposite of the preceding read operation. In particular, write data 1101 is received by data write circuit 1111 of read channel circuit 1110. Write data 1101 is encoded by encoder circuit 1112, and the encoded data is provided to a data write circuit 1114. Data write circuit 1114 drives the encoded data to preamplifier 1170. The data amplified by preamplifier 1170 are provided to read/write head assembly 1176 that generates a corresponding magnetic field that is recorded on disk platter 1178 at locations controlled by motor controller 1168.
It should be noted that storage system 1100 may be integrated into a larger storage system such as, for example, a RAID (redundant array of inexpensive disks or redundant array of independent disks) based storage system. Such a RAID storage system increases stability and reliability through redundancy, combining multiple disks as a logical unit. Data may be spread across a number of disks included in the RAID storage system according to a variety of algorithms and accessed by an operating system as if it were a single disk. For example, data may be mirrored to multiple disks in the RAID storage system, or may be sliced and distributed across multiple disks in a number of techniques. If a small number of disks in the RAID storage system fail or become unavailable, error correction techniques may be used to recreate the missing data based on the remaining portions of the data from the other disks in the RAID storage system. The disks in the RAID storage system may be, but are not limited to, individual storage systems such as storage system 1100, and may be located in close proximity to each other or distributed more widely for increased security. In a write operation, write data is provided to a controller, which stores the write data across the disks, for example by mirroring or by striping the write data. In a read operation, the controller retrieves the data from the disks. The controller then yields the resulting read data as if the RAID storage system were a single disk.
A data decoder circuit used in relation to read channel circuit 1110 may be, but is not limited to, a low density parity check decoder circuit as are known in the art. Such low density parity check technology is applicable to transmission of information over virtually any channel or storage of information on virtually any media. Transmission applications include, but are not limited to, optical fiber, radio frequency channels, wired or wireless local area networks, digital subscriber line technologies, wireless cellular, Ethernet over any medium such as copper or optical fiber, cable channels such as cable television, and Earth-satellite communications. Storage applications include, but are not limited to, hard disk drives, compact disks, digital video disks, magnetic tapes and memory devices such as DRAM, NAND flash, NOR flash, other non-volatile memories and solid state drives.
It should be noted that the various blocks discussed in the above application may be implemented in integrated circuits along with other functionality. Such integrated circuits may include all of the functions of a given block, system or circuit, or only a subset of the block, system or circuit. Further, elements of the blocks, systems or circuits may be implemented across multiple integrated circuits. Such integrated circuits may be any type of integrated circuit known in the art including, but are not limited to, a monolithic integrated circuit, a flip chip integrated circuit, a multichip module integrated circuit, and/or a mixed signal integrated circuit. It should also be noted that various functions of the blocks, systems or circuits discussed herein may be implemented in either software or firmware. In some such cases, the entire system, block or circuit may be implemented using its software or firmware equivalent. In other cases, the one part of a given system, block or circuit may be implemented in software or firmware, while other parts are implemented in hardware.
In conclusion, the invention provides novel systems, devices, methods and arrangements for data processing. While detailed descriptions of one or more embodiments of the invention have been given above, various alternatives, modifications, and equivalents will be apparent to those skilled in the art without varying from the spirit of the invention. Therefore, the above description should not be taken as limiting the scope of the invention, which is defined by the appended claims.
The present application claims priority to (is a non-provisional of) U.S. Pat. App. No. 61/780,125, entitled “Systems and Methods for Multi-Stage Encoding Of Concatenated Low Density Parity Check Codes”, and filed Mar. 13, 2013 by Li et al, the entirety of which is incorporated herein by reference for all purposes.
Number | Date | Country | |
---|---|---|---|
61780125 | Mar 2013 | US |