JPH03218535A - Error detection system - Google Patents

Error detection system

Info

Publication number
JPH03218535A
JPH03218535A JP2014333A JP1433390A JPH03218535A JP H03218535 A JPH03218535 A JP H03218535A JP 2014333 A JP2014333 A JP 2014333A JP 1433390 A JP1433390 A JP 1433390A JP H03218535 A JPH03218535 A JP H03218535A
Authority
JP
Japan
Prior art keywords
parity
bit
register
signal
parity check
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
JP2014333A
Other languages
Japanese (ja)
Inventor
Hiroshi Nakajima
浩 中島
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 Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2014333A priority Critical patent/JPH03218535A/en
Publication of JPH03218535A publication Critical patent/JPH03218535A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Advance Control (AREA)

Abstract

PURPOSE:To detect not only an odd bit error but also an even bit error with the small quantity of hardware by checking parity in a vertical direction for respective bits constituting holding data in registers which are cascade-connected. CONSTITUTION:A means transmitting parity codes based on the values of a first signal being the value of a bit inputted to a first register 11, a second signal being the value of the N-th register 1N of a bit whose weight is the same as that of the bit of the first signal, and a third signal is provided. Then, means 41 and 42 holding the parity codes transmitted from a parity code transmission means and parity check means 51 and 52 checking the parity of the same weight bit based on the output are provided, and the outputs of the holding means 41 and 42 are set to be the third signal. Namely, parity check in a horizontal direction and parity check in the vertical direction, which generates the parity code after data is transmitted to the other register and detects the error by using the parity code are used together. Thus, not only the odd bit error but also the even bit error can be detected.

Description

【発明の詳細な説明】 技術分野 本発明はエラー検出システムに関し、特に保持データの
各ビッ1・を次段の対応するビットに順次シフトするよ
うに縦続接続された複数のレジスタの各保持データのエ
ラーを検出するエラー検出システムに関する。
TECHNICAL FIELD The present invention relates to an error detection system, and more particularly, to an error detection system for detecting errors in each held data of a plurality of registers connected in cascade so as to sequentially shift each bit of held data to a corresponding bit in the next stage. The present invention relates to an error detection system for detecting errors.

従来技術 一般に、パイプライン処理方式が採用されている情報処
理装置においては保持データの各ビットを次段の対応す
るビットに順次シフトするように縦続接続された複数の
レジスタが設けられている。
BACKGROUND ART In general, an information processing apparatus employing a pipeline processing method is provided with a plurality of registers connected in cascade so as to sequentially shift each bit of held data to a corresponding bit in the next stage.

従来、そのような情報処理装置においては、各レジスタ
の保持データに対してパリティチェックを行うことによ
り、エラーを検出している。すなわち、複数のレジスタ
の各保持データに対し、データごとのパリティを用いて
データの正当性を検査し、不正と判定された場合には上
位装置や外部にその旨を通知するというエラー検出方式
が採用されていたのである。
Conventionally, in such information processing devices, errors are detected by performing a parity check on data held in each register. In other words, the error detection method uses the parity of each data held in multiple registers to check the validity of the data, and if it is determined to be invalid, it notifies the higher-level device and the outside. It had been adopted.

その従来のエラー検出方式を採用した情報処理装置につ
いて第2図を用いて説明する。第2図は従来の情報処理
装置の主要部の構成を示すブロック図である。
An information processing apparatus employing the conventional error detection method will be described with reference to FIG. FIG. 2 is a block diagram showing the configuration of the main parts of a conventional information processing device.

図において、11,12,・・・INはレジスタであり
、その保持データの各ビットが次段の対応するビットに
順次シフトするように縦続接続されている。そして、各
データを構成するビットA,B,C,−..の“1”の
数に応じた値のパリティビットPが付加されている。す
なわち、データの各ビットにパリティビットPを含めた
“1″の数が常に偶数(または奇数)となるような値の
パリティビットPが付加されて入力されるのである。よ
って、各データ及びパリティビットをパリティチェック
回路(以下、pc回路と略す)21,22,・・・2N
に入力すれば、各レジスタに保持されているデータの正
当性がチェックできることとなる。
In the figure, 11, 12, . . . IN are registers, which are cascade-connected so that each bit of held data is sequentially shifted to a corresponding bit in the next stage. Bits A, B, C, - . . . constitute each data. .. A parity bit P having a value corresponding to the number of "1"s is added. That is, a parity bit P of a value such that the number of "1"s including the parity bit P is always an even number (or an odd number) is added to each bit of data and input. Therefore, each data and parity bit is processed by a parity check circuit (hereinafter abbreviated as PC circuit) 21, 22, . . . 2N.
By inputting the data into the , you can check the validity of the data held in each register.

