JPH03105440A - Shared memory access system - Google Patents

Shared memory access system

Info

Publication number
JPH03105440A
JPH03105440A JP1244211A JP24421189A JPH03105440A JP H03105440 A JPH03105440 A JP H03105440A JP 1244211 A JP1244211 A JP 1244211A JP 24421189 A JP24421189 A JP 24421189A JP H03105440 A JPH03105440 A JP H03105440A
Authority
JP
Japan
Prior art keywords
memory
bank
processor
bus
selector
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
JP1244211A
Other languages
Japanese (ja)
Inventor
Keiichi Yokota
圭一 横田
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 JP1244211A priority Critical patent/JPH03105440A/en
Publication of JPH03105440A publication Critical patent/JPH03105440A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dram (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To economically realize the shared memory of a multiprocessor system so as to improve reliability by connecting a bank which a bank memory does not use as the memory of the other processor. CONSTITUTION:A #0 processor 10 is always used and it can be connected to a bank 0 memory 20 through a #0 bus 50. It is connected to a bank 1 memory 21 by the selection of a selector 30. A #1 processor 11 is connected only to the bank 1 memory 21 by the selection of the selector 30 through a #1 bus 51. The selector 30 always and selectively connects the #1 bus 51 to the bank 1 memory 21, and connects the #0 bus 50 to the bank 1 memory 21 only when it receives a bank 1 selection signal from the #0 processor 10. An I/O port 40 receives information from respective #0 and #1 processors 10 and 11 and stores the number of a memory bank in the middle of use. Consequently, the #1 processor 11 uses the bank 1 memory 21 only when the port 40 is in a use permission state.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、マルチプロセッサシステムの共有メモリアク
セス方式に関する. 〔従来の技術〕 従来のマルチプロセッソシステムの共有メモリアクセス
方式は、バスアービタがマルチプロセッサバスを使用す
るプロセッサを選択して共有メモリに接続するもの、ま
たは共有メモリがデュアルポートメモリを有して使用す
るプロセッサを選定するものがあった. 〔発明が解決しようとする課題〕 上述した従来の共有メモリアクセス方式は、バスアービ
タがプロセッサを調整選択してマルチプロセッサバスを
使用する場合はバスアービタでの制御が複雑であり、デ
ュアルポートメモリを使用する場合は、コストが高く大
容量の共有メモリを実現できないという問題点があった
. 本発明の目的は、上記問題点を解決したマルチプロセッ
サシステムの共有メモリアクセス方式を提供することに
ある. 〔課題を解決するための手段〕 本発明の共有メモリアクセス方式は、#0および#1、
二つのプロセッサが共有メモリにアクセス処理するマル
チプロセッサの共有メモリアクセス方式において、 バンクOメモリおよびバンク1メモリの二つのバンクメ
モリと、前記二つのプロセッサそれぞれに接続する二つ
のバスの何れか一方を外部からの指示によりバンク1メ
モリに接続するセレクタと、前記二つのプロセッサそれ
ぞれから使用中のバンクメモリのバンク番号の通知を受
けて記憶するI/Oポートとを有し、 前記#0プロセッサは#0バスを介して府記バンクOメ
モリ,セレクタ,およびI/Oポートに接続すると共に
I/Oポートで#1プロセッサがバンクlメモリとのア
クセス処理のないとき、セレクタに指示してバンク1メ
モリを#Oバスに接続替えさせる一方、前記#1プロセ
ッサは#1バスを介して前記セレクタおよびI/Oポー
トに接続すると共にI/Oポートで#0プロセッサがバ
ンク1メモリとのアクセス処理のないとき、セレクタを
介してバンク1メモリを呼出す。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a shared memory access method for a multiprocessor system. [Prior Art] Conventional shared memory access methods for multiprocessor systems are such that a bus arbiter selects a processor that uses a multiprocessor bus and connects it to the shared memory, or that the shared memory has dual port memory and is used. There was one that allowed you to select a processor to use. [Problems to be Solved by the Invention] In the conventional shared memory access method described above, when the bus arbiter adjusts and selects processors to use a multiprocessor bus, control by the bus arbiter is complicated, and dual-port memory is used. However, there were problems in that the cost was high and large-capacity shared memory could not be realized. An object of the present invention is to provide a shared memory access method for a multiprocessor system that solves the above problems. [Means for Solving the Problems] The shared memory access method of the present invention includes #0 and #1,
In a multiprocessor shared memory access method in which two processors access shared memory, one of the two bank memories, bank O memory and bank 1 memory, and the two buses connected to each of the two processors is connected to the external and an I/O port that receives and stores the bank number of the bank memory in use from each of the two processors, and the #0 processor is connected to the bank #0 memory. It is connected to Bank O memory, selector, and I/O port via the bus, and when #1 processor is not accessing bank I memory at the I/O port, it instructs the selector to access bank 1 memory. While the connection is changed to the #O bus, the #1 processor is connected to the selector and the I/O port via the #1 bus, and when the #0 processor is not accessing bank 1 memory at the I/O port, , calls bank 1 memory via the selector.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する. 第l図は本発明の一実施例を示すブロック図である. 第1図に示す構成は、#0プロセッサ10,#1プロセ
ッサ11,バンク0メモリ20,バンク1メモリ21,
セレクタ30およびI/Oポート40を有し、#Oバス
が#0プロセッサ10,バンクOメモリ20,セレクタ
30およびI/Oポート40に、また#1バスがセレク
タ30およびI/Oポート40に、それぞれ接続する.
#0プロセッサ10は更にバンクO選択信号60をバン
クOメモリ20に、バンク1選択信号61をバンク1メ
モリ21およびセレクタ30に、それぞれ接続する.バ
ンク1メモリ21はセレクタ30を介して#Oバス50
および#1バス51の一方に接続する. #Oプロセッサ10は#0バス50を介してバンク0メ
モリ20とは常時接続され使用可能であるが、バンク1
メモリ21とはセレクタ30の選択により接続される.
#1プロセッサ1lは#1バス51を介しセレクタ30
の選択によりバンク1メモリ2lとだけに接続される. セレクタ30は常時は#1バス51をバンクlメモリ2
1に選択接続し、#0プロセッサ10からバンク1M択
信号61を受信したときだけ#0バス50をバンク1メ
モリ21に接続する.I/Oポート40は、#O,#1
プロセッサNo,11のそれぞれから情報を受け、使用
中のメモリバンク番号を記憶する.従って、#1プロセ
ッサl1がバンク1メモリ2】を使用するときは、バン
クlメモリ21が#0プロセッサ10から解放される、
I/Oポート40が使用許可状態のときだけである。#
1プロセッサl1がバンク1メモリ21を使用中のとき
I/Oポート40は、バンク1メモリ21の使用中、す
なわちセレクタ30の切替禁止を設定する. また、#0ブ口セッサ10は、バンク1メモリ21を使
用するとき、バンク1メモリ21が#1プロセッサ11
から解放され、I/Oポート40が使用許可状態のとき
、バンク1選択信号61を送出し、セレクタ30に切替
え動作を指示してバンク1メモリ2lへの接続を、#1
バス51から#Oバス50に切替えさせたのち、バンク
メモリ21とアクセス処理できる。
Next, the present invention will be explained with reference to the drawings. FIG. 1 is a block diagram showing one embodiment of the present invention. The configuration shown in FIG. 1 includes #0 processor 10, #1 processor 11, bank 0 memory 20, bank 1 memory 21,
It has a selector 30 and an I/O port 40, the #0 bus connects to the #0 processor 10, the bank O memory 20, the selector 30, and the I/O port 40, and the #1 bus connects to the selector 30 and the I/O port 40. , connect each.
#0 processor 10 further connects bank O selection signal 60 to bank O memory 20 and bank 1 selection signal 61 to bank 1 memory 21 and selector 30, respectively. Bank 1 memory 21 is connected to #O bus 50 via selector 30.
and #1 bus 51. The #O processor 10 is always connected to and available for use with the bank 0 memory 20 via the #0 bus 50;
It is connected to the memory 21 by selection of the selector 30.
The #1 processor 1l connects to the selector 30 via the #1 bus 51.
By selecting , it is connected only to bank 1 memory 2l. The selector 30 normally connects #1 bus 51 to bank l memory 2.
1 and connects the #0 bus 50 to the bank 1 memory 21 only when the bank 1M selection signal 61 is received from the #0 processor 10. I/O port 40 is #O, #1
It receives information from each processor No. 11 and stores the memory bank number in use. Therefore, when #1 processor l1 uses bank 1 memory 2], bank l memory 21 is released from #0 processor 10.
This is only when the I/O port 40 is in a use permitted state. #
When the 1 processor l1 is using the bank 1 memory 21, the I/O port 40 sets the bank 1 memory 21 to be in use, that is, the selector 30 is prohibited from switching. Further, when the #0 processor 10 uses the bank 1 memory 21, the bank 1 memory 21 is connected to the #1 processor 11.
When the I/O port 40 is released and the I/O port 40 is enabled, the bank 1 selection signal 61 is sent, instructing the selector 30 to perform a switching operation, and connection to the bank 1 memory 2l is established.
After switching from the bus 51 to the #O bus 50, access processing to the bank memory 21 can be performed.

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

以上説明したように本発明は、バンクメモリの使用して
いないバンクを他のプロセッサのメモリとして接続する
構或をとることにより、マルチプロセッサシステムの共
有メモリを経済的に実現できると共に信頼性を向上でき
る効果がある.
As explained above, the present invention enables shared memory in a multiprocessor system to be realized economically and improves reliability by connecting unused banks of bank memory as memory for other processors. There is an effect that can be achieved.

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

第1図は本発明の共有メモリアクセス方式の一実施例を
示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the shared memory access method of the present invention.

Claims (1)

【特許請求の範囲】 #0および#1、二つのプロセッサが共有メモリにアク
セス処理するマルチプロセッサの共有メモリアクセス方
式において、 バンク0メモリおよびバンク1メモリの二つのバンクメ
モリと、前記二つのプロセッサそれぞれに接続する二つ
のバスの何れか一方を外部からの指示によりバンク1メ
モリに接続するセレクタと、前記二つのプロセッサそれ
ぞれから使用中のバンクメモリのバンク番号の通知を受
けて記憶するI/Oポートとを有し、 前記#0プロセッサは#0バスを介して前記バンク0メ
モリ、セレクタ、およびI/Oポートに接続すると共に
I/Oポートで#1プロセッサがバンク1メモリとのア
クセス処理のないとき、セレクタに指示してバンク1メ
モリを#0バスに接続替えさせる一方、 前記#1プロセッサは#1バスを介して前記セレクタお
よびI/Oポートに接続すると共にI/Oポートで#0
プロセッサがバンク1メモリとのアクセス処理のないと
き、セレクタを介してバンク1メモリを呼出す ことを特徴とする共有メモリアクセス方式。
[Claims] #0 and #1, a multiprocessor shared memory access method in which two processors access shared memory, comprising: two bank memories, bank 0 memory and bank 1 memory, and each of the two processors; a selector that connects one of the two buses connected to the bank 1 memory to the bank 1 memory according to an external instruction, and an I/O port that receives and stores the bank number of the bank memory in use from each of the two processors. The #0 processor is connected to the bank 0 memory, selector, and I/O port via the #0 bus, and the #1 processor is connected to the bank 1 memory at the I/O port without processing access to the bank 1 memory. , while instructing the selector to reconnect the bank 1 memory to the #0 bus, the #1 processor connects to the selector and the I/O port via the #1 bus, and also connects the bank 1 memory to the #0 bus at the I/O port.
A shared memory access method characterized in that when a processor is not accessing bank 1 memory, it calls bank 1 memory via a selector.
JP1244211A 1989-09-19 1989-09-19 Shared memory access system Pending JPH03105440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1244211A JPH03105440A (en) 1989-09-19 1989-09-19 Shared memory access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1244211A JPH03105440A (en) 1989-09-19 1989-09-19 Shared memory access system

Publications (1)

Publication Number Publication Date
JPH03105440A true JPH03105440A (en) 1991-05-02

Family

ID=17115408

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1244211A Pending JPH03105440A (en) 1989-09-19 1989-09-19 Shared memory access system

Country Status (1)

Country Link
JP (1) JPH03105440A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6175881B1 (en) 1997-05-28 2001-01-16 Oki Electric Industry Co., Ltd. Microcontroller having a memory, a dedicated multitask memory, and switching circuit for selectively connecting the multitask memory to the internal or external bus
EP1164495A2 (en) * 2000-06-07 2001-12-19 Nec Corporation Integrated circuit for modem

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6175881B1 (en) 1997-05-28 2001-01-16 Oki Electric Industry Co., Ltd. Microcontroller having a memory, a dedicated multitask memory, and switching circuit for selectively connecting the multitask memory to the internal or external bus
EP1164495A2 (en) * 2000-06-07 2001-12-19 Nec Corporation Integrated circuit for modem

Similar Documents

Publication Publication Date Title
JPS6126103B2 (en)
JPH01320564A (en) Parallel processor
JPH03105440A (en) Shared memory access system
JPS6029141B2 (en) coupling device
JP2522412B2 (en) Communication method between programmable controller and input / output device
JP2962767B2 (en) Memory access method for DMA device
JP2705955B2 (en) Parallel information processing device
KR930022207A (en) Master / Slave Memory Sharing Device and Sharing Control Method
JPS6336346A (en) Bank switching circuit
JPH0363995A (en) Dual port memory
JPH01248264A (en) System for controlling contention of system bus
JPH03167651A (en) Bus control system
JPH01154272A (en) Multiprocessor device
JPS61105788A (en) Address selection circuit of microcomputer system
JPH0247751A (en) Channel control system
JPH0546537A (en) Bus control system
JPH01266651A (en) Semiconductor memory device
JPH04235661A (en) Multiprocessor system
JPS63198144A (en) Direct memory access control system in multi-port memory
JPS60245060A (en) Microcomputer device
JPH0261749A (en) Data transfer device
JPS60108958A (en) Inter-processor information transfer control system
JPS62100857A (en) Control system for transmission of information
JPH01177667A (en) System for transferring data between multiprocessors
JPH05158859A (en) Information processor