JPH0367357A - Multi-cpu system - Google Patents
Multi-cpu systemInfo
- Publication number
- JPH0367357A JPH0367357A JP20317089A JP20317089A JPH0367357A JP H0367357 A JPH0367357 A JP H0367357A JP 20317089 A JP20317089 A JP 20317089A JP 20317089 A JP20317089 A JP 20317089A JP H0367357 A JPH0367357 A JP H0367357A
- Authority
- JP
- Japan
- Prior art keywords
- processing
- data
- cpu
- memory
- common memory
- 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)
Abstract
Description
【発明の詳細な説明】
〈産業上の利用分野〉
本発明は、複数のCPUによって処理を実行するマルチ
CPUシステムに関する。DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention relates to a multi-CPU system in which processing is executed by a plurality of CPUs.
〈従来技術〉
一般に、CPUを用いたシステムにおいては、1つのC
PUを用いた、いわゆるシングルCPU方式によってシ
ステムを構築することが多い。<Prior art> Generally, in a system using a CPU, one C
Systems are often constructed using a so-called single CPU method using a PU.
第7図はこのようなシングルCPU方式のシステム構成
例を示すブロック図である。FIG. 7 is a block diagram showing an example of a system configuration of such a single CPU system.
この図に示すシステムは工つのCPUl01と、このC
PUl0Iのプログラムを格納するROM等のメモリ1
02と、前記CPUl01の作業エリアとして使用され
るRAM等のメモリ103と、外部に対して信号の入出
力を行なう周辺装置l○4とを備えており、メモリ10
2に格納されたプログラムに基づいて種々の処理を実行
する。The system shown in this figure has one CPU101 and this C
Memory 1 such as ROM that stores the PUl0I program
02, a memory 103 such as a RAM used as a work area for the CPU 101, and a peripheral device 104 that inputs and outputs signals to the outside.
Various processes are executed based on programs stored in 2.
この場合、プログラムによって記述された内容がサブル
ーチン処理であれば、第8図に示すような手順で処理を
実行する。In this case, if the content described by the program is a subroutine process, the process is executed according to the procedure shown in FIG.
この処理では、CPUl01はまずサブルーチンから戻
るのに必要な番地(戻り番地)として現在の実行番地を
記憶した後(ステップ5TIOI)、サブルーチンの先
頭番地にジャンプする(ステップ5T102)。In this process, the CPU 101 first stores the current execution address as an address (return address) necessary for returning from the subroutine (step 5TIOI), and then jumps to the starting address of the subroutine (step 5T102).
そして、このサブルーチンにおいて、CPUl01はま
ずCPU内部にある各レジスタの値をメモリ103のス
タックエリアに退避させる(ステップ5T103)。In this subroutine, the CPU 101 first saves the values of each register inside the CPU to the stack area of the memory 103 (step 5T103).
この後、CPUl0Iはサブルーチンによって規定され
ている処理、例えば周辺装置104からデータを取り込
みこれをレジスタに格納する処理や(ステップ5T10
4)、このレジスタからメモリ103にデータを転送す
る処理などを行なった後(ステップ5T105.)、ス
タックエリアに退避させていた多値をレジスタに復帰さ
せる(ステップ5T106)。After this, the CPU 10I performs the processing specified by the subroutine, for example, the processing of fetching data from the peripheral device 104 and storing it in a register (step 5T10).
4) After performing processing such as transferring data from this register to the memory 103 (step 5T105), the multi-value saved in the stack area is returned to the register (step 5T106).
次いで、CPUl01は記憶している戻り番地の値を読
出しくステップ5T107)、この値によって示される
番地にジャンプしメインルーチンに戻る(ステップ5T
108)。Next, CPUl01 reads the value of the stored return address (step 5T107), jumps to the address indicated by this value, and returns to the main routine (step 5T107).
108).
そして、このメインルーチンに記述されている処理、例
えば前記サブルーチンで取り込んだ値をレジスタに転送
する処理等を行なう(ステップ5T109)。Then, the process described in this main routine, such as the process of transferring the value fetched in the subroutine to the register, is performed (step 5T109).
また〜プログラムに記述された内容が割り込み処理であ
れば、第9図に示す手順で処理を実行する。Also, if the content described in the program is an interrupt process, the process is executed according to the procedure shown in FIG.
この処理では、CPUl01はまず周辺装置104から
出力される割り込み要求を受け、この割り込み要求に応
じて割り込みマスクを更新し、この割り込み要求より優
先度が低い割り込みがかからないようにする(ステップ
5TIIO)。In this process, the CPU 101 first receives an interrupt request output from the peripheral device 104, updates the interrupt mask in accordance with this interrupt request, and prevents an interrupt having a lower priority than this interrupt request from occurring (step 5TIIO).
この後、CPUl0Iは周辺装置104にベクタ番号を
要求し、これが出力されたとき、このベクタ番号に対応
する割り込みベクタを発生するとともに(ステップ5T
12)、CPU内部にあるプログラムカウンタ、各レジ
スタの値をメモリ103のスタックエリアに退避させる
(ステップ5T113)。After this, CPUl0I requests a vector number from the peripheral device 104, and when this is output, it generates an interrupt vector corresponding to this vector number (step 5T
12) The values of the program counter and each register inside the CPU are saved to the stack area of the memory 103 (step 5T113).
この後、CPULOIは前記割り込みベクタに基づいて
この割り込みベクタに対応する割り込み処理ルーチンの
先頭番地を算出しくステップ5T114)、これを前記
プログラムカウンタにセットするとともに(ステップS
Tエエ5)、このプログラムカウンタにセントされてい
る値の番地にジャンプしてこの番地に記述されている処
理を実行する(ステップ5T116.5T117)。Thereafter, the CPULOI calculates the start address of the interrupt processing routine corresponding to this interrupt vector based on the interrupt vector (Step 5T114), and sets this in the program counter (Step S114).
T5) Jump to the address of the value written in this program counter and execute the process described at this address (steps 5T116 and 5T117).
そして、この処理が終了すれば、CPULOIは周辺装
置104の割り込み要求を解除させるとともに、スタッ
クエリアに退避させていた多値をプログラムカウンタや
各レジスタに復帰させ(ステップ5T118)、割り込
み処理を終了する。When this processing is completed, the CPULOI releases the interrupt request from the peripheral device 104, returns the multivalues saved in the stack area to the program counter and each register (step 5T118), and ends the interrupt processing. .
このようにこのシステムにおいては、1つのCPUl0
Iによってサブルーチン処理や割り込み処理等を順次シ
ーケンシャルに選択してこれを実行する。In this way, in this system, one CPU10
I sequentially selects and executes subroutine processing, interrupt processing, etc.
しかしながらこのようなシステムにおいては、メインル
ーチンからサブルーチンや割り込み処理ルーチンに移る
ときゃ、サブルーチンや割り込み処理ルーチンからメイ
ンルーチンに移るとき、CPULOI内部にある各レジ
スタの内容をスタックエリアに退避させたり、復帰させ
たりしなければならないので、これらの処理を行なう分
だけ余分な時間を必要とし、実行速度が遅くなってしま
うという問題があった。However, in such a system, when moving from the main routine to a subroutine or interrupt processing routine, or from a subroutine or interrupt processing routine to the main routine, the contents of each register inside the CPULOI must be saved to the stack area and restored. Therefore, there is a problem in that extra time is required to perform these processes, and the execution speed becomes slow.
また、メモリ103上などにスタックエリアを確保しな
ければならず、メモリの管理が複雑になってしまうとい
う問題があった。Furthermore, a stack area must be secured on the memory 103 or the like, making memory management complicated.
また、割り込み処理を行なうために、割り込み処理のプ
ログラムが格納されているエリアの先頭番地を管理しな
ければならず、その分だけプログラム作成作業が煩雑に
なってしまうという問題があった。In addition, in order to perform interrupt processing, it is necessary to manage the starting address of the area where the interrupt processing program is stored, which makes the program creation work that much more complicated.
く目的〉
本発明は上記の事情に鑑み、メインルーチンからサブル
ーチン等に移るときや、このサブルーチン等からメイン
ルーチンに移るとき、レジスタ等の退避処理、復帰処理
を省略してその分だけ処理の実行速度を早くすることが
できるとともに、スタックエリアの管理や、割り込み処
理先番地の管理を省略することができ、これによってプ
ログラムの作成を容易にすることができるマルチCPU
システムを提供することを目的としている。Purpose of the present invention In view of the above-mentioned circumstances, the present invention is designed to omit the process of saving and restoring registers, etc. when moving from a main routine to a subroutine, etc., or when moving from this subroutine etc. to the main routine, and execute only that amount of processing. A multi-CPU that can increase speed and eliminate the need to manage stack areas and interrupt processing addresses, making it easier to create programs.
The purpose is to provide a system.
〈構成〉
上記の問題点を解決するため本発明によるマルチCPU
システムにおいては、CPUを有する複数の処理部と、
これら各処理部のコモンメモリとして使用される共通メ
モリとを備え、各処理部の間のデータ授受を前記共通メ
モリを介して行なうことを特徴としている。<Configuration> In order to solve the above problems, a multi-CPU according to the present invention
In the system, a plurality of processing units each having a CPU;
It is characterized in that it is provided with a common memory used as a common memory for each of these processing sections, and that data is exchanged between the processing sections via the common memory.
以下、一実施例に基づいて本発明を具体的に説明する。Hereinafter, the present invention will be specifically explained based on one example.
第工図は本発明によるマルチCPUシステムの一実施例
を示すブロック図である。The first drawing is a block diagram showing an embodiment of a multi-CPU system according to the present invention.
この図に示すマルチCPUシステムは2つの処理部上、
2と、1つの共通メモリ3とを備えており、処理部上に
よってデータの入出力処理を行ない、処理部2によって
その他の処理を行なう。The multi-CPU system shown in this figure has two processing units,
2 and one common memory 3, the processing section performs data input/output processing, and the processing section 2 performs other processing.
処理部上は1つのCPU4と、このCPU4のプログラ
ムが格納されているROM等のメモリ5と、前記CPU
4の作業エリアとして使用されるRAM等のメモリ6と
、前記CPU4の入出力装置として使用される周辺装置
7と、これらCPU4〜周辺装置7および前記共通メモ
リ3を接続するデータバス8、アドレスバス9とを備え
ており、メモリ5に格納されているプログラムにしたが
って外部装置とデータの授受を行なったり、メモリ6を
作業エリアとして使用して各種の処理を行なったりする
。The processing unit includes one CPU 4, a memory 5 such as a ROM in which the program of this CPU 4 is stored, and the CPU 4.
A memory 6 such as a RAM used as a work area for the CPU 4, a peripheral device 7 used as an input/output device for the CPU 4, a data bus 8 and an address bus connecting the CPU 4 to the peripheral device 7 and the common memory 3. 9, it exchanges data with an external device according to the program stored in the memory 5, and performs various processes using the memory 6 as a work area.
また、処理部2は1つのCPUl0と、このCPUl0
のプログラムが格納されているROM等のメモリ11と
、前記CPUl0の作業エリアとして使用されるR A
M等のメモリ12と、これらCPUl0〜メモリ12
および前記共通メモリ3とを接続するデータバス13.
アドレスバス14とを備えており、メモリ土工に格納さ
れているプログラムにしたがって共通メモリ3とデータ
の授受を行なったり、メモリ12を作業エリアとして使
用して各種の処理を行なったりする。In addition, the processing unit 2 includes one CPUl0 and this CPUl0.
A memory 11 such as a ROM in which programs are stored, and R A used as a work area for the CPU10.
Memory 12 such as M, and these CPU10~memory 12
and a data bus 13 connecting the common memory 3.
It is equipped with an address bus 14, and exchanges data with the common memory 3 according to a program stored in the memory earthwork, and performs various processes using the memory 12 as a work area.
また、共通メモリ3は独立した2つの入出力部を持って
おり、前記各処理部上、2から出力されたデータを記憶
したり、記憶しているデータを読み出してこれを前記各
処理部1.2に供給したりする。In addition, the common memory 3 has two independent input/output units, and stores data output from each of the processing units 2 and reads stored data and transfers it to each processing unit 2. .2.
次に、第2図および第3図に示すフローチャートを参照
しながらこの実施例のデータ入力動作、データ処理動作
を説明する。Next, the data input operation and data processing operation of this embodiment will be explained with reference to the flowcharts shown in FIGS. 2 and 3.
まず、データ入力動作においては、第2図に示す如く処
理部1側のCPU4は周辺袋R7を介してデータを取り
込むとともに(ステップ5TI)、現在、処理部2が共
通メモリ3を使用しているかどうかをチエツクする(ス
テップ5T2)。First, in the data input operation, as shown in FIG. (Step 5T2).
そして、処理部2によって共通メモリ3が使用されてい
れば、CPU4はメモリ6が書込み可能かどうかをチエ
ツクしくステップ5T3) 、これが書込み可能であれ
ば1周辺装置7によって取り込まれたデータをメモリ6
に1e次転送して格納する(ステップ5T2.5T5)
。If the common memory 3 is being used by the processing unit 2, the CPU 4 checks whether the memory 6 is writable (step 5T3), and if it is writable, transfers the data taken in by the peripheral device 7 to the memory 6.
Transfer and store the 1e data to (step 5T2.5T5)
.
また、前記メモリ6が書込み不可能であれば、CPU4
は周辺装置7に対して入力禁止指令を出してデータの取
り込みを中止させる(ステップ5T6)。Further, if the memory 6 is not writable, the CPU 4
issues an input prohibition command to the peripheral device 7 to stop data capture (step 5T6).
この後、処理部2が共通メモリ3の使用を終了すれば、
CPU4はメモリ6に格納しているデータ、即ち前記周
辺装置7を介して取り込んだデータを共通メモリ3に転
送してこの共通メモリ3に前記データを格納する(ステ
ップ5T7)。After this, when the processing unit 2 finishes using the common memory 3,
The CPU 4 transfers the data stored in the memory 6, that is, the data taken in via the peripheral device 7, to the common memory 3, and stores the data in the common memory 3 (step 5T7).
またこのデータ入力動作と並行して、処理部2側のCP
Ul0は第3図に示す如く前の処理を処理した後(ステ
ップ5TIO)、前記共通メモリ3から前記処理部1に
よって書き込まれたデータを読み出して(ステップ5T
12)、これを後の処理によって処理する(ステップ5
T12)。In addition, in parallel with this data input operation, the CP on the processing unit 2 side
After processing the previous process as shown in FIG. 3 (step 5TIO), Ul0 reads the data written by the processing unit 1 from the common memory 3 (step 5T).
12), which will be processed by subsequent processing (step 5).
T12).
このようにこの実施例においては、処理部lによってデ
ータの入力処理を行ない、処理部2によって入力された
データを処理するようにしたので、シジスタ等の退避処
理、復帰処理を行なうことなくデータの入出力処理、各
種のデータ処理を行なうことができ、これによって処理
の実行速度を早くすることができるとともに、スタック
エリアの管理を省略することができ、プログラムの作成
を容易にすることができる。In this embodiment, the processing unit 1 performs data input processing, and the processing unit 2 processes the input data, so data can be input without performing save processing or restoration processing of the register, etc. It is possible to perform input/output processing and various data processing, thereby increasing the execution speed of processing, as well as omitting the management of stack areas, making it easier to create programs.
第4図は本発明によるマルチCPUシステムの他の実施
例を示すブロック図である。FIG. 4 is a block diagram showing another embodiment of the multi-CPU system according to the present invention.
この図に示すマルチCPUシステムは3つの処理部上O
a、10b、1工と、1つの共通メモリ13と、選択部
工4とを備えており、処理部10.11によってデータ
の入出力処理を行ない、処理部上1によってその他の処
理を行なう。The multi-CPU system shown in this figure has three processing units
10.a, 10b, and 1, one common memory 13, and a selection section 4. Processing sections 10 and 11 perform data input/output processing, and processing section 1 performs other processing.
処理部10a、10bは各々1つのCPU15と、この
CPU15のプログラムが格納されているROM等のメ
モリ16と、前記CPU15の作業エリアとして使用さ
れるRAM等のメモリ17と、前記CPU工5の入出力
装置として使用される周辺装置上8と、これらCPUl
5〜周辺装置18および前記選択部14を接続するデー
タバス19、アドレスバス20とを備えており、各々。Each of the processing units 10a and 10b includes one CPU 15, a memory 16 such as a ROM in which a program for the CPU 15 is stored, a memory 17 such as a RAM used as a work area for the CPU 15, and an input for the CPU 5. Peripheral devices used as output devices and these CPU1
5 to peripheral devices 18 and a data bus 19 and an address bus 20 that connect the selection unit 14, respectively.
各メモリ16に格納されているプログラムにしたがって
前記選択部14や各外部装置とデータの授受を行なった
り、メモリ17を作業エリアとして使用して各種の処理
を行なったりする。Data is exchanged with the selection section 14 and each external device according to programs stored in each memory 16, and various processes are performed using the memory 17 as a work area.
また、処理部11は工つのCPU25と、このCPU2
5のプログラムが格納されているROM等のメモリ26
と、これらCPU25、メモリ26および前記共通メモ
リ13とを接続するデータバス27、アドレスバス28
とを備えており、メモリ26に格納されているプログラ
ムにしたがって共通メモリ上3とデータの授受を行なっ
たり、この共通メモリ13に格納されている各種データ
に基づいて各種の処理を行なったりする。The processing unit 11 also includes a CPU 25 and a CPU 2.
Memory 26 such as ROM in which the program No. 5 is stored
and a data bus 27 and an address bus 28 that connect these CPU 25, memory 26, and common memory 13.
It exchanges data with the common memory 3 according to the program stored in the memory 26, and performs various processes based on the various data stored in the common memory 13.
また、共通メモリ13は独立した2つの入出力部を持っ
ており、前記処理部1工や選択部14から出力されたデ
ータを記憶したり、記憶しているデータを読み出してこ
れを前記処理部11や選択部14に供給したりする。Further, the common memory 13 has two independent input/output sections, and stores data output from the processing section 1 and the selection section 14, and reads out stored data and transfers it to the processing section 1. 11 and the selection unit 14.
選択部14は前記各処理部10a、10bと前記共通メ
モリ13との接続許可、不許可を制御するメ、そり制御
回路30と、このメモリ制御回路30の応答信号IRQ
−Bを反転して応答信号IRQ−Aを生成するインバー
タ31と、これらの各応答信号IRQ−A、IRQ−B
に基づいて前記各処理部10a、10bを構成する各デ
ータバス19のいずれか一方を選択するデータセレクト
回路32と、前記各応答信号IRQ−A、IRQ・Bに
基づいて前記各処理部10a、10bを構成する各アド
レスバス20のいずれか一方を選択するデータセレクト
回路33とを備えており、前記各処理部10a−10b
から割り込み要求があったとき、前記共通メモリ13が
書込み可能かどうかをチエツクし、書込み可能であれば
、割り込み要求を出している処理部のデータバス上9と
、アドレスバス20とを前記共通メモリ13に接続する
。The selection unit 14 controls permission/disapproval of connection between each of the processing units 10a, 10b and the common memory 13, a warpage control circuit 30, and a response signal IRQ of this memory control circuit 30.
-B, and an inverter 31 that inverts the response signal IRQ-A to generate the response signal IRQ-A, and each of these response signals IRQ-A and IRQ-B.
a data select circuit 32 that selects one of the data buses 19 constituting each of the processing units 10a and 10b based on the response signals IRQ-A and IRQ·B; 10b, and a data select circuit 33 for selecting one of the address buses 20 constituting the respective processing units 10a-10b.
When an interrupt request is received from the common memory 13, it is checked whether or not the common memory 13 is writable, and if it is writable, the data bus 9 and address bus 20 of the processing section issuing the interrupt request are transferred to the common memory. Connect to 13.
次に、M5図および第6図に示すフローチャートを参照
しながらこの実施例の動作を説明する。Next, the operation of this embodiment will be explained with reference to the flowcharts shown in FIG. M5 and FIG.
まず、各周辺装置18のいずれか、例えば処理部10a
の周辺装置18に対して入力があると、処理部上Oaの
CPUl5はこれを検知して割り込み要求信号INT−
Aを生成しこれを選択部上4のメモリ制御回路30に供
給する(ステップS子王5)。First, any one of the peripheral devices 18, for example, the processing unit 10a
When there is an input to the peripheral device 18, the CPU15 of the processing unit Oa detects this and issues an interrupt request signal INT-
A is generated and supplied to the memory control circuit 30 of the selection section 4 (step S 5).
これによって、メモリ制御回路3oは処理部1工や処理
部10bによって共通メモリ13が現在使用されている
かどうかをチエツクし、これが使用されていれば、デー
タ送信不可を示す応答信号I RQ −Aを生威しこれ
を処理部10aのCPU15に供給する。As a result, the memory control circuit 3o checks whether the common memory 13 is currently being used by the processing unit 1 or the processing unit 10b, and if it is, it sends a response signal I RQ-A indicating that data transmission is not possible. The raw material is then supplied to the CPU 15 of the processing section 10a.
処理部10aのCPUl5はこの応答信号IRQ−Aを
受けてたとき、現在、共通メモリ13に対して書込み不
可であると判断する(ステップ5T16)。When the CPU 15 of the processing unit 10a receives this response signal IRQ-A, it determines that it is currently impossible to write to the common memory 13 (step 5T16).
この後、処理部10aのCPU15は自処理部10aの
メモリ17が書込み可能かどうかをチエツクしくステッ
プ5T17)、これが書込み可能であれば、周辺装置1
8によって取り込まれたデータをメモリ17に順次転送
して格納する(ステップ5T18.5T19)。After this, the CPU 15 of the processing section 10a checks whether the memory 17 of its own processing section 10a is writable (Step 5T17), and if it is writable, the peripheral device 1
8 is sequentially transferred to and stored in the memory 17 (steps 5T18 and 5T19).
また、前記メモリ17が書込み不可能であれば、処理部
10aのCPU15は周辺装置18に対して入力禁止指
令を出してデータの取り込みを中止させる(ステップ5
T20)。Further, if the memory 17 is not writable, the CPU 15 of the processing unit 10a issues an input prohibition command to the peripheral device 18 to stop data capture (step 5).
T20).
この後、処理部11や処理部10bが共通メモリ13の
使用を終了すれば、メモリ制御回路3゜はこれを検知し
て共通メモリ13の使用許可を示す応答信号IRQ−B
を生成しこれを処理部l○aのCPUl5と、各データ
セレクト回路32.33に供給する。After that, when the processing unit 11 or the processing unit 10b finishes using the common memory 13, the memory control circuit 3° detects this and sends a response signal IRQ-B indicating permission to use the common memory 13.
is generated and supplied to the CPU 15 of the processing unit l○a and each data selection circuit 32, 33.
これによって、各データセレクト回路32.33は処理
部10aのデータバス19.アドレスバス20を選択す
るとともに、処理部10aのcPU15はメモリエフに
格納しているデータ、即ち前記周辺装置18を介して取
り込んだデータを選択部14の各データセレクタ回l&
32.33、メモリ制御回路30を介して共通メモリ1
3に転送してこの共通メモリ13にこれを格納する(ス
テップ5T21)。As a result, each data select circuit 32.33 is connected to the data bus 19.3 of the processing section 10a. At the same time as selecting the address bus 20, the cPU 15 of the processing section 10a transfers the data stored in the memory F, that is, the data taken in via the peripheral device 18, to each data selector circuit of the selection section 14.
32.33, common memory 1 via memory control circuit 30
3 and stores it in this common memory 13 (step 5T21).
またこのデータ入力動作と並行して、処理部11側のC
PU25は第6図に示す如く前の処理を処理した後(ス
テップ5T25) 、前記共通メモリ13から前記処理
部10aによって書き込まれたデータを読み出して(ス
テップ5T21)、これを後の処理によって処理する(
ステップ5T27)。In addition, in parallel with this data input operation, the C
After processing the previous process as shown in FIG. 6 (step 5T25), the PU 25 reads the data written by the processing unit 10a from the common memory 13 (step 5T21), and processes this in the subsequent process. (
Step 5T27).
このようにこの実施例においては、処理部工Oa、10
bによってデータの入力処理を行ない、処理部11によ
って入力されたデータを処理するようにしたので、上述
した実施例と同様にレジスタ等の退避処理、復帰処理を
省略してその分だけ処理の実行速度を早くすることがで
きるとともに、スタックエリアの管理や、割り込み処理
先番地の管理を省略することができ、これによってプロ
グラムの作成を容易にすることができる。As described above, in this embodiment, the processing section Oa, 10
Since the data input processing is performed by b and the input data is processed by the processing unit 11, the saving processing and restoring processing of registers etc. are omitted and the processing is executed accordingly, as in the above-mentioned embodiment. The speed can be increased, and the management of stack areas and interrupt processing destination addresses can be omitted, thereby making it easier to create programs.
〈効果〉
以上説明したように本発明によれば、メインルーチンか
らサブルーチン等に移るときや、このサブルーチン等か
らメインルーチンに移るとき、レジスタ等の退避処理、
復帰処理を省略してその分だけ処理の実行速度を早くす
ることができるとともに、スタックエリアの管理や、割
り込み処理先番地の管理を省略することができ、これに
よってプログラムの作成を容易にすることができる。<Effects> As explained above, according to the present invention, when moving from a main routine to a subroutine, etc., or when moving from this subroutine etc. to the main routine, saving processing of registers, etc.
By omitting the return process, the execution speed of the process can be increased accordingly, and the management of the stack area and the address of the interrupt processing destination can be omitted, thereby making it easier to create programs. I can do it.
第1図は本発明によるマルチCPUシステムの一実施例
を示すブロック図、第2図は第1図に示すマルチCPU
システムのデータ入力動作例を示すフローチャート、第
3図は第1図に示すマルチCPUシステムのデータ処理
例を示すフローチャート、第4図は本発明によるマルチ
CPUシステムの一実施例を示すブロック図、第5図は
第4図に示すマルチCPUシステムのデータ入力動作例
を示すフローチャート、第6図は第4図に示すマルチC
PUシステムのデータ処理例を示すフローチャート、第
7図は従来から知られているシングルCPUシステムの
一例を示すブロック図、第8図は第7図に示すシステム
のサブルーチン処理例を示すフローチャート、第9図は
第7図に示すシステムの割り込み処理例を示すフローチ
ャートである。
1.2・・・処理部、3・・・共通メモリ、4.1o・
・・CPU、5・・・メモリ、7・・−周辺装置。FIG. 1 is a block diagram showing an embodiment of a multi-CPU system according to the present invention, and FIG. 2 is a block diagram showing an embodiment of the multi-CPU system according to the present invention.
3 is a flowchart showing an example of data input operation of the system; FIG. 3 is a flowchart showing an example of data processing of the multi-CPU system shown in FIG. 1; FIG. 4 is a block diagram showing an embodiment of the multi-CPU system according to the present invention; 5 is a flowchart showing an example of data input operation of the multi-CPU system shown in FIG. 4, and FIG.
FIG. 7 is a block diagram showing an example of a conventionally known single CPU system; FIG. 8 is a flowchart showing an example of subroutine processing of the system shown in FIG. 7; This figure is a flowchart showing an example of interrupt processing of the system shown in FIG. 1.2... Processing unit, 3... Common memory, 4.1o.
...CPU, 5...Memory, 7...-Peripheral device.
Claims (1)
のコモンメモリとして使用される共通メモリとを備え、
各処理部の間のデータ授受を前記共通メモリを介して行
なうことを特徴とするマルチCPUシステム。(1) Equipped with a plurality of processing units each having a CPU and a common memory used as a common memory for each of these processing units,
A multi-CPU system characterized in that data is exchanged between each processing unit via the common memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20317089A JPH0367357A (en) | 1989-08-04 | 1989-08-04 | Multi-cpu system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20317089A JPH0367357A (en) | 1989-08-04 | 1989-08-04 | Multi-cpu system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0367357A true JPH0367357A (en) | 1991-03-22 |
Family
ID=16469614
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP20317089A Pending JPH0367357A (en) | 1989-08-04 | 1989-08-04 | Multi-cpu system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0367357A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5723908A (en) * | 1993-03-11 | 1998-03-03 | Kabushiki Kaisha Toshiba | Multilayer wiring structure |
-
1989
- 1989-08-04 JP JP20317089A patent/JPH0367357A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5723908A (en) * | 1993-03-11 | 1998-03-03 | Kabushiki Kaisha Toshiba | Multilayer wiring structure |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS5841538B2 (en) | Multiprocessor system instructions | |
| JP3676882B2 (en) | Microprocessor and its peripheral devices | |
| EP0298418B1 (en) | Virtual computer system | |
| JPH023876A (en) | Single-chip microcomputer | |
| EP0560393B1 (en) | Microprocessor and data processing system with register file | |
| JP2970082B2 (en) | Virtual intercluster communication processor | |
| JPH0414376B2 (en) | ||
| JPS6376028A (en) | Method for controlling execution of instruction step in virtual computer system | |
| JPH04355836A (en) | Management processing device for communication between virtual computers | |
| JPH0683618A (en) | Flag control circuit | |
| JP3200183B2 (en) | Data processing device | |
| JPS62152064A (en) | Single-chip microcomputer | |
| JPH01263858A (en) | Multi-processor system | |
| JP2531080B2 (en) | Bus adapter switching method | |
| JPH0218622A (en) | Numerical arithmetic processor | |
| JP2526480B2 (en) | Interrupt control method in multiprocessor system | |
| JPS63155330A (en) | Microprogram controller | |
| JPS6252900B2 (en) | ||
| JPH01152539A (en) | Interruption processing system | |
| JPH023877A (en) | Single-chip microcomputer | |
| JPH0683640A (en) | Interrupt response processing method | |
| JPS63286956A (en) | Shared clock comparator | |
| JPH03122723A (en) | Interruption processor | |
| JPH03263128A (en) | Microprocessor | |
| JPH04235661A (en) | Multiprocessor system |