JPH0311827A - Error detection and correction circuit - Google Patents

Error detection and correction circuit

Info

Publication number
JPH0311827A
JPH0311827A JP14512689A JP14512689A JPH0311827A JP H0311827 A JPH0311827 A JP H0311827A JP 14512689 A JP14512689 A JP 14512689A JP 14512689 A JP14512689 A JP 14512689A JP H0311827 A JPH0311827 A JP H0311827A
Authority
JP
Japan
Prior art keywords
data
circuit
parity
frame
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP14512689A
Other languages
Japanese (ja)
Inventor
Osamu Hayashi
修 林
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP14512689A priority Critical patent/JPH0311827A/en
Publication of JPH0311827A publication Critical patent/JPH0311827A/en
Pending legal-status Critical Current

Links

Landscapes

  • Error Detection And Correction (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PURPOSE:To surely correct both of a frame bit and a parity bit by providing a data comparator circuit fetching input and output data of a frame correction circuit, comparing them and outputting an inverting command when the both are different. CONSTITUTION:A data comparator circuit 8 fetches a data 200 before frame bit correction and a data 300 after frame bit correction, compares them and outputs an inverting instruction 800 when a different bit exists. A parity inversion circuit 10 receiving the instruction inverts a parity data 700 and outputs an inserted data 400 to a parity bit correction circuit 6. On the other hand, the data 300 whose frame bit is corrected outputted from the frame correction circuit 4 is subject to insertion with the data 400 from the circuit 10 as a parity bit. Thus, the result is outputted from the circuit 6 as an output data 500 whose frame bit and parity bit are corrected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、デジタル伝送システムの誤り検出訂正回路に
係わり、特にフレームビット・パリアイビットの双方を
修正できる誤り検出訂正回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an error detection and correction circuit for a digital transmission system, and particularly to an error detection and correction circuit that can correct both frame bits and parity bits.

〔従来の技術〕[Conventional technology]

従来のこの種の誤り検出訂正回路は、第2図に示すよう
に、入力データ100に対してパリティチェックを行う
パリティチェック回路2と、パリティチェック回路2か
らのパリティチェック後のデータ200にフレームピッ
ト誤りのあるときにフレームビット訂正を行って出力デ
ータ300として出力するフレーム修正回路4と、フレ
ーム修正回路4からのデータ300にパリティチェック
回路2からのパリティデータを挿入データ400として
再挿入して出力データ500を出力するパリティビット
修正回路6とから構成されている。
As shown in FIG. 2, this type of conventional error detection and correction circuit includes a parity check circuit 2 that performs a parity check on input data 100, and a frame pit in the data 200 after the parity check from the parity check circuit 2. A frame correction circuit 4 corrects frame bits when there is an error and outputs the result as output data 300, and parity data from the parity check circuit 2 is reinserted into the data 300 from the frame correction circuit 4 as insertion data 400 and output. The parity bit correction circuit 6 outputs data 500.

このような誤り検出訂正回路によれば、パリティチェッ
ク回路2は、入力データ100に対してパリティを計算
し、その結果を入力データ100と比較することで、入
力データ100に誤りビットが含まれているか否かを判
定する。そして、パリティチェック回路2は、入力デー
タ100に誤りがあるときには誤り情報600を出力す
るとともに、パリティデータ700、出力テ′−夕20
0を出力する。このパリティチェック回路2からの出力
データ200は、フレームビットが誤っている場合を考
慮して、フレーム修正回路4において、正しいフレーム
ビットデータの再挿入が行われる。このフレームビット
が修正されたデータ300は、パリティビット修正回路
6において、挿入データ400 (パリティデータ70
0)がパリティピットとして挿入されて、出力データ5
00として出力される。
According to such an error detection and correction circuit, the parity check circuit 2 calculates parity for the input data 100 and compares the result with the input data 100 to determine whether the input data 100 contains error bits. Determine whether or not there is. The parity check circuit 2 outputs error information 600 when there is an error in the input data 100, and also outputs the parity data 700 and the output data 20.
Outputs 0. In the output data 200 from the parity check circuit 2, correct frame bit data is reinserted in the frame correction circuit 4 in consideration of the case where the frame bits are incorrect. The frame bit-corrected data 300 is processed by the parity bit correction circuit 6 to insert data 400 (parity data 70
0) is inserted as a parity pit and the output data 5
Output as 00.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、このような誤り検出訂正機能を有する誤
り検出訂正回路では、誤ったフレームビットを含んだ入
力データ100が、そのフレームビットが修正されるこ
とで修正前と修正後においてデータのパリティが異なる
。したがって、従来の誤り検出訂正回路では、フレーム
ピア)修正前のデータ100から検出されたパリティデ
ータ700が、フレームビット修正後のデータ300の
パリティとして挿入されると、そのデータ500は、実
際のパリティと異なるため、結果的に誤りの修正されて
いないデータが出力されてしまうという欠点がある。
However, in an error detection and correction circuit having such an error detection and correction function, when the input data 100 including an erroneous frame bit is corrected, the parity of the data differs between before and after correction. Therefore, in the conventional error detection and correction circuit, when the parity data 700 detected from the data 100 before frame peer correction is inserted as the parity of the data 300 after frame bit correction, the data 500 becomes the actual parity data. This has the disadvantage that data with uncorrected errors is output as a result.

