JP2005258576A - Duplex cpu switching system - Google Patents
Duplex cpu switching system Download PDFInfo
- Publication number
- JP2005258576A JP2005258576A JP2004066032A JP2004066032A JP2005258576A JP 2005258576 A JP2005258576 A JP 2005258576A JP 2004066032 A JP2004066032 A JP 2004066032A JP 2004066032 A JP2004066032 A JP 2004066032A JP 2005258576 A JP2005258576 A JP 2005258576A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- register
- bit
- standby
- switching
- 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
Images
Landscapes
- Hardware Redundancy (AREA)
Abstract
Description
この発明は、CPUを二重に構成し運用系、待機系として動作させ、障害時に切り替えを行う二重系CPU切替システムに関するものである。 The present invention relates to a dual CPU switching system in which CPUs are configured in a dual manner to operate as an active system and a standby system and perform switching when a failure occurs.
従来の二重系CPU切替システムにおいては、2つの情報処理装置と系切替手段から構成されている。まず、運用系か待機系かを決める系指示信号により運用系として動作する情報処理装置と待機系として操作する情報処理装置を決める。系切替手段は、これら2系の情報処理装置の稼動中、系切替要求レベル信号と系切替受付レベル信号に基づき、これらのレベルを比較する。この比較で、運用系の切替要求レベルが待機系の系切替受付レベルより小さい場合は、リカバリ指示信号を送出して、運用系のリカバリ処理を行って、そのまま運用系の運用を継続させる。また、系切替要求レベルが系切替受付レベルより大きい場合は、系切替指示信号を送出して系切替を行い、系切替要求レベルと系切替受付レベルが共に運用不可のレベルであった場合はシステムダウンとなる(例えば、特許文献1参照)。 The conventional dual CPU switching system is composed of two information processing devices and system switching means. First, an information processing apparatus that operates as an active system and an information processing apparatus that operates as a standby system are determined by a system instruction signal that determines whether the system is an active system or a standby system. The system switching means compares these levels based on the system switching request level signal and the system switching acceptance level signal during operation of these two systems of information processing devices. In this comparison, if the active system switch request level is lower than the standby system switch acceptance level, a recovery instruction signal is transmitted, the active system recovery process is performed, and the operation of the active system is continued as it is. If the system switching request level is higher than the system switching acceptance level, a system switching instruction signal is sent to perform system switching. If both the system switching request level and the system switching acceptance level are inoperable levels, the system It becomes down (for example, refer patent document 1).
従来の二重系CPU切替システムでは、系切替を実施するまでに5種の信号をやりとりし、また、通信する手段を設ける必要がある。また、系切替が実施されるまでに煩雑なアルゴリズムが必要となる。 In a conventional dual system CPU switching system, it is necessary to provide means for exchanging five types of signals and performing communication before system switching is performed. In addition, a complicated algorithm is required until system switching is performed.
この発明は、上記のような問題点を解決するためになされたもので、調停回路の結果を各CPUが判断し、そのCPU自身が自分の系が「運用系」か「待機系」か、を判断することによって構成を簡素化し、信号の通信をやり取りする手段を必要としない簡易な二重系CPU切替システムを提供することを目的とする。 The present invention has been made to solve the above-described problems. Each CPU determines the result of the arbitration circuit, and whether the CPU itself is “active” or “standby”. It is an object of the present invention to provide a simple dual CPU switching system that does not require means for exchanging signals by simplifying the configuration by determining the above.
この発明に係る二重系CPU切替システムにおいては、CPUが運用化要求ビットをセットする第1のレジスタと、前記第1のレジスタのビット内容により運用系または待機系を決める調停結果ビット生成する調停回路と、前記調停回路の調停結果ビットがセットされる第2のレジスタとを備える。 In the dual CPU switching system according to the present invention, the CPU generates a first register in which the operation request bit is set, and an arbitration result bit for determining an operating system or a standby system according to the bit contents of the first register. And a second register in which the arbitration result bit of the arbitration circuit is set.
この発明によれば、二重系CPU切替システムの切替制御をCPU間で特別な信号のやり取りや、複雑なアルゴリズムを必要とせず、簡単な構成で実現できる。 According to the present invention, the switching control of the dual CPU switching system can be realized with a simple configuration without requiring a special signal exchange between the CPUs or a complicated algorithm.
実施の形態1.
図1は、この発明を実施するための実施の形態1における二重系CPU切替システムを示すものである。図1において、CPU1とCPU2のそれぞれに運用化要求を立てるレジスタ1a、2aと運用・待機ステータスを示すレジスタ1b、2bおよびハードウェアまたはプログラムの実行の異常を検出するためのウォッチドッグタイマ(Watch Dog Timer、以下WDTという)カウンタ1c、2cを示し、調停回路3において、両CPU1、2の運用系か待機系かを調停する。また、図2は、系状態判断処理を示すフローチャートである。
以下、図1と図2をもとに、動作について説明する。まず、電源投入後、CPU1とCPU2は運用化要求をするため、レジスタ1aとレジスタ2aにビットをセットする。調停回路3は、CPU1またはCPU2からの運用化要求4a、4bを受け、調停し、運用系となったCPUに対し運用を示す調停結果ビット5a、5bを運用または待機ステータスを示すレジスタ1b、2bにセットする。具体的には、電源投入後、早く運用化要求をレジスタ1a、1bにセットした方のCPUに運用系としてのビットを、他方のCPUを待機系としての反転ビットを、調停結果ビットとしてセットする。
以下では、CPU1の方が、いち早くレジスタ1aに運用化要求ビットを立てたとして説明する。調停回路3は、レジスタ1aからの運用化要求4aを受け、運用を示すビットをレジスタ1bに立てるとともに、CPU2の運用・待機ステータスを示すレジスタ2bにはレジスタ1bに立てたビットの反転ビットを立てる。一方、CPU2からの運用化要求4bは無視される。そして、CPU2は運用・待機ステータスを示すレジスタ2bにすでに反転ビットが立っているため、待機系として動作する。
FIG. 1 shows a dual CPU switching system according to Embodiment 1 for carrying out the present invention. In FIG. 1, registers 1a and 2a for making operational requests to
The operation will be described below with reference to FIGS. First, after the power is turned on, the
In the following description, it is assumed that the
CPU1は運用化要求実施後(ステップST1)、運用/待機ステータスを示すレジスタ1bにセットされたビットをループしながらチェックし(ステップST2)、運用がセットされていれば、そのままループを抜けてCPUの立ち上げ処理(ステップST4)へと移行する。待機系となったCPU2も同様に運用・待機ステータスを示すレジスタ2bを見て、運用を示すビットがレジスタ2bにセットされるまで、WDTカウンタ2cをリセットしながらループを実行する(ステップST3)。運用系のCPU1において、CPU障害が発生し、WDTカウンタ1cをリセットできない状態に陥った場合には、H/W的に自動でリセットを実施する。リセットが行われたCPU1の運用化要求はH/W的に要求を取り下げのレベルへビットをセットする。このビットのセットは、運用化要求のレジスタ1aのビットを反転させることである。調停回路3は、このビット反転にもとづいて、待機系であるCPU2の運用・待機ステータスを示すレジスタ2bにすでに立っているビットを反転させて、運用を開始させる。一方、CPU1の運用・待機を示すレジスタ1bに調停結果ビット5aのビットを反転させてセットする。
また、運用系であるCPU1が障害を検知し自立的に切替を行う場合には、運用化要求を示すレジスタ1aにセットされているビットを取り下げ側にセットする。運用化要求4aが取り下げ側にビットセットされるので、調停回路3は、CPU1のレジスタ1bのビットを反転させ、CPU1を待機系とする。また、同時に、CPU2のレジスタ2bに立っているビット(待機を示すビットである)を反転させ、運用系とする。
After executing the operation request (step ST1), the
In addition, when the
このように構成された二重系CPU切替システムにおいては、CPUのレジスタにセットされる運用化要求ビットを調停回路が見て、CPUの運用化要求を調停し、その結果をCPUの運用・待機ステータスを示すレジスタに運用または待機ビットを立てて、運用系または待機系となるCPUを決めているので、複雑なアルゴリズムを必要としない簡単な構成で系の切替ができる。 In the dual CPU switching system configured as described above, the arbitration circuit looks at the operation request bit set in the CPU register, arbitrates the CPU operation request, and the result is the CPU operation / standby. Since the operation or standby bit is set in the register indicating the status and the CPU to be the active or standby system is determined, the system can be switched with a simple configuration that does not require a complicated algorithm.
実施の形態2.
なお、実施の形態1では、調停回路がCPUの運用要求のレジスタをみて切り替えるようにしたが、図3に示すように調停回路3にCPU障害レジスタ3aを設けることにより、障害が区別できる。すなわち、CPUが障害を起こすとWDTカウンタがかかりH/W的な調停回路により系が切り替わるが、CPU障害レジスタ3aを設けることにより、相手がCPU障害で切り替わったかどうかを判別できる。このCPU障害レジスタ3aの内容は、CPU1およびCPU2から読むことができ、系切替をする前にS/WにてCPU障害レジスタ3aに相手の系番号を書き込んでから自分の系のリセットを行う。系が切り替わった後、新運用系になったCPU1(またはCPU2)がCPU障害レジスタ3aをチェックすることにより、S/Wの介在しない切り替え(CPU障害によるWDTカウンタのリセット)の場合、CPU障害レジスタ3aの値は他系すなわちCPU2(CPU1)の番号になっている。また、S/Wの介在する切り替え(CPU自ら系切り替えを実施)の場合、CPU障害レジスタ3aの値はデフォルト値か自系の値となる。したがって、運用系となったCPUがこのCPU障害レジスタ3aの内容をチェックすれば、待機系となった元運用系CPUが、CPU障害によって切り替わったのか、CPU自ら切り替えたのかが分かり障害内容が確認できる。
In the first embodiment, the arbitration circuit switches between the CPU operation request registers, but the fault can be distinguished by providing the
このように、各CPUの番号を書き込めるCPU障害レジスタを調停回路に設けることによって、CPU障害レジスタを確認することにより、障害の内容が把握でき適切な処理が可能となる。 As described above, by providing the CPU failure register in which the number of each CPU can be written in the arbitration circuit, by checking the CPU failure register, the contents of the failure can be grasped and appropriate processing can be performed.
1 CPU、1a,1b レジスタ、1c WDTカウンタ、2 CPU、2a,2b レジスタ、2c WDTカウンタ、3 調停回路、3a CPU障害レジスタ。 1 CPU, 1a, 1b register, 1c WDT counter, 2 CPU, 2a, 2b register, 2c WDT counter, 3 arbitration circuit, 3a CPU fault register.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004066032A JP2005258576A (en) | 2004-03-09 | 2004-03-09 | Duplex cpu switching system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004066032A JP2005258576A (en) | 2004-03-09 | 2004-03-09 | Duplex cpu switching system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005258576A true JP2005258576A (en) | 2005-09-22 |
Family
ID=35084256
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004066032A Pending JP2005258576A (en) | 2004-03-09 | 2004-03-09 | Duplex cpu switching system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005258576A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8086776B2 (en) * | 2005-03-30 | 2011-12-27 | Canon Kabushiki Kaisha | Device for arbitrating bus accesses and method for controlling same |
-
2004
- 2004-03-09 JP JP2004066032A patent/JP2005258576A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8086776B2 (en) * | 2005-03-30 | 2011-12-27 | Canon Kabushiki Kaisha | Device for arbitrating bus accesses and method for controlling same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7085959B2 (en) | Method and apparatus for recovery from loss of lock step | |
WO2019136595A1 (en) | Method for handling i2c bus deadlock, electronic device, and communication system | |
JP2009540436A (en) | SAS expander to isolate obstacles | |
JP6098778B2 (en) | Redundant system, redundancy method, redundancy system availability improving method, and program | |
JP2006338380A (en) | Information processor and its control method | |
EP3360044A1 (en) | System and method for providing operating system independent error control in a computing device | |
WO2016033755A1 (en) | Task handling apparatus and method, and electronic device | |
JP2006079345A (en) | Microcomputer | |
JP2006244382A (en) | Microprocessor | |
JP2003296133A (en) | Controller | |
JP3891994B2 (en) | System and method for draining an in-order queue | |
JP2005258576A (en) | Duplex cpu switching system | |
JP2016206891A (en) | Access interruption circuit, semiconductor integrated circuit, and access interruption method | |
JP4572138B2 (en) | Server apparatus, server system, and system switching method in server system | |
US7243257B2 (en) | Computer system for preventing inter-node fault propagation | |
JP2016126409A (en) | Information processing device, information processing system and communication device | |
JP2005316679A (en) | Parallel arithmetic processor | |
JP4507875B2 (en) | Multiplexer and legacy device multiplexing method | |
KR100388961B1 (en) | data restoring control device of the flash ROM in the information processing system | |
JP2004013723A (en) | Device and method for fault recovery of information processing system adopted cluster configuration using shared memory | |
JPH10207586A (en) | Power-off control system for computer | |
JP2008009518A (en) | Dual operation system | |
JP2007052685A (en) | Microcontroller | |
JP2998804B2 (en) | Multi-microprocessor system | |
JPH0652130A (en) | Multiprocessor system |