JPH0488535A - Memory mapping method for shared memory and multi-cpu system - Google Patents

Memory mapping method for shared memory and multi-cpu system

Info

Publication number
JPH0488535A
JPH0488535A JP20246790A JP20246790A JPH0488535A JP H0488535 A JPH0488535 A JP H0488535A JP 20246790 A JP20246790 A JP 20246790A JP 20246790 A JP20246790 A JP 20246790A JP H0488535 A JPH0488535 A JP H0488535A
Authority
JP
Japan
Prior art keywords
address
shared memory
cpu
access
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
JP20246790A
Other languages
Japanese (ja)
Inventor
Hiroaki Fukumaru
広昭 福丸
Yoshihiro Miyazaki
義弘 宮崎
Yoshiaki Takahashi
義明 高橋
Hirokazu Kasashima
広和 笠嶋
Tsutomu Matsuki
勉 松木
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 JP20246790A priority Critical patent/JPH0488535A/en
Publication of JPH0488535A publication Critical patent/JPH0488535A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the throughput of data transfer between CPUs by dynamically setting the size of address space usable in an inter-CPU communication area corresponding to the amount of transfer of data. CONSTITUTION:When a write access request is issued from an execution unit 150, an access controller 160 outputs the write access request to shared memory 4. Also, an access address A is inputted to an address conversion mechanism 120 and an address comparison mechanism 130. The comparator 130 compares the boundary value address AO of an address storage mechanism 140 with the address A. When it is A<AO, the address A is outputted as a bit-expanded address AC to the shared memory 4 as it is. When it is A>=AO, an address AC=A+AS in which an offset value AS is added on the access address A is outputted to the shared memory 4 as an output address.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は共有メモリのメモリマツピング方法に係り、特
に共有メモリに対するアドレスリーチの異なるCPUで
構成されたマルチCPUシステムに好敵な共有メモリの
マツピング方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory mapping method for shared memory, and in particular to a shared memory mapping method that is suitable for a multi-CPU system composed of CPUs with different address reaches for the shared memory. Regarding the mapping method.