本発明は、上述した欠点を解消するためになされたもの
で、確実かつ正確にフレームビット・パリティビットの
双方を修正できる誤り検出訂正回路を提供することを目
的とする。
The present invention has been made to eliminate the above-mentioned drawbacks, and an object of the present invention is to provide an error detection and correction circuit that can reliably and accurately correct both frame bits and parity bits.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の誤り検出訂正回路は、入力データに対してパリ
ティチェックを行うパリティチェック回路と、このパリ
ティチェック回路からのパリティチェック後のデータに
フレームビット誤りのあるときにフレームビット訂正を
行うフレーム修正回路と、このフレーム修正回路からの
データにパリティチェック回路からのデータを再挿入し
て出力データを得るパリティビット修正回路とを備えて
なる誤り検出訂正回路において、フレーム修正回路の入
出力データを取り込み、これらを比較して両者が異なる
ときに反転指令を出力するデータ比較回路と、このデー
タ比較回路からの反転指令があるときのみパリティチェ
ック回路からのパリティデータを反転して出力し、これ
以外では反転しないで出力してパリティビット修正回路
に挿入データとして与えるパリティ反転回路とを備えた
ことを特徴とするものである。
The error detection and correction circuit of the present invention includes a parity check circuit that performs a parity check on input data, and a frame correction circuit that performs frame bit correction when there is a frame bit error in the data after the parity check from the parity check circuit. and a parity bit correction circuit that reinserts the data from the parity check circuit into the data from the frame correction circuit to obtain output data. A data comparison circuit that compares these and outputs an inversion command when the two differ; and a data comparison circuit that inverts and outputs the parity data from the parity check circuit only when there is an inversion command from this data comparison circuit, and inverts it otherwise. The present invention is characterized in that it includes a parity inversion circuit that outputs the data without changing the parity bit and supplies it to the parity bit correction circuit as insertion data.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は、本発明の誤り検出訂正回路の実施例を示すブ
ロック図である。この第1図に示す実施例において、第
2図の回路の構成要素と同一のものには同一の符号を付
して説明する。
FIG. 1 is a block diagram showing an embodiment of the error detection and correction circuit of the present invention. In the embodiment shown in FIG. 1, the same components as those in the circuit shown in FIG. 2 will be described with the same reference numerals.

第1図に示す誤り検出訂正回路は、パリティチェック回
路2と、フレーム修正回路4と、パリティビット修正回
路6と、データ比較回路8と、パリティ反転回路10と
から構成されている。
The error detection and correction circuit shown in FIG. 1 is composed of a parity check circuit 2, a frame correction circuit 4, a parity bit correction circuit 6, a data comparison circuit 8, and a parity inversion circuit 10.

ここで、バリティチs ’7り回路2は、入力データ1
00に対してパリティチェックを行うようになっている
。フレーム修正回路4は、パリティチェック回路2から
のパリティチェック後のデータ200にフレームビット
誤りのあるときにフレームビット訂正を行って出力デー
タ300として出力できるようになっている。パリティ
ビット修正回路6は、フレーム修正回路4からのデータ
300に、外部から与えられる挿入データ400をパリ
ティピットとして再挿入して出力データ500を出力で
きるようになっている。データ比較回路8は、フレーム
修正回路4の入力データ200と出力データ300とを
取り込み、これらを比較して両者が異なるときに反転指
令800を出力するように構成されている。パリティ反
転回路10は、データ比較回路8からの反転指令800
があるときのみパリティチェック回路2からのパリティ
データ700を反転し、これ以外ではパリティデータ7
00を反転しないで形成した挿入データ400を、パリ
ティビン)修正回路6に与えられるように構成されてい
る。
Here, the baritichi s '7 circuit 2 has input data 1
A parity check is performed on 00. The frame correction circuit 4 is configured to perform frame bit correction and output as output data 300 when there is a frame bit error in the data 200 after the parity check from the parity check circuit 2. The parity bit correction circuit 6 is capable of reinserting insert data 400 given from the outside into the data 300 from the frame correction circuit 4 as a parity pit, and outputting output data 500. The data comparison circuit 8 is configured to take in the input data 200 and the output data 300 of the frame correction circuit 4, compare them, and output an inversion command 800 when the two differ. The parity inversion circuit 10 receives an inversion command 800 from the data comparison circuit 8.
The parity data 700 from the parity check circuit 2 is inverted only when
The parity bin correction circuit 6 is configured to receive insertion data 400 formed without inverting 00.

このように構成された実施例の作用を説明する。The operation of the embodiment configured in this way will be explained.

パリティチェック回路2は、入力データ100に対して
パリティを計算し、その結果を入力データ100と比較
することで、入力データ100に誤りビットが含まれて
いるか否かを判定する。そして、パリティチェック回路
2は、入力データ100に誤りがあるときには誤り情報
600を出力するとともに、パリティデータ700、出
力データ200を出力する。このパリティチェック回路
2からの出力データ200は、フレームビットが誤って
いる場合を考慮して、フレーム修正回路4において、正
しいフレームビットデータの再挿入が行われる。
The parity check circuit 2 calculates parity for the input data 100 and compares the result with the input data 100 to determine whether the input data 100 includes an error bit. Parity check circuit 2 outputs error information 600 when input data 100 has an error, and also outputs parity data 700 and output data 200. In the output data 200 from the parity check circuit 2, correct frame bit data is reinserted in the frame correction circuit 4 in consideration of the case where the frame bits are incorrect.

ここで、データ比較回路8は、フレームビット修正前の
データ200と、フレームビット修正後のデータ300
とを取り込み、これらを比較して、異なるビットがない
(フレームビットに誤りがない)場合には、反転命令8
00を出力しない。これにより、パリティ反転回路10
は、パリティデータ700を反転しないで形成した挿入
データ400をパリティビット修正回路6に出力する。
Here, the data comparison circuit 8 compares data 200 before frame bit correction and data 300 after frame bit correction.
and compare them, and if there are no different bits (there is no error in the frame bits), use the inversion instruction 8.
Do not output 00. As a result, the parity inversion circuit 10
outputs insertion data 400 formed without inverting parity data 700 to parity bit correction circuit 6.

フレーム修正回路4から出力されたデータ300には、
パリティビット修正回路6において、パリティ反転回路
10からの挿入データ400 (非反転パリティデータ
700)がパリティビットとして挿入される。このよう
にしてパリティビット修正回路6において得られたデー
タが出力データ500として出力される。
The data 300 output from the frame correction circuit 4 includes:
In the parity bit correction circuit 6, the insertion data 400 (non-inverted parity data 700) from the parity inversion circuit 10 is inserted as a parity bit. The data thus obtained in the parity bit correction circuit 6 is output as output data 500.

一方、データ比較回路8は、フレームビット修正前のデ
ータ200と、フレームビット修正後のデータ300と
を取り込み、これらを比較して、異なるビットがある(
フレームビットに誤りがある)場合には、反転命令80
0を出力する。これにより、パリティ反転回路10は、
パリティデータ700を反転して形成した挿入データ4
00をパリティビット修正回路6に出力する。フレーム
修正回路4から出力されたフレームビットの修正された
データ300には、パリティビット修正回路6において
、パリティ反転回路10からの挿入データ400 (反
転パリティデータ700)がパリティビットとして挿入
される。このようにしてパリティビット修正回路6にお
いて得られたデータが出力データ500として出力され
る。
On the other hand, the data comparison circuit 8 takes in the data 200 before frame bit correction and the data 300 after frame bit correction, compares them, and finds different bits (
If there is an error in the frame bits), the inversion instruction 80
Outputs 0. As a result, the parity inversion circuit 10
Insert data 4 formed by inverting parity data 700
00 is output to the parity bit correction circuit 6. The inserted data 400 (inverted parity data 700) from the parity inverting circuit 10 is inserted as a parity bit into the frame bit corrected data 300 output from the frame correcting circuit 4 in the parity bit correcting circuit 6. The data thus obtained in the parity bit correction circuit 6 is output as output data 500.

本実施例は、上述のようにしてフレームビア)・パリテ
ィビットを修正した出力データが得られることになる。
In this embodiment, output data with frame vias and parity bits corrected as described above is obtained.

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

以上説明したように本発明は、フレーム修正回路による
フレームビット修正前のデータと、フレームビット修正
後のデータとを比較し、その比較結果により先に検出し
たパリティデータを反転・非反転してから出力データの
パリティピントに再挿入するようにしたことにより、誤
ったフレームビットを含む入力データに対してもフレー
ムビット・パリティピットを修正して出力データが得ら
れる効果がある。
As explained above, the present invention compares data before frame bit correction by the frame correction circuit with data after frame bit correction, and inverts or non-inverts previously detected parity data based on the comparison result. By re-inserting the output data at the parity focus, it is possible to correct the frame bits and parity pits and obtain output data even for input data containing erroneous frame bits.

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

