Abstract:
A Reed-Solomon Galois Field Euclid algorithm decoder determines whether an error is uncorrectable by checking for: 
     I. deg [Λ(x))]≦t 
     II. deg [Ω(x)]&lt;deg[Λ(x)] 
     III. All roots of Λ(x) are in GF(q m ) 
     IV. Roots of Λ(x) are distinct 
     V. Λ(x) has no roots at 0 
     VI. S(x)Λ(x)=≡Ω(x) mod x 2t   
     An error in a received Reed Solomon message may be uncorrectable. An error is correctable only when each of the six conditions are met. Any error which fails to meet these six criteria cannot be corrected It is important to users of such encoded data that they are aware that an error is contained therein which is uncorrectable. Because it has only recently been proven that failure to meet these criteria in fact is the result of an uncorrectable error. No prior art Reed Solomon decoder checks to determine whether these criteria are in fact met. Many of these criteria are checked by implication as the normal result of calculating through Euclid&#39;s algorithm.

Description:
FIELD OF THE INVENTION 
     This invention relates to the field of Reed-Solomon decoders. More particularly, this invention relates to an apparatus for determining whether a received message that has been Reed-Solomon encoded is correctable by Euclid&#39;s algorithm. 
     BACKGROUND OF THE INVENTION 
     A variety of algorithms have been developed to decode Reed-Solomon codes. A typical decoding procedure consists of the following steps: 
     1. Computation of the Syndrome Polynomial. 
     2. Determination of the Error Locator Polynomial, Λ(x), and the Error Magnitude Polynomial, Ω(x). 
     3. Calculation of the Error Magnitudes and Error Locations. 
     4. Substraction of the Errors from the received message if correctable. 
     A Reed-Solomon Code is defined in terms of its generator polynomial, G(x): ##EQU1## where m 0  is an integer, and β is a field element in GF (q m ). t is the designed symbol error correcting capacity of the code. While the selection of m 0  is completely arbitrary, β must be chosen such that the factors of G(x) do not form a subfield in GF(q m ). In other words, if β=α , where α is a primitive element in GF(q m ) and   is an integer, then   must not contain factors in common with q m  -1. 
     The coding process may be viewed as any method of taking a sequence of κ message symbols, represented as the coefficients of an order κ-1 polynomial, and appending 2t redundancy symbols to create a code block, C(x). The redundancy symbols are chosen such that the roots of C(x) include the roots of G(x). Mathematically, this may be described as follows: 
     
         C(x)=x.sup.2t M(x)+R.sub.G(x) [x.sup.2t M(x)]=A(x)G(x)     (2) 
    
     It should be noted here that the above relationships portray the construction of a systematic code. Any invertible transformation that maps M(x) into C(x) such the G(x) divides C(x) can be viewed as an encoding transformation. The process of corrupting the original code block, C(x), with errors may be viewed as adding an error polynomial, E(x), to C(x). The resultant, corrupted polynomial is known as the received polynomial, R(x): 
     
         R(x)=C(x)+E(x)=A(x)G(x)+E(x)                               (3) 
    
     The ν non-zero terms of the error polynomial contain all the information necessary to completely reconstruct the original C(x), since each term corresponds to a symbol error location and magnitude: ##EQU2## where j.sub.κ  is the location of the κ th  error and e j .sbsb.k is the magnitude of the error. The complete syndrome polynomial, S(x), is obtained by evaluating the error polynomial, E(x), at all field elements, starting with the roots of G(x): ##EQU3## 
     S(x) may be viewed as a transform of E(x) into the frequency domain. S(x) completely determines E(x). From Equation 3 it can be seen that the first 2t terms of S(x) may be determined by evaluating the received polynomial, R(x), at the roots of G(x): ##EQU4## where the mod x 2t  indicates that only the first 2t terms of S(x) are correctly predicted by this expression. It is also easily shown that if E(x) contains ν non-zero terms, that S(x) may be written: ##EQU5## where all quantities are as defined for Equation 4. Retaining only the first 2t terms and combining with Equation 6: ##EQU6## 
     Hence, all syndrome polynomials, S(x), which can be written in the above form with some ν≦t correspond to correctable error patterns. Those which cannot be so expressed correspond to uncorrectable error patterns. 
     FIG. 1 shows a graphical way of considering this problem. For a given Galois Field, the circles 22A through 22F represent the domains of correctable errors for the properly encoded polynomials 20A through 20F. If the correctly transmitted polynomial 20C is received as 20C, there is no error to be corrected. If R(X)1 is received, the error is properly correctable to 20C. If R(X)2 is received, the error is improperly correctable to 20A. If R(X)3 is received, the error is uncorrectable. 
     If an error is uncorrectable it is desireable for the user to know that the data is corrupted and cannot be corrected. However, no Reed-Solomon decoder has been designed which determines whether the received polynomial is correctable. 
     SUMMARY OF THE INVENTION 
     The present invention is for a Reed-Solomon Galois Field error correction apparatus which utilizes Euclid&#39;s Algorithm. The apparatus checks for each of the 6 correctable error pattern requirements. Five of the requirements are automatically checked as artifacts of using Euclid&#39;s recursive algorithm and doing the Chien search. The sixth requirement is checked with special purpose hardware designed for this function. 
     A seventh requirement may be imposed for shortened codes. A shortened code is a code which does not utilize all of the available binary counting numbers for a given code length. Thus, if an error is indicated for one of the unused binary counting numbers, that polynomial is uncorrectable. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 shows a schematic representation of a transmitted message and an uncorrectable error. 
     FIG. 2 shows a block diagram of the preferred embodiment of the present invention. 
     FIG. 3 shows a block diagram of a first alternate embodiment of the present invention. 
     FIG. 4 shows a block diagram of a second alternate embodiment of the present invention. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     Correctable Error Pattern Requirements 
     Three polynomials, Λ(x) (also known as the Error Locator Polynomial), Ω(x) (the Error Magnitude Polynomial), and S(x) (the Syndrome Polynomial) are necessary to correct a received polynomial R(x). For an error to be correctable these polynomils should have the following properties: 
     note: deg[. . .]≡Degree of [. . .] 
     I. deg [Λ(x)]≦t 
     II. deg [Ω(x)]&lt;deg[Λ(x)] 
     III. All roots of Λ(x) are in GF(q m ) 
     IV. Roots of Λ(x) are distinct 
     V. Λ(x) has no roots at 0 
     VI. S(x)Λ(x)≡Ω(x) mod x 2t   
     It will be shown, by the mathematical proof below, that these properties imply that S(x) may be expressed in the form which implies a correctable error pattern (Equation 8). Multiplying and dividing by Λ(x): ##EQU7## 
     From Property II, it follows that Ω(x)/Λ(x) may be written as a partial fraction expansion. Property IV insures that each term of the expansion can be written as a constant divided by a linear term: ##EQU8## where N=deg[Λ(x)]. Properties III and V insure that both α i  and γ i  are in GF(q m ). The 1 th  coefficient, γ l , may be determined by multiplying Equation 10 by (x-α l ) and invoking L&#39;Hopital&#39;s Rule to evaluate the resulting expression at x=α l  : ##EQU9## 
     Therefore, combining Equations 10 and 12, it can be seen that Equation 9 may be rewritten: ##EQU10## 
     Furthermore, there exists a polynomial, f(x), having deg[f(x)]&lt;q m  -2t, such that: ##EQU11## 
     But since Λ(x) and x 2t  have no factors in common, it follows that Λ(x) must be a factor of f(x). That is, a(x)Λ(x)=f(x). ##EQU12## 
     Dividing by Λ(x) and retaining only the first 2t terms: ##EQU13## 
     If N≦t it follows from Equation 17 that S(x) may be written in the form required (Equation 8) for a correctable error pattern when Properties I through VI are satisfied. This then implies that the satisfaction of these Properties is sufficient to insure that S(x) corresponds to a correctable error pattern. 
     An additional constraint VII is necessary for shortened codes. All roots of the received polynomial must correspond to symbol positions that are actually sent. An error in a &#34;virtual symbol&#34; location cannot actually be introduced by the channel; therefore, such an occurrence indicates that more than t errors have occurred. 
     Euclid&#39;s Algorithm 
     Euclid&#39;s algorithm is a recursive algorithm for solving for the error locator polynomial, Λ(x), and the error magnitude polynomial, Ω(x). It is based on Euclid&#39;s algorithm for finding the greatest common divisor. The recursive relationships are: 
     
         Ω(x).sup.(i) =-q.sub.i (x)Ω(x).sup.(i-1) +Ω(x).sup.(i-2) (18) 
    
     
         Λ(x).sup.(i) =Λ(x).sup.(i-2) -q.sub.i (x)Λ(x).sup.(i-1)                                  (19) 
    
     where: Λ. 1  =O, Λ 0  =1, Ω. 1  =x 2t , and Ω 0  =S(x). The algorithm terminates when deg[Ω(x)]&lt;t. 
     At each step in the iteration, Λ i  and Ω i  satisfy the key equation (Property VI). At every step, deg[Λ(x)] increases while deg[Ω(x)] decreases. The termination condition given is proper when the associated syndrome polynomial, S(x), corresponds to a correctable error pattern. Nothing is said about the behavior of the algorithm when the error is uncorrectable. When an uncorrectable pattern is encountered, however, one or more of the properties listed in the previous section must be violated, since it was shown that they form a set of conditions which imply the error pattern is correctable. 
     Due to the nature of the algorithm itself, it is easily shown that all solutions obtained satisfy Properties I and VI, irrespective of the error pattern. All others may or may not be satisfied. Properties III, IV, V and VII are easily checked when Λ(x) is solved for its roots (usually using a Chien search). If only those field elements, corresponding to potential error positions are searched, the number of roots found should equal the degree of Λ(x). Property II, deg[Ω(x)]&lt;deg[Λ(x)] MUST be explicitly checked when using Euclid&#39;s algorithm. The fact that it may be violated by the results obtained from the algorithm is best shown by example: 
     Uncorrectable Condition 
     As noted above, successive solutions of the key equation (Property VI), S(x)Λ(x)≡Ω(x) mod x 2t , are obtained at each step of the iteration. The conditions necessary for Property II to be violated while decoding an arbitrary double error correcting code will be derived, to show that the event can occur. 
     The key equation may also be represented as two equivalent (though normalized) systems of linear equations--one of which is solved for Λ(x), while the other yields Ω(x). For the first iteration of the algorithm: ##EQU14## where s i  is a coefficient of S(x), Ω i  is a coefficient of Ω(x) and l 1  is the degree 1 coefficient of Λ(x). (It is assumed here that the equations are normalized such the l 0  =1.) Solving these equations for Ω z  =0 and Ω 1  ≠0 yields the conditions which must hold for the algorithm to halt with deg[Λ(x)]=deg[Ω(x)]=1. This clearly violates the requirement that Ω(x) be of lower degree than Λ(x). Necessary and sufficient conditions for this to occur are: ##EQU15## which is clearly possible since all S(x) do occur. (The proof follows directly from Equation 6.) Actually performing Euclid&#39;s algorithm symbolically for this case yields: ##EQU16## which is consistent. 
     Properties I, III, IV, V and VI are checked as an artifact of correcting errors. Property II has never been checked heretofore. 
     FIG. 2 shows a Reed-Solomon Galois Field decoder which corrects errors using Euclid&#39;s algorithm. For a detailed description for the operation of the remainder of this circuit see U.S. patent application No. 105, 401. 
     A received polynomial 32 is coupled to a syndrome generator 33. The syndrome generator 33 calculates each of the 2t syndromes for the given received polynomial 32. The syndrome generator 33 is coupled to a Euclid divide module 34. The Euclid divide module 34 is coupled to the Euclid multiply module 35. The syndromes are input into the Euclid divide module 34 from the syndrome generator 33. The Euclid divide module 34 generates the magnitude polynomial. A quotient developed by the Euclid divide module 34 is utilized by the Euclid multiply module 35 to develop the location polynomial. 
     The Euclid divide module 34 and Euclid multiply module 35 are coupled to the polynomial solver 36. The magnitude polynomial and the location polynomial are input to the polynomial solver. The polynomial calculates the first derivative of the location polynomial. The polynomial solver 35 also finds the zeros of the location polynomial. The polynomial solver 36 is coupled to the inverse ROM 37 and the error correction module 38. The inverse ROM, 37 is programmed with the inverse, i.e. 1/x, for the elements of the particular Galois Field. The inverse ROM is used to find the inverse of the first derivative of the location polynomial. The polynomial solver 36 also supplies th magnitude polynomial and the location of the zeros of the location polynomial. 
     The received polynomial 32 is also coupled to a FIFO RAM 39. The FIFO RAM 39 is sufficiently large to hold four polynomials. The received polynomial is passed from the FIFO RAM 39 into the error correction unit 38 to be corrected by the magnitude polynomial, location polynomial and the inverse of the first derivative of the location polynomial. Once the received polynomial 32 has been corrected, the corrected polynomial 40 is output from the error corrections decoder for use in an another circuit. 
     Additionally, this circuit contains a degree Ω(x) module 46A. This circuit monitors the Ω(x) polynomial as it is communicated from the Euclid divide module 34 to the polynomial solver 36. Each coefficient is transferred, one coefficient at a time from the Euclid divide module 34 to the polynomial solver 36, from the lowest order coefficient to the highest. A counter 47A is incremented for each coefficient. Each coefficient is compared by comparator 48A to determine if is non-zero. Under the control of the comparator 48A, the value in the counter is entered into a degree of Ω(x) register 49A for each non-zero coefficient of Ω(x). 
     The analogous hardware is present for determining the degree of Λ(x). That hardware contains a counter 47B, comparator 48B and degree of Λ(x) register 49B. 
     The value stored in the degree of Λ(x) register 49B is compared in comparator 50 to the value stored in the degree of Ω(x) register 49B. If degree Λ(x) is less than or equal to degree of Ω(x) register 49A the error is uncorrectable. 
     FIG. 3 shows an alternate embodiment of a Reed-Solomon Galois Field decoder which corrects errors using Euclid&#39;s algorithm. For a detailed description for the operation of the remainder of this circuit see U.S. patent application No. 400,739 (filed herewith). 
     The two devices are similar except that the Euclid divide module 34 in FIG. 2 has been replaced by a Euclid stack module 140A in FIG. 3 Similarly, the Euclid multiply module 35 in FIG. 2 has been replace by a Euclid stack module 140B which has the same architecture as the Euclid stack module 140A. The received polynomial 32 is coupled to the syndrome generator 33. The syndrome generator 33 calculates each of the 2t syndromes for the given received polynomial 32. The syndrome generator 33 is coupled to a first Euclid stack module 140A. The Euclid stack module 140A is coupled to receive control signals from the control block 42. The control block 42 contains a control function module 43 which receives a signal from the first Euclid stack module 140A. The control function module 43 is bidirectionally coupled to a POWER register 44 and a REDUCE register 45 which will be described below in relation to the control sequences. 
     The syndromes are input into the Euclid stack module 140A from the syndrome generator 33. The syndromes for T(x) are developed by the syndrome generator 33. The Euclid stack module 140 generates the T(x) polynomial. Once the T(x) polynomial has been formed each element of the polynomial is in its correct location in the Euclid stack module 140 to commence the Ω(x) recursion and solve the Ω(x) polynomial in the Ω(x) stack 144 of the polynomial solver 36 to determine to magnitude of the errors. 
     Similarly, a second Euclid stack 140B is coupled to receive control signals from the control block 42. The two Euclid stack 140A and 140B can be identical. A terminal cell 118 is coupled to receive a control signal from the first Euclid stack 140A. Based upon the control signal, the terminal cell 118 places an appropriate signal onto the Q-bus 112. The Q-bus 112 is coupled to each of the two Euclid stacks 140A and 140B. 
     The second Euclid stack receives the initial condition of a 1 as an initial condition for forming Γ(x). After Γ(x) is formed it is used to commence the Λ(x) recursion and then solve the Λ(x) polynomial in the Λ(x) stack 145 of the polynomial solver 36. 
     By having the initial conditions of Γ(x) and T(x) this decoder is able to resolve twice as many erasure errors as a decoder having initial conditions of 1 and S(x). 
     The Λ(x) stack 145 solves for zeros of the Λ(x) polynomial and finds the first derivative of the Λ(x) polynomial. Λ&#39;x is provided to an inverse ROM 37. The magnitude, zeros, and inverse first derivative of Λ&#39;(x) are provided to the error correction module 38 of the decoder. This information is compared to the received polynomial 32 which has been stored in the FIFO RAM 39 to form a corrected polynomial 40. 
     This error correction decoder operates in a four deep pipeline. The error correction module 38 can be acting upon a first message. The polynomial solver 36 can be acting upon a second message. The Euclid stack module 41 operates upon a third message. The syndrome generator 33 can operate upon a fourth message. The FIFO RAM 39 stores the same four polynomials being acted upon as just described. The initial conditions 42 supplied to the Euclid stack modules 140A or 140B determine which procedure is currently being resolved. 
     The POWER register 44 contains the degree of the Λ(x) polynomial. The Ω(x) of polynomial is shifted by the value contained in the POWER register 44. The highest order coefficient is shifted out first. If any non-zero coefficients are shifted out of Ω(x) polynomial then the degree of the Ω(x) polynomial must be higher than the degree of th Λ(x) polynomial. In that case the error is uncorrectable. 
     FIG. 4 shows another alternate embodiment of a Reed-Solomon Galois Field decoder which corrects errors using Euclid&#39;s algorithm. For a detailed description for the operation of the remainder of this circuit see U.S. patent application No. 400,739 (filed herewith). 
     The two devices are similar except that the Euclid stack module 140A and the Euclid stack module 140B have been combined into a single Euclid stack module 140. The various modules developed by the two stack modules 140A and 140B are developed by the single stack module 140 which multiplexes between forming the polynomials.