JPS63123152A - Memory access system - Google Patents

Memory access system

Info

Publication number
JPS63123152A
JPS63123152A JP61267774A JP26777486A JPS63123152A JP S63123152 A JPS63123152 A JP S63123152A JP 61267774 A JP61267774 A JP 61267774A JP 26777486 A JP26777486 A JP 26777486A JP S63123152 A JPS63123152 A JP S63123152A
Authority
JP
Japan
Prior art keywords
memory
address
processor
access
memories
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
JP61267774A
Other languages
Japanese (ja)
Inventor
Masanori Hirano
平野 正則
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP61267774A priority Critical patent/JPS63123152A/en
Publication of JPS63123152A publication Critical patent/JPS63123152A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To reduce memory competition and to improve system performance by grouping plural processors, associating plural memories with the groups one by one, giving the same memory capacity to each group and allocating the same address to the groups. CONSTITUTION:When a processor 1 reads data out of the memory, a memory access control part 7 turns on a signal line 15, and gives a read command R to the memory 5 and simultaneously gives a read address A to the memory 5 through a signal line 11. When the processor 1 writes data in the memory, the memory access control part 7 turns on a signal line 16, and gives a write command R to the memories 5 and 6 and simultaneously gives write address A and write data D1 to the memories 5 and 6 through a signal line 14. A processor 2 accesses the memory in the same manner as the processor 1, and processors 3 and 4 do the same action except for reading data in the memory 6.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマルチプロセッサシステムにおけるメモリアク
セス方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory access method in a multiprocessor system.

〔従来の技術〕[Conventional technology]

従来のマルチプロセッサシステムにおいては、複数のプ
ロセッサが1台のメモリ (ここで、1台のメモリとは
どのプロセッサに対しても同一のアドレスを割り付けさ
れたメモリが1台と言う意味である)を共有した構成を
とっており、プロセッサ台数の増加とともにメモリ競合
が増し、システム性能が上がらないという欠点があった
In a conventional multiprocessor system, multiple processors use one memory (here, one memory means one memory with the same address assigned to every processor). The disadvantage was that as the number of processors increased, memory contention increased and system performance did not improve as the number of processors increased.

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

そこで本発明は、マルチプロセッサシステムにおいて、
プロセッサ台数の増加にかかわらず、メモリ競合を減ら
してシステム性能を向上させることを解決すべき問題点
とする。
Therefore, the present invention provides a multiprocessor system that
The problem to be solved is to reduce memory contention and improve system performance regardless of the increase in the number of processors.

〔問題点を解決するだめの手段〕 上記問題点解決のため、本発明では、複数台のプロセッ
サと複数台のメモリから成るマルチプロセッサシステム
において、前記複数台のプロセッサを複数群にグループ
分けすると共に、前記複数台のメモリは前記複数群の各
々に1台ずつ対応付けておき、かつ前記複数台のメモリ
は、何れも同じ記憶容量を持つと共に、同じアドレス割
り付けを施しておく。
[Means for Solving the Problem] In order to solve the above problem, the present invention provides a multiprocessor system consisting of a plurality of processors and a plurality of memories, in which the plurality of processors are grouped into a plurality of groups, and , the plurality of memories are associated one with each of the plurality of groups, and the plurality of memories all have the same storage capacity and are assigned the same address.

〔作用〕[Effect]

前記複数群内の任意の1群における任意のプロセッサが
成る任意の番地にアクセスする場合、そのアクセスが読
み出し用であれば、そのプロセッサの属する群に対応し
たメモリの当該番地にアクセスを行い、そのアクセスが
書き込み用であれば、複数台の全メモリの当該番地にア
クセスを行う。
When accessing an arbitrary address consisting of an arbitrary processor in an arbitrary group among the plurality of groups, if the access is for reading, access the address in the memory corresponding to the group to which the processor belongs, and If the access is for writing, the relevant address of all the memories of the plurality of devices is accessed.

〔実施例〕〔Example〕

第1図は本発明の第1の実施例を示すブロック図である
。同図において、1. 2. 3. 4はそれぞれプロ
セッサであり、プロセッサ1.2は第1群、プロセッサ
3,4は第2群に属する。5,6はそれぞれメモリであ
り、それぞれ0番地から(A−1)番地のアドレスが付
与されている。
FIG. 1 is a block diagram showing a first embodiment of the present invention. In the figure, 1. 2. 3. 4 are processors, processors 1 and 2 belong to the first group, and processors 3 and 4 belong to the second group. 5 and 6 are memories, respectively, and are assigned addresses from address 0 to address (A-1), respectively.

7はプロセッサ1内のメモリアクセス制御部であって、
読み出しの場合、信号線15をオンとし、書き込みの場
合、信号線16をオンとする。8はメモリアドレスレジ
スタ(MAR) 、9は読み出しデータレジスタ(RD
R) 、10は書き込みデータレジスタ(WDR) 、
11はプロセッサ1内のメモリアドレスレジスタ8の内
容をメモリ5に与える信号線、12はメモリアドレスレ
ジスタ8の内容をメモリ5,6に与える信号線、13は
メモリ5からの読み出しデータを読み出しデータレジス
タ9に与える信号線、14は書き込みデータレジスタ1
0の内容をメモリ5.6に与える信号線、15はプロセ
ッサ1からの読み出し指示をメモリ5に与える信号線、
16はプロセッサ1からの書き込み指示をメモリ5,6
に与える信号線である。
7 is a memory access control unit in the processor 1,
In the case of reading, the signal line 15 is turned on, and in the case of writing, the signal line 16 is turned on. 8 is a memory address register (MAR), 9 is a read data register (RD
R), 10 is write data register (WDR),
11 is a signal line that supplies the contents of the memory address register 8 in the processor 1 to the memory 5; 12 is a signal line that supplies the contents of the memory address register 8 to the memories 5 and 6; and 13 is a data register that reads data read from the memory 5. Signal line given to 9, 14 is write data register 1
A signal line 15 gives the contents of 0 to the memory 5.6, a signal line 15 gives a read instruction from the processor 1 to the memory 5,
16 receives the write instruction from the processor 1 into the memories 5 and 6.
This is the signal line that feeds the

