JP2806843B2 - Multi-CPU system and its software update method - Google Patents

Multi-CPU system and its software update method

Info

Publication number
JP2806843B2
JP2806843B2 JP7307387A JP30738795A JP2806843B2 JP 2806843 B2 JP2806843 B2 JP 2806843B2 JP 7307387 A JP7307387 A JP 7307387A JP 30738795 A JP30738795 A JP 30738795A JP 2806843 B2 JP2806843 B2 JP 2806843B2
Authority
JP
Japan
Prior art keywords
software
board
cpu
flag
update
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.)
Expired - Fee Related
Application number
JP7307387A
Other languages
Japanese (ja)
Other versions
JPH09146902A (en
Inventor
博文 山際
Original Assignee
埼玉日本電気株式会社
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 埼玉日本電気株式会社 filed Critical 埼玉日本電気株式会社
Priority to JP7307387A priority Critical patent/JP2806843B2/en
Publication of JPH09146902A publication Critical patent/JPH09146902A/en
Application granted granted Critical
Publication of JP2806843B2 publication Critical patent/JP2806843B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Stored Programmes (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はマルチCPUシステ
ム及びそのソフトウェア更新方法に関し、特に複数のC
PUボードと外部メモリボードとを外部バスを通して相
互に接続し、前記各CPUボードが前記外部メモリボー
ド内のソフトウェアを自己の内部メモリに読み込み実行
するマルチCPUシステムと、そのシステム運用中にお
けるソフトウェアの更新方法とに関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a multi-CPU system and a software updating method thereof, and more particularly to a multi-CPU system.
A multi-CPU system in which a PU board and an external memory board are connected to each other through an external bus, and each of the CPU boards reads software in the external memory board into its own internal memory and executes the software; And how to.

【0002】[0002]

【従来の技術】従来、複数のCPUボードと外部メモリ
ボードを有し、各CPUボード起動時に外部バスを通し
て外部メモリボードからソフトウェアを自分の内部メモ
リに読み込み実行するマルチCPUシステムにおいて、
CPUボード内部のメモリに読み込まれているソフトウ
ェアを更新する時は、外部メモリボードにソフトウェア
を更新後、マルチCPUシステムにシステムリセットを
かけ、システムを再起動させている。よって、システム
リセット解除後、図示していないバス調停手段の制御の
下に1枚ずつCPUボードが外部メモリボードよりソフ
トウェアを読み込み、全CPUボードが読み込み終了後
ソフトウェアを実行している。図4にこの従来のマルチ
CPUシステムにおけるソフトウェア更新のフローチャ
ートを示す。
2. Description of the Related Art Conventionally, in a multi-CPU system having a plurality of CPU boards and an external memory board, when each CPU board is started, software is read from the external memory board to its own internal memory via an external bus and executed.
When updating the software loaded in the memory inside the CPU board, after updating the software to the external memory board, a system reset is performed on the multi-CPU system to restart the system. Therefore, after the system reset is released, the CPU board reads the software from the external memory board one by one under the control of the bus arbitration unit (not shown), and all the CPU boards execute the software after the reading is completed. FIG. 4 shows a flowchart of software update in this conventional multi-CPU system.

【0003】[0003]

【発明が解決しようとする課題】この従来のマルチCP
Uシステムでは、ソフトウェア更新を行う際、図4に示
したように外部メモリボードにソフトウェアBを変更
後、各CPUボードの内部メモリに読み込まれているソ
フトウェアを更新する手段として、システムリセットを
かけてCPUボードを再起動させているので、必ず運用
中のマルチCPUシステムがシステムダウンとなる。ま
た、CPUボードと外部メモリを接続する外部バスが1
本しかないため、システムリセット解除後各CPUボー
ドが外部バスを順番に使いソフトフウェアを更新せざる
を得ないので、システムダウンの時間が長くなる。
SUMMARY OF THE INVENTION The conventional multi-CP
In the U system, when performing software update, as shown in FIG. 4, after changing software B to an external memory board, a system reset is performed as a means for updating software read in the internal memory of each CPU board. Since the CPU board is restarted, the operating multi-CPU system always goes down. Also, there is one external bus connecting the CPU board and the external memory.
Since there is only a book, each CPU board is forced to use the external bus in order to update the software after the system reset is released, so that the system down time is prolonged.

【0004】本発明は上記問題点に着目してなされたも
のであり、その目的はシステムダウンさせることなく各
CPUボードのソフトウェアを更新し、実行することを
可能とするマルチCPUシステム及びそのソフトウェア
更新方法を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to provide a multi-CPU system capable of updating and executing software of each CPU board without causing a system down, and a software update thereof. It is to provide a method.

【0005】[0005]

【課題を解決するための手段】本発明のマルチCPUシ
ステムは;複数のCPUボードと外部メモリボードとを
外部バスを通して相互に接続し、前記各CPUボードが
前記外部メモリボード内のソフトウェアを自己の内部メ
モリに読み込み実行するマルチCPUシステムにおい
て;前記外部ボード内のソフトウェアが更新されたこと
を表示するための更新フラグと、前記各CPUボード対
応に設けられた自ボードがメインCPUボードに確定し
たことを表示するためのメインCPU確定フラグ及び自
ボードの更新後のソフトウェアの読み込み終了を表示す
るためのソフトウェア読み込み終了フラグとを備え;前
記外部メモリボードが、内蔵するソフトウェアが更新さ
れたことを検出すると前記更新フラグに表示し;前記更
新フラグにより前記外部メモリボードのソフトウェア更
新を検出した前記各CPUボードのうちいずれか1つの
CPUボードが、あらかじめ指定された選択規則に基づ
いてメインCPUボードとなり自ボードの前記メインC
PU確定フラグに表示し、前記ソフトウェア読み込み終
了フラグにより他のすべてのCPUボードにおける更新
後のソフトウェアの読み込み終了を検出するまで更新前
のソフトウェアの実行を継続し、前記他のすべてのCP
Uボードの読み込み終了を検出すると前記更新前のソフ
トウェアの実行を停止し前記メインCPU確定フラグの
表示を取り消すとともに更新後のソフトウェアの前記外
部メモリボードからの読み込み及び実行を開始し;前記
メインCPU確定フラグにより前記メインCPUボード
の確定を検出した前記他のすべてのCPUボードが、そ
れぞれスレーブCPUボードとなり更新前のソフトウェ
アの実行を停止し、順次前記外部メモリボードより更新
後のソフトウェアを読み込み、読み込みを終了すると前
記ソフトウェア読み込み終了フラグに表示し、前記メイ
ンCPUボードによる前記メインCPU確定フラグの表
示が取り消されたことを検出すると前記更新後のソフト
ウェアの実行を開始する構成を有する。
A multi-CPU system of the present invention comprises: a plurality of CPU boards and an external memory board connected to each other through an external bus, and each of the CPU boards executes software in the external memory board by itself; In a multi-CPU system that reads and executes the internal memory; an update flag for indicating that the software in the external board has been updated, and that the own board provided for each CPU board has been determined as the main CPU board And a software read end flag for displaying the end of reading the software after updating the own board; when the external memory board detects that the built-in software has been updated, Displayed on the update flag; Any one of the CPU board of said each CPU board detects a software update parts memory boards, the main C of the board itself becomes a main CPU board based on pre-specified selection rules
Displayed on the PU fixed flag, and continues to execute the software before update until the end of reading the updated software on all other CPU boards is detected by the software read end flag.
Upon detecting the end of reading of the U board, execution of the software before the update is stopped, the display of the main CPU determination flag is canceled, and reading and execution of the updated software from the external memory board are started; All the other CPU boards that have detected the determination of the main CPU board by the flag become slave CPU boards, stop executing the software before updating, sequentially read the updated software from the external memory board, and read the reading. When the processing is completed, the software reading completion flag is displayed, and when it is detected that the display of the main CPU determination flag by the main CPU board is cancelled, the execution of the updated software is started.

【0006】本発明のマルチCPUシステムのソフトウ
ェア更新方法は;複数のCPUボードと外部メモリボー
ドとを外部バスを通して相互に接続し、前記各CPUボ
ードが前記外部メモリボード内のソフトウェアを自己の
内部メモリに読み込み実行するマルチCPUシステムの
システム運用中におけるソフトウェアの更新方法におい
て;前記外部メモリボードのソフトウェアが更新される
とあらかじめ指定された選択規則に基づいて前記複数の
CPUボードのうちいずれか1つのCPUボードをメイ
ンCPUボード、その他のCPUボードをスレーブCP
Uボードとし;前記メインCPUボードにより更新前の
ソフトウェアを継続して実行し運用状態を維持してお
き;前記スレーブCPUボードの各々では更新前のソフ
トウェアの実行を停止し、順次前記外部メモリボードよ
り更新後のソフトウェアを読み込み実行せずに待機し;
すべての前記スレーブCPUボードにおける前記更新後
のソフトウェアの読み込みが完了すると、前記メインC
PUボードの前記更新前のソフトウェアの実行を停止す
るとともに、すべての前記スレーブCPUボードで前記
更新後のソフトウェアの実行を開始し運用状態を引継
ぎ;その後、前記メインCPUボードが前記更新後のソ
フトウェアの読み込み及び実行開始を行う工程を有す
る。
A method for updating software of a multi-CPU system according to the present invention includes the steps of: connecting a plurality of CPU boards and an external memory board to each other through an external bus, wherein each CPU board transfers software in the external memory board to its own internal memory; A method of updating software during a system operation of a multi-CPU system that reads and executes a program; when the software of the external memory board is updated, any one of the plurality of CPU boards is determined based on a selection rule specified in advance. Board as main CPU board, other CPU boards as slave CP
U-board; software before update is continuously executed by the main CPU board to maintain an operation state; execution of software before update is stopped at each of the slave CPU boards, and the slave CPU boards sequentially stop executing the software from the external memory board. Wait without loading and running the updated software;
When reading of the updated software in all the slave CPU boards is completed, the main C
The execution of the software before the update of the PU board is stopped, and the execution of the software after the update is started in all the slave CPU boards to take over the operation state; There is a step of reading and starting execution.

【0007】以上説明したように本発明によれば、外部
メモリのソフトウェア更新を各CPUボードにて確認
し、更新時にメインCPUボードが運用状態を維持し続
け、スレーブCPUボードがソフトウェアを更新し、更
新終了後スレーブCPUボードが更新ソフトウェアを実
行しメインCPUボードがソフトウェアを更新する。こ
のため、リセットによりシステムダウンする必要がな
い。また、システムダウンの時間についても関係なくな
る。
As described above, according to the present invention, the software update of the external memory is confirmed by each CPU board, and at the time of update, the main CPU board keeps operating and the slave CPU board updates the software. After the update is completed, the slave CPU board executes the update software, and the main CPU board updates the software. Therefore, there is no need to bring down the system by resetting. Further, the time of system down does not matter.

【0008】[0008]

【発明の実施の形態】次に本発明について、図面を参照
して説明する。図1は本発明のマルチCPUシステムの
一実施の形態を示すシステム構成図、図2は図1に示す
ソフトウェア更新回路の構成例を示すブロック図、図3
は図1に示すマルチCPUシステムにおけるソフトウェ
ア更新手順例を示すフローチャートである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 is a system configuration diagram showing one embodiment of a multi-CPU system of the present invention, FIG. 2 is a block diagram showing a configuration example of a software update circuit shown in FIG.
3 is a flowchart showing an example of a software update procedure in the multi-CPU system shown in FIG.

【0009】図1において、複数のCPUボード(CP
Uボード1,2,3のみ図示)は各々のCPUの実行ソ
フトウェアを外部メモリボード5から内部メモリ10に
読み込み実行するマルチCPUボードである。外部メモ
リボード5は、CPUの実行ソフトフェアを保持する外
部メモリ50と、外部メモリ50のソフトウェアが更新
されたとき各CPUボードに更新を知らせる更新フラグ
(以下、Kフラグ)51とを有している。外部メモリ5
0としては、ROM,RAM,磁気ディスク,光ディス
ク等があり、ボード上に搭載したり、外付けにしたりす
ることができる。CPUボード1〜3は、Kフラグ認識
時にあらかじめ指定された選択規則に基づいていずれか
1つのCPUボードがメインCPUボードになりメイン
CPUボード確定を表示するメインCPUボード確定フ
ラグ(以下、Mフラグ)を設定し他のすべてのCPUボ
ードに通知する。他のCPUボード(メインCPUボー
ド)から先にMフラグの設定通知を受けたCPUボード
はメインCPUボードにはなれず、スレーブCPUとな
る。スレーブCPUボードとなったCPUボードは外部
メモリボード5からの更新ソフトウェアの読み込み終了
時に読み込み終了を表示するソフトウェア読み込み終了
フラグ(以下、Sフラグ)を設定しメインCPUボード
に通知する。各CPUボード1〜3は、いずれのCPU
ボードでもメインCPUボードになれるように同一構成
を成し、読み込んだソフトウェアを保持する内部メモリ
10と、Kフラグ,Mフラグ,Sフラグを用いて内部メ
モリ10に対する外部メモリ50からのソフトウェアの
更新処理を行うソフトウェア更新回路20とを有してい
る。これら外部メモリボード5及び各CPUボード1〜
3は外部バス6及びKフラグ信号線7を介して相互に接
続され、さらに、各CPUボード1〜3がMフラグ信号
線8及びSフラグ信号線9を介して相互に接続されてい
る。
In FIG. 1, a plurality of CPU boards (CP
The U boards 1, 2, and 3 only are multi-CPU boards that read the execution software of each CPU from the external memory board 5 into the internal memory 10 and execute the software. The external memory board 5 has an external memory 50 that holds software for executing the CPU, and an update flag (hereinafter, K flag) 51 that notifies each CPU board of the update when the software of the external memory 50 is updated. I have. External memory 5
As 0, there are ROM, RAM, magnetic disk, optical disk, etc., which can be mounted on a board or externally attached. One of the CPU boards 1 to 3 becomes a main CPU board based on a selection rule specified in advance when the K flag is recognized, and a main CPU board determination flag (hereinafter, M flag) for displaying the determination of the main CPU board. And notify all other CPU boards. The CPU board that has received the M flag setting notification from another CPU board (main CPU board) first cannot be the main CPU board, but becomes a slave CPU. The CPU board, which has become the slave CPU board, sets a software read end flag (hereinafter, referred to as an S flag) that indicates the end of reading the updated software from the external memory board 5 at the end of reading the updated software, and notifies the main CPU board. Each CPU board 1 to 3
The board also has the same configuration so that it can be used as the main CPU board, and the internal memory 10 for holding the read software and the processing for updating the software from the external memory 50 to the internal memory 10 using the K, M, and S flags And a software update circuit 20 for performing the above. These external memory board 5 and each CPU board 1
3 is connected to each other via an external bus 6 and a K flag signal line 7, and each of the CPU boards 1 to 3 is connected to each other via an M flag signal line 8 and an S flag signal line 9.

【0010】図2において、ソフトウェア更新回路20
は、Kフラグ信号線7上のKフラグの値とMフラグ信号
線8上の他のCPUボードのMフラグの値とをチェック
し自ボードがメインCPUボードになれるかを判定し、
メインCPUボードになれる場合は内蔵するMフラグ2
2をメインCPUボード確定を示す値(論理値〈1〉)
に設定しメインCPU信号MCとして出力し、ソフトウ
ェア更新終了信号KCを受けるとMフラグ22の表示を
取り消しメインCPU信号MCの出力を停止するメイン
CPU選択回路21と、自ボードがメインCPUボード
になったことを他のCPUボードに通知するために自ボ
ードのMフラグ22の値(メインCPU信号MC)をM
フラグ信号線8上に送出するバッファ23と、メインC
PU信号MCとSフラグ信号線9上の他のCPUボード
のSフラグの値とをチェックし、メインCPU信号MC
が入力されていない場合(自ボードがスレーブCPUボ
ードの場合)に内部メモリ10に対するソフトウェア更
新が終了したことを認識すると内蔵するSフラグ25を
更新終了を示す値(論理値〈1〉)に設定し、(自ボー
ドがメインCPUボードの場合に)他のすべてのCPU
ボードにおいてソフトウェアの更新が終了したことを認
識するとソフトウェア更新終了信号KCをメインCPU
選択回路21に出力する更新制御回路24と、自ボード
のSフラグ25の値を他のCPUボードに通知するため
にSフラグ信号線9上に送出するバッファ26とを有し
ている。
In FIG. 2, a software update circuit 20
Checks the value of the K flag on the K flag signal line 7 and the value of the M flag of another CPU board on the M flag signal line 8 to determine whether the own board can be the main CPU board,
Built-in M flag 2 if the main CPU board can be used
2 is the value indicating the determination of the main CPU board (logical value <1>)
And outputs the main CPU signal MC. When the software update end signal KC is received, the display of the M flag 22 is canceled and the output of the main CPU signal MC is stopped. In order to notify the other CPU board of the fact, the value of the M flag 22 of the own board (main CPU signal MC) is set to M
A buffer 23 for sending out on the flag signal line 8;
The PU signal MC and the value of the S flag of the other CPU board on the S flag signal line 9 are checked, and the main CPU signal MC is checked.
Is not input (when the own board is a slave CPU board), and when it is recognized that the software update to the internal memory 10 has been completed, the built-in S flag 25 is set to a value indicating the completion of the update (logical value <1>). And all other CPUs (if your board is the main CPU board)
When the board recognizes that the software update has been completed, it sends a software update end signal KC to the main CPU.
It has an update control circuit 24 that outputs to the selection circuit 21 and a buffer 26 that sends out the value of the S flag 25 of its own board to the S flag signal line 9 to notify other CPU boards.

【0011】Mフラグ信号線8及びSフラグ信号線9は
それぞれCPUボードの数分の本数とすることもできる
が、適切な信号形式を用いることにより、各1本とする
こともできる。この場合、Mフラグ信号線8においては
いずれか1つのCPUボードのMフラグ22が論理値
〈1〉になると直ちに論理値〈1〉が得られ、Sフラグ
信号線9においてはすべてのスレーブCPUボードのS
フラグ25が論理値〈1〉になった場合にのみ論理値
〈1〉が得られるようにする。
The number of the M flag signal lines 8 and the number of the S flag signal lines 9 can be each equal to the number of CPU boards, but can be one each by using an appropriate signal format. In this case, as soon as the M flag 22 of any one of the CPU boards attains the logical value <1> on the M flag signal line 8, the logical value <1> is obtained. S
The logical value <1> is obtained only when the flag 25 becomes the logical value <1>.

【0012】次に、本発明によるソフトウェア更新動作
について、図1,図2とともに図3を参照して詳細に説
明する。図3は一例としてCPUボード1がメインCP
Uボードになった状態を示す。いずれのCPUボードが
メインCPUボードになるかの選択規則は、固定式,回
転式,早い者順,処理余裕度順等任意に設定可能であ
る。
Next, the software updating operation according to the present invention will be described in detail with reference to FIGS. FIG. 3 shows an example in which the CPU board 1 is a main CP.
This shows a state in which the U board is used. The rule for selecting which CPU board is to be the main CPU board can be arbitrarily set, such as fixed type, rotary type, early order, or processing margin order.

【0013】実行ソフトウェアAにて運用中のマルチC
PUシステムにおいて、各ボードのKフラグ51,Mフ
ラグ22,及びSフラグ25はそれぞれ初期値〈0〉に
設定されており、外部メモリボード5の外部メモリ50
のソフトウェアAが周知の何らかの方法によりソフトウ
ェアBに更新されると、Kフラグ51が更新有りを示す
値〈1〉に設定される。各CPUボード1〜3のソフト
ウェア更新回路20は常時Kフラグ信号線7を通してK
フラグ51を監視しており、Kフラグ51が〈1〉にな
ったことことを検出すると、あらかじめ指定された選択
規則に従ってCPUボード1のメインCPU選択回路2
1が動作し、Mフラグ22を自ボードがメインCPUボ
ードに確定したことを示す値〈1〉に設定しMフラグ信
号線8を通してCPUボード2,3へ通知する。CPU
ボード1はMフラグ22設定後、メインCPU信号MC
が更新制御回路24に入力されるため、ソフトウェアの
更新処理を行わずに現在運用中のソフトウェアAを引き
続き実行し続ける。CPUボード2は、ソフトウェア更
新回路20のメインCPU選択回路21がMフラグ信号
線8上のMフラグの値〈1〉を確認後、自己のMフラグ
22を初期値〈0〉のままとしメインCPU信号MCを
更新制御回路24に出力しないので、スレーブCPUボ
ードとして動作し、外部バス6を通して外部メモリ50
の更新ソフトウェアBを内部メモリ10に読み込み、読
み込み終了後にSフラグ25を読み込み終了を示す値
〈1〉に設定してSフラグ信号線9を通してメインCP
Uボード1へ通知し、更新されたソフトウェアBにて待
機する。外部バス6は1本のため、CPUボード2が読
み込み終了後に、CPUボード3が同様に読み込みを開
始する。各CPUボードによる外部メモリからのソフト
ウェアの読み込み処理は従来と同様であり、外部バスの
アクセス調停手段やデータの送受信手段など周知の適切
な技術で実現できるので詳細説明は省略する。
The multi-C operating on the execution software A
In the PU system, the K flag 51, the M flag 22, and the S flag 25 of each board are each set to an initial value <0>, and the external memory 50 of the external memory board 5 is set.
Is updated to software B by any known method, the K flag 51 is set to the value <1> indicating that the software has been updated. The software update circuit 20 of each of the CPU boards 1 to 3
The flag 51 is monitored, and when it is detected that the K flag 51 has become <1>, the main CPU selection circuit 2 of the CPU board 1 according to a selection rule specified in advance.
1 operates, sets the M flag 22 to a value <1> indicating that the own board is determined as the main CPU board, and notifies the CPU boards 2 and 3 through the M flag signal line 8. CPU
After setting the M flag 22, the board 1 sets the main CPU signal MC
Is input to the update control circuit 24, the software A currently in operation is continuously executed without performing the software update process. After the main CPU selection circuit 21 of the software update circuit 20 confirms the value <1> of the M flag on the M flag signal line 8, the CPU board 2 sets the M flag 22 of the CPU board 2 to the initial value <0> and sets the main CPU Since it does not output the signal MC to the update control circuit 24, it operates as a slave CPU board and
Is read into the internal memory 10, and after the reading is completed, the S flag 25 is set to a value <1> indicating the completion of the reading, and the main CP is set through the S flag signal line 9.
Notify the U board 1 and wait for the updated software B. Since there is only one external bus 6, the CPU board 3 similarly starts reading after the CPU board 2 has finished reading. The process of reading the software from the external memory by each CPU board is the same as the conventional one, and can be realized by well-known appropriate techniques such as an external bus access arbitration unit and a data transmission / reception unit, and therefore detailed description is omitted.

【0014】Sフラグ信号線9を通して各CPUボード
2〜3のSフラグ25の値がメインCPUボード1のソ
フトウェア更新制御回路12に入力されている。ソフト
ウェア更新制御回路12は、全スレーブCPUボード2
〜3の更新終了(すべてのSフラグ=〈1〉)を確認す
ると、ソフトウェア更新終了信号KCをメインCPU選
択回路21に出力し自ボードのMフラグ22を〈0〉ク
リアさせメインCPU信号MCの出力を停止させること
により、ソフトウェアAの実行を停止し更新ソフトウェ
アBを読み込む動作に移る。一方、スレーブCPUボー
ドとしてソフトウェアBを更新し、待機中のCPUボー
ド2,3はメインCPUボード1のMフラグ22がクリ
アされたことを検出すると、ソフトウェアAを実行して
いるCPUボードは1つもなくソフトウェアBを実行し
ても問題がないことを認識し、ソフトウェアBを実行す
る。また、CPUボード1は、外部バス6を通して外部
メモリ50の更新ソフトウェアBを内部メモリ10に読
み込み、読み込み終了後、外部メモリボード5のKフラ
グ51を〈0〉クリアし、ソフトウェアBを実行する。
The value of the S flag 25 of each of the CPU boards 2 and 3 is input to the software update control circuit 12 of the main CPU board 1 through the S flag signal line 9. The software update control circuit 12 includes all the slave CPU boards 2
When the update completion of all (3) (all S flags = <1>) is confirmed, the software update completion signal KC is output to the main CPU selection circuit 21 to clear the M flag 22 of the own board to <0>, and the main CPU signal MC is cleared. By stopping the output, the execution of the software A is stopped, and the operation shifts to the operation of reading the updated software B. On the other hand, if the software B is updated as a slave CPU board and the standby CPU boards 2 and 3 detect that the M flag 22 of the main CPU board 1 has been cleared, no CPU board executing the software A The software B recognizes that there is no problem even if the software B is executed, and executes the software B. Further, the CPU board 1 reads the updated software B of the external memory 50 into the internal memory 10 through the external bus 6, and after the reading is completed, clears the K flag 51 of the external memory board 5 to <0> and executes the software B.

【0015】なお、上記説明においてKフラグ情報,M
フラグ情報,及びSフラグ情報は、外部バス6とは別に
設けたKフラグ信号線7,Mフラグ信号線8,及びSフ
ラグ信号線9を介して伝送するようにしているが、適切
な時分割データ伝送手段を用いることにより外部バス6
のみで伝送可能である。
In the above description, the K flag information, M
Although the flag information and the S flag information are transmitted via the K flag signal line 7, the M flag signal line 8, and the S flag signal line 9 provided separately from the external bus 6, an appropriate time division By using data transmission means, the external bus 6
Transmission is possible only by using

【0016】[0016]

【発明の効果】以上説明したように本発明によれば、外
部メモリボードのソフトウェア更新を各CPUボードに
て確認しいずれか1つのCPUボードがメインCPUボ
ード、その他がスレーブCPUボードとなり、メインC
PUボードがスレーブCPUボードを監視しソフトウェ
ア更新を終了するまで運用状態を維持し続け、スレーブ
CPUボードがソフトウェアを更新し、すべてのスレー
ブCPUボードが更新終了後更新ソフトウェアを実行し
メインCPUボードから運用状態を引継ぎ、運用状態を
維持する必要がなくなったメインCPUボードがソフト
ウェアを更新する。このため、従来技術のようにシステ
ムリセットにより再起動をし全CPUボードが一斉に読
み込み処理に入ってソフトウェアの更新をする必要がな
く、システムダウンすることなくソフトウェア更新がで
きるようになる。また、システムダウンの時間について
も関係なくなる。
As described above, according to the present invention, the software update of the external memory board is confirmed by each CPU board, and one of the CPU boards becomes the main CPU board, the other becomes the slave CPU board, and
The PU board monitors the slave CPU board and keeps the operation state until the software update is completed, the slave CPU board updates the software, and all the slave CPU boards execute the updated software after the update is completed and operate from the main CPU board. The main CPU board that takes over the state and no longer needs to maintain the operation state updates the software. For this reason, it is not necessary to restart by system reset as in the prior art and all the CPU boards need to enter the reading process all at once to update the software, and the software can be updated without system down. Further, the time of system down does not matter.

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

【図1】本発明のマルチCPUシステムの一実施の形態
を示すシステム構成図である。
FIG. 1 is a system configuration diagram showing an embodiment of a multi-CPU system of the present invention.

【図2】図1に示すソフトウェア更新回路の構成例を示
すブロック図である。
FIG. 2 is a block diagram illustrating a configuration example of a software update circuit illustrated in FIG. 1;

【図3】図1に示すマルチCPUシステムにおけるソフ
トウェア更新手順例を示すフローチャートである。
FIG. 3 is a flowchart showing an example of a software update procedure in the multi-CPU system shown in FIG. 1;

【図4】従来のマルチCPUシステムにおけるソフトウ
ェア更新のフローチャートである。
FIG. 4 is a flowchart of software update in a conventional multi-CPU system.

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

1,2,3 CPUボード 5 外部メモリボード 6 外部バス 7 更新フラグ(Kフラグ)信号線 8 メインCPUボード確定フラグ(Mフラグ)信号
線 9 ソフトウェア読み込み終了フラグ(Sフラグ)信
号線 10 内部メモリ 20 ソフトウェア更新回路 21 メインCPUボード選択回路 22 Mフラグ 24 更新制御回路 25 Sフラグ 50 外部メモリ 51 Kフラグ
1, 2, 3 CPU board 5 External memory board 6 External bus 7 Update flag (K flag) signal line 8 Main CPU board fixed flag (M flag) signal line 9 Software reading end flag (S flag) signal line 10 Internal memory 20 Software update circuit 21 Main CPU board selection circuit 22 M flag 24 Update control circuit 25 S flag 50 External memory 51 K flag

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平5−241848(JP,A) 特開 昭62−216064(JP,A) 特開 平7−295943(JP,A) 特開 昭56−71139(JP,A) 特開 平6−95988(JP,A) 特開 平1−315855(JP,A) 特開 平5−233408(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06F 15/16 430 G06F 15/16 470 G06F 9/06 540 G06F 9/46 360────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-5-241848 (JP, A) JP-A-62-116064 (JP, A) JP-A-7-295943 (JP, A) JP-A-56-216 71139 (JP, A) JP-A-6-95988 (JP, A) JP-A-1-315855 (JP, A) JP-A 5-233408 (JP, A) (58) Fields investigated (Int. 6 , DB name) G06F 15/16 430 G06F 15/16 470 G06F 9/06 540 G06F 9/46 360

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数のCPUボードと外部メモリボード
とを外部バスを通して相互に接続し、前記各CPUボー
ドが前記外部メモリボード内のソフトウェアを自己の内
部メモリに読み込み実行するマルチCPUシステムにお
いて、 前記外部ボード内のソフトウェアが更新されたことを表
示するための更新フラグと、前記各CPUボード対応に
設けられた自ボードがメインCPUボードに確定したこ
とを表示するためのメインCPU確定フラグ及び自ボー
ドの更新後のソフトウェアの読み込み終了を表示するた
めのソフトウェア読み込み終了フラグとを備え、 前記外部メモリボードが、内蔵するソフトウェアが更新
されたことを検出すると前記更新フラグに表示し、 前記更新フラグにより前記外部メモリボードのソフトウ
ェア更新を検出した前記各CPUボードのうちいずれか
1つのCPUボードが、あらかじめ指定された選択規則
に基づいてメインCPUボードとなり自ボードの前記メ
インCPU確定フラグに表示し、前記ソフトウェア読み
込み終了フラグにより他のすべてのCPUボードにおけ
る更新後のソフトウェアの読み込み終了を検出するまで
更新前のソフトウェアの実行を継続し、前記他のすべて
のCPUボードの読み込み終了を検出すると前記更新前
のソフトウェアの実行を停止し前記メインCPU確定フ
ラグの表示を取り消すとともに更新後のソフトウェアの
前記外部メモリボードからの読み込み及び実行を開始
し、 前記メインCPU確定フラグにより前記メインCPUボ
ードの確定を検出した前記他のすべてのCPUボード
が、それぞれスレーブCPUボードとなり更新前のソフ
トウェアの実行を停止し、順次前記外部メモリボードよ
り更新後のソフトウェアを読み込み、読み込みを終了す
ると前記ソフトウェア読み込み終了フラグに表示し、前
記メインCPUボードによる前記メインCPU確定フラ
グの表示が取り消されたことを検出すると前記更新後の
ソフトウェアの実行を開始することを特徴とするマルチ
CPUシステム。
1. A multi-CPU system in which a plurality of CPU boards and an external memory board are interconnected via an external bus, and each of the CPU boards reads and executes software in the external memory board into its own internal memory. An update flag for displaying that the software in the external board has been updated; a main CPU determination flag for displaying that the own board provided for each CPU board has been determined as the main CPU board; And a software read end flag for displaying the end of software reading after updating.When the external memory board detects that built-in software has been updated, the external memory board displays the update flag and displays the update flag. Before detecting software update of external memory board Any one of the CPU boards becomes a main CPU board based on a selection rule specified in advance, and is displayed on the main CPU fixed flag of its own board, and all other CPU boards are indicated by the software read end flag. The execution of the software before the update is continued until the completion of the reading of the software after the update on the board is detected, and the execution of the software before the update is stopped and the main CPU is determined when the completion of the reading of the other CPU boards is detected. The display of the flag is canceled, the reading and execution of the updated software from the external memory board are started, and all the other CPU boards that have detected the determination of the main CPU board by the main CPU determination flag are slaves. CPU board The execution of the software before the update is stopped, the software after the update is sequentially read from the external memory board, and when the reading is completed, the software read end flag is displayed, and the display of the main CPU finalization flag by the main CPU board is displayed. A multi-CPU system, wherein when the cancellation is detected, execution of the updated software is started.
【請求項2】 複数のCPUボードと外部メモリボード
とを外部バスを通して相互に接続し、前記各CPUボー
ドが前記外部メモリボード内のソフトウェアを自己の内
部メモリに読み込み実行するマルチCPUシステムのシ
ステム運用中におけるソフトウェアの更新方法におい
て、 前記外部メモリボードのソフトウェアが更新されるとあ
らかじめ指定された選択規則に基づいて前記複数のCP
Uボードのうちいずれか1つのCPUボードをメインC
PUボード、その他のCPUボードをスレーブCPUボ
ードとし、 前記メインCPUボードにより更新前のソフトウェアを
継続して実行し運用状態を維持しておき、 前記スレーブCPUボードの各々では更新前のソフトウ
ェアの実行を停止し、順次前記外部メモリボードより更
新後のソフトウェアを読み込み実行せずに待機し、 すべての前記スレーブCPUボードにおける前記更新後
のソフトウェアの読み込みが完了すると、前記メインC
PUボードの前記更新前のソフトウェアの実行を停止す
るとともに、すべての前記スレーブCPUボードで前記
更新後のソフトウェアの実行を開始し運用状態を引継
ぎ、 その後、前記メインCPUボードが前記更新後のソフト
ウェアの読み込み及び実行開始を行うことにより、シス
テムダウンすることなくすべての前記CPUボードの内
部メモリのソフトウェアを更新可能としたことを特徴と
するマルチCPUシステムのソフトウェア更新方法。
2. A system operation of a multi-CPU system in which a plurality of CPU boards and an external memory board are interconnected via an external bus, and each of the CPU boards reads and executes software in the external memory board into its own internal memory. The software of the external memory board is updated when the plurality of CPs are updated based on a selection rule specified in advance.
One of the U boards is the main C board
The PU board and other CPU boards are slave CPU boards, the software before update is continuously executed by the main CPU board to maintain the operation state, and each of the slave CPU boards executes the software before update. The CPU stops and sequentially waits without reading and executing the updated software from the external memory board. When the reading of the updated software on all the slave CPU boards is completed, the main C
The execution of the software before the update of the PU board is stopped, and the execution of the software after the update is started in all the slave CPU boards to take over the operation state. A software updating method for a multi-CPU system, wherein the software of the internal memories of all the CPU boards can be updated without performing a system down by reading and starting execution.
JP7307387A 1995-11-27 1995-11-27 Multi-CPU system and its software update method Expired - Fee Related JP2806843B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7307387A JP2806843B2 (en) 1995-11-27 1995-11-27 Multi-CPU system and its software update method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7307387A JP2806843B2 (en) 1995-11-27 1995-11-27 Multi-CPU system and its software update method

Publications (2)

Publication Number Publication Date
JPH09146902A JPH09146902A (en) 1997-06-06
JP2806843B2 true JP2806843B2 (en) 1998-09-30

Family

ID=17968445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7307387A Expired - Fee Related JP2806843B2 (en) 1995-11-27 1995-11-27 Multi-CPU system and its software update method

Country Status (1)

Country Link
JP (1) JP2806843B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1199492A (en) * 1997-09-29 1999-04-13 Matsushita Electric Ind Co Ltd Industrial robot
JP4644569B2 (en) * 2005-09-02 2011-03-02 富士通セミコンダクター株式会社 How to start multiple chips

Also Published As

Publication number Publication date
JPH09146902A (en) 1997-06-06

Similar Documents

Publication Publication Date Title
JP2002521741A (en) Flexible processing hardware architecture
US5133057A (en) Co-processor for control setting an internal flag register operation mode which controlled a main processor execution mode in a multi-processor system
JP2002245022A (en) Multiprocessor system, its shared memory control method and shared memory control program,
JP2806843B2 (en) Multi-CPU system and its software update method
JP3437238B2 (en) Computer, computer system and control method thereof
JPH0693229B2 (en) Data processing device
JP3514651B2 (en) Reboot control device
JP3104685B2 (en) System log recording device, system log recording method, and recording medium
JP2970082B2 (en) Virtual intercluster communication processor
JP3317361B2 (en) Battery backup control method for memory
JP2007047426A (en) Video display device and control circuit for display
JP3453395B2 (en) Information transfer system
JPS583246B2 (en) data processing system
JP3130798B2 (en) Bus transfer device
JPH0648453B2 (en) Peripheral device initialization control method
JP3230798B2 (en) Redundant system
JP3077687B2 (en) Data transfer method and image processing apparatus
JPS5834858B2 (en) Data exchange control method
JP3236459B2 (en) Error handling device in common bus data transfer
JPH0652012A (en) Information processor having diagnostic function for peripheral part of device
JP2883091B2 (en) Multiprocessor system
JPH05334239A (en) Bus system
JPH0786792B2 (en) Information processing equipment
JPH04195545A (en) Data recovery system
JPS6370360A (en) Input/output control system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980630

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees