JPH03260843A - Execution confirming system - Google Patents

Execution confirming system

Info

Publication number
JPH03260843A
JPH03260843A JP2058057A JP5805790A JPH03260843A JP H03260843 A JPH03260843 A JP H03260843A JP 2058057 A JP2058057 A JP 2058057A JP 5805790 A JP5805790 A JP 5805790A JP H03260843 A JPH03260843 A JP H03260843A
Authority
JP
Japan
Prior art keywords
execution
instruction
signal
external terminal
address register
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.)
Granted
Application number
JP2058057A
Other languages
Japanese (ja)
Other versions
JP2591684B2 (en
Inventor
Takeshi Kitahara
北原 毅
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2058057A priority Critical patent/JP2591684B2/en
Publication of JPH03260843A publication Critical patent/JPH03260843A/en
Application granted granted Critical
Publication of JP2591684B2 publication Critical patent/JP2591684B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To decrease the number of terminals of a comparator and to assure the processing reliability in terms of the real time by outputting the signal that degenerates the whole or a part of the contents of an instruction address register via a signal degenerating means through an external terminal as an execution confirming signal. CONSTITUTION:The execution confirming system of an information processor consists of a microprocessor 31 which is provided with an instruction address register 45, an instruction decoder 44, an instruction execution control part 46, a computing element 48, a general-purpose register 47 which stores the arithmetic results, and an instruction cache 42. Furthermore an external terminal 31a outputting execution confirming signal is provided. Then the contents of the register 45 are outputted through the terminal 31a as an execution confirming signal. Thus it is possible to decrease the number of terminals of a comparator for the reduction in the cost even when a cache is included in a CPU and also to assure the processing reliability in terms of the real time.

Description

【発明の詳細な説明】 (概要) 信頼性を高めるために複数の処理装置を内蔵させた情報
処理装置の実行確認方式に関し、CPU内にキャッシュ
を有する場合であっても、比較回路の端子数を減少させ
てコストを下げ、しかも処理の実時間的な信頼性保証が
できるようにすることを目的とし、 命令アドレスレジスタと、命令デコーダと、命令実行を
制御する実行制御部と、演算器と、演算結果を格納する
汎用レジスタと、命令キャッシュとを有するマイクロプ
ロセッサにおいて、実行確認用信号を出力する外部端子
を設け、該外部端子から前記命令アドレスレジスタの内
容を実行確認用信号として出力させるか、または前記マ
イクロプロセッサにおいて、前記外部端子を設けるとと
もに信号縮退手段を設け、該信号縮退手段により命令ア
ドレスレジスタの内容の全部または一部を縮退させた信
号を実行確認用信号として前記外部端子を介して出力さ
せるか、または命令アドレスレジスタと、命令デコーダ
と、命令実行を制御する実行制御部と、演算器と、演算
結果を格納する汎用レジスタと、命令キャッシュと、オ
ペランドキャッシュを有するマイクロプロセッサにおい
て、実行確認用信号を出力する外部端子を設け、該外部
端子を介して前記演算器からプロセッサ外部に演算結果
の1つであるフラッグを実行確認用信号として出力させ
るか、あるいはまた命令アドレスレジスタと、命令デコ
ーダと、命令実行を制御する実行制御部と、演算器と、
演算結果を格納する汎用レジスタと、命令キャッシュと
、オペランドキャッシュを有するマイクロプロセッサに
おいて、実行確認用信号を出力する外部端子を設け、該
外部端子を介して前記実行制御部からプロセッサ外部に
、分岐命令の実行によってプログラムシーケンスが変わ
ったか否かを示す分岐指示信号を実行確認用信号として
出力させるような構成にしたものである。
DETAILED DESCRIPTION OF THE INVENTION (Summary) Regarding an execution confirmation method for an information processing device that incorporates a plurality of processing devices in order to improve reliability, even if the CPU has a cache, the number of terminals of the comparison circuit The purpose of this design is to reduce the cost by reducing the amount of time required, and also to guarantee the real-time reliability of processing. In a microprocessor having a general-purpose register for storing calculation results and an instruction cache, an external terminal for outputting an execution confirmation signal is provided, and the contents of the instruction address register are outputted from the external terminal as an execution confirmation signal. , or in the microprocessor, the external terminal is provided and a signal degenerating means is provided, and a signal obtained by degenerating all or part of the contents of the instruction address register by the signal degenerating means is transmitted via the external terminal as an execution confirmation signal. In a microprocessor having an instruction address register, an instruction decoder, an execution control unit for controlling instruction execution, an arithmetic unit, a general-purpose register for storing operation results, an instruction cache, and an operand cache, An external terminal for outputting an execution confirmation signal is provided, and a flag, which is one of the calculation results, is outputted from the arithmetic unit to the outside of the processor as an execution confirmation signal via the external terminal, or an instruction address register, an instruction decoder, an execution control unit that controls instruction execution, an arithmetic unit,
In a microprocessor having a general-purpose register for storing calculation results, an instruction cache, and an operand cache, an external terminal for outputting an execution confirmation signal is provided, and a branch instruction is transmitted from the execution control unit to the outside of the processor via the external terminal. The configuration is such that a branch instruction signal indicating whether or not the program sequence has changed due to the execution of the program is output as an execution confirmation signal.

(産業上の利用分野 ) 本発明は、信頼性を高めるために複数の処理装置を内蔵
させた情報処理装置の実行確認方式に関する。
(Industrial Application Field) The present invention relates to an execution confirmation method for an information processing device incorporating a plurality of processing devices in order to improve reliability.

(従来の技術 ) 従来、情報処理装置で実施されている実行確認方式は、
第5図に示すように、それぞれがマイクロプロセッサか
らなる2つのCPU (中央処理装置)1,2と、両C
PUI、2に同期をとらせるためのクロック3と、両C
PUI、2から制御信号、アドレス、およびデータ等を
入力して両CPUI、2の処理が一致するか否かをチエ
ツクするデータバイパス機能を有する比較回路4とを備
え、両CPUI、2にはシステムバス5を介してデータ
が入力される。CPU2へのデータ入力の際には、比較
回路4を介するが比較機能を使用せずに、データバイパ
ス機能を利用して直接にCPU2側へデータを伝送する
(Prior art) Execution confirmation methods conventionally implemented in information processing devices are as follows:
As shown in Fig. 5, two CPUs (central processing units) 1 and 2 each consisting of a microprocessor, and both
Clock 3 for synchronizing PUI, 2 and both C
It is equipped with a comparison circuit 4 having a data bypass function that inputs control signals, addresses, data, etc. from the PUI 2 and checks whether the processing of both CPUs 2 matches. Data is input via bus 5. When inputting data to the CPU 2, the data is directly transmitted to the CPU 2 side through the comparison circuit 4, but without using the comparison function, using the data bypass function.

CPU 1 、または2は、第6図に示すように、制御
信号、アドレス、およびデータ等をシステムバス5や比
較回路4に伝送する外部インタフェース11と、外部イ
ンタフェース11を介して入力した命令を記憶する命令
キャッシュ12と、外部インタフェース11を介して入
力するオペランドを記憶するオペランドキャッシュ13
と、命令キャッシュ12から読み出した命令をデコード
する命令デコーダ14と、命令デコーダ14からの出力
をストアする命令アドレスレジスタ15と、命令デコー
ダ14によりデコードされた命令を実行する実行制御部
16と、実行制御部16により制御されてオペランドキ
ャッシュ13と汎用レジスタ17との間でデータを入出
力しながら演算を実行する演算器18とを備えている。
As shown in FIG. 6, the CPU 1 or 2 has an external interface 11 that transmits control signals, addresses, data, etc. to the system bus 5 and the comparator circuit 4, and stores instructions input via the external interface 11. and an operand cache 13 that stores operands input via the external interface 11.
an instruction decoder 14 that decodes instructions read from the instruction cache 12; an instruction address register 15 that stores the output from the instruction decoder 14; an execution control unit 16 that executes the instructions decoded by the instruction decoder 14; It includes an arithmetic unit 18 that executes arithmetic operations while inputting and outputting data between the operand cache 13 and the general-purpose register 17 under the control of the control unit 16.

この情報処理装置における実行確認方式は、CPU1お
よびCPU2をクロック3の出力に同期させて同じ処理
を実行させ、その同時刻に実行させた出力結果を比較回
路4により比較して、再出力結果が一致するか否かをチ
エツクし、処理が正確に行われているかどうかについて
確認させている。
The execution confirmation method in this information processing device is to synchronize the CPU 1 and CPU 2 with the output of the clock 3 to execute the same process, and compare the output results of the execution at the same time using the comparator circuit 4 to determine the re-output result. It checks whether they match or not, and confirms whether the processing is being performed correctly.

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

上記従来の実行確認方式では、2つのCPU1.2が同
じ処理結果を出すことを確認することによって処理の信
頼性を保証するようにするため、外部に出ているバス(
を構成している信号線)だけを比較回路4に接続して、
バス上の動作が一致するかどうかを比較している。
In the conventional execution confirmation method described above, in order to guarantee the reliability of processing by confirming that the two CPUs 1.2 produce the same processing result, the external bus (
By connecting only the signal line (constituting the signal line) to the comparator circuit 4,
The operations on the bus are compared to see if they match.

このため、アドレスバスやデータバスの信号線の数が多
いことから比較回路4の端子数が多くなり、コストが高
くなる。また、CPUI、2が命令キャッシュ12ある
いはオペランドキャッシュ13を備えている装置では、
命令のアクセスあるいはオペランドのアクセスが外部に
出るためのタイムラグに影響され、その処理の内容につ
いて比較回路4で実時間的な比較ができない、特にオペ
ランドキャッシュがライトバックあるいはコピーパック
の場合には、ストアデータでさえも外部に出てくるのに
かなり時間がかかる場合があり、比較サイクルが遅くな
る。
Therefore, since the number of signal lines of the address bus and data bus is large, the number of terminals of the comparator circuit 4 is increased, which increases the cost. In addition, in a device where the CPUI 2 is equipped with an instruction cache 12 or an operand cache 13,
Store processing is affected by the time lag for instruction access or operand access to go outside, and the comparator circuit 4 cannot compare the contents of the process in real time, especially when the operand cache is write-back or copy pack. Even the data can take quite a while to come out, slowing down the comparison cycle.

従って、このような構成上の要因があるため、CPU二
重化構成にして高い信頼性を持たせた情報処理装置を構
成させた場合でも、システムコストが高く、処理の実時
間的な信頼性保証ができないという問題点があった。
Therefore, due to these configuration factors, even if a highly reliable information processing device is configured with a dual CPU configuration, the system cost is high and the real-time reliability of processing cannot be guaranteed. The problem was that it couldn't be done.

本発明は、上記問題点に鑑みて威されたものであり、そ
の解決を目的として設定される技術的課題は、CPU内
にキャッシュを右する場合であっても、比較回路の端子
数を減少させてコストを下げ、しかも処理の実時間的な
信頼性保証ができるようにした実行確認方式を提供する
ことにある。
The present invention was developed in view of the above-mentioned problems, and the technical problem set to solve the problem is to reduce the number of terminals of the comparison circuit even when caching is provided in the CPU. The purpose of the present invention is to provide an execution confirmation method that can reduce costs and guarantee real-time reliability of processing.

(課題を解決するための手段 ) 本発明は、上記課題を解決するための具体的な手段とし
て、情報処理装置の実行確認方式を構成するにあたり、
第1図の実施例図に示すように、命令アドレスレジスタ
45と、命令デコーダ44と、命令実行を制御する実行
制御部46と、演算器48と、演算結果を格納する汎用
レジスタ47と、命令キャッシュ42とを有するマイク
ロプロセッサ31において、実行確認用信号を出力する
外部端子31aを設け、該外部端子31aから前記命令
アドレスレジスタの内容を実行確認用信号として出力す
るものである。
(Means for Solving the Problems) As a specific means for solving the above problems, the present invention provides, in configuring an execution confirmation method for an information processing device,
As shown in the embodiment diagram of FIG. 1, an instruction address register 45, an instruction decoder 44, an execution control unit 46 that controls instruction execution, an arithmetic unit 48, a general-purpose register 47 that stores operation results, and an instruction The microprocessor 31 having a cache 42 is provided with an external terminal 31a for outputting an execution confirmation signal, and the contents of the instruction address register are output from the external terminal 31a as the execution confirmation signal.

そしてこれは、第1図、または第2図の実施例図に示す
ように、信号縮退手段49b、または52を設け、該信
号縮退手段49b、または52により命令アドレスレジ
スタの内容の全部または一部を縮退させた信号を実行確
認用信号として前記外部端子31aを介して出力するも
のにすることが望ましい。
As shown in the embodiment diagram of FIG. 1 or FIG. 2, a signal reduction means 49b or 52 is provided, and all or part of the contents of the instruction address register are It is desirable to output a signal obtained by degenerating the above as an execution confirmation signal through the external terminal 31a.

また、第3図の実施例図に示すように、命令アドレスレ
ジスタ45と、命令デコーダ44と、命令実行を制御す
る実行制御部46と、演算器48と、演算結果を格納す
る汎用レジスタ47と、命令キャッシュ42と、オペラ
ンドキャッシュ43とを有するマイクロプロセッサ31
において、実行確認用信号を出力する外部端子31aを
設け、該外部端子31aを介して前記演算器48からプ
ロセッサ外部に演算結果の1つであるフラッグを実行確
認用信号として出力するものにしても良い。
Further, as shown in the embodiment diagram of FIG. 3, an instruction address register 45, an instruction decoder 44, an execution control unit 46 that controls instruction execution, an arithmetic unit 48, and a general-purpose register 47 that stores operation results. , an instruction cache 42, and an operand cache 43.
In this case, an external terminal 31a for outputting an execution confirmation signal may be provided, and a flag, which is one of the calculation results, may be output from the arithmetic unit 48 to the outside of the processor as the execution confirmation signal via the external terminal 31a. good.

さらにまた、第4図に示すように、命令アドレスレジス
タ45と、命令デコーダ44と、命令実行を制御する実
行制御部46と、演算器48と、演算結果を格納する汎
用レジスタ47と、命令キャッシュ42と、オペランド
キャッシュ43とを有するマイクロプロセッサ31にお
いて、実行確認用信号を出力する外部端子31aを設け
、該外部端子31aを介して前記実行制御部46からプ
ロセッサ外部に、分岐命令の実行によってプログラムシ
ーケンスが変わったか否かを示す分岐指示信号を実行確
認用信号として出力するものであっても良い。
Furthermore, as shown in FIG. 4, an instruction address register 45, an instruction decoder 44, an execution control unit 46 that controls instruction execution, an arithmetic unit 48, a general-purpose register 47 that stores operation results, and an instruction cache 42 and an operand cache 43, an external terminal 31a for outputting an execution confirmation signal is provided, and a program is transmitted from the execution control unit 46 to the outside of the processor via the external terminal 31a by executing a branch instruction. A branch instruction signal indicating whether the sequence has changed may be output as an execution confirmation signal.

〔作用〕[Effect]

本発明は上記構成により、同時刻における各マイクロプ
ロセッサの何れかの処理が誤りを犯していれば、直接に
各外部端子31a、32aから出力された信号を比較回
路で比較検討した結果により、その処理の誤りであるこ
とを見出し、誤りであればエラー検出信号を出力し、各
マイクロプロセッサ31.32がそれぞれの外部端子3
1a、32aからエラー検出信号を入力してそれぞれ各
マイクロプロセッサ31.32の実行を止め、その停止
に伴ない、データ等の伝送を中断させる。これにより各
マイクロプロセッサ31゜32のそれぞれについて処理
が正確に行われていることを実時間で直接に確認するこ
とができ、高い信頼性を保証できるようになる。また、
必要最小限のデータによって各マイクロプロセッサ31
.32における処理の確認ができるようになるため、接
続端子の数が減少し、経費の削減に貢献する。
With the above configuration, if any of the processes of each microprocessor at the same time has made an error, the present invention directly compares and examines the signals output from each of the external terminals 31a and 32a using a comparison circuit. It detects that there is an error in the processing, and if it is an error, it outputs an error detection signal, and each microprocessor 31, 32 outputs an error detection signal to its external terminal 3.
Error detection signals are input from 1a and 32a to stop the execution of each microprocessor 31 and 32, respectively, and along with the stoppage, the transmission of data, etc. is interrupted. This makes it possible to directly confirm in real time whether each of the microprocessors 31 and 32 is performing processing accurately, thereby ensuring high reliability. Also,
Each microprocessor 31 is
.. Since the processing at 32 can be confirmed, the number of connection terminals is reduced, contributing to cost reduction.

(実施例 ) 以下、本発明の実施例として、各マイクロプロセッサの
実行中に出力される信号に、命令アドレスまたはその縮
退信号、演算結果の1つであるフラグ、または分岐指示
信号を使用する場合について図示説明する。
(Example) As an example of the present invention, the following describes a case where an instruction address or its degenerate signal, a flag that is one of the calculation results, or a branch instruction signal is used as a signal output during execution of each microprocessor. This will be illustrated and explained.

第1実施例を第1図に示す。ここで、31゜32はそれ
ぞれがワンチップのマイクロプロセッサからなるCPU
であり、一方が必要な処理を実行させるためのもので、
他方がその処理の確認用に同じ処理を実行させるための
ものである。
A first embodiment is shown in FIG. Here, 31° and 32 are CPUs each consisting of a single-chip microprocessor.
and one is for executing the necessary processing,
The other one is used to execute the same process to confirm the process.

このCPU31,32には、それぞれ外部インタフェー
ス41を介さずに処理中のデータを直接に出力させる外
部端子31a、32aを備え、この外部端子31a、3
2aを介して取り出した同時刻に生成されたデータによ
って、一方の装置31または32の処理と他方の装置3
2または31の処理が一致していることを確認できるよ
うにする。
The CPUs 31 and 32 are respectively provided with external terminals 31a and 32a for directly outputting data being processed without going through an external interface 41.
The processing of one device 31 or 32 and the processing of the other device 3 are performed by the data generated at the same time retrieved via 2a.
It is possible to confirm that the processes of 2 or 31 match.

CPU31(または32)の内部構成としては、制御信
号、アドレス、およびデータ等をシステムバス37から
入力する外部インタフェース41と、外部インタフェー
ス41を介して入力した命令を記憶する命令キャッシュ
42と、外部インタフェース41を介して入力するオペ
ランドを記憶するコピーバック型のオペランドキャッシ
ュ43と、命令キャッシュ42から読み出した命令をデ
コードする命令デコーダ44と、命令デコーダ44から
の出力をストアする命令アドレスレジスタ45と、命令
デコーダ44によりデコードされた命令を実行する実行
制御部46と、実行制御部46により制御されてオペラ
ンドキャッシュ43と汎用レジスタ47との間でデータ
を入出力しながら演算を実行する演算器48と、処理中
に生成されたデータを比較用として直接に比較装置34
側へ出力するとともに、その比較結果が不一致のときに
出される比較装置34側からのエラー検出信号を入力さ
せる外部端子31a(または32a)を備えている。
The internal configuration of the CPU 31 (or 32) includes an external interface 41 for inputting control signals, addresses, data, etc. from the system bus 37, an instruction cache 42 for storing instructions input via the external interface 41, and an external interface. 41, an instruction decoder 44 that decodes instructions read from the instruction cache 42, an instruction address register 45 that stores the output from the instruction decoder 44, and an instruction address register 45 that stores the output from the instruction decoder 44. an execution control unit 46 that executes instructions decoded by the decoder 44; an arithmetic unit 48 that executes operations while inputting and outputting data between the operand cache 43 and the general-purpose register 47 under the control of the execution control unit 46; The data generated during processing is directly transferred to a comparison device 34 for comparison.
It is provided with an external terminal 31a (or 32a) for inputting an error detection signal from the comparison device 34 side, which is output when the comparison result does not match.

命令アドレスレジスタ45の出力側と外部端子31a(
または32a)とを内部バス49aにより接続し、命令
アドレスの全てを外部端子31a(または32a)から
出力できるようにするか、またはその内部バス49aに
信号縮退手段としての排他的OR回路49bを介装して
、隣り合うビットのデータの排他的ORを出力していく
ことにより、出力データのビット数を減少させたデータ
(縮退データ)を出力することができるようにする。
The output side of the instruction address register 45 and the external terminal 31a (
or 32a) via an internal bus 49a so that all instruction addresses can be output from the external terminal 31a (or 32a), or connect an exclusive OR circuit 49b as a signal reduction means to the internal bus 49a. By outputting the exclusive OR of data of adjacent bits, it is possible to output data with a reduced number of bits of output data (degenerate data).

実行制御部46と外部端子31a(または32a)との
間を信号線49cにより接続して、実行制御部46が入
力したエラー検出信号をホルト信号として受けられるよ
うにし、以後の処理を中断させることができるようにす
る。
The execution control section 46 and the external terminal 31a (or 32a) are connected by a signal line 49c so that the error detection signal inputted by the execution control section 46 can be received as a halt signal, thereby interrupting subsequent processing. be able to do so.

このように構成したCPU31,32の一致チェックを
すると、つぎのような手順になる。
When the CPUs 31 and 32 configured in this manner are checked for consistency, the following procedure is performed.

各CPU31,32は、実行制御部46からの指令によ
って演算器48が処理を進める場合、命令アドレスレジ
スタ45からその内容を、内部バス49aおよび外部端
子31a、または32aを介して、それぞれ同時刻に比
較装置(図示せず)へ送信する。
When the arithmetic unit 48 proceeds with processing based on a command from the execution control unit 46, each CPU 31, 32 receives the contents from the instruction address register 45 at the same time via the internal bus 49a and the external terminal 31a or 32a. to a comparison device (not shown).

比較装置では、両CPU31,32から入力したそれぞ
れの内容が一致した場合には信号を出さず、不一致の場
合には1ビツトのエラー検出信号を各CPU31.32
へ送信する。
The comparator does not output a signal when the contents input from both CPUs 31 and 32 match, and outputs a 1-bit error detection signal to each CPU 31 and 32 when they do not match.
Send to.

各CPU31.32では、エラー検出信号を外部端子3
1a、32aおよび信号線49cを介して実行制御部4
6に入力させ、その実行制御部46によって演算器48
の処理を止める。
Each CPU 31.32 sends the error detection signal to external terminal 3.
Execution control unit 4 via 1a, 32a and signal line 49c
6, and the execution control unit 46 controls the arithmetic unit 48.
stop processing.

また、エラー検出信号が入力すると、入出力系の中断機
構(図示せず)を作動させて制御信号、アドレス、デー
タ等の入出力を中断させる。
Further, when an error detection signal is input, an input/output system interrupting mechanism (not shown) is activated to interrupt input/output of control signals, addresses, data, etc.

このように第1実施例では、各外部端子31a、32a
を介して命令アドレスレジスタ45の内容を直接に取り
出すことができ、その出力データを比較装置34により
比較できるようにしたことによって、各CPU31,3
2の同一時刻における処理の正しさを外部装置(比較装
置)により実時間で確認することができる。
In this way, in the first embodiment, each external terminal 31a, 32a
The contents of the instruction address register 45 can be directly retrieved through the CPU 31, and the output data can be compared by the comparator 34.
The correctness of the processing at the same time in step 2 can be confirmed in real time by an external device (comparison device).

また、命令アドレスレジスタ45からの出力またはその
縮退データを外部装置に入力させることによって、外部
装置の端子数を減少させることができ、従来よりもCP
U外部の比較装置を安価な装置にすることができ、LS
Iにまとめ易く、組み込み用のパッケージが簡素化でき
、プリント配線が容易になって、諸経費が削減でき、高
信頼性を有する情報処理装置の低価格化ができる。
Furthermore, by inputting the output from the instruction address register 45 or its degenerate data to an external device, the number of terminals of the external device can be reduced, and the CP
The comparison device outside U can be made into an inexpensive device, and the LS
It is easy to integrate into an integrated circuit, simplify the packaging for incorporation, facilitate printed wiring, reduce overhead costs, and lower the price of highly reliable information processing equipment.

第1実施例(CPU31または32)の別態様としては
、第2図に示すように、命令アドレスの下位桁の一部を
伝送するように構成する。
As another aspect of the first embodiment (CPU 31 or 32), as shown in FIG. 2, it is configured to transmit a part of the lower digits of the instruction address.

命令アドレスレジスタ45の下位桁出力側と外部端子3
1a(または32a)とを内部バス51により接続し、
命令アドレスの下位桁の一部を外部端子31a (また
は32a)から出力できるようにするか、またはその内
部バス51に信号縮退手段としての排他的OR回路52
を介装して縮退データを出力できるようにし、その他の
部分については前記CPU31(または32)の構成と
同じ様に構成する。
Lower digit output side of instruction address register 45 and external terminal 3
1a (or 32a) via an internal bus 51,
A part of the lower digits of the instruction address can be outputted from the external terminal 31a (or 32a), or an exclusive OR circuit 52 as a signal reduction means can be connected to the internal bus 51.
The other parts are configured in the same manner as the CPU 31 (or 32).

一般にプログラムの実行はシーケンシャルに進むため、
下位桁のみの比較でも充分に実用的であり、これにより
、さらに端子数が減少でき、容易に外部装置によって内
部動作が確認できるようになる。
Generally, program execution proceeds sequentially, so
Comparison of only the lower digits is sufficiently practical, and thereby the number of terminals can be further reduced and internal operations can be easily confirmed by an external device.

第2実施例としては、第3図に示すように、演算器48
における演算結果の1つであるフラグを出力する信号線
53を外部端子31a(または32a)に接続し、その
他の部分については前記CPU31(または32)と同
様に構成する。
As a second embodiment, as shown in FIG.
A signal line 53 for outputting a flag, which is one of the calculation results in , is connected to the external terminal 31a (or 32a), and the other parts are configured in the same manner as the CPU 31 (or 32).

これにより演算途中における種々のフラグが出力できる
ようになり、外部装置が内部の実行シーケンスを確認で
きるようになる。
This makes it possible to output various flags during the calculation, allowing an external device to check the internal execution sequence.

第3実施例としては、第4図に示すように、実行制御部
46から分岐信号を出力する信号線54を外部端子31
a(または32a)に接続し、その他の部分については
前記CPU31(または32)の構成と同様に構成する
As a third embodiment, as shown in FIG. 4, a signal line 54 for outputting a branch signal from the execution control unit 46 is
a (or 32a), and the other parts are configured similarly to the configuration of the CPU 31 (or 32).

これにより実行制御部46が分岐命令を実行するために
プログラムシーケンスを変えると、そのたびに実行制御
部46から分岐信号が出力され、外部装置によって内部
動作が確認できるようになる。
As a result, each time the execution control section 46 changes the program sequence to execute a branch instruction, a branch signal is output from the execution control section 46, and the internal operation can be confirmed by an external device.

これらCPU31 (または32)の多様な実施例の態
様によっても、両CPU31および32について、実時
間で処理の正しさをチエツクすることができ、しかもそ
のチエツク装置としての比較装置では端子数を減少させ
ることができ、その結果として製造上の諸経費が削減で
きる。
With these various embodiments of the CPU 31 (or 32), it is possible to check the correctness of processing in real time for both CPUs 31 and 32, and the comparison device used as the checking device can reduce the number of terminals. As a result, manufacturing costs can be reduced.

(発明の効果 ) 以上のように本発明では、各マイクロプロセッサ31.
32に、処理中のデータを外部インタフェースを介さず
直接に出力する外部端子31a、32aをそれぞれに備
えさせ、その外部端子31a、32aを介して命令アド
レスまたはその縮退信号、フラグ、分岐指示信号等の何
れかを出力することによって外部装置が容易に処理の正
しさをチエツクできるようにし、その処理の誤りが見出
された場合には、そのエラー検出信号を受けて、各マイ
クロプロセッサ31.32の処理を適時に止めさせると
ともに、制御信号、アドレス、データ等の入出力系の伝
送を中断させることができるようにしたことによって、
各マイクロプロセッサ31.32のそれぞれについて、
処理が正確に行われていることを実時間で直接に確認す
ることができ、高い信頼性を保証できる。
(Effects of the Invention) As described above, in the present invention, each microprocessor 31.
32 are each provided with external terminals 31a and 32a for directly outputting the data being processed without going through an external interface, and an instruction address or its degenerate signal, flag, branch instruction signal, etc. is provided via the external terminals 31a and 32a. By outputting any of the following, an external device can easily check the correctness of the processing, and if an error is found in the processing, each microprocessor 31, 32 receives the error detection signal. By making it possible to stop the processing in a timely manner and interrupt the transmission of input/output systems such as control signals, addresses, and data,
For each microprocessor 31.32,
It is possible to directly check in real time that processing is being performed accurately, ensuring high reliability.

また、必要最小限のデータを利用して各マイクロプロセ
ッサ31.32における処理の確認ができるため、接続
端子数を最小にすることができ、情報処理装置の設計お
よび製造における諸経費が削減できる。
Further, since the processing in each microprocessor 31, 32 can be confirmed using the minimum necessary data, the number of connection terminals can be minimized, and overhead costs in designing and manufacturing the information processing device can be reduced.

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

第1図は、本発明における第1実施例の構成説明図、 第2図は、第1実施例における別態様を示す構成説明図
、 第3図は、第2実施例の構成説明図、 第4図は、第3実施例の構成説明図、 第5図は、従来の情報処理装置における実行確認方式を
示す構成図、 第6図は、従来におけるマイクロプロセッサの構成説明
図。 31.32・・・マイクロプロセッサ(CPU)31a
、32a・・・外部端子 42・・・命令キャッシュ 43・・・オペランドキャッシュ 44・・・命令デコーダ 45・・・命令アドレスレジスタ 46・・・実行制御部 47・・・汎用レジスタ 48・・・演算器 49a、51・・・内部バス 49b、52・・・信号縮退手段(排他的OR回路)4
9c、53,54・・・信号線 葛 1実施例にh1する%71tll覧を示す刹1厄a
l1月図第2図 股永の4811Fi”q埋装11斗すろズ竹繭記林竹引
0口IB5  図 システム!+:ス
FIG. 1 is a configuration explanatory diagram of a first embodiment of the present invention; FIG. 2 is a configuration explanatory diagram showing another aspect of the first embodiment; FIG. 3 is a configuration explanatory diagram of a second embodiment; FIG. 4 is an explanatory diagram of the configuration of the third embodiment; FIG. 5 is a configuration diagram showing an execution confirmation method in a conventional information processing device; FIG. 6 is an explanatory diagram of the configuration of a conventional microprocessor. 31.32...Microprocessor (CPU) 31a
, 32a... External terminal 42... Instruction cache 43... Operand cache 44... Instruction decoder 45... Instruction address register 46... Execution control unit 47... General purpose register 48... Operation circuits 49a, 51...internal buses 49b, 52...signal degeneration means (exclusive OR circuit) 4
9c, 53, 54...Signal line katsu 1 example shows the list of %71tll for h1
lJanuary map Figure 2 Matagawa's 4811Fi"q Buried 11 dou Slows Takecocoon Kirin Takehiki 0 mouth IB5 Figure system!+:S

Claims (1)

【特許請求の範囲】 (1)命令アドレスレジスタ(45)と、命令デコーダ
(44)と、命令実行を制御する実行制御部(46)と
、演算器(48)と、演算結果を格納する汎用レジスタ
(47)と、命令キャッシュ(42)とを有するマイク
ロプロセッサ(31)において、 実行確認用信号を出力する外部端子(31a)を設け、 該外部端子(31a)から命令アドレスレジスタ(45
)の内容を実行確認用信号として出力させることを特徴
とする実行確認方式。 (2)信号縮退手段(49b、または52)を設け、該
信号縮退手段(49b、または52)により命令アドレ
スレジスタ(45)の内容の全部または一部を縮退させ
た信号を実行確認用信号として前記外部端子(31a)
を介して出力させることを特徴とする請求項1記載の実
行確認方式。 (3)命令アドレスレジスタ(45)と、命令デコーダ
(44)と、命令実行を制御する実行制御部(46)と
、演算器(48)と、演算結果を格納する汎用レジスタ
(47)と、命令キャッシュ(42)と、オペランドキ
ャッシュ(43)を有するマイクロプロセッサ(31)
において、実行確認用信号を出力する外部端子(31a
)を設け、 該外部端子(31a)を介して前記演算器 (48)からプロセッサ外部に演算結果の1つであるフ
ラッグを実行確認用信号として出力させることを特徴と
する実行確認方式。 (4)命令アドレスレジスタ(45)と、命令デコーダ
(44)と、命令実行を制御する実行制御部(46)と
、演算器(48)と、演算結果を格納する汎用レジスタ
(47)と、命令キャッシュ(42)と、オペランドキ
ャッシュ(43)を有するマイクロプロセッサ(31)
において、実行確認用信号を出力する外部端子(31a
)を設け、 該外部端子(31a)を介して前記実行制御部(46)
からプロセッサ外部に、分岐命令の実行によってプログ
ラムシーケンスが変わったか否かを示す分岐指示信号を
実行確認用信号として出力させることを特徴とする実行
確認方式。
[Claims] (1) An instruction address register (45), an instruction decoder (44), an execution control unit (46) that controls instruction execution, an arithmetic unit (48), and a general-purpose unit that stores operation results. A microprocessor (31) having a register (47) and an instruction cache (42) is provided with an external terminal (31a) that outputs an execution confirmation signal, and an instruction address register (45) is provided from the external terminal (31a).
) is output as an execution confirmation signal. (2) A signal degeneration means (49b or 52) is provided, and a signal obtained by degenerating all or part of the contents of the instruction address register (45) by the signal degeneration means (49b or 52) is used as an execution confirmation signal. The external terminal (31a)
2. The execution confirmation method according to claim 1, wherein the execution confirmation method is outputted via. (3) an instruction address register (45), an instruction decoder (44), an execution control unit (46) that controls instruction execution, an arithmetic unit (48), and a general-purpose register (47) that stores operation results; Microprocessor (31) having an instruction cache (42) and an operand cache (43)
, an external terminal (31a) outputs an execution confirmation signal.
), and outputs a flag, which is one of the calculation results, from the arithmetic unit (48) to the outside of the processor as an execution confirmation signal via the external terminal (31a). (4) an instruction address register (45), an instruction decoder (44), an execution control unit (46) that controls instruction execution, an arithmetic unit (48), and a general-purpose register (47) that stores operation results; Microprocessor (31) having an instruction cache (42) and an operand cache (43)
, an external terminal (31a) outputs an execution confirmation signal.
), and the execution control unit (46) is connected to the execution control unit (46) via the external terminal (31a).
An execution confirmation method characterized in that a branch instruction signal indicating whether or not a program sequence has changed due to execution of a branch instruction is outputted from the processor to the outside as an execution confirmation signal.
JP2058057A 1990-03-12 1990-03-12 Execution confirmation device Expired - Lifetime JP2591684B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2058057A JP2591684B2 (en) 1990-03-12 1990-03-12 Execution confirmation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2058057A JP2591684B2 (en) 1990-03-12 1990-03-12 Execution confirmation device

