JPH03164965A - Starting system of microprocessor - Google Patents

Starting system of microprocessor

Info

Publication number
JPH03164965A
JPH03164965A JP30314889A JP30314889A JPH03164965A JP H03164965 A JPH03164965 A JP H03164965A JP 30314889 A JP30314889 A JP 30314889A JP 30314889 A JP30314889 A JP 30314889A JP H03164965 A JPH03164965 A JP H03164965A
Authority
JP
Japan
Prior art keywords
microprocessor
routine
microprocessors
diagnostic
initial startup
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
JP30314889A
Other languages
Japanese (ja)
Inventor
Akihito Takahashi
明仁 高橋
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP30314889A priority Critical patent/JPH03164965A/en
Publication of JPH03164965A publication Critical patent/JPH03164965A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To start a microprocessor with a simple program by setting a stop instruction and a branch instruction of the routine to be carried out next to the final two steps of each initial starting routine. CONSTITUTION:A diagnostic processor 1 serves as a processor circuit which control the microprocessors 3-5 via a diagnostic interface 2 and then initialize the microprocessors 3-5. In this case, a stop instruction and a branch instruction of the routine to be carried out next are set to the final two steps of the initial starting routines 31-33, 41-43, and 51-53 of the microprocessors 3-5 respectively. Thus each microprocessor can be initialized without setting the different start addresses for each microprocessor. Then a microprogram used for control of the processor 1 is simplified.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、コンピュータシステムを構成する複数のマイ
クロプロセッサを起動するためのマイクロプロセッサ起
動方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprocessor startup method for starting a plurality of microprocessors constituting a computer system.

[従来の技術] 一般に、複数のマイクロプロセッサから構成されるコン
ピュータシステムは、その初期化のため、診断、初期設
定制御機能をもつ診断プロセッサ、この診断プロセッサ
と他のマイクロプロセッサとの間に設けた診断用専用イ
ンターフェイスを備えている。各マイクロプロセッサの
プログラム記憶部には、初期診断プログラムや初期設定
プログラムの初期起動ルーチン群が格納されている。
[Prior Art] In general, a computer system composed of multiple microprocessors has a diagnostic processor with diagnostic and initial setting control functions, and a processor installed between this diagnostic processor and other microprocessors for initialization. Equipped with a dedicated interface for diagnostics. The program storage section of each microprocessor stores a group of initial startup routines such as an initial diagnostic program and an initial setting program.

診断プロセッサは、その初期起動ルーチンを一連の手順
で順次起動し、動作中か停止したかの実行状況を監視す
ることによって、システムの初期化を行う。また、各ル
ーチンの起動は、前述の診断インターフェイスを用いて
、ルーチンの開始アドレスを設定し、スタートさせるこ
とにより行われる。更に、診断インターフェイスによっ
て起動したマイクロプロセッサが停止するのを監視する
ことで、ルーチンの実行終了を知ることができる。
The diagnostic processor initializes the system by sequentially starting its initial startup routine in a series of steps and monitoring whether it is running or stopped. Furthermore, each routine is activated by setting the start address of the routine and starting it using the aforementioned diagnostic interface. Furthermore, by monitoring the termination of the microprocessor started by the diagnostic interface, it is possible to know when the execution of the routine has ended.

ところで、コンピュータシステムを構成している各々の
マイクロプロセッサは、それぞれ役割が異なる。そのた
め、それぞれのハードウェア構成が異なり、マイクロプ
ログラム構成も異なる。従って、初期診断プログラム、
初期設定プログラムの開始アドレスも異なるのが普通で
ある。このような事情から、従来のマイクロプロセッサ
の起動方式としては、診断プロセッサが個々のマイクロ
プロセッサの各プログラムの開始アドレスを意識し、マ
イクロプロセッサ毎に異なる起動アドレスを診断インタ
ーフェイスを用いて設定するようになっていた。
By the way, each microprocessor making up a computer system has a different role. Therefore, each has a different hardware configuration and a different microprogram configuration. Therefore, the initial diagnostic program,
The start addresses of the initialization programs are also usually different. For these reasons, the conventional startup method for microprocessors is such that the diagnostic processor is aware of the start address of each program in each microprocessor, and uses a diagnostic interface to set a different startup address for each microprocessor. It had become.

