JPS645341B2 - - Google Patents

Info

Publication number
JPS645341B2
JPS645341B2 JP2148583A JP2148583A JPS645341B2 JP S645341 B2 JPS645341 B2 JP S645341B2 JP 2148583 A JP2148583 A JP 2148583A JP 2148583 A JP2148583 A JP 2148583A JP S645341 B2 JPS645341 B2 JP S645341B2
Authority
JP
Japan
Prior art keywords
memory
processor
parent
address
area
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
JP2148583A
Other languages
Japanese (ja)
Other versions
JPS59148966A (en
Inventor
Tetsuo Goto
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2148583A priority Critical patent/JPS59148966A/en
Publication of JPS59148966A publication Critical patent/JPS59148966A/en
Publication of JPS645341B2 publication Critical patent/JPS645341B2/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

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、データ処理システムに関し、特にマ
ルチプロセツサシステムの共有メモリ方式に好適
なデータ処理システムに関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a data processing system, and particularly to a data processing system suitable for a shared memory system of a multiprocessor system.

〔従来技術〕 従来、個々のメモリはそれぞれ唯一のアドレツ
シングを行つており、同一アドレスのメモリが複
数個存在することはない。もし、同一アドレスに
設定されたメモリを複数個設けた場合には、各メ
モリは他のメモリとは無関係に独立して動作する
ので、あるアドレスで各メモリをアクセスする
と、複数個のメモリが同時にアクセスされること
になり、特定のメモリを指定できないため、正常
な動作を保証することができない。
[Prior Art] Conventionally, each individual memory performs unique addressing, and there is never a plurality of memories with the same address. If you have multiple memories set to the same address, each memory operates independently and independently of other memories, so if you access each memory at a certain address, multiple memories will be accessed at the same time. Normal operation cannot be guaranteed because specific memory cannot be specified.

従来、各々メモリを備えた複数のプロセツサか
らなるマルチプロセツサ・システムにおいては、
各プロセツサ間のインタフエースを途中にレジス
タを介したDMA方式で実現しているが、今後は
プロセツサが直接相手方プロセツサのメモリをア
クセスする共有方式が用いられるものと思われ
る。その際に、共有メモリのアドレツシングをす
べて異なつたものにしなければならず、メモリの
コストアツプを招く。
Conventionally, in a multiprocessor system consisting of multiple processors, each with its own memory,
The interface between each processor is implemented using a DMA method using registers in the middle, but in the future it is likely that a shared method will be used in which a processor directly accesses the memory of the other processor. In this case, addressing of the shared memory must be done differently, which increases the memory cost.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、メモリのコストアツプを招く
ことなくあるプロセツサが直接相手のプロセツサ
のメモリをアクセスできるようなデータ処理シス
テムを提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a data processing system in which one processor can directly access the memory of another processor without increasing memory costs.

〔発明の概要〕[Summary of the invention]

本発明のデータ処理システムは、専用の第1の
メモリに接続された第1のプロセツサと、該第1
のプロセツサとはそれぞれ独立な複数の第2のプ
ロセツサと、該第2のプロセツサの各々に対応し
て設けられた該第1のメモリとは独立な第2のメ
モリであつて第1プロセツサ及び対応する該第2
のプロセツサからのアクセスを受け付けるように
なつているものとを備え、該第2のメモリの各々
は、対応する対応する第2プロセツサに対しては
その全エリアをアクセス対象とし、また該第1プ
ロセツサに対しては該第2プロセツサ毎に任意に
設定可能な一部のエリアをアクセス対象とするデ
ータ処理システムにおいて、前記第2メモリ毎に
設けられ、前記一部のエリアのアドレスをそれぞ
れ設定する手段と、該設定されたエリアのアドレ
スとアクセスアドレスとを比較する手段と、該比
較が一致したとき前記第1メモリへのアクセスを
禁止し、該一致したアドレスが設定されている第
2メモリをアクセスする手段とを有することに特
徴がある。
The data processing system of the present invention includes a first processor connected to a dedicated first memory;
a plurality of second processors each independent of the processor; and a second memory independent of the first memory provided corresponding to each of the second processors, the second memory being independent of the first processor and the corresponding one. The second
each second memory is configured to accept access from a corresponding second processor, and each of the second memories has its entire area as an access target for a corresponding second processor; In a data processing system in which a part of the area that can be arbitrarily set for each second processor is accessed, means is provided for each of the second memories and sets the address of each of the part of the area. and a means for comparing the address of the set area and the access address, and when the comparison results in a match, prohibiting access to the first memory and accessing a second memory to which the matching address is set. It is characterized by having a means to do so.

〔発明の実施例〕[Embodiments of the invention]

第1図は、本発明の実施例を示すマルチプロセ
ツサの構成図である。
FIG. 1 is a block diagram of a multiprocessor showing an embodiment of the present invention.

第1図に示すマルチプロセツサでは、親プロセ
ツサGPのバス(GPバス)B1に3個の子プロセ
ツサLP1〜3が、各々の子メモリLM1〜3を
介して接続されている。子メモリLM1〜3は
各々64Kバイト程度の容量があり、そのうち16K
バイト程度は親プロセツサからもアクセス可能な
共有エリア(第1図中斜線部)COである。親メ
モリGMは、1Mバイト程度の容量があり、子プ
ロセツサLP1〜3からはアクセスできない。
In the multiprocessor shown in FIG. 1, three child processors LP1-LP3 are connected to a bus (GP bus) B1 of a parent processor GP via respective child memories LM1-3. Child memories LM1 to LM3 each have a capacity of about 64K bytes, of which 16K
The byte area is a shared area (the shaded area in Figure 1) that is accessible even from the parent processor. The parent memory GM has a capacity of about 1 MB and cannot be accessed from the child processors LP1 to LP3.

第2図は、第1図に示す各々メモリの関連図で
ある。
FIG. 2 is a related diagram of each memory shown in FIG. 1.

親プロセツサGPは、1メガ・バイトのメモリ
アドレスを有する親メモリGMのすべてのエリア
をアクセスできる。第2図中、斜線で示した部分
は親プロセツサGPからアクセス可能なメモリ・
エリアを表している。そして、親メモリGMの0
番地から1M番地までの間で、各子メモリLM1,
2,3と重複するアドレスを有しているが、その
うち問題となる部分は子メモリLM1〜3の共有
エリアCOと重なる親メモリGMのエリア(空白
部で示す)である。これらのエリアは、いずれも
親プロセツサGPからアドレス可能であるため、
この重複するアドレスのときには、子メモリLM
1〜3の共有エリア(各16Kバイト)を優先的に
アクセスするものとする。つまり、子メモリLM
1〜3の共有エリアを優先メモリ、親メモリGM
の重複エリア(第2図の空白部)を非優先メモリ
とする。しかし、親プロセツサGPが子メモリ
LM1〜3の共有エリアの内容を読み出すため
に、アドレス信号を送出すると、このアドレス信
号は親メモリGMにも出力されるので、データ・
バス(GPバス)B1上に両メモリ(LM1,2
または3、およびGM)からのデータが出力され
てしまう。これを避けるために、本発明では、各
子メモリLM1〜3に動作抑止信号(LMBSY)
発生回路を設け、親プロセツサGPからのアドレ
スが子メモリLM1〜3の共有エリアのアドレス
に一致する場合には、上記LMBSY信号が発生さ
れるようにしておく。LMBSY信号が“1”のと
き、親メモリGMのイネーブル信号であるGM選
択信号が“0”になるようにしておけば、親メモ
リGMは動作しないため、子メモリLM1〜3の
みがアクセスされる。
The parent processor GP can access all areas of the parent memory GM with 1 megabyte memory addresses. In Figure 2, the shaded area is the memory that can be accessed from the parent processor GP.
represents the area. And the parent memory GM's 0
Each child memory LM1,
2 and 3, but the problematic part is the area of the parent memory GM (indicated by a blank space) that overlaps with the shared area CO of the child memories LM1 to LM3. Both of these areas are addressable from the parent processor GP, so
When this address is duplicated, the child memory LM
It is assumed that shared areas 1 to 3 (each 16K bytes) are accessed preferentially. In other words, child memory LM
Shared areas 1 to 3 are prioritized memory, parent memory GM
The overlapping area (blank area in FIG. 2) is set as non-priority memory. However, when the parent processor GP
When an address signal is sent to read the contents of the shared area of LM1 to LM3, this address signal is also output to the parent memory GM.
Both memories (LM1, 2
or 3, and GM) will be output. In order to avoid this, the present invention provides an operation inhibit signal (LMBSY) to each child memory LM1 to LM3.
A generating circuit is provided so that the LMBSY signal is generated when the address from the parent processor GP matches the address of the shared area of the child memories LM1 to LM3. If the GM selection signal, which is the enable signal for the parent memory GM, is set to "0" when the LMBSY signal is "1", the parent memory GM will not operate, and only the child memories LM1 to LM3 will be accessed. .

なお、第1図に示すように、子メモリLM1〜
3にはスイツチSWが設けられているが、これは
親プロセツサGPと子プロセツサLP1〜3で子メ
モリLM1〜3を時分割的にアクセスするためで
ある。
In addition, as shown in FIG. 1, child memories LM1 to
The switch SW 3 is provided in order to allow the parent processor GP and the child processors LP1 to LP3 to access the child memories LM1 to LM3 in a time-sharing manner.

第3図は、動作抑止信号による各メモリ内の関
連ブロツク図である。
FIG. 3 is a related block diagram within each memory according to the operation inhibit signal.

親プロセツサGPから、GPバスB1を介して子
メモリLM1〜3のいずれかの共有エリアCOが
アクセスされると、該当する子メモリLM1〜3
のコンパレータ14〜16において、各LMアド
レス17〜19と比較することにより一致するの
で、子メモリの選択信号S1〜3の1つが“1”
となる。同時に、オープン・コレクタのゲート1
1〜13の1つがオンとなり、動作抑止信号
LMBSYとなつて親メモリGMに入力し、ゲート
20を閉じて、親メモリの選択信号SGを“0”
にする。したがつて、親プロセツサGPからコン
トロール線(W/R)が送出されたとき、親メモ
リの選択信号SGが“0”になつているため、フ
リツプ・フロツプFFはリセツトされたままであ
り、セツト出力は“0”となつて親メモリGMは
動作しない。
When the shared area CO of any of the child memories LM1 to LM3 is accessed from the parent processor GP via the GP bus B1, the corresponding child memory LM1 to LM3
In the comparators 14 to 16 of the LM addresses 17 to 19, a match is found, so one of the child memory selection signals S1 to 3 becomes "1".
becomes. At the same time, open collector gate 1
One of 1 to 13 turns on and the operation inhibit signal
LMBSY is input to the parent memory GM, the gate 20 is closed, and the selection signal SG of the parent memory is set to “0”.
Make it. Therefore, when the control line (W/R) is sent from the parent processor GP, since the selection signal SG of the parent memory is "0", the flip-flop FF remains reset and the set output is becomes “0” and the parent memory GM does not operate.

このように、本実施例によれば、親プロセツサ
GPから見た各子メモリLM1〜3の共有エリア
COは、共有エリアCO相互間でアドレスの重複が
存在しない限り、1メガ・バイトの空間の中で親
メモリGMの実装、未実装にかかわらず、アドレ
スを設定できる利点がある。
In this way, according to this embodiment, the parent processor
Shared area of each child memory LM1 to LM3 seen from GP
CO has the advantage that addresses can be set within a 1 megabyte space regardless of whether the parent memory GM is implemented or not, as long as there is no address overlap between shared area COs.

なお、親メモリと子メモリに限定されず、複数
個のメモリ間で優先メモリと非優先メモリを設け
ることにより、本発明を適用することができる。
Note that the present invention is not limited to a parent memory and a child memory, but can be applied by providing a priority memory and a non-priority memory among a plurality of memories.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、メモリのコストアツプを招く
ことなくあるプロセツサが直接相手のプロセツサ
のメモリをアクセスできる。具体的にの述べる
と、従来はバス上でデータが衝突しないようにす
るため共有エリアと同一の親メモリのアドレスに
はメモリを実装することはできなかつた。このた
め、例えば16Kバイトの共有エリアを複数の子メ
モリの任意のアドレスに実装するには、親メモリ
の任意のアドレスに16Kバイト単位の未実装エリ
アを設定しなければならなかつた。このため親メ
モリ自体を16Kバイトのダイナミツク素子
(DRAM)で構成しなければならず、その数が相
当なものになりコストアツプを招いていた。これ
に対して、本発明では共有エリアと同一のアドレ
スにもメモリを実装できるので、従来のように親
メモリを16KバイトのDRAMで構成する必要は
なくコストアツプを招くことはない。
According to the present invention, one processor can directly access the memory of another processor without increasing memory costs. Specifically, in the past, in order to prevent data collisions on the bus, it was not possible to implement memory at the same parent memory address as the shared area. For this reason, for example, in order to implement a 16K byte shared area at any address in multiple child memories, it was necessary to set an unimplemented area in units of 16K bytes at any address in the parent memory. For this reason, the parent memory itself had to be composed of 16K byte dynamic devices (DRAM), which required a considerable number of devices, leading to an increase in costs. On the other hand, in the present invention, the memory can be mounted at the same address as the shared area, so there is no need to configure the parent memory with 16K bytes of DRAM as in the conventional case, and there is no increase in cost.

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

第1図は本発明の実施例を示すマルチプロセツ
サの構成図、第2図は第1図に示す各メモリの関
連図、第3図は第1図の各メモリ内の動作抑止信
号に関連する回路図である。 GP:親プロセツサ、GM:親メモリ、LP1〜
3:子プロセツサ、LM1〜3:子メモリ、
CO:共有エリア、B1:GPバス、LMBSY:動
作抑止信号(線)。
FIG. 1 is a configuration diagram of a multiprocessor showing an embodiment of the present invention, FIG. 2 is a diagram related to each memory shown in FIG. 1, and FIG. 3 is related to operation inhibit signals in each memory shown in FIG. 1. FIG. GP: Parent processor, GM: Parent memory, LP1~
3: Child processor, LM1-3: Child memory,
CO: Shared area, B1: GP bus, LMBSY: Operation inhibit signal (line).

Claims (1)

【特許請求の範囲】[Claims] 1 専用の第1のメモリに接続された第1のプロ
セツサと、該第1プロセツサとはそれぞれ独立な
複数の第2のプロセツサと、該第2プロセツサの
各々に対応して設けられた該第1のメモリとは独
立な第2のメモリであつて該第1プロセツサ及び
対応する該第2プロセツサからのアクセスを受け
付けるようになつているものとを備え、該第2メ
モリの各々は、対応する第2プロセツサに対して
はその全エリアをアクセス対象とし、また該第1
プロセツサに対しては該第2プロセツサ毎に任意
に設定可能な一部のエリアをアクセス対象とする
データ処理システムにおいて、前記第2メモリ毎
に設けられ、前記一部のエリアのアドレスをそれ
ぞれ設定する手段と、該設定されたエリアのアド
レスとアクセスアドレスとを比較する手段と、該
比較が一致したとき前記第1メモリへのアクセス
を禁止し、該一致したアドレスが設定されている
第2メモリをアクセスする手段とを有することを
特徴とするデータ処理システム。
1. A first processor connected to a dedicated first memory, a plurality of second processors each independent of the first processor, and a first processor provided corresponding to each of the second processors. a second memory independent of the memory of the second processor and adapted to accept access from the first processor and the corresponding second processor; For two processors, the entire area is to be accessed, and the first
In a data processing system in which a part of the area that can be arbitrarily set for each second processor is accessed by a processor, an address is provided for each of the second memories, and addresses of the part of the area are respectively set. means for comparing the address of the set area with an access address, and when the comparison results in a match, prohibiting access to the first memory, and accessing the second memory to which the matching address is set; A data processing system characterized in that it has a means for accessing.
JP2148583A 1983-02-14 1983-02-14 Switching method of priority memory Granted JPS59148966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2148583A JPS59148966A (en) 1983-02-14 1983-02-14 Switching method of priority memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2148583A JPS59148966A (en) 1983-02-14 1983-02-14 Switching method of priority memory

Publications (2)

Publication Number Publication Date
JPS59148966A JPS59148966A (en) 1984-08-25
JPS645341B2 true JPS645341B2 (en) 1989-01-30

Family

ID=12056273

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2148583A Granted JPS59148966A (en) 1983-02-14 1983-02-14 Switching method of priority memory

Country Status (1)

Country Link
JP (1) JPS59148966A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61259345A (en) * 1985-05-13 1986-11-17 Panafacom Ltd Trouble supervising circuit control system
JPS62127963A (en) * 1985-11-29 1987-06-10 Fujitsu Ltd Multiprocessor system
JPS62174843A (en) * 1986-01-29 1987-07-31 Hitachi Ltd Switching system for memory priority
JP2610971B2 (en) * 1988-11-29 1997-05-14 日本電気株式会社 Direct memory access method between central processing units
JPH05282198A (en) * 1991-03-12 1993-10-29 Oki Electric Ind Co Ltd Dma transfer system

Also Published As

Publication number Publication date
JPS59148966A (en) 1984-08-25

Similar Documents

Publication Publication Date Title
JPS60157646A (en) Memory bank switching device
JPS645341B2 (en)
JPS60189561A (en) Memory access control system
JPS6324348A (en) Memory sharing system
JPH10254767A (en) Memory controller and memory system by the controller
JP2581484B2 (en) Data processing system
JPS59128619A (en) Microcomputer device
JPS60245060A (en) Microcomputer device
JPS5821734B2 (en) Direct memory access control method
JPH0562786B2 (en)
JPH0417466B2 (en)
JP3049710B2 (en) Nonvolatile semiconductor memory device
JPS62174843A (en) Switching system for memory priority
JPS6242308B2 (en)
JPH03191487A (en) Single chip microcomputer
JPH01204118A (en) Information processor
JP2001155006A (en) Bus control circuit and microcomputer system using the same
JPH0264760A (en) Interface device for parallel processor system
JPS5921062B2 (en) Memory contention control method
JPS6040115B2 (en) Bubble memory bank switch method
JPS63204342A (en) Memory device
JPS62174844A (en) Switching system for memory priority
JP2003271573A (en) Multiprocessor, multiprocessor core and control method
JPH02257241A (en) Memory access competition improving system
JPS60563A (en) Multiprocessor