JPH06168151A - Duplex computer system - Google Patents

Duplex computer system

Info

Publication number
JPH06168151A
JPH06168151A JP4319604A JP31960492A JPH06168151A JP H06168151 A JPH06168151 A JP H06168151A JP 4319604 A JP4319604 A JP 4319604A JP 31960492 A JP31960492 A JP 31960492A JP H06168151 A JPH06168151 A JP H06168151A
Authority
JP
Japan
Prior art keywords
cpu
slave
master
output
reset signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4319604A
Other languages
Japanese (ja)
Inventor
Tetsuro Ono
哲朗 大野
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP4319604A priority Critical patent/JPH06168151A/en
Publication of JPH06168151A publication Critical patent/JPH06168151A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute error processing more surely by a CPU when noncoincidence occurs in the output of a duplexed CPU. CONSTITUTION:When a fault occurs in the operation of either a master CPU 21 or a slave CPU 22, the noncoincidence of CPU output is detected by a comparator 23. A reset signal is supplied to the master CPU 21 and the slave CPU 22. respectively replying to the noncoincidence of the CPU output, and the master CPU 21 and the slave CPU 22 are initialized in a specific state by the reset signal. As a result, a comparatively insignificant fault due to a power source noise, etc., can be easily restored by initialization. Also, the master CPU 21 and the slave CPU 22 can be operated again from the same state by the reset signal even when the run away of the CPU on one side occurs.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は2重化計算機システム
に関し、特に同一処理を実行するマスタCPUおよびス
レーブCPUを備えた2重化計算機システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a duplicated computer system, and more particularly to a duplicated computer system having a master CPU and a slave CPU that execute the same processing.

【0002】[0002]

【従来の技術】一般に、高信頼性が要求される計算機シ
ステムでは、CPUの2重化構成が採用されている。こ
のような2重化システムの従来の典型的なシステム構成
を図4に示す。
2. Description of the Related Art Generally, a computer system which requires high reliability employs a dual CPU configuration. A conventional typical system configuration of such a duplex system is shown in FIG.

【0003】図4に示されているように、このシステム
には、マスタCPU11とスレーブCPU12の2台の
CPUが設けられている。これらマスタCPU11およ
びスレーブCPU12は、システムバス14からの入力
dを受けて、全く同じ動作をしている。そして、マスタ
CPU11の出力eのみがシステムバス14に出力され
るように構成されている。
As shown in FIG. 4, this system is provided with two CPUs, a master CPU 11 and a slave CPU 12. The master CPU 11 and the slave CPU 12 receive the input d from the system bus 14 and perform exactly the same operation. Then, only the output e of the master CPU 11 is output to the system bus 14.

【0004】マスタCPU11の出力とスレーブCPU
12の出力は、比較回路13によって動作クロック単位
で常に比較され、一致しなければ、比較エラー信号bが
オンとなる。この場合、この比較エラー信号bは、マス
タCPU11およびスレーブCPU12それぞれのマス
ク不能割り込み入力に供給される。この結果、マスタC
PU11およびスレーブCPU12は同じ処理を始め
る。すると、比較エラーが解除され、システムは適当な
エラー処理を行なうことになる。
Output of master CPU 11 and slave CPU
The outputs of 12 are always compared in operation clock units by the comparison circuit 13, and if they do not match, the comparison error signal b is turned on. In this case, the comparison error signal b is supplied to the non-maskable interrupt input of each of the master CPU 11 and the slave CPU 12. As a result, master C
The PU 11 and the slave CPU 12 start the same processing. Then, the comparison error is released and the system takes appropriate error handling.

【0005】しかしながら、CPU出力の不一致が発生
した場合には、マスタCPU11とスレーブCPU12
のどちらかが異常動作しているわけであるので、マスク
不能割り込みが正常に受け付けられるかどうかの保証が
ない。このため、例えばCPUが暴走している場合等に
おいては、比較エラー信号がオンになり続け、エラー処
理ができなくなってしまう。
However, when the CPU outputs do not match, the master CPU 11 and the slave CPU 12
Since either of them is operating abnormally, there is no guarantee that the non-maskable interrupt will be accepted normally. For this reason, for example, when the CPU is out of control, the comparison error signal continues to be turned on, and error processing cannot be performed.

