JPH0454643A - Parity generating and checking circuit - Google Patents
Parity generating and checking circuitInfo
- Publication number
- JPH0454643A JPH0454643A JP2164302A JP16430290A JPH0454643A JP H0454643 A JPH0454643 A JP H0454643A JP 2164302 A JP2164302 A JP 2164302A JP 16430290 A JP16430290 A JP 16430290A JP H0454643 A JPH0454643 A JP H0454643A
- Authority
- JP
- Japan
- Prior art keywords
- parity
- circuit
- generation
- output
- input
- 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
Links
- 238000001514 detection method Methods 0.000 abstract description 7
- 239000002131 composite material Substances 0.000 abstract 2
- 238000000034 method Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000007257 malfunction Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Detection And Correction Of Errors (AREA)
- Error Detection And Correction (AREA)
Abstract
Description
【発明の詳細な説明】
〔概要]
パリティ生成およびパリティチェックを行う回路に関し
、
パリティ生成用回路とパリティチェック用回路とを同一
の回路9部品を用いて構成した際に、回路1部品の故障
に対しても、検出を行うことが可能なようにすることを
目的とし、
2人力信号に対応して設けられそれぞれの入力信号の偶
数パリティまたは奇数パリティを検査して出力を発生す
るパリティビット発生回路と、該両パリティビット発生
回路の出力の一致を検出するEX−NOR回路とを有し
、パリティ生成時、該EX−NOR回路の出力をパリテ
イ生成として送出し、パリティチェック時、パリテイ生
成を一方のパリティピント発生回路の入力に追加すると
ともに、前記EX−NOR回路の出力をパリティエラー
として出力するパリティ生成およびチェック回路におい
て、前記両パリティビット発生回路の入力にそれぞれセ
レクタを設け、2人力信号の一部をパリティ生成時とパ
リティチェック時とで互いに入れ替えることによって構
成する。[Detailed Description of the Invention] [Summary] Regarding a circuit that performs parity generation and parity check, when the parity generation circuit and the parity check circuit are configured using the same nine circuit components, it is possible to prevent failure of one circuit component. For the purpose of making it possible to perform detection, a parity bit generation circuit is provided corresponding to the two input signals and generates an output by checking the even parity or odd parity of each input signal. and an EX-NOR circuit that detects a match between the outputs of the two parity bit generation circuits. When generating parity, the output of the EX-NOR circuit is sent out as parity generation, and when checking parity, the output of the EX-NOR circuit is sent out as parity generation. In the parity generation and check circuit which adds the output of the EX-NOR circuit to the input of the parity bit generation circuit and outputs the output of the EX-NOR circuit as a parity error, a selector is provided at the input of both the parity bit generation circuits, It is constructed by exchanging some parts at the time of parity generation and the time of parity check.
本発明はパリティ生成およびパリティチェックを行う回
路に係り、特にパリティ生成用回路とパリティチェック
用回路との回路9部品を共用するようにしたパリティ生
成およびチエyり回路に関するものである。The present invention relates to a circuit that performs parity generation and parity checking, and more particularly to a parity generation and check circuit in which the parity generation circuit and the parity check circuit share nine circuit components.
コンピュータ装置やデータ通信装置等のように論理回路
を使用して構成される装置においては、記憶素子や記憶
媒体へのデータの書き込み、読み出しを行う際に、デー
タのエラーを検出する方法として、パリティチェック方
式が多く用いられている。In devices configured using logic circuits such as computer devices and data communication devices, parity is used as a method for detecting data errors when writing and reading data to and from storage elements and storage media. Many checking methods are used.
またパリティチェック方式は、データの送信や受信を行
う際におけるエラーを検出する方法としても、広く用い
られている。The parity check method is also widely used as a method for detecting errors when transmitting or receiving data.
このようなパリティチェック方式を用いる場合のパリテ
ィ生成用回路と、パリティチェック用回路とは、その回
路9部品を共用できるものであることが要望される。When such a parity check method is used, it is desired that the parity generation circuit and the parity check circuit can share nine circuit components.
パリティチェック方式は、データバス、アドレスバスま
たは誤り検出を行いたいある範囲の信号線等の値に対し
て別に一つの信号線を付加し、その信号線の値は、対象
とするある範囲の信号線に含まれる「1」の数が偶数の
とき1とするか、または奇数のとき1とするものである
。前者は奇数パリティ方式と呼ばれ、後者は偶数パリテ
ィ方式と呼ばれている。In the parity check method, a separate signal line is added to the values of the data bus, address bus, or signal lines in a certain range for which error detection is to be performed, and the value of that signal line is If the number of "1"s included in the line is an even number, it is set as 1, or if it is an odd number, it is set as 1. The former is called an odd parity method, and the latter is called an even parity method.
このパリティ値を含んだデータを読み書きすることによ
って、もしも素子の故障等でデータの1ビツトが変化し
た場合には、このパリティ値も変化するので、データの
読み書きの前後で、パリティ値を比較することによって
、データの正常性を確認することができる。By reading and writing data that includes this parity value, if one bit of the data changes due to an element failure, the parity value will also change, so the parity values are compared before and after reading and writing the data. By doing so, you can confirm the normality of the data.
第3図はパリティ生成用回路の構成例を示したものであ
る。11.12はデータバス等であって、パリティを生
成するもととなる信号線である。13はパリテイ生成線
である。14.15はパリティビット発生回路を示し、
工6は排他的論理和の否定出力(EX−NOR)回路で
ある。FIG. 3 shows an example of the configuration of a parity generation circuit. Reference numerals 11 and 12 are data buses, etc., which are signal lines from which parity is generated. 13 is a parity generation line. 14.15 shows a parity bit generation circuit,
The circuit 6 is an exclusive OR negative output (EX-NOR) circuit.
また第4図はパリティビット発生回路の構成例を示した
ものであり、第5図は第4図のパリティビット発生回路
の機能を示したものである。Further, FIG. 4 shows an example of the configuration of the parity bit generation circuit, and FIG. 5 shows the function of the parity bit generation circuit of FIG. 4.
第4図に示されたパリティビット発生回路は、第5図に
示されるように、入力A−1におけるrl、の数が偶数
のとき偶数パリティビット(EV)が「1」、奇数パリ
ティピッ) C0D)がr□、となり、入力A−1にお
ける「1」の数が奇数のとき偶数パリティビット(EV
)が「0」。As shown in FIG. 5, the parity bit generation circuit shown in FIG. ) becomes r□, and when the number of “1”s in input A-1 is odd, even parity bit (EV
) is "0".
奇数パリティビット(OD)が「1」となるものである
。The odd parity bit (OD) is "1".
第3図に示されたパリティ生成回路においては、パリテ
ィビット発生回路14.15によってそれぞれ信号線1
1.12のデータの偶数パリティピッ) (EV)を発
生する。そしてEX−NOR回路6によって両者の一致
を検出して、一致したとき、パリテイ生成線13に1の
パリテイ生成を送出する。In the parity generation circuit shown in FIG. 3, each signal line 1 is
1. Generate even parity (EV) of 12 data. Then, the EX-NOR circuit 6 detects whether the two match, and when they match, sends a parity generation signal of 1 to the parity generation line 13.
また第6図は、パリティチェック用回路の構成例を示し
たものである。11.12はデータバス等であって、パ
リティ生成側においてパリティを生成するもととなった
信号線である。13はパリティ生成側からのパリテイ生
成線である。14゜15は第3図に示されたものと同様
のパリティビット発生回路を示し、17はパリティエラ
ー出力線である。Further, FIG. 6 shows an example of the configuration of a parity check circuit. Reference numerals 11 and 12 are data buses and the like, which are signal lines from which parity is generated on the parity generation side. 13 is a parity generation line from the parity generation side. Reference numerals 14 and 15 indicate a parity bit generation circuit similar to that shown in FIG. 3, and 17 is a parity error output line.
第6図において、パリティビット発生回路14は、信号
線11のデータの偶数パリティビット(EV)を発生し
、パリティビット発生回路15は、信号線12のデータ
とパリテイ生成線13のデータとの偶数パリティピッ)
(EV)を発生する。そしてEX−NOR回!16に
よって両者の一致を検出して、不一致または一致に応じ
て、0(パリティエラーなし)または1(パリティエラ
ーあり)となるパリティチェック結果をパリティエラー
出力線17に発生する。In FIG. 6, a parity bit generation circuit 14 generates an even parity bit (EV) for the data on the signal line 11, and a parity bit generation circuit 15 generates an even parity bit (EV) for the data on the signal line 12 and the data on the parity generation line 13. Parity Pi)
(EV) is generated. And EX-NOR times! 16 detects whether they match, and generates a parity check result of 0 (no parity error) or 1 (with parity error) on the parity error output line 17 depending on the mismatch or match.
第3図および第6図に示されるように、パリティ生成用
回路とパリティチェック用回路とは、同じ部品を使用し
て構成されている。そこで同一部品を共用してパリティ
生成用回路とパリティチェック用回路とを構成すること
が考えられる。As shown in FIGS. 3 and 6, the parity generation circuit and the parity check circuit are constructed using the same parts. Therefore, it is conceivable to configure the parity generation circuit and the parity check circuit by sharing the same parts.
第7図は従来のパリティ生成およびチェック回路を示し
たものであって、第3図および第6図におけると同じも
のを同じ番号で示し、18.19はアンド回路、20は
ゲート回路、21はデータ等の方向を制御する方向制御
信号線である。FIG. 7 shows a conventional parity generation and check circuit, in which the same parts as in FIGS. 3 and 6 are designated by the same numbers, 18 and 19 are AND circuits, 20 is a gate circuit, and 21 is a gate circuit. This is a direction control signal line that controls the direction of data, etc.
方向制御信号線21には、例えばパリティ生成時にOが
与えられ、パリティチェック時に1が与えられる。従っ
てパリティ生成時には、アンド回路18.19はオフと
なり、ゲート回路20がオンとなることによって、パリ
ティビット発生回路14.15およびEX−NOR回路
16は第3図の場合と同様に接続され、発生したパリテ
ィビットは、ゲート回!20を経てパリテイ生成線13
に送出される。For example, O is applied to the direction control signal line 21 during parity generation, and 1 is applied during parity check. Therefore, when generating parity, the AND circuits 18 and 19 are turned off and the gate circuit 20 is turned on, so that the parity bit generation circuits 14 and 15 and the EX-NOR circuit 16 are connected in the same way as in the case of FIG. The parity bit is gate times! Parity generation line 13 through 20
sent to.
パリティチェック時には、アンド回路18.19がオン
になり、ゲート回路20がオフになることによって、パ
リティビット発生回路14.15およびEX−NOR回
路16は第6図の場合と同様に接続され、パリティチェ
ック結果の出力がアンド回路19を経てパリティエラー
出力線17に発生する。At the time of parity check, AND circuits 18.19 are turned on and gate circuits 20 are turned off, so that parity bit generation circuits 14.15 and EX-NOR circuits 16 are connected in the same way as in the case of FIG. The output of the check result is generated on the parity error output line 17 via the AND circuit 19.
パリティチェック方式は、データ等の値が素子の故障や
信号線の断線等により変化したことを検出する方法であ
るが、第7図に示されたようにパリティの生成とチェッ
クとを、同一の回路9部品を共通使用して行うようにし
た場合、故障の検出を行うことが出来ない場合がある。The parity check method is a method for detecting changes in the value of data etc. due to element failures, disconnections in signal lines, etc., but as shown in Figure 7, parity generation and checking are performed in the same way. If nine parts of the circuit are used in common, it may not be possible to detect a failure.
例えば、データを記憶素子に書き込む際に、パリティ生
成およびチェック回路が故障して誤ったパリティ値を書
き込んだ場合には、そのデータの読み出し時には、同じ
状態でパリティチェック回路が動作して誤ったパリティ
チェックを行うので、読み出したパリティ値とチェック
したパリティ値とが一致する。従ってこの場合は、パリ
ティエラーなしを示す出力が発生し、誤り検出を行うこ
とができないという問題がある。For example, if the parity generation and check circuit malfunctions and writes an incorrect parity value when writing data to a storage element, when reading that data, the parity check circuit operates in the same state and generates an incorrect parity value. Since the check is performed, the read parity value and the checked parity value match. Therefore, in this case, there is a problem that an output indicating that there is no parity error is generated and error detection cannot be performed.
例えば、パリティ生成およびチェック回路の出力である
パリティ値が、固定値になってスタックした場合、すな
わち入力データの値に関係なく固定値となった場合には
、入力データの値に無関係にパリティ値が発生し、デー
タの書き込みと読み取りのパリティ値が常に一致して、
誤り検出を行うことができなくなってしまう。For example, if the parity value that is the output of the parity generation and check circuit becomes a fixed value and becomes stuck, that is, if it becomes a fixed value regardless of the value of the input data, the parity value occurs, and the parity values for writing and reading data always match,
Error detection becomes impossible.
本発明はこのような従来技術の課題を解決しようとする
ものであって、パリティ生成用回路とパリティチェック
用回路とを同一の回路2部品を用いて構成したパリティ
生成およびチェック回路において、回路1部品の故障に
対しても、検出を行うことが可能なパリティ生成および
チェック回路を提供することを目的としている。The present invention aims to solve the problems of the prior art, and provides a parity generation and check circuit in which a parity generation circuit and a parity check circuit are configured using two identical circuit components. It is an object of the present invention to provide a parity generation and check circuit that can detect even component failures.
第1図は、本発明の原理的構成を示したものである。 FIG. 1 shows the basic configuration of the present invention.
本発明は、2人力信号に対応して設けられたパリティビ
ット発生回路1.2によって、それぞれの入力信号の偶
数パリティまたは奇数パリティを検査して出力を発生し
、EX−NOR回路3によって両パリティビット発生回
路1.2の出力の一致を検出することによって、パリテ
ィ生成時には、EX−NOR回路3の出力をパリテイ生
成として送出し、パリティチェック時には、パリテイ生
成を一方のパリティビット発生回路の入力に追加すると
ともに、EX−NOR回路3の出力をパリティエラーと
して出力するパリティ生成およびチェック回路において
、両パリテイビット発生回路の入力にそれぞれ設けられ
たセレクタ4,5によって、2人力信号の一部をパリテ
ィ生成時とパリティチェック時とで互いに入れ替えるよ
うにしたものである。In the present invention, a parity bit generation circuit 1.2 provided corresponding to two input signals checks the even parity or odd parity of each input signal and generates an output, and an EX-NOR circuit 3 generates an output for both parities. By detecting a match between the outputs of the bit generation circuits 1 and 2, the output of the EX-NOR circuit 3 is sent as parity generation when generating parity, and when checking parity, the output of the EX-NOR circuit 3 is sent to the input of one of the parity bit generation circuits. In addition, in the parity generation and check circuit that outputs the output of the EX-NOR circuit 3 as a parity error, selectors 4 and 5 provided at the inputs of both parity bit generation circuits select a part of the two human input signals. This is so that the parity generation time and the parity check time are exchanged with each other.
また本発明は、上述の場合に、セレクタ4.5によって
、2人力信号の全部をパリティ生成時とパリティチェッ
ク時とで互いに入れ替えるようにしたものである。Further, in the present invention, in the above case, all of the two human input signals are exchanged between each other during parity generation and parity check using the selector 4.5.
さらに本発明は、2人力信号に対応して設けられたパリ
テイビット発生回路1,2によって、それぞれの入力信
号の偶数パリティまたは奇数パリティを検査し、EX−
NOR回路3によって両パリティビット発生回路1.2
の出力の一致を検出し、両パリティビット発生回路1,
2の入力に設けられたセレクタ4.5によって2人力信
号の一部または全部をパリティ生成時とパリティチェッ
ク時とで互いに入れ替え、パリティ生成時、第1のゲー
ト回路6によってEX−NOR回路3の出力をパリテイ
生成として送出し、パリティチェック時、第2のゲート
回路7によってパリテイ生成を一方のパリティビット発
生回路の入力に追加し、第3のゲート回路8によってE
X−NOR回路3の出力をパリティエラーとして出力す
るようにしたものである。Furthermore, the present invention inspects the even parity or odd parity of each input signal using parity bit generation circuits 1 and 2 provided corresponding to two input signals, and EX-
Both parity bit generation circuits 1 and 2 are generated by the NOR circuit 3.
Detects the coincidence of the outputs of both parity bit generation circuits 1,
A selector 4.5 provided at the input of the second input signal exchanges a part or all of the two human input signals with each other during parity generation and parity check. The output is sent as a parity bit generator, and when checking parity, the second gate circuit 7 adds the parity generator to the input of one of the parity bit generator circuits, and the third gate circuit 8 adds the parity generator to the input of one of the parity bit generators.
The output of the X-NOR circuit 3 is output as a parity error.
2人力信号の偶数パリティまたは奇数パリティを検査し
て出力を発生して、この両出力の一致を検出するように
し、パリティ生成時、一致検出結果の出力をパリテイ生
成として送出し、パリティチェック時、パリテイ生成を
一方のパリティビット発生回路の入力に追加してパリテ
ィの検査を行って、一致検出結果の出力をパリティエラ
ーとして出力するとともに、2人力信号の一部または全
部をパリティ生成時とパリティチェック時とで互いに入
れ替えるようにしたので、パリティ生成用回路とパリテ
ィチェック用回路とを同一の回路。An output is generated by checking the even parity or odd parity of the two human input signals, and a match between the two outputs is detected, and when parity is generated, the output of the match detection result is sent as parity generation, and when parity is checked, Parity generation is added to the input of one of the parity bit generation circuits to perform parity check, and the output of the match detection result is output as a parity error, and part or all of the two human input signals are used for parity generation and parity check. The parity generation circuit and parity check circuit are the same circuit so that they can be swapped over time.
部品を用いて構成したパリティ生成およびチェック回路
において、回路2部品の故障に対しても、検出を行うこ
とが可能となる。In a parity generation and check circuit configured using components, it is possible to detect even a failure in two circuit components.
第2図は本発明の一実施例を示したものであって、パリ
ティ生成およびチェック回路の構成例を示している。図
中、第7図におけると同じものを同じ番号で示し、22
.23はセレクタ、24はインバータ、25は信号線1
1中の2本の信号線、26は信号線12中の2本の信号
線、27は信号線11中の6本の信号線、28は信号線
ll中の6本の信号線を表している。FIG. 2 shows an embodiment of the present invention, and shows an example of the configuration of a parity generation and check circuit. In the figure, the same parts as in Figure 7 are indicated by the same numbers, and 22
.. 23 is a selector, 24 is an inverter, 25 is a signal line 1
26 represents two signal lines among signal lines 12, 27 represents six signal lines among signal lines 11, and 28 represents six signal lines among signal lines ll. There is.
セレクタ22.23は、制御入力Sの値に応じて出力Y
に入力AまたはBの値を出力する。第2図の実施例では
、S=OのときY=A、S=1のときY=Bとする。The selectors 22 and 23 output Y according to the value of the control input S.
Outputs the value of input A or B to In the embodiment shown in FIG. 2, when S=O, Y=A, and when S=1, Y=B.
パリティ生成時には、方向制御信号線21が0となる。At the time of parity generation, the direction control signal line 21 becomes 0.
この状態ではセレクタ22のS入力は1となり、Y出力
は入力Bの値となる。セレクタ23のS入力はOとなり
、Y出力は入力Aの値となる。In this state, the S input of the selector 22 becomes 1, and the Y output becomes the value of the input B. The S input of the selector 23 becomes O, and the Y output becomes the value of the input A.
パリテイビット発生回路14は、信号線11の中の6本
と信号線12の中の2本とからパリティビットを生成す
る。パリティビット発生回路15は、信号線11の中の
2本と信号線12の中の6本とからパリティビットを生
成する。The parity bit generation circuit 14 generates parity bits from six of the signal lines 11 and two of the signal lines 12. The parity bit generation circuit 15 generates parity bits from two of the signal lines 11 and six of the signal lines 12.
パリテイビット発生回路14.15のパリティ出力から
、EX−NOR回路16で一致をとられることによって
、総合したパリティ値がゲート回路20を経てパリテイ
生成線13に送出される。The parity outputs of the parity bit generation circuits 14 and 15 are matched by the EX-NOR circuit 16, and the combined parity value is sent to the parity generation line 13 via the gate circuit 20.
パリティチェック時には、方向制御信号線21が1とな
る。この状態ではセレクタ22のS入力はOとなり、Y
出力は入力Aの値となる。セレクタ23のS入力は1と
なり、Y出力は入力Bの値となる。At the time of parity check, the direction control signal line 21 becomes 1. In this state, the S input of the selector 22 becomes O, and the Y
The output becomes the value of input A. The S input of the selector 23 becomes 1, and the Y output becomes the value of the input B.
パリティビット発生回路14は、信号線11の8本から
パリティビットを生成する。パリティビット発生回路1
5は、信号線12の8本と、アンド回路18を経て入力
されたパリテイ生成線13のパリティ値とから、パリテ
ィビットを生成する。Parity bit generation circuit 14 generates parity bits from eight signal lines 11. Parity bit generation circuit 1
5 generates a parity bit from the eight signal lines 12 and the parity value of the parity generation line 13 inputted via the AND circuit 18.
パリティビット発生回路14.15のパリティ出力から
、EX−NOR回路16で一致をとられることによって
、総合したパリティ値がアンド回路19を経てパリティ
エラー出力線17に送出される。The EX-NOR circuit 16 matches the parity outputs of the parity bit generation circuits 14 and 15, and the combined parity value is sent to the parity error output line 17 via the AND circuit 19.
アンド回路19のパリティエラー出力は、信号線11.
12とパリテイ生成線13から作成されるパリティ値で
あり、すべて正常な値であれば、0となる。The parity error output of the AND circuit 19 is connected to the signal line 11.
12 and the parity generation line 13, and if all values are normal, it will be 0.
いま、パリティ生成およびチェック回路の故障の例とし
て、例えば、パリティビット発生回路14が故障して、
出力が常時0になったとする。このとき、信号線25の
値が(0,0)、信号線26の値が(1,O)、信号線
27の値が(000000)、信号線28の値が(00
0000)であったとして、各信号の値を考える。Now, as an example of a malfunction in the parity generation and check circuit, for example, if the parity bit generation circuit 14 malfunctions,
Assume that the output is always 0. At this time, the value of the signal line 25 is (0,0), the value of the signal line 26 is (1,O), the value of the signal line 27 is (000000), and the value of the signal line 28 is (00
0000), consider the value of each signal.
方向制御信号線21がOのとき、パリティビット発生回
路14の入力は(10000000)、パリティビット
発生回路14の出力はEV=0となるが、パリティビッ
ト発生回路14を故障と仮定しているので、パリティビ
ット発生回路14の出力はもともとEV=Oである。When the direction control signal line 21 is O, the input of the parity bit generation circuit 14 is (10000000) and the output of the parity bit generation circuit 14 is EV=0, but since the parity bit generation circuit 14 is assumed to be faulty, , the output of the parity bit generation circuit 14 is originally EV=O.
パリティビット発生回路15の入力は(0000000
0)、パリティビット発生回路15の出力はEV=1と
なる。従ってEX−NOR回路17の出力がOとなるの
で、パリティエラー出力線17の値はOとなり、パリテ
イ生成線13の値も0となる。The input of the parity bit generation circuit 15 is (0000000
0), the output of the parity bit generation circuit 15 becomes EV=1. Therefore, since the output of the EX-NOR circuit 17 becomes O, the value of the parity error output line 17 becomes O, and the value of the parity generation line 13 also becomes 0.
このとき、同じデータとパリティ値であって、方向制御
信号線21が1のときは、パリティビット発生回路14
の入力は(00000000)、パリティビット発生回
路14の出力は、EV=1となる。しかしながらパリテ
ィビット発生回路14を故障と仮定しているので、出力
はEV=Qである。At this time, if the data and parity value are the same and the direction control signal line 21 is 1, the parity bit generation circuit 14
The input is (00000000), and the output of the parity bit generation circuit 14 is EV=1. However, since it is assumed that the parity bit generation circuit 14 is in failure, the output is EV=Q.
パリティビット発生回路15の入力は(1000000
0)とパリティ値の0であって、パリティビット発生回
路15の出力はEV=0となる。The input of the parity bit generation circuit 15 is (1000000
0) and the parity value is 0, and the output of the parity bit generation circuit 15 becomes EV=0.
従ってEX−NOR回路16の出力はlとなり、パリテ
ィエラー出力線13が1となって、エラーがあったこと
がわかる。Therefore, the output of the EX-NOR circuit 16 becomes 1, and the parity error output line 13 becomes 1, indicating that an error has occurred.
同じデータを第7図に示された従来の回路に当てはめる
と、第7図において方向制御信号線21がOのとき、パ
リティビット発生回路14の入力は(00000000
)、出力はEV=1となる筈であるが、パリティビット
発生回路14の故障によって出力はEV=0となる。Applying the same data to the conventional circuit shown in FIG. 7, when the direction control signal line 21 is O in FIG.
), the output should be EV=1, but due to a failure of the parity bit generation circuit 14, the output becomes EV=0.
パリティビット発生回路15の入力は(10゜0000
0)とアンド回路18からの0であり、出力はEV=O
となる。このときE X −N OR回路16の出力は
1となり、パリテイ生成線13の値はlとなる。そして
方向制御信号線21が1のとき、パリティビット発生回
路14の入力は(00000000)であり、出力は故
障によりEV=0となる。パリティビット発生回路15
の入力は(10000000)とパリテイ生成線13の
値1から、EV=1となる。The input of the parity bit generation circuit 15 is (10°0000
0) and 0 from the AND circuit 18, and the output is EV=O
becomes. At this time, the output of the EX-NOR circuit 16 becomes 1, and the value of the parity generation line 13 becomes 1. When the direction control signal line 21 is 1, the input of the parity bit generation circuit 14 is (00000000), and the output becomes EV=0 due to a failure. Parity bit generation circuit 15
Since the input is (10000000) and the value of the parity generation line 13 is 1, EV=1.
従って、EX−NOR回路16の入力は(0゜1)であ
り、出力は0となって、パリティエラー・出力線17の
値はOとなり、エラーを検出しないことになる。このよ
うな結果になるのは、故障したパリティビット発生回路
14をパリティ生成用回路とパリティチェック用回路と
で、同じデータ入力で使用しているためである。Therefore, the input of the EX-NOR circuit 16 is (0°1), the output is 0, and the value of the parity error/output line 17 is O, meaning that no error is detected. This result occurs because the failed parity bit generation circuit 14 is used as a parity generation circuit and a parity check circuit with the same data input.
なお以上の実施例は偶数パリティの場合について説明し
たが、本発明はこれに限るものでなく、奇数パリティの
場合にも適用できるものであることはいうまでもない。Note that although the above embodiments have been described in the case of even parity, the present invention is not limited thereto, and it goes without saying that it can also be applied to the case of odd parity.
以上説明したように本発明によれば、同一の回路1部品
をパリティ生成用回路とパリティチェック用回路とに使
用したパリティ生成およびチェック回路において、回路
9部品の故障に対しても、検出を行うことが可能となる
ので、パリティ生成およびチェック回路の信顛性を向上
させることができるようになる。As explained above, according to the present invention, in a parity generation and check circuit in which the same circuit component is used for the parity generation circuit and the parity check circuit, failures in nine circuit components can be detected. This makes it possible to improve the reliability of the parity generation and check circuit.
第1図は本発明の原理的構成を示す図、第2図は本発明
の一実施例を示す図、第3図はパリティ生成用回路の構
成例を示す図、第4図はパリティビット発生回路の構成
例を示す図、第5図は第4図のパリティビット発生回路
の機能を示す図、第6図はパリティチェック用回路の構
成例を示す図、第7図は従来のパリティ生成およびチェ
ック回路を示す図である。
1.2はパリティビット発生回路、3はEX−NOR回
路、4,5はセレクタ、6,7.8はゲート回路である
。
第4図
第5図Fig. 1 is a diagram showing the basic configuration of the present invention, Fig. 2 is a diagram showing an embodiment of the present invention, Fig. 3 is a diagram showing an example of the configuration of a parity generation circuit, and Fig. 4 is a diagram showing a parity bit generation circuit. FIG. 5 is a diagram showing the function of the parity bit generation circuit in FIG. 4, FIG. 6 is a diagram showing an example of the configuration of the parity check circuit, and FIG. FIG. 3 is a diagram showing a check circuit. 1.2 is a parity bit generation circuit, 3 is an EX-NOR circuit, 4 and 5 are selectors, and 6 and 7.8 are gate circuits. Figure 4 Figure 5
Claims (3)
号の偶数パリテイまたは奇数パリテイを検査して出力を
発生するパリテイビット発生回路(1,2)と、該両パ
リテイビット発生回路(1,2)の出力の一致を検出す
るEX−NOR回路(3)とを有し、パリテイ生成時、
該EX−NOR回路(3)の出力をパリテイ信号として
送出し、パリテイチェック時、パリテイ信号を一方のパ
リテイビット発生回路の入力に追加するとともに、前記
EX−NOR回路(3)の出力をパリテイエラーとして
出力するパリテイ生成およびチェック回路において、 前記両パリテイビット発生回路の入力にそれぞれセレク
タ(4,5)を設け、2入力信号の一部をパリテイ生成
時とパリテイチェック時とで互いに入れ替えるようにし
たことを特徴とするパリテイ生成およびチェック回路。(1) Parity bit generation circuits (1, 2) which are provided corresponding to two input signals and which check the even parity or odd parity of each input signal and generate an output, and both parity bit generation circuits ( It has an EX-NOR circuit (3) that detects the coincidence of the outputs of 1 and 2), and when generating parity,
The output of the EX-NOR circuit (3) is sent out as a parity signal, and when checking parity, the parity signal is added to the input of one of the parity bit generation circuits, and the output of the EX-NOR circuit (3) is added to the input of one of the parity bit generation circuits. In the parity generation and check circuit that outputs as a parity error, selectors (4, 5) are provided at the inputs of both of the parity bit generation circuits, and a part of the two input signals is used for parity generation and parity check. A parity generation and check circuit characterized in that they are mutually interchangeable.
パリテイ生成時とパリテイチェック時とで互いに入れ替
えるようにしたことを特徴とする請求項第1項記載のパ
リテイ生成およびチェック回路。(2) The parity generation and check circuit according to claim 1, wherein the selector (4, 5) switches all of the two input signals between each other during parity generation and parity check. .
号の偶数パリテイまたは奇数パリテイを検査して出力を
発生するパリテイビット発生回路(1,2)と、 該両パリテイビット発生回路(1,2)の出力の一致を
検出するEX−NOR回路(3)と、前記両パリテイビ
ット発生回路の入力にそれぞれ設けられ、2入力信号の
一部または全部をパリテイ生成時とパリテイチェック時
とで互いに入れ替えるセレクタ(4,5)と、 パリテイ生成時、前記EX−NOR回路(3)の出力を
パリテイ信号として送出する第1のゲート回路(6)と
、 パリテイチェック時、パリテイ信号を一方のパリテイビ
ット発生回路の入力に追加する第2のゲート回路(7)
と、 パリテイチェック時、前記EX−NOR回路(3)の出
力をパリテイエラーとして出力する第3のゲート回路(
8)とを備えたことを特徴とするパリテイ生成およびチ
ェック回路。(3) Parity bit generation circuits (1, 2) that are provided corresponding to two input signals and that check the even parity or odd parity of each input signal and generate an output, and both parity bit generation circuits ( An EX-NOR circuit (3) that detects the coincidence of the outputs of 1 and 2) is provided at the input of both parity bit generation circuits, and is used for parity generation and parity checking of part or all of the 2 input signals. selectors (4, 5) that are mutually switched at different times; a first gate circuit (6) that sends out the output of the EX-NOR circuit (3) as a parity signal when generating parity; and a parity signal when checking parity. a second gate circuit (7) that adds
and a third gate circuit (3) which outputs the output of the EX-NOR circuit (3) as a parity error during parity check.
8) A parity generation and check circuit comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2164302A JPH0454643A (en) | 1990-06-25 | 1990-06-25 | Parity generating and checking circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2164302A JPH0454643A (en) | 1990-06-25 | 1990-06-25 | Parity generating and checking circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0454643A true JPH0454643A (en) | 1992-02-21 |
Family
ID=15790541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2164302A Pending JPH0454643A (en) | 1990-06-25 | 1990-06-25 | Parity generating and checking circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0454643A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021155973A (en) * | 2020-03-26 | 2021-10-07 | 新明和工業株式会社 | Inspection device for object detection sensor and inspection program |
-
1990
- 1990-06-25 JP JP2164302A patent/JPH0454643A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021155973A (en) * | 2020-03-26 | 2021-10-07 | 新明和工業株式会社 | Inspection device for object detection sensor and inspection program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0287302B1 (en) | Cross-coupled checking circuit | |
JP3229070B2 (en) | Majority circuit and control unit and majority integrated semiconductor circuit | |
US5784383A (en) | Apparatus for identifying SMP bus transfer errors | |
US4224681A (en) | Parity processing in arithmetic operations | |
US6055660A (en) | Method for identifying SMP bus transfer errors | |
JPH0442691B2 (en) | ||
JPH0454643A (en) | Parity generating and checking circuit | |
KR20070038543A (en) | Method for delaying access to data and/or commands of a dual computer system, and corresponding delaying unit | |
JPH05165734A (en) | Fixed fault diagnostic device for main storage device | |
JPS6227814A (en) | Fault detection circuit | |
JP3173648B2 (en) | Failure detection method | |
JP3015537B2 (en) | Redundant computer system | |
JP3390655B2 (en) | Remote I / O device | |
JP2514643B2 (en) | Duplex method | |
JP3015538B2 (en) | Redundant computer system | |
JPH01209502A (en) | Checking device for extension bus of programmable controller | |
SU1661839A2 (en) | Error correcting memory | |
JPS5816487B2 (en) | Multiple selection detection device in computer system | |
JPH05282218A (en) | Data transmitting method | |
JPH08328602A (en) | Duplex system switching system | |
JPS61134846A (en) | Electronic computer system | |
JPS61269738A (en) | Data processing circuit | |
JPS5854698B2 (en) | Fault detection method | |
JP2017045344A (en) | Fault tolerant system | |
JPH04134537A (en) | Parity generation duplex circuit |