JPH0769860B2 - Cache memory store method - Google Patents
Cache memory store methodInfo
- Publication number
- JPH0769860B2 JPH0769860B2 JP61230135A JP23013586A JPH0769860B2 JP H0769860 B2 JPH0769860 B2 JP H0769860B2 JP 61230135 A JP61230135 A JP 61230135A JP 23013586 A JP23013586 A JP 23013586A JP H0769860 B2 JPH0769860 B2 JP H0769860B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- data
- store
- buffer
- cache 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims description 6
- 239000000872 buffer Substances 0.000 claims description 48
- 238000001514 detection method Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 2
- 230000006866 deterioration Effects 0.000 description 1
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は,キャッシュメモリ制御装置に関し,特にスト
アバッファからキャッシュメモリへデータを書き込む際
のストア方式に関する。The present invention relates to a cache memory control device, and more particularly to a store system for writing data from a store buffer to a cache memory.
従来,この種のストアバッファを有するキャッシュメモ
リ制御装置では,ストアバッファからキャッシュメモリ
へのデータの書き込みの際,この書き込み前に主記憶装
置へ出されたデータの読出し処理(以下ブロックロード
という;なお,ブロックとはキャッシュメモリと主記憶
装置の写しの単位でここでは64バイトとする)が終了す
るまで待ち合せ,ブロックロードデータがキャッシュメ
モリに書き込まれた後で上述の書込み処理(ストア処
理)が実施されている。つまり,ストア処理の先行によ
り,ブロックロードデータに対する書替えが正しく行わ
れないことを防止するためブロックロードデータがキャ
ッシュメモリに書き込まれた後に,ストア処理を行って
いる。Conventionally, in a cache memory control device having this type of store buffer, when writing data from the store buffer to the cache memory, a process of reading the data issued to the main storage device before this writing (hereinafter referred to as block load; , Block is a unit of copy of cache memory and main memory, and here it is 64 bytes. Wait until the end, and after the block load data is written in the cache memory, the above write processing (store processing) is executed. Has been done. That is, the store processing is performed after the block load data is written in the cache memory in order to prevent the block load data from being rewritten incorrectly due to the preceding store processing.
ところで,上述した従来のストア方式の場合,主記憶装
置に対してブロックロードが行われている間,常にスト
アバッファからキャッシュメモリへの書き込みが抑止さ
れる。従って,キャッシュメモリの空時間(ブロックロ
ード中は,後続リードアクセスは待たされるのでキャッ
シュメモリは使用されていない)をストア処理に使用で
きず,このため,後続リードアクセスを止めてキャッシ
ュメモリを使用しなければならない事態が発生する場合
があり,この結果,システム性能が低下してしまうとい
う問題がある。By the way, in the case of the conventional store method described above, writing from the store buffer to the cache memory is always suppressed while the block load is being performed to the main memory. Therefore, the free time of the cache memory (the cache memory is not used because the subsequent read access is waited during the block load) cannot be used for the store process, and therefore the subsequent read access is stopped and the cache memory is used. There may be a situation that must be done, and as a result, there is a problem that the system performance is reduced.
本発明では主記憶装置から読み出したデータを一時的に
保持するバイパスバッファと,該バイパスバッファに保
持されているデータの主記憶アドレスを保持するバイパ
スバッファアドレスレジスタと,該バイパスバッファア
ドレスレジスタの読み出しアドレスとストアアドレスバ
ッファの読み出しアドレスとの一致を検出するアドレス
一致検出回路と,該アドレス一致回路出力に基づいてス
トアデータバッファのデータで前記バイパスバッファの
該当するエリアを書替える制御手段とを有することを特
徴としている。According to the present invention, a bypass buffer that temporarily holds data read from a main storage device, a bypass buffer address register that holds a main storage address of data held in the bypass buffer, and a read address of the bypass buffer address register And an address match detection circuit for detecting a match between the read address of the store address buffer and a read address of the store address buffer, and control means for rewriting the corresponding area of the bypass buffer with the data of the store data buffer based on the output of the address match circuit. It has a feature.
以下本発明について実施例によって説明する。 The present invention will be described below with reference to examples.
第1図は本発明の一実施例を示すブロック図である。第
1図を参照して,リクエストレジスタ1はアクセス要求
の種別,指示内容を含むリクエストコード部とアクセス
要求のアドレス部とから構成されるアドレス情報を保持
するレジスタである。FIG. 1 is a block diagram showing an embodiment of the present invention. Referring to FIG. 1, the request register 1 is a register that holds address information composed of a request code part including an access request type and instruction content, and an access request address part.
リクエストコード部は結線50により主記憶アクセス制御
回路2に入力され,一方,アドレス部はアドレスアレイ
14に格納される。主記憶アクセス制御回路2はこのリク
エストコード部を解読してアドレスアレイ14からのアド
レス部により制御され,各部に必要な制御信号を生成し
て分配する。さらにアドレス情報は結線51により切替回
路3に入力され,後述のように主記憶要求アドレスとな
る。更にアドレス情報は結線53及び54によりそれぞれス
トアアドレスバッファ4及びバイパスバッファアドレス
レジスタ5に入力され,ストアアドレスバッファ4及び
バイパスバッファアドレスレジスタ5は,それぞれスト
ア時のアドレス及びバイパスバッファ6のアドレスを保
持する。The request code part is input to the main memory access control circuit 2 by the connection 50, while the address part is an address array.
Stored in 14. The main memory access control circuit 2 decodes this request code section and is controlled by the address section from the address array 14, and generates and distributes necessary control signals to each section. Further, the address information is input to the switching circuit 3 through the connection 51 and becomes a main memory request address as described later. Further, the address information is input to the store address buffer 4 and the bypass buffer address register 5 via the connections 53 and 54, respectively, and the store address buffer 4 and the bypass buffer address register 5 hold the address at the time of storing and the address of the bypass buffer 6, respectively. .
ストアリクエスト時のストアデータは結線55によりスト
アデータバッファ7に入力され,結線56から主記憶へ,
結線57から切替回路8を通してデータアレイ9へ,結線
58から切替回路10を通してバイパスバッファ6へそれぞ
れ入力される。The store data at the time of store request is input to the store data buffer 7 by the connection 55, and from the connection 56 to the main memory,
Connection from connection 57 to data array 9 through switching circuit 8
Input from 58 to the bypass buffer 6 through the switching circuit 10.
主記憶リードデータは結線59から切替回路10を通してバ
イパスバッファ6に格納され,一方,要求元へのデータ
返送は結線60あるいは61から切替回路11を通して行われ
る。The main memory read data is stored in the bypass buffer 6 from the connection line 59 through the switching circuit 10, while the data return to the request source is performed from the connection line 60 or 61 through the switching circuit 11.
ストアデータバッファ7の内容(データ)をデータアレ
イ9に書き込む際,ストアバッファデータ7の内容に対
応するストアアドレスバッファ4の内容(アドレス)が
読み出され,結線62によって比較回路12へ送られる。一
方,バイパスバッファ6に保持されているデータのアド
レスが格納されたバイパスバッファアドレスレジスタ5
の内容が比較回路12に送られ,ストアアドレスバッファ
4の内容とバイパスバッファアドレスレジスタ5の内容
とが比較回路12で比較される。When writing the contents (data) of the store data buffer 7 to the data array 9, the contents (address) of the store address buffer 4 corresponding to the contents of the store buffer data 7 are read out and sent to the comparison circuit 12 by the connection 62. On the other hand, the bypass buffer address register 5 in which the address of the data held in the bypass buffer 6 is stored
Is sent to the comparison circuit 12, and the contents of the store address buffer 4 and the contents of the bypass buffer address register 5 are compared by the comparison circuit 12.
ストアアドレスバッファ4の内容とバイパスバッファア
ドレスレジスタ5の内容とが一致すると,即ち,ブロッ
クアドレスが一致していると,この一致結果がバイパス
バッファ制御回路13に通知される。そして,ストアデー
タバッファ7からデータアレイ9へのデータの書き込み
と同時に,結線58によって切替回路10を介してバイパス
バッファ6の対応するエリアへの書き込みを指示する。When the contents of the store address buffer 4 and the contents of the bypass buffer address register 5 match, that is, when the block addresses match, the matching result is notified to the bypass buffer control circuit 13. Then, at the same time as writing the data from the store data buffer 7 to the data array 9, the connection 58 instructs the writing to the corresponding area of the bypass buffer 6 via the switching circuit 10.
なお,上述の実施例では,比較回路12でアドレスの一致
が検出された場合,ストアデータバッファ7からデータ
アレイ9への書き込みを抑止せずに続行してるが,これ
はバイパスバッファ6にのみ対応するデータが存在する
ためであり,よって書き込みの抑止を行っても問題はな
い。In the above-described embodiment, when the comparison circuit 12 detects that the addresses match, writing from the store data buffer 7 to the data array 9 is continued without being suppressed, but this is applicable only to the bypass buffer 6. This is because there is data to be written, so there is no problem even if writing is suppressed.
以上説明したように本発明では,ストアアドレスとバイ
パスバッファアドレスとの一致を検出する検出回路を備
えており,検出回路によりアドレス一致が検出された場
合に,ストア処理をバイパスバッファに対して行うよう
にしたから,ストア処理の性能低下を改善することがで
きるという効果がある。As described above, in the present invention, the detection circuit for detecting the match between the store address and the bypass buffer address is provided, and when the detection circuit detects the address match, the store process is performed on the bypass buffer. Therefore, there is an effect that it is possible to improve the performance deterioration of the store processing.
第1図は本発明の一実施例を示すブロック図である。 1,5……レジスタ,2,13……制御回路,3,8,10,11,12……
切替回路,4……ストアバッファ,6……バイパスバッフ
ァ,7……ストアデータバッファ,9……データアレイ,14
……アドレスアレイ。FIG. 1 is a block diagram showing an embodiment of the present invention. 1,5 …… Register, 2,13 …… Control circuit, 3,8,10,11,12 ……
Switching circuit, 4 …… Store buffer, 6 …… Bypass buffer, 7 …… Store data buffer, 9 …… Data array, 14
...... Address array.
Claims (1)
ドレスアレイと,前記主記憶装置のデータの写しを記憶
するデータアレイと,前記アドレスアレイの更新対象ア
ドレスを含むストアアドレスを一時的に格納するストア
アドレスバッファと,前記データアレイの更新データで
あるストアデータを一時的に格納するストアデータバッ
ファとを有するキャッシュメモリ制御装置において,前
記主記憶装置から読出したデータを一時的に保持するバ
イパスバッファと,該バイパスバッファに保持されてい
るデータの主記憶アドレスを保持するバイパスバッファ
アドレスレジスタと,該バイパスバッファアドレスレジ
スタの読み出しアドレスと前記ストアアドレスバッファ
の読出しアドレスとの一致検出を行うアドレス一致検出
回路と,該アドレス一致検出回路出力により,前記スト
アデータバッファのデータで前記バイパスバッファの該
当するエリアを書替える制御手段とを備えていることを
特徴とするキャッシュメモリストア方式。1. An address array for storing a copy of an address of a main memory, a data array for storing a copy of the data of the main memory, and a store address temporarily storing an update target address of the address array. In a cache memory control device having a store address buffer for storing and a store data buffer for temporarily storing store data which is update data of the data array, a bypass buffer for temporarily holding data read from the main storage device. And a bypass buffer address register for holding a main storage address of data held in the bypass buffer, and an address match detection circuit for detecting a match between a read address of the bypass buffer address register and a read address of the store address buffer. And the address The coincidence detection circuit output, the cache memory store method, characterized by comprising a writing changing control means to the appropriate area of the bypass buffer data of the store data buffers.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61230135A JPH0769860B2 (en) | 1986-09-30 | 1986-09-30 | Cache memory store method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61230135A JPH0769860B2 (en) | 1986-09-30 | 1986-09-30 | Cache memory store method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6385949A JPS6385949A (en) | 1988-04-16 |
| JPH0769860B2 true JPH0769860B2 (en) | 1995-07-31 |
Family
ID=16903127
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61230135A Expired - Lifetime JPH0769860B2 (en) | 1986-09-30 | 1986-09-30 | Cache memory store method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0769860B2 (en) |
-
1986
- 1986-09-30 JP JP61230135A patent/JPH0769860B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6385949A (en) | 1988-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2714952B2 (en) | Computer system | |
| US5287483A (en) | Prefetched operand storing system for an information processor | |
| JPH0410102B2 (en) | ||
| IE61306B1 (en) | Method and device to execute two instruction sequences in an order determined in advance | |
| JPH0769860B2 (en) | Cache memory store method | |
| JP3162459B2 (en) | Data processing device | |
| JPS6385948A (en) | Cache memory storing system | |
| JPH0447350A (en) | Main storage read/response control | |
| JPH06119238A (en) | Main memory control method and apparatus | |
| JPH0769861B2 (en) | Control method of bypass buffer in cache memory controller | |
| JPH03269650A (en) | Buffer storage | |
| JPH0497459A (en) | Cache coincidence processing system | |
| JPH01129334A (en) | Data control system for cache memory | |
| JPH03271859A (en) | Information processor | |
| JPH0769862B2 (en) | Cache memory device | |
| JPH1055303A (en) | Memory system | |
| JPH0526216B2 (en) | ||
| JPH02234246A (en) | Controlling system for cache coincidence process | |
| JPS62212745A (en) | Data processing device with buffer memory | |
| JPS6341106B2 (en) | ||
| JPH04190440A (en) | Address conversion control system | |
| JPS6266348A (en) | Store check system for cache memory controller | |
| JPH0512120A (en) | Data cache control system | |
| JPS6055454A (en) | Data transfer control system | |
| JPH01269144A (en) | Storing buffer control system |