第1図は本発明の実施例を示すブロック図、第2図は従
来回路を示すブロック図である。 2・・・・・・パリティチェック回路、4・・・・・・
フレーム修正回路、 6・・・・・パリティビット修正回路、8・・・・・・
データ比較回路、 10・・・・・・パリティ反転回路。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram showing a conventional circuit. 2...Parity check circuit, 4...
Frame correction circuit, 6... Parity bit correction circuit, 8...
Data comparison circuit, 10...Parity inversion circuit.

Claims (1)

【特許請求の範囲】[Claims] 入力データに対してパリティチェックを行うパリティチ
ェック回路と、前記パリティチェック回路からのパリテ
ィチェック後のデータにフレームビット誤りのあるとき
にフレームビット訂正を行うフレーム修正回路と、前記
フレーム修正回路からのデータに前記パリティチェック
回路からのデータを再挿入して出力データを得るパリテ
ィビット修正回路とを備えてなる誤り検出訂正回路にお
いて、前記フレーム修正回路の入出力データを取り込み
、これらを比較して両者が異なるときに反転指令を出力
するデータ比較回路と、前記データ比較回路からの反転
指令があるときのみ前記パリティチェック回路からのパ
リティデータを反転して出力し、これ以外では反転しな
いで出力して前記パリティビット修正回路に挿入データ
として与えるパリティ反転回路とを備えたことを特徴と
する誤り検出訂正回路。
a parity check circuit that performs a parity check on input data; a frame correction circuit that performs frame bit correction when the data after the parity check from the parity check circuit has a frame bit error; and data from the frame correction circuit. and a parity bit correction circuit for reinserting data from the parity check circuit to obtain output data, the error detection and correction circuit takes input and output data of the frame correction circuit, compares them, and calculates whether the two are correct. a data comparison circuit that outputs an inversion command when different; and a data comparison circuit that inverts and outputs the parity data from the parity check circuit only when there is an inversion command from the data comparison circuit, and otherwise outputs the parity data without inversion. An error detection and correction circuit comprising: a parity inversion circuit that supplies data as insertion data to a parity bit correction circuit.
JP14512689A 1989-06-09 1989-06-09 Error detection and correction circuit Pending JPH0311827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14512689A JPH0311827A (en) 1989-06-09 1989-06-09 Error detection and correction circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14512689A JPH0311827A (en) 1989-06-09 1989-06-09 Error detection and correction circuit

Publications (1)

Publication Number Publication Date
JPH0311827A true JPH0311827A (en) 1991-01-21

Family

ID=15378003

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14512689A Pending JPH0311827A (en) 1989-06-09 1989-06-09 Error detection and correction circuit

Country Status (1)

Country Link
JP (1) JPH0311827A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5497382A (en) * 1991-09-20 1996-03-05 Motorola, Inc. Extended error correction of a transmitted data message
WO2003013549A3 (en) * 2001-08-09 2003-11-06 Degussa Bioactives Gmbh & Co K Formulation containing (lyso-) phosphatidylserine for the prevention and treatment of stress states in warm-blooded animals

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5497382A (en) * 1991-09-20 1996-03-05 Motorola, Inc. Extended error correction of a transmitted data message
WO2003013549A3 (en) * 2001-08-09 2003-11-06 Degussa Bioactives Gmbh & Co K Formulation containing (lyso-) phosphatidylserine for the prevention and treatment of stress states in warm-blooded animals

Similar Documents

Publication Publication Date Title
US4858236A (en) Method for error correction in memory system
JPS5846741A (en) Decoder
US6999127B2 (en) Apparatus and method for image conversion and automatic error correction for digital television receiver
JP2606862B2 (en) Single error detection and correction method
JPH0311827A (en) Error detection and correction circuit
JPS617729A (en) Device for correcting error burst in compressed circulating block code
KR0148004B1 (en) Error detection apparatus
JP2003046393A (en) Error detector
KR0176795B1 (en) Error correction device and method of cd player
JP3364753B2 (en) Memory error correction circuit
JPS61133080A (en) Digital signal processor
KR100486213B1 (en) Apparatus for detecting the error using the byte/word-based error detection code
JP3880144B2 (en) Error correction method
JP2000124812A (en) Error-correcting decoding device
JPH0638239B2 (en) Error correction mechanism
JPH06303149A (en) Decoder for bch code
JPS62245726A (en) Decoder for bch code
JPH0259660B2 (en)
KR19980074516A (en) An error correction method and an apparatus therefor for reproducing a digital signal
JPS5860497A (en) Error detection control system
KR950007303A (en) Error Correction Device
JPS6398238A (en) Fast frame synchronizing device
JPH04192038A (en) Parity check device
JPH0198033A (en) Detecting circuit for data error
JPS59110098A (en) Error correcting device of data storage device