JPS5855530B2 - Bidirectional bus parity check method - Google Patents
Bidirectional bus parity check methodInfo
- Publication number
- JPS5855530B2 JPS5855530B2 JP53160394A JP16039478A JPS5855530B2 JP S5855530 B2 JPS5855530 B2 JP S5855530B2 JP 53160394 A JP53160394 A JP 53160394A JP 16039478 A JP16039478 A JP 16039478A JP S5855530 B2 JPS5855530 B2 JP S5855530B2
- Authority
- JP
- Japan
- Prior art keywords
- parity
- information
- transmission
- data line
- line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Landscapes
- Detection And Correction Of Errors (AREA)
Description
【発明の詳細な説明】
本発明は、データ転送中に発生するエラーがいずれの部
分に起因するかを容易に識別できるようになった双方向
バスのパリティ・チェック方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a parity check method for a bidirectional bus that makes it possible to easily identify in which part an error occurring during data transfer is caused.
従来のデータ・バスにおけるパリティ演算では。In parity operations on traditional data buses.
バスイン線とバスアウト線に個別にパリティ・チェッカ
/ジェネレータを有し、バスインのパリティ・チェック
およびバスアウトのパリティ・ジェネレートを行ってい
た。Separate parity checkers/generators were provided for the bus-in and bus-out lines, and they performed bus-in parity checks and bus-out parity generation.
また、データ・バスやドライバ・レシーバ、データ・バ
ッファの診断をするためには装置間でデータ転送を行わ
なければならなかった。Furthermore, in order to diagnose the data bus, driver/receiver, and data buffer, data had to be transferred between devices.
本発明は、上記の考察に基づくものであって、1個のパ
リティ・チェッカ/ジェネレータで以って受信の場合の
パリティ・チェックおよび送信の場合のパリティ・ジェ
ネレートを行い得ると共に、装置間のデータ転送を行う
ことなく装置の自己診断を行い得るようになった双方向
バスのパリティ・チェック方式を提供することを目的と
している。The present invention is based on the above considerations, and is capable of performing parity check in the case of reception and generation of parity in the case of transmission with a single parity checker/generator. The object of the present invention is to provide a bidirectional bus parity check method that allows device self-diagnosis without data transfer.
そしてそのため、本発明の双方向バスのパリティ・チェ
ック方式は、データ線およびパリティ線を有する双方向
バスによって他装置との情報の授受を行う装置において
、パリティ符号以外の送信情報を上記データ線に送出す
る送出手段、上記データ線上の情報を受信する受信手段
、送信情報又は受信情報から所定のパリティ演算する演
算手段、および上記送信手段に入力される送信情報のパ
リティ符号と上記演算手段で生成されたパリティ符号を
比較する比較手段を設置し、受信の場合には、上記デー
タ線上の受信情報と上記パリティ線上の受信パリティ符
号とを上記演算手段に入力して演算してパリティ・チェ
ックを行い送信の場合には、データ線上の送信情報から
パリティ・ビットを演算して作成し、作成されたパリテ
ィ符号と上記送信手段に入力される送信情報のパリティ
符号とを上記比較手段で比較するように構成したことを
特徴とするものである。Therefore, the bidirectional bus parity check method of the present invention is capable of transmitting information other than a parity code to the data line in a device that exchanges information with other devices via a bidirectional bus having a data line and a parity line. A transmitting means for transmitting data, a receiving means for receiving information on the data line, a calculating means for calculating a predetermined parity from the transmitted information or received information, and a parity code of the transmitted information inputted to the transmitting means and a parity code generated by the calculating means. In the case of reception, the received information on the data line and the received parity code on the parity line are input to the calculation means, and a parity check is performed by the calculation means before transmission. In this case, a parity bit is calculated and created from the transmission information on the data line, and the comparison means compares the created parity code with the parity code of the transmission information inputted to the transmission means. It is characterized by the fact that
以下、本発明を図面を参照しつつ説明する。Hereinafter, the present invention will be explained with reference to the drawings.
第1図は受信の場合のデータ・フローを示す本発明の1
実施例のブロック図、第2図は送信の場合のデータ・フ
ローを示す本発明の1実施例のブロック図である。FIG. 1 shows a data flow in the case of reception according to one embodiment of the present invention.
BLOCK DIAGRAM OF AN EMBODIMENT FIG. 2 is a block diagram of one embodiment of the present invention showing data flow in the case of transmission.
第1図、第2図において、1はドライバ、2はレシーバ
、3はバッファ、4はパリティ・チェッカ/ジェネレー
タ、5はマルチプレクサ、6はフリップ・フロップ、7
は否定回路、8はドライバ、9はレシーバ、10は排他
的論理和回路すなわちEOR回路、11はAND回路、
BDは純データ、ビット線、BPはパリティ・ビット線
をそれぞれ示している。1 and 2, 1 is a driver, 2 is a receiver, 3 is a buffer, 4 is a parity checker/generator, 5 is a multiplexer, 6 is a flip-flop, 7
is an inverting circuit, 8 is a driver, 9 is a receiver, 10 is an exclusive OR circuit or EOR circuit, 11 is an AND circuit,
BD indicates a pure data bit line, and BP indicates a parity bit line.
なお、斜線が施されたバス線と、太い実線はデータ・フ
ローを示している。Note that the diagonally shaded bus line and thick solid line indicate data flow.
双方向バスは、純データ・ビット線BDとパリティ・ビ
ット線BPから構成され、純データ・ビットは例えば8
ビツトである。The bidirectional bus consists of a pure data bit line BD and a parity bit line BP, and the pure data bits are, for example, 8
It's bit.
第1図は受信の場合を説明するものであって、受信の場
合には、ドライブ・ゲート信号が論理rOJである。FIG. 1 illustrates the case of reception, in which the drive gate signal is logic rOJ.
このため、純データ・ビット線BD上の情報と、パリテ
ィ・ビット線BP上のパリティ・ビットは、パリティ・
チェッカ/ジェネレータ4に入力され、パリティ・チェ
ックが行われる。Therefore, the information on the pure data bit line BD and the parity bit on the parity bit line BP are
The signal is input to a checker/generator 4, where a parity check is performed.
パリティ・チェックの結果は、マルチプレクサ5を経由
してフリップ・フロップ6に送られ、パリティ・エラー
が検出されたとき、フリップ・フロップ6はセットされ
る。The result of the parity check is sent to flip-flop 6 via multiplexer 5, and flip-flop 6 is set when a parity error is detected.
第2図は送信の場合を説明するものであって、送信の場
合には、ドライブ・ゲート信号は論理「1」である。FIG. 2 illustrates the case of transmission, in which the drive gate signal is a logic "1".
このため、バッファ3内の送信情報はドライバ1によっ
て純データ・ビット線BD上に送出される。Therefore, the transmission information in the buffer 3 is sent out by the driver 1 onto the pure data bit line BD.
純データ・ビット線BD上の送信情報は、レシーバ2を
経由してパリティ・チェッカ/ジェネレータ4に入力さ
れ、パリティ・チェッカ/ジェネレータ4によって作成
されたパリティ・ビットはパリティ・ビット線BP上に
送出される。The transmitted information on the pure data bit line BD is input to the parity checker/generator 4 via the receiver 2, and the parity bits created by the parity checker/generator 4 are sent out on the parity bit line BP. be done.
パリティ・チェッカ、/ジェネレータ4で生成されたパ
リティ・ビットとバッファ3内のパリティ・ビットはE
OR回路10に入力され、EOR回路10の出力はマル
チプレクサ5を介してフリップ・フロップ6へ送られる
。The parity checker/parity bits generated by generator 4 and the parity bits in buffer 3 are E
It is input to an OR circuit 10, and the output of the EOR circuit 10 is sent to a flip-flop 6 via a multiplexer 5.
FOR回路10が論理「1」を出力したとき、フリップ
・フロンプロがセットされる。When the FOR circuit 10 outputs a logic "1", the flip-flop processor is set.
例えば純データ・ビット線BDの故障や、ドライバ1の
故障、レシーバ2の故障、バッファ3の故障が発生した
場合に、EOR回路10は論理「1」を出力する。For example, when a failure occurs in the pure data bit line BD, in the driver 1, in the receiver 2, or in the buffer 3, the EOR circuit 10 outputs logic "1".
以上の説明から明らかなように、本発明によれば、装置
間のデータ転送なしに、装置の自己診断を行うことが可
能となる。As is clear from the above description, according to the present invention, it is possible to perform self-diagnosis of devices without data transfer between devices.
第1図は受信の場合のデータ・フローを示す本発明の1
実施例のブロック図、第2図は送信の場合のデータ・フ
ローを示す本発明の1実施例のブロック図である。
1・・・・・・ドライバ、2・・・・・・レシーバ、3
・・・・・・バッファ、4・・・・・・パリティ・チェ
ッカ/ジェネレータ、5・・・・・・マルチプレクサ、
6・・・・・・フリップ・フロップ、7・・・・・・否
定回路、8・・・・・・ドライバ、9・・・・・・レシ
ーバ、10・・・・・・EOR回路、11・・・・・・
AND回路、BD・・・・・・純データ・ビット線、B
P・・・・・・パリティ・ビット線。FIG. 1 shows a data flow in the case of reception according to one embodiment of the present invention.
BLOCK DIAGRAM OF AN EMBODIMENT FIG. 2 is a block diagram of one embodiment of the present invention showing data flow in the case of transmission. 1...driver, 2...receiver, 3
... Buffer, 4 ... Parity checker/generator, 5 ... Multiplexer,
6...Flip-flop, 7...NOT circuit, 8...Driver, 9...Receiver, 10...EOR circuit, 11・・・・・・
AND circuit, BD...Pure data bit line, B
P...Parity bit line.
Claims (1)
って他装置との情報の授受を行う装置において、パリテ
ィ符号以外の送信情報を上記データ線に送出する送出手
段、上記データ線上の情報を受信する受信手段、送信情
報又は受信情報から所定のパイティ演算する演算手段、
および上記送信手段に入力される送信情報のパリティ符
号と上記演算手段で生成されたパリティ符号とを比較す
る比較手段を設置し受信の場合には、上記データ線上の
受信情報と上記パリティ線上の受信パリティ符号とを上
記演算手段に入力して演算してパリティ・チェックを行
い、送信の場合には、データ線上の送信情報からパリテ
ィ・ビットを演算して作成し、作成されたパリティ符号
と上記送信手段に入力される送信情報のパリティ符号と
を上記比較手段で比較するように構成したことを特徴と
する双方向バスのパリティ・チェック方式。1. In a device that sends and receives information to and from other devices via a bidirectional bus having a data line and a parity line, a sending unit that sends transmission information other than a parity code to the data line, and a receiving unit that receives information on the data line. , calculation means for calculating a predetermined parity from the transmitted information or received information;
and a comparison means for comparing the parity code of the transmission information input to the transmission means and the parity code generated by the calculation means, and in the case of reception, the reception information on the data line and the reception information on the parity line are installed. The parity code is input to the above-mentioned calculation means to perform a parity check, and in the case of transmission, the parity bit is calculated and created from the transmission information on the data line, and the created parity code and the above-mentioned transmission A parity check method for a bidirectional bus, characterized in that the comparing means compares a parity code of transmission information inputted to the means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP53160394A JPS5855530B2 (en) | 1978-12-25 | 1978-12-25 | Bidirectional bus parity check method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP53160394A JPS5855530B2 (en) | 1978-12-25 | 1978-12-25 | Bidirectional bus parity check method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5587254A JPS5587254A (en) | 1980-07-01 |
| JPS5855530B2 true JPS5855530B2 (en) | 1983-12-10 |
Family
ID=15713997
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP53160394A Expired JPS5855530B2 (en) | 1978-12-25 | 1978-12-25 | Bidirectional bus parity check method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5855530B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5872254A (en) * | 1981-10-26 | 1983-04-30 | Nec Corp | Parity checking and parity bit generating circuit |
-
1978
- 1978-12-25 JP JP53160394A patent/JPS5855530B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5587254A (en) | 1980-07-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3763470A (en) | Circuit arrangement for error detection in data processing systems | |
| JPS5855530B2 (en) | Bidirectional bus parity check method | |
| JPS5980037A (en) | Data transmitting system | |
| JP2929975B2 (en) | Fault Diagnosis Method for Bus Interface Circuit | |
| JPS59134943A (en) | Data communication system | |
| JP2864611B2 (en) | Semiconductor memory | |
| CN119065351B (en) | A new energy vehicle ECU main control CAN test working method | |
| JP3158711B2 (en) | Data transfer method | |
| JPS5829243A (en) | Signal monitoring device of transmission system | |
| JPS59743A (en) | Diagnosis system of ecc circuit | |
| JP3355855B2 (en) | Communication data check circuit | |
| JP2896442B2 (en) | Signal transmission verification system and signal transmission system | |
| CN119902925A (en) | A full-duplex UART data self-test device and method | |
| JPS61101138A (en) | Frame synchronization method | |
| JPS5845737B2 (en) | How to create parity bit | |
| JPS62216440A (en) | Communication control method | |
| SU781805A1 (en) | Interface | |
| KR100292059B1 (en) | Data retransmission system at the exchange | |
| JP3088201B2 (en) | Multiplex communication device | |
| JPS6244300B2 (en) | ||
| JPH04346145A (en) | Information processor | |
| JPH03260735A (en) | Confirming syste for working of parity detecting circuit | |
| JPS6158361A (en) | Data transfer system | |
| JPS58169614A (en) | Bus control system | |
| JPS6044710B2 (en) | System diagnosis method |