JPH0764938A - Device for starting multiple cpu system - Google Patents

Device for starting multiple cpu system

Info

Publication number
JPH0764938A
JPH0764938A JP20761393A JP20761393A JPH0764938A JP H0764938 A JPH0764938 A JP H0764938A JP 20761393 A JP20761393 A JP 20761393A JP 20761393 A JP20761393 A JP 20761393A JP H0764938 A JPH0764938 A JP H0764938A
Authority
JP
Japan
Prior art keywords
cpu
rom
program
sub cpu
main cpu
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
JP20761393A
Other languages
Japanese (ja)
Inventor
Kanzo Noda
完三 野田
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP20761393A priority Critical patent/JPH0764938A/en
Publication of JPH0764938A publication Critical patent/JPH0764938A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a system for which the need of increasing ROMs is eliminated even when the number of CPUs increases by turning the ROM of a main CPU and a sub CPU to a shared memory. CONSTITUTION:An IPL program is stored in the ROM 5, the program is loaded from an auxiliary storage device 3 to a RAM 2 after the initial setting of the main CPU 1 and control is transferred to the program of the RAM 2. Thereafter, the address of the ROM 5 is switched to the side of the sub CPU 8, the reset of the sub CPU 8 is cancelled by reset instruction signals 10, the program of the sub CPU 8 is loaded from the auxiliary storage device 3 to the RAM 5 which is the shared memory and the sub CPU 8 is instructed of loading completion. The sub CPU 8 waits for the loading completion instruction from the main CPU 1 after the initial setting and transfers the control to the down-loaded program on a second shared memory 6 when loading completion instruction signals 9 are outputted from the main CPU 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マルチCPUシステム
の起動装置に関し、より詳細には、ROM(Read Only M
emory)を共有メモリにして、各CPUを同一のROMか
ら起動可能としたマルチCPUシステムの起動装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a start-up device for a multi-CPU system, and more particularly to a ROM (Read Only M
emory) as a shared memory and each CPU can be booted from the same ROM.

【0002】[0002]

【従来の技術】マルチCPUシステムには、種々の方式
があるが、その1つとして、メインCPUとサブCPU
で構成される方式がある。図3は、従来のCPUシステ
ムの起動装置の構成図で、図中、21はメインCPU
(中央処理装置)、22はROM、23はRAM(Rando
m Access Memory)、24は補助記憶装置、25は共通
バス(メインCPU)、26は共有メモリ、27はサブ
CPU、28はROM、29はロード終了指示信号、3
0は共通バス(サブCPU)である。図4(a),
(b)は、従来のCPUシステムの起動方法を示すフロ
−チャ−トである。図(a)はメインCPUの起動方
法、図(b)はサブCPUの起動方法を各々示すフロー
チャートである。以下、各ステップに従って順に説明す
る。
2. Description of the Related Art There are various types of multi-CPU systems, one of which is a main CPU and a sub CPU.
There is a method consisting of. FIG. 3 is a block diagram of a conventional CPU system start-up device, in which 21 is a main CPU.
(Central processing unit), 22 is ROM, 23 is RAM (Random
m Access Memory), 24 an auxiliary storage device, 25 a common bus (main CPU), 26 a shared memory, 27 a sub CPU, 28 a ROM, 29 a load end instruction signal, 3
Reference numeral 0 is a common bus (sub CPU). 4 (a),
(B) is a flowchart showing a conventional method of starting a CPU system. FIG. 7A is a flowchart showing a main CPU starting method, and FIG. 9B is a flowchart showing a sub CPU starting method. Hereinafter, each step will be described in order.

