Abstract:
The present invention relates to a method and an apparatus for decoding double-encoding codes in which the information to be decoded comprises a first data and a second data. The operation for decoding double-encoding codes is achieved through two stages. A decoder of the first stage checks the first data, and when an error is found in the first data, all symbols of the first data are assumed to be wrong. The first-stage decoder then adds an erasure flag to all symbols to generate erasure symbols. As a result, these erasure symbols include the symbols which are actually erroneous and those which are correct. A decoder of the second stage is used to perform an error correction on the second data. For this purpose, the second-stage decoder detects the number of erasure symbols which are contained in the second data and which are actually erroneous. If the number of actually erroneous symbols does not exceed the maximum number of correctable symbols which can be corrected by the decoder of the second stage, the error correction is effected; otherwise, the decoder detects an error without conducting the error correction.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates to a method for decoding double-encoding codes and an apparatus using the same, and in particular, to an erasure correcting method and an apparatus using the same. 
     In communication and computer systems, there have been widely utilized error correcting codes for the purpose of the system reliability. Based on the error detecting codes, the transmitted information is checked whether or not the predetermined rules imposed thereon are satisfied. If it is found that the rules are satisfied, the information is determined to be free of errors. On the contrary, if the rules are not satisfied for the information, the system assumes that an error has been found and requests to retransmit the information, or the error is automatically corrected by use of the error correcting codes on a device for receiving the transmitted information. A Galois field has been utilized to execute such operations for detecting and correcting errors. 
     Recently, error correcting codes have been adopted in a PCM recording system in which audio and video signals are digitized before they are recorded. 
     To implement a higher error correction capability, there is a system utilizing codes with long lengths in which each code is constituted by duplicatedly encoding two kinds of codes having rather simple structure (these codes may be of the same kind). This provision allows to decode the code through two stages, hence the decoding algorithm can be advantageously simplified as compared with that used when a code which has a long code length and a high error correction capability is decoded at a time. Furthermore, these codes can be effectively processed with respect to both the burst and random errors. 
     The double-encoding codes include the product, concatenated, and cross interleaved codes. Among various methods for decoding double-encoding codes, the following two decoding methods are commonly used. 
     (a) A decoder of the first stage possesses at least an error detecting function. When the decoder detects an error in a first data, it adds an erasure flag to all symbols constituting the first data in which the error is found, thereby setting the erasure symbols. A decoder of the second stage corrects the errors in a second data based on the positional information of the erasure symbols supplied from the decoder of the first stage (erasure correcting method). 
     (b) The decoders of the first and second stages independently perform the respective error detecting and correcting functions. Especially, the erasure correcting method of (a) develops a practical error correction capability and requires only a simple hardware designing; therefore, it has been widely applied to the devices such as a digital audio disk (DAD) and a digital video tape recorder (DVTR). 
     Let us consider now the Reed-Solomon codes (to be referred to as RS codes herebelow) shown in FIG. 2 illustrating double-encoding codes, that is, product codes. Assume that a first data along the row direction is A code and that a second data along the column direction is B code. The A code is decoded together with an error detection or an error detection and correction. When an error is detected in a decode operation of the A code, an erasure flag is added to all symbols of the first data arranged in the row direction so as to generate the erasure symbols. When the B code is decoded, the erasure correction is effected by use of the erasure symbol positional information resulted from the operation to decode the A code. 
     For an RS (n, k) code whose code length and number of information points are n and kv, respectively, the minimum distance is represented to be n-k+1, so the number of erasure symbols that can be corrected is n-k at the maximum. The parity check matrix   of this code is given by expression (1), where α represents the primitive root of a Galois field GF (q m ) and the code length n is a positive integer not exceeding q m  -1. ##EQU1## 
     Assuming the code word vector, error vector, and receive vector to be =(v 1 , v 2 , . . . , v n ),  =(e 1 , e 2 , . . . , e n ), and  =(r 1 , r 2 , . . . , r n ), respectively, then the following expression is obtained. 
     
          - +                                                       (2) 
    
     Then, syndrome  =(S 1 , S 2 , . . . , S n-k ) is defined in terms of the parity check matrix   and the receive vector   as follows. ##EQU2## where   T  and   T  represent the transposed matrices of   and  , respectively. 
     Assume that the positions of the erasure symbols which are l in number with l not exceeding n-k are represented as a1, a2, . . . , al and that the magnitudes of the errors associated therewith are expressed as E a1 , E a2 , . . . , E al , then there exists the following relationships between the syndromes   and the magnitudes of the errors. ##EQU3## 
     The syndrome  =(S 1 , S 2 , . . . , S l ) and the erasure symbol positions a1, a2, . . . , al are known in expression (4), hence the magnitudes of the errors E a1 , E a2 , . . . , E al  can be obtained from expression (4) as follows. ##EQU4## where, [ ] -1  represents the inverse matrix of the matrix [ ]. As a consequence, in the l erasure correcting method conventionally utilized to correct errors which are l in number, a circuit for solving the l-order matrix equation of expression (5) must be implemented by hardware including ROM&#39;s and logic gates. 
     The following paragraphs describe a concrete conventional example in which an RS (n H  =39 , k H  =36) code and an RS (n V  =31, k V  =28) code in a Galois field GF (2 8 ) are used as the A and B codes, respectively. 
     Assume that a decoder of the A code has at least the function to detect an error and that when an error is detected, erasure flags are added to the first data in order to create erasure symbols. A decoder of the B code can perform the erasure correction on symbols which are n V  -k V  =31-28=3 in number at the maximum. The following two examples will be explained: (1) Two erasure correcting method in which the erasure correction is conducted if the number of erasure symbols is at most two and the error is detected if the number is at least three, and (2) Three erasure correcting method in which the erasure correction is carried out if the number of erasure symbols is at most three and the error is detected if the number is at least four. 
     (1) Two erasure correcting method 
     When the number of erasure symbols is 0, that is, the decoder of the A code does not detect any error, the decoder of the B code determines that the data has no error if 
     
         S.sub.1 =S.sub.2 =S.sub.3 =0                               (6) 
    
     is satisfied for the syndromes S 1 , S 2 , S 3  defined by expression (3). If the relationships of expression (6) are not satisfied, the decoder of the A code could not detect an error, hence the decoder of the B code determines that an error has occurred in the data and detects an error. 
     Assume that the erasure symbol position and the magnitude of the error associated therewith are repeated by i and E i  when the number of erasure symbols is one, then the syndromes S 1 , S 2 , and S 3  are expressed as follows. 
     
         S.sub.1 =Ei                                                (7) 
    
     
         S.sub.2 =α.sup.i Ei                                  (8) 
    
     
         S.sub.3 =α.sup.2i Ei                                 (9) 
    
     The magnitude of the error Ei for the erasure symbol position i is represented as Ei=S i  from expression (7). If the following expressions (10) obtained by substituting the value E i  =S i  in the expressions (8) and (9), respectively are satisfied, the error is corrected by supressing the error Ei from the erasure symbol position. 
     
         S.sub.2 =α.sup.i S.sub.1 
    
     
         S.sub.3 =α.sup.2i S.sub.1                            ( 10) 
    
     If they do not hold, an error is assumed to have occurred at other than the erasure symbol position and is therefore detected. 
     Assume that the erasure symbol positions and the magnitudes of the errors associated therewith are represented as i, j and Ei, Ej, respectively when the number of erasure symbols is two, then the following expressions hold for the syndromes S 1 , S 2 , and S 3 . 
     
         S.sub.1 =Ei+Ej                                             (11) 
    
     
         S.sub.2 =α.sup.i Ei+α.sup.j Ej                 (12) 
    
     
         S.sub.3 =α.sup.2i Ei+α.sup.2j Ej               (13) 
    
     From expressions (12) and (13), the magnitude of the error Ei and Ej are represented as follows. ##EQU5## From expression (11), 
     
         Ej=Ei+S.sub.1                                              ( 15) 
    
     Substitute Ei and Ej obtained from expressions (14) and (15) in expression (13), then S 3  is represented as follows ##EQU6## 
     If expression (16) holds, the error correction is performed by suppressing the errors attained by expressions (14) and (15) from the erasure symbol positions i and j. If expression (16) is not satisfied, an error is assumed to have occurred at other than the erasure symbol positions and is thus detected. 
     When the number of erasure symbols is at least three, only the error detection is conducted, that is, the error correction is not carried out. 
     FIG. 3 illustrates a shcematic system block diagram of a system utilizing the two erasure correcting method. A syndrome arithmetic circuit 3 calculates syndromes S 1 , S 2 , and S 3  from the decoded data having erasure symbols and inputted from an input terminal 1. A control circuit 4 selects an error detect/correct circuit based on an erasure symbol positional information inputted from an input terminal 2. It selects an error detect/correct circuit 6, 7, or 8 when the number of erasure symbols is zero, one, or two, respectively. On the other hand, when the number of erasure symbols is at least three, the control circuit 4 selects a flag generate circuit 10 so as to detect an error. An error correct circuit 9 suppresses the errors obtained by the error detect/correct circuits 6, 7, and 8 from the reproduced data delayed by a delay circuit 5 so as to correct the errors. The data of which the errors have been corrected by the error correct circuit 9 is outputted from an output terminal 11. The flag generate circuit 10 generates an error flag to detect an error when an error is found at other than the erasure symbol positions in the error detect/correct circuits 6, 7, and 8, that is, the expressions (6), (10), and (16) are not satisfied, or when the control circuit 4 determines that the number of erasure symbols exceeds three. The error flag is outputted from an output terminal 12 in this case. 
     (2) Three erasure correcting method 
     When the number of erasure symbols is at most two, the erasure correction is conducted in the same manner as the two erasure correcting method described before. 
     Assume that the erasure symbol positions are i, j, and k and that the magnitudes of the errors associated therewith are Ei, Ej, and Ek, respectively when the number of erasure symbols is three, then the syndromes S 1 , S 2 , and S 3  are expressed as follows. ##EQU7## 
     From this equation, the magnitudes of the errors Ei, Ej, and Ek are obtained from the following expressions (18) to (20). ##EQU8## 
     The errors obtained from the expressions (18) to (20) are eliminated from the erasure symbol positions i, j, and k, thereby performing the error correction. 
     If the number of erasure symbols is at least four, the error detection is conducted. 
     FIG. 4 depicts a schematic block diagram of a system using three erasure correcting method. 
     A syndrome arithmetic circuit 15 calculates syndromes S 1 , S 2 , and S 3  based on the decoded data having erasure symbols inputted from an input terminal 13. A control circuit 16 selects an error detect/correct circuit depending on an erasure symbol positional information inputted from an input terminal 14. It selects an error detect/correct circuit 18, 19, 20, or 21 if the number of erasure symbol is zero, one, two, or three, respectively. On the other hand, if the number of erasure symbols is at least four, the control circuit 16 selects a flag generate circuit 23 in order to detect an error. An error correct circuit 22 suppresses the errors obtained by the error detect/correct circuits 18 to 21 from the reproduced data delayed by a delay circuit 17, thereby performing the error correction. The data of which the errors have been corrected by the error correct circuit is outputted from an output terminal 24. A flag generate circuit 23 generates an error flag to detect an error when an error is found at other than the erasure symbol positions in the error detect/correct circuits 18 to 21, that is, the expressions (6), (10), (16), and (17) are not satisfied, or if the control circuit 16 determines that the number of erasure symbols is at least four. The error flag thus generated is outputted from an output terminal 25. 
     In the two and three erasure correcting methods described above, the decoding operation becomes complex mainly because of the expressions (18) to (20) to be executed over the Galois field GF (q m ). As can be clear from the comparison between the numbers of arithmetic operations of expressions (14) to (16) and (18) to (20) in the Galois field, the number of hardware elements of the decoder exponentially increases as the number of erasures becomes greater. 
     In order to attain a higher reliability, the number of error correction is required to be increased; however, since the increase thereof causes the quantity of hardware elements to become exponentially greater, the erasure correcting method using three or more erasures cannot be easily applied to the practical use. 
     SUMMARY OF THE INVENTION 
     It is therefore an object of the present invention to provide a method for decoding a double-encoding code using an erasure correcting method which is capable of preventing the increase in the hardware quantity even when the error correction capability is improved and to provide an apparatus utilizing the decoding method. 
     In accordance with the present invention, double-encoding codes to which erasure flags are added are inputted to the first data and the second data including the double-encoding codes is checked for an error by use of the erasure flags. When the double-encoding codes are decoded, the number of symbols of the second data to which the erasure flags are added and which are found to be actually erroneous (that is, the number of erroneous symbols to which the erasure flags are added) is detected. If the number of errors does not exceed the number of symbols which can be corrected in the pertinent erasure correcting method, the error in the second data is corrected, whereas if it is greater than the number of correctable symbols, the error in the second data cannot be corrected and is hence detected. 
     This provision allows to improve the error correction capability in the operation to decode the double-encoding codes, and at the same time, brings forth an effect to prevent the increase in the number of hardware elements. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a schematic block diagram of a system utilizing the 2 out of 3 erasure correcting method embodying the present invention; 
     FIG. 2 is a configuration diagram illustrating product codes including the A and B codes. 
     FIG. 3 is a schematic block diagram of a system using the conventional two erasure correcting method; 
     FIG. 4 is a system block diagram of a system using the conventional three erasure correcting method; 
     FIG. 5 is a graph illustrating the correspondences between the probability of erasure symbols found to be actually erroneous and the bit error rate; 
     FIG. 6 is a schematic block diagram illustrating in detail the 2 out of 3 erasure correct circuit of FIG. 1; 
     FIG. 7 is an explanatory diagram useful to understand an example of the operation conducted by the error pattern select circuit of FIG. 6; 
     FIG. 8 is a schematic block diagram of a system using the 1 out of 3 erasure correcting method embodying the present invention; and 
     FIGS. 9-10 are graphs for explaining the effect of the present invention. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     Before proceeding to the explanation of embodiments of the present invention, the principle thereof will be described. 
     The conventional erasure correcting methods have been designed on the assumption that an error occurs in all erasure symbols. In order to check the validity of the assumption, the probability of the erasure symbols to which the erasure flag is added and which are found to be actually erroneous will be calculated. Consider two examples: (3) 3 error detection and (4) 1 error correction 2 error detection in decoding the A code. In both cases of (3) and (4), when an error is detected, the erasure flag is added to all symbols of the data to create the erasure symbols. As the code error, the random error is assumed. The bit error rate under this condition is represented by p. 
     (3) 3 error detection in decoding the A code 
     The probability P of erroneous symbols in the Galois field GF (2 8 ) is expressed by use of the bit error rate p as follows. 
     
         P=1-(1-p).sup.8                                            (21) 
    
     Any errors which are at most three in number can be detected in the A code; however, the errors which are at least four in number cannot be detected in some cases. If the bit error rate p is assumed to be sufficiently small, the probability of detecting failure can be approximated by the probability of decoding failure Pc obtained by assuming that all errors can be detected, that is, ##EQU9## As a consequence, the average number of erroneous symbols Ne when the error detection is carried out is expressed as follow. ##EQU10## The probability P E  of the erasure symbols which are found to be actually erroneous is therefore represented as follows. ##EQU11## 
     (4) 1 error correction 2 error detection in decoding the A code 
     Similarly to the case of (3), the probability of detecting failure P&#39;c in the A code is expressed as ##EQU12## Consequently, the average number of error symbols N&#39;e when the error detection is carried out is obtained as follows ##EQU13## The probability P&#39; E  of the erasure symbols which are found to be actually erroneous is expressed as, ##EQU14## 
     FIG. 5 is a graph showing the correspondence between the bit error rate p and the probability of erasure symbols to be found actually erroneous. 
     As depicted in FIG. 5, the values of probability of the erasure symbols in which errors are actually found in the methods of (3) and (4) are P E  ≈1/39 and P&#39; E  ≈2/39, respectively, if the bit error rate p is at most 1.0×10 -4 . 
     Assume here that three erasure symbols are set to a code word represented in the B code system. In this case, when the decoding methods of (3) and (4) are applied to the decoding operation on the A code, the probability that the error is found in the erasure symbols in both method will be represented as P E   3  and P&#39; E   3 , respectively. If the bit error rate p is at most 1.0×10 -4 , the values of probability becomes sufficiently small as P E   3  ≈1.7×10 -5  and P&#39; E  3≈1.4×10 -4 , respectively. It should be understood therefore that the error correction capability is prevented from decreasing so much even if the quantity of hardware elements is lowered by limiting the number of correctable erroneous symbols contained in the erasure symbols without establishing the assumption of the conventional methods that an error occurs in all erasure symbols. Based on this fact, the number of correctable erroneous symbols is limited in the present invention. The method for limiting the number will be described later. 
     In the description above, the random error is assumed as the code error. With the burst error assumed as the code error, if the burst length is short or if the burst error density (ratio of errors in the burst error) is low, the error correction capability is not greatly lowered even when the amount of hardware elements is decreased by limiting the number of correctable erroneous symbols contained in the erasure symbols like in the case of the random error. 
     The principle of the present invention has been described hereabove. 
     The following paragraphs describe the method for limiting the number of correctable erroneous symbols contained in the erasure symbols in accordance with the present invention. In this specification, an erasure correcting method in which the error correction is possible when the number of symbols which are contained in the erasure symbols l in number and which are found to be actually erroneous is at most m is referred to as m out of l erasure correcting method. 
     Assuming the magnitudes of the errors in the erasure symbols l in number to be represented as E a1 , E a2 , . . . , E al , when the erasure symbols l-m in number selected therefrom are correct, that is, E b1  =E b2  = . . . =E b (l-m) =0, the correspondence between the magnitudes of the errors, E c1 , E c2 , . . . , E cm  and the syndromes of the remaining erasure symbols m in number is expressed as follows. ##EQU15## 
     From expression (28), the magnitude of the error E c1 , E c2 , . . . , E cm  is obtained as, ##EQU16## 
     In order to limit the number of correctable erroneous symbols contained in the erasure symbols, it is necessary to detect the positions for which the magnitude of the error is 0, that is, the positions of the correct erasure symbols not having a symbol error. In the m out of l erasure correcting method, prior to the determination of the magnitude of the error from expression (29), the erasure symbol portions which are l-m in number and for which the magnitude of the error is 0 must be detected among the erasure symbols l in number. This operation can be performed according to the error position determination rule to be described in the following paragraphs. 
     [Error position determination rule] 
     The relationship, E b1  =E b2  = . . . =E b (l-m) =0, holds only when the following expression is satisfied. ##EQU17## where, E c1 , E c2 , . . . , E cm  are represented by expression (29). 
     The proof of expression (30) will be given herebelow. 
     When expression (4) is an orthogonal matrix equation, there exists only one kind of error pattern that satisfies the expression (4). Since determinant | | is a van der Monde determinal, its value cannot become 0. ##EQU18## 
     As a consequence, expression (4) is an orthogonal matrix equation and the error pattern can be uniquely determined. Under these conditions, the error pattern satisfies expression (30). This means that expression (4) is also satisfied, namely, expression (30) is uniquely determined. That is, the error position determination rule of expression (30) has been proved to be true. 
     As described before, when designing a circuit for solving such matrix equations as expressions (5), (29), and (30), the amount of hardware elements exponentially increases as the order of the matrix becomes greater. In the conventional l erasure correcting method which can correct the erasure symbol up to l in number, the l-order matrix equation of expression (5) must be solved. In contrast, the lower-order matrices, that is, the m-order matrix of expression (29) and the (l-m)-order matrix of expression (30) need only be solved in the m out of l erasure correcting method of the present invention, hence the amount of hardware elements can be greatly reduced because the orders of the matrices to be solved are lowered. 
     The present invention will be described in detail with reference to the 2 out of 3 and 1 out of 3 erasure correcting methods as examples. 
     (5) 2 out of 3 erasure correcting method 
     When the number of erasure symbols is at most two, the erasure correction is conducted in accordance with the two erasure correcting method described in conjunction with the prior art methods. 
     Assume that the erasure symbol positions are i, j, and k and the magnitudes of the errors associated therewith are Ei, Ej, and Ek when the number of erasure symbols is three, then expression (17) described in the explanation of the conventional 3 erasure correcting method holds between the syndromes and the magnitudes of the errors. If Ei is zero, Ej and Ek can be solved from expression (17) as follows. ##EQU19## 
     Similarly, if E j  is zero, E i  and E k  are solved as follows. ##EQU20## 
     Similarly, if E k  is zero, E i  and E j  are solved as follows. ##EQU21## 
     In accordance with the error portion determination rule, the case of E i  =0 holds only when the following expression is satisfied. ##EQU22## 
     Similarly, the cases of E j  =0 and E k  =0 hold only when the following expressions (40) and (41) are respectively satisfied. ##EQU23## 
     Consequently, when expression (30) holds, the errors obtained from expressions (33) and (34) are suppressed from the erasure symbol positions j and k, thereby performing the error correction. In the similar fashion, when expressions (40) and (41) hold, the errors obtained from expressions (35) and (36) and expressions (37) and (38), respectively, are eliminated to conduct the error correction. When none of expressions (39), (40), and (41) holds, the error is assumed to have occurred in all three erasure symbols and the error correction is accordingly carried out. 
     When the number of erasure symbols is at least four, the error detection is achieved. 
     FIG. 1 depicts a schematic block diagram of a system utilizing the 2 out of 3 erasure correcting method. 
     A syndrome arithmetic circuit 28 calculates syndromes S 1 , S 2 , and S 3  from the reproduced data inputted from an input terminal 26. A control circuit 29 selects an error detect/correct circuit based on an erasure symbol positional information inputted from an input terminal 27. It selects error detect/correct circuits 31, 32, 33, and 2 out of 3 erasure correct circuit 34 when the number of erasure symbols are 0, 1, 2, and 3, respectively. If the number of erasure symbols exceeds three, the control circuit 29 selects a flag generate circuit 36 so as to detect an error. An error correct circuit 35 suppresses the errors obtained by the error detect/correct circuits 31 to 33 and 2 out of 3 erasure correct circuit 34 from the reproduced data delayed by a delay circuit 30, thereby performing an error correction. The data of which the errors have been corrected is outputted from an output terminal 37. When an error is found in other than the erasure symbols in the error detect/correct circuits 31 to 33 and 2 out of 3 erasure correct circuit 34 or when the number of erasure symbols exceeds three, the flag generate circuit 36 generates an error flag to detect an error. The error flag is outputted from an output terminal 38 in this case. 
     FIG. 6 is a block diagram illustrating in detail the 2 out of 3 erasure correct circuit of FIG. 1. 
     Input terminals 39 and 40 are connected to the syndrome arithmetic circuit 28 and the control circuit 29, respectively. Circuits 41, 42, and 43 calculate error patterns from expressions (33) to (38) by use of the syndromes S 1  and S 2  inputted from the input terminal 39 and the erasure symbol positional information i, j, and k inputted from the input terminal 40. Circuits 44, 45, and 46 calculate expressions (39) to (41) by using the syndromes S 1 , S 2 , and S 3  and the erasure symbol positional information i, j, and k. If the associated expressions are satisfied, the relevant circuits output `1`; otherwise, they output `0`. Reference numeral 48 indicates an error pattern select circuit which selects a correct error pattern from the error patterns calculated by use of expressions (33) to (38) based on the output results from the circuits 44, 45, and 46. The error pattern thus selected is outputted from an output terminal 49. FIG. 7 is a table outlining a concrete example of pattern selection by the error pattern select circuit 48. 
     A NOR gate 47 outputs `1` when the error occurs in all three data items to which the erasure symbol is added, that is, when the circuit 44 to 46 each outputs `0`. The output of `1` is delivered as an error flag from an output terminal 50. 
     (6) 1 out of 3 erasure correcting method 
     When the number of erasure symbols is three, E k  is expressed as follows for E i  =E j  =0. 
     
         E.sub.k =S.sub.1                                           (42) 
    
     Similarly, when the number of erasure symbols is three, E i  is expressed as follows for E j  =E k  =0. 
     
         E.sub.i =S.sub.1                                           (43) 
    
     Similarly, when the erasure symbols is three, E j  is expressed as follows for E k  =E i  =0. 
     
         E.sub.j =S.sub.1                                           (44) 
    
     In accordance with the error position determination rule, E i  =E j  =0 is satisfied when the following expressions hold. ##EQU24## 
     Similarly, E j  =E k  =0 and E k  =E i  =0 hold when the following expressions (46) and (47) are respectively satisfied. ##EQU25## 
     When the number of erasure symbols exceeds three, the error is detected. 
     FIG. 8 is a schematic block diagram illustrating a system using the 1 out of 3 erasure correcting method. 
     A syndrome circuit 53 calculates the syndromes S 1 , S 2 , and S 3  based on the reproduced data inputted from an input terminal 51 and output the calculated results. A control circuit 54 selects an error detect/correct circuit according to the erasure symbol positional information inputted from an input terminal 52. It selects error detect/correct circuits 56, 57, 58, or 1 out of 3 erasure correct circuit 59 when the number of erasure symbols is 0, 1, 2, or 3, respectively. When the number of erasure symbols exceeds three, the control circuit 54 selects a flag generate circuit 61 so as to detect an error. An error correct circuit 60 eliminates the errors obtained by the error detect/correct circuits 56 to 58 and 1 out of 3 erasure correct circuit 59 from the reproduced data delayed by a delay circuit 55, thereby performing the error correction. The data of which the errors have been suppressed is outputted from an output terminal 62. When an error is found in the error detect/correct circuits 56 to 58 or 1 out of 3 erasure correct circuit 59, or when the number of erasure symbols exceeds three, the flag generate circuit 61 generates an error flag to perform the error detection. The error flag thus generated is outputted from an output terminal 63. 
     Description of the 1 out of 3 erasure correct circuit 59 will be dispensed with because the operation thereof is substantially the same as the 2 out of 3 erasure circuit 34 of FIG. 6. 
     When designing the hardware system of the erasure correcting method, the amount of hardware elements required is mainly determined in accordance with the operations to be conducted over the Galois field GF (q m ) for calculating the size of the error with respect to the erasure symbol positions. If the operations are implemented by use of ROM&#39;s, the required number of ROM&#39;s is determined by the number of variables used in the operations executed over the Galois field GF (q m ). The numbers of variables over the Galois field GF (q m ) is represented by α i , α j , and α j  S 1  in expression (14), for example. The operations over the Galois field GF (q m ) necessary for the 2, 3, and 2 out of 3 erasure correcting methods are implemented by expressions (14) to (16), (18) to (20), (33) to (41), and (42) to (47), respectively. The number of variables necessary for each method is obtained as follows. 
     2 erasure correcting method (prior art): 5 
     3 erasure correcting method (prior art): 18 
     2 out of 3 erasure correcting method (embodiment of FIG. 1): 11 
     1 out of 3 erasure correcting method (embodiment of FIG. 8): 6 
     Although the amount of hardware elements of the erasure correcting methods in these embodiments is not so small as that of the 2 erasure correcting method, it is greatly lowered as compared with that of the 3 erasure correcting method. 
     Assume that the values of probability of detecting failure are P 2 , P 3 , P 2-3 , and P 1-3  in the cases in which the 3 error detection is used in the operation for decoding the A code, and 2, 3, 2 out of 3, and 1 out of 3 erasure correcting methods are adopted in the operation for decoding the B code, respectively. The values of probability P 2 , P 3 , P 2-3 , and P 1-3  are represented by expression (22). They are expressed as follows by use of the probability P c  of detecting failure and the probability P E  of erasure symbols on which a symbol error is actually found (expression (24)). ##EQU26## 
     FIG. 9 is a graph showing the relationship between the bit error rate p and the probability of detecting failure P 2 , P 3 , P 2-3 , and P 1-3 . 
     In the similar manner, assume that the values of probability of detecting failure are P&#39; 2 , P&#39; 3 , P&#39; 2-3 , and P&#39; 1-3  in the cases in which the 1 error correction 2 error detection is implemented in the operation for decoding the A code, and the 2, 3, 2 out of 3, and 1 out of 3 erasure correcting methods are employed in the operation for decoding the B code, then the values of P&#39; 2 , P&#39; 3 , P&#39; 2-3 , and P&#39; 1-3  are expressed as follows. ##EQU27## 
     FIG. 10 is a graph illustrating the relationships between the bit error rate p and the values of probability of detecting failure P&#39; 2 , P&#39; 3 , P&#39; 2-3 , and P&#39; 1-3 . 
     It is clear from FIGS. 9-10 that the probability of detecting failure in the erasure correcting methods of the embodiments is substantially the same as that of the 3 erasure correcting method; moreover, it is greatly reduced as compared with that of the 2 erasure correcting method. In other words, the probability of detecting failure of the erasure correcting methods in accordance with the embodiments is substantially the same as that of the 3 erasure correcting method. 
     What has been shown and described is the evaluation of the erasure correcting methods assuming the random error as the symbol error. The similar evaluation can be made with respect to the burst error if the burst length is small or if the burst error density is low. 
     As described above, in accordance with the erasure correcting methods of the embodiments, the positions of erroneous symbols are determined among the erasure symbols and the number of correctable erroneous symbols is limited, thereby considerably reducing the size of the circuit required for the erasure correcting methods as compared with the conventional erasure correcting methods for which the data error is assumed to occur in all data of the erasure symbols. In addition, when the probability of erasure symbols on which the error is actually found becomes to be sufficiently small as is the case of the double-encoding code, the error correction capability of the erasure correcting methods used in the embodiments is hardly lowered as compared with the prior art methods. As a consequence, in accordance with the erasure correcting methods of the embodiments, a multi-erasure correcting method which develops a higher error correction capability can be implemented.