JPH08106417A - Memory access method and memory sharing system - Google Patents

Memory access method and memory sharing system

Info

Publication number
JPH08106417A
JPH08106417A JP6240356A JP24035694A JPH08106417A JP H08106417 A JPH08106417 A JP H08106417A JP 6240356 A JP6240356 A JP 6240356A JP 24035694 A JP24035694 A JP 24035694A JP H08106417 A JPH08106417 A JP H08106417A
Authority
JP
Japan
Prior art keywords
memory
bus master
shared memory
contents
read
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
JP6240356A
Other languages
Japanese (ja)
Inventor
Seiki Watanabe
誠記 渡辺
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.)
GE Healthcare Japan Corp
Original Assignee
GE Yokogawa Medical System 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 GE Yokogawa Medical System Ltd filed Critical GE Yokogawa Medical System Ltd
Priority to JP6240356A priority Critical patent/JPH08106417A/en
Publication of JPH08106417A publication Critical patent/JPH08106417A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To enable access in a short time even when a cache memory is mishit. CONSTITUTION: The memory sharing system is equipped with the cache memory 2a having a bus snoop function for monitoring access from other bus masters to a common memory 5 and a copying-back function for performing the rewriting of the common memory 5 later, and has a CPU 2 which starts evaluating the contents of the cache memory 2a and contents that other bus masters try to read out when request to read the common memory 5 that are made by other bus masters are detected, and a control circuit 7 which makes the common memory 5 begin to be read out when other bus masters 3 makes the requests to read the common memory 5, and transfers the contents of the common memory 5 that begins to be read to other bus masters when the cache memory 2a is mishit or transfers the contents of the cache memory 2a itself to other bus masters when the cache memory is hit.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は複数のプロセッサと共有
メモリを有するメモリ共有システムにおけるメモリアク
セス方法の改良及びそのようなメモリアクセス方法を実
現するに適したメモリ共有システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement in a memory access method in a memory sharing system having a plurality of processors and a shared memory, and a memory sharing system suitable for realizing such a memory access method.

【0002】[0002]

【従来の技術】キャッシュメモリ(cache memory)は物
理的にはCPUに付加され、機能的には主記憶手段の延
長として働くものである。また、キャッシュメモリは機
構的には連想メモリであり、すなわち、アドレスとその
内容とが対になって格納されるものである。
2. Description of the Related Art A cache memory is physically added to a CPU and functionally functions as an extension of main storage means. Further, the cache memory is mechanically an associative memory, that is, an address and its contents are paired and stored.

【0003】キャッシュメモリを有するときの主記憶手
段への参照は次のように行われる。 最終アドレスがつくられる。 そのアドレスがキャッシュメモリに送られる。
The reference to the main storage means having the cache memory is performed as follows. The final address is created. That address is sent to the cache memory.

【0004】 主記憶手段からの読み出しの場合には
キャッシュメモリはアドレス(address )を基に記憶内
容を検索する。もし、そのアドレスが存在しない場合に
は、主記憶手段からその内容を取り出し、キャッシュメ
モリにアドレスと共に対として記憶する。主記憶手段と
キャッシュメモリとのデータ転送は8ワード(word),
16ワードなどのブロック(block )単位でなされる。
これはある1ワードが参照されるとその近辺のワードが
参照される確率が非常に高いからである。キャッシュメ
モリに空きがなければどれかのブロックを追い出す必要
があるが、基本的にはLRU(least recently used :
最後に使用した時刻の最も新しいものを残すように管理
する方式)が用いられる。
In the case of reading from the main storage means, the cache memory searches the stored contents based on the address. If the address does not exist, the contents are taken out from the main storage means and stored in the cache memory together with the address as a pair. Data transfer between main memory and cache memory is 8 words,
It is made in units of blocks such as 16 words.
This is because when a certain word is referenced, there is a very high probability that a word in the vicinity thereof will be referenced. If there is no free space in the cache memory, some block needs to be flushed, but basically LRU (least recently used:
A method of managing so that the most recent time used last) is used.

【0005】 主記憶手段への書き込みの場合には、
もしそのアドレスがキャッシュメモリに存在すればキャ
ッシュメモリと主記憶手段の両方を、キャッシュメモリ
に存在しなければ主記憶手段のみを書き換える。
In the case of writing to the main storage means,
If the address exists in the cache memory, both the cache memory and the main memory are rewritten, and if the address does not exist in the cache memory, only the main memory is rewritten.

【0006】以上の〜の全ステップがハードウェア
で自動的に行われる。そのため、機械語のプログラムと
いえどもキャッシュメモリが存在するか否かで異なる場
合はない。
All the above steps (1) to (3) are automatically performed by hardware. Therefore, even a machine language program does not differ depending on whether or not a cache memory exists.

【0007】尚、以上の説明において、はライトスル
ー(write through )と呼ばれる方式の書き込みであ
り、書き込みの際には常に主記憶手段も書き換えてい
る。このため、書き込み時間については変化が無いため
性能向上は無いが、読み出し時間については短縮されて
性能が向上する。多くのプログラムにおいては読み出し
の方が書き込みより頻度が高く、かつ、キャッシュメモ
リは主記憶手段に比べて高速であるため、読み出し時間
が短縮されることによりキャッシュメモリの効果が顕著
に現れる。
In the above description, the writing is performed by a method called "write through", and the main storage means is always rewritten at the time of writing. For this reason, there is no change in the write time, so there is no improvement in performance, but the read time is shortened and the performance is improved. In many programs, reading is more frequent than writing, and since the cache memory is faster than the main storage means, the effect of the cache memory becomes remarkable by shortening the reading time.

【0008】これに対し、ライトアフター(write afte
r )若しくはコピーバック(copy back)と呼ばれる方
式がある。この方式は、上述のの書き込みの場合に、
キャッシュメモリにデータが存在する場合にはキャッシ
ュメモリに対してのみ書き換えを行う。そして、適当な
タイミングでキャッシュメモリの内容を参照して主記憶
手段の書き換えを行う。このようにすることで、書き込
み時間も短縮され、性能向上が得られる。
On the other hand, write after (write afte)
There is a method called r) or copy back. This method, in the case of the above-mentioned writing,
When data exists in the cache memory, it is rewritten only in the cache memory. Then, the content of the cache memory is referenced at an appropriate timing to rewrite the main storage means. By doing so, the writing time can be shortened and the performance can be improved.

【0009】すなわち、コピーバック方式では、バスを
使用する頻度が少ないという長所がある。マルチプロセ
ッサシステムや複数のDMAコントローラを使用したシ
ステムのように、複数のバスマスタがバスを共有する場
合に効果的である。
That is, the copy-back method has an advantage that the bus is used less frequently. This is effective when a plurality of bus masters share the bus, such as a multiprocessor system or a system using a plurality of DMA controllers.