【0003】電源ON時等の最初のプログラム起動時の
動作を説明する。電源ONなどにより、メインCPU2
1が起動されてROM22のプログラムを実行する。R
OM22にはIPLプログラムが格納されており、メイ
ンCPU21の初期設定後(S1)、補助記憶装置24
から共通バス25を介してRAM23にプログラムをロ
ードして(S2)、RAM23のプログラムに制御を渡
す。その後、補助記憶装置24から共通バス25を介し
て共有メモリ26にサブCPU27のプログラムをロー
ドして(S3)、サブCPU27に対してロード終了を
指示する(S4)。サブCPU27は、電源ONなどに
より、メインCPU21と同様にROM28が起動さ
れ、初期設定後(S5)、メインCPU21からのロー
ド終了指示を待っており(S6)、メインCPU21か
らロード終了指示信号29が出力されるとダウンロード
を終了する。その後、サブCPUは、共有メモリ上のダ
ウンロードされたプログラムを実行する。
The operation when the program is first started, such as when the power is turned on, will be described. When the power is turned on, the main CPU2
1 is activated to execute the program in the ROM 22. R
The OM 22 stores an IPL program, and after the initial setting of the main CPU 21 (S1), the auxiliary storage device 24
Loads the program into the RAM 23 via the common bus 25 (S2), and transfers control to the program in the RAM 23. Then, the program of the sub CPU 27 is loaded from the auxiliary storage device 24 into the shared memory 26 via the common bus 25 (S3), and the sub CPU 27 is instructed to end the loading (S4). The ROM 28 is activated by turning on the power supply or the like in the same manner as the main CPU 21. After the initial setting (S5), the sub CPU 27 waits for a load end instruction from the main CPU 21 (S6). When it is output, the download ends. After that, the sub CPU executes the downloaded program on the shared memory.

【0004】[0004]

【発明が解決しようとする課題】前述のように、従来の
CPUシステムの起動装置においては、メインCPU及
び、サブCPU共にIPL用のROMを持つ必要があ
り、CPUの数と同じだけROMが必要となった。これ
は、1つのメインCPUと1つのサブCPUで構成され
る場合は、特に問題とならないが、複数のサブCPUで
構成される場合には、同じ内容のROMが複数個必要で
あり、サブCPUが増えるにつれて、無駄が多くなると
いう問題点があった。
As described above, in the conventional CPU system start-up device, both the main CPU and the sub CPU need to have an IPL ROM, and as many ROMs as the number of CPUs are required. Became. This does not cause any particular problem when it is composed of one main CPU and one sub CPU, but when it is composed of a plurality of sub CPUs, a plurality of ROMs having the same contents are required. There was a problem that the more wasted, the more wasted.

【0005】本発明は、このような実情に鑑みてなされ
たもので、メインCPU及び、サブCPUのROMを共
有メモリにすることによって、CPUの数が増えてもR
OMを増やす必要のないシステムとなるようなマルチC
PUシステムの起動装置を提供することを目的としてい
る。
The present invention has been made in view of the above circumstances, and by using the ROM of the main CPU and the sub CPU as a shared memory, even if the number of CPUs increases, R
Multi-C system that does not need to increase OM
It is intended to provide an activation device for a PU system.

【0006】[0006]

【課題を解決するための手段】本発明は、上記目的を達
成するために、複数のプロセッサで構成されるマルチC
PUシステムであって、各プロセッサのIPLを行うR
OMを共有メモリにして、ROMのアドレスを切替える
切替手段と、他のCPUに対してリセットを指示する指
示手段とを設け、1つのCPUがROM上のプログラム
動作を終えると、RAM上のプログラムに制御を移し、
ROMのアドレスを次のCPUに切替えた後、該CPU
のリセットを解除することによって、ROMの制御を該
CPUに切替えることを特徴としたものである。
In order to achieve the above object, the present invention provides a multi-C system including a plurality of processors.
In a PU system, R for performing IPL of each processor
The OM is used as a shared memory, and a switching means for switching the ROM address and an instruction means for instructing another CPU to reset are provided, and when one CPU finishes the program operation on the ROM, the program on the RAM Transfer control,
After switching the ROM address to the next CPU,
The control of the ROM is switched to the CPU by canceling the reset.

