JPH0379890B2 - - Google Patents

Info

Publication number
JPH0379890B2
JPH0379890B2 JP53084434A JP8443478A JPH0379890B2 JP H0379890 B2 JPH0379890 B2 JP H0379890B2 JP 53084434 A JP53084434 A JP 53084434A JP 8443478 A JP8443478 A JP 8443478A JP H0379890 B2 JPH0379890 B2 JP H0379890B2
Authority
JP
Japan
Prior art keywords
data
word
read
block
error
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 - Lifetime
Application number
JP53084434A
Other languages
Japanese (ja)
Other versions
JPS5511651A (en
Inventor
Kentaro Odaka
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP8443478A priority Critical patent/JPS5511651A/en
Publication of JPS5511651A publication Critical patent/JPS5511651A/en
Publication of JPH0379890B2 publication Critical patent/JPH0379890B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/18Error detection or correction; Testing, e.g. of drop-outs
    • G11B20/1806Pulse code modulation systems for audio signals

Description

【発明の詳細な説明】 本発明は、パリテイビツトに基づいて誤り訂正
用冗長ビツトが形成され、この誤り訂正用冗長ビ
ツトを用いてデータの誤りが訂正されるデータ誤
り訂正方法に関するものであり、特にパリテイビ
ツトを含む1ブロツクのデータ長が長い場合に適
用して好適なものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data error correction method in which redundant bits for error correction are formed based on parity bits, and data errors are corrected using the redundant bits for error correction. This is suitable for application when the data length of one block including parity bits is long.

パリテイビツトによる誤り訂正の基本的なもの
として、nワードのデータ(D1,D2…Do)に対
して(D1D2…Do=P1(偶数パリテイ))又は
1 2o=P1(奇数パリテイ))の関係を満
足するパリテイビツトとnワードのデータの夫々
の誤り検出が可能な冗長ビツト(パリテイビツ
ト、CRCコード等)とを付加して1ブロツクの
データを構成して伝送し、受信側において、1ブ
ロツク内の1ワードが誤つている場合には、その
誤りワードDiを除いて(D1D2…Do+P1
Di)又は(1 2o 1=Di)の演算
(mod.2の加算法に従つている。以下同様であ
る。)を行うことが正しいデータDiを得ることが
できるようにしたものがある。この誤り訂正処理
を実現する構成として並列処理方式と直列処理方
式とが考えられている。1ブロツク分のnワード
を並列出力として各ワードの対応するビツト同志
を加算処理する並列処理方式では、(n+1)ワ
ード分のレジスタと各ビツトごとに加算器(エク
スクルーシブオアゲート)とを必要とし、然も規
則正しくデータを読出して直列化する場合の制御
が複雑となる。受信データをシフトレジスタに供
給し、その出力をフイードバツクして受信データ
と加算する直列処理方式では、データを入れてお
くレジスタが1ワード分ですみ、また加算器も1
個ですむが、(D1〜Do、P1)のうちでnワードを
供給して初めて訂正されたデータが得られるの
で、誤りデータを訂正して正しい順序の直列デー
タを得るためには、nワード分バツフアメモリー
が必要となり、結局(n+1)個のレジスタを必
要とする。従つて、並列処理方式と比べてさほど
構成を簡単化できない。
As a basic error correction using parity bits, for n-word data (D 1 , D 2 ...D o ), (D 1 D 2 ...D o = P 1 (even parity)) or ( 1 2 ... o = P 1 (odd parity)) and redundant bits (parity bits, CRC code, etc.) that can detect errors in each n-word data are added to form one block of data and then transmitted. However, on the receiving side, if one word in one block is erroneous, excluding the error word Di, (D 1 D 2 ...D o +P 1 =
Di) or ( 1 2 ... o 1 = Di) operation (according to the addition method of mod.2. The same applies hereinafter) can be used to obtain correct data Di. . A parallel processing method and a serial processing method are considered as configurations for realizing this error correction processing. A parallel processing method that outputs one block of n words in parallel and adds the corresponding bits of each word requires a register for (n+1) words and an adder (exclusive OR gate) for each bit. However, control when regularly reading out data and serializing it becomes complicated. In the serial processing method, which supplies received data to a shift register, feeds back its output, and adds it to the received data, only one word of register is required to store the data, and one adder is required.
However, corrected data can only be obtained by supplying n words among (D 1 to D o , P 1 ), so in order to correct error data and obtain serial data in the correct order, , a buffer memory for n words is required, and in the end, (n+1) registers are required. Therefore, the configuration cannot be simplified much compared to the parallel processing method.

本発明は、上述の二つの方式に比べてレジスタ
(バツフアメモリー)の容量を低減化することが
でき、構成が安価且つ簡単なデータ誤り訂正装置
を実現することを目的とするものである。本発明
は、PCM記録再生装置等において伝送路で生じ
る時間軸変動分を除去するためにRAMが設けら
れていることに着目し、例えばこのRAMを用い
てその読出し速度を書込み速度の2倍とする。そ
して、このRAMに記憶された1ブロツクから第
1のデータが読出され、また、このブロツク以前
の1ブロツクから第2の出力データが読出され、
RAMから読出されるこれら第1及び第2の出力
データに基づいて誤り訂正処理を行うことによつ
て直列所処理方式において必要とされるバツフア
メモリを省略するようにしたものである。すなわ
ち、RAMに記憶された所定のブロツクから先行
して読出した第1の出力データから誤り訂正用の
冗長ビツトを形成すると共にこの誤り訂正用の冗
長ビツトが形成されるタイミングに合せてこのブ
ロツクから読出した第2の出力データを上記誤り
訂正用の冗長ビツトを用いて誤り訂正処理を行う
ことで、バツフアメモリを省略するものである。
例えば、1ブロツクが6ワードのデータと1ワー
ド分のパリテイビツト系列とから構成されている
場合において、RAMから読出された第2の出力
データSd2が第1図Aに示され、同図Bには同じ
く第1の出力データSd1が示されている。D1,n
及びDi,o+1は、夫々n番目及びn+1番目のブロ
ツクにおけるi番目の1ワードのデータを示し、
Fi,n及びFi,o+1は、対応するi番目のデータが
正しいか、誤つているかを示す判別ビツトを示
す。n番目及びn+1番目のブロツクに含まれて
いるパリテイビツト系列Po及びPo+1は、夫々のブ
ロツクに対応してRAMに書込れており、データ
の誤りが検出されない限り読出されない。また、
判別ビツトはRAMへの書込みに対して先行する
誤り検出例えばCRCによつて形成されており、
誤つている場合に“1”、誤りが検出されない場
合“0”に設定されて夫々のワードと共に記憶さ
れる。第1の出力データSd1について判別ビツト
が監視されており、例えば、n+1番目のブロツ
クにおける判別ビツトF4,o+1が“1”となつてお
り、データ〔D4,o+1〕が誤つていることが検知さ
れた場合には、RAMから誤りデータ〔D4,o+1
を読出す代わりににそのブロツクにおけるパリテ
イビツト系列Po+1を読出す。そして、誤りデータ
〔D4,o+1〕を除く出力データSd1を直列演算処理す
ることによつてn+1番目のブロツクのデータが
RAMから第2の出力データとして読出されるタ
イミングに対応して誤りが訂正された正しいデー
タD4,o+1を形成することができる。この正しいデ
ータD4,o+1をRAMから読出される第2の出力デ
ータSd2中に再び現れる誤りデータ〔D4,o+1〕と
置き代えて出力として取り出せば良い。
An object of the present invention is to realize a data error correction device that can reduce the capacity of a register (buffer memory) and has a simple and inexpensive configuration compared to the above-mentioned two methods. The present invention focuses on the fact that a RAM is provided in a PCM recording/reproducing device etc. in order to remove time axis fluctuations that occur in a transmission path, and uses this RAM to increase the reading speed to twice the writing speed. do. Then, the first data is read from one block stored in this RAM, and the second output data is read from one block before this block,
By performing error correction processing based on the first and second output data read from the RAM, the buffer memory required in the serial processing method is omitted. That is, redundant bits for error correction are formed from the first output data read out in advance from a predetermined block stored in the RAM, and at the same time the redundant bits for error correction are formed. By performing error correction processing on the read second output data using the redundant bits for error correction, the buffer memory is omitted.
For example, when one block consists of six words of data and one word of parity bit series, the second output data Sd2 read from the RAM is shown in FIG. 1A, and in FIG. 1B. Similarly, the first output data Sd 1 is shown. D 1 ,n
and D i,o+1 indicate the data of the i-th one word in the n-th and n+1-th blocks, respectively,
Fi,n and F i,o+1 indicate determination bits indicating whether the corresponding i-th data is correct or erroneous. The parity bit series P o and P o+1 included in the nth and n+1st blocks are written in the RAM corresponding to the respective blocks, and are not read out unless a data error is detected. Also,
The discrimination bit is formed by error detection, such as CRC, that precedes writing to RAM.
If an error is detected, it is set to "1", and if no error is detected, it is set to "0" and stored together with the respective word. The discrimination bit for the first output data Sd 1 is monitored. For example, the discrimination bit F 4,o+1 in the n+1st block is "1", and the data [D 4,o+1 ] is If an error is detected, the error data [D 4,o+1 ] is saved from RAM.
Instead of reading the parity bit sequence P o+1 in that block. Then, by serially processing the output data Sd 1 excluding the error data [D 4,o+1 ], the data of the n+1th block is
Correct error-corrected data D 4,o+1 can be formed in accordance with the timing at which the second output data is read from the RAM. This correct data D 4,o+1 can be replaced with the error data [D 4,o+1 ] that appears again in the second output data Sd 2 read from the RAM and taken out as an output.

