GB2324391A - Error decoding for Reed-Solomon codes - Google Patents

Error decoding for Reed-Solomon codes Download PDF

Info

Publication number
GB2324391A
GB2324391A GB9716661A GB9716661A GB2324391A GB 2324391 A GB2324391 A GB 2324391A GB 9716661 A GB9716661 A GB 9716661A GB 9716661 A GB9716661 A GB 9716661A GB 2324391 A GB2324391 A GB 2324391A
Authority
GB
United Kingdom
Prior art keywords
signal
erasure
syndrome
signals
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
GB9716661A
Other versions
GB9716661D0 (en
GB2324391B (en
Inventor
Wei-Hung Huang
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
United Microelectronics Corp
Original Assignee
United Microelectronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by United Microelectronics Corp filed Critical United Microelectronics Corp
Priority to GB9716661A priority Critical patent/GB2324391B/en
Priority to NL1006174A priority patent/NL1006174C2/en
Priority claimed from NL1006174A external-priority patent/NL1006174C2/en
Publication of GB9716661D0 publication Critical patent/GB9716661D0/en
Publication of GB2324391A publication Critical patent/GB2324391A/en
Application granted granted Critical
Publication of GB2324391B publication Critical patent/GB2324391B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/03Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words
    • H03M13/05Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits
    • H03M13/13Linear codes
    • H03M13/15Cyclic codes, i.e. cyclic shifts of codewords produce other codewords, e.g. codes defined by a generator polynomial, Bose-Chaudhuri-Hocquenghem [BCH] codes
    • H03M13/151Cyclic codes, i.e. cyclic shifts of codewords produce other codewords, e.g. codes defined by a generator polynomial, Bose-Chaudhuri-Hocquenghem [BCH] codes using error location or error correction polynomials

Landscapes

  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Algebra (AREA)
  • General Physics & Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Error Detection And Correction (AREA)

Abstract

An apparatus for decoding error words and erasure words existing in transmitted word signals using Reed-Solomon codes from an external system (100), comprises: (a) a syndrome generator (210), for receiving the transmitted word signals and generating syndrome signals; (b) an erasure counter (280) incremented each time an erasure word is received; (c) registers (220) for storing the syndrome signals and the erasure bits; (d) arithmetic logic (230) for reading the values stored in the registers and generating a first feedback signal and a deductive signal, and providing the first feedback signal to the registers; (e) a comparator (250) for receiving the deductive signal and performing a comparison operation to generate a comparative signal; (f) a program controller (270) for receiving the comparative signal and reading the value stored in the erasure counter, and for outputting a program control signal; (g) a program counter (260) for generating a program counting signal and a second feedback signal, whereby the program controller is responsive to the second feedback signal to selectively change the program control signal; and (h) an interpreter (240) for generating a register address signal and an enable signal, the arithmetic logic being responsive to the enable signal for reading the syndrome signals and the erasure words stored in the registers, according to the register address signal, in order to decode the error words.

Description

ERROR DECODING METHOD AND APPARATUS FOR REED-SOLOMON CODES BACKGROUND OF THE INVENTION Field of the Invention The invention relates generally to a method and an apparatus for performing error decoding of digital data using Reed-Solomon codes. More particularly, the invention relates to a method and an apparatus for decoding the value and location of error words in digital data using Reed-Solomon codes by a series of product sum arithmetic operations, without a calculation of power.
Technical Background Reed-Solomon (hereinbelow, abbreviated as RS) codes are very important in communication for the preservation of data, operating to continuously correct errors in bytes of digital data.
There are generally two different circuit types in the design of RS code decoders.
One is the pipe-line type and the other is the processor-based program control type.
Pipe-line type RS code decoders are typically used in systems that must work at highspeed and in real-time. Correspondingly, the circuitry for the pipe-line type RS code decoder is complex and expensive which is wasteful of resources and money in a system demanding only moderate speed. The RS code decoder of the processor-based program control type performs repeated calculations using an arithmetic logic unit (ALU), under the program control, which reduces the complexity and cost of the circuit of the RS code decoder. There are apparent differences between the pipe-line type and the processorbased program control type RS code decoders.
For RS codes, the calculations for decoding, when there are more than two errors among the transmitted words, are too complex to appropriately use the processor-based program control type of RS code decoder. However, the conventional system of this type for decoding two error words is used and is illustrated hereinafter: An RS code can be defined as RS"(n, k). The input terminal of the RS code decoder receives n symbols, with each symbol consisting of m bits. After error correction, k data symbols are transmitted from the decoder.
RS",(n,k) can be defined as: m the number of bits of each imported symbol; n#(2m-1) the code length ofthe RS codes; k the number of information words in RS codes; d= n-k+l the Hamming distance in RS codes; and
the maximum number of error words decoded by the decoder.
Therefore, in an RS code decoder which can detect two error words, t=2, d=2t+l=5, k=n+1-5=nX, and RS.(n,k) can be modified as RS(n,nA). For RS=(n,n4) codes, the generating polynomial can be represented as: g(x)=(x-1)(x-α)(x-α)(x-α ) It may be assumed that in the n symbols there are v error words which are located at 1,, 12, 13, 14, ......, 1v and whose values are respectively Y1,Y2,Y3,Y4,..........Yv. In order to explain the principle of decoding the RS codes hereinafter, if the location li is known before the n symbols are decoded, the error word is defined as an 'erasure', and if the location li is unknown before the n symbols are decoded, the error word is defined as an error.
With RS codes having a Hamming distance (d=5), p error words and q erasure words can be detected if p and q satisfy the following formula: 2p+q < d-l=5-l=4 (1) AndifX1=a11 l # i # v, then the syndromes are:
that is, the syndromes So, S1, S2, S3 can be obtained with the respective combinations of and Yj where: v : the number of erasure words and error words, v=p+q, p : the number of error words, q: the number of erasure words, Xj: Xj=&alpha;lj and lj is the locations of the jth error Sk: syndrome, Yj: jth error value, and d: Hamming distance of the code.
According to several U.S. patents, for example, Ozaki (4,852,099) and Okamoto et al. (4,677,622), we know the following: If p=O and q=4, then: Y4 = S3 + (X1 + X2 + X3 )52 + (X1X2 + X2X3 + X3X1)Sl + X1X2X3S0 (3) (X4 + X1)(X4 +X2)(X3+X4) If q=3 and p=0, then: S2 + (X1 + X2)S1 + X1X2S0 (4) Y3 = (X3 + X1)(X3 + X2) If q=2 and p=O, then: Y2 = S1 + X1S0 (5) x2 + x, If q=1 and p=O, then: 4 = S0 (6) When the number of erasure words q is from one to three, the number of error words p that can be accommodated becomes zero or one in accordance with Equation (1).
To determine whether the actual value of p is zero, or one, or larger than one (in the situation that p is larger than one, the decoder cannot detect any error word from n symbols), reference must be made to a set of Forney Syndromes.
If q is equal to one, then the Fomey Syndromes are defined as: T1=S1+S0X1 T2=S2+S1X2 (7) T3=S3+S2X3 If q is equal to two; then'the Forney Syndromes are defined as: T1=S2+(X1+X2)S1+X1X2S0 (8) T2=S3+(X1+X2)S2+X1X2S1 If q is equal to three, then the Forney Syndromes are defined as: T1=S3+(X1+X2+X3)S2+(X1X2+X2X3+X3X1)S1+X1X2X3S0 (9) In the condition that q is equal to one or two, the value of p can be determined according to the rules below: (1) If the Forney Syndromes are all equal to zero, the value of p is zero.
(2) If the Forney Syndromes are all not equal to zero, the value of p is one.
(3) If at least one of the Forney Syndromes is equal to zero and at least one of the Forney Syndromes is not equal to zero, the decoder cannot correct any error word from n symbols.
Further, when q is equal to three, if the Forney Syndrome is equal to zero, then the decoder can correct error words from n symbols. When q is equal to three, and if the Fomey Syndrome is not equal to zero, then the decoder cannot correct errors from n symbols.
When p is equal to one, the locations of unknown error words can be determined with the equations below: if q=I and p=1, then X, S, (10) X2 = S1 + S0X1 if q=2 and p=l, then X3 = S3 + S2(X1 + X2) + S1X1X2 (11) S2 + S1(X1 + X2= + S0X1X2 From the above Equations (3) to (11), the value of p can be determined only when the value of q is not equal to zero. In the situation that q is equal to zero, the value of p is determined by evaluating the following quantities: SA = S1S1+S0S2 S8 = S2S2+SIS3 (12) SC = S0S3+S1S2 (1) If the three quantities are all equal to zero, then p is equal to one.
(2) If three quantities are all not equal to zero, then p is equal to two.
(3) If one or more of the quantities are equal to zero, and one or more of the quantities are not equal to zero, the decoder cannot correct the errors in n symbols.
in situation (1), that is q=O and p=l: X = Sl (13) So In situation (2), that is q=0 and p=2: X1 + X2 = S0S3 + S1S2 (14) S1S1 +5052 X-X= 52S2 + S,S, (its) S1S1 + S0S2 From Equation (3) to Equation (13), Xi and Yi can be determined by three types of calculations, such as adding, multiplying and inverting, except in the case of (p,q)=(2,0).
( When q is not equal to zero, under the condition that i # q, Xi can be obtained while the n symbols are being imported, and the values of Yi and li can be obtained with the additional calculation of a logarithm.) Under the condition that p=2 and q=O, there are several ways to solve for the values of X1 and X2 with Equation (14) and Equation (15). For example, the conventional method is to perform a "Chien's Search". In the method using a Chien's Search, at first, Xis set to a predetermined value, and the value of Xl+X2 is set as SUM. Thus, X2=SUM-X1 is obtained from Equation (14). Thereafter, X, and X2 are substituted in Equation (15). If the value of the left side of the equation is not equal to the value of the right side, X, is set to another predetermined value, referring to the former value. By repeatedly setting the value of X1, the value of X2 can be obtained. But the speed of decoding is very slow for several repetitions of the calculation in which different values of X, and X2 are substituted in the processor-based program control decoder. The method therefore has a negative influence on the whole system, and is not practicable for calculating the actual values of X, and X2.
SUMMARY OF THE INVENTION It is therefore an object of the invention to provide a method for performing error decoding of digital data using a Reed-Solomon code, that is useful to correctly and rapidly decode the values and locations of two errors in digital data defined as RS",(n,n- 4) of the Reed-Solomon code, by a series of product sum arithmetic operations, using addition, multiplication, division, shift-logarithm, and location.
It is another object of the invention to provide an apparatus for performing such a method of decoding.
This is accomplished in accordance with the invention by providing an error - decoding method for decoding syndrome signals using Reed-Solomon codes, the Reed Solomon codes being defined as RSm(n,k), wherein m is a number of bits of each syndrome, n is a length of Reed-Solomon codes, and k is a length of information words in the Reed-Solomon codes, wherein the Reed-Solomon codes comprise p error words and q erasure words, nS(2m- 1 ) and 2p+q < d- 1, and wherein d is the Hamming distance. The error decoding method includes decoding the error words and the erasure words existing in every syndrome signal and determining the numbers p and q.
Two equations Xl2= a21 and X22=&alpha;2/2 are evaluated for a calculation of location when there are two error words and no erasure words in every syndrome signal, wherein the syndrome signals having two errors are defined as: Sk = #Z2XjkYj 0#k#3 j=l wherein Xl= , X2=&alpha;l2, l1 and 12 define the locations of two error words, and t and Y2 are values of the two error words: land l2 are evaluated by a calculation of the logarithm of a24 and a211 and a calculation of shifting; and Y and Y2 are obtained by a series of productisum arithmetic calculations according to X12=&alpha;2/1, X2=&alpha;2/2.
In the above-mentioned error decoding method, when there are no erasure words in syndrome signals, the number p of error words can be determined by the three quantities S,S, + S0S2, S2S2 + S1S3 and S0S3 + S1S2. When none of the three quantities are equal to 0, then p is equal to 1. When all three quantities are equal to 0, then p is equal to 1. When at least one ofthe three quantities is equal to 0 and at least one ofthe three quantities are not equal to 0, then p is not determinable.
Furthermore, in the above-mentioned error decoding method, the calculation of location is performed by evaluating the following equation: &alpha;i+&alpha;-i- > &alpha;i l#i#2m-l When there are two error words and no erasure words in every syndrome signal, then: X1 + X2 = S0S3 + S1S2 SIS, +SoS2 S2S2 + S1S3 xi.x = S1S1 + S0S2 Therefore, locations l, and 12 of the error words can be determined by calculation of location according to the following equations: X12 = &alpha;2/1 2 - a2!: and 1 and 12 determined as follows: if not shift ai - > i if shift and i is even 2 i + (2 - l) =2m-1 + i-1 if shift and i is odd 2 2 Furthermore, the error decoding method according to the invention can be executed by providing an apparatus for decoding error words and erasure words existing in transmitted word signals, using Reed-Solomon codes. provided from an external system.
Such an apparatus would include a syndrome generator, to be coupledXto the external.
system, for receiving the transmitted word signals therefrom and generating syndrome signals.
An erasure counter is to be coupled to the external system, for receiving the erasure words. An erasure counting value stored in the erasure counter is incremented by one each time that an erasure word is detected.
Registers are coupled to the syndrome generator, and to be coupled to the external system, for receiving the syndrome signals and the erasure words, and for storing the syndrome signals and the erasure words at predetermined locations. An arithmetic logic circuit (ALU) is coupled to the registers for reading the syndrome signals and the erasure words stored in the registers, and performing a predetermined operation in order to provide a feedback signal to the registers, and generate a deductive signal.
A comparator is coupled to the arithmetic logic circuit for receiving the deductive signal, performing a comparing operation, and then outputting a comparison signal. A program controller is coupled to the comparator and the erasure counter, for receiving the comparison signal from the comparator, reading the erasure counting value stored in the erasure counter, and outputting a program control signal. A program counter is coupled to the program controller for receiving the program control signal, in response to which it X generates a program counting signal, and also outputs a feedback signal to the program controller. In response to receipt ofthe feedback signal, the program controller changes the program control signal.
An interpreter is coupled to the program counter to receive the program counting signal, and in response outputs a register address signal and an ALU enable signal. The arithmetic logic circuit (ALU) reads the syndrome signals and also reads the erasure words stored in the registers, according to the register address signal, in order to decode the error words in the transmitted word signals.
Moreover, the arithmetic logic circuit includes an inverter, a multiplier-adder circuit, a shift-logarithm circuit for performing shift and logarithm calculations and a locator for performing a location calculation. The inverter performs an inverting calculation on the syndrome signals and the multiplier-adder circuit performs an add calculation and a multiplication calculation on the syndrome signals. The shift-logarithm circuit performs a logarithmic calculation of the syndrome signals, and a shift calculation on the result of the logarithmic calculation, according to the ALU enable signal. The locator performs a calculation of location.
The method is executed selectively in the arithmetic logic circuit by operating the inverter, the multiplier-adder circuit, the shift-logarithm circuit, and the locator, in order to generate the feedback signal and the deductive signal.
BRIEF DESCRIPTION OF THE DRAWINGS Other objects, features, and advantages of the invention will become apparent from the following detailed description of the preferred but non-limiting embodiment, with reference to the accompanying drawings in which: FIG. 1 is a circuit block diagram of the preferred embodiment of decoding apparatus according to invention; FIG. 2 is a circuit block diagram of the shift-logarithm circuit in the preferred embodiment; and FIG. 3 is a flow chart of the preferred embodiment of decoding method according to invention.
DETAILED DESCRIPTION OF THE INVENTION Referring to FIG. I, a decoding apparatus 200 according to the preferred embodiment of the invention comprises syndrome generator 210, registers 220, an arithmetic logic circuit 230, an interpreter 240, a comparator 250, a program counter 260, a program controller 270, and an erasure counter 280. The arithmetic logic circuit 230 includes an inverter 232, a multiplier-adder circuit 234, a shift-logarithm circuit 236, and a locator circuit 238.
When an external system 100 begins to transmit signals, transmitted word signals are transmitted to the syndrome generator 210 through a line 10, and erasure word signals are transmitted to the registers 220 and the erasure counter 280 through a line 32. The syndrome generator 210 generates syndrome signals from the transmitted word signals according to the format of RS codes. Syndrome signals are output to the registers 220 through a line 12. The registers 220 temporarily store every syndrome signal and erasure word signal in corresponding addresses in predetermined registers therein. Each time that the erasure counter 280 receives an erasure word signal via the line 32, an erasure counting value stored in the erasure counter 280 is incremented by one in order to count the sum of all erasure word signals. The erasure counting value is transrnitted to the program controller 270 through a line 34.
When the apparatus 200 is enabled, the arithmetic logic circuit 230 receives syndrome signals and erasure word signals, which are stored in the registers 220, through the respective line 13, line 14, and line 15. After a series of selective calculations in the arithmetic logic circuit 230, a feedback signal is output to the registers 220 on line 16 where it is stored at a predetermined location. At the same time a deductive signal is output to the comparator 250 for a comparison calculation. Thereafter, a comparison signal is output to a program controller 270 on line 22.
Based on the output of the comparator 250, the erasure counting value from the erasure counter 280, and the program counting value stored in program counter 260, the program controller 270 determines whether the program address should jump or not, and if it should, to which address it should jump. Based on the determination, a program control signal is output from the program controller 270 to the program counter 260 through a line 28. A program counting signal is outputted to the interpreter 240 through a line 24 when the program counter 260 receives the program control signal. At the same time, the program counter 260 changes the program counting value, and then outputs the modified value as feedback to the program controller 270 on line 26 in order serve as a reference for the shifting of the program controller 270.
The interpreter 240 outputs register address signals on line 20 and an enable signal on line 30 respectively to the registers 220 and the arithmetic logic circuit 230 while receiving the program counting signal from the program counter 260. The arithmetic logic circuit 230 reads the values stored in correspondence with the register address signal, while receiving the enable signal. By the deductive function performed in the arithmetic logic circuit 230, the. value and location of error words existing in transmitted word signals can be determined.
For the purpose of performing the deductive function, the. arithmetic logic circuit 230 comprises the inverter 232, the multiplier-adder circuit 234, the shift-logarithm circuit 236 and the locator 238. The inverter 232 performs an inverting calculation on the ALU input value. The multiplier-adder circuit 234 performs an addition and multiplication calculation on the ALU input values. The shift-logarithm circuit 236 performs a logarithmic calculation on the ALU input values, and performs a shift calculation on the ALU input values based on the result of logarithm calculation, according to the enable signal. The locator 238, performs a calculation of location.
Referring to FIG. 2, the shift-logarithm circuit 236 includes a logarithm calculator 410 and a multiplexer 420. When calculating data, for example, ALU input value is transmitted to the logarithm calculator 410 through a line 402, and shifted syndrome signals and unshifted syndrome signals are respectively output therefrom to the multiplexer 420 as, for example, b0,b2m-1,b2m-2,... ..,b1 and b2m-1,b2m-2,. .,bn through lines 412 and 414. When the multiplexer 420 receives these signals and is enabled by the enable signal (shift) through line 422, the multiplexer 420 outputs the calculation result through line 424. - 'The shift-logarithm performed in the shift-logarithm circuit 236, is specified below: if not shift &alpha; - > i if shift and i is even (16) 2 i + (2"' -1) = 2m-1 + i-1 if shift and i is odd 2 2 The calculating method of location is: &alpha;i+&alpha;-i------ > &alpha;i 1#i#2m-1 (17) When word signals are transmitted, the apparatus 200 for decoding error words and erasure words performs some initial actions. That means, at first, the values stored in two of the registers 220 are respectively set as an and a-', and these two registers are defined as rl and r2. Therefore, the value of register rl is an and the value of register r2 is &alpha;-1. When the first transmitted word signal is transmitted to the apparatus 200, the value of register rl is multiplied by a ', and then the value of register r, is replaced with rlxa t.
That means that if the syndrome signal is the Lth signal in transmitted data, the value of register r, is set to &alpha;n x & L. Whenever the erasure word signal is not logic "0", the value of r, is saved in some proper register of the registers 220. Then the definition Xi=&alpha;li can be executed. without the calculation of multi-powers, i.e., powers higher than 2. This procedure can reduce the complexity of the circuit.
Previously, an RS decoder was able to correct two errors with a processor-based program control structure, as noted above. However, a processor-based program control structure is not practical because the calculating formulas become very complex when an RS decoder must solve more than two errors. Therefore, a decoder which can correct two errors existing in RS codes accords with the real demands.
Errors and erasures can be corrected by the above Equations (3) to (10) when (p,q)=(0,l), (0,2), (0,3), (0,4), (1,1), or (1,2), but not for the situation p=2 and q=0. The errors also can be determined by Equation (13) when (p,q)=(l ,0). The value of O,Yi) can be determined by calculations above-mentioned of addition, subtraction and inversion and the value of location li of Yi can also be. determined.
The Equations (14) and (15) can also be solved when p=2 and q=0: X1 + X2 = S0S3 + S1S2 (14) 2 +5052 X1 # X2 = s2s2 +S,S, (15) S1S1 +5052 According to conventional calculating methods, for example, a Chien Search is conducted, in which the calculating formulas are very complex and time consuming. The invention can decode the errors with the new calculating methods of location and shiftlogarithm. Equation (14) divided by Equation (15) provides an Equation (17) as follows: (X1 + X2)2 = X1+X2 = &alpha;(l1-l2) + &alpha;-(l1-l2) (18) X, X2 X2 X The calculating method of location is: a' + a-1 ---- > a' 1 # i # 2m-i (19) The following equation is obtained by the method of location: 2 = X1 1 # (11-12)mod(2m-1) S 2ml (19) x2 Multiplying Equation (15) by Equation (19) provides the following equation: X1 # X2 # X2 = X22 = a212 x In the same way as by the shift-logarithm calculation of Equation (16), the value of 12 is obtained.
With this method the values of X12 and X22 are obtained. In order to solve for the value of Y2 by Equation (5), it is necessary to calculate according to the following: ioai in order to find out the values of it and X2.
Equation (5) is redefined in order to avoid the calculation of &alpha;i from i and solve for the value Y2: Y2 = S2 + X12 # S0 (20) XI2 + X22 Referring to the flow chart of FIG. 3, when all transmitted words have been input into the decoder, if all syndrome signals are zero as determined in step 310, this of course means that the transmitted words have no error words, and in the following step, step 340, the decoding action is terminated. If all syndrome signals are not zero, then in a step 312 the erasure counting value stored in the erasure counter 280 is tested. if the erasure counting value is 1, 2 or 3, the flow branches to the left where a determination is made as to whether there is any error word or not using the Forney Syndrome formulas separately according to step 314, step 316, or step 318, respectively.
For example, in step 318, when the erasure counting value is equal to 1, the Fomey Syndrome formulas of Equation (7) are evaluated. In step 316, when the erasure counting value is equal to 2, the Fomey Syndrome formulas of Equation (8) are devaluated. In step 314, when erasure counting value is equal to 3, the Forney Syndrome formula 6f Equation (9) is evaluated. After one of the above-mentioned steps, the values of \, such as X3 in step 320 and X2 in step 322 are obtained.
When the erasure counting value is equal to 4, then in step 324 the value of Y4 is obtained according to Equation (3) and the values of S2 ,S1 ,and So are updated according to the value ofY4. In step 326 the value of Y3 is directly obtained according to Equation (4), and based on this value of Y3 the values of S2 and So are updated. And then, in step 328, the value of Y2 is obtained by Equation (20), and based on this value of Y2 the value of So is updated. Then in step 330, the value of Y is obtained with the Equation (6).
The method of calculating the value of Y; is initiated by substitution of the maximum value 'i'. The calculated value Y Yi(,, may be taken as a known error word and that error word may be regarded as removed from the transmitted words. New values of S are obtained by a method supplemented by Equation (2).
For example, if the value of Y4 is known, then the new values of Si are: So o + S < -- S0 + Y4 X4 S2 tis, S2 +Y, X,2 Every value of Yj can be obtained corresponding to every Xj.
In the same way, when the erasure counting value is equal to 3, then when in step 314 the Forney Syndrome T1 according to Equation (9) is computed and checked, if the result is not zero, which means that the errors cannot be decoded, this causes the termination of decoding in step 342. If the Syndrome T1 is zero, then flow branches from decision step 314 and the values of Y1, Y2, and Y3 are computed separatelyin step 326, step 328, and step 330 as already described.
When the erasure counting value is equal to 2, then in decision step 316 the values of the Fomey Syndromes T, and T2are computed and checked according to Equation (8). If T1 orT2, but not both, are equal to zero, the flow is terminated in step 342. If T, and T2 are both equal to zero, then the process flow branches and the values of Yl and Y2 are obtained separately in step 328 and step 330, as previously described.
When the erasure counting value is equal to 1, decision step 318 is performedto compute and check Fomey Syndrome Equations (7) for TX, T2 and T3. If at lea the inputted syndrome signals is n, the value ofli must be in the range from 0 to n-l. Ifli is outside of the correct range decoding is not possible and is stopped at block 342.
When the erasure counting value is equal to 0, decoding can be completed in a manner similar to the steps described hereinbefore. Flow branches from decision block 312 to step 334 where the number of error words is computed according to Equation (12).
When some, i.e., one or more, but not all of the quantities computed in equation (12), are equal to zero, the decoding is insolvable and the decoding is terminated at block 340.
When none of the quantities computed with Equation (12) are equal to zero, that is p=2, the values of x,2 and X22 according to equations 14-19, and then Y2are computed and S, is updated, in steps 336 and 328 respectively. When the quantities computed with equation (12) are all equal to zero, that is p=l, the value of Xl is computed in step 338, and the value of Y1 is computed in step 330. The test in step 332 is then performed to check for the correct range, as previously described.
In conclusion, the invention provides a new method of decoding of RS codes whose Hamming distance is equal to 5, by using the program to control sharing of information in the processing-based structure, and by using the calculation of location to avoid the redundant calculation of a Chien's Search. It is important that the arithmetic logic circuit thus becomes very simple without the need for the calculation of powers.
Only the following four kinds of calculations are required: Inverting calculation: a < 1 a Multiplication-addition calculation: a,b,c o a b + c Shift-logarithm calculation: referring to Equation (16) Location calculation: referring to Equation (17) With regard to a shortened RS code, n 2", the hardware of the shift-logarithm circuit and locator in the arithmetic logic circuit 230 can be simplified even further. At first the shift-logarithm circuit can calculate the value of 1 using 8 and Xj2. This is meaningful only when lj is in the range from 0 to n- 1, and decoding cannot be completed when 1; is outside of the range. Therefore, the logarithm table (not shown) in the shiftlogarithm circuit 236 of FIG. 1 corresponds only from 0 to 2no'. If the inputted value is outside of the valid range, the shift-logarithm circuit outputs an error flag.
Regarding the locator 238, because (1 - 12) is in the range from 1 to n-l (when ll > 13, according to Equation (17), the output value of the locator 238 must be in the range from 1 to 2m-'. Therefore, the calculation of location can be executed in the range from I to Max (2m-', n-1). If the value is outside of this range, an error flag is output to show that the decoder cannot correct any error words, that is, the code is insolvable.
Therefore, in the preferred embodiment with the decoder detecting RS codes whose Hamming distance is 5, the calculation of powers is not required. This permits a simplification of the arithmetic logic circuit. It does not have to repeatedly execute complex calculations when there are two error words and there is no erasure word.
Therefore, the decoding speed is increased. Moreover, the invention provides a great improvement in fields concerning the decoding of RS codes.
While the invention has been described by way of example and in terms of a preferred embodiment, it is to be understood that the invention is not limited to the disclosed embodiment. To the contrary, it is intended to cover various modifications and similar arrangements. Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.

Claims (4)

1 An apparatus for decoding error words and erasure words existing in transmitted word signals using Reed-Solomon codes from an external system, comprising: (a) a syndrome generator, for receiving the transmitted word signals from the external system and generating syndrome signals; (b) an erasure counter for receiving the erasure words from the extemal system and incrementing by one an erasure counting value stored in the erasure counter each time' an erasure word is received; (c) register means, coupled to the syndrome generator for receiving syndrome signals from the syndrome generator and having an input for receiving the erasure bits from the external system, for storing the syndrome signals and the erasure bits in predetermined locations thereof; (d) arithmetic logic means, coupled to the register means, for reading the values stored in the registers means, performing a predetermined operation to generate a first feedback signal and a deductive signal, and providing the first feedback signal to the register means; (e) a comparator, coupled to the arithmetic logic means, for receiving the deductive signal and performing a comparison operation to generate a comparative signal; (f) a program controller, coupled to.the comparatorandthe erasure counter; for receiving the comparative signal from.the comparatorand reading the erasurecounting value stored in the erasure counter, and for outputting a program control signal; (g) a program counter, coupled to the program controller, and responsive to the program control signal, for generating a program counting signal and a second feedback signal, and outputting the second feedback signal to the program controller, whereby the program controller is responsive to the second feedback signal to selectively change the program control signal; and (h)an interpreter, coupled to the program counter and responsive to the program counting signal, for generating a register address signal and an enable signal, the interpreter being coupled to the register means for providing the register address signal thereto, and coupled to the arithmetic logic means for providing the enable signal thereto, the arithmetic logic means being responsive to the enable signal for reading the syndrome signals and the erasure words stored in the register means, according to the register address signal, in order to decode the error words in the transmitted word signals.
2 The apparatus as claimed in claim 1 wherein the arithmetic logic means includes: an inverter for performing an inverting calculation on the syndrome signals: multiplier-adder means, for performing an add calculation and a multiplication calculation on the syndrome signals; shift-logarithm means, for performing a logarithmic calculation on the syndrome signal, and for performing a shift calculation on a result of the logarithmic calculation, according to the enable signal; and locator means for performing a calculation of location.
3. The apparatus as claimed in claim 1 or 2, wherein the predetermined operation is executed selectively by operating the inverter, the multiplier-adder means, the shift-logarithm means, and the locator means, in the arithmetic logic means in order to generate the first feedback algorithm signal and the deductive signal.
4. Apparatus for decoding error words and erasure words existing in transmitted word signals using Reed-Solomon codes substantially as hereinbefore described with reference to and/or as illustrated in any one of or any combination of the accompanying drawings.
GB9716661A 1997-04-17 1997-04-17 Error decoding method and apparatus for reed-soloman codes Expired - Fee Related GB2324391B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
GB9716661A GB2324391B (en) 1997-04-17 1997-04-17 Error decoding method and apparatus for reed-soloman codes
NL1006174A NL1006174C2 (en) 1997-04-17 1997-05-30 Error decoding method as well as device for decoding.

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
GB9707768A GB2324390B (en) 1997-04-17 1997-04-17 Error decoding method and apparatus for Reed-Solomon codes
GB9716661A GB2324391B (en) 1997-04-17 1997-04-17 Error decoding method and apparatus for reed-soloman codes
NL1006174A NL1006174C2 (en) 1997-04-17 1997-05-30 Error decoding method as well as device for decoding.

Publications (3)

Publication Number Publication Date
GB9716661D0 GB9716661D0 (en) 1997-10-15
GB2324391A true GB2324391A (en) 1998-10-21
GB2324391B GB2324391B (en) 2002-05-29

Family

ID=26311395

Family Applications (2)

Application Number Title Priority Date Filing Date
GB9716661A Expired - Fee Related GB2324391B (en) 1997-04-17 1997-04-17 Error decoding method and apparatus for reed-soloman codes
GB9707768A Expired - Fee Related GB2324390B (en) 1997-04-17 1997-04-17 Error decoding method and apparatus for Reed-Solomon codes

Family Applications After (1)

Application Number Title Priority Date Filing Date
GB9707768A Expired - Fee Related GB2324390B (en) 1997-04-17 1997-04-17 Error decoding method and apparatus for Reed-Solomon codes

Country Status (1)

Country Link
GB (2) GB2324391B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050138464A1 (en) * 2003-11-21 2005-06-23 Chong Pohsoon Scratch fill using scratch tracking table
CN101697490B (en) * 2009-10-16 2013-09-25 苏州国芯科技有限公司 Decoding method applied to Reed-Solomon code-based ECC module
CN105182909B (en) * 2015-10-10 2017-11-10 东北林业大学 Error identification method and device for continuous flat cluster control system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0156413A1 (en) * 1984-02-29 1985-10-02 Koninklijke Philips Electronics N.V. Decoding device for a stream of code symbols which are word-wise protected by a double Reed-Solomon code with a minimum Hamming distance of 5 over the code symbols and an interleaving mechanism between the two codes, and also a player comprising such a decoding device
GB2269034A (en) * 1992-07-20 1994-01-26 Digital Equipment Corp Selectable error correction capability

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4360916A (en) * 1979-12-31 1982-11-23 Ncr Canada Ltd.-Ncr Canada Ltee. Method and apparatus for providing for two bits-error detection and correction
US4646303A (en) * 1983-10-05 1987-02-24 Nippon Gakki Seizo Kabushiki Kaisha Data error detection and correction circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0156413A1 (en) * 1984-02-29 1985-10-02 Koninklijke Philips Electronics N.V. Decoding device for a stream of code symbols which are word-wise protected by a double Reed-Solomon code with a minimum Hamming distance of 5 over the code symbols and an interleaving mechanism between the two codes, and also a player comprising such a decoding device
GB2269034A (en) * 1992-07-20 1994-01-26 Digital Equipment Corp Selectable error correction capability

Also Published As

Publication number Publication date
GB2324390A (en) 1998-10-21
GB9716661D0 (en) 1997-10-15
GB2324391B (en) 2002-05-29
GB9707768D0 (en) 1997-06-04
GB2324390B (en) 2002-05-29

Similar Documents

Publication Publication Date Title
US6209114B1 (en) Efficient hardware implementation of chien search polynomial reduction in reed-solomon decoding
US5020060A (en) Error code correction device having a galois arithmetic unit
US4504948A (en) Syndrome processing unit for multibyte error correcting systems
US6539515B1 (en) Accelerated Reed-Solomon error correction
US4099160A (en) Error location apparatus and methods
US5440570A (en) Real-time binary BCH decoder
US5694330A (en) Error correction method including erasure correction, and apparatus therefor
KR920700429A (en) Programmable Error Correction Means and Methods
US5944848A (en) Error decoding method and apparatus for Reed-Solomon codes
US7058876B1 (en) Method and apparatus for use in a decoder of a forward error correction (FEC) system for locating bit errors in a error locator polynomial
US4592054A (en) Decoder with code error correcting function
US7096408B1 (en) Method and apparatus for computing the error locator polynomial in a decoder of a forward error correction (FEC) system
GB2324391A (en) Error decoding for Reed-Solomon codes
JP3245290B2 (en) Decoding method and device
US5859859A (en) Parallel cyclic redundancy code error detection
US5666369A (en) Method and arrangement of determining error locations and the corresponding error patterns of received code words
NL1006174C2 (en) Error decoding method as well as device for decoding.
JPH10322226A (en) Reed solomon decoding method
KR100245611B1 (en) Single error detection and correction circuit
JP3280470B2 (en) Error correction circuit
KR0155762B1 (en) Reed-solomon decoder enable to correct error
KR100335482B1 (en) Error correcting system
KR0176809B1 (en) Error correction device
KR900001066Y1 (en) Erase signal count circuits of decoder circuits for error correction
KR900000670Y1 (en) Cord word generator of read-solomon encoder

Legal Events

Date Code Title Description
PCNP Patent ceased through non-payment of renewal fee

Effective date: 20140417