JPS6230105Y2 - - Google Patents

Info

Publication number
JPS6230105Y2
JPS6230105Y2 JP12799486U JP12799486U JPS6230105Y2 JP S6230105 Y2 JPS6230105 Y2 JP S6230105Y2 JP 12799486 U JP12799486 U JP 12799486U JP 12799486 U JP12799486 U JP 12799486U JP S6230105 Y2 JPS6230105 Y2 JP S6230105Y2
Authority
JP
Japan
Prior art keywords
parity
data
processing unit
central processing
cpu
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
Application number
JP12799486U
Other languages
Japanese (ja)
Other versions
JPS6251442U (en
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 filed Critical
Priority to JP12799486U priority Critical patent/JPS6230105Y2/ja
Publication of JPS6251442U publication Critical patent/JPS6251442U/ja
Application granted granted Critical
Publication of JPS6230105Y2 publication Critical patent/JPS6230105Y2/ja
Expired legal-status Critical Current

Links

Description

【考案の詳細な説明】 〔産業上の利用分理〕 本考案はマイクロコンピユータのメモリアクセ
ス時のパリテイチエツク回路に関する。
[Detailed Description of the Invention] [Industrial Application] The present invention relates to a parity check circuit during memory access in a microcomputer.

〔従来の技術〕[Conventional technology]

マイクロコンピユータ(以下CPUという。)は
メモリ(以下MEMという。)に記憶させた命令及
び各種データを読出し書込みながら各種処理を実
行して行くが、CPUがMEMにアクセスする場
合、データがなんらかの条件より障害になつた場
合は正常な命令又は処理を実行出来なくなり問題
がある。
A microcomputer (hereinafter referred to as the CPU) executes various processes while reading and writing instructions and various data stored in the memory (hereinafter referred to as the MEM), but when the CPU accesses the MEM, the data is If a failure occurs, there is a problem in that normal commands or processing cannot be executed.

第1図は従来の一例を示すブロツク図である。
CPUが命令及び処理を実行する場合MEMにアク
セスし読出し書込みを行なう。第1図に於いて、
CPUはMEMのどこのワードを読出すかはアドレ
スバスABo,AB1,…,ABjにより指定する。
MEMはこのアドレスバスで指定されたワードの
内容に書込む場合はCPUより書込み指示が指定
され、これと同時にCPUよりのデータバスDBo,
DB1,…,DBnに指定され内容を書込む。又、
読出す場合はCPUより読出し指示が指定され
る。読出し指示が指定された場合MEMはデータ
バスDBo,DB1,…,DBnにアドレスバスで指
定された内容を送出しCPUに送り込む。
FIG. 1 is a block diagram showing a conventional example.
When the CPU executes instructions and processes, it accesses the MEM to read and write. In Figure 1,
The CPU specifies which word of the MEM to read using address buses ABo, AB1, ..., ABj.
When MEM writes to the contents of the word specified by this address bus, a write instruction is specified by the CPU, and at the same time, the data bus DBo,
Write the contents specified in DB1,...,DBn. or,
When reading, a read instruction is specified by the CPU. When a read instruction is specified, the MEM sends the contents specified by the address bus to the data buses DBo, DB1, . . . , DBn and sends them to the CPU.

CPUはMEMに読出し、書込みする場合に、
MEMが読出し動作を受けられるかどうか、又書
込むときは書込み動作が出来る状態になつている
かどうかをMEMは準備可能情報信号(以下RDY
信号という。)としてCPUに知らせこのRDY信号
がMEMよりCPUに送出されたとき読出し又は書
込み動作を行なう。
When the CPU reads and writes to MEM,
The MEM uses a ready information signal (RDY
It's called a signal. ), and when this RDY signal is sent from the MEM to the CPU, a read or write operation is performed.

〔考案が解決しようとする問題点〕[Problem that the invention attempts to solve]

以上のようにCPU命令、処理を行なう場合デ
ータバスの内容を読出し、書込みするが、もしデ
ータバスの内容が障害になつた場合(MEM内の
ビツト障害、バス上のビツト障害あるいは雑音に
よるビツト変化等)、本例のような従来の方式に
於いてはなんらビツト変化に対する妨御策がなさ
れてなく、例えばデータバスの内容が命令であれ
ば命令か別の命令に変化したりすることで正規の
実行処理が出来なくなり、プログラムの暴走又は
停止特の状態に陥る。又データバスの内容がデー
タであればデータに関する演算処理が混乱状態に
なり演算処理機能が停止した状態になりコンピユ
ータとしての機能が出来なくなつてしまう。
As described above, when executing CPU commands and processing, the contents of the data bus are read and written. However, if the contents of the data bus become impaired (bit failure in MEM, bit failure on the bus, or bit change due to noise) etc.), in the conventional system like this example, no measures are taken to prevent bit changes; for example, if the content of the data bus is a command, it can be changed to a command or another command. It becomes impossible to execute the program, and the program runs out of control or stops. Furthermore, if the contents of the data bus are data, the arithmetic processing related to the data becomes chaotic, the arithmetic processing function is stopped, and the computer cannot function as a computer.

本考案の目的は、データバスのビツト障害に於
いての機能停止状態を即座に発見し、障害処理動
作を行なつたり、障害表示を保守者に知らせ障害
修理を行なわせるようにし、障害時の異常動作を
救済するようにしたパリテイチエツク回路を提供
することにある。
The purpose of this invention is to immediately detect a functional stoppage due to a data bus bit failure, take action to deal with the failure, notify maintenance personnel of the failure display, and have them repair the failure. An object of the present invention is to provide a parity check circuit capable of relieving abnormal operation.

〔問題点を解決するための手段〕[Means for solving problems]

本考案のパリテイチエツク回路は、データバス
を介してマイクロコンピユータより構成される中
央処理装置がチエツク回路装置との間でデータの
書込みおよび読出しを行なうデータ処理装置にお
いて、前記データバスに接続され、かつ前記中央
処理装置が前記記憶装置に前記データを書込むと
き、前記中央処理装置の制御に従つて書込まれる
前記データのパリテイに従い、所定のパリテイビ
ツトを発生し、かつ前記中央処理装置が前記記憶
装置に前記データとともに前記パリテイビツトを
書込めるように前記パリテイビツトを出力するパ
リテイビツト発生回路と、前記データバスに接続
され、かつ前記中央処理装置が前記記憶装置から
前記データを読出すとき、前記中央処理装置の制
御に従つて前記記憶装置から前記データとともに
読出される前記パリテイビツトに従い読出される
前記データのパリテイを検定し、かつその検定の
結果読出される前記データのパリテイが正常であ
るときは前記中央処理装置を構成するマイクロコ
ンピユータの周辺装置準備可能情報信号端子に前
記中央処理装置が正常処理動作を続行するように
パリテイ正常信号を出力し、異常であるときは前
記中央処理装置を構成するマイクロコンピユータ
の初期設定情報信号端子および割込み情報信号端
子のいずれかに前記中央処理装置が異常処理動作
を開始するようにパリテイ異常信号を出力するパ
リテイチエツク回路とを備えることを特徴とす
る。
The parity check circuit of the present invention is connected to the data bus in a data processing device in which a central processing unit composed of a microcomputer writes and reads data to and from the check circuit device via the data bus, and when the central processing unit writes the data to the storage device, a predetermined parity bit is generated according to the parity of the data written under the control of the central processing unit, and the central processing unit writes the data to the storage device. a parity bit generation circuit that outputs the parity bit so that the parity bit can be written together with the data into the device; and a parity bit generating circuit that is connected to the data bus and when the central processing unit reads the data from the storage device. The parity of the data read out together with the data from the storage device is verified under the control of the central processor, and when the parity of the data read out is normal as a result of the verification, the central processing A parity normal signal is output to the peripheral device ready information signal terminal of the microcomputer constituting the device so that the central processing unit continues normal processing operation, and when an abnormality occurs, the parity normal signal is output to the peripheral device ready information signal terminal of the microcomputer constituting the device. The present invention is characterized in that it includes a parity check circuit that outputs a parity abnormality signal to either the initial setting information signal terminal or the interrupt information signal terminal so that the central processing unit starts an abnormality processing operation.

〔実施例〕〔Example〕

次に本考案について図面を参照して説明する。
第2図は本考案の一実施例を示すブロツク図であ
る。CPUがMEMに書込みする場合データバスの
内容をパリテイビツト発生回路(以下PGとい
う。)にてパリテイビツト情報信号(以下P信号
という。)を発生させMEM内に書込めのつど書込
んでおく。(パリテイチエツク方式は公知の方法
で偶数パリテイチエツク方式、奇数パリテイチエ
ツク方式がある。偶数パリテイチエツク方式はデ
ータビツト論理1,0の1の合計とパリテイビツ
トの論理1,0の1の合計が偶数になるようにパ
リテイビツトを立てる。又奇数パリテイチエツク
方式はデータビツトの論理1,0の1の合計とパ
リテイビツトの論理1,0の1の合計が奇数にな
るようパリテイビツトを立てる。以上のような約
束があれば、例えばデータバスの内容を読出した
ときビツト変化が生じた場合パリテイビツトとデ
ータバスの内容のパリテイビツトを比較すること
でパリテイが正常か異常をを判断出来る。)CPU
はMEMにデータを書込んだ後(プログラムは
ROMとして初期にMEM内に書込まれるのでCPU
からの書込みとしてのパリテイビツトの付加はな
い。)あとでデータを読出す(プログラムは命令
として読出す。)ときCPUはデータバス上の内容
とパリテイビツトの内容をパリテイチエツク回路
(以下PCという。)により照合し、パリテイが正
常か異常かを判定する。正常の場合はCPUの
RDY信号としてPCのOK端子よりCPUに送り出
されることによりCPUは読出しが正常であるこ
とから通常の処理を実行する。又異常の場合は
PCのOK端子には出力が現われなくERR端子に
情報が現われ、この情報によりCPUの初期設定
情報信号(以下RST信号という。)としてCPUに
入込みCPUはRST端子より入力ということでパ
リテイエラが発生したことを知り以後の障害処理
を行なうことが出来る。
Next, the present invention will be explained with reference to the drawings.
FIG. 2 is a block diagram showing one embodiment of the present invention. When the CPU writes to the MEM, a parity bit information signal (hereinafter referred to as P signal) is generated from the contents of the data bus in a parity bit generation circuit (hereinafter referred to as PG), and is written into the MEM each time the data is written. (The parity check method is a well-known method and includes an even parity check method and an odd parity check method.The even parity check method is based on the sum of the 1s of the data bit logic 1 and 0 and the sum of the 1s of the logic 1 and 0 of the parity bits. The parity bit is set so that the total is an even number. In the odd parity check method, the parity bit is set so that the sum of the logic 1s and 0s of the data bits and the sum of the logic 1s and 1s of the parity bits is an odd number. If there is a promise like this, for example, if a bit change occurs when the contents of the data bus are read, it is possible to determine whether the parity is normal or abnormal by comparing the parity bit with the parity bit of the data bus contents.)CPU
After writing data to MEM (the program is
Since it is initially written in MEM as ROM, the CPU
There is no addition of parity bits as writes from. ) When reading data later (programs are read as instructions), the CPU checks the contents on the data bus and the contents of the parity bits using a parity check circuit (hereinafter referred to as PC) to determine whether the parity is normal or abnormal. judge. If normal, the CPU
Since the RDY signal is sent to the CPU from the OK terminal of the PC, the CPU executes normal processing because the reading is normal. Also, in case of abnormality
No output appears at the OK terminal of the PC, but information appears at the ERR terminal, and this information enters the CPU as the CPU's initial setting information signal (hereinafter referred to as the RST signal), and the CPU inputs from the RST terminal, which causes a parity error. Knowing this, you can handle future failures.

以上異常のときの説明にはCPUのRST端子を
使つてCPUに異常を知らせたが割込み動作とし
てRST信号の代りに割込み情報信号(以下INT信
号という。)を使用することも可能である。ただ
本状態に於いてはプログラムの組み方にもよるが
CPUで割込みが受けつけられないような場合が
あるのでINT信号はいつでも異常をCPUに知らせ
ることが出来ない場合がある。
In the above description of an abnormality, the RST terminal of the CPU was used to notify the CPU of the abnormality, but it is also possible to use an interrupt information signal (hereinafter referred to as the INT signal) instead of the RST signal for interrupt operation. However, in this state, it depends on how the program is assembled.
Since the CPU may not be able to accept interrupts, the INT signal may not be able to notify the CPU of an abnormality at any time.

以上説明したが第2図によりさらに詳しく説明
する。書込みのときはCPUは書込もうとするワ
ード指定のためアドレスバスABo,AB1,…,
ABjに書込みのアドレスを指定する。データバス
DBo,DB1,…,DBnには書込みの内容が送出
され、本内容はPGに接続されているデータバス
DBo,DB1,…,DBn上のデータと書込み情報
信号(以下W信号という。)によりパリテイビツ
トが作成されMEM内にデータのほかにパリテイ
ビツト情報信号(以下P信号という。)として書
込まれる。CPUは読出しのときは再び読出そう
とするワード指定のためアドレスバスABo,AB
1,…,ABjに読出しアドレスを指定する。デー
タバスDBo,DB1,…,DBnにはMEM内のデー
タが現われ、これをCPUの読出し情報信号(以
下R信号という。)の制御のもとにMEMより読出
されたP信号との照合をPCで行ない、この照合
が合つていればPCは出力としてパリテイ正常信
号(以下OK信号という。)をCPUに出す。これ
が論理和ゲート回路ORを通しCPUのRDY端子に
達し、MEMが読出し準備状態可能即ちパリテイ
正常と判断出来る。異常のときはPCは先のデー
タバスDBo,DB1,…,DBn上の情報とP信号
との照合結果が異常のためERR端子に出力を出
し、これがCPUのRST信号又はINT信号として
CPUに知らされ、CPUはパリテイエラが発生し
たことを検知し、以後のしかるべき処理を実行す
ることが出来る。その他、MEMからのRDY信号
はMEMに書込みのときMEMが書込み準備可能状
態になつたことをCPUに知らせるためのもので
ある。
The above explanation will be explained in more detail with reference to FIG. When writing, the CPU uses address buses ABo, AB1, ..., to specify the word to be written.
Specify the write address in ABj. data bus
The contents of the write are sent to DBo, DB1,..., DBn, and the contents are sent to the data bus connected to PG.
A parity bit is created from the data on DBo, DB1, . When reading, the CPU uses address buses ABo and AB to specify the word to be read again.
Specify the read address in 1, ..., ABj. Data in the MEM appears on the data buses DBo, DB1,..., DBn, and the PC compares this with the P signal read out from the MEM under the control of the CPU's read information signal (hereinafter referred to as the R signal). If this verification is correct, the PC outputs a parity normal signal (hereinafter referred to as OK signal) to the CPU. This passes through the OR gate circuit OR and reaches the RDY terminal of the CPU, and it can be determined that the MEM is ready for reading, that is, the parity is normal. When an error occurs, the PC outputs an output to the ERR terminal because the result of comparing the information on the previous data buses DBo, DB1, ..., DBn with the P signal is abnormal, and this is output as the CPU's RST signal or INT signal.
The CPU is notified, the CPU detects that a parity error has occurred, and can execute appropriate subsequent processing. In addition, the RDY signal from the MEM is used to notify the CPU that the MEM is ready for writing when writing to the MEM.

〔考案の効果〕[Effect of idea]

以上本考案を実施することで読出し時のパリテ
イチエツクを行なうことにより実行命令の変化に
よるプログラムの暴走及び停止といつた障害やデ
ータの変化によるデータ処理不能というような事
態は避けられる。本回路のようにパリテイ正常判
定としてCPUの周辺装置準備可能情報信号すな
わちRDY信号を使うこと、又異常のとき初期設
定情報信号すなわちRST信号又は割込み情報信
号すなわちINT信号を使うことで正規ではない命
令又はデータをCPUが取込むことは未然に防
げ、しかるべき障害処理が出来るようになる。例
としてパリテイエラの発生が雑音等に起因するも
のであればCPUがMEMからのデータの読出しを
数回くり返すことにより雑音による障害(ビツト
変化等)は防止出来る。又実際のハードウエア障
害が発生していたとした場合はその時点で障害個
所を発見し障害の潜在化および拡大化を防ぐこと
が出来本考案が非常に有効なものであることが理
解できる。しかも本考案は本考案の実施例に示す
如く、パリテイチエツク回路をデータバスに接続
しパリテイチエツクの結果をCPUの周辺装置準
備可能情報信号及び初期設定情報信号または割込
み情報信号として知らせるだけの非常に簡単でし
かもハードウエア量も少ない経済的な方法により
障害の発見を可能にしたことを特徴としたパリテ
イチエツク回路を提供するものである。
By carrying out the present invention and performing a parity check at the time of reading, it is possible to avoid failures such as program runaway and stoppage due to changes in execution instructions, and situations such as inability to process data due to changes in data. As in this circuit, the CPU's peripheral device readiness information signal, or RDY signal, is used to determine whether parity is normal, or the initial setting information signal, or RST signal, or the interrupt information signal, or INT signal, is used in the event of an abnormality. Alternatively, data can be prevented from being taken in by the CPU, and appropriate failure handling can be performed. For example, if the occurrence of parity error is due to noise, etc., the CPU repeats reading data from the MEM several times, thereby preventing noise-induced disturbances (bit changes, etc.). Furthermore, in the event that an actual hardware failure occurs, it is possible to discover the failure location at that time and prevent the failure from becoming latent and expanding, making it possible to understand that the present invention is extremely effective. Moreover, as shown in the embodiment of the present invention, the present invention simply connects the parity check circuit to the data bus and notifies the parity check result as a CPU peripheral device readiness information signal, initial setting information signal, or interrupt information signal. The present invention provides a parity check circuit which is characterized by being able to discover faults using a very simple and economical method that requires a small amount of hardware.

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

第1図は従来の方式の一例のブロツク図、第2
図は本考案のパリテイチエツク回路の一実施例の
ブロツク図である。 CPU……マイクロコンピユータ、MEM……メ
モリ、PC……パリテイチエツク回路、PG……パ
リテイビツト発生回路、OR……論理和ゲート回
路、AND……論理積ゲート回路、ABo,AB1,
…,ABj……アドレスバス、DBo,DB1,…,
DBn……データバス、Ao,A1,…,Aj……ア
ドレスバス情報端子、Do,D1,…,Dn……デ
ータバス情報端子、W……書込み情報信号端子、
R……読出し情報信号端子、RDY……周辺装置
準備可能情報信号端子、RST……初期設定情報
信号端子、INT……割込み情報信号端子、P……
パリテイビツト情報信号端子、OK……パリテイ
正常信号端子、ERR……パリテイ異常信号端
子。
Figure 1 is a block diagram of an example of a conventional method; Figure 2 is a block diagram of an example of a conventional method;
The figure is a block diagram of one embodiment of the parity check circuit of the present invention. CPU: Microcomputer, MEM: Memory, PC: Parity check circuit, PG: Parity bit generation circuit, OR: OR gate circuit, AND: AND gate circuit, ABo, AB1,
…, ABj……address bus, DBo, DB1, …,
DBn...data bus, Ao, A1,..., Aj...address bus information terminal, Do, D1,..., Dn...data bus information terminal, W...write information signal terminal,
R...Read information signal terminal, RDY...Peripheral device ready information signal terminal, RST...Initial setting information signal terminal, INT...Interrupt information signal terminal, P...
Parity bit information signal terminal, OK... Parity normal signal terminal, ERR... Parity abnormal signal terminal.

Claims (1)

【実用新案登録請求の範囲】 データバスを介してマイクロコンピユータより
構成される中央処理装置が、記憶装置との間でデ
ータの書込みおよび読出しを行なうデータ処理装
置において、 前記データバスに接続され、かつ前記中央処理
装置が前記記憶装置に前記データを書込むとき、
前記中央処理装置の制御に従つて書込まれる前記
データのパリテイに従い、所定のパリテイビツト
を発生し、かつ前記中央処理装置が前記記憶装置
に前記データとともに前記パリテイビツトを書込
めるように前記パリテイビツトを出力するパリテ
イビツト発生回路と、 前記データバスに接続され、かつ前記中央処理
装置が前記記憶装置から前記データを読出すと
き、前記中央処理装置の制御に従つて前記記憶装
置から前記データとともに読出される前記パリテ
イビツトに従い読出される前記データのパリテイ
を検定し、かつその検定の結果続出される前記デ
ータのパリテイが正常であるときは前記中央処理
装置を構成するマイクロコンピユータの周辺装置
準備可能情報信号端子に前記中央処理装置が正常
処理動作を続行するようにパリテイ正常信号を出
力し、異常であるときには前記中央処理装置を構
成するマイクロコンピユータの初期設定情報信号
端子および割込み情報信号端子のいずれかに前記
中央処理装置が異常処理動作を開始するようにパ
リテイ異常信号を出力するパリテイチエツク回路
と、 を備えることを特徴とするパリテイチエツク回
路。
[Claims for Utility Model Registration] A data processing device in which a central processing unit composed of a microcomputer writes and reads data to and from a storage device via a data bus, and When the central processing unit writes the data to the storage device,
Generating a predetermined parity bit according to the parity of the data written under the control of the central processing unit, and outputting the parity bit so that the central processing unit can write the parity bit together with the data in the storage device. a parity bit generation circuit connected to the data bus and read out together with the data from the storage device under control of the central processing unit when the central processing unit reads the data from the storage device; The parity of the data read out according to the above is verified, and if the parity of the data successively read out is normal as a result of the verification, the central A parity normal signal is outputted so that the processing unit continues normal processing operation, and when an abnormality occurs, a parity normal signal is output to either the initial setting information signal terminal or the interrupt information signal terminal of the microcomputer constituting the central processing unit. A parity check circuit comprising: a parity check circuit that outputs a parity abnormality signal so that a parity error signal starts an abnormality processing operation;
JP12799486U 1986-08-22 1986-08-22 Expired JPS6230105Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12799486U JPS6230105Y2 (en) 1986-08-22 1986-08-22

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12799486U JPS6230105Y2 (en) 1986-08-22 1986-08-22

Publications (2)

Publication Number Publication Date
JPS6251442U JPS6251442U (en) 1987-03-31
JPS6230105Y2 true JPS6230105Y2 (en) 1987-08-03

Family

ID=31023260

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12799486U Expired JPS6230105Y2 (en) 1986-08-22 1986-08-22

Country Status (1)

Country Link
JP (1) JPS6230105Y2 (en)

Also Published As

Publication number Publication date
JPS6251442U (en) 1987-03-31

Similar Documents

Publication Publication Date Title
JPH06324914A (en) Runaway detecting method for computer
JPS6230105Y2 (en)
JPH07141176A (en) Command retrial control system
JPS6146864B2 (en)
US7237099B2 (en) Multiprocessor system having a plurality of control programs stored in a continuous range of addresses of a common memory and having identification registers each corresponding to a processor and containing data used in deriving a starting address of a CPU-linked interrupt handler program to be executed by the corresponding processor
JPS6159557A (en) Virtual memory controlling device
JP3350069B2 (en) Bus line monitoring method
JP3311776B2 (en) Data transfer check method in disk subsystem
JP2584466B2 (en) Disk controller self-diagnosis method
JPS60220448A (en) Mutual checking method of multi-cpu system
JPH06214831A (en) Abnormality detector for central processing unit
JPH04256033A (en) Memory diagnostic system
JPH0480860A (en) Program loading system
JPS61134856A (en) Ram check circuit
JPH0217563A (en) Method for initializing shared memory
JPS63150732A (en) Program running supervisory equipment
JPS6074052A (en) History memory control system
JPS6324331A (en) Runaway detecting device for computer
JPS5898900A (en) Microprocessor controlling system
JPH03176710A (en) Initialization control system for information processor
JPH03198136A (en) Check system for dma transfer data
JPH05289946A (en) Memory control system
JPS61294556A (en) Detection system for program malfunction
JPS6319053A (en) Memory device
JPH0433156A (en) Electronic equipment