上述した本発明方法によるデータ誤り訂正を行
う装置の一例が第2図に示されている。尚、本発
明で述べるRAMとは、この第2図において、
RAM1及びフリツプフロツプ13a,13b,
14a,14bを指している。第2図において、
1はRAMを示し、PCM記録再生装置で再生され
た再生データがCRCチエツカを介され、これに
よつて判別ビツトが1ワード毎に付加された形態
の入力データがRAM1の入力端2に供給され
る。3a,4a,5aは、書込みアドレス信号を
発生するビツトカウンタ、ワードカウンタ、ブロ
ツクカウンタを夫々示し、3b,4b,5bは、
読出しアドレス信号を発生するビツトカウンタ、
ワードカウンタ、ブロツクカウンタを夫々示す。
データセレクタ6によつて書込みアドレス信号と
読出しアドレス信号との何れかが選択されて
RAM1に与えられる。
An example of an apparatus for correcting data errors according to the method of the present invention described above is shown in FIG. In addition, the RAM described in the present invention is as shown in FIG.
RAM1 and flip-flops 13a, 13b,
14a and 14b. In Figure 2,
Reference numeral 1 indicates a RAM, in which the playback data played back by the PCM recording/playback device is passed through a CRC checker, whereby input data in the form of a discrimination bit added to each word is supplied to the input terminal 2 of the RAM1. Ru. 3a, 4a, and 5a indicate a bit counter, word counter, and block counter, respectively, which generate write address signals; 3b, 4b, and 5b,
a bit counter that generates the read address signal;
A word counter and a block counter are shown respectively.
Either the write address signal or the read address signal is selected by the data selector 6.
Given to RAM1.

アンドゲート7に書込みデート信号PWGと書
込みビツトクロツクPWBCが供給され、アンド
ゲート7の出力がビツトアドレスカウンタ3aに
供給される。この例のPCM記録再生装置は、
VTR(ビデオテープレコーダ)を伝送手段として
用いており、記録又は再生されるPCM信号がテ
レビジヨン信号と同一の信号形態とされている。
即ち第4図Aに示すようにテレビジヨン信号と等
しい長さの1フイールド(1V)期間内で垂直ブ
ラツキング期間に相当するデータ欠如期間が設け
られ、また、第4図Cに示すようにテレビジヨン
信号と等しい長さの1水平期間(1H)内で水平
ブランキング期間に相当するデータ欠如期間が設
けられた形態となされている。書込みゲート信号
PWGは、第4図B及びDに示すようにデータ欠
如期間で“0”となり、このデータ欠如期間にお
ける書込み動作を停止するためのものである。
A write date signal PWG and a write bit clock PWBC are supplied to AND gate 7, and the output of AND gate 7 is supplied to bit address counter 3a. This example PCM recording/playback device is
A VTR (video tape recorder) is used as a transmission means, and the PCM signal recorded or played back has the same signal format as a television signal.
That is, as shown in FIG. 4A, a data missing period corresponding to the vertical blacking period is provided within one field (1V) period of the same length as the television signal, and as shown in FIG. A data missing period corresponding to a horizontal blanking period is provided within one horizontal period (1H) having the same length as the signal. write gate signal
PWG becomes "0" during the data missing period as shown in FIGS. 4B and 4D, and is used to stop the write operation during this data missing period.

第5図に示すように読出しビツトクロツク
PRBCに対して同期し、且つその2倍の周波数の
読出しビツトクロツク2PRBCが形成される。上
述の書込みビツトクロツクPWBCは、再生信号
中の同期信号に同期するようにPLL回路等によ
つて形成されるのに対し、読出しビツトクロツク
PRBCは、一定周波数のもので基準発振器の出力
を分周して形成され、両者によりジツタ等の時間
軸変動分の吸収が図られている。この例のように
再生データにデータ欠如期間が存在しているとき
には、データ欠如期間を除去する時間軸伸長が必
要とされ、そのために書込みビツトクロツク
PWBの周波数に比して読出しビツトクロツク
PRBCの周波数が低くされている。時間軸伸長処
理のためにRAM1が非同期で書込み動作及び読
出し動作を行なうようにデータセレクタ6及び
RAM1が制御され、その制御信号がR/W制御
回路8から発生する。このR/W制御回路8に対
してアンドゲートを介された書込みビツトクロツ
クPWBCと読出しビツトクロツク2PRBCとが供
給され、書込み速度の略2倍の読出し速度でデー
タを読出すように制御される。
The read bit clock as shown in FIG.
A read bit clock 2PRBC is formed which is synchronized with PRBC and has twice its frequency. The write bit clock PWBC mentioned above is formed by a PLL circuit or the like so as to be synchronized with the synchronization signal in the reproduction signal, whereas the read bit clock PWBC is
The PRBC has a constant frequency and is formed by frequency-dividing the output of the reference oscillator, and both of them are used to absorb time-axis fluctuations such as jitter. When there is a period of missing data in the reproduced data, as in this example, time axis expansion is required to remove the period of missing data.
Read bit clock frequency compared to PWB frequency
PRBC frequency has been lowered. The data selector 6 and
The RAM 1 is controlled and its control signal is generated from the R/W control circuit 8. A write bit clock PWBC and a read bit clock 2 PRBC are supplied to the R/W control circuit 8 via an AND gate, and the data is controlled to be read at a read speed approximately twice the write speed.