【0007】[0007]

【作用】メインCPUは、自分のIPLが終るとROM
からRAM上のプログラムに制御を移し、ROMをサブ
CPUのアドレスに切替えて、サブCPUのリセットを
解除する。サブCPUでは、リセット解除後ROM上の
プログラムが動作して、メインCPUからのダウンロー
ド終了指示によって、RAM上のプログラムに制御を移
し、ROMを切り離す。このように、1つのROMを共
有して使用できるので、コストや実装スペース等にメリ
ットがでてくる。
[Operation] The main CPU is in the ROM when its own IPL is completed.
Control is transferred to the program on the RAM, the ROM is switched to the address of the sub CPU, and the reset of the sub CPU is released. In the sub CPU, the program on the ROM operates after the reset is released, and in response to the download end instruction from the main CPU, the control is transferred to the program on the RAM and the ROM is disconnected. In this way, one ROM can be shared and used, and there are advantages in cost and mounting space.

【0008】[0008]

【実施例】実施例について、図面を参照して以下に説明
する。図1は、本発明によるマルチCPUシステムの起
動装置の一実施例を説明するための構成図で、図中、1
はメインCPU(中央処理装置)、2はRAM(Random
Access Memory)、3は補助記憶装置、4は共通バス(メ
インCPU)、5は第1の共通メモリ(ROM)、6は
第2の共通メモリ(RAM)、7はアドレス切替回路、
8はサブCPU、9はロード終了指示信号、10はリセ
ット指示信号、11はアドレス切替指示信号、12はR
OMアドレス、13は共通バス(サブCPU)である。
図2(a),(b)は本発明によるマルチCPUシステ
ムの起動装置の動作手順を説明するためのフローチャー
トである。図(a)はメインCPU、図(b)はサブC
PUの動作手順を示すフローチャートである。以下、各
ステップに従って順に説明する。
Embodiments will be described below with reference to the drawings. FIG. 1 is a block diagram for explaining an embodiment of a multi-CPU system starting device according to the present invention.
Is a main CPU (central processing unit), 2 is a RAM (Random
Access Memory), 3 is an auxiliary storage device, 4 is a common bus (main CPU), 5 is a first common memory (ROM), 6 is a second common memory (RAM), 7 is an address switching circuit,
8 is a sub CPU, 9 is a load end instruction signal, 10 is a reset instruction signal, 11 is an address switching instruction signal, and 12 is R.
OM address, 13 is a common bus (sub CPU).
2 (a) and 2 (b) are flowcharts for explaining the operation procedure of the activation device of the multi-CPU system according to the present invention. Figure (a) is the main CPU, Figure (b) is the sub C
It is a flowchart which shows the operation procedure of PU. Hereinafter, each step will be described in order.

【0009】電源ONなどにより、メインCPU1が起
動されて共有メモリであるROM5のプログラムを実行
する。ROM5にはIPLプログラムが格納されてお
り、メインCPU1の初期設定後(S1)、補助記憶装
置3から共通バス4を介してRAM2にプログラムをロ
ードして(S2)、RAM2のプログラムに制御を渡す
(S3)。その後、ROM5のアドレスをサブCPU8
側に切替えて(S4)、リセット指示信号10によって
サブCPU8のリセットを解除して(S5)、補助記憶
装置3から共通バス4を介して共有メモリであるRAM
5にサブCPU8のプログラムをロードして(S6)、
サブCPU8に対してロード終了を指示する(S7)。
When the power is turned on, the main CPU 1 is activated to execute the program in the ROM 5 which is a shared memory. An IPL program is stored in the ROM 5, and after initializing the main CPU 1 (S1), the program is loaded from the auxiliary storage device 3 to the RAM 2 via the common bus 4 (S2), and control is passed to the program in the RAM 2. (S3). After that, the address of the ROM 5 is set to the sub CPU 8
To the side (S4), the reset instruction signal 10 releases the reset of the sub CPU 8 (S5), and the RAM, which is a shared memory, from the auxiliary storage device 3 via the common bus 4.
Load the program of sub CPU8 into 5 (S6),
The sub CPU 8 is instructed to end loading (S7).