つまり、あるレジスタから他のレジスタにデータが伝播
する際にいわゆるデータ化けが起こり、“1“が“0“
又は“0”が“1”となると、・1・の数が変わり、こ
れが各PC回路において検出されることとなる。なお、
PC回路の例としては周知のIEX−NOR (イクス
クルーシブノア)回路がある。
In other words, when data is propagated from one register to another, so-called data corruption occurs, and "1" becomes "0".
Or, when "0" becomes "1", the number of 1 changes, and this is detected in each PC circuit. In addition,
An example of a PC circuit is the well-known IEX-NOR (exclusive NOR) circuit.

しかし、パリティチェックによる従来のエラー検出の方
式では奇数ビットのエラーは検出できるが、2ビットエ
ラー等の偶数ビットのエラーは検出できないという欠点
がある。その改善策として周知の2ビットエラー訂正コ
ードの採用も考えられるが、大量のハードウェアの増加
が伴うため、得策ではない。
However, the conventional error detection method using a parity check has the drawback that although odd-numbered bit errors can be detected, even-numbered bit errors such as 2-bit errors cannot be detected. As an improvement measure, it is possible to adopt a well-known 2-bit error correction code, but this is not a good idea because it involves an increase in a large amount of hardware.

発明の目的 本発明は上述した従来の欠点を解決するためになされた
ものであり、その目的は奇数ビットエラーのみならず、
偶数ビットエラーも検出することかできるエラー検出シ
ステムを提供することである。
Purpose of the Invention The present invention has been made to solve the above-mentioned conventional drawbacks, and its purpose is to eliminate not only odd bit errors but also
An object of the present invention is to provide an error detection system capable of detecting even bit errors.

発明の構成 本発明によるエラー検出システムは、保持データの各ビ
ットを次段の対応するビッ1・に順次シフトするように
縦続接続された第1〜第N (Nは2以上の整数)のレ
ジスタの各保持データのエラーを検出するエラー検出シ
ステムであって、前記第1のレジスタへ入力されるビッ
トの値である第1の信号及びそのビットと同じ重みのビ
ットの前記第Nのレジスタの値である第2の信号、更に
は第3の信号の値に基づいてパリティチェック用のパリ
ティ符号を送出するパリティ符号送出手段と、前記パリ
ティ符号送出手段から送出されたパリティ符号を保持す
る保持手段と、前記保持手段の出力に基づいて前記同じ
重みのビットのパリティチェックを行うパリティチェッ
ク手段とを有し、前記保持手段の出力を前記第3の信号
としたことを特徴とする。
Structure of the Invention The error detection system according to the present invention comprises first to Nth registers (N is an integer of 2 or more) connected in cascade so as to sequentially shift each bit of held data to the corresponding bit 1 of the next stage. an error detection system for detecting errors in each held data, the first signal being the value of a bit input to the first register and the value of the Nth register having the same weight as the bit; parity code sending means for sending out a parity code for parity check based on the value of the second signal and further the third signal; holding means for holding the parity code sent from the parity code sending means; and parity check means for performing a parity check of the bits having the same weight based on the output of the holding means, and the output of the holding means is used as the third signal.

