JPS633358A - Multiprocessor - Google Patents

Multiprocessor

Info

Publication number
JPS633358A
JPS633358A JP14654686A JP14654686A JPS633358A JP S633358 A JPS633358 A JP S633358A JP 14654686 A JP14654686 A JP 14654686A JP 14654686 A JP14654686 A JP 14654686A JP S633358 A JPS633358 A JP S633358A
Authority
JP
Japan
Prior art keywords
microprocessor
interrupt
shared memory
interruption
microprocessors
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
JP14654686A
Other languages
Japanese (ja)
Inventor
Koichiro Yabu
藪 幸一郎
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP14654686A priority Critical patent/JPS633358A/en
Publication of JPS633358A publication Critical patent/JPS633358A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations 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/163Interprocessor communication
    • G06F15/167Interprocessor 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

PURPOSE:To quickly deliver a processing request by providing a pair of microprocessors to write data to a shared memory with an interruption request and then read the data out of the shared memory after discontinuation of working when an interruption is received, a pair of interruption generating circuits, etc., for the formation of a multiprocessor. CONSTITUTION:The interruption controllers 15 and 16 are added to a normal multiprocessor together with the interruption generating circuits 17 and 18. The circuits 17 and 18 are connected to the corresponding microprocessors 1 and 2, address buses 5 and 8, and control buses 6 and 9 respectively. While the controllers 15 and 16 are connected to the corresponding processors 1 and 2, data buses 4 and 7, the buses 5 and 8, and the buses 6 and 9 respectively. When an interruption signal is instructed from the processor 1 via the bus 6, an interruption request signal S3 is sent to the controller 16 from the circuit 18 has the same action and sends an interruption request signal S6 to the controller 15.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、1対のマイクロプロセサと共有メモリを有す
るマルチプロセサに係わり、特に1方のマイクロプロセ
サから他方のマイクロプロセサにデータを送るときに割
込処理を行うものである。
Detailed Description of the Invention [Object of the Invention] (Industrial Application Field) The present invention relates to a multiprocessor having a pair of microprocessors and a shared memory, and particularly relates to a multiprocessor having a pair of microprocessors and a shared memory. It performs interrupt processing when sending.

(従来の技術) 従来1対のマイクロプロセサと共有メモリとを有するマ
ルチプロセサとしては例えば第4図に示すようなものが
ある。同図に示されるようにこのマルチプロセサはマイ
クロプロセサ1が共有メモリ3とデータバス4、アドレ
スバス5、コントロールバス6を介して接続され、同様
にマイクロプロセサ2が共有メモリ3とデータバス7、
アドレスバス8、コントロールバス9を介して接続され
る。共有メモリ3は2つのマイクロプロセサ1.2から
同時にアクセスが可能であり、この共有メモリ3からマ
イクロプロセサ1.2にそれぞれアクセス許可制御信号
S1、S2が送られる。このアクセス許可制御信号S1
、S2により、マイクロブロセサ1.2のメモリ読出し
、書込み動作が実行されたり、また−時的に待たされた
りする。
(Prior Art) A conventional multiprocessor having a pair of microprocessors and a shared memory is shown in FIG. 4, for example. As shown in the figure, in this multiprocessor, a microprocessor 1 is connected to a shared memory 3 via a data bus 4, an address bus 5, and a control bus 6, and a microprocessor 2 is connected to a shared memory 3 via a data bus 7,
They are connected via an address bus 8 and a control bus 9. Shared memory 3 can be accessed simultaneously by two microprocessors 1.2, and access permission control signals S1 and S2 are sent from shared memory 3 to microprocessors 1.2, respectively. This access permission control signal S1
, S2, the memory read and write operations of the microprocessor 1.2 are executed or made to wait for some time.

−般に汎用マイクロプロセサの場合、当該アクセス許可
制御信号S1、S2は、レディ信号、またはウェイト信
号と称される。共有メモリ3では、2つのマイクロプロ
セサ1.2から全く同時にメモリアクセスされた場合で
も、いずれかのマイクロプロセサに優先的に使用権を与
える調停機能をも有している。
- Generally, in the case of a general-purpose microprocessor, the access permission control signals S1, S2 are called ready signals or wait signals. The shared memory 3 also has an arbitration function that gives priority to one of the microprocessors even if the memory is accessed by two microprocessors 1.2 at the same time.

