Reed-Solomon decoder with general-purpose processing unit and dedicated circuits

Abstract: There is provided a small size, high speed, versatile Reed-Solomon error correction decoding apparatus including a first operating unit (123) including a Galois field polynomial operation circuit (113) for obtaining a Galois field polynomial, a second operating unit (124) including a Galois field operation circuit (118) for performing an operation by using the Galois field polynomial, and a program generating unit (120) for generating a control program for the first and second operating units, wherein the first and second operating unit are provided in parallel with each other. Also, there is provided a small size, high speed, versatile Reed-Solomon error correction decoding apparatus including a first operating unit (123) including a Galois field polynomial operation circuit (113) for obtaining a Galois field polynomial and a register circuit (107) used when the Galois field polynomial operation circuit performs an operation, a second operating unit (124) including a Galois field operation circuit (118) for performing an operation by using the Galois field polynomial and a general-purpose operation circuit (116), a register unit (114) used when the first and second operating unit perform operations, and a program generating unit (120) for generating a control program for the first and second operating unit, wherein the first and second operating units and the register unit are provided in parallel with each other.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to an error correction decoding apparatus for correcting a code error in transmitted code data. Related Background Art Recently, the density of digital recording has increased steadily, and an error correction encoding/decoding apparatus which can operate at a high speed and has high correction performance is in demand accordingly. A Reed-Solomon code is a kind of a BCH code and has high correction performance because it can be corrected in units of bytes. Accordingly, a Reed-Solomon code is extensively used in a variety of fields such as an optical disk and a digital VTR. The principle of a representative decoding method for a Reed-Solomon code will be briefly described below. A q-element Reed-Solomon code having α as a primitive element of GF(q) and 1, α, α 2 , ... , α d-2 as a root of a generator polynomial G(x) will be taken as an example. Code length n = q - 1, information symbol number k = q - d, and minimum distance d min = d. First, a syndrome S i is calculated from a received polynomial Y(x) from equation (1) below. S i = Y (α i ) = E (α i ) ( i = 0, 1, ... , d - 2) where E(x) is a polynomial representing an error pattern. Assume that one error occurs in a position j 1 , j 2 ,..., j 1 . Note that n - 1 ≥ j 1 > j 2 > ···> j 1 ≥0 1 ≤ t = ┌( d - 1)/2┘ where ┌x┘ is a maximum integer smaller than x and t indicates the error correction performance. If this is the case, an error pattern polynomial E(x) is represented by E ( x ) = E 1 x j 1 + E 2 x j 2 +···+ E 1 x j 1 E i (i = 1,..., 1) is the value of an error in a position j i and the element of GF(q). The syndrome S i is rewritten from equation (1) as follows. S i = E 1 x i 1 + E 2 x i 2 +···+ E 1 x i 1 for x i = α ji ( i = 1,..., 1) A Reed-Solomon code is decoded by calculating the error positions j 1 , j 2 ,..., j 1 and the error values E 1 , E 2 ,..., E 1 from the syndrome S i . For this purpose, two polynomials σ( z ) = σ l z l +···+ σ 1 z + σ 0 = (1- x 1 z ) (1 - x 2 z ) ··· (1 - x 1 z ) on GF(q) are calculated. These polynomials have α -j1 , α -j2 , ... , α -j1 as a root. σ( z ) is called an error position polynomial, and η(z) is a polynomial required to calculate the error value and is called an error evaluation polynomial. Consider the following polynomial having the syndrome as a coefficient. S ( z ) = S d2 z d -2 +···+ S 1 z + S 0 The relationship between the syndrome polynomial, σ(z), and η(z) can be written as follows. σ ( z ) S ( z ) ≡ η( z )mod z d -1 This is a fundamental equation from which σ(z) and η(z) can be calculated. When the error correction performance t is 4 to 5, a method based on a Euclidean method of mutual division can be used as a method of efficiently calculating σ(z) and η(z). This method will be referred to as a Euclidean algorithm hereinafter. Equation (10) can be rewritten as follows by using an appropriate polynomial A(z). A ( z ) z d -1 + σ( z ) S ( z ) = η( z ) Since it is assumed that the error number 1 is t or less, the following equation must hold. deg η( z ) < deg σ( z ) ≤ t where deg is the degree of a polynomial. As is apparent from equations (8) and (7), σ(z) and η(z) have no common factor. It is proved that σ(z) and η(z) that satisfy equation (12) can be uniquely determined. Also, it is known that such σ(z) and η(z) can be calculated by the Euclidean algorithm for calculating the greatest common divisor polynomial of z d-1 and S(z). Fig. 1 shows a general method of the Euclidean algorithm. As a method of obtaining the root of σ(z) calculated by the Euclidean algorithm, chien search is generally used. Chien search is a method by which power α i (i = 0, 1,..., n - 1) of α is sequentially substituted into σ(z) and whether σ(α i ) equals 0 is checked. Error values e 1 , e 2 ..., e 1 can be calculated as follows. e i = -η(α - ji )/σ(α - ji ) l ( i = 1, ..., 1) where σ(z)' is a derived function of σ(z) and calculated by formally differentiating σ(z). Conventionally, the individual steps of the above correction processing are generally pipelined and constituted by hardware. Fig. 2 shows an example of the arrangement of a conventional Reed-Solomon code error correction decoding apparatus. Referring to Fig. 2, input data containing an error correction encoded error from an input terminal 600 is delayed by a processing time (to be described below) by a data delay circuit 601. At the same time, a syndrome operation circuit 602 calculates the syndrome S i in accordance with equation (1). This syndrome S i is supplied as the syndrome polynomial represented by equation (2) to a Galois field polynomial operation circuit 603. The Galois field polynomial operation circuit 603 calculates the error position polynomial σ(z) and the error value polynomial η(z) by using the Euclidean algorithm shown in Fig. 1. In this Euclidean algorithm, primarily a quotient polynomial and a remainder polynomial of a Galois field polynomial are repeatedly calculated. The error position polynomial σ(z) satisfying a comparison condition of degR(z) ≤ t - 1 in the Galois field polynomial operation circuit 603 is supplied to a chien search circuit 604. The chien search circuit 604 sequentially substitutes elements of a Galois field GF(2°) and checks whether each resultant value equals 0, thereby calculating a root. The chien search circuit 604 then supplies error position information i, the error value η(z), and the value σ(z)' calculated by formally differentiating the error position to an error value calculation circuit 605. The error value calculation circuit 605 calculates the error value e i from the error position information i calculated by the chien search circuit 604 and equation (13). The error position and value thus calculated are supplied to a correction circuit 606. The correction circuit 606 performs correction processing by calculating exclusive OR of the error position in the data sequence delayed by the data delay circuit 601 and the calculated error value. The correction circuit 606 outputs the result from an output terminal 607. In the above conventional arrangement, however, although high-speed processing is accomplished by constituting all blocks by hardware, the circuit scale inevitably increases. Additionally, the hardware configuration of the control block must be changed whenever the algorithm is altered for, e.g., complicated repetitive decoding including erasure correction of product-modulated data. It is known from US-A-4,899,341 to provide a BCH error correction circuit in which a plurality of Galois operation circuits are operated in parallel. It is also known from US-A-5,535,225 to provide three parallel Galois field processors in a BCH decoder which is capable of processing various values of codeword length and number of information symbols. It is also known from 8049e IEE Proceedings on E. Computers and digital techniques, 1 May 1990, N°3 vol. 137, part E, pages 197-201, Stevenage (GB), M. Hahn, to provide a universal error-correcting codec employing a processor, FIFO's and a series of universal register circuits (URC). The processor computes an error-locator polynomial and transfers it via the FIFO to a URC for error location calculation. Error locator and error value polynomials computed by the processor are then transferred to another URC for computation of error values. Under the circumstances as described above, it is an object of the present invention to provide an error correction decoding apparatus which can perform high-speed processing with a small circuit scale and has high versatility, and a method for the apparatus. Aspects of the invention are set out in the appended independent claims. To achieve the above object, according to one preferred embodiment of the present invention, there is provided an error correction decoding apparatus comprising first operating means including a Galois field polynomial operation circuit for obtaining a Galois field polynomial, second operating means including a Galois field operation circuit for performing an operation by using the Galois field polynomial, and program generating means for generating a control program for the first and second operating means, wherein the first and second operating means are provided in parallel with each other. Also, according to another preferred embodiment of the present invention, there is provided an error correction decoding apparatus comprising first operating means including a Galois field polynomial operation circuit for obtaining a Galois field polynomial and a register circuit used when the Galois field polynomial operation circuit performs an operation, second operating means including a Galois field operation circuit for performing an operation by using the Galois field polynomial and general-purpose operation circuit, register means used when the first and second operating means perform operations, and program generating means for generating a control program for the first and second operating means, wherein the first and second operating means and the register means are provided in parallel with each other. Other objects, features and advantages of the invention will become apparatus from the following detailed description taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a flow chart of a general Euclidean algorithm; Fig. 2 is a block diagram showing the arrangement of a conventional error correction decoding apparatus; Fig. 3 is a block diagram showing an embodiment of an error correction decoding apparatus according to the present invention; Fig. 4 is a flow chart of a Euclidean algorithm used in this embodiment; Fig. 5 is a block diagram showing a practical configuration of a Galois field polynomial operation circuit in Fig. 3; and Fig. 6 is a block diagram showing a practical configuration of a polynomial coefficient register in Fig. 3. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will be described in detail below with reference to the accompanying drawings. Fig. 3 is a block diagram showing an embodiment of an error correction decoding apparatus of the present invention. Referring to Fig. 3, a polynomial unit (first operating means) 123 which is the most characteristic feature in this embodiment comprises a Galois field polynomial operation circuit 113 and a polynomial coefficient register circuit 107 including a chien search circuit. This polynomial unit 123 is connected to a data bus in parallel with a scalar operation circuit (second operating means) 124 which comprises a scalar register circuit (register means) 114, a general-purpose operation circuit (ALU circuit) 116, and a Galois field operation circuit (GLU circuit) 118. That is, the polynomial unit 123 is connected to output buses (an A bus 108 and a B bus 109) of the scalar register circuit 114 as input of coefficient data and to an input bus (F bus) 104 of the scalar register circuit 114 as input/output of polynomial data. Assume that a Galois field GF(2 8 ) is used and each data bus is an 8-bit bus. As described above, the scalar register circuit 114 is a 3-port memory to which the A bus 108, the B bus 109, and the F bus 104 are connected, and which can perform one write and two reads independently of each other. Also, the ALU circuit 116 and the GLU circuit 118 in the scalar operation circuit 124 can perform operations using input immediates from an immediate bus (I bus) 112 in addition to output values from the scalar register circuit 114. That is, selection circuits 115 and 117 select one of the A bus 108 and the I bus 112, an operation is performed for the selected value and the value of the B bus 109, and the operation result is output to the F bus 104. Consequently, this operation result is written in the scalar register 114, in the polynomial coefficient register circuit 107 via a selection circuit 106, or in a syndrome memory circuit 102 via a memory IF circuit 103, or output to an external device (e.g., a correction circuit) via an external IF circuit 121. An operation will be described below by taking C1 syndrome decoding for C1(80, 72) and C2(90, 82) Reed-Solomon codes as an example. Input data from an input terminal 100 is input in units of encoding blocks (80 x 90 bytes). A syndrome operation circuit 101 constituted by a Galois field addition circuit and a Galois field coefficient circuit calculates a C1 syndrome and a C2 syndrome in parallel with each other, and writes the calculation results in the syndrome memory 102. The syndrome memory 102 has a capacity capable of storing syndromes of two blocks. At the same time syndromes of one block are written, a processor (constituted by, e.g., the polynomial unit 123, the scalar register 114, and the scalar operation circuit 124 described above) reads out syndromes written in the immediately preceding block via the memory IF circuit 103. In this manner error correction decoding processing can be performed. The processor performs the error correction processing in accordance with an instruction code read out from a program memory circuit 120 by a control circuit 119. This instruction code includes a scalar instruction and a vector instruction. Polynomial memory access and operations of polynomials can be performed by one vector instruction. By changing the program to be supplied to the processor, the error correction algorithm can be altered without changing any hardware. In the error correction decoding processing performed by the processor, an error position polynomial and an error value polynomial are first calculated from a syndrome polynomial by a Euclidean algorithm. That is, the C1 syndrome written in the syndrome memory circuit 102 is transferred as a 7-degree syndrome polynomial to the polynomial coefficient register circuit 107 by the vector instruction. On the basis of a Euclidean algorithm shown in Fig. 4, the Galois field polynomial operation circuit 113 and the polynomial coefficient register circuit 107 perform operations for obtaining the error position polynomial and the error value polynomial. Referring to Fig. 4, A, B, L, and M are Galois field polynomials, α and β are the coefficients of the highest degrees of the Galois field polynomials A and B, t is error correction performance, S(Z) is a syndrome polynomial, σ(Z) is an error position polynomial, and η(Z) is an error value polynomial. Fig. 5 is a detailed block diagram of the Galois field polynomial operation circuit 113. In the configuration shown in Fig. 5, operations of the following expressions used in the Euclidean algorithm shown in Fig. 4 can be performed by a single instruction. In expressions (14) and (15) below, α and β are Galois field elements, and X(Z) and Y(Z) are Galois field polynomials. α X ( Z ) + β Y ( Z ) α X ( Z ) + β Y ( Z ) Z For example, when a vector instruction corresponding to expression (14) is issued, the coefficients of α and β are input from input terminals 200 and 204 connected to the A bus 108 and the B bus 109 in Fig. 3, and are set in coefficient registers 201 and 205, respectively. Also, the Galois field polynomials X(Z) and Y(Z) are input from input terminals 202 and 206 connected to output buses (a PA bus 110 and a PB bus 111, respectively) of the polynomial coefficient register 107. Galois field multiplication circuits 203 and 208 multiply the input Galois field polynomials X(Z) and Y(Z) by the coefficients α and β set in the coefficient registers 201 and 205, respectively. The respective products are added by a Galois field addition circuit 209 and supplied to an output terminal 210. On the other hand, when a vector instruction corresponding to expression (15) is issued, the degree of the input polynomial Y(Z) from the input terminal 206 is shifted by one degree by a degree shift circuit 207. Thereafter, the same operation as for the vector instruction corresponding to expression (14) is performed, and the operation result is supplied to the output terminal 210. The output data from the output terminal 210 is written in the polynomial coefficient register 107 via a bus 105 and the selection circuit 106 in Fig. 3. In the above Euclidean algorithm, the processing steps such as the comparison of degrees and the generation of register addresses other than the polynomial operations are performed in parallel with the polynomial operations by using the scalar register circuit 114 and the scalar operation circuit 124. When the processing using the Euclidean algorithm shown in Fig. 4 is complete, the obtained error position polynomial σ(Z) and error value polynomial η(Z) are written in specific addresses of the polynomial coefficient register circuit 107, and the chien search circuit calculates the root. Fig. 6 is a detailed block diagram of the polynomial coefficient register circuit 107. This polynomial coefficient register circuit 107 is a 3-port memory similar to the scalar register circuit 114 and can independently perform one write from an input terminal 300 via a section circuit 301 and two reads for output terminals 308 and 309 via a selection circuit 307. Addresses for selecting registers in the polynomial coefficient register 107 include an upper address for selecting a vector and a lower address for selecting a coefficient in the vector. These addresses are input from an input terminal 306 to a control circuit 305. The control circuit 305 decodes the input addresses and selects write and read registers by controlling the selection circuits 301 and 307. As an example, assume that input addresses shown below are used to select one of a general-purpose register circuit 302, a chien search register circuit 303, and a control register circuit 304 and select internal registers of the circuit. Upper addresses Lower addresses 0 - 4 0 - 8 General-purpose register 5 - 6 0 - 7 Chien search register 7 0 Control register The highest degree of the polynomial used in the error correction processing is Z 8 . Accordingly, in the general-purpose register circuit 302, registers for five vectors, assuming that a nine-byte coefficient forms one vector, i.e., 9 x 5 byte-registers 3100 to 3148, can be randomly accessed. In this configuration, the registers 3100 to 3118 in upper addresses 0 and 1 are assigned as registers used in polynomial operations done by the Euclidean algorithm. The registers 3120 to 3148 in upper addresses 2 to 4 are assigned as registers for storing the results of chien search. Also, in the chien search circuit 303, 8 x 2 byte-registers 3200 to 3207 and 3240 to 3247 are accessible at random. These registers are connected to coefficient units 3210 to 3217 and 3250 to 3257 for multiplying Galois field coefficients α 254 to α 247 . Outputs from the Galois field coefficient units 3210 to 3217 are applied to a Galois field addition circuit 3230 where Galois field addition is performed for all of the coefficients. The sum can be written in another register via the selection circuit 301. Also, outputs from the Galois field coefficient units 3250 to 3257 are applied to a Galois field addition circuit 3260 where Galois field addition is performed for all of the coefficients, and the sum is output to the selection circuit 301. Furthermore, even-degree outputs from the Galois field coefficient units 3250 to 3257 are applied to a Galois field addition circuit 3263 where Galois field addition is performed for these even-degree coefficients, and the sum is output to the selection circuit 301. The output from the Galois field addition circuit 3260 is also supplied to a zero detection circuit 3261. The zero detection circuit 3261 checks whether the output value from the Galois field addition circuit 3260 is "0". If the output value is "0", the zero detection circuit 3261 supplies a control signal to the control circuit 305 and an error address count circuit 3262. In accordance with the control signal from the zero detection circuit 3261, the error address count circuit 3262 outputs an error address to the selection circuit 301. The operation of the polynomial coefficient register circuit 107 having the configuration as shown in Fig. 6 will be described below. First, the error value polynomial η(Z) and the error position polynomial σ(Z) calculated by the Galois field polynomial operation circuit 113 in Fig. 3 by using the Euclidean algorithm in Fig. 4 are written in the chien search registers 3200 to 3207 and 3240 to 3247 at upper addresses 5 and 6, respectively. After the error position polynomial σ(Z) and the error value polynomial η(Z) are thus set in these registers, a control register 3300 in the upper address 7 is selected to set a code length (80 herein). At the same time, a flag of chien search start is set. When the chien search start flag is set, the control circuit 305 opens the I/O terminals of the chien search registers 3200 to 3207 and 3240 to 3247 by controlling the selection circuits 301 and 307, and controls these registers to sequentially substitute the powers of α into the error value polynomial η(Z) and the error position polynomial σ(Z) until the code length is reached. Simultaneously, the control circuit 305 applies the output from the Galois field addition circuit 3260 to the zero detection circuit 3261 which checks whether σ(α i ) = 0. If the zero detection circuit 3261 detects that σ(α i ) = 0, the control circuit 305 writes the output from the Galois field addition circuit 3260 as η(α i ) in the register at upper address 2, the output from the Galois field addition circuit 3263 as a formal derivative σ'(α i ) of σ(α i ) in the register at upper address 3, and the output from the error address counter 3262 as an error address i in the register at upper address 4, via the selection circuit 301. Thereafter, the chien search is complete when the powers of α are substituted 80 times as the code length. When the chien search is complete, the control circuit 305 writes a chien search end flag in the control register 3300. The end of the chien search can be known by reading out the flag from the control register 3300 by the program. While the chien search circuit in the polynomial coefficient register circuit 107 is performing the chien search processing, the Galois field polynomial operation circuit 113 can simultaneously execute the Euclidean algorithm for the next code by using the registers at upper addresses 0 and 1; it is unnecessary to stop the processing to perform chien search. Accordingly, the error correction processing can be performed at a high speed. Also, when the chien search processing is complete, an error value e i can be calculated by operating equation (16) below by using the GLU circuit 118 in the scalar operation circuit 124. e i = η(α i ) σ'(α i ) The error address i calculated by the chien search circuit in the polynomial coefficient register circuit 107 and the error value e i calculated by the GLU circuit 118 are supplied to a correction circuit (not shown) from an output terminal 122 via the memory IF circuit 103 and the external IF circuit 121, and error correction is performed. Additionally, the C2 syndrome in the syndrome circuit 102 is rewritten. C1 correction processing can be executed at a high speed by repeating the above procedure. Erasure correction can be realized by performing error correction processing by assuming that the error position is already found. Encoding processing is also accomplished by performing erasure correction for the parity position. As has been described above, the error correction decoding apparatus of this embodiment has a processor configuration in which first and second operating means are provided in parallel with each other and controlled in accordance with programs generated by a program generating means. Therefore, all changes in algorithms for performing error correction can be realized by software, so a high-versatility system can be realized with a small circuit scale. Additionally, while a Galois field operation circuit in the second operating means is performing an operation, a Galois field polynomial operation circuit in the first operating means provided in parallel with the second operating means can calculate a Galois field polynomial for the next coded data. Accordingly, the processing speed can be increased. Furthermore, Galois field coefficient units and Galois field addition circuits are added to some of registers constituting a register circuit, and roots are calculated by chien search for Galois field polynomials written in these registers. Since a chien search function is thus given to a portion of the register circuit, operations of Galois field polynomials done by a Galois field polynomial operation circuit and calculations of error positions by chien search can be executed in parallel with each other by controlling programs. This further increases the processing efficiency and realizes error correction processing at a higher speed. In other words, the foregoing description of embodiments has been given for illustrative purposes only and not to be constructed as imposing any limitation in every respect. The scope of the invention is, therefore, to be determined solely by the following claims