[従来の技術] マルチCPUシステムにおけるCPU間通信の1つの手
段として、共有メモリを用いて行うものがあり、1つの
CPUが共有メモリへ書き込んだデータを他のCPUが
読み取る、という方法で通信が行われる。このようなシ
ステムで、アドレスリーチの異なるCPUが用いられて
いる場合には、第2図に示すような共有メモリのマツピ
ングが行われていた。(HARDWARE MANIJ
AL HIDTC805erieS”0ctiber、
1983.HITAC旧江TD参照)即ちいま、3台の
CPUが用いられていて、CPUI、2の共有メモリに
対するアドレスリーチが512KB(キロバイト)、C
PU3の同アドレスリーチが4MB (メガバイト)と
する。そうすると各CPUのアドレスは共有メモリのI
I OIT番地から当該CPUよりアクセス可能なアド
レスまでがマツピングされる。従って今の場合3台のC
PUに共通なマツピングエリアは第2図(a)の共通部
に示したように、0”〜“0007FFFF (16進
)″番地までの542KBとなる3このうち、全CP 
U間の制御に必要な容量を256KBとすると、残りの
256KBをCPU″lと3間、及びCPU2と3間の
データ転送用エリアとして分割使用する。第2図(b)
ではこれらにそれぞれ128KBが割り当てられている
様子を示している3[発明が解決しようとする課題] 上記した従来技術では、共有メモリを介してCPU間の
通信を行う場合に、アドレスリーチの小さいCPUはど
小さい通信用エリアしか使用できず、とくにそのアドレ
スリーチの小さいCP Uが多くなるほど、1つのCP
Uで使えるエリアは小さくなり、データ転送の効率が悪
くなるという問題があった。
[Prior Art] One means of inter-CPU communication in a multi-CPU system is to use a shared memory, and communication is performed in such a way that data written by one CPU to the shared memory is read by another CPU. It will be done. In such a system, when CPUs with different address reaches are used, shared memory mapping as shown in FIG. 2 has been performed. (HARDWARE MANIJ
AL HIDTC805erieS”0ctiver,
1983. In other words, three CPUs are currently in use, and the address reach for the shared memory of CPUI, 2 is 512KB (kilobytes), and C
Assume that the address reach of PU3 is 4MB (megabytes). Then, the address of each CPU is I of the shared memory.
The addresses from the IOIT address to addresses accessible by the CPU are mapped. Therefore, in this case, there are three C
As shown in the common part of Figure 2 (a), the common mapping area for PUs is 542KB from addresses 0" to "0007FFFF (hexadecimal)"3, of which all CPs
Assuming that the capacity required for control between U is 256 KB, the remaining 256 KB is divided and used as an area for data transfer between CPU'1 and 3, and between CPU 2 and 3. Figure 2 (b)
3 shows how 128 KB is allocated to each of these.3 [Problems to be Solved by the Invention] In the above-mentioned conventional technology, when communicating between CPUs via a shared memory, the CPU with a small address reach However, only a small communication area can be used, and the more CPUs with small address reach, the more
There was a problem in that the usable area for U became smaller and data transfer efficiency deteriorated.

本発明の目的は、アドレスリーチの小さなCPUと、ア
ドレスリーチの大きなCPUとの間の通信用エリアを拡
大することによって上記CPUの通信時のスルーブツト
を向上することのできる共有メモリのメモリマツピング
方法を提供するにある。
It is an object of the present invention to provide a shared memory memory mapping method that can improve the communication throughput of the CPUs by expanding the communication area between a CPU with a small address reach and a CPU with a large address reach. is to provide.

口課題を解決するための手段] 上記の目的を達成するために、本発明においては、アド
レスリーチの小さなCPUの共有メモリに対するアドレ
ス空間を、予め設定した境界値アドレスで第1及び第2
エリアに分割し、また各CPUから共有メモリへアクセ
スするアドレスの変換手段を各CPUに設けるとともに
、該変換手段によって、アドレスリーチの小さいCPU
からの共有メモリへのアクセスアドレスが上記第1エリ
アにあるときはどのCPUに対しても共通の共有メモリ
エリアに割り付け、第2エリアにあるときは当該小アド
レスリーチのCPUの間で異なる共有メモリが割り付け
られるようにした。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides an address space for a shared memory of a CPU with a small address reach by dividing the address space into first and second addresses at a preset boundary value address.
Each CPU is divided into areas, and each CPU is provided with an address conversion means for accessing the shared memory from each CPU.
When the access address to the shared memory from is in the first area, it is allocated to a common shared memory area for all CPUs, and when it is in the second area, it is allocated to a different shared memory area among the CPUs with the corresponding small address reach. can be assigned.

[作用] アドレスリーチの小さなCPtJから共有メモリへのア
クセス時に、変換手段はアクセスアドレスを予め設定さ
れた境界値アドレスと比較し、共有メモリのアドレス空
間のどのエリアに対応するかを判定する。その結果第2
エリアにあれば、当該CPU対応に予め定められた共有
メモリ上のエリアの物理アドレスに変換して共有メモ1
jをアクでスする。従ってアドレスリーチの小さいCP
Uの第2エリアに対応する共有メモリ上のエリアは当該
CPU毎に別のエリアとする二とができ、アドレスリー
チの小さいCPUの間で1つのエリアを分けて使う必要
がなくなる。一方、アドレスリーチの大きいCPUのア
ドレスに対しては共有メモリの大きなエリアがマツピン
グされているから、上記アドレスリーチの小さい各CP
Uの第2エリア対応の上記共有メモリ上の各エリアは、
アドレスリーチの大きいCPUのマツピングエリア上に
分散されて配置できる。従ってアドレスリーチ小のCP
Uの各々とアドレスリーチ大のCPUとの間の通信用に
は、アドレスリーチ小のCPUの第2エリア全部に相当
する共有メモリ上のエリアが利用でき、そのエリアをさ
らに分割していた従来方法よりも通信のスループットが
大幅に向上する。
[Operation] When accessing the shared memory from CPtJ with a small address reach, the conversion means compares the access address with a preset boundary value address and determines which area of the address space of the shared memory it corresponds to. As a result, the second
If it is in the area, the shared memory 1 is converted to the physical address of the area on the shared memory predetermined for the CPU.
Click j. Therefore, CP with small address reach
The area on the shared memory corresponding to the second area of U can be set as a separate area for each CPU, and there is no need to divide and use one area among CPUs with small address reach. On the other hand, since a large area of the shared memory is mapped to the address of the CPU with a large address reach, each CPU with a small address reach
Each area on the above shared memory corresponding to the second area of U is
It can be distributed and arranged on the mapping area of the CPU with a large address reach. Therefore, CP with small address reach
For communication between each U and the CPU with large address reach, an area on the shared memory corresponding to the entire second area of the CPU with small address reach can be used, and in the conventional method, this area is further divided. Communication throughput is significantly improved.