本発明による他のエラー検出システムは、保持データの
各ビットを次段の対応するビットに順次シフトするよう
に縦続接続された第1〜第N(Nは2以上の整数)のレ
ジスタの各保持データのエラーを検出するエラー検出シ
ステムであって、前記第1のレジスタに入力されるビッ
トの値である第1の信号及びそのビットと同じ重みのビ
ットの前記第Nのレジスタの値である第2の信号、更に
は第3の信号の値に基づいてパリティチェック用のパリ
ティ符号を送出するパリティ符号送出手段と、前記パリ
ティ符号送出手段から送出されたパリティ符号を保持す
る保持手段と、前記保持手段の出力に基づいて前記同じ
重みのビットのパリティチェックを行う第1のパリティ
チェック手段と、前記第1〜第Nのレジスタの各々に対
応して設けられ、対応レジスタ内の各保持データについ
てのパリティチェックを行う第2のパリティチェック手
段とを有し、前記保持手段の出力を前記第3の信号とし
、更には前記第1及び第2のパリティチェック手段のパ
リティチェックの結果をもとにエラーを検出するように
したことを特徴とする。
Another error detection system according to the present invention provides each hold in first to Nth (N is an integer of 2 or more) registers connected in cascade so as to sequentially shift each bit of held data to a corresponding bit in the next stage. An error detection system for detecting errors in data, the first signal being the value of a bit input to the first register, and the first signal being the value of the Nth register of a bit having the same weight as the bit. parity code sending means for sending out a parity code for parity check based on the value of the second signal and further the third signal; holding means for holding the parity code sent from the parity code sending means; and the holding means. a first parity check means for performing a parity check on the bits having the same weight based on the output of the means; a second parity check means for performing a parity check, the output of the holding means is used as the third signal, and an error is detected based on the results of the parity check of the first and second parity check means. It is characterized by detecting.

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

第1図は本発明によるエラー検出システムを採用した情
報処理装置の主要部の構成を示すブロック図であり、第
2図と同等部分は同一符号により示されている。
FIG. 1 is a block diagram showing the configuration of the main parts of an information processing apparatus employing an error detection system according to the present invention, and parts equivalent to those in FIG. 2 are designated by the same reference numerals.

実施例においては、第2図に示されている従来のエラー
検出方式によるエラー検出回路と、それとは別の方式に
よるエラー検出回路が設けられている。つまり、図中の
21.22,・・・,2Nが従来のエラー検出方式によ
るエラー検出回路であり、先述したように保持データを
構成する各ビットにパリティビットPを含めた場合にお
ける“1”の数が偶数であるか、奇数であるかによって
保持データの正当性を判定しているのである。
In the embodiment, an error detection circuit using the conventional error detection method shown in FIG. 2 and an error detection circuit using a different method are provided. In other words, 21, 22, ..., 2N in the figure are error detection circuits using the conventional error detection method, and as described above, when the parity bit P is included in each bit constituting the retained data, "1" is detected. The validity of the retained data is determined based on whether the number is even or odd.

しかしながら、この方式では先述したように偶数ビット
エラーを検出することができない。そこで、本実施例で
は別の方式によるエラー検出回路が設けられているので
ある。
However, as described above, this method cannot detect even-numbered bit errors. Therefore, in this embodiment, an error detection circuit using a different method is provided.

図中の31.32,・・・がパリティプリディクション
(Parity Prediction;以下、PPと
略す)回路、41.42,・・・,4Nが保持回路、5
1,52,・・・がパリティチェック回路である。
In the figure, 31, 32, . . . are parity prediction (hereinafter abbreviated as PP) circuits, 41, 42, . . . , 4N are holding circuits, and 5
1, 52, . . . are parity check circuits.

パリティチェック回路51,52.・・・には、各レジ
スタの保持データのうちの同一重みのビットの全て及び
対応する保持回路からの出力ビットが入力されており、
先述の方式と同様に“1“の数が偶数であるか、奇数で
あるかによって保持データの正当性が判定されることと
なる。
Parity check circuits 51, 52. ... is input with all the bits of the same weight among the data held in each register and the output bits from the corresponding holding circuit,
Similar to the above-mentioned method, the validity of the held data is determined depending on whether the number of "1"s is an even number or an odd number.

また、各保持回路41,42,・・・には対応するPP
回路の出力が保持されるが、各保持回路41.42,・
・・の出力は、初段であるレジスタ11への入力及び最
終段であるレジスタINの出力とともに対応するPP回
路に入力されている。つまり、PP回路では保持回路の
出力、すなわち前回における自回路の出力、そしてレジ
スタ11への入力、更にはレジスタINの出力の合計3
つの信号に基づいてエラー検出用の符号が生成されるの
である。
In addition, each holding circuit 41, 42, . . . has a corresponding PP
Although the output of the circuit is held, each holding circuit 41, 42, .
The outputs of . In other words, in the PP circuit, the output of the holding circuit, that is, the previous output of its own circuit, the input to register 11, and the output of register IN, total 3.
An error detection code is generated based on the two signals.