読出し側のワードカウンタ4bの出力がアドレ
スロード回路9を介してデータセレクタ6に供給
される。アドレスロード回路9は、アンドゲート
10の出力で制御され、アンドゲート10の出力
が“1”となる期間でのみ読出しワードアドレス
がパリテイビツト系列のアドレスとなされる。こ
のアンドゲート10には、制御回路12からの制
御信号P1と読出しビツトクロツクPRBCとが供給
される。また、読出し側のブロツクカウンタ5b
の出力がフルアダー11の一方の加算入力とさ
れ、他方の加算入力の最下位ビツト入力として読
出しビツトクロツクPRBCが供給される。第5図
に示す読出しビツトクロツク2PRBCの立上りの
タイミングを読出し命令とすると、読出しビツト
クロツクPRBCが“0”の期間Toではブロツク
アドレスがn番目となつており、これが“1”の
期間To+1ではブロツクアドレスがひとつ進んだ
n+1番目となり、従つて1ビツト周期内でn番
目のブロツクとn+1番目のブロツクとの夫々か
らデータが交互に読出されることになる。また、
アンドゲート10に読出しビツトクロツクPRBC
が供給されるので、パリテイビツト系列のワード
アドレスが指定されるのは、n+1番目のブロツ
クに関する読出し動作がなされているときだけで
ある。
The output of word counter 4b on the read side is supplied to data selector 6 via address load circuit 9. Address load circuit 9 is controlled by the output of AND gate 10, and the read word address is set to be a parity bit series address only during the period in which the output of AND gate 10 is "1". This AND gate 10 is supplied with a control signal P1 from a control circuit 12 and a read bit clock PRBC. Also, the block counter 5b on the reading side
The output of the full adder 11 is used as one addition input, and the read bit clock PRBC is supplied as the least significant bit input of the other addition input. If the timing of the rise of the read bit clock 2 PRBC shown in FIG. 5 is taken as a read command, the block address is nth in the period T o when the read bit clock PRBC is "0", and this is the period T o+1 when the read bit clock PRBC is "1". Then, the block address advances by one to the (n+1)th block, and therefore data is read out alternately from the nth block and the (n+1)th block within one bit period. Also,
Read bit clock PRBC to AND gate 10
is supplied, the word address of the parity bit series is specified only when a read operation is being performed for the (n+1)th block.

RAM1の読出し出力がDフリツプフロツプ1
3a及び13bに入力され、フリツプフロツプ1
3bのクロツク入力として読出ビツトクロツク
PRBCが供給されると共に、フリツプフロツプ1
3aのクロツク入力としてその反転されたものが
供給され、従つてフリツプフロツプ13aによつ
てn+1番目のブロツクの読出し出力が選択さ
れ、フリツプフロツプ13bによつてn番目のブ
ロツクの読出し出力が選択される。フリツプフロ
ツプ13a,13bの出力が夫々供給されるフリ
ツプフロツプ14a,14bが設けられ、これら
フリツプフロツプ14a,14bに対して共通に
読出しビツトクロツクPRBCが供給されることに
よつてフリツプフロツプ14a,14bの夫々か
ら同期して第1のデータ出力Sd1及び第2のデー
タ出力Sd2が現れる。この例では、1ブロツク分
のデータが6ワードとされており、第3図A及び
Cに夫々データ出力Sd1及びSd2が示されている。
データ出力Sd2は、セレクタ15の一方の入力端
に供給される。
Read output of RAM1 is D flip-flop 1
3a and 13b, flip-flop 1
Read bit clock as clock input of 3b.
PRBC is supplied and flip-flop 1
3a is supplied as the clock input, so that the read output of the n+1th block is selected by the flip-flop 13a, and the read output of the n-th block is selected by the flip-flop 13b. Flip-flops 14a and 14b are provided to which the outputs of flip-flops 13a and 13b are respectively supplied, and a read bit clock PRBC is commonly supplied to these flip-flops 14a and 14b, so that the outputs of the flip-flops 14a and 14b are synchronized. A first data output Sd 1 and a second data output Sd 2 appear. In this example, one block of data is 6 words, and data outputs Sd 1 and Sd 2 are shown in FIGS. 3A and 3C, respectively.
The data output Sd 2 is supplied to one input end of the selector 15 .