【0010】サブCPU8は、電源ON時はリセット状
態であるが、メインCPU1からのリセット解除によっ
てROM5上のプログラムが起動され、初期設定後(S
8)、メインCPU1からのロード終了指示を待ってお
り(S9)、メインCPU1からロード終了指示信号9
が出力されると、第2の共有メモリ6上のダウンロード
されたプログラムに制御を移す(S10)。アドレス切
替回路7は、メインCPUからのアドレス切替指示によ
って、メインCPU1又は、サブCPU8から入力され
るROMアドレスのどちらかをROM5に出力する回路
であるが、アドレス変換機能を付加することによって、
ROMをメインCPU1とサブCPU8の領域に分割可
能であり、この場合、異なる種類のCPU(機械語が異
なる)のIPLプログラムを1つのROMに置く事が出
来る。
Although the sub CPU 8 is in the reset state when the power is turned on, the program on the ROM 5 is started by the reset release from the main CPU 1, and after the initial setting (S
8) Waiting for the load end instruction from the main CPU 1 (S9), and the load end instruction signal 9 from the main CPU 1
Is output, control is transferred to the downloaded program on the second shared memory 6 (S10). The address switching circuit 7 is a circuit for outputting to the ROM 5 either the ROM address input from the main CPU 1 or the sub CPU 8 in response to an address switching instruction from the main CPU, but by adding an address conversion function,
The ROM can be divided into areas of the main CPU 1 and the sub CPU 8. In this case, IPL programs of different types of CPUs (different machine languages) can be placed in one ROM.

【0011】[0011]

【発明の効果】以上の説明から明らかなように、本発明
によると、ROMをメインCPU及び、サブCPUの共
有メモリにして、ROMのアドレスを切替える手段と、
サブCPUに対してリセットを指示する手段を設けたの
で、複数のCPUのROMを共通化できるので、コスト
や実装スペースに効果がある。
As is clear from the above description, according to the present invention, the ROM is used as a shared memory for the main CPU and the sub CPU, and means for switching the address of the ROM is provided.
Since the means for instructing the reset to the sub CPU is provided, the ROMs of a plurality of CPUs can be shared, which is effective in cost and mounting space.

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

【図1】マルチCPUシステムの起動装置の一実施例を
説明するための構成図である。
FIG. 1 is a configuration diagram for explaining an example of an activation device of a multi-CPU system.

【図2】本発明によるマルチCPUシステムの起動装置
の動作手順を説明するためのフローチャートである。
FIG. 2 is a flow chart for explaining an operation procedure of an activation device of a multi CPU system according to the present invention.

【図3】従来のCPUシステムの起動装置の構成図であ
る。
FIG. 3 is a configuration diagram of a conventional CPU system activation device.

【図4】従来のCPUシステムの起動装置の動作手順を
説明するためのフローチャートである。
FIG. 4 is a flowchart for explaining an operation procedure of a conventional CPU system activation device.

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