[発明が解決しようとする課題] しかしながら、このような起動方式では、診断プロセッ
サが個々のマイクロプロセッサの初期診断プログラム、
初期設定プログラムの開始アドレスを意識し、起動する
毎に起動アドレスを設定しなければならない。そのため
、診断プロセッサを制御するマイクロプログラムが複雑
になるという問題があった。
[Problems to be Solved by the Invention] However, in such a startup method, the diagnostic processor runs the initial diagnostic program of each microprocessor,
You must be aware of the start address of the initial setting program and set the start address each time you start it. Therefore, there is a problem in that the microprogram that controls the diagnostic processor becomes complicated.

本発明は、このような問題点を解消するためになされた
もので、その目的は簡単なプログラムでマイクロプロセ
ッサを起動するようにしたマイクロプロセッサ起動方式
を提供することにある。
The present invention has been made to solve these problems, and its purpose is to provide a microprocessor startup method that allows a microprocessor to be started using a simple program.

[課題を解決するための手段] 本発明は、上記目的を達成するために、コンピュータシ
ステムを構成する複数のマイクロプロセッサを起動し、
システムの初期化を行うマイクロプロセッサ起動方式に
おいて、前記各マイクロプロセッサのプログラム記憶部
に格納される各初期起動ルーチンの最終2ステップに、
マイクロプロセッサの動作を停止する停止命令と、次に
実行すべきルーチンの分岐命令をセットすることを特徴
とする。
[Means for Solving the Problems] In order to achieve the above object, the present invention starts a plurality of microprocessors constituting a computer system,
In a microprocessor startup method for initializing the system, the last two steps of each initial startup routine stored in the program storage section of each microprocessor include:
It is characterized by setting a stop instruction to stop the operation of the microprocessor and a branch instruction for the next routine to be executed.

[作用] 本発明によれば、各マイクロプロセッサの初期起動ルー
チンの最終2ステップに停止命令と次に実行すべきルー
チンの分岐命令をセットしたので、マイクロプロセッサ
毎に異なる起動アドレスをセットすることなく、各々の
マイクロプロセッサを初期化することが可能となる。
[Operation] According to the present invention, since the stop instruction and the branch instruction for the next routine to be executed are set in the last two steps of the initial startup routine of each microprocessor, there is no need to set a different startup address for each microprocessor. , it becomes possible to initialize each microprocessor.

[実施例] 以下、本発明の実施例について、図面を参照しながら詳
細に説明する。第1図は本発明のマイクロプロセッサ起
動方式の一実施例を示すブロック図である。
[Examples] Examples of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the microprocessor startup method of the present invention.

第1図において、診断プロセッサ1は、診断インターフ
ェイス2を介して各マイクロプロセッサ3〜5を制御し
、各々のマイクロプロセッサ3〜5の初期化を行うプロ
セッサ回路である。診断インターフェイス2は、診断プ
ロセッサ1と各マイクロマプロセッサ3〜5の間に接続
されたインターフェイス回路であり、マイクロプロセッ
サ3〜5のリセット、起動、各マイクロプロセッサ3〜
5の実行状態、停止状態の状態検出の機能を備えている
In FIG. 1, a diagnostic processor 1 is a processor circuit that controls each microprocessor 3-5 via a diagnostic interface 2 and initializes each microprocessor 3-5. The diagnostic interface 2 is an interface circuit connected between the diagnostic processor 1 and each of the microprocessors 3 to 5, and is used to reset and start the microprocessors 3 to 5, and to reset and start the microprocessors 3 to 5.
It has a function of detecting the execution state and stop state of 5.

マイクロプロセッサ3〜5の各プログラム記憶部には、
それぞれのマイクロプロセッサを初期化するための第1
初期起動ルーチン〜第3初期起動ルーチンが格納されて
いる。マイクロプロセッサ3の起動ルーチンは、第1初
期起動ルーヂン31〜第3初期起動ルーチン33、マイ
クロプロセッサ4のそれは第1初期起動ルーチン41〜
第3初期起動ルーチン43、マイクロプロセッサ5は第
1初期起動ルーチン51〜第3初期起動ルーチン53で
ある。また、各マイクロプロセッサのプログラム記憶部
には、本来の処理ルーチンである本処理ルーチン34.
44.54が格納されている。
Each program storage section of the microprocessors 3 to 5 includes:
The first one to initialize each microprocessor.
An initial startup routine to a third initial startup routine are stored. The startup routine of the microprocessor 3 is the first initial startup routine 31 to the third initial startup routine 33, and that of the microprocessor 4 is the first initial startup routine 41 to the third initial startup routine 33.
The third initial startup routine 43 and the microprocessor 5 are the first initial startup routine 51 to the third initial startup routine 53. Further, the program storage section of each microprocessor contains a main processing routine 34. which is the original processing routine.
44.54 is stored.