第6図Aに示すようにデータの1ワード例えば
Di,nの最初の2ビツトの位置に判別ビツトFi,
nが挿入され、図示せずもパリテイビツト系列に
対しても同様に判別ビツトが挿入されている。判
別ビツトFi,nが“0”のときは、そのワードが
正しいデータであることを示し、これが“1”の
ときは、誤りデータであることを示す。PCM記
録時では、ドロツプアウト等に起因するバースト
誤りの分散化の目的で複数ブロツクを単位とする
インターリーブ(順序の並び変え)又は、1ブロ
ツクの7ワードを順次遅延させる畳み込みコード
化などが行われ、この何れかの処理の結果のデー
タ及びパリテイビツト系列の複数ワード毎に誤り
検出用コード例えばCRCコードが付加される。
そして再生時では、CRCコードで誤りを検出し
た後にデインターリーブ又は遅延処理がなされて
元の順序のデータ配列となされる。この再生時の
処理は、RAM1のアドレス制御を工夫すること
で可能である。RAM1の読出しビツトアドレス
を制御することによつて1ワードの最初の2ビツ
トの位置に判別ビツトを挿入することができる。
出力データSd1及びSd2の夫々から判別ビツトを
取り出すために、フリツプフロツプ16a及び1
6bが設けられている。ワードカウンタ4bから
のワードクロツクと第6図Bに示す読出しビツト
クロツクPRBCとから第6図Cに示すように判別
ビツトに対応するタイミングのクロツクパルス
P2が形成され、このクロツクパルスP2がフリツ
プフロツプ16a及び16bに供給される。従つ
てフリツプフロツプ16aからn+1番目のブロ
ツクの各ワードの判別ビツトFi,o+1が得られると
きには、フリツプフロツプ16bからn番目のブ
ロツクの各ワードの判別ビツトFi,nが得られ、
この判別ビツトが制御回路12に供給される。
For example, one word of data as shown in FIG.
Discrimination bits Fi,
n is inserted, and a discrimination bit (not shown) is similarly inserted into the parity bit series. When the discrimination bit Fi,n is "0", it indicates that the word is correct data, and when it is "1", it indicates that it is error data. During PCM recording, interleaving (reordering) of multiple blocks or convolutional coding that sequentially delays the 7 words of one block is performed in order to disperse burst errors caused by dropouts, etc. An error detection code, such as a CRC code, is added to the data resulting from any of these processes and to each word of the parity bit series.
During playback, after an error is detected using the CRC code, deinterleaving or delay processing is performed to arrange the data in the original order. This processing at the time of reproduction can be done by devising the address control of RAM1. By controlling the read bit address of RAM1, it is possible to insert determination bits into the first two bit positions of one word.
In order to extract the discrimination bits from the output data Sd 1 and Sd 2 , flip-flops 16a and 1
6b is provided. From the word clock from the word counter 4b and the read bit clock PRBC shown in FIG. 6B, a clock pulse at a timing corresponding to the discrimination bit as shown in FIG. 6C is generated.
P 2 is formed and this clock pulse P 2 is applied to flip-flops 16a and 16b. Therefore, when the discriminating bit F i,o+1 of each word of the n+1th block is obtained from the flip-flop 16a, the discriminating bit F i,n of each word of the n-th block is obtained from the flip-flop 16b,
This discrimination bit is supplied to the control circuit 12.

また、出力データSd1が(mod.2)の加算器と
してのエクスクルーシブオアゲート17の一方の
入力端に加えられ、エクスクルーシブオアゲート
17の出力がシフトレジスタ18及び21に供給
される。シフトレジスタ18及び21の夫々は、
1ワードのビツト数と等しいビツト数のものであ
る。シフトレジスタ18及び21の夫々に対して
アンドゲート19及び22を介された読出しビツ
トクロツクPRBCがクロツク入力として加えられ
る。アンドゲート19及び22の夫々には、制御
回路12からゲート信号P3及びP5が供給される。
シフトレジスタ18の出力がアンドゲート20を
介してエクスクルーシブオアゲート17の他方の
入力端にフイードバツクされる。アンドゲート2
0に制御回路12から各ブロツクの最初の1ワー
ド期間で“0”となるゲート信号P4が供給され
る。エクスクルーシブオアゲート17とシフトレ
ジスタ18とアンドゲート20とによつて訂正演
算処理がなされ、得られた正しいデータがゲート
信号P5によつてシフトレジスタ21に取り込ま
れ、出力データSd2における所定のタイミングで
やはりゲート信号P5によつて正しいデータが取
り出されてセレクタ15の他方の入力端に供給さ
れる。セレクタ15は、制御回路12からのセレ
クタ制御信号P6が“1”の期間でシフトレジス
タ21からの正しいデータを出力端23に導くよ
うに切替えられる。なお、アンドゲート19に供
給されるゲート信号P3は、第6図Dに示すよう
に各ワードのうちの最初の2ビツトの期間で
“0”となり、判別ビツトをエクスクルーシブオ
アゲート17に加えることを阻止するためのもの
である。
Further, the output data Sd 1 is applied to one input terminal of an exclusive OR gate 17 as a (mod. 2) adder, and the output of the exclusive OR gate 17 is supplied to shift registers 18 and 21. Each of the shift registers 18 and 21 is
The number of bits is equal to the number of bits in one word. A read bit clock PRBC via AND gates 19 and 22 is applied as a clock input to shift registers 18 and 21, respectively. Gate signals P 3 and P 5 are supplied from the control circuit 12 to the AND gates 19 and 22, respectively.
The output of the shift register 18 is fed back to the other input terminal of the exclusive OR gate 17 via an AND gate 20. and gate 2
0 is supplied from the control circuit 12 with a gate signal P4 which becomes "0" during the first one word period of each block. Correction calculation processing is performed by the exclusive OR gate 17, shift register 18, and AND gate 20, and the obtained correct data is taken into the shift register 21 by the gate signal P5 , and the correct data is inputted at a predetermined timing in the output data Sd2 . Again, the correct data is taken out by the gate signal P5 and supplied to the other input terminal of the selector 15. The selector 15 is switched so as to lead correct data from the shift register 21 to the output terminal 23 during a period in which the selector control signal P 6 from the control circuit 12 is "1". Note that the gate signal P3 supplied to the AND gate 19 becomes "0" during the first two bits of each word as shown in FIG. It is intended to prevent