【0006】また、このようなCPU出力の不一致が発
生する原因が外部ノイズ等の外的要因である場合を想定
すると、CPUのみで無く、他のロジックにも悪影響を
及ぼしている可能性があり、ソフトウェア的なエラー処
理のみでは、処理の復帰ができない可能性がある。
Assuming that the cause of such a CPU output mismatch is an external factor such as external noise, it may adversely affect not only the CPU but also other logic. There is a possibility that the processing cannot be recovered only by software error processing.

【0007】[0007]

【発明が解決しようとする課題】従来では、CPU出力
の不一致を割り込み信号によって通知していたため、発
生した障害によってはCPUによって割り込み信号が受
け付けられず、エラー処理が正常に実行できない欠点が
あった。
Conventionally, since the CPU output is notified of the inconsistency by the interrupt signal, there is a drawback that the interrupt signal is not accepted by the CPU depending on the occurred fault and the error processing cannot be normally executed. .

【0008】この発明はこのような点に鑑みてなされた
ものであり、CPU出力の不一致が発生した際に、より
確実にCPUにエラー処理を実行させることができる2
重化計算機システムを提供することを目的とする。
The present invention has been made in view of the above point, and when the CPU outputs do not match, the CPU can more reliably execute the error processing.
The purpose is to provide a redundant computer system.

【0009】[0009]

【課題を解決するための手段および作用】この発明の2
重化計算機システムは、互いに同一処理を実行するマス
タCPUおよびスレーブCPUと、これらマスタCPU
およびスレーブCPUの出力を比較し、CPU出力の不
一致を検出する比較手段と、この比較手段によって検出
される前記CPU出力の不一致に応答して、前記マスタ
CPUおよびスレーブCPUにリセット信号を供給する
リセット手段とを具備し、前記CPU出力の不一致が発
生した時に前記マスタCPUおよびスレーブCPUが前
記リセット信号に応答して同一の状態から再動作するよ
うに構成されていることを特徴とする。
Means and Actions for Solving the Problems
The redundant computer system includes a master CPU and a slave CPU that execute the same processing, and these master CPUs.
And a comparison means for comparing outputs of the slave CPUs to detect a mismatch of the CPU outputs, and a reset for supplying a reset signal to the master CPU and the slave CPU in response to the mismatch of the CPU outputs detected by the comparison means. The master CPU and the slave CPU are configured to restart from the same state in response to the reset signal when a mismatch of the CPU outputs occurs.

【0010】この2重化計算機システムにおいては、マ
スタCPUおよびスレーブCPUのいずれかの動作に障
害が発生すると、比較手段によってCPU出力の不一致
が検出される。このCPU出力の不一致に応答してマス
タCPUおよびスレーブCPUにはそれぞれリセット信
号が供給され、マスタCPUおよびスレーブCPUはそ
のリセット信号によって特定の決められた状態に初期設
定される。このため、一方のCPUが暴走しているよう
な場合でも、リセット信号によってマスタCPUおよび
スレーブCPUを同一の状態から再動作させることがで
きる。また、CPU出力の不一致が検出された場合には
エラーフラグがセットされる。したがって、リセット信
号に応答してそのエラーフラグを参照することにより、
リセット信号の発生要因が、CPU出力の不一致による
ものか通常のリセット信号によるものかを認識でき、よ
り確実にCPUにエラー処理を実行させることができ
る。
In this dual computer system, when a failure occurs in the operation of either the master CPU or the slave CPU, the comparing means detects the mismatch of the CPU outputs. In response to the mismatch of the CPU outputs, a reset signal is supplied to each of the master CPU and the slave CPU, and the master CPU and the slave CPU are initialized to a specific determined state by the reset signal. Therefore, even when one of the CPUs is out of control, the master CPU and the slave CPUs can be restarted from the same state by the reset signal. Further, when a mismatch of CPU outputs is detected, an error flag is set. Therefore, by referring to that error flag in response to the reset signal,
It is possible to recognize whether the cause of the reset signal is due to the mismatch of the CPU outputs or the normal reset signal, and it is possible to cause the CPU to execute the error processing more reliably.

【0011】[0011]