この場合、レジスタINはエラーのチェックの対象とな
るレジスタのうちの最終段である。したがって、途中の
段までのチェックを行いたい場合には、その段のレジス
タをレジスタINとすれば良い。
In this case, register IN is the final stage of the registers to be checked for errors. Therefore, if it is desired to check up to an intermediate stage, the register at that stage may be set as register IN.

なお、木例ではPP回路31,32,・・・は周知のI
EX−OR回路、PC回路51,52,−1.t周知ノ
EX−NOR回路、保持回路41,42,・・・は周知
のD型フリップフ口ップてあるものとする。
In addition, in the tree example, the PP circuits 31, 32,... are the well-known I
EX-OR circuit, PC circuit 51, 52, -1. It is assumed that the well-known EX-NOR circuit, holding circuits 41, 42, . . . are well-known D-type flip-flops.

かかる構成とされたエラー検出システムの動作について
第3図を用いて説明する。第3図は第1図の各部の動作
を示す真理値表である。図においては、N−3、すなわ
ちレジスタが3段の場合における、保持回路41の保持
値、各レジスタの保持値、PC回路51の出力、レジス
タ11への入力、PP回路31の出力が示されている。
The operation of the error detection system having such a configuration will be explained using FIG. 3. FIG. 3 is a truth table showing the operation of each part in FIG. 1. In the figure, the held value of the holding circuit 41, the held value of each register, the output of the PC circuit 51, the input to the register 11, and the output of the PP circuit 31 are shown in the case of N-3, that is, when there are three stages of registers. ing.

なお、表中の■はレジスタ11の保持値、■はレジスタ
12の保持値、■はレジスタINの保持値であるものと
する。また、PC回路においては“1′の数が奇数個の
とき正常と判定して出力は“0”偶数のとき異常と判定
して出力は“1”となるものとする。
In the table, ■ is the value held in the register 11, ■ is the value held in the register 12, and ■ is the value held in the register IN. Further, in the PC circuit, when the number of "1's" is an odd number, it is determined to be normal and the output is "0", and when the number is even, it is determined to be abnormal and the output is "1".

まず、装置のリセット時、すなわち初期設定時には、保
持回路41の保持値は“1” 各レジスタの保持値、P
C回路51の出力は全て“0“に設定される(項目A)
First, at the time of resetting the device, that is, at the time of initial setting, the value held in the holding circuit 41 is "1", the value held in each register, P
All outputs of the C circuit 51 are set to “0” (item A)
.

ここで、レジスタ11への入力が“1″になると、保持
回路41の保持値が“1゛ レジスタ1Nの保持値が“
O”であるため、それらの排他的論理和であるPP回路
31の出力は“0゛となる(項目B)。
Here, when the input to the register 11 becomes "1", the value held in the holding circuit 41 becomes "1", and the value held in the register 1N becomes "1".
Therefore, the output of the PP circuit 31, which is their exclusive OR, becomes "0" (item B).

この状態において1回目のクロックが立上ると、各レジ
スタ、保持回路には入力の値がラッチされる。すると、
レジスタ11〜INには順に“1゛“0”,“0”が保
持され、保持回路41には“0”が保持されるため、“
1”の数が奇数個となり、PC回路51の出力は“0”
であり、正常である(項目C)。
When the first clock rises in this state, the input values are latched into each register and holding circuit. Then,
“1”, “0”, and “0” are held in the registers 11 to IN in order, and “0” is held in the holding circuit 41, so “
The number of “1” is odd, and the output of the PC circuit 51 is “0”.
and is normal (item C).

次に、レジスタ11への入力が“1”になると、保持回
路41の保持値が“O” レジスタINの保持値が“0
”であるため、それらの排他的論理和てあるPP回路3
1の出力は“1”となる(項目D)。
Next, when the input to the register 11 becomes "1", the value held in the holding circuit 41 becomes "O" and the value held in the register IN becomes "0".
”, therefore, the PP circuit 3 which is their exclusive OR
The output of 1 becomes "1" (item D).

この状態において2回目のクロックが立上ると、各レジ
スタ、保持回路には入力の値がラッチされる。すると、
レジスタ11〜INには順に“1““1“,“0“が保
持され、保持回路41には“1”が保持されるため、“
1′の数が奇数個となり、PC回路51の出力は“0”
であり、正常である(項目E)。
When the second clock rises in this state, the input values are latched into each register and holding circuit. Then,
“1”, “1” and “0” are held in the registers 11 to IN in order, and “1” is held in the holding circuit 41, so “
The number of 1' is odd, and the output of the PC circuit 51 is "0".
and is normal (item E).

次に、レジスタ11への入力が“1“になると、保持回
路41の保持値が“1” レジスタINの保持値が“0
”であるため、それらの排他的論理和であるPP回路3
1の出力は“0”となる(項目F)。
Next, when the input to the register 11 becomes "1", the value held in the holding circuit 41 becomes "1" and the value held in the register IN becomes "0".
”, so the PP circuit 3 which is their exclusive OR
The output of 1 becomes "0" (item F).

この状態において3回目のクロックが立上ると、各レジ
スタ、保持回路には入力の値がラッチされる。すると、
レジスタ11〜INには順に“1゜“1”1”が保持さ
れ、保持回路41には“0”が保持されるため、“1゜
の数が奇数個となり、PC回路51の出力は“0”であ
り、正常である(項目G)。
When the third clock rises in this state, the input values are latched into each register and holding circuit. Then,
The registers 11 to IN hold "1°""1" in order, and the holding circuit 41 holds "0", so the number of "1°" is an odd number, and the output of the PC circuit 51 is "0'', which is normal (item G).

次に、レジスタ11への入力が“1”になると、保持回
路41の保持値が“0” レジスタINの保持値が“1
”であるため、それらの排他的論理和てあるPP回路3
1の出力は“0”となる(項目H)。
Next, when the input to the register 11 becomes "1", the value held in the holding circuit 41 becomes "0" and the value held in the register IN becomes "1".
”, therefore, the PP circuit 3 which is their exclusive OR
The output of 1 becomes "0" (item H).

この状態において4回目のクロックが立上ると、各レジ
スタ、保持回路には入力の値がラッチされる。すると、
レジスタ11〜INには順に“1″“1”1”が保持さ
れ、保持回路41には“0”が保持されるため、“1”
の数が奇数個となり、PC回路51の出力は“0“であ
り、正常である(項目!)。
When the fourth clock rises in this state, the input values are latched into each register and holding circuit. Then,
“1” “1” 1” are held in the registers 11 to IN in order, and “0” is held in the holding circuit 41, so “1”
is an odd number, and the output of the PC circuit 51 is "0", which is normal (item!).

次に、レジスタ11への入力が“0″になると、保持回
路41の保持値が“0” レジスタINの保持値が“1
“であるため、それらの排他的論理和であるPP回路3
1の出力は“1”となる(項目J)。
Next, when the input to the register 11 becomes "0", the value held in the holding circuit 41 becomes "0" and the value held in the register IN becomes "1".
“, so the PP circuit 3 which is their exclusive OR
The output of 1 becomes "1" (item J).

この状態において5回目のクロックが立上ると、各レジ
スタ、保持回路には入力の値がラッチされる。すると、
レジスタ11〜INには順に“0”“1”.“1”が保
持され、保持回路41には“1”が保持されるため、“
1”の数が奇数個となり、PC回路51の出力は“0”
であり、正常である(項目K)。
When the fifth clock rises in this state, the input values are latched into each register and holding circuit. Then,
Registers 11 to IN contain "0", "1", . “1” is held and “1” is held in the holding circuit 41, so “
The number of “1” is odd, and the output of the PC circuit 51 is “0”.
and is normal (Item K).

次に、レジスタ11への人力が“0“になると、保持回
路41の保持値が“1” レジスタINの保持値が“1
゛であるため、それらの排他的論理和であるPP回路3
1の出力は“0”となる(項目し)。
Next, when the human power to the register 11 becomes "0", the value held in the holding circuit 41 becomes "1", and the value held in the register IN becomes "1".
Therefore, the PP circuit 3 which is their exclusive OR
The output of 1 becomes "0" (item).

