Source: http://www.patentgenius.com/patent/5361266.html
Timestamp: 2018-10-19 08:41:54
Document Index: 14007791

Matched Legal Cases: ['art 4', 'art 4', 'art 4', 'art 4', 'art 4', 'art 35', 'art 4', 'art 4', 'art 4', 'art4', 'art 4', 'art 35', 'art 4', 'art 4', 'art 4', 'art 35', 'art 4', 'art 4', 'art 4', 'art 4', 'art 4', 'art 4', 'art 35', 'art 4', 'art 4', 'art 4', 'art 35', 'art 4', 'art 4', 'art 4']

Error correction circuit - Patent # 5361266 - PatentGenius
5361266 Error correction circuit
Application: 08/138,037
Inventors: Kodama; Yukio (Itami, JP)
Murakami; Kazuo (Itami, JP)
Yoshida; Hideo (Kamakura, JP)
Field Of Search: 371/37.7; 371/37.4; 371/37.5; 371/37.1; 371/40.1
U.S Patent Documents: 5027357; 5068857; 5157669; 5282214
Other References: IBM Technical Disclosure Bulletin, vol. 22, No. 6, Nov. 1979, pp. 2365-2368, C. L. Chen, "High-Speed Cyclic Redundancy Checking Scheme forError Correcting Codes"..
Abstract: An error correction circuit is capable of performing correction errors in data at a high speed. A syndrome generator (2) calculates syndromes of RS codes based on partial data streams which are given from a data buffer (1). A received CRC generator (13) performs CRC coding on the partial data streams which are given from a data buffer (1) to thereby obtain received CRCs. An error pattern CRC generator (14) calculates error pattern CRCs of the respective partial data stream based on error patterns which are generated by an error pattern generation circuit (33). Under the control of a control circuit (40), the operations performed by the syndrome generator (2), the received CRC generator (13) and the error pattern CRC generator (14) are carried out at the same time. An improvement in the speed of error correction of the partial data streams performed by the error correction means directly leads to an improvement in the speed of the whole error correction.
(a) a data buffer for storing a data stream in which a plurality of RS codes for correcting an error in data and CRC codes for detecting an error in said data are interleaved, said data stream being formed by a first to an n-th partial datastreams each processed by RS coding, said data streams including CRC data preliminarily generated by CRC coding;
(d) error correction means for calculating error locations and error values of said partial data streams in accordance with said syndromes and for correcting errors in said partial data streams in accordance with said error locations and saiderror values;
(h) control means for controlling said means (b) to (g) so that the said first to said n-th partial data streams are serially processed and generation of a syndrome performed by said means (b) based on a j-th partial data stream(2.ltoreq.j.ltoreq.n), CRC coding on said j-th partial data stream performed by said means (c) and CRC coding on an error pattern of a (j-1)-th partial data stream performed by said means (e) are carried out simultaneously, and so that said means (g)performs verification after said means (e) has finished CRC coding on an error pattern of said n-th partial data stream.
(e-1-3) means for counting up an address count from an initial address count, which is a count indicating an address beginning location of said memory means (d-1), when said count control signal is said coincidence signal and for outputting saidaddress count to an address input part of said memory means (d-1) so that said memory means (d-1 ) outputs one of said error locations and the corresponding error value which are stored at an address which is designated by said address count; and
(e-1-4) selection means for outputting an error pattern signal which forms said error patterns, said corresponding error values being outputted as said error pattern signal when said count control signal is said coincidence signal, a zero signalindicating a logical value "0" being outputted as said error pattern signal when said count control signal is said no-coincidence signal.
4. The error correction circuit of claim 3, wherein said error pattern generation means (e-1) further comprises (e-1-5) means for controlling entry of said error patterns into said error pattern CRC coding means (e-2) in accordance with saidlocation count.
5. The error correction circuit of claim 4, wherein said means (e-1-1) is an up-counter in which said initial location count is set when an external reset signal is received therein and which counts up said location count in synchronism withsaid external clock signal.
6. The error correction circuit of claim 5, wherein said means (e-1-2) is a comparator which receives one of said error locations from said memory means (d-1) as a first input thereto and said location count as a second input thereto, saidcomparator comparing said first input with said second input and outputting the result as said count control signal.
7. The error correction circuit of claim 6, wherein said means (e-1-3) is an up-counter in which said initial address count is set when said external reset signal is received therein and which counts up said address count in synchronism withsaid coincidence signal of said count control signal.
8. The error correction circuit of claim 7, wherein said means (e-1-5) is a clock control circuit which receives said external clock signal and supplies a clock signal to said error pattern CRC coding means (e-2) in accordance with said externalclock signal, supply of said clock signal to said error pattern CRC coding means (e-2) being controlled in accordance with said location count.
(e-1-1) means for serially counting up a location count from an initial location count, said initial location count being a minimum location count which indicates a minimum error location of said error locations which are stored in said memorymeans (d-1);
(e-1-3) means for counting up an address count from an initial address count, which is a count indicating an address beginning location of said memory means (d-1), when said count control signal is said coincidence signal and for outputting saidaddress count to an address input part of said memory means (d-1) so that said memory means (d-1) outputs one of said error locations and the corresponding error value which are stored at an address which is designated by said address count; and
10. The error correction circuit of claim 9, wherein said means (e-1-1) is an up-counter in which said initial location count is set when a data load signal which indicates said minimum location count is received therein and which counts up saidlocation count in synchronism with an external clock signal.
(c) error correction means for calculating error locations and error values of said partial data streams in accordance with said syndromes and for correcting errors in said partial data streams in accordance with said error locations and saiderror values;
(d) pattern synthesizing means for generating error patterns of said partial data streams in accordance with said error locations and said error values and for adding said error patterns and said partial data streams which have not been correctedyet to output synthesized patterns;
(h) control means for controlling said means (b) to (g) so that the said first to said n-th partial data streams are serially processed and generation of a syndrome performed by said means (b) based on a j-th partial data stream(2.ltoreq.j.ltoreq.n) and adding up of said j-th partial data stream and said error pattern of said (j-1)-th partial data stream are carried out simultaneously, and so that said means (g) performs verification after said means (e) has finished CRC codingon the last one of said synthesized patterns.
14. The error correction circuit of claim 13, wherein said control means (h) controls such that one of said error patterns which is given to said adding means (d-2) at the same time that said adding means (d-2) receives said first partial datastream which has not been corrected yet is a zero pattern which is formed by a logical value "0" and that said partial data stream which is given to said adding means (d-2) at the same time that said adding means (d-2) receives said error pattern of saidn-th partial data stream is said zero pattern.
(d-1-3) means for counting up an address count from an initial count, which is a count indicating an address beginning location of said memory means (c-1), when said count control signal is said coincidence signal and for outputting said addresscount to an address input part of said memory means (c-1) so that said memory means (c-1) outputs one of said error locations and the corresponding error value which are stored at an address which is designated by said address count; and
(d-1-4) selection means for outputting an error pattern signal which forms said error patterns, said corresponding error value being outputted as said error pattern signal when said count control signal is said coincidence signal, a zero signalindicating a logical value "0" being outputted as said error pattern signal when said count control signal is said no-coincidence signal.
The continuous servo method and the sample servo method are admitted in the ISO standards as standard servo methods for optical discs. Of the two servo methods, the continuous servo method uses Reed Solomon codes (RS codes) as error correctioncodes. The Galois field is GF(2.sup.8) and the primitive polynomial p(X) is determined by:
On the other hand, the generator polynomial Gc(X) of the CRC codes is defined as: ##EQU2## where .alpha..sup.i =(.beta..sup.i).sup.88 and .beta. is defined as the clement of the primitive polynomial p(x).
FIG. 10 shows the standard 512 bytes per sector data format on an 90 mm optical disk for the continuous servo method which is admitted as a standard servo method in the ISO standards regarding optical discs. The CRC data C.sub.k(1.ltoreq.k.ltoreq.4), which are generated by coding the CRCs, are found in the following manner.
User data byte Dn=An (1.ltoreq.n.ltoreq.512);
Pad byte Fm=An (513.ltoreq.n.ltoreq.516);
CRC check byte C.sub.k =An (517.ltoreq.n.ltoreq.520); and
ECC check byte Es,t=An (521.ltoreq.n.ltoreq.600).
The ECC data Es,t (1.ltoreq.s.ltoreq.5, 1.ltoreq.t.ltoreq.16) which are generated by coding the Reed Solomon codes are found in the following manner.
Hence, the ECC data Es,t are found by: ##EQU6## FIG. 14 is a block diagram showing the structure of a CRC circuit (CRC generator). Indicated at reference character 7a is an .alpha..sup.40 multiplier, indicated at reference character 7b is an.alpha..sup.117 multiplier, indicated at reference character 7c is an .alpha..sup.228 multiplier, indicated at reference character 7d is an .alpha..sup.97 multiplier, indicated at reference characters 8a, 8b, 8c and 8d are registers, indicated atreference character 9 is an adder, indicated at reference character CLK is a clock, indicated at reference character 11 is a data input terminal, and indicated at reference character 12 is a data output terminal.
Though being obtainable by the calculation method above, the CRC data C.sub.k (1.ltoreq.k.ltoreq.4) may be calculated in the following manner.
Now, a method of calculating the CRC data C.sub.kj regarding the respective code words will be described with reference to FIG. 14. The code word number 0 (j=0) will be taken as an example. The information polynomial Ic0(X) for the code wordnumber 0, if expressed in accordance with the data format shown in FIG. 10, is:
The CRC circuit of FIG. 14 is in fact a divider. Hence, at the end of serial entry of the data from the data input terminal 11 as D1, D6, D11, . . . D511, F4 in accordance with the clock CLK, what is stored in the registers 8a, 8b, 8c and 8d isequal to {Ico(X) X.sup.4 mod Gc(X)}. Therefore, if ##EQU10## the registers 8a, 8b, 8c and 8d store C.sub.10, C.sub.20, C.sub.30 and C.sub.40, respectively.
FIG. 11 is a block diagram showing the structure of a conventional error correction circuit adopting the CRC method. In FIG. 11, a data buffer is indicated at reference character 1. The data buffer 1 stores received data in which an error to becorrected may be included and corrected data which arc obtained after error correction. The received data stored in the data buffer 1 are supplied to a syndrome generator 2 and a CRC generator 5 for every unit of code word number. As shown in FIG. 10,the received data are in the form of data streams in which a plurality of code streams having the CRCs as internal codes and the RS codes as external codes are interleaved. The data streams are classified into a plurality of partial data streams (thevertical data streams of FIG. 10) by the code word numbers. Each partial data stream is coded to include the RS codes.
In accordance with the syndrome calculated by the syndrome generator 2, the error correction part 4 corrects an error while storing an error location and an error value of the partial data stream in an error location and error value register 3which is disposed in the error correction part 4.
Upon receipt of the CRC of the corrected partial data stream, the CRC register 6 adds data stored therein and the CRC given thereto. The resulting data are then stored in the CRC register 6 to replace the preceding stored data. A total CRC ofthe whole corrected received data is eventually calculated and outputted by the CRC register 6.
FIGS. 12 and 13 are flow charts showing the error correction performed by the error correction circuit of FIG. 11. In the following, the error correction will be described with reference to FIGS. 12 and 13. The operation hereinafter describedis performed under the control of the control circuit 40.
If an error is detected, at a step S2, the error correction part 4 derives an error location polynomial and an error value polynomial for the partial data stream having the code word number 0 and calculate the locations and the values of theerror from the syndrome which was calculated at the step S1 in accordance with the error location polynomial and the error value polynomial. Next, at a step S3, the error locations and the error values of the partial data stream having the code wordnumber 0 thus found at the step S2 are stored in the error location and error value register 3.
Next, at a step S6, the error correction part 4 calculate error locations and error values of the partial data stream having the code word-number j, which is similar to the step S2. At step S7, the error locations and the error values are storedin the error location and error value register 3, similarly to the step S3.
At the step S8, the CRC generator 5 calculates the CRC of the corrected partial data stream which has a code word number (j-1) by the afore-mentioned method. At this stage, {Ic(X) X.sup.4 mod Gc(X)} is calculated as the CRC. At the step S9, theCRC register 6 adds the data stored therein (initially 0) and the CRC which was calculated at the step S8. The result is stored in the CRC register 6 as new data.
The sequence proceeds to a step S10 when the steps S7 and S9 are completed. At the step S10, in accordance with the error locations and the error values stored in the error location and error value register 3, the error correction part 4serially corrects the incorrect partial data stream having the code word number j stored in the data buffer 1.
At a step S11, whether the code word number count j coincides with the last code word number is decided. If the code word number count j does not coincide with the last code word number, the sequence returns to the step S5, the code word numbercount j is incremented, and the steps S5 to S9 are performed once again.
As a result, the data stored in the CRC register 6 coincide with the CRC data C.sub.k yielded by Eq. 11. At a step S14, the CRC verification part 35 compares the CRC data C.sub.k which were obtained at the step S13 with the CRC data C.sub.kwhich were generated by the error correction and stored in the data buffer 1 to thereby verify the mis-correction performed using the RS codes.
In the conventional error correction circuit having such a construction above, calculation of a syndrome of the RS codes of the received data having the code word number j (the step S5 of FIG. 12) cannot be performed concurrently with CRC codingof the corrected received data having the code word number (j-1) (the step S8 of FIG. 12). This is because the two steps require that the received data having different code word numbers are read from the one and only data buffer 1.
It then follows that it is error correction based on a syndrome of the received data having the code word number j performed by the error correction part 4 (the steps S6 and S7 of FIGS. 12 and 13) and CRC coding of the received data having thecode word number (j-1) performed by the CRC generator 5 (the steps S8 and S9 of FIGS. 12 and 13) that can be performed on a parallel basis.
Hence, no matter how fast the error correction part 4 is capable of performing error correction, the error correction sequence as a whole cannot be finished at an improved speed since CRC coding by the CRC generator 5, which is to be performedsimultaneously with the error correction, still remains slow.
An error correction circuit of a first aspect of the invention comprises (a) a data buffer for storing a data stream in which a plurality of RS codes for correcting: an error in data and CRC codes for detecting an error in the data areinterleaved, the data stream being formed by a first to an n-th partial data streams each processed by RS coding, the data streams including CRC data preliminary generated by CRC coding; (b) syndrome generation means for generating syndromes of RS codesin accordance with the partial data streams which have not been corrected yet; (c) first CRC coding means for performing CRC coding on the partial data streams which have not been corrected yet to thereby obtain first CRCs; (d) error correction means forcalculating error locations and error values of the partial data streams in accordance with the syndromes and for correcting errors in the partial data streams in accordance with the error locations and the error values; (e) second CRC coding means forgenerating error patterns of the partial data streams in accordance with the error locations and the error values, coding CRCs of the error patterns and for obtaining second CRCs; (f) adding means for receiving the first or the second CRCs andcalculating a total CRC which is a sum of the first or the second CRCs of the partial data streams; (g) CRC verification means for comparing the total CRC with the CRC data of the data stream and for verifying whether the means (d) has performed errorcorrection accurately; and (h) control means for controlling the means (b) to (g) so that the first to the n-th partial data streams are serially processed and generation of a syndrome performed by the means (b) based on a j-th partial data stream(2.ltoreq.j.ltoreq.n), CRC coding on the j-th partial data stream performed by the means (c) and CRC coding on an error pattern of a (j-1)-th partial data stream performed by the means (e) are carried out simultaneously, and so that the means (g)performs verification after the means (e) has finished CRC coding on an error pattern of the n-th partial data stream.
The error correction means (d) preferably comprises (d-1) memory means for storing each error location and the corresponding error value as a pair of information. The second CRC coding means (e) preferably comprises: (e-1) error patterngeneration means for generating the error patterns in accordance with the error locations and the error values which are stored in the memory means (d-1); and (e-2) error pattern CRC coding means for performing CRC coding on the error patterns andoutputting the second CRCs.
The memory means (d-1) preferably stores the error locations and the error values so that the error locations are stored at addresses in an ascending order of address. The error pattern generation means (e-1) preferably comprises: (e-1-1) meansfor serially counting up a location count from an initial location count which indicates the beginning of each partial data stream; (e-1-2) means for outputting a count control signal in accordance with an error location outputted from the memory means(d-1) and the location count, the count control signal consisting of a coincidence and a no-coincidence signals; (e-1-3) means for counting up an address count from an initial address count, which is a count indicating an address beginning location ofthe memory means (d-1), when the count control signal is the coincidence signal and for outputting the address count to an address input part of the memory means (d-1) so that the memory means (d-1) outputs one of the error locations and thecorresponding error value which are stored at an address which is designated by the address count; and (e-1-4) selection means for outputting an error pattern signal which forms the error patterns, the corresponding error values being outputted as theerror pattern signal when the count control signal is the coincidence signal, a zero signal indicating a logical value "0" being outputted as the error pattern signal when the count control signal is the no-coincidence signal.
According to a second aspect of the present invention, in the error correction circuit of the first aspect, the error pattern generation means (e-1) further comprises (e-1-5) means for controlling entry of the error patterns into the errorpattern CRC coding means (e-2) in accordance with the location count.
According to a third aspect of the present invention, in the error correction circuit of the first aspect, the means (e-1-1) may be an up-counter in which the initial location count is set when an external reset signal is received therein andwhich counts up the location count in synchronism with the external clock signal.
In the third aspect of the present invention, the means (e-1-2) may be a comparator which receives one of the error locations from the memory means (d-1) as a first input thereto and the location count from the means (e-1-1) as a second inputthereto, the comparator comparing the first input with the second input and outputting the result as the count control signal.
In the third aspect of the present invention, the means (e-1-3) may be an up-counter in which the initial address count is set when an external reset signal is received therein and which counts up the location count in synchronism with thecoincidence signal which is outputted as the count control signal.
In the third aspect of the present invention, the means (e-1-5) may be a clock control circuit which receives the external clock signal and supplies a clock signal to the error pattern CRC coding means (e-2) in accordance with the external clocksignal, supply of the clock signal to the error pattern CRC coding means (e-2) being controlled in accordance with the location count.
According to a fourth aspect of the present invention, in the error correction circuit of the second aspect, the memory means (d-1) stores the error locations and the error values at addresses in an ascending order of address, and the errorpattern generation means (e-1) comprises: (e-1-1) means for serially counting up a location count from an initial location count, the initial location count being a minimum location count which indicates a minimum error location of the error locationswhich are stored in the memory means (d-1); (e-1-2) means for outputting a count control signal in accordance with an error location outputted from the memory means (d-1) and the location count, the count control signal consisting of a coincidence and ano-coincidence signals; (e-1-3) means for counting up an address count from an initial address count, which is a count indicating an address beginning location of the memory means (d-1), when the count control signal is the coincidence signal and foroutputting the address count to an address input part of the memory means (d-1) so that the memory means (d-1) outputs one of the error locations and the corresponding error value which are stored at an address which is designated by the address count;and (e-1-4) selection means for outputting an error pattern signal which forms the error patterns, the corresponding error values being outputted as the error pattern signal when the count control signal is the coincidence signal, a zero signalindicating a logical value "0" being outputted as the error pattern signal when the count control signal is the no-coincidence signal.
In the fourth aspect of the present invention, the means (e-1-1) may be an up-counter in which the initial location count is set when a data load signal which indicates the minimum location count is received therein and which counts up thelocation count in synchronism with an external clock signal.
An error correction circuit according to a fifth aspect of the present invention comprises (a) a data buffer for storing a data stream in which a plurality of RS codes for correcting an error in data and CRC codes for detecting an error in thedata are interleaved, the data stream being formed by a first to an n-th partial data streams each processed by RS coding, the data streams including CRC data preliminarily generated by CRC coding; (b) syndrome generation means for generating syndromesof RS codes in accordance with the partial data streams which have not been corrected yet; (c) error correction means for calculating error locations and error values of the partial data streams in accordance with the syndromes and for correcting errorsin the partial data streams in accordance with the error locations and the error values; (d) pattern synthesizing means for generating error patterns of the partial data streams in accordance with the error locations and the error values and for addingthe error patterns and the partial data streams which have not been corrected yet to output synthesized patterns; (e) synthesized CRC coding means for performing CRC coding on the synthesized patterns to thereby obtain synthesized CRCs; (D means forserially receiving the synthesized CRCs and adding up the same to thereby obtain a total CRC; (g) CRC verification means for comparing the total CRC with the CRC data of the data stream and for verifying whether the means (d) has performed errorcorrection accurately; and (h) control means for controlling the means (b) to (g) so that the first to the n-th partial data streams are serially processed and generation of a syndrome performed by the means (b) based on a j-th partial data stream(2.ltoreq.j.ltoreq.n) and adding up of the j-th partial data stream and the error pattern of the (j-1)-th partial data stream are carried out simultaneously, and so that the means (g) performs verification after the means (c) has finished CRC coding onthe last one of the synthesized patterns.
According to a sixth aspect of the present invention, in the error correction circuit of the fifth aspect of the present invention, the error correction means (c) preferably comprises (c-1) memory means for storing each error location and thecorresponding error value as a pair of information. The pattern synthesizing means (d) preferably comprises: (d-1) error pattern generation means for generating the error patterns in accordance with the error locations and the error values which arestored in the memory means (c-1); and (d-2) adding means for receiving and adding up the error patterns and the partial data streams which have not been corrected yet to thereby output synthesized patterns.
In the fifth aspect of the present invention, the control means (h) preferably controls such that one of the error patterns which is given to the adding means (d-2) at the same time that the adding means (d-2) receives the first partial datastream which has not been corrected yet is a zero pattern which is formed by a logical value "0" and that the partial data stream which is given to the adding means (d-2) at the same time that the adding means (d-2) receives the error pattern of the n-thpartial data stream is the zero pattern.
According to a seventh aspect of the present invention, in the error correction circuit of the sixth aspect of the present invention, the memory means (c-1) preferably stores the error locations and the error values at addresses in an ascendingorder of address. The error pattern generation means (d-1) preferably comprises: (d-1-1) means liar counting up means for serially counting up a location count from an initial count which indicates the beginning of each partial data stream; (d-1-2)means for outputting a count control signal in accordance with an error location outputted from the memory means (c-1) and the location count, the count control signal consisting of a coincidence and a no-coincidence signals; (d-1-3) means for countingup an address count from an initial count, which is a count indicating an address beginning location of the memory means (c-1), when the count control signal is the coincidence signal and for outputting the address count to an address input part of thememory means (c-1) so that the memory means (c-1) outputs one of the error locations and the corresponding error value which are stored at an address which is designated by the address count; and (d-1-4) selection means for outputting an error patternsignal which forms the error patterns, the corresponding error value being outputted as the error pattern signal when the count control signal is the coincidence signal, a zero signal indicating a logical value "0" being outputted as the error patternsignal when the count control signal is the no-coincidence signal.
As heretofore described, the error correction circuit of a first aspect of the invention comprises: (b) syndrome generation means for generating syndromes of RS codes in accordance with an uncorrected partial data streams; (c) first CRC codingmeans for performing CRC coding on the partial data streams which have not been corrected yet to thereby obtain first CRCs; and (e) second CRC coding means for coding CRCs of the error patterns which are generated in accordance with the error locationsand the error values and for obtaining second CRCs.
The syndrome generation means (b) and the first CRC coding means (c) perform the operations based on the same uncorrected partial data stream. The second CRC coding means (e) is capable of performing the operation independently of the operationsof the syndrome generation means (b) and the first CRC coding means (c). Hence, under the control of the control means (h), generation of a syndrome performed by the syndrome generation means (b) based on a j-th partial data stream(2.ltoreq.j.ltoreq.n), CRC coding on the j-th partial data stream performed by the first CRC coding means (c) and CRC coding on an error pattern of a (j-1)-th partial data stream performed by the second CRC coding means (e) are carried out simultaneouslywithout causing any problem.
Hence, by performing these operations simultaneously, an improvement in the speed of error correction of the partial data streams performed by the error correction means (d) directly leads to an improvement in the speed of the whole errorcorrection.
The error correction circuit of a fifth aspect of the invention comprises: (b) syndrome generation means for generating syndromes of RS codes in accordance with an uncorrected partial data streams; and (d) pattern synthesizing means for addingthe error patterns and the uncorrected partial data streams to output synthesized patterns.
The data needed by the syndrome generation means (b), i.e., one input to be given to the pattern synthesizing means (d), are the same uncorrected partial data stream. The other input to be given to the pattern synthesizing means (d) are theerror pattern which can be transferred completely independently of the operation of the syndrome generation means (b). Hence, under the control of the control means (h), generation of a syndrome performed by the syndrome generation means (b) based on aj-th partial data stream (2.ltoreq.j.ltoreq.n) and adding up of the j-th partial data stream and the error pattern of the (j-1)-th partial data stream can be carried out simultaneously without any problem.
It then follows that by performing these operations simultaneously, an improvement in the speed of error correction of the partial data streams performed by the error correction means (c) directly leads to an improvement in the speed of the wholeerror correction.
From Eqs. 10 and 11, it is known that the CRC data C.sub.k is obtainable by calculating the CRC data C.sub.kj of the partial data stream having the code word number j and adding up the respective CRC data C.sub.kj.
Based on the concept heretofore described, the CRCs of the respective partial data streams of the uncorrected received data and the CRCs of error patterns of the respective partial data streams of the corrected received data are calculatedseparately to eventually calculate the CRC of the whole corrected received data. This is what is performed in the first preferred embodiment.
FIG. 1 is a block diagram showing the structure of the error correction circuit of the first preferred embodiment of the present invention. In FIG. 1, indicated at reference character 1 is a data buffer for storing received data which is assumedto include an error to be corrected and corrected data which are obtainable by error correction. As shown in FIG. 10, the received data are in the form of data streams in which a plurality of code streams having the CRCs as internal codes and the RScodes as external codes are interleaved. The data streams are classified into a plurality of partial data streams by the code word numbers. Each partial data stream is coded to include the RS codes.
The error correction part 4 corrects an error in the partial data stream while storing an error location and an error value of the partial data stream in the error location and error value register 3 which is disposed in the error correction part4.
An error pattern generation circuit 33 generates an error pattern based on the error location and the error value stored in the error location and error value register 3 (described later) and outputs the error pattern to an error pattern CRCgenerator 14.
The CRC register 15, equipped with addition function, adds the data which are stored therein, the received CRC and the error pattern CRC which are received thereto. The result is stored in the CRC register 15 as new data. Finally, the CRCregister 15 outputs a total CRC of the whole received data.
The syndrome generator 2, the error correction part 4, the received CRC generator 13, the error pattern CRC generator 14, the CRC register 15, the error pattern generation circuit 33 and the CRC verification part 35, receiving a control signalfrom the control circuit 40, operate under the control of the control circuit 40.
FIGS. 2 and 3 are flow charts showing error correction performed by the error correction circuit of the first preferred embodiment shown in FIG. 1. In the following, the error correction will be described with reference to FIGS. 2 and 3. Theoperation hereinafter described is performed under the control of the control circuit 40.
If an error is detected, at a step S23, the error correction part 4 calculates the location and the value of the error of the partial data stream having the code word number 0 from the syndrome which was calculated at the step S22. At a stepS24, the error location and the error value are stored in the error location and error value register 3.
At the step S26, the received CRC generator 13 calculates the received CRC of the partial data stream having the code word number 0 (j=0). Following this, at the step S27, the CRC register 15 adds the data stored therein and the received CRCwhich was calculated at the step S26. The result is then stored in the CRC register 15 as new data.
It is to be noted that the steps S22 and S26 are performed reading the partial data stream having the code word number 0 alone from the data buffer 1. Hence, even though the data buffer 1 is a single-port buffer, the steps S22 and S26 can beperformed under the control of the control circuit 40 in synchronism at the same time by reading the partial data stream having the code word number 0.
At a step S30, the error correction part 4 calculates an error location and an error value of the partial data stream which has the code word number j. At a step S31, the error location and the error value are stored in the error location anderror value register 3. Following this, at a step S32, the error correction part 4 serially corrects the incorrect partial data stream having the code word number j stored in the data buffer 1.
At the step S33, the received CRC generator 13 calculates the received CRC of the partial data stream having the code word number j. Simultaneously with this, at the step S34, the error pattern CRC generator 14 calculates the error pattern CRC ofthe error pattern of the partial data stream having the code word number j which was generated by the error pattern generation circuit 33.
The steps S29 and S33 are performed reading the partial data stream having the same code word number j from the data buffer 1. Hence, even if the data buffer 1 is a single-port buffer, the steps S29 and S33 can be performed at the same time insynchronism by reading the partial data stream having the code word number j under the control of the control circuit 40.
On the other hand, the step S34 is performed using the data which are stored in the error location and error value register 3 and therefore does not need the data which are stored in the data buffer 1. In other words, the step S34 is performedindependently of the steps S29 and S33. Hence, the step S34 can be performed on a parallel basis with the steps S29 and S33.
Upon completion of the steps S33 and S34, the sequence proceeds to a step S35 where the CRC register 15 adds the data stored therein, the received CRC and the error pattern CRC together. The result is then stored in the CRC register 15 as newdata.
On completion of the steps S29 to S32 and the steps S33 to S35, the sequence proceeds to a step S36. At the step S36, whether the code word number count j coincides with the last code word number is decided. If the code word number count j doesnot coincide with the last code word number, the sequence returns to the step S28 and the steps S28 to S35 are performed again on the code word number j.
At the step S37, the error pattern CRC generator 14 calculates the CRC of the error pattern which was generated by the error pattern generation circuit 33 with respect to the partial data stream which has the last code word number. Followingthis, at a step S38, the CRC register 15 adds the data stored therein and the error pattern CRC which was calculated at the step S37 and stores the result as new data. As a result, the data finally stored in the CRC register 15 coincides with the Rc(X)which is obtainable by Eq. 17.
Next, at a step S39, the CRC verification part 35 compares the data which were finally stored in the CRC register 15 with the CRC data which were corrected by the error correction part 4 and stored in the data buffer 1, thereby deciding whetherthe errors in the RS codes were accurately corrected by the error correction part 4.
In the error correction circuit according to the first preferred embodiment having such a construction described above, calculation of the syndrome of the RS codes of the uncorrected partial data stream having the code word number j (the step S29of FIG. 2) and CRC coding of the uncorrected partial data stream having the code word number j (the step S33 of FIG. 2) are performed reading the partial data stream having the same code word number from the one and only data buffer 1. Hence, the twosteps can be performed at the same time.
In addition, the error pattern generation circuit 33 and the error pattern CRC generator 14 perform CRC coding on the error pattern of the partial data stream having the code word number (j-1) (the step S34 of FIG. 2) in accordance with the datawhich are stored in the error location and error value register 3, which are completely independent of the data that are stored in the data buffer 1. Hence, this CRC coding can be performed simultaneously with the steps S29 and S33.
Further, in terms of timing, there is no possibility that the error location and error value register 3 will ever finish, at the step S31, storing the error location and the error value of the partial data stream which has the code word number jbefore the error pattern generation circuit 33 has finished generating the error pattern of the partial data stream that has the code word number (j-1) at the step S33.
The system clock CLK is supplied through a clock input terminal 21 to an up-counter 18 and a clock control circuit 20. A reset input terminal 23 for receiving a reset signal RESET is connected to the up-counter 18 and other up-counter 17. Astart terminal 22 for receiving a start signal START is connected to the up-counter 18 and the clock control circuit 20.
The clock control circuit 20 receives the count signal C18 from the up-counter 18. Further receiving the start signal START, the clock control circuit 20 provides the error pattern CRC generator 14 with a system clock SC which is in synchronismwith the system clock CLK. When a predetermined count is reached by the count signal C18 which is given from the up-counter 18, the clock control circuit 20 stops supplying the system clock SC to the error pattern CRC generator 14.
A comparator 19 has a first input which is coupled to an error location data bus 25 of the error location and error value register 3. At its second input, the comparator 19 receives the count signal C18 from the up-counter 18. In accordancewith whether the first input and the second input coincide with each other, the comparator 19 outputs a comparison result signal which is formed by a coincidence signal and a no-coincidence signal to the up-counter 17 and an input S of a selector 16.
In the error location and error value register 3, the error locations and the error values given thereto through an input terminal 27 are stored at certain addresses. The error location and error value register 3 provides the error location databus 25 and an error value data bus 26 with the error location and the error value, respectively, which are stored at an address which is designated by the count signal C17 which is received through the address bus 24.
An input A of the selector 16 is connected to the error value data bus 26 while an input B of the selector 16 is connected to a ground level ("0"). If the comparison result signal received at the input S from the comparator 19 is the coincidencesignal, the selector 16 outputs from its output C the signal which was received at the input A, i.e., the signal on the error value data bus 26, to the error pattern CRC generator 14. If the comparison result signal received at the input S is theno-coincidence signal, the selector 16 outputs from its output C the signal "0" which was received from the input B to the error pattern CRC generator 14.
The error pattern CRC generator 14, in synchronism with the system clock SC received from the clock control circuit 20, serially receives the signals from the output C of the selector 16 as error pattern signals which form the error patterns andcalculates the error pattern CRCs.
In the following, generation of the error patterns within the error pattern generation circuit 33 of the first structure will be described with reference to FIG. 4. As mentioned above, the error locations and the error values calculated by theerror correction circuit are stored in the error location and error value register 3 through the input terminal 27 under the control of the control circuit 40.
For example, information about the error locations, each expressed by a word-length-direction number (103-i) with respect to a vertical direction i of the data format of FIG. 10, and error values corresponding to the error locations are enteredand stored at addresses from a lower address in the register. Assuming that in FIG. 10, D6 (location=1 (103-102)), D16 (location=3 (103-100)) and D31 (location=6 (103-97)) of the partial data stream having the code word number 0 are errors having errorvalues A, B and C, respectively, the error location information and the error value information are stored as paired information as 1-A, 3-B and 6-C at addresses from a lower address in the register (in general, from address 0). The subsequentdescription assumes that "1-A", "3-B" and "6-C" are stored at addresses 0, 1 and 2, respectively, within the error location and error value register 3.
First, the reset signal RESET is supplied to the reset input terminal 23 to clear counts of the up-counters 17 and 18. In response to the start signal START received at the start input terminal 22, the up-counter 18 starts counting, concurrentlywith which the system clock SC is supplied to the error pattern CRC generator 14 from the clock control circuit 20.
At this stage, since the up-counter 17 has been just cleared, the count signal C17 having a value "0" is available from the up-counter 17 to the address bus 24. As mentioned above, "1-A" is stored at the address 0 of the error location and errorvalue register 3 as the error location information and the error value information. Hence, the error location and error value register 3 outputs "1" to the error location data bus 25 and "A" to the error value data bus 26.
As a result, the comparator 19 receives at its first input (which is connected to the error location data bus 25) "1" and at its second input (for receiving the count signal C18) "0," whereby the comparison result signal outputted from thecomparator 19 is the no-coincidence signal.
This causes that the up-counter 17 receives the no-coincidence signal and maintains its current count. The selector 16, receiving the no-coincidence signal, selects the input B, thereby allowing the error pattern of "0" to be outputted to theerror pattern CRC generator 14.
At this stage, since the up-counter 17 increments its count by one and outputs the count signal C17 having a value "2" to the address bus 24, the error location and error value register 3 outputs "3" to the error location data bus 25 and "B" tothe error value data bus 26.
At this stage, the up-counter 17 maintains its count and outputs the count signal C17 having a value "1" to the address bus 24, thereby "3" and "B" remaining available to the address location data bus 25 and the address value data bus 26,respectively.
The sequence as above is continued, during the course of which the selector 16 outputs the error pattern signals as 0, A, 0, B, 0, 0, C, . . . to the error pattern CRC generator 14, whereby the error pattern CRC generator 14 is provided with theerror pattern.
When the count indicated by the count signal C18 from the up-counter 18 reaches the code word length, the clock control circuit 20 cuts the supply of the system clock SC to the error pattern CRC generator 14 to thereby end entry of the errorpattern into the error pattern CRC generator 14.
Hence, output of the error patterns to the error pattern CRC generator 14 is finished when input of the system clock SC is finished. Almost immediately after having finished receiving the error pattern, the error pattern CRC generator 14 startscalculating the error pattern CRC, or Ej(X) X.sup.4 mod Gc(X), based on the error pattern.
FIG. 5 is a block diagram showing a second structure of the error pattern generation circuit 33. As shown in FIG. 5, likewise in the first structure, an up-counter 18' receives the system clock CLK through the clock input terminal 21, the startsignal START through the start terminal 22 and a load signal LD through a load input terminal 29.
In the structure illustrated in FIG. 6, the error correction part 4 comprises a minimum error location output bus (not shown) for outputting a minimum error location as the load signal LD. Since the second structure is otherwise the same as thefirst structure, similar description will not be given to avoid redundancy.
In the following, error pattern generation within the error pattern generation circuit 33 of the second structure will be described with reference to FIG. 6. As mentioned earlier, the error locations and the error values calculated by the errorcorrection circuit are stored in the error location and error value register 3 through the input terminal 27 under the control of the control circuit 40.
First, the reset signal RESET is given to the reset input terminal 23, in response to which a count registered by the up-counter 17 is cleared. At the same time, the load signal LD which designates a minimum error location "1" is inputtedthrough the load input terminal 29.
At this stage, the up-counter 17 stays cleared, and therefore, the count signal C17 from the up-counter 17 to the address bus 24 is "0." As described above, since "1-A" is stored at the address 0 of the error location and error value register 3as the error location information and the error value information, the error location and error value register 3 outputs "1" to the error location data bus 25 and "A" to the error value data bus 26.
Hence, "1" is given to the first input of the comparator 19 (which is connected to the error location data bus 25) and "1" is given to the second input of the comparator 19 (which receives the count signal C18). Receiving these inputs, thecomparator 19 outputs the coincidence signal as the comparison result signal.
The sequence that follows is similar to that within the error pattern generation circuit 33 having the first structure. That is, the selector 16 outputs the error pattern signals as A, 0, B, 0, 0, C, . . . to the error pattern CRC generator 14,whereby the error pattern CRC generator 14 is provided with the error pattern.
When the count indicated by the count signal C18 from the up-counter 18 reaches the code word length, the clock control circuit 20 stops supplying the system clock SC to the error pattern CRC generator 14 to thereby end entry of the error patterninto the error pattern CRC generator 14.
The second structure is different from the first structure in that "0" is not outputted to the error pattern CRC generator 14 until the minimum error location information is reached. Hence, the number of the system clocks with respect to whichthe error pattern CRCs are to be calculated is (code word length-minimum error location). Thus, depending on the locations of the errors, the number of the system clocks with respect to which the error pattern CRCs are to be calculated can be reduced,improving the efficiency of error pattern generation. The structure for making it possible to output the minimum error location as the load signal LD is not limited to provision of the minimum error location bus in the error correction part 4. Instead,the control circuit 40 may govern the structure so that the minimum error location information stored at the address 0 is automatically supplied to the up-counter 18 as the load signal LD.
That is, while the first preferred embodiment requires the received CRC and the error pattern CRC to be separately calculated, the second preferred embodiment demands that the received data and the error pattern are added to obtain synthesizeddata from which the CRC is calculated.
FIG. 6 is a block diagram showing the structure of the error correction circuit according to the second preferred embodiment of the present invention. In FIG. 6, indicated at reference character 1 is the data buffer for storing received datawhich are assumed to include error to be corrected and corrected data which are obtainable by error correction. As shown in FIG. 10, the received data are in the form of data streams in which a plurality of code streams having the CRCs as internal codesand the RS codes as external codes are interleaved. The data streams are classified into a plurality of partial data streams by the code word numbers. Each partial data stream is coded to include the RS codes.
Based on the syndrome generated by the syndrome generator 2, the error correction part 4 corrects an error in the partial data stream while storing an error location and an error value which are found in the received data in the error locationand error value register 3.
The error pattern generation circuit 33 generates the error pattern of the partial data stream based on the error location and the error value which are stored in the error location and error value register 3 and outputs the error pattern to theadder 34.
Receiving the synthesized pattern CRC, the CRC register 15 adds the data stored therein and the synthesized pattern CRC. The result is stored in the CRC register 15 as new data. Finally, the CRC register 15 outputs a total CRC of the receiveddata as a whole.
The control circuit 40 supplies a control signal to the syndrome generator 2, the error correction part 4, the received CRC generator 5, the CRC register 15, the error pattern generation circuit 33, the adder 34 and the CRC verification part 35,and controls the operations of the same.
The control circuit 40 requires that a zero pattern is outputted from the data buffer 1 to the adder 34 after the partial data stream having the last code word number has been outputted. The control circuit 40 also requires that the zero patternis outputted to the adder 34 when the error location and error value register 3 is initialized.
FIGS. 7 and 8 are flow charts showing the error correction performed by the error correction circuit of the second preferred embodiment shown in FIG. 6. In the following, the error correction, particularly differences from that of the firstpreferred embodiment, will be described with reference to FIGS. 7 and 8. The operation is performed under the control of the control circuit 40.
Prior to the error correction, data stored in the adding-function-equipped CRC register 15 are cleared to "0" and received data which may include an error to be corrected are written into the data buffer 1. The error location and error valueregister 3 is initialized.
If an error is found, at a step S43, the error correction part 4 calculates an error location and an error value of the partial data stream having the code word number 0 based on the syndrome which was generated at the step S42. At a step S44,the error location and the error value are stored in the error location and error value register 3.
At the step S46, the CRC generator 5 calculates the synthesized pattern CRC of the synthesized pattern which was generated by the adder 34. At this stage, the zero pattern is available from the error pattern generation circuit 33. This istherefore equal to a situation where the CRC generator 5 has calculated the received CRC of the uncorrected partial data stream which has the code word number 0 (j=0).
It is to be noted that the step S42 and the step S46, i.e., outputting of the partial data stream which has the code word number 0 from the data buffer 1 to the adder 34, are both performed reading the partial data stream having the same codeword number 0. Hence, even if the data buffer 1 is a single-port buffer, the steps S42 and S46 can be performed at the same time in synchronism by reading the partial data stream having the code word number 0 under the control of the control circuit 40.
At a step S50, the error correction part 4 calculates the error location and the error value of the partial data stream having the code word number j. At a step S51, the error location and the error value are stored in the error location anderror value register 3. Following this, based on the information stored in the error location and error value register 3, the error correction part 4 serially corrects the incorrect partial data stream having the code word number j stored in the databuffer 1 at a step S52.
At the step S53, the partial data stream having the code word number j is outputted from the data buffer 1 to the adder 34. At the same time, the error pattern generation circuit 33 outputs the error pattern of the partial data stream having thecode word number (j-1). The adder 34 adds the partial data stream having the code word number j and the error pattern of the partial data stream having the code word number (j-1) and outputs a synthesized pattern to the CRC generator 5.
The step S49 and the step S53, i.e., outputting of the partial data stream having the code word number j from the data buffer 1 to the adder 34, are both performed reading the partial data stream having the same code word number j. Hence, even ifthe data buffer 1 is a single-port buffer, the steps S49 and S53 can be performed at the same time in synchronism by reading the partial data stream having the code word number j under the control of the control circuit 40.
In addition, since outputting of the error pattern of the code word number (j-1) to the adder 34 at the step S53 is performed using the data which are stored in the error location and error value register independently of the data buffer 1, thestep S53 can be performed simultaneously with these steps.
After completion of the steps S49 to S52 and S53 to S55, whether the code word number count j coincides with the last code word number is decided. If the code word number count j does not coincide with the last code word number, the sequencereturns to the step S48 and the steps. S48 to S55 are performed again on the code word number j at a step S56.
At the step S57, CRC generator 5 calculates the synthesized pattern CRC of the synthesized pattern which was generated by the adder 34. At this stage, the zero pattern is available from the data buffer 1. This is equal to a situation where theCRC generator 5 has calculated the received CRC of the uncorrected partial data stream which has the last code word number.
Next at a step S58, the CRC register 15 adds the data stored therein and the synthesized pattern CRC (the received CRC) which was found at the step S57. The result is stored in the CRC register 15 as new data. As a result, the data eventuallystored in the CRC register 15 become equal to Rc(X) of Eq. 19. This means that the first term on the right hand side of Eq. 19 is calculated at the steps S46 to S47, the second term on the right hand side of Eq. 19 is calculated at the steps S53 toS55, and the third term on the right hand side of Eq. 19 is calculated at the steps S57 to S58.
At a step S59, the CRC verification part 35 compares the data which were stored at last in the CRC register 15 with the CRC data which were corrected by the error correction part 4 and stored in the data buffer 1 to thereby judge whether theerror correction part 4 has accurately corrected the errors in the RS codes.
Similarly to the first preferred embodiment, by performing the steps S50 to S52, i.e., error correction performed by the error correction part 4 based on the syndromes (FIGS. 7 and 8), at a high speed, the time required for the error correctionas a whole is reduced accordingly.
Further, in terms of timing, there is no possibility that the error location and error value register 3 will ever finish, at the step S51, storing the error location and the error value of the received data having the code word number j beforethe error pattern generation circuit 33 has finished generating the error pattern of the received data having the code word number (j-1) at the step S53.
FIG. 9 is a block diagram showing the structure of the error pattern generation circuit which is used in the second preferred embodiment. As shown in FIG. 9, the output C of the selector 16 is fed to the adder 34. A partial data stream having acertain code word number is also given to the adder 34 from the data buffer 1 through the received data bus 30. The adder 34 adds the partial data stream and the error pattern to generate a synthesized pattern which will be then outputted to the CRCgenerator 5.
Upon receipt of the start signal START, the clock control circuit 20, to which the count signal C18 from the up-counter 18 is supplied, outputs the system clock SC to the CRC generator 5 in synchronism with the system clock CLK. Supply of thesystem clock SC to the CRC generator 5 from the clock control circuit 20 is continued until a predetermined count is reached by a count expressed by the count signal C18 of the up-counter 18.
The error pattern generation circuit of the second preferred embodiment has an otherwise similar structure to that of the error pattern generation circuit 33 of the first preferred embodiment (FIG. 4), and therefore, similar description will beomitted.
In the error pattern generation circuit 33 having such a construction, likewise in the error pattern generation circuit 33 having the first structure of the first preferred embodiment, the selector 16 outputs the error pattern signals as 0, A, 0,B, 0, 0, C, . . . to the adder 34.
When the count indicated by the count signal C18 from the up-counter 18 reaches the code word length, the clock control circuit 20 stops supplying the system clock SC to the CRC generator 5 to thereby end entry of the synthesized pattern into theCRC generator 5.
Hence, output of the synthesized pattern to the CRC generator 5 is finished when input of the system dock SC is finished. Almost immediately after having finished receiving the synthesized pattern, the CRC generator 5 starts creating asynthesized pattern CRC.
Pressure limiting device for a hydraulic braking circuit of vehicle
Stepless speed change gear
Rotating and translating radar antenna drive system
Combined cue protector and tip scuffer