JPS5831465A - Processor controlling system - Google Patents
Processor controlling systemInfo
- Publication number
- JPS5831465A JPS5831465A JP12910881A JP12910881A JPS5831465A JP S5831465 A JPS5831465 A JP S5831465A JP 12910881 A JP12910881 A JP 12910881A JP 12910881 A JP12910881 A JP 12910881A JP S5831465 A JPS5831465 A JP S5831465A
- Authority
- JP
- Japan
- Prior art keywords
- processor
- main control
- stop
- controlled
- order
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/163—Interprocessor communication
- G06F15/167—Interprocessor communication using a common memory, e.g. mailbox
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
本発明はプロセッサ制御方式に関し、詳しくは、% 別
にマルチプロセッサ機能を有しないプロセッサ(例えば
マイクロプロセッサ)を用いてマルチプロセッサシステ
ムを構成し、主制御フロセッサから被制御プロセッサを
制御するプロセッサ制御方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a processor control method, and more specifically, a multiprocessor system is configured using processors (such as microprocessors) that do not have multiprocessor functions, and a controlled processor is controlled from a main control processor. This relates to a processor control method.
従来、マルチプロセッサシステムは、プロセッサ相互間
のスタート、ストップ制御やレジスタ間直接転送等の機
能を有するプロセッサやプロセッサ間通信用チャネルを
用いて構成されてきた。しかるに、最近、低価格の小さ
なプロセッサ、すなわちマイクロプロセッサを従来布線
論理で構成していた回路に用い、シグナルプロセッサや
フロントエンドプロセッサとして信号処理や前処理゛を
実行させ、経済性と共にシステムの融通性や主プロセツ
サ負荷の軽減をねらったマルチプロセッサシステムが有
力な方法としてクローズアップされてきた。Conventionally, multiprocessor systems have been configured using processors having functions such as start and stop control between processors and direct transfer between registers, and channels for communication between processors. However, recently, low-cost small processors, or microprocessors, have been used in circuits that were conventionally configured with wired logic to perform signal processing and preprocessing as signal processors or front-end processors, which has improved economic efficiency and system flexibility. Multiprocessor systems, which aim to reduce processing speed and main processor load, have been attracting attention as a promising method.
しかしマイクロプロセッサがプロセッサ相互間の制御機
能を有しないことから、これらシステムではプロセッサ
個々の結合を疎結合とし、処理に必要な情報をメモリ間
データ転送で引継ぐ構成としている。However, since microprocessors do not have a control function between processors, these systems have loose coupling between individual processors and take over information necessary for processing by data transfer between memories.
ところが交換機システム等、高信頼性が要求されるシス
テムでは、障害発生時に処理の停止、障害処理の実行、
あるいは冗長系への切替え等を速やかに行う必要がある
。そこでマルチプロセッサ制御機能を有しないプロセッ
サやマイクロプロセッサ等においても、プロセッサ間で
スタート、ストップ制御やレジスタ間直接転送等を行え
るようにすることが望ましいが、′通常は回路が固定さ
れているため、使用者が回路を変更することは不可能+
ある。また、プロセッサ制御機能を有“するプロセッサ
及びチャネル制御によるスタート、ストップ制御方式は
、ハード量を多く必要とし高価であり、複雑な制御を必
要とする欠点がある。However, in systems that require high reliability, such as switching systems, when a failure occurs, it is difficult to stop processing, execute failure handling,
Alternatively, it is necessary to quickly switch to a redundant system. Therefore, even in processors and microprocessors that do not have multiprocessor control functions, it is desirable to be able to perform start and stop control and direct transfer between registers between processors, but since the circuits are usually fixed, It is impossible for the user to change the circuit +
be. Furthermore, the start/stop control system using a processor having a processor control function and channel control requires a large amount of hardware, is expensive, and has the drawback of requiring complicated control.
本発明の目的は、このような欠点を解消するため、回路
が固定されているプロセッサにおいても、プロセッサ間
のスタート、ストップ制御を簡単に行えるようにするこ
とであり、また、その具体的な実現方法を経済的に提供
することにある。In order to eliminate such drawbacks, the purpose of the present invention is to enable easy start and stop control between processors even in processors with fixed circuits, and to provide a concrete implementation thereof. The objective is to provide an economical method.
以下゛、対象とする一プロセッサ制御の典型的な例とし
て、マイクロプロセッサを主制御プロセッサより制御す
る方法′について説明する。外部からマイクロプロセッ
サ(以下μP と略称する)制御のために使用できる機
能として、一般にμP は割込みとリセットを有してい
る。割込みには、マイクロプロセッサのプログラムで割
込みの可、不可を制御できるマスカブル割込み(以下、
工NTという)ト、フログラムで割込みを禁止できない
メンマスカブル割込み(以下、NMIという)とを有し
ていることが多い。また、リセットでは、リセット信号
によりμPの内部レジスタ等をクリアして初期設定した
後に、特定番地(例えば“0”番地)からプログラムを
実行開始する機能となっている。本発明は、これらの機
能を用いてスタート、ストップ制御御を実現するもので
ある。In the following, a method for controlling a microprocessor from a main control processor will be described as a typical example of controlling one processor. Generally, a μP has interrupts and resets as functions that can be used to externally control a microprocessor (hereinafter abbreviated as μP). Interrupts include maskable interrupts (hereinafter referred to as maskable interrupts) that can be controlled by a microprocessor program.
In many cases, these interrupts have a main maskable interrupt (hereinafter referred to as NMI), which cannot be disabled in the program. In addition, the reset function is to clear the internal registers of the μP using a reset signal and perform initial settings, and then start executing the program from a specific address (for example, address "0"). The present invention realizes start and stop control using these functions.
第1図は本発明の一実施例のブロック図で、lは主制御
プロセッサ、2,3は禁止不可能な割込みNMIとリセ
ツ) RESETを備えたμP111は主制御プロセッ
サlのプログラムを格納するメモリ、12゜13はそれ
ぞれμP2,3のプログラムを格納するメモリ、31は
主制御プロセッサ11μP2,3のそれぞれからアクセ
ス可能な共通メモリ、32は共通メモリアクセス制御回
路、21.22.23Fiそれぞれ主制御プロセッサ1
1μP2,3からの制御情報によりメモリ11 、12
.13へのア・クセス、共通メモリ31へのアクセスを
分岐制御するメモリアクセス制御回路、33は主制御プ
ロセッサlからの制御オーダによりμP2,3にそれぞ
れ制御信号を送出するμP制御回路である。FIG. 1 is a block diagram of an embodiment of the present invention, where l is a main control processor, 2 and 3 are non-inhibitable interrupts (NMI and RESET), and μP111 is a memory that stores the program of the main control processor l. , 12 and 13 are memories that store programs for μP2 and 3, respectively, 31 is a common memory that can be accessed from each of the main control processors 11μP2 and 3, 32 is a common memory access control circuit, and 21, 22, and 23Fi are main control processors, respectively. 1
Memory 11, 12 by control information from 1μP2, 3
.. 13 is a memory access control circuit that branches and controls access to the common memory 31, and 33 is a μP control circuit that sends control signals to μPs 2 and 3 according to control orders from the main control processor l.
共通メモリ31には、第2図(a)に示す如くμPの内
部情報を設定するだめの特定エリア(以下、システムエ
リアという)をμP対応に定める。システムエリアには
、処理を一時中断した後に、再び中断直前の状態に復帰
し、処理を継続するために必要なすべての情報を設定す
る。システムエリアに設定される情報とエリアの割付け
の一例を第2図(b)に示す。In the common memory 31, as shown in FIG. 2(a), a specific area (hereinafter referred to as system area) in which the internal information of the μP is to be set is defined corresponding to the μP. In the system area, after temporarily suspending processing, all information necessary to return to the state immediately before the suspension and continue processing is set. An example of information set in the system area and area allocation is shown in FIG. 2(b).
先ず、主制御プロセッサlからのスタートオーダにより
、μP2,3をスタ、−トさせる際の動作に主制御プロ
セッサ1はμ゛PPスタートオーダ出に先立ち、μP2
ン3が実行を開始すべ角スタート番地、μP2,3の各
種レジスタに設定すべき初期値を共通メモリ31の各シ
ステムエリアに設定する。First, in response to a start order from the main control processor 1, the main control processor 1 performs an operation to start μP2 and 3 before issuing a start order to PP2.
The initial value to be set in the various registers of μP2 and μP3 is set in each system area of the common memory 31.
すなわち、主制御プロセッサlはメモリバス101を介
し、メモリアクセス要求としてシステムエリアのアドレ
ス、該システムエリアに設定するデータ(例えばスター
ト番地゛)、および書込み信号をメモリアクセス制御回
路21に送出する。メモリアクセス制御回路21はその
アドレス情報から共通メモリ31へのアクセスであるこ
とを識別し、アクセス要求アドレス、データ、書込み信
号を共通メモリアクセス線102を介して共通メモリア
クセス制御回路、32に送出する。共通メモリアクセス
制御回路32け該アクセス要求に対して、他のプロセッ
サが共通メモリ31を使用していなくて、かつ他のプロ
セッサからの共通メモリアクセス要求がない場合、ある
いは他のプロセッサからアクセス要求があるが、競合制
御によって主制御プロセ゛ツサ1からのアクセス要求が
認められた場合、主制御プロセッサlのアクセス要′求
を受は付ける。なお、上記以外の場合には共通メモリア
クセスは待合せとなり、他プロセツサの共通メモリ使用
が終了した時点に受は付けられる。共通メモリアクセス
制御回路32はアクセス要求を受付けると、デー、夕、
書込み信号を共通メモリバス103を介して共通メモリ
31に送出する。共通メモリ31は該アドレスに基いて
該当システムエリアにデータを書込む。主制御プロセッ
サ1は共通メモリアクセスを順次繰返し、μPスタート
に必要なスタート番地、各種レジスタの初期値を共通メ
モリ31の該当システムエリアに順次設定する。That is, the main control processor 1 sends a system area address, data to be set in the system area (for example, a start address), and a write signal to the memory access control circuit 21 as a memory access request via the memory bus 101. The memory access control circuit 21 identifies that the access is to the common memory 31 from the address information, and sends the access request address, data, and write signal to the common memory access control circuit 32 via the common memory access line 102. . The common memory access control circuit 32 responds to the access request when no other processor is using the common memory 31 and there is no common memory access request from another processor, or when there is an access request from another processor. However, if the access request from the main control processor 1 is recognized by contention control, the access request from the main control processor 1 is accepted. Note that in cases other than the above, the common memory access is queued, and the access is granted when the use of the common memory by other processors is completed. When the common memory access control circuit 32 receives an access request, the common memory access control circuit 32
A write signal is sent to the common memory 31 via the common memory bus 103. The common memory 31 writes data to the corresponding system area based on the address. The main control processor 1 sequentially repeats common memory access and sequentially sets the start address and initial values of various registers required for μP start in the corresponding system area of the common memory 31.
主制御プロセッサ1は上記システムエリアへの情報設定
を終了した後に、μPスタートオーダを入出力バス10
4を介してμP制御回路33に送出する。After completing the information setting to the system area, the main control processor 1 transfers the μP start order to the input/output bus 10.
4 to the μP control circuit 33.
なお、μPスタートオーダにはスタートさせるべきμP
の番号あるいは全μPスタート指示情報が含まれる。μ
P制御回路33は該オーダに基づき、スタートさせるμ
P2あるいは3にリセット信号を所定のタイミングの間
送出する。例えばμP2をスタートさせる場合には、リ
セット信号線11’2に低レベル(論理“1″)が送出
され、所定のタイミング後に高レベル(論理“0”)と
なる。μP2のRESBT端子に低レベルが゛入力され
たことにより、μP2のプログラムカウンタ(PC)、
Iレジスタおよび割込みマスク(IFF)がクリアされ
る。さらに所定タイミング後に高レベルが入力されるこ
とにより、μP2はメモリ12の0”番地から実行開始
する。すなわち、メモリ12の′!O”番地からはスタ
ート処理プログラムが格納されており、μP2は該スタ
ート処理プログラムり実行する。スタート処理プログラ
ムは第3図に示した如くであり、μP2は共通メモリ3
1のシステムエリアに格納されている値を各種レジスタ
に設定し、スタックポインタ(SP)で指示されるスタ
ックエリアにスタート番地を格納し、IFFエリアの値
に基いて設定した後に、リターン(RET)命令により
、スタックエリアに格納されているスタート番地をPC
に設定し、スタート番地にジャンプする。なお、μP2
から共通メモリ31のシステムエリアへのアクセスは、
゛前述の主制御フロセッサ1のアクセス手順と同一であ
る。ただし、読出しの場合には書込み信号の代わりに読
出し信号を送出する。また、スタート処理プログラムは
メモリ12の“0”番地か逅連続的に格納されている必
要はなく、メモリの使用上の匣宜を考慮して格納エリア
を決定すればよい。ただし、スタート処理プログラムの
先頭は“0″番地とする。In addition, the μP to be started is included in the μP start order.
number or all μP start instruction information is included. μ
The P control circuit 33 starts μ based on the order.
A reset signal is sent to P2 or P3 for a predetermined timing. For example, when starting μP2, a low level (logic "1") is sent to the reset signal line 11'2, which becomes high level (logic "0") after a predetermined timing. By inputting a low level to the RESBT terminal of μP2, the program counter (PC) of μP2,
The I register and interrupt mask (IFF) are cleared. Furthermore, by inputting a high level after a predetermined timing, μP2 starts execution from address 0'' in memory 12. In other words, the start processing program is stored from address ``!O'' in memory 12, and μP2 Execute the start processing program. The start processing program is as shown in Fig. 3, and μP2 is stored in common memory 3.
After setting the values stored in system area 1 in various registers, storing the start address in the stack area indicated by the stack pointer (SP), and setting based on the value in the IFF area, return (RET). The start address stored in the stack area is transferred to the PC by an instruction.
to jump to the start address. In addition, μP2
Access to the system area of the common memory 31 from
゛The access procedure is the same as that of the main control processor 1 described above. However, in the case of reading, a read signal is sent out instead of a write signal. Further, the start processing program does not need to be stored continuously at address "0" of the memory 12, and the storage area may be determined taking into consideration the convenience of memory usage. However, the beginning of the start processing program is at address "0".
μP3をスタートさせるには、主制御゛プロセッサ1か
らの′μPスタートオーダでμP3’を指定し、該オー
ダに基いてμP制御回路あがリセット信号線122にリ
セット信−号を送出することにより、上記μP2のスタ
ートと全く同一の手順で実現できる。なお1、共通メモ
リ31のシステムエリアはμP3に対応づけられたシス
テムエリアを使用する。To start μP3, specify μP3 with a μP start order from the main control processor 1, and based on the order, the μP control circuit sends a reset signal to the reset signal line 122. This can be realized using exactly the same procedure as the start of μP2 described above. Note that the system area of the common memory 31 uses the system area associated with μP3.
また、μP2,3を同時にスタートさせるには、主制御
プロセッサ1からのμPスタートオーダで1斉スタート
を指定し、μP制御回路おが該オーダに基いてリセット
信号112 、122に同時にリセット信号を送出する
ことにより、同様の手順で実現できる。In addition, in order to start μPs 2 and 3 at the same time, the μP start order from the main control processor 1 specifies simultaneous start, and the μP control circuit simultaneously sends reset signals to the reset signals 112 and 122 based on the order. This can be achieved using the same procedure.
ただし、この場合はμP2,3から独立に出される共通
メモリ31に対するアクセス要求の競合を共通メモリア
クセス制御回路32で制御する必要がある。However, in this case, it is necessary for the common memory access control circuit 32 to control conflicts between access requests to the common memory 31 issued independently from μPs 2 and 3.
次に主制御プロセッサlからのストップオーダにより、
μP2,3をストップさせる際の動作について説明する
。Next, according to the stop order from the main control processor l,
The operation when stopping μP2 and μP3 will be explained.
主制御プロセッサlは入出力バス104を介してμP番
号あるいは全μP指定情報を含むμPストップオーダを
μP制御回路33に送出する。μP制御回路33味核オ
ーダに基づき、ストップさせるμPKNMI信号を送出
する。例えばμP2ストツプのオーダを受信した場合に
は、NMI信号線111に低レベル(論理“1″)を送
出する。μP2はNMI端子に低レベルが入力されたこ
とにより、実行中の命令を実行終了した時点でNMI割
込みを受付け、PCの内容をSPで指示されるスタック
エリアに格納した(以下、格納されたPCの値をPCo
と記す)後に、PCに66Hを設定して66H番地にジ
ャンプする。メモリ12の66H”番地からにはストッ
プ処理プログラムが格納されており、μP2は“66H
”番地からストップ処理プログラムを実行する。ストッ
プ処理プログラムは第4図に示す如くであり、μP2は
スターツクエリアに格納されているPCo1各種レジス
タの内容および割込みマスクの状況をシステムエリアに
格納した後に、ホール) (HALT)命令を実行して
、ホールト状態に入る。□
μP3をストップさせるには、主制御プロセッサlから
のμPストップオータゝでμP3を指定し、該オーダに
基づいてμP制御回路33がNMI信号線121にNM
I′信号を送出することにより、上記μP2のストップ
と全く同一の手順で実現できる。The main control processor l sends a μP stop order including the μP number or all μP designation information to the μP control circuit 33 via the input/output bus 104. μP control circuit 33 sends a μPKNMI signal to stop based on the taste kernel order. For example, when a μP2 stop order is received, a low level (logic "1") is sent to the NMI signal line 111. When a low level was input to the NMI terminal, μP2 accepted the NMI interrupt when the currently executed instruction was finished, and stored the contents of the PC in the stack area specified by SP (hereinafter referred to as the stored PC). The value of PCo
After that, set 66H on the PC and jump to address 66H. A stop processing program is stored from address 66H in the memory 12, and μP2 starts at address 66H.
”The stop processing program is executed from the address. The stop processing program is as shown in Figure 4, and μP2 stores the contents of various registers of PCo1 stored in the start square area and the interrupt mask status in the system area. , Hall) (HALT) command to enter the halt state. □ To stop μP3, specify μP3 with the μP stop order from the main control processor l, and then execute the μP control circuit 33 based on the order. is connected to the NMI signal line 121.
By sending the I' signal, stopping of μP2 can be achieved in exactly the same procedure as described above.
また、μP2,3を同時にストップさせるには、主制御
プロセッサ1のμPストップオーダで全μPストップを
指定し、該オー′ダに基づきμP制御回路おはNMI信
号線111.121に同時にNMI信号を送出すること
により、同様の手順で実現できる。To stop μPs 2 and 3 at the same time, specify all μP stops using the μP stop order of the main control processor 1, and then simultaneously send the NMI signal to the μP control circuit or NMI signal lines 111 and 121 based on the order. This can be achieved using the same procedure by sending the data.
なお、ストップはシステムの障害処理等、緊急時に使用
されるこ七が多いので、ストップ制御にはNMI割込み
を用いる方法が適切であるが、8M1割込み機能を有し
ないプロセッサあるいはNMIを他の用途に使用するプ
ロセッサに対しては、ストップ用割込みを常に可能とす
るとの制約のもとに、INT割込みを用いて上記ストッ
プ制御を実現できる。すなわち、主制御プロセッサlか
らのμPストップオーダに基づき、μP制御回路33は
μP2あるいはμP3にストップ用INT割込み信号を
送出し、μP2あるいはμP3は該INT割込み信号に
より割込みマスクを設定し、PCをスタックエリアに格
納した後に、特定番地にジャンプし、上記ストップ処理
プログラムを実行し、ホールト状態に入る。次に主制御
プロセッサからのスタートオーダに基づき、被制御プロ
セッサはスタート処理プログラムを実行し、該スタート
処理でストップ用割込みマスクを解除、すなわち割込み
可能とした後に、スタート番地にジャンプする。以後、
処理実行中にストップ割込みマスクを設定することは禁
止される。Note that stop is often used in emergencies such as handling system failures, so it is appropriate to use NMI interrupts for stop control. For the processor used, the above-mentioned stop control can be realized using an INT interrupt, with the restriction that stop interrupts are always enabled. That is, based on the μP stop order from the main control processor l, the μP control circuit 33 sends an INT interrupt signal for stopping to μP2 or μP3, and μP2 or μP3 sets an interrupt mask using the INT interrupt signal and stacks the PC. After storing it in the area, it jumps to a specific address, executes the stop processing program, and enters a halt state. Next, based on the start order from the main control processor, the controlled processor executes the start processing program, releases the stop interrupt mask in the start processing, that is, makes interrupts possible, and then jumps to the start address. From then on,
It is prohibited to set a stop interrupt mask during processing execution.
但し、該禁止は回路によh規定されているのではなく、
プロセッサ使、用土の規則である。However, this prohibition is not specified by the circuit;
Rules regarding processor usage and soil usage.
次にリセットを用いず、INT割込みを用いるスタート
制御について説明する。リセットスタート機能を有しな
いプロセッサあるいはリセットをノ5ワーオンリセット
等、他の用途に用いる場合に対して、スタート用割込み
を設け、上記ストップ処理プログラムでスタート用割込
みのみを割込み可能とすることにより、■NT割込みを
用いて上記スタート制御を実現できる。すなわち主制御
プロセッサ1からのμPストップオーダに基づき、μP
2あるいはμP3は上記ストップ処理プログラムを実行
し、該処理の中でスタート用割込みマスクを解除(すな
わちスタート用割込みのみを割込み可と)した後に、ホ
ールト状態に入る。次に主制御プロセッサからのスター
トオーダに基づき、μP制御回路おはμP2あるいはμ
P3にスタート割込み信号を送出する。μP2あるいは
μP3は該信号により特定番地にジャンプし、上記スタ
ート処・環プログラムを実行し、スタート番地にジャン
プする。Next, start control using an INT interrupt without using a reset will be explained. For processors that do not have a reset start function or when using reset for other purposes such as 5-war-on reset, by providing a start interrupt and allowing only the start interrupt to be interrupted by the above-mentioned stop processing program, (2) The above start control can be realized using the NT interrupt. That is, based on the μP stop order from the main control processor 1, μP
2 or μP3 executes the above-mentioned stop processing program, and after canceling the start interrupt mask (that is, allowing only the start interrupt), enters the halt state. Next, based on the start order from the main control processor, the μP control circuit either μP2 or μ
Sends a start interrupt signal to P3. μP2 or μP3 jumps to a specific address in response to the signal, executes the start program/ring program, and jumps to the start address.
なおINT割込みの拡張については、ストップ制御K
INT割込みを用いる場合と同一方法で実現できる。Regarding the extension of INT interrupt, stop control K
This can be achieved in the same way as when using an INT interrupt.
次に中断点再開について説明する。一般にプロセッサを
用いたシステムでは、障害処理等の緊急制御を要する状
態が発生すると、処理を一時中断し、緊急の処理を実行
した後に、再び中断点から処理を続行する。本方式では
この被制御プロセッサの中断点再開制御を容易に実現で
きや。すなわち、緊急事態が発生すると、主制御プロセ
ッサlはストップオーダを送出し、μP2あるいは3の
被制御プロセッサを停止させる。被制御プロセッサは該
′オーダに基づき内部情報を共通メモリ31の該当シス
テムエリアに格納した後にホー完ト状態とな乞。Next, restarting from the interruption point will be explained. Generally, in a system using a processor, when a situation requiring emergency control such as troubleshooting occurs, processing is temporarily interrupted, the emergency processing is executed, and then processing is resumed from the point of interruption. With this method, it is possible to easily realize control for restarting the controlled processor from the point of interruption. That is, when an emergency situation occurs, the main control processor l sends out a stop order and stops the controlled processor of μP2 or 3. The controlled processor stores the internal information in the corresponding system area of the common memory 31 based on the order, and then enters the complete state.
主制御プロセッサlは被制御プロセッサの停止を確認し
、共通メモリ31のシステムエリアに格納された内部情
報を退避エリアに移し、緊急処理に必要な情報を該当シ
ステム宛リアに設定した後に、スタートオーダを送出し
て被制御プロセッサをスタートさせる。被制御プiセッ
サは該オーダに基づき共通メモリ31の該肖システムエ
リアに格納されている情報を内部に設定し、緊急処理プ
ログラムを実行する。実行終了後、終了を例えば共通メ
モリ31を介して主制御プロセッサlに報告し、自律的
にあるいは主制御プロセッサlからのストン、プオーダ
によりホールト状態に入る。主制御プロセッサlは被制
御゛プロセッサの実行終了およびホールトを確認した後
に、共通メモリ31の退避エリアに格納されている被制
御プロセッサの内部情報を該当システムエリアに移し、
スタートオーダ、を送出して被制御プロセッサをスター
トさせる。被制御プロセッサは該オーダに基づき共通メ
モリ3】のシステムエリアから中断時の内部情報を読出
して内部設定し、メタ3−トすることにより中断点再開
を行う。The main control processor l confirms that the controlled processor has stopped, moves the internal information stored in the system area of the common memory 31 to the evacuation area, sets the information necessary for emergency processing in the corresponding system destination area, and then issues a start order. Starts the controlled processor by sending . The controlled processor internally sets the information stored in the corresponding system area of the common memory 31 based on the order, and executes the emergency processing program. After completion of execution, the completion is reported to the main control processor l via, for example, the common memory 31, and the CPU enters a halt state either autonomously or by a stone or order from the main control processor l. After confirming the completion of execution and halt of the controlled processor, the main control processor l moves the internal information of the controlled processor stored in the save area of the common memory 31 to the corresponding system area,
A start order is sent to start the controlled processor. Based on the order, the controlled processor reads the internal information at the time of interruption from the system area of the common memory 3, sets it internally, and performs metadata to resume the interruption point.
以上説明したように、本発明によれば、μP等のマルチ
プロセッサ機能を有しないプロセッサを用いてマルチプ
ロセッサを構成する場合、使用者が共通メモリと簡単な
回路を付加するのみで、プロセッサのスタート、ストッ
プ制御および中断点再開制御が可能となるため、高信頼
性を要するシステム如おいてもμP等を用いて容易にマ
ルチプロセッサを構成できるという利点がある。As explained above, according to the present invention, when configuring a multiprocessor using a processor such as μP that does not have a multiprocessor function, the user can start the processor by simply adding a common memory and a simple circuit. , stop control and interruption point restart control are possible, so there is an advantage that even in systems that require high reliability, a multiprocessor can be easily configured using μP or the like.
第1図は本発明の一実施例を示すブロック図、第2図(
a)、Φ)は第1図における共通メモリに設定するシス
テムエリアの一例を示す図、第3図はスタート処理プロ
グラムの一例を示す流れ図、第4図はストップ処理プロ
グラムの一例を示す流れ図である。
1・・・主制御プロセッサ、2,3・・・マイクロプロ
セッサ、11 、12.13・・・メモリ、21,22
.23・・・メモリアクセス制御回路、31・・・共通
メモリ、32・・・共通メモリアクセス制御回路、33
・・パマイクロプロセッサ制御回路、lOl・・・メモ
リバス、lO2・・・共通メモリアクセス線、103・
・・共通メモリバス、104・・・入出力バス、Ill
、121・・・リセット信号線。
第1図
[
0
[
)
1
幻
第2
(の
(トン
第3図
第4図FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 2 (
a) and Φ) are diagrams showing an example of the system area set in the common memory in FIG. 1, FIG. 3 is a flowchart showing an example of a start processing program, and FIG. 4 is a flowchart showing an example of a stop processing program. . 1... Main control processor, 2, 3... Microprocessor, 11, 12.13... Memory, 21, 22
.. 23...Memory access control circuit, 31...Common memory, 32...Common memory access control circuit, 33
... microprocessor control circuit, lOl... memory bus, lO2... common memory access line, 103.
... Common memory bus, 104 ... Input/output bus, Ill
, 121...Reset signal line. Figure 1 [ 0 [ ) 1 Illusion 2 ('s Figure 3 Figure 4
Claims (1)
るいは異種の複数のプロセッサで構成し、その主制御プ
ロセッサが被制御プロセッサの実行開始(スタート)、
停止(ストップ)を制御するシステムにおいて、主制御
プロセッサと被制御プロセッサが共にアクセス可能な共
通メモリと、主制御プロセッサからの制御オーダをデコ
ードし、被制御プロセッサに割込み信号あるいはリセッ
ト信号を与えるプロセッサ制御回路とを設け、主制御プ
ロセッサがプロセッサ制御回路に被制御プロセッサスタ
ートオーダを送出すると、該プロセッサ制御回路は該オ
ーダに基づいて被制御プロセッサにリセット信号を発生
し、被制御プロセッサは該リセット信号により特1定番
地からスタート処理プログラムを実行し、停止する際に
あらかじめ共通メモリの特定エリアに蓄積した内部情報
あるいは主制御プロセッサがあらかじめ共通メモリの特
定エリアに設定したスタート情報を共通メモリから読出
し、該情報をスタート時の内部状態として設定して停と
状態から実行状態に移り、主制御プロセッサがプロセッ
サ制御回路に被制御プロセッサストップオーダを送出す
ると、該プロセッサ制御回路は該オーダに基づいて被制
御プロセッサに禁止不可能な割込みを発生し、該被制御
プロセッサは該割込みによりストップ処理プログラムを
実行し、該割込み時点における内部状態を共通メモリの
特定エリアに書込み、蓄積した後に、実行状態から停止
状態に移ることを特徴とするプロセッサ制御方式。 2、特許請求の範囲第1項記載のプロセッサ制御方式に
おいて、主制御プロセッサからのストップオーダに基づ
き実行状態から停止状態に移る際に、被制御プロセッサ
はスタート割込みのみ□ を受は入れ可能とし、主制御
プロセッサからのスタートオーダに基づき、プロセッサ
制御回路は被制御プロセッサにスタート割込みを発生し
、該被制御プロセッサは該スタート割込みによりスター
ト処理プログラムを実行することを特徴とするプロセッ
サ制御方式。[Claims] 1. Consisting of a plurality of processors of the same type or different types that do not have a special multiprocessor control function, the main control processor starts execution of the controlled processor,
In a system that controls a stop, a common memory that can be accessed by both the main control processor and the controlled processor, and a processor control that decodes control orders from the main control processor and provides an interrupt signal or a reset signal to the controlled processor. When the main control processor sends a controlled processor start order to the processor control circuit, the processor control circuit generates a reset signal to the controlled processor based on the order, and the controlled processor Special 1 A start processing program is executed from a fixed location, and when the program is stopped, the internal information stored in advance in a specific area of the common memory or the start information set in advance in a specific area of the common memory by the main control processor is read from the common memory, and the When the main control processor sends a controlled processor stop order to the processor control circuit by setting the information as the internal state at the start and moving from the stop state to the running state, the processor control circuit controls the controlled processor based on the order. generates an interrupt that cannot be prohibited, the controlled processor executes a stop processing program by the interrupt, writes and stores the internal state at the time of the interrupt in a specific area of the common memory, and then changes from the running state to the stopped state. A processor control method characterized by shifting. 2. In the processor control method according to claim 1, when transitioning from an execution state to a stop state based on a stop order from the main control processor, the controlled processor can accept only a start interrupt, A processor control method characterized in that a processor control circuit generates a start interrupt to a controlled processor based on a start order from a main control processor, and the controlled processor executes a start processing program in response to the start interrupt.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12910881A JPS5831022B2 (en) | 1981-08-17 | 1981-08-17 | Processor control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12910881A JPS5831022B2 (en) | 1981-08-17 | 1981-08-17 | Processor control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5831465A true JPS5831465A (en) | 1983-02-24 |
| JPS5831022B2 JPS5831022B2 (en) | 1983-07-02 |
Family
ID=15001259
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP12910881A Expired JPS5831022B2 (en) | 1981-08-17 | 1981-08-17 | Processor control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5831022B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61223253A (en) * | 1985-03-28 | 1986-10-03 | Mitsubishi Electric Corp | Oil separation mechanism for stirling engine |
-
1981
- 1981-08-17 JP JP12910881A patent/JPS5831022B2/en not_active Expired
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61223253A (en) * | 1985-03-28 | 1986-10-03 | Mitsubishi Electric Corp | Oil separation mechanism for stirling engine |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5831022B2 (en) | 1983-07-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0258649B2 (en) | ||
| JPS5831465A (en) | Processor controlling system | |
| JPS5925258B2 (en) | processor control system | |
| JPS59218569A (en) | micro computer | |
| JPS61101865A (en) | Multi-microprocessor system | |
| JPH0444151A (en) | Processor | |
| JPS61136159A (en) | Single chip microcomputer | |
| JPS62152064A (en) | Single-chip microcomputer | |
| JPS62221062A (en) | Single chip microcomputer | |
| JPH0354374B2 (en) | ||
| JPH01316851A (en) | Channel control system | |
| JPS6223895B2 (en) | ||
| JPS62205441A (en) | Microcomputer | |
| JP2578267B2 (en) | Microcomputer system | |
| JPH0424733B2 (en) | ||
| JPH0247751A (en) | Channel control system | |
| JPH02183342A (en) | Interruption controller | |
| JPS63153635A (en) | Specification system for data transfer speed | |
| JPH0149984B2 (en) | ||
| JPS59172029A (en) | Lock control system for asynchronous common bus | |
| JPH0256698B2 (en) | ||
| JPS61101868A (en) | Masking system of mutual interruption for duplex processor | |
| JPH0477930A (en) | Microcomputer | |
| JPS60221846A (en) | main storage | |
| JPS62217326A (en) | Computer capable of storing and switching plural os |