この状態において6回目のクロックが立上ると、各レジ
スタ、保持回路には入力の値がラッチされる。すると、
レジスタ11〜INには順に“0°“0”1″が保持さ
れ、保持回路41には“0゛が保持されるため、“1“
の数が奇数個となり、PC回路51の出力は“0”であ
り、正常である(項目M)。
When the sixth clock rises in this state, the input values are latched into each register and holding circuit. Then,
The registers 11 to IN hold “0°”0” and “1” in order, and the holding circuit 41 holds “0”, so “1”
is an odd number, and the output of the PC circuit 51 is "0", which is normal (item M).

以上のように、データがレジスタ11からレジスタIN
まで正常に伝達されれば、すなわち、各レジスタの保持
データにエラーがなければ、PC回路の出力は常に“0
゜となり、正常である旨を示すこととなる。これに対し
、データが他のレジスタに伝達されるときに、いわゆる
データ化けを起こせば、PC回路の出力は“1”となり
、異常を示すこととなる。また、その場合各レジスタの
保持データを構成するビット毎にバリテイチェツクを行
っているため、1つの保持データ中に偶数ビットのエラ
ーが存在しているようなときであっても、そのエラーを
検出できるのである。
As described above, data is transferred from register 11 to register IN.
If the data is transmitted normally, that is, if there is no error in the data held in each register, the output of the PC circuit will always be “0”.
゜, indicating that it is normal. On the other hand, if so-called data corruption occurs when data is transmitted to another register, the output of the PC circuit becomes "1", indicating an abnormality. In addition, in this case, a validity check is performed for each bit that makes up the data held in each register, so even if there is an error in an even number of bits in one piece of held data, the error will be checked. It can be detected.

つまり、本実施例においては、1つのレジスタの保持デ
ータについてのエラーを検出するという横方向のパリテ
ィチェツクと、データが他のレジスタに伝達された後の
パリティ符号を生成し、これを用いてエラーを検出する
という縦方向のパリティチェックとを併用しているため
、奇数ビットエラーのみならず、偶数ビットエラーをも
検出できるのである。
In other words, in this embodiment, a horizontal parity check is performed to detect errors in data held in one register, and a parity code is generated after the data is transmitted to other registers, and this is used to detect errors. Since it is also used with a vertical parity check that detects , it is possible to detect not only odd bit errors but also even bit errors.

また、第1図の構成において、奇数ビットエラーが発生
すれば、各保持データの同一重みについての縦方向のエ
ラーを検出するPC回路51,52,・・・のうちの1
つの出力と、各保持データの横方向のエラーを検出する
PC回路21,22,・・・2Nのうちの1つの出力と
が同時にエラー発生を示すため、エラーが生じた保持デ
ータを特定できるとともに、そのビット位置を特定する
こともてきるのである。ただし、偶数ビットエラーの場
合にはPC回路21.22,・・・ 2Nではエラーを
検出することはできないため、PC回路51,52,・
・・の1つのみにより、エラー発生が検出できることと
なる。
In the configuration shown in FIG. 1, if an odd bit error occurs, one of the PC circuits 51, 52, .
Since the two outputs and the output of one of the PC circuits 21, 22, . , it is also possible to specify the bit position. However, in the case of an even bit error, the PC circuits 21, 22, ... 2N cannot detect the error, so the PC circuits 51, 52, ...
The occurrence of an error can be detected by only one of them.