【0010】また、コピーバック方式は、ほかにバスマ
スタ候補がない場合にも効果を発揮する。主記憶手段へ
の書込み動作が連続すると、ライトスルー方式では主記
憶手段のアクセスがボトルネックになる。これに対し、
コピーバック方式を採用すれば、バスアクセスが必要な
のは主記憶手段を更新するときに限られる。従って、バ
スアクセスの頻度が減り、主記憶手段への書き込み動作
がパイプライン動作を妨げることは少なくなる。
The copyback method is also effective when there is no other bus master candidate. If the write operation to the main storage means continues, the access to the main storage means becomes a bottleneck in the write-through method. In contrast,
If the copy-back method is adopted, bus access is required only when updating the main storage means. Therefore, the frequency of bus access is reduced, and the write operation to the main storage means does not hinder the pipeline operation.

【0011】[0011]

【発明が解決しようとする課題】しかし、複数のCPU
を有するマルチプロセッサ方式でいずれかのCPUがキ
ャッシュメモリを有しているときには、このコピーバッ
ク方式においては制御が複雑になる。
However, a plurality of CPUs are required.
When any of the CPUs has a cache memory in the multiprocessor system having the above, the control becomes complicated in this copyback system.

【0012】すなわち、主記憶手段を構成する共有メモ
リとキャッシュメモリとの間のコヒーレンシ(coherenc
y :一貫性)を保つようにしなければならない。このよ
うなコヒーレンシを保つように監視する機能をバス・ス
ヌープ(bus snoop )機能(または、バス・スヌーピン
グ(bus snooping))と呼ぶ。
That is, coherency (coherency) between the shared memory and the cache memory forming the main memory means.
y: Consistency) must be maintained. The function of monitoring so as to maintain such coherency is called a bus snoop function (or bus snooping).

【0013】このようなバス・スヌープ機能について図
5及び図6を用いて説明する。自分がバスマスタ(bus
master)でない状態であるがキャッシュメモリを有する
CPU(単にCPUという)2は、常にバス1のアドレ
ス信号と制御信号(たとえば、書き込み/読み出し信号
など)を監視している。
The bus snoop function will be described with reference to FIGS. 5 and 6. I am the bus master (bus
A CPU (hereinafter simply referred to as a CPU) 2 having a cache memory although it is not a master) always monitors an address signal and a control signal (for example, write / read signal) of the bus 1.

【0014】CPU2は既に共有メモリ5内のデータに
対して書き換え処理を行っており、その書き換えたデー
タはキャッシュメモリ2aに有しており、共有メモリ5
には未だ書き戻し(更新)を行っていない状態である。
The CPU 2 has already rewritten the data in the shared memory 5, and the rewritten data is stored in the cache memory 2a.
Has not been written back (updated) yet.

【0015】この状態でCPU2はメモリ・インヒビッ
ト(Memory Inhibit(MI))信号をアクティブな状態
(図6ではロー・アクティブである場合について示して
いる)にし(図6(b))、他のバスマスタ3からの
共有メモリ5の読み出しを禁止している。
In this state, the CPU 2 sets the memory inhibit (MI) signal to the active state (shown in FIG. 6 for the case of low active) (FIG. 6 (b)), and another bus master. Reading of the shared memory 5 from 3 is prohibited.

【0016】バスマスタ状態の他のCPU(単に、他の
バスマスタという。キャッシュメモリを有しているか否
かは問わない。)3が共有メモリ5にアクセス(ここで
は読み出しについて考える)しようとする(図6(a)
)と、CPU2はそのアドレス信号を取り込み、CP
U内蔵のキャッシュメモリのタグ(tag :データの集合
に付けられた文字であって、この集合に関する情報を含
み、その識別ができるもの)部と比較することによって
評価する。
Another CPU in the bus master state (simply referred to as another bus master; it does not matter whether or not it has a cache memory) 3 tries to access (here, consider reading) the shared memory 5. 6 (a)
), The CPU 2 fetches the address signal, and CP
It is evaluated by comparing with the tag part of the cache memory built in U (tag: a character attached to a set of data, which includes information about this set and can be identified).

【0017】そして、評価の結果ミスヒットした場合
(上述のアドレスとタグとの比較が一致しなかった場
合)には共有メモリのMI信号を停止(ここではハイ)
して、読み出しアドレスの発生(図6(c)),メモ
リ読み出し(図6(d)),タイミング調整のための
バッファ6への転送(図6(e)),バッファ6から
バス1への転送(図6(f))を行う。そして、CP
U2がTA信号(データアクナリッジ(Data Acknowled
ge)信号)をアクティブ(図6(g))にした時点
で、他のバスマスタ3はバス1に送出されたバッファ6
の保持内容を読み込む。
Then, when the result of the evaluation is a mishit (when the comparison between the address and the tag does not match), the MI signal of the shared memory is stopped (here, high).
Then, generation of a read address (FIG. 6C), memory read (FIG. 6D), transfer to the buffer 6 for timing adjustment (FIG. 6E), transfer from the buffer 6 to the bus 1 Transfer (FIG. 6 (f)) is performed. And CP
U2 is the TA signal (Data Acknowledgment).
ge) signal) becomes active (FIG. 6 (g)), the other bus masters 3 send the buffer 6 sent to the bus 1
Read the stored contents of.

【0018】ヒットした場合(上述のアドレスとタグと
の比較が一致した場合)には、共有メモリをロック状態
でCPUのキャッシュメモリの内容をバス1に転送し、
他のバスマスタ3がこれを読み込む。
When there is a hit (when the comparison between the above address and the tag matches), the contents of the cache memory of the CPU are transferred to the bus 1 while the shared memory is locked.
The other bus master 3 reads this.

【0019】このような動作の場合、キャッシュメモリ
の評価の処理中は他の処理を実行することができない。
キャッシュメモリがヒットした場合には、キャッシュメ
モリの高速読み出しにより問題は発生しないが、ミスヒ
ットした場合には評価の後に共有メモリにアクセスを開
始(共有メモリの読み出しを開始)するために多くの時
間を要することになる。このようにキャッシュメモリが
ミスヒットした場合には、図5に示す構成のメモリ共有
システムにおいては上述の動作が発生した場合には、図
6の(a)〜(g)までの動作が順次行なわれるため、
多くの時間を必要とする。
In such an operation, other processing cannot be executed during the cache memory evaluation processing.
If the cache memory hits, no problem occurs due to high-speed reading of the cache memory, but if there is a miss hit, it takes a lot of time to start accessing the shared memory (start reading the shared memory) after the evaluation. Will be required. In this way, when the cache memory has a mihit, in the memory sharing system having the configuration shown in FIG. 5, when the above-described operation occurs, the operations of (a) to (g) of FIG. 6 are sequentially performed. Because
It takes a lot of time.

