JPS6113629B2 - - Google Patents

Info

Publication number
JPS6113629B2
JPS6113629B2 JP10578080A JP10578080A JPS6113629B2 JP S6113629 B2 JPS6113629 B2 JP S6113629B2 JP 10578080 A JP10578080 A JP 10578080A JP 10578080 A JP10578080 A JP 10578080A JP S6113629 B2 JPS6113629 B2 JP S6113629B2
Authority
JP
Japan
Prior art keywords
processor
memory
address
interrupt
data
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.)
Expired
Application number
JP10578080A
Other languages
Japanese (ja)
Other versions
JPS5731072A (en
Inventor
Jun Taniguchi
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP10578080A priority Critical patent/JPS5731072A/en
Publication of JPS5731072A publication Critical patent/JPS5731072A/en
Publication of JPS6113629B2 publication Critical patent/JPS6113629B2/ja
Granted 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)
  • Bus Control (AREA)
  • Multi Processors (AREA)

Description

【発明の詳細な説明】 この発明は、マルチプロセツサにおけるプロセ
ツサ相互間のデータ授受経路の改良に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an improvement in a data exchange path between processors in a multiprocessor.

第1図に共通バス方式のマルチプロセツサの構
成を示す。なおここでは、説明を簡単にするため
プロセツサの台数を2とし、相互のプロセツサ間
は、それぞれ1割り込み入力があるとする。
FIG. 1 shows the configuration of a common bus type multiprocessor. Here, to simplify the explanation, it is assumed that the number of processors is two, and that there is one interrupt input between each processor.

第1図において、1はプロセツサ1,2はプロ
セツサ2、3は共通バス、4は共通メモリ、5は
プロセツサ11からプロセツサ22への割り込み
信号線、6はプロセツサ22からプロセツサ11
への割り込み信号線である。
In FIG. 1, 1 is a processor 1, 2 is a processor 2, 3 is a common bus, 4 is a common memory, 5 is an interrupt signal line from processor 11 to processor 22, and 6 is a line from processor 22 to processor 11.
This is the interrupt signal line for the

プロセツサ11とプロセツサ22との間でデー
タの授受を行なう方法として、割り込みによる方
法がある。この方法においては従来、プロセツサ
11がプロセツサ22に対して何らかのデータを
与える場合、まずプロセツサ11が共通メモリ4
内の特定アドレスにそのデータを書き込み、次に
プロセツサ22に対して割り込み信号線5により
割り込みを与え、これによつてプロセツサ22が
プロセツサ11からデータが与えられていること
を知り、与えられた割り込みを受け付け割り込み
信号5をリセツトし、次に共通メモリ4内の特定
アドレスのデータを読み出すという手順を行つて
いた。
As a method of exchanging data between the processor 11 and the processor 22, there is a method using an interrupt. Conventionally, in this method, when the processor 11 provides some data to the processor 22, the processor 11 first transfers data to the common memory 4.
The data is written to a specific address in the processor 11, and then an interrupt is given to the processor 22 via the interrupt signal line 5. This causes the processor 22 to know that data is being given from the processor 11, and to respond to the given interrupt. The procedure is to accept the request, reset the interrupt signal 5, and then read data at a specific address in the common memory 4.

このように、従来の方法によるデータの授受に
おいては、データを与えるプロセツサ11側でデ
ータを書き込む命令と割り込みを発生する命令の
2種の命令を行い、データを受けるプロセツサ2
2側で割り込みを受け付ける命令とデータを読み
出す命令の2種の命令を行う必要があつた。
In this way, when transferring data using the conventional method, the processor 11 that provides the data executes two types of instructions: an instruction to write data and an instruction that generates an interrupt, and the processor 2 that receives the data executes two types of instructions: an instruction to write data and an instruction to generate an interrupt.
It was necessary to execute two types of instructions on the second side: an instruction to accept interrupts and an instruction to read data.

この発明は、プロセツサ相互間のデータ授受に
おいて、従来のように各プロセツサでそれぞれ2
種の命令を行うことを必要とせず、各プロセツサ
でそれぞれ1命令を行うだけでデータの授受と割
り込みを同時に処理するようにしたものであり、
以下図面により詳述する。
This invention enables each processor to transmit and receive data between two processors, unlike the conventional method.
It is designed to process data exchange and interrupts at the same time by simply executing one instruction in each processor, without the need to execute any other instructions.
This will be explained in detail below with reference to the drawings.

第2図はこの発明の一実施例であり、1〜4は
第1図と同様のもの、7はプロセツサ11用割り
込み信号生成回路、8はプロセツサ22用割り込
み信号生成回路である。
FIG. 2 shows an embodiment of the present invention, where 1 to 4 are similar to those shown in FIG. 1, 7 is an interrupt signal generation circuit for the processor 11, and 8 is an interrupt signal generation circuit for the processor 22.

プロセツサ11がプロセツサ22に対してデー
タを与える場合、プロセツサ11は、共通メモリ
4アドレス領域内のプロセツサ22への割り込み
信号5に割り当てられたアドレスaに対してその
データを書き込む。同時に、プロセツサ22用の
割り込み信号生成回路8が、共通バス3内のアド
レス信号を入力してデコードし、アドレスがプロ
セツサ22への割り込み信号5に割り当てられた
アドレスaであることにより、プロセツサ22に
対する割り込み信号5をアクテイブとして割り込
みを発生する。プロセツサ22は割り込みが発生
すると、共通メモリ内の自プロセツサへの割り込
み信号5に割り当てられたアドレスaのメモリ内
容を読み出しデータを受ける。同時に、プロセツ
サ22用割り込み信号生成回路8はアドレスaを
デコードし、プロセツサ22に対して発生した割
り込み信号をリセツトする。この結果、プロセツ
サ11からプロセツサ22へのデータ授受が、
各々のプロセツサが1命令を実行するだけで可能
となる。
When processor 11 provides data to processor 22, processor 11 writes the data to address a assigned to interrupt signal 5 to processor 22 within common memory 4 address area. At the same time, the interrupt signal generation circuit 8 for the processor 22 inputs and decodes the address signal in the common bus 3, and since the address is the address a assigned to the interrupt signal 5 to the processor 22, the interrupt signal generation circuit 8 for the processor 22 An interrupt is generated by activating the interrupt signal 5. When an interrupt occurs, the processor 22 reads out the memory contents at the address a assigned to the interrupt signal 5 to its own processor in the common memory and receives the data. At the same time, the interrupt signal generation circuit 8 for the processor 22 decodes the address a and resets the interrupt signal generated for the processor 22. As a result, the data exchange from the processor 11 to the processor 22 is
This is possible by having each processor execute only one instruction.

第3図は、この発明における割り込み信号生成
回路7,8の一実施例であり、1〜7は第1図あ
るいは第2図と同様のもの、9は共通バス3から
のアドレスバス、10は各プロセツサへの割り込
み信号に割り当てられたアドレスをデコードする
デコーダ、11はアドレスデコードによりアクテ
イブとなるアドレスデコード信号線、12は共通
バス3からのメモリライト信号線、13は共通バ
ス3からのメモリリード信号線、14は割り込み
セツト信号線、15は割り込みリセツト信号線、
16は割り込み信号6生成フリツプフロツプであ
る。
FIG. 3 shows an embodiment of the interrupt signal generation circuits 7 and 8 according to the present invention, in which 1 to 7 are similar to those in FIG. 1 or 2, 9 is an address bus from the common bus 3, and 10 is an address bus from the common bus 3. A decoder that decodes the address assigned to the interrupt signal to each processor, 11 is an address decode signal line that becomes active by address decoding, 12 is a memory write signal line from the common bus 3, and 13 is a memory read from the common bus 3. signal line, 14 is an interrupt set signal line, 15 is an interrupt reset signal line,
16 is a flip-flop for generating interrupt signal 6;

プロセツサ22がプロセツサ11に対してある
データを与える場合、プロセツサ22は共通メモ
リ4内のプロセツサ11への割り込み信号6に割
り当てられたアドレスbに対するデータ書き込み
命令を実行する。このとき共通メモリ4に対して
は、共通バス3を通して通常のメモリ書き込み動
作が行われ、データがアドレスbのメモリに書き
込まれる。これと同時に、プロセツサ11用割り
込み信号生成回路7内のデコーダ10は、アドレ
スバス9からアドレスを入力しアドレスbをデコ
ードし、デコード信号線11をアクテイブとす
る。一方、メモリ書き込み動作中であるため共通
バス3上でアクテイブとなつているメモリライト
信号線12を取り込み、この2信号11,12の
AND条件により割り込みセツト信号線14をア
クテイブとし、割り込み生成フリツプフロツプ1
6をセツトし、プロセツサ11に対する割り込み
信号線6をアクテイブとする。この割り込みによ
りプロセツサ11はプロセツサ22からデータを
与えられていることを知り、プロセツサ11は同
じアドレスbに対するメモリ読み出し命令を実行
する。このとき、共通メモリ4に対しては共通バ
ス3を通してアドレスbに対する通常のメモリ読
み出し動作が行なわれ、プロセツサ11はプロセ
ツサ22の書き込んだデータを読み出す。これと
同時に、プロセツサ11用割り込み生成回路7内
のデコーダ10は、割り込み発生時と同様にアド
レスbをデコードしデコード信号線11をアクテ
イブとする。一方、メモリ読み出し動作中である
ためアクテイブとなつているメモリリード信号線
13を取り込み、この2信号11,13のAND
条件により割り込みリセツト信号線15をアクテ
イブとし、割り込み生成フリツプフロツプ16を
リセツトし、プロセツサ11に対する割り込み信
号6を非アクテイブとする。
When the processor 22 provides certain data to the processor 11, the processor 22 executes a data write command to the address b assigned to the interrupt signal 6 to the processor 11 in the common memory 4. At this time, a normal memory write operation is performed on the common memory 4 through the common bus 3, and data is written to the memory at address b. At the same time, the decoder 10 in the interrupt signal generation circuit 7 for the processor 11 receives an address from the address bus 9, decodes the address b, and makes the decode signal line 11 active. On the other hand, since the memory write operation is in progress, the memory write signal line 12 which is active on the common bus 3 is taken in, and these two signals 11 and 12 are
The interrupt set signal line 14 is activated by the AND condition, and the interrupt generation flip-flop 1 is activated.
6 and makes the interrupt signal line 6 for the processor 11 active. Through this interrupt, processor 11 learns that it is being given data by processor 22, and processor 11 executes a memory read instruction for the same address b. At this time, a normal memory read operation for address b is performed on the common memory 4 through the common bus 3, and the processor 11 reads the data written by the processor 22. At the same time, the decoder 10 in the interrupt generation circuit 7 for the processor 11 decodes the address b and makes the decode signal line 11 active in the same way as when the interrupt occurs. On the other hand, the memory read signal line 13, which is active because the memory read operation is in progress, is taken in, and the AND of these two signals 11 and 13 is carried out.
Depending on the conditions, the interrupt reset signal line 15 is made active, the interrupt generation flip-flop 16 is reset, and the interrupt signal 6 to the processor 11 is made inactive.

以上の説明においてはプロセツサの台数を2と
し、各プロセツサへの割り込み信号数を1とした
場合について述べたが、3台以上のプロセツサを
共通バス3に接続し、各プロセツサへの他のプロ
セツサからの割り込み信号数を2以上入力した場
合においても、各プロセツサへ入力される割り込
み信号ごとに共通メモリ4アドレス領域内のアド
レスを割り当て、それぞれのプロセツサに該割り
込み信号を発生させる割り込み信号生成回路を設
けることにより、任意のプロセツサ間のデータ授
受について適用できる。
In the above explanation, we have described the case where the number of processors is 2 and the number of interrupt signals to each processor is 1, but if three or more processors are connected to the common bus 3, each processor can be Even when two or more interrupt signals are input, an interrupt signal generation circuit is provided that allocates an address within the common memory 4 address area for each interrupt signal input to each processor and generates the interrupt signal in each processor. Therefore, it can be applied to data exchange between arbitrary processors.

以上述べたように、この発明はプロセツサ相互
間のデータ授受経路に関し、メモリ書き込み動作
あるいはメモリ読み出し動作の信号を同時に割り
込み信号発生あるいはリセツトの動作に使用し、
データの授受をそれぞれのプロセツサが1命令を
実行するだけで可能とすることにより、プロセツ
サ相互間のデータ授受の動作を従来より簡単で高
速なものとする効果がある。
As described above, the present invention relates to the data exchange path between processors, and simultaneously uses signals for memory write operation or memory read operation for interrupt signal generation or reset operation.
By making it possible to transfer data by just executing one instruction by each processor, there is an effect that the operation of transferring data between processors is simpler and faster than in the past.

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

第1図は従来のマルチプロセツサの概略構成
図、第2図はこの発明の一実施例を示す概略構成
図、第3図はこの発明における割り込み信号発生
回路の機能を示す構成図であり、図中7はプロセ
ツサ1用割り込み信号発生回路、8はプロセツサ
2用割り込み信号発生回路、9はアドレスバス、
10はプロセツサへの割り込み信号に割り当てら
れたアドレスのデコーダ、11はデコード信号
線、12はメモリライト信号線、13はメモリリ
ード信号線、14は割り込みセツト信号線、15
は割り込みリセツト信号線、16は割り込み信号
生成フリツプフロツプである。なお、図中同一あ
るいは相当部分には同一符号を付して示してあ
る。
FIG. 1 is a schematic block diagram of a conventional multiprocessor, FIG. 2 is a schematic block diagram showing an embodiment of the present invention, and FIG. 3 is a block diagram showing the function of an interrupt signal generation circuit in the present invention. In the figure, 7 is an interrupt signal generation circuit for processor 1, 8 is an interrupt signal generation circuit for processor 2, 9 is an address bus,
10 is a decoder for addresses assigned to interrupt signals to the processor, 11 is a decode signal line, 12 is a memory write signal line, 13 is a memory read signal line, 14 is an interrupt set signal line, 15
1 is an interrupt reset signal line, and 16 is an interrupt signal generation flip-flop. It should be noted that the same or corresponding parts in the figures are indicated by the same reference numerals.

Claims (1)

【特許請求の範囲】[Claims] 1 複数の同時に各々独立に処理を行うプロセツ
サ、各プロセツサから共通的にアクセスできる共
通メモリ、各プロセツサからの共通メモリアクセ
スのためのアドレス信号、データ信号、メモリ書
き込み制御信号(以下メモリライト信号と呼
ぶ)、メモリ読み出し制御信号(以下メモリリー
ド信号と呼ぶ)からなる共通バスによつて構成さ
れるマルチプロセツサにおいて、各プロセツサは
それぞれ、共通メモリアドレス領域内の予め設定
したアドレスを示すアドレス信号と該アドレスの
メモリに対するメモリライト信号とを共通バスか
ら入力し、該プロセツサに対する他プロセツサか
らの割込み信号として変換する手段と、前記設定
アドレスのメモリへの該プロセツサからの読み出
し動作時に該アドレス信号とメモリリード信号と
を入力し前記割込み信号をリセツトする手段とを
持ち、1台のプロセツサが、他のプロセツサに設
定された共通メモリに対してデータ書き込み命令
を実行したとき、共通メモリ内の該アドレスに対
応するメモリにデータを書き込むと同時に、該ア
ドレスを設定されたプロセツサに対に割り込みを
発生し、次に該割込みを受けたプロセツサが前記
設定されたアドレスに対してデータを読み出し命
令を実行したとき、共通メモリ内の前記設定アド
レスに対応するメモリ内のデータを読み出すと同
時に、自プロセツサに対して発生していた割り込
み信号をリセツトすることを特徴とするマルチプ
ロセツサ。
1. A plurality of processors that perform processing simultaneously and independently, a common memory that can be commonly accessed by each processor, and address signals, data signals, and memory write control signals (hereinafter referred to as memory write signals) for common memory access from each processor. ), memory read control signals (hereinafter referred to as memory read signals), each processor receives an address signal indicating a preset address within the common memory address area, and a corresponding bus. means for inputting a memory write signal to the memory at the address from a common bus and converting it to the processor as an interrupt signal from another processor; and a means for inputting a signal and resetting the interrupt signal, and when one processor executes a data write instruction to a common memory set to another processor, it corresponds to the corresponding address in the common memory. At the same time as writing data to the memory, an interrupt is generated to the processor to which the address is set, and then when the processor that receives the interrupt executes an instruction to read data to the set address, A multiprocessor characterized in that, at the same time as reading data in a memory corresponding to the set address in a common memory, an interrupt signal generated for its own processor is reset.
JP10578080A 1980-07-31 1980-07-31 Multiprocessor Granted JPS5731072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10578080A JPS5731072A (en) 1980-07-31 1980-07-31 Multiprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10578080A JPS5731072A (en) 1980-07-31 1980-07-31 Multiprocessor

Publications (2)

Publication Number Publication Date
JPS5731072A JPS5731072A (en) 1982-02-19
JPS6113629B2 true JPS6113629B2 (en) 1986-04-14

Family

ID=14416657

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10578080A Granted JPS5731072A (en) 1980-07-31 1980-07-31 Multiprocessor

Country Status (1)

Country Link
JP (1) JPS5731072A (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58182776A (en) * 1982-04-20 1983-10-25 Yokogawa Hokushin Electric Corp Interface of cpu
JPS6043770A (en) * 1983-08-19 1985-03-08 Fujitsu Ltd Communication system of subprocessor unit
JPS6055465A (en) * 1983-09-06 1985-03-30 Nec Corp Multiprocessor system
JPS6073766A (en) * 1983-09-29 1985-04-25 Meidensha Electric Mfg Co Ltd Inter-cpu information exchange device
JPS60181959A (en) * 1984-02-29 1985-09-17 Toshiba Corp Multi-processor system
JPS60229162A (en) * 1984-04-27 1985-11-14 Hitachi Ltd Control system of multiprocessor
JPS634363A (en) * 1986-06-25 1988-01-09 Matsushita Electric Ind Co Ltd Multi-cpu device
JPS6364145A (en) * 1986-09-04 1988-03-22 Matsushita Commun Ind Co Ltd Data input device
JPS63292362A (en) * 1987-05-26 1988-11-29 Fujitsu Ltd Inter-system communication control system
JPS62295165A (en) * 1987-05-29 1987-12-22 Nec Corp Multiport ram
JPH01501660A (en) * 1987-06-18 1989-06-08 ユニシス・コーポレーシヨン Intercomputer communication control device and method

Also Published As

Publication number Publication date
JPS5731072A (en) 1982-02-19

Similar Documents

Publication Publication Date Title
US7007126B2 (en) Accessing a primary bus messaging unit from a secondary bus through a PCI bridge
JPS6113629B2 (en)
US4814977A (en) Apparatus and method for direct memory to peripheral and peripheral to memory data transfers
JPS6319058A (en) Memory device
JPH0522939B2 (en)
JPS6113628B2 (en)
JPS6061859A (en) Data communication system of microcomputer
JPH01243146A (en) System for accessing shared memory
JP2001290790A (en) Disk controller
JP2821176B2 (en) Information processing device
JPH04357548A (en) Multi-processor
JPH0214741B2 (en)
JPH02162456A (en) Microprocessor
JPS60247767A (en) Simultaneous input and output system for reading-out and writing-in operation of shared memory
JPS61101864A (en) Program control system
JPH03147046A (en) Data processor
JPH01261768A (en) Data communication system
JPH04255062A (en) Inter-processor communication system
JPH01258169A (en) Shared memory address designating system
JPS63104156A (en) Information processor
JPH0433060B2 (en)
JPS6326744A (en) Memory bank switching circuit for microprocessor
JPS6121541A (en) Storage circuit
JPH02171949A (en) Dma transfer system
JPH0293971A (en) Memory access circuit