The present invention relates to encoding/decoding in a recording and reproducing apparatus using a disk type record medium such as a magnetic disk, and particularly to a technology of error correction.
BACKGROUND OF THE INVENTIONA conventional magnetic disk device has a construction as shown in Japanese Unexamined Patent Publication No. 345967/1992.FIG. 26 shows the construction in such conventional technology. Further, a record format of a conventional magnetic disk device is shown in FIGS.28(a)-28(d). FIG.28(a) shows an index pulse which is generated once per rotation of a disk, FIG.28(b) shows sector pulses which are generated at respective sectors, FIG.28(c) shows a record format, and FIG.28(d) shows a diagram magnifying the record format of each sector.
InFIG. 26, amagnetic disk device150 sends and receives data to and from ahost computer101 such as a personal computer or a workstation via aninterface bus102. Themagnetic disk device150 includes adisk109 of a disk type record medium, aninterface controller103 for controlling of sending and receiving data to and from thehost computer101 via theinterface bus102, aCPU140 for controlling the inside of the magnetic disk device, a HDC (hard disk controller)104 for controlling the access of data to the disk, so ECC (error correction code)circuit105 for adding an error correcting/detecting code, a ENDEC (encoder/decoder)106 for converting a code having a code form of NRZ into a run length limited code that is adapted to record on the magnetic disk and vice versa, a R/W (read/write)AMP107 that is an amplifier, ahead108 for reading or recording magnetic information, adata buffer111 for recording data, and aread control unit110 for controlling a reading operation.
InFIG. 26, in writing data on thedisk109, firstly, write data which has been inputted from thehost computer101 is stored in thedata buffer111 through theinterface bus102, theinterface controller103 and theHDC104. Next, an error correcting/detecting code is added to the data stored in thedata buffer11 by theECC circuit105 in theHDC104. The code having a code form of NRZ of the write data which has been inputted from thehost computer101, is converted into a run length limited code such as (1,7) code or (2,7) code that is adapted to be recorded on the magnetic disk at the ENDEC106. A voltage of theENDEC106 is amplified by the R/W AMP107, and the amplified data is written on themagnetic disk109 through thehead108. The run length limited code (RLL: Run Length Limited) restricts a continuation of “0” (called “run”) which are present between “1” and “1” in a data series. The first numeral in the parenthesis of (1,7) code or (2,7) code indicates a minimum value of the length of the run and the second numeral indicates the maximum value thereof. For instance, in the (1,7) code data, a “0” is always placed succeeding to “1” but there is no continuations of “0” by 8 or more. In this way, the recordable bit density is enhanced in comparison with the density of the magnetization reversal of the disk. The run length limited code signifies a record encoding wherein a data series is produced by conversion that is adapted to a characteristic of a recording and reproducing system.
Further, in reading data from the disk, the magnetic information written on thedisk109 is converted into an electric signal by thehead108, the voltage thereof is amplified by the R/W AMP107, the analog signal is converted into a digital signal by theread control unit110, and the run length limited code is converted into the NRZ code by theENDEC106. Next, error detection is performed by theECC circuit105, the error is corrected when it occurs in the read data, and the corrected data is stored in thedata buffer111. The data stored in thedata buffer111 is transferred to thehost computer101 through theHDC104, theinterface controller103 and theinterface bus102.
Recently, PRML (Partial Response Maximum Likelihood) has been used as a next generation signal processing technology, as described in Japanese Unexamined Patent Publication No. 190934/1987, “Viterbi Detection of Class IV Partial Response on a Magnetic Recording Channel”, IEEE Transaction on Communications, vol. Com-34, No. 5, May, 1986, pps. 454-461, “Signal Processing System PRML Supports a Large Scale Memory Device of Next Generation”, Nikkei Electronics, Jan. 17, 1994 (No. 599), pps. 71-97 and the like. The PRML system detects the most likely data series (bit series of the maximum likelihood) among all the occurrable signal series by using the PR (Partial Response) system which performs an effective transfer by allowing inter-code interference of data and by using a decoding method called Viterbi algorithm. There are a number of systems in the PR system depending on what kind of inter-code interference is provided. For instance, PR (1,0;−1) (=PR4) is a system of providing a characteristic of (1D) (1+D) to a recording and reproducing system. In using the PRML system; There are many cases wherein (0,4,4) GCR (Group Coded Recording), or 8-9 conversion code is employed as the run length limited code, as shown in Japanese Examined Patent Publication No. 6699/1991. The (0,4,4) GCR signifies that the run is not smaller than 0 and not larger than 4, and in which thelast numeral 4 signifies that the maximum value of the run is 4 in view of every other bit of a data series after encoding. Further, the 8-9 conversion Code is one of codes called block code, which signifies that an 8 bits data is converted into a 9 bits data. The block code converts m bits of an original data series into data having a bits (m≦n). It maps combinations suitable for the recording and reproducing characteristic in the a bits data from all the combinations of the m bits data.
With the larger capacity and higher density of a magnetic disk, the S/N is deteriorated, as described in “Design Acknowledging Medium Defect in Small Scale HDD Starts. Importance of Error Correction Using ECC Enhances”. Nikkei Electronics, Aug. 5, 1991 (No. 533), pps. 141-146. As a remedy for the deterioration of the S/N, a method has been used wherein redundancy bits of the error correcting code are increased and a strong error correcting code is added. As such an error correcting code, for instance, an error correcting code called BCH Code (Bose-Chaudbun-Hocquenghem Code) or Read-Solomon Code has been commercialized. In such an error correcting code, the redundancy bits should be increased in accordance with an increase in the number of error bits to be corrected.
FIG. 27 shows a system in block diagram form wherein an error correcting code is added using the PRML. InFIG. 27, theECC circuit105 in theHDC104 adds an error correcting/detecting code to the write data stored in thedata buffer111, and the ENDEC106 converts the code having a code form of NRZ of write data which has been inputted from thehost computer101, into the run length limited code that is suitable for recording on the magnetic disk. Further, a convolution encoding called pre-coding is carried out in thesignal processing circuit110 to perform the PRML, by which a regularity is provided to the data. Thereafter, in the R/W AMP107, the voltage of the pre-coded write data is amplified, by which the writing is performed on themagnetic disk109 by thehead108. In the PR system, since the inter-code interference is included in the reproduced waveform, it is necessary to remove the inter-code interference to reproduce the original data. Therefore, normally the operation of previously providing an inter-code interference which is inverse to that provided in the recording and reproducing system, is called pre-coding. For instance, an encoding which performs the pre-coding of PR (1.0,−1) (=PR4) to data of the NRZ (Non Return to Zero) system is called interleaved NRZI.
Further, inFIG. 27, in reading data, an electric signal which has been read from thehead108, is amplified by the R/W AMP107, an error is corrected by ML decoding using the regularity provided to the precoding in thesignal processing circuit110, and the signal is digitized and inputted to theENDEC106. The run length limited code is converted into the NRZ code data in theENDEC106, successively, an error detecting is performed in theECC circuit105, and the error is corrected in case wherein the error has occurred in the read data.
Reference is made toFIG. 29 for an explanation of a behavior of propagation of error occurrence in case wherein, for instance, the PRML ofClass4 is employed as the PRML, a 8-8 convening code is employed as a run length limited code. As shown inFIG. 29, in case wherein an error of 1 bit occurs in reading data that has been recorded on a disk medium, when the data is decoded by thesignal processing circuit110 and is inputted to theENDEC106, it becomes an error of 2 bits (on the 8-8 converting code shown inFIG. 29) due to the characteristic of PRML Further, when the 8-8 converting code is converted into the NRZ signal in theENDEC106, it is magnified into an error of 2 bytes (on the NRZ code shown inFIG. 29) since it is encoded in the block code. When the length of data is 512 bytes, redundant bits of 48 bits at a minimum is required to correct a continuous 2 bytes in case of the Read-Solomon code.
Further, in the conventional technology, as shown in FIG.28(d), the error correcting code (ECC) is added only to the write date, and no consideration is given to a case wherein an error occurs in a BYTESYNC region of a synchronization signal, or an identification portion including an area for storing an identification number that is identification information of each sector, or the like. At present, the BYTE-SYNC is provided with about 1 byte. However, when an error resistance function is to be provided to the NRZ signal in adopting the PRML or the 8-8 converting code, a BYTE-SYNC region of 5 bytes or more is necessary by adding redundant bits, which very much deteriorates a format efficiency (a ratio of a data capacity as compared with all the memory capacity). Similarly, at present, a CRC (error check code) of 2 bytes is added to the identification portion. However, to provide an error correction capability, a ECC of 4 bytes or more is necessary by adding redundant bits, which very much deteriorates the format efficiency.
Generally, in performing the error correction, the number of the redundant bits of the ECC is necessary to be two times or more of the number of bits to be corrected. The larger the size of error to be corrected, the more it is necessary to increase the redundant bits, which deteriorates the format efficiency.
As stated above, in the conventional technology, writing is performed by converting a data series into the run length limited code after providing the error correcting code thereto in encoding. Conversely, a decoding is performed by the PRML at thesignal processing circuit110 in decoding, and the error correction is performed by the error correcting code after inversely convening the run length limited code. Then, in occurrence of an error, an error occurs which has a regularity specific to a signal processing system that is carried out in thesignal processing circuit110, and the number of bits having the error is increased. Further, in converting it into the NRZ signal in theENDEC106, the size of error is further magnified. When the size of error to be corrected is magnified, it is necessary to increase redundant bits.
Further, as mentioned above, in the conventional technology, no consideration has been given to the occurrence of an error in the BYTESYNC region, the identification portion or the like, and it is desirable to provide the error correction capability to these regions.
SUMMARY OF THE INVENTIONIt is an object of the present invention for resolving the above problem to provide a recording and reproducing apparatus, a digital signal processing apparatus and a method of correcting an error capable of correcting an error with a fewer number of redundant bits.
It is another object of the present invention to provide a recording and reproducing apparatus and method capable of correcting an error with a fewer number of redundant bits while satisfying a regulation of record encoding.
A recording and reproducing apparatus for recording record or user data to be recorded on a record medium by converting the user data into a predetermined record code, according to the present invention is composed of a record encoding unit for converting the user data into encoded user data of the predetermined record code; an error correcting code generating unit for generating error correcting code data for correcting an error with respect to the encoded user data which has been converted by the record encoding unit; a converting unit for converting the error correcting code data which has been generated by the error correcting code generating unit into encoded correcting code data adapted to the record code; a writing unit for writing a write data including the encoded user data which has been converted by the record encoding unit and the encoded error correcting code data which has been converted by the converting unit such that the encoded error correcting code data is adapted to the record code; a reading unit for reading read data including the encoded user data and the encoded error correcting code data which have been written on the record medium; an inverse converting unit for inversely converting the encoded error correcting code data which has been read by the reading unit into the original error correcting code; an error correcting unit for correcting an error with respect to the encoded user data which has been read by the reading unit based on the original error correcting code data which has been inversely converted by the inverse converting unit with respect to the encoded user data; and a decoding unit for decoding the encoded user data having an error corrected by the error correcting unit to the original user data.
According to the recording and reproducing apparatus of the present invention as mentioned above, the record encoding unit converts the data to be recorded into the encoded user data of the record code in accordance with the characteristic of a recording and reproducing system. As the record code, there are (0,4,4) GCR of the run length limited code, (1,7) code, (2,7) code and the like.
The error correcting code generating unit generates the error correcting code data for correcting an error with respect to the encoded user data which bas been converted into the record code by the record coding unit. As the error correcting code, there are BCH code (Bose-Chaudhuri-Hocquenghem Code), Read-Solomon code and the like.
The converting unit converts the error correcting code data which has been generated by the error correcting code generating unit to adapt to the record code thereby generating the encoded error correcting code data. The conversion may be performed by encoding the error correcting code data by the above-mentioned record encoding unit. Or, in case of using (0,4,4) GCR (Group Coded Recording) as the run length limited code, “1” may be inserted at every 4 bits.
The writing unit writes the encoded user data which has been converted by the record encoding unit and the encoded error correcting code data which has been converted by the converting unit to adapt to the record code, on the record medium.
The reading unit reads the encoded user data and the encoded error correcting code data which have been written on the record medium.
The inverse converting unit inversely converts the encoded error correcting code data which has been read by the reading unit, from the record medium into the original error correcting code data. When the (0,4,4) GCR (Group Coded Recording) is used as the run length limited code, as mentioned above, the inserted code “1” may be deleted at every 4 bits.
The error correcting unit corrects an error of the encoded user data based on the original error correcting code data which has been inversely converted by the inverse converting means, with respect to the encoded user data that has been read by the reading unit.
The decoding unit decodes the encoded user data having an error corrected by the error correcting unit, to the original user data.
According to the recording and reproducing apparatus of this invention, the error can be corrected on the run length limited code by using the error correcting code data. Accordingly, the cumber of bits to be corrected can be restrained to a small value, and the number of redundant bits to be added can be restrained and also the format efficiency can be improved. Further, it is possible to perform a correction in consideration of the characteristic of error concurrence in the Partial Response Maximum Likelihood decoding which has been performed in the earlier stage of operation. Thus, efficient correction can be performed, the number of redundant bits to be added can be minimized and the format efficiency can be improved.
BRIEF DESCRIPTION OF THE DRAWINGSFIG. 1 is a system block diagram embodiment in accordance with the present invention.
FIGS.2(a) and2(b) are flowcharts in accordance with FIG.1.
FIGS.3(a),3(b),3(c) and3(d) are explanatory diagrams showing a record format of a magnetic disk in accordance with the invention.
FIGS.4(a),4(b) and4(c) are explanatory diagrams showing a record format of an identification portion and a data portion of the record format in accordance with the invention.
FIGS.5(a) and5(b) are explanatory diagrams of an 8-8 conversion code.
FIG. 6 is an explanatory diagram of an error occurrence pattern in an output of signal processing in accordance with the invention.
FIG. 7 is a block diagram of an ECC circuit in accordance with the invention.
FIG. 8 is a block diagram of a RLL encoding circuit and a BCH code generating circuit in accordance with the invention.
FIG. 9 illustrates timing charts of the RLL encoding circuit in accordance with the invention.
FIG. 10 is a block diagram of an on-the-fly error correcting circuit in accordance with the invention.
FIG. 11 is a detailed block diagram of the on-the-fly error correcting circuit in accordance with the invention.
FIG. 12 is a flowchart of the on-the-fly error correcting circuit in accordance with the invention.
FIG. 13 is an operational sequence block diagram of the on-the-fly error correcting circuit in accordance with the invention.
FIG. 14 is a more detailed operational sequence block diagram of the on-the-fly error correcting circuit in the example of this invention.
FIG. 15 illustrates timing charts of a RLL encoding circuit in accordance with the invention.
FIG. 16 is an explanatory diagram showing an error occurrence pattern example in accordance with the invention.
FIG. 17 illustrates a BYTESYNC pattern in accordance with the invention.
FIG. 18 is an autocorrelation diagram of the BYTESYNC pattern in accordance with the invention.
FIG. 19 is an explanatory diagram of the autocorrelation diagram.
FIG. 20 is a block diagram of an error allowable BYTESYNC circuit in accordance with the invention.
FIG. 21 is an explanatory diagram of the operation of the error allowable BYTESYNC circuit in accordance with the invention.
FIG. 22 is a flowchart of a writing operation of a format control unit in accordance with the invention.
FIG. 23 is a flowchart of a reading operation of the format control unit in accordance with the invention.
FIG. 24 is a block diagram of a ECC circuit in accordance with another embodiment of the invention.
FIG. 23 is a block diagram of an on-the-fly error correcting circuit in accordance with another embodiment of the invention.
FIG. 26 is a system block diagram of a publicly-known example.
FIG. 27 is a system block diagram of another conventional system.
FIG. 28 is a diagram showing a record format of a magnetic disk of the conventional system.
FIG. 29 is an explanatory diagram of an error propagation.
DESCRIPTION OF THE PREFERRED EMBODIMENTSReferring now to the drawings wherein like reference numerals are utilized to designate like parts, first an explanation will be given of a system of applying a recording and reproducing apparatus according to the present invention to a magnetic disk device as a first example. In this example, in a magnetic disk device using the run length limited code complying with the characteristic of a magnetic disk, an encoder/decoder of an error correcting code is disposed between an encoder/decoder of the run length limited code and a disk type record medium, and error correction using error correcting code data is performed on the run length limited code. To achieve this operation, redundant bits of the generated error correcting code data satisfies the run length limitation by periodically inserting “1” or “0” to the redundant bits of the error correcting code data which has been generated by an error correcting code generating circuit.
FIGS.2(a) and2(b) are flowcharts, wherein in writing data as shown in FIG.2(a), the operation performs encoding in which a write data is converted into a run length limited code (S2811). Next, the operation generates an error correcting code (ECC code) (S2812). Then, the operation inserts “1”, “0” to satisfy the run length limitation with respect to the error correcting code (S2813). The operation performs a pre-coding processing with respect to the write data and the error correcting code (S2814). Further, the operation writes data on a disk medium (S2815). In reading data as shown in FIG.2(b), firstly, the operation reads data from the disk medium (S2820). The operation performs a signal processing of decoding (S2821). The operation deletes “1”, “0” which have been inserted in writing, with respect to the error correcting code (S2822). The operation performs the error correction using the error correcting code (S2823). The operation performs decoding from the run length limited code to the NRZ signal (S2824). The operation then transfers the NRZ signal to the host computer.
Further, in this example, another error correcting code is added also to the identification portion to provide an error correction capability. An explanation will be given of a format of the magnetic disk used in the first example referring to FIGS.3(a)-3(d) which illustrate the format of the magnetic disk utilized. As shown in FIG.3(c), each track is divided into a plurality of sectors. Each sector is provided with an identification portion and a data portion. As shown in FIG.3(d), the identification portion is divided into regions of PROSYNC, BYTESYNC, C, H, S, F, ECC, and GAP. Further, the data portion is divided into regions of PROSYNC, BYTESYNC, DATA, ECC and GAP. PROSYNC is a region for recording a signal for synchronization, and BYTESYNC is a region for recording a signal for byte synchronization. Notation C signifies a cylinder number, H signifies a head number, S signifies a sector number, F signifies a flag showing whether the sector is effective or not, ECC signifies a region for recording an error correcting code and GAP signifies an ineffective region of the identification portion.
These DATA, ID and the like are written in a run length limited code called an 8-8 converting code. The 8-8 converting code is also called (0,4,4) GCR, which is a code that is constructed such that 0 bit or more and 4 bits or less “0” are always interposed between “1” and “1”, as shown in FIG.5(a). Further, as shown in FIG.5(b), the (0,4,4) GCR is a code which is constructed such that 4 bits or less of “0” are always inserted between “1” and “1” in the respective one or two data (an odd number series and an even number series) which is generated by dividing the original series of data bit by bit. As mentioned later, in this example, in order not to destruct the series of the odd number series and the even number series by inserting “l”, the portion of series of bits after inserting “1” are rearranged.
FIGS.4(a)-4(c) show the portions of ID, DATA and ECC in more detail. FIG.4(a) shows the identification portion, and FIGS.4(b) and4(c) show the DATA portion. Each of the identification portion and the DATA portion is divided into two bits series of an odd number series and an even number series and different error correcting codes are calculated for the respective ones of the odd number series and even number series. AS shown in FIG.4(b), each bits series of the data portion is divided into code languages of 486 bits (54 words) for each series, and an error correcting code of 23 or 22 bits is added to each code language. AS shown in FIG.4(c), each error correcting code (aE1 through aE18/bE1 through bE18) is arranged to each series similar to the data, and in this example, “1” is inserted at a rate of once per 4 bits to satisfy the run length limitation of the (0,4,4) GCR. Further, in this example, the order of data of the odd number series “a” and the even number series “b” is rearranged or switched, between before and after the insertion of “1”, so that each of the data series of the odd number series “a” and the even number series “b” is processed by the same interleaved series. Further, the bits series of the identification portion is divided into 23 bits and 22 bits. The error in the identification portion can be corrected by adding the error correcting codes of 45 bits as in the data portion.
In this example, a case is adopted as an example in which the generally well-known BCH code is employed as the error correcting code. The BCH code used here, employs a primitive polynomial of 9 degree x9+x4+1, and the generating function employs G(x)=(x9+x4+1) (X9+X6+X4+X3+1)=x18+x15+x12+x10+x8+x7+x6+x3+1. The calculation used in the error correction is a modal calculation of 2, and “+” signifies an exclusive OR. Hereinafter, an exclusive OR is shown by “+”. The BCH code is a code which can correct a random error of 2 bits or less , and which has α, α2, α3and α4as roots, by putting a root of x9+x4+1=0 as α. Using data as D(x), the code language C(x) is expressed as,
C(x)=D(x)·x18+D(x)modG(x)  (1),
which is constructed as,
C(α)=0, C(α2)=0, C(α3)=0, C(α4)=0  (2).
FIG. 1 is a block diagram arrangement of a system of the present invention operating in the above-described manner. InFIG. 1, numeral101 designates a host computer such as a personal computer, a workstation or the like, numeral102 designates an interface bus for connecting the host computer with the magnetic disk device of this example, and numeral601 designates the magnetic disk device. Themagnetic disk device601 is composed of aninterface controller103 for connecting theinterface bus102 with themagnetic disk device601, aCPU602 for controlling the total operation of themagnetic disk device601, and aHDC104 for generating a format of themagnetic disk device601, correcting an error and controlling the access to the disk, adisk109 for recording and storing data, ahead108 for writing data to thedisk109, and aAMP107 for converting a very weak voltage read from thedisk109 by thehead109 into a voltage suitable for signal processing and converting a write signal outputted from asignal processing circuit110 into a voltage suitable for writing by thehead108, asignal processing circuit110 for performing a PR processing ofclass4 on a write signal outputted from theHDC104 and outputting it to theAMP107, further performing a maximum likelihood decoding processing on an analog data outputted from theAMP107, and converting it into a digital data, and abuffer111 having a function of temporarily storing a data to be written on thedisk109 and a data road from the host computer.
As shown in FIG.5(b), thesignal processing circuit110 divides data into an even number series and an odd number series and respectively and independently perform the maximum likelihood decoding by an evennumber series decoder603 and an oddnumber series decoder604, independently, as shown in FIG.1. As a characteristic of the PRML processing ofclass4, an error pattern that is present on a signal line605 has a property as shown in FIG.6. The error bits are present in a pair of two bits in either the odd number series or the even number series. Further, the number of normal bits between the pair of two bits is 4 or less .
InFIG. 1, theHDC104 is provided with abuffer interface607 for controlling sending and receiving data to and from thebuffer111, ahost interface606 for controlling sending and receiving data to and from thehost computer101, an 8-8encoder609 for encoding data of 8 bits into data of 9 bits, an 8-8decoder608 for convening data of 9 bits into data of 8 bits, an on-the-flyerror correcting circuit613 for correcting an error in accordance with the error correcting code, anidentification checker612 for checking an identification that is an identifying information of each sector, in reading, or in writing, an error allowablebyte synchronization circuit611 for establishing a byte synchronization, aformat controlling circuit614 for performing the total control of theHDC104 and anECC generating circuit616 for generating the error correcting code.
FIG. 7 shows a block diagram of theECC generating circuit616 shown in FIG.1. InFIG. 7, the ECC generating circuit is provided with a parallel/serial convertingcircuit801 for converting parallel data series of 9 bits received from the 8-8encoding circuit609 inFIG. 1 into a series of serial data series of 1 bit, a BCHcode generating circuit802, aRLL encoding circuit803 for adapting to the run length limited code and amultiplexer804 for switching the error correcting code generated by the BCHcode generating circuit802 to the serial data from the parallel/serial convertingcircuit801 and vice versa, in order to add the error correcting code generated by the BCHcode generating circuit802 to the encoded dais. TheRLL encoding circuit803 is provided with a “1” insertingcircuit805 for inserting “1” at every 4 bits, and an “a” series, “b”series rearranging circuit806 for rearranging the order of data of the odd number series “a” and the even number series “b”. Themultiplexer804 switches the serial data (8-8 converted write data) from the parallel/serial convening circuit801 into the error correcting code and vice versa in order to generate the format as shown byFIG. 4, by which the error correcting code is added to the write data.
FIG. 8 shows a block diagram of the BCHcode generating circuit802 and theRLL encoding circuit803 which are shown in FIG.7. As shown inFIG. 8, the BCHcode generating circuit802 is provided with a shift register of 36 bits, 8 exclusive OR circuits and aswitch904. TheRLL encoding circuit803 is provided with latches of 2bits1001 and1002, amultiplexer circuit1003, a latchtiming control circuit1004, and acounter1005 for counting and circulating aclock1 from 1 through 5, and aflag1006, and is provided with functions of the “1” insertingcircuit805 and the “a” series, “b”series rearranging circuit806. The BCHcode generating circuit802 generates error correcting codes of 18 bits for the respective one of the “a” series and “b” series.
TheRILL encoding circuit803 may be replaced by a circuit so far as it converts the error correcting code to adapt to the run length limited code, and may use the 8-9encoder609 which converts data of 8 bits into data of 9 bits and encodes it.
The operation of theECC generating circuit616 will be described withreference10 FIG.8 andFIG. 9, whereinFIG. 9 illustrates timing charts of the RLL encoding circuit. InFIG. 8, when one block of serial data from the parallel/serial convertingcircuit801 is inputted from aninput data line901, the BCHcode generating circuit802 sets theswitch904 to the terminal a. The BCHcode generating circuit802 is a circuit wherein the input data is classified into the a series and the b series bit by bit, each of which is divided by the generating function of G(x)=18+x15+x12+X10+X8+X7+X6+X3+1 and leaves the remainder to the shift register when the inputting of data is finished, and the remainder is the error correcting code. When the inputting of data is finished, the BCHcode generating circuit802 sets theswitch904 to the terminal b, and outputs the content of the shift register in which the error correcting code of the odd number series is stored, to asignal line902 and outputs the content of the shift register in which the error correcting code of the even number series is stored, to a signal line900. Thereby, the error correcting code (aE1 through aE18/E1 through bE18 shown in FIG.4(c)) is generated, by which the BCH code can be generated.
At this instance, theRLL encoding circuit803 operates as shown in FIG.9. The error correcting code which is outputted via thesignal line902 and thesignal line903, is latched by thelatches1001 and1002 in accordance with the control signal of the latchtiming control circuit1004, and “1” is inserted when the count value of thecounter1005 is 1. Theflag1006 is used for rearranging the order of data of the odd number series “a” and the even number series “b”, and the flag is set/reset when the value of thecounter1005 becomes 1 from 5, such that theflag1006 is set when the error correcting code of the even number series “b” is outputted prior to the error correcting code of the odd number series “a” after inserting “1”. Themultiplexer circuit1003 selects “1” when the count value of thecounter1005 is 1, selects firstly the odd number series “a” which has been latched in thelatch1001, in case wherein theflag1006 is not set when the count value of thecounter1005 is 2 through 5, and next, selects the even number series “b” which has been latched in thelatch1002, thereby alternately outputting the odd number series and the even number series. When theflag1006 is set, themultiplexer circuit1003 selects the even number series “b” which has been latched in thelatch1002, and next, selects the odd number series “a” which has been latched in thelatch1001.
In this way, in the BCHcode generating circuit802 and theRLL encoding circuit803, the error correcting code is generated and “1” is inserted such that the odd number series and the even number series are alternately outputted so that the series are not destructed, and such that the run length limitation is maintained. The error correcting code is added to the write data by themultiplexer804 that is outputted to thePRML110 shown in FIG.1. Thereby, the error correcting code (aE1 through aE18/bE1 through bE18) of 18 bits is generated for each of the “a” series and “b” series, “1” of 9 bits are inserted then into, and a total of 45 bits are stored in the ECC portion. Further, the error correcting code is generated to each of data in the data portion and the identification portion. The error correcting code in the identification portion is generated and added to the identification portion in formatting the magnetic disk, and is recorded on the magnetic disk after the pre-coding.
The operation of the on-the-flyerror correcting circuit613 for correcting an error in decoding will be described with reference toFIGS. 10,11,12,114 and15.
FIG. 10 shows a block diagram of the on-the-flyerror correcting circuit613. As shown inFIG. 10, the on-the-flyerror correcting circuit613 is provided with a RLL redundantcode recovering circuit1101 for rearranging an even number series and an odd number series by deleting an inserted “1”, aFIFO1102, asyndrome calculating circuit1103 for calculating a state of an error which has occurred in a code language, an “0” detectingcircuit1104 for detecting “0”, and an errorposition calculating circuit1105 for detecting an error position based on a value which has been calculated by thesyndrome calculating circuit1103 Further, the RLL redundantcode recovering circuit1101 is provided with a “1” deleting circuit for deleting the inserted “1” and an “a” series, “b”series rearranging circuit2302 for rearranging the even number series and the odd number series.
InFIG. 10, the RLL redundantcode recovering circuit1001 deletes “1” which has been inserted at the “1” inserting circuit in encoding, and rearranges the even number series and the odd number series. Thereafter, thesyndrome calculating circuit1103 calculates a state of an error which bas occurred in the code language, and the errorposition calculating circuit1105 defects an error position based on a value which has been calculated by thesyndrome calculating circuit1103, as mentioned later. Thereafter, the error is corrected based on the data stored in theFIFO1102 and the error position which has been defected by the errorposition calculating circuit1105, and a serial data is converted into a parallel data that is outputted to the 8-8 decoder, in the serial/parallel convening circuit1131.
FIG. 11 is a circuit block diagram showing the on-the-flyerror correcting circuit613 in more detail.FIG. 12 is a flowchart showing the processing or a sequencer in the on-the-flyerror correcting circuit613.FIG. 13 shows an outline of an operational sequence of thesyndrome calculating circuit1103, the errorposition calculating circuit1105 and the “0” detectingcircuit1104 in the on-the-fly error correcting circuit.FIG. 14 shows an operational sequence of thesyndrome calculating circuit1103, the errorposition calculating circuit1105 and the “0” detectingcircuit1104 in the on-the-flyerror correcting circuit613. Further,FIG. 15 illustrates operation timing charts of the on-the-flyerror correcting circuit613.
InFIG. 11, the RLL redundantcode recovering circuit1101 is provided withlatches1120,1125,1121 and1122, acounter1 for counting the number of data, acounter2 for counting and circulating 1 through 10, and amultiplexer1123.
As shown inFIG. 15, in the RLL redundantcode recovering circuit1101 ofFIG. 11, during the inputting of data other than the error correcting code, the number of data is counted by thecounter1 and the input data is outputted as it is as the output of the multiplexer until 962th bit. Next, during the inputting of the error correcting code and the error correcting code including “1”, when the count value of thecounter2 is 1 or 5, “1” which is inputted at every 4 bits interval is deleted and the “a” series data and the “b” series data are rearranged such that the “a” series data is always prior to the “b” series data, by switching the output of themultiplexer1123. In this way, the inserted “1” is deleted, and the odd number series and the even number series are arranged in turn.
InFIG. 11, thesyndrome calculating circuit1103 performs a general syndrome calculation in the BCH code, as shown inFIG. 13 and 14. Defining code language as C(x),calculation units1106 through1110 respectively calculate S1=C(α), S2=C(α2), S3=C(α3), S4=C(α4), S5=C(α5). When there is no error in the code language C(x), S1=S2=S3=S4=0. A “0”detector1104 checks whether S1 through s4 are 0, and determines that no error occurs when S1=S2=S3=S4=0 and the data stored inFIFO1101 is outputted as it is to anoutput line115. When at least one of S1, S2, S3 and S4 is not 0, the errorposition calculating circuit1105 is operated to thereby perform the error correction.
When an error of 1 bit occurs in the code language C(x), the following relationship is established.
S1≠0, s1·S3+S22=0,
S33+S1·S42+S22·S5+S1·S3·S5=0
When an error of 2 bits occurs in the code language C(x), the following relationship is established.
S1·S3+S22≠0,
S33+S1·S42+S22·S5+S1·S3·S5=0
When an error of 3 bits occurs in the code language C(x), the following relationship is established.
S33+S1·S42+S22·S5+S1·S3·S5≠0
The errorposition calculating circuit1105 performs the correction by using the above property as shown inFIG. 13 and 14. The operational flow of the errorposition calculating circuit1105 is shown in FIG.12.
InFIGS. 13 and 14, the operation reads data to the syndrome calculating circuit1103 (S2411,12511). After reading data (S2512), the operation determines whether the syndromes S1, through S4 are 0 or not (S2513), through which the operation determines whether an error occurs or not (S2412). When an error occurs, the operation checks whether an error of 3 bits or more occurs or not (S2413, S2515), whether an error of 2 bits occurs or not (S2414,52516) and whether an error of 1 bit occurs or not (S2415, S2517), respectively. When an error of 3 bits or more occurs, the operation finishes the error correcting processing as the error can not be corrected (S2421, S2518). When an error of 2 bits occurs, the operation corrects a first 1 bit (S2420) and thereafter corrects the residual bit (S2416, S2524 through S2533). When an error of 1 bit occurs, the operation corrects the bit (S2416, S2519 through S2523).
The error correction method is performed in accordance with a flowchart shown in FIG.12. InFIG. 12, first, the operation calculates the syndrome of the “a” series (F=0, m=a series), and performs a similar calculation with respect to the “b” series (m=b series) (S1201). First, the operation sets a switch of a dummyerror adding circuit1130 to the side of “0”, and loads a value of the first stage of thesyndrome calculating circuits1106 through1110, to the first stage of syndrome circulators1111 through1115 (S1202). A “0”detector1116 detects “0” of S1. A “0”detector1117 detects “0” of S1·S2+S22. A “0”detector1118 detects “0” of S33+S1·S42+S22·S5+S1·S3·S5. When the “0”detectors1116,1117 and1118 detect 0, or when the “0”detector1118 detects 1, the operation determines that the error can not be corrected (S1203, S1204-1).
Assuming an example in which an error of 2 bits occurs in the data series of a as shown in FIG.16. That is, assuming that original data amand anat positions i1 and i2, are respectively added with an error value “1”, and become am+1 and an+1. In this case, the syndrome values S1, S2, S3, S4 and S5 are expressed as follows.
|  | S1 = ai1+ ai2 | 
|  | S2 = a2i1+ a2i2 | 
|  | S3 = a3i1+ a3i2 | 
|  | S4 = a4i1+ a4i2 | 
|  | S5 = a5i1+ a5i2 | 
|  |  | 
At this instance, the following relationship is established.
|  |  | 
|  | S1 · S3 + S22≠ 0 | 
|  | (the output of the “0” detector 1117) | 
|  | S33+ S1 · S42+ S22· S5 + S1 · S3 · S5 = 0 | 
|  | (the output of the “0” detector 1118) | 
|  |  | 
Accordingly, the above case is not that the “0”detector1117≠0, and the “0”detector1116=0 (S1204), and therefore, the operation defines that detector A=“0”detector1117, and detector B=“0”detector1118 and performs the checking thereafter (S1205).
The operation performs similarly with respect to the “b” series (S1208, S1209). In this case, there is no error in the “b” series.
Next, the operation shifts the shift register by 15 times (S1210). The operation processes the data of the “a” series once per every two times, and therefore, S1, through S5 are multiplied by α8, α16, α24, α32and α40, respectively, and the values of S′1, S′2, S′3, S′4, and S′5 which are inputted to the first stage of the syndrome circulators1111 through1115, are as follows.
|  | S′1 = ai1+8+ ai2+8 | 
|  | S′2 = a2(i1+8)+ a2(i2+8) | 
|  | S′3 = a3(i1+8)+ a3(i2+8) | 
|  | S′4 = a4(i1+8)+ a4(i2+8) | 
|  | S′5 = a5(i1+8)+ a5(i2+8) | 
|  |  | 
At this instance, the operation sets the switch to the side of “1” (S1210), and using S″1=S′1+1, S″2=S′2+1, S″3=S′3+1, S″4=S′4+1 and S″5=S′5+1, the operation checks the value of the detector A, S″22+S″1·S″3 and the value of the detector B, S″33+S″1·S″42+S″22·S″5+S″1·S″3·S″5 (S1212). At this moment, the operation controls the output of the FIFO such that a first bit a1 of the a series is outputted. In the above example, the value of the detector A, or the “0”defector1117, is not 0. Further, the value of the detector B, or the “0”detector1118, is not 0.
Further, the operation shifts the register by 2(503-i2) times (S1213, S1214, S1223, S1224 and S1225). Then, the values of S′1, S′2, S′3, S′4 and S′5 are as follows.
|  | S′1 = ai1+8+500−i2+ ai2+8+500−i2+ ai1+511−i2+ 1 | 
|  | S′2 = a2(i1+8+500−i2)+ a2(i2+8+500−i2)+ a2(i1+511−i2)+ 1 | 
|  | S′3 = a3(i1+8+500−i2)+ a3(i2+8+500−i2)+ a3(i1+511−i2)+ 1 | 
|  | S′4 = a4(i1+8+500−i2)+ a4(i2+8+500−i2)+ a4(i1+511−i2)+ 1 | 
|  | S′5 = a5(i1+8+500−i2)+ a5(i2+8+500−i2)+ a5(i1+511−i2)+ 1 | 
|  |  | 
At this moment, the operation sets the switch to the side of “1”, and using S″1=S′1+1, S″2=S′2+1, S″3=S′3+1, S″4=S′4+1, and S″=S′5+1, the checks the value of the detector A, S″22+S″1·S″3 and the value of the detector B. S″33+S″1·S″42+S″22·S″5+S″1·S″3·S″5 (S1212). At this instance, the value of the detector A, or the “0”detector1117 and the value of the detector B, or the “0”detector1118 are 0. Accordingly, the operation corrects the output of the FIFO am+1 to am+1+1=amand outputs it (S1216). Next, the operation controls themultiplexers1116 through1120, and stores S″1, S″2, S″3, S″4 and S″5 to the syndrome circulators1111 through1115 (S1217). Therefore, the following values are stored in the syndrome circulators1111 through1115.
|  | S″1 = ai1+511−i2 | 
|  | S″2 = a2(i1+511−i2) | 
|  | S″3 = a3(i1+511−i2) | 
|  | S″4 = a4(i1+511−i2) | 
|  | S″5 = a5(i1+511−i2) | 
|  |  | 
Since the correction of 1 bit is finished, and the residual error bit is 1 bit, the operation defines as the defector A=“0”detector1116 and the detector B=“0”detector1117 hereinafter and performs the checking similarly. When the operation shifts the register by 2(i2-il), the values of S′1, S′2, S′3, S′4 and S′5 are as follows.
|  | S′1 = ai1+511−i2−i1+i2= 1 | 
|  | S′2 = a2(i1+511−i2−i1+i2)= 1 | 
|  | S′3 = a3(i1+511−i2−i1+i2)= 1 | 
|  | S′4 = a4(i1+511−i2−i1+i2)= 1 | 
|  | S′5 = a5(i1+511−i2−i1+i2)= 1 | 
|  |  | 
At this instance, using S″1=S′1, S″2=S′2+1, S″3=S′3+1, S″4=S′4+1 and S″5=S′5+1, the operation checks the value of the detector A, or S″1 and the value of the detector B, or S″22+S″1·S″3. In this case, the value of the detector A or the value of the “0”detector1116 is 0 Further, the value of the detector B or the value of the “0”detector1117 is 0 (S1212). Accordingly, the operation corrects the output of the FIFO am+1 to an+1+1=an(S1216). Next, the operation controls themultiplexers1116 through1120 and stores S″1, S″2, S″3, S″4 and S″5 to the syndrome circulators1111 through1115 (S1217). Therefore, the following values are stored in the syndrome circulators1111 through1115.
|  | 
| S″1 = 0 | 
| S″2 = 0 | 
| S″3 = 0 | 
| S″4 = 0 | 
| S″5 = 0 | 
|  | 
The correction is finished at this point. The residual data is outputted to the buffer successively through the FIFO. In this way, the on-the-flyerror correcting circuit613 can correct an error of 2 bits or less with respect to one code language.
As stated above, the error correction can be performed in decoding after deleting the inserted “1”.
As shown inFIG. 1, the error allowable byte synchronization circuit which can allow an error to some degree, is provided at the prior stage of the on-the-fly error correcting circuit, so that the synchronization can be performed even when an error occurs at the BYTESYNC portion.
The BYTESYNC is a pattern of 2 words which has previously been calculated by simulation, as shown in FIG.17.FIG. 18 shows how many bits are in agreement in case wherein a pattern by which the pattern of the BYTESYNC is connected with the PROSYNC having a pattern of “1111 . . . ” therebefore and connected with the data thereafter, as shown inFIG. 19, is compared with this pattern of the BYTESYNC by successively shifting it bit by bit. As is apparent by referring toFIG. 18, when the pattern of the BYTESYNC is employed, the amount of agreement is 13 bits or less unless the shift amount is 0, or unless the both are totally in agreement. When the shift amount is 0, 14 bits are in agreement even when a 4 bits error occurs. When the shift amount is not 0, only 13 bits or less are in agreement when an error does not occur. Therefore, the pattern of the BYTESYNC can allow an error of 2 bits or less by regarding the synchronization as established, when bits of 14 or more, for instance, bits of 16 or more are in agreement. The error allowablebyte synchronization circuit611 ofFIG. 1 will be described with reference toFIGS. 20 and 21.FIG. 20 shows a block diagram of the error allowablebyte synchronization circuit611. The error allowablebyte synchronization circuit611 is composed of ashift register2101, acomparison pattern register2102 for memorizing the pattern of BYTESYNC, acomparator2103 for comparing the BYTESYNC pattern with data and agate2104.
InFIG. 20, the input data which has beta inputted from thesignal processing circuit110 shown inFIG. 1, is inputted to theshift register2101. Thecomparator2103 compares the value of theshift register2101 with the value of thecomparison pattern register2102 which stores the value shown inFIG. 17, and outputs it to the on-the-fly error correcting circuit such that the pattern of the BYTESYNC is detected when bits of 16 or more are in agreement. As stated above, this pattern is not in agreement therewith when the agreed bits are 13 or less, and it can be regarded as sufficiently in agreement when bits of 14 or more, or 16 or more in this example are in agreement. When this error allowable byte synchronization circuit is employed, the synchronization signal can be found in this way on the HDC after allowing an error of 2 bits at the data portion and at the leading portion of the identification portion.
According to this example, the synchronization can be detected by the pattern of the BYTESYNC before performing the 8-8 conversion, and further the synchronization can be performed even when an error of several bits occurs with respect to the pattern of the BYTESYNC.
The writing and reading operations of data to and from the magnetic disk in this example, will now be described with reference toFIGS. 1,3,4,22 and23.FIG. 22 shows a control flowchart for writing at theHDC104 whereasFIG. 23 shows a control flowchart for reading at theHDC104.
InFIG. 1, in writing data to thedisk109, the write data inputted from the host computer10] is stored in thedata buffer111 through theinterface bus102, theinterface controller103 and theHDC104. In theHDC104, the operation performs a control as shown in the flowchart of FIG.22. The control of theHDC104 can be performed at theformat controlling unit614. Further, the identification portion that is added with the error correcting code as shown inFIG. 4 is recorded on the magnetic disk, in formatting.
First, thesignal processing circuit110 reads the identification portion of the magnetic disk and sends the BYTESYNC pattern in the BYTESYNC region to theHDC104 when the synchronization of data is established in the PROSYNC region. InFIG. 22, in theHDC104, the error allowablebyte synchronization circuit611 performs a matching of the above-mentioned BYTESYNC pattern (S1512), and when the BYTESYNC pattern is found, reads the succeeding C (cylinder), H (head), S (sector), F (flag) and ECC (error correcting code), (S1S13). Next, the on-the-flyerror correcting circuit613 corrects errors of C, H, S, F and ECC (S1514), theidentification checking circuit612 checks whether the identification or a sector to be written and the read identification are in agreement or not (S1515), and the operation returns to the detecting of the BYTESYNC region of the identification portion again when they are not in agreement. When the identifications are in agreement, theformat control unit614 successively outputs the PROSYNC pattern and the BYTESYNC pattern and write them on the magnetic disk (S1516). Next, the operation reads1118 bytes of data that is stored in the buffer (S1517, S1518), and encodes data of 8 bits into data of 9 bits in the 8-8 encoding circuit609 (S1519). After performing the 8-8 encoding, in theECC generating circuit616, the operation adds the above-mentioned error correcting code of 45 bits to the data (S1520), and outputs the data added with the error correcting code to thePR processing unit615. In thePR processing unit615, the operation performs the preceding, and writes the data to thedisk109 through the AMP107 (S1521). The operation repeats this procedure by 4 times (S1522, S1523), and reads the final residual of 80 bytes (S1524, S1525, S1518). The operation performs the 8-8 encoding in the 8-8encoding circuit609 similarly with respect to the residual 80 bytes (S1519), and add the error correcting code of 45 bits at the ECC generating circuit616 (S1520), and output the data added with the error correcting code to thePR processing unit615. The operation performs the preceding at thePR processing unit615 and writes the data on thedisk109 through the AMP107 (S1521).
Through this operation, in the magnetic disk device of this example, the error correcting code is added after the 8-8 encoding, and the data can be written on the magnetic disk while satisfying the run length limitation.
In reading data from the disk, the magnetic information written on themagnetic disk109 is converted into an electric signal by thehead108, the voltage thereof is amplified by the R/W AMP107, and decoded by thePRML110. In thePRML110, the decoding is performed respectively at the evennumber series decoder603 for decoding the even number series and the oddnumber series decoder604 for decoding the odd number series.
Next, theHDC104 performs a control as shown in the flowchart of FIG.23. First, thesignal processing circuit110 reads the identification portion of the magnetic disk, and sends the BYTESYNC pattern of the BYTESYNC region to theHDC104 when the synchronization of data is established in the PROSYNC region. InFIG. 23, in theHDC104, the error allowablebyte synchronization circuit611 performs a matching of the above-mentioned BYTESYNC pattern (S1612), and when the BYTESYNC pattern is found, the circuit reads the succeeding C (cylinder), H (head), S (sector), F (flag) and ECC (error correcting code) (S1613). Next, the on-the-flyerror correcting circuit613 corrects an error of C, H, S, F and ECC (S1614), theidentification checking circuit612 checks whether the identification of a sector to be read and the read identification am in agreement or not (S1615), and the operation returns again to the detecting of the BYTESYNC region of the identification portion when they are not in agreement. When the identifications are in agreement, the operation performs the matching of the BYTESYNC pattern again at the error allowable byte synchronization circuit611 (S1616), and when the BYTESYNC pattern is found, the operation reads the data of 1017 bits and the error correcting code from the signal processing circuit110 (S1618). Next, in the on-the-flyerror correcting circuit613, the operation comas an error by using the error correcting code as mentioned above (S1619), the operation converts the data from 9 bits into 8 bits in the 8-8decoder608 alter the correcting, and stores the converted data in the buffer (S1620). The operation repeats this procedure by 4 times (S1621, S1622), and reads the final residue of 765 bits (S1622, S1623, S1624, S1618). The operation performs the error correction by using the error correcting code at the on-the-flyerror correcting circuit613 similarly with respect to the final residue of 765 bits S1619 ), converts the corrected data of 9 bits into the NRZ data of 8 bits at the 8-8decoder608, and stores the converted data in the buffer (S1620). Thereafter, the operation transfers the data stored in thedata buffer111 to thehost computer101 through theHDC104, theinterface controller103 and theinterface bus102, by which the reading operation is finished.
By this operation, in the magnetic disk device of this example, the operation can perform the on-the-fly error correction in a state in which the data is encoded by the 8-8 encoder, by which the data can be read from the magnetic disk. Accordingly, the number of bits to be corrected can be restrained to a small value, and the number of redundant bits to be added can be restrained to a small value, thereby making it possible to improve the formal efficiency. Further, by correcting an error using the error correcting code on the run length limited code, the correction in consideration of the error occurrence characteristic of the Partial Response Maximum Likelihood decoding that is performed in the earlier stage, can be performed, whereby an efficient correction can be performed, the number of redundant bits to be added can be rendered small, and the format efficiency can be improved.
In this example, the FIFO is used for temporarily storing data during the on-the-fly error correction. However, the 8-8 conversion code data may be stored in the buffer by providing an exclusive area therein. The following procedure may be performed. The data is convened into the NRZ data and stored in the buffer before the error correction, only a byte thereof to be corrected are again encoded by the 8-8 conversion when the error position is detected, and is convened into the NRZ data and stored in the buffer after the error correction. Thereby, the capacity of the buffer can be made smaller than that when the 8-8 conversion code data is stored therein, since the NRZ data is stored in the buffer. Further, the construction can be generated without the FIFO, by which the amount of hardware can be reduced.
Although the BCH code is employed as the error correcting code in the above example, other error codes such as a Read-Solomon code or the like may be employed.
An ECC generating circuit and an on-the-fly error correcting circuit when using a Read-Solomon code are shown inFIGS. 24 and 25. InFIG. 24, a Read-Solomoncode generating circuit2601 is provided instead of the BCHcode generating circuit802 shown in FIG.7. Also in this case, the functions of a “1” inserting circuit and an “a” series, “b” series rearranging circuit of aRLL coding circuit2602 can be made similar to those shown in FIG.7.
In decoding, as shown inFIG. 25, the on-the-fly error correcting circuit is composed of a RLL redundantcode recovering circuit2701 for deleting the inserted “1” and rearranging the even number series and the odd number series, theFIFO1102, a RS codesyndrome calculating circuit2703 for calculating a state of an error which has occurred in a code language, a “0” detectingcircuit2704 for detecting “0”, and a RS code error position and errorvalue calculating circuit2705 for detecting an error position and an error value based on a value which has been calculated by the RS codesyndrome calculating circuit2703. Also in this case, the error correction by the RS codesyndrome calculating circuit2703 and the RS code error position and errorvalue calculating circuit2705, is performed by using Read-Solomon code, and with respect to the functions of other blocks, the functions similar to those of the blocks shown inFIG. 10 may be provided.
Although the 8-8 conversion code is employed as the run length limited code in this example, the (1,7) code or the like may similarly be used.
According to this example, through the construction as stated above, as shown inFIG. 4, one portion of each of the “a” series and the “b” series can be corrected by providing the data portion with redundant bits of 5 bytes (45 bits), and 10 positions of error at maximum can be corrected by the redundant bits of 25 bytes in 5 steps. Further, one portion of each of the “a” series and the “b” series can be corrected and two portions of error at maximum can be corrected by providing the identification portion with redundant bits of 5 bytes (45 bits). In correcting on the NRZ signal, in the 3 interleaved construction wherein 1 symbol includes 8 bits in Read-Solomon code, the redundant bits of 6 bytes are necessary since the correction of continuous 3 bytes is necessary for correcting one portion, and addition of the redundant bytes of 60 bytes is necessary to correct error of 10 portions. Compared with the above case, this example can considerably delete the redundant bytes.
In accordance with the present invention, when providing the data portion with the error correcting capability of approximately 10 portions, the format efficiency can be increased by approximately 5%.
As indicated with respect to the conventional technology, when the PRML ofclass4 is used as the signal processing system and the 8-8 conversion code is used as the run length limited code, in correcting an error of 1 bit among data read from the disk medium, redundant bits of 48 bits (54 bits in can of converting it into the 8-9 conversion code) at minimum are necessary on the NRZ signal in can wherein the correction is performed by using Read-Solomon code on the NRZ code, and1 symbol includes 8 bits and under 3 interleaved construction. By contrast, in accordance with the present invention, in performing the correction on the 8-9 conversion code, in case wherein 1 symbol includes 13 bits, the correction can be performed by redundant bytes of 33 bits that is consisted of 26 redundant bits and 7 bits of “1” to be inserted. According to this example, the size of the redundant bits is thus about ⅔ of that in the conventional technology.
Further, according to this example, by using the above-mentioned BYTESYNC pattern, the BYTESYNC can be provided with the error resistance function and several bits of error can be allowed.
The number of bits of error occurrence in correcting and detecting can be reduced by providing the HDC with the 8-6 conversion code decoder. Then the error resistance function of the BYTESYNC the identification portion or the like can be achieved in a simple way and the number of retrials can be reduced.
As explained above, according to the present invention, more redundant bits can be deleted. Accordingly, the format efficiency can be promoted. Further, the correction can be performed in consideration of the occurrence tendency of an error which occurs in the signal processing or the like, and therefore, a very efficient correction can be performed
The number of bits of error occurrence in correcting and detecting can be reduced by providing the HDC with the 8-9 conversion encoder/decoder. Therefore, the error resistance function of the BYTESYNC, the identification portion or the like can be achieved in a simple way and the number of retrials can be reduced.
Further, the above examples may be applied to a digital processing device.
According to the present invention, an error can be corrected before propagation of the error which occurs in decoding the run length limited code to the NRZ data by correcting the error on the run length limited code. The number of bits to be corrected can be therefore reduced and the redundant bits coo be reduced.
Further, according to the present invention, the redundant bits of the error correcting code can be reduced in view of the correction capability and the run length limitation can be satisfied in a recording and reproducing device using the run length limited code and using a disk type record medium.
While we have shown and described several embodiments in accordance with the present invention, it is understood that the same is not limited thereto but is susceptible of numerous changes and modifications as known to those skilled in the art, and we therefore do not wish to be limited to the details shown and described herein but intend to cover all such changes and modifications as are encompassed by the scope of the appended claims.