JPS6385949A - Cache memory storing system - Google Patents
Cache memory storing systemInfo
- Publication number
- JPS6385949A JPS6385949A JP61230135A JP23013586A JPS6385949A JP S6385949 A JPS6385949 A JP S6385949A JP 61230135 A JP61230135 A JP 61230135A JP 23013586 A JP23013586 A JP 23013586A JP S6385949 A JPS6385949 A JP S6385949A
- Authority
- JP
- Japan
- Prior art keywords
- address
- buffer
- store
- data
- bypass
- 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.)
- Granted
Links
- 238000001514 detection method Methods 0.000 claims abstract description 7
- 238000000034 method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 2
- 230000006866 deterioration Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、キャッシュメモリ制御装置に関し。[Detailed description of the invention] [Industrial application field] The present invention relates to a cache memory control device.
特にストアバッフ1からキャッシュメモリへデータを書
き込む際のストア方式に関する。In particular, it relates to a store method when writing data from store buffer 1 to cache memory.
従来、この種のストアバッファを有するキャッシュメモ
リ制御装置では、ストアバッファからキャッシュメモリ
へのデータの書き込みの際。Conventionally, in a cache memory control device having this type of store buffer, when writing data from the store buffer to the cache memory.
この書き込み前に主記憶装置へ出さnたデータの読出し
処理(以下ブロックロードという;なお、ブロックとは
キャッシュメモリと主記憶装置の写しの単位でここでは
64バイトとする)が終了するまで待ち合せ、ブロック
ロードデータがキャッシュメモリに書き込まnた後で上
述の書込み処理(ストア処理)が実施されている。Waiting until the read process (hereinafter referred to as block load; a block is a unit of copying of the cache memory and main memory, and is assumed to be 64 bytes here) of the data output to the main memory before this write is completed, After the block load data is written to the cache memory, the above write process (store process) is performed.
つまり、ストア処理の先行により、ブロックロードデー
タに対する書替えが正しく行わ扛ないことを防止するた
めブロックロードデータがキャッシュメモリに書き込ま
nた後に、ストア処理を行っている。In other words, the store process is performed after the block load data has been written to the cache memory in order to prevent the block load data from being rewritten correctly by performing the store process first.
ところで、上述した従来のストア方式の場合。 By the way, in the case of the conventional store method mentioned above.
主記憶装置に対してブロックロードが行わnている間、
常にストアバッファからキャッシュメモリへの書き込み
が抑止さ扛る。従って、キャッシュメモリの空時間(ブ
ロックロード中は。While a block load is being performed to main memory,
Writing from the store buffer to cache memory is always inhibited. Therefore, the empty time of cache memory (during block loading).
後続リードアクセスは待たさ扛るのでキャッシュメモリ
は使用さnていない)をストア処理に使用できず、この
ため、後続リードアクセスを止めてキャッシュメモリを
使用しなけnばならない事態が発生する場合があり、こ
の結果、システム性能が低下してしまうという問題があ
る。Since subsequent read accesses are made to wait, the cache memory (not used) cannot be used for store processing, and as a result, a situation may arise in which subsequent read accesses must be stopped and cache memory is used. As a result, there is a problem that system performance deteriorates.
〔問題点を解決するための手段〕
本発明では主記憶装置から読み出したデータを一時的に
保持するバイパスバッファと、該バイパスバッファに保
持さnているデータの主記憶アドレスを保持するバイパ
スバッフ1アドレスレジスタと、該バイパスバッフ1ア
ドレスレジスタの読み出しアドレスと蔚iストアアドレ
スバッフ1の読み出しアドレスとの一致を検出するアド
レス一致検出回路と、該アドレス一致回路出力に基づい
て錘2ストアデータバッファのデータで前記バイパスバ
ッファの該当するエリアを書替える制御手段とを有する
ことを特徴としている。[Means for solving the problem] The present invention includes a bypass buffer that temporarily holds data read from the main memory, and a bypass buffer 1 that holds the main memory address of the data held in the bypass buffer. an address register; an address match detection circuit that detects a match between the read address of the bypass buffer 1 address register and the read address of the store address buffer 1; and an address match detection circuit that detects a match between the read address of the bypass buffer 1 address register and the read address of the store address buffer 1; and a control means for rewriting the corresponding area of the bypass buffer.
以下本発明について実施例によって説明する。 The present invention will be explained below with reference to Examples.
第1図は本発明の一実施例を示すブロック図である。第
1図を参照して、リクエストレジスタ1はアクセス要求
の種別、指示内容を含むリクエストコード部とアクセス
要求のアドレス部とから構成されるアドレス情報を保持
するレジスタである。FIG. 1 is a block diagram showing one embodiment of the present invention. Referring to FIG. 1, a request register 1 is a register that holds address information consisting of a request code section including the type of access request and instruction contents, and an address section of the access request.
リクエストコード部は結線50により主記憶アクセス制
御回路2に入力され、一方、アドレス部はアドレスアレ
イ14に格納される。主記憶アクセス制御回路2はこの
リクエストコード部を解読してアドレスアレイ14から
のアドレス部により制御さn、各部に必要な制御信号を
生成して分配する。さらにアドレス情報は結線51によ
り切替回路6に入力され、後述のように主記憶要求アド
レスとなる。更にアドレス情報は結線56及び54によ
りそnぞnストアアドレスバッフ14及びバイパスバッ
ファアドレスレジスタ5に入力さn、ストアアドレスバ
ッフ14及びバイパスバッファアドレスレジスタ5は、
そnぞnストア時のアドレス及びパイバースバッファ6
のアドレスを保持する。The request code portion is input to the main memory access control circuit 2 via a connection 50, while the address portion is stored in the address array 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. Furthermore, the address information is input to the switching circuit 6 through a connection 51, and becomes a main memory request address as described later. Additionally, address information is input to the store address buffer 14 and bypass buffer address register 5 through connections 56 and 54, respectively.
Address and Piverse Buffer 6 at the time of storage
retains the address of
ストアリクエスト時のストアデータは結線55によりス
トアデータバッファ7に入力さ扛。Store data at the time of a store request is input to the store data buffer 7 through a connection 55.
結線56から主記憶へ、結線57から切替回路8全通し
てデータアレイ9へ、結線58から切替回路10を通し
てバイパスバッファ6へそnぞn入力さnる。The data is input from a connection 56 to the main memory, from a connection 57 through the switching circuit 8 to the data array 9, and from a connection 58 through the switching circuit 10 to the bypass buffer 6.
主記憶リードデータは結線59から切替回路10全通し
てバイパスバッフy6Vr−格納さn。The main memory read data is stored from the connection 59 through the entire switching circuit 10 to the bypass buffer y6Vr-n.
一方、要求元へのデータ返送は結線60あるいは61か
ら切替回路11を通して行わnる。On the other hand, data is returned to the request source through the switching circuit 11 from the connection 60 or 61.
ストアデータバッファ7の内容(データ)をデータアレ
イ9に書き込む際、ストアバッフ1データ7の内容に対
応するストアアドレスバッフ14の内容(アドレス)が
読み出さ扛、結線62によって比較回路12へ送らnる
。一方。When writing the contents (data) of store data buffer 7 to data array 9, the contents (address) of store address buffer 14 corresponding to the contents of store buffer 1 data 7 are read out and sent to comparison circuit 12 via connection 62. . on the other hand.
バイパスバッファ6に保持さnているデータのアドレス
が格納さnたバイパスバッファアドレスレジスタ5の内
容が比較回路12に送ら扛。The contents of the bypass buffer address register 5, which stores the address of the data held in the bypass buffer 6, are sent to the comparison circuit 12.
ストアアドレスバッフ14の内容とバイパスバッフ1ア
ドレスレジスタ5の内容とが比較回路12で比較さnる
。A comparison circuit 12 compares the contents of the store address buffer 14 and the contents of the bypass buffer 1 address register 5.
ストアアドレスバッファ4の内容とバイパスバッフ1ア
ドレスレジスタ5の内容とが一致すると、即ち、ブロッ
クアドレスが一致していると、この一致結果がバイパス
バッファ制御回路13に通知さnる。そして、ストアデ
ータバッファ7からデータアレイ9へのデータの書き込
みと同時に、結線58によって切替回路10を介してバ
イパスバッフ16の対応するエリアへの書き込みを指示
する。When the contents of the store address buffer 4 and the contents of the bypass buffer 1 address register 5 match, that is, when the block addresses match, the bypass buffer control circuit 13 is notified of the match result. At the same time as data is written 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 16 via the switching circuit 10.
なお、上述の実施例では、比較回路12でアドレスの一
致が検出された場合、ストアデータバッファ7からデー
タアレイ9への書き込みを抑止せずに続行しているが、
こ扛はバイパスバッファ乙にのみ対応するデータが存在
するためであり、よって書き込みの抑止を行っても問題
はない。In the above-described embodiment, when the comparison circuit 12 detects a match of addresses, writing from the store data buffer 7 to the data array 9 is continued without being inhibited.
This is because the corresponding data exists only in bypass buffer B, so there is no problem even if writing is inhibited.
以上説明したように本発明では、ストアアドレスとバイ
パスバッファアドレスとの一致ヲ検出する検出回路を備
えておシ、検出回路によりアドレス一致が検出さnた場
合に、ストア処理をバイパスバッファに対して行うよう
にしたから、ストア処理の性能低下を改善することがで
きるという効果がある。As explained above, the present invention includes a detection circuit that detects a match between a store address and a bypass buffer address, and when the detection circuit detects an address match, stores processing is performed on the bypass buffer. Since this is done, the performance deterioration of store processing can be improved.
第1図は本発明の一実施例を示すブロック図である。
1.5・・・レジスタ、2.13・・・制御回路、 3
,8゜10.11.12・・・切替回路、4・・・スト
アバッファ6・・・バイパスバッファ、7・・・ストア
データバッファ、9・・・データアレイ、14・・・ア
ドレスアレイ。FIG. 1 is a block diagram showing one 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 that stores a copy of the address of the main memory, a data array that stores a copy of the data of the main memory, and a store address that temporarily stores a store address that includes the address to be updated in the address array. A cache memory control device having a buffer and a store data buffer that temporarily stores store data that is update data of the data array, a bypass buffer that temporarily stores data read from the main storage device; a bypass buffer address register that holds a main memory address of data held in a bypass buffer; an address match detection circuit that detects a match between a read address of the bypass buffer address register and a read address of the store address buffer;
A cache memory store system comprising: control means for rewriting a corresponding area of the bypass buffer with data of the store data buffer based on the output of the address match detection circuit.
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 true JPS6385949A (en) | 1988-04-16 |
JPH0769860B2 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 |
---|---|
JPH0769860B2 (en) | 1995-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
IE61306B1 (en) | Method and device to execute two instruction sequences in an order determined in advance | |
JPS6385949A (en) | Cache memory storing system | |
JP3162459B2 (en) | Data processing device | |
JPS6385948A (en) | Cache memory storing system | |
KR100348808B1 (en) | Device for transmitting data between memories | |
JPS6141019B2 (en) | ||
JPH0447350A (en) | Main storage read/response control | |
JP2604604B2 (en) | Stack control device | |
JPS5815877B2 (en) | Buffer memory control method | |
JPH07152574A (en) | Program loading system | |
JPH03269650A (en) | Buffer storage | |
JPH02234246A (en) | Controlling system for cache coincidence process | |
JPH03271859A (en) | Information processor | |
JPS6222165A (en) | Control system for access to main storage device | |
JPH0241537A (en) | Cache memory controller | |
JPH0497459A (en) | Cache coincidence processing system | |
JPH0526216B2 (en) | ||
JPH03127126A (en) | Information processor | |
JPS5965358A (en) | Retry control system during memory swap | |
JPS63155346A (en) | Ram check system | |
JPH08166905A (en) | Cache memory control method | |
JPH03257555A (en) | Store buffer device | |
JPS61148543A (en) | Memory access request processing system | |
JPS63168750A (en) | Data processor | |
JPH02193235A (en) | Detection of bus access exception |