プロセッサ2,3.4の内部構成及びプロセッサ2,3
.4とメモリ5.6との接続関係は本発明を説明する上
で必要性がないため第1図では図示を省略している。
Internal configuration of processors 2 and 3.4 and processors 2 and 3
.. 4 and the memory 5.6 is not shown in FIG. 1 because it is not necessary for explaining the present invention.

以下、第1図により本発明の第1の実施例としてのメモ
リアクセス方式について説明する。
Hereinafter, a memory access method as a first embodiment of the present invention will be explained with reference to FIG.

まず、プロセッサ1からメモリ読み出しを行う場合、メ
モリアクセス制御部7が信号線15をオンとし、メモリ
5に読み出し指示Rを与えるとともに、信号線11を介
して読み出しアドレスAをメモリ5に与える。メモリ5
は読み出し動作を行い(メモリ5内での読み出し動作は
周知の技術事項であるため、その説明は省略する)、読
み出しデータDOを信号線13を介してプロセッサー内
の読み出しデータレジスタ9に与える。このように、プ
ロセッサーからのメモリ読み出しはメモリ5に対しての
み行われる。
First, when reading a memory from the processor 1, the memory access control unit 7 turns on the signal line 15, gives a read instruction R to the memory 5, and also gives a read address A to the memory 5 via the signal line 11. memory 5
performs a read operation (the read operation in the memory 5 is a well-known technical matter, so its explanation will be omitted) and provides read data DO to the read data register 9 in the processor via the signal line 13. In this way, memory reads from the processor are performed only to memory 5.

次に、プロセッサーからメモリ書き込みを行う場合、メ
モリアクセス制御部7が信号線16をオンとし、メモリ
5,6に書き込み指示Wを与えるとともに、信号線12
を介して書き込みアドレスA、信号線14介して書き込
みデータD1をメモリ5,6に与える。メモリ5,6は
書き込み動作を行う (メモリ5.6内での書き込み動
作は周知の技術事項であるため、その説明は省略する)
Next, when writing to the memory from the processor, the memory access control unit 7 turns on the signal line 16, gives a write instruction W to the memories 5 and 6, and the signal line 12
The write address A is applied to the memories 5 and 6 via the signal line 14, and the write data D1 is applied to the memories 5 and 6 via the signal line 14. Memories 5 and 6 perform write operations (write operations within memories 5 and 6 are well-known technical matters, so their explanation will be omitted).
.

このため、全てのメモリが保持している内容は常に同一
に保たれる。
Therefore, the contents held in all memories are always kept the same.

ここでは、プロセッサ1からのメモリアクセスについて
説明したが、容易に類推できるように、プロセッサ2か
らのメモリアクセスはプロセッサ1のそれと同じであり
、プロセッサ3,4からのメモリアクセスは、読み出し
がそれぞれメモリ6に対して行われることを除いて、プ
ロセッサ1からのメモリアクセスと同じである。
Here, memory access from processor 1 has been explained, but as can be easily inferred, memory access from processor 2 is the same as that from processor 1, and memory access from processors 3 and 4 is such that reading is performed on each memory. This is the same as the memory access from processor 1, except that it is done for processor 6.

第2図は本発明の第2の実施例を示すブロック図である
。同図において、lから15までは第1図のそれと全く
同じである。
FIG. 2 is a block diagram showing a second embodiment of the invention. In the same figure, parts 1 to 15 are exactly the same as those in FIG.

100はメモリアクセス制御レジスタ(MACR)であ
り、全てのプロセッサに対し同じ値が設定されている。
100 is a memory access control register (MACR), and the same value is set for all processors.

メモリの0番地からj番地(0〈j< (A−1))は
、各群のプロセッサの固有エリア、メモリの(j+1)
番地から(A−1)番地は全てのプロセッサの共有エリ
アとした場合、メモリアクセス制御レジスタ100には
値jを設定する(メモリアクセス制御レジスタ100へ
の値の設定は周知の技術事項であるため、その説明は省
略する)。101は比較回路であり、信号線105を介
して供給されるメモリアクセス制御レジスタ100の値
と信号線106を介して供給されるメモリアドレスレジ
スタ8の値との大小比較を行い、メモリアドレスレジス
タ8の値がメモリアクセス制御レジスタ100の値より
小さいか等しい場合、信号線107をオンとする。
Addresses 0 to j (0<j< (A-1)) of the memory are the specific area of each group of processors, and the (j+1) of the memory
If the address (A-1) from the address is a shared area for all processors, set the value j in the memory access control register 100 (because setting the value in the memory access control register 100 is a well-known technical matter) , the explanation is omitted). A comparison circuit 101 compares the value of the memory access control register 100 supplied via the signal line 105 with the value of the memory address register 8 supplied via the signal line 106. If the value of is smaller than or equal to the value of the memory access control register 100, the signal line 107 is turned on.