Publications (2)

Publication Number Publication Date
JPH03260843A true JPH03260843A (en) 1991-11-20
JP2591684B2 JP2591684B2 (en) 1997-03-19

Family

ID=13073284

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2058057A Expired - Lifetime JP2591684B2 (en) 1990-03-12 1990-03-12 Execution confirmation device

Country Status (1)

Country Link
JP (1) JP2591684B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728669A (en) * 1993-07-07 1995-01-31 Nec Corp Microprocessor
JPH0736736A (en) * 1993-07-20 1995-02-07 Nec Corp Microprocessor
JP2012079208A (en) * 2010-10-05 2012-04-19 Hitachi Ltd Input bypass type fail-safe device and program for fail-safe

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62197831A (en) * 1986-02-26 1987-09-01 Hitachi Ltd Data processor
JPS6358539A (en) * 1986-08-29 1988-03-14 Nec Corp Microprocessor
JPS63313244A (en) * 1987-06-17 1988-12-21 Hitachi Ltd Data processor
JPH0261731A (en) * 1988-08-29 1990-03-01 Matsushita Electric Ind Co Ltd Microprocessor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62197831A (en) * 1986-02-26 1987-09-01 Hitachi Ltd Data processor
JPS6358539A (en) * 1986-08-29 1988-03-14 Nec Corp Microprocessor
JPS63313244A (en) * 1987-06-17 1988-12-21 Hitachi Ltd Data processor
JPH0261731A (en) * 1988-08-29 1990-03-01 Matsushita Electric Ind Co Ltd Microprocessor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728669A (en) * 1993-07-07 1995-01-31 Nec Corp Microprocessor
JPH0736736A (en) * 1993-07-20 1995-02-07 Nec Corp Microprocessor
JP2012079208A (en) * 2010-10-05 2012-04-19 Hitachi Ltd Input bypass type fail-safe device and program for fail-safe

