JPS6213128A - Error correction system - Google Patents
Error correction systemInfo
- Publication number
- JPS6213128A JPS6213128A JP60153183A JP15318385A JPS6213128A JP S6213128 A JPS6213128 A JP S6213128A JP 60153183 A JP60153183 A JP 60153183A JP 15318385 A JP15318385 A JP 15318385A JP S6213128 A JPS6213128 A JP S6213128A
- Authority
- JP
- Japan
- Prior art keywords
- error
- data
- error flag
- access
- correction
- 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
Links
- 238000012937 correction Methods 0.000 title claims abstract description 113
- 238000000034 method Methods 0.000 claims abstract description 22
- 208000011580 syndromic disease Diseases 0.000 claims abstract description 10
- 230000014759 maintenance of location Effects 0.000 claims 1
- 238000012545 processing Methods 0.000 abstract description 16
- 238000001514 detection method Methods 0.000 description 36
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Detection And Correction Of Errors (AREA)
- Error Detection And Correction (AREA)
Abstract
Description
【発明の詳細な説明】
本発明はエラー・フラグの付加されたデータの誤り訂正
と訂正後にエラー・フラグの更新を行なう方式に関する
ものであり、特に複数の符号により多重に誤り検出及び
誤り訂正符号化されたデータの誤り訂正を繰り返し行な
うような方式に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for error correction of data to which an error flag has been added and for updating the error flag after the correction. This invention relates to a method for repeatedly correcting errors in encoded data.
まず本発明における誤り訂正方式の説明において用いら
れる誤シ訂正符号について説明する。ここで用いるのは
リード・ソロモン符号であり、符号長をnとして情報デ
ータW−(j=] 、2・・・、n−2)に2つの検査
データP、Qを付加して符号語を構成する。P、Qは次
式を満たすように生成される。First, the error correction code used in the explanation of the error correction method according to the present invention will be explained. The Reed-Solomon code used here is a code word that is created by adding two check data P and Q to the information data W-(j=], 2..., n-2) with a code length of n. Configure. P and Q are generated to satisfy the following equation.
すなわち、
1」−α 1+α
但し加算は2を法とするものとし、各データはmビット
からなり、αはガロア体GF (2′rn)上の原始元
とする。符号語中に誤りが発生した場合は以下のように
して訂正される。That is, 1''-α 1+α However, the addition is modulo 2, each data consists of m bits, and α is a primitive element on the Galois field GF (2'rn). If an error occurs in the codeword, it is corrected as follows.
誤シを含んだ情報データ及び検査データに対して、下記
の様に定義されるシンドロームSP、SQヲ算出する。Syndromes SP and SQ defined as below are calculated for information data and inspection data containing errors.
誤ったデータが1つもなければS、−5Q=Oとなる。If there is no erroneous data, S, -5Q=O.
2つの情報データの誤りがj、にの位置(1≦j<k≦
n−2)に発生し、その結果Wj、 Wkがそれぞれ叫
−Wj+gj、Wえ−Wk+ e kになったものとす
る。但し、ej+ 11’ kはWj、Wkの誤りパタ
ーンである。このときSP、SQは以下のようになる。The error in the two information data is at position j (1≦j<k≦
n-2), and as a result, Wj and Wk become -Wj+gj and We-Wk+ek, respectively. However, ej+11'k is the error pattern of Wj and Wk. At this time, SP and SQ are as follows.
e・+αn−k。e・+αn−k.
これよ’:) e j+ e kを求めると但し、加算
は2を法として(八るので減算と同じになる。This is it':) Calculating e j + e k However, addition is modulo 2 (8, so it is the same as subtraction.
したがって、あらかじめ他の手段により誤り位置j、k
が求まっていれば、上式によりej、Pkが求まり誤り
訂正が可能となる。また1つの情報データの誤りがjの
位置に発生し、誤りパターンをejとすると」二式にお
いてe k=OとしてSP−6j
これより
SQ
このとき位置jがあらかじめ求まっていなくてもSP、
S、、よりαjを求めることによりjが求められejは
SPそのものなので、誤り訂正が可能となる。Therefore, error positions j, k are determined in advance by other means.
If , is determined, ej and Pk can be determined using the above equation, and error correction becomes possible. In addition, if an error in one information data occurs at position j, and the error pattern is ej, then in Equation 2, e k = O, SP-6j From this, SQ In this case, even if position j is not determined in advance, SP,
Since j is obtained by obtaining αj from S, and ej is SP itself, error correction is possible.
以上説明したように、2つの検査データを持つリード・
ソロモン符号においては、符号語中のデ−夕誤りに対し
、誤りの位置が既知であれば2つのデータ、既知でなけ
れば1つのデータの訂正が可能である。また、情報デー
タW、の誤りについてのみ説明したが、P、Qの誤りに
ついても同様であり、Pをn−1番目、Qをn番目のデ
ータとして取り扱えばよい。As explained above, a lead with two test data
In the Solomon code, for a data error in a code word, two pieces of data can be corrected if the position of the error is known, and one piece of data can be corrected if the position of the error is not known. Furthermore, although only the error in the information data W has been described, the same applies to the errors in the information data P and Q, and it is sufficient to treat P as the (n-1)th data and Q as the nth data.
従来において、誤り訂正符号としてリード・ソロモン符
号を用いたものには、PCM録音機などがありまた家庭
用VTRを利用したPCM録音アダプタはリード・ソロ
モン符号と類似したb隣接符号を用いている。Conventionally, there are PCM recorders that use Reed-Solomon codes as error correction codes, and PCM recording adapters for home VTRs use b-adjacent codes similar to Reed-Solomon codes.
このようなPCM音声データの誤シ訂正装置では音声デ
ータを一定の音声サンプリング周波数の周期でD/A変
換に供給しながら誤り訂正を行なうため、シンドローム
の計算などの訂正前の処理は訂正よりも速いタイミング
で行なう必要がある。In such a PCM audio data error correction device, error correction is performed while supplying audio data to D/A conversion at a constant audio sampling frequency cycle, so pre-correction processing such as syndrome calculation is more expensive than correction. It needs to be done quickly.
またPCM音声データは前後のデータと相関が強く訂正
不能の場合には誤りの検出さえできれば平均値補間など
の処理により誤りの影響が軽減できるため、必ずしも誤
り訂正符号の訂正能力の限界まで訂正を行々う必要がな
く、誤り訂正方法及びエラー・フラグ処理も簡単な方法
を用い、また誤シ訂正を繰り返し行なうこともあまりな
い。In addition, PCM audio data has a strong correlation with the data before and after it, and if it cannot be corrected, the effect of the error can be reduced by processing such as average value interpolation as long as the error can be detected. The error correction method and error flag processing are simple, and the error correction is not often repeated.
しかしこのような誤り訂正装置は、PCM音声以外の一
般のコンピー−タグログラム等のディジタル・データの
誤り訂正には適さ々い。なぜならば、上記ディジタル・
データでは誤ちの検出よりも訂正が重要であり、複数の
符号により多重に誤シ検出符号化、誤り訂正符号化して
誤り訂正を繰り返し行ない、各誤り訂正符号の能力の限
界近くまで訂正するために複雑な訂正方法とエラー・フ
ラグ処理を行なわなければならないからである。また、
かかるディジタル・データの場合は必ずしもデータを送
出しながら誤り訂正を行なう必要がないので、動作タイ
ミングの制限はPCM音声データの場合よりも緩やかで
ある。However, such an error correction device is not suitable for error correction of digital data such as general computer tagograms other than PCM audio. This is because the digital
In data, error correction is more important than error detection, and multiple codes are used to multiplex error detection coding and error correction coding, and error correction is repeated until the error is corrected to the limit of the ability of each error correction code. This is because complicated correction methods and error flag processing must be performed. Also,
In the case of such digital data, it is not necessarily necessary to perform error correction while transmitting the data, so the restrictions on operation timing are more relaxed than in the case of PCM audio data.
本発明は上記のようなPCM音声データの誤り訂正装置
では対応できないような、特に、多重に誤シ検出符号化
、誤り訂正符号化された一般のディジタル・データの複
雑な誤り訂正とエラー・フラグ処理を比較的簡単な回路
構成で実行することを可能にした誤り訂正方式を提供す
ることを目的としている。The present invention is particularly suited to complex error correction and error flag processing of general digital data that has been subjected to multiple error detection encoding and error correction encoding, which cannot be handled by the error correction apparatus for PCM audio data as described above. It is an object of the present invention to provide an error correction method that allows processing to be performed with a relatively simple circuit configuration.
本発明による誤シ訂正方式は、あらかじめ求められた誤
りの状態を示すために少なくとも1ビツトからなるエラ
ー・フラグを各データに対応せしめ、メモリに記憶され
た誤シ訂正を行なうべきデータ及び各データに対応した
エラー・フラグに対して符号語毎に2回連続してアクセ
スして1つの符号語を構成するデータの誤シ訂正を行な
うと同時にエラー・フラグの更新をエラー・フラグの値
決定の直前及び直後において前記メモリ以外の第1及び
第2記憶手段にそれぞれ一時記憶保持して行なうことを
特徴としている。The error correction method according to the present invention associates an error flag consisting of at least one bit with each data to indicate a predetermined error state, and identifies the data to be corrected and each data stored in the memory. The error flag corresponding to the code word is accessed twice in succession for each code word to correct errors in the data constituting one code word, and at the same time, the error flag is updated when determining the value of the error flag. It is characterized in that the processing is carried out by temporarily storing it in first and second storage means other than the memory immediately before and after the processing.
以下、本発明の一実施例を添付図面に基づいて説明する
。第1図は本発明方式を実行する誤り訂正装置の1例を
示し、■はデータ入出力端子、2はデータ・バス、3は
誤り訂正前及び訂正後のデータが記憶されるデータRA
M、 4はデータにα11を乗じるα 乗算器、5は2
つの入力信号A、Bに対して入子αBを出力する5αの
入子αB演算回路と5aの出力を入力としその出力が5
aのB入力となる第1のDフリップ・フロップ5bとか
らなるS。Hereinafter, one embodiment of the present invention will be described based on the accompanying drawings. FIG. 1 shows an example of an error correction device that implements the method of the present invention, where ■ is a data input/output terminal, 2 is a data bus, and 3 is a data RA in which data before and after error correction is stored.
M, 4 is an α multiplier that multiplies data by α11, 5 is 2
A 5α nested αB calculation circuit outputs a nested αB for two input signals A and B, and the output of 5a is input, and its output is 5α.
S consisting of a first D flip-flop 5b serving as the B input of a.
算出回路、6は6aの第1加算器と6aの出力を入力と
しその出力が6(Lの一方の入力となる第2Dフリツプ
・フロップ6bとからなるS、算出回路、7は5,6の
出力を加算する第2加算器、8は7の出力を1+αj−
”除算する1+αj−′除算器、9は6の出力と20の
制御信号のアンド論理を出力するアンド・ゲート、10
は8と9の出力を加算する第3加算器、11は3の出力
のデータと10の出力を加算する第4加算器、12は1
1の出力をラッチし、その出力が3に書き込まれるとき
にのみ有効状態となるように23によって制御される3
ステートDフリツプ・フロップ、13は5,6の出力の
すべてのビットがn□11であるととを検出する第一〇
検出回路、14は7の出力のすべてのビットが0″であ
ることを検出する第二〇検出回路、15はエラー・)ラ
グ入出力端子、16はエラー・フラグバス、17は誤り
訂正前及び訂正後のエラー・フラグを記憶するエラー・
フラグRAM、18は符号語中の各データに対応したエ
ラー・フラグのうち誤り存在を示しているものの数を求
めるエラー・カウンタ、19は符号語中の1番目とに番
目(j<k )の2つのデータのエラー・フラグが誤シ
存在を示していた場合にに−jの値を求めるに−jカウ
ンタ、20はエラー・フラグ・バス16上に送出された
エラー・フラグをラッチするエラ・フラグ・レジスタ、
21は1.3 、14 、18の出力と各データのエラ
ー・フラグを参照することにより訂正すべきデータを決
定して27に知らせると共に必要に応じて27に5bへ
タイミング信号を送るととを停止させ、更に9の制御を
行なう訂正コントロール回路、22は1.3 、1.4
、1.8の出力と各データのエラー・フラグを参照す
ることにより訂正後に更新して17に書き込むべきエラ
ー・フラグの値を決定するエラー・フラグ決定回路、2
3はエラー・フラグ決定回路22から出力されたエラー
・フラグをランチするエラー・フラグ・レジスタ、24
は3,17,27に各データ及びエラー・フラグに対応
したアドレスを出力するアドレス・カウンタ、25はア
ドレス・カウンタ24から出力されたアドレスをラッチ
するアドレス・ラッチ、26はアドレス・カウンタ24
の出力及びアドレス・ラッチ25の出力のうちの一方を
選択的に出力するセレクタ、27は2]、 、 24
、28の出力及びクロックを入力とし、クロックを基に
各種タイミング信号、制御信号を発生して24 、28
を制御するとともに同図中の各回路にタイミング信号、
制御信号を送出するタイミングコントロール回路、28
は1つの符号語の訂正において現在が何回目のアクセス
であるかを示すアクセス・カウンタ、29はクロック入
力端子である。The calculation circuit 6 is composed of the first adder of 6a and the output of 6a, and its output is the second D flip-flop 6b which is one input of 6(L). The second adder that adds the outputs, 8 adds the output of 7 to 1+αj−
"1+αj-' divider for division, 9 is an AND gate that outputs the AND logic of the output of 6 and the control signal of 20, 10
is the third adder that adds the outputs of 8 and 9, 11 is the fourth adder that adds the data of the output of 3 and the output of 10, and 12 is the 1st adder.
3 controlled by 23 to latch the output of 1 and become valid only when its output is written to 3.
A state D flip-flop, 13 is a 10th detection circuit that detects that all bits of the output of 5 and 6 are n□11, and 14 is a detection circuit that detects that all bits of the output of 7 are 0''. 20 detection circuit for detecting, 15 an error/) lag input/output terminal, 16 an error flag bus, 17 an error flag for storing error flags before and after error correction.
A flag RAM 18 is an error counter for calculating the number of error flags indicating the presence of an error among the error flags corresponding to each data in a code word. The -j counter 20 is used to obtain the value of -j when the error flags of the two data indicate the presence of an error. flag register,
21 determines the data to be corrected by referring to the outputs of 1.3, 14, and 18 and the error flags of each data, notifies it to 27, and sends a timing signal to 5b from 27 as necessary. A correction control circuit 22 is 1.3 and 1.4 for stopping and further controlling 9.
, 1. An error flag determination circuit that determines the value of the error flag to be updated and written to 17 after correction by referring to the output of 8 and the error flag of each data, 2
3 is an error flag register 24 that launches the error flag output from the error flag determination circuit 22;
3, 17, and 27 are address counters that output addresses corresponding to each data and error flag, 25 is an address latch that latches the address output from the address counter 24, and 26 is an address counter 24.
a selector that selectively outputs one of the output of the address latch 25 and the output of the address latch 25, 27 is 2], , 24
, 28 outputs and clocks are input, and various timing signals and control signals are generated based on the clocks.
In addition to controlling the timing signals, each circuit in the figure
Timing control circuit for sending control signals, 28
29 is an access counter indicating the current access in the correction of one code word, and 29 is a clock input terminal.
同図においてデータRA、M 3から読み出されたデー
タは4〜12で構成される訂正回路で訂正されるが、こ
の訂正回路の構成自体は従来から使用されているもので
ある。本発明の特徴はむしろ誤シ訂正装置全体の動作及
びそのタイミングと制御にある。In the figure, the data read from data RA, M3 is corrected by a correction circuit composed of 4 to 12, and the structure of this correction circuit itself has been used in the past. Rather, the feature of the present invention lies in the operation of the entire error correction device and its timing and control.
次に第1図の装置の動作について説明する。第2図は第
1図の動作を示すタイミング図である。Next, the operation of the apparatus shown in FIG. 1 will be explained. FIG. 2 is a timing diagram showing the operation of FIG. 1.
初期状態において第1図のタイミングコントロール回路
27は、5b 、6b 、 1.8 、19の内容を0
゛′にリセットし、アドレス・カウンタ24を訂正しよ
うとする符号語の先頭データのアドレスにセットし、ア
クセス・カウンタ28を第1のアクセス状態にする。In the initial state, the timing control circuit 27 in FIG. 1 sets the contents of 5b, 6b, 1.8, and 19 to 0.
The address counter 24 is set to the address of the first data of the code word to be corrected, and the access counter 28 is placed in the first access state.
なお、データRAM 3及びエラー・フラグRA、M1
7にはそれぞれデータ入出力端子1とエラー・フラグ入
出力端子15から入力されたデータ及びエラー・フラグ
があらかじめ書き込まれているものとする。In addition, data RAM 3 and error flags RA and M1
It is assumed that data and error flags input from the data input/output terminal 1 and the error flag input/output terminal 15 are written in advance in 7.
また、エラー・フラグ・レジスタ20に1つ前のサブブ
ロックでのエラー・フラグをラッチする。以後、このエ
ラー・フラグ・レジスタ20の内容は第2のアクセス終
了まで保持される。Furthermore, the error flag of the previous subblock is latched into the error flag register 20. Thereafter, the contents of this error flag register 20 are held until the end of the second access.
第1のアクセスにおいて、アドレス・カウンタ24はタ
イミング・コントロール回路27からのタイミング信号
により先頭データのアドレスから1つずつカウント・ア
ップして行き、データRAM 3は先頭データW、から
最後のデータQまでを順に出力する。出力されたデータ
はα1′乗算器4でα1−71が乗じられた後にA+α
B演算回路5aを通って第1Dフリツプ・フロップ5b
にタイミング・コントロール回路27からのタイミング
信号によりラッチされる。入力信号Bは初期状態におい
て0″であるから、第1Dフリツプ・フロップ5bの内
容は、Wl、W2・・・P、QがデータRA、M 3か
ら出力されると、α11W1.α1′L(1w1+w2
)、・・・・・・・となる。したがって最終的にはα
S、がDフリップ・フロップ5bの内容となる。データ
RAM 3から出力されたデータは第1加算器6aを通
って第2Dフリツプ・フロップ6bにも同様にラッチさ
れる。In the first access, the address counter 24 counts up one by one from the address of the first data in accordance with the timing signal from the timing control circuit 27, and the data RAM 3 counts up from the first data W to the last data Q. Output in order. The output data is multiplied by α1-71 in α1' multiplier 4, and then A+α
through the B arithmetic circuit 5a and the first D flip-flop 5b.
is latched by a timing signal from the timing control circuit 27. Since the input signal B is 0'' in the initial state, the contents of the first D flip-flop 5b are α11W1.α1'L( 1w1+w2
),...... Therefore, finally α
S, becomes the content of the D flip-flop 5b. The data output from the data RAM 3 passes through the first adder 6a and is similarly latched into the second D flip-flop 6b.
6a、6bからなる回路は入力されたデータを順次加算
してラッチするので、第2Dフリツプ・フロップ6bの
内容は最終的には
となる。SQ算出回路5とS、算出回路6の内容がそれ
ぞれα1博S、及びSP になると第一〇検出回路13
は5Q=SP=0か否か、すなわちシンドロームS、
、 S、により誤りが検出されないかされたかを判断し
て結果をタイミング・コントロール回路27からのタイ
ミング信号によりラッチする。アドレス・カウンタ24
の出力はセレクタ26を介してエラー・フラグRAM
17にも接続されており、エラー・フラグRA、M 1
.7はデータRAM 3の出力データに対応したエラー
・フラグをデータと同時に出力する。このエラー・フラ
グRAM]7から出力されたエラー・フラグはエラー・
フラグ・レジスタ20にラッチされると同時にエラー・
カウンタ18に入力され、エラー・カウンタ18はタイ
ミング・コントロール回路27からのタイミング信号に
よりデータが誤りであることを示しているエラー・フラ
グの数をカウントする。このときに−jカウンタ19は
エラー・カウンタ18の出力が1″から′2″へ変わる
までのデータ数をタイミング・コントロール回路27か
らのタイミング信号によりカウントする。j+k(j<
k)の位置のデータに対応したエラー・フラグが誤シを
示しているとすればその出力はに−jとなる。第1のア
クセス終了時点でエラー・カウンタ18とに−jカウン
タ19はその出力が確定し、組合せ論理回路で構成され
る訂正コントロール回路21は、第一〇検出回路13と
エラー・カウンタ18の出力により誤りパターン及び位
置を求める方法を決定する。この決定の論理は例えば以
下のようにする。Since the circuit consisting of 6a and 6b sequentially adds and latches the input data, the final content of the second D flip-flop 6b is as follows. When the contents of the SQ calculation circuit 5 and S, and the calculation circuit 6 become α1 HI S and SP, respectively, the 10th detection circuit 13
is 5Q=SP=0 or not, that is, syndrome S,
, S, it is determined whether an error has been detected or not, and the result is latched by the timing signal from the timing control circuit 27. address counter 24
The output of is sent to the error flag RAM via the selector 26.
17 and error flag RA, M 1
.. 7 outputs an error flag corresponding to the output data of the data RAM 3 at the same time as the data. The error flag output from this error flag RAM]7 is the error flag.
At the same time as the error is latched into the flag register 20,
The data is input to the counter 18, and the error counter 18 counts the number of error flags indicating that the data is erroneous based on the timing signal from the timing control circuit 27. At this time, the -j counter 19 counts the number of data until the output of the error counter 18 changes from 1'' to '2'' using the timing signal from the timing control circuit 27. j+k(j<
If the error flag corresponding to the data at position k) indicates an error, the output will be -j. At the end of the first access, the outputs of the error counter 18 and -j counter 19 are determined, and the correction control circuit 21 composed of a combinational logic circuit outputs the outputs of the 10th detection circuit 13 and the error counter 18. Determine the method for determining the error pattern and position. The logic of this decision is, for example, as follows.
1、エラー・カウンタ18の出力が0°゛のときは第一
〇検出回路13の出力が誤りを示していれば第二〇検出
回路14により求められた位置を誤り位置とし、SP算
出回路6の出力を誤りパターンとする。第二〇検出回路
14は後述するようにシンドロームSP、SQより求め
た1つの誤りデータの位置を示す。1. When the output of the error counter 18 is 0°, if the output of the 10th detection circuit 13 indicates an error, the position determined by the 20th detection circuit 14 is set as the error position, and the SP calculation circuit 6 Let the output of be the error pattern. The 20th detection circuit 14 indicates the position of one error data obtained from the syndromes SP and SQ, as will be described later.
2、エラー・カウンタ18の出力が1″または3”′以
上のときは第二〇検出回路14により求められた位置の
データに対応したエラー・フラグが誤りを示していれば
その位置を誤り位置とし、SP算出回路6の出力を誤り
パターンとする。2. When the output of the error counter 18 is 1'' or 3'' or more, if the error flag corresponding to the data at the position determined by the 20th detection circuit 14 indicates an error, that position is set as the error position. Let the output of the SP calculating circuit 6 be an error pattern.
3、エラー・カウンタ18の出力が1121+のときけ
対応したエラー・フラグが誤りを示している2つのデー
タの位置を誤シ位置とし、2つの誤りパターンをS、算
出回路6とSP算出回路5の出力により求める。3. When the output of the error counter 18 is 1121+, the positions of the two data whose corresponding error flags indicate an error are set as the error positions, and the two error patterns are S, the calculation circuit 6 and the SP calculation circuit 5. Obtained from the output of
尚、第1のアクセス中はエラー・フラグRAM17は読
み出し状態である。Note that during the first access, the error flag RAM 17 is in a read state.
第1のアクセスが終了するとタイミング・コントロール
回路27は直ちにアクセス・カウンタ28を第2のアク
セス状態にすると同時にアドレス・カウンタ24を再び
先頭データのアドレスにセットし、引き続き第2のアク
セスを開始する。第2のアクセスでは、タイミング・コ
ントロール回路27は、α1′乗算器4にはその出力人
を0″にするような制御信号を送出し、第2Dフリツプ
・フロップ6b、エラー・カウンタ18、h−jカウン
タ19へのタイミング信号送出を停止する。前述のよう
に誤りパターン及び誤シ位置を求める方法はエラー・カ
ウンタ18の出力の値によって異なるので、出力の値が
1″の場合とW2T+の場合について第2のアクセス期
間中の動作を以下に説明する。なお、エラー・カウンタ
18の出力の値が0°′またけ“3′′以上の場合は基
本的に1″の場合と同様である。When the first access is completed, the timing control circuit 27 immediately puts the access counter 28 into the second access state, and at the same time sets the address counter 24 again to the address of the first data, and subsequently starts the second access. In the second access, the timing control circuit 27 sends a control signal to the α1' multiplier 4 to set its output to 0'', and the second D flip-flop 6b, error counter 18, h- J Stop sending the timing signal to the counter 19.As mentioned above, the method of determining the error pattern and the error position differs depending on the output value of the error counter 18, so there are two methods: when the output value is 1" and when the output value is W2T+. The operation during the second access period will be described below. Incidentally, when the value of the output of the error counter 18 is ``3'' or more across 0°', it is basically the same as the case where it is 1''.
第2図(a)はエラー・カウンタ18の出力の値がII
I IIの場合である。第2のアクセス開始時点でS
Q算出回路5の出力はα1′LS、となっておシ、以後
入力信号Aは常に0″であるので、SQ算出回路5の出
力はタイミング・コントロール回路27からタイミング
信号が入力されるたびにαが乗ぜられる。FIG. 2(a) shows that the output value of the error counter 18 is II.
This is the case of I II. S at the start of the second access
The output of the Q calculation circuit 5 becomes α1'LS, and since the input signal A is always 0'', the output of the SQ calculation circuit 5 becomes α1'LS every time the timing signal is input from the timing control circuit 27. Multiplied by α.
このタイミング信号は、データRAM3から出力される
データと同期しているので、データRAM 3がW4.
W2・・・P、Qを出力して行くとS、算出回路5の出
力はα1′S α21S6.・・・αS6.S、と変
化する。This timing signal is synchronized with the data output from the data RAM 3, so that the data RAM 3 is in W4.
When outputting W2...P and Q, the output of calculation circuit 5 is α1'S α21S6. ...αS6. It changes to S.
Qラ
エラー・カウンタ18の出力の値が°°1″の場合は、
データRA−M 3がデータを読み出している間にシン
ドロームSP、SQより誤りデータの位置を1つ求める
。すなわちW、が誤ってw’、−w、十e−となってい
ZZ
るとすると、5P=e、s、−αn−i、であシ、デー
タRAM 3がW′、を出力しているとき、S、算出回
路5の出力がα″S、であるから第2加算回路7の出力
SP+α74SQは60′”となり、第二〇検出回路1
4がこの0゛′を検出することにより、データRAM
3が現在出力しているデータW;が誤りであることがわ
かる。誤りデータが1つであればW;以外の場合は11
01+が検出されない。訂正コントロール回路21は第
二〇検出回路14が0″を検出したときエラー・フラグ
・レジスタ20の出力を参照してW−に対応したエラー
・フラグが誤りを示していれば符号中の誤りデータがた
だ1つTJJ’、であると判断してアンド・ゲート9を
開いて5P=e、を第3加算器10に入力するとともに
、タイミング・コントロール回路27に訂正を指令する
信号を送出する。このとき1+αj−7除算器80入力
が0″であるのでその出力も0″となり、第3加算器1
0の出力はe、となる。この出力は第4加算器11でデ
ータRAM$
3の出力W′、と加算され、W、+e、−W、+e、−
4−e、−を
町と々す、第4加算器11の出力は誤り訂正された町と
々す、3ステートDフリツプフロツプ12にラッチされ
る。If the output value of the Q error counter 18 is °°1'',
While data RA-M 3 is reading data, the position of one error data is determined from syndromes SP and SQ. That is, if W is mistakenly set to w', -w, 10e- and ZZ, then 5P=e, s, -αn-i, and data RAM 3 outputs W'. When S, the output of the calculation circuit 5 is α''S, so the output SP+α74SQ of the second addition circuit 7 is 60''', and the output of the 20th detection circuit 1 is
4 detects this 0゛', the data RAM
It can be seen that the data W; which No. 3 is currently outputting is incorrect. W if there is one error data; otherwise 11
01+ is not detected. When the 20th detection circuit 14 detects 0'', the correction control circuit 21 refers to the output of the error flag register 20, and if the error flag corresponding to W- indicates an error, the correction control circuit 21 detects the error data in the code. It judges that there is only one TJJ', opens the AND gate 9, inputs 5P=e to the third adder 10, and sends a signal instructing the timing control circuit 27 to make a correction. At this time, since the input of the 1+αj-7 divider 80 is 0'', its output is also 0'', and the third adder 1
The output of 0 is e. This output is added to the output W' of data RAM $3 in the fourth adder 11, and W, +e, -W, +e, -
The output of the fourth adder 11, which outputs 4-e, -, is latched into a three-state D flip-flop 12, which is error corrected.
ラッチのためのタイミング信号は常にタイミング・コン
トロール回路27から供給されているものとする。タイ
ミング・コントロール回路27は訂正を指令する信号を
受けると、3ステートDフリツプ・フロップ12がW、
をラッチした後に、これに出力を有効にする制御信号を
送出するとともにデータRA、M 3に書き込み状態に
する制御信号を送出し、データRA、M 3においてW
′、が記憶されていたアドレスに訂正されたW、が書き
込まれる。以上の動作において第二〇検出回路14での
0″の検出からデータRAMへのW、の書き込みまでの
処理はW+に対応$
した1つのアドレス期間内に行なわれる。It is assumed that the timing signal for latching is always supplied from the timing control circuit 27. When the timing control circuit 27 receives a signal instructing correction, the 3-state D flip-flop 12 outputs W,
After latching, a control signal to enable the output is sent to this, and a control signal to put the data RA, M3 into the write state is sent.
The corrected W is written to the address where W was stored. In the above operation, the processing from the detection of 0'' by the 20th detection circuit 14 to the writing of W into the data RAM is performed within one address period corresponding to W+.
第2図(6)はエラー・カウンター8の出力の値が11
211の場合であり、このときはエラー・フラグ・レジ
スタ20から読み出されるエラー・フラグのうち誤りを
示している2つのエラー・フラグに対応したデータの位
置を誤り位置とする。この誤り位置を、i、k(j<k
)とし、Wj、Wkが誤ってそれぞれヅ1−Wj十ej
、Wk−Wλ十ekとなっているとすると、5P−ej
−I−ek、S、=αn−je 十αn−k 、、
kとなる。データRAM 3がW′jを出力していると
き、SQ算出回路5の出力はαj1S−e・十αj−k
ekであるQ、7
から、第2加算器7の出力SP+αj1SQはej十除
算器18に入力される。一方、同除算器には第1のアク
セスで求められたに−jの値かに−jカウンタ19より
入力されており、これに従って除算を施すとその出力は
(1+α””’ ) ek/ (]十αj−k)−ek
となる。第2のアクセスにおいて訂正コントロール回路
21はエラー・フラグ・レジメタ20から入力されるエ
ラー・フラグを観測しておシ、最初に誤りを示すエラー
・フラグ、すなわちW′・のエラー・フラグが入力され
ると、同回路はアンド・ゲート9を開いて5P−ej+
ekを第3加算器10に入力するとともに、タイミング
・コントロール回路27に訂正と第1Dスリツプ・フロ
ップ5bへのタイミング信号の送出の停止を指令する。Figure 2 (6) shows that the output value of error counter 8 is 11.
In this case, the position of the data corresponding to two error flags indicating an error among the error flags read from the error flag register 20 is determined as the error position. This error position is defined as i, k (j<k
), and Wj and Wk are mistakenly ヅ1-Wj〇ej, respectively.
, Wk-Wλ10ek, then 5P-ej
-I-ek, S, = αn-je 1 αn-k ,,
It becomes k. When the data RAM 3 is outputting W′j, the output of the SQ calculation circuit 5 is αj1S−e・tenαj−k
From Q,7, which is ek, the output SP+αj1SQ of the second adder 7 is input to the ej ten divider 18. On the other hand, the value of -j obtained in the first access is input to the divider from the -j counter 19, and when division is performed according to this, the output is (1+α""')ek/( ] tenαj−k)−ek
becomes. In the second access, the correction control circuit 21 observes the error flags input from the error flag register 20, and first the error flag indicating an error, that is, the error flag of W' is input. Then, the same circuit opens AND gate 9 and outputs 5P-ej+
It inputs ek to the third adder 10, and instructs the timing control circuit 27 to make a correction and stop sending the timing signal to the first D slip-flop 5b.
このとき第3加算器10の出力はek+5P=ejとな
り、これが第4加算器11でW′−と加算されて叫+e
j=Wj+ej+ej−Wjとなり誤り訂正されたWj
が得られ、これが3ステートDフリツプ・フロップ12
K。At this time, the output of the third adder 10 becomes ek+5P=ej, which is added to W'- in the fourth adder 11 and becomes ek+e
j = Wj + ej + ej - Wj and the error is corrected Wj
is obtained, which is a 3-state D flip-flop 12
K.
ラッチされた後、データRAM 3にW3に置き換えて
書き込まれる。タイミング・コントロール回路27は訂
正の指令に従い3ステート・Dフリ′ノブ・フロップ1
2の出力を有効にしデータRAM 3を書き込み状態に
すると共に、以後第1Dフリツプ・フロップ5bへのタ
イミング信号の送出を停止する。After being latched, it is written into data RAM 3 replacing W3. The timing control circuit 27 operates the 3-state D free knob flop 1 according to the correction command.
2 is enabled and the data RAM 3 is placed in a write state, and from then on, transmission of the timing signal to the first D flip-flop 5b is stopped.
したがってS算出回路5の出力はαj1SQの−1ま保
持され、■+αj−”除算器8の出力もeIcのままと
なる。訂正コントロール回路21は2番目の誤りを示す
エラー・フラグ、すなわち可にのエラー・フラグが入力
されると、アンド・ゲート9を閉じた状態にしてタイミ
ング・コントロール回路27に訂正を指令する。このと
き第3加算器10から1+αj−に除算器の出力ekが
そのまま出力され第4加算器11はデータRAM 3の
出力WAにekを加算してWl + e k= Wk+
e k+ e k= Wkを得る。この誤り訂正され
たWkはWjと同様にしてデータRAΔ、T3に叫に置
き換えて書き込まれる。第2のアクセス終了時点で、エ
ラー・フラグ決定回路21の出力が決定される。Therefore, the output of the S calculation circuit 5 is held to -1 of αj1SQ, and the output of the divider 8 remains eIc.The correction control circuit 21 sets an error flag indicating the second error, that is, a When the error flag is input, the AND gate 9 is closed and a correction is commanded to the timing control circuit 27. At this time, the output ek of the divider is directly output from the third adder 10 to 1+αj-. Then, the fourth adder 11 adds ek to the output WA of the data RAM 3 to obtain Wl + e k=Wk+
Obtain e k+ e k= Wk. This error-corrected Wk is written to the data RAΔ, T3 in the same way as Wj, replacing it with a blank. At the end of the second access, the output of the error flag determination circuit 21 is determined.
この決定の論理は例えば以下のようにする。The logic of this decision is, for example, as follows.
1゜エラー・カウンター8の出力が“0゛′のときは第
一〇検出回路13の出力が誤シを示しかつ第2のアクセ
ス期間中に第二〇検出回路14が“0″を検出しなかっ
た場合はエラー・フラグを誤シを示す値にし、それ以外
は誤りを示さない値にする。1. When the output of the error counter 8 is "0", the output of the 10th detection circuit 13 indicates an error, and the 20th detection circuit 14 detects "0" during the second access period. If there is no error, set the error flag to a value that indicates an error; otherwise, set the error flag to a value that does not indicate an error.
2、エラー・カウンタ18の出力が“1″のときは、第
一〇検出回路13の出力が誤りを示しかつ誤りを示して
いるエラー・フラグがエラー・フラグ・レジスタ20か
ら出力されているときに第二〇検出回路14が0″を検
出しなかった場合はエラー・フラグを誤りを示す値にし
、それ以外は誤りを示さない値にする。2. When the output of the error counter 18 is "1", the output of the No. 10 detection circuit 13 indicates an error, and the error flag indicating the error is output from the error flag register 20. If the 20th detection circuit 14 does not detect 0'', the error flag is set to a value indicating an error, and otherwise set to a value that does not indicate an error.
3、エラー・カウンタ18の出力が2″のときは、第一
〇検出回路13の出力が誤りを示していなければエラー
・フラグを誤りを示さない値とし、それ以外は判断不能
に対応した値とする。3. When the output of the error counter 18 is 2'', if the output of the 10th detection circuit 13 does not indicate an error, the error flag is set to a value that does not indicate an error; otherwise, it is set to a value corresponding to undeterminable. shall be.
4、エラー・カウンタ18の出力がパ3′″以上のとき
は、エラー・フラグを判断不能に対応した値とする。4. When the output of the error counter 18 is equal to or greater than 3'', the error flag is set to a value corresponding to undetermined.
エラー・フラグは符号語中のすべてのデータについて同
じ値に決定するものとする。エラー・フラグを誤りを示
す値にするのは第2のアクセス終了後において符号中に
誤ったデータが存在する場合であり、誤りを示さない値
にするのは誤ったデータが存在する確率が非常に低い場
合であシ、判断不能に対した値とするのは、誤ったデー
タが存在する確率が無視できない場合である。判断不能
となった場合は後で別の手段、例えば他の誤シ検出符号
によってエラー・フラグを誤シを示すか示さないかのい
ずれか一方の値に決定する。なお上記の例では3つの値
を割り当てるために、エラー・フラグは少なくとも2ビ
ツト要する。It is assumed that the error flag is determined to be the same value for all data in the code word. The error flag is set to a value indicating an error when erroneous data exists in the code after the second access is completed, and the error flag is set to a value that does not indicate an error when there is a high probability that erroneous data exists. However, the value for undeterminable is used when the probability of the existence of incorrect data cannot be ignored. If it cannot be determined, the error flag is later determined to either indicate or not indicate an error by using another means, for example, another error detection code. Note that in the above example, the error flag requires at least 2 bits in order to assign three values.
第2のアクセス期間中、エラー・フラグRAM17は書
き込み状態であるから上記エラー・フラグの演算が行な
われると同時にエラー・フラグ・レジスタ23から出力
されたエラー・フラグがエラー・フラグRA、M1.7
に書き込まれる。尚、エラー、フラグRAM17のアド
レスは第1のアクセスでは誤シ訂正を行なっているサブ
ブロックのアドレスとなり、第2のアクセスでは1つ前
のサブブロックのアドレスをアドレス・ラッチ25に記
憶してこのアドレス・ラッチ25に記憶された1つ前の
サブブロックのアドレスとなるように訂正コントロール
21からの指令によってセレクタ26における信号切換
がなされている。During the second access period, the error flag RAM 17 is in the write state, so the error flag output from the error flag register 23 is the error flag RA, M1.7 at the same time as the above error flag calculation is performed.
will be written to. Note that the address of the error/flag RAM 17 is the address of the subblock that is being corrected in the first access, and the address of the previous subblock is stored in the address latch 25 in the second access. The signal in the selector 26 is switched in response to a command from the correction control 21 so that the address of the previous subblock stored in the address latch 25 is used.
以上で1つの符号語に対する誤シ訂正とエラー・フラグ
の更新が終了し、第2のアクセスが終了すると、タイミ
ング・コントロール回路27は第1Dクリツプ・フロッ
プ5b、第2Dノリツブ・フロップ6b、エラー・カウ
ンタ18、k−jカウンタ19の内容な′0゛′にリセ
ットし、アドレス・カウンタ24を次の符号語の先頭デ
ータのアドレスにセットし、アクセス・カウンタ28を
第1のアクセス状態にして次の符号語の誤り訂正を開始
する。以後同様にしてデータRAM 3中の全ての符号
語についての誤シ訂正と対応したエラー・フラグRAM
1.7中のエラー・フラグの更新を行ない、終了後に
はデータはデータ入出力端子1より出力され、エラー・
フラグはエラー・フラグ入出力端子15から取り出され
る。When the error correction and error flag updating for one code word are completed and the second access is completed, the timing control circuit 27 controls the first D clip flop 5b, the second D clip flop 6b, and the error flag. The contents of the counters 18 and k-j counter 19 are reset to '0'', the address counter 24 is set to the address of the first data of the next code word, and the access counter 28 is set to the first access state. Start error correction for the codeword. Thereafter, in the same way, all code words in data RAM 3 are corrected and the corresponding error flag RAM is
The error flag in 1.7 is updated, and after completion, the data is output from data input/output terminal 1 and the error flag is updated.
The flag is taken out from error flag input/output terminal 15.
なお、上記実施例では誤り訂正符号が検査データ数2の
リード・ソロモン符号の場合について説明したが他の符
号についても同様に本発明が適用できる。第1図の回路
構成は上記リード・ソロモン符号を用いた場合の実施例
であるが、種々の変形が可能である。例えば同図の信号
の流れ及び第2図はデータ及びエラー・フラグを構成す
る各ビットを並列処理する形式で描かれているが、直列
処理も可能であり、エラー・フラグRAM 3とデータ
・フラグL?AM17を同一のRAMとし入出力端子を
データとエラー・フラグで分割してもよい。訂正コント
ロール回路21とエラー・フラグ決定回路22の論理に
ついても種々の変形が可能であり、例えば訂正コントロ
ール回路21では第一〇検出回路13の出力を無視して
もよいし、エラー・フラグ決定回路22では1つの符号
語中の各データに対して同じエラー・フラグの更新値を
決定したが、各データ毎に更新値を決定してもよい。こ
れは例えば、1つの符号語中において訂正されたデータ
とされなかったデータを区別することなどにより可能と
なるが、エラー・フラグ決定回路22は複雑になる。In the above embodiment, the case where the error correction code is a Reed-Solomon code with two pieces of check data is described, but the present invention can be similarly applied to other codes. Although the circuit configuration shown in FIG. 1 is an embodiment using the above-mentioned Reed-Solomon code, various modifications are possible. For example, although the signal flow in the same figure and Figure 2 are drawn in a format in which each bit constituting the data and error flag is processed in parallel, serial processing is also possible, and the error flag RAM 3 and the data flag L? The AM17 may be the same RAM, and the input/output terminals may be divided into data and error flags. Various modifications can be made to the logic of the correction control circuit 21 and the error flag determination circuit 22. For example, the correction control circuit 21 may ignore the output of the No. 10 detection circuit 13, or the error flag determination circuit In No. 22, the same error flag update value is determined for each data in one code word, but the update value may be determined for each data. This is possible, for example, by distinguishing between corrected data and uncorrected data in one code word, but the error flag determination circuit 22 becomes complex.
また上記実施例では、1つの誤り訂正符号に対する誤り
訂正装置として説明したが、本発明は複数の符号により
多重に誤り検出及び誤り訂正符号化されたデータに対し
て繰り返し誤り訂正を行なう場合に特に効果を発揮する
ので、これについて以下に説明する。In addition, although the above embodiment has been described as an error correction device for one error correction code, the present invention is especially useful when repeatedly performing error correction on data that has been multiplexed with error detection and error correction codes using a plurality of codes. Since this is effective, this will be explained below.
複数の誤り検出符号、訂正符号により符号化されたデー
タ・ブロックの誤り訂正を本発明による誤り訂正装置を
用いて行なう場合の基本構成を第3図(tZ)に示す。FIG. 3 (tZ) shows a basic configuration when error correction of a data block encoded with a plurality of error detection codes and correction codes is performed using an error correction apparatus according to the present invention.
同図において、各誤り訂正装置は各誤り訂正符号毎に構
成された第1図の如き装置であシ、誤り検出装置も含め
た全ての装置間で、これらのデータ入出力端子同士およ
びエラー・フラグ入出力端子同士がそれぞれ3ステート
の人出カバッファを介して接続されている。但し誤り検
出装置では誤りの検出とエラー・フラグの更新のみを行
なうものとする。第3図(b)のように、各符号におけ
る誤りの検出あるいは訂正が縦続に行なわれるように各
装置間のデータ及びエラー・フラグの転送をバッファに
より制御すると、データは各誤り訂正装置を通過しなか
ら途々に訂正されていくので、データに対する全誤り訂
正システムの処理速度をあげることができる。寸た、各
隣接装置間でのみ接続されるようにバスを切り離すと更
に速度は上がる。各誤り訂正において本発明による装置
は、入力されたエラー・フラグを参照L7て符号の持つ
訂正能力を十分発揮させるような誤り訂正を行なうとと
もに訂正後にエラー・フラグの更新を行なうので、どの
誤り訂正でも同様に強力な誤り訂正を行なうことができ
る。各符号による誤り検出あるいは誤り訂正をそれぞれ
1度ずつではなく複数回行なう場合には、誤り検出、誤
り訂正の各回に対応してそれぞれ別の装置を用いて上記
のように縦続に動作させると、処理速度は速いがシステ
ム全体の装置規模が大きくなる。第3図(C)のように
装置は各符号に対してそれぞれ1つだけ用い、装置間の
データ及びエラー・フラグの転送を全て同一のバス上で
行ない、これを制御することによって誤り検出及び誤り
訂正を複数回行なうようにするとシステム全体の装置規
模は増加しない。データ及びエラー・フラグは
の経路を任意回数通った後34から出力されるものとす
る。但し、全誤り訂正システムの処理速度は遅くなる。In the figure, each error correction device is configured for each error correction code as shown in FIG. The flag input/output terminals are connected to each other via a 3-state output buffer. However, the error detection device only detects errors and updates error flags. As shown in Figure 3(b), if the transfer of data and error flags between each device is controlled by a buffer so that error detection or correction in each code is performed in cascade, data passes through each error correction device. Since the data is corrected gradually, the processing speed of the total error correction system for data can be increased. However, speeds can be further increased by separating the bus so that connections are made only between adjacent devices. In each error correction, the device according to the present invention refers to the input error flag L7 and performs error correction that fully utilizes the correction ability of the code, and also updates the error flag after the correction. However, it can also perform powerful error correction. When error detection or error correction for each code is performed multiple times rather than once each time, separate devices are used for each time of error detection and error correction, and the operations are performed in cascade as described above. Although the processing speed is fast, the equipment scale of the entire system becomes large. As shown in FIG. 3(C), only one device is used for each code, data and error flags are transferred between devices on the same bus, and by controlling this, error detection and If error correction is performed multiple times, the device scale of the entire system will not increase. It is assumed that the data and error flag are output from 34 after passing through the path an arbitrary number of times. However, the processing speed of the full error correction system is slow.
尚、誤シ検出や訂正を各符号で複数回゛ 行なうと1度
ずつ行なった場合よりも全体の訂正能力が更に向上する
。また、誤シ検出符号及び誤り訂正符号に全て同種類の
符号(例えば、検査データが2つのリード・ソロモン符
号)を用いた場合には、全ての誤シ検出と誤り訂正をた
だ1つの第1図の如き誤り訂正装置によって行なうこと
ができる。すなわち、各誤り訂正ではそれぞれ訂正に用
いる符号について前述したような誤り訂正エラー・フラ
グの更新を符号語毎に行なう。!また各誤シ検出では、
誤り訂正装置の動作を一部省略、変更することによって
誤りの検出とエラー・フラグの更新のみを行々うように
する。通常各符号によって1つの符号語を構成するデー
タが異っているため、符号ごとにアドレス・カウンタ2
4の動作を制御する必要があるが、これはタイミング・
コントロール回路27によって容易に行なわれる。した
がって、この場合は、非常に小さな装置規模で複数の符
号による誤り検出及び誤り訂正をそれぞれ任意回数繰り
返して行なうことができ、また各誤り訂正においては前
述のような強力な誤り訂正を行なうことができる。捷た
、第1図の装置におけるエラー・フラグ・レジスタ20
及び23はDフリップフロップのような回路でもシフト
レジスタのような回路でもいずれによっても容易に実現
できる。Note that if error detection and correction are performed multiple times for each code, the overall correction ability is further improved than if it is performed once each time. Furthermore, if the same type of code is used for both the false alarm detection code and the error correction code (for example, a Reed-Solomon code with two check data), all the false alarm detection and error correction can be performed using only one first code. This can be done by an error correction device as shown in the figure. That is, in each error correction, the above-mentioned error correction error flag is updated for each code word for each code used for correction. ! In addition, for each false detection,
By omitting or changing some of the operations of the error correction device, only error detection and error flag updating are performed. Usually, the data constituting one code word is different depending on each code, so the address counter 2 is set for each code.
It is necessary to control the operation of 4, but this requires timing and
This is easily done by the control circuit 27. Therefore, in this case, error detection and error correction using multiple codes can be repeated an arbitrary number of times with a very small equipment scale, and each error correction can be performed with the strong error correction described above. can. Error flag register 20 in the device of FIG.
and 23 can be easily realized by a circuit such as a D flip-flop or a circuit such as a shift register.
発明の効果
以上のように、本発明によれば、プログラム・データ等
の一般のディジタル・データが必ずしもデータを送出し
ながら誤り訂正を行なう必要がないことを考慮して、1
つの符号語に対する誤り訂正とエラー・フラグの更新を
2段階の動作に分割して行なうようにしたので、複雑な
訂正方法とエラー・フラグ処理が可能となり、誤り訂正
符号の訂正能力を十分に発揮させるととができると共に
訂正後の誤りの状態を正確に知らせることができる。ま
た、エラー・フラグの更新時エラー・フラグの値決定の
直前及び直後においてエラー・フラグをエラー・フラグ
RAM以外の第1及び第2記憶手段に一時記憶保持する
ようにしたので、第2のアクセスにおいてエラー・フラ
グのエラー・フラグRA、Mへの書き込みと同時に訂正
方法の決定又は2ワードエラー(エラー・フラグ・カウ
ンタが1121+であるエラー)の訂正が行なえかつエ
ラー・フラグRA、Mの読み出しアクセスを1回にする
ことができ、1つの符号語を構成するデータの誤り訂正
に要する時間を短縮することができることとなる。また
、本発明の装置は比較的容易に実現できる。第1図を例
にとると、加算器、Dフリップ・フロップ、カウンタな
どには汎用のICが使用でき、α1−41乗算器はRO
Mあるいはゲートの組み合わせ、】+αj−”除算器は
ROMまたはROMとゲートの組み合せなどにより容易
に実現でき、2段階の各動作も同一符号語への規則的な
2回のアクセス(でよって行なわれるため装置内のタイ
ミング制御も容易である。本発明の装置によって複数の
符号により多重符号化されたデータの誤り訂正を行なえ
ば、各誤り訂正において、前段の誤シ訂正後に更新され
たエラー・フラグを参照して十分な訂正を行なうので全
体として非常に強力な誤り訂正を行なうことができる。Effects of the Invention As described above, according to the present invention, in consideration of the fact that general digital data such as program data does not necessarily require error correction while transmitting the data,
Error correction for one codeword and error flag update are performed in two steps, making it possible to perform complex correction methods and error flag processing, and fully utilize the correction ability of the error correction code. In addition, it is possible to accurately notify the state of the error after correction. Furthermore, since the error flag is temporarily stored and held in the first and second storage means other than the error flag RAM immediately before and after determining the value of the error flag when updating the error flag, the second access At the same time as writing error flags to error flags RA and M, a correction method can be determined or a two-word error (an error where the error flag counter is 1121+) can be corrected, and error flags RA and M can be read and accessed. This means that the time required for error correction of data constituting one code word can be reduced. Furthermore, the device of the present invention can be realized relatively easily. Taking Figure 1 as an example, general-purpose ICs can be used for adders, D flip-flops, counters, etc., and the α1-41 multiplier is RO
M or a combination of gates, ]+αj−” divider can be easily realized using a ROM or a combination of a ROM and a gate, and each two-step operation is performed by regularly accessing the same code word twice. Therefore, timing control within the device is also easy.If the device of the present invention performs error correction on data that has been multiplex encoded using a plurality of codes, in each error correction, the error flag updated after the error correction in the previous stage is Since sufficient correction is performed with reference to the above, very strong error correction can be performed as a whole.
特に、複数の符号がすべて同種類の符号であるならば、
通常符号毎に必要な誤シ訂正装置が、1つの本発明の誤
り訂正装置で済み、非常に小さな装置規模で、多重符号
化されたデータに対して各符号による誤り検出あるいは
誤り訂正をそれぞれ任意回数行なうことができる。In particular, if multiple codes are all of the same type,
The error correction device of the present invention, which is normally required for each code, can be replaced by one error correction device of the present invention, and the scale of the device is very small. Can be done several times.
捷た、このとき装置内のタイミング制御を符号毎に切り
換える必要があるがこれも容易に行なえる。At this time, it is necessary to switch the timing control within the device for each code, but this can be done easily.
第1図は本発明の一実施例を示す図、第2図は実施例の
動作を示すタイミング図、第3図は本発明の誤り訂正装
置を用いて構成した多重符号化されたデータ・ブロック
の全誤り訂正処理システムの例を示す図で゛ある。FIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is a timing diagram showing the operation of the embodiment, and FIG. 3 is a multiple encoded data block configured using the error correction device of the present invention. FIG. 2 is a diagram showing an example of a total error correction processing system.
Claims (3)
の符号語の誤り訂正をなす誤り訂正方式であって、あら
かじめ求められた誤りの状態を示すために少なくとも1
ビットからなるエラー・フラグを各データに対応せしめ
、メモリに記憶された誤り訂正を行なうべきデータ及び
各データに対応したエラー・フラグに対して前記符号語
毎に2回連続してアクセスして1つの符号語を構成する
データの誤り訂正を行なうと同時にエラー・フラグの更
新をエラー・フラグの値決定の直前及び直後において前
記エラー・フラグを前記メモリ以外の第1及び第2記憶
手段にそれぞれ一時記憶保持して行なうことを特徴とす
る誤り訂正方式。(1) An error correction method that corrects errors in code words of an error correction code consisting of information data and check data, and in which at least one error correction method is used to indicate the error state determined in advance.
An error flag consisting of a bit is made to correspond to each data, and the data to be error corrected stored in the memory and the error flag corresponding to each data are accessed twice in succession for each code word. At the same time, the error flag is updated immediately before and after the value of the error flag is determined, and the error flag is temporarily stored in the first and second storage means other than the memory, respectively. An error correction method characterized by memory retention.
は、符号語を構成する各データとデータに対応したエラ
ー・フラグをメモリから読み出して、データより誤りの
パターン及び位置を求めるもととなるシンドロームを算
出すると共に、誤りのパターン及び位置を求める方法を
エラー・フラグとシンドロームにより決定し、かつ前記
第1記憶手段にエラー・フラグを一時記憶しておき、第
2のアクセスでは、再び符号語を構成する各データを読
み出しかつデータに対応したエラー・フラグを前記第1
記憶手段から得て、第1のアクセスで決定された方法に
従いシンドロームより誤りパターンを求めかつシンドロ
ームとエラー・フラグより誤り位置を求めて、誤ったデ
ータがアクセスされている期間中にそのデータの訂正を
行なったのち直ちにメモリの同じアドレスに書き込み、
更に第2のアクセスが終了した時点でエラー・フラグの
更新値を決定して前記第2記憶手段に一時記憶し、前記
第2記憶手段の記憶内容を次の符号語の誤り訂正をなす
ときの第2のアクセス期間中に前記メモリへ書き込むこ
とを特徴とする特許請求の範囲第1項記載の誤り訂正方
式。(2) In the above two accesses, the first access reads out each data forming the code word and the error flag corresponding to the data from the memory, and is the basis for determining the error pattern and position from the data. In addition to calculating the syndrome, a method for determining the error pattern and position is determined based on the error flag and the syndrome, and the error flag is temporarily stored in the first storage means, and in the second access, the code word is read again. Read each data making up the data and set the error flag corresponding to the data to the first
The error pattern is obtained from the storage means, the error pattern is obtained from the syndrome according to the method determined in the first access, the error position is obtained from the syndrome and the error flag, and the data is corrected while the incorrect data is being accessed. After doing this, immediately write to the same address in memory,
Further, when the second access is completed, an updated value of the error flag is determined and temporarily stored in the second storage means, and the stored contents of the second storage means are used for error correction of the next code word. 2. The error correction method according to claim 1, wherein writing to the memory is performed during a second access period.
フラグのアクセスを全て同じアドレス指定タイミングで
行なうことを特徴とする特許請求の範囲第1項又は第2
項記載の誤り訂正方式。(3) Each data and error in the above two accesses
Claim 1 or 2, characterized in that all flags are accessed at the same addressing timing.
Error correction method described in section.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60153183A JPS6213128A (en) | 1985-07-10 | 1985-07-10 | Error correction system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60153183A JPS6213128A (en) | 1985-07-10 | 1985-07-10 | Error correction system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6213128A true JPS6213128A (en) | 1987-01-21 |
| JPH041530B2 JPH041530B2 (en) | 1992-01-13 |
Family
ID=15556857
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60153183A Granted JPS6213128A (en) | 1985-07-10 | 1985-07-10 | Error correction system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6213128A (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5665310A (en) * | 1979-10-31 | 1981-06-03 | Sony Corp | Transmitting method for pcm data |
| JPS57137948A (en) * | 1981-02-19 | 1982-08-25 | Fujitsu Ltd | Automatic error correction system |
-
1985
- 1985-07-10 JP JP60153183A patent/JPS6213128A/en active Granted
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5665310A (en) * | 1979-10-31 | 1981-06-03 | Sony Corp | Transmitting method for pcm data |
| JPS57137948A (en) * | 1981-02-19 | 1982-08-25 | Fujitsu Ltd | Automatic error correction system |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH041530B2 (en) | 1992-01-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0278383A2 (en) | Error correction method using reed-solomon code | |
| JPS62133826A (en) | Crc bit calculator | |
| JPH0812612B2 (en) | Error correction method and apparatus | |
| JPH10190695A (en) | Fast framing device and method for framing byte sequence of data fast | |
| JPS58123253A (en) | Error correcting device | |
| EP0117756B1 (en) | Data interpolating circuit | |
| JPS5864844A (en) | Synchronism detecting system | |
| US4498178A (en) | Data error correction circuit | |
| GB2042228A (en) | Data correcting system | |
| JP2627581B2 (en) | Electronic circuit for generating error detection codes in digital signals | |
| US5588010A (en) | Parallel architecture error correction and conversion system | |
| US4171765A (en) | Error detection system | |
| JPS6213128A (en) | Error correction system | |
| US4521886A (en) | Quasi-soft decision decoder for convolutional self-orthogonal codes | |
| US3988580A (en) | Storage of information | |
| JP3071482B2 (en) | Error correction circuit of packet receiver | |
| JPS60206228A (en) | Error correction system | |
| JPS6234243A (en) | Error correcting system | |
| JPH05225717A (en) | Address generation circuit for DAT error correction | |
| RU2037271C1 (en) | Error-correcting device | |
| JPS6345922A (en) | Error correction method | |
| KR100505566B1 (en) | Parallel Circulation Check Method for Subcode Q Data | |
| GB2023895A (en) | Error detection circuit | |
| RU1810909C (en) | Error corrector | |
| JPS592583Y2 (en) | Cyclic code encoding circuit |