【0020】本発明は上記の点に鑑みてなされたもの
で、その目的は、コピーバック方式のキャッシュメモリ
を有するCPUと他のバスマスタと共有して使用される
メモリを備えたメモリ共有システムにおいて、他のバス
マスタからの共有メモリに対する読み出し要求があった
時にCPUのキャッシュメモリがミスヒットした場合で
あっても、他のバスマスタが短時間で読み出しを行うこ
とが可能なメモリアクセス方法及びメモリ共有システム
を実現することである。
The present invention has been made in view of the above points, and an object of the present invention is to provide a memory sharing system including a CPU having a copy-back type cache memory and a memory shared by other bus masters. Provided is a memory access method and a memory sharing system in which another bus master can read in a short time even if a cache memory of a CPU misses when a read request is made to the shared memory from another bus master. It is to be realized.

【0021】[0021]

【課題を解決するための手段】前記の課題を解決する第
1の手段は、他のバスマスタから共有メモリへのアクセ
スを監視するバススヌープ機能及び共有メモリの書き換
えを後に行うコピーバック機能を有するキャッシュメモ
リを備えたCPUと、これらCPU及び他のバスマスタ
で共有して使用される共有メモリとを備えたシステムに
おけるメモリアクセス方法において、他のバスマスタか
らの共有メモリへの読み出し要求を検出した場合に、他
のバスマスタの共有メモリからの読み出しを禁止すると
共に、キャッシュメモリの内容と他のバスマスタが読み
出しを実行しようとした内容とを評価し、他のバスマス
タが読み出しを実行しようとした内容について共有メモ
リに読み出しを開始させ、評価の結果キャッシュメモリ
がミスヒットした場合には読み出しを開始した共有メモ
リの内容を他のバスマスタに転送し、キャッシュメモリ
がヒットした場合にはキャッシュメモリの内容を他のバ
スマスタに転送することを特徴とするメモリアクセス方
法である。
A first means for solving the above problems is a cache having a bus snoop function for monitoring access to a shared memory from another bus master and a copyback function for rewriting the shared memory. In a memory access method in a system including a CPU provided with a memory and a shared memory shared by the CPU and another bus master, when a read request to the shared memory from another bus master is detected, In addition to prohibiting reading from the shared memory of other bus masters, the contents of the cache memory and the contents that other bus masters tried to read are evaluated, and the contents that other bus masters tried to read are written to the shared memory. The read was started, and the evaluation resulted in a cache memory miss-hit. The case transfers the contents of the shared memory that start reading to another bus master, if the cache memory is hit is a memory access method characterized by transferring the contents of the cache memory to another bus master.

【0022】前記の課題を解決する第2の手段は、CP
U及び他のバスマスタから共有してアクセスされる共有
メモリと、他のバスマスタから共有メモリへのアクセス
を監視するバススヌープ機能及び共有メモリの書き換え
を後に行うコピーバック機能を有するキャッシュメモリ
を備え、他のバスマスタからの共有メモリへの読み出し
要求を検出した場合に、他のバスマスタの共有メモリか
らの読み出しを禁止すると共に、キャッシュメモリの内
容と他のバスマスタが読み出しを実行しようとした内容
との評価を開始するCPUと、他のバスマスタから共有
メモリへの読み出し要求があったときに、他のバスマス
タが読み出しを実行しようとした内容について共有メモ
リに読み出しを開始させ、前記CPUから評価の結果を
受けて、キャッシュメモリがミスヒットした場合には読
み出しを開始した共有メモリの内容を他のバスマスタに
転送し、キャッシュメモリがヒットした場合にはキャッ
シュメモリの内容を他のバスマスタに転送する制御回路
と、を備えたことを特徴とするメモリ共有システムであ
る。
A second means for solving the above-mentioned problems is CP
U and a shared memory shared by other bus masters, and a cache memory having a bus snoop function for monitoring access from other bus masters to the shared memory and a copyback function for rewriting the shared memory later, When a read request from the bus master to the shared memory is detected, the read from the shared memory of other bus masters is prohibited, and the contents of the cache memory and the contents that the other bus master tried to read are evaluated. When there is a read request from the CPU to be started and another bus master to the shared memory, the shared memory starts to read the content that the other bus master was trying to read, and the evaluation result is received from the CPU. , When the cache memory is a mishit, read is started The content of organisms memory is transferred to another bus master, if the cache memory is hit is a memory sharing system characterized by and a control circuit for transferring the contents of the cache memory to another bus master.

【0023】前記の課題を解決する第3の手段は、CP
U及び他のバスマスタから共有してアクセスされる共有
メモリと、他のバスマスタから共有メモリへのアクセス
を監視するバススヌープ機能及び共有メモリの書き換え
を後に行うコピーバック機能を有するキャッシュメモリ
を備え、他のバスマスタからの共有メモリへの読み出し
要求を検出した場合に、他のバスマスタの共有メモリか
らの読み出しを禁止すると共に、キャッシュメモリの内
容と他のバスマスタが読み出しを実行しようとした内容
との評価を開始するCPUと、共有メモリから読み出さ
れた内容を一時的に保持するバッファと、他のバスマス
タから共有メモリへの読み出し要求があったときに、他
のバスマスタが読み出しを実行しようとした内容につい
て共有メモリから読み出しバッファに移し、前記CPU
から評価の結果を受けて、キャッシュメモリがミスヒッ
トした場合には前記バッファの内容を他のバスマスタに
転送し、キャッシュメモリがヒットした場合にはキャッ
シュメモリの内容を他のバスマスタに転送する制御回路
と、を備えたことを特徴とするメモリ共有システムであ
る。
A third means for solving the above problems is CP
U and a shared memory shared by other bus masters, and a cache memory having a bus snoop function for monitoring access from other bus masters to the shared memory and a copyback function for rewriting the shared memory later, When a read request from the bus master to the shared memory is detected, the read from the shared memory of other bus masters is prohibited, and the contents of the cache memory and the contents that the other bus master tried to read are evaluated. Regarding the CPU to start, the buffer that temporarily holds the contents read from the shared memory, and the contents that other bus masters tried to read when there was a read request from another bus master to the shared memory Move from shared memory to read buffer
In response to the evaluation result from, the control circuit transfers the contents of the buffer to another bus master if the cache memory has a miss hit, and transfers the contents of the cache memory to another bus master if the cache memory has a hit. And a memory sharing system characterized by including