Also Published As

Publication number Publication date
JP2591684B2 (en) 1997-03-19

Similar Documents

Publication Publication Date Title
US7178062B1 (en) Methods and apparatus for executing code while avoiding interference
JPH01161448A (en) Data processor equipped with development support feature
EP0840223B1 (en) Microcomputer capable of accessing an external memory
JP2583525B2 (en) Data processing device
JPH03260843A (en) Execution confirming system
US5551050A (en) System and method using synchronized processors to perform real time internal monitoring of a data processing device
CN101169767B (en) Access control device and access control method
JP2850377B2 (en) Microcomputer
JP2002229811A (en) Control method of logical partition system
EP0382234B1 (en) Microprocessor having improved functional redundancy monitor mode arrangement
RU2666458C1 (en) Microprocessor
JP2558902B2 (en) Semiconductor integrated circuit device
JP2720580B2 (en) Fault-tolerant computer
JPH03175538A (en) Duplex processor
JPS58166454A (en) Data processor
JP2837522B2 (en) I / O instruction control method
JP2539064B2 (en) Microprocessor
JPH03168860A (en) Buffer storage control device for parallel processor
JPH03186956A (en) Cpu bus data diagnosis device
JPS62269237A (en) Data processor
JPH03209523A (en) Detection system for error of instruction data
JPS63629A (en) Data processing system
JPH02277142A (en) Duplex computer system
JPS6057609B2 (en) Power outage processing control method for electronic equipment
Mateosian et al. Distributed processing with the Z8000 family