JPH01154272A - Multiprocessor device - Google Patents

Multiprocessor device

Info

Publication number
JPH01154272A
JPH01154272A JP62312765A JP31276587A JPH01154272A JP H01154272 A JPH01154272 A JP H01154272A JP 62312765 A JP62312765 A JP 62312765A JP 31276587 A JP31276587 A JP 31276587A JP H01154272 A JPH01154272 A JP H01154272A
Authority
JP
Japan
Prior art keywords
memory
processor
shared memory
register
mapped
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
JP62312765A
Other languages
Japanese (ja)
Inventor
Shigeharu Abe
阿部 重治
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP62312765A priority Critical patent/JPH01154272A/en
Publication of JPH01154272A publication Critical patent/JPH01154272A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To reduce the overhead required for master and slave processors to perform communication processing by mapping a memory of a slave processor selected by a master processor in a fixed area of a system memory space as a shared memory. CONSTITUTION:A local memory 12 and a shared memory 13 are memory mapped from a CPU 11 and can be seen. While another processor unit 17 acquires a master processor right and accesses the memory 13 via an external system bus 18. In such a case, the series number of the unit 17 containing the memory 13 for accessing is written in a register of a processor selector 14. Thus the memory 13 is mapped in a system memory map and the unit 17 is made accessible. Then the communication of data can be performed with transfer of memories.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はコンピュータシステムで複数個のマスタプロセ
ッサ間で大量のデータを通信を行うようなマルチプロセ
ッサ装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a multiprocessor device in which a large amount of data is communicated between a plurality of master processors in a computer system.

従来の技術 従来の複数個のマスタプロセッサ間でのデータ通信は、
入出力ポートを介して通信するかシステムのメモリ空間
にメモリをマツピングして共有メモリとしてその上で通
信するかのどちらかであった。
Conventional technology Conventional data communication between multiple master processors is
They either communicated through input/output ports or mapped memory into the system's memory space and communicated over it as shared memory.

以下図面を参照しながら、上述した従来のマルチプロセ
ッサシステムでのデータ通信装置の一例について説明す
る。第4図は従来の入出力ポートを介してデータ通信す
るマルチプロセッサ装置のブロック図を示すものである
。第4図において11a、bはCPU (セントラルプ
ロセッシングユニット)で、12aSbはローカルメモ
リで、16a、bは内部バスで、41a、bは入出力ポ
ートで、42は通信回線である。
An example of a data communication device in the above-described conventional multiprocessor system will be described below with reference to the drawings. FIG. 4 shows a block diagram of a conventional multiprocessor device that communicates data via input/output ports. In FIG. 4, 11a, b are CPUs (central processing units), 12aSb are local memories, 16a, b are internal buses, 41a, b are input/output ports, and 42 is a communication line.

従来の入出力ポートを介してデータ通信するマルチプロ
セッサ装置は、次のようにしてデータを通信する。まず
、CPU11aはローカルメモリ12aの内容を読込ん
で入出力ポート41aに書込む。
Multiprocessor devices that communicate data via conventional input/output ports communicate data in the following manner. First, the CPU 11a reads the contents of the local memory 12a and writes them to the input/output port 41a.

データは通信回線42を通り、他方の入出力ポート41
bはそれを内部に取込む。他方のCP Ull bは入
出力ポート41bにデータが到着したことを割込みまた
は入出力ポート41bをポーリングすることで知り、入
出力ポート41bからデータを読込んでローカルメモリ
12bに書込む。以上で−ワードの通信が終了する。
Data passes through the communication line 42 and the other input/output port 41
b takes it inside. The other CP Ull b learns that data has arrived at the input/output port 41b by interrupting or polling the input/output port 41b, reads the data from the input/output port 41b, and writes it into the local memory 12b. This completes the communication of the -word.

また、第5図は従来の共有メモリを介してデータ通信す
るマルチプロセッサ装置のブロック図を示すものである
。第5図において11はCPUで、12はローカルメモ
リで、13は共有メモリで、15は外部バスコントロー
ラで、16は内部バスで、17はプロセッサユニットで
、18は外部システムバスで、51は共有メモリコント
ローラである。
Further, FIG. 5 shows a block diagram of a conventional multiprocessor device that communicates data via a shared memory. In Figure 5, 11 is a CPU, 12 is a local memory, 13 is a shared memory, 15 is an external bus controller, 16 is an internal bus, 17 is a processor unit, 18 is an external system bus, and 51 is a shared memory. It is a memory controller.

従来の共有メモリを介してデータ通信するマルチプロセ
ッサ装置は、次のようにしてデータを通信する。
Conventional multiprocessor devices that communicate data via shared memory communicate data in the following manner.

まず、システムの構成を説明する。CPUIIがらプロ
セッサユニット17内のメモリマツプを見ると、ローカ
ルメモ盲目2と共有メモリ13の両方がアクセスできる
ようになっており、一方外部システ。
First, the configuration of the system will be explained. Looking at the memory map in the processor unit 17 from the CPU II, both the local memory blind 2 and the shared memory 13 can be accessed, while the external system.

ムバス18からプロセッサユニット17を見ると共有メ
モリ13がメモリマツピングされているようになってい
る。そのコントロールをするのが、共有メモリコントロ
ーラ51である。また共有メモリコントローラ51は、
プロセッサユニット17が複数個システム只ス18に接
続された場合、各プロセッサユニット17内の共有メモ
リ13が同一アドレスにマツピングされないように相互
に調整をしたり、CPU1lと外部のプロセッサユニッ
ト17がシステムバス18を介して同時に共有メモリ1
3の同じアドレスをアクセスしないように調停をしたり
する。すなわち、プロセッサユニット17が複数個シス
テムバス18に接続された場合、一つのプロセソサユニ
ソ目7内のCPUIIから見たシステム全体のメモリマ
ツプは第6図のようになる。プロセッサユニット17の
共有メモ1月3がプロセッサユニットの台数分の領域と
、自分のローカルメモ1月2の領域とになる。
When the processor unit 17 is viewed from the bus 18, the shared memory 13 is memory mapped. The shared memory controller 51 controls this. In addition, the shared memory controller 51
When a plurality of processor units 17 are connected to the system bus 18, mutual adjustment is made so that the shared memory 13 in each processor unit 17 is not mapped to the same address, and the CPU 11 and the external processor unit 17 are connected to the system bus 18. shared memory 1 simultaneously via 18
Arbitration is performed to avoid accessing the same address in 3. That is, when a plurality of processor units 17 are connected to the system bus 18, the memory map of the entire system as viewed from the CPU II in one processor unit 7 is as shown in FIG. The shared memo January 3 of the processor unit 17 becomes an area corresponding to the number of processor units, and the area of the own local memo January 2.

このような構成で、一つのプロセッサユニット17は、
任意のプロセッサユニット17内の共有メモ1月3を直
接アクセスすることができる。データ通信は、メモリ間
のデータ・リードライトで簡単に行える。
With such a configuration, one processor unit 17
The shared memo 1/3 in any processor unit 17 can be accessed directly. Data communication can be easily performed by reading and writing data between memories.

発明が解決しようとする問題点 上記のポートを介する方法では、マルチプロセッサとス
レーブプロセッサの両方のプロセッサを通信処理にあて
るためのオーバヘッドが問題になる。それを解決するた
めに通信専用のハードウェア作った場合はハードウェア
の規模の拡大が問題である。
Problems to be Solved by the Invention In the above-mentioned method using ports, there is a problem of overhead due to the use of both the multiprocessor and slave processors for communication processing. If you create communication-specific hardware to solve this problem, the problem is that the scale of the hardware will increase.

また、共有メモリを介する方法では、大量のデータを通
信する場合はマツピングする共有メモリの容量が増大し
、しかもプロセッサ数が増大するとシステムメモリ空間
に納まりきらなくなる点が問題である。
Another problem with the method using shared memory is that when a large amount of data is communicated, the capacity of the shared memory to be mapped increases, and furthermore, as the number of processors increases, the data cannot be stored in the system memory space.

問題点を解決するための手段 上記問題点を解決するために、本発明の装置では、シス
テムメモリ空間上の固定の領域に、マスタプロセッサが
選択した一つのスレーブプロセッサの持つメモリを共有
メモリとしてマツピングし、マスタプロセッサがリード
ライトできるように機能を追加したアドレスデコーダを
備えている。
Means for Solving the Problems In order to solve the above problems, the device of the present invention maps the memory of one slave processor selected by the master processor as shared memory in a fixed area in the system memory space. It is equipped with an address decoder with added functionality so that the master processor can read and write.

作用 本発明は、マルチプロセッサシステムでマスクとスレー
ブの二つのプロセッサ間のデータ通信を、少量のハード
ウェアを追加しただけで、大量のデータの通信が可能に
なる。
Effect of the Invention The present invention enables data communication between two processors, a mask and a slave, in a multiprocessor system by simply adding a small amount of hardware.

実施例 以下本発明の一実施例のマルチプロセッサuHによるデ
ータ通信の原理について図面を参照しながら説明する。
Embodiment Hereinafter, the principle of data communication by a multiprocessor uH according to an embodiment of the present invention will be explained with reference to the drawings.

ブロック図を第1図に示す。第1図において、11はC
PUで、12はローカルメモリで、13は共有メモリで
、14はプロセッサセレクタで、15は外部バスコント
ローラで、16は内部バスで、17はプロセッサユニッ
トで、18は外部システムバスである。
A block diagram is shown in FIG. In Figure 1, 11 is C
In the PU, 12 is a local memory, 13 is a shared memory, 14 is a processor selector, 15 is an external bus controller, 16 is an internal bus, 17 is a processor unit, and 18 is an external system bus.

以上のように構成されたマルチプロセッサ装置について
、以下第1図を用いてその動作を説明する。CPUII
からはローカルメモリ12と共有メモリ13がメモリマ
ツピングされ見ることができる。
The operation of the multiprocessor device configured as described above will be described below with reference to FIG. CPUII
From here, the local memory 12 and shared memory 13 can be mapped and viewed.

一方、別のプロセッサユニットI7がマスタプロセッサ
権を取り、外部システムバス18を使って共有メモリ1
3をアクセスする場合は、まずプロセソサセレクタ14
内のプロセッサセレクトレジスタへ、アクセスしようと
する共有メモリ13があるプロセッサユニット17の通
し番号を書込まねばならない。
Meanwhile, another processor unit I7 takes over the master processor right and uses the external system bus 18 to load the shared memory 1
3, first access processor selector 14.
The serial number of the processor unit 17 containing the shared memory 13 to be accessed must be written to the processor select register in the processor unit 17.

そうすることにより、共有メモリ13はシステムメモリ
マツプ内にマツピングされ、マスクのプロセッサユニッ
ト17はアクセスができるようになる。
By doing so, the shared memory 13 is mapped into the system memory map and is accessible to the mask's processor unit 17.

このときのシステムメモリマツプ、すなわちマスクのプ
ロセッサユニット17内のCPUIIから見たメモリマ
ツプは第3図になる。このようにマツピングされたメモ
リ空間を使い、マスクのプロセッサユニット17はメモ
リ転送でデータ通信を行う。
The system memory map at this time, that is, the memory map seen from the CPU II in the mask processor unit 17 is shown in FIG. Using the memory space mapped in this way, the processor unit 17 of the mask performs data communication by memory transfer.

次に、プロセッサセレクタ14の内部について図面を参
照しながら説明する。ブロック図を第2図に示す。第2
図において、21はデータバスで、22はプロセッサセ
レクトレジスタで、23は一致検出器で、24はプロセ
ッサIDレジスタで、25はアドレスバスで、26はア
ドレスデコーダで、27はアドレスマツプレジスタで、
28はアドレスマツピング制御線で、29はメモリセレ
クト信号線である。
Next, the inside of the processor selector 14 will be explained with reference to the drawings. A block diagram is shown in FIG. Second
In the figure, 21 is a data bus, 22 is a processor select register, 23 is a match detector, 24 is a processor ID register, 25 is an address bus, 26 is an address decoder, 27 is an address map register,
28 is an address mapping control line, and 29 is a memory select signal line.

以上のように構成されたマルチプロセッサ装置について
、以下第2図を用いてその動作を説明する。アドレスデ
コーダ26は内部のCPUIIからのアクセス時にはア
ドレスバス25をデコードし、アドレスマツプレジスタ
27にあらかじめ設定したローカルメモリ12、共有メ
モリ13の空間にマツピングする。一方外部システムパ
ス18から共有メモリ13を普通にアクセスにきたとき
はマツピングしないようになっている。外部システムハ
ス18から共有メモリ13をアクセスする場合は、プロ
セッサセレクトレジスタ22にプロセッサユニット17
の通し番号、プロセッサIDを書込む。するとあらかじ
めプロセッサIDレジスタ24に登録されていたlD番
号とが一致検出器23で比較され、同一であればアドレ
スマツピング制御線28に信号が出る。アドレスマフピ
ング制御線28に信号が出ているとアドレスデコーダ2
6は共有メモリ13をシステムメモリにマツピングされ
るようにメモリセレクト信号線29に信号を出す。
The operation of the multiprocessor device configured as described above will be explained below using FIG. 2. The address decoder 26 decodes the address bus 25 when accessed from the internal CPU II, and maps it to the local memory 12 and shared memory 13 spaces set in advance in the address map register 27. On the other hand, when the shared memory 13 is normally accessed from the external system path 18, mapping is not performed. When accessing the shared memory 13 from the external system hash 18, the processor unit 17 is set in the processor select register 22.
Write the serial number and processor ID. Then, the ID number registered in advance in the processor ID register 24 is compared by the match detector 23, and if they are the same, a signal is output to the address mapping control line 28. If a signal is output to the address muffing control line 28, the address decoder 2
6 outputs a signal to the memory select signal line 29 so that the shared memory 13 is mapped to the system memory.

このようなプロセッサセレクタト1が各プロセッサユニ
ット17に存在し、各プロセッサセレクタ14内のプロ
セッサセレクトレジスタ22がシステムメモリマツプ上
で同一アドレスにマツピングされていると、第3図のよ
うにプロセッサセレクトレジスタに書込まれたプロセッ
サIDに対応するプロセッサユニットの共有メモリ領域
がシステムメモリ空間の固定アドレスにマツピングされ
るようになる。この方法では、共有メモリ13の容量を
大きくしても、またプロセッサユニット17の数が増大
し共有メモリ13の総容量が大きくなってもマツププロ
セッサシステムに大きな変更を加えずに節単に対応でき
る。
If such a processor selector 1 exists in each processor unit 17 and the processor select register 22 in each processor selector 14 is mapped to the same address on the system memory map, the processor select register 1 as shown in FIG. The shared memory area of the processor unit corresponding to the processor ID written in is mapped to a fixed address in the system memory space. With this method, even if the capacity of the shared memory 13 is increased, or even if the total capacity of the shared memory 13 increases due to an increase in the number of processor units 17, it can be easily handled without making any major changes to the map processor system.

発明の効果 以上のように本発明は、マスタプロセッサとスレーブプ
ロセッサの両方のプロセッサを通信処理にあてるための
オーバヘッドがなく、少ないハードウェアの規模で、大
量のデータの通信時やプロセッサ数が増大時のシステム
メモリ空間の設計簡略に効果がある。
Effects of the Invention As described above, the present invention eliminates the overhead of devoting both the master processor and slave processors to communication processing, and requires less hardware when communicating large amounts of data or when the number of processors increases. This is effective in simplifying the design of system memory space.

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

第1図は本発明の全体のブロック図、第2図は第1図中
のプロセッサセレクタの詳細なブロック図、第3図は本
発明のシステムメモリマツプ図、第4図は従来の実現方
法の一例である入出力ボートを使用したときのシステム
のブロック図、第5図は従来の実現方法の一例である共
有メモリを使用したときのシステムのブロック図、第6
図は従来の実現方法の一例である共有メモリを使用した
ときのシステムメモリマツプ図である。 11・・・・・・CPU、12・・・・・・ローカルメ
モリ、13・・・・・・共有メモリ、14・・・・・・
プロセッサセレクタ、15・・・・・・外部バスコント
ローラ、16・・・・・・内部ハス、17・・・・・・
プロセッサユニット、18・・・・・・外部システムパ
ス、21・・・・・・データバス、22・・・・・・プ
ロセッサセレクトレジスタ、23・・・・・・一致検出
器、24・・・・・・プロセッサIDレジスタ、25・
・・・・・アドレスバス、26・・・・・・アドレスデ
コーダ、27・・・・・・アドレスマツプレジスタ、2
8・・・・・・アドレスマツピング制御線、29・・・
・・・メモリセレクト信号線、41a、b・・・・・・
入出力ボート、42・・・・・・通信回線、51・・・
・・・共有メモリコントローラ。 代理人の氏名 弁理士 中尾敏男 はか1名21−デー
タバス n−プロで9プセレクトレジヌタ 23−−−一致検β器 24−  プロQ−tすIDレジスタ 5−アドレスバス 26−  アドレスデコーダ 29−  メモリでレフト信号線 第3図 第6図
Figure 1 is an overall block diagram of the present invention, Figure 2 is a detailed block diagram of the processor selector in Figure 1, Figure 3 is a system memory map diagram of the present invention, and Figure 4 is a diagram of the conventional implementation method. Figure 5 is a block diagram of a system when using an input/output boat, which is an example. Figure 5 is a block diagram of a system when using shared memory, which is an example of a conventional implementation method.
The figure is a system memory map diagram when using shared memory, which is an example of a conventional implementation method. 11...CPU, 12...Local memory, 13...Shared memory, 14...
Processor selector, 15...External bus controller, 16...Internal bus, 17...
Processor unit, 18... External system path, 21... Data bus, 22... Processor select register, 23... Coincidence detector, 24... ...Processor ID register, 25.
... Address bus, 26 ... Address decoder, 27 ... Address map register, 2
8...Address mapping control line, 29...
...Memory select signal line, 41a, b...
Input/output boat, 42...Communication line, 51...
...Shared memory controller. Name of agent Patent attorney Toshio Nakao 1 person 21 - Data bus n - Pro 9 preselect register 23 - Coincidence check β unit 24 - Pro Qt ID register 5 - Address bus 26 - Address decoder 29- Left signal line in memory Figure 3 Figure 6

Claims (1)

【特許請求の範囲】[Claims] 自ら固有のプロセッサ通し番号をあらかじめ記憶してお
くレジスタと、外部マスタプロセッサから指示されるプ
ロセッサ通し番号を記憶するレジスタと、この二つのレ
ジスタ内容を比較して一致を検出する一致検出器と、内
部メモリのアドレスマッピングをその一致検出器と連動
して動作するアドレスデコーダとを各プロセッサごとに
備えるマルチプロセッサ装置。
A register that stores its own unique processor serial number in advance, a register that stores the processor serial number instructed by an external master processor, a match detector that compares the contents of these two registers and detects a match, and an internal memory A multiprocessor device comprising, for each processor, an address decoder that performs address mapping in conjunction with its match detector.
JP62312765A 1987-12-10 1987-12-10 Multiprocessor device Pending JPH01154272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62312765A JPH01154272A (en) 1987-12-10 1987-12-10 Multiprocessor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62312765A JPH01154272A (en) 1987-12-10 1987-12-10 Multiprocessor device

Publications (1)

Publication Number Publication Date
JPH01154272A true JPH01154272A (en) 1989-06-16

Family

ID=18033152

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62312765A Pending JPH01154272A (en) 1987-12-10 1987-12-10 Multiprocessor device

Country Status (1)

Country Link
JP (1) JPH01154272A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7058744B2 (en) 2001-05-18 2006-06-06 Nec Corporation Cluster system, computer and program
JP2008027305A (en) * 2006-07-24 2008-02-07 Renesas Technology Corp Data processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7058744B2 (en) 2001-05-18 2006-06-06 Nec Corporation Cluster system, computer and program
JP2008027305A (en) * 2006-07-24 2008-02-07 Renesas Technology Corp Data processor

Similar Documents

Publication Publication Date Title
EP0523764A2 (en) Computer system having direct bus attachment between processor and dynamic main memory, and having in-processor DMA control with respect to a plurality of data exchange means also connected to said bus, and central processor for use in such computer system
JPS63201851A (en) Storage control system
JPH01298457A (en) Computer system
JPH01154272A (en) Multiprocessor device
JPH0358163A (en) Loosely coupled multiprocessor system
JPH0330175B2 (en)
EP0391537A2 (en) Lock converting bus-to-bus interface system
JP3182000B2 (en) Extended storage device in complex information processing system
JPH0233649A (en) Multi-master processor device
JPS60169966A (en) Data processor
JPH05120207A (en) Data transfer system
JPH01263858A (en) Multi-processor system
JPH07175768A (en) Dual cpu system
JPH03232052A (en) Exclusive access system for shared data
JPS62276663A (en) Program transfer method
JPS6379161A (en) Semiconductor memory device
JPH04117697A (en) Multiport memory circuit
JPH07129519A (en) Dual cpu system
JPS61237158A (en) Shared memory device
JPS63158660A (en) Multiprocessor bus control system
JPS63201758A (en) Processor circuit
JPS6022260A (en) Information processing system
JPS62226366A (en) Shared memory system
JPS63128464A (en) Processor circuit
JPH04326453A (en) Multi-processor system