1…メインCPU(中央処理装置)、2…RAM(Rando
m Access Memory)、3…補助記憶装置、4…共通バス
(メインCPU)、5…第1の共通メモリ(ROM)、
6…第2の共通メモリ(RAM)、7…アドレス切替回
路、8…サブCPU、9…ロード終了指示信号、10…
リセット指示信号、11…アドレス切替指示信号、12
…ROMアドレス、13…共通バス(サブCPU)。
1 ... Main CPU (Central Processing Unit), 2 ... RAM (Random)
m Access Memory), 3 ... Auxiliary storage device, 4 ... Common bus (main CPU), 5 ... First common memory (ROM),
6 ... Second common memory (RAM), 7 ... Address switching circuit, 8 ... Sub CPU, 9 ... Load end instruction signal, 10 ...
Reset instruction signal, 11 ... Address switching instruction signal, 12
... ROM address, 13 ... Common bus (sub CPU).

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数のプロセッサで構成されるマルチC
PUシステムであって、各プロセッサのIPLを行うR
OMを共有メモリにして、ROMのアドレスを切替える
切替手段と、他のCPUに対してリセットを指示する指
示手段とを設け、1つのCPUがROM上のプログラム
動作を終えると、RAM上のプログラムに制御を移し、
ROMのアドレスを次のCPUに切り替えた後、該CP
Uのリセットを解除することによって、ROMの制御を
該CPUに切替えることを特徴とするマルチCPUシス
テムの起動装置。
1. A multi-C composed of a plurality of processors.
In a PU system, R for performing IPL of each processor
The OM is used as a shared memory, and a switching means for switching the ROM address and an instruction means for instructing another CPU to reset are provided, and when one CPU finishes the program operation on the ROM, the program on the RAM Transfer control,
After switching the ROM address to the next CPU, the CP
An activation device for a multi-CPU system, wherein control of a ROM is switched to the CPU by releasing the reset of U.
JP20761393A 1993-08-23 1993-08-23 Device for starting multiple cpu system Pending JPH0764938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20761393A JPH0764938A (en) 1993-08-23 1993-08-23 Device for starting multiple cpu system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20761393A JPH0764938A (en) 1993-08-23 1993-08-23 Device for starting multiple cpu system

Publications (1)

Publication Number Publication Date
JPH0764938A true JPH0764938A (en) 1995-03-10

Family

ID=16542693

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20761393A Pending JPH0764938A (en) 1993-08-23 1993-08-23 Device for starting multiple cpu system

Country Status (1)

Country Link
JP (1) JPH0764938A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101169774A (en) * 2007-11-22 2008-04-30 中兴通讯股份有限公司 Multi-processor system, sharing control device and slave processor starting method
JP2010146142A (en) * 2008-12-17 2010-07-01 Nec Corp Information processing apparatus, method of controlling startup of program, and startup control program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101169774A (en) * 2007-11-22 2008-04-30 中兴通讯股份有限公司 Multi-processor system, sharing control device and slave processor starting method
CN101169774B (en) * 2007-11-22 2023-12-22 中兴通讯股份有限公司 Multiprocessor system, sharing control device and method for starting slave processor
JP2010146142A (en) * 2008-12-17 2010-07-01 Nec Corp Information processing apparatus, method of controlling startup of program, and startup control program

Similar Documents

Publication Publication Date Title
JPH0376496B2 (en)
JPH11316686A (en) Bios data storage device for computer system and driving method therefor
JP2531760B2 (en) Vector processor
JPH0764938A (en) Device for starting multiple cpu system
JPH02105962A (en) System starting device
JP2001256055A (en) Program download system
JPS63184155A (en) Down load system for multiprocessor system
JPH0452974B2 (en)
JPS62171020A (en) Microcomputer
JPH01261758A (en) Computer system
JP3139310B2 (en) Digital signal processor
JPH07219918A (en) System starting method for parallel computer
JPS5842486B2 (en) Initial program load control method
JPH06161974A (en) Diagnosing method for multi-cpu board
JP2872042B2 (en) Shared memory access method
JP3168845B2 (en) Digital signal processor
JPS6249427A (en) Initializing system for main memory
JP2972930B2 (en) Optimal environment setting device for computer system
JPH0869444A (en) Multiprocessor system
JPH0744276A (en) Information processor
JPH04191927A (en) Operating system switching device
JPH02211574A (en) Initial program loading system
JPS62226357A (en) Initial program loading system
JP2901714B2 (en) Programmable controller
JP2551462B2 (en) Program loading method