[実施例] 以下本発明を実施例によって詳細に説明する。[Example] The present invention will be explained in detail below using examples.

第3図は本発明の方法を適用したマルチCPUシステム
の構成例を示すものである。CPUI、2はセンサ5.
6のデータを信号線51.61を介して読み取り、イン
タフェース50.60を介し共有メモリ(GM)4にそ
のデータを一時格納する。CPU3は、インタフェース
70を介してそのデータを読み取ることでデータ転送が
行われる。
FIG. 3 shows an example of the configuration of a multi-CPU system to which the method of the present invention is applied. CPUI, 2 is sensor 5.
6 is read through the signal line 51.61, and the data is temporarily stored in the shared memory (GM) 4 through the interface 50.60. Data transfer is performed by the CPU 3 reading the data via the interface 70.

ここでCPUI、2は、CPU3と較ベアトレスリーチ
の小さなCPUである。
Here, CPUI2 is a CPU with a small bearish reach compared to CPU3.

第1図は第3図(7)CPUI (またはCPL’2)
の一実施例を示すブロック図で、実行ユニット(EU)
150は、基本処理装置(BPU)155、プライベー
トメモリ(PM)154、バスコントローラ(BC)1
57、入出カプロセッサ(工○P)156、内部バス1
58にて構成される。共有メモリ接続機構(GMP)1
00は、本発明の特徴とする境界値アドレス記憶機構(
FENCE)140、比較器(CMP)130、アドレ
ス変換機構120、共有メモリアクセスコントローラ(
CNT)160より構成される。
Figure 1 shows Figure 3 (7) CPUI (or CPL'2)
1 is a block diagram illustrating one embodiment of an execution unit (EU).
150, a basic processing unit (BPU) 155, a private memory (PM) 154, a bus controller (BC) 1
57, Input/output processor (Engineering ○P) 156, Internal bus 1
It consists of 58 parts. Shared Memory Attachment (GMP) 1
00 is the boundary value address storage mechanism (
FENCE) 140, comparator (CMP) 130, address translation mechanism 120, shared memory access controller (
CNT) 160.

以下本実施例の動作を説明する。まず実行ユニット15
0より信号線153を介しライトアクセス要求が発行さ
れると、アクセスコントローラ160は信号線502を
介し共有メモリ4ヘライトアクセス要求を出す。また、
アクセスアドレスAは、アドレスバス151を介しアド
レス変換機構120及び比較器130へ入力され、比較
器130はアドレス記憶機構140の境界値アドレスA
OとアクセスアドレスAとを比較する。その結果、もし
A<AOであれば比較器出力はオフとなり、このときア
ドレス変換機構120は、入力されたアクセスアドレス
Aをそのままビット拡張したアドレスACとしく上位に
必要なだけII Oj+ビットを付加して共有メモリの
全アドレスに必要な桁数にする)、バス501を介して
共有メモリ4へ出力する。一方、A≧AO1即ちアクセ
スアドレスAが境界値アドレス記憶機構であるときは比
較器130出力はオンとなり、アドレス変換機構120
は記憶機構110に格納された変換情報としてのオフセ
ット値ASをアクセスアドレスAに加えたAC=A+A
Sを出力アドレスとして共有メモリ4へ出力する。この
ようにして共有メモリ4へのアドレス送出が行われると
、アクセスコントローラ160は信号線153を介して
実行ユニット150にライトデータ送出要求を行い、デ
ータバス152、バス501を経由で共有メモリ4ヘラ
イトデータを出力する。こうしてライトアクセスが終了
するとコントローラ160は、信号線153を介しライ
トアクセス終了報告を実行ユニット150に行う。
The operation of this embodiment will be explained below. First, execution unit 15
When the access controller 160 issues a write access request to the shared memory 4 via the signal line 502, the access controller 160 issues a write access request to the shared memory 4 via the signal line 502. Also,
The access address A is input to the address translation mechanism 120 and the comparator 130 via the address bus 151, and the comparator 130 receives the boundary value address A of the address storage mechanism 140.
Compare O and access address A. As a result, if A<AO, the comparator output is turned off, and at this time, the address translation mechanism 120 adds the necessary number of bits II Oj + bits to the upper part of the input access address A, making it the address AC that is bit-extended. (to the number of digits required for all addresses in the shared memory) and outputs it to the shared memory 4 via the bus 501. On the other hand, when A≧AO1, that is, when the access address A is a boundary value address storage mechanism, the comparator 130 output is turned on, and the address translation mechanism 120
is AC=A+A, which is obtained by adding the offset value AS as conversion information stored in the storage mechanism 110 to the access address A.
S is output to the shared memory 4 as an output address. When the address is sent to the shared memory 4 in this way, the access controller 160 requests the execution unit 150 to send write data via the signal line 153, and sends the write data to the shared memory 4 via the data bus 152 and bus 501. Output write data. When the write access ends in this way, the controller 160 sends a write access end report to the execution unit 150 via the signal line 153.

実行ユニットからのリードアクセス時も全く同様で、共
有メモリ4へのリードアクセス要求の送出、アクセスア
ドレスAの境界値アドレスAOとの比較、AHAOかA
≧AOかに応じたアドレス変換機構の動作とその出力ア
ドレスACの共有メモリへの送出が行われる。リードア
クセスの場合はこのアドレスACの送出によって共有メ
モリ4からリードデータが出力され、それがバス501
.152にオンバスされると、コントローラ160は信
号線153を介してリードアクセス終了を実行ユニット
150に報告する。
The same is true for read access from the execution unit, sending a read access request to shared memory 4, comparing access address A with boundary value address AO, and determining whether AHAO or A
The address translation mechanism operates depending on whether ≧AO or not, and its output address AC is sent to the shared memory. In the case of read access, read data is output from the shared memory 4 by sending this address AC, and it is transferred to the bus 501.
.. 152, the controller 160 reports the completion of the read access to the execution unit 150 via the signal line 153.

第4図は以上の動作によるマツピングの例を示している
。従来例の説明(第2図)の場合と同じく、CPUI、
2の共有メモリに対するアドレスリーチが512KB、
CPU3のアドレスリーチが4MB、全てのCPU間の
制御に必要な共有メモリ容量を256KBとする。この
とき、第1図の記憶機構140の境界値アドレスAOを
CPU1.2ともにAO= ”0O03FFFF” と
L、一方記憶機構110のオフセットASをCPUIに
対してAS=”O”、CPU2に対してAS=“000
3FFFF (16進)″に設定する。そうすると、C
PUI、2ともそのアクセスアドレスAがA<AOの時
は、Aがそのまま共有メモリのアドレスACとされるか
ら、共有メモリの# OITからAO= ”0O03F
FFF” L、−相当すル共通部がアクセスされる。こ
れは上記のCPtJ間の制御に必要なエリアである。一
方、アクセスアドレスAが“0O07FFFF”≧A≧
AOのときはCPUIではそのまま共有メモリにマツピ
ングされ、CPU2ではAC:A+AS、”0007F
F F F ”≦AC≦” 0008 F F F F
 ”なるアドレスACにマツピングされるから、CPU
