JPH02277142A - Duplex computer system - Google Patents
Duplex computer systemInfo
- Publication number
- JPH02277142A JPH02277142A JP9729089A JP9729089A JPH02277142A JP H02277142 A JPH02277142 A JP H02277142A JP 9729089 A JP9729089 A JP 9729089A JP 9729089 A JP9729089 A JP 9729089A JP H02277142 A JPH02277142 A JP H02277142A
- Authority
- JP
- Japan
- Prior art keywords
- module
- information
- computer
- data
- execution
- 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
Links
- 230000015654 memory Effects 0.000 claims abstract description 63
- 230000003936 working memory Effects 0.000 claims description 27
- 238000012546 transfer Methods 0.000 claims description 24
- 230000009977 dual effect Effects 0.000 claims description 14
- 239000000872 buffer Substances 0.000 claims description 6
- 230000008676 import Effects 0.000 claims description 2
- 230000004044 response Effects 0.000 abstract description 4
- 230000005540 biological transmission Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 10
- 238000012544 monitoring process Methods 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013518 transcription Methods 0.000 description 1
- 230000035897 transcription Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Hardware Redundancy (AREA)
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、メモリ転写機能を改善して計算機の切換え
がより確実にできる待機冗長系の二重系計算機システム
に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a standby redundant dual system computer system that improves the memory transfer function and can more reliably switch computers.
第7図は、例えば特公昭64−1809号公報に示され
た従来の二重系計算機システムの概念的構成図である。FIG. 7 is a conceptual block diagram of a conventional dual system computer system disclosed in, for example, Japanese Patent Publication No. 1809/1983.
第7図において、la、2aは計算機、3は二重化制御
装置、41.42はそれぞれ計算機1a、2aの入出力
バス、5は入出力バス切換器、6は入出力装置である。In FIG. 7, la and 2a are computers, 3 is a redundant control device, 41 and 42 are input/output buses of the computers 1a and 2a, respectively, 5 is an input/output bus switch, and 6 is an input/output device.
二重化制御装置3は2つの計算機1a、2aとはメモリ
バス、監視信号線、制御信号線等によってそれぞれ接続
され、両針算機の動作監視と人出力バス使用許可制御お
よびメモリ転写制御を行う。二重化制御装置3はまた入
出力バス切換器5に制御信号を与え、その切換えを制1
211する。The redundant control device 3 is connected to the two computers 1a and 2a through a memory bus, a supervisory signal line, a control signal line, etc., and performs operation monitoring of the double-handled calculator, human output bus usage permission control, and memory transfer control. The duplex control device 3 also provides a control signal to the input/output bus switch 5 to control its switching.
211.
二重化制御装置i!3は、2つの計算機1a、2aの状
態を判定して、どちらか一方の正常な計算機に人出力バ
ス使用許可信号を与え、かつ入出力バス切換器5をそち
ら側に投入する。2つの計算機la、2aのうち入出力
バス使用許可信号が与えられた方が実作業に従事し、他
方の計算機は待機する。Redundant control device i! 3 determines the status of the two computers 1a and 2a, gives a human output bus use permission signal to one of the normal computers, and turns on the input/output bus switch 5 to that side. Of the two computers la and 2a, the one to which the input/output bus usage permission signal is applied engages in actual work, while the other computer stands by.
計算機1a、2aと二重化制御装置3の詳細な接続関係
を、メモリ転写手段に着目して示せば第8図のようにな
る。ただし第8図はy1雑さを避けるために、計算機1
aを実作業側、計算機2aを待機側としたときの計算機
1aから計算機2aへのメモリ転写系の構成のみを示し
たものであって、計算機2aから計算機1aへのメモリ
転写系も全く同様に構成されてい゛る。計算機1a、2
aはそれぞれプロセッサ11.21とメインメモリ12
゜22を持っている。二重化制御装置3は、ファースト
イン・ファーストアウトメモリ(F I FO)を有す
るアドレスモニタ部31と、監視部32と、データベー
ス等値化部33と、データベース複写部34およびアド
レスモニタ部31内のFIFOのオーバフローを検出す
る検出部35を持っている。The detailed connection relationship between the computers 1a, 2a and the duplex control device 3 is shown in FIG. 8, focusing on the memory transfer means. However, in Figure 8, in order to avoid y1 complexity, the computer 1
This figure shows only the configuration of the memory transfer system from computer 1a to computer 2a when a is on the actual work side and computer 2a is on the standby side, and the memory transfer system from computer 2a to computer 1a is exactly the same. It is configured. Calculator 1a, 2
a are processor 11, 21 and main memory 12, respectively.
I have ゜22. The duplication control device 3 includes an address monitor section 31 having a first-in/first-out memory (FIFO), a monitoring section 32, a database equalization section 33, a database copying section 34, and a FIFO in the address monitor section 31. It has a detection section 35 that detects an overflow.
アドレスモニタ部31は、計算機1aがメモリアクセス
するときのアドレスを傍受し、等値化要求信号を伴った
アドレスを受信したときそれをFIFOに記憶する。監
視部32は計算機1a、2aのレディ信号とアドレスモ
ニタ部31のデータレディ信号を監視してデータベース
等値化部33とデータベース複写部34の動作を制御す
る。データベース等値化部33は監視部32の制御信号
とアドレスモニタ部31のFIFOから与えられるアド
レスに従って計算機1aのメインメモリを読出し、この
読出したデータを計算機2aのメインメモリの同一アド
レスに書込む。これによって、計算機1aが要求したデ
ータが計算機2aに転写され等値化が行われる。FIF
Oは計算機1aのメモリアクセスと二重化制御装置3の
等値化動作とタイミング差を緩衝する。計算機1aによ
る等値化要求は、計算機laがメインメモリ12内のデ
ータベースのある種のデータの書込みを行ったとき発せ
られる。この種のデータは、計算機1a+2aが実作業
を遂行する場合に共通に利用するデータとされる。した
がって、計算機」aの凹込みによってこの種の共用デー
タが変化するたびにその変化したデータが計算機2aの
データベースに転写されることになる。一方、データベ
ース複写部34は、監視部32の制御信号に従って計算
機laの全データベースを計算機2aに書き移す。The address monitor section 31 intercepts the address when the computer 1a accesses the memory, and when it receives the address accompanied by the equalization request signal, stores it in the FIFO. The monitoring section 32 monitors the ready signals of the computers 1a and 2a and the data ready signal of the address monitoring section 31, and controls the operations of the database equalization section 33 and the database copying section 34. The database equalizer 33 reads the main memory of the computer 1a according to the control signal of the monitor 32 and the address given from the FIFO of the address monitor 31, and writes the read data to the same address in the main memory of the computer 2a. As a result, the data requested by the computer 1a is transferred to the computer 2a and equalized. FIF
O buffers the timing difference between the memory access of the computer 1a and the equalization operation of the duplex control device 3. The equalization request by the computer 1a is issued when the computer 1a writes certain data in the database in the main memory 12. This type of data is commonly used when the computers 1a+2a perform actual work. Therefore, each time this kind of shared data changes due to the depression of computer 2a, the changed data is transferred to the database of computer 2a. On the other hand, the database copying section 34 writes the entire database of the computer la to the computer 2a according to the control signal from the monitoring section 32.
データベース複写部34の動作は主として、計算機2a
が二重系に投入された出きに計算機2aの初期化作業の
1つとして行われる。データベース等値化部33とデー
タベース複写部34は並行して動作できるようになって
いる。したがって、データベース複写中に計算機1aが
共用データを書替えると、そのつとそのデータにつき等
値化が行われる。The operation of the database copying section 34 is mainly performed by the computer 2a.
This is performed as one of the initialization tasks for the computer 2a after it is input into the dual system. The database equalization section 33 and the database copying section 34 can operate in parallel. Therefore, when the computer 1a rewrites shared data during database copying, equalization is performed for each piece of data.
FIFOオーバフロー検出部35は、アドレスモニタ部
31のFIFOの内部に、それ以前に発生した等値化要
求に従って等値化すべきアドレスが満たされている状態
で、新たな等値要求が発生したこと(FIFOオーバフ
ロー)を検出する。The FIFO overflow detection section 35 detects that a new equalization request has occurred in the FIFO of the address monitor section 31 in a state where the addresses to be equalized according to the previously generated equalization request have been satisfied ( FIFO overflow).
平均的には計算機1aの等値化要求の頻度よりも、デー
タベース等値化部の動作速度は十分速いが、瞬時的には
、等値化要求の頻度が等値化動作の処理速度を上まわる
場合があり、この時FIFOが緩衝となる。FIFOの
容量が十分であれば問題はないが、実際には有限である
ため極端に等値化要求の頻度が高まった時、前記のFI
FOオーバフローが発生し得る。PIF−0オ一バフロ
ー検出部35は、この状態を検出すると直ちに監視部3
2に通知する。監視部32はそのことを知ると一旦FI
FOをリセットし空状態に初期化したのち、データベー
ス複写部34を起動し、計算機1aの全データヘースを
計算機2aに転写させる。On average, the operation speed of the database equalization unit is sufficiently faster than the frequency of equalization requests of computer 1a, but momentarily, the frequency of equalization requests exceeds the processing speed of equalization operations. In this case, FIFO acts as a buffer. There is no problem if the FIFO capacity is sufficient, but in reality it is limited, so when the frequency of equalization requests becomes extremely high, the above FIFO
FO overflow may occur. When the PIF-0 overflow detection unit 35 detects this state, the PIF-0 overflow detection unit 35 immediately detects this condition.
Notify 2. Once the monitoring unit 32 learns of this, it immediately
After resetting the FO and initializing it to an empty state, the database copying section 34 is activated to copy all the data in the computer 1a to the computer 2a.
これによってFIFOオーバフローによって等値化不能
となったアドレスについても一致が保証される。この動
作においても、データベース複写部34の起動と同時に
データベース等値化部33も再び動作開始し、全データ
ベース転写と並行して動作する。This ensures matching even for addresses that cannot be equalized due to FIFO overflow. In this operation as well, the database equalization section 33 starts operating again at the same time as the database copying section 34 is activated, and operates in parallel with the entire database transcription.
従来の二重系計算機システムは以上のように構成されて
いるので、両針算機1a、2aに設けられているメイン
メモリ12.22の内容が一致したとしても、計算機1
a、2aの切換えに際して厳密にプログラム実行の連続
性を保つことは難しく、切換え点における命令の欠落や
重複実行を防止するための手段が必要であるなどの課題
があった。さらに、稼動中の計算機1aがマルヂタスク
(複数のモジュール)を時分割で並列処理している場合
などに、切換え点における連続性保持の困難から逃れる
ために、切換えが発生した直前に実行していたモジュー
ルの先頭から、他方の計算機2aがモジュールを実行す
る場合には、モジュールの先頭から切換え点までの間が
一度実行されて、取り扱うデータが変化してしまってい
る可能性があり、そのまま先頭から実行したのでは正確
な処理結果にならないなどの課題があった。Since the conventional dual-system computer system is configured as described above, even if the contents of the main memories 12 and 22 provided in the dual-hand calculators 1a and 2a match, the computer 1
It is difficult to strictly maintain the continuity of program execution when switching between a and 2a, and there are problems such as the need for means to prevent missing or duplicate execution of instructions at the switching point. Furthermore, when the running computer 1a processes multi-tasks (multiple modules) in parallel in a time-sharing manner, in order to avoid the difficulty of maintaining continuity at the switching point, the task is executed immediately before the switching occurs. When the other computer 2a executes the module from the beginning of the module, the period from the beginning of the module to the switching point may have been executed once, and the data to be handled may have changed. There were issues such as the fact that the processing results would not be accurate if the process was executed.
この発明は上記のような課題を解消するためになされた
もので、計算機の切換えに際してモジュールの先頭から
実行することにより実質的な連続性を確保し、しかも、
モジュールの先頭から実行してもそのモジュールの処理
が矛盾なく行われ、その後のタスク切換えも問題なく行
える二重系計算機システムを得ることを目的とする。This invention was made to solve the above-mentioned problems, and it ensures substantial continuity by executing from the beginning of the module when switching computers, and also,
To obtain a dual-system computer system in which processing of a module is performed without contradiction even when the module is executed from the beginning, and subsequent task switching can be performed without any problem.
請求項(1)記載の発明に係る二重系計算機システムは
、それぞれの計算機に対応した外部メモリ装置を有し、
これら外部メモリ装置は、少なくとも計算機内の実作業
メモリのメモリ容量と同じ容量の待避メモリと、接続さ
れている計算機のバス上のデータをバッファを介して他
方の外部メモリ装置に出力する第1のインタフェース回
路と、この第1のインタフェース回路と択一的に動作可
能状態となり、他方の外部メモリ装置から供給されたデ
ータをバッファを介して前記待避メモリに与える第2の
インタフェース回路とを有し、各計算機は、待機時に、
他方の計算機が出力した、あるモジュールのモジュール
実行終了情報を検出し、接続されている外部メモリ装置
の待避メモリから、モジュール実行情報および実行が終
了したモジュールに関する更新データを取り込んで、自
身の実作業メモリに転写するモジュール情報転写手段を
有して構成されたものである。The dual computer system according to the invention described in claim (1) has an external memory device corresponding to each computer,
These external memory devices include a backup memory with a capacity at least equal to the memory capacity of the actual working memory in the computer, and a first memory device that outputs data on the bus of the connected computer to the other external memory device via a buffer. an interface circuit; and a second interface circuit that becomes operable alternatively to the first interface circuit and supplies data supplied from the other external memory device to the save memory via a buffer; When each calculator is on standby,
Detects the module execution completion information of a certain module output by the other computer, imports the module execution information and updated data regarding the module that has finished execution from the save memory of the connected external memory device, and executes the own actual work. The module information transfer means is configured to transfer the information to the memory.
また、請求項(2)記載の発明に係る二重系計算機シス
テムは、それぞれの計算機に対応した外部メモリ装置を
有し、これら外部メモリ装置は、接続されている計算機
から出力されたデータを一時待避する待避メモリと、出
力されたデータ中に存在するモジュール実行終了情報を
検出して、他方の外部メモリ装置へ待避メモリ内のデー
タを転送する制御を行うマイクロプロセンサとを有し、
各計算機は、稼動中には、計算機内の実作業メモリに更
新データを書き込む際に、接続されている外部メモリ装
置にこの更新データをアドレスとともに出力し、かつ、
モジュール実行終了時にモジュール実行終了情報を含む
モジュール実行情報を出力するモジュール情報出力手段
と、待機時には、接続されている外部メモリ装置の待避
メモリからデータを取り込んで、自身の実作業メモリに
更新データおよびモジュール実行情報を転写するモジュ
ール情報転写手段とを有して構成されたものである。Further, the dual computer system according to the invention described in claim (2) has an external memory device corresponding to each computer, and these external memory devices temporarily store data output from the connected computers. It has a save memory to save, and a microprocessor sensor that detects module execution completion information present in the output data and controls the transfer of the data in the save memory to the other external memory device,
During operation, when each computer writes updated data to the actual working memory within the computer, it outputs this updated data along with an address to a connected external memory device, and
A module information output means outputs module execution information including module execution completion information when the module execution ends, and when on standby, it takes in data from the save memory of a connected external memory device and stores updated data and data in its own actual working memory. and module information transfer means for transferring module execution information.
請求項(11記載の発明に係る外部メモリ装置は、計算
機のバスを導入して、計算機が実作業メモリのあるアド
レスのデータを更新する際に、バス上のデータを他方の
外部メモリ装置の待避メモリに与える。そして、他方の
計算機、つまり、待機系の計算機は、稼動中の計算機が
、あるモジュールを実行終了したことを認識して、待機
系の計算機に接続されている外部メモリ装置の待避メモ
リから、実行終了したモジュールに関するデータおよび
モジュール実行情報を導入して、自身の実作業メモリへ
転写する。The external memory device according to the invention described in claim 11 introduces a computer bus, and when the computer updates data at a certain address in the actual working memory, the data on the bus is saved in another external memory device. Then, the other computer, that is, the standby computer, recognizes that the running computer has finished executing a certain module and saves the external memory device connected to the standby computer. Data regarding the executed module and module execution information are introduced from the memory and transferred to its own actual working memory.
また、請求項(2)記載の発明に係る外部メモリ装置は
、稼動中の計算機が出力した更新データとそのアドレス
を導入して、待避メモリに記憶し、稼動中の計算機があ
るモジュールを実行終了したことを検出して、実行終了
したモジュールに関するデータとそのアドレスおよびモ
ジュール実行情報を他方の外部メモリ装置に対して送出
する。Further, the external memory device according to the invention described in claim (2) introduces the update data and its address outputted by the operating computer, stores it in the save memory, and terminates the execution of the module with the operating computer. It detects that the module has been executed, and sends data regarding the module that has completed execution, its address, and module execution information to the other external memory device.
以下、この発明の一実施例を図について説明する。第1
図において、7,8はそれぞれ計1X機l。An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, numbers 7 and 8 each represent a total of 1X machines.
2に接続された外部メモリ装置、65aはバス(アドレ
スバスおよびデータバス)、65bはコントロール信号
(運転指令および異常信号を含む)であり、その他のも
のは同一符号を付して第7図に示したものと同一のもの
である。第2図は第1図に示した計算at、2および外
部メモリ装置7゜8の内部構成を示すブロック図(第1
の実施例)である。図において、11.21はそれぞれ
計算機1,2の中央処理装置(cpu)、12.22は
それぞれ計算機1.2の実作業メモリ、61は外部バス
65上のアドレスおよびデータを他方の外部メモリ装置
7.8にインタフェースする差動アンプ送信回路(第1
のインタフェース回路)、62は他方の外部メモリ装置
7.8から与えられたアドレスおよびデータを受信する
差動アンプ受信回路(第2のインタフェース回路)、6
3は実作業メモリ12.22と同一容量の待避メモリ、
65はバス65aとコントロール信号65bを含む外部
バス、77.78は二重化実行判定回路である。なお、
差動アンプ送信回路61および差動アンプ受信回路62
は、第3図に示すように、それぞれ0N10FF状態が
逆になる2つのスイッチ回路64a、64bを介して、
どちらか一方のみが計算機1.2に接続されることにな
る。このスイッチ回路64a、64bは手動で切換え可
能である。なお、外部メモリ装置7.8は共に第3図に
示した構成を有しているが、第2図においては、それぞ
れの外部メモリ装置7.8は片方の差動アンプのみを示
している。以下の説明では、計算機1を稼動している側
(主系)、計算a2を待機系とする。2 is an external memory device connected to 2, 65a is a bus (address bus and data bus), 65b is a control signal (including operation commands and abnormal signals), and the other parts are denoted by the same reference numerals as shown in FIG. It is the same as shown. FIG. 2 is a block diagram (first
example). In the figure, 11.21 is the central processing unit (CPU) of computers 1 and 2, respectively, 12.22 is the actual working memory of computer 1.2, and 61 is the address and data on the external bus 65 that is transferred to the other external memory device. 7. Differential amplifier transmitter circuit (first
62 is a differential amplifier receiving circuit (second interface circuit) that receives the address and data given from the other external memory device 7.8.
3 is a backup memory with the same capacity as the actual working memory 12.22,
65 is an external bus including a bus 65a and a control signal 65b, and 77 and 78 are duplex execution determination circuits. In addition,
Differential amplifier transmitting circuit 61 and differential amplifier receiving circuit 62
As shown in FIG. 3, through two switch circuits 64a and 64b whose 0N10FF states are reversed,
Only one of them will be connected to computer 1.2. The switch circuits 64a, 64b can be switched manually. Note that both external memory devices 7.8 have the configuration shown in FIG. 3, but in FIG. 2, each external memory device 7.8 only shows one differential amplifier. In the following description, the computer 1 is assumed to be the operating side (main system), and the calculation a2 is assumed to be the standby system.
次に動作について説明する。外部メモリ装置78は、従
来の場合と同様に再計算機1.2の動作監視と入出力バ
ス使用許可制御を行う。つまり、二重化実行判定回路7
7.7日は、両針量a12の状態を判定し、どららか一
方の正常な計算機lに入出力バス使用許可信号を与え、
かつ、入出力バス切換器5をそちら側に投入する。よっ
て、計算機lは主系となり、他方の計算機2は待機系と
なる。Next, the operation will be explained. The external memory device 78 monitors the operation of the recomputer 1.2 and controls permission to use the input/output bus as in the conventional case. In other words, the duplication execution determination circuit 7
7. On the 7th, the status of both needle amounts a12 is determined, and an input/output bus use permission signal is given to one of the normal computers l.
In addition, the input/output bus switch 5 is placed on that side. Therefore, the computer 1 becomes the main system, and the other computer 2 becomes the standby system.
次にデータおよびモジュール実行情報の転写制御につい
て説明する。主系側CPUIIが実作業メモリ12に対
して書込み動作を行う際に、アドレス情報、データ情報
は外部バス65にも流出する。このアドレス/テーク情
報は、外部メモリ装置7の差動アンプ送信回路61を経
由して、待機系の外部メモリ装置8に人力する。そして
、外部メモリ装置8の差動アンプ受信回路62を経て待
避メモリ63に到達する。待避メモリ63において、ア
ドレス情報に応じたアドレスにデータ情報が書込まれる
。Next, transfer control of data and module execution information will be explained. When the main CPU II performs a write operation to the actual working memory 12, address information and data information also flow to the external bus 65. This address/take information is manually input to the standby external memory device 8 via the differential amplifier transmission circuit 61 of the external memory device 7. The signal then reaches the save memory 63 via the differential amplifier receiving circuit 62 of the external memory device 8 . In the save memory 63, data information is written to an address corresponding to the address information.
主系側CPUIIは、実行するモジュールを切換える際
に、必要な情報を実作業メモリ12に書込むので、同時
に外部メモリ装置8の待避メモリ63の該当エリアにモ
ジュールの実行が終了した旨を示すモジュール実行終了
情報およびこのモジュールと他の全てのモジュールとの
七ジ1−ルの走行状態を示すモジュール実行情報が書込
まれる。When switching the module to be executed, the main CPU II writes necessary information to the actual working memory 12, so at the same time, a module indicating that the execution of the module has been completed is written in the corresponding area of the save memory 63 of the external memory device 8. Execution end information and module execution information indicating the seven wheel running status of this module and all other modules are written.
ここで、主系側CPUI 1は実作業メモリ12および
外部メモリ装置8の双方から応答を受ける構成としても
よい。外部メモリ装置8は、待避メモIJ63にモジュ
ール実行終了情報が書込まれたことを契機として、待機
系CPU21に対して割り込み要求を発生する。待機系
CPU21は、この割り込み要求に応じた処理で外部メ
モリ装置8の待避メモリ63から必要なデータおよびモ
ジュール実行情報を、実作業メモリ22に転写する。こ
こでは、待機系CPU21と計算機2内のプログラムと
でモジュール情報転写手段が実現されている。例えば、
待機系CPU21は、モジュール実行終了情報に対応し
たモジュールのソースアドレステーブルを調べ、このソ
ースアドレステーブルに登録されているアドレスのデー
タを待避メモリ63から取り込むようにする。ここで、
モジュールごとに設けられているソースアドレステーブ
ルには、各モジュールで使用するデータが格納されるア
ドレスを指すように構成されている。なお、待避メモリ
63は2ポートメモリ構成となっている。また、外部メ
モリ装置7.8の間を差動アンプでインタフェースして
いるのは、片方の外部メモリ装置8で故障が発生して、
待機系の計算412を電源断としたような場合に、もう
一方の外部メモリ装置7に設けられている待避メモリ6
3の内容が破壊されないようにするためである。Here, the main CPU 1 may be configured to receive responses from both the actual working memory 12 and the external memory device 8. The external memory device 8 issues an interrupt request to the standby CPU 21 in response to the module execution completion information being written to the save memo IJ63. The standby CPU 21 transfers necessary data and module execution information from the save memory 63 of the external memory device 8 to the actual working memory 22 in response to this interrupt request. Here, the standby CPU 21 and the program in the computer 2 implement module information transfer means. for example,
The standby CPU 21 checks the source address table of the module corresponding to the module execution completion information, and takes in the data of the address registered in this source address table from the save memory 63. here,
A source address table provided for each module is configured to point to addresses where data used by each module is stored. Note that the save memory 63 has a two-port memory configuration. Also, the reason why the external memory devices 7 and 8 are interfaced by a differential amplifier is that if one of the external memory devices 8 fails,
When the standby system calculation 412 is powered off, the backup memory 6 provided in the other external memory device 7
This is to prevent the contents of 3 from being destroyed.
なお、外部メモリ装置7.8は、待機系の計算機2の電
源が一旦断した後に、再投入されたような場合、あるい
は初期化の場合などに等値化要求信号79a、79bを
出力する。この等値化要求信号79a、79bを受けた
主系CPUI 1は、実作業メモリ12の全領域の内容
を読出して、外部バス65に出力する。従って、外部メ
モリ装置8の待避メモリ63に主系の計算ifの実作業
メモリ12の内容が転写されることになる。さらに、待
機系CPU21が待避メモリ63の内容を、実作業メモ
リ22に転写する。これによって、実作業メモリ12.
22間の内容の同一性は確保される。Note that the external memory device 7.8 outputs equalization request signals 79a and 79b when the power of the standby computer 2 is turned off and then turned on again, or when initialization is performed. Upon receiving the equalization request signals 79a and 79b, the main CPU 1 reads out the contents of the entire area of the actual working memory 12 and outputs them to the external bus 65. Therefore, the contents of the actual working memory 12 of the main system calculation if are transferred to the save memory 63 of the external memory device 8. Further, the standby CPU 21 transfers the contents of the save memory 63 to the actual working memory 22. This allows the actual working memory 12.
The sameness of content between 22 is ensured.
また、上記実施例において、再計算機1.2の動作監視
を外部メモリ装置7.8上で行っているとしたが、独立
したハードウェアで実現してもよい。Further, in the above embodiment, the operation monitoring of the recomputer 1.2 is performed on the external memory device 7.8, but it may be realized by independent hardware.
そして、外部メモリ装置8がモジュール実行終了情報を
検出して、待機系の計算機2に割り込み要求を発生する
ようにしたが、待機系の計算機2が外部メモリ装置8の
待避メモリ63の該当領域をポーリングする構成として
もよい。Then, the external memory device 8 detects the module execution end information and issues an interrupt request to the standby computer 2, but the standby computer 2 uses the corresponding area of the save memory 63 of the external memory device 8. A polling configuration may also be used.
また、モジュールに対応して設けられているソースアド
レステーブルは、待避メモリ63内に設けてもよいし、
待機系の計算機2内のメモリに設けてもよい。Further, the source address table provided corresponding to the module may be provided in the save memory 63, or
It may be provided in the memory within the standby computer 2.
また、スイッチ回路64a、64bに代えて、二重化実
行判定回路77.18の判定結果にもとづいて、自動的
に2つの差動アンプ回路61.62がイネーブル/ディ
スエーブルとなるように構成してもよい。Alternatively, instead of the switch circuits 64a and 64b, the two differential amplifier circuits 61 and 62 may be configured to be automatically enabled/disabled based on the determination result of the duplication execution determination circuit 77.18. good.
第4図はこの発明の第2の実施例による二重系計算機シ
ステムの計算al、2および外部メモリ装置7.8の構
成を示すブロック図である。図において、71.72は
それぞれ外部メモリ装置7゜8に設けられたマイクロプ
ロセッサ(μ−P)、73.74はそれぞれデータ転送
方向を選択するセレクタ、75.76はデータの一時待
避用の待避メモリ、77.78は二重化実行判定回路、
79a、79bは等値化要求信号である。その他のもの
は同一符号を付して第2図に示したものと同−のもので
ある。FIG. 4 is a block diagram showing the configuration of the calculation al, 2 and external memory device 7.8 of the dual computer system according to the second embodiment of the present invention. In the figure, 71 and 72 are microprocessors (μ-P) provided in the external memory device 7.8, 73 and 74 are selectors that select the data transfer direction, and 75 and 76 are temporary savers for data. Memory, 77.78 is a duplication execution determination circuit,
79a and 79b are equalization request signals. Other parts are designated by the same reference numerals and are the same as those shown in FIG.
次に動作について説明する。外部メモリ装置7゜8は前
実施例の場合と同様に計算機1.2の動作監視と入出力
バス使用許可制御とを行う。Next, the operation will be explained. The external memory device 7.8 monitors the operation of the computer 1.2 and controls the use of the input/output bus as in the previous embodiment.
次に計算機1を主系、計算機2を待機系として、データ
およびモジュール実行情報の転写制御について説明する
。主系CPLJIIは実作業メモリ12にデータを書込
み、そのデータとそのデータが格納されるアドレスとを
示すデータ/アドレス情報を、セレクタ73を介して待
避メモリ75に書込む。そして、あるモジュールの実行
が終了した時には、さらに、そのモジュールのモジュー
ル実行終了情報を含む全モジュールのモジュール実行情
報を待避メモリ75に書込む、ここでは、主系CPUI
Iと計算機lのプログラムとでモジュール情報出力手
段が実現されている。また、待避メモリ75の格納の様
子を第5図に示す。第5図に示した例では、実行中のモ
ジュールのモジュール番号81、格納されているデータ
数82、データ/アドレス情報83およびモジュール実
行情報84の各領域で構成されている。μmP71はモ
ジュール実行情報84をチエツクして、どれかのモジュ
ールの実行終了を検出すると、待避メモリ75の中のそ
のモジュールに関するデータ/アドレス情報とモジュー
ル実行情報とを、セレクタ73.74を通して外部メモ
リ装置8の待避メモIJ76に転写する。そして、待機
系CPU21がセレクタ74を介して、待避メモリ76
のデータ/アドレス情報を入力し、これらの情報にもと
づいて、待機系の計算機2の実作業メモリ22の該当す
るアドレスにデータを書込む。ここで、待機系cPU2
1と計算Ja2のプログラムとでモジュール情報転写手
段が実現されている。以上のようにして、実行が終了し
たモジュールに関わるデータおよび最新のモジュール実
行情報が待機系の計算機2の実作業メモリ22において
も更新されたことになる。なお、初期化等の場合に、等
値化要求信号79a、79bを契機として、両方の実作
業メモリ12.22間の同一性が確立されることは第1
の実施例の場合と同様である。ただし、本実施例の場合
には、待避メモリ75.76の容量は実作業メモリ12
.22の容量よりも小さくてもよいので、待避メモリ7
5.76が複数回使用されて等値化が完了する。Next, the transfer control of data and module execution information will be described with computer 1 as the main system and computer 2 as the standby system. The main CPLJII writes data to the actual working memory 12, and writes data/address information indicating the data and the address where the data is stored to the save memory 75 via the selector 73. When the execution of a certain module is completed, the module execution information of all the modules including the module execution completion information of that module is further written to the save memory 75. Here, the main CPU
Module information output means is realized by I and the program of computer I. Moreover, the state of storage in the save memory 75 is shown in FIG. In the example shown in FIG. 5, the area includes a module number 81 of the module being executed, the number of stored data 82, data/address information 83, and module execution information 84. When μmP 71 checks module execution information 84 and detects the completion of execution of any module, it transfers the data/address information and module execution information regarding that module in save memory 75 to an external memory device through selectors 73 and 74. Transfer it to the save memo IJ76 of 8. Then, the standby CPU 21 uses the save memory 76 via the selector 74.
data/address information is input, and based on this information, data is written to the corresponding address in the actual working memory 22 of the standby computer 2. Here, standby cPU2
A module information transfer means is realized by the program 1 and Calculation Ja2. As described above, the data related to the module whose execution has ended and the latest module execution information are also updated in the actual working memory 22 of the standby computer 2. In addition, in the case of initialization, etc., it is the first thing to establish the identity between both actual working memories 12.22, triggered by the equalization request signals 79a and 79b.
This is the same as in the embodiment. However, in the case of this embodiment, the capacity of the save memory 75 and 76 is the actual working memory 12.
.. It may be smaller than the capacity of 22, so the backup memory 7
5.76 is used multiple times to complete the equalization.
なお、上記実施例では、μmP71が主系の外部メモリ
装置7の待避メモリ75の内容を他方の待避メモリ76
に転写するようにしたが、待機系の外部メモリ装置8の
p−PI3が転写するようにしてもよく、同様の効果を
奏する。In the above embodiment, μmP71 saves the contents of the save memory 75 of the main external memory device 7 to the save memory 76 of the other side.
Although the p-PI 3 of the standby external memory device 8 may perform the transfer, the same effect can be obtained.
また、再計算機1.2の動作監視を独立したハードウェ
アで構成できることは、第1の実施例の場合と同様であ
る。Further, as in the case of the first embodiment, the operation monitoring of the recomputer 1.2 can be configured with independent hardware.
第6図(A)〜(C)は、2つのモジュール(モジュー
ルAおよびモジュールB)が、主系の計算機lで実行さ
れる様子を示す説明図である。第6図(A)はモジュー
ルA実行中に、それよりも優先度の高いモジュールBの
動作要求が発生し、モジュールAの実行を中断して(W
A I T状態となり)、モジュールBが実行されるこ
とを示している。そして、モジュールBの実行が完了し
た後に、モジュールへの実行が再開されることを示して
いる。FIGS. 6A to 6C are explanatory diagrams showing how two modules (module A and module B) are executed on the main computer l. Figure 6 (A) shows that while module A is being executed, an operation request for module B, which has a higher priority, occurs, and the execution of module A is interrupted (W
AIT state), indicating that module B is executed. It also indicates that after the execution of module B is completed, execution of the module will be resumed.
図中、モジュールの実行開始点を「S」と、実行終了点
を「EJと示している。また第6図(B)は、第6図(
A)に示されたものを、時間軸を正しくして表示したも
のである。図中、a、 b、 cで示した3ケ所の
それぞれの個所で、主系の計算機1に異常が発生した時
に、待機系の計算機2で認識しうる状況を、第6図(C
)に示している。In the figure, the execution start point of the module is shown as "S", and the execution end point is shown as "EJ".
This is a representation of what was shown in A) with the time axis corrected. Figure 6 (C
).
例えばa点で異常が発生した場合に、既述のように、計
算機2で正確にa点からモジュールAの実行を継続する
ことは困難であるので、第1もしくは第2の実施例のよ
うにモジュールAの先頭から実行すればよい、つまり、
第6図(C)に示すようなモジュール・ステータスをみ
れば、モジュールA、モジュールBともに5TART前
状態ということになるが、第1および第2の実施例にお
いてはモジュールAが走行中であるという情報がモジュ
ール実行情報中に存在するので、計算機2はモジュール
への先頭から実行すればよいことが、直ちに認識できる
。また、モジュールAのデータは第1の実施例における
待避メモリ63において、また、第2の実施例における
待避メモリ75゜76においてもモジュールAの5TA
RT前状態のままであり、従って、計算機2の実作業メ
モリ22において未更新である。つまり、従来の場合と
は異なり、モジュールAの先頭からa点までに計算機l
の実作業メモリ12において更新されたデータは、計算
機2の実作業メモリ22には影響を与えていない。そこ
で、計算機2でモジュールへの先頭から実行しても、結
果に矛盾を生じることはない。For example, if an abnormality occurs at point a, it is difficult for computer 2 to continue executing module A accurately from point a, as described above. Just execute from the beginning of module A, that is,
Looking at the module status shown in FIG. 6(C), both module A and module B are in the pre-5TART state, but in the first and second embodiments, module A is running. Since the information is present in the module execution information, the computer 2 can immediately recognize that it only needs to execute from the beginning of the module. Furthermore, the data of module A is stored in the 5TA of module A in the save memory 63 in the first embodiment and also in the save memories 75 and 76 in the second embodiment.
It remains in the pre-RT state, and therefore has not been updated in the actual working memory 22 of the computer 2. In other words, unlike the conventional case, the computer l from the beginning of module A to point a
The data updated in the actual working memory 12 of the computer 2 does not affect the actual working memory 22 of the computer 2. Therefore, even if the computer 2 executes the module from the beginning, there will be no inconsistency in the results.
以上のように、この発明によれば、二重系計算機システ
ムを、主系の計算機が、あるモジュールを実行終了した
時点で、そのモジュールに関するデータと全モジュール
のモジュール実行情報とを待機系の計算機に伝えるよう
に構成したので、計算機の切換えに際して、実質的に連
続性が保証できるものが得られる効果がある。As described above, according to the present invention, in a dual-system computer system, when the main computer finishes executing a certain module, data regarding that module and module execution information of all modules are transferred to the standby computer. Since the configuration is configured so that the information is transmitted, there is an effect that continuity can be substantially guaranteed when switching computers.
第1図はこの発明の一実施例による二重系計算機システ
ムを示す構成図、第2図はこの発明の第1の実施例にお
ける計算機および外部メモリ装置の構成を示すブロック
図、第3図は第2図に示した外部メモリ装置の詳細な構
成を示すブロック図、第4図はこの発明の第2の実施例
における計算機および外部メモリ装置の構成を示すブロ
ック図、第5図は第4図に示した待避メモリの内容を示
す説明図、第6図(A)〜(C)はモジュールの実行状
態を説明する説明図、第7図は従来の二重系計算機シス
テムを示す構成図、第8図は第7図に示した計算機およ
び二重化制御装置の構成を示すブロック図である。
1、 2はモジュール情報転写手段またはモジュール情
報転写手段およびモジュール情報出力手段を有する計算
機、7,8は外部メモリ装置、61は差動アンプ送信回
路(第1のインタフェース回路)、62は差動アンプ受
信回路(第2のインタフェース回路)、63.75 7
6は待避メモリ、71.72はマイクロプロセッサ(μ
−P)である。
なお、図中、同一符号は同一、又は相当部分を示す。FIG. 1 is a block diagram showing a dual system computer system according to an embodiment of the invention, FIG. 2 is a block diagram showing the structure of a computer and an external memory device in the first embodiment of the invention, and FIG. FIG. 2 is a block diagram showing the detailed configuration of the external memory device shown in FIG. 6(A) to 6(C) are explanatory diagrams illustrating the execution states of modules. FIG. 7 is a configuration diagram illustrating a conventional dual-system computer system. FIG. 8 is a block diagram showing the configuration of the computer and duplex control device shown in FIG. 7. 1 and 2 are computers having module information transfer means or module information transfer means and module information output means; 7 and 8 are external memory devices; 61 is a differential amplifier transmission circuit (first interface circuit); and 62 is a differential amplifier. Receiving circuit (second interface circuit), 63.75 7
6 is a save memory, 71.72 is a microprocessor (μ
-P). In addition, in the figures, the same reference numerals indicate the same or equivalent parts.
Claims (2)
算機の動作を監視し、どちらか一方の計算機を動作させ
る二重化実行判定回路を有する二重系制御手段とを備え
た待機冗長形の二重系計算機システムにおいて、前記二
重系制御手段は、それぞれが前記各計算機の一方に接続
された2つの外部メモリ装置で構成され、前記各外部メ
モリ装置は、前記各計算機が有する実作業メモリのメモ
リ容量と、少なくとも同じ容量の待避メモリと、接続さ
れている前記計算機のバス上のデータをバッファを介し
て、他方の外部メモリ装置に対して出力する第1のイン
タフェース回路と、この第1のインタフェース回路と択
一的に動作可能状態となり、前記他方の外部メモリ装置
から供給されたデータをバッファを介して前記待避メモ
リに与える第2のインタフェース回路とを備え、前記各
計算機は、待機時に、他方の計算機が出力した、あるモ
ジュールのモジュール実行終了情報を検出し、接続され
ている前記外部メモリ装置の待避メモリから、モジュー
ル実行情報および前記モジュールに関する更新データを
取り込んで、自身の前記実作業メモリに転写するモジュ
ール情報転写手段を有することを特徴とする二重系計算
機システム。(1) A standby redundant dual system system that includes two computers that share an input/output device and a dual system control means that has a duplex execution determination circuit that monitors the operations of these computers and operates one of the computers. In the multiple computer system, the dual system control means is composed of two external memory devices each connected to one of the computers, and each of the external memory devices stores the actual working memory of each computer. a save memory having at least the same capacity as the memory capacity; a first interface circuit that outputs data on the bus of the connected computer to the other external memory device via a buffer; a second interface circuit that becomes operable alternatively to the interface circuit and supplies data supplied from the other external memory device to the save memory via a buffer; Detects the module execution completion information of a certain module output by the other computer, imports the module execution information and updated data regarding the module from the save memory of the connected external memory device, and stores it in its own actual working memory. A dual-system computer system characterized by having a module information transfer means for transferring module information to a computer.
算機の動作を監視し、どちらか一方の計算機を動作させ
る二重化実行判定回路を有する二重系制御手段とを備え
た待機冗長形の二重系計算機システムにおいて、前記二
重系制御手段は、それぞれが前記各計算機の一方に接続
された2つの外部メモリ装置で構成され、前記各外部メ
モリ装置は、接続されている前記計算機が出力したデー
タを一時待避する待避メモリと、前記データ中に存在す
るモジュール実行終了情報を検出して、他方の外部メモ
リ装置へ前記待避メモリ内のデータを転送するマイクロ
プロセッサとを備え、前記各計算機は、稼動中には、計
算機内の実作業メモリに更新データを書込む際に、接続
されている前記外部メモリ装置にこの更新データをアド
レスとともに出力し、かつ、あるモジュールの実行終了
時に前記モジュール実行終了情報を含むモジュール実行
情報を出力するモジュール情報出力手段と、待機時に、
接続されている前記外部メモリ装置の待避メモリからデ
ータを取り込んで、このデータ中のアドレスにもとづい
て、自身の前記実作業メモリに前記更新データおよびモ
ジュール実行情報を転写するモジュール情報転写手段と
を有することを特徴とする二重系計算機システム。(2) A standby redundant dual system system that includes two computers that share an input/output device and a dual system control means that has a duplex execution determination circuit that monitors the operations of these computers and operates one of the computers. In the multiple computer system, the dual system control means is composed of two external memory devices each connected to one of the computers, and each of the external memory devices stores information output from the connected computers. Each computer includes a save memory that temporarily saves data, and a microprocessor that detects module execution completion information present in the data and transfers the data in the save memory to the other external memory device, During operation, when writing updated data to the actual working memory in the computer, this updated data is output to the connected external memory device along with the address, and when the execution of a certain module ends, the execution of the module is terminated. module information output means for outputting module execution information including information; and a module information output means for outputting module execution information including information;
module information transfer means for capturing data from the save memory of the connected external memory device and transferring the update data and module execution information to its own actual working memory based on the address in the data; A dual system computer system characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9729089A JPH02277142A (en) | 1989-04-19 | 1989-04-19 | Duplex computer system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9729089A JPH02277142A (en) | 1989-04-19 | 1989-04-19 | Duplex computer system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02277142A true JPH02277142A (en) | 1990-11-13 |
Family
ID=14188373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9729089A Pending JPH02277142A (en) | 1989-04-19 | 1989-04-19 | Duplex computer system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02277142A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04320539A (en) * | 1991-04-19 | 1992-11-11 | Mitsubishi Electric Corp | Arithmetic unit |
-
1989
- 1989-04-19 JP JP9729089A patent/JPH02277142A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04320539A (en) * | 1991-04-19 | 1992-11-11 | Mitsubishi Electric Corp | Arithmetic unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6327670B1 (en) | Duplex processor with an update bus and method for operating the update bus | |
KR100285956B1 (en) | Apparatus and method for controlling synchronous and asynchronous devices connected to high speed serial bus | |
US6389554B1 (en) | Concurrent write duplex device | |
JPH06131244A (en) | Asynchronous access method for shared memory | |
KR0175742B1 (en) | High speed data transmission device for operation separation in redundant systems | |
JPS6119061B2 (en) | ||
JPH02277142A (en) | Duplex computer system | |
JPH11191073A (en) | Pci bus processor | |
US7916146B1 (en) | Halt context switching method and system | |
JP3162459B2 (en) | Data processing device | |
JPH0281255A (en) | multiprocessor computer complex | |
JPH0324634A (en) | Double system device | |
JP3141948B2 (en) | Computer system | |
JP2693627B2 (en) | Redundant system of programmable controller | |
JPS60157643A (en) | Duplex structure computer | |
JPS641809B2 (en) | ||
JPS6119060B2 (en) | ||
JP2001167047A (en) | Bridge device | |
KR100431467B1 (en) | System of Duplicating between Two Processors and Managing Method thereof | |
JP2824110B2 (en) | Bus communication control method for information systems | |
JP2679440B2 (en) | Information processing device | |
JP3086245B2 (en) | Other system access designation device | |
JP2825589B2 (en) | Bus control method | |
JPH01316851A (en) | Channel control system | |
JPS63155254A (en) | Information processor |