Claims: An error correction apparatus comprising: a Galois field polynomial generation circuit (113) for generating an error position polynomial and an error value polynomial; a chien search circuit (107) for performing a chien search; a calculating circuit (118) for calculating error values; and a controlling circuit (119) for controlling said Galois field polynomial generation circuit, said chien search circuit, and said calculating circuit; wherein said Galois field polynomial generation circuit and said chien search circuit are integrally provided in a first operating circuit (123), said first operating circuit being arranged so that said Galois field polynomial generation circuit is operable to perform a next process while said chien search circuit performs said chien search; said calculating circuit being provided in a second operating circuit (124) provided in parallel with said first operating circuit; and wherein said controlling circuit is operable to control said first and second operating circuit using a control program stored in a memory (120). An apparatus according to claim 1, wherein said Galois field polynomial generation circuit is operable to generate the error position polynomial and the error value polynomial using a Euclidean algorithm. An apparatus according to any of claims 1 and 2 wherein said Galois field polynomial generation circuit is operable to perform an operation defined by expressions below: aX(Z) + βY(Z) aX (Z) + βY (Z) Z where a and β are Galois field elements, and X(Z) and Y(Z) are Galois field polynomials. A method of operating an error correction apparatus comprising: operating a Galois field polynomial generation circuit (113) to generate an error position polynomial and an error value polynomial; operating a chien search circuit (107) to perform a chien search; operating a calculating circuit (124) to calculate error values; and operating a controlling circuit (119) to control said Galois field polynomial generation circuit, said chien search circuit, and said calculating circuit; wherein said Galois field polynomial generation circuit and said chien search circuit are integrally provided in a first operating circuit (123), said first operating circuit being arranged so that said Galois field polynomial generation circuit is operable to perform a next process while said chien search circuit performs said chien search; said calculating circuit being provided in a second operating circuit (124) provided in parallel with said first operating circuit; and wherein said controlling circuit is operable to control said first and second operating circuit based using a control programme stored in a memory (120). A method as claimed in claim 4 wherein said Galois field polynomial generation circuit is operable to generate said error position polynomial and said error value polynomial using a Euclidean algorithm. A method as claimed in any of claims 4 and 5, wherein said Galois field polynomial generation circuit is operable to perform an operation defined by expressions below: aX(Z) + βY(Z) aX(Z) + βY(Z)Z where a and β are Galois field elements, and X(Z) and Y(Z) are Galois field polynomials.

Inventors: SHIMIZU TETSUYA, SHIMIZU, TETSUYA
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1997
Main classification: H03M13
IPC codes: H03M13