IとCPU3間のデータ転送用エリアもCPU2とCP
U5間の同エリアもともに256KB確保でき、従来の
方法による第2図の場合と比ベデータ転送用の専用エリ
アが2倍に拡大される。
FIG. 4 shows an example of mapping by the above operation. As in the case of the conventional example (Fig. 2), the CPU,
The address reach for the shared memory of 2 is 512KB,
It is assumed that the address reach of CPU3 is 4MB and the shared memory capacity required for control among all CPUs is 256KB. At this time, the boundary value address AO of the storage mechanism 140 in FIG. AS="000
3FFFF (hexadecimal)''. Then, C
When the access address A of both PUI and 2 is A<AO, A is taken as the address AC of the shared memory, so AO="0O03F from #OIT of the shared memory.
The common area corresponding to "FFF" L, - is accessed. This is an area necessary for the control between the CPtJs described above. On the other hand, if the access address A is "0O07FFFF"≧A≧
When it is AO, it is mapped directly to the shared memory in CPUUI, and in CPU2 it is mapped as AC:A+AS, "0007F.
F F F ”≦AC≦” 0008 F F F F
” Since it is mapped to the address AC, the CPU
The area for data transfer between I and CPU3 is also between CPU2 and CPU
The same area between U5 can also be secured to 256 KB, and the dedicated area for data transfer is doubled compared to the case of FIG. 2 using the conventional method.

第5図は本発明の別の実施例を示すものである。FIG. 5 shows another embodiment of the invention.

第1図の実施例では、記憶機構140及び120に記憶
されている境界値アドレスAO及びアドレス変換情報A
Sは固定値であった。この場合、確保されたデータ転送
用エリアの容量を超えるデータを転送する場合には、C
PUIまたは2とCPU3の間のデータ転送が完了する
までは欣のデータをデータ転送用エリアへ書き込むこと
ができず、その転送を一時中断する必要があった。本実
施例では、境界値アドレスAO及びアドレス変換情報A
Sを書き換え可能としてこの問題点を解決したものであ
る。このために、第1図の構成に、アクセスコントロー
ラ160から記憶機構110のアドレス変換情報を書き
換えるための信号線161と、記憶機構140の境界値
アドレスを書き換えるための信号線162を付加してい
る。
In the embodiment of FIG. 1, the boundary value address AO and address translation information A stored in storage mechanisms 140 and 120
S was a fixed value. In this case, when transferring data that exceeds the capacity of the secured data transfer area,
Until the data transfer between the PUI or 2 and the CPU 3 is completed, it is not possible to write the data in the data transfer area, and it is necessary to temporarily interrupt the transfer. In this embodiment, boundary value address AO and address conversion information A
This problem was solved by making S rewritable. To this end, a signal line 161 for rewriting the address conversion information of the storage mechanism 110 from the access controller 160 and a signal line 162 for rewriting the boundary value address of the storage mechanism 140 are added to the configuration shown in FIG. .

この第5図の構成において、実行ユニット150から信
号線153を介してアドレス変換情報の変更要求が出さ
れると、コントローラ160は信号線161の信号をオ
ンとし、実行ユニット150からデータバス152にオ
ンバスされた新しいアドレス変換情報を記憶機構110
に書き込む。
In the configuration shown in FIG. 5, when a request to change address translation information is issued from the execution unit 150 via the signal line 153, the controller 160 turns on the signal on the signal line 161, and transfers the data bus 152 from the execution unit 150 to the data bus 152. The new address translation information is stored in the storage mechanism 110.
write to.

また、実行ユニット150から信号線153を介して境
界値アドレスの変更要求が出されると、コントローラ1
60は信号線162の信号をオンとし、実行ユニット1
50からデータバス152にオンバスされた新しい境界
値アドレスを記憶機構140に書き込む。
Further, when a boundary value address change request is issued from the execution unit 150 via the signal line 153, the controller 1
60 turns on the signal on the signal line 162, and the execution unit 1
The new boundary value address bussed from 50 onto data bus 152 is written to storage 140.

本実施例によれば、共有メモリに対するアドレスリーチ
の分割位置とその分割したアドレス空間ノ共有メモリ上
へのマツピング位置を変更可能とすることで、転送デー
タ量に応じたダイナミックなマツピングで効率の良い転
送を行える。
According to this embodiment, by making it possible to change the address reach division position for the shared memory and the mapping position of the divided address space on the shared memory, efficient mapping can be achieved with dynamic mapping according to the amount of transferred data. Transfers can be made.