よって、単にエラー発生の有無を調べたい場合には同一
重みについての縦方向のエラーを検出するPC回路51
,52,・・・を設けておけば良く、横方向のエラー用
のPC回路21,22,・・・2Nは不要である。つま
り、縦方向のエラー用のPC回路51.52,・・・を
設けておけば、奇数ビットエラー及び従来検出不可能で
あった偶数ビットエラーを検出できるのである。なお、
本実施例においてはレジスタが3段(N−3)の場合に
ついて説明したが、より多くの段数の場合にも適用でき
ることは明らかである。ただし、最低2段は必要である
。初段の値と最終段の値とが必要だからである。
Therefore, if you simply want to check whether an error has occurred, use the PC circuit 51 that detects errors in the vertical direction for the same weight.
, 52, . . . , and the PC circuits 21, 22, . . . 2N for horizontal errors are not required. In other words, by providing the PC circuits 51, 52, . . . for errors in the vertical direction, it is possible to detect odd number bit errors and even number bit errors, which were conventionally undetectable. In addition,
In this embodiment, the case where there are three stages (N-3) of registers has been described, but it is obvious that the present invention can also be applied to a case where the number of stages is larger. However, at least two stages are required. This is because the value of the first stage and the value of the last stage are required.

つまり、本発明は次に初段に入力される値と、現時点で
の最終段の値と、現時点でのパリティ符号の値とをもと
に、次回のクロックの立上り時に各レジスタに保持され
るデータを予想して同じ重みについてのパリティ符号を
予め生成しているので、データ伝達の際にエラーが生じ
れば、確実にそれを検出できるのである。
In other words, the present invention uses data to be held in each register at the next rising edge of the clock based on the value input to the first stage, the current value of the final stage, and the current parity code value. Since parity codes for the same weights are generated in advance in anticipation of the error, if an error occurs during data transmission, it can be reliably detected.

発明の効果 以上説明したように、本発明は、縦続接続されたレジス
タの各保持データに対し、その保持データを構成するビ
ット毎に縦方向のパリティチェックを行うことにより、
少ないハードウエア量で奇数ビットエラーのみならず、
偶数ビットエラーをも検出できるという効果がある。ま
た、縦方向のチェックの他に従来通りの横方向のチェッ
クを行えば、奇数ビッI・エラーの場合には、エラーの
発生したビット位置を特定できるという効果がある。
Effects of the Invention As explained above, the present invention performs a vertical parity check on each bit of data held in cascade-connected registers for each bit constituting the data.
In addition to eliminating odd bit errors with a small amount of hardware,
This has the advantage of being able to detect even-numbered bit errors. Furthermore, if a conventional horizontal check is performed in addition to the vertical check, in the case of an odd bit I error, the bit position where the error has occurred can be identified.

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

第1図は本発明の実施例によるエラー検出システムを採
用した情報処理装置の主要部の構成を示すブロック図、
第2図は従来の情報処理装置の構成を示すブロック図、
第3図は第1図の各部の動作を示す真理値表である。 主要部分の符号の説明 2 1 ・・・2N, 5 1 , 5 2 ・パリティチェ ック回路 3 1 , 3 2 ・・・ ・・・パリティ ブリディクショ ン回路 4 1, 4 2 ・・保持回路
FIG. 1 is a block diagram showing the configuration of the main parts of an information processing device that employs an error detection system according to an embodiment of the present invention;
FIG. 2 is a block diagram showing the configuration of a conventional information processing device.
FIG. 3 is a truth table showing the operation of each part in FIG. 1. Explanation of symbols of main parts 2 1 . . . 2N, 5 1 , 5 2 ・Parity check circuit 3 1 , 3 2 . . . Parity reduction circuit 4 1 , 4 2 . . Holding circuit

Claims (2)