【実施例】以下、図面を参照してこの発明の実施例を説
明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0012】図1には、この発明の一実施例に係わる2
重化計算機システムの構成が示されている。この2重化
計算機システムは高信頼性の要求されるホストコンピュ
ータや他の各種電子装置に適用されるものであり、この
2重化計算機システムには、マスタCPU21、スレー
ブCPU22、比較回路23、ORゲート24,25、
比較エラーフラグ26、周辺LSI27、システムバス
28が設けられている。
FIG. 1 shows a second embodiment of the present invention.
The configuration of the redundant computer system is shown. This dual computer system is applied to a host computer and various other electronic devices that require high reliability. The dual computer system includes a master CPU 21, a slave CPU 22, a comparison circuit 23, and an OR. Gates 24, 25,
A comparison error flag 26, a peripheral LSI 27, and a system bus 28 are provided.

【0013】マスタCPU21およびスレーブCPU2
2は、それぞれマイクロプロセッサによって実現される
ものであり、システムバス28からの入力eに応じて全
く同一の処理を実行する。マスタCPU21およびスレ
ーブCPU22の動作は、同一クロックCLKに同期し
て実行される。マスタCPU21からの出力fは、シス
テムの動作制御、データ転送、メモリアクセス等のため
にシステムバス28に供給されると共に、比較回路23
に供給される。
Master CPU 21 and slave CPU 2
2 are each realized by a microprocessor, and execute exactly the same processing according to an input e from the system bus 28. The operations of the master CPU 21 and the slave CPU 22 are executed in synchronization with the same clock CLK. The output f from the master CPU 21 is supplied to the system bus 28 for system operation control, data transfer, memory access, and the like, and also the comparison circuit 23.
Is supplied to.

【0014】一方、スレーブCPU22の出力は、シス
テムバス28には供給されず、比較回路23にのみ供給
される。また、マスタCPU21およびスレーブCPU
22は、それぞれ対応するリセット信号b,cを受信し
た際、予め決められた所定の状態に初期設定される。
On the other hand, the output of the slave CPU 22 is not supplied to the system bus 28 but only to the comparison circuit 23. In addition, the master CPU 21 and the slave CPU
22 is initialized to a predetermined state when it receives the corresponding reset signals b and c.

【0015】比較回路23は、マスタCPU21とスレ
ーブCPU22の対応する出力をクロックCLKのタイ
ミングで逐次比較し、不一致を検出した際に“1”レベ
ルの比較エラー信号aを発生する。この比較エラー信号
aは、ORゲート24,25を介してリセット信号b,
cとしてスレーブCPU22,マスタCPU21にそれ
ぞれ供給される。また、比較エラー信号aは、比較エラ
ーフラグレジスタ26に対して比較エラーフラグのセッ
ト信号として供給されると共に、周辺LSI27にその
レジスタ類をリセットするための信号として供給され
る。
The comparison circuit 23 successively compares the outputs corresponding to the master CPU 21 and the slave CPU 22 at the timing of the clock CLK, and generates a "1" level comparison error signal a when a mismatch is detected. This comparison error signal a passes through the OR gates 24 and 25 and the reset signal b,
It is supplied to the slave CPU 22 and the master CPU 21 as c. The comparison error signal a is supplied to the comparison error flag register 26 as a comparison error flag set signal, and is also supplied to the peripheral LSI 27 as a signal for resetting the registers.

【0016】ORゲート24にはシステムバス28から
のリセット信号dと比較回路23からの比較エラー信号
aが入力され、その出力はCPUリセット信号bとして
スレーブCPU22に供給される。リセット信号dは、
例えばシステムの電源投入時や所定のリセットスイッチ
が投入された際に発生されるものである。
A reset signal d from the system bus 28 and a comparison error signal a from the comparison circuit 23 are input to the OR gate 24, and the output thereof is supplied to the slave CPU 22 as a CPU reset signal b. The reset signal d is
For example, it is generated when the power of the system is turned on or when a predetermined reset switch is turned on.

【0017】ORゲート25にはシステムバス28から
のリセット信号dと比較回路23からの比較エラー信号
aが入力され、その出力はCPUリセット信号bとして
マスタCPU21に供給される。
A reset signal d from the system bus 28 and a comparison error signal a from the comparison circuit 23 are input to the OR gate 25, and the output thereof is supplied to the master CPU 21 as a CPU reset signal b.

