JPH0414166A - Program controller for multi-cpu system - Google Patents
Program controller for multi-cpu systemInfo
- Publication number
- JPH0414166A JPH0414166A JP11894690A JP11894690A JPH0414166A JP H0414166 A JPH0414166 A JP H0414166A JP 11894690 A JP11894690 A JP 11894690A JP 11894690 A JP11894690 A JP 11894690A JP H0414166 A JPH0414166 A JP H0414166A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- bus
- program
- slave
- board
- 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
Landscapes
- Multi Processors (AREA)
- Stored Programmes (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、マスタCPUを塔載した基板と、スレープC
PUを塔載した基板とを外部バスを介して接続してなる
マルチCPU (中央処理装置)のプログラム制御装
置に関する。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a board on which a master CPU is mounted and a slave CPU.
The present invention relates to a multi-CPU (central processing unit) program control device that is connected to a board on which a PU is mounted via an external bus.
従来の技術
従来この種のマルチCPUシステムではマスクCPtJ
、スレープCPU間のデータ交換をバス結合方式や共有
メモリ方式を使用しCPU間の実行制御をデータ交換し
たデータの内容により制御し装置として一連の動作を実
現するものであった。Conventional technology Conventionally, in this type of multi-CPU system, the mask CPtJ
, data exchange between slave CPUs was carried out using a bus coupling method or a shared memory method, execution control between the CPUs was controlled by the contents of the data exchanged, and a series of operations were realized as a device.
発明が解決しようとする課題
しかしながら、上記従来のプログラム制御方式ではマス
クCPU、スレープCPUとも交換したデータの中から
プログラム制御に必要なデータを抽出し、各CPUがそ
のデータに合わせた形でプログラムの制御方法を変更し
てゆくこととなり、これらの手続きが煩雑であり、また
マスタCPUと各個別のスレープCPUの同期合わせに
煩雑さが倍加されるという問題点があった。Problems to be Solved by the Invention However, in the conventional program control method described above, the data necessary for program control is extracted from the data exchanged between the mask CPU and the slave CPU, and each CPU executes the program in accordance with the data. Since the control method has to be changed, these procedures are complicated, and the complexity of synchronizing the master CPU and each individual slave CPU is doubled.
本発明はこのような従来の問題を解決するものであシ、
マスタCPUがスレープCPUのプログラムを直接制御
することにより、各CPU間の動作制御をマスタCPU
で容易に管理できるという優れたプログラム制御装置を
提供することを目的とするものである。The present invention is intended to solve these conventional problems.
The master CPU directly controls the program of the slave CPU, allowing the master CPU to control the operation between each CPU.
The purpose is to provide an excellent program control device that can be easily managed.
課題を解決するための手段
本発明は上記目的を達成するために、スレープCPUを
塔載した基板内にプログラム格納用RAMと内部/外部
バス切換部とアドレス制御部、CPUバス分離部を設け
、マスクCPUを塔載した基板からソフトウェアにより
任意にスレープCPUを保守状態とし、プログラム格納
用RAMを外部バスに切換えた上でプログラム格納用R
AMに新たなプログラムを書き込めるようにしたもので
ある。Means for Solving the Problems In order to achieve the above object, the present invention provides a program storage RAM, an internal/external bus switching section, an address control section, and a CPU bus separation section in a board on which a slave CPU is mounted, Using software from the board on which the mask CPU is mounted, the slave CPU is arbitrarily placed in a maintenance state, the RAM for program storage is switched to an external bus, and the RAM for program storage is switched to the external bus.
This allows new programs to be written to AM.
作用
したがって、本発明によれば、マスタCPUからプログ
ラムの制御に必要な任意のプログラムを随時スレープC
PU側のプログラム格納用RAMに書き込めるため、直
接的な方法でマスタCPUがスレープCPUの動作を完
全に管理することができる。またマスタCPUが必要を
生じるまでスレープCPUはマスタCPUの状態とは全
く無関係に動作可能で自由度の高いシステムを構成でき
るという効果を有する。Therefore, according to the present invention, any program necessary for program control can be transferred from the master CPU to the slave CPU at any time.
Since it can be written to the program storage RAM on the PU side, the master CPU can completely manage the operations of the slave CPU in a direct manner. In addition, the slave CPU can operate completely independently of the state of the master CPU until the master CPU becomes necessary, thus making it possible to configure a system with a high degree of freedom.
実施例 図は本発明の一実施例の構成を示すものである。Example The figure shows the configuration of an embodiment of the present invention.
図において1は装置全体を管理するマスタCPUを塔載
した基板(基板A)、2はスレープCPUを塔載した基
板(基板B)で基板Aの管理下に置かれるものである。In the figure, 1 is a board (board A) on which a master CPU for managing the entire device is mounted, and 2 is a board (board B) on which a slave CPU is mounted, which is placed under the control of board A.
3は基板A(1)と基板B(2)とを電気的に接続する
だめの外部パスライン、4はスレープCPU、5はプロ
グラム格納用RAM、6はプログラム格納用RAM5を
外部パスラインに接続するか内部バスとするかの内部/
外部バス切換部、7はスレープCPUを内部パスライン
から分離するバス分離部、8はマスタCPUからのアド
レス信号によりバス切換部6、バス分離部7を制御する
ためのアドレス制御部、9はスレープCPU4を保持状
態とするウェイト信号線、10は内部パスライン、11
は装置全体への電源を供給するための電源部である。3 is an external path line that electrically connects board A (1) and board B (2), 4 is a slave CPU, 5 is a RAM for storing programs, and 6 is a connection of RAM 5 for storing programs to the external path line. internal bus or internal/
7 is a bus separation unit that separates the slave CPU from the internal path line; 8 is an address control unit that controls the bus switching unit 6 and the bus separation unit 7 by an address signal from the master CPU; 9 is a slave CPU; A wait signal line for keeping the CPU 4 in a holding state, 10 is an internal pass line, 11
is a power supply section for supplying power to the entire device.
次に上記実施例の動作について説明する。装置立上げ時
はバス切換部6が外部バス3側へたおされ、ウェイト信
号9によりスレープCPU 4が待ち状態とされる。そ
の後基板A1からプログラムがプログラム格納用RAM
5に書込まれ、基板Aから特定の番地(または特定の命
令)が発行されるとアドレス制御部8がこれを検出して
バス切換部6にてプログラム格納RAM5を内部バス側
にだおすとともにバス分離部7にてスレープCPU4の
動作を有効にして内部パスライン10と接続する。これ
によりスレープCPU4は実行が可能となり基板Aのマ
スタCPUから指示されたプログラムにより動作する。Next, the operation of the above embodiment will be explained. When the device is started up, the bus switching unit 6 is switched to the external bus 3 side, and the wait signal 9 puts the slave CPU 4 into a waiting state. After that, the program is transferred from board A1 to the RAM for program storage.
5 and when a specific address (or specific command) is issued from the board A, the address control unit 8 detects this and causes the bus switching unit 6 to transfer the program storage RAM 5 to the internal bus side. The bus separation unit 7 enables the operation of the slave CPU 4 and connects it to the internal path line 10. As a result, the slave CPU 4 becomes executable and operates according to the program instructed by the master CPU of the board A.
実行中基板AのマスタCPUが必要を生じれば特定の番
地をアクセスすればアドレス制御部8よりバス分離部7
を介してスレープCPUが4ウエイト状態となりプログ
ラム格納用RAM 5がバス切換部6により外部バスに
だおされマスタCPUはこのスレープCPU 4のプロ
グラムの一部および全部を更新して再び電源立上げと同
一の方法でスレープCPU 4を再起動できる。なおバ
ス分離部7からウェイト信号と同様の方法にてスレープ
CPU 4にリセット信号を発生させればスレープCP
U 4を初期状態から起動することも可能である。If the master CPU of the board A during execution becomes necessary, it accesses a specific address and the bus separation unit 7 is activated by the address control unit 8.
The slave CPU enters a 4-wait state via the bus switching unit 6, and the program storage RAM 5 is transferred to the external bus by the bus switching unit 6.The master CPU updates part and all of the program of this slave CPU 4, and then restarts the power supply. Slave CPU 4 can be restarted using the same method. Note that if a reset signal is generated from the bus separator 7 to the slave CPU 4 in the same manner as the wait signal, the slave CPU
It is also possible to start U4 from an initial state.
この動作によりマスタCPUはスレープCPU4の動作
をプログラムの修正という形で直接的に制御できるとい
う利点を持つことができる。This operation has the advantage that the master CPU can directly control the operation of the slave CPU 4 by modifying the program.
発明の効果
本発明は上記実施例より明らかなようにスレープCPU
を塔載した基板にプログラム格納用RAMとバス切換部
、バス分離部、およびアドレス制御部を設けたものであ
り、一方の基板に塔載するプログラムを他方の基板から
任意のタイミングで容易に変更できるため、マスタCP
Uを塔載した基板がスレープCPUを塔載した基板のす
べての動作をプログラム変更による直接的な制御により
管理できるという効果を有する。Effects of the Invention As is clear from the above embodiments, the present invention utilizes a slave CPU.
A program storage RAM, a bus switching section, a bus separation section, and an address control section are installed on the board mounted on the board, and the program mounted on one board can be easily changed from the other board at any time. Master CP
This has the effect that the board on which U is mounted can manage all operations of the board on which the slave CPU is mounted by direct control by changing the program.
図は本発明の一実施例におけるプログラム制御方法を実
施する装置のブロック図である。
トマスタCPUを塔載した基板、2・・・スレープCP
Uを塔載した基板、3・・・外部パスライン、4・・・
スレープCPU、5・プログラム格納用RAM、6・・
・バス切換部、7・・バス分離部、8 アドレス制御部
、9・・ウェイト信号線、10・・・内部ハスライン、
11・・・電源部。The figure is a block diagram of an apparatus that implements a program control method according to an embodiment of the present invention. A board on which a master CPU is mounted, 2...Slave CPU
Board on which U is mounted, 3... External pass line, 4...
Slave CPU, 5, RAM for program storage, 6...
・Bus switching unit, 7...Bus separation unit, 8 Address control unit, 9...Wait signal line, 10...Internal lotus line,
11...Power supply section.
Claims (1)
Uに外部バスを介して接続されたスレープCPUを塔載
した第2の基板と、第2の基板内に設けられたプログラ
ム格納用RAMと、このプログラム格納用RAMを上記
外部バス側又は内部バス側に切換えるバス切換部と、上
記スレープCPUを上記内部バスから分離するバス分離
部と、上記マスタCPUからの指令により上記バス切換
部及びバス分離部を制御する制御部とを有し、上記バス
切換部を外部バス側に切換えた際に上記マスタCPUよ
り上記プログラム格納用RAMにプログラムを格納し、
上記バス切換部を内部バス側に切換えるとともに上記バ
ス分離部により上記スレープCPUを内部バスに接続し
てスレープCPUを動作させることを特徴とするマルチ
CPUシステムのプログラム制御装置。A first board on which a master CPU is mounted, and this master CPU
A second board mounting a slave CPU connected to the U via an external bus, a program storage RAM provided in the second board, and a program storage RAM connected to the external bus or the internal bus. a bus switching section for switching to the internal bus side, a bus separation section for separating the slave CPU from the internal bus, and a control section for controlling the bus switching section and the bus separation section according to commands from the master CPU; When the switching unit is switched to the external bus side, the program is stored in the program storage RAM from the master CPU,
A program control device for a multi-CPU system, characterized in that the bus switching section is switched to an internal bus side, and the bus separation section connects the slave CPU to the internal bus to operate the slave CPU.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11894690A JPH0414166A (en) | 1990-05-08 | 1990-05-08 | Program controller for multi-cpu system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11894690A JPH0414166A (en) | 1990-05-08 | 1990-05-08 | Program controller for multi-cpu system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0414166A true JPH0414166A (en) | 1992-01-20 |
Family
ID=14749164
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP11894690A Pending JPH0414166A (en) | 1990-05-08 | 1990-05-08 | Program controller for multi-cpu system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0414166A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05307534A (en) * | 1992-04-30 | 1993-11-19 | Tokyo Electric Co Ltd | Program loading method for multi-processor system |
US6401607B2 (en) * | 2000-01-12 | 2002-06-11 | Riso Kagaku Corporation | Stencil printing system, stencil printing method, and computer-readable recording medium storing stencil printing program |
JP2014153964A (en) * | 2013-02-11 | 2014-08-25 | Sumitomo Electric Ind Ltd | Electronic apparatus capable of updating micro programs |
-
1990
- 1990-05-08 JP JP11894690A patent/JPH0414166A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05307534A (en) * | 1992-04-30 | 1993-11-19 | Tokyo Electric Co Ltd | Program loading method for multi-processor system |
US6401607B2 (en) * | 2000-01-12 | 2002-06-11 | Riso Kagaku Corporation | Stencil printing system, stencil printing method, and computer-readable recording medium storing stencil printing program |
JP2014153964A (en) * | 2013-02-11 | 2014-08-25 | Sumitomo Electric Ind Ltd | Electronic apparatus capable of updating micro programs |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2829091B2 (en) | Data processing system | |
JPH0414166A (en) | Program controller for multi-cpu system | |
CN103197954A (en) | Information processing apparatus and method of controlling information processing apparatus | |
JP2000020492A (en) | Method for downloading program to sub cpu and nc device therefor | |
JPH06177965A (en) | Duplex exchange system | |
JP3647481B2 (en) | Microcontroller | |
JPH06138917A (en) | Programmable controller | |
JPH0276054A (en) | Bus control system | |
KR960003650B1 (en) | Input/output processor for improving computer system performance | |
JPH0145657B2 (en) | ||
JPH01248207A (en) | Numerical controller | |
JPH023801A (en) | Method for controller execution of program | |
JPH0484245A (en) | Duplex storage device | |
JPH01125653A (en) | Information processing system | |
JPH04230535A (en) | Method for maintaining information processing system | |
JPH0251759A (en) | Adaptor controlling system | |
JPH04320539A (en) | Arithmetic unit | |
JPH07182191A (en) | Duplex system | |
JPS62260263A (en) | Program control method using multiprocessor | |
JPH0351940A (en) | Direct memory access system | |
JPS62151674U (en) | ||
JPS63273155A (en) | Control system for shared storage device | |
JPH03135646A (en) | Program loading/saving system | |
JPS62111339A (en) | Program loading method | |
JPH0232450A (en) | Cache memory control system |