IMPROVED SYSTEM FOR CORRECTION OF THREE AND FOUR ERRORS

Abstract: A method for determining the locations of four errors in a code word of a Reed-Solomon or BCH code is disclosed. A degree-four error locator polynomial is manipulated (500, 502, 504, 506) into a form in which the coefficient of the cubic term is zero, from which two quadratic polynomials are produced (508, 510, 514, 516, 518). The roots of the two quadratic polynomials are then associated with the error locations (524). In a step (514) for producing the two quadratic polynomials, a circuit (200) for determining a cubic root is used.

Description: IMPROVED SYSTEM FOR CORRECTION OF THREE AND FOUR ERRORS 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 required to correct greater numbers of 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 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. In binary systems, such as digital computers, there is only one possible error value for an error location, and thus, the step of determining error values is trivial. The steps of determining the syndromes and finding the error locations are the most time consuming in the error correction process. The invention described herein reduces the time it takes the error correction system to find the locations of either three or four errors. This involves finding the roots of third and fourth degree error locator polynomials. In prior systems, the roots of degree-four polynomials are determined by trial and error, or by matrix manipulation or look-up table. The trial and error method is performed by substituting into the polynomial every possible value, i.e., every element of the applicable GF(2 2m ) that is associated with a code word location, and for each value evaluating the polynomial. If the polynomial equals zero for a given value, the value is a root. The system continues the trial and error process by substituting a next possible value into the polynomial and determining if that value is a root; and so forth, until either all possible values have been tried or all four roots are determined. This trial and error process, which in an optimized form is commonly known as a Chien Search, is time consuming. Further, the time is unpredictable, since it varies with the locations of the errors in the code words. The matrix manipulation and look-up table methods involve transforming a general degree-four polynomial of the form: σ 4 x 4 + σ 3 x 3 + σ,x 2 + σ,x + σ 0 into a polynomial of the form: x 4 + x 2 + ax + b. If a look-up table is used, the table contains a set of solutions for every possible set of values of a and b. For the ECCs used today, typically over GF(2 8 ), the table has 2 16 entries, each with 32 bits, i.e., four 8-bit elements. Thus, the table takes up a great deal of storage space and requires a relatively complex addressing scheme. A system using the matrix manipulation method produces an m-by-m matrix, by determining f(α), f(α'), f(α 2 )...f(α m'! ), where f(x)=x 4 +x 2 +ax+b. It next manipulates the matrix to determine the null space of the space spanned by the matrix. The roots of the polynomial can then be obtained from the vectors that span the null space. [For a more detailed description see, E.R. Berlekamp, Algebraic Coding Theory. McGraw Hill Book Company, 1968]. This method requires bit-by-bit manipulation of an m-by-m matrix and typically requires numerous manipulation operations to transform the matrix. Thus, it is time consuming and computation intensive. The inventive system described herein reduces the time it takes to find four error locations, which involves determining the roots of the degree-four polynomial. The system makes use of a well known method of determining the roots of a degree-two polynomial, as described by Berlekamp in Algebraic Coding Theory. Further, the system makes use of a method of determining the roots of a degree-three polynomial that is described by Van der Horst and Berger in Complete Decoding of Triple-Error-Correcting Binary BCH Codes, IEEE Transactions on Information Theory, Vol. IT-22, pp. 138-147, 1976. Finding the roots of the degree-three polynomial in accordance with the teachings of Van der Horst and Berger requires determining a cubic root of a Galois field element over GF(2 2m ). As discussed later herein, I have developed an inventive circuit for relatively quickly and easily finding the cubic roots. SUMMARY OF THE INVENTION The invention is a system that determines the error locations of four errors in GF(2 2m ) by transforming a degree-four error locator polynomial ultimately into two quadratic equations, finding the solutions of these equations, and from these solutions determining the roots of the error locator polynomial. More specifically, the system first manipulates the degree-four polynomial: σ(x)= σ 4 x 4 +σ 3 x 3 σ 2 x 2 +σ,;X+σ 0 [1] into the form: θ(y)=y +θ 2 y 2 +θ,y+θ 0 [2] where the θ j 's are combinations of the coefficients of the terms of the error locator polynomial. Note that the coefficient of the y 3 term is zero. The system then factors θ(y) into: θ(y)=(y 2 +t*y+u) * (y 2 +v*y+w), [3] where "*" represents multiplication, and expands the expression to: θ(y)=y 4 +(t+v)y 3 +(t*v+u+w)y 2 +(t*w+v*u)y+u*w, [4] where t, u, v and w are unknown. Equating the coefficients of expressions 2 and 3, the system determines that: t+v=0 t*v+u*w = t 2 +u*w = θ 2 t*w+u*v = t+w+t*u = t*(w+u) = θ, u*w=θ 0 . The system then produces an equation with the variable t as the only unknown: t 3 +θ 2 t+θ,=0 [6] This degree-three equation can be solved using the method described by Van der Horst and Berger, as discussed in more detail below. Once a root, to, of equation 6 is determined, the root is substituted into the expression for θ,, and that expression and the expression for θ 0 are used to from a quadratic equation with u and w as the roots: p 2 +(θ 2 +t o 2 )p+θ 0 =0 [7] The system then finds the roots, p 0 and p,, of equation 7, using Berlekamp' s method for solving degree-two polynomials. The roots p 0 and p„ which are u and w, respectively, are substituted into polynomial 3 and each term is set to zero, to produce two quadratic equations: [8] y 2 +t„*y+p,=o. The roots of equations 8, which are determined using the Berlekamp method, are also the roots of θ(y), and they can thus be used directly to produce the roots of the error locator polynomial. This direct solution is faster than the prior trial and error or the matrix manipulation methods of finding the four roots. Further, it does not require the storage of and entry into the large look-up table that is required in other prior known systems. BRIEF DESCRIPTION OF THE DRAWINGS For a fuller understanding of the nature and objects of the invention, reference should be had to the following detailed description taken in connection with the accompanying drawings, in which: FIG. 1 is a functional block diagram of a decoder that is constructed in accordance with the invention; FIG. 2 is a functional block diagram of an inventive circuit for determining the cubic roots of GF(2 2ra ) elements; FIG. 3 is a flow chart of the operations of the circuit of Fig. 2; FIG. 4 is the circuit of FIG. 2 for GF(2 8 ); and FIG. 5 is a flow chart of the operations that the decoder of Fig. 1 performs when it determines the locations of four errors. DESCRIPTION OF THE PREFERRED EMBODIMENT The mathematical operations of addition, subtraction, multiplication and division discussed herein are Galois Field operations over GF(2 2m ). Referring now to Fig. 1, a decoder 10 includes a syndrome generator 12 that operates in a conventional manner to produce an associated set of error syndromes. If the syndromes are all zero, the syndrome generator 12 determines that the code word is error- free. Otherwise, the syndrome generator sends the syndromes to an error locator polynomial generator 14, which produces in a conventional manner from the syndromes an error locator polynomial of degree "e". where e is the number of errors in the code word. The error locator polynomial generator 14 then sends the error locator polynomial to an error locator processor 16, which selects and implements an appropriate process for determining the roots of the error locator polynomial, and thus, the error locations. Fig. 1 depicts these processes as various blocks or processors, namely, a processor 18 for determining one error location, a processor 20 for determining two error locations, a processor 22 for determining three error locations, a processor 24 for determining four error locations, and a processor 26 for determining more than four error locations. The two-, three- and four-error processors 20, 22 and 24 are interconnected. As discussed below, the error locator processor 16 reduces the time it takes to determine the locations of three and four errors by transforming the corresponding error location polynomials ultimately into associated sets of quadratic equations. To do this, the four- error processor 26 makes use of both the three-error processor 24 and the two-error processor 22. Similarly, the three-error processor 24 makes use of the two-error processor 22. While these processes are depicted as occurring in separate, dedicated processors, they may be performed in one or more multi-purpose processors. The error locator processor 16 determines the locations of one and two errors in a conventional manner. It determines the locations of three errors in accordance with the method described by Van der Horst and Berger. However, it uses an inventive circuit to perform a necessary step of determining the cubic root of a Galois Field element. This circuit and the method of determining the three error locations are discussed below with reference to Figs. 2 and 3. The error locator processor 16 determines the locations of four errors using a unique process that is described below with reference to Fig. 4. Before describing this process, the two- and three-error location processes are discussed in Sections A and B, respectively. A. DETERMINING TWO ERROR LOCATIONS If the code word contains two errors, the error locator polynomial is of the form: σ(x) = σ 2 x 2 + σ,x + σ 0 x. [1] To find the roots of the polynomial, the system sets the polynomial equal to zero: σ(x) = σ 2 x 2 + σ,x + σ 0 x = 0 [2] and solves the equation for the solutions, β and x, . To solve equation 2, the error locator processor 16 transforms the equation into the form: y 2 + y + C = 0 [3] by changing the variable to: x = — y σ 2 [4] such that equation 2 becomes σ 2 Then, dividing by - -5- , the system produces the equation: σ , σ Q σ 2 y- + y + ^ T = 0 [5] σ 0 σ 2 and the C of equation 3 is thus < For a solution of equation 5 to exist in GF(2 2 ), the "traces" of both sides of the equation must be the same. A trace is defined as: 2ffl-.l 2 » Trace(a ') = ∑ (α ') A-0 [6] The Trace (0) equals 0, and thus, for solutions to exist within the Galois Field, Trace [y +y+C] = 0 [7] The trace of a sum of terms is equal to the sum of the traces of the individual terms. In GF(2 2m ), Trace (y 2 ) = Trace (y) and their sum, using Galois Field addition, is zero. Accordingly, equation 5 has a solution in GF(2 2m ) if Trace (C)=0. The general solution to equation 5 is a linear combination of 2m- 1 "base solutions * '. A base solution is a solution to equation 3 with C as one of the "base elements" C,, C 2 ...C 2m ., of the Galois Field. The base elements are those elements of the field that can be linearly combined to produce all of the other elements of the field. These elements may, for example, be the set of 2m- 1 elements that each include 2m- 1 zeros and a single 1, i.e., α'=000...1 to α J =100.„00. In such a field, C = 00110...0 is a linear combination of base elements 00100...0 and 00010...0. The general solution to equation 5 is the linear combination of the base solutions that correspond to the base elements which σ o σ 2 are summed to produce 2 . σ ι In GF(2 4 ) which is defined by the generator polynomial x 4 +x+l, each element, α', that has a trace of zero also has a zero as its most significant bit. Accordingly, the C's of interest in this field are combinations of the base elements α°=0001 , α'=0010 and α 2 =0100. The corresponding base solutions are: (α 5 ) 2 + α 5 = α° with y 0 =α 5 (α 9 ) 2 + α 9 = α 1 with y 0 =α 9 (α 3 ) 2 + α 3 = or with y 0 =α 3 Another set of base solutions are: (α 10 ) 2 + α 10 = α° with y.=α 10 (α 7 ) 2 + α 7 = α' with y,=α 7 (α 14 ) 2 + α 14 = α 2 with y,=α 14 In this Galois Field, the solutions for equation 3 with C equal to α 8 =0101, for example, are determined by decomposing C into: C= α°+ α 2 = 0001+0100 and summing a corresponding set of base solutions, for example: y 0 = α 5 + α 3 = α" to produce a first root and determining a second root as: Next, the system determines the roots of the degree-two error locator polynomial as: B. DETERMINING THREE ERROR LOCATIONS The error locator polynomial associated with three errors is of the form: σ(x) = σ 3 x 3 + σ 2 x 2 + σ,x + σ 0 [8] To find the roots, the system sets the polynomial equal to zero: σ(x) = σ 3 x 3 + σ 2 x 2 + σ,x + σ 0 = 0 [9] and transforms the equation into the form: y 3 + ay + b = 0 To do this, the system makes a change of variable: x = y + — - and equation 9 becomes [10] The system next expands the terms of equation 10: and collects like terms to produce: σσX + (σ 2 + σ 2 ) r + + σ 0 = 0 [11] In GF(2 2m ) the summing of identical terms equals zero, and the equation becomes: σ,σ, σσ 3 .y 3 + Oy 2 + • + cr, - + 0 + - + σ ft = 0 σ 3 [12] The system divides equation 12 by σ 3 , to produce an equation of the form: y +ay+b = 0 [13] σ,σ 2 with a = — r + " and b σ 3 σ 3 If a ≠ 0, the system changes variable to: y = z + - [14] and equation 13 becomes a V a z + — + d z + — \ + b = 0. Z J [15] It next expands equation 15 and collects like terms to produce: a + -z' z + — + b = ∑ + az + — + - + az + — + b z AJ z + + a \zJ z z z z z 3 + + δ = 0. [16] The system next multiplies equation 16 by z 3 to produce (z 3 ) 2 + bz 3 +a = 0, [17] which is a quadratic equation with z 3 as the variable. Equation 17 can then be solved using the two-error method discussed in Section A. Once one solution, z^ is determined, the system uses a circuit that is described with reference to Figs. 2 and 3 below to find the cubic root, z„. As long as m is even, a second solution, z, to equation 17 is: 2""-! z,=Zo* aa 3 r\ lm _ 1 where the exponent — - — is always an integer, since with m even 2 2m -l is divisible by 3. A third solution to equation 17 is: z 2 =z,+z 0 The system next substitutes these solutions into the expression for y, and individually σ 2 adds the results of the substitution to — to produce the roots Xo, x, and x, of the degree- σ 3 three error locator polynomial. If a=0, the solution to equation 13 is y=b" 3 . To find the cubic root of b the system uses the circuit depicted in Fig 2. Once the cubic root is known, the system determines y, and y 2 as: 2 iπ -l y, = y 0 * aa and y 2 = y 0 + yι, and from these values determines the roots x < „ x, and x 2 . Referring now to Figs. 2 and 3, a circuit 200 finds the cubic root of an element α 3k of GF(2 2m ) by raising the element to powers that are associated with . a 2 . Raising any GF(2 m ) element to a power of 2 L is readily accomplished using a plurality of conventional Galois Field multipliers. The circuit 200 takes advantage of the identity x 2 -l=(x-l)*(x+l). With x equal to 2 m the identity becomes 2 2m -l=(2 m -l)*(2 m +l). One of the factors 2 m -l or 2 m +l is divisible by 3, but not both factors. If, for example, m=4, the factor 2 m -l is divisible by 3 and 2 m +l is not. The circuit 200 also takes advantage of the fact that . 2 ~ ' ) * a +1 ) = 2** ' . Using the circuit 200, the Galois Field element α 3k is raised in multiplier 202 to the power that corresponds to the factor of the identity that is not divisible by three (step 300). In the example of m=4, the element is raised to the 2 m +l power. Then, a look-up table 204 is used to find the cubic root .α* ( +1 ', of the product .a 3 * < +l) (step 302). The table, which has entries only for the cubic roots of the possible products .a 3 *' 2 . is relatively small. For the example of GF(2 8 ) the table has just five entries. The multiplier 202 also raises the element α 3 to a power that corresponds to 2 m - l — - — (step 304), and the result is multiplied in GF multiplier 206 by the cubic root produced by the look-up table 204 (step 306): .a *(2"+l) ' * * a *(2"-l) ' = a "") . In step 308, the system raises this product to the .—^ power, to produce the cube root α\ Fig. 4 depicts the circuit 200 for GF(2 8 ), i.e., m=4. To raise α 3k to the 2 m +l power, the circuit, in GF multiplier 201, first raises the element to the 2 m or 2 4 =16 power. Then, in GF multiplier 203, the product α 3k(lδ) = α 48k is multiplied by the element α 3k , to produce the product .a 3 *' 2 +1 ' = a 5 . This product is used to enter the five-element lookup table 204: α° → α° α J α α 153 oc J 204 → α 68 which produces α' 7k . Using GF multipliers 207 and 209, the element α 3 is raised to the The GF multiplier 207 first raises the element to the 2 2 or 4 power and GF multiplier 209 multiplies the product α 3 (4) = α l2k by the element α k to produce the product α I5 . The GF multiplier 206 then multiplies the two products α 17 *α 15 = α 32k . The result 1 1 1 is next raised to the . —77- or— - = — power in multiplier 210, to produce the cube root, α k . The circuit 200 produces a result for every element that is applied to it. However, there are not necessarily cubic roots for every element of the Galois Field. Accordingly, the system must test the result (step 310) to determine if the result is an actual cube root. The system thus multiplies the result by itself twice and determines if the product equals the element that was applied to the circuit (step 312). If so, the cube root is accurate and the error locations can be determined (step 314). If, however, the product does not equal the element, the system determines that the error locations cannot be found (step 316). The system then ends the process of finding the error locations. C. DETERMINING FOUR ERROR LOCATIONS The error locator polynomial associated with four errors is of the form: σ(x) = σ 4 x 4 +σ 3 x 3 +σ 2 x 2 +σ | X+σ 0 [18] To find the roots, the system sets the polynomial equal to zero: σ(x) = σ 4 x 4 +σ 3 x 3 +σ 2 x 2 +σ,x+σ 0 = 0 [19] and transforms the equation into the form: y 4 +dy 2 +ey+h = 0. Specifically, referring now to Fig. 5, the system in step 500 makes a change of variable: x = y+r, where r and equation 19 becomes: Y(y) = σ 4 (y+r) 4 +σ 3 (y+r) 3 +σ 2 (y+r) 2 +σ,(y+r)+σ 0 = 0. [20] The system in step 502 expands terms: Y(y) = σ 4 (y 4 +r 4 )+ σ 3 (y 3 +y 2 r+yr 2 +r 3 ) + σ 2 (y 2 +r 2 ) +σ,(y+r)+σ o =0 and collects like terms, to produce: γ(y) = σ 4 y 4 +σ 3 y 3 +(σ 3 r+σ 2 )y 2 + (σ^+σ^y + σ 4 r 4 +σ 3 r 3 +σ 2 r 2 +σ,r+σ 0 = 0 [21] Next, in step 504 the r, and the coefficient of the linear term is zero, since Equation 21 thus becomes σ 4 y 4 +σ 3 y 3 +[(σ 3 *σ,) ,/2 +σ 2 ]y 2 + s, [22] where "s" is the constant term of equation 21. Instead of solving this equation directly, the system in step 506 finds the roots of [23] Accordingly, the system solves θθ(y) = [(σ ' 3 *σ,)" 2 +σ 2 ]- + s [24] or θθ(y) = y + θ 2 y 2 +θ iy + θ 0 =0 [25] where 1/2 (σ 3 *σ,) + σ, θθ = θθ, = — s The system in step 508 first factors equation 25 into: θ(y) =(y 2 +t*y+u)*(y 2+ v*y+w)=0. [26] This assumes that equation 25 can be factored, which is a valid assumption if the roots to the error locator polynomial exist in GF(2 2m ). The system expands the terms of equation 26 to: θ(y) = y +(t+v)y 3 +(t*v+u+w)y 2 +(t*w+v*u)y+u*w = 0 [27] and sets the coefficients of this equation equal to those of equation 25 (step 510): t+v=0 t*v+u+w = θ J 7 2 t*w+v*u = θ '1, u*w = θ J n o Thus, t=v r+(u+w) = θ 2 t*(w+u) = θ, u*w = θ 0 The system in step 512 next determines an equation with "t" as the only unknown. Recall that θ 2 , θ, and θ 0 are known, since they are combinations of the coefficients of the error locator polynomial. Accordingly, the system produces the equation: t 3 +θ 2 t+θ,=0 θ, [28] by setting u + w = — , substituting this into the expression for θ 2 and multiplying by The result is a degree-three polynomial that can be solved using the operations described in Section B above (step 514). Specifically, the system changes variable: t = z + — where a=θ 2 z and equation 28 becomes z + ~ + a \ z + ■ + θ, = 0 z) Z J Expanding and collecting terms , ( a a , ( a a 1 a 2 a 3 a 2 . a' z + az + — + — + αz + — + θ, = z + — + θ, = 0 z z ∑ z [29] and multiplying by z 3 , the system produces the equation (z 3 ) +θ,z 3 +a 3 =0, which is a quadratic equation with z 3 as the variable. Using the method of Section A, the system finds the roots of equation 29. The system thus changes variable to: z 3 =θ,g [30] and the quadratic equation becomes [31] or s +s+— θ, = o If the Trace = 0, the solutions for equation 31 exist in GF(2 2m ). Assuming the α 3 θ 2 . solutions exist, they are determined by decomposing — — = — T into a linear combination X X of base elements, and associating with the base elements the corresponding base solutions. Once the solutions are determined, the system substitutes one of them, for example, g 0 , into the expression 30 for z 3 and uses the circuit of Fig. 2 to determine the cubic root, Z Q , of z 3 . The system then determines to from the expression: a l = z + -. z [32] with ZQ substituted for z. To determine w and u, the system in step 516 uses the value tn and the expressions: t 2 +(u+w)= θ 2 and u*w=θ 0 to produce a quadratic equation 33 that has u and w as its roots: (p+u)*(p+w) = p 2 +(u+w)*p+(u*w) = p 2 +(θ 2 +to 2 )*p+θ 0 =0, [33] The system then determines the solutions of equation 33 using the method of Section A. It next in step 518 substitutes these solutions, p 0 and p into the factors of equation 26 to produce the quadratic equations: and [34] y'+t y+P O, and in step 520 solves for the roots y 0 , y, and y 2 , y 3 using the method of Section A. The roots y 0 , y„ y 2 and y 3 of equations 33 are the roots of θ(y), and l/y 0 , 1/y,, l/y 2 and l/y 3 are the roots of γ(y). The system in step 522 then substitutes l/y 0 ,...l/y 3 into the expression x=y+r, to determine the roots of the degree-four error locator polynomial. Finally, the system in step 524 associates the roots of the error locator polynomial with locations in the code word. This direct method of determining the roots of the degree-four error locator polynomial is faster than performing a Chien Search or manipulating an m-by-m matrix. Further, it does not require the large look-up table that is used by the other prior known systems.

Claims: 475 What is claimed is: 476 CLAIMS 477 478 1. A method of determining locations of four errors in a code word of a Reed-Solomon 479 or BCH code, the method including the steps of: 480 a. manipulating a degree-four error locator polynomial 481 σ(x) = σ 4 x 4 +σ 3 x 3 +σ 2 x 2 +σ,x I +σ 0 to 482 produce a polynomial of the form: 483 θθ(y) = y* + θ i y 1 + θ λ y + θ 2 \ 484 b. factoring the polynomial into θ(y) =(y 2 +t*y+u)*(y 2 +v*y+w); 485 c. equating the coefficients of the polynomials of steps a and b 486 t+v = 0 487 t*v+u+w = θ 2 488 t*w+v*u = θ, 489 u*w = θ 0 ; 490 d. determining an equation with t as the only unknown: 491 t 3 +θ 2 t+θ,=0 492 e. solving for a root to; 493 f. forming a quadratic equation with u and w as roots: 494 p 2 +(θ 2 +to 2 )p+θ 0 =0 495 g. solving for the roots Po and p,; 496 h. substituting the roots into θ(y) and determining the roots of a pair of quadratic 497 equations: 498 y 2 + o*y+p. = o 500 i. associating the roots y 0 , y, and y 2 , y 3 of the pair of quadratic equations with 501 the roots of the degree-four error locator polynomial; and 502 j. associating the roots of the degree-four error locator polynomial with 503 locations in the code word. 1 2. The method of claim 1 , wherein the step of solving for a root of t 3 +θ 2 t+θ,=0 includes: a 2 i. changing variable to t = zH — , where a= θ 2 , to produce an equation of the z 3 form z 3 +^ +θ, = 0; z 4 ii. multiplying the equation of step i by z 3 to obtain a quadratic equation with z 3 5 as the variable: 6 (z 3 )^ θ^+a 3 = 0; 7 iii. solving the quadratic equation of step ii for z 3 ; 8 iv. determining the cube root, Z Q , of z 3 ; and 9 v. substituting the value of z,, into the expression t=z+ — . z 1 3. The method of claim 1 wherein the step of transforming the error locator polynomial 2 into θ(y) includes: 3 i. changing variable to x = y +r, where r = and expanding and collecting 4 terms to produce an equation of the form: 5 γ(y) = σ 4 y 4 +σ 3 y +(σ 3 r+σ 2 )y 2 + (σ^+σ^y + σ 4 r +σ 3 r 3 +σ,r+σ,r+σ 0 = 0; ii. substituting r = into the equation of step i to produce an equation of the form: Y(y) = σ 4 y 4 +σ 3 y 3 +[( σ3 *σ 1 ) 1/2 +σ 2 ]y 2 + s, where s is the constant term of the equation of step i;. iii. finding the roots of: which expands to θθ(y) = yX θ 2 y 2 + θ ]y + θ 2 = 0 where 1/2 θθ 2 = fa *°i) + σ. σ. θθ. = — and θθ n = 4. A method of determining locations of four errors in a code word of a Reed-Solomon or BCH code, the method including the steps of: a. manipulating a degree-four error locator polynomial σ(x) = σ 4 x 4 +σ 3 x 3 +σ 2 x 2 +σ,x'+σ 0 to produce a polynomial of the form: θθ(y) = yX θ 2 y + θ y + θ ; b. factoring the polynomial into θ(y) =(y 2 +t*y+u)*(y 2 +v*y+w); c. determining the values of t,u, v and w; d. substituting the values t, u, v and w into θ(y) and determining the roots of a pair of quadratic equations : y 2 +t*y+u= 0 y 2 +v*y+w= 0; e. associating the roots y 0 , y, and y 2 , y 3 of the pair of quadratic equations with the roots of the degree-four error locator polynomial; and f. associating the roots of the degree-four error locator polynomial with locations in the code word. 5. The method of claim 4, wherein the step of determining the values of t,u, v and w includes the steps of: i. equating the coefficients of the polynomials of steps a and b: t+v = 0 v. solving for the roots p 0 and p,, which are u and w. 6. The method of claim 5, wherein the step of solving for a root of t 3 +θ 2 t+θ,=0 includes: a a. changing variable to t = zH — , where a= θ 2 , to produce an equation of the z b. multiplying the equation of step a by z 3 to obtain a quadratic equation with z 3 as the variable: .(z 3 ) 2 + θ,z 3 +a ϊ = 0; c. solving the quadratic equation of step b for z 3 ; d. determining the cube root, Z Q , of z 3 ; and e. substituting the value of Z Q into the expression t=zH — . 7. The method of claim 4 wherein the step of transforming the error locator polynomial into θ(y) includes: i. changing variable to x = y +r, where and expanding and collecting terms to produce an equation of the form: γ(y) = σ 4 y +σ 3 y 3 +(σ 3 r+σ 2 )y 2 + (σ^+σ^y + σ 4 r 4 +σ 3 r 3 +σ 2 r 2 +σ,r+σ 0 = 0; ii. substituting of step i to produce an equation of the form: γ(y) = σ 4 y +σ 3 y 3 +[(σ 3 *σ,) 1 2 +σ 2 ]y 2 + s, where s is the constant term of the equation of step i;. iii. finding the roots of:

Inventors: WENG LIH-JYH, WENG, LIH-JYH
Applicants: QUANTUM CORP, QUANTUM CORPORATION
Application year: 1996
Main classification: H03M13
IPC codes: G06F7, G11B20, H03M13