JPH06110859A - Duplex system state confirming circuit - Google Patents

Duplex system state confirming circuit

Info

Publication number
JPH06110859A
JPH06110859A JP4259589A JP25958992A JPH06110859A JP H06110859 A JPH06110859 A JP H06110859A JP 4259589 A JP4259589 A JP 4259589A JP 25958992 A JP25958992 A JP 25958992A JP H06110859 A JPH06110859 A JP H06110859A
Authority
JP
Japan
Prior art keywords
state
cpu
buffer
stored
instructed
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
JP4259589A
Other languages
Japanese (ja)
Inventor
Masayoshi Nakamura
正義 中村
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 JP4259589A priority Critical patent/JPH06110859A/en
Publication of JPH06110859A publication Critical patent/JPH06110859A/en
Pending legal-status Critical Current

Links

Landscapes

  • Safety Devices In Control Systems (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Hardware Redundancy (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To improve the reliability of a duplex system and to reduce the load of a CPU for improvement of the system processing ability by grasping quickly the state changes of other systems to prevent the malfunction of system. CONSTITUTION:The circuit is provided with a CPU 1 which controls its own system, a buffer 3 which stores the state of its own system recognized by the CPU 1, a buffer 5 which stores the state of its own system pointed by the opposite party system, a comparator 7 which compares the pointed state of its own system stored in the buffer 5 with the state of its own system stored in the buffer 3, an interruption generating means 7 which produces an interruption to the CPU 1 when the discordance is confirmed by the comparator 7 between both states of its own system, and a means which reads the pointed state outof the buffer 5 and stores the state in the buffer 3 when an interruption is produced to the CPU 1 by the means 7. In such a configuration, the malfunction of a duplex system can be prevented.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、自系と相手系とを備え
た二重化システムにおける自系の認識している状態と相
手系により指示される自系の状態とを比較して、システ
ムの信頼性を向上するとともに、CPUの負荷を減少さ
せてシステムの処理能力を向上する二重化システム状態
認識回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention compares the state recognized by the own system and the state of the own system instructed by the partner system in a duplex system having the own system and the partner system. The present invention relates to a duplicated system state recognition circuit that improves reliability and reduces the load on the CPU to improve the processing capacity of the system.

【0002】[0002]

【従来の技術】コンピュータシステム,プラント等の構
成の信頼性および処理能力の向上のために、二重化シス
テムが用いられている。
2. Description of the Related Art A duplex system is used to improve the reliability and the processing capacity of a computer system, a plant and the like.

【0003】上記二重化システムの二重化状態を監視す
る動作を図4のフローチャートを用いて説明する。
The operation of monitoring the duplex status of the duplex system will be described with reference to the flowchart of FIG.

【0004】まず、自系と相手系との間に切替え装置が
設置されて、一定時間(システムの仕様に異なる)、自
系の各種の処理を実行する(ステップ200)。一定時
間の経過後、切替え装置は、現在、オンライン側の自系
の状態を監視するプログラムにより自系と相手系との状
態をチェックする(ステップ210)。状態のチェック
により状態が、例えば、スレーブに変化した場合は、自
系に当該スレーブに適合する処理を実行してステップ2
00に戻り、状態の変化が無い場合はステップ200に
戻る(ステップ220〜230)。
First, a switching device is installed between the own system and the partner system, and various processes of the own system are executed for a certain period of time (depending on the system specifications) (step 200). After the elapse of a certain time, the switching device currently checks the status of the own system and the partner system by a program that monitors the status of the own system on the online side (step 210). If the status is changed to, for example, a slave by checking the status, a process suitable for the slave is executed in the own system and step 2 is executed.
00, and if there is no change in state, the process returns to step 200 (steps 220 to 230).

【0005】以上の動作を繰り返しながら、切替え装置
により周期的に二重化システムの状態を監視するため、
状態の変化を迅速に認識するのが容易ではなかった。
While the above operation is repeated, the state of the redundant system is periodically monitored by the switching device.
It was not easy to recognize the change of state quickly.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、従来の
二重化システムにおいては、現在、オンライン側である
自系の状態を周期的、一定時間毎に切替え装置により監
視するため、自系が別の処理を実行している間に状態が
変化すると次の監視までの間、当該自系の処理が誤動作
になりシステムの信頼性の低下を招来する問題があっ
た。
However, in the conventional duplex system, the status of the own system, which is currently on-line side, is periodically monitored by the switching device at regular intervals, so that the own system performs another process. If the status changes during the execution, the processing of the relevant system malfunctions until the next monitoring, resulting in a decrease in the reliability of the system.

【0007】また、状態の変化を監視するプログラムの
動作によりCPUの負荷が増加して、システムの処理能
力の低下を招来する問題があった。
Further, there is a problem that the load of the CPU is increased by the operation of the program for monitoring the change of the state, and the processing capacity of the system is lowered.

【0008】本発明は、このような従来の課題を解決す
るためになされたものであり、その目的は、相手系の状
態の変化を迅速に把握してシステムの誤動作を防止する
ことによりシステムの信頼性を向上するとともに、CP
Uの負荷を減少させてシステムの処理能力を向上する二
重化システム状態認識回路を提供することにある。
The present invention has been made in order to solve such a conventional problem, and an object of the present invention is to quickly grasp the change in the state of the partner system and prevent the malfunction of the system. Improves reliability and CP
It is an object of the present invention to provide a dual system state recognition circuit that reduces the load on U and improves the processing capacity of the system.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、自系を制御するCPUと、このCPUに
より認識されている自系の状態を記憶する自系状態記憶
手段と、相手系により指示される自系の状態を記憶する
指示状態記憶手段と、この指示状態記憶手段に記憶され
ている指示された自系の状態と前記自系状態記憶手段に
記憶されている自系の状態とを比較する比較器と、この
比較器により前記自系状態記憶手段に記憶されている自
系の状態が前記指示状態記憶手段に記憶されている指示
された自系の状態に不一致のとき前記CPUに割込みを
発生させる割込み発生手段と、この割込み発生手段によ
りCPUに割込みが発生すると前記指示状態記憶手段に
記憶されている指示された状態を読み出して前記自系状
態記憶手段に記憶する手段と、を備えたことを要旨とす
る。
In order to achieve the above object, the present invention provides a CPU for controlling its own system, an own system state storing means for storing the state of the own system recognized by this CPU, and a partner. An instruction state storage means for storing the state of the own system instructed by the system, the state of the instructed own system stored in the indicated state storage means and the own system stored in the own system state storage means And a comparator for comparing the state with the state of the own system stored in the own system state storage means by this comparator does not match the instructed own system state stored in the instruction state storage means. Interrupt generating means for generating an interrupt in the CPU, and when the interrupt generating means generates an interrupt in the CPU, the instructed state stored in the instructed state storage means is read out and stored in the own system state storage means. And summarized in that with the means.

【0010】[0010]

【作用】上述の如く構成すれば、比較器により指示状態
記憶手段に記憶されている相手系により指示された自系
の状態と前記自系状態記憶手段に記憶されている自系の
状態とを比較する。この比較により前記自系状態記憶手
段に記憶されている自系の状態が前記指示状態記憶手段
に記憶されている相手系により指示された自系の状態に
不一致のとき前記CPUに割込みを発生させて、この割
込みによりCPUに割込みが発生すると前記指示状態記
憶手段に記憶されている相手系により指示された状態を
読み出して前記自系状態記憶手段に記憶するので、シス
テムの誤動作を防止して、システムの信頼性を向上でき
る。
According to the above-described structure, the state of the own system instructed by the partner system stored in the instructed state storage means by the comparator and the state of the own system stored in the own system state storage means are stored. Compare. By this comparison, when the state of the self system stored in the self system state storage means does not match the state of the self system instructed by the partner system stored in the instruction state storage means, an interrupt is generated in the CPU. Then, when an interrupt occurs in the CPU due to this interrupt, the state instructed by the partner system stored in the instructed state storage means is read out and stored in the own system state storage means, so that a malfunction of the system is prevented, The reliability of the system can be improved.

【0011】[0011]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0012】図1は本発明の二重化システム状態認識回
路に係る一実施例の制御を示すブロック図である。
FIG. 1 is a block diagram showing the control of an embodiment of the duplex system state recognition circuit of the present invention.

【0013】上記二重化システム状態認識回路は、CP
U1,バッファ3,バッファ5および比較器7を備え
て、当該CPU1が認識している自系の状態と相手系に
より指示される状態とを迅速に監視するものである。
The redundant system state recognition circuit is a CP
The U1, the buffer 3, the buffer 5, and the comparator 7 are provided to quickly monitor the state of the own system recognized by the CPU 1 and the state instructed by the partner system.

【0014】上記CPU1は自系全体を制御するもので
あり、データバス9を介してバッファ3およびバッファ
5に接続され、RD(リード)端子から読み込み制御ラ
イン11を介してバッファ5に接続され当該バッファ5
の所定アドレスに記憶されている相手系により指示され
る状態をデータバッファ9を介して読み出す。また、C
PU1は、WR(ライト)端子からバッファ3に接続さ
れている書込みライン13を介して当該バッファ3の所
定アドレスに認識している自系の状態を書込む。
The CPU 1 controls the entire system, is connected to the buffer 3 and the buffer 5 via the data bus 9, and is connected to the buffer 5 via the read control line 11 from the RD (read) terminal. Buffer 5
The state instructed by the partner system stored in the predetermined address of is read out via the data buffer 9. Also, C
The PU 1 writes the state of its own system, which is recognized, at a predetermined address of the buffer 3 via the write line 13 connected to the buffer 3 from the WR (write) terminal.

【0015】バッファ3は、CPU1が、例えば、オン
ラインまたはスレーブの自系の状態を所定アドレスに記
憶する。バッファ5は自系と二重化システムにある相手
系(図示せず)から指示される状態を状態指示線15を
介して所定アドレスに記憶する。
In the buffer 3, the CPU 1 stores, for example, an online or slave own system state at a predetermined address. The buffer 5 stores a state instructed by its own system and a partner system (not shown) in the duplex system at a predetermined address via the state instruction line 15.

【0016】比較器7は、バッファ3の所定アドレスに
記憶されている自系の認識している状態を状態認識線1
7を介して入力され、バッファ5の所定アドレスに記憶
されている相手系による指示された状態を状態指示線1
5を介して入力されて自系の認識している状態と相手系
による指示された状態とを比較する。比較により一致し
ない場合に比較器7はCPU1のINT(割込み)端子
に接続されている割込みライン19をハイレベルにして
CPU1に割込みを発生させる。
The comparator 7 indicates the state recognized by its own system, which is stored at a predetermined address of the buffer 3, by the state recognition line 1.
The status indicating line 1 indicates the status designated by the partner system, which is inputted via 7 and stored at a predetermined address of the buffer 5.
The state recognized by the own system input via 5 and the state instructed by the partner system are compared. If they do not match as a result of comparison, the comparator 7 causes the interrupt line 19 connected to the INT (interrupt) terminal of the CPU 1 to be at a high level, and causes the CPU 1 to generate an interrupt.

【0017】上記比較器7を図2のブロック図を用いて
説明する。
The comparator 7 will be described with reference to the block diagram of FIG.

【0018】上記比較器7は比較用のLSIにより構成
されており、バッファ5との間に状態指示線15により
0 端子,Q1 端子からQn 端子まで備え、バッファ3
との間に状態認識線17によりP0 端子,P1 端子から
n 端子まで備えている。上記状態指示線15のQ0
子からQn 端子までと状態認識線17のP0 端子,P1
端子からPn 端子までとが1対1に対応して、状態検出
用の端子、例えばP3,P4 とQ3 ,Q4 との値が異な
ると一致のため、割込みライン19をハイレベルにして
CPU1のINT端子をハイレベルにして割込みを発生
させる。
The comparator 7 is composed of a comparison LSI, and is provided with a buffer 5 and a status indication line 15 from the Q 0 terminal and the Q 1 terminal to the Q n terminal.
It includes P 0 terminal, from P 1 terminal to P n terminals by state recognition line 17 between. From the Q 0 terminal to the Q n terminal of the status indicating line 15 and the P 0 terminal, P 1 of the status recognition line 17
There is a one-to-one correspondence from the terminals to the P n terminals, and when the status detection terminals, for example, P 3 and P 4 and Q 3 and Q 4 have different values, the interrupt line 19 is set to the high level. Then, the INT terminal of the CPU 1 is set to a high level to generate an interrupt.

【0019】次に本実施例の作用を図3(a)のタイム
チャートおよび図3(b)のフローチャートを用いて説
明する。
Next, the operation of this embodiment will be described with reference to the time chart of FIG. 3 (a) and the flowchart of FIG. 3 (b).

【0020】まず、システムの起動後、CPU1は、自
系の認識している状態、例えば、オンラインを書込み制
御ライン13をハイレベルにしてバッファ3の所定アド
レスにデータバス9を介して書込む。バッファ3の所定
アドレスに書込まれた認識している状態は、状態認識線
17を介して比較器7および相手系に出力される。一
方、状態指示線15を介して相手系が指示する自系の状
態は、バッファ5の所定のアドレスに記憶される。バッ
ファ5の所定アドレスに記憶されている指示された自系
の状態は状態指示線15を介して比較器7に出力され
る。比較器7は、状態指示線15を介して入力される相
手系により指示された自系の状態と状態認識線17を介
して入力される自系の認識されている状態とを比較する
(ステップ100)。
First, after the system is activated, the CPU 1 writes the state recognized by the system, for example, online to the write control line 13 at a high level to a predetermined address of the buffer 3 via the data bus 9. The recognized state written in the predetermined address of the buffer 3 is output to the comparator 7 and the partner system via the state recognition line 17. On the other hand, the status of the own system designated by the partner system via the status designation line 15 is stored at a predetermined address of the buffer 5. The instructed state of the own system stored at a predetermined address of the buffer 5 is output to the comparator 7 via the state instruction line 15. The comparator 7 compares the state of the own system, which is instructed by the partner system, which is input via the state instruction line 15, with the recognized state of the own system, which is input through the state recognition line 17 (step 100).

【0021】比較により、相手系により指示された自系
の状態と自系が認識している自系の状態とが一致すると
図3(a)に示すCPU1のINT端子がロウレベルの
ままでステップ100に戻り、不一致の場合には比較器
7は割込みを発生させて図3(b)に示すCPU1のI
NT端子がハイレベルになる(ステップ110〜12
0)。
By comparison, if the state of the own system instructed by the partner system matches the state of the own system recognized by the own system, the INT terminal of the CPU 1 shown in FIG. Then, in the case of disagreement, the comparator 7 generates an interrupt and the I of the CPU 1 shown in FIG.
NT terminal goes high (steps 110-12)
0).

【0022】割込み発生後、CPU1は読み込み制御ラ
イン11をハイレベルにしてバッファ5の所定アドレス
に記憶されている相手系から指示された自系の状態をデ
ータライン9を介して読み出す。読み出した自系の状態
はバッファ3の所定アドレスに記憶されて、状態認識線
17を介して比較器7および相手系に出力される。バッ
ファ3の所定アドレスに記憶されている認識された自系
の状態が比較器7に入力されると状態指示線15を介し
て入力される指示された自系の状態と状態認識線17を
介して入力される認識される状態とが一致する。一致す
ると割込みが終了して図3(b)に示すCPU1のIN
T端子がロウレベルになりステップ100に戻る(ステ
ップ130)。
After the occurrence of the interrupt, the CPU 1 sets the read control line 11 to the high level and reads the state of the own system, which is stored at a predetermined address of the buffer 5 and instructed by the other system, through the data line 9. The read status of the own system is stored in a predetermined address of the buffer 3 and output to the comparator 7 and the partner system via the status recognition line 17. When the recognized self-system state stored in the predetermined address of the buffer 3 is input to the comparator 7, it is inputted via the state indication line 15 and the designated self-system state and the state recognition line 17 are inputted. The recognized state that is input as is matched. If they match, the interrupt ends and the CPU1 IN shown in FIG.
The T terminal goes low and the process returns to step 100 (step 130).

【0023】これにより、相手系により指示された状態
と自系の認識している状態とが不一致の場合は、CPU
1に割込みを発生させるため、自系の誤動作が生じるこ
ともない。
As a result, if the state instructed by the partner system and the state recognized by the own system do not match, the CPU
Since the interrupt is generated at 1, the malfunction of the own system does not occur.

【0024】また、二重化システムを監視するプログラ
ムを必要としないので、CPU1の負荷を減少できる。
Further, since the program for monitoring the redundant system is not required, the load on the CPU 1 can be reduced.

【0025】[0025]

【発明の効果】以上説明したように、本発明では、自系
の認識している状態と相手系により指示された状態とを
比較して、状態が不一致のとき指示された状態にセット
するので、相手系の状態の変化を迅速に把握してシステ
ムの誤動作を防止することによりシステムの信頼性を向
上するとともに、CPUの負荷を減少させてシステムの
処理能力の向上を実現できる。
As described above, according to the present invention, the state recognized by the own system is compared with the state instructed by the partner system, and when the states do not match, the set state is set. It is possible to improve the system reliability by promptly grasping the change in the state of the partner system and preventing the malfunction of the system, and reduce the load on the CPU to realize the improvement of the processing capability of the system.

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

【図1】本発明の二重化システム状態認識回路の制御を
示すブロック図である。
FIG. 1 is a block diagram showing control of a redundant system state recognition circuit of the present invention.

【図2】比較器を示すブロック図である。FIG. 2 is a block diagram showing a comparator.

【図3】本発明の動作を示すタイムチャートである。FIG. 3 is a time chart showing the operation of the present invention.

【図4】本発明の動作を示すフローチャートである。FIG. 4 is a flowchart showing the operation of the present invention.

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

1 CPU 3,5 バッファ 7 比較器 15 状態指示線 17 状態認識線 19 割込みライン 1 CPU 3, 5 Buffer 7 Comparator 15 Status indication line 17 Status recognition line 19 Interrupt line

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 自系を制御するCPUと、 このCPUにより認識されている自系の状態を記憶する
自系状態記憶手段と、 相手系により指示される自系の状態を記憶する指示状態
記憶手段と、 この指示状態記憶手段に記憶されている指示された自系
の状態と前記自系状態記憶手段に記憶されている自系の
状態とを比較する比較器と、 この比較器により前記自系状態記憶手段に記憶されてい
る自系の状態が前記指示状態記憶手段に記憶されている
指示された自系の状態に不一致のとき前記CPUに割込
みを発生させる割込み発生手段と、 この割込み発生手段によりCPUに割込みが発生すると
前記指示状態記憶手段に記憶されている指示された状態
を読み出して前記自系状態記憶手段に記憶する手段と、 を備えたことを特徴とする二重化システム状態認識回
路。
1. A CPU controlling an own system, an own system state storing means for storing a state of the own system recognized by the CPU, and an instruction state memory for storing a state of the own system instructed by a partner system. Means and a comparator for comparing the instructed self-system state stored in the instructed state storage means with the self-system state stored in the self-system state storage means, and the comparator by the comparator. Interrupt generating means for generating an interrupt to the CPU when the state of the own system stored in the system state storing means does not match the instructed state of the own system stored in the instruction state storing means; And a means for reading out an instructed state stored in the instructed state storage means and storing it in the self-system state storage means when an interrupt occurs in the CPU by the means. State recognition circuit.
JP4259589A 1992-09-29 1992-09-29 Duplex system state confirming circuit Pending JPH06110859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4259589A JPH06110859A (en) 1992-09-29 1992-09-29 Duplex system state confirming circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4259589A JPH06110859A (en) 1992-09-29 1992-09-29 Duplex system state confirming circuit

Publications (1)

Publication Number Publication Date
JPH06110859A true JPH06110859A (en) 1994-04-22

Family

ID=17336210

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4259589A Pending JPH06110859A (en) 1992-09-29 1992-09-29 Duplex system state confirming circuit

Country Status (1)

Country Link
JP (1) JPH06110859A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024011906A1 (en) * 2022-07-15 2024-01-18 南京科远智慧科技集团股份有限公司 Master-slave redundancy control system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024011906A1 (en) * 2022-07-15 2024-01-18 南京科远智慧科技集团股份有限公司 Master-slave redundancy control system and method

Similar Documents

Publication Publication Date Title
EP0116344A2 (en) Power backed-up dual memory system
JP6029737B2 (en) Control device
JP2007511806A (en) Redundancy automation system for controlling technical equipment and method of operation thereof
JPH06324914A (en) Runaway detecting method for computer
JPH06110859A (en) Duplex system state confirming circuit
JPS6119061B2 (en)
JP2993337B2 (en) Double bus control method
JPH0683720A (en) Data backup type computer system
JPH06266648A (en) Data transfer control system
KR100382830B1 (en) Apparatus And Method For Fail Control In The Duplexing Board
JPS6119060B2 (en)
JPH02245954A (en) Semiconductor storage device
JP2847741B2 (en) Microcomputer
JPH08202573A (en) Storing method for ras information of duplex system
JP3033640B2 (en) CPU operation monitoring circuit
JPH05233474A (en) Storage contents protection system
JPH0215353A (en) Abnormality setting system at specific address
JPH0358217A (en) Electronic disk subsystem
JPH0728660A (en) Process input/output device
JPS59177647A (en) Status confirming control system
JPS59116998A (en) Trouble detecting system of main memory
JPH08305637A (en) Storage
JPH0728716A (en) I/o control method
JPS5839321A (en) Storage device
JPH07250440A (en) Data processor