102は否定回路、103,104はアンド回路である
。16はプロセッサ1からの書き込み指示をアンド回路
103,104に与える信号線、105はメモリアクセ
ス制御レジスタ100の内容を比較回路101に与える
信号線、106はメモリアドレスレジスタ8の内容を比
較回路101に与える信号線、107は比較回路101
の出力を否定回路102.アンド回路103に与える信
号線、108は否定回路102の出力をアンド回路10
4に与える信号線、109はアンド回路103の出力を
メモリ5に与える信号線、110はアンド回路104の
出力をメモリ5,6に与える信号線である。
102 is a NOT circuit, and 103 and 104 are AND circuits. 16 is a signal line that sends a write instruction from the processor 1 to the AND circuits 103 and 104; 105 is a signal line that sends the contents of the memory access control register 100 to the comparison circuit 101; and 106 is a signal line that sends the contents of the memory address register 8 to the comparison circuit 101. The signal line 107 is the comparison circuit 101.
The output of the inverting circuit 102. A signal line 108 supplies the output of the NOT circuit 102 to the AND circuit 103.
109 is a signal line that provides the output of the AND circuit 103 to the memory 5, and 110 is a signal line that provides the output of the AND circuit 104 to the memories 5 and 6.

以下、第2図により本発明の第2の実施例としてのメモ
リアクセス方式について説明する。ただし、プロセッサ
1からのメモリ読み出しは第1図において説明したとこ
ろと同一であるため省略し、プロセッサ1からのメモリ
書き込みについて説明する。
Hereinafter, a memory access method as a second embodiment of the present invention will be explained with reference to FIG. However, since reading from the memory from the processor 1 is the same as that explained in FIG. 1, the explanation will be omitted, and the writing from the processor 1 to the memory will be explained.

まず、プロセッサ1からメモリ書き込みするアドレスが
メモリアクセス制御レジスタ100に設定されたアドレ
スjより小さいか等しい場合、比較回路101の出力は
オンとなり、アンド回路103はオン状態、アンド回路
104はオフ状態となる。従って、メモリアクセス制御
部7の書き込み指示は信号線16.アンド回路103.
信号線109を介してメモリ5のみに与えられ、書き込
みはメモリ5のみに対して行われる。
First, if the address to be written into the memory by the processor 1 is smaller than or equal to the address j set in the memory access control register 100, the output of the comparison circuit 101 is turned on, the AND circuit 103 is turned on, and the AND circuit 104 is turned off. Become. Therefore, the write instruction from the memory access control unit 7 is sent to the signal line 16. AND circuit 103.
It is applied only to the memory 5 via the signal line 109, and writing is performed only to the memory 5.

次に、プロセッサ1からメモリ書き込みするアドレスが
メモリアクセス制御レジスタ100に設定されたアドレ
スjより大きい場合、比較回路101の出力はオフとな
り、アンド回路103はオフ状態、アンド回路104は
オン状態となる。
Next, if the address to be written into the memory by the processor 1 is larger than the address j set in the memory access control register 100, the output of the comparison circuit 101 is turned off, the AND circuit 103 is turned off, and the AND circuit 104 is turned on. .

従って、メモリアクセス制御部7の書き込み指示は信号
線16.アンド回路104.信号線110を介してメモ
リ5.メモリ6に与えられ、書き込みはメモリ5.メモ
リ6に対して行われる。このため、メモリのアドレスが
j番地より大きいエリアすなわち全てのプロセッサの共
有エリアでは全てのメモリの内容は同一に保たれる。
Therefore, the write instruction from the memory access control unit 7 is sent to the signal line 16. AND circuit 104. Memory 5. via signal line 110. memory 6, and writing is performed in memory 5. This is done for memory 6. Therefore, the contents of all memories are kept the same in areas where the memory address is greater than address j, that is, areas shared by all processors.

第3図は本発明の第3の実施例を示すブロック図である
。同図において、I、2,3.4はプロセッサであり、
プロセッサ1,2は第1群、プロセッサ3.4は第2群
に属する。5,6はメモリ、70は書き込みタグメモリ
であり、メモリの各アドレス毎に書き込みが行われたか
否かの情報(例えばメモリのa番地が書き換えられた場
合、タグメモリの同一番地のタグがオン、書き換えられ
ていない場合、同タグがオフ)及び書き換えを行ったプ
ロセッサの群番号(第3図の場合、1又は2)を保持す
る。
FIG. 3 is a block diagram showing a third embodiment of the present invention. In the same figure, I,2,3.4 is a processor,
Processors 1 and 2 belong to the first group, and processors 3 and 4 belong to the second group. 5 and 6 are memories, 70 is a write tag memory, and information on whether or not writing has been performed for each address of the memory (for example, if address a of the memory is rewritten, the tag at the same address in the tag memory is turned on) , if the tag has not been rewritten, the same tag is off) and the group number of the processor that has performed the rewriting (1 or 2 in the case of FIG. 3).

80.90はメモリスイッチであり、プロセッサからア
クセスするメモリを選択するスイッチである。10はプ
ロセッサ1とメモリスイッチ8を接続する信号線、11
はプロセッサ2とメモリスイッチ8を接続する信号線、
12はプロセッサ3とメモリスイッチ9を接続する信号
線、13はプロセッサ4とメモリスイッチ9を接続する
信号線、14は書き込みタグメモリ70とメモリスイッ
チ80を接続する信号線、15は書き込みタグメモU 
70とメモリスイッチ90を接続する信号線、16はメ
モリ5とメモリスイッチ80を接続する信号線、17は
メモリ6とメモリスイッチ90を接続する信号線、18
はメモリスイッチ80とメモリスイッチ90を接続する
信号線である。
80.90 is a memory switch, which is a switch for selecting memory to be accessed from the processor. 10 is a signal line connecting the processor 1 and the memory switch 8; 11
is a signal line connecting the processor 2 and the memory switch 8,
12 is a signal line connecting the processor 3 and memory switch 9; 13 is a signal line connecting processor 4 and memory switch 9; 14 is a signal line connecting write tag memory 70 and memory switch 80; 15 is a write tag memo U
16 is a signal line that connects the memory 5 and the memory switch 80; 17 is a signal line that connects the memory 6 and the memory switch 90; 18 is a signal line that connects the memory 6 and the memory switch 90;
is a signal line connecting memory switch 80 and memory switch 90.