各第1初期起動ルーチンは、診断プロセッサ1の起動指
令により、各マイクロプロセッサが実行する一番目のル
ーチンである。この各第1初期起動ルーチンの最終の二
つのステップは、停止命令と第2初期起動ルーチンへの
分岐命令である。また、各第2初期起動ルーチンは、各
マイクロプロセッサが実行する二番目のルーチンであり
、同様にその最終のニステップは停止命令と第3初期起
動ルーチンへの分岐命令である。更に、各第3初期起動
ルーチンは、各マイクロプロセッサが実行する三番目の
ルーチンであって、同様に最終の一ステップは停止命令
と本処理ルーチンへの分岐命令となっている。
Each first initial startup routine is the first routine that each microprocessor executes in response to a startup command from the diagnostic processor 1. The last two steps of each first initial startup routine are a stop instruction and a branch instruction to the second initial startup routine. Further, each second initial startup routine is the second routine executed by each microprocessor, and similarly, its final two steps are a stop instruction and a branch instruction to the third initial startup routine. Further, each third initial startup routine is the third routine executed by each microprocessor, and similarly, the final step is a stop instruction and a branch instruction to the main processing routine.

次に、前記実施例の動作について、第2図に示すフロー
ヂャートを参照しながら説明する。
Next, the operation of the embodiment will be explained with reference to the flowchart shown in FIG.

まず、S(ステップ)1で診断プロセッサlは、診断イ
ンターフェイス2を介してマイクロプロセッサ3〜5を
リセットする。このとき、各マイクロプロセッサの起動
アドレスは、各々の第1初期起動ルーチンを指す。
First, in S (step) 1, the diagnostic processor 1 resets the microprocessors 3 to 5 via the diagnostic interface 2. At this time, the startup address of each microprocessor points to its respective first initial startup routine.

次に、S2で診断プロセッサlは診断インターフェイス
2を介して、各マイクロプロセッサ3〜5を起動し、こ
れによって各マイクロプロセッサは第1初期起動ルーチ
ンを実行する。各第1初期起動ルーチンの最終2ステッ
プは、前述の如く停止命令と第2初期起動ルーチンへの
分岐命令であるため、各マイクロプロセッサは所定の処
理を実行した後停止す、る。診断プロセッサlは、S3
で診断インターフェイス2を介して各マイクロプロセッ
サの状態をチエツクし、前述のように動作が停止するの
を待つ。
Next, in S2, the diagnostic processor 1 activates each of the microprocessors 3 to 5 via the diagnostic interface 2, whereby each microprocessor executes a first initial startup routine. Since the last two steps of each first initial startup routine are a stop instruction and a branch instruction to the second initial startup routine as described above, each microprocessor stops after executing a predetermined process. Diagnostic processor l is S3
Then, the status of each microprocessor is checked via the diagnostic interface 2, and the system waits for the operation to stop as described above.

全てのプロセッサが停止すると、S4で診断プロセッサ
lは再びマイクロプロセッサ3〜5を起動し、これによ
り各マイクロプロセッサはS2で指示された第2初期起
動ルーチンを実行する。第2初期起動ルーヂンの最終2
ステップは、同様に停止命令と第3初期起動ルーチンへ
の分岐命令である。従って、診断プロセッサ1はS5で
各マイクロプロセッサが停止するのを待ち、全て停止し
たらS6へ進む。診断プロセッサ1は、S6で各マイク
ロプロセッサ3〜5を起動し、各マイクロプロセッサは
S4で指示された第3初期起動ルーチンを実行する。第
3初期起動ルーチンの最終2ステップは、同様に停止命
令と本処理ルーチンへの分岐命令である。診断プロセッ
サlは、S7で各マイクロプロセッサが第3初期起動ル
ーチンの実行終了を待つ。このような手順でマイクロプ
ロセッサ3〜5の初期化が完了する。そして、診断プロ
セッサ1は、S8で診断インターフェイス2を介してマ
イクロプロセッサ3〜5を起動し、各マイクロプロセッ
サは指示された本処理ルーチンを実行する。
When all the processors have stopped, the diagnostic processor 1 starts up the microprocessors 3 to 5 again in S4, so that each microprocessor executes the second initial startup routine instructed in S2. Final 2 of 2nd initial startup Lujin
The steps are likewise a stop instruction and a branch instruction to the third initial startup routine. Therefore, the diagnostic processor 1 waits for each microprocessor to stop in S5, and when all the microprocessors have stopped, the process proceeds to S6. The diagnostic processor 1 starts each of the microprocessors 3 to 5 in S6, and each microprocessor executes the third initial startup routine instructed in S4. Similarly, the final two steps of the third initial startup routine are a stop instruction and a branch instruction to the main processing routine. In S7, the diagnostic processor 1 waits for each microprocessor to finish executing the third initial startup routine. Initialization of the microprocessors 3 to 5 is completed through such a procedure. The diagnostic processor 1 then activates the microprocessors 3 to 5 via the diagnostic interface 2 in S8, and each microprocessor executes the instructed main processing routine.