【0024】[0024]

【作用】課題を解決する第1の手段であるメモリアクセ
ス方法において、他のバスマスタから共有メモリへの読
み出し要求があったときに、コピーバック方式のキャッ
シュを有するCPUは共有メモリへの他のバスマスタの
アクセスを禁止すると共に、共有メモリへのアドレス発
生とCPUのキャッシュメモリの評価を同時に開始す
る。そして、キャッシュメモリの評価の結果により、キ
ャッシュメモリの内容若しくは共有メモリの内容を他の
バスマスタに転送する。
In the memory access method as the first means for solving the problem, when a read request from the other bus master to the shared memory is made, the CPU having the copy-back type cache causes the other bus master to the shared memory. Access is prohibited, and generation of an address to the shared memory and evaluation of the cache memory of the CPU are simultaneously started. Then, depending on the result of the cache memory evaluation, the contents of the cache memory or the contents of the shared memory are transferred to another bus master.

【0025】課題を解決する第2の手段であるメモリ共
有システムにおいて、他のバスマスタから共有メモリへ
の読み出し要求があったときに、コピーバック方式のキ
ャッシュを有するCPUは共有メモリへの他のバスマス
タのアクセスを禁止すると共に、CPUのキャッシュメ
モリの評価を同時に開始する。また、制御回路は読み出
しのためにアドレスを発生し、キャッシュメモリの評価
中に、共有メモリの内容の読み出しを開始させる。そし
て、キャッシュメモリの評価の結果により、キャッシュ
メモリの内容若しくは読み出しを開始した共有メモリの
内容をバスを介して他のバスマスタに転送する。
In the memory sharing system which is the second means for solving the problem, when a read request from another bus master to the shared memory is made, the CPU having the copy-back type cache operates as a bus master for the shared memory. Access is prohibited, and evaluation of the cache memory of the CPU is started at the same time. The control circuit also generates an address for reading and initiates reading the contents of the shared memory during cache memory evaluation. Then, depending on the result of the cache memory evaluation, the contents of the cache memory or the contents of the shared memory that started reading are transferred to another bus master via the bus.

【0026】課題を解決する第3の手段であるメモリ共
有システムにおいて、他のバスマスタから共有メモリへ
の読み出し要求があったときに、コピーバック方式のキ
ャッシュを有するCPUは共有メモリへの他のバスマス
タのアクセスを禁止すると共に、CPUのキャッシュメ
モリの評価を同時に開始する。また、制御回路は読み出
しのためにアドレスを発生する。そして、キャッシュメ
モリの評価中に、共有メモリの内容をバッファに移す。
そして、キャッシュメモリの評価の結果により、キャッ
シュメモリの内容若しくはバッファの内容をバスを介し
て他のバスマスタに転送する。
In the memory sharing system which is the third means for solving the problem, when a read request from another bus master to the shared memory is made, the CPU having the copy-back type cache operates the other bus master to the shared memory. Access is prohibited, and evaluation of the cache memory of the CPU is started at the same time. The control circuit also generates an address for reading. Then, while the cache memory is being evaluated, the contents of the shared memory are transferred to the buffer.
Then, depending on the result of the cache memory evaluation, the contents of the cache memory or the contents of the buffer are transferred to another bus master via the bus.

【0027】[0027]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。図1は本発明の一実施例のメモリアクセス
方法のキャッシュミスヒット時の処理手順を示すタイム
チャートであり、図2は本発明の一実施例のメモリアク
セス方法のキャッシュヒット時の処理手順を示すタイム
チャートであり、図3は本発明の一実施例のメモリ共有
システムの概略構成を示す構成図である。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a time chart showing a processing procedure at the time of a cache miss hit of the memory access method of one embodiment of the present invention, and FIG. 2 shows a processing procedure at the time of a cache hit of the memory access method of one embodiment of the present invention. FIG. 3 is a time chart, and FIG. 3 is a configuration diagram showing a schematic configuration of a memory sharing system according to an embodiment of the present invention.

【0028】まず、図3を用いて本発明の一実施例のメ
モリ共有システムの構成を説明する。バス1には各種の
プロセッサやコントローラ及びメモリ等が接続されてお
り、データや各種アクセス要求信号の授受が行われる。
CPU2はコピーバック方式で制御されるキャッシュメ
モリ2aを有するプロセッサであり、バス1に接続され
ている。他のバスマスタ3はバス1に接続されたプロセ
ッサ(キャッシュメモリを有しているか否かは問わな
い)若しくは各種コントローラ(DMAコントローラ,
SCSIコントローラ,LAN用のコントローラ等)で
あり、本実施例では共有メモリに対してアクセス要求を
出すバスマスタであるものとする。共有メモリ5はバス
1に接続されたプロセッサや各種コントローラからアク
セスされるものである。バッファ6は共有メモリ5から
読み出されたデータをプロセッサが取り込む際に一時的
に保持するためのものである。制御回路7はバス1に接
続され、各種制御(キャッシュメモリ制御,メモリ制
御)を行うものである。
First, the configuration of a memory sharing system according to an embodiment of the present invention will be described with reference to FIG. Various processors, controllers, memories and the like are connected to the bus 1 to exchange data and various access request signals.
The CPU 2 is a processor having a cache memory 2a controlled by the copy back method, and is connected to the bus 1. The other bus master 3 is a processor (whether or not it has a cache memory) connected to the bus 1 or various controllers (DMA controller,
SCSI controller, LAN controller, etc.), and is a bus master that issues an access request to the shared memory in this embodiment. The shared memory 5 is accessed by the processor and various controllers connected to the bus 1. The buffer 6 is for temporarily holding the data read from the shared memory 5 when the processor fetches the data. The control circuit 7 is connected to the bus 1 and performs various controls (cache memory control, memory control).

【0029】このように構成した本実施例のメモリ共有
システムの動作及びメモリアクセス方法の手順について
図1のタイムチャート及び図3の構成図並びに図4の説
明図を参照し、キャッシュのミスヒット時の場合につい
て説明する。
With respect to the operation of the memory sharing system and the procedure of the memory access method of the present embodiment thus configured, referring to the time chart of FIG. 1, the configuration diagram of FIG. 3 and the explanatory diagram of FIG. The case will be described.

【0030】CPU2は既に共有メモリ5内のデータに
対して書き換え処理を行っており、その書き換えたデー
タはキャッシュメモリ2aに有しており、共有メモリ5
には未だ書き戻し(更新)を行っていない状態である。
The CPU 2 has already rewritten the data in the shared memory 5, and the rewritten data is stored in the cache memory 2a.
Has not been written back (updated) yet.

【0031】このCPU2はバススヌープ機能を有して
おり、常にバス1のアドレス信号と制御信号(たとえ
ば、書き込み/読み出し信号など)を監視している。こ
の状態では、メモリ・インヒビット(Memory Inhibit
(MI))信号をアクティブな状態(図1ではロー・ア
クティブである場合について示している)にし(図1
(b),図4(b))、他のバスマスタ3からの共
有メモリの読み出しを禁止している。
The CPU 2 has a bus snoop function and constantly monitors the address signal and control signal (for example, write / read signal) of the bus 1. In this state, the Memory Inhibit
(MI)) signal in an active state (shown in FIG. 1 in the case of low active) (see FIG.
(B) and FIG. 4 (b), reading of the shared memory from other bus masters 3 is prohibited.

【0032】ここで他のバスマスタ3から読み出し要求
(図1(a),図4(a))があると、キャッシュ
メモリの評価を開始する。更に、これと同時に、他のバ
スマスタ3が読み出そうとしている内容のアドレスを制
御回路7が発生して共有メモリ5に供給する(図1
(c),図4(b))。
When there is a read request (FIG. 1 (a), FIG. 4 (a)) from another bus master 3, evaluation of the cache memory is started. Further, at the same time, the control circuit 7 generates an address whose content is to be read by another bus master 3 and supplies it to the shared memory 5 (see FIG. 1).
(C), FIG. 4 (b)).

【0033】これにより、CPU2がキャッシュメモリ
評価状態にあり、他のバスマスタ3は共有メモリにアク
セスすることが禁止されている状態であっても、制御回
路7からの指示により共有メモリ5からは読み出しが行
われ始める(図1(d),図4(c))。
As a result, even if the CPU 2 is in the cache memory evaluation state and the other bus masters 3 are prohibited from accessing the shared memory, the control circuit 7 gives an instruction to read from the shared memory 5. Is started (FIG. 1 (d), FIG. 4 (c)).

【0034】すなわち、キャッシュメモリの評価にはあ
る程度の時間を要するので、このあいだに、メモリの読
み出し及びバッファへの書き込み(図1(b),図4
(c))を行う。
That is, since it takes a certain amount of time to evaluate the cache memory, during this time, the memory is read and the buffer is written (see FIGS. 1B and 4).
(C)) is performed.

【0035】キャッシュメモリの評価の結果ミスヒット
であった場合には、CPU2はMI信号をネゲート(ne
gate:停止)する(図1(b)′)。ここで制御回路
7は、データアクナリッジ(data acknowledge)信号
(TA信号と言う)が未だCPU2から出力されていな
い状態でMI信号がネゲートされたことを受けて、共有
メモリ5からの読み出しデータをバッファ6にラッチし
(図1(e),図4(c))、更にバッファ6にラ
ッチされたデータをバス1上に出す(図1(f),図
4(d))。
When the cache memory is evaluated to be a mishit, the CPU 2 negates the MI signal.
gate: stop) (Fig. 1 (b) '). Here, the control circuit 7 receives the data read from the shared memory 5 in response to the fact that the MI signal is negated while the data acknowledge signal (referred to as TA signal) is not yet output from the CPU 2. The data is latched in the buffer 6 (FIGS. 1E and 4C), and the data latched in the buffer 6 is output to the bus 1 (FIGS. 1F and 4D).

【0036】そして、CPU2がTA信号をアクティブ
(図1(g))にした時点で、他のバスマスタ3はバ
ス1に送出されたバッファ6の保持内容を読み込む。以
上のような動作を行うことで、キャッシュメモリの評価
と並行して共有メモリの読み出しの準備が行われるよう
になるので、キャッシュメモリがミスヒットした場合の
動作時間が短縮される。特に、共有メモリへの読み出し
アクセスに要する時間分の時間が節約できる。尚、バッ
ファ6からバス1へのデータの送出は、共有メモリ5か
らの読み出しに比較して極めて短時間で行われる。
When the CPU 2 activates the TA signal (FIG. 1 (g)), the other bus master 3 reads the contents held in the buffer 6 sent to the bus 1. By performing the above-described operation, the preparation for reading the shared memory is performed in parallel with the evaluation of the cache memory, so that the operation time when the cache memory misses is shortened. In particular, the time corresponding to the read access to the shared memory can be saved. The data transmission from the buffer 6 to the bus 1 is performed in an extremely short time as compared with the reading from the shared memory 5.

【0037】尚、評価の時間と共有メモリからの読み出
しに要する時間が近いシステムにおいては、共有メモリ
の読み出し内容を一時的に保持するバッファを用いず
に、評価中(例えば、評価開始と同時に)に読み出しを
開始させるようにして、ミスヒット時に共有メモリから
読み出されたデータを他のバスマスタに転送し、また、
ヒット時には共有メモリからの読み出しを無効にしてキ
ャッシュの内容を他のバスマスタに転送するような構成
にすることも可能である。
In a system in which the evaluation time and the time required for reading from the shared memory are close to each other, a buffer for temporarily holding the read contents of the shared memory is not used and evaluation is being performed (for example, at the same time as the start of evaluation). To start reading, transfer the data read from the shared memory to another bus master at the time of a miss, and
It is also possible to invalidate reading from the shared memory and transfer the cache contents to another bus master upon hit.

【0038】このような動作を実験により確認したとこ
ろ、キャッシュメモリのミスヒット時には全体の動作時
間の約30〜40%に相当する時間を短縮することがで
きた。
When such an operation was confirmed by an experiment, it was possible to shorten the time corresponding to about 30 to 40% of the total operation time when the cache memory missed.

【0039】尚、キャッシュメモリがヒットした場合は
図2のタイムチャートに示しており、共有メモリからの
読み出しデータをバッファ6に移す(図2(e))ま
では同じである。評価の結果キャッシュメモリがヒット
であった場合には、CPU2はMI信号をアクティブに
したままで、TA信号をアクティブにし(図2(g)
′)、キャッシュメモリの内容をバス1上に出す。
The case where the cache memory is hit is shown in the time chart of FIG. 2, and it is the same until the read data from the shared memory is moved to the buffer 6 (FIG. 2 (e)). When the cache memory is hit as a result of the evaluation, the CPU 2 activates the TA signal while keeping the MI signal active (FIG. 2 (g)).
′), Put contents of cache memory onto bus 1.

【0040】そして、他のバスマスタ3はバス1に送出
されたキャッシュメモリの保持内容を読み込む。このキ
ャッシュヒット時の動作は従来のキャッシュヒット時の
場合と同一であり、動作時間も同じである。
Then, the other bus master 3 reads the contents held in the cache memory sent to the bus 1. The operation at the time of the cache hit is the same as that at the time of the conventional cache hit, and the operation time is also the same.

【0041】以上詳細に説明したように、他のバスマス
タから共有メモリへのアクセスを監視するバススヌープ
機能及び共有メモリの書き換えを後に行うコピーバック
機能を有するキャッシュメモリを備えたCPUと、これ
らCPU及び他のバスマスタで共有して使用される共有
メモリとを備えたシステムにおけるメモリアクセス方法
において、他のバスマスタからの共有メモリへの読み出
し要求を検出した場合に、他のバスマスタの共有メモリ
からの読み出しを禁止すると共に、キャッシュメモリの
内容と他のバスマスタが読み出しを実行しようとした内
容とを評価し、他のバスマスタが読み出しを実行しよう
とした内容について共有メモリに読み出しを開始させ、
評価の結果キャッシュメモリがミスヒットした場合には
読み出しを開始した共有メモリの内容を他のバスマスタ
に転送し、キャッシュメモリがヒットした場合にはキャ
ッシュメモリの内容を他のバスマスタに転送することを
特徴とするメモリアクセス方法では、キャッシュメモリ
の評価中に共有メモリの内容の読み出しを開始するよう
にし、ミスヒット時には読み出しを開始した共有メモリ
の内容を他のバスマスタに転送するようにしているの
で、キャッシュメモリのミスヒット時にも他のバスマス
タからの読み出し時間が短縮される。
As described in detail above, a CPU having a cache memory having a bus snoop function for monitoring access to a shared memory from another bus master and a copy back function for rewriting the shared memory, and these CPUs and In a memory access method in a system having a shared memory shared by another bus master, when a read request from the other bus master to the shared memory is detected, the read from the shared memory of the other bus master is performed. In addition to prohibiting, evaluate the contents of the cache memory and the contents that the other bus master tried to execute the read, and start the reading to the shared memory for the contents that the other bus master tried to execute the read,
If the cache memory misses as a result of the evaluation, the contents of the shared memory that started reading are transferred to another bus master, and if the cache memory hits, the contents of the cache memory are transferred to another bus master. In the memory access method, the read of the contents of the shared memory is started during the evaluation of the cache memory, and the contents of the shared memory that has started the read are transferred to another bus master at the time of a miss hit. The read time from other bus masters is shortened even when the memory is hit.

【0042】また、CPU及び他のバスマスタから共有
してアクセスされる共有メモリと、他のバスマスタから
共有メモリへのアクセスを監視するバススヌープ機能及
び共有メモリの書き換えを後に行うコピーバック機能を
有するキャッシュメモリを備え、他のバスマスタからの
共有メモリへの読み出し要求を検出した場合に、他のバ
スマスタの共有メモリからの読み出しを禁止すると共
に、キャッシュメモリの内容と他のバスマスタが読み出
しを実行しようとした内容との評価を開始するCPU
と、他のバスマスタから共有メモリへの読み出し要求が
あったときに、他のバスマスタが読み出しを実行しよう
とした内容について共有メモリに読み出しを開始させ、
前記CPUから評価の結果を受けて、キャッシュメモリ
がミスヒットした場合には読み出しを開始した共有メモ
リの内容を他のバスマスタに転送し、キャッシュメモリ
がヒットした場合にはキャッシュメモリの内容を他のバ
スマスタに転送する制御回路と、を備えたことを特徴と
するメモリ共有システムにおいては、キャッシュメモリ
の評価中に共有メモリの内容の読み出しを開始するよう
にし、ミスヒット時には読み出しを開始した共有メモリ
の内容を他のバスマスタに転送するようにしているの
で、キャッシュメモリのミスヒット時にも他のバスマス
タからの読み出し時間が短縮される。
A shared memory shared by the CPU and other bus masters, a bus snoop function for monitoring access from other bus masters to the shared memory, and a copyback function for rewriting the shared memory later. When it has a memory and detects a read request from another bus master to the shared memory, it prohibits the read from the other bus master's shared memory and tries to execute the contents of the cache memory and the other bus master. CPU to start evaluation with contents
Then, when there is a read request from the other bus master to the shared memory, the shared memory starts reading the content that the other bus master was trying to read,
In response to the evaluation result from the CPU, if the cache memory has a mishit, the contents of the shared memory that has started reading are transferred to another bus master, and if the cache memory has a hit, the contents of the cache memory are changed to another. In a memory sharing system characterized by including a control circuit for transferring to the bus master, the reading of the contents of the shared memory is started during the evaluation of the cache memory, and at the time of a miss hit, the reading of the shared memory Since the contents are transferred to another bus master, the read time from another bus master is shortened even when the cache memory misses.

【0043】そして、CPU及び他のバスマスタから共
有してアクセスされる共有メモリと、他のバスマスタか
ら共有メモリへのアクセスを監視するバススヌープ機能
及び共有メモリの書き換えを後に行うコピーバック機能
を有するキャッシュメモリを備え、他のバスマスタから
の共有メモリへの読み出し要求を検出した場合に、他の
バスマスタの共有メモリからの読み出しを禁止すると共
に、キャッシュメモリの内容と他のバスマスタが読み出
しを実行しようとした内容との評価を開始するCPU
と、共有メモリから読み出された内容を一時的に保持す
るバッファと、他のバスマスタから共有メモリへの読み
出し要求があったときに、他のバスマスタが読み出しを
実行しようとした内容について共有メモリから読み出し
バッファに移し、前記CPUから評価の結果を受けて、
キャッシュメモリがミスヒットした場合には前記バッフ
ァの内容を他のバスマスタに転送し、キャッシュメモリ
がヒットした場合にはキャッシュメモリの内容を他のバ
スマスタに転送する制御回路と、を備えたことを特徴と
するメモリ共有システムにおいては、キャッシュメモリ
の評価中に共有メモリの内容をバッファに移しておき、
ミスヒット時にはバッファから他のバスマスタへデータ
を転送するようにしているので、キャッシュメモリのミ
スヒット時にも他のバスマスタからの読み出し時間が短
縮される。
A shared memory shared by the CPU and other bus masters, a bus snoop function for monitoring access from other bus masters to the shared memory, and a cache having a copyback function for rewriting the shared memory later. When it has a memory and detects a read request from another bus master to the shared memory, it prohibits the read from the other bus master's shared memory and tries to execute the contents of the cache memory and the other bus master. CPU to start evaluation with contents
And a buffer that temporarily holds the contents read from the shared memory, and the contents that other bus masters tried to read when there was a read request from the shared memory to the shared memory. Move to the read buffer, receive the evaluation result from the CPU,
A control circuit for transferring the content of the buffer to another bus master when the cache memory has a mishit, and for transferring the content of the cache memory to another bus master when the cache memory has a hit. In the memory sharing system, the contents of the shared memory are moved to the buffer while the cache memory is being evaluated.
Since the data is transferred from the buffer to another bus master at the time of a miss hit, the read time from the other bus master is shortened even at the time of a cache memory miss hit.

【0044】尚、以上の実施例ではCPU2と他のバス
マスタ3との2つの装置がメモリを共有するシステムに
ついての動作を説明したが、これ以外にも、更に多くの
複数のプロセッサや各種コントローラを備え、少なくと
も1のプロセッサがコピーバック方式のキャッシュメモ
リを備えたメモリ共有システムであっても同様の動作が
行なわれ、同様の効果が得られる。また、動作説明にお
いて用いたMI信号やTA信号は一例であり、他の信号
を用いることも可能である。
In the above embodiment, the operation of the system in which the two devices of the CPU 2 and the other bus master 3 share the memory has been described. However, in addition to this, a larger number of processors and various controllers may be used. Even if the memory sharing system is provided with at least one processor having a copy-back cache memory, the same operation is performed and the same effect is obtained. The MI signal and TA signal used in the description of the operation are examples, and other signals can be used.

【0045】[0045]

【発明の効果】以上詳細に説明したように、他のバスマ
スタから共有メモリへのアクセスを監視するバススヌー
プ機能及び共有メモリの書き換えを後に行うコピーバッ
ク機能を有するキャッシュメモリを備えたCPUと、こ
れらCPU及び他のバスマスタで共有して使用される共
有メモリとを備えたシステムで、他のバスマスタからの
共有メモリへの読み出し要求を検出した場合に、他のバ
スマスタの共有メモリからの読み出しを禁止すると共
に、キャッシュメモリの内容と他のバスマスタが読み出
しを実行しようとした内容とを評価し、他のバスマスタ
が読み出しを実行しようとした内容について共有メモリ
に読み出しを開始させ、評価の結果キャッシュメモリが
ミスヒットした場合には読み出しを開始した共有メモリ
の内容を他のバスマスタに転送し、キャッシュメモリが
ヒットした場合にはキャッシュメモリの内容を他のバス
マスタに転送することで、キャッシュメモリのミスヒッ
ト時にも他のバスマスタからの読み出し時間が短縮され
る。従って、コピーバック方式のキャッシュメモリを有
するCPUと他のバスマスタと共有して使用されるメモ
リを備えたメモリ共有システムにおいて、他のバスマス
タからの共有メモリに対する読み出し要求があった時に
CPUのキャッシュメモリがミスヒットした場合であっ
ても、他のバスマスタが短時間で読み出しを行うことが
可能なメモリアクセス方法及びメモリ共有システムを実
現することができる。
As described in detail above, a CPU provided with a cache memory having a bus snoop function for monitoring access to a shared memory from another bus master and a copy back function for rewriting the shared memory, and these In a system including a CPU and a shared memory shared by other bus masters, when a read request from the other bus master to the shared memory is detected, reading from the other bus master's shared memory is prohibited. At the same time, the contents of the cache memory and the contents that the other bus master tried to execute the read are evaluated, and the contents that the other bus master tried to execute the read are started to be read to the shared memory. If there is a hit, the contents of the shared memory that started reading are transferred to another bus master. Transferred to data, the cache memory is in the case of a hit by transferring the contents of the cache memory to another bus master, the read time from another bus master is shortened even when a miss hit of a cache memory. Therefore, in a memory sharing system having a CPU having a copy-back type cache memory and a memory shared with another bus master, the cache memory of the CPU is It is possible to realize a memory access method and a memory sharing system in which other bus masters can read in a short time even in the case of a mishit.

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

【図1】本発明の一実施例のメモリアクセス方法におけ
るキャッシュミスヒット時を示すタイムチャートであ
る。
FIG. 1 is a time chart showing a cache miss hit in a memory access method according to an embodiment of the present invention.

【図2】本発明の一実施例のメモリアクセス方法におけ
るキャッシュヒット時を示すタイムチャートである。
FIG. 2 is a time chart showing a cache hit in the memory access method according to the embodiment of the present invention.

【図3】本発明の一実施例のメモリ共有システムの構成
を示す構成図である。
FIG. 3 is a configuration diagram showing a configuration of a memory sharing system according to an exemplary embodiment of the present invention.

【図4】本発明の一実施例のメモリアクセスの様子を説
明する説明図である。
FIG. 4 is an explanatory diagram illustrating a state of memory access according to an embodiment of the present invention.

【図5】従来のメモリ共有システムの構成を示す構成図
である。
FIG. 5 is a configuration diagram showing a configuration of a conventional memory sharing system.

【図6】従来のメモリアクセス方法の手順を示すタイム
チャートである。
FIG. 6 is a time chart showing a procedure of a conventional memory access method.

【符号の説明】 1 バス 2 CPU 2a キャッシュメモリ 3 他のバスマスタ 5 共有メモリ 6 バッファ 7 制御回路[Explanation of Codes] 1 bus 2 CPU 2a cache memory 3 other bus master 5 shared memory 6 buffer 7 control circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 他のバスマスタから共有メモリへのアク
セスを監視するバススヌープ機能及び共有メモリの書き
換えを後に行うコピーバック機能を有するキャッシュメ
モリを備えたCPUと、このCPU及び他のバスマスタ
で共有して使用される共有メモリとを備えたシステムに
おけるメモリアクセス方法において、 他のバスマスタからの共有メモリへの読み出し要求を検
出した場合に、他のバスマスタの共有メモリからの読み
出しを禁止すると共に、キャッシュメモリの内容と他の
バスマスタが読み出しを実行しようとした内容とを評価
し、他のバスマスタが読み出しを実行しようとした内容
について共有メモリに読み出しを開始させ、 評価の結果キャッシュメモリがミスヒットした場合には
読み出しを開始した共有メモリの内容を他のバスマスタ
に転送し、 キャッシュメモリがヒットした場合にはキャッシュメモ
リの内容を他のバスマスタに転送することを特徴とする
メモリアクセス方法。
1. A CPU having a cache memory having a bus snoop function for monitoring access to a shared memory from another bus master and a copy back function for rewriting the shared memory, and a CPU shared by this CPU and another bus master. In a memory access method in a system including a shared memory used as a cache memory, when a read request from another bus master to the shared memory is detected, reading from the shared memory of another bus master is prohibited, and a cache memory When the cache memory misses as a result of the evaluation, the shared memory is started to read the contents that the other bus master tried to execute the read, and the contents that the other bus master tried to execute the read. Reads the contents of the shared memory that started reading Transferred to the master, the memory access method characterized by transferring the contents of the cache memory to another bus master if the cache memory is hit.
【請求項2】 CPU及び他のバスマスタから共有して
アクセスされる共有メモリと、 他のバスマスタから共有メモリへのアクセスを監視する
バススヌープ機能及び共有メモリの書き換えを後に行う
コピーバック機能を有するキャッシュメモリを備え、他
のバスマスタからの共有メモリへの読み出し要求を検出
した場合に、他のバスマスタの共有メモリからの読み出
しを禁止すると共に、キャッシュメモリの内容と他のバ
スマスタが読み出しを実行しようとした内容との評価を
開始するCPUと、 他のバスマスタから共有メモリへの読み出し要求があっ
たときに、他のバスマスタが読み出しを実行しようとし
た内容について共有メモリに読み出しを開始させ、前記
CPUから評価の結果を受けて、キャッシュメモリがミ
スヒットした場合には読み出しを開始した共有メモリの
内容を他のバスマスタに転送し、キャッシュメモリがヒ
ットした場合にはキャッシュメモリの内容を他のバスマ
スタに転送する制御回路と、を備えたことを特徴とする
メモリ共有システム。
2. A cache having a shared memory shared by a CPU and another bus master, a bus snoop function for monitoring access from another bus master to the shared memory, and a copyback function for rewriting the shared memory. When it has a memory and detects a read request from another bus master to the shared memory, it prohibits the read from the other bus master's shared memory and tries to execute the contents of the cache memory and the other bus master. When there is a read request to the shared memory from the CPU that starts the evaluation of the content and another bus master, the shared memory starts to read the content that the other bus master tried to execute, and the CPU evaluates the content. If the cache memory misses after receiving the result of A memory sharing characterized by comprising a control circuit for transferring the contents of the shared memory, which has begun to be read out, to another bus master, and for transferring the contents of the cache memory to another bus master when the cache memory is hit. system.
【請求項3】 CPU及び他のバスマスタから共有して
アクセスされる共有メモリと、 他のバスマスタから共有メモリへのアクセスを監視する
バススヌープ機能及び共有メモリの書き換えを後に行う
コピーバック機能を有するキャッシュメモリを備え、他
のバスマスタからの共有メモリへの読み出し要求を検出
した場合に、他のバスマスタの共有メモリからの読み出
しを禁止すると共に、キャッシュメモリの内容と他のバ
スマスタが読み出しを実行しようとした内容との評価を
開始するCPUと、 共有メモリから読み出された内容を一時的に保持するバ
ッファと、 他のバスマスタから共有メモリへの読み出し要求があっ
たときに、他のバスマスタが読み出しを実行しようとし
た内容について共有メモリから読み出しバッファに移
し、前記CPUから評価の結果を受けて、キャッシュメ
モリがミスヒットした場合には前記バッファの内容を他
のバスマスタに転送し、キャッシュメモリがヒットした
場合にはキャッシュメモリの内容を他のバスマスタに転
送する制御回路と、を備えたことを特徴とするメモリ共
有システム。
3. A shared memory shared by a CPU and another bus master, a bus snoop function for monitoring access from another bus master to the shared memory, and a cache having a copyback function for rewriting the shared memory. When it has a memory and detects a read request from another bus master to the shared memory, it prohibits the read from the other bus master's shared memory and tries to execute the contents of the cache memory and the other bus master. A CPU that starts evaluation of the contents, a buffer that temporarily holds the contents read from the shared memory, and another bus master that performs a read when there is a read request from another bus master to the shared memory. The contents to be transferred are transferred from the shared memory to the read buffer, and the CP Control to transfer the contents of the buffer to another bus master if the cache memory has a miss hit in response to the evaluation result from U, and to transfer the contents of the cache memory to another bus master if the cache memory has a hit. A memory sharing system comprising: a circuit.
JP6240356A 1994-10-04 1994-10-04 Memory access method and memory sharing system Pending JPH08106417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6240356A JPH08106417A (en) 1994-10-04 1994-10-04 Memory access method and memory sharing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6240356A JPH08106417A (en) 1994-10-04 1994-10-04 Memory access method and memory sharing system

Publications (1)

Publication Number Publication Date
JPH08106417A true JPH08106417A (en) 1996-04-23

Family

ID=17058277

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6240356A Pending JPH08106417A (en) 1994-10-04 1994-10-04 Memory access method and memory sharing system

Country Status (1)

Country Link
JP (1) JPH08106417A (en)

Similar Documents

Publication Publication Date Title
US5652859A (en) Method and apparatus for handling snoops in multiprocessor caches having internal buffer queues
US6519685B1 (en) Cache states for multiprocessor cache coherency protocols
EP0735480B1 (en) Cache coherent computer system that minimizes invalidation and copyback operations
US7814279B2 (en) Low-cost cache coherency for accelerators
US6070231A (en) Method and apparatus for processing memory requests that require coherency transactions
JP3067112B2 (en) How to reload lazy push into copy back data cache
US6625698B2 (en) Method and apparatus for controlling memory storage locks based on cache line ownership
KR0163231B1 (en) Coherency and synchronization mechanisms for i/o channel controller in a data processing system
US5903911A (en) Cache-based computer system employing memory control circuit and method for write allocation and data prefetch
US7032074B2 (en) Method and mechanism to use a cache to translate from a virtual bus to a physical bus
US6272602B1 (en) Multiprocessing system employing pending tags to maintain cache coherence
US20080140935A1 (en) Efficient marking of shared cache lines
US20050204088A1 (en) Data acquisition methods
JPH02141845A (en) Reading of data block from main memory with central processing unit for multiprocessor system
JP4577729B2 (en) System and method for canceling write back processing when snoop push processing and snoop kill processing occur simultaneously in write back cache
US20170116126A1 (en) Coherence de-coupling buffer
US5761724A (en) Write-invalidate cache system for a split transaction bus based shared memory multiprocessor
JP3550092B2 (en) Cache device and control method
JPH04230549A (en) Multilevel cache
US6477622B1 (en) Simplified writeback handling
JPH10501914A (en) Shared cache memory device
US6496907B1 (en) System and method for updating from a read-only to a read-write entry and concurrently invalidating stale cache copies from head-to-tail and tail-to-head directions
US6021466A (en) Transferring data between caches in a multiple processor environment
US20040128451A1 (en) Power/performance optimized caches using memory write prevention through write snarfing
JPH08106417A (en) Memory access method and memory sharing system