以下、第3図により本発明の第3の実施例としてのメモ
リアクセス方式について説明する。
Hereinafter, a memory access method as a third embodiment of the present invention will be explained with reference to FIG.

まず、プロセッサ1からメモリ読み出しを行う場合、プ
ロセッサ1は信号線10を介してメモリアドレス(例え
ばa番地)をメモリスイッチ80に送る。メモリスイッ
チ80は信号線14を介して書き込みタグメモリ70の
a番地の内容(タグ及びプロセッサの群番号)を読み出
し、タグがオフであれば、つまりメモリの書き換えは行
われておらず、どのメモリも同じ内容の筈であるから、
信号線16を介して自分の群(第1群)に対応したメモ
リ5からa番地の内容を読み出し、信号線10を介して
プロセッサ1に送る。
First, when reading memory from the processor 1, the processor 1 sends a memory address (for example, address a) to the memory switch 80 via the signal line 10. The memory switch 80 reads the contents of address a (tag and processor group number) of the write tag memory 70 via the signal line 14, and if the tag is off, that is, the memory has not been rewritten, and which memory should have the same content, so
The contents of address a are read from the memory 5 corresponding to its own group (first group) via the signal line 16 and sent to the processor 1 via the signal line 10.

メモリスイッチ80が信号線14を介して書き込みタグ
メモリ70のa番地から読み出した内容が、タグがオン
でかつプロセッサの群番号が1の場合は、群番号1に対
応したメモリ5のa番地の内容が書き換えられたことを
示しているので、スイッチ80はやはり信号線16を介
してメモリ5からa番地の内容(書き換えられた最新の
内容)を読み出し、読み出した内容を信号線10を介し
てプロセッサ1に送る。
If the tag is on and the processor group number is 1, the content read by the memory switch 80 from address a of the write tag memory 70 via the signal line 14 is read from address a of the memory 5 corresponding to group number 1. Since this indicates that the content has been rewritten, the switch 80 also reads the content of address a (the latest content that has been rewritten) from the memory 5 via the signal line 16, and transfers the read content via the signal line 10. Send to processor 1.

一方、タグがオンでかつプロセッサの群番号が2の場合
、群番号2に対応したメモリ6の内容が書き換えられた
ことを表わしているので、信号線18を介してメモリス
イッチ90に読み出しアドレスaを送る。メモリスイッ
チ90は信号線17を介してメモリ6からa番地の内容
(書き換えられた最新の内容)を読み出し、読み出した
内容を信号線18を介してメモリスイッチ80に送る。
On the other hand, if the tag is on and the group number of the processor is 2, this means that the contents of the memory 6 corresponding to group number 2 have been rewritten, so the read address a is sent to the memory switch 90 via the signal line 18. send. The memory switch 90 reads the content of address a (the latest rewritten content) from the memory 6 via the signal line 17 and sends the read content to the memory switch 80 via the signal line 18.

メモリスイッチ80は送られたa番地の内容を信号線1
0介してプロセッサ1に送る。
The memory switch 80 transfers the contents of the sent address a to the signal line 1.
0 to processor 1.

次に、プロセッサ1からメモリ書き込みを行う場合、プ
ロセッサ1は信号線10を介して、メモリアドレス(a
番地)及び書き込みデータをメモリスイッチ80に送る
。メモリスイッチ80は信号線16を介してメモリ5の
a番地に書き込みデータを書き込む。さらに、信号線1
4を介して書き込みタグメモリ70のa番地のタグをオ
ンにすると共に、そこに書き込まれているプロセッサ群
番号を1とする。
Next, when writing to the memory from the processor 1, the processor 1 sends the memory address (a) via the signal line 10.
address) and write data to the memory switch 80. The memory switch 80 writes write data to address a of the memory 5 via the signal line 16. Furthermore, signal line 1
4, the tag at address a of the write tag memory 70 is turned on, and the processor group number written there is set to 1.

以上、プロセッサ1からのメモリ読み出し及び書き込み
について説明した。プロセッサ2,3゜4からのメモリ
読み出し及び書き込みは同様にして容易に理解できるで
あろうから説明は繰り返さない。
The memory reading and writing from the processor 1 has been described above. Memory reading and writing from the processors 2, 3 and 4 will be similarly easily understood and will not be repeated.

第3図では、書き込みタグメモリは1台としているが、
書き込みタグメモリへのアクセス競合を少なくするため
、書き込みタグメモリを複数台設置5 けることも可能である。
In Figure 3, there is only one write tag memory, but
In order to reduce contention for access to the write tag memory, it is also possible to install multiple write tag memories.

第4図は本発明の第4および第5の実施例を示すブロッ
ク図である。同図において、1,2,3゜4はプロセッ
サであり、プロセッサ1,2は第1群、プロセッサ3.
4は第2群に属する。
FIG. 4 is a block diagram showing fourth and fifth embodiments of the present invention. In the figure, 1, 2, 3.4 are processors, processors 1 and 2 are in the first group, processors 3.
4 belongs to the second group.

5A、6Aは読み出しメモリ、5B、6Bは書き込みメ
モリ、70は書き込みタグメモリであり、メモリの各ア
ドレス毎に書き込みが行われたか否かの情報(a番地が
書き換えられた場合、タグがオン、書き換えられていな
い場合、タグがオフ)及び書き換えを行ったプロセッサ
の群番号(第4図の場合、1又は2)を保持する。80
.90はメモリスイッチであり、プロセッサからアクセ
スするメモリを選択するスイッチである。12はプロセ
ッサ1とメモリスイッチ80を接続する信号線、13は
プロセッサ2とメモリスイッチ80を接続する信号線、
14はプロセッサ3とメモリスイッチ90を接続する信
号線、15はプロセッサ4とメモリスイッチ90を接続
する信号線、16は書き込みタグメモリ70とメモリス
イッチ80を接続する信号線、17は書き込みタグメモ
リ70とメモリスイッチ90を接続する信号線、18は
読み出しメモリ5Aとメモリスイッチ80を接続する信
号線、19は読み出しメモリ6Aとメモリスイッチ90
を接続する信号線、20は書き込みメモリ5Bとメモリ
スイッチ80を接続する信号線、21は書き込みメモリ
6Bとメモリスイッチ90を接続する信号線、22はメ
モリスイッチ80とメモリスイッチ90を接続する信号
線である。
5A and 6A are read memories, 5B and 6B are write memories, and 70 is a write tag memory. Information on whether or not writing has been performed for each address of the memory (if address a is rewritten, the tag is on, If the data has not been rewritten, the tag is turned off) and the group number of the processor that performed the rewriting (1 or 2 in the case of FIG. 4) is retained. 80
.. Reference numeral 90 denotes a memory switch, which is a switch for selecting a memory to be accessed by the processor. 12 is a signal line connecting the processor 1 and the memory switch 80; 13 is a signal line connecting the processor 2 and the memory switch 80;
14 is a signal line connecting the processor 3 and memory switch 90; 15 is a signal line connecting processor 4 and memory switch 90; 16 is a signal line connecting write tag memory 70 and memory switch 80; 17 is write tag memory 70. 18 is a signal line that connects the readout memory 5A and the memory switch 80, 19 is a signal line that connects the readout memory 6A and the memory switch 90.
20 is a signal line that connects the write memory 5B and the memory switch 80, 21 is a signal line that connects the write memory 6B and the memory switch 90, and 22 is a signal line that connects the memory switch 80 and the memory switch 90. It is.

以下、第4図により本発明の第4の実施例であるメモリ
アクセス方式について説明する。
A memory access method according to a fourth embodiment of the present invention will be described below with reference to FIG.

まず、プロセッサ1からメモリ読み出しを行う場合、プ
ロセッサ1は信号線12を介してメモリアドレス(a番
地)をメモリスイッチ80に送る。
First, when reading memory from the processor 1, the processor 1 sends a memory address (address a) to the memory switch 80 via the signal line 12.

メモリスイッチ80は信号線16を介して書き込みタグ
メモリ70のa番地の内容(タグ及びプロセッサの群番
号)を読み出し、タグがオフの場合、信号線18を介し
て読み出しメモリ5Aからa番地の内容を読み出し、読
み出した内容を信号線12を介してプロセッサ1に送る
。一方、タグがオンの場合、すべての書き込みメモリに
おいて書き換えが行われていることを示しているので信
号線20を介して書き込みメモリ5Bからa番地の内容
(書き換えられた最新の内容)を読み出し、読み出した
内容を信号線12を介してプロセッサ1に送る。
The memory switch 80 reads the contents of address a (tag and processor group number) of the write tag memory 70 via the signal line 16, and when the tag is off, reads the contents of address a from the read memory 5A via the signal line 18. and sends the read contents to the processor 1 via the signal line 12. On the other hand, if the tag is on, this indicates that all write memories are being rewritten, so the contents of address a (the latest rewritten contents) are read from the write memory 5B via the signal line 20. The read contents are sent to the processor 1 via the signal line 12.

次に、プロセッサ1からメモリ書き込みを行う場合、プ
ロセッサ1は信号線12を介して、メモリアドレス(a
番地)及び書き込みデータをメモリスイッチ80に送る
。メモリスイッチ80は信号線20を介して書き込みメ
モリ5Bのa番地に書き込みデータを書き込む。さらに
、信号線16を介して書き込みタグメモリ70のa番地
のタグをオンとする。また、信号線22を介して書き込
みアドレスa及び書き込みデータをメモリスイッチ90
に送る。メモリスイッチ90は信号線21を介して書き
込みメモリ6Bのa番地に書き込みデータを書き込む。
Next, when writing to the memory from the processor 1, the processor 1 sends the memory address (a) via the signal line 12.
address) and write data to the memory switch 80. The memory switch 80 writes write data to address a of the write memory 5B via the signal line 20. Furthermore, the tag at address a in the write tag memory 70 is turned on via the signal line 16. Also, the write address a and write data are sent to the memory switch 90 via the signal line 22.
send to The memory switch 90 writes write data to address a of the write memory 6B via the signal line 21.

以上、プロセッサ1からのメモリ読み出し及び書き込み
について説明した。プロセッサ2.3゜4からのメモリ
読み出し及び書き込みも同様である。
The memory reading and writing from the processor 1 has been described above. The same goes for memory reads and writes from processor 2.3.4.

以下、第4図により本発明の第5の実施例としてのメモ
リアクセス方式について説明する。
Hereinafter, a memory access method as a fifth embodiment of the present invention will be explained with reference to FIG.

まず、プロセッサ1からメモリ読み出しを行う場合、プ
ロセッサ1は信号線12を介してメモリアドレス(a番
地)をメモリスイッチ80に送る。
First, when reading memory from the processor 1, the processor 1 sends a memory address (address a) to the memory switch 80 via the signal line 12.

メモリスイッチ80は信号線16を介して書き込みタグ
メモリ70のa番地の内容(タグ及びプロセッサの群番
号)を読み出し、タグがオフの場合、信号線18を介し
て読み出しメモリ5Aからa番地の内容を読み出し、読
み出した内容を信号線12を介してプロセッサ1に送る
The memory switch 80 reads the contents of address a (tag and processor group number) of the write tag memory 70 via the signal line 16, and when the tag is off, reads the contents of address a from the read memory 5A via the signal line 18. and sends the read contents to the processor 1 via the signal line 12.

タグがオンでかつプロセッサの群番号が1の場合、群番
号1に対応した書き込みメモリ5Bの内容が書き換えら
れたことを表わしているので信号線20を介して書き込
みメモリ5Bからa番地の内容(書き換えられた最新の
内容)を読み出し、読み出した内容を信号線12を介し
てプロセッサ1に送る。タグがオンでかつプロセッサの
群番号が2の場合、群番号2に対応した書き込みメモリ
6Bの内容が書き換えられたことを表わしているので、
信号線22を介してメモリスイッチ90に読み出しアド
レスaを送る。メモリスイッチ90は信号線21を介し
て書き込みメモリ6Bからa番地の内容(書き換えられ
た最新の内容)を読み出し、読み出した内容を信号線2
2を介してメモリスイッチ80に送る。メモリスイッチ
80は送られたa番地の内容を信号線12を介してプロ
セッサ1におくる。
If the tag is on and the group number of the processor is 1, this means that the contents of the write memory 5B corresponding to group number 1 have been rewritten, so the contents of address a are transferred from the write memory 5B via the signal line 20 ( The latest rewritten content) is read out, and the read content is sent to the processor 1 via the signal line 12. If the tag is on and the processor group number is 2, this indicates that the contents of the write memory 6B corresponding to group number 2 have been rewritten.
A read address a is sent to the memory switch 90 via the signal line 22. The memory switch 90 reads the content of address a (the latest rewritten content) from the write memory 6B via the signal line 21, and transfers the read content to the signal line 2.
2 to the memory switch 80. The memory switch 80 sends the contents of address a to the processor 1 via the signal line 12.

次に、プロセッサ1からメモリ書き込みを行う場合、プ
ロセッサ1は信号線12を介して、メモリアドレス(a
番地)及び書き込みデータをメモリスイッチ80に送る
。メモリスイッチ80は信号線20を介して書き込みメ
モリ5Bのa番地に書き込みデータを書き込む。さらに
、信号線16を介して書き込みタグメモリ70のa番地
のタグをオン、プロセッサの群番号を1とする。
Next, when writing to the memory from the processor 1, the processor 1 sends the memory address (a) via the signal line 12.
address) and write data to the memory switch 80. The memory switch 80 writes write data to address a of the write memory 5B via the signal line 20. Further, the tag at address a of the write tag memory 70 is turned on via the signal line 16, and the group number of the processor is set to 1.

以上、プロセッサ1からのメモリ読み出し及び書き込み
について説明した。プロセッサ2,3゜4からのメモリ
読み出し及び書き込みも同様である。
The memory reading and writing from the processor 1 has been described above. The same goes for memory reading and writing from the processors 2, 3 and 4.

第4図では、書き込みタグメモリは1台としているが、
書き込みタグメモリへのアクセス競合を少なくするため
、書き込みタグメモリを複数台設けることも可能である
In Figure 4, there is one write tag memory, but
In order to reduce contention for access to the write tag memory, it is also possible to provide a plurality of write tag memories.

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

以上説明したように、プロセッサ1台当りのメモリ読み
出し回数をR(回/秒)、プロセッサ1台当りのメモリ
書き込み回数をW(回/秒)、書き込みタグメモリのタ
グがオフである確率をαとした場合、メモリ台数が1台
の場合のメモリアクセス回数は(NR+NW)(回/秒
)である。
As explained above, the number of memory reads per processor is R (times/second), the number of memory writes per processor is W (times/second), and the probability that the tag in the write tag memory is off is α In this case, the number of memory accesses when the number of memories is one is (NR+NW) (times/second).

一方、本発明の第1の実施例、第2の実施例では、メモ
リ1台へのメモリアクセス回数は(nR+NW)(回/
秒)、本発明の第3の実施例ではメモリ1台へのメモリ
アクセス回数は(nR+nW)(回/秒)、本発明の第
4の実施例では読み出しメモリ1台へのメモリアクセス
回数は〔nαR)(回/秒)、書き込みメモリへのメモ
リアクセス回数は〔n(1−α)R+NW)(回/秒)
、本発明の第5の実施例では読み出しメモリ1台へのメ
モリアクセス回数は〔nαR)(回/秒)、書き込みメ
モリへのメモリアクセス回数は(n (1−α)R+n
W)(回/秒)となり、メモリ1台の場合に比ベメモリ
アクセス回数が分散され、メモリアクセス競合が減少し
、システム性能が向上するという利点がある。
On the other hand, in the first and second embodiments of the present invention, the number of memory accesses to one memory is (nR+NW)(times/
In the third embodiment of the present invention, the number of memory accesses to one memory is (nR+nW) (times/second), and in the fourth embodiment of the present invention, the number of memory accesses to one read memory is [ nαR) (times/sec), and the number of memory accesses to the write memory is [n(1-α)R+NW) (times/sec)
, in the fifth embodiment of the present invention, the number of memory accesses to one read memory is [nαR) (times/sec), and the number of memory accesses to the write memory is (n (1-α)R+n
W) (times/second), which has the advantage that the number of memory accesses is distributed compared to the case of one memory, memory access contention is reduced, and system performance is improved.

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

第1図乃至第4図はそれぞれは本発明の一実施例を示す
ブロック図である。 符号の説明 1.2,3.4・・・プロセッサ、5,6・・・メモリ
、7・・・メモリアクセス制御部、8・・・メモリアド
レスレジスタ、9・・・読み出しデータレジスタ、10
・・・書き込みデータレジスタ、100・・・メモリア
クセス制御レジスタ、101・・・比較回路、102・
・・否定回路、103.104・・・アンド回路、70
・・・書き込みタグメモリ、80.90・・・メモリス
イッチ、5A、6A・・・読み出しメモリ、5B、6B
・・・書き込みメモリ。 代理人 弁理士 並 木 昭 夫 代理人 弁理士 松 崎   清 143 図 第4図 6A   6t:1
1 to 4 are block diagrams each showing an embodiment of the present invention. Description of symbols 1.2, 3.4... Processor, 5, 6... Memory, 7... Memory access control unit, 8... Memory address register, 9... Read data register, 10
...Write data register, 100...Memory access control register, 101...Comparison circuit, 102.
...Negation circuit, 103.104...AND circuit, 70
...Writing tag memory, 80.90...Memory switch, 5A, 6A...Reading memory, 5B, 6B
...Writing memory. Agent Patent Attorney Akio Namiki Agent Patent Attorney Kiyoshi Matsuzaki 143 Figure 4 Figure 6A 6t:1

Claims (1)

【特許請求の範囲】 1)N台のプロセッサとK台のメモリから成るマルチプ
ロセッサシステムにおいて、 前記N台のプロセッサを、各群にn台のプロセッサを有
するK群にグループ分けすると共に、前記K台のメモリ
は前記K群の各々に1台ずつ対応付けておき、かつ前記
K台のメモリは、何れも同じ記憶容量を持つと共に、同
じアドレス割り付けを施されており、前記K群内の任意
の1群における任意のプロセッサが或る任意の番地にア
クセスする場合、そのアクセスが読み出し用であれば、
そのプロセッサの属する群に対応したメモリの当該番地
にアクセスを行い、そのアクセスが書き込み用であれば
、K台の全メモリの当該番地にアクセスを行うようにし
たことを特徴とするメモリアクセス方式(但し、N、K
、nは何れも整数であり、N=n×Kの関係にある)。 2)特許請求の範囲第1項記載のメモリアクセス方式に
おいて、前記プロセッサは各々メモリアクセス制御レジ
スタを具備し、K群内の任意の1群における任意のプロ
セッサが或る任意の番地Aにアクセスする場合、そのア
クセスが読み出し用であれば、そのプロセッサの属する
群に対応したメモリの当該番地Aにアクセスを行い、そ
のアクセスが書き込み用である場合は、当該番地Aを前
記メモリアクセス制御レジスタに保持されている或る値
Bと比較し、AがBより小さい場合(又は、大きい場合
)そのプロセッサの属する群に対応したメモリの当該番
地Aにアクセスを行い、AがBより大きい場合(又は、
小さい場合)にはK台の全メモリの当該番地Aにアクセ
スを行うようにしたことを特徴とするメモリアクセス方
式。 3)N台のプロセッサとK台のメモリから成るマルチプ
ロセッサシステムにおいて、 K台の前記メモリに共通の書き込みタグメモリを持ち、
前記N台のプロセッサを、各群にn台のプロセッサを有
するK群にグループ分けすると共に、前記K台のメモリ
を前記K群の各々に1台ずつ対応付けておき、かつ前記
K台のメモリおよび前記タグメモリは同じアドレス割り
付けを施されており、 前記K群内の任意の1群における任意のプロセッサが或
る任意の番地にアクセスする場合、そのアクセスが書き
込み用であれば、そのプロセッサの属する群に対応した
メモリの当該番地にアクセスを行うと共に、その旨(ア
クセス有り)とアクセスを行ったプロセッサの属する群
の番号とを前記タグメモリの当該番地に書き込み、 そのアクセスが読み出し用であれば、プロセッサは前記
タグメモリの当該番地をまず参照してそこに書き込まれ
ているアクセスの有無を知り、無のときは、そのプロセ
ッサの属する群に対応したメモリの当該番地にアクセス
を行い、有りのときは、その有りに対応するアクセスを
行ったプロセッサの属する群の番号をも同じくタグメモ
リの当該番地から知り、その番号の群に対応したメモリ
の当該番地にアクセスを行うようにしたことを特徴とす
るメモリアクセス方式(但し、N、K、nは何れも整数
であり、N=n×Kの関係にある)。 4)特許請求の範囲第3項記載のメモリアクセス方式に
おいて、前記K台のメモリの各々は書き込みメモリと読
み出しメモリから構成されており、書き込み用のアクセ
スは書き込みメモリに対し、読み出し用のアクセスは読
み出しメモリに対して行われるようにしたことを特徴と
するメモリアクセス方式。 5)N台のプロセッサと各々が読み出しメモリと書き込
みメモリから構成されるK台のメモリとから成るマルチ
プロセッサシステムにおいて、K台の前記メモリに共通
の書き込みタグメモリを持ち、前記N台のプロセッサを
、各群にn台のプロセッサを有するK群にグループ分け
すると共に、前記K台のメモリを前記K群の各々に1台
ずつ対応付けておき、かつ前記K台のメモリにおける各
読み出しメモリおよび各書き込みメモリと前記タグメモ
リは同じアドレス割り付けを施されており、 前記K群内の任意の1群における任意のプロセッサが或
る任意の番地にアクセスする場合、そのアクセスが書き
込み用であれば、前記K台のすべての書き込みメモリに
アクセスして書き込みを行うと共に、前記タグメモリの
当該番地にその旨(アクセス有り)を書き込み、 そのアクセスが読み出し用であれば、プロセッサはまず
前記タグメモリの当該番地を参照してそこに書き込まれ
ているアクセスの有無を知り、無のときは、そのプロセ
ッサの属する群に対応した読み出しメモリに対してアク
セスを行い、有りのときは、そのプロセッサの属する群
に対応した書き込みメモリに対しアクセスして読み出し
を行うようにしたことを特徴とするメモリアクセス方式
(但し、N、K、nは何れも整数であり、N=n×Kの
関係にある)。
[Scope of Claims] 1) In a multiprocessor system consisting of N processors and K memories, the N processors are grouped into K groups each having n processors, and the K One memory is associated with each of the K groups, and each of the K memories has the same storage capacity and is assigned the same address. When any processor in a group accesses an arbitrary address, if the access is for reading, then
A memory access method characterized in that the relevant address of the memory corresponding to the group to which the processor belongs is accessed, and if the access is for writing, the relevant address of all K memories is accessed ( However, N, K
, n are all integers, and there is a relationship of N=n×K). 2) In the memory access method according to claim 1, each of the processors is provided with a memory access control register, and any processor in any one of the K groups accesses a certain arbitrary address A. In this case, if the access is for reading, the relevant address A of the memory corresponding to the group to which the processor belongs is accessed, and if the access is for writing, the relevant address A is held in the memory access control register. is compared with a certain value B, and if A is smaller than B (or larger), the address A of the memory corresponding to the group to which the processor belongs is accessed, and if A is larger than B (or
A memory access method characterized in that when the memory is small), the corresponding address A of all K memories is accessed. 3) In a multiprocessor system consisting of N processors and K memories, the K memories have a common write tag memory,
The N processors are grouped into K groups each having n processors, one memory is associated with each of the K groups, and the K memories are divided into K groups each having n processors. and the tag memory are assigned the same address, and when any processor in any one of the K groups accesses a certain arbitrary address, if the access is for writing, that processor's Accesses the address in the memory corresponding to the group to which it belongs, and writes that fact (accessed) and the number of the group to which the accessed processor belongs to the address in the tag memory, even if the access is for reading. For example, the processor first refers to the address in the tag memory to find out whether there is an access written there, and if there is no access, it accesses the address in the memory corresponding to the group to which the processor belongs, and determines whether there is an access written there. In this case, the number of the group to which the processor that made the access corresponding to the presence belongs is also known from the corresponding address in the tag memory, and the access is made to the corresponding address in the memory corresponding to the group with that number. Characteristic memory access method (N, K, and n are all integers, and there is a relationship of N=n×K). 4) In the memory access method according to claim 3, each of the K memories is composed of a write memory and a read memory, and write access is to the write memory, and read access is to the write memory. A memory access method characterized in that reading is performed on memory. 5) In a multiprocessor system consisting of N processors and K memories each consisting of a read memory and a write memory, the K memories have a common write tag memory, and the N processors , each group is divided into K groups each having n processors, and the K memories are associated with each of the K groups, and each readout memory and each The write memory and the tag memory are assigned the same address, and when any processor in any one of the K groups accesses a certain arbitrary address, if the access is for writing, the above All K write memories are accessed and written, and a message to that effect (accessed) is written to the corresponding address in the tag memory. If the access is for reading, the processor first writes data to the corresponding address in the tag memory. Check to see if there is an access written there, and if there is no access, access the read memory corresponding to the group to which the processor belongs, and if there is, access to the read memory corresponding to the group to which the processor belongs. 1. A memory access method characterized in that a written memory is accessed and read from the written memory (N, K, and n are all integers, and there is a relationship of N=n×K).
JP61267774A 1986-11-12 1986-11-12 Memory access system Pending JPS63123152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61267774A JPS63123152A (en) 1986-11-12 1986-11-12 Memory access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61267774A JPS63123152A (en) 1986-11-12 1986-11-12 Memory access system