【0018】比較エラーフラグレジスタ26は比較エラ
ーフラグを保持するためのものであり、比較エラー信号
aに応答して比較エラーフラグが“1”にセットされ、
またシステムバス28からのリセット信号dに応答して
比較エラーフラグが“0”にリセットされる。
The comparison error flag register 26 is for holding the comparison error flag, and the comparison error flag is set to "1" in response to the comparison error signal a.
Further, the comparison error flag is reset to "0" in response to the reset signal d from the system bus 28.

【0019】周辺LSI27は、このシステムに設けら
れたI/Oコントローラ等の周辺回路を総称して示すも
のであり、システムバス28からのリセット信号dまた
は比較回路23からの比較エラー信号aに応じて初期設
定される。周辺LSI27とマスタCPU21との間の
コマンド転送は、入出力信号線hおよびシステムバス2
8を介して実行される。
The peripheral LSI 27 is a general term for peripheral circuits such as an I / O controller provided in this system, and corresponds to a reset signal d from the system bus 28 or a comparison error signal a from the comparison circuit 23. Are initialized. Command transfer between the peripheral LSI 27 and the master CPU 21 is performed by the input / output signal line h and the system bus 2.
8 is executed.

【0020】この2重化計算機システムは、基本的に
は、比較エラーの通知を従来のような割り込み信号では
なく、ハードウェアリセット信号によって行なうように
構成されている。ハードウェアリセット信号ならば、た
とえ、CPUが暴走しているような状況においても、認
知の状態に復帰させることができる。以下、全体の動作
を説明する。
This duplicated computer system is basically configured to notify the comparison error by a hardware reset signal instead of the interrupt signal as in the prior art. With the hardware reset signal, the cognitive state can be restored even in a situation where the CPU is out of control. The overall operation will be described below.

【0021】電源投入後、リセット信号dにより、マス
タCPU21、スレーブCPU22、比較エラーフラグ
レジスタ26、および周辺LSI27がリセットされ
る。従来回路と同様に、マスタCPU21とスレーブC
PU22は、システムバス28からの入力eを受けて、
動作クロックCLK単位で同じ動作をしている。そし
て、マスタCPU21の出力fのみがシステムバス28
に出力されている。
After the power is turned on, the master CPU 21, the slave CPU 22, the comparison error flag register 26, and the peripheral LSI 27 are reset by the reset signal d. Similar to the conventional circuit, the master CPU 21 and the slave C
The PU 22 receives the input e from the system bus 28,
The same operation is performed for each operation clock CLK. Only the output f of the master CPU 21 is the system bus 28.
Has been output to.

【0022】マスタCPU21の出力とスレーブCPU
22の出力は比較回路23により動作クロックCLK単
位で常に比較され、一致しなければ、比較エラー信号a
がオンとなる。この比較エラー信号aは、従来では各C
PUのマスク不能割り込み入力に接続されていたのであ
るが、この実施例では、ORゲート24,25により各
CPUにリセットパルス信号として供給されているの
で、CPU動作が異常であっても確実に、エラー処理に
状態を移すことができる。
Output of master CPU 21 and slave CPU
The output of 22 is constantly compared by the operation circuit CLK by the comparison circuit 23. If they do not match, the comparison error signal a
Turns on. This comparison error signal a is conventionally C
Although it was connected to the non-maskable interrupt input of the PU, in this embodiment, since it is supplied as a reset pulse signal to each CPU by the OR gates 24 and 25, even if the CPU operation is abnormal, State can be moved to error handling.

【0023】すなわち、マスタCPU21およびスレー
ブCPU22はリセット信号を受けとるとそれぞれ所定
の状態に初期設定され、その同一状態から再スタートさ
れるので、比較的軽度な障害発生の場合にはマスタCP
U21およびスレーブCPU22の動作が同期し、以
降、正常に動作が継続される。
That is, when the master CPU 21 and the slave CPU 22 receive the reset signal, the master CPU 21 and the slave CPU 22 are initialized to predetermined states and restart from the same state.
The operations of the U21 and the slave CPU 22 are synchronized, and thereafter, the operations are normally continued.

