Information
-
Patent Grant
-
4498175
-
Patent Number
4,498,175
-
Date Filed
Thursday, September 30, 198242 years ago
-
Date Issued
Tuesday, February 5, 198539 years ago
-
Inventors
-
Original Assignees
-
Examiners
- Smith; Jerry
- Fleming; Michael R.
Agents
-
CPC
-
US Classifications
Field of Search
US
- 371 38
- 371 39
- 371 40
- 371 37
-
International Classifications
-
Abstract
An error correcting system uses an error location polynomial which is defined by double correction BCH codes each consisting of the elements of a Galois field GF(2.sup.m), and thereby generates error locations .sigma..sub.1 and .alpha..sup.2 and error patterns e.sub.1 and 2.sub.2. The system has a first data processing system for performing only addition and multiplication to generate the error locations .sigma..sub.1 and .alpha..sup.2, and a second data processing system for performing only addition and multiplication to generate the error patterns e.sub.1 and 2.sub.2. The first data processing system comprises a syndrome generator, a memory, an arithmetic logic unit, registers, latch circuits, registers, adder circuits and a zero detector. The second data processing system comprises a gate circuit, latch circuits, an arithmetic logic unit, and the registers of a memory.
Description
BACKGROUND OF THE INVENTION
The present invention relates to an improved system for correcting errors which can effectively conbined with, for example, a digital audio disk (DAD) device using a compact disk (CD).
Various optical DAD devices have been developed recently. As is well known, an optical DAD device having a CD uses cross interleaved Reed-Solomon codes (CIRC) to correct errors. A CIRC is obtained by submitting a Reed-Solomon code, which is a kind of BCH code and is generally regarded as the most effective random error correction code hitherto known to a signal process called "cross interleaving." The CIRC thus obtained is sensitive enough to correct burst errors.
A Reed-Solomon code can be decoded in the same way as other BCH codes, thereby correcting errors.
A typical Reed-Solomon code consisting of k data symbols and (n-k) inspection symbols, i.e., consisting of n symbols, is decoded in the following manner. Here, n symbols are represented by the 2.sup.m elements of a finite field or a Galois field GF (2.sup.m) which represents m binary bits. The generator polynomil g.sub.(x) representing the Reed-Solomon code used to correct an error a t number of times is given by the following two equations, where .alpha. is the origin element Galois field GF (2.sup.m):
g.sub.(x) =(x+.alpha.) (x+.alpha..sup.2), . . . (x+.alpha..sup.2t), (1)
g.sub.(x) =(x+.alpha..sup.0) (x+.alpha.), . . . (x+.alpha..sup.2t-1). (2)
If we let C.sub.(x), R.sub.(x) and E.sub.(x) denote a transmitted code word, a received code word and an error polynomial, then:
R.sub.(x) =C.sub.(x) +E.sub.(x). (3)
The coefficients contained in polynomial E.sub.(x) are also contained in the Galois field GF (2.sup.m). Hence, the error polynomial E.sub.(x) contains only those terms which correspond to error locations and the value (i.e., size) of the error.
If we let X.sup.j denote an error location, and let Y.sub.j denote the value of the error at the error location X.sup.j, the error polynomial E.sub.(x) can then be given as: ##EQU1## where .SIGMA. is the sum of the errors at all of the error locations.
Here, syndrome S.sub.i is described:
S.sub.i =R(.alpha..sup.i) [i=0,1 . . . 2t-1]. (5)
Then, from equation 3 we have:
S.sub.i =C(.alpha..sup.i)+E(.alpha..sup.i).
Both C.sub.(x) and g.sub.(x) can be divided without leaving a remainder. As a result, the following therefore holds true:
S.sub.i =E(.alpha..sup.i).
From equation 4 it is evident that syndrome S.sub.i may be expressed as follows: ##EQU2## where .alpha..sup.j =X.sub.j, and X.sub.j represents the error location for .alpha..sup.j.
Error location polynomial .sigma..sub.(x) is given by: ##EQU3## where e is the number of the errors.
.sigma..sub.1 to .sigma..sub.e in Equation 7 are related to syndrome S.sub.i as shown below:
S.sub.i+e +.sigma..sub.1 S.sub.i+e-1 +. . . .sigma..sub.e-1 S.sub.i+1 +.sigma..sub.e S.sub.i. (8)
To sum up the above, a Reed-Solomon code as defined can be decoded as follows:
(I) Calculate syndrome S.sub.i (Equation 5).
(II) Obtain coefficients .sigma..sub.1 to .sigma..sub.e contained in the error location polynomial .sigma..sub.(x) (Equation 8).
(III) Find the root X.sub.j of the error location polynomial .sigma..sub.(x) (Equation 7).
(IV) Find the error value Y.sub.j (Equation 6) and calculate the error polynomial (Equation 4).
(V) Correct the error (Equation 3).
By using the steps listed above, the steps needed to decode, a Reed-Solomon code consisting of many block data each containing four inspection symbols will be described. This code is represented by the following generator polynomial g.sub.(x) :
g.sub.(x) =(x+1) (x+.alpha.) (x+.alpha..sup.2) (x+.alpha..sup.3).
In this case, an error can be corrected twice. The Reed-Solomon code may then be decoded by following method A or by following method B.
[Method A]
(I) Find syndromes S.sub.0 to S.sub.3.
(II) Rewrite Equation 8 so that e equals 1 and 2,
In the case of e=1:
S.sub.1 +.sigma..sub.1 S.sub.0 =0,
S.sub.2 +.sigma..sub.1 S.sub.1 =0,
S.sub.3 +.sigma..sub.1 S.sub.2 =0. (9)
In the case of e=2:
S.sub.2 +.sigma..sub.1 S.sub.1 +.sigma..sub.2 S.sub.0 =0,
S.sub.3 +.sigma..sub.1 S.sub.2 +.sigma..sub.2 S.sub.1 =0. (10)
Assume that the decoder used starts functioning in the case where e=1. A solution .sigma..sub.1 must then be given which satisfies the simultaneous Equations 9. If no solution .sigma..sub.1 is found, the decoder must find solutions .sigma..sub.1 and .sigma..sub.2 which satisfy simultaneous Equation 10. If a solution .sigma..sub.1 or .sigma..sub.2 is not yet found, then: e.gtoreq.3.
The solution .sigma..sub.1 of Equation 9 can be expressed by: ##EQU4##
The solution .sigma..sub.1 and .sigma..sub.2 of Equation 10 is: ##EQU5##
(III) If a coefficient .sigma..sub.1 in the error location polynomial is obtained, find the root of the error location polynomial (Equation 7).
In the case of e=1:
.sigma..sub.(x) =x+.sigma..sub.1 =0. Therefore, X.sub.1 =.sigma..sub.1.
In the case of e=2:
.sigma..sub.(X) =x.sup.2 +.sigma..sub.1 x+.sigma.2=0 (11)
Substituting the elements of the Galois field GF (2.sup.m) in Equation 11 one after another will yield roots X.sub.1 and X.sub.2.
(IV) If the roots of the error location polynomial are found, determine the error value Y.sub.j (Equation 6).
In the case of e=1:
S.sub.0 =Y.sub.1. Therefore, Y.sub.1 =S.sub.0.
In the case of e=2:
S.sub.0 =Y.sub.1 +Y.sub.2,
S.sub.1 =Y.sub.1 X.sub.1 +Y.sub.2 X.sub.2.
Therefore: ##EQU6##
(V) Correct the error by using the correction values Y.sub.1 and Y.sub.2 thus obtained.
If the value of an error location is correctly found by the pointer erasure method, the Reed-Solomon code used to correct an error twice can be used to correct an error four times in method B.
[Method B]
(I) Find syndromes S.sub.0 to S.sub.3.
(II), (III) Find the error location by using different methods.
(IV) Find the error value (Equation 6).
In the case of e=1:
See Method A.
In the case of e=2:
See Method A.
In the case of e=3:
S.sub.0 =Y.sub.1 +Y.sub.2 +Y.sub.3,
S.sub.1 =Y.sub.1 X.sub.1 +Y.sub.2 X.sub.3 +Y.sub.3 X.sub.3,
S.sub.2 =Y.sub.1 X.sub.1.sup.2 +Y.sub.2 X.sub.2.sup.2 +Y.sub.3 X.sub.3.sup.2.
Solve these simultaneous equations, thus finding Y.sub.1, Y.sub.2 and Y.sub.3 : ##EQU7##
In the case of e=4:
S.sub.0 =Y.sub.1 +Y.sub.2 +Y.sub.3 +Y.sub.4,
S.sub.1 =Y.sub.1 X.sub.1 +Y.sub.2 X.sub.2 +Y.sub.3 X.sub.3 +Y.sub.4 X.sub.4,
S.sub.2 =Y.sub.1 X.sub.1.sup.2 +Y.sub.2 X.sub.2.sup.2 +Y.sub.3 X.sub.3.sup.2 +Y.sub.4 X.sub.4.sup.2,
S.sub.3 =Y.sub.1 X.sub.1.sup.3 +Y.sub.2 X.sub.2.sup.3 +Y.sub.3 X.sub.3.sup.3 +Y.sub.4 X.sub.4.sup.3.
Solve these simulataneous equations, thus finding Y.sub.1, Y.sub.2, Y.sub.3 and Y.sub.4 : ##EQU8##
(V) Correct the error, using correction values Y.sub.1, Y.sub.2, Y.sub.3 and Y.sub.4 thus obtained.
FIG. 1 is a block diagram of a known data correcting system which is designed to decode Reed-Solomon codes in the manner described above. A data to be corrected by a Reed-Solomon code is supplied through an input terminal IN. The data is stored into a data buffer 11 and is kept there until code decoding (described later) is completed. The data is also supplied to a syndrome calculator 12. Using the input data, the calculator 12 calculates syndromes. The syndromes are stored into a syndrome buffer 13.
An OR gate 14 is coupled to the output of the syndrome buffer 13. The OR gate 14 generates two output signals which indicates whether or not an error exists in the syndromes supplied from the syndrome buffer 13. An output signal from the OR gate is supplied to an error location polynomial calculator 15. Upon receipt of the signal, the calculator 15 finds the coefficients in the error location polynomial .sigma..sub.(x). Data representing the coefficients is fed to an error location calculator 16. The error location calculator 16 then finds the root or roots of the error location. Data representing the root or roots is supplied from the calculator 16 to an error value calculator 17. From the input, the calculator 17 calculates the value of the error. The data representing the root or roots, and the data representing the error value are used to correct the data from the data buffer 11.
The calculators 12, 15, 16 and 17 of the data correcting system can detect elements which have a value of "0", and can perform addition, multiplication or division. Of these calculators, the error location polynomial calculator 15 may have the structure shown in FIG. 2 which is disclosed in U.S. Pat. No. 4,142,174.
As shown in FIG. 2, the error location polynomial calculator 16 comprises a syndrome buffer 21, a working buffer 22, a sequence controller 23, a logarithm buffer 24 and an antilogarithm buffer 25. The syndrome buffer 21 is a random-access memory (RAM) for storing a syndrome Si which consists of m-bit data and which represents each element of a Galois field GF (2.sup.m). The working buffer 22 is a RAM for storing the interim result of an algebraic operation performed to find the coefficients of the error location polynomial, and for storing the final result of the operation. The working buffer 22 may store partial results which are used in the operations following the calculation of the coefficients of the error location polynomial. The sequence controller 23 defines the order in which the algebraic operations will be performed. It supplies address signals to the syndrome buffer 21 and the working buffer 22, thereby designating the desired memory locations of these buffers 21 and 22, and thereby checking and branching the results of the algebraic operations which are used in the next algebraic operations. The logarithm buffer 24 is a ROM (read-only memory) and stores a table of the logarithms of the elements of the Galois field GF (2.sup.m). The antilogarithm buffer 25 is also a ROM and stores a table of the antilogarithms of the elements of Galois field GF (2.sup.m).
The address of the logarithm buffer 24 is a binary code of element .alpha..sup.i. Its entry is the logarithm of .alpha. to the base .alpha., that is, i. The entry at address i of the antilogarithm buffer 25 is a binary code of .alpha..sup.i.
Suppose the modulus polynomial F.sub.(x) of the Galois field GF(2.sup.8) is given by:
F.sub.(x) =x.sup.8 +x.sup.6 +x.sup.5 +x.sup.4 +1.
Then, the element of the Galois field GF (2.sup.m) other than element 0 can be represented by a linear combination of powers to the root .alpha. of F.sub.(x) =0, or .alpha..sup.0 -.alpha..sup.7, which is expressed as follows: ##EQU9##
In this case, eight coefficients a.sub.0 to a.sub.7 can be used and can be presented as binary vectors. For example, they can be given by: ##EQU10##
The elements of the Galois field GF (2.sup.8) other than the above can be represented as binary vectors.
The addresses (1-255) of the logarithm table are 8-bit binary vectors of elements .alpha..sup.i. Entries corresponding to the addresses are binary notations of the exponent i. In the antilogarithm table, exponent i is used as an address, and the entries are binary vectors of .alpha..sup.i.
Now it will be described how the error location polynomial calculator shown in FIG. 2 performs algebraic operations.
(1) Addition
In order to add element .alpha..sup.i and element .alpha..sup.j, the former supplied from an A register 20 to an exclusive OR gate 27 and the latter is supplied from a B register 26 to the exclusive OR gate 27. An exclusive logic sum of each bit of element .alpha..sup.i and the corresponding bit of element .alpha..sup.j is thus produced. The sum of elements .alpha..sup.i and .alpha..sup.j obtained by the exclusive OR gate 27 is transferred through a C register 19 to the working buffer 22.
(2) Detecting if the Element is 0
In order to detect whether or not element .alpha..sup.i is 0, the element is supplied from the H register 28 to an OR gate 29, which produces a logic sum. The logic sum is transferred via an M register 30 to the working buffer 22. The contents of the M register 30 are 0 only when element .alpha..sup.i is 0.
(3) Multiplication
In order to multiply element .alpha..sup.i by element .alpha..sup.j, it is first detected whether or not these elements are 0. If at least one of these elements is 0, it is obvious that the product will also be 0 and so multiplication is not performed. If neither element is 0, they are loaded into an address register 31 which is connected to the logarithm buffer 24. Outputs i and j from the logarithm buffer 24 are supplied to an adder 34 through a D register 32 and E register 33, respectively. The adder 34 adds a complement of 1, using 2.sup.8 -1 as modulo. The result of this addition, (i+j)=t mod (2.sup.8 -1) is loaded through an L register 35 into an address register 36 which is connected to the antilogarithm buffer 25. If the address input of the antilogarithm buffer 25 is t, the antilogarithm buffer 25 supplies an output .alpha..sup.t. The output .alpha..sup.t is the product of elements .alpha..sup.i and .alpha..sup.j and is transferred to the working buffer 22 through a G register 37.
(4) Division
In order to divide element .alpha..sup.i by element .alpha..sup.j to obtain a quotient .alpha..sup.i /.alpha..sup.j, a method similar to the above-mentioned multiplication is used, but the contents of the E register 33 are subtracted from the contents of the D register 32. More specifically, the logarithm of the element .alpha..sub.j stored in the E register 33 is complemented by a complementer 38. The output data of the complementer 38 is supplied to the complement adder 34 through a F register 39. Thereafter, the data is processed in the same way as when multiplying element .alpha..sup.i by element .alpha..sup.j. In this case, the output from the antilogarithm buffer 25 is the quotient, i.e., the result of the division.
The error location polynomial calculator of the known error correcting system must be provided with a logarithm buffer and an antilogarithm buffer. Without the logarithm buffer and the antilogarithm buffer, the error location polynomial calculator could not perform multiplication or division. Both buffers, which are ROMs, need to have an enormously large memory capacity. This makes it difficult to manufacture the error location polynomial calculator in the form of an LSI. If the calculator may be made into an LSI, the logarithm buffer and the antilogarithm buffer are excluded from the calculator. In this case, the buffers of a large memory capacity have to be connected to the calculator.
If one symbol consists of eight bits and if each buffer stores 255 symbols, the buffer must have a memory capacity of 2040 bits (255.times.8). In this case, the known error location polynomial calculator is provided with two ROMs, the total memory capacity of which amounts to 4080 bits: one ROM storing a table of logarithms and the other ROM storing a table of antilogarithms. However, if the error location polynomial calculator has two ROMs of a large memory capacity, the error correcting system is inevitably complicated and is thus expensive.
SUMMARY OF THE INVENTION
It is an object of the present invention to provide an error correcting system which can perform algebraic operations such as multiplication and division on the elements of the Galois field thereby finding error locations or error patterns, without using a logarithm buffer or an antilogarithm buffer having a large memory capacity, and which has therefore a simple structure and is rather inexpensive.
Another object of the invention is to provide an error correcting system which can perform algebraic operations in a short time.
An error correcting system according to the present invention receives double correction BCH codes each consisting of M data symbols and four parity symbols, each consisting of m bits and represented by the following generated polynomial:
g.sub.(x) =(x+1)(x+.alpha.)(x+.alpha..sup.2)(x+.alpha..sup.3),
where .alpha. is the origin element of Galois field GF (2.sup.m), and which find the roots of the following error location polynomial:
f.sub.(x) =x.sup.2 +.sigma..sub.1 x+.sigma..sub.2,
thereby correcting errors in the double correction BCH codes. This system comprises:
means for storing the double correction BCH codes;
syndrome generating means for generating four syndromes S.sub.0, S.sub.1, S.sub.2 and S.sub.3 from the double correction BCH codes;
error location calculating means comprising:
a first multiplying/adding section for multiplying and adding the four syndromes S.sub.0, S.sub.1, S.sub.2 and S.sub.3 to obtain three syndromes S.sub.a, S.sub.b and S.sub.c which are given as follows:
S.sub.a =S.sub.1.sup.2 +S.sub.0 S.sub.2,
S.sub.b =S.sub.0 S.sub.3 +S.sub.1 S.sub.2,
S.sub.c =S.sub.1 S.sub.3 +S.sub.2.sup.2
a second multiplying/adding section for performing multiplication and addition by substituting .alpha..sup.0 -.alpha..sup.M+3 for x in the following polynomial obtained by transforming said error location polynomial f.sub.(x) :
f'.sub.(x) =S.sub.a f.sub.(x) =S.sub.a x.sup.2 +S.sub.b x+S.sub.c,
thereby obtaining two products S.sub.a .multidot..alpha..sup.2 and S.sub.b .multidot..alpha. and a sum S.sub.a .alpha..sup.2 +S.sub.b .alpha.+S.sub.c, utilizing the fact that the coefficients .sigma..sub.1, .sigma..sub.2 of said error location polynomial f.sub.(x) and the three syndromes S.sub.a, S.sub.b and S.sub.c have the following relations according to the theory on the correction of said double correction BCH codes:
.sigma..sub.1 =S.sub.b /S.sub.a =.alpha..sup.i +.alpha..sup.j,
.sigma..sub.2 =S.sub.c /S.sub.a +.alpha..sup.i .alpha..sup.j ;
an .alpha..sup.i, .alpha..sup.j detecting section for detecting .alpha..sup.i and .alpha..sup.j which satisfy f'.sub.(x) =0; and
A third multiplying/adding section for adding .alpha..sup.i and .alpha..sup.j and multiplying .alpha..sup.i by .alpha..sup.j, thereby finding the coefficients .sigma..sub.1, .sigma..sub.2 which define error locations;
error pattern calculating means comprising a fourth multiplying/adding means for obtaining an error pattern e.sub.i from .alpha..sup.i and .alpha..sup.j by performing the following multiplication:
e.sub.i =(S.sub.0 .alpha..sup.j +S.sub.1)(.alpha..sup.i +.alpha..sup.j).sup.-1,
said equation having been derived from the following division: ##EQU11## and for obtaining another error pattern e.sub.j by performing the following addition:
e.sub.j =S.sub.0 +e.sub.i ; and
correction means for correcting the errors in said double correction codes stored by said code storing means in accordance with the coefficients .sigma..sub.1, .sigma..sub.2 and the error patterns e.sub.i, e.sub.j. Therefore, the system need not be provided with a memory with a large capacity, and can have a simple structure and be inexpensive. Further, the system can process data at a high speed.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of a known error data correcting system;
FIG. 2 is a block diagram of an error location polynomial calculator used in the system shown in FIG. 1;
FIG. 3 is a block diagram of a DAD device to which the present invention is applied;
FIG. 4 is a block diagram of the main part of an error data correcting system according to the invention;
FIG. 5 is a timing chart illustrating the operation of the system shown in FIG. 4;
FIG. 6 is a block diagram of a multiplier used in the operation unit of the system shown in FIG. 4;
FIG. 7 is a timing chart illustrating the operation of the multiplier shown in FIG. 6;
FIG. 8 is a circuit diagram an .alpha. multiplier circuit used in the multiplier shown in FIG. 6; and
FIG. 9 is a circuit diagram of .alpha..sup.2 multiplier circuits used in the multiplier shown in FIG. 6.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
With reference to FIG. 3, an optical digital audio disk (DAD) device which uses compact disks (CD) will be described.
As shown in FIG. 3, the DAD device comprises a disk motor 111 for rotating a turntable 112. On the turntable 112 an optical disk 113 is mounted. The disk 113 has pits which corresponds to digital audio signals (i.e., PCM codes) which have been EFM-modulated and interleaved. An opitcal pickup 114 emits a laser beam from a semiconductor laser 114a. The laser beam passes through a beam splitter 114b and is focused by an object lens 114c. The beam illuminates the track of the optical disk 113. The beam reflected from the pits passes through the objective lens 114c and the beam splitter 114b. It is then guided to a four-element photodetector 114d. The photodetector 114d converts the laser beam into four signals. The pickup 114 is moved by a pickup feed motor 115 in the radial direction of the optical disk 113.
The four signals from the photodetector 114d are supplied to a matrix circuit 116 and undergo a specific matrix operation. As a result, the matrix circuit 116 generates a focus error signal F, a tracking error signal T, and a high-frequency signal RF. The focus error signal F and a focus search signal from a focus search circuit 110 are used to drive a focus servo system of the optical pickup 114. The tracking error signal T and the search control signal supplied from a system controller 117 are used to drive a tracking servo system of the optical pickup 114 and to control the pickup feed motor 115. The high-frequency signal RF is supplied to a reproduced signal processing system 118 as a major reproduced signal component. In the system 118 the signal RF is supplied to a waveform shaping circuit 120 which is controlled by a slice level (eye pattern) detector 119. The waveform shaping circuit 120 divides the input signal into an unnecessary analog component and a necessary data component. The necessary data component is supplied to a sync clock reproducing circuit 121 of a PLL type and also to an edge detector 122a of a first signal processing system 122.
A sync clock from the sync clock reproducing circuit 121 is supplied to a clock generating circuit 122b of the first signal processing system 122. In response to the sync clock, the clock generating circuit 122b generates a clock for dividing a sync signal into components. On the other hand, the necessary data component from the edge detector 122a is supplied to a sync signal detector 122c. The sync signal detector 122c divides the data components in response to a sync signal dividing clock from the clock generating circuit 122b. The necessary data component from the edge detector 122a is supplied also to a demodulating circuit 122d and then is EFM-demodulated. A sync signal from the sync signal detector 122c is supplied to a sync signal protecting circuit 122e and then to a timing signal generating circuit 122f. A clock from the clock generating circuit 122b is supplied also to the timing signal generating circuit 122f. The timing signal generating circuit 122f generates a timing signal for processing the input data.
An output signal from the demodulating circuit 122d is supplied through a data bus input/output control circuit 122g to an input/output control circuit 123a of a second signal processing system 123. The output signal from the demodulating circuit 122d contains a subcode (i.e., a control signal) and a display signal component. The display signal component is supplied to a control display processing circuit 122h and the subcode is supplied to a subcode processing circuit 122i.
The subcode processing circuit 122i detects an error, if any, from the subcode; and then corrects the error and generates subcode data. The subcode data is supplied to the system controller 117 through an interface circuit 122q which is connected to the system controller 117.
The system controller 117 includes a microcomputer, an interface circuit, and a driver integrated circuit. In response to an instruction from a control switch 124 the system controller 117 controls the DAD device in a desired manner and causes a display device 125 to display the subcode (e.g., index data about a piece of music to be reproduced).
A timing signal from the timing generating circuit 122f is supplied through a data selecting circuit 122j to the data bus input/output control circuit 122g and controls the data bus input/output control circuit 122g. The timing signal is also supplied to a frequency detector 122k, a phase detector 122l and further to a PWM modulator 122m. The timing signal from the PWM modulator 122m then undergoes automatic frequency control (AFC) and automatic phase control (APC) so as to rotate the disk motor 111 at a constant linear velocity (CLV).
The phase detector 122l is connected to receive a system clock from a system clock generating circuit 122p, which operates under the control of an output signal from a quartz crystal oscillator 122n.
The demodulated data from the input/output control circuit 123a of the second signal processing system 123 is supplied through a data output circuit 123e to a D/A (digital-to-analog) converter 126 after it has undergone the necessary error correction, deinterleaving and data supplementation at a syndrome detector 123b, at an error pointer control circuit 123c, and at an error correction circuit 123d. The second signal processing system 123 includes an external memory control circuit 123f. The control circuit 123f cooperates with the data selecting circuit 122j of the first signal processing system 122 to control an external memory 127 which stores the data necessary for correcting errors. Under the control of the circuits 123f and 122j, the data is read from the external memory 127 and is supplied to the input/output control circuit 123a.
The second signal processing system 123 further comprises a timing control circuit 123g and a muting control circuit 123h. The timing control circuit 123g is so designed as to supply, in response to a system clock from the system clock generating circuit 122p, a timing control signal which is necessary in correcting errors, supplementing data and converting digital data into analog data. The muting control circuit 123h, in response to a control signal from the error pointer control circuit 123c or from the system controller 117, is designed to perform the specific muting control which is necessary in supplementing data, and in starting and ending DAD reproduction.
An audio signal, or an analog output signal from the D/A converter 126 is supplied through a low pass filter 128 and an amplifier 129 to a loudspeaker 130.
Now, the error data correcting system according to the present invention, which is applied to the DAD device described above, will be described in detail.
The principle of the error data correcting system will first be described. A double correction BCH code consists of symbols which are the elements of the Galois field GF(2.sup.8) and which are:.
U.sub.0, U.sub.1, U.sub.2 . . . U.sub.M-1, P.sub.0, P.sub.1, P.sub.2, P.sub.3. (12)
U.sub.0, - U.sub.M-1 are data symbols, each being an 8-bit symbol. P.sub.0 -P.sub.3 are parity symbols. That is, M data symbols and four parity symbols make the double correction BCH code. Equation 12 implies that the parity symbols are regarded as being identical to the data symbols so far as error correction is concerned. Equation 12 may be changed to:
W.sub.M+3, W.sub.M+2, W.sub.M+1 . . . W.sub.3, W.sub.2, W.sub.1, W.sub.0. (13)
Hence, the transmission polynomial F.sub.(x) is given by:
F.sub.(x) =W.sub.M+3 x.sup.M+3 +W.sub.M+2 x.sup.M+2 +. . . +W.sub.1 x+W.sub.0. (14)
And the reception polynominal F'.sub.(x), is given by: ##EQU12##
Let .alpha. denote one of the roots of the generator polynomial G(x) of the Galois field GF(2.sup.8). The transmission polynomial then has four roots 1, .alpha., .alpha..sup.2 and .alpha..sup.3. Therefore: ##EQU13##
From the transmitting station such parity symbols as would satisfy Equation 13 are transmitted, while at the receiving station those parity symbols which are distored by the transmission system are detected as errors and are then corrected.
In the case of the double error BCH code described above, two symbol errors at most can be corrected. Suppose two symbols W.sub.j ' and W.sub.i ' included in the reception polynomial F.sub.(x) ' are erroneous. Then:
W.sub.i '=W.sub.i +e.sub.l,
W.sub.j '=W.sub.j +e.sub.j.
If symbol other than the symbols W.sub.i ' and W.sub.j ' is erroneous:
W.sub.k '=W.sub.k (k=0 to M=4, k.noteq.i, k.noteq.j).
Substituting 1, .alpha., .alpha..sup.2 and .alpha..sup.3 in the reception polynomial F.sub.(x) ' or in Equation 15, yields:
F.sub.(1) '=e.sub.i +e.sub.j =S.sub.0,
F.sub.(.alpha.) '=e.sub.i .alpha..sup.i +E.sub.j .alpha..sup.j =S.sub.1,
F.sub.(.alpha..spsb.2.sup.) '=e.sub.i .alpha..sup.2i +e.sub.j .alpha..sup.2j =S.sub.2,
F.sub.(.alpha..spsb.3.sub.) =e.sub.i .alpha..sup.3i +e.sub.j .alpha..sup.3j =S.sub.3. (17)
Here, S.sub.0 -S.sub.3 are syndromes, each representing the value given in Equation 17 in case two symbols error of (M+4) symbols constitute the double correction BCH code.
In the double correction BCH code theory, the error location polyomial as described above may be used. If this is the case: ##EQU14##
That is, from syndromes S.sub.0 to S.sub.3, .sigma..sub.1 and .sigma..sub.2 are obtained in such way as indicated by Equations 18 and 19. .sigma..sub.1 and .sigma..sub.2 obtained are then substituted in Equation 20. In this case, x in Equation 20 is substituted by .alpha..sup.0, .alpha..sup.1, .alpha..sup.2 . . . .alpha..sup.M+3, one after another. Obviously, f.sub.(x) =0 when x is substituted by .alpha..sup.i and .alpha..sup.j. Two error locations will thus be found where f.sub.(x) =0.
Two error patterns are obtained by using the known .alpha..sup.i and .alpha..sup.j. More specifically, from Equation 17 we have: ##EQU15##
As mentioned above, the object of the present invention is to provide a system which can correct erroneous data, and which can perform multiplication and division on the elements of a Galois field without using a memory having a large memory capacity. However, without a memory of a large memory capacity it would be difficult to divide the elements of a Galois field with a generator polynomial g.sub.(x), though it is possible to perform relatively simple multiplication. It is therefore preferred that as liitle division as possible be done in order to obtain the error locations and the error patterns.
The error locations are generated in the following manner.
The denominator in the right side of Equation 18 is identical with that in the right side of Equation 19. Let S.sub.a, S.sub.b and S.sub.c be put to be:
S.sub.a =S.sub.1.sup.2 +S.sub.0 S.sub.2,
S.sub.b =S.sub.0 S.sub.3 +S.sub.1 S.sub.2,
S.sub.c =S.sub.1 S.sub.3 +S.sub.2.sup.2. (22)
Then, Equations 18 and 19 can be changed to: ##EQU16##
Substituting Equations 23 and 24 in Equation 20 will yield: ##EQU17##
Equation 25 shows that error locations will be identifed if x is substituted by .alpha..sup.0, .alpha..sup.1, .alpha..sup.2 . . . .alpha..sup.M+3, thereby finding the locations where f.sub.(x) =0. Even if Equation 25 is changed to the following one:
f.sub.(x) '=S.sub.a f.sub.(x) =S.sub.a x.sup.2 +S.sub.b x+S.sub.c. (26)
.alpha..sup.i and .alpha..sup.j can be identified by substituting x with .alpha..sup.0, .alpha..sup.1, .alpha..sup.2 . . . .alpha..sup.M+3 one after another and by finding the points where f.sub.(x) '=0. In this way, an error location polynomial can be generated without performing division.
The error patterns are generated in the following manner.
The right side of Equation 21A which represents the operation of division is: ##EQU18##
If the reciprocal (.alpha..sup.i +.alpha..sup.j).sup.-1 of the denominator (.alpha..sup.i +.alpha..sup.j) of the right side is known, Equation 21A can then be changed to:
e.sub.i =(S.sub.0 .alpha..sup.j +S.sub.1) (.alpha..sup.i +.alpha..sup.j).sup.-1. (21A')
That is, no division needs to be performed in order to find e.sub.i. Reciprocal (.alpha..sup.i +.alpha..sup.j).sup.-1 is obtained in the following way. First, Equation 26 is substituted in Equation 23:
f.sub.(x) '=S.sub.a x.sup.2 +S.sub.a (.alpha..sup.i +.alpha..sup.j)x+S.sub.c. (27)
In order to locate errors it is necessary to substitute x in Equation 27 with .alpha..sup.0, .alpha..sup.1, .alpha..sup.2 . . . .alpha..sup.M+3. While substituting x by .alpha..sup.0, .alpha..sup.1, .alpha..sup.2 . . . .alpha..sup.M+3 one after another, the value for x which would satisfy the following Equation 28 is calculated.
S.sub.a (.alpha..sup.i +.alpha..sup.j)x=.alpha..sup.r. (28)
More specifically, assume that M=28. Then, x in Equation 28 must be substituted by .alpha..sup.0 to .alpha..sup.31. The greatest element of the Galois field GF(2.sup.8) is:
.alpha..sup.2.spsp.8.sup.-1 =.alpha..sup.255 =1.
Obviously, .alpha..sup.255 is identical to .alpha..sup.0. In other words, .alpha..sup.255 is a cyclic code for elements .alpha..sup.0 -.alpha..sup.254. It is therefore sufficient to substitute only .alpha..sup.0 -.alpha..sup.254 for x in Equation 28 in order to locate the errors.
In this case, .alpha..sup.0 -.alpha..sup.31 can be substituted for x. Since 7<255/32 <8, eight items of data .alpha..sup.-32m (m=0 to 7) and eight items of reciprocal data .alpha..sup.-32m (m=0 to 7) are encoded as shown in the following table:
______________________________________ .alpha..sup.32m .alpha..sup.-32m______________________________________ .alpha..sup.0 .alpha..sup.255 .alpha..sup.32 .alpha..sup.223 .alpha..sup.64 .alpha..sup.191 .alpha..sup.96 .alpha..sup.159 .alpha..sup.128 .alpha..sup.127 .alpha..sup.166 .alpha..sup.95 .alpha..sup.192 .alpha..sup.63 .alpha..sup.224 .alpha..sup.31 m = 0, 1, 2 . . . 7______________________________________
That is, while substituting .alpha..sup.0 -.alpha..sup.31 for x, S.sub.a (.alpha..sup.i +.alpha..sup.j)x will be equal to .alpha..sup.32m when r=32m. Suppose x=.alpha..sup.q when S.sub.a (.alpha..sup.i +.alpha..sup.j)x equals .alpha..sup.32m. Then, Equation 28 is changed to the following:
S.sub.a (.alpha..sup.i +.alpha..sup.j).alpha..sup.q =32m. (29)
From .alpha..sup.q and the table given above, .alpha..sup.-32m is identified. Hence:
(.alpha..sup.i +.alpha..sup.j).sup.-1 =S.sub.a .multidot..alpha..sup.q .multidot..alpha..sup.-32m. (30)
To sum up the above, the data processing time can be reduced if reciprocal data which is necessary for obtaining the error pattern is given while the errors are being located.
Now, an embodiment of the invention which is based on the above-mentioned principle will be described with reference to FIG. 4.
FIG. 4 is a block diagram of the error location (polynomial) calculating unit which is included chiefly in the correction circuit 123d of the second signal processing system 123 shown in FIG. 3. The calculating unit performs various algebraic operations in order to decode a Reed-Solomon code (i.e., error correction code), which as was mentioned before is a kind of a BCH code used in correcting errors, and thereby to generate the error locations and the error patterns. The only algebraic operations which need to be performed in order to generate the error locations and the error patterns are addition and multiplication; no division is necessary.
The error location calculating unit decodes a Reed-Solomon code as will be described below.
Reproduced symbols W.sub.M+3, W.sub.M+2, W.sub.M+1 . . . , W.sub.0 from a input bus (I-BUS) 40 are supplied to a syndrome generator (SYNDROME GEN.) 41 which corresponds to the syndrome detector 123b shown in FIG. 3. The syndrome generator 41 generates syndromes S.sub.0 -S.sub.3 which are given by Equations 16. Syndromes S.sub.0 -S.sub.3 are stored into a memory (RAM) 43 through a transfer bus (A-BUS) 42A. Syndromes S.sub.0 -S.sub.3 are read out from the memory 43 whenever necessary. They are supplied through a transfer bus (B-BUS) 42B to an arithmetic logic unit (ALU) 44, a register (REG 1) 45A, a register (REG 2) 45B and a register (REG 3) 45C, thereby obtaining S.sub.a, S.sub.b and S.sub.c which are represented by Equation 22.
The arithmetic logic unit 44 is so designed as to perform addition and multiplication on the elements of the Galois field. It includes a multiplier which will next be described.
Through the transfer bus 42A, S.sub.c, S.sub.b and S.sub.a are supplied to a latch circuit (LAT-S.sub.c) 46C, a latch circuit (LAT-S.sub.b) 46B and a latch circuit (LAT-S.sub.a) 45A, respectively. S.sub.c, S.sub.b and S.sub.a are supplied to a latch circuit (LAT-1) 46D, a .alpha. multiplying register (REG.times..alpha.) 47A and an .alpha..sup.2 multiplying register (REG.times..alpha..sup.2) 47B, respectively, when a set pulse SP is supplied to the latch circuit 46D, the .alpha. multiplying register 47A and the .alpha..sup.2 multiplying register 47B. At the same time, 1 is supplied to a r4 register (REG r4) 47C.
The .alpha. multiplying register 47A multiplies its contents by .alpha. upon receipt of a clock pulse CP. Similarly, the .alpha..sup.2 multiplying register 47B multiplies its contents by .alpha..sup.2 upon receipt of a clock pulse CP. The r4 register 47C is initially set to 1 and multiplies its contents by .alpha. every time it receives a clock pulse CP. In this embodiment, the r4 register 47C generates .alpha..sup.0 to .alpha..sup.31.
After S.sub.c, S.sub.b, S.sub.a and 1 have been stored into the latch circuit 46D, .alpha. multiplying register 47A, .alpha..sup.2 multiplying register 47B and into r4 register 47C, respectively, 31 clock pulses CP are supplied, one after another, to the circuit 46D, register 47A, register 47B and register 47C, thus solving Equation 26 which is a quadratic equation. More precisely, output S.sub.c from the latch circuit 46D and output S.sub.b .alpha. (=S.sub.b x) from the .alpha. multiplying register 47B are supplied to an adder circuit (ADR1) 48A and are thus added together. Further, output S.sub.a .alpha..sup.2 (=S.sub.a x.sup.2) from the .alpha..sup.2 multiplying register 47B and output S.sub.c +S.sub.b .alpha. (=S.sub.c =S.sub.b x) from the adder circuit 48A are supplied to an adder circuit (ADR2) 48B and are added together. As a result, there is found:
S.sub.a .alpha..sup.2 +S.sub.b .alpha.+S.sub.c (=S.sub.a x.sup.2 +S.sub.b x+S.sub.c =f.sub.(x) ').
Then, x in quadratic Equation 26 is substituted by .alpha..sup.0 to .alpha..sup.31 as the 31 clock pulses CP are supplied. When f.sub.(x) '=0, the adder circuit (ADR2) 48B generates 0. If a zero detector (0-DET) 49 detects 0 twice, it means that the two roots of the quadratic equation have been determined.
When the zero detector (0-DET) 49 detects 0, it generates an output signal. The contents of the r4 register (REG r4) 47C are then stored into a latch circuit (LAT .alpha..sup.i) 46E and a latch circuit (LAT .alpha..sup.j) 46F, whereby .alpha..sup.i and .alpha..sup.j which define the location of the error can be determined. Data representing .alpha..sup.i and .alpha..sup.j are transferred to the arithmetic logic unit (ALU) 44 through the transfer bus (B-BUS) 42B. The arithmetic logic unit (ALU) 44 multiplies .alpha..sup.i by .alpha..sup.j as indicated by Equation 19 and adds .alpha..sup.i to .alpha..sup.j as indicated by Equation 18, thus generating error locations .sigma..sub.1 and .sigma..sub.2.
In generating error locations .sigma..sub.1 and .sigma..sub.2, an output from the .alpha. multiplying register (REG.times..alpha.) 47A is supplied to a gate circuit (GATE) 50. The gate circuit (GATE) 50 generates an output which represents the reciprocal of the output from the register (REG.times..alpha.) 47A (see the table given above). More specifically, when an output from the .alpha. multiplying register (REG.times..alpha.) 47A represents any value shown in the right column of the table (i.e., .alpha..sup.32m column), the gate circuit (GATE) 50 generates a load pulse. Data representing one of the values shown in the left column of the table (i.e., the .alpha..sup.-32m column), which is the reciprocal of the value represented by the output from the register (REG.times..alpha.) 47A, is then read from the gate circuit (GATE) 50 and stored into a latch circuit (LAT .alpha..sup.-32m) 46G. At the same time, the contents of the r4 register (REG r4) 47C, i.e., data .alpha..sup.q, are stored into a latch circuit (LAT .alpha..sup.q) 46H. Hence, data representing .alpha..sup.q and .alpha..sup.-32m which is necessary for defining an error pattern is obtained.
The data representing .alpha..sup.q and the data representing .alpha..sup.-32m are transferred to the arithmetic logic unit (ALU) 44 through the transfer bus (B-BUS) 42B. Data representing S.sub.a is transferred also to the arithmetic logic unit (ALU) 44 through the transfer bus (B-BUS) 42B. The unit (ALU) 44 performs multiplication of S.sub.a .multidot..alpha..sup.q .multidot..alpha..sup.-32m as in Equation 30, thereby obtaining a reciprocal (.alpha..sup.i +.alpha..sup.j).sup.-1. Thereafter, the unit (ALU) 44 performs multiplication as given by Equation 21A' and addition as given by Equation 21B, thereby generating error patterns e.sub.1 and e.sub.2.
Using the error locations .sigma..sub.1 and .sigma..sub.2, and error patterns e.sub.1 and e.sub.2 thus generated, the error can be corrected according to the method described above with reference to FIG. 1.
FIG. 5 is a timing chart illustrating, how to perform calculations when S.sub.b =S.sub.a (.alpha..sup.i +.alpha..sup.j)=.alpha..sup.60, where .alpha..sup.i =.alpha..sup.9 and .alpha..sup.j =.alpha..sup.15. In FIG. 5, (a) is a set pulse SP, (b) is a clock pulse CP, (c) is the contents of the latch circuit (LAT 1), (d) is the contents of the .alpha. multiplying register (REG.times..alpha.), (e) is the contents of the .alpha..sup.2 multiplying register (REG.times..alpha..sup.2), (f) is an output from the adder circuit (ADR2), (g) is an output from the zero detector (0-DET), (h) is the contents of the r4 register (REG r4), (i) is the contents of the latch circuit (LAT .alpha..sup.i), (j) is the contents of the latch circuit (LAT .alpha..sup.j), (k) is a load pulse from the gate circuit (GATE), (l) is the contents of the latch circuit (LAT .alpha..sup.-32m), and (m) is the contents of the latch circuit (LAT .alpha..sup.q).
Now the multiplier included in the arithmetic logic unit (ALU) 44 will be described. The multiplication of the elements of the Galois field can be expressed as follows: ##EQU19## where .alpha. is the root of the generator polynomial g(x) of the Galois field GF(2.sup.8).
Equation 31 implies that the first term in the right side can be determined in one step and the second term in the right side can be determined in another step.
FIG. 6 is a block diagram of the multiplier which is included in the arithmetic logic unit (ALU) 44. Multiplicand data B(.alpha.) is latched by a latch circuit 51, and multiplier data C(.alpha.) is latched by a latch circuit 52. An output from the latch circuit 51 is supplied to the first input terminal IN.sub.11 of a selector circuit 54 and also to the second input teminal IN.sub.12 of the circuit 54 through an .alpha. multiplying circuit 53. From the latch circuit 52 the coefficients c.sub.0 to c.sub.7 of the multiplier data C(.alpha.) are supplied at the same time to the seven input terminals of a selector circuit 55, respectively.
The selector circuits 54 and 55 are connected to receive a selector signal H/L. When a selector signal having a high level H is supplied to both selector circuits 54 and 55, the multiplier performs the multiplication given by the following Equation 32. Conversely, when a selector signal having a low level L is supplied to both selector circuits 54 and 55, the multiplier performs the multiplication given by Equation 33:
[.alpha.B(.alpha.)](c.sub.7 .alpha..sup.6 +c.sub.5 .alpha..sup.4 +c.sub.3 .alpha..sup.2 +c.sub.1) (32)
B(.alpha.)(c.sub.6 .alpha..sup.6 +c.sub.4 .alpha..sup.4 +c.sub.2 .alpha..sup.2 +c.sub.0). (33)
The multiplier calculates Equation 32 in the following manner.
Upon receipt of a selector signal of a high level H, the selector circuit 54 selects the input data [.alpha.B(.alpha.)] supplied to its second input terminal IN.sub.12, and the selector circuit 55 supplies output c.sub.1, c.sub.3, c.sub.5 and c.sub.7 from its first, second, third and fourth output terminals, respectively. Data [.alpha.B(.alpha.)] is supplied to a selector circuit 56 and also to an .alpha..sup.2 multiplying circuit 57. The selector circuit 56 has its gate controlled by output c.sub.1 from the selector circuit 55. Upon receipt of output c.sub.1 the selector circuit 56 supplies an output [.alpha.B(.alpha.)] to one input terminal of an exclusive OR circuit 58. The .alpha..sup.2 multiplying circuit 57 multiplies the input data [.alpha.B(.alpha.)] by .alpha..sup.2, thereby generating an output [.alpha..sup.3 B(.alpha.)]. Output [.alpha..sup.3 B(.alpha.)] from the .alpha..sup.2 multiplying circuit 57 is supplied to a selector circuit 59 and also to an .alpha..sup.2 multiplying circuit 60.
The selector circuit 59 has its gate controlled by output c.sub.3 from the selector circuit 55. Upon receipt of output c.sub.3 it supplies an output [.alpha..sup.3 B(.alpha.)] to the other input terminal of the exclusive OR circuit 58. Output [.alpha.B(.alpha.)+.alpha..sup.3 B(.alpha.)] from the exclusive OR circuit 58 is supplied to one input terminal of an exclusive OR circuit 61.
In the meantime, the .alpha..sup.2 multiplying circuit 60 multiplies the input data [.alpha..sup.2 B(.alpha.)] by .alpha..sup.2, thereby generating an output [.alpha..sup.5 B(.alpha.)]. Output [.alpha..sup.5 B(.alpha.)] is supplied to a selector circuit 62 and also to an .alpha..sup.2 multiplying circuit 63. The selector circuit 62 has its gate controlled by output c.sub.5 from the selector circuit 55. Upon receipt of output c.sub.5 it supplies an output [.alpha..sup.5 B(.alpha.)] to the other input terminal of the exclusive OR circuit 61. Output [.alpha.B(.alpha.)+.alpha..sup.3 B(.alpha.)+.alpha..sup.5 B(.alpha.)] from the exclusive OR circuit 61 is supplied to one input terminal of an exclusive OR circuit 63.
Meanwhile, the .alpha..sup.2 multiplying circuit 64 multiplies the input data [.alpha..sup.5 B(.alpha.)] by .alpha..sup.2, thus generating an output [.alpha..sup.7 B(.alpha.)]. Output [.alpha..sup.7 B(.alpha.)] is supplied to a selector circuit 65. The selector circuit 65 has its gate controlled by output c.sub.7 from the selector circuit 55. Upon receipt of output c.sub.7 it supplies an output [.alpha..sup.7 B(.alpha.)] to the other input terminal of the exclusive OR circuit 63. Output [.alpha.B(.alpha.)+.alpha..sup.3 B(.alpha.)+.alpha..sup.5 B(.alpha.)+.alpha..sup.7 B(.alpha.)] from the exclusive OR circuit 63 is supplied to a latch circuit 66 and also to one input terminal of an exclusive OR circuit 67. The output from the latch circuit 66 is supplied to the other input terminal of the exclusive OR circuit 67. The output from the exclusive OR circuit 67 is supplied to a latch circuit 68.
Briefly state, when a selector signal of a high level H is supplied the selector circuits 54 and 55, the latch circuit 66 will store data [.alpha.B(.alpha.)](c.sub.7 .alpha..sup.6 +c.sub.5 .alpha..sup.4 +c.sub.3 .alpha..sup.2 +c.sub.1).
When a selector signal of a low level L is supplied to the selector circuits 54 and 55, the sequence of the above-mentioned steps will be carried out, thereby suppling data B(.alpha.)(c.sub.6 .alpha..sup.6 +c.sub.4 .alpha..sup.4 +c.sub.2 .alpha..sup.2 +c.sub.0) to one input terminal of the exclusive OR circuit 67. The output from the latch circuit 66 is supplied to the other input terminal of the exclusive OR circuit 67, whereby data of Equation 32 and data of Equation 33 are added together. As a result, data B(.alpha.).multidot.C(.alpha.) given by Equation 31 is supplied to the latch circuit 68.
The latch circuits 51 and 52 are controlled by a latch signal LP.sub.1 generated by a gate circuit 69 which is connected to receive 2-phase reference clocks CP.sub.1 and CP.sub.2. The latch circuit 66 is controlled by a latch signal LP.sub.2 generated by the gate circuit 69. Similarly, the latch circuit 68 is controlled by a latch signal LP.sub.3 generated by the gate circuit 69.
FIG. 7 is a timing chart illustrating how the multiplier operates which is included in the arithmetic logic unit (ALU) 44. In FIG. 7, (a) is a reference clock CP.sub.1, (b) is a reference clock CP.sub.2, (c) indicates when to input the multiplicand data B(.alpha.), (d) indicates when to input the multiplier data C(.alpha.), (e) is a latch signal LP.sub.1, (f) is a selector signal H/L, (g) is a latch signal LP.sub.2, (h) indicates the timing of latching data in the latch circuit 66, (i) is a latch signal LP.sub.3, and (j) indicates when data should be latched in the latch circuit 68.
Now, the .alpha. multiplying circuit 53 and the .alpha..sup.2 multiplying circuits 57, 60 and 64 will be described in detail.
.alpha. is the root of the generator polynomial g(x) of the Galois field GF(2.sup.8), which is given by:
g(X)=x.sup.8 +X.sup.4 +x.sup.3 +x.sup.2 +1.
Hence:
g(.alpha.)=.alpha..sup.8 +.alpha..sup.4 +.alpha..sup.3 +.alpha..sup.2 +1=0.
From the above equation:
.alpha..sup.8 =.alpha..sup.4 +.alpha..sup.3 +.alpha..sup.2 +1. (34)
If multiplicand data E(.alpha.), which is given as follows, is multiplied by .alpha., the product can be expressed by the following equation (35) from equation (34): ##EQU20##
Equation 35 means that the .alpha. multiplying circuit 53 may be comprised of exclusive OR circuits (EX-OR.sub.41) to (EX-OR.sub.43) as shown in FIG. 8.
Product E(.alpha.).multidot..alpha..sup.2 can be expressed as follows: ##EQU21##
It is obvious from Equation 36 that the .alpha..sup.2 multiplying circuits 57, 60 and 64 can be comprised of exclusive OR circuits (EX-OR.sub.51) to (EX-OR.sub.55) as illustrated in FIG. 9.
The present invention is not limited to the embodiment described above. Variations are possible within the spirit of the invention, and the invention may be applied to devices other than a DAD device. For instance, the error data correcting system of the invention can be used in combination with an apparatus for recording digital data such as PCM codes on a magnetic tape, for reproducing the data from the tape and for transmitting the data.
As described above in detail, the error data correcting system according to the invention can perform multiplication and addition on the elements of a Galois field thereby locating errors and generating error patterns without using a memory having a large capacity, such as a logarithm buffer or an antilogarithm buffer. The system is therefore simple, inexpensive, and can process data at a high speed.
Claims
- 1. An error correcting system which receives double correction BCH codes each consisting of M data symbols and four parity symbols, each consisting of m bits and represented by the following generated polynomial:
- g.sub.(x)=( x+1)(x+.alpha.)(x+.alpha..sup.2)(x+.alpha..sup.3),
- where .alpha. is the origin element of Galois field GF(2.sup.m), and which find the roots of the following error location polynomial:
- f.sub.(x) =x.sup.2 +.sigma..sub.1 x+.sigma..sub.2,
- thereby correcting errors in the double correction BCH codes, said system comprising:
- means for storing the double correction BCH codes;
- syndrome generating means for generating four syndromes S.sub.0, S.sub.1, S.sub.2 and S.sub.3 from the double correction BCH codes;
- error location calculating means comprising:
- a first multiplying/adding section for multiplying and adding the four syndromes S.sub.0, S.sub.1, S.sub.2 and S.sub.3 to obtain three syndromes S.sub.a, S.sub.b and S.sub.c which are given as follows:
- S.sub.a =S.sub.1.sup.2 +S.sub.0 S.sub.2,
- S.sub.b =S.sub.0 S.sub.3 +S.sub.1 S.sub.2,
- S.sub.c =S.sub.1 S.sub.3 +S.sub.2.sup.2
- a second multiplying/adding section for performing multiplication and addition by substituting .alpha..sup.0 -.alpha..sup.M+3 for x in the following polynomial obtained by transforming said error location polynomial f.sub.(x) :
- f'.sub.(x) =S.sub.a f.sub.(x) =S.sub.a x.sup.2 +S.sub.b x+S.sub.c,
- thereby obtaining two products S.sub.a .multidot..alpha..sup.2 and S.sub.b .multidot..alpha. and a sum S.sub.a .alpha..sup.2 +S.sub.b .alpha.+S.sub.c, utilizing the fact that the coefficients .sigma..sub.1, .sigma..sub.2 of said error location polynomial f.sub.(x) and the three syndromes S.sub.a, S.sub.b and S.sub.c have the following relations according to the theory on the correction of said double correction BCH codes:
- .sigma..sub.1 =S.sub.b /S.sub.a =.alpha..sup.i +.alpha..sup.j,
- .sigma..sub.2 =S.sub.c /S.sub.a =.alpha..sup.i .alpha..sup.j ;
- an .alpha..sup.i, .alpha..sup.j detecting section for detecting .alpha..sup.i and .alpha..sup.j which satisfy f'.sub.(x) =0; and
- a third multiplying/adding section for adding .alpha..sup.i and .alpha..sup.j and multiplying .alpha..sup.i by .alpha..sup.j, thereby finding the coefficients .sigma..sub.1, .sigma..sub.2 which define error locations;
- error pattern calculating means comprising a fourth multiplying/adding means for obtaining an error pattern e.sub.i from .alpha..sup.i and .alpha..sup.j by performing the following multiplication:
- e.sub.1 =(S.sub.0 .alpha..sup.j +S.sub.1)(.alpha..sup.i +.alpha..sup.j).sup.-1,
- said equation having been derived from the following division: ##EQU22## and for obtaining another error pattern e.sub.j by performing the following addition:
- e.sub.j =S.sub.0 +e.sub.i ; and
- correction means for correcting the errors in said double correction codes stored by said code storing means in accordance with the coefficients .sigma..sub.1, .sigma..sub.2 and the error patterns e.sub.i, e.sub.j.
- 2. An error correcting system according to claim 1, wherein said first, third and fourth multiplying/adding sections are comprised of one section.
- 3. An error correcting system according to claim 1, wherein said fourth multiplying/adding section includes means for finding a reciprocal component (.alpha..sup.i +.alpha..sup.j).sup.-1 which is used to obtain the error pattern e.sub.i and which is given by the following equation:
- (.alpha..sup.i +.alpha..sup.j).sup.-1 =Sa.multidot..alpha..sup.-(M+4)m,
- where .alpha..sup.q is the value for x which satisfies Sa(.alpha..sup.i +.alpha..sup.j)x=.alpha..sup.(M+4), said means comprising:
- gate circuit means having 2.sup.m-1 /M+4 gates forming a table [.alpha..sup.(M+4)m :.alpha..sup.-(M+4)m ];
- latch circuit means for latching .alpha..sup.-(M+4)m stored in said gate circuit means and coincident to S.sub.b .alpha., which is output from said second multiplying/adding section, and latching .alpha..sup.0 -.alpha..sup.M+3 as data .alpha..sup.q when S.sub.b is output from said second multiplying/adding section; and
- multiplying means for multiplying .alpha..sup.-(M+4)m, S.sub.a and .alpha..sup.q.
- 4. An error correcting system according to claim 1, wherein said first, third and fourth multiplying/adding sections each include a muliplier unit which performs the following multiplication:
- B(.alpha.).multidot.C(.alpha.)=M.sub.1 +M.sub.2,
- where:
- B(.alpha.)=b.sub.m-1 .alpha..sup.m-1 +b.sub.m-2 .alpha..sup.m-2 +. . . +b.sub.0,
- C(.alpha.)=C.sub.m-1 .alpha..sup.m-1 +C.sub.m-2 .alpha..sup.m-2 +. . . +C.sub.0,
- provided that:
- M.sub.1 ={.alpha.B(.alpha.)}(C.sub.m-1 .alpha..sup.m-2 +C.sub.m-2 .alpha..sup.m-4 +. . . +C.sub.3 .alpha..sup.2 +C.sub.1)
- M.sub.2 =B(.alpha.)(C.sub.m-2 .alpha..sup.m-2 +C.sub.m-4 .alpha..sup.m-4 +. . . +C.sub.2 .alpha..sup.2 +C.sub.0),
- said multiplier unit comprising:
- a first multiplier circuit for performing a multiplication to find M.sub.1 in a first step;
- a second multiplier circuit for performing a multiplication to find M.sub.2 in a second step; and
- an adder circuit for adding the outputs from the first and second multiplier circuits.
Priority Claims (1)
Number |
Date |
Country |
Kind |
57-102816 |
Jun 1982 |
JPX |
|
US Referenced Citations (4)
Number |
Name |
Date |
Kind |
4142174 |
Chen et al. |
Feb 1979 |
|
4413339 |
Riggle et al. |
Nov 1983 |
|
4413340 |
Odaka et al. |
Nov 1983 |
|
4437185 |
Sako et al. |
Mar 1984 |
|