JPH01109440A - Error correcting circuit - Google Patents

Error correcting circuit

Info

Publication number
JPH01109440A
JPH01109440A JP62267559A JP26755987A JPH01109440A JP H01109440 A JPH01109440 A JP H01109440A JP 62267559 A JP62267559 A JP 62267559A JP 26755987 A JP26755987 A JP 26755987A JP H01109440 A JPH01109440 A JP H01109440A
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.)
Granted
Application number
JP62267559A
Other languages
Japanese (ja)
Other versions
JPH0668730B2 (en
Inventor
Masaki Fujiki
藤木 正樹
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

Abstract

PURPOSE:To shorten processing time by providing two systems of error correcting pattern holding circuits, ceasing switching to be executed next when an error is detected, and executing reading/writing in the same role condition as before. CONSTITUTION:The title circuit is equipped with first and second error correcting pattern holding circuits 15 and 15' to which an error correcting pattern outputted from an error correcting pattern generating circuit 16 are impressed respectively and in parallel and a switching circuit 17 to be able to switch and control the device so that the holding circuits 15 and 15' can be alternately loaded and stored each time plural data parts and an ECC (Error Correcting Code) data part in a data recording block are successively inputted. When the error is detected in the data part inputted at this time, the switching circuit 17 does not execute switching control for the holding circuits 15 and 15', holds the current control condition, and allows the device to execute the processing of the data part to be inputted next. Thus, the error can be corrected instantaneously without adding any excess time.

Description

【発明の詳細な説明】 〔概 要〕 ECC付きのデータ形式によるデータ記録プロップPエ
ラー修正回路に関し。
[Detailed Description of the Invention] [Summary] This invention relates to a data recording prop P error correction circuit in a data format with ECC.

エラー発生時に余分な時間を付加せず即時的にエラーを
修専できるエラー修正回路を提供することを目的とし。
The object of the present invention is to provide an error correction circuit that can immediately correct an error without adding extra time when an error occurs.

排他的論理和演算機能をもつエラー修正パターン生成回
路と。
An error correction pattern generation circuit with an exclusive OR operation function.

エラー修正パターン生成回路から出力されるエラー修正
パターンがそれぞれ並列に印加される第1のエラー修正
パターン保持回路と、第2のエラー修正パターン保持回
路と、データ記録ブロック内の複数のデータ部およびE
CCデータ部が逐次入力されるごとに、第1のエラー修
正パターン保持回路と第2のエラー修正パターン保持回
路とを交互にロード、ストアするように切り替え制御で
きる切り替え回路とをそなえ、切り替え回路は、今回入
力されたデータ部にエラーが検出されたとき。
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, a second error correction pattern holding circuit, and a plurality of data portions and E in the data recording block.
The switching circuit is provided with a switching circuit capable of switching control so as to alternately load and store the first error correction pattern holding circuit and the second error correction pattern holding circuit each time the CC data section is inputted one after another. , when an error is detected in the data section that was input this time.

第1と第2のエラー修正パターン保持回路に対してロー
ド、ストアの切り替え制御を行なわず、現在の制御状態
を保持して9次に入力されるデータ部の処理を行なわせ
るよう構成する。
The configuration is such that the first and second error correction pattern holding circuits are not controlled to switch between loading and storing, but are made to maintain the current control state and process the data portion inputted ninth time.

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

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

通常の磁気テープ装置では、第8図に示されるような記
録様式(フォーマット)のデータ記録ブロックを用いて
、記録あるいは再生が行なわれる。
In a typical magnetic tape device, recording or reproduction is performed using data recording blocks having a recording format as shown in FIG.

図示のデータ記録ブロックでは、各データ部のチェック
キャラクタCCがデータ部の最後にあり、各データ部の
データが正しいかどうかが、チェックキャラクタを読み
取るまで、あるいは途中で異常フォーマット、たとえば
データの途中でのギャップを検出するまで2判別するこ
とができない。
In the illustrated data recording block, the check character CC of each data section is at the end of the data section, and whether or not the data in each data section is correct cannot be determined until the check character is read or if there is an abnormal format, for example, in the middle of the data. 2 cannot be discriminated until a gap is detected.

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

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

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

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

特にリール・ツウ・リール(Reel to Reel
)制御方式を行なっているストリーミング磁気テープ装
置では、テープを停止させてもとのブロックを再度読み
取るためには、再位置付は動作により、多大な時間を要
するため、即時的なエラー修正が必要とされる。
Especially reel to reel
) In streaming magnetic tape devices that use the control method, immediate error correction is required because stopping the tape and re-reading the original block requires a large amount of time due to the repositioning operation. It is said that

