Information
-
Patent Grant
-
6343367
-
Patent Number
6,343,367
-
Date Filed
Monday, March 29, 199925 years ago
-
Date Issued
Tuesday, January 29, 200222 years ago
-
Inventors
-
Original Assignees
-
Examiners
- Chung; Phung M.
- Chase; Shelly A
Agents
-
CPC
-
US Classifications
Field of Search
US
- 708 492
- 714 781
- 714 782
- 714 784
- 714 785
-
International Classifications
-
Abstract
An error correcting system for correcting “t” errors over GF(2m), where t is even and preferably greater than or equal to six, transforms the t-degree error locator polynomial c(x) into a polynomial t(x) in which at−1≈0, where ai is the coefficient of the xi term of the error locator polynomial and Tr(at−1)=1, where Tr(ai) is the trace of ai. The polynomial t(x) is factored into two factors, namely, one factor that is the greatest common divisor of t(x) and S(x)=∑i=0m-1x2i,and a second factor that is the greatest common divisor of t(x) and S(x)+1. The system determines the greatest common divisor of the polynomial and S(x) in two steps, first iteratively determining a residue R(x)≡S(x)mod t(x), and then calculating the greatest common divisor of t(x) and the lower-degree R(x). The system produces two factors of t(x), namely, g(x)=gcd(t(x), R(x)) and h(x)=t(x)g(x),and then determines the roots of the factors and transforms these roots into the roots of the error locator polynomial or, as necessary, continues factoring into factors of lower degree before determining the roots. When “t” is odd, the system represents the roots ri of the error locator polynomial as a linear combination of ri,kβk for k=0,1 . . . m−1, where ri,kεGF(2) and βk is an element of a dual basis for GF(2m) over GF(2), and Tr(αjβk) equals one when j=k and equals zero when jk. The rootsri are thenri=ri,0β0+ri,1β1+ . . . +ri,m−1βm−1and Tr(αjri)=∑k=0m-1ri,kTr(αjβk)=ri,jThe system next determines the greatest common divisor of the polynomial and S(αjx) by iteratively determining Rj(x)≡S(αjx)mod c(x), and then determining the greatest common divisor of c(x) and Rj(x). The system next determines two factors of c(x) as g(x)=gcd(c(x), Rj(x)) and h(x)=t(x)g(x)and finds the roots of the two factors.
Description
FIELD OF THE INVENTION
This invention relates generally to data processing systems and, more particularly, to a system for decoding and correcting errors in data using an error correction code.
BACKGROUND OF THE INVENTION
Data stored on magnetic media, such as a magnetic disks, are typically stored in encoded form, so that errors in the stored data can possibly be corrected. The errors may occur, for example, because of inter-symbol interference, a defect in the disk, or noise. As the density of the data stored on the disk increases, more errors are likely, and the system is thus required to correct greater numbers of errors, which include greater numbers of burst errors. The speed with which the system corrects the errors is important to the overall speed with which the system processes the data.
Prior to recording, multiple-bit data symbols are encoded using an error correction code (ECC). When the data symbols are retrieved from the disk and demodulated, the ECC is employed to, as the name implies, correct the erroneous data.
Specifically, before a string of k data symbols is written to a disk, it is mathematically encoded using an (n, k) ECC to form n-k ECC symbols. The ECC symbols are then appended to the data string to form an n-symbol error correction code word, which is then written to, or stored, on the disk. When the data are read from the disk, the code words containing the data symbols and ECC symbols are retrieved and mathematically decoded. During decoding, errors in the data are detected and, if possible, corrected through manipulation of the ECC symbols [for a detailed description of decoding see, Peterson and Weldon,
Error Correction Codes,
2nd Ed. MIT Press, 1972].
To correct multiple errors in strings of data symbols, the system typically uses an ECC that efficiently and effectively utilizes the various mathematical properties of sets of symbols known as Galois fields. Galois fields are represented “GF (P
M
)”, where “P” is a prime number and “M” can be thought of as the number of digits, base “P”, in each element or symbol in the field. P usually has the value 2 in digital computer and disk drive applications and, therefore, M is the number of bits in each symbol. The ECC's commonly used with the Galois Fields are Reed Solomon codes or BCH codes.
There are essentially four major steps in decoding a corrupted code word of a high rate Reed-Solomon code or a BCH code. The system first determines error syndromes that are based on the results of a manipulation of the ECC symbols. Next, using the error syndromes, the system determines an error locator polynomial, which is a polynomial that has the same degree as the number of errors. The system then finds the roots of the error locator polynomial and from each root determines the location of an associated error in the code word. Finally, the system finds error values for the error locations.
The steps of determining the syndromes and finding the error locations are the most time consuming in the error correction process. This invention relates to the step of finding the error locations.
“Fast” methods for finding four or fewer errors are known, and we have developed a system for finding 5 errors with the aid of a relatively small lookup table that is discussed in co-pending patent application IMPROVED FIVE-ERROR CORRECTION SYSTEM, Ser. No. 08/984,698 now U.S. Pat. No. 5,978,956. However, prior known systems that find the error locations for error locator polynomials of degree 6 or more perform time consuming Chien searches. A Chien search is a systematic trial and error approach that involves tying each element of the applicable Galois field as a root of the error locator equation. If the Galois Field is relatively large, the Chien search takes a long time, and thus, slows the error correction operation. An alternative to the Chien search is to use a lookup table that is entered with the 6 or more coefficients of the error locator polynomial. To correct even six errors, the associated lookup table is prohibitively large since it must include all possible distinct roots for the degree-six error locator polynomials. In GF(2
M
) the lookup table has (2
M
)
6
entries. For systems that use 8-bit symbols, the lookup table has (2
8
)
6
or 2
48
entries, with each entry including six 8-bit roots of the error locator polynomial. For many systems, the lookup table takes up too much storage space. This is particularly true as larger Galois Fields are used to protect more data. Indeed, some systems may require that no lookup table is used.
SUMMARY OF THE INVENTION
An error correcting system for correcting “t” errors over GF(2
m
), where t is even and preferably greater than or equal to six, transforms the t-degree error locator polynomial into a polynomial in which a
t−1
≠0, where a
i
is the coefficient of the x
i
term of the error locator polynomial. As necessary, the system further transforms the polynomial into one in which Tr(a
t−1
)≠0, where Tr(a
i
) is the trace of a
i
or a mapping of a
i
to an element of GF(2). Based on the non-zero trace of a
t−1
, there are an odd number of roots that have traces equal to 1 and an odd number of roots that have traces equal to 0, since the sum of the roots of the polynomial is equal to a
t−1
and the sum of the traces of the roots is equal to the trace of the sum.
The roots of the polynomial are elements of GF(2
m
), and all elements of GF(2
m
) with traces equal to 0 are roots of
and all elements with traces equal to 1 are roots of S(x)+1. Accordingly, the polynomial can be factored into two factors, namely, one factor that is the greatest common divisor of the polynomial and S(x) and a second factor that is the greatest common divisor of the polynomial and S(x)+1. If the two factors each have degrees less than or equal four, the system uses a fast method to determine the roots of each of the factors. The system then, as necessary, transforms these roots into the roots of the error locator polynomial. Otherwise, the system continues factoring until the degrees of the factors are less than or equal to some desired degree before it determines the roots of the factors.
Preferably, the system determines the greatest common divisor of the polynomial and S(x) in two steps, first iteratively determining a residue R(x)≡S(x)mod t(x), where t(x) is the polynomial that has the term a
t−1
with a trace of zero, and then calculating the greatest common divisor of t(x) and the lower-degree R(x). The system produces two factors of t(x), namely, g(x)=gcd(t(x), R(x)) and
The system then determines the roots of the factors and transforms these roots into the roots of the error locator polynomial or, as necessary, continues factoring into factors of lower degree before determining the roots. We discuss the iterative technique for determining R(x) in more detail below.
When the degree of the error locator polynomial is odd, the system represents the roots r
i
of the error locator polynomial as a linear combination of r
i,k
β
k
for k=0,1 . . . m−1, where r
i,k
εGF(2) and β
k
is an element of a dual basis for GF(2
m
) over GF(2). Using the dual basis, Tr(α
j
β
k
)=1 when j=k and equals 0 otherwise. The roots r
i
are then
r
i
=r
i,0
β
0
+r
i,1
β
1
+ . . . +r
i,m−1
β
m−1
and
The system determines a value for j for which the traces of the roots are not all zero or all one. The greatest common divisor of the error locator polynomial and S(α
j
x) then has a degree less than t, as does the greatest common divisor of the error locator polynomial and S(α
j
x)+1. The system next determines the greatest common divisor of the polynomial and S(α
i
x) by iteratively determining R
j
(x)≡S(α
j
x)mod c(x), where c(x) is the error locator polynomial, and then determining the greatest common divisor of c(x) and R
j
(x). If the degree of R
j
≧1, the divisor is also a non-trivial factor of c(x). The system next determines two factors of c(x) as g(x)=gcd(c(x), R
j
(x)) and
and finds the roots as discussed above. We discuss the iterative technique for determining R
j
(x) in more detail below.
BRIEF DESCRIPTION OF THE DRAWINGS
The invention description below refers to the accompanying drawings, of which:
FIG. 1
is a flow chart of the operations of determining the roots of an even-degree error locator polynomial;
FIG. 2
is a flow chart of the operations of the system for determining a residue;
FIG. 3
is a functional block diagram of a circuit for iteratively determining coefficient of the residue used by the system of
FIG. 2
;
FIG. 4
is a flow chart of the operations of the system for determining the roots of an odd-degree error locator polynomial;
FIG. 5
is a functional block diagram of a circuit for iteratively determining the coefficients of a residue used by the system of
FIG. 4
; and
FIG. 6
is a flow chart of the operations of the system that include steps of iteratively determining residues.
DETAILED DESCRIPTION OF AN ILLUSTRATIVE EMBODIMENT
An error correction system operating in accordance with the current invention produces in a known manner as error locator polynomial
c
(
x
)=
a
t
x
t
+a
t−1
x
t−1
+ . . . +a
t−2
x
t−2
+ . . . a
1
x+a
0
over GF(2
m
). If the degree t of the error locator polynomial is small enough, the system uses known fast methods to find the roots. Generally, the known fast methods find the roots of polynomials of degree 4 or less. If the degree t≧5, the system follows the operations of
FIG. 1
, if t is even, or
FIG. 4
if t is odd.
A. Even-degree Error Locator Polynomial
Referring now to
FIG. 1
if t is even (step
100
), the system checks if a
t−1
=0 (step
102
). If so, the system transforms c(x) into c
1
(x) with a
t−1
=1 (step
104
). Otherwise, the system goes on to step
106
.
As an example, c(x) is a degree 6 polynomial
c
(
x
)=
x
6
+a
5
x
5
+a
4
x
4
+a
3
x
3
+a
2
x
2
+a
1
x+a
0
with a
5
=0. In order for c(x) to have t distinct, non-zero roots, a
0
≠0. Further, at least one of a
1
and a
3
must be non-zero. Otherwise, c(x) is the square of a degree 3 polynomial. To transform c(x) into c
1
(x) with a
5
≠0, the system first checks that a
1
is non-zero. If so, the system produces
such that for each root r
i
of c
1
(x),
is a root of c(x).
When a
1
=0, the system checks if c(1)=0 and if so it directly factors c(x) into g(x)=x−1 and
which are, respectively, degree 1 and degree 5 polynomials. The system may then use a look-up table to determine the roots of h(x) or it may factor h(x) in accordance with the operations discussed below with reference to FIG.
4
.
With a
1
=0 and c(1)≠0, the system transforms c(x) into c
0
(x)=c(x+1):
c
0
(
x
)=
x
6
+(
a
4
+1)
x
4
+a
3
x
3
+(
a
3
+a
2
+1)
x
2
+a
3
x+c
(1),
and then transforms c
0
(x) into
such that for each root r
i
of c
1
(x),
is a root of c(x).
Once the system has produced a polynomial with a non-zero coefficient c
5
of x
5
, the system (step
106
) determines Tr(c
5
), where Tr is the trace, or a mapping, of an element of GF(2
m
) to an element of GF(2). The trace of y εGF(2
m
), which is defined as
is thus equal to 1 or 0.
Every element of GF(2
m
) is a root of x
2
m
−x. Each element is thus a root of one of the two factors of x
2
m
−x, namely,
and S(x)+1, which have no common factors. The trace of an element y is equal to S(y), and the element y is a root of S(x) if Tr(y)=0. Otherwise, the element y has a trace of 1 and is a root of S(x)+1.
There are an even number of roots of the polynomial. The sum of the roots is equal to c
5
, and if Tr(c
5
)=1, the sum of the traces of the roots is equal to 1. Accordingly, there are an odd number of the roots of the polynomial are also roots of S(x)+1, and at least one root of the polynomial that is also a root of S(x). The polynomial can thus be factored into at least a degree one factor and a degree five factor.
Referring still to
FIG. 1
, the system checks if the trace of c
5
is non-zero (step
106
). If so, the system factors the polynomial, call it c
2
(x) (step
107
), by determining the greatest common divisors of c
2
(x) and each of S(x) and S(x)+1. Preferably, the system, in step
110
, determines g(x)=gcd (S(x), c
2
(x)) and then, in step
112
, determines h(x)=gcd ((S(x)+1), c
2
(x)) as
The system next determines the roots of the factors (step
114
b
) and transforms the roots into the roots of the error locator polynomial c(x) essentially by reversing the transformation from c(x) to c
2
(x) (step
118
). Alternatively, before determining the roots, the system may continue factoring (steps
114
,
117
) until factors of degree 4 or less are produced.
If Tr(c
5
)=0, the system transforms the polynomial into one in which the trace of the coefficient of x
5
is equal to one (step
108
). Accordingly, the system selects an element z of GF(2
m
) for which Tr(z)=1 by, for example, trying successive powers of α
i
. In the example, the system transforms the polynomial c
1
(x) into c
2
(x) by first defining
and then determining c
2
(x)=γ
−6
c
1
(γx):
where c
i
′=c
iγ
i−6
for i=0, 1, . . . , 4, and for each root r
i
of c
2
(x), γr
i
is a root of c
1
(x). With the coefficient of x
5
in c
2
(x) having a trace of 1, c
2
(x) can be factored into g(x) and h(x), with each factor having degree five or less, as discussed above with reference to steps
110
-
116
.
Referring now to
FIG. 2
, the polynomial S(x) has a degree of 2
m−1
, and determining the greatest common divisor of S(x) and c
2
(x) is very time consuming. To reduce the time involved, the system preferably produces (step
202
) a residue R(x)≡S(x) mod c
2
(x), which necessarily has a degree that is less than the degree of c
2
(x), and then (step
204
) determines g(x)=gcd (R(x), c
2
(x)) using, for example, the Euclidean algorithm.
In the example m=4, and GF(2
4
) is generated by x
4
+x+1 with α as a primitive element. For a degree 6 polynomial
c
1
(
x
)=
x
6
+α
9
x
5
+α
12
x
4
+α
3
x
3
+α
2
x
2
+α
4
x
+1
a selected element z=α
3
of GF(2
4
) with a trace 1, and
the system produces
With S(x)=x
8
+x
4
+x
2
+x, the residue R(x)=x
8
+x
4
+x
2
+x mod c
2
(x) or
R
(
x
)=α
10
x
5
+α
7
x
4
+α
4
x
3
+α
6
x
2
+α
9
x+α
7
The system then determines g(x)=gcd(R(x), c
2
(x))=x−α
10
. The remaining factor
The system may then determine the roots of g(x) and h(x), as discussed above, or it may continue to factor h(x), as discussed below with reference to FIG.
4
.
The degree of S(x)=2
m−1
, and the calculation of R(x) in a conventional manner requires 2
m−1
clock cycles, which is still too time consuming for many systems. Accordingly, the system preferably determines R(x) iteratively, taking advantage of the properties of S(x).
For
c
2
(
x
)=
x
6
+c
5
x
5
+c
4
x
4
+c
3
x
3
+c
2
x
2
+c
1
x+c
0
,
we define:
θ(
x
)≡
c
5
x
5
+c
4
x
4
+c
3
x
3
+c
2
x
2
+c
1
x+c
0
and
x
6
≡θ(
x
)mod
c
2
(
x
).
Using x
6
we can calculate x
8
mod c
2
(x)=x
2
*x
6
=x
2
θ(x)mod c
2
(x). We then define
x
8
mod
c
2
(
x
)≡θ
3
(
x
)=
b
3,5
x
5
+b
3,4
x
4
+b
3,3
x
3
b
3,3
x
3
+b
3,2
x
2
+b
3,1
x+b
3,0
where the coefficient identifier, for example, “3,5” indicates b
3,5
is the coefficient of the term x
5
in θ
3
. The coefficients we thus
b
3,5
=c
5
3
+c
5
c
4
+c
4
c
5
+c
3
=c
5
3
+c
3
b
3,4
=c
5
2
c
4
+c
5
c
3
+c
4
2
+c
2
b
3,3
=c
5
2
c
3
+c
5
c
2
+c
4
c
3
+c
1
b
3,2
=c
5
2
c
2
+c
5
c
1
+c
4
c
2
+c
0
b
3,1
=c
5
2
c
1
+c
5
c
0
+c
4
C
1
b
3,0
=c
5
2
c
0
+c
4
c
0
We can also calculate x
10
mod c
2
(x) as x
2
*x
8
=x
2
θ
3
(x)mod c
2
(x), and define
x
10
mod
c
2
(
x
)≡θ*(
x
)=
d
5
x
5
+d
4
x
4
+d
3
x
3
+d
2
x
2
+d
1
x+d
0
where
d
5
=(c
5
2
+c
4
)b
3,5
+c
5
b
3,4
+b
3,3
d
4
=(c
5
c
4
+c
3
)b
3,5
+c
4
b
3,4
+b
3,2
d
3
=(c
5
c
3
+c
2
)b
3,5
+c
3
b
3,4
+b
3,1
d
2
=(c
5
c
2
+c
1
)b
3,5
+c
2
b
3,4
+b
3,0
d
1
=(c
5
c
1
+c
0
)b
3,5
+c
1
b
3,4
d
0
=(c
5
c
0
)b
3,5
+c
0
b
3,4
Then, based on θ(x), θ
3
(x) and θ*(x), the system can iteratively calculate, in m−4 iterations, θ
i
(x)≡x
2
i
mod c
2
(x) for i=4,5, . . . m−1, as
Adding the θ
i
(x) terms and the terms for k=0, 1 and 2, the residue is:
The mod c
2
(x) operation is calculated with θ(x), θ
3
(x) and θ*(x) because the highest degree term at the completion of an iteration is degree 5, which in a next iteration is squared to degree 10 term.
FIG. 3
depicts a circuit
300
for iteratively calculating the coefficients R
1
, R
2
. . . R
5
of R(x) for a degree 6 error locator polynomial. Registers
303
-
307
are initialized with R
1
, R
2
and R
4
set to 1 and R
3
and R
5
set to zero. The set of multipliers
310
-
312
contain the coefficients d
5
, b
3,5
and c
5
, respectively, that are associated with the x
5
term in each of the polynomials θ(x), θ
3
(x) and θ*(x). The remaining sets of multipliers
318
-
320
,
322
-
324
,
326
-
328
and
330
-
332
contain, respectively, the coefficients associated with the x
4
, x
3
, x
2
, x
1
and x
0
terms in each of the polynomials θ*(x), θ
3
(x) and θ(x).
The registers
360
5
,
360
4
,
360
3
,
360
2
,
360
1
, and
360
0
are initially set to the coefficients of the associated terms of θ
3
(x) which are, respectively, the coefficients line break b
i−1,5
. . . b
i−1,0
for the iteration i=4. These registers are then updated in each iteration, and the updated values are added to the contents of the registers
303
-
307
. The sums then update the registers
303
and
307
. After m−3 iterations, the registers
303
-
307
contain the coefficients of the residue R(x).
More specifically, during a first iteration the contents of the registers
360
j
, are each squared in multipliers
362
. The product (b
3,5
)
2
is supplied over line
380
to the multipliers
310
,
314
,
318
,
322
,
326
and
330
to produce the coefficients of (b
i−1,5
)
2
θ*(x). At the same time the product (b
3,4
)
2
is supplied over line
382
to multipliers
311
,
315
,
319
,
323
,
327
and
331
to produce the coefficients of (b
i−1,4
)
2
θ
3
(x) and the product (b
3,3
)
2
is supplied over line
384
to the multipliers
312
,
316
,
320
,
324
,
328
and
332
to produce the coefficients of (b
i−1,3
)
2
θ(x). The products (b
3,2
)
2
, (b
3,1
)
2
and (b
3,0
)
2
are, respectively, supplied to adders
344
,
350
and
356
which are associated with the coefficients of x
4
x
2
and x
0
. The adders
340
,
342
,
344
,
346
,
348
,
350
,
352
and
354
then add the associated products, and the sums are next added to various products and sums in adders
341
,
343
,
347
,
349
,
353
and
355
, with the sum produced by the adder
355
added to the product (b
3,0
)
2
in an adder
356
. The sums update the contents of the registers
360
j
as the coefficients b
4j
required for the next iteration, and the updated coefficients are then added, respectively, to the contents of the registers
302
-
307
, to produce the updated coefficients of R(x) for the current iteration.
The circuit
300
iteratively updates the coefficients of R(x) for the remaining clock cycles i=5, 6 . . . m−1 . . . m−1. Accordingly, the residue R(x) is calculated in m−3 clock cycles after θ*(x), θ
3
(x) and θ(x) are determined. If conventional circuits are used to produce θ*(x), θ
3
(x) and θ(x), the residue R(x) is calculated in approximately m+14 clock cycles rather than the 2
m−1
clock cycles required by known prior systems. The current system then determines g(x)=gcd (R(x), c
2
(x)) in a conventional manner, and produces the associated roots of g(x) and h(x) as discussed above.
For systems that can correct more errors, the circuit
300
contains additional registers and associated multipliers and adders that include in the iterations the coefficients of additional polynomials θ
4
(x), θ
5
(x) . . . , θ
u
(x), and θ*
i
, θ*
i+1
. . . that correspond to x
t
, x
t+2
. . . x
2(t−1)
, where u=┌ln t┐.
For example, a system that corrects up to 10 errors defines
x
10
≡θ(
x
)=
c
9
x
9
+c
8
x
8
+ . . . +c
0
and then calculates
x
12
=x
2
x
10
mod c(x)=x
2
θ(x)≡θ*
1
(x)
x
14
=x
2
x
12
mod c(x)=x
2
θ*
1
(x)≡θ*
2
x
16
=x
u
=x
2
x
12
≡θ
4
(x)
x
18
=x
2(t−1)
=x
2
x
16
≡θ*
3
Based on these polynomials the system can iteratively determine θ
k
mod c(x) for k=u,u+1 . . . m−1. Accordingly, the set of multipliers associated with each register
360
j
in the circuit for iteratively generating the coefficients of the residue includes the appropriate coefficients of the polynomials θ(x), θ*
1
(x), θ*
2
(x), θ*
4
(x) and θ*
3
(x) and produces the coefficients of:
B. Odd-degree Error Locator Polynomial
Referring now to
FIG. 4
, if the degree of the error locator polynomial is odd (step
400
), the system determines the roots using a dual basis β
0
, β
1
. . . β
m−1
over GF(2) rather than in the basis α
0
, α
1
. . . α
m−1
. In the dual basis,
The roots are then:
r
q
=r
q,0
β
0
+r
q,1
β
1
+r
q,2
β
2
+ . . . +r
q,m−1
β
m−1
for q=1, . . . t, and r
qj
εGF(2) for j=0 . . . , m−1, and
For t distinct roots, there exists a k
0
such that r
i,k
, r
2,k
. . . r
n,k
are not all ones or all zeros, and thus, there are two roots r
i
1
and r
i
2
out of the set of roots r
i
such that r
i
1
,
k
0
=1 and r
i
2
,
k
0
=0. The traces of α
k
0
r
i
1
and α
k
0
r
i
2
are then 1 and 0, which means that g(x)=gcd (S(α
i
x), c(x)) has degree of t−1 or less, as does h(x)=gcd (S(α
i
x)+1, c(x)). The system must, however, determine if g(x) is a non-trivial factor of c(x) to determine if c(x) can be factored.
Referring still to
FIG. 4
, the system (step
402
) determines a residue which is now R
i
(x)≡S(α
i
x)mod c(x). If R
i
(x)=0, c(x) divides S(α
i
x), and S(α
i
x)+1 and c(x) have no common divisor. If R
i
(x)=a, where a is a non-zero element of GF(2
m
), c(x) divides S(α
i
x)+1, and S(α
i
x) and c(x) have no common divisor. Thus, in either of these cases g(x) is a trivial factor of c(x). If, however, R
i
(x) has degree≧1, there exists a polynomial p
i
(x) such that
S
(α
i
x
)=
R
i
(
x
)+
c
(
x
)
p
i
(
x
)
and c(x) divides neither S(α
i
x) nor S(α
i
x)+1. Accordingly, g(x) is a non-trivial factor of c(x).
For R
i
(x) to have degree one or greater, the coefficients of the terms x
t−1
, x
t−2
, . . . , x cannot all be zeros. For
R
i
(
x
)=
R
i,t−1
x
t−1
+ . . . +R
i,1
x+R
i,0
the vector (R
i,t−1
, . . . R
i,1
) thus cannot equal the all 0 vector of R
i
(x), the system uses the polynomials θ(x), θ
3
(x) and so forth discussed above. As an example, for a degree 5 polynomial
c
(
x
)=
c
5
x
5
+c
4
x
4
+c
3
x
3
+c
2
x
2
+c
1
x+c
0
x
6
≡θ(
x
)mod
c
(x)=
v
4
x
4
+v
3
x
3
+v
2
x
2
+v
1
x+v
0
where
v
4
=c
4
2
+c
3
v
3
=c
4
c
3
+c
2
v
2
=c
4
c
2
+c
1
v
1
=c
4
c
1
+c
0
V
0
=c
4
c
0
and
x
8
≡θ
3
(
x
)=
x
2
θ(
x
)mod
c
(
x
)=b
3,4
x
4
+b
3,3
x
3
+b
3,2
x
2
+b
3,1
x+b
3,1
where
b
3,4
=b
4
2
+c
4
b
3
+b
2
b
3,3
=b
4
b
3
+c
3
b
3
+b
1
b
3,2
=b
4
b
2
+c
2
b
3
+b
0
b
3,1
=b
4
b
1
+c
1
b
3
+
b
3,0
=b
4
b
0
+c
0
b
3
There is no need to calculate θ*(x) because the highest degree per iteration is x
8
. Accordingly, the system determines θ
k
(x)≡x
2
k
mod c(x) for k=4, 5, . . . , m−1 as follows:
θ
k
(
x
)=
b
k,4
x
4
+b
k,3
x
3
+b
k,2
x
2
+b
k,1
x+b
k,1
=b
2
k−1,4
θ
3
(
x
)+
b
2
k−1,3
θ(
x
)+
b
2
k−1,2
x
4
+b
2
k−1,1
x
2
+b
2
k−1,0
Also, there exists a polynomial p
k
(x) such that
Generalizing,
for i=0, 1 . . . m−1, which implies that
and, therefore,
The system determines the set of coefficients for i=0, . . . m−1 and selects a value of i for which at least one of the coefficients is non zero (step
404
). The system then determines the greatest common divisor of R
i
(x) and c(x) and so forth (steps
406
-
412
).
The coefficients b
k,j
can be determined iteratively. Referring now to
FIG. 5
, sets of multipliers
602
-
603
,
604
-
605
,
606
-
607
,
608
-
609
and
610
-
611
multiply the products of b
2
i−1,4
by the coefficients of θ
3
(x) and θ(x). The products are then summed in adders
612
j
j=0 to t−1 and the sums associated with x
4
, x
2
and x are added to the products b
2
i,2
, b
2
i,1
and b
2
i,0
in adders
614
4
,
614
2
and
614
, respectively. The sums produced by these adders and the sums produced by the adders
612
3
and
612
, update the registers 616
j
; that hold the coefficients b
i,j
for i=4, 5, . . . m−1. At the end of m−3 iterations, the registers
616
j
hold the coefficients of x
2
i
mod c(x).
The system may instead determine a residue R
i
(x) with degree greater than or equal to 1 by testing for R
k,1
=1 for k=0, . . . , m−1. For R
k,1
=1, the system then determines the remaining coefficients of R
k
(x) using the iterative method, and calculates g(x) and the roots of g(x) as discussed above.
For a non-trivial g(x), that is, for an R
i
(x) with degree≧1, there exists at least one coefficient R
k,1
≠0 for k=0, 1 . . . m−u, where u=┌ln t┐. Consider the polynomial S(α
i
x)=R
i
(x)+c(x,q(x), which in the example has degree 8, and a c(x) with degree 5 and c
5
=1. The polynomial q(x) thus has degree 8, with
S
(
x
)=(α
i
x
)
8
+(α
i
x
)
4
+(α
i
x
)
2
+α
i
x
and
q
(
x
)=α
8i
x
3
+p
i
(
x
),
and p
i
(x) has degree ≦2. This means that p(x)=p
i,2
x
2
+p
i,1
x+p
i,0
and we can determine the coefficients of p
i
(x) for i=0:
p
0,2
=a
4
; p
0,1
=a
3
+a
4
2
; p
0,0
=a
4
3
+a
2
and
R
0,1
=P
0,1
a
0
+P
0,0
a
1
For i=1, the coefficients are:
p
1,2
=α
8
a
4
=α
8
p
0,2
p
1,1
=α
8
(a
3
+α
2
4
)=α
8
p
0,1
p
1,0
=α
8
(a
2
+α
3
4
)=α
8
p
0,0
and
R
1,1
=p
1,1
a
0
+p
1,0
a
1
+α
If the two coefficients R
0,1
and R
1,1
are equal,
α=p
1, 1
a
0
+p
1, 0
a
1
=α
8
(
p
01
a
0
+p
0,0
a
1
)=α
8
which contradicts the fact that α is a primitive element of GF(2
m
). Accordingly, R
0,1
≠R
1,1
and one of the coefficients is equal to 1 while the other is equal to 0. In the example, the system tests R
i,1
for i=0 and 1, that is, it tests to m−3, and selects for the value of i the first value for which R
i,1
=1.
Referring now to
FIG. 6
, the system (step
600
) determines R
i
(x) with degree ≧1 by first calculating
θ
k
(
x
)=
b
k,4
x
4
+b
k,3
x
3
+b
k,2
x
2
+b
k,1
x+b
k,0
for k=u, u+1, . . . m−1 using the iterative method described above.
The system (step
602
) then starts from i=0 and determines:
If R
i,1
≠0, the system computes R
i
(x) and determines g(x)=gcd(R
i
(x), c(x)) as discussed above (steps
604
,
606
). The system then determines (steps
608
-
610
) the roots of g(x) and h(x). If R
i,1
=0, the system lets i=i+1 (step
605
), and again determines if R
i,1
≠0. Once R
i,1
≠0, the system determines g(x) and h(x) and the associated roots (steps
604
,
606
-
610
). The system thus determines the roots of c(x) in far fewer clock cycles than the known prior systems, which use the Chien search, and thus, try as the roots of c(x) all of the elements of GF(2
m
).
After the system determines a residue and factors the polynomial using either the odd-degree or even-degree operations discussed above, the system uses these operations as appropriate, to continue factoring, for example, g(x) and h(x), and factors that result from the further factoring.
Claims
- 1. A method for determining which symbols in a code word contain errors based on a degree-t error locator polynomial over GF(2m), with t even and greater than or equal to six, the method including the steps of:A. determining if a coefficient at−1 of xt−1 of a t-degree error locator polynomial is non-zero and if not transforming the polynomial into one in which at−1≠0; B. determining if Tr(at−1)=1, and if not transforming the polynomial into one which Tr(at−1)=1, where c2(x) is the polynomial with Tr(at−1)=1; C. factoring the polynomial into g(x)=gcd(S(x)=∑i=0m-1x2′,c2(x)) andh(x)=gcd(S(x)+1,c2(x));D. determining roots of g(x) and h(x); E. transforming the roots into the roots of the t-degree error locator polynomial; and F. determining which symbols in a code word are erroneous by associating the roots of the t-degree error locator polynomial with symbols in the code word.
- 2. The method of claim 1 further including the step of determining if the degrees of g(x) and h(x) are greater than a predetermined maximum and if so factoring either or both of g(x) and h(x) into factors with degrees that are less than or equal to the predetermined maximum.
- 3. The method of claim 1 wherein the step of factoring c2(x) includesi. determining a residue R(x)≡S(x)mod c2(x), ii. determining g(x) as the greatest common divisor of c2(x) and R(x), and iii. determining h(x) as c2(x)g(x).
- 4. The method of claim 3 wherein the step of determining the residue includes the steps of:a. for c2(x)=xt+ct−1xt−1+ct−2xt−2+ . . . +c1x+c0, defining θ(x)≡ct−1xt−1+ct−2xt−2+ . . . +c1x+c0 and xt≡θ(x)mod c2(x), b. calculating xt+2 mod c2(x)=x2*xt=x2θ(x)mod c2(x) and iteratively calculating xt+2k mod c2(x) for k=2, 3 . . . , 2(t−1) as x2 multiplied by the polynomial xt+(2k−1) mod c2(x), where an iteration produces a polynomial θst+2 . . . θs2(t−1) associated with xt+2, . . . x2(t−1) c. calculating θi(x)≡x2i mod c2(x) for i=u,u+1, . . . m−1, as bi,t−1xt−1+bi,t−2xt−2. . . +bi,1x+bi,0=b2i−1,t−1θs2(t−1)(x)+ . . . +b2i−1,uθst(x)+b2i−1,u−1x2(u−1)+ . . . +b2i−1,1x2+b2i−1,0 where u=┌ln t┐, b's are coefficients of a polynomial calculated in step b for xu, and d. R(x)=x20+x21+x22+…+x2u∑i=3m-1Θi(x).
- 5. A method for determining which symbols in a code word contain errors based on a degree-t error locator polynomial c(x) over GF(2m), with t odd and greater than or equal to five, the method including the steps of:A. determining residues Ri(x)≡S(αix)mod c(x) for i=0, 1, . . . , m−1 and selecting a residue with degree greater than or equal to one, where S(x)=∑i=0m-1x2i;B. determining g(x)=gcd (c(x), Ri(x)) and h(x)=c(x)g(x);C. determining roots of g(x) and h(x); and D. determining which symbols in a code word are erroneous by associating the roots with symbols of the code word.
- 6. The method of claim 5 further including the step of determining if the degrees of g(x) and h(x) are greater than a predetermined maximum and if so factoring either or both of g(x) and h(x) into factors with degrees that are less than or equal to the predetermined maximum.
- 7. The method of claim 5 including in the step of determining residues the steps of:a. for c2(x)=xt+ct−1xt−1+ct−2xt−2+ . . . +c1x+c0, defining θ(x)≡ct−1xt−1+ct−2xt−2+ . . . +c1x+c0 and xt≡θ(x)mod c2(x), b. calculating xt+2 mod c2(x)=x2*xt=x2θ(x)mod c2(x) and iteratively calculating xt+2k mod c2(x) for k=2, 3 . . . , 2(t−1) as x2 multiplied by the polynomial xt+(2k−1) mod c2(x), where an iteration produces a polynomial θst+2(x), θst+3(x) . . . θs2(t−1) associated with xt, xt+2, . . . x2(t−1) c. calculating θi(x)≡x2i mod c2(x) for i=u,u+1, . . . m−1, as bi,t−1xt−1+bi,t−2xt−2 . . . +bi,1x+bi,0=b2i−1,t−1θs2(t−1)(x)+ . . . +b2i−1,uθst(x)+b2i−1,u−1x2(u−1)+ . . . +b2i−1,1x2+b2i−1,0 where u=┌ln t┐ and b's are coefficients of a polynomial calculated in step b for xu, and d. Ri(x)= αix+α2ix2+…+αuixu+ ∑k=um-1∑j=0t-1α2kibk,jxj≡S(αix) mod c(x).
- 8. The method of claim 5 including in the step of determining residues the steps of:a. for c2(x)=xt+ct−1xt−1+ct−2xt−2+ . . . +c1x+c0, defining θ(x)≡ct−1xt−1+ct−2xt−2+ . . . +c1x+c0and xt≡θ(x)mod c2(x), b. calculating xt+2 mod c2(x)=x2*xt=x2θ(x)mod c2(x) and iteratively calculating xt+2k mod c2(x) for k=2, 3 . . . , 2(t−1) as x2 multiplied by the polynomial xt(2k−1)mod c2(x), where an iteration produces a polynomial θst+2(x), θst+3 . . . θst−1 associated with xt, xt+2, . . . x2(t−1)c. calculating θi(x)≡x2i mod c2(x) for i=u,u+1, . . . m−1, as bi,t−1xt−1+bi,t−2xt−2 . . . +bi,1x+bi,0=b2i−1,t−1θs2(t−1)(x)+b2i−1,t−2θst(x)+ . . . +b2i−1,uθ(x)+b2i−1,u−1x2(u−1)+ . . . +b2i−1,1x2+b2i−1,0 where u=┌ln t┐ and b's are coefficients of a polynomial calculated in step b for xu, and d. for i=0, determining: Ri,1=∑k=um-1α2kibk,1+αiand if Ri,1=1, calculating the remaining coefficients of Ri(x), or if Ri,1=0 setting i=i+1 and repeating for i≦m−1.
US Referenced Citations (4)