次にこのマルチプロセサの動作について説明する。マイ
クロプロセサ1から2へ、共有メモリ3を介して情報を
送るとき、先ずマイクロプロセサ1は、データバス4、
アドレスバス5およびコントロールバス6を使用して、
共有メモリ3に情報を書き込む。他方のマイクロプロセ
サ2は、同様な動作で、データバス7、アドレスバス8
およびコントロールバス9を介して、共有メモリ3の情
報を読出す。同様にしてマイクロプロセサ2から、1へ
の情報の伝達も可能である。
Next, the operation of this multiprocessor will be explained. When transmitting information from microprocessor 1 to 2 via shared memory 3, microprocessor 1 first sends information via data bus 4,
Using address bus 5 and control bus 6,
Write information to shared memory 3. The other microprocessor 2 operates in the same manner as the data bus 7 and the address bus 8.
and reads information from the shared memory 3 via the control bus 9. Information can also be transmitted from the microprocessor 2 to the microprocessor 1 in the same way.

第5図は一方のマイクロプロセサ1が他方のマイクロプ
ロセサ2に対して処理の要求をする場合の共有メモリ3
内のデータマツプである。同図に示されるように共有メ
モリ3はnバイトから成る。
FIG. 5 shows the shared memory 3 when one microprocessor 1 requests processing from the other microprocessor 2.
This is the data map within. As shown in the figure, the shared memory 3 consists of n bytes.

各バイトは、予め処理の内容がバイト番号対応に決めら
れている。最初のビット13は、バイト番号に対応した
処理が要求されているか否かを示すもので、例えば当該
ビットが“1”なる処理を要求していることを表わし、
“O”なら処理要求はないことを表わす。第5図の場合
、バイト番号Oに対応した処理が要求を出している。ま
たエリア14は、当該処理に必要なデータを受渡しする
場所である。、データが不要の場合は何も書かれない。
The content of processing for each byte is determined in advance in correspondence with the byte number. The first bit 13 indicates whether or not a process corresponding to the byte number is requested; for example, if the bit is "1", it indicates that a process is requested;
“O” indicates that there is no processing request. In the case of FIG. 5, the process corresponding to byte number O has issued a request. Furthermore, the area 14 is a place where data necessary for the processing is transferred. , nothing is written if no data is needed.

また、予め決められたバイト番号の範囲は、マイクロプ
ロセサ1がマイクロプロセサ2に対して処理を要求する
内容、他の予め決められたバイト番号の範囲は、反対に
マイクロプロセサ2がマイクロプロセサ1に対して処理
を要求する内容をそれぞれ含んでいる。
In addition, the range of predetermined byte numbers is the content that microprocessor 1 requests microprocessor 2 to process, and the range of other predetermined byte numbers is the content that microprocessor 2 requests microprocessor 1 to process. Each contains the content that requests processing.

(発明が解決しようとする問題点) このように従来のマルチプロセサでは1方のマイクロプ
ロセサ1(または2)が共有メモリ3を介して他方のマ
イクロプロセサ2(または1)に処理要求を行うので、
処理に緊急性がある場合、迅速にこれを相手に知らせる
ことができないという問題点があった。
(Problems to be Solved by the Invention) As described above, in the conventional multiprocessor, one microprocessor 1 (or 2) issues a processing request to the other microprocessor 2 (or 1) via the shared memory 3.
If there is an urgency to the process, there is a problem in that it is not possible to promptly notify the other party of this.

本発明の目的は前記問題点を解決すべく1方のマイクロ
プロセサから他方のマイクロプロセサに対して迅速に処
理要求を伝え得るマルチプロセサを提供することにある
SUMMARY OF THE INVENTION An object of the present invention is to provide a multiprocessor capable of quickly transmitting a processing request from one microprocessor to another microprocessor in order to solve the above-mentioned problems.