なお、以上の実施例では、3台のマルチCPUシステム
の場合について述べたが、本発明は3台に限らず実施可
能であることが明らかである。
In addition, although the above embodiment described the case of a multi-CPU system with three units, it is clear that the present invention can be implemented not only with three units.

[発明の効果コ 本発明によれば、アドレスリーチの異なるCPUにて構
成されるマルチCPUシステムムを7おいて、CPU間
の通信用エリアに使用できるアドレス空間を従来よりも
拡張でき、またデータ転送量に応じてダイナミックにそ
の空間の大きさを設定できるから、CPU間データ転送
のスループットを向上することができる効果がある。
[Effects of the Invention] According to the present invention, in a multi-CPU system made up of CPUs with different address reaches, the address space that can be used for the communication area between the CPUs can be expanded more than before, and the data Since the size of the space can be dynamically set according to the amount of transfer, it is possible to improve the throughput of data transfer between CPUs.

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

第1図は本発明の方法を実現するCPUの一実施例を示
すブロック図、第2図は従来のマツピング例を示す図、
第3図はマルチCPUシステムの構成例を示す図、第4
図は本発明を用いた場合の共有メモリアドレス空間のマ
ツピング例を示す図、第5図は本発明の別の実施例を示
すブロック図である。 1〜3・・CPU、4・・・共有メモリ装置、110・
・アドレス変換情報記憶機構、120・・・アドレス変
換機構、 アドレス比較器、 140・境界 値アドレス記憶機構。
FIG. 1 is a block diagram showing an embodiment of a CPU that implements the method of the present invention, FIG. 2 is a diagram showing an example of conventional mapping,
Figure 3 is a diagram showing an example of the configuration of a multi-CPU system;
This figure shows an example of mapping of a shared memory address space when the present invention is used, and FIG. 5 is a block diagram showing another embodiment of the present invention. 1 to 3...CPU, 4...Shared memory device, 110...
・Address translation information storage mechanism, 120...Address translation mechanism, address comparator, 140・Boundary value address storage mechanism.

Claims (1)

【特許請求の範囲】 1、共有メモリと、該共有メモリの全エリアにアクセス
可能なアドレスリーチを有するところの少なくとも1台
の大CPUと、上記共有メモリの全エリアをアクセスす
るために必要なアドレスリーチを有させないところの複
数台の小CPUとを備えたマルチCPUシステムでの共
有メモリのメモリマッピング方法において、上記小CP
Uの各々に、当該CPUの上記共有メモリに対するアド
レス空間を第1及び第2空間へ分割するための境界値ア
ドレスを記憶する第1の手段と、上記境界値アドレスと
上記共有メモリへのアクセスアドレスとを比較して該ア
クセスアドレスが上記第1及び第2の空間のいずれにあ
るかを判定する第2の手段と、該手段の判定結果に応じ
た上記アクセスアドレスの変換を行う第3の手段とを有
せしめ、上記小CPUから上記共有メモリへのアクセス
は上記第3の手段により生成されたアドレスによって行
うことを特徴とする共有メモリのメモリマッピング方法
。 2、前記第1の手段の境界値アドレスを前記小CPUの
実行ユニットから書き換え可能としたことを特徴とする
請求項1記載の共有メモリのメモリマッピング方法。 3、前記第3の手段によるアクセスアドレスの変換方法
を前記小CPUの実行ユニットから書き換え可能とした
ことを特徴とする請求項1または2記載の共有メモリの
メモリマッピング方法。 4、前記第3の手段は、オフセットアドレスを記憶する
記憶手段と、上記オフセットアドレスとアクセスアドレ
スとを加算して出力するアドレス加算手段とから成るこ
とを特徴とする請求項1または3記載の共有メモリのメ
モリマッピング方法。 5、共有メモリと、該共有メモリの全エリアにアクセス
可能なアドレスリーチを有するところの少なくとも1台
の大CPUと、上記共有メモリの全エリアをアクセスす
るために必要なアドレスリーチを有させないところの複
数台の小CPUとを備えたマルチCPUシステムにおい
て、上記小CPUの各々は、当該CPUの上記共有メモ
リに対するアドレス空間を第1及び第2空間へ分割する
ための境界値アドレスを記憶する第1の手段と、上記境
界値アドレスと上記共有メモリへのアクセスアドレスと
を比較して該アクセスアドレスが上記第1及び第2の空
間のいずれにあるかを判定する第2の手段と、該手段の
判定結果に応じた上記アクセスアドレスの変換を行い上
記共有メモリをアクセスするためのアドレスを生成する
アドレス変換手段とを備えたことを特徴とするマルチC
PUシステム。
[Claims] 1. A shared memory, at least one large CPU having an address reach that can access all areas of the shared memory, and an address necessary to access all areas of the shared memory. In a memory mapping method for a shared memory in a multi-CPU system equipped with a plurality of small CPUs having no reach, the small CPU
a first means for storing a boundary value address for dividing an address space for the shared memory of the CPU into first and second spaces in each of the CPUs; and a first means for storing a boundary value address and an access address to the shared memory in each of the CPUs; and third means for converting the access address according to the determination result of the means. A memory mapping method for a shared memory, characterized in that access from the small CPU to the shared memory is performed using an address generated by the third means. 2. The shared memory memory mapping method according to claim 1, wherein the boundary value address of the first means can be rewritten by an execution unit of the small CPU. 3. The shared memory memory mapping method according to claim 1 or 2, wherein the access address conversion method by the third means can be rewritten from an execution unit of the small CPU. 4. The sharing device according to claim 1 or 3, wherein the third means comprises a storage means for storing an offset address, and an address addition means for adding the offset address and the access address and outputting the result. Memory mapping method for memory. 5. A shared memory, at least one large CPU that has an address reach that can access all areas of the shared memory, and a CPU that does not have the address reach necessary to access all areas of the shared memory. In a multi-CPU system including a plurality of small CPUs, each of the small CPUs has a first memory that stores a boundary value address for dividing the address space for the shared memory of the CPU into first and second spaces. means for comparing the boundary value address and the access address to the shared memory to determine whether the access address is in the first or second space; and address conversion means for converting the access address according to the determination result and generating an address for accessing the shared memory.
PU system.
JP20246790A 1990-08-01 1990-08-01 Memory mapping method for shared memory and multi-cpu system Pending JPH0488535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20246790A JPH0488535A (en) 1990-08-01 1990-08-01 Memory mapping method for shared memory and multi-cpu system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20246790A JPH0488535A (en) 1990-08-01 1990-08-01 Memory mapping method for shared memory and multi-cpu system

Publications (1)

Publication Number Publication Date
JPH0488535A true JPH0488535A (en) 1992-03-23

Family

ID=16458011

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20246790A Pending JPH0488535A (en) 1990-08-01 1990-08-01 Memory mapping method for shared memory and multi-cpu system

Country Status (1)

Country Link
JP (1) JPH0488535A (en)

Similar Documents

Publication Publication Date Title
JP3687990B2 (en) Memory access mechanism
EP0497600B1 (en) Memory access method and apparatus
JPH0552540B2 (en)
JPH11512857A (en) Address translation in a cluster computer system
US5060186A (en) High-capacity memory having extended addressing capacity in a multiprocessing system
JPS61211758A (en) Multiprocessor system
JPH04308953A (en) Virtual address computer system
JPS6126152A (en) Address check system
EP1103898A2 (en) Microprocessor and memory
JPH0488535A (en) Memory mapping method for shared memory and multi-cpu system
US5303363A (en) Image processing apparatus having disk storage resembling ram memory
JPH04288643A (en) Memory mapping system for multi-processor system
GB2221066A (en) Address translation for I/O controller
JP2823038B2 (en) Logical direct memory access method
EP0787326B1 (en) System and method for processing of memory data and communication system comprising such system
JPH05108477A (en) Memory access system
JPH05313999A (en) Memory controller
JPH0235551A (en) Address conversion system for channel device
JPH05197617A (en) Multiprocessor system
JPS59146344A (en) Advance control system of virtual stack
JPH0244445A (en) Data processor
JPS63245545A (en) Dma system
JPH037980B2 (en)
JPH02101552A (en) Address conversion buffer processing system
JPS60159954A (en) Memory controlling system