【0024】また、比較エラー信号aは、CPUだけで
なく、その他の回路7にも入力され、適当なレジスタ類
をリセットし、システムを認知の状態に復帰させること
ができる。また、同時に、比較エラー信号aは、比較エ
ラーフラグをセットする。マスタCPU21は、リセッ
ト後に、この比較エラーフラグをチェックすることによ
り、直前のリセットが、電源投入等の通常のリセット
か、比較エラーによるリセットであるかを判断し、適格
なエラー処理を行なうことができる。
Further, the comparison error signal a is input not only to the CPU but also to the other circuits 7, and it is possible to reset appropriate registers and return the system to the cognitive state. At the same time, the comparison error signal a sets a comparison error flag. After resetting, the master CPU 21 determines whether the immediately preceding reset is a normal reset such as power-on or the like or a reset due to a comparison error by checking this comparison error flag, and can perform appropriate error processing. it can.

【0025】図2には、マスタCPU21とスレーブC
PU22の接続関係の一例が示されている。ここでは、
スレーブCPU22に比較回路23が内蔵されている場
合が示されている。
FIG. 2 shows the master CPU 21 and the slave C.
An example of the connection relationship of the PU 22 is shown. here,
The case where the comparison circuit 23 is built in the slave CPU 22 is shown.

【0026】マスタCPU21のコアユニット211と
スレーブCPU22のコアユニット221は同一構成で
あり、コアユニット211からのアドレス出力ADD
R、データ出力DATAOUT、制御信号出力CONT
OUTはシステムバス28に供給されると共に、スレー
ブCPU22内蔵の比較回路23に供給される。スレー
ブCPU22のコアユニット221からのアドレス出力
ADDR、データ出力DATAOUT、制御信号出力C
ONTOUTは、システムバス28には供給されず、比
較回路23にのみ供給される。システムバス28からの
データ入力DATAINおよび制御信号入力CONTI
Nは、コアユニット211および221に共通に供給さ
れる。
The core unit 211 of the master CPU 21 and the core unit 221 of the slave CPU 22 have the same structure, and the address output ADD from the core unit 211 is used.
R, data output DATAOUT, control signal output CONT
OUT is supplied to the system bus 28 and the comparison circuit 23 built in the slave CPU 22. Address output ADDR from core unit 221 of slave CPU 22, data output DATAOUT, control signal output C
ONTOUT is not supplied to the system bus 28, but is supplied only to the comparison circuit 23. Data input DATAIN and control signal input CONTI from the system bus 28
N is commonly supplied to the core units 211 and 221.

【0027】比較回路23は、コアユニット211およ
び221からの対応する出力同志、つまりコアユニット
211からのアドレス出力ADDRとコアユニット22
1からのアドレス出力ADDR、コアユニット211か
らのデータ出力DATAOUTとコアユニット221か
らのデータ出力DATAOUT、およびコアユニット2
11からの制御信号出力CONTOUTとコアユニット
221からの制御信号出力CONTOUTとをそれぞれ
比較し、いずれかに不一致が発生したときに比較エラー
信号aを出力する。
The comparison circuit 23 has the corresponding outputs from the core units 211 and 221, that is, the address output ADDR from the core unit 211 and the core unit 22.
1, address output ADDR, data output DATAOUT from core unit 211, data output DATAOUT from core unit 221, and core unit 2
The control signal output CONTOUT from 11 and the control signal output CONTOUT from the core unit 221 are compared with each other, and when a mismatch occurs in any of them, a comparison error signal a is output.

【0028】ここでは、入出力関係を明瞭にするために
データ出力DATAOUTおよびデータ入力DATAI
Nを別けて説明したが、実際にはこれらは共通の双方向
バスによって実現されるものである。また、制御信号出
力CONTOUTには各種ステータス信号が含まれるこ
とは持ち論である。次に、図3のフローチャートを参照
して、リセット信号受信時のCPUの動作を説明する。
Here, in order to clarify the input / output relationship, the data output DATAOUT and the data input DATAI.
Although described separately for N, these are actually realized by a common bidirectional bus. Further, it is a matter of course that the control signal output CONTOUT includes various status signals. Next, the operation of the CPU when receiving the reset signal will be described with reference to the flowchart of FIG.