【特許請求の範囲】[Claims] (1)保持データの各ビットを次段の対応するビットに
順次シフトするように縦続接続された第1〜第N(Nは
2以上の整数)のレジスタの各保持データのエラーを検
出するエラー検出システムであつて、前記第1のレジス
タへ入力されるビットの値である第1の信号及びそのビ
ットと同じ重みのビットの前記第Nのレジスタの値であ
る第2の信号、更には第3の信号の値に基づいてパリテ
ィチェック用のパリティ符号を送出するパリティ符号送
出手段と、前記パリティ符号送出手段から送出されたパ
リティ符号を保持する保持手段と、前記保持手段の出力
に基づいて前記同じ重みのビットのパリティチェックを
行うパリティチェック手段とを有し、前記保持手段の出
力を前記第3の信号としたことを特徴とするエラー検出
システム。
(1) An error that detects an error in each held data of the first to Nth (N is an integer of 2 or more) registers connected in cascade so that each bit of held data is sequentially shifted to the corresponding bit of the next stage. a detection system comprising: a first signal being the value of a bit input to the first register; a second signal being the value of the Nth register of bits having the same weight as the bit; parity code sending means for sending out a parity code for parity check based on the value of the signal No. 3; holding means for holding the parity code sent from the parity code sending means; and parity check means for performing a parity check on bits having the same weight, and an output of the holding means is used as the third signal.
(2)保持データの各ビットを次段の対応するビットに
順次シフトするように縦続接続された第1〜第N(Nは
2以上の整数)のレジスタの各保持データのエラーを検
出するエラー検出システムであつて、前記第1のレジス
タに入力されるビットの値である第1の信号及びそのビ
ットと同じ重みのビットの前記第Nのレジスタの値であ
る第2の信号、更には第3の信号の値に基づいてパリテ
ィチェック用のパリティ符号を送出するパリティ符号送
出手段と、前記パリティ符号送出手段から送出されたパ
リティ符号を保持する保持手段と、前記保持手段の出力
に基づいて前記同じ重みのビットのパリティチェックを
行う第1のパリティチェック手段と、前記第1〜第Nの
レジスタの各々に対応して設けられ、対応レジスタ内の
各保持データについてのパリティチェックを行う第2の
パリティチェック手段とを有し、前記保持手段の出力を
前記第3の信号とし、更には前記第1及び第2のパリテ
ィチェック手段のパリティチェックの結果をもとにエラ
ーを検出するようにしたことを特徴とするエラー検出シ
ステム。
(2) An error that detects an error in each held data of the first to Nth (N is an integer of 2 or more) registers connected in cascade so that each bit of held data is sequentially shifted to the corresponding bit of the next stage. a detection system comprising: a first signal being the value of a bit input to the first register; a second signal being the value of the Nth register of bits having the same weight as the bit; parity code sending means for sending out a parity code for parity check based on the value of the signal No. 3; holding means for holding the parity code sent from the parity code sending means; a first parity check means that performs a parity check on bits having the same weight; and a second parity check means that is provided corresponding to each of the first to Nth registers and performs a parity check on each held data in the corresponding register. parity check means, the output of the holding means is used as the third signal, and errors are detected based on the results of the parity check of the first and second parity check means. An error detection system featuring:
JP2014333A 1990-01-24 1990-01-24 Error detection system Pending JPH03218535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014333A JPH03218535A (en) 1990-01-24 1990-01-24 Error detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014333A JPH03218535A (en) 1990-01-24 1990-01-24 Error detection system

Publications (1)

Publication Number Publication Date
JPH03218535A true JPH03218535A (en) 1991-09-26

Family

ID=11858144

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014333A Pending JPH03218535A (en) 1990-01-24 1990-01-24 Error detection system

Country Status (1)

Country Link
JP (1) JPH03218535A (en)

Similar Documents

Publication Publication Date Title
EP0280013B1 (en) Device for verifying proper operation of a checking code generator
US5331645A (en) Expandable digital error detection and correction device
US20050132259A1 (en) Error correction method and system
JPH0728227B2 (en) Decoding device for BCH code
US20220374306A1 (en) Serializing and deserializing stage testing
JP2005086683A (en) Error decoding circuit, data bus control method, and data bus system
JPS617729A (en) Device for correcting error bursts in shortened cyclic block codes
JPH03219725A (en) Error check code generation device and transmission error detection device
JPH03218535A (en) Error detection system
JP3217993B2 (en) Parity check circuit
US20030149932A1 (en) Transmission error checking in result forwarding
JP2864611B2 (en) Semiconductor memory
JP2644112B2 (en) FIFO test diagnostic circuit
JP3253381B2 (en) Error correction circuit
JPH0244921A (en) Error detecting circuit
JP2858538B2 (en) Re-syndrome check method
JPH02250442A (en) Signal missing release condition detector
JPH0638239B2 (en) Error correction mechanism
JPS6049441A (en) Data processor
JPS6093844A (en) Data transmission method
JPH0198033A (en) Detecting circuit for data error
JPS6029071A (en) error correction device
JPH06274360A (en) Error check circuit
JPS6288435A (en) Parity check circuit
JPS59204335A (en) Continuous data decision circuit