〔従来の技術〕[Conventional technology]

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

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

97はHORで構成される正常データ生成回路である。97 is a normal data generation circuit composed of HOR.

このエラー修正回路の原理は、AeBeCΦD= II
CCから、A、B、C,Dのいずれか、たとえばCがエ
ラーのとき(C’で表わす)、正常値Cは。
The principle of this error correction circuit is that AeBeCΦD=II
From CC, when any one of A, B, C, and D, for example C, is an error (represented by C'), the normal value C is.

(AeBeC’ΦDeECC)■C′ニヨリ求めらレル
ことを利用するものである。
(AeBeC'ΦDeECC) ∎C' This method takes advantage of the fact that it is impossible to obtain a smile.

データ読み取り回路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 data parts A, B, C, D, and the ECC data part, and inputs them to the data memory 92 and the error correction pattern generation circuit 95 of the error correction circuit 94.

エラー修正パターン生成回路95は、入力された読み取
りデータとエラー修正パターン保持回路96の内容との
間でデータ部単位に[!OR(排他的論理和)演算し、
結果をエラー修正ノ〈ターン保持回路96に入力し、そ
の内容を更新する。この動作を操’QMして、tなhち
、A−A69B−(AΦB)Φc−(AeBΦC) e
D−・・・を実行してエラー修正パターン保持回路96
には、データ記録ブロック90の各データ部およびEC
Cデータ部間でEOII累算した結果のエラー修正パタ
ーンデータが生成される。
The error correction pattern generation circuit 95 generates [! Perform an OR (exclusive OR) operation,
The result is input to the error correction/turn holding circuit 96 and its contents are updated. Manipulating this motion, t hchi, A-A69B-(AΦB)Φc-(AeBΦC) e
D-... is executed and the error correction pattern holding circuit 96
includes each data section of the data recording block 90 and the EC
Error correction pattern data is generated as a result of EOII accumulation between the C data sections.

正常データ生成回路97は、データメモリ92にデータ
部p、、B、C,Dの全てが格納された後、データ部の
いずれか(この場合はデータ部Cとする)にエラーが検
出されていたときには、そのエラーデータ(C′)と、
エラー修正パターン保持回路96内に生成されているエ
ラー修正パターンAΦBeCΦDΦECCとのEO[l
演算を行ない、正常データ(C)を生成してデータメモ
リ92のエラーデータを更新する。この動作は9次式で
表わされる。
After all data parts p, , B, C, and D are stored in the data memory 92, the normal data generation circuit 97 determines whether an error has been detected in any of the data parts (in this case, data part C). If so, the error data (C') and
EO[l with the error correction pattern AΦBeCΦDΦECC generated in the error correction pattern holding circuit 96
The calculation is performed to generate normal data (C) and update the error data in the data memory 92. This operation is expressed by a 9th order equation.

(AeB■C′■DΦECC)eC’−C〔発明が解決
しようとする問題点〕 第9図に示された従来のエラー修正回路では。
(AeB■C'■DΦECC)eC'-C [Problem to be Solved by the Invention] In the conventional error correction circuit shown in FIG.

エラー修正パターン保持回路が一系統しか設けられてい
ないため、エラーデータ部のデータも含めてエラー修正
パターンを生成し、エラー修正/<ターンとエラーデー
タをEOR演算してエラー修正を行なっている。
Since only one system of error correction pattern holding circuit is provided, an error correction pattern is generated including data in the error data section, and error correction is performed by performing an EOR operation on error correction/< turn and error data.

ここで、データ部の途中データが欠落した場合。Here, if some data in the data section is missing.

エラーデータ部はデータ総数が足りなくなり、エラー修
正パターンは9足りないデータ分をデータ“00″で置
き換えたものと同一結果になる。このため読み取ったエ
ラーデータの不足データ長に相当するデータは“OO″
でな(ではならない。
The total number of data in the error data section is insufficient, and the error correction pattern has the same result as replacing the missing 9 data with data "00". Therefore, the data corresponding to the missing data length of the read error data is “OO”.
Dena (not.

しかしこのようにデータが欠落すると、データメモリ9
2に残されている以前に入力されたデータが顕在化し、
データネ定となるため、 ECCデータによるエラー修
正が誤りとなる。
However, when data is lost in this way, the data memory 9
Previously input data left in 2 becomes apparent,
Since the data is fixed, error correction using ECC data will result in an error.

これを防止するには、データ読み取り開始前にデータ保
持部の内容を全て“OO”にする必要があるが、読み取
り開始時には、プロ・ツクのどの部分が欠落するかを予
測することは不可能であるため。
To prevent this, it is necessary to set all the contents of the data holding section to "OO" before starting data reading, but it is impossible to predict which part of the program will be missing when reading starts. Because it is.

データメモリ92の全てのデータ保持エリアを00”に
初期化する必要がある。しかしこの処理に要する時間が
、ブロックとブロックのギャップ通過時間より長いため
、エラーブロック (エラー修正の必要があると判断さ
れたブロック)を検出したときにのみテープを停止させ
、データメモリ92のデータ保持エリアをOO”にして
、テープを再度エラーブロックに位置付けし、データを
読み取ってエラー修正を行なっていた。
It is necessary to initialize all data holding areas of the data memory 92 to 00''. However, since the time required for this process is longer than the time required to pass through the gap between blocks, it is determined that error correction is necessary. The tape is stopped only when an error block is detected, the data holding area of the data memory 92 is set to OO'', the tape is repositioned to the error block, the data is read, and the error is corrected.

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

本発明は、読み取りデータが途中で欠落した場合などに
、余分な時間を付加することなく、即時的(on th
e fly)にエラーを修正できるエラー修正回路を提
供することを目的とする。
The present invention enables instantaneous processing without adding extra time when read data is lost in the middle.
It is an object of the present invention to provide an error correction circuit capable of correcting errors in an E-fly.

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

本発明は、エラー修正回路において、生成過程にあるエ
ラー修正パターンを保持するエラー修正パターン保持回
路を2系統設け、それぞれをエラー修正パターン生成回
路による読み取り用と書き  ′込み用とに役割りを交
互に切り替えながら使用し。
The present invention provides an error correction circuit with two systems of error correction pattern holding circuits that hold error correction patterns that are in the process of being generated, and each of them is alternately used for reading and writing by the error correction pattern generation circuit. Use while switching to.

入力されたデータ部にエラーが検出されたときには次に
行なう読み取り用と書き込み用との交互の切り替えを休
止して、前と同じ役割り状態で読み取り/書き込みを実
行することにより、エラーデータ部を含むFOR累算デ
ータを不採用にし、エラーデータ部を除いたデータ部の
みでEOR累算データすなわちエラー修正パターンが自
動的に得られるようにするものである。
When an error is detected in the input data section, the next alternating switching between reading and writing is paused, and reading/writing is performed in the same role as before, thereby eliminating the error data section. The included FOR cumulative data is not adopted, and the EOR cumulative data, that is, the error correction pattern can be automatically obtained only from the data section excluding the error data section.

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

図において。In fig.

10は、データ記録ブロックであり、この例では4つの
データ部A、 B、 C,Dと、 ECCデータ部によ
り構成される。各データ部とECCデータ部とは、それ
ぞれチェックキャラクタCCにより独立にエラーチエツ
ク可能となっている。
Reference numeral 10 denotes a data recording block, which in this example is composed of four data sections A, B, C, and D, and an ECC data section. Each data section and ECC data section can be independently checked for errors using check characters CC.

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

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

13は、データメモリであり、データ読み取り回路11
から出力されたデータ信号Dataに基づいて。
13 is a data memory, and a data reading circuit 11
Based on the data signal Data output from.

データ部A、B、C,Dのデータが格納される。Data of data portions A, B, C, and D are stored.

14は9本発明が対象とするエラー修正回路である。14 is an error correction circuit to which the present invention is directed.

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

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

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

このロード/ストア切り替え信号L/S 、 L/Sは
These load/store switching signals L/S and L/S are.

入力されたデータ部にエラーが検出されなかったとき(
1Error = O)反転され6次に入力されるデー
タ部について、第1と第2のエラー修正パターン保持回
路15.15’に対するロード用とストア用の役割りを
切り替える。
When no error is detected in the input data section (
1Error = O) For the inverted data portion inputted in the 6th order, the role of loading and storing for the first and second error correction pattern holding circuits 15 and 15' is switched.

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

〔作 用〕[For production]

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

第2図において。In fig.

(alは、データ記録ブロックである。データ部A。(al is a data recording block. Data section A.

B、C,DとECCデータ部のうち、データ部Cにエラ
ーが発生しているものとして示されている。
Of the B, C, D and ECC data sections, data section C is shown as having an error.

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

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

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

(e)は、切り替え回路17から第2のエラー修正パタ
ーン保持回路15’ に印加されるロード/ストア切り
替え信号L/Sの変化を示す。
(e) shows changes in the load/store switching signal L/S 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 to the first error correction pattern holding circuit 15 during the reading period of the data portion A.

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

(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データ部には、各データ部内のデ
ータ順毎にf!ORした結果が、以下に示すように記録
されている。
The data lengths of the data parts A to D and the ECC data part are all equal (n), and the ECC data part has f! The OR result is recorded as shown below.

A+eB+ΦCIeDt −ECG+ AzeBtΦCt eDt −14CCzA、eB、Φ
C,eD、 = BCC%読み取りのとき+ C11−
11〜C,1のデータが誤っているか又は欠落したとき
、データ部Cの正しいデータC,,C,,・・・は下記
のように再生することができる。
A+eB+ΦCIeDt -ECG+ AzeBtΦCt eDt -14CCzA, eB, Φ
C, eD, = When reading BCC% + C11-
When the data of 11 to C,1 is incorrect or missing, the correct data C,, C, . . . of the data section C can be reproduced as follows.

A1 ■B+  eD+  e  ECC+  =C+
A2 ■B z  e D t e ECCz  = 
CzA、1 ■B、l eDI% (t) ECC,=
 01%データ記録ブロックを読み始めるときは、必ず
第1のエラー修正パターン保持回路15へのイニシャラ
イズ信号がONとなっており、データ部Aが正しく読め
たときにOFFとなる。これにより、第1のエラー修正
パターン保持回路15は、 ”oo”にクリアされる。
A1 ■B+ eD+ e ECC+ =C+
A2 ■B z e D t e ECCz =
CzA, 1 ■B, l eDI% (t) ECC,=
When starting to read the 01% data recording block, the initialization signal to the first error correction pattern holding circuit 15 is always turned ON, and turned OFF when the data section A is correctly read. As a result, the first error correction pattern holding circuit 15 is cleared to "oo".

データ部Aを読むときには、ロード/ストア切り替え信
号L/S7’l<L、信号L/SがSであるため。
When reading the data portion A, the load/store switching signal L/S7'l<L and the signal L/S is S.

読み取られたデータAと第1の回路15からロードした
00”とをEORして、結果のAを第2の回路15’に
ストアする。
The read data A and 00'' loaded from the first circuit 15 are EORed, and the resultant A is stored in the second circuit 15'.

次に、データ部Aが正常に読めると、エラー信号Err
orがOFFでブロック信号BlockがONとなるた
め、信号L/Sがり、信号L/SがSとなるため。
Next, if the data part A is read normally, the error signal Err
Since or is OFF and the block signal Block is ON, the signal L/S becomes low and the signal L/S becomes S.

データ部Bのデータと第2の回路15′ に保持してい
るエラー修正パターン(A)とをEORして、第1の回
路15にストアする。
The data in 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.

データ部Bが正常に読めると上記と同様に、ロード用と
ストア用の回路が切り替り、読み取られたデータ部Cと
第1の回路15に保持されているエラー修正パターン(
AeB)とを[BORして、結果(AeBeC)を第2
回路15′ニスドアする。
When the data section B is read normally, the load and store circuits are switched in the same way as above, and the read data section C and the error correction pattern held in the first circuit 15 (
AeB) and the result (AeBeC) as the second
Circuit 15' is varnished.

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

このため、データ部りを読むときは、第1の回路15に
保持しているエラー修正パターン(A(9B) とデー
タDをBORして、u果(A69BIEEID)を第2
の回路15′にストアする。
Therefore, when reading the data part, the error correction pattern (A(9B) held in the first circuit 15 and data D are BOR'ed, and the u result (A69BIEEID) is read from the second circuit.
The data is stored in the circuit 15'.

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

〔実施例〕〔Example〕

第3図ないし第7図を用いて本発明の詳細な説明する。 The present invention will be explained in detail using FIGS. 3 to 7.

第3図は、エラー修正回路のブロック図であり。FIG. 3 is a block diagram of the error correction circuit.

30は磁気テープ等のドライブである。30 is a drive for magnetic tape or the like.

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

32はリードデータを一時的に保持するリードレジスタ
である。
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はブロック検出回路である。35 is a block detection circuit.

36はリードデータを保持するデータレジスタ。36 is a data register that holds read data.

37はエラー修正パターンをロードするFCCレジスタ
37 is an FCC register into which an error correction pattern is loaded.

38はEOR回路であり、エラー修正パターンを逐次更
新生成するため、データレジスタ36のリードデータと
ECCレジスタ37の前回のエラー修正パターンとのF
OR演算を行なう。
38 is an EOR circuit, in order to update and generate the error correction pattern sequentially, the F of the read data of the data register 36 and the previous error correction pattern of the ECC register 37 is
Perform an OR operation.

39はエラー修正パターンを保持するECCメモリであ
り、2つのバンクBank O+ Bank 1で構成
される(第1図のエラー修正パターン保持回路15.1
5’に対応)。
39 is an ECC memory that holds error correction patterns, and is composed of two banks Bank O + Bank 1 (error correction pattern holding circuit 15.1 in Fig. 1).
5').

40は切り替え回路であり、 ECCメモリ39のロー
ド/ストア制御のためのバンクアドレスおよびECCレ
ジスタ37に対するイニシャライズ信号を生成する。
40 is a switching circuit that 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の格納位置を指示する各ブロッ
クアドレスを連続的に生成する。
42 is a block counter, which continuously generates each block address indicating the storage location of the data portions A, B, C, and D in the data memory 41.

43はブロック内アドレスカウンタであり、ブロック 
(データ部)内のバイトアドレスを生成する。
43 is an intra-block address counter;
Generate a byte address in (data part).

44はエラーブロックアドレスレジスタであり。44 is an error block address register.

エラーを検出されたブロック (データ部)のデータメ
モリ41におけるブロックアドレスを保持する。
The block address in the data memory 41 of the block (data section) in which the error was detected is held.

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

46はライト制御回路であり、 ECCCYCLf!以
外の期間ではデータ部A、B、C,DのデータライトD
ATA WRITIIj時と、 IICCCYCLE期
間中はストア制御5TOR8時に、データメモリ41の
ライトイネーブル−EをONにする。
46 is a write control circuit, ECCCYCLf! In other periods, data write D of data sections A, B, C, and D is performed.
At the time of ATA WRITIIj and during the IICCCYCLE period, the write enable -E of the data memory 41 is turned ON at the time of store control 5TOR8.

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

48はデータバッファバスである・ 49は上位装置へのデータ転送回路である。48 is a data buffer bus. 49 is a data transfer circuit to the host device.

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

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

図示のように、カウンタでリードクロックを分周し、シ
フトレジスタで遅延させることにより。
By dividing the read clock with a counter and delaying it with a shift register as shown.

各制御信号LOAD、 Data l1rite、 5
TOREが、第6図の(61,(屯(υのように逐次的
にかつ循環的に発生される。
Each control signal LOAD, Data l1rite, 5
TORE is generated sequentially and cyclically as shown in FIG.

第4図の伽)は、第3図中の切り替え回路40.ブロッ
クカウンタ42.エラーブロックアドレスレジスタ44
. MPX 45の細部構成を示す。
4) is the switching circuit 40 in FIG. Block counter 42. Error block address register 44
.. The detailed configuration of MPX 45 is shown.

切り替え回路40では、 JK−ppがブロック信号B
lock(第5図(C))により交互に反転するトグル
動作を行なう、このJK−FPは、リセット信号Re5
et(第5図(b))によってブロックの読み取り開始
に先立ってリセットされるので、必ずQ−0゜Q−1で 開始され、これによりANDゲートを用いて、 LOA
D信号タイミング時にECCバンクアドレス−〇を出力
し、 5TORE信号タイミング時にECCバンクアド
レス−1を出力するように制御される。
In the switching circuit 40, JK-pp is the block signal B
This JK-FP performs a toggle operation that alternately inverts by lock (FIG. 5 (C)).
et (FIG. 5(b)), it is reset before the start of block reading, so it always starts at Q-0°Q-1, and by using an AND gate, LOA
It is controlled to output ECC bank address -0 at the D signal timing, and output ECC bank address -1 at the 5TORE signal timing.

以後、 BlockがONとなるごとにLO^D、 5
TORflに対するECCバンクアドレスは反転される
が。
After that, every time Block turns ON, LO^D, 5
Although the ECC bank address for TORfl is inverted.

ErrorがONのときには、 JK−FFに対するB
lockの印加が阻止されるので、 JK−PFのトグ
ル動作は停止する(第5図(d)、 (k)〜(→)。
When Error is ON, B for JK-FF
Since the application of the lock is blocked, the toggle operation of the JK-PF stops (Fig. 5(d), (k) to (→)).

またD−PFは、 Re5etによりリセットされた後
Also, after D-PF is reset by Re5et.

Blockにより“l”をセットされることにより、第
5図(14)に示すようにデータ部AでのみONとなる
イニシャライズ信号を出力する。
When "1" is set by Block, an initialization signal that is turned ON only in the data section A is output as shown in FIG. 5 (14).

ブロックカウンタ42は、3ビツトの5進カウンタであ
りRe5etによりリセットされてから。
The block counter 42 is a 3-bit quinary counter and is reset by Re5et.

Blockが印加されるごとに、ブロックアドレス2t
′。
Each time Block is applied, block address 2t
'.

21に“00″、 ”O1’、 ”10”、111”を
出力しく第5図(f)。
5(f).

(梢)、最後にECCデータ部に対応するタイミングで
IICCCYCLE出力をONにする(第5図(h))
(Kozue) Finally, turn on the IICCCYCLE output at the timing corresponding to the ECC data part (Figure 5 (h))
.

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

MPX 45は、 IICCCYCLEがOFFのとき
、すなわちデータ部A、B、C,Dの読み取り期間中は
ブロックアドレス2@、 2tを選択し、そしてfic
c CYCL[!がONのときエラーブロックアドレス
2)、 21を選択し、データバンクアドレス2°、2
1としてデータメモリ41に供給する(第5図11)(
J)) 。
The MPX 45 selects block addresses 2@ and 2t when IICCCYCLE is OFF, that is, during reading of data sections A, B, C, and D, and
c CYCL[! is ON, selects error block address 2), 21, and data bank address 2°, 2
1 to the data memory 41 (FIG. 5, 11) (
J)).

なお、第5図は、第2図と同様にデータ部Cがエラーで
あるとしたときのものであり、第5図の+111)、 
(0)に示すエラー修正パターンが、 ECCメモリ3
9(第3図)の各バンクBank O,Bank lに
おいて。
Note that FIG. 5 is for the case where there is an error in the data section C, similar to FIG. 2, and +111) in FIG.
The error correction pattern shown in (0) is the ECC memory 3
9 (FIG. 3) in each bank Bank O and Bank I.

逐次ストア、ロードされる。Stored and loaded sequentially.

第3図において、 IICCメモリ39は、 5TOR
EがONのときライトイネーブルl1lEがONとなり
、またLOADがONのときアウトプットイネーブルO
EがONとなる。
In FIG. 3, the IICC memory 39 is 5TOR
When E is ON, write enable l1lE is ON, and when LOAD is ON, output enable O
E turns ON.

これにより、 5TOREがONのとき、 ECCバン
クアドレスで指示されたECCメモリ39のバンクに。
As a result, when 5TORE is ON, the bank of ECC memory 39 specified by the ECC bank address is transferred.

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

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

第6図および第7図において。In FIGS. 6 and 7.

(a)はリードレジスタ32に保持されているリードデ
ータを表わし、D、、D、、・・・はそれぞれバイトデ
ータである。
(a) represents read data held in the read register 32, and D, , D, . . . are byte data, respectively.

山)はデータバッファバス48上の転送データを表わし
、DI、Dz 、・・・はデータレジスタ36へ転送さ
れるリードデータ、E+ 、Ex 、・・・はECCメ
モリ39からロードされるエラー修正パターンのデータ
+ D s’ + 02’ + ・・・はデータメモリ
41へ転送されるリードデータ、XはEOR回路38か
らECCメモリ39へあるいはエラー修正の場合データ
メモリ41へ転送されるエラー修正パターンのデータで
ある。
(mountain) represents transfer data on the data buffer bus 48, DI, Dz, . . . are read data transferred to the data register 36, and E+, Ex, . . . are error correction patterns loaded from the ECC memory 39. data + D s' + 02' + . . . is read data transferred to the data memory 41, and X is 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. It is data.

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

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

(61はロード制御信号LOAIIである。(61 is the load control signal LOAII.

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

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

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

(1)はストア制御信号5TOREである。(1) is the store control signal 5TORE.

(」)はECCメモリ39に保持されるエラー修正パタ
ーンである。なおl  EI′、E2’+ ”’はEC
Cレジスタ37のエラー修正パターンとデータメモリ4
1のリードデータとをEOR演算した結果の更新された
エラー修正パターンである。
('') is an error correction pattern held in the ECC memory 39. Note that EI', E2'+ ``'' is EC
C register 37 error correction pattern and data memory 4
This is an updated error correction pattern as a result of performing an EOR operation on the read data of No. 1.

(klはFICCCYCt、Eである。(kl is FICCCYCt, E.

〔発明の効果〕〔Effect of the invention〕

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

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の原理的構成図、第2図は本発明の作用
説明図、第3図は本発明実施例によるエラー修正回路の
ブロック図、第4図は第3図の実施例における各種の制
御信号発生回路の詳細図。 第5図は第3図の実施例における制御信号を中心とする
動作タイミング図、第6図はIICCCYCLEがOF
Fの時のデータを中心とする動作タイミング図。 第7図はBCCCYCIF+がONの時のデータを中心
とする動作タイミング図、第8図はデータ記録ブロック
の記録様式の説明図、第9図は従来例によるエラー修正
回路の構成図である。 第1図中。 IOはデータ記録ブロック。 11はデータ読み取り回路。 12はエラー検出回路。 13はデータメモリ。 14はエラー修正回路。 15は第1のエラー修正パターン保持回路。 15’ は第2のエラー修正パターン保持回路。 16はエラー修正パターン生成回路。 17は切り替え回路。
FIG. 1 is a basic configuration diagram of the present invention, FIG. 2 is an explanatory diagram 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 a diagram of the embodiment of the present invention. Detailed diagrams of various control signal generation circuits. FIG. 5 is an operation timing diagram centered on control signals in the embodiment of FIG. 3, and FIG. 6 is an operation timing diagram when IICCCYCLE is OF.
An operation timing diagram centered on data at F. FIG. 7 is an operation timing diagram centered on data when BCCCYCIF+ is ON, FIG. 8 is an explanatory diagram of the recording format of data recording blocks, and FIG. 9 is a configuration diagram of a conventional error correction circuit. In Figure 1. IO is a data recording block. 11 is a data reading circuit. 12 is an error detection circuit. 13 is data memory. 14 is an error correction circuit. 15 is a first error correction pattern holding circuit; 15' is a second error correction pattern holding circuit. 16 is an error correction pattern generation circuit. 17 is a switching circuit.

Claims (1)

【特許請求の範囲】 それぞれがチェックキャラクタをもつ複数個のデータ部
と、ECCデータ部とを含むデータ記録ブロックを読み
取り、データ部のエラーを自動修正するエラー修正回路
において、 排他的論理和演算機能をもつエラー修正パターン生成回
路(16)と、 エラー修正パターン生成回路(16)から出力されるエ
ラー修正パターンがそれぞれ並列に印加される第1のエ
ラー修正パターン保持回路(15)と、第2のエラー修
正パターン保持回路(15′)と、データ記録ブロック
内の複数のデータ部およびECCデータ部が逐次入力さ
れるごとに、第1のエラー修正パターン保持回路(15
)と第2のエラー修正パターン保持回路(15′)とを
交互にロード、ストアするように切り替え制御できる切
り替え回路(17)とをそなえ、 エラー修正パターン生成回路(16)の一方の入力へは
、データ記録ブロックの複数のデータ部およびECCデ
ータ部の各データを逐次的に印加するとともに、他方の
入力へは、第1と第2のエラー修正パターン保持回路(
15、15′)のうち直前にストア制御されていた方の
回路の内容をロードし、同時に、エラー修正パターン生
成回路(16)の出力を、直前にロード制御されていた
方のエラー修正パターン保持回路へストアし、 切り替え回路(17)は、今回入力されたデータ部にエ
ラーが検出されたとき、第1と第2のエラー修正パター
ン保持回路(15、15′)に対してロード、ストアの
切り替え制御を行なわず、現在の制御状態を保持して、
次に入力されるデータ部の処理を行なわせることを特徴
とするエラー修正回路。
[Scope of Claims] An error correction circuit that reads a data recording block including a plurality of data sections each having a check character and an ECC data section and automatically corrects errors in the data section, comprising an exclusive OR operation function. a 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; The error correction pattern holding circuit (15') and the first error correction pattern holding circuit (15') each time a plurality of data parts and ECC data parts in the data recording block are inputted sequentially.
) and a second error correction pattern holding circuit (15') are provided with a switching circuit (17) capable of switching control so as to alternately load and store the error correction pattern holding circuit (15'). , and sequentially apply each data of a plurality of data sections and an ECC data section of a data recording block, and to the other input, first and second error correction pattern holding circuits (
15, 15'), the contents of the circuit that was under store control immediately before are loaded, and at the same time, the output of the error correction pattern generation circuit (16) is held as the error correction pattern that was under load control immediately before. When an error is detected in the currently input data section, the switching circuit (17) performs load and store operations on the first and second error correction pattern holding circuits (15, 15'). Maintains the current control state without performing switching control,
An error correction circuit characterized in that it processes the next input data part.
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 true JPH01109440A (en) 1989-04-26
JPH0668730B2 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
JPH0668730B2 (en) 1994-08-31

Similar Documents

Publication Publication Date Title
JPS6050669A (en) Demodulating system of data
JPS63197123A (en) Error correcting and checking device
JPH0312874A (en) Digital signal regenerating device
JPH01109440A (en) Error correcting circuit
US5805618A (en) Reproducing apparatus for reproducing video information recorded together with error correction codes
JPH04186559A (en) Readout control system for magnetic tape
JPH043525A (en) Code error correcting device
KR100328818B1 (en) How to save data in flash memory
JPH01243268A (en) Data recording control system
JPS61127026A (en) Optical disk controller
JPH0520215A (en) Information processor
JPS63237264A (en) Information recording system
JP3082458B2 (en) Image modification device
JPH0363973A (en) Error corrector
JPH0440794B2 (en)
JPS6340939A (en) Error correcting and controlling system for control storage
JP2779540B2 (en) Magnetic tape unit
JP2000010808A (en) Circuit and method for backward reading of magnetic tape device
JPS607656A (en) Method for correcting skew of magnetically recorded data
JPS6269342A (en) Semiconductor disk device
JPH0675716A (en) Auxiliary storage
JPH0136137B2 (en)
JPH031374A (en) Error correcting system for magnetic tape unit
JPS61196341A (en) System for correcting memory error
JPH0561699A (en) Error correcting processor

Legal Events

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