【0029】マスタCPU21およびスレーブCPU2
2にはリセット信号が共通に供給される。この場合、マ
スタCPU21およびスレーブCPU22はそのリセッ
トに応じて次のような動作を実行する。
Master CPU 21 and slave CPU 2
A reset signal is commonly supplied to 2. In this case, the master CPU 21 and the slave CPU 22 execute the following operations in response to the reset.

【0030】すなわち、マスタCPU21およびスレー
ブCPU22はそれぞれ比較エラーフラグをチェック
し、比較エラーフラグが“1”にセットされているか否
かを判断する(ステップS21、S22)。
That is, the master CPU 21 and the slave CPU 22 respectively check the comparison error flag and determine whether or not the comparison error flag is set to "1" (steps S21 and S22).

【0031】この場合、スレーブCPU22の出力は実
際にはシステムバス28に出力されないので、比較エラ
ーフラグのリードはマスタCPU21によって実行され
ることになる。
In this case, since the output of the slave CPU 22 is not actually output to the system bus 28, the reading of the comparison error flag is executed by the master CPU 21.

【0032】比較エラーフラグが“1”にセットされて
無い場合には、通常のリセットであるので、マスタCP
U21およびスレーブCPU22はそれぞれシステムの
立ち上げ処理を行なう(ステップS23)。
If the comparison error flag is not set to "1", the master CP is a normal reset and the master CP
The U21 and the slave CPU 22 each perform system startup processing (step S23).

【0033】一方、比較エラーフラグが“1”にセット
されている場合には、比較エラー信号aによるリセット
であるので、マスタCPU21およびスレーブCPU2
2はそれぞれ所定のエラー処理を実行する(ステップS
24)。
On the other hand, when the comparison error flag is set to "1", the reset is caused by the comparison error signal a, so the master CPU 21 and the slave CPU 2
2 executes predetermined error processing (step S
24).

【0034】エラー処理は障害復旧やシステム停止等の
処理を行なうためのものであり、マスタCPU21およ
びスレーブCPU22はそれぞれ、まず、再実行可能か
否かを調べ(ステップS241)、その結果に応じて復
旧処理(ステップS242)またはシステム管理者に対
するエラー通知を含むシステム停止処理(ステップS2
43)を行なう。復旧処理についてはチェックポイトリ
スタート処理、CPU縮退処理等の良く知られた種々の
形態を利用することができる。
The error processing is for performing processing such as failure recovery and system stop. The master CPU 21 and the slave CPU 22 each first check whether re-execution is possible (step S241), and depending on the result. Recovery processing (step S242) or system stop processing including error notification to the system administrator (step S2)
Step 43) is performed. For the restoration process, various well-known forms such as a checkpoint start process and a CPU degeneration process can be used.

【0035】以上のように、この実施例の2重化計算機
システムにおいては、マスタCPU21およびスレーブ
CPU22のいずれかの動作に障害が発生すると、比較
回路23によってCPU出力の不一致が検出される。こ
のCPU出力の不一致に応答してマスタCPU21およ
びスレーブCPU22にはそれぞれリセット信号が供給
され、マスタCPU21およびスレーブCPU22はそ
のリセット信号によって特定の決められた状態に初期設
定される。この結果、電源ノイズ等による比較的軽度な
障害については初期設定によって容易に復旧することが
できる。
As described above, in the duplicated computer system of this embodiment, when a failure occurs in the operation of either the master CPU 21 or the slave CPU 22, the comparison circuit 23 detects the mismatch of the CPU outputs. In response to the mismatch of the CPU outputs, reset signals are supplied to the master CPU 21 and the slave CPU 22, respectively, and the master CPU 21 and the slave CPU 22 are initialized to a specific determined state by the reset signal. As a result, a relatively mild failure due to power supply noise or the like can be easily recovered by initial setting.

