Abstract:
A Reed-Solomon code generator applicable to a digital signal recording/playback apparatus checks or corrects code errors in digital signals. The code generator eliminates the need for costly read only memory devices (ROM tables) and uses inexpensive registers, modulo 2 adders and multipliers instead.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates to a Reed-Solomon code generator and, more particularly, to one which finds various applications such as to pulse code modulation (PCM) recording/playback apparatuses, on which audio video and other information signals are digitally processed, employing magnetic tapes or discs, and to other digital signal recording/playback apparatuses for checking or correcting code errors caused in the digital signals processed in the apparatuses. 
     The principle of Reed-Solomon code generation which prior art generators have employed will be described first. 
     Assume that parity words P and Q are generator for &#34;k&#34; externally derived data words W 1  -W k , and that (k+2, k) Reed-Solomon codes are prepared with W 1  -W k , P and Q. Also, assume that the parity matrix for Reed-Solomon codes is ##EQU1## where α is the primitive root of a predetermined polynomial, and [S 0 , S 1  ] T  is the syndrome (T indicates displacement of matrix). Therefore, when k=14 for example, and if all the external data words and parity words W 1 , W 2 , . . . , W 14 , P and Q are correct, the Reed-Solomon code parity matrix ##EQU2## is expressed as 
     
         S.sub.0 =W.sub.1 +W.sub.2 +. . . +W.sub.14 P+Q=0 
    
     
         S.sub.1 =α.sup.15 ·W.sub.1 +α.sup.14 ·W.sub.2. . . α·P+Q=0 
    
     Even when the check matrix is modified (multiplying one row by a constant and adding the product to another row), the resulting matrix ##EQU3## is still a parity matrix. Therefore, 
     
         α.sup.X.sbsp.1 ·W.sub.1 +α.sup.x.sbsp.2 ·W.sub.2. . . α.sup.X.sbsp.14 ·W.sub.14 +1·P+0=0 
    
     
         α.sup.Y.sbsp.1 ·W.sub.1 +α.sup.Y.sbsp.2 ·W.sub.2. . . α.sup.Y.sbsp.14 ·W.sub.14 +0+1·Q=0 
    
     Hence, the parity words P and Q can be calculated as 
     
         P=α.sup.X.sbsp.1 ·W.sub.1 +α.sup.X.sbsp.2 ·W.sub.2 +. . . +α.sup.X.sbsp.14 ·W.sub.14 
    
     
         Q=α.sup.Y.sbsp.1 ·W.sub.1 +α.sup.Y.sbsp.2 ·W.sub.2 +. . . +α.sup.Y.sbsp.14 ·W.sub.14 
    
     However, devices heretofore proposed for accomplishing the above-described principle of Reed-Solomon code generation require a costly ROM network and is disproportionately intricate in construction. 
     SUMMARY OF THE INVENTION 
     It is therefore an object of the present invention to provide a Reed-Solomon code generator which is usable for various purposes such as checking or correcting code errors in digital signals which are employed or digital signal recording/playback apparatuses. 
     It is another object of the present invention to provide a simple Reed-Solomon code generator which eliminates the need for expensive ROMs and has inexpensive registers as its major components. 
     It is another object of the present invention to provide a Reed-Solomon code generator which is feasible for integration. 
     It is another object of the present invention to provide a generally improved Reed-Solomon code generator. 
     A Reed-Solomon code generator of the present invention comprises a first modulo 2 adder supplied with an externally derived data word signal. A first register is supplied with an output of the first modulo 2 adder and first clock pulses and, in turn, supplies its output to the first modulo 2 adder. The first register is updated in response to every one of the first clock pulses to store a result of modulo 2 addition of the data word wignal and data stored in the first register just before the arrival of each clock pulse of the first clock pulses. A second modulo 2 adder is supplied with the data word signal which is received simultaneously by the first modulo 2 adder. A first multiplier multiplies an output of the second modulo 2 adder supplied thereto by a primitive root α of a predetermined generating polynomial. A second register is supplied with an output of the first α multiplier and second clock pulses and, in turn, supplies its input to the second modulo 2 adder. The second register is updated in response to every one of the second clock pulse to store a product of the primitive root α and a result of modulo 2 addition of the data word signal and data stored in the second register just before the arrival of each clock pulse of the second clock pulses, which is provided by the first α multiplier. 
     In accordance with the present invention, a Reed-Solomon code generator is applicable to a digital signal recording/playback apparatus to check or correct code errors in digital signals. The code generator eliminates the need for costly read only memory devices (ROM tables) and uses inexpensive registers, modulo 2 adders and multipliers instead. 
     The above and other objects, features and advantages of the present invention will become apparent from the following detailed description taken with the accompanying drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram of a prior art Reed-Solomon code generator; 
     FIG. 2 is a block diagram of a Reed-Solomon code generator embodying the present invention, and 
     FIG. 3 is a block diagram of another embodiment of the present invention. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     While the Reed-Solomon code generator of the present invention is susceptible of numerous physical embodiments, depending upon the environment and requirements of use, substantial numbers of the herein shown and described embodiments have been made, tested and used, and all have performed in an eminently satisfactory manner. 
     Before entering into detailed discussion of the present invention, a brief reference will be made to a prior art apparatus for Reed-Solomon code generation, illustrated in FIG. 1. The Reed-Solomon code generator includes two read only memories (ROMs), or tables, 10 and 12 which are individually supplied with externally derived data words W 1  -W k  and signals 1-k. The outputs of the ROMs 10 and 12 are respectively delivered via modulo 2 adders 14 and 16 to registers 18 and 20. The register 18 generates a parity word P and the register 20, a parity word Q. The parity words P and Q are respectively fed back to the registers 18 and 20 via the modulo 2 adders 14 and 16. Commonly supplied to the registers 18 and 20 are a clearing signal CR and a clock signal CK. Thus, the prior art Reed-Solomon code generator requires, among others, a costly ROM netweok and is intricate in construction. 
     Now, assuming ##EQU4## there hold equations 
     
         (α.sup.15 +1) W.sub.1 +. . . +(α.sup.2 +1) W.sub.14 +(α+1)P=0 
    
     
         α.sup.15 ·W.sub.1 +α.sup.14 ·W.sub.2 +. . . +α.sup.2 ·W.sub.14 +α·P+Q=0 
    
     Therefore, 
     
         P=(α+1).sup.-1 {(α.sup.15 +1) W.sub.1 +. . . } 
    
     
         Q=α.sup.15 ·W.sub.1 +α.sup.14 ·W.sub.2 +. . . +α·P 
    
     That is, 
     
         P=(α+1).sup.-1 {α.sup.15 ·W.sub.1 +α.sup.14 ·W.sub.2 +. . . +(W.sub.1 +W.sub.2 +. . . +W.sub.14)} 
    
     The above equation teaches that a Reed-Solomon code generator can be constructed simply without resorting to any ROM network. 
     Referring to FIG. 2, a Reed-Solomon code generator embodying the present invention will be described which realizes the principle stated above. 
     In FIG. 2, the Reed-Solomon code generator comprises a first register 22 having a first clearing signal input terminal a to which a clearing signal CR is supplied. The output of the first register 22 is fed to a first modulo 2 adder (exclusive-OR gate) 24 together with the code words W 1  -W k , which are supplied to an input terminal b. The output of the first modulo 2 adder 24 is delivered to the register 22. An arrangement is made such that, every time a clock pulse CK arrives at a clock input terminal c of the first register 22, the result of modulo 2 addition of a data word W 1  -W k  and data stored in the first register 22 just before the arrival of the pulse is newly stored in the register 22. 
     A second register 26 has a second clearing signal input terminal d which receives the previously mentioned clearing input signal CR. The output of the second register 26 is supplied to a second modulo 2 adder 28 together with the data words W 1  -W k . The output of this modulo 2 adder 28 is fed to the second register 26 via a first α multiplier 30, which is adapted to multiply the input by the primitive root α of a predetermined generating polynomial, e.g. F(x)=x 8  +x 4  +x 2  +l. In the construction shown in FIG. 2, every time a clock pulse CK arrives at a clock input terminal e of the second register 26, the product of α and a result of modulo 2 addition of a data word W 1  -W k  and data stored in the second register 26 just before the arrival of the clock pulse is newly stored in the second register 26. In accordance with the above definition, F (α) is expressed as 
     
         F(α)=α.sup.8 +α.sup.4 +α.sup.3 +α.sup.2 1=0 
    
     In response to every clock pulse CK fed to the terminal c, the first register 22 is updated to store the result of modulo 2 addition of a data word W 1  -W k  and data stored in the first register 22 just before the arrival of the pulse. With this construction, there is obtained 
     
         W.sub.1 +W.sub.2 +. . . +W.sub.k 
    
     The data words W 1  -W k  are supplied to the second modulo 2 adder 28 by way of a data selector 32 (e.g. TI type SN74LS157 or TI type SN74LS153) which is supplied with a select signal at an input terminal f thereof. It will be recalled that the adder 28 is also supplied with an output of the second register 26, while the register 26 is supplied with a clearing input signal CR at the terminal d. The first α multiplier 30, in response to an output of the adder 28, supplies the register 26 with a product of its input and the primitive root α of a predetermined generating polynomial such as F(x)=x 8  +x 4  +x 3  +x 2  +1. In response to every clock pulse CK arriving at the clock input terminal e, the register 26 is updated to store an output of the α multiplier 30 which is a product of α and a result of modulo 2 addition of a data word W 1  -W k  and a content of the register 26 stored just before the arrival of the clock pulse. This construction provides 
     
         α.sup.k ·W.sub.1 +α.sup.k-1 ·W.sub.2 +. . . +α·W.sub.k 
    
     The output of the second register 26 is fed out to a second α multiplier 34 an output of which is in turn supplied to a third modulo 2 adder 36. Also supplied to the third modulo 2 adder 36 is an output of the first resister 22. The output of the adder 36 is delivered to an (α+1) multiplier 38 to provide a first parity word P. 
     The data selector 32 is switched to selectively supply the modulo 2 adder 28 with the data words W 1  -W k  and the first parity word P. The register 26, receiving clock pulses CK at the terminal e, calculates 
     
         α.sup.k+1 ·W.sub.1 +α.sup.k ·W.sub.2 +. . . α.sup.2 ·W.sub.k 30 α·P 
    
     The output of the register 26 is a weighted second parity word Q as shown in FIG. 2. 
     Reed-Solomon codes corresponds to part of BCH (Bose-Chaudhuri-Hocquenghen) codes. The parity matrix H 0  for the BCH codes is written as ##EQU5## This may be rewritten as ##EQU6## 
     The Reed-Solomon code usually refers to the matrix ##EQU7## 
     In accordance with the present invention, a circuitry for the generation of the generalized (k+2, k) BCH codes may also be accomplished. A Reed-Solomon code generator shown in FIG. 3 which includes multipliers 40, 42, 44 and 46 is attainable by modifying the matrix as ##EQU8## 
     In summary, it will be seen that the present invention provides a Reed-Solomon code generator which is economical and simple in construction due to the omission of ROMs (tables). The simple circuit construction facilitates integration of the circuit into a semiconductor chip and thereby production on a quantity basis which trims the costs. The Reed-Solomon code generator of the present invention finds various applications such as to a PCM recording/playback apparatus which processes audio, video and like information signals as digital signals using magnetic tapes or discs, and a circuit adapted to check or correct code errors in digital signal processing in other digital signal recording/playback apparatuses. 
     Various modifications will become possible for those skilled in the art after receiving the teachings of the present disclosure without departing from the scope thereof.