[発明の効果] 以上説明したように本発明によれば、起動毎に各マイク
ロプロセッサの起動アドレスを設定するという煩雑な処
理が不要となり、診断プロセッサを制御するためのマイ
クロプログラムが簡単化できるという効果がある。
[Effects of the Invention] As explained above, according to the present invention, the complicated process of setting the startup address of each microprocessor each time it is started becomes unnecessary, and the microprogram for controlling the diagnostic processor can be simplified. effective.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明のマイクロプロセッサ起動方式の一実施
例を示すブロック図、第2図はその第1図の実施例の動
作を示すフローチャートである。 1・・・診断プロセッサ 2・・・診断インターフェイス 3〜5・・・マイクロプロセッサ
FIG. 1 is a block diagram showing an embodiment of the microprocessor starting method of the present invention, and FIG. 2 is a flowchart showing the operation of the embodiment of FIG. 1...Diagnostic processor 2...Diagnostic interface 3-5...Microprocessor

Claims (1)

【特許請求の範囲】[Claims] コンピュータシステムを構成する複数のマイクロプロセ
ッサを起動し、システムの初期化を行うマイクロプロセ
ッサ起動方式において、前記各マイクロプロセッサのプ
ログラム記憶部に格納される各初期起動ルーチンの最終
2ステップに、マイクロプロセッサの動作を停止する停
止命令と、次に実行すべきルーチンの分岐命令をセット
することを特徴とするマイクロプロセッサ起動方式。
In a microprocessor startup method that starts a plurality of microprocessors constituting a computer system and initializes the system, the last two steps of each initial startup routine stored in the program storage section of each microprocessor include A microprocessor startup method characterized by setting a stop instruction to stop operation and a branch instruction for a routine to be executed next.
JP30314889A 1989-11-24 1989-11-24 Starting system of microprocessor Pending JPH03164965A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30314889A JPH03164965A (en) 1989-11-24 1989-11-24 Starting system of microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30314889A JPH03164965A (en) 1989-11-24 1989-11-24 Starting system of microprocessor

Publications (1)

Publication Number Publication Date
JPH03164965A true JPH03164965A (en) 1991-07-16

Family

ID=17917462

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30314889A Pending JPH03164965A (en) 1989-11-24 1989-11-24 Starting system of microprocessor

Country Status (1)

Country Link
JP (1) JPH03164965A (en)

Similar Documents

Publication Publication Date Title
JPH04133102A (en) Programmable controller and its control method
JPH02156334A (en) Information processor
JPH03164965A (en) Starting system of microprocessor
JPS6045453B2 (en) multiprocessor
JPH0357053A (en) Down load control system for communication processing device
JPS6020771B2 (en) Micro diagnosis method
JPH0581065A (en) Self diagnostic method for programmable controller system
JP2624798B2 (en) Processing unit debugging mechanism
JPH0520786B2 (en)
JPH02159654A (en) Program restarting system
JPS63276162A (en) Processor start system for multiprocessor system
JPS6224325A (en) Arithmetic processor
JPH07287660A (en) Interruption processing method for programmable controller
JPS6292045A (en) Control system initial program loading
JPH1153327A (en) Multiprocessor system
JPS5965307A (en) Sequence controller
JPH0332143A (en) Processor extension method for multiple decentralization control exchange system
JPH02101566A (en) Starting system for multiprocessor system
JPH0149984B2 (en)
JPH02101555A (en) Referring and setting processing system for time data
JPS62212865A (en) Multiprocessor control system
JPH0823815B2 (en) Configuration control method
JPH07104797B2 (en) System diagnostic method
JPS62233876A (en) Method for deciding control right
JPH07219918A (en) System starting method for parallel computer