【0036】また、一方のCPUが暴走しているような
場合でも、リセット信号によってマスタCPU21およ
びスレーブCPU22を同一の状態から再動作させるこ
とができる。さらに、CPU出力の不一致が検出された
場合にはエラーフラグがセットされる。したがって、リ
セット信号に応答してそのエラーフラグを参照すること
により、リセット信号の発生要因が、CPU出力の不一
致によるものか通常のリセット信号によるものかを認識
でき、より確実にCPUにエラー処理を実行させること
ができる。
Further, even if one of the CPUs is out of control, the master CPU 21 and the slave CPU 22 can be restarted from the same state by the reset signal. Further, when a mismatch of CPU outputs is detected, an error flag is set. Therefore, by referring to the error flag in response to the reset signal, it is possible to recognize whether the cause of the reset signal is due to the mismatch of the CPU outputs or the normal reset signal, and the error processing can be performed to the CPU more reliably. Can be run.

【0037】尚、この実施例では、比較エラーフラグレ
ジスタ26を外部に設けたが、リセットによって値の変
化しないCPU内部レジスタがあれば、それを利用する
ことも可能である。また、ここでは、CPU比較エラー
が発生した場合、直ぐにマスタCPU21およびスレー
ブCPU22をリセットしたが、通常は、マスク不能割
り込みをかけるようにし、マスタCPU21およびスレ
ーブCPU22の動作がどうしても同期しないような場
合に、初めて、リセットをかけるという構成にすること
もできる。さらに、エラー処理については専用のサービ
スプロセッサによって実現することも可能である。
Although the comparison error flag register 26 is provided outside in this embodiment, if there is a CPU internal register whose value does not change due to resetting, it is also possible to use it. Further, here, when the CPU comparison error occurs, the master CPU 21 and the slave CPU 22 are immediately reset, but normally, the non-maskable interrupt is applied, and the operations of the master CPU 21 and the slave CPU 22 are not synchronized with each other. , It is also possible to configure to reset for the first time. Further, error processing can be realized by a dedicated service processor.

【0038】また、さらに、比較回路23はパルス信号
を出力するではなく、単にCPU出力が不一致の時に
“1”、一致したときに“0”となる信号を比較エラー
信号aとして出力することも可能である。この場合、マ
スタCPU21およびスレーブCPU22は、比較エラ
ー信号aが“1”の時に全ての動作を停止する(リセッ
ト状態)。このとき、CPU出力が一致するので、比較
エラー信号aが“0”になり、マスタCPU21および
スレーブCPU22はリセット状態が解除されて再スタ
ートする。また、マスタCPU21およびスレーブCP
U22を同一チップ上に集積形成し、1つのマイクロプ
ロセッサとして実現することも可能である。
Further, the comparison circuit 23 may not output a pulse signal, but may output a signal which becomes “1” when the CPU outputs do not match and outputs “0” when they match as the comparison error signal a. It is possible. In this case, the master CPU 21 and the slave CPU 22 stop all operations when the comparison error signal a is "1" (reset state). At this time, since the CPU outputs match, the comparison error signal a becomes "0", and the master CPU 21 and the slave CPU 22 are released from the reset state and restarted. In addition, the master CPU 21 and the slave CP
It is also possible to integrate U22 on the same chip and realize it as one microprocessor.

【0039】[0039]

【発明の効果】以上のように、この発明によれば、CP
U出力の不一致が発生した際により確実にCPUにエラ
ー処理を実行させることが可能となり、十分に信頼性の
高い2重化計算機システムを実現できる。
As described above, according to the present invention, the CP
When a U output mismatch occurs, the CPU can be more surely caused to execute the error processing, and the duplication computer system having sufficiently high reliability can be realized.

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

【図1】この発明の一実施例に係る2重化計算機システ
ムの構成を示すブロック図。
FIG. 1 is a block diagram showing the configuration of a dual computer system according to an embodiment of the present invention.

【図2】図1の2重化計算機システムにおけるマスタC
PUとスレーブCPUの具体的な接続関係を示す図。
2 is a master C in the dual computer system of FIG.
The figure which shows the concrete connection relation of PU and slave CPU.

【図3】図1の2重化計算機システムにおけるリセット
信号受信時のCPU動作を説明するフローチャート。
3 is a flowchart illustrating a CPU operation when a reset signal is received in the duplicated computer system of FIG.

【図4】従来の2重化計算機システムの構成を示すブロ
ック図。
FIG. 4 is a block diagram showing the configuration of a conventional dual computer system.