[発明の構成コ 〔問題点を解決するための手段) 前記目的を達成するために本発明は共有メモリと、前記
共有メモリに接続され、割込要求を行うと前記共有メモ
リにデータを書き込み、割込信号を受けると現在の動作
を停止し前記共有メモリからデータを読み取る1対のマ
イクロプロセサと、前記1対のマイクロプロセサに対応
して設けられ1方マイクロプロセサから他方のマイクロ
プロセサへの割込要求信号を発生する1対の割込発生回
路と、前記1対のマイクロプロセサに対応して設けられ
前記割込要求信号を受けると対応するマイクロプロセサ
に前記割込信号を発生する1対の割込制御回路と を具備することを特徴とする。
[Structure of the Invention [Means for Solving the Problems] To achieve the above object, the present invention includes a shared memory, which is connected to the shared memory, writes data to the shared memory when an interrupt request is made, a pair of microprocessors that stop the current operation and read data from the shared memory when receiving an interrupt signal; a pair of interrupt generating circuits that generate an interrupt request signal; and a pair of interrupt generating circuits that are provided corresponding to the pair of microprocessors and generate the interrupt signal to the corresponding microprocessor upon receiving the interrupt request signal. It is characterized by comprising an interrupt control circuit.

(作用) 1方のマイクロプロセサが割込要求を行うと、この割込
要求はこのマイクロプロセサに対応する割込発生回路に
入力され、この割込発生回路から割込要求信号が発生す
る。これと同時にこのマイクロプロセサは共有メモリに
所定のデータを書き込む。前記割込要求信号は他方のマ
イクロプロセサに対応する割込制御回路に入力されこの
割込制御回路からこの割込制御回路に対応するマイクロ
プロセサに割込信号が入力される。マイクロプロセサは
この割込信号を受けとると現在の動作を停止し前記共有
メモリに書き込まれたデータを読み取る。
(Operation) When one microprocessor issues an interrupt request, this interrupt request is input to the interrupt generation circuit corresponding to this microprocessor, and this interrupt generation circuit generates an interrupt request signal. At the same time, this microprocessor writes predetermined data to the shared memory. The interrupt request signal is input to the interrupt control circuit corresponding to the other microprocessor, and the interrupt signal is input from this interrupt control circuit to the microprocessor corresponding to this interrupt control circuit. When the microprocessor receives this interrupt signal, it stops its current operation and reads the data written to the shared memory.

このように割込要求を行うことによって他方のマイクロ
プロセサが動作中でもこの動作を停止させ1方のマイク
ロプロセサから他方のマイクロプロセサに迅速にデータ
を送ることができる。
By issuing an interrupt request in this way, it is possible to stop the operation of the other microprocessor even if it is in operation, and to quickly send data from one microprocessor to the other microprocessor.

(実施例) 以下図面に基づいて本発明の1実施例を詳細に説明する
。第1図は本実施例に係わるマルチプロセサの構成ブロ
ック図であり、第4図に示す従来のマルチプロセサと同
一の機能を果たす要素にはそれと同一の番号を付し重複
する説明を省略する。本実施例では従来のマルチプロセ
サに割込コントローラ15.16および割込発生回路1
7.19をつけ加えたものである。
(Example) An example of the present invention will be described in detail below based on the drawings. FIG. 1 is a configuration block diagram of a multiprocessor according to this embodiment, and elements that perform the same functions as those of the conventional multiprocessor shown in FIG. 4 are given the same numbers and redundant explanations will be omitted. In this embodiment, a conventional multiprocessor includes an interrupt controller 15, 16 and an interrupt generation circuit 1.
7.19 has been added.

割込発生回路17.18はそれぞれ対応するマイクロプ
ロセサ1.2とアドレスバス5.8およびコントロール
バス6.9によって接続される。
Interrupt generation circuits 17.18 are connected to respective microprocessors 1.2 by address buses 5.8 and control buses 6.9.

割込コントローラ15.16はそれぞれ対応するマイク
ロプロセサ1.2とデータバス4.7、アドレスバス5
.8、コントロールバス6.9を介して接続される。
Interrupt controllers 15 and 16 each have a corresponding microprocessor 1.2, data bus 4.7, and address bus 5.
.. 8, connected via control bus 6.9.

割込発生回路17はマイクロプロセサ1からコントロー
ルバス6を介して割込要求が指示されると、割込コント
ローラ16に対して割込要求信号S3を送る。割込発生
回路18も同様に割込要求信号S4を送る動作を行う。
When the interrupt generation circuit 17 receives an interrupt request instruction from the microprocessor 1 via the control bus 6, it sends an interrupt request signal S3 to the interrupt controller 16. The interrupt generation circuit 18 similarly operates to send an interrupt request signal S4.

割込コントローラ16は割込要求信号S3を受けるとマ
イクロプロセサ2に対して割込信号S5を送る。割込コ
ントローラ15も同様に割込信号S6を送る動作を行う
Upon receiving the interrupt request signal S3, the interrupt controller 16 sends an interrupt signal S5 to the microprocessor 2. The interrupt controller 15 similarly performs the operation of sending the interrupt signal S6.

次に本実施例の動作について、マイクロプロセサ1がマ
イクロプロセサ2に対しである処理を要求する場合を例
にとり、第2図および第3図のフローチャートに基づい
て説明する。
Next, the operation of this embodiment will be explained based on the flowcharts of FIGS. 2 and 3, taking as an example the case where the microprocessor 1 requests a certain process to the microprocessor 2.

先ずマイクロプロセサ1は、要求処理に必要なデータ(
第5図のエリア14に記憶されたデータに相当する)を
共有メモリ3へ書き込む(ステップ201)。次に、割
込信号発生回路17をアクセスして、割込要求信号S3
をマイクロプロセサ2の割込コントローラ16に送り、
割込コントローラ16は、割込信号S5をマイクロプロ
セサ2へ送る(ステップ202)。マイクロプロセサ2
は、当該割込に応答すべくコントロールバス9を制御す
ると(ステップ301)、割込コントローラ16は、割
込要求信号の割込レベルに対応した割込処理ベクターア
ドレスを、データバス7を経由してマイクロプロセサ2
へ伝える。マイクロプロセサ2は、上記ベクターに基づ
いて、割込処理ルーチンを実行する。割込処理ルーチン
では、予め、処理ルーチン対応に定められた共有メモリ
3の場所から、マイクロプロセサ1が書き込んだデータ
を読み出しくステップ302)必要な処理を行う(ステ
ップ303)。
First, the microprocessor 1 processes the data (
5) is written into the shared memory 3 (step 201). Next, the interrupt signal generation circuit 17 is accessed to generate the interrupt request signal S3.
is sent to the interrupt controller 16 of the microprocessor 2,
The interrupt controller 16 sends an interrupt signal S5 to the microprocessor 2 (step 202). microprocessor 2
When controlling the control bus 9 to respond to the interrupt (step 301), the interrupt controller 16 transmits the interrupt processing vector address corresponding to the interrupt level of the interrupt request signal via the data bus 7. microprocessor 2
tell to. The microprocessor 2 executes an interrupt processing routine based on the above vector. In the interrupt processing routine, data written by the microprocessor 1 is read from a location in the shared memory 3 predetermined for the processing routine (step 302), and necessary processing is performed (step 303).

このように本実施例では1方のマイクロプロセサか他方
のマイクロプロセサにデータを送る場合、他方のマイク
Cプロセサに対して割込処理を行うので迅速に処理を伝
え、また処理を行うことができる。
In this way, in this embodiment, when data is sent to one microprocessor or the other microprocessor, interrupt processing is performed for the other microphone C processor, so processing can be quickly transmitted and processed. .

[発明の効果コ 以上詳細に説明したように本発明によれば、1方のマイ
クロプロセサから他方のマイクロプロセサに対して迅速
に処理要求を伝えることができる。
[Effects of the Invention] As described in detail above, according to the present invention, processing requests can be quickly transmitted from one microprocessor to the other microprocessor.

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

第1図は本発明の1実施例に係わるマルチプロセサの構
成ブロック図、第2図および第3図はこのマルチプロセ
サの動作を示すフローチャート、第4図は従来のマルチ
プロセサの構成ブロック図、第5図は従来例における共
有メモリのメモリマツプである。 1.2・・・マイクロプロセサ、3・・・共有メモリ、
15.16・・・割込コントローラ、1718・・・割
込発生回路。
FIG. 1 is a block diagram of the configuration of a multiprocessor according to an embodiment of the present invention, FIGS. 2 and 3 are flowcharts showing the operation of this multiprocessor, FIG. 4 is a block diagram of the configuration of a conventional multiprocessor, and FIG. 5 is a block diagram of the configuration of a conventional multiprocessor. This is a memory map of shared memory in a conventional example. 1.2...Microprocessor, 3...Shared memory,
15.16...Interrupt controller, 1718...Interrupt generation circuit.

Claims (1)

【特許請求の範囲】 共有メモリと、 前記共有メモリに接続され、割込要求を行うと前記共有
メモリにデータを書き込み、割込信号を受けると現在の
動作を停止し前記共有メモリからデータを読み取る1対
のマイクロプロセサと、前記1対のマイクロプロセサに
対応して設けられ1方のマイクロプロセサから他方のマ
イクロプロセサへの割込要求信号を発生する1対の割込
発生回路と、 前記1対のマイクロプロセサに対応して設けられ前記割
込要求信号を受けると対応するマイクロプロセサに前記
割込信号を発生する1対の割込制御回路と を具備することを特徴とするマルチプロセサ。
[Scope of Claims] A shared memory, which is connected to the shared memory, writes data to the shared memory when an interrupt request is made, and stops the current operation and reads data from the shared memory when receiving an interrupt signal. a pair of microprocessors; a pair of interrupt generation circuits provided corresponding to the pair of microprocessors and generating an interrupt request signal from one microprocessor to the other microprocessor; 1. A multiprocessor comprising: a pair of interrupt control circuits provided corresponding to the microprocessors, and generating the interrupt signal to the corresponding microprocessor upon receiving the interrupt request signal.
JP14654686A 1986-06-23 1986-06-23 Multiprocessor Pending JPS633358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14654686A JPS633358A (en) 1986-06-23 1986-06-23 Multiprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14654686A JPS633358A (en) 1986-06-23 1986-06-23 Multiprocessor

Publications (1)

Publication Number Publication Date
JPS633358A true JPS633358A (en) 1988-01-08

Family

ID=15410101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14654686A Pending JPS633358A (en) 1986-06-23 1986-06-23 Multiprocessor

Country Status (1)

Country Link
JP (1) JPS633358A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6061859A (en) * 1983-09-16 1985-04-09 Toshiba Corp Data communication system of microcomputer
JPS60231251A (en) * 1984-05-02 1985-11-16 Omron Tateisi Electronics Co Multi-cpu system
JPS60237566A (en) * 1984-05-10 1985-11-26 Oki Electric Ind Co Ltd Interprocessor communication system
JPS62274452A (en) * 1986-05-23 1987-11-28 Hitachi Ltd Dual port memory

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6061859A (en) * 1983-09-16 1985-04-09 Toshiba Corp Data communication system of microcomputer
JPS60231251A (en) * 1984-05-02 1985-11-16 Omron Tateisi Electronics Co Multi-cpu system
JPS60237566A (en) * 1984-05-10 1985-11-26 Oki Electric Ind Co Ltd Interprocessor communication system
JPS62274452A (en) * 1986-05-23 1987-11-28 Hitachi Ltd Dual port memory

Similar Documents

Publication Publication Date Title
JPS61265661A (en) Multiplex processing system
JPS6113629B2 (en)
JPS5864528A (en) Data transfer system of plural microprocessors
JPS633358A (en) Multiprocessor
JP2676806B2 (en) Memory protection method
JP2837522B2 (en) I / O instruction control method
JPH0114616B2 (en)
JPS603049A (en) Bus interface apparatus
JPS63245549A (en) Bus controller
JPH056333A (en) Multi-processor system
JPS63206854A (en) Data transfer system
JPH0374751A (en) Input/output controller
JPS5856057A (en) Interruption signal generating device
JPH103463A (en) Inter-processor communication method
JPS63104155A (en) Electronic computer
JPH03225551A (en) Input and output device access control system
JPS63128464A (en) Processor circuit
JPS6232561A (en) Control system for multiprocessor system
JPH01258169A (en) Shared memory address designating system
JPH04255062A (en) Inter-processor communication system
JPH01126749A (en) Data control device for peripheral equipment
JPS5920067A (en) Memory system
JPS61251943A (en) Data processor
JPS63245550A (en) Bus controller
JPS61235951A (en) One chip microcomputer