JPH0454655A - Information recording/reproducing device - Google Patents
Information recording/reproducing deviceInfo
- Publication number
- JPH0454655A JPH0454655A JP2164254A JP16425490A JPH0454655A JP H0454655 A JPH0454655 A JP H0454655A JP 2164254 A JP2164254 A JP 2164254A JP 16425490 A JP16425490 A JP 16425490A JP H0454655 A JPH0454655 A JP H0454655A
- Authority
- JP
- Japan
- Prior art keywords
- odd
- data
- parity
- information data
- even parity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Detection And Correction Of Errors (AREA)
Abstract
Description
本発明は、情報データに積符号及び奇数/偶数パリティ
を付加して、情報データの誤り検出、訂正を行なう情報
記録再生装置に関するものである。The present invention relates to an information recording and reproducing apparatus that adds a product code and odd/even parity to information data to detect and correct errors in information data.
従来、積符号を用いた情報記録再生装置は、第6図(A
)に示すように、例えばC2方向のパリティを用いて情
報データの誤り検出および訂正を行なうように構成され
ている。一般に2つの線形符号C1,C2が与えられた
とき、これら2つの符号をそれぞれ(nl、に1)符号
、(n2゜k、)符号とする。これらの符号を第6図(
B)に示すように2次元的に配置して行方向にC1、列
方向に02で符号化すれば、線形(n r n * +
に1に2)符号が得られる。この符号が積符号と呼ばれ
るものである。Conventionally, an information recording/reproducing apparatus using a product code is shown in FIG.
), it is configured to detect and correct errors in information data using parity in the C2 direction, for example. Generally, when two linear codes C1 and C2 are given, these two codes are defined as (nl, 1) code and (n2°k,) code, respectively. These codes are shown in Figure 6 (
If it is arranged two-dimensionally as shown in B) and encoded with C1 in the row direction and 02 in the column direction, linear (n r n * +
1 to 2) sign is obtained. This code is called a product code.
しかしながら第6図(A)に示した上記従来例では、C
2方向の情報データと、C2方向の情報データに基づい
て作成され、付加されたC2パリティの比較のみしか行
なっていない。このため、例えばデータ再生時において
データマークを誤検知し、これにより情報データのバイ
トシフト等が発生すると、これを検知できないという欠
点があった。
本発明は上記従来例に鑑みてなされたもので、情報デー
タの記録時に、積符号によるパリティバイトに加え、こ
のデータの奇数/偶数パリティを計算して付加すること
により、再生時における情報データの誤り検知を正確に
行なうことができる情報記録再生装置を提供することを
目的とする。However, in the conventional example shown in FIG. 6(A), C
Only the comparison between the information data in the two directions and the C2 parity created and added based on the information data in the C2 direction is performed. For this reason, for example, if a data mark is erroneously detected during data reproduction and a byte shift of information data occurs as a result, there is a drawback that this cannot be detected. The present invention has been made in view of the above-mentioned conventional example, and when recording information data, in addition to the parity byte using the product code, the odd/even parity of this data is calculated and added. It is an object of the present invention to provide an information recording and reproducing device that can accurately detect errors.
上記目的を達成するために本発明の情報記録再生装置は
以下の様な構成からなる。即ち、情報データに基づいて
前記情報データの奇数/偶数パリティコードを算出する
奇数/偶数パリティ算出手段と、前記奇数/偶数パリテ
ィ算出手段により算出された奇数/偶数パリティコード
と、積符号によるパリティバイトを前記情報データに付
加して記録媒体に記録する記録手段と、前記記録媒体よ
り前記情報データを前記パリティバイトと前記奇数/偶
数パリティコードとともに読出す読出手段と、前記読出
手段により読出された情報データに基づいて前記奇数/
偶数パリティ算出手段により算出された奇数/偶数パリ
ティコードと、前記読出手段により読出された奇数/偶
数パリティコードとを比較する比較手段とを備える。In order to achieve the above object, the information recording/reproducing apparatus of the present invention has the following configuration. That is, an odd/even parity calculation means for calculating an odd/even parity code of the information data based on the information data, an odd/even parity code calculated by the odd/even parity calculation means, and a parity byte based on a product code. a recording means for adding the information data to the information data and recording it on a recording medium; a reading means for reading the information data together with the parity byte and the odd/even parity code from the recording medium; and information read by the reading means. Based on the data odd/
Comparing means is provided for comparing the odd/even parity code calculated by the even parity calculating means and the odd/even parity code read by the reading means.
以上の構成において、情報データに基づいて前記情報デ
ータの奇数/偶数パリティコードを算出し、その算出さ
れた奇数/偶数パリティコードと、積符号によるパリテ
ィバイトを情報データに付加して記録媒体に記録する。
この記録媒体より情報データを、そのパリティバイトと
奇数/偶数パリティコードとともに読出し、その読出さ
れた情報データに基づいて算出された奇数/偶数パリテ
ィコードと、読出された奇数/偶数パリティコードとを
比較して読出された情報データにエラーが発生している
かどうかをみる。In the above configuration, an odd/even parity code of the information data is calculated based on the information data, and the calculated odd/even parity code and a parity byte based on the product code are added to the information data and recorded on the recording medium. do. The information data is read from this recording medium along with its parity byte and odd/even parity code, and the odd/even parity code calculated based on the read information data is compared with the read odd/even parity code. Check whether an error has occurred in the information data read out.
以下、添付図面を参照して本発明の好適な実施例を詳細
に説明する。
〈記録データ例の説明 (第3図〜第5図)〉第3図は
ディスク記録時の情報データ、積符号パリティCI、C
2及びデータに対する奇数/偶数パリティデータの記録
方向を示した図である。
図において、最小の口で囲まれたブロックは1バイトを
表わしている。
第4図は、第3図に示した奇数/偶数パリティを実際に
記録した状態を示す図である。
ここでは、情報データ記録の時、その情報データに積符
号パリティC1、C2及び奇数/偶数パリティバイト5
1を付加した記録データの一例を示している。このパリ
ティバイト51の各パリティP1〜P7は、第3図のパ
リティP1〜P7に対応している。
このような、情報データの再生時において、データマー
クの誤検知等がなく、正常に再生できれば第4図のデー
タがそのまま読出されることになる。これにより、C2
方向の誤り検出も正常となり、かつ奇数/偶数パリティ
の値も記録された内容と、再生時にその再生されたデー
タに基づいて計算された内容とが一致する。これにより
、再生された情報データには誤りがないものとして再生
処理を終了する。
これに対して、第5図に示すように、データの再生時に
例えばバイトシフトが発生して、3バイトのバイトシフ
トが発生した場合であっても、C2方向の誤り検知では
、異常が検出されない。従って、このままでは誤った再
生情報データを採用してしまうことになる。
しかし、ここで再生した情報データの値をもとに奇数/
偶数パリティの値を計算し、この計算した奇数/偶数パ
リティ52とする。この奇数/偶数パリティ52と第4
図に示すように記録されている奇数/偶数パリティ51
とを比較することにより、奇数/偶数パリティコードの
不一致が検出される。こうして、積符号のC2方向及び
C1方向の誤り検出では検出できなかったバイトシフト
によるエラー検出を行なうことができる。
く情報記録再生装置の説明 (第1図)〉第1図は本発
明の一実施例の情報記録再生装置の概略構成を示すブロ
ック図である。
第1図において、101は、本実施例の情報記録再生装
置にデータを記録し、またはこの情報配録再生装置より
データを再生するように指示命令を出力するホストコン
ピュータである。102はホストコンピュータ101と
情報記録再生装置との間でインターフェースを制御する
ホスト・インターフェース部で、例えば5C8Iなどで
ある。
103は実施例の情報記録再生装置全体を制御するCP
U、104は、例えば第2図のフローチャートで示され
たCPU103の制御プログラムや各種データを記憶し
ているROM104.105はCPU103のワークエ
リアとして使用されるRAMである。
106はバッファメモリで、ホストコンピュータ101
より受信した受信データを一時的に保存している。10
7はディスク・コントローラで、ディスク・インターフ
ェース部111を介してディスク装置112を駆動して
いる。108はECC(エラー検出及び訂正部)で、再
生したデータの奇数/偶数パリティエラー或はCI、C
2パリティエラーを検出すると、そのエラーコードをも
とに再生データの訂正等を行っている。
109は奇数/偶数パリティ計算部で、情報データをデ
ィスク112に書込む時に、その情報データの奇数/偶
数パリティを計算し、その奇数/偶数パリティをその情
報データに付加して書込むとともに、ディスク112よ
りのデータの再生時、その読出したデータに基づいて奇
数/偶数パリティを計算している。110は奇数/偶数
パリティ比較部で、ディスク112よりのデータの再生
時、その再生されたデータに基づいて、奇数/偶数パリ
ティ計算部109で計算された奇数/偶数パリティコー
ドと、ディスク装置112に記憶されている奇数/偶数
パリティとを比較して、情報データの再生時にエラーが
発生したかどうかを調べる。111はディスク装置11
2とディスク・コントローラ107との間のインターフ
ェースを制御するディスク・インターフェース部で、例
えばESD Iなどである。112はディスクドライブ
装置。113はディスク・コントローラである。
次に、上記構成に基づく本実施例の情報記録再生装置に
おけるディスク112よりのデータ読出し動作を説明す
る。
ディスク装置112より読出されたデータは、ディスク
・インターフェース部111を通ってディスク・コント
ローラ107及びECCl0Bを経由しバッファメモリ
106に記憶される。この時、読込みデータにエラーが
あった場合、ECClO3により検知されて、訂正され
る。
しかしながら、例えば第5図に示したように、再生デー
タにバイトシフトが発生したときには、これを検知する
ことができない。そこで、奇数/偶数パリティ計算部1
09により、読出したデータの奇数/偶数パリティ値を
計算し、この計算された値とディスク装置1112より
再生した奇数/偶数パリティの値とを、奇数/偶数パリ
ティ比較部110で比較する。これにより、例えば第5
図に示すような、C1及びC2パリティでは検出できな
いバイトシフトが発生しても、これを検出して訂正する
ことができる。
く再生データのエラー検知動作(第2図)〉第2図は本
実施例の情報記録再生装置におけるディスク112より
の記録データの再生処理を示すフローチャートで、この
処理を実行する制御プログラムはROM104に記憶さ
れている。
まず、ステップS1でディスク装置112よりデータの
読込みが行なわれると、ステップS2で奇数/偶数パリ
ティ計算部109に指示して、その再生したデータに基
づく奇数/偶数パリティを算出する。そして、ステップ
S3では奇数/偶数パリティ計算部109で計算した奇
数/偶数パリティの値と、実際にディスク装置112か
ら読出した奇数/偶数パリティの値とを比較する。この
両者の奇数/偶数パリティ値が一致すればステップS4
に進み、ディスク112より読出した再生データをエラ
ーなしとして、ホストコンピュータ101に送出する。
一方、ステップS3でこれら両者の値が不一致の場合は
ステップS5に進み、例えばバイトシフト等のエラーが
発生したことを検知し、ステップS6で所定のエラー処
理を行なう。
なお、本実施例では、情報記録再生装置における情報デ
ータエラーの検出の場合で説明したが、本発明はこれに
限定されるものでなく、例えば通信装置、画像処理装置
等の情報転送時のエラー検出時においても、同様にして
情報データのエラー検出を行なうことができる。
以上説明したように本実施例によれば、情報データの記
録の際に、積符号のパリティを付加する以外に、データ
の奇数/偶数パリティ値を加えて記録する。こうしてこ
のデータの再生時に、その再生したデータに基づいて新
たに計算した奇数/偶数パリティの値と、再生した奇数
/偶数パリティの値とを比較することにより、通常のパ
リティチエツクでは検出できない、例えばバイトシフト
等によるエラーを検出することができる。Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. <Explanation of recorded data examples (Fig. 3 to Fig. 5)> Fig. 3 shows information data during disk recording, product code parity CI, C
FIG. 2 is a diagram showing recording directions of odd/even parity data for 2 and data. In the figure, the block surrounded by the smallest opening represents one byte. FIG. 4 is a diagram showing a state in which the odd/even parity shown in FIG. 3 is actually recorded. Here, when recording information data, the information data includes product code parity C1, C2 and odd/even parity bytes 5.
An example of recorded data with 1 added thereto is shown. Each of the parities P1 to P7 of this parity byte 51 corresponds to the parities P1 to P7 in FIG. When reproducing information data as described above, if there is no erroneous detection of data marks and the data can be reproduced normally, the data shown in FIG. 4 will be read out as is. As a result, C2
Error detection in the direction is also normal, and the recorded contents of the odd/even parity values match the contents calculated based on the reproduced data at the time of reproduction. Thereby, the reproduction process is terminated, assuming that the reproduced information data is free of errors. On the other hand, as shown in FIG. 5, even if a byte shift occurs during data reproduction and a byte shift of 3 bytes occurs, no abnormality is detected by error detection in the C2 direction. . Therefore, if this continues, incorrect reproduction information data will be adopted. However, based on the value of the information data played here, odd/
The even parity value is calculated and the calculated odd/even parity 52 is used. This odd/even parity 52 and the fourth
Odd/even parity 51 recorded as shown in the figure
A mismatch between odd and even parity codes is detected by comparing them. In this way, it is possible to perform error detection by byte shift, which could not be detected by error detection in the C2 direction and C1 direction of the product code. Description of Information Recording and Reproducing Apparatus (Fig. 1)> Fig. 1 is a block diagram showing a schematic configuration of an information recording and reproducing apparatus according to an embodiment of the present invention. In FIG. 1, 101 is a host computer that outputs an instruction to record data in the information recording/reproducing apparatus of this embodiment or to reproduce data from the information recording/reproducing apparatus. Reference numeral 102 denotes a host interface unit that controls the interface between the host computer 101 and the information recording/reproducing device, and is, for example, a 5C8I. 103 is a CP that controls the entire information recording and reproducing apparatus of the embodiment.
104 is a ROM 104 which stores a control program and various data for the CPU 103 shown in the flowchart of FIG. 2, for example. 105 is a RAM used as a work area for the CPU 103. 106 is a buffer memory, and the host computer 101
The received data is temporarily stored. 10
A disk controller 7 drives a disk device 112 via a disk interface section 111. 108 is an ECC (error detection and correction unit) that detects odd/even parity errors of reproduced data or CI, C
When a 2-parity error is detected, the reproduced data is corrected based on the error code. 109 is an odd/even parity calculation unit that calculates the odd/even parity of the information data when writing the information data to the disk 112, adds the odd/even parity to the information data, and writes the information data to the disk 112. When reproducing data from 112, odd/even parity is calculated based on the read data. Reference numeral 110 denotes an odd/even parity comparison unit which, when reproducing data from the disk 112, uses the odd/even parity code calculated by the odd/even parity calculation unit 109 and the disk device 112 based on the reproduced data. The stored odd/even parity is compared to check whether an error has occurred during reproduction of information data. 111 is the disk device 11
2 and the disk controller 107, such as the ESD I. 112 is a disk drive device. 113 is a disk controller. Next, the operation of reading data from the disk 112 in the information recording/reproducing apparatus of this embodiment based on the above configuration will be explained. Data read from the disk device 112 is stored in the buffer memory 106 via the disk controller 107 and ECCl0B through the disk interface section 111. At this time, if there is an error in the read data, it is detected by the ECClO3 and corrected. However, as shown in FIG. 5, for example, when a byte shift occurs in reproduced data, this cannot be detected. Therefore, odd/even parity calculation unit 1
09, the odd/even parity value of the read data is calculated, and the calculated value is compared with the odd/even parity value reproduced from the disk device 1112 in the odd/even parity comparison unit 110. This allows, for example, the fifth
Even if a byte shift occurs that cannot be detected with C1 and C2 parity as shown in the figure, it can be detected and corrected. Error detection operation of reproduced data (Fig. 2)> Fig. 2 is a flowchart showing the process of reproducing recorded data from the disk 112 in the information recording/reproducing apparatus of this embodiment. remembered. First, when data is read from the disk device 112 in step S1, the odd/even parity calculation unit 109 is instructed to calculate odd/even parity based on the reproduced data in step S2. Then, in step S3, the odd/even parity value calculated by the odd/even parity calculation unit 109 is compared with the odd/even parity value actually read from the disk device 112. If the odd/even parity values of both match, step S4
Then, the reproduced data read from the disk 112 is determined to be error-free and sent to the host computer 101. On the other hand, if these two values do not match in step S3, the process proceeds to step S5, in which it is detected that an error such as a byte shift has occurred, and predetermined error processing is performed in step S6. In this embodiment, the case of detecting an information data error in an information recording/reproducing device has been described, but the present invention is not limited to this, and for example, detecting an error during information transfer in a communication device, an image processing device, etc. At the time of detection, errors in information data can be detected in a similar manner. As described above, according to this embodiment, when recording information data, in addition to adding the parity of the product code, the odd/even parity values of the data are added and recorded. In this way, when this data is reproduced, by comparing the newly calculated odd/even parity value based on the reproduced data with the reproduced odd/even parity value, it is possible to detect, for example, Errors due to byte shifts, etc. can be detected.
以上説明したように本発明によれば、情報データの記録
時に、積符号によるパリティバイトに加え、このデータ
の奇数/偶数パリティを計算して付加することにより、
再生時における情報データの誤り検知を正確に行なうこ
とができる効果がある。As explained above, according to the present invention, when recording information data, in addition to the parity byte based on the product code, the odd/even parity of this data is calculated and added.
This has the effect of accurately detecting errors in information data during reproduction.
第1図は本実施例の情報記録、再生装置の概略構成を示
すブロック図、
第2図は本実施例の情報記録再生装置においてディスク
よりのデータ再生時におけるエラー検出処理を示すフロ
ーチャート、
第3図はディスク記録時の情報データ、積符号パリティ
C1、C2及びデータに対する奇数/偶数パリティデー
タの記録方向を示す図、第4図は本実施例の情報記録再
生装置での記録時のデータの一例を示す図、
第5図は本実施例の情報記録再生装置においてバイトシ
フトが発生して再生されたデータの一例を示す図、
第6図(A)は積符号を用いたC2方向のパリティエラ
ー検出の概略を示す図、そして第6図(B)は積符号を
説明するための図である。
図中、101・・・ホストコンピュータ、102・・・
ホスト・インターフェース部、103・・・CPU、1
04・・・ROM、105・・・RAM、106・・・
バッファメモリ、107・・・ディスクコントローラ、
108・・・ECC1109・・・奇数/偶数パリティ
計算部、11・・・奇数/偶数パリティ比較部、111
・・・ディスク・インターフェース部、112・・・デ
ィスク装置である。
特許出願人 キャノン株式会社
代理人 弁理士 大塚康徳(他1名)第2図
箆
図
(A)
(B)
第
図FIG. 1 is a block diagram showing a schematic configuration of the information recording and reproducing apparatus of this embodiment. FIG. 2 is a flowchart showing error detection processing when reproducing data from a disc in the information recording and reproducing apparatus of this embodiment. The figure shows the recording direction of information data, product code parities C1 and C2, and odd/even parity data for data when recording on a disc. FIG. 4 is an example of data when recording with the information recording and reproducing apparatus of this embodiment. FIG. 5 is a diagram showing an example of data reproduced with byte shift occurring in the information recording/reproducing apparatus of this embodiment. FIG. 6(A) is a parity error in the C2 direction using a product code. A diagram showing an outline of detection, and FIG. 6(B) is a diagram for explaining a product code. In the figure, 101... host computer, 102...
Host interface section, 103...CPU, 1
04...ROM, 105...RAM, 106...
Buffer memory, 107... disk controller,
108... ECC1109... Odd/even parity calculation unit, 11... Odd/even parity comparison unit, 111
. . . Disk interface section, 112 . . . Disk device. Patent applicant Canon Co., Ltd. agent Patent attorney Yasunori Otsuka (and 1 other person) Figure 2 (A) (B) Figure 2
Claims (1)
リテイコードを算出する奇数/偶数パリテイ算出手段と
、 前記奇数/偶数パリテイ算出手段により算出された奇数
/偶数パリテイコードと、積符号によるパリテイバイト
を前記情報データに付加して記録媒体に記録する記録手
段と、 前記記録媒体より前記情報データを前記パリテイバイト
と前記奇数/偶数パリテイコードとともに読出す読出手
段と、 前記読出手段により読出された情報データに基づいて前
記奇数/偶数パリテイ算出手段により算出された奇数/
偶数パリテイコードと、前記読出手段により読出された
奇数/偶数パリテイコードとを比較する比較手段と、 を備えることを特徴とする情報記録再生装置。[Scope of Claims] Odd/even parity calculation means for calculating odd/even parity codes of the information data based on information data; and odd/even parity codes calculated by the odd/even parity calculation means; , a recording means for adding a parity byte based on a product code to the information data and recording it on a recording medium; and a reading means for reading the information data together with the parity byte and the odd/even parity code from the recording medium. , the odd/even parity calculated by the odd/even parity calculation means based on the information data read by the reading means;
An information recording and reproducing apparatus comprising: a comparing means for comparing an even parity code and an odd/even parity code read by the reading means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2164254A JPH0454655A (en) | 1990-06-25 | 1990-06-25 | Information recording/reproducing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2164254A JPH0454655A (en) | 1990-06-25 | 1990-06-25 | Information recording/reproducing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0454655A true JPH0454655A (en) | 1992-02-21 |
Family
ID=15789605
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2164254A Pending JPH0454655A (en) | 1990-06-25 | 1990-06-25 | Information recording/reproducing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0454655A (en) |
-
1990
- 1990-06-25 JP JP2164254A patent/JPH0454655A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| AU604836B2 (en) | Method and apparatus for error correction | |
| US6912682B1 (en) | Signal processor for correcting and detecting errors | |
| JP3945602B2 (en) | Correction inspection method and correction inspection apparatus | |
| CN100412979C (en) | Error code correction method and device | |
| JP2722647B2 (en) | Magnetic tape controller | |
| JPH0454655A (en) | Information recording/reproducing device | |
| JP2605270B2 (en) | Error correction and checking device | |
| JP2544109B2 (en) | Information recording device | |
| JPH0535416A (en) | File controller | |
| JPH0468618A (en) | Information recording and reproducing device | |
| US7213190B2 (en) | Data processing apparatus and method | |
| JPS62236185A (en) | Error correction method | |
| JP3219318B2 (en) | Error signal correction device | |
| JPS63298777A (en) | Correction system for error detection | |
| JP2539429B2 (en) | Error correction method for read data | |
| JPH05174505A (en) | Data protective system | |
| JPH04177676A (en) | Information recorder/reproducer | |
| JP3242682B2 (en) | Error correction processor | |
| JP3358701B2 (en) | Verify method and verify device | |
| JPS62200577A (en) | error correction method | |
| JP2607366B2 (en) | Disk device | |
| JPS63237264A (en) | Information recording system | |
| JPH11213575A (en) | Data playback device and data recording / playback device | |
| JP3199010B2 (en) | Magnetic disk drive and data error correction method therefor | |
| JPH0562372A (en) | Optical disk device |