JPH0668730B2 - Error correction circuit - Google Patents

Error correction circuit

Info

Publication number
JPH0668730B2
JPH0668730B2 JP62267559A JP26755987A JPH0668730B2 JP H0668730 B2 JPH0668730 B2 JP H0668730B2 JP 62267559 A JP62267559 A JP 62267559A JP 26755987 A JP26755987 A JP 26755987A JP H0668730 B2 JPH0668730 B2 JP H0668730B2
Authority
JP
Japan
Prior art keywords
data
error correction
circuit
error
correction pattern
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.)
Expired - Fee Related
Application number
JP62267559A
Other languages
Japanese (ja)
Other versions
JPH01109440A (en
Inventor
正樹 藤木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62267559A priority Critical patent/JPH0668730B2/en
Publication of JPH01109440A publication Critical patent/JPH01109440A/en
Publication of JPH0668730B2 publication Critical patent/JPH0668730B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Description

【発明の詳細な説明】 〔概要〕 ECC付きのデータ形式によるデータ記録ブロックのエラ
ー修正回路に関し, エラー発生時に余分な時間を付加せず即時的にエラーを
修正できるエラー修正回路を提供することを目的とし, 排他的論理和演算機能をもつエラー修正パターン生成回
路と, エラー修正パターン生成回路から出力されるエラー修正
パターンがそれぞれ並列に印加される第1のエラー修正
パターン保持回路と,第2のエラー修正パターン保持回
路と,データ記録ブロック内の複数のデータ部およびEC
Cデータ部が逐次入力されるごとに,第1のエラー修正
パターン保持回路と第2のエラー修正パターン保持回路
とを交互にロード,ストアするように切り替え制御でき
る切り替え回路とをそなえ,切り替え回路は,今回入力
されたデータ部にエラーが検出されたとき,第1と第2
のエラー修正パターン保持回路に対してロード,ストア
の切り替え制御を行なわず,現在の制御状態を保持し
て,次に入力されるデータ部の処理を行なわせるよう構
成する。
The present invention relates to an error correction circuit for a data recording block in a data format with ECC, and an error correction circuit capable of immediately correcting an error without adding extra time when an error occurs. As an object, an error correction pattern generation circuit having an exclusive OR operation function, a first error correction pattern holding circuit to which the error correction patterns output from the error correction pattern generation circuit are respectively applied in parallel, and a second error correction pattern holding circuit Error correction pattern holding circuit, multiple data parts in data recording block and EC
Each time the C data section is sequentially input, the switching circuit has a switching circuit capable of switching control so that the first error correction pattern holding circuit and the second error correction pattern holding circuit are alternately loaded and stored. , When an error is detected in the data part input this time, the first and second
The error correction pattern holding circuit of No. 1 is configured to hold the current control state without performing load / store switching control and process the next input data portion.

〔産業上の利用分野〕[Industrial application field]

本発明は,ECC(Error Correcting Code)付きデータ形式
で,記憶装置に記録されあるいは伝送されたデータ記録
ブロックのためのエラー修正回路に関する。
The present invention relates to an error correction circuit for a data recording block recorded or transmitted in a storage device in a data format with an ECC (Error Correcting Code).

通常の磁気テープ装置では,第8図に示されるような記
録様式(フォーマット)のデータ記録ブロックを用い
て,記録あるいは再生が行なわれる。図示のデータ記録
ブロックでは,各データ部のチェックキャラクタCCがデ
ータ部の最後にあり,各データ部のデータが正しいかど
うかが,チェックキャラクタを読み取るまで,あるいは
途中で異常フォーマット,たとえばデータの途中でのギ
ャップを検出するまで,判別することができない。
In a normal magnetic tape device, recording or reproducing is performed using a data recording block having a recording format (format) as shown in FIG. In the illustrated data recording block, the check character CC of each data part is at the end of the data part, and whether or not the data of each data part is correct depends on whether the check character is read or during the abnormal format, for example, in the middle of the data. It cannot be distinguished until the gap is detected.

またECCデータ部が,データ記録ブロックの最後にまと
めて記録してあり,データ記録ブロックの最後まで読み
込んではじめて,エラー修正パターンの生成が完成す
る。
Further, the ECC data part is collectively recorded at the end of the data recording block, and the generation of the error correction pattern is completed only after reading to the end of the data recording block.

本発明は,特にこのようなフォーマットのデータ記録ブ
ロックを読み取り,自動的にエラー修正を行なうエラー
修正回路に関するものである。
The present invention particularly relates to an error correction circuit which reads a data recording block of such a format and automatically corrects an error.

一般に磁気テープは,ピンホール等の媒体の欠陥やゴミ
の付着,あるいはフレキシブル媒体であることによるヘ
ッド面の接触不良等により,データがドロップアウト
し,データ部の途中でデータが出力されなくなることが
しばしば発生する。
Generally, in magnetic tape, data may drop out due to defective media such as pinholes, adhesion of dust, or poor contact on the head surface due to being a flexible medium, and data may not be output in the middle of the data section. It often happens.

また磁気テープ装置はシーケンシャル・アクセス・デバ
イスであるため,一方向に連続的に処理する制御を行な
わないと処理時間が増大することになる。
Further, since the magnetic tape device is a sequential access device, the processing time will increase unless the control for continuously processing in one direction is performed.

特にリール・ツウ・リール(Reel to Reel)制御方式を行
なっているストリーミング磁気テープ装置では,テープ
を停止させてもとのブロックを再度読み取るためには,
再位置付け動作により,多大な時間を要するため,即時
的なエラー修正が必要とされる。
In particular, in a streaming magnetic tape device that uses a reel-to-reel (Reel to Reel) control system, in order to read the original block again when the tape is stopped,
Since the repositioning operation takes a lot of time, immediate error correction is required.

〔従来の技術〕[Conventional technology]

第9図に,従来のエラー修正回路の1例を示す。 FIG. 9 shows an example of a conventional error correction circuit.

図において,91は磁気テープ装置などのデータ読み取り
回路,92はデータ記録ブロック内の4個のデータ部A,
B,C,Dを格納するためのデータメモリ,93はデータ
メモリ92をデータ“00”でクリアするためのデータ“0
0”生成回路,94はエラー修正回路,95はEORで構成され
るエラー修正パターン生成回路,96はエラー修正パター
ン保持回路,97はEORで構成される正常データ生成回路
である。
In the figure, 91 is a data reading circuit such as a magnetic tape device, 92 is four data parts A in a data recording block,
Data memory for storing B, C, D, 93 is data "0" for clearing the data memory 92 with data "00"
0 is a generation circuit, 94 is an error correction circuit, 95 is an error correction pattern generation circuit composed of EOR, 96 is an error correction pattern holding circuit, and 97 is a normal data generation circuit composed of EOR.

このエラー修正回路の原理は,ABCD=ECCか
ら,A,B,C,Dのいずれか,たとえばCがエラーの
とき(C′で表わす),正常値Cは,(ABC′
DECC)C′により求められることを利用するもの
である。
The principle of this error correction circuit is that from ABCD = ECC, when any of A, B, C and D, for example C is an error (denoted by C '), the normal value C is (ABC'
It utilizes what is required by DECC) C '.

データ読み取り回路91は,データ記録ブロック90を,デ
ータ部A,B,C,D,ECCデータ部の順で読み取り,
データメモリ92およびエラー修正回路94のエラー修正パ
ターン生成回路95に入力する。
The data reading circuit 91 reads the data recording block 90 in the order of the data part A, B, C, D, and ECC data part,
The data is input to the data memory 92 and the error correction pattern generation circuit 95 of the error correction circuit 94.

エラー修正パターン生成回路95は,入力された読み取り
データとエラー修正パターン保持回路96の内容との間で
データ部単位にEOR(排他的論理和)演算し,結果をエ
ラー修正パターン保持回路96に入力し,その内容を更新
する。この動作を繰り返して,すなわち,A←AB←
(AB)C←(ABC)D←…を実行してエ
ラー修正パターン保持回路96には,データ記録ブロック
90の各データ部およびECCデータ部間でEOR累算した結果
のエラー修正パターンデータが生成される。
The error correction pattern generation circuit 95 performs an EOR (exclusive OR) operation for each data section between the input read data and the content of the error correction pattern holding circuit 96, and inputs the result to the error correction pattern holding circuit 96. And update its contents. This operation is repeated, that is, A ← AB ←
By executing (AB) C ← (ABC) D ← ..., the data recording block is stored in the error correction pattern holding circuit 96.
Error correction pattern data is generated as a result of EOR accumulation between each of the 90 data parts and the ECC data part.

正常データ生成回路97は,データメモリ92にデータ部
A,B,C,Dの全てが格納された後,データ部のいず
れか(この場合はデータ部Cとする)にエラーか検出さ
れていたときには,そのエラーデータ(C′)と,エラ
ー修正パターン保持回路96内に生成されているエラー修
正パターンABCDECCとのEOR演算を行ない,
正常データ(C)を生成してデータメモリ92のエラーデ
ータを更新する。この動作は、次式で表わされる。
In the normal data generation circuit 97, after all of the data parts A, B, C and D are stored in the data memory 92, it is detected that one of the data parts (in this case, the data part C) has an error. Occasionally, the error data (C ′) and the error correction pattern ABCDECC generated in the error correction pattern holding circuit 96 are subjected to EOR operation,
The normal data (C) is generated and the error data in the data memory 92 is updated. This operation is expressed by the following equation.

(ABC′DECC)C′→C 〔発明が解決しようとする問題点〕 第9図に示された従来のエラー修正回路では,エラー修
正パターン保持回路が一系統しか設けられていないた
め,エラーデータ部分のデータも含めてエラー修正パタ
ーンを生成し,エラー修正パターンとエラーデータをEO
R演算してエラー修正を行なっている。
(ABC'DECC) C '→ C [Problems to be solved by the invention] In the conventional error correction circuit shown in FIG. 9, since only one system of error correction pattern holding circuit is provided, error data Generate an error correction pattern including the partial data, and set the error correction pattern and error data to EO.
R calculation is performed to correct the error.

ここで,データ部の途中データが欠落した場合,エラー
データ部はデータ総数が足りなくなり,エラー修正パタ
ーンは,足りないデータ分をデータ“00”で置き換えた
ものと同一結果になる。このため読み取ったエラーデー
タの不足データ長に相当するデータは“00”でなくて
はならない。
Here, when the data in the middle of the data part is lost, the total number of data in the error data part is insufficient, and the error correction pattern has the same result as when the insufficient data is replaced with the data “00”. Therefore, the data corresponding to the insufficient data length of the read error data must be "00".

しかしこのようにデータが欠落すると,データメモリ92
に残されている以前に入力されたデータが顕在化し,デ
ータ不定となるため,ECCデータによるエラー修正が誤
りとなる。
However, when data is lost in this way, the data memory 92
Since the previously input data that remains in the [3] becomes apparent and the data becomes indeterminate, error correction by the ECC data becomes incorrect.

これを防止するには,データ読み取り開始前にデータ保
持部の内容を全て“00”にする必要があるが,読み取り
開始時には,ブロックのどの部分が欠落するかを予測す
ることは不可能であるため,データメモリ92の全てのデ
ータ保持エリアを“00”に初期化する必要がある。しか
しこの処理に要する時間が,ブロックとブロックのギャ
ップ通過時間より長いため,エラーブロック(エラー修
正の必要があると判断されたブロック)を検出したとき
にのみテープを停止させ,データメモリ92のデータ保持
エリアを“00”にして,テープを再度エラーブロックに
位置付けし,データを読み取ってエラー修正を行なって
いた。
To prevent this, it is necessary to set all the contents of the data holding part to "00" before starting data reading, but at the start of reading, it is impossible to predict which part of the block will be missing. Therefore, it is necessary to initialize all the data holding areas of the data memory 92 to "00". However, since the time required for this processing is longer than the block gap passing time, the tape is stopped only when an error block (block determined to need error correction) is detected, and the data in the data memory 92 is deleted. The holding area was set to "00", the tape was repositioned to the error block, the data was read, and the error was corrected.

このため,制御が複雑化し,また処理時間が増大すると
いう問題があった。
Therefore, there are problems that control becomes complicated and processing time increases.

本発明は,読み取りデータが途中で欠落した場合など
に,余分な時間を付加することなく,即時的(on the fl
y)にエラーを修正できるエラー修正回路を提供すること
を目的とする。
The present invention provides an immediate (on the fl) method without adding extra time when read data is lost in the middle.
It is an object to provide an error correction circuit that can correct the error in y).

〔問題点を解決するための手段〕[Means for solving problems]

本発明は,エラー修正回路において,生成過程にあるエ
ラー修正パターンを保持するエラー修正パターン保持回
路を2系統設け,それぞれをエラー修正パターン生成回
路による読み取り用と書き込み用とに役割りを交互に切
り替えながら使用し,入力されたデータ部にエラーが検
出されたときには次に行なう読み取り用と書き込み用と
の交互の切り替えを休止して,前と同じ役割り状態で読
み取り/書き込みを実行することにより,エラーデータ
部を含みEOR累算データを不採用にし,エラーデータ部
を除いたデータ部のみでEOR累算データすなわちエラー
修正パターンが自動的に得られるようにするものであ
る。
According to the present invention, in the error correction circuit, two systems of error correction pattern holding circuits for holding error correction patterns in the process of generation are provided, and the roles of the error correction pattern holding circuits are switched alternately for reading and writing by the error correction pattern generating circuit. However, when an error is detected in the input data section, the next alternate switching between reading and writing is paused, and reading / writing is executed in the same role as before, The EOR accumulated data including the error data part is not adopted, and the EOR accumulated data, that is, the error correction pattern is automatically obtained only by the data part excluding the error data part.

第1図に,本発明の原理的構成を示す。FIG. 1 shows the basic configuration of the present invention.

図において, 10は,データ記録ブロックであり,この例では4つのデ
ータ部分A,B,C,Dと,ECCデータ部により構成さ
れる。各データ部とECCデータ部とは,それぞれチェッ
クキャラクタCCにより独立にエラーチェック可能となっ
ている。
In the figure, reference numeral 10 is a data recording block, which is composed of four data parts A, B, C, D and an ECC data part in this example. Each data part and ECC data part can be independently error checked by the check character CC.

11は,データ読み取り回路であり,例えば磁気テープの
読み取り信号が入力され,データ信号Dataを出力する。
またデータ記録ブロック10のデータ部を識別するブロッ
ク信号Blockを出力する。
Reference numeral 11 is a data reading circuit, which inputs a read signal of a magnetic tape, for example, and outputs a data signal Data.
It also outputs a block signal Block that identifies the data portion of the data recording block 10.

12は,エラー検出回路であり,入力される各データ部
A,B,C,DおよびECCデータ部のそれぞれについ
て,チェックキャラクタCC等によるエラーチェックを行
ない,エラーを検出すると,エラー信号Errorを出力す
る。
Reference numeral 12 is an error detection circuit, which performs an error check with a check character CC or the like on each of the input data parts A, B, C, D and ECC data parts, and outputs an error signal Error when an error is detected. To do.

13は,データメモリであり,データ読み取り回路11から
出力されたデータ信号Dataに基づいて,データ部A,
B,C,Dのデータが格納される。
Reference numeral 13 is a data memory, and based on the data signal Data output from the data reading circuit 11, the data section A,
B, C, and D data are stored.

14は,本発明が対象とするエラー修正回路である。Reference numeral 14 is an error correction circuit targeted by the present invention.

15,15′は,それぞれ第1と第2のエラー修正パターン
保持回路である。
Reference numerals 15 and 15 'are the first and second error correction pattern holding circuits, respectively.

16は,エラー修正パターン生成回路であり,データ読み
取り回路11からのデータ信号Dataと第1および第2のエ
ラー修正パターン保持回路15,15′のうち読み取りを指
定されている一方の回路から読み出したデータとの間で
EOR演算を行ない,結果を第1および第2のエラー修正
パターン保持回路のうち書き込みを指定されている他方
の回路へ書き込み更新する。
Reference numeral 16 is an error correction pattern generation circuit, which reads from the data signal Data from the data reading circuit 11 and one of the first and second error correction pattern holding circuits 15 and 15 'which is designated for reading. To and from the data
The EOR operation is performed, and the result is written and updated in the other of the first and second error correction pattern holding circuits for which writing is designated.

17は,切り替え回路であり,第1と第2のエラー修正パ
ターン保持回路15,15′に対して,それぞれロード/ス
トア切り替え信号L/S,▲▼を印加し,一方をロ
ード用,他方をストア用に制御する。
A switching circuit 17 applies load / store switching signals L / S and ▲ ▼ to the first and second error correction pattern holding circuits 15 and 15 ', respectively, one for loading and the other for loading. Control for store.

このロード/ストア切り替え信号L/S,▲▼は,
入力されたデータ部にエラーが検出されなかったとき
(Error=0)反転され,次に入力されるデータ部につ
いて,第1と第2のエラー修正パターン保持回路15,1
5′に対するロード用とストア用の役割りを切り替え
る。
This load / store switching signal L / S, ▲ ▼ is
When an error is not detected in the input data part (Error = 0), it is inverted, and the first and second error correction pattern holding circuits 15 and 1 for the next input data part are inverted.
Switch roles for loading and store for 5 '.

しかし入力されたデータ部にエラーが検出されたとき
(Error=1)には,ロード/ストア切り替え信号を反
転させず,第1と第2のエラー修正パターン保持回路1
5,15′の役割りは次に入力されるデータ部に対して変更
されない。
However, when an error is detected in the input data portion (Error = 1), the load / store switching signal is not inverted and the first and second error correction pattern holding circuits 1
The role of 5,15 'remains unchanged for the next input data part.

〔作用〕[Action]

第1図に示した本発明回路の作用を,第2図を用いて説
明する。
The operation of the circuit of the present invention shown in FIG. 1 will be described with reference to FIG.

第2図において, (a)は,データ記録ブロックである。データ部A,B,
C,DとECCデータ部のうち,データ部Cにエラーが発
生しているものとして示されている。
In FIG. 2, (a) is a data recording block. Data section A, B,
Of the C, D and ECC data parts, the data part C is shown as having an error.

(b)は,第1のエラー修正パターン保持回路15の内容変
化を示す。
(b) shows changes in the contents of the first error correction pattern holding circuit 15.

(c)は,第2のエラー修正パターン保持回路15′の内容
変化を示す。
(c) shows changes in the contents of the second error correction pattern holding circuit 15 '.

(d)は,切り替え回路17から第1のエラー修正パータン
保持回路15に印加されるロード/ストア切り替え信号L/
Sの変化を示す。
(d) is a load / store switching signal L / applied to the first error correction pattern holding circuit 15 from the switching circuit 17.
The change in S is shown.

(e)は,切り替え回路17から第2のエラー修正パターン
保持回路15′に印加されるロード/ストア切り替え信号
▲▼の変化を示す。
(e) shows a change of the load / store switching signal ▲ ▼ applied from the switching circuit 17 to the second error correction pattern holding circuit 15 '.

(f)は,第1のエラー修正パターン保持回路15に対して
データ部Aの読み取り期間に発生されるイニシャライズ
信号(“00”クリア信号)を示す。
(f) shows an initialization signal (“00” clear signal) generated for the first error correction pattern holding circuit 15 during the reading period of the data section A.

(g)は,データ読み取り回路11から切り替え回路12に印
加されるブロック信号Blockを示す。
(g) shows a block signal Block applied from the data reading circuit 11 to the switching circuit 12.

(h)は,エラー検出回路12から切り替え回路17に印加さ
れるエラー信号Errorを示す。
(h) shows an error signal Error applied from the error detection circuit 12 to the switching circuit 17.

データ部A〜D,ECCデータ部のデ−タ長は全て等しく
(n),ECCデータ部には,各データ部内のデータ順毎にEOR
した結果が,以下に示すように記録されている。
The data lengths of the data parts A to D and ECC data part are all the same.
(n), ECC data part has EOR for each data order in each data part.
The results are recorded as shown below.

読み取りのとき,Cn−n〜Cのデータが誤っている
か又は欠落したとき,データ部Cの正しいデータC
,…は下記のように再生することができる。
When reading, when the data of C n-n to C n is erroneous or missing, the correct data C 1 of the data section C 1 ,
C 2 , ... Can be reproduced as follows.

データ記録ブロックを読み始めるときは,必ず第1のエ
ラー修正パターン保持回路15へのイニシャライズ信号が
ONとなっており,データ部Aが正しく読めたときにOFF
となる。これにより,第1のエラー修正パターン保持回
路15は,“00”にクリアされる。
When starting reading the data recording block, be sure that the initialization signal to the first error correction pattern holding circuit 15 is
It is turned on, and turned off when the data section A can be read correctly.
Becomes As a result, the first error correction pattern holding circuit 15 is cleared to "00".

データ部Aを読むときには,ロード/ストア切り替え信
号L/SがL,信号▲▼がSであるため,読み取ら
れたデータAと第1の回路15からロードした“00”とを
EORして,結果のAを第2の回路15′にストアする。
When reading the data part A, the load / store switching signal L / S is L and the signal ▲ ▼ is S, so the read data A and “00” loaded from the first circuit 15 are read.
EOR and store the resulting A in the second circuit 15 '.

次に,データ部Aが正常に読めると,エラー信号Error
がOFFでブロック信号BlockがONとなるため,信号▲
▼がL,信号L/SがSとなるため,データ部Bのデー
タと第2の回路15′に保持しているエラー修正パターン
(A)とをEORして,第1の回路15にストアする。
Next, when the data part A can be read normally, the error signal Error
Is OFF and the block signal Block is ON, the signal ▲
Since ▼ is L and the signal L / S is S, the data of the data section B and the error correction pattern (A) held in the second circuit 15 'are EORed and stored in the first circuit 15. To do.

データ部Bが正常に読めると上記と同様に,ロード用と
ストア用の回路が切り替り,読み取られたデータ部Cと
第1の回路15に保持されているエラー修正パターン(A
B)とをEORして,結果(ABC)を第2回路1
5′にストアする。
When the data section B can be read normally, the load and store circuits are switched in the same manner as described above, and the read data section C and the error correction pattern (A
B) and EOR and the result (ABC) in the second circuit 1
Store at 5 '.

次に仮にデータ部Cの途中でドロップアウトが生じる
と,図示されていないIBG(Inter Block Gap)信号がONと
なり,所定のデータ長を読み終る前にギャップを検出し
たことで短ブロックエラーとなって,エラー検出回路12
はエラー信号ErrorをONとし,切り替え回路17のロード
/ストア切り替え信号L/S,▲▼を反転させない
で保持する。
Next, if a dropout occurs in the middle of the data section C, an IBG (Inter Block Gap) signal (not shown) is turned on, and a short block error occurs because a gap is detected before the end of reading the predetermined data length. Error detection circuit 12
Turns on the error signal Error and holds the load / store switching signal L / S of the switching circuit 17, ▲ ▼, without inverting it.

このため,データ部Dを読むときは,第1の回路15に保
持しているエラー修正パターン(AB)とデータDを
EORして,結果(ABD)を第2の回路15′にスト
アする。
Therefore, when reading the data section D, the error correction pattern (AB) and the data D held in the first circuit 15 are read.
EOR and store the result (ABD) in the second circuit 15 '.

次にECCデータ部を読み取るときは,ECCデータと第2の
回路15′のエラー修正パターンをEORして,データメモ
リのデータCに相当するアドレスに書き込み,エラー自
動修正を完了する。
Next, when the ECC data part is read, the ECC data and the error correction pattern of the second circuit 15 'are EOR'ed and written to the address corresponding to the data C in the data memory to complete the automatic error correction.

〔実施例〕〔Example〕

第3図ないし第7図を用いて本発明の実施例を説明す
る。
An embodiment of the present invention will be described with reference to FIGS.

第3図は,エラー修正回路のブロック図であり, 30は磁気テープ等のドライブである。FIG. 3 is a block diagram of the error correction circuit, and 30 is a drive such as a magnetic tape.

31は直列形式のリードデータを並列形式(バイド)に変
換する直並列変換器である。
Reference numeral 31 is a serial-parallel converter that converts read data in serial format into parallel format (byte).

32はリードデータを一時的に保持するリードレジスタで
ある。
Reference numeral 32 is a read register that temporarily holds read data.

33はフォーマットエラー検出回路である。33 is a format error detection circuit.

34はCRCチェック回路である。34 is a CRC check circuit.

35はブロック検出回路である。Reference numeral 35 is a block detection circuit.

36はリードデータを保持するデータレジスタ, 37はエラー修正パターンをロードするECCレジスタ, 38はEOR回路であり,エラー修正パターンを逐次更新生
成するため,データレジスタ36のリードデータとECCレ
ジスタ37の前回のエラー修正パターンとのEOR演算を行
なう。
36 is a data register that holds the read data, 37 is an ECC register that loads the error correction pattern, and 38 is an EOR circuit. Since the error correction pattern is sequentially updated and generated, the read data of the data register 36 and the previous time of the ECC register 37 are stored. EOR operation with the error correction pattern of.

39はエラー修正パターンを保持するECCメモリであり,
2つのバンクBank0,Bank1で構成される(第1図のエ
ラー修正パターン保持回路15,15′に対応)。
39 is an ECC memory that holds an error correction pattern,
It is composed of two banks Bank0 and Bank1 (corresponding to the error correction pattern holding circuits 15 and 15 'in FIG. 1).

40は切り替え回路であり,ECCメモリ39のロード/スト
ア制御のためのバンクアドレスおよびECCレジスタ37に
対するイニシャライズ信号を生成する。
A switching circuit 40 generates a bank address for load / store control of the ECC memory 39 and an initialization signal for the ECC register 37.

41はデータメモリである。41 is a data memory.

42はブロックカウンタであり,データメモリ41内のデー
タ部A,B,C,Dの格納位置を指示する各ブロックア
ドレスを連続的に生成する。
Reference numeral 42 is a block counter, which continuously generates respective block addresses indicating the storage positions of the data parts A, B, C, D in the data memory 41.

43はブロック内アドレスカウンタであり,ブロック(デ
ータ部)内のバイトアドレスを生成する。
An in-block address counter 43 generates a byte address in the block (data section).

44はエラーブロックアドレスレジスタであり,エラーを
検出されたブロック(データ部)のデータメモリ41にお
けるブロックアドレスを保持する。
An error block address register 44 holds the block address in the data memory 41 of the block (data part) in which an error is detected.

45はマルチプレクサMPXであり,入力された各データ部
のデータをデータメモリ41に順次ライトするときには,
ブロックカウンタ42の出力であるブロックアドレスを選
択し,またエラー修正済データを書き込むときにはエラ
ーブロックアドレスレジスタ44の出力であるエラーブロ
ックアドレスを選択して,それぞれデータバンクアドレ
スとしてデータメモリ41に印加する。
Reference numeral 45 denotes a multiplexer MPX, which is used to sequentially write the input data of each data section to the data memory 41.
The block address output from the block counter 42 is selected, and when the error-corrected data is written, the error block address output from the error block address register 44 is selected and applied to the data memory 41 as a data bank address.

46はライト制御回路であり,ECC CYCLE以外の期間では
データ部A,B,C,DのデータライトDATA WRITE時
と,ECC CYCLE期間中はストア制御STORE時に,データメ
モリ41のライトイネーブルWEをONにする。
A write control circuit 46 turns on the write enable WE of the data memory 41 at the time of data write DATA WRITE of the data section A, B, C, D during the period other than ECC CYCLE and at the time of store control STORE during the ECC CYCLE period. To

47はリードバスである。47 is a lead bus.

48はデータバッファバスである。48 is a data buffer bus.

49は上位装置へのデータ転送回路である。Reference numeral 49 is a data transfer circuit to the upper device.

第4図は,第3図の実施例回路中で用いられる各種制御
信号の発生回路の詳細を示している。また,第5図ない
し第7図は,それぞれ第3図の実施例回路中の動作タイ
ミングを示している。
FIG. 4 shows the details of the circuit for generating various control signals used in the embodiment circuit of FIG. 5 to 7 show the operation timing in the embodiment circuit of FIG. 3, respectively.

第4図の(a)は,ロード制御信号LOAD,データライト信
号Data Write,ストア制御信号STOREの各タイミング信
号を発生するためのカウンタシフトレジスタとからなる
回路構成を示している(なお第3図中には,これに対応
する回路が省略されている)。
FIG. 4A shows a circuit configuration including a counter shift register for generating each timing signal of the load control signal LOAD, the data write signal Data Write, and the store control signal STORE (note that FIG. 3 shows the circuit configuration). The circuit corresponding to this is omitted inside).

図示のように,カウンタでリードクロックを分周し,シ
フトレジスタで遅延させることにより,各制御信号LOA
D,Data Write,STOREが,第6図の(e),(g),(i)のように
逐次的にかつ循環的に発生される。
As shown in the figure, the read clock is divided by the counter and delayed by the shift register, so that each control signal LOA
D, Data Write and STORE are sequentially and cyclically generated as shown in (e), (g) and (i) of FIG.

第4図の(b)は,第3図中の切り替え回路40,ブロック
カウンタ42,エラーブロックアドレスレジスタ44,MPX4
5の細部構成を示す。
FIG. 4B shows the switching circuit 40, the block counter 42, the error block address register 44, and the MPX4 shown in FIG.
5 shows the detailed configuration.

切り替え回路40では,JK-FFがブロック信号Block(第5
図(c))により交互に反転するトルグ動作を行なう。こ
のJK-FFは,リセット信号Reset(第5図(b))によって
ブロックの読み取り開始に先立ってリセットされるの
で,必ずQ=0,Q=1で 開始され,これによりANDゲートを用いて,LOAD信号タ
イミング時にECCバンクアドレス=0を出力し,STORE信
号タイミング時にECCバンクアドレス=1を出力するよ
うに制御される。
In the switching circuit 40, the JK-FF outputs the block signal Block (5th
As shown in Figure (c), the toggle operation is performed, which is alternately inverted. This JK-FF is reset by the reset signal Reset (Fig. 5 (b)) before the reading of the block is started, so it is always started at Q = 0 and Q = 1. The ECC bank address = 0 is output at the timing of the LOAD signal, and the ECC bank address = 1 is output at the timing of the STORE signal.

以後,BlockがONとなるごとにLOAD,STOREに対するECCバ
ンクアドレスは反転されるが,ErrorがONのときには,J
K-FFに対するBlockの印加が阻止されるので,JK-FFのト
グル動作は停止する(第5図(d),(k)〜(m))。
After that, the ECC bank address for LOAD and STORE is inverted every time Block turns ON, but when Error is ON, J
Block application to K-FF is blocked, and the toggle operation of JK-FF stops (Fig. 5, (d), (k) to (m)).

またD-FFは,Resetによりリセットされた後,Blockによ
り“1”をセットされることにより,第5図(e)に示す
ようにデータ部AでのみONとなるイニシャライズ信号を
出力する。
Further, D-FF is reset by Reset and then set to "1" by Block, thereby outputting an initialization signal which is turned ON only in the data section A as shown in FIG. 5 (e).

ブロックカウンタ42は,3ビットの5進カウンタであり
Resetによりリセットされてから,Blockが印加されるご
とに,ブロックアドレス2,21に“00”,“01”,
“10”,“11”を出力し(第5図(f),(g)),最後にECC
データ部に対応するタイミングでECC CYCLE出力をONに
する(第5図(h))。
The block counter 42 is a 3-bit quinary counter
After being reset by Reset, each time a Block is applied to the block address 2 0, 2 1 "00", "01",
Outputs "10" and "11" (Fig. 5 (f), (g)), and finally ECC
Turn on the ECC CYCLE output at the timing corresponding to the data section (Fig. 5 (h)).

エラーブロックアドレスレジスタ44は,あるデータ部に
エラーが検出されて、ErrorがONとなったとき,そのと
きのブロックアドレス2,2を保持し,エラーブロ
ックアドレスとしてデータメモリ41(第3図)に対する
修正データ書き込みに使用可能にする。
Error block address register 44 is detected an error in a certain data unit, when Error is turned ON, holds the block address 2 0, 2 1 at that time, the data memory 41 (FIG. 3 as an error block address ) To write modified data to.

MPX45は,ECC CYCLEがOFFのとき,すなわちデータ部
A,B,C,Dの読み取り期間中はブロックアドレス2
,2を選択し,そしてECC CYCLEがONのときエラー
ブロックアドレス2,2を選択し,データバンクア
ドレス2,2としてデータメモリ41に供給する(第
5図(i)(j))。
MPX45 has block address 2 when ECC CYCLE is OFF, that is, during the reading of data section A, B, C, D.
0, 2 1 is selected, and select the error block address 2 0, 2 1 when ECC CYCLE is ON, the data bank address 2 0, 2 1 to the data memory 41 as a (FIG. 5 (i) ( j)).

なお,第5図は,第2図と同様にデータ部Cがエラーで
あるとしたときのものであり,第5図の(m),(o)に示す
エラー修正パターンが,ECCメモリ39(第3図)の各バ
ンクBank0,Bank1において,逐次ストア,ロードされ
る。
It should be noted that FIG. 5 shows the case where the data section C has an error as in FIG. 2, and the error correction patterns shown in (m) and (o) of FIG. It is sequentially stored and loaded in each bank Bank0 and Bank1 (Fig. 3).

第3図において,ECCメモリ39は,STOREがONのときライ
トイネーブルWEがONとなり,またLOADがONのときアウト
プットイネーブルOEがONとなる。
In FIG. 3, in the ECC memory 39, the write enable WE is ON when STORE is ON, and the output enable OE is ON when LOAD is ON.

これにより,STOREがONのとき,ECCバンクアドレスで指
示されたECCメモリ39のバンクに,EOR回路38の出力のエ
ラー修正パターンが,データバッファバス48を介してス
トアされ,またLOADがONのときには,ECCバンクアドレ
スで指定されたECCメモリ39のバンクにあるエラー修正
パターンが,データバッファバス48を介してECCレジス
タ37にロードされ,次のデータ部との間でのEOR演算を
可能にする。
As a result, when STORE is ON, the error correction pattern of the output of the EOR circuit 38 is stored in the bank of the ECC memory 39 designated by the ECC bank address via the data buffer bus 48, and when LOAD is ON. , The error correction pattern in the bank of the ECC memory 39 designated by the ECC bank address is loaded into the ECC register 37 via the data buffer bus 48 and enables the EOR operation with the next data section.

第6図はECC CYCLEがOFFの期間の動作タイミングを示
し,そして第7図はECC CYCLEがONの期間の動作タイミ
ングを示している。
FIG. 6 shows the operation timing when the ECC CYCLE is OFF, and FIG. 7 shows the operation timing when the ECC CYCLE is ON.

第6図および第7図において, (a)はリードレジスタ32に保持されているリードデータ
を表わし,D,D,…はそれぞれバイトデータであ
る。
6 and 7, (a) shows the read data held in the read register 32, and D 1 , D 2 , ... Are byte data, respectively.

(b)はデータバッファバス48上の転送データを表わし,
,D,…はデータレジスタ36へ転送されるリード
データ,E,E,…はECCメモリ39からロードされ
るエラー修正パターンのデータ,D′,D′,…は
データメモリ41へ転送されるリードデータ,XはEOR回
路38からECCメモリ39へあるいはエラー修正の場合デー
タメモリ41へ転送されるエラー修正パターンのデータで
ある。
(b) represents the transfer data on the data buffer bus 48,
D 1 , D 2 , ... Are read data transferred to the data register 36, E 1 , E 2 , ... Are data of the error correction pattern loaded from the ECC memory 39, D 1 ′, D 2 ′,. The read data, X, transferred to the memory 41 is the data of the error correction pattern transferred from the EOR circuit 38 to the ECC memory 39 or to the data memory 41 in the case of error correction.

(c)はリードクロックである。(c) is a read clock.

(d)はデータレジスタ36に保持されるリードデータを表
わす。
(d) represents the read data held in the data register 36.

(e)はロード制御信号LOADである。(e) is the load control signal LOAD.

(f)はECCレジスタ37に保持されるエラー修正パターンの
データを表わす。
(f) represents the data of the error correction pattern held in the ECC register 37.

(g)はデータライト制御信号Data Writeである。(g) is a data write control signal Data Write.

(h)はデータメモリ41にストアされるリードデータを表
わす。
(h) represents the read data stored in the data memory 41.

(i)はストア制御信号STOREである。(i) is a store control signal STORE.

(j)はECCメモリ39に保持されるエラー修正パターンであ
る。なお,E′,E′,…はECCレジスタ37のエラ
ー修正パターンとデータメモリ41のリードデータとをEO
R演算した結果の更新されたエラー修正パターンであ
る。
(j) is an error correction pattern held in the ECC memory 39. E 1 ′, E 2 ′, ... Are the error correction pattern of the ECC register 37 and the read data of the data memory 41, which are EO.
It is the updated error correction pattern of the result of R calculation.

(k)はECC CYCLEである。(k) is ECC CYCLE.

〔発明の効果〕〔The invention's effect〕

本発明によれば,磁気テープ装置等で読み取られたデー
タを,連続的にチェックし,エラーが検出されても特別
な制御を付加することなく実時間でエラーを自動修正
し,上位装置へ出力することができるので,処理時間の
短縮が可能となる。
According to the present invention, data read by a magnetic tape device or the like is continuously checked, and even if an error is detected, the error is automatically corrected in real time without adding special control and output to a host device. Therefore, the processing time can be shortened.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の原理的構成図,第2図は本発明の作用
説明図,第3図は本発明実施例によるエラー修正回路の
ブロック図,第4図は第3図の実施例における各種の制
御信号発生回路の詳細図,第5図は第3図の実施例にお
ける制御信号を中心とする動作タイミング図,第6図は
ECC CYCLEがOFFの時のデータを中心とする動作タイミン
グ図,第7図はECC CYCLEがONの時のデータを中心とす
る動作タイミング図,第8図はデータ記録ブロックの記
録様式の説明図,第9図は従来例によるエラー修正回路
の構成図である。 第1図中, 10はデータ記録ブロック, 11はデータ読み取り回路, 12はエラー検出回路, 13はデータメモリ, 14はエラー修正回路, 15は第1のエラー修正パターン保持回路, 15′は第2のエラー修正パターン保持回路, 16はエラー修正パターン生成回路, 17は切り替え回路。
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is an explanatory view of the operation of the present invention, FIG. 3 is a block diagram of an error correction circuit according to an embodiment of the present invention, and FIG. 4 is an embodiment of FIG. Detailed diagrams of various control signal generating circuits, FIG. 5 is an operation timing diagram centering on control signals in the embodiment of FIG. 3, and FIG. 6 is
Operation timing diagram centered on data when ECC CYCLE is OFF, Fig. 7 is an operation timing diagram centered on data when ECC CYCLE is ON, Fig. 8 is an explanatory diagram of the recording format of the data recording block, FIG. 9 is a block diagram of an error correction circuit according to a conventional example. In FIG. 1, 10 is a data recording block, 11 is a data reading circuit, 12 is an error detection circuit, 13 is a data memory, 14 is an error correction circuit, 15 is a first error correction pattern holding circuit, and 15 'is a second. Error correction pattern holding circuit, 16 is an error correction pattern generation circuit, and 17 is a switching circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】それぞれがチェックキャラクタをもつ複数
個のデータ部と,ECCデータ部とを含むデータ記録ブロ
ックを読み取り,データ部のエラーを自動修正するエラ
ー修正回路において, 排他的論理和演算機能をもつエラー修正パターン生成回
路(16)と, エラー修正パターン生成回路(16)から出力されるエラー
修正パターンがそれぞれ並列に印加される第1のエラー
修正パターン保持回路(15)と,第2のエラー修正パター
ン保持回路(15′)と, データ記録ブロック内の複数のデータ部およびECCデー
タ部が逐次入力されるごとに,第1のエラー修正パター
ン保持回路(15)と第2のエラー修正パターン保持回路(1
5′)とを交互にロード,ストアするように切り替え制御
できる切り替え回路(17)とをそなえ, エラー修正パターン生成回路(16)の一方の入力へは,デ
ータ記録ブロックの複数のデータ部およびECCデータ部
の各データを逐次的に印加するとともに,他方の入力へ
は,第1と第2のエラー修正パターン保持回路(15,1
5′)のうち直前にストア制御されていた方の回路の内容
をロードし,同時に,エラー修正パターン生成回路(16)
の出力を,直前にロード制御されていた方のエラー修正
パターン保持回路へストアし, 切り替え回路(17)は,今回入力されたデータ部にエラー
が検出されたとき,第1と第2のエラー修正パターン保
持回路(15,15′)に対してロード,ストアの切り替え制
御を行なわず,現在の制御状態を保持して,次に入力さ
れるデータ部の処理を行なわせることを特徴とするエラ
ー修正回路。
1. An exclusive OR operation function in an error correction circuit for reading a data recording block including a plurality of data parts each having a check character and an ECC data part and automatically correcting an error in the data part. The error correction pattern generation circuit (16), the first error correction pattern holding circuit (15) to which the error correction patterns output from the error correction pattern generation circuit (16) are respectively applied in parallel, and the second error The correction pattern holding circuit (15 ') and the first error correction pattern holding circuit (15) and the second error correction pattern holding each time a plurality of data parts and ECC data parts in the data recording block are sequentially input. Circuit (1
5 ′) and a switching circuit (17) capable of switching control so as to alternately load and store, and one input of the error correction pattern generation circuit (16) has a plurality of data parts of the data recording block and ECC. While sequentially applying each data in the data section, the other input is applied to the first and second error correction pattern holding circuits (15, 1).
5 ') Loads the contents of the circuit that was store-controlled immediately before, and at the same time, the error correction pattern generation circuit (16)
The output of is stored in the error correction pattern holding circuit that was under load control immediately before, and the switching circuit (17) detects the first and second errors when an error is detected in the data section input this time. An error characterized in that the control pattern switching circuit (15, 15 ') is not controlled to switch between load and store, the current control state is retained, and the data portion to be input next is processed. Correction circuit.
JP62267559A 1987-10-22 1987-10-22 Error correction circuit Expired - Fee Related JPH0668730B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62267559A JPH0668730B2 (en) 1987-10-22 1987-10-22 Error correction circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62267559A JPH0668730B2 (en) 1987-10-22 1987-10-22 Error correction circuit

Publications (2)

Publication Number Publication Date
JPH01109440A JPH01109440A (en) 1989-04-26
JPH0668730B2 true JPH0668730B2 (en) 1994-08-31

Family

ID=17446488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62267559A Expired - Fee Related JPH0668730B2 (en) 1987-10-22 1987-10-22 Error correction circuit

Country Status (1)

Country Link
JP (1) JPH0668730B2 (en)

Also Published As

Publication number Publication date
JPH01109440A (en) 1989-04-26

Similar Documents

Publication Publication Date Title
JPS63197123A (en) Error correcting and checking device
KR100430657B1 (en) Signal processor for correcting and detecting errors
JPH0219549B2 (en)
JPH02306476A (en) Error corrector for reproduction
JPH10340546A (en) Reproducing device and reproducing method
JPH0668730B2 (en) Error correction circuit
US5805618A (en) Reproducing apparatus for reproducing video information recorded together with error correction codes
JP2605270B2 (en) Error correction and checking device
JP2664267B2 (en) Code error correction device
JPS63237264A (en) Information recording system
JPH04186559A (en) Readout control system for magnetic tape
JPS6048769B2 (en) Loading method
JPS5847057B2 (en) magnetic disk controller
JPH0535416A (en) File controller
JP2779540B2 (en) Magnetic tape unit
JP4004102B2 (en) Code error correction detection device
JPH0520215A (en) Information processor
JPH01236735A (en) Error detecting and correcting system
JP3246926B2 (en) Error correction processor
JPH06202819A (en) Disk device
JPH0561777A (en) Memory control circuit
JPS58147875A (en) Address signal reading circuit
JP2003177973A (en) Data processor
JP2001357634A (en) Error correction circuit for disk reproducing device
JPH04102274A (en) Control system for magnetic memory

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees