JPS62226366A - Shared memory system - Google Patents

Shared memory system

Info

Publication number
JPS62226366A
JPS62226366A JP6860086A JP6860086A JPS62226366A JP S62226366 A JPS62226366 A JP S62226366A JP 6860086 A JP6860086 A JP 6860086A JP 6860086 A JP6860086 A JP 6860086A JP S62226366 A JPS62226366 A JP S62226366A
Authority
JP
Japan
Prior art keywords
memory
processor
address
shared
shared 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
Application number
JP6860086A
Other languages
Japanese (ja)
Inventor
Kenichiro Kamaike
蒲池 健一郎
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP6860086A priority Critical patent/JPS62226366A/en
Publication of JPS62226366A publication Critical patent/JPS62226366A/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)
  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To prevent the number of low order processors that can be connected from being restricted by the size of address space of high order processors by providing an FIFO memory for address information transfer, and providing an address register in each shared memory. CONSTITUTION:The system is provided with an vacant address information FIFO (First-In First-Out) memory 4 for transferring address information from a high order processor 1 respective shared memories 12, 22,...,N2, a notification FIFO memory 5 for transferring address information from low order processors 11, 21,...,N1 to the high order processor 1 and an FIFO memories. The position of the shared memories 11, 21,...,N1 on the address space of the high order processor 1 is not determined and arranged dynamically. Thus, the number of shared memories that become in use simultaneously is restricted by the maximum value of the address space of the high order processor 1. However, the number of shared memories that can be connected is not restricted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、上位プロセッサと複数の下位プロセッサとが
共有メモリを介してプロセ・フサ間のデータ転送を行う
場合の、メモリ共有方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory sharing method when an upper processor and a plurality of lower processors transfer data between processors via a shared memory.

(従来の技術〕 従来、上位プロセッサと複数の下位プロセ・ノサとが共
有メモリを介してプロセ・フサ間のデータ転送を行う場
合、上位プロセ・ノサのアドレス空間内に全ての下位プ
ロセッサの共有メモリエリアが入っていた。第3図に一
例として1台の上位プロセンサ(PROC)1にN台の
下位プロセ・ノサ(PROC) 11.21.  ・・
・、 Nlが接続された場合の構成を示す。
(Prior Art) Conventionally, when an upper processor and multiple lower processors transfer data between processors via shared memory, the shared memories of all the lower processors are stored in the address space of the upper processor. As an example in Figure 3, there is one upper processor (PROC) 1 and N lower processors (PROC) 11.21.
・, shows the configuration when Nl is connected.

上位プロセッサ1は、上位プロセ・ノサのみがアドレス
アクセスするメモリ (MEM)2を有しており、また
、上位プロセッサと各下位プロセッサとの間には、各下
位プロセ・ノサ毎に共有メモリ (MEM) 12.2
2.  ・・・・、N2が設けられており、これら共有
メモリは、パス競合制御回路(CONT) 13,23
.・・・・、 N3を介してそれぞれバスに接続されて
いる。
The upper processor 1 has a memory (MEM) 2 whose address is accessed only by the upper processor, and a shared memory (MEM) 2 is provided between the upper processor and each lower processor for each lower processor. ) 12.2
2. ..., N2 are provided, and these shared memories are connected to a path contention control circuit (CONT) 13, 23
.. ..., are each connected to the bus via N3.

この場合の上位プロセッサ1のアドレス空間の割当て状
態を第4図に示す。上位プロセッサのアドレス空間は、
メモリ2のアドレス空間と共有メモリ12〜N2のアド
レス空間との合計以上が必要である。
FIG. 4 shows the allocation state of the address space of the host processor 1 in this case. The address space of the upper processor is
The total address space of the memory 2 and the address space of the shared memories 12 to N2 is required.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のメモリ共有方式では、下位プロセッサと
の共有メモリエリアがすべて上位プロセッサのアドレス
空間内に収まっていなければならないために、上位プロ
セッサのアドレス空間の大きさで接続できる下位プロセ
ッサの数の上限が決まってしまうという欠点がある。
In the conventional memory sharing method described above, the shared memory area with lower processors must all fit within the address space of the upper processor, so there is an upper limit on the number of lower processors that can be connected based on the address space of the upper processor. The disadvantage is that it is fixed.

本発明の目的は、このような欠点のないメモリ共有方式
を提供することにある。
It is an object of the present invention to provide a memory sharing scheme that does not have such drawbacks.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のメモリ共有方式は、1つの上位プロセッサと、
複数の下位プロセッサと、上位プロセッサと各下位プロ
セッサとの間に各下位プロセッサ毎に設けた共有メモリ
と、共有メモリ毎に設けたアドレスレジスタと、上位プ
ロセッサから共有メモリへアドレス情報を転送するため
のPIFOメモリと、下位プロセッサから上位プロセッ
サへアドレス情報を転送するためのFIFOメモリとを
備え、前記アドレスレジスタにより上位プロセッサから
は共有メモリのアドレスを可変として、共有メモリの総
量及び接続可能な下位プロセッサ数が、上位プロセッサ
のアドレス空間の制限を受けないことを特徴としている
The memory sharing method of the present invention includes one upper processor,
A plurality of lower processors, a shared memory provided for each lower processor between the upper processor and each lower processor, an address register provided for each shared memory, and an address register for transferring address information from the upper processor to the shared memory. It is equipped with a PIFO memory and a FIFO memory for transferring address information from a lower processor to an upper processor, and the address register allows the upper processor to change the address of the shared memory, thereby controlling the total amount of shared memory and the number of connectable lower processors. However, it is characterized by not being limited by the address space of the upper processor.

〔実施例〕〔Example〕

次に本発明の実施例について、図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例であるメモリ共有方式の構成
図である。ここで1は上位プロセッサ(PROC) 、
2は上位プロセッサのみがアクセスするメモリ (ME
M) 、12.22.  ・・・・、 N2はそれぞれ
下位プロセッサ(PROC)11.21  ・・・、 
Nlと上位プロセッサ1間の共有メモリである。14.
24.  ・・・、 N4は各共有メモリが有するアド
レスレジスタ(REG)であり、各共有メモリが上位プ
ロセッサ1のアドレス空間上のどの位置にくるかを決め
るもので、上位プロセッサのアドレスバスの上位ビット
に対応する部分を保持している。
FIG. 1 is a block diagram of a memory sharing system according to an embodiment of the present invention. Here, 1 is the upper processor (PROC),
2 is memory accessed only by the upper processor (ME
M), 12.22. ..., N2 is the lower processor (PROC) 11.21, respectively.
This is a shared memory between Nl and the upper processor 1. 14.
24. ..., N4 is an address register (REG) that each shared memory has, and it determines where each shared memory is located in the address space of the upper processor 1. The corresponding parts are retained.

このメモリ共有方式は、さらに、上位プロセッサlから
各共有メモリ12.22.・・・・、 N2ヘアドレス
情報を転送するための空アドレス情報FIFO(Fir
st 4n First−Out)メモリ4と、各下位
プロセッサ11,21.・・・・、 Nlから上位プロ
セッサ1ヘアドレス情報を転送するための通知FIFO
メモリ5と、これらFIFOメモリへのアクセスを制御
するFIFOメモリアクセス制御回路3とを備えている
This memory sharing method further includes each shared memory 12.22. ..., Empty address information FIFO for transferring address information to N2
st 4n First-Out) memory 4 and each lower processor 11, 21 . ..., notification FIFO for transferring address information from Nl to upper processor 1
It includes a memory 5 and a FIFO memory access control circuit 3 that controls access to these FIFO memories.

次に、本実施例の動作を説明する。Next, the operation of this embodiment will be explained.

例えば、下位プロセッサ11が共有メモリ12に有効デ
ータを書き込む時は、まずFIFOメモリアクセス制御
回路3を介して空アドレス情i1r”lFOメモリ4の
データを読み出す。空アドレス情報FIFOメモリ4に
は上位プロセッサ1のアドレス空間で共有メモリ部に割
り当てられた各メモリブロックのうち未使用中のものの
アドレス上位ビットが入っており、下位プロセッサ11
はここからアドレス上位ビットを読み出した後、共有メ
モリ12に有効データを書き込み、アドレスレジスタ1
4に先に読み出したアドレス上位ビットをセントし、同
時に同じアドレス上位ビットをFIFOメモlJアクセ
ス制御回路3を介して通知FIFOメモリ5に書き込む
。上位プロセッサ1は通知FIFOメモリ5を読み出す
ことにより、有効データがどのアドレスに格納されてい
るかを知り、そのアドレスにアクセスするとこの場合下
位プロセッサ11からのデータを読み出すことになる。
For example, when the lower processor 11 writes valid data to the shared memory 12, it first reads the data in the empty address information i1r''lFO memory 4 via the FIFO memory access control circuit 3. It contains the high-order bits of the addresses of unused memory blocks allocated to the shared memory section in the address space of 1, and the lower processor 11
reads the upper bits of the address from here, writes valid data to the shared memory 12, and writes the valid data to the address register 1.
4, the upper bits of the address previously read are written into the notification FIFO memory 5 via the FIFO memory IJ access control circuit 3. By reading the notification FIFO memory 5, the upper processor 1 learns at which address valid data is stored, and when that address is accessed, data from the lower processor 11 is read in this case.

このようにして、下位プロセッサ11から上位プロセッ
サ1へのデータ転送が行われる。上位プロセッサ1は共
有メモリ12上のデータが不要になると、アドレスレジ
スタ14をリセフトし、そのアドレス上位ビットを空ア
ドレス情報FIFOメモリ4に書き込む。
In this way, data is transferred from the lower processor 11 to the upper processor 1. When the data on the shared memory 12 becomes unnecessary, the upper processor 1 resets the address register 14 and writes the upper bits of the address into the empty address information FIFO memory 4.

上位プロセ・ノサ1から共有メモ1月L2L・・・・、
 Nlにデータを書き込む場合は、同様にFIFOメそ
りアクセス制御回路3を介して空アドレス情913FI
FOメモリ4を読み出してアドレスレジスタ14.24
.・・・・、 N4をセットし、共有メモリにデータを
書き込む。この場合下位プロセッサ11゜21.・・・
・、Nlからみると各共有メモリは固定したアドレスに
配置されているので、通知FIFOメモリ5への書き込
みは不要である。下位プロセッサは、固定したアドレス
にアクセスすると、上位プロセッサからのデータを読み
出すことになる。このようにして、上位プロセッサから
下位プロセッサへのデータ転送が行われる。各下位プロ
セッサは共有メモリ上のデータが不要になると、アドレ
スレジスタをリセットし、そのアドレス上位ピッl−を
空アドレス情報FIFOメモリ4に書き込む。
Shared memo from top proce Nosa 1 January L2L...
When writing data to Nl, similarly, empty address information 913 FIFO is written via FIFO memory access control circuit 3.
Read FO memory 4 and address register 14.24
.. ..., Set N4 and write data to the shared memory. In this case, the lower processor 11゜21. ...
・Since each shared memory is located at a fixed address from the perspective of Nl, writing to the notification FIFO memory 5 is unnecessary. When a lower processor accesses a fixed address, it reads data from an upper processor. In this way, data is transferred from the upper processor to the lower processor. When each lower-level processor no longer needs the data on the shared memory, it resets its address register and writes the upper address pin l- into the empty address information FIFO memory 4.

このメモリ共有方式では、共有メモ1月1.21.・・
・・、 Nlが上位プロセッサ1のアドレス空間上どの
位置にくるかは決まっておらず、第2図に示すように動
的に配置されることになる。従って、同時に使用中とな
る共有メモリの数は上位プロセッサlのアドレス空間の
最大値により制約を受けるが、接続できる共有メモリの
数は制限を受けない。
In this memory sharing method, shared memo January 1.21.・・・
. . , the location of Nl in the address space of the higher-level processor 1 is not determined, but is dynamically located as shown in FIG. Therefore, although the number of shared memories that are in use at the same time is limited by the maximum value of the address space of the upper processor l, the number of shared memories that can be connected is not limited.

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

以上説明したように本発明によれば、アドレス情報転送
用FIFOメそりを設け、また各共有メモリにアドレス
レジスタを設けることにより、接続できる下位プロセッ
サ数が上位プロセッサのアドレス空間の大きさにより制
約を受けないという利点がある。
As explained above, according to the present invention, by providing a FIFO memory for address information transfer and providing an address register in each shared memory, the number of lower-order processors that can be connected is not limited by the size of the address space of the higher-order processor. There is an advantage of not receiving it.

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

第1図は本発明のメモリ共有方式の構成図、第2図は第
1図の構成の場合の上位プロセッサのアドレス空間の割
当て状態を示す図、第3図は従来のメモリ共有方式の構
成図、第4図は第3図の構成の場合の上位プロセッサの
アドレス空間の割当て状態を示す図である。 ■・・・・・上位プロセッサ 2・・・・・メモリ 3・・・・・FIFOメモリアクセス 制御回路
FIG. 1 is a block diagram of the memory sharing method of the present invention, FIG. 2 is a diagram showing the address space allocation state of the upper processor in the configuration shown in FIG. 1, and FIG. 3 is a block diagram of the conventional memory sharing method. , FIG. 4 is a diagram showing the allocation state of the address space of the upper processor in the case of the configuration of FIG. 3. ■...Upper processor 2...Memory 3...FIFO memory access control circuit

Claims (1)

【特許請求の範囲】[Claims] (1)1つの上位プロセッサと、複数の下位プロセッサ
と、上位プロセッサと各下位プロセッサとの間に各下位
プロセッサ毎に設けた共有メモリと、共有メモリ毎に設
けたアドレスレジスタと、上位プロセッサから共有メモ
リへアドレス情報を転送するためのFIFOメモリと、
下位プロセッサから上位プロセッサへアドレス情報を転
送するためのFIFOメモリとを備え、前記アドレスレ
ジスタにより上位プロセッサからは共有メモリのアドレ
スを可変として、共有メモリの総量及び接続可能な下位
プロセッサ数が、上位プロセッサのアドレス空間の制限
を受けないことを特徴とするメモリ共有方式。
(1) One upper processor, multiple lower processors, a shared memory provided for each lower processor between the upper processor and each lower processor, an address register provided for each shared memory, and a shared memory from the upper processor. FIFO memory for transferring address information to memory;
FIFO memory for transferring address information from the lower processor to the upper processor, and the address register allows the upper processor to change the address of the shared memory, so that the total amount of shared memory and the number of connectable lower processors can be changed from the upper processor to the upper processor. A memory sharing method that is characterized by not being subject to address space limitations.
JP6860086A 1986-03-28 1986-03-28 Shared memory system Pending JPS62226366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6860086A JPS62226366A (en) 1986-03-28 1986-03-28 Shared memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6860086A JPS62226366A (en) 1986-03-28 1986-03-28 Shared memory system

Publications (1)

Publication Number Publication Date
JPS62226366A true JPS62226366A (en) 1987-10-05

Family

ID=13378442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6860086A Pending JPS62226366A (en) 1986-03-28 1986-03-28 Shared memory system

Country Status (1)

Country Link
JP (1) JPS62226366A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017004337A (en) * 2015-06-12 2017-01-05 アズビル株式会社 Multi-programmable device system and control method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017004337A (en) * 2015-06-12 2017-01-05 アズビル株式会社 Multi-programmable device system and control method thereof

Similar Documents

Publication Publication Date Title
JP3598321B2 (en) Buffering data exchanged between buses operating at different frequencies
KR100847968B1 (en) Dual-port semiconductor memories
JPS5924462B2 (en) Shared memory access control method
US4691280A (en) High performance multi-processor system
JPH01320564A (en) Parallel processor
GB2412767A (en) Processor with at least two buses between a read/write port and an associated memory with at least two portions
JPH0212361A (en) Parallel computer system using hierarchical bus
JPS62226366A (en) Shared memory system
US7761644B1 (en) Memory sharing arrangement for an integrated multiprocessor system
JPH11232213A (en) Data transfer system for input/output device
JPH01125644A (en) Data transfer equipment
EP1990725B1 (en) Central processing unit, central processing unit control method, and information processing system
JP2841432B2 (en) Data transfer device
JP2000067020A (en) Multi-processor system
JPS62276663A (en) Program transfer method
JPH04333950A (en) Information processing system
JPS59206925A (en) Data processing system
JP2687679B2 (en) Program development equipment
JP2552287B2 (en) System bus method
RU1835551C (en) Data processor
JP3063501B2 (en) Memory access control method
JPH07175768A (en) Dual cpu system
JPH04117697A (en) Multiport memory circuit
JPH05120207A (en) Data transfer system
JPH01154272A (en) Multiprocessor device