【符号の説明】[Explanation of symbols]

21…マスタCPU,22…スレーブCPU、23…比
較回路、26…比較エラーフラグレジスタ、27…周辺
LSI。
21 ... Master CPU, 22 ... Slave CPU, 23 ... Comparison circuit, 26 ... Comparison error flag register, 27 ... Peripheral LSI.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 互いに同一処理を実行するマスタCPU
およびスレーブCPUと、 これらマスタCPUおよびスレーブCPUの出力を比較
し、CPU出力の不一致を検出する比較手段と、 この比較手段によって検出される前記CPU出力の不一
致に応答して、前記マスタCPUおよびスレーブCPU
にリセット信号を供給するリセット手段とを具備し、 前記CPU出力の不一致が発生した時に前記マスタCP
UおよびスレーブCPUが前記リセット信号に応答して
同一の状態から再動作するように構成されていることを
特徴とする2重化計算機システム。
1. A master CPU that executes the same processing as each other
And a slave CPU, and comparing means for comparing the outputs of the master CPU and the slave CPU to detect a mismatch of the CPU outputs, and the master CPU and the slave in response to the mismatch of the CPU outputs detected by the comparing means. CPU
Reset means for supplying a reset signal to the master CP when the CPU outputs do not match.
A dual computer system, wherein the U and the slave CPU are configured to restart from the same state in response to the reset signal.
【請求項2】 前記リセット手段からのリセット信号に
応答して初期設定される周辺回路をさらに具備すること
を特徴とする請求項1記載の2重化計算機システム。
2. The dual computer system according to claim 1, further comprising a peripheral circuit which is initialized in response to a reset signal from said reset means.
JP4319604A 1992-11-30 1992-11-30 Duplex computer system Pending JPH06168151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4319604A JPH06168151A (en) 1992-11-30 1992-11-30 Duplex computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4319604A JPH06168151A (en) 1992-11-30 1992-11-30 Duplex computer system

Publications (1)

Publication Number Publication Date
JPH06168151A true JPH06168151A (en) 1994-06-14

Family

ID=18112131

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4319604A Pending JPH06168151A (en) 1992-11-30 1992-11-30 Duplex computer system

Country Status (1)

Country Link
JP (1) JPH06168151A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006259935A (en) * 2005-03-15 2006-09-28 Denso Corp Computation device with computation abnormality determination function
JP2010009327A (en) * 2008-06-27 2010-01-14 Hitachi Ltd Collation system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006259935A (en) * 2005-03-15 2006-09-28 Denso Corp Computation device with computation abnormality determination function
JP2010009327A (en) * 2008-06-27 2010-01-14 Hitachi Ltd Collation system

Similar Documents

Publication Publication Date Title
US7085959B2 (en) Method and apparatus for recovery from loss of lock step
US6687851B1 (en) Method and system for upgrading fault-tolerant systems
WO2020239060A1 (en) Error recovery method and apparatus
US7590885B2 (en) Method and system of copying memory from a source processor to a target processor by duplicating memory writes
JPH05225067A (en) Important-memory-information protecting device
JP5874492B2 (en) Fault tolerant control device and control method of fault tolerant system
JP3063334B2 (en) Highly reliable information processing equipment
JPH06168151A (en) Duplex computer system
WO1998010348A1 (en) Microcontroller fail-safe system
JP3132744B2 (en) Operation matching verification method for redundant CPU maintenance replacement
JP2000298594A (en) Controlling method of fault tolerance and redundant computer system
JP3110177B2 (en) Dual computer system
JP2731656B2 (en) Dual computer
US20230185679A1 (en) Hardware control path redundancy for functional safety of peripherals
JPH07146802A (en) Railroad safety system
JPS589965B2 (en) Microcomputer output circuit
JPH05100883A (en) Semiconductor device for processing data
JPH05265790A (en) Microprocessor device
JP2022184410A (en) Arithmetic device
JP3055249B2 (en) Processor debugging method
JPS5827246A (en) Logical device
JPH0721050A (en) Complete clock synchronous duplex circuit
JPH11265321A (en) Fault restoring method central processing unit and central processing system
JPH04344941A (en) Highly reliable processor
JPH06161797A (en) Data processor