Publications (1)

Publication Number Publication Date
JPS63123152A true JPS63123152A (en) 1988-05-26

Family

ID=17449395

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61267774A Pending JPS63123152A (en) 1986-11-12 1986-11-12 Memory access system

Country Status (1)

Country Link
JP (1) JPS63123152A (en)

Similar Documents

Publication Publication Date Title
US20010010057A1 (en) Semiconductor integrated circuit, computer system, data processor and data processing method
JPS6353579B2 (en)
KR20110013868A (en) Multi processor system having multi command set operation and priority operation function
JPH09167495A (en) Data storage unit and data storage device using the same
US5895496A (en) System for an method of efficiently controlling memory accesses in a multiprocessor computer system
JP3525070B2 (en) Access control device and access method
US4594690A (en) Digital storage apparatus including sections exhibiting different access speeds
US4924379A (en) Multiprocessor system with several processors equipped with cache memories and with a common memory
JPS63123152A (en) Memory access system
JPS58201166A (en) Multiprocessor system
USRE38514E1 (en) System for and method of efficiently controlling memory accesses in a multiprocessor computer system
EP0787326B1 (en) System and method for processing of memory data and communication system comprising such system
JPS63142455A (en) Semiconductor storage device
GB2035632A (en) Multiprocessor system
JP2988426B2 (en) Storage device
KR200210744Y1 (en) Apparatus for data communication between processors
JPS5841584B2 (en) Multi-access memory method and memory chip for multi-access
JPS62151955A (en) Memory addressing system
JPS61249153A (en) Data processor
JPH0561769A (en) Memory access method
JPS62226366A (en) Shared memory system
JPH07325757A (en) Storage management device
JPS61237158A (en) Shared memory device
JPS60196858A (en) Input processor of data with label
JPS5816326A (en) Data channel controlling system