1. Field of the Invention
The invention relates to an architecture for a Reed Soloman decoder with improved efficiency.
2. Background
Reed Soloman codes are error-correcting codes used to improve the robustness of communication and storage systems. A data stream, consisting of k m-bit symbols, is typically protected against errors by appending r m-bit redundant symbols, so that the concatenated stream of n=k+r m-bit symbols forms a Reed Solomon codeword. Some symbols of the transmitted or stored codeword may be erroneous when recovered, and if the number of erroneous symbols is small enough, they can be found and corrected by a Reed Solomon decoder.
In some systems, the recovery circuitry generates a measure of each symbol's reliability as the recovered symbols are produced. If a symbol is regarded as unreliable, an erasure flag is generated to indicate its location to the Reed Solomon decoder. If s flagged and t unflagged erroneous symbols are recovered, a Reed Solomon decoder designed to process these erasure flags is capable of correcting the errors if 2t+s<=r . We refer to such a decoder as an error-and-erasure decoder.
In other systems the recovery circuitry does not process erasure flags, and such a decoder is therefore referred to as an error-only decoder. If t erroneous symbols (i.e., t errors) are recovered, an error-only Reed Solomon decoder is capable of correcting the errors if 2t<=r.
A typical Reed-Solomon error-correction system utilizes an encoder and decoder. The encoder inputs the k data symbols and appends the r redundant symbols in such a manner that the n symbols of a Reed-Solomon codeword can be regarded a the coefficients of a polynomial of degree n−1, which is a multiple of a generator polynomial of degree r−1. The roots of the generator polynomial are consecutive powers of a so-called primitive element, as it is commonly known in the literature, which is commonly referred to as α. These roots are
{αIr0, αIr0+1, αIr0+2, . . . , αIr0+r−1},
where Ir0 is an arbitrary logarithm in base α of the first root. In transmission or storage, some of the codeword symbols may be corrupted when received at the decoder.
A typical decoder architecture consists of three processing units. The first is referred to here as a syndromer, whose purpose is to calculate the so-called syndromes, as they are known in the literature, from the received vector. The syndromes are the coefficients of the Fourier transform of an error vector that the syndromer computes from the received vector. The syndromer typically requires one clock cycle per recovered symbol. The second is referred to here as a polynomial determining unit (PDU), and typically dominates the VLSI area of the decoder. The PDU determines various polynomials from the syndromes, depending upon the algorithm employed, including an error locator polynomial. The third processing unit is referred to here as a Chien searcher, which also typically requires one clock cycle per recovered symbol. The function of the Chien searcher is to find roots of the error locator polynomial, in order to locate the errors.
For high throughput, a PDU architecture is desired which can process a Reed Solomon codeword within a number of clock cycles equal to the number of symbols in a codeword, n. Early Reed-Solomon decoders utilized a single centralized Galois Field multiplier as part of a specialized arithmetic logic unit to perform the PDU functions. In this case, the problem of determining the polynomials from the syndromes is proportional in multiplications to the square of t, denoted O(t2), where t is the number of errors to be corrected. However, as the maximum number of errors, tmax, to be corrected has grown, the number of clock cycles to perform the PDU functions in these early implementations has exceeded n. Therefore, the focus today is on PDU architectures which utilize O(t) parallel multipliers and require O(t) clock cycles to determine the polynomials.
Berlekamp and Massey described algorithms for decoding Reed Solomon codes by determining certain polynomials. Although these algorithms have been slightly refined over time, they are still generally referred to in the literature as the Berlekamp-Massey algorithm. Typical implementations of the Berlekamp-Massey algorithm use the syndromes to determine an error locator polynomial, Λ(z) , and an error evaluator polynomial, Ω(z). As described by Berlekamp, the calculation of these two polynomials uses two additional scratch polynomials, A(z) and B(z). Each of the polynomials is approximately of degree t.
Later, Blahut described a method of determining Λ(z) from the syndromes using only the scratch polynomial B(z). Ω(z) was then determined in an additional step, convolving the syndrome polynomial S(z) with the locator polynomial, i.e., Ω(z)=S(z)·Λ(z). Further, Horiguchi showed that it is not necessary to determine the polynomial Ω(z); the errors can be directly determined from Λ(z) and one of the scratch polynomials used to produce it, B(z). Berlekamp's storage of two polynomials or Blahut's additional convolution can be eliminated to increase efficiency.
Feng revised Horiguchi's algorithm to make it more regular and suitable for VLSI implementation. To achieve this, Feng reformulated the algorithm and used a special circuit to calculate a scaling factor, Bp. This was done to prevent an overflow in the scratch polynomial B(z). An advantage of Feng's architecture is that the storage for iterative development of various polynomials is minimized, where the total storage is r m-bit registers used to hold the syndromes, tm-bit registers used to hold iterative solutions for Λ(z), and t m-bit registers used to hold iterative solutions for B(z), for a total of approximately 4tm registers in the polynomial determination unit. A disadvantage of Feng's architecture is that it uses 3t multipliers, and these multipliers dominate the VLSI area of the PDU.
Fredrickson described a PDU architecture which used approximately 2t multipliers in a shared fashion for reduced area while retaining approximately the same iteration time as Feng. The overall area and hence efficiency was improved, but the storage requirements for polynomials was larger than in Feng's architecture.
In accordance with the principles of the present invention, a decoder for error correcting codes comprises a syndrome calculation circuit. A polynomial determining unit calculates polynomials from an output of the syndrome calculation circuit. The polynomials include at least one polynomial that is rotated if the one polynomial overflows.
A correction circuit for a decoder for error correcting codes in accordance with another aspect of the present invention comprises a correction circuit to evaluate an error evaluation polynomial. The correction circuit comprises a first multiplier employed when a scratch polynomial has overflowed, and a second multiplier different from the first multiplier employed when the scratch polynomial has not overflowed.
A method of decoding error correcting codes in accordance with yet another aspect of the present invention comprises calculating a plurality of syndromes. A plurality of polynomials are calculated from the calculated plurality of syndromes. At least one of the calculated plurality of polynomials is rotated if the polynomial overflows.
A method of correcting errors for decoding error correcting codes in accordance with still another aspect of the present invention comprises calculating an error evaluation polynomial comprising a plurality of coefficients. Each of the plurality of coefficients of the error evaluation polynomial is multiplied by a first factor if each coefficient has overflowed. Each of the plurality of coefficients of the error evaluation polynomial is multiplied by a second factor different from the first factor if each coefficient has not overflowed, whereby the error evaluation polynomial is evaluated.
Features and advantages of the present invention will become apparent to those skilled in the art from the following description with reference to the drawings, in which:
In accordance with the principles of the present invention, a highly efficient PDU architecture is provided which uses a total of t multipliers in a shared fashion for reduced area while retaining approximately the same iteration time and polynomial storage efficiency of Feng. This is achieved by sharing a single multiplier in each ‘slice’ of the circuit and employing it three times in successive clock cycles.
In addition, a proprietary alternative to Feng's scaling factor circuitry is disclosed which incorporates rotation of the scratch polynomial B(z) when B(z) overflows, and employs a modified Chien searcher with specialized dual constant multipliers to multiply by two different factors according to whether or not B(z) has overflowed, to eliminate the determination of the scaling factor Bp.
In a preferred embodiment of the invention, the described architecture does not process erasure flags, and is therefore an error-only decoder. If t erroneous symbols (i.e., t errors) are recovered, the disclosed Reed Solomon decoder is capable of correcting the errors if 2t<=r. However, the architecture disclosed here is easily extended to an error-and-erasure decoder with improved efficiency, combining the methods of the disclosed architecture with erasure locator polynomial pre-processing methods that are well-known in the art.
The Berlekamp-Massey algorithm, as discussed in the Background of the Invention, for determining polynomials Λ(z) and B(z) from the syndromes is shown as a flowchart here for reference in
A(z)=ΣAizi
In
B(i+1)(z)←zBi(z)
indicates that the B coefficients are updated in a shifting operation,
B0(i+1)=0,B1(i+1)=B0i,B2(i+1)=B1i, . . . , Br(i+1)=B(r−1)i
and the notation
U(i+1)(z)←ROTATED [Ui(z)]
indicates that the U coefficients are updated in a shifting operation, with the highest degree coefficient shifting to the lowest degree,
In
In step 120, the outputs of tmax multipliers, which scale coefficients of the current Λj(z) by various coefficients of U, are summed to produce a so-called discrepancy, Δ, while the coefficients of B are shifted.
The result of step 120 is used in step 130. When Δ≠0, tmax multipliers scale the coefficients of the current B1(z) by Δ to produce an additive change in the coefficients of Λ1(z) . In addition, a non-zero Δ can be inverted to produce Φ=1/Δ, the coefficients of B are loaded with the coefficients of Λ1(z) if a logical condition is true, and the coefficients of U are rotated.
The results of step 130 are used in step 140. If the logical condition is true, the integer j is updated and tmax multipliers scale the coefficients of B(i+1)(z) by Φ to normalize them. The iteration counter i is incremented.
In step 150, i is compared to r, and if i<r, the algorithm proceeds with the next iteration, and otherwise the polynomials Λ(z) and B(z) have been determined and are output in step 160.
The roots of the polynomial Λ(z) yield the error locations in that
Λ(α−i)=0
implies that the codeword symbol with index n−1−i is in error, where n is the number of symbols in the codeword. When Λ(α−1)=0, the codeword symbol with index n−1−i is corrected by adding the error value,
e(n−1−i)=α(−i)(r+lr0−1)/((B(α−i)Λodd(α−1))
where Λodd(z) is the polynomial obtained from Λ(z) by deleting all terms with even powers of z. When lr0 is chosen so that r+lr0−1 is the multiplicative order of α in the Galois field, the formula simplifies to
e(n−1−i)=1/((B(α−i)Λodd(α−i)
A shortcoming of the algorithm as shown in
The algorithm of
In
B(z)=zpA(z).
When Λ(α−i)=0 , the codeword symbol with n−i−1 is corrected by adding the error value,
e(n−1−i)=α(−i)(r+lr0−1)/((α−ipA(α−i)Λodd(α−i))
=α(−i)(r+lr0−1−p)/((A(α−i)Λodd(α−i))
Feng's circuit implementation is shown in
The partial view of Feng's BMA block in
The remaining circuitry in Feng's BMA block is shown in
A preferred algorithm according to the invention is shown in
In
In general, at the beginning of an iteration (at the start of step 320), register 446 holds a syndrome value denoted Uj, register 444 holds a term of the locator polynomial Λ, register 442 holds a term of the B polynomial, and register 442 holds a flag that shows if the term of the B polynomial has resulted from an overflow during rotation. Slice k holds the coefficients of zk in the polynomials B(z) and Λ(z).
At the start of decoding, the signal init is asserted, which loads registers 440, 442, and 444 with all zeroes, and register 446 with an external syndrome term at the rising edge of the clock. All slices except for the implied first one are initialized in this way. The initial value of Λ(z) is 1, so all slices except for the implied first one are set to zero. Similarly, the initial B(z) is 1. After initialization, the signal init is reset to zero for the remainder of decoding, and 2t three-step iterations are performed to complete the decoding, where t is the maximum number of errors to be corrected.
At the start of iteration step 320, control signals m0sel, m1sel and m2sel are all asserted (set to 1), while signals m3sel, m4sel and m5sel are deasserted (set to 0). The product muloutk is the Galois field product of a term of U and a term of Λ, which is summed with all such terms from all slices in an external Galois Field adder to form the discrepancy. At the end of iteration step 320, is loaded into an external register that feeds back the registered signal to the slices. Also, at the end of the iteration step 320, the terms of the three polynomials U, B and 7 are rotated within a slice, so that the term of 7 moves to register 446, a term of B moves up to register 444, and a term of U is in register 442. The B<k> output of slice k is connected to the Binput<k+1> of slice <k+1>. As these B terms are registered, the terms of B are shifted ahead from one slice to the next, accomplishing the
B(i+1)(z)←ROTATED [Bi(z)]
function. In this function, the modified B′(z) is zB(z), where the highest order term, if it overflows, is shifted back to the lowest order slice, setting the accompanying o(z) flag.
At the start of iteration step 330, control signals m1sel, m2sel and m5sel are all asserted (1), while control signals m4sel and m0sel are deasserted (0). Signal m3sel may or may not be asserted. The product muloutk is the Galois Field product of a term of B and discrepancy ). The Galois Field sum Λk⊕(Δ{circle around (×)}Bk) is one term of the function
Λ(i+1)(z)←Λi(z)+ΔB(i+1)(z),
which is loaded in register 442 at the end of iteration step 330. The terms of U are shifted ahead from one slice to the next, accomplishing the function:
U(i+1)(z)←ROTATED [Ui(z)]
one of the terms of which is loaded in register 444 at the end of iteration step 330. These are shifted from one slice to the next using the same Binput<k+1> and B<k> inter-slice connections used to shift B in iteration step 320. The value in register 440 is unmodified.
Register 446 may take one of two values. This depends upon the expression:
((Δ≠0) AND (2j<=i))
in
B(i+1)(z)←Λi(z).
If m3sel is deasserted, the value of register 446 is updated at the end of iteration step 330 by taking on the value Bk that was in register 444 at the end of iteration step 320. At the same time, an external circuit performs a Galois field inversion on the quantity Δ, inverts the least significant bit of the result, and loads the modified inversion, denoted delinvp1, in an external register at the end of iteration step 330. The inversion circuitry handles the case Δ=0 by loading the external register with a 1.
At the start of iteration step 340, m4sel is asserted, m0sel, m2sel, m3sel and m5sel are deasserted, and m1sel takes the same value that m3sel took in iteration step 330. The product muloutk is the Galois field product of a term of B and delinvp1. If m1sel is asserted, the input to register 442 is:
in a field of characteristic 2 like GF(256). This accomplishes the function
B(i+1)(z)←ΦB(i+1)(z)
in
Since m3sel is deasserted, register 446 takes on the value Uk that was in register 444 at the end of step 330. Since m2sel is deasserted, register 444 takes on the value Λk that was in register 442 at the end of step 330. Register 440 is unmodified.
In this manner, the updated polynomial terms B, Λ and U have returned to their original positions at the end of the three steps 320, 330 and 340 making up one iteration. After 2t such iterations, the polynomials B and Λ have taken their final values, and are used by the Chien search unit to determine error locations and values.
A unique feature of the slice shown in
To compare implementations, Feng's circuitry was sliced to contain one term of the equivalent Λ, A, and U and their associated logic. Table 1 compares the efficiency of the slice shown in
Outputs 5081, 5082, 5083, . . . , 50820 from slices 5001, 5002, 5003 . . . 50020, corresponding to multiplier output 458 in the exemplary slice shown in
The present invention also eliminates Feng's special circuit for calculating the numerator of the error value expression. To do this, the Applicants make a judicious choice of lr0 to use the simplified version of the error value expression, i.e., with numerator 1, and handle storage of the B polynomial in a proprietary fashion.
The polynomials B(z) and o(z) here are of the special form,
where o1 is 0 or 1, and neither polynomial has a constant term. The storage of a constant term for the polynomial B(z) is not required, because initialization of B(z) is performed by the OR gate 550 in the first cycle of Berlekamp-Massey iterations, as shown in
B(i+1)(z)←ROTATED [Bi(z)]
indicates that the coefficients are updated in a shifting operation, with the highest degree coefficient shifting to the coefficient of z,
A non-zero coefficient in the polynomial o(z) indicates that the corresponding term of the resulting polynomial B(z) is the result of overflowing the allotted storage.
Assuming that at most t errors have occurred, the resulting polynomial Λ(z) is identical to that of
In a Chien search unit, the polynomial B(z) is typically evaluated in a circuit as shown on the left hand side of
In a preferred embodiment of the invention as shown in
While the invention has been described with reference to the exemplary embodiments thereof, those skilled in the art will be able to make various modifications to the described embodiments of the invention without departing from the true spirit and scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
6119262 | Chang et al. | Sep 2000 | A |
Number | Date | Country | |
---|---|---|---|
20040059990 A1 | Mar 2004 | US |