上述の本発明の一実施例において、n+1番目
のブロツクの3番目のワードが誤つているときの
動作について説明する。この場合では、判別ビツ
トF3,o+1が“1”となるから、これがフリツプフ
ロツプ16aで検出され、制御回路12から第3
図Bに示す制御信号P1発生する。この制御信号
P1によりn+1番目のブロツクに関しては、ワ
ードアドレスがパリテイビツト系列のアドレスと
なり、n+1番目のブロツクに関するパリテイビ
ツト系列Po+1が読出される。これに対しn番目の
ブロツクのワードアドレスは、データのアドレス
であるから、正誤を問わずそのままデータの1ワ
ードD3,nが読出される(第3図C参照)。な
お、パリテイビツト系列Po+1の最初の2ビツトも
判別ビツトであるから、その2番目の判別ビツト
がフリツプフロツプ16aによつて検出され、仮
にパリテイビツト系列Po+1が誤つている場合に
は、訂正が不可能となるので、制御信号P1
“1”とせずに誤りデータ〔D3,o+1〕をそのまま
読出し、他の平均値補間等の補正処理を施すよう
になされる。また、1ブロツク内の2ワード以上
が誤つている場合には、訂正が不可能であるか
ら、2ワード以上に誤りが含まれている場合も、
上述と同様の補正処理を施すようになされる。こ
れらの補正処理に必要な情報は、出力データSd1
から得ることができ、これらの補正処理は、セレ
クタ15の出力側で行なわれる。
In the embodiment of the present invention described above, the operation when the third word of the (n+1)th block is incorrect will be described. In this case, since the discrimination bit F3 ,o+1 becomes "1", this is detected by the flip-flop 16a and sent from the control circuit 12 to the third
A control signal P1 shown in Figure B is generated. This control signal
P1 causes the word address to become the address of the parity bit series for the (n+1)th block, and the parity bit series P o+1 for the (n+1)th block is read out. On the other hand, since the word address of the n-th block is a data address, one word of data D 3 ,n is read out as is, regardless of whether it is correct or incorrect (see FIG. 3C). Note that the first two bits of the parity bit series P o+1 are also discriminating bits, so if the second discriminating bit is detected by the flip-flop 16a and the parity bit series P o+1 is incorrect, Since correction is impossible, the error data [D 3,o+1 ] is read out as is without setting the control signal P 1 to "1", and other correction processing such as average value interpolation is performed. Also, if two or more words in one block are incorrect, correction is impossible, so even if two or more words contain errors,
Correction processing similar to that described above is performed. The information necessary for these correction processes is output data Sd 1
These correction processes are performed on the output side of the selector 15.

また、第3図Dに示すゲート信号P4によつて
各ブロツクの最初の1ワード期間では、アンドゲ
ート20の出力が“0”となるので、エクスクル
シブオアゲート17の出力には、第3図Eに示す
ように各ブロツクの最初の1ワード例えばD1,o+1
が現れる。D1,o+1のうちの判別ビツト以外がシフ
トレジスタ18に取り込まれる。次のワードタイ
ムから次のn+2番目のブロツクの最初のタイミ
ング迄ゲート信号P4が“1”であるから、シフ
トレジスタ18からアンドゲート20を介してエ
クスクルーシブオアゲート17に対しD1,o+1がフ
イードバツクされ、2番目のワードタイムで
(D2,o+1D1,o+1)の演算結果がシフトレジスタ1
8に生じる。以下、この演算動作が繰返され、n
+1番目のブロツクの最初の6番目のワードタイ
ムでは、(D6,o+1D5,o+1D4,o+1Po+1D2,o+1
D1,o+1)の演算結果即ち誤りが訂正されたデータ
D3,o+1が発生する。ここで第3図Fに示すように
ゲート信号P5が各ブロツクの6番目のワードタ
イムで“1”となるので、得られた正しいデータ
D3,o+1をシフトレジスタ21に取り込むことがで
きる。
Furthermore, the output of the AND gate 20 becomes "0" in the first word period of each block due to the gate signal P4 shown in FIG. As shown in Figure E, the first word of each block, for example D 1,o+1
appears. Of D1 ,o+1, the bits other than the discrimination bit are taken into the shift register 18. Since the gate signal P4 is "1" from the next word time to the first timing of the next n+2th block, D1 ,o+1 is sent from the shift register 18 to the exclusive OR gate 17 via the AND gate 20. is fed back, and the operation result of (D 2,o+1 D 1,o+1 ) is transferred to shift register 1 at the second word time.
Occurs at 8. Hereafter, this calculation operation is repeated, and n
+In the first 6th word time of the 1st block, (D 6,o+1 D 5,o+1 D 4,o+1 P o+1 D 2,o+1
D 1,o+1 ) operation result, that is, error-corrected data
D 3,o+1 occurs. Here, as shown in Figure 3F, the gate signal P5 becomes "1" at the 6th word time of each block, so the obtained correct data
D 3,o+1 can be taken into the shift register 21.

また、出力データSd2は、第3図C示すように
n+1番目のブロツクの誤りデータ〔D3,o+1〕を
そのまま含むものとなり、従つてフリツプフロツ
プ16bで取り出される判別ビツトF3,o+1が“1”
となる。これによつて第3図Fに示すように
〔D3,o+1〕のワードタイムで“1”となるゲート
信号P5と同図Gに示すように同一のタイミング
で“1”となるセレクタ制御信号P6とが制御回
路12から発生する。これらのゲート信号P5
びセレクタ制御信号P6によつてシフトレジスタ
21に貯えられている正しいデータD3,o+1が読出
されると共に、セレクタ15を介して出力端23
に取り出される。つぎのデータD4,o+1は正しいの
で、セレクタ15で出力データSd2が取り出され
る。以上の動作によつて出力端23に誤りが訂正
された出力データを得ることができる。
Furthermore, as shown in FIG. 3C, the output data Sd 2 includes the error data [D 3,o+1 ] of the n+1th block as it is, and therefore the discrimination bit F 3,o+ taken out by the flip-flop 16b. 1 is “1”
becomes. As a result, the gate signal P5 becomes "1" at the word time of [D 3,o+1 ] as shown in Fig. 3F, and becomes "1" at the same timing as shown in Fig. 3G. A selector control signal P 6 is generated from control circuit 12 . Correct data D 3,o+1 stored in the shift register 21 is read out by these gate signal P 5 and selector control signal P 6 and is also read out from the output terminal 23 via the selector 15.
It is taken out. Since the next data D4,o+1 is correct, the selector 15 extracts the output data Sd2 . Through the above operations, error-corrected output data can be obtained at the output terminal 23.

上述のように、本発明に依れば、訂正演算用の
1ワード分のシフトレジスタ18と、その結果を
貯えるための1ワード分のシフトレジスタ21と
1個のエクスクルーシブオアゲート17とによつ
て誤りを訂正することができ、頗る簡単な構成の
誤り訂正装置を実現することができる。特に、1
ブロツクの長さが上述実施例のように7ワードの
ように長く或いはそれ以上に長くなつても誤り訂
正処理に必要な構成が全く複雑とならないことに
本発明の特長がある。更に、上述例のように第2
の出力データSd2が誤りデータをそのまま含むよ
うに読出しアドレスを制御すれば、この誤りデー
タを正しいデータと置換する処理を容易になしう
る利益がある。
As described above, according to the present invention, the shift register 18 for one word for correction calculation, the shift register 21 for one word for storing the result, and one exclusive OR gate 17 are used. It is possible to realize an error correction device that can correct errors and has a very simple configuration. In particular, 1
A feature of the present invention is that even if the block length is as long as 7 words or longer as in the above-described embodiment, the configuration required for error correction processing does not become complicated at all. Furthermore, as in the above example, the second
If the read address is controlled so that the output data Sd 2 of 2 contains the error data as is, there is an advantage that the process of replacing the error data with correct data can be easily performed.

なお、訂正演算処理によつて得られる正しいデ
ータがシフトレジスタ21に貯えておく代わり
に、この正しいデータを一旦RAM1の該当する
データのアドレスに書込んで誤りデータとおきか
え、その後RAM1のデータを読みだすようにし
ても良い。この場合には、誤りが訂正されたデー
タを貯えておくための記憶手段が不要となる。
Note that instead of storing the correct data obtained through the correction calculation processing in the shift register 21, this correct data is temporarily written to the address of the corresponding data in RAM1 to replace the error data, and then the data in RAM1 is read. You may also try to release it. In this case, there is no need for a storage means for storing error-corrected data.

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

第1図は本発明の説明に用いる線図、第2図は
本発明方法によるデータ誤り訂正を行なう装置の
一例のブロツク図、第3図はその説明に用いるタ
イムチヤート、第4図は書込みゲート信号の説明
に用いる波形図、第5図は読出しビツトクロツク
の説明に用いる波形図、第6図は判別ビツトの説
明に用いる波形図である。 1はRAM、3a,4a,5aは書込みアドレ
ス信号を発生するカウンタ、3b,4b,5bは
読出しアドレス信号を発生するカウンタ、6はデ
ータセレクタ、9はアドレスロード回路、11は
フルアダー、12は制御回路、15はセレクタ、
17はエクスクルーシブオアゲート、18,21
はシフトレジスタである。
FIG. 1 is a diagram used to explain the present invention, FIG. 2 is a block diagram of an example of a device for correcting data errors according to the method of the present invention, FIG. 3 is a time chart used for the explanation, and FIG. 4 is a write gate. FIG. 5 is a waveform diagram used to explain the signals, FIG. 5 is a waveform diagram used to explain the read bit clock, and FIG. 6 is a waveform diagram used to explain the discrimination bit. 1 is a RAM, 3a, 4a, 5a are counters that generate write address signals, 3b, 4b, 5b are counters that generate read address signals, 6 is a data selector, 9 is an address load circuit, 11 is a full adder, 12 is a control circuit, 15 is a selector,
17 is exclusive or gate, 18, 21
is a shift register.

Claims (1)

【特許請求の範囲】 1 所定数のデータワードと各データワードのパ
リテイ判別ビツトとで形成されたパリテイワード
と上記データワードに誤りの可能性があるかどう
かを示すデータワード毎の判別情報とを有するデ
ータを1ブロツクとしてRAMに書き込み、 上記RAMから第1のデータブロツクのデータ
ワード及び判別情報を第1のタイミングで順次読
出して、その読み出されたデータワードをワード
単位で順次演算し、読み出された判別情報により
データワードに誤りの可能性が検出されるとデー
タワードに変えて上記パリテイワードとを演算
し、 上記演算により訂正データワードを形成し、 上記第1のデータブロツクの各データワードを
上記第1のタイミングより送れた第2のタイミン
グで順次読み出し、 上記第2のタイミングで読みだされたデータワ
ードの内上記誤りの可能性の検出されたデータワ
ードを上記訂正データワードと置き換えるように
したことを特徴とするデータ誤り訂正方法。 2 所定数のデータワードと各データワードのパ
リテイ判別ビツトとで形成されたパリテイワード
と上記データワードに誤りの可能性があるかどう
かを示すデータワード毎の判別情報とを有するデ
ータを1ブロツクとしてRAMに書込み、 上記RAMから第1のデータブロツクのデータ
ワード及び判別情報を第1のタイミングで順次読
出して、その読み出されたデータワードをワード
単位で順次演算し、読み出された判別情報により
データワードに誤りの可能性が検出されるとデー
タワードに変えて上記パリテイワードとを演算
し、上記演算により訂正データワードを形成し、 上記訂正データワードを上記RAMの上記誤り
の可能性の検出されたデータワードのアドレスに
書込んで上記誤りデータワードと置き換え、 上記第1のタンミングより遅れた第2のタイミ
ングで上記RAMより置き換えられた上記訂正デ
ータワードを含む第1のデータブロツクのデータ
ワードを読み出すようにしたことを特徴とするデ
ータ誤り訂正方法。
[Claims] 1. A parity word formed of a predetermined number of data words and a parity determination bit of each data word, and determination information for each data word indicating whether or not there is a possibility of an error in the data word. write data having one block into the RAM, sequentially read the data words and discrimination information of the first data block from the RAM at a first timing, and sequentially calculate the read data words word by word; When a possibility of an error is detected in the data word based on the read discrimination information, the data word is replaced with the parity word, and the above parity word is calculated, a corrected data word is formed by the above calculation, and the first data block is Each data word is sequentially read out at a second timing that is sent from the first timing, and the data word in which the possibility of an error has been detected among the data words read out at the second timing is converted into the corrected data word. A data error correction method characterized by replacing the . 2. One block of data having a parity word formed by a predetermined number of data words and parity determination bits of each data word, and determination information for each data word indicating whether or not there is a possibility of an error in the data word. The data words and discrimination information of the first data block are sequentially read from the RAM at the first timing, and the read data words are sequentially calculated word by word, and the read discrimination information is written to the RAM as follows. When a possibility of an error is detected in the data word, the data word is replaced with the above parity word, and a corrected data word is formed by the above operation. write to the address of the detected data word to replace the erroneous data word, and write the first data block containing the corrected data word replaced from the RAM at a second timing delayed from the first timing. A data error correction method characterized in that a data word is read out.
JP8443478A 1978-07-11 1978-07-11 Code error correction device Granted JPS5511651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8443478A JPS5511651A (en) 1978-07-11 1978-07-11 Code error correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8443478A JPS5511651A (en) 1978-07-11 1978-07-11 Code error correction device

Publications (2)

Publication Number Publication Date
JPS5511651A JPS5511651A (en) 1980-01-26
JPH0379890B2 true JPH0379890B2 (en) 1991-12-20

Family

ID=13830469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8443478A Granted JPS5511651A (en) 1978-07-11 1978-07-11 Code error correction device

Country Status (1)

Country Link
JP (1) JPS5511651A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61150530A (en) * 1984-12-25 1986-07-09 Matsushita Electric Ind Co Ltd Error correcting device
JPS61150531A (en) * 1984-12-25 1986-07-09 Matsushita Electric Ind Co Ltd Error correcting device

Also Published As

Publication number Publication date
JPS5511651A (en) 1980-01-26

Similar Documents

Publication Publication Date Title
US5060077A (en) Reproduction apparatus having means for initializing flag memories during slow motion and freeze reproduction
US4409627A (en) Video signal decoding circuit
JPS6052509B2 (en) Digital signal transmission method
JPH0525233B2 (en)
US4700240A (en) Digital data playback system
JPH0520105A (en) Error correction device of degital data
US5191437A (en) Digital image signal playback circuit for combining two channel parallel picture data into a single channel
US4914661A (en) Method and apparatus for correcting errors in digital signals having phase fluctuations
JPS58139317A (en) Time axis correction circuit
EP0294841A2 (en) Memory control system
US5267100A (en) Magnetic recording apparatus with erroneous recording compensation
JPH0379890B2 (en)
JPS63160068A (en) Correcting device for time axis of digital signal
JPS6338897B2 (en)
JP3520156B2 (en) Digital signal reproducing method and digital signal reproducing apparatus
JPH0448473A (en) Digital video signal reproducing device
JP3101528B2 (en) Recording and playback device
JP3768640B2 (en) Playback device
JP3232563B2 (en) Video playback device
JPH0863904A (en) Data reproducing device
JPS6313366B2 (en)
JPS6151348B2 (en)
JPS6247872A (en) Time base correcting circuit
JPS62150559A (en) Pcm signal recording and reproducing device
JPS63167482A (en) Magnetic recording and reproducing device