JPS62174846A - Storage checking system - Google Patents

Storage checking system

Info

Publication number
JPS62174846A
JPS62174846A JP61016315A JP1631586A JPS62174846A JP S62174846 A JPS62174846 A JP S62174846A JP 61016315 A JP61016315 A JP 61016315A JP 1631586 A JP1631586 A JP 1631586A JP S62174846 A JPS62174846 A JP S62174846A
Authority
JP
Japan
Prior art keywords
store
data
buffer
address
request
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
JP61016315A
Other languages
Japanese (ja)
Inventor
Kozo Yamano
山野 孝三
Yoichi Sato
洋一 佐藤
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP61016315A priority Critical patent/JPS62174846A/en
Publication of JPS62174846A publication Critical patent/JPS62174846A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accelerate the execution of read processing and to quickly read data by bypassing data in a storage buffer under the prescribed conditions so as to return it to a request source if preceding storage processing is not terminated at the time of requesting read. CONSTITUTION:Storage checking system is comprised of a request register 10, an address array 20, a detection circuit 21, a storage control buffer 30, a storage address buffer 31, a storage mask buffer 32, a storage data buffer 33, detection circuits 34 and 35, a data array 40, a bypass buffer control buffer 50, a bypass buffer 51, a block address register 52, a detection circuit 53, switching circuits 61-66 and a control circuit 70. If the preceding storage processing is not terminated at the time of requesting read, data in the storage buffer is bypassed and returned to the request source.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はストアチェック方式に関し、特にキャッシュメ
モリを有する情報処理装置におけるストアチェック方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a store check method, and particularly to a store check method in an information processing apparatus having a cache memory.

〔従来の技術〕[Conventional technology]

従来、この種の情報処理装置は、ストアバッファに登録
されている内容がキャッシュメモリに存在するか否かを
判断する判断回路を持っていなかった。このため、リー
ド要求が発生するとリードアドレスとストアバッファに
登録されているストアアドレスとの比較を行い、一致す
るとリード処理を停止させ、ストアバッファに登録され
ているストアアドレスに対応するストアデータを全てス
トアバッファに登録しかつストアバッファからキャッシ
ュメモリおよび主記憶装置への書込み処理を優先して行
い、ストアバッファの空状態を検出したところで停止し
ていたリード処理を再開するようにしていた。
Conventionally, this type of information processing apparatus has not had a determination circuit that determines whether the contents registered in the store buffer exist in the cache memory. Therefore, when a read request occurs, the read address is compared with the store address registered in the store buffer, and if they match, the read process is stopped and all the store data corresponding to the store address registered in the store buffer is Registering in the store buffer and writing from the store buffer to the cache memory and main storage device are performed with priority, and when the empty state of the store buffer is detected, the stopped read process is restarted.

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

上述した従来のストアチェック方式は、ストアチェック
発生時には常にキャッシュメモリや主記憶装置へのスト
アデータの書込み完了を待って後続のリード処理を実行
するので、ストアチェックによる性能低下が著しいとい
う欠点がある。
The conventional store check method described above always waits for the write of store data to the cache memory or main storage device to be completed when a store check occurs before executing the subsequent read process, so there is a drawback that the performance drop due to the store check is significant. .

本発明の目的は、上述の点に鑑み、リード要求時に先行
するストア処理が終了していなかった場合に、所定の条
件下でストアバッファ内のデータをバイパスさせて要求
元に返送させることにより、リード処理の実行を早めて
データの読出しを高速に行えるようにしたストアチェッ
ク方式を提供することにある。
In view of the above-mentioned points, an object of the present invention is to bypass the data in the store buffer and return it to the request source under predetermined conditions when the preceding store process has not been completed at the time of a read request. An object of the present invention is to provide a store check method that speeds up the execution of read processing and enables high-speed data reading.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のストアチェック方式は、キャッシュメモリを有
する情報処理装置において、主記憶装置およびキャッシ
ュメモリへの書込みアドレスおよびこの書込みアドレス
に対応する書込みデータを複数エントリ保持できるスト
アバッファと、前記書込みデータが全書込みであること
を表示する全書込みフラグを保持するストア制御バッフ
ァと、前記ストアバッファの有効性を各エントリ対応に
表示する有効性表示ビット群と、演算装置と前記キャッ
シュメモリとの間の処理データ幅単位でリード要求の主
記憶読出しアドレスと前記ストアバッファ内の前記有効
性表示ビット群で有効表示されているエントリの書込み
アドレスとの一致を検出するアドレス一致検出手段と、
前記主記憶読出しアドレスが前記キャッシュメモリに存
在する場合に前記アドレス一致検出手段からの一致出力
に応じて前記ストアバッファ内のストアデータを前記キ
ャッシュメモリにストアすると同時にバイパスできるま
で前記リード要求を待たせ、前記主記憶読出しアドレス
が前記キャッシュメモリに存在しない場合に前記アドレ
ス一致検出手段からの一致出力と前記全書込みフラグと
に応じて前記ストアバッファ内のストアデータを前記主
記憶装置に送出すると同時にバイパスできるまで前記リ
ード要求を待たせるかまたは前記ストアバッファ内のス
トアデータを前記主起tC装置にストアした後に11;
I記事記憶装置に対して前記リード要求を送出するかを
制御する制御手段とを有する。
The store check method of the present invention is provided in an information processing device having a cache memory, including a store buffer capable of holding multiple entries of write addresses to the main memory and cache memory and write data corresponding to the write addresses, and a store control buffer that holds a full write flag indicating that it is a write; a group of validity display bits that display the validity of the store buffer for each entry; and processing data between the arithmetic unit and the cache memory. address coincidence detection means for detecting, in units of width, a coincidence between a main memory read address of a read request and a write address of an entry that is indicated as valid by the validity indicating bit group in the store buffer;
When the main memory read address exists in the cache memory, the read request is made to wait until the store data in the store buffer can be stored in the cache memory and bypassed at the same time in response to a match output from the address match detection means. , when the main memory read address does not exist in the cache memory, the store data in the store buffer is sent to the main memory according to the match output from the address match detecting means and the all write flag, and at the same time bypassing is performed. After making the read request wait until the read request is completed or storing the store data in the store buffer in the host tC device, 11;
and control means for controlling whether to send the read request to the I-article storage device.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

図は本発明の一実施例を示すブロック図である。The figure is a block diagram showing one embodiment of the present invention.

本実施例のストアチェック方式は、リクエストレジスタ
(以下、RQRと略記する>10と、アドレスアレイ 
(以下、AAと略記する) 20と、検出回路21と、
ストア制御バッファ(以下、SCBと略記する)30と
、ストアアドレスバッファ(以下、SABと略記する)
31と、ストアマスクバッファ32(以下、SMBと略
記する)と、ストアデータバッファ(以下、SDBと略
記する)33と、検出回路34および35と、データア
レイ (以下、DAと略記する)40と、バイパスバッ
ファ制御ハソファ(以下、BCBと略記する) 50と
、バイパスハフファ (以下、BBと略記する)51と
、ブロックアドレスレジスタ(以下、BARと略記する
)52と、検出回路53と、切替回路61〜66と、制
御回路70とから構成されている。
The store check method of this embodiment uses a request register (hereinafter abbreviated as RQR>10) and an address array.
(hereinafter abbreviated as AA) 20, a detection circuit 21,
Store control buffer (hereinafter abbreviated as SCB) 30 and store address buffer (hereinafter abbreviated as SAB)
31, a store mask buffer 32 (hereinafter abbreviated as SMB), a store data buffer (hereinafter abbreviated as SDB) 33, detection circuits 34 and 35, and a data array (hereinafter abbreviated as DA) 40. , a bypass buffer control circuit (hereinafter abbreviated as BCB) 50, a bypass buffer (hereinafter abbreviated as BB) 51, a block address register (hereinafter abbreviated as BAR) 52, a detection circuit 53, and a switching circuit. It is composed of circuits 61 to 66 and a control circuit 70.

AA20とDA40とはキャソンユメモリを構成し、5
AB31と5MB52と5DB33とはストアバッファ
を構成している。
AA20 and DA40 constitute Cassonyu memory, and 5
AB31, 5MB52, and 5DB33 constitute a store buffer.

RQRIOは、アクセス要求の種別、指示内容および有
効性を含むリクエストコード部とアクセス要求のアドレ
ス部とを保持するレジスタである。
RQRIO is a register that holds a request code section including the type of access request, instruction content, and validity, and an address section of the access request.

AA20は、DA40に登録されているブロックと主記
憶装置のブロックとの対応を記憶するキャッシュメモリ
のアドレス部である。
AA20 is an address section of a cache memory that stores the correspondence between blocks registered in DA40 and blocks in the main storage device.

検出回路21は、AA20から8売み出されたキャッシ
ュメモリのアドレス(信号線201)とRQRlo内の
キーアドレス(信号線102)との一致およびAA20
内に登録されたエントリの有効性を表示する有効性表示
ビット(以下、Vビットと略記する〕(信号線202)
を調べる回路である。
The detection circuit 21 detects whether the cache memory address (signal line 201) issued by AA20 matches the key address (signal line 102) in RQRlo and the AA20
Validity display bit (hereinafter abbreviated as V bit) that indicates the validity of the entry registered in the field (signal line 202)
This is a circuit to investigate.

5CB30は、ストア形態情報と5AB31のエントリ
の有効性を表示する■ビットとを格納するバッファであ
る。
5CB30 is a buffer that stores store type information and the ■ bit indicating the validity of the entry in 5AB31.

5AB31は、ブロックアドレスおよびブロック内DA
アドレスを登録するバッファである。
5AB31 is the block address and DA in the block.
This is a buffer for registering addresses.

5MB52は、演算実行部より送られてくるバイト単位
にストア実行の可否を示すストアマスクを登録するバッ
ファである。
5MB 52 is a buffer that registers a store mask indicating whether or not store execution is possible in units of bytes sent from the arithmetic execution unit.

5DB33は、演算実行部より送られてくるストアデー
タを登録するバッファである。
The 5DB 33 is a buffer that registers store data sent from the calculation execution unit.

検出回路34は、後続するリード要求に対して5AB3
1の各エントリ単位に同一のブロックに対するストア要
求が処理中であるか否かを検出する回路である。
The detection circuit 34 detects 5AB3 in response to a subsequent read request.
This circuit detects whether a store request for the same block is being processed in each entry unit.

検出回路35は、後続するリード要求に対して同一の8
バイト境界に対するストア要求が処理中であるか否かを
検出する回路である。
The detection circuit 35 detects the same 8
This circuit detects whether a store request for a byte boundary is being processed.

DA40は、データを記憶するキャッシュメモリのデー
タ部である。
DA40 is a data section of a cache memory that stores data.

BCl350は、BB51を制御用するためのバイパス
バッファストア待ちフラグ等を保持するバッファである
The BCl 350 is a buffer that holds a bypass buffer store wait flag and the like for controlling the BB 51.

BB51は、主記憶リードデータを登録するバッファで
ある。
BB51 is a buffer for registering main memory read data.

BAR52は、BB51に登録されているブロックのブ
ロックアドレスを保持するレジスタである。
BAR52 is a register that holds the block address of the block registered in BB51.

検出回路53は、RQRIOからのブロックアドレス(
信号線106)とBAR52に保持されたブロックアド
レスとの一致を検出するとともに、BB51のエントリ
単位にBCB50内に保持されるエントリ有効ピント(
以下、REVビットと略記する)を調べる回路である。
The detection circuit 53 receives the block address (
In addition to detecting a match between the signal line 106) and the block address held in the BAR 52, the entry valid pinpoint (
This is a circuit that checks the REV bit (hereinafter abbreviated as the REV bit).

切替回路61〜66は、データまたはアドレスを切り替
える回路である。
The switching circuits 61 to 66 are circuits that switch data or addresses.

制御回路70は、図に示された各部を制御するとともに
主記憶装置に主記憶要求コードを送出する回路である。
The control circuit 70 is a circuit that controls each section shown in the figure and sends a main memory request code to the main memory device.

本実施例においては、データの処理幅は8バイト単位で
1ブロツクは64バイトである。すなわち、5DB33
、DA40およびBB51の各エントリは8バイト長で
あり、BB51は8エントリから構成されている。
In this embodiment, the data processing width is 8 bytes, and one block is 64 bytes. That is, 5DB33
, DA40, and BB51 are 8 bytes long, and BB51 is composed of 8 entries.

次に、このように構成された本実施例のストアチェック
方式の動作について説明する。
Next, the operation of the store check method of this embodiment configured as described above will be explained.

RQRIOのリクエストコード部の出力は信号線107
を介して制御回路70に送られ、リクエストコードが解
読されて図に示される各部に必要な制御信号が生成され
て分配される。また、RQRIOのアドレス部の出力は
、必要に応じて信号線101〜106を介して図に示さ
れる各部に分配される。
The output of the request code part of RQRIO is signal line 107
The request code is sent to the control circuit 70 via the request code, and the request code is decoded and necessary control signals are generated and distributed to each section shown in the figure. Further, the output of the address section of RQRIO is distributed to each section shown in the figure via signal lines 101 to 106 as necessary.

AA20はセットアドレス(信号線101)で読み出さ
れ、読み出されたアドレスは検出回路21でRQRlo
内のキーアドレス(信号線102)との一致を検出され
る。また、検出回路21では、AA20内に記憶された
エントリの有効性を表示する■ビット(信号線202)
が調べられる。キーアドレスが一致しかつVビットがオ
ンの場合には、信号線211上のファウンドブロソク信
号(以下、FDB信号と略記する)がオンにされ制御回
路70に目的とするデータがキャッシュメモリに存在す
ることが通知される。
AA20 is read by the set address (signal line 101), and the read address is read by the detection circuit 21 as RQRlo.
A match with the key address (signal line 102) within is detected. In addition, in the detection circuit 21, a ■ bit (signal line 202) that indicates the validity of the entry stored in the AA 20
can be investigated. When the key addresses match and the V bit is on, the found block signal (hereinafter abbreviated as FDB signal) on the signal line 211 is turned on and the control circuit 70 is informed that the target data exists in the cache memory. You will be notified that

RQRloからのキーアドレスとセットアドレスとを合
わせたブロックアドレス(信号線106)は、検出回路
53でBAR52から出力されるブロックアドレスとの
一致を検出される。また、検出回路53では、BCB5
0内にBB51のエントり単位に保持されたBEVビッ
トが調べられる。ブロックアドレスが一敗しかつBEV
ビ・7トがオンの場合には、信号線531を介してバイ
パスバッファ一致信号(以下、BBM信号と略記する)
が制御回路70に通知される。
The block address (signal line 106), which is a combination of the key address and set address from RQRlo, is detected by the detection circuit 53 to match the block address output from the BAR 52. In addition, in the detection circuit 53, BCB5
The BEV bit held in each entry of BB51 in 0 is examined. Block address lost and BEV
When bit 7 is on, a bypass buffer match signal (hereinafter abbreviated as BBM signal) is sent via the signal line 531.
is notified to the control circuit 70.

RQRIOにリード要求が受は付けられると、制御回路
70でFDB信号とBBM信号とが調べられる。
When a read request is accepted to RQRIO, the control circuit 70 checks the FDB signal and the BBM signal.

FDB信号がオフの場合は、主記憶装置に対してブロッ
クリード要求が送出される。一方、主記憶リードデータ
が返送されるまでの間、RQRIOはそのまま保持され
るとともに、AA20のエントリおよびBAR52にR
QRIO内のキーアドレス(信号線102)およびブロ
ックアドレス(信号線106)をそれぞれ登録するとと
もに、BB51に有効なデータが存在するときはDA4
0にデータを移送する。
When the FDB signal is off, a block read request is sent to the main storage device. On the other hand, until the main memory read data is returned, RQRIO is held as is, and RQRIO is stored in the entry of AA20 and BAR52.
In addition to registering the key address (signal line 102) and block address (signal line 106) in QRIO, if valid data exists in BB51, DA4
Transfer data to 0.

DA40へのデータの移送は、1回目の主記憶り−ドデ
ークが返送されるまでの間を利用して行われる。
The data is transferred to the DA 40 using the period until the first main memory data is returned.

ブロックリード要求は主記憶装置の1ブロツクの転送要
求であり、本実施例では1ブロツクは64バイトの大き
さであるが、主記憶装置とのデータ転送幅は8バイトで
あるため、主記憶リードデータの返送が8回行われる。
A block read request is a request to transfer one block of the main memory. In this example, one block is 64 bytes in size, but since the data transfer width with the main memory is 8 bytes, the main memory read request is a request to transfer one block of the main memory. Data is returned eight times.

1回目に返送された主記憶リードデータは切替回路63
を介してBB51に登録されるとともに切替回路64お
よび62を介してリプライデータとして要求元に返送さ
れる。2回目以降に返送される主記憶リードデータは、
BB51に登録される。
The main memory read data returned the first time is sent to the switching circuit 63.
The data is registered in the BB 51 via the switching circuits 64 and 62 and sent back to the request source as reply data. The main memory read data returned from the second time onwards is
Registered on BB51.

FDB信号がオンの場合は、BBM信号がさらに参照さ
れる。BBM信号がオフの場合は、DAアドレス(信号
線104)でDA40から読み出されたデータが切替回
路62を介してリプライデータとして要求元に返送され
る。BBM信号がオンの場合は、ブロック内DAアドレ
ス(信号線105)でBB51から読み出されたデータ
が切替回路62を介してリプライデータとして要求元に
返送される。
If the FDB signal is on, the BBM signal is further referenced. When the BBM signal is off, data read from the DA 40 at the DA address (signal line 104) is sent back to the request source as reply data via the switching circuit 62. When the BBM signal is on, data read from the BB 51 at the intra-block DA address (signal line 105) is sent back to the request source as reply data via the switching circuit 62.

リード要求の処理の概要は上述のようであるが、さらに
処理途中のストア要求がストアバッファに残っている場
合でかつそのストアのエリアがリード要求のエリアと同
一である場合には、途中のストア要求の処理が終了する
までリード要求の処理は待ち合わされることがある。
The outline of read request processing is as described above, but in addition, if a store request that is being processed remains in the store buffer and the area of that store is the same as the area of the read request, the store request that is being processed will be Processing of a read request may be delayed until processing of the request is completed.

RQRIOにストア要求が受は付けられると、ブロック
アドレス(信号線106)とブロック内DAアドレス(
信号49105)とが5AB31に登録され、制御回路
70で解読されたストア形態情報とストアバッファのエ
ントリの有効を示すVビット(以下、SAVビットと略
記する)とが5CB30に登録される。このとき、SA
Vビットはオンとして登録され、以下に示すストア要求
の処理が終了した時点でオフにされる。
When a store request is accepted to RQRIO, the block address (signal line 106) and DA address within the block (
The store format information decoded by the control circuit 70 and the V bit (hereinafter abbreviated as SAV bit) indicating the validity of the store buffer entry are registered in the 5CB30. At this time, SA
The V bit is registered as on, and is turned off when the following store request processing is completed.

ストア要求のアドレスの登録に遅れて演算実行部からス
トアデータ(8バイト)およびバイト単位のストア実行
の可否を示すストアマスクが送られてきて、5DB33
および5MB52にそれぞれ登録される。
After registering the address of the store request, the arithmetic execution unit sends store data (8 bytes) and a store mask indicating whether or not the store can be executed in units of bytes.
and 5MB52, respectively.

この後、5CB30.5AB31.5MB52および5
DB33が同時に読み出され、5CB30からの出力が
主記憶要求コードとして、5AB31からの出力が主記
憶要求アドレスとして、5MB52からの出ノ]が主記
憶ストアマスクとして、5DB33からの出力が主記憶
ストアデータとしてそれぞれ主記憶装置に送出され、ス
トア要求の処理が終了する。
After this, 5CB30.5AB31.5MB52 and 5
DB33 is read at the same time, the output from 5CB30 is the main memory request code, the output from 5AB31 is the main memory request address, the output from 5MB52 is the main memory store mask, and the output from 5DB33 is the main memory store. Each data is sent to the main storage device, and the store request processing ends.

ストア要求時にFDB信号がオンならば、主記憶装置へ
のストア要求の送出に先き立ち、DA40へのストアデ
ータの書込みが実行される。
If the FDB signal is on at the time of a store request, writing of store data to the DA 40 is executed prior to sending the store request to the main storage device.

同一エリアへのストア要求が存在した場合には、リード
要求はストア要求の処理が終了するまでその処理が待た
される。
If there is a store request to the same area, processing of the read request is made to wait until the processing of the store request is completed.

ストア要求の処理において、ストア要求アドレスがBB
51上のブロックに対するものか否かが検出回路53で
調べられ、BBM信号により制御回路70に通知される
。BBM信号がオンの場合は、ストア要求の処理に先行
してBB51からDA40への1ブロツク分のデータの
移送が行われ、この後にストア要求が処理されて、DA
40上のデータと主記憶装置上のデータとの間で不一致
が生じないよう制御される。
When processing a store request, the store request address is BB.
The detection circuit 53 checks whether the detected data corresponds to the block above 51, and the control circuit 70 is notified by the BBM signal. When the BBM signal is on, one block of data is transferred from the BB51 to the DA40 prior to processing the store request, and then the store request is processed and transferred to the DA40.
The data on the main storage device 40 are controlled so that there is no mismatch between the data on the main storage device and the data on the main storage device.

ストア要求の処理が即時に終了できないことにより、後
続するリード要求の処理においては、同一エリアに対し
て処理中のストア要求が残っているか否かを判定して後
続するリード要求を制御しなければならない。。
Since the processing of a store request cannot be completed immediately, in processing a subsequent read request, it is necessary to control the subsequent read request by determining whether there are any remaining store requests being processed for the same area. It won't happen. .

RQRIO内のリクエストコード部には、8バイト境界
に対し8バイト全書込みであることを示す全書込みフラ
グが含まれており、ストア要求の処理時にSAVビット
と同時に全書込みフラグが5CB30に登録される。後
続するリード要求に対し5AB31の各エントリ単位に
同一のブロックに対するストア要求が処理中であるか否
かが検出回路34により検出される。また、後続するリ
ード要求に対し同一の8バイト境界に対するストア要求
が処理中であるか否かが検出回路35により検出される
The request code section in RQRIO includes an all write flag indicating that all 8 bytes are written to an 8 byte boundary, and the all write flag is registered in 5CB30 at the same time as the SAV bit when processing a store request. . The detection circuit 34 detects whether or not a store request for the same block is being processed for each entry of 5AB31 in response to a subsequent read request. Further, the detection circuit 35 detects whether or not a store request for the same 8-byte boundary is being processed in response to a subsequent read request.

検出回路34は、各エントリ単位でのアドレスの一致と
SAVビットのオン、オフとを判定し、その結果を信号
線341を介して各エントリ単位に制御回路70に送出
し、制御回路70で各エントリ単位に一致の論理和を作
成する。この論理和信号をストアブロックアドレスマツ
チ信号(以下、RAM信号と略記する)と呼ぶ。
The detection circuit 34 determines whether the address matches each entry and whether the SAV bit is on or off, and sends the result to the control circuit 70 for each entry via the signal line 341. Creates a logical OR of matches on an entry-by-entry basis. This OR signal is called a store block address match signal (hereinafter abbreviated as RAM signal).

同様に、検出回路35から検出される論理和をストアD
Aアドレスマツチ信号(以下、CAM信号と略記する)
と呼ぶ。
Similarly, the logical sum detected from the detection circuit 35 is stored in D
A address match signal (hereinafter abbreviated as CAM signal)
It is called.

ストア要求の処理の際に検出回路53によりBB51に
登録されているブロックに対するストアであることが検
出された場合には、そのブロック内DAアドレスに対応
するBCB50のエントり内に含まれるバイパスバッフ
ァストア待ちフラグ(以下、BSWフラグと略記する)
をオンとして登録する。
When processing a store request, if the detection circuit 53 detects that the store is for a block registered in the BB 51, the bypass buffer store included in the entry of the BCB 50 corresponding to the DA address in the block is detected. Wait flag (hereinafter abbreviated as BSW flag)
Register as on.

BSWフラグはリード要求の処理で参照され、BBM信
号がオンのときにBSWフラグがオンならばBB51の
読出しは待たされ、BSWフラグがオフなら即座にBB
51が読み出される。
The BSW flag is referenced in the processing of a read request. If the BSW flag is on when the BBM signal is on, reading of BB51 is made to wait, and if the BSW flag is off, reading of BB51 is performed immediately.
51 is read out.

上述の処理は、前述のRAM信号、CAM信号およびF
DB信号に応してさらに詳細な処理が実行される。
The above-mentioned processing is performed on the above-mentioned RAM signal, CAM signal and F
Further detailed processing is performed in response to the DB signal.

(IIFDB信号がオフの場合 この場合は、BBM信号およびBSWフラグは必ずオフ
である。
(When the IIFDB signal is off. In this case, the BBM signal and BSW flag are always off.

(1−1)   B A M信号がオフの場合主記憶装
置にブロックリード要求を送出し、主記憶装置からデー
タを読み出し・て要求元に返送する。
(1-1) When the BAM signal is off, a block read request is sent to the main memory, data is read from the main memory, and is returned to the request source.

(1−2)  RA M信号がオンの場合ストアデータ
が5DB33に受は付けられ、主記憶装置にストア要求
を送出するまでリード要求は待たされ、ストア要求送出
後にブロックリード要求を主記憶装置に送出して、読み
出したデータを要求元に返送する。ただし、CAM信号
がオンでその要因となったエントリの5CB30内の全
書込みフラグがオンの場合は、ストアデータを5DB3
3に受は付けた後に主記憶装置にストア要求を送出する
と同時に切替回路62を介して要求元にストアデータを
返送する。したがって、主記憶装置へのブロックリード
要求は不要となり、データも高速に返送が可能である。
(1-2) When the RAM signal is on, store data is accepted in the 5DB33, read requests are made to wait until the store request is sent to the main storage, and block read requests are sent to the main storage after the store request is sent. The read data is sent back to the request source. However, if the CAM signal is on and all write flags in 5CB30 of the entry that caused it are on, the store data will be transferred to 5DB3.
3, the store request is sent to the main storage device, and at the same time, the store data is sent back to the request source via the switching circuit 62. Therefore, there is no need to request a block read to the main memory, and data can be returned at high speed.

f21FDB信号がオンの場合 (2−1)  RAM信号がオフの場合この場合は、B
SWフラグがオンのエントリは存在しない。
When the f21FDB signal is on (2-1) When the RAM signal is off In this case, B
There are no entries with the SW flag on.

BBM信号がオンならば、BB51からデータが読み出
され要求元に返送される。133M信号がオフならば、
DA40からデータが読み出され要求元に返送される。
If the BBM signal is on, data is read from the BB51 and sent back to the request source. If the 133M signal is off,
Data is read from the DA 40 and sent back to the request source.

(2−2)   B A M信号がオンの場合BBM信
号がオンでかつBSWフラグがオフならば、BB51か
らデータを読み出し要求元に返送する。BBM信号がオ
ンでかつBSWフラグがオンならば、対応するストアデ
ータが5DB33に登録されるまでリード要求の処理は
待たされ、対応する5CB30内の全書込みフラグが調
べられる。
(2-2) When the BAM signal is on If the BBM signal is on and the BSW flag is off, data is read from the BB51 and sent back to the request source. If the BBM signal is on and the BSW flag is on, the processing of the read request is delayed until the corresponding store data is registered in the 5DB 33, and all write flags in the corresponding 5CB 30 are checked.

全書込みフラグがオンならば、5DB33からストアデ
ータを読み出し、BB51に書き込む際に切替回路62
を介して要求元にストアデータを返送する。
If the all write flag is on, the switching circuit 62 reads the store data from the 5DB33 and writes it to the BB51.
The store data is sent back to the requester via .

全書込みフラグがオフならば、5DB33から出力され
るストアデータをBB51に部分書込みした後に、BB
51から読み出したデータを要求元に返送する。BBM
信号がオフの場合にCAM信号がオフならば、DA40
からデータを読み出して即座に要求元に返送する。CA
M信号がオンでかつその要因のエントリの全書込みフラ
グがオンならば、5DB33にストアデータを受は付け
た後に、5DB33からのストアデータをDA40に書
き込むと同時に要求元にバイパスして返送する。全書込
みフラグがオフならば、5DB33の出力をD A 4
.0に部分書込みした後に、DA40からデータを読み
出して要求元に返送する。
If the full write flag is off, after partially writing the store data output from 5DB33 to BB51,
The data read from 51 is returned to the request source. BBM
If the signal is off and the CAM signal is off, the DA40
The data is read from the server and immediately sent back to the requester. CA
If the M signal is on and the all write flag of the entry for that factor is on, after accepting the store data in the 5DB 33, the store data from the 5DB 33 is written to the DA 40 and at the same time is bypassed and returned to the request source. If the all write flag is off, the output of 5DB33 is DA4
.. After partially writing to 0, the data is read from the DA 40 and sent back to the request source.

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

以上説明したように本発明は、ストアバ・7フアと、全
書込みフラグを保持するストア制御バッファと、有効性
表示ビア)群と、主記憶読出しアドレスと書込みアドレ
スとの一致を検出するアドレス一致検出手段と、これら
に基づいてストアデータをバイパスさせて要求元に返送
するように制御する制御手段とを設けることにより、リ
ード要求時に先行するストア処理が終了していなかった
場合に、ストアバッファ内のデータをバイパスさせて要
求元に返送させることにより、全書込み後のデータの読
出しを高速に処理できる効果がある。
As explained above, the present invention includes a store buffer, a store control buffer that holds all write flags, a validity display via) group, and an address match detection that detects a match between a main memory read address and a write address. By providing a means and a control means for controlling the store data to be bypassed and returned to the request source based on these, if the preceding store processing has not been completed at the time of a read request, the data in the store buffer is By bypassing the data and returning it to the request source, there is an effect that data reading after all writing can be processed at high speed.

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

図は本発明の一実施例を示すブロック図である。 図において、 10・・・・・リクエストレジスタ、 20・・・・・アドレスアレイ、 21.34,35.53  ・・・検出回路、30・・
・・・ストア制御バッファ、 31・・・・・ストアアドレスバッファ、32・・・・
・ストアマスクバッファ、33・・・・・ストアデータ
ハソファ、40・・・・・データアレイ、 50・・・・・バイパスバッファ制御ハソファ、51・
・・・・バイパスバッファ、 61〜66・・・切替回路、 70・・・・・制御回路である。
The figure is a block diagram showing one embodiment of the present invention. In the figure, 10...request register, 20...address array, 21.34, 35.53...detection circuit, 30...
...Store control buffer, 31...Store address buffer, 32...
・Store mask buffer, 33...Store data buffer, 40...Data array, 50...Bypass buffer control buffer, 51...
. . . Bypass buffer, 61 to 66 . . . Switching circuit, 70 . . . Control circuit.

Claims (1)

【特許請求の範囲】 キャッシュメモリを有する情報処理装置において、 主記憶装置およびキャッシュメモリへの書込みアドレス
およびこの書込みアドレスに対応する書込みデータを複
数エントリ保持できるストアバッファと、 前記書込みデータが全書込みであることを表示する全書
込みフラグを保持するストア制御バッファと、 前記ストアバッファの有効性を各エントリ対応に表示す
る有効性表示ビット群と、 演算装置と前記キャッシュメモリとの間の処理データ幅
単位でリード要求の主記憶読出しアドレスと前記ストア
バッファ内の前記有効性表示ビット群で有効表示されて
いるエントリの書込みアドレスとの一致を検出するアド
レス一致検出手段と、前記主記憶読出しアドレスが前記
キャッシュメモリに存在する場合に前記アドレス一致検
出手段からの一致出力に応じて前記ストアバッファ内の
ストアデータを前記キャッシュメモリにストアすると同
時にバイパスできるまで前記リード要求を待たせ、前記
主記憶読出しアドレスが前記キャッシュメモリに存在し
ない場合に前記アドレス一致検出手段からの一致出力と
前記全書込みフラグとに応じて前記ストアバッファ内の
ストアデータを前記主記憶装置に送出すると同時にバイ
パスできるまで前記リード要求を待たせるかまたは前記
ストアバッファ内のストアデータを前記主記憶装置にス
トアした後に前記主記憶装置に対して前記リード要求を
送出するかを制御する制御手段と、を有することを特徴
とするストアチェック方式。
[Scope of Claims] An information processing device having a cache memory, comprising: a store buffer capable of holding a plurality of entries of a write address to a main storage device and a cache memory, and write data corresponding to the write address; a store control buffer that holds an all-write flag that indicates that there is a write flag; a group of validity display bits that display the validity of the store buffer for each entry; and a processing data width unit between the arithmetic unit and the cache memory. address matching detection means for detecting a match between a main memory read address of a read request and a write address of an entry that is indicated as valid by the validity indicating bit group in the store buffer; If the store data exists in the memory, the store data in the store buffer is stored in the cache memory in response to a match output from the address match detection means, and at the same time the read request is made to wait until the data can be bypassed. If the data does not exist in the cache memory, the store data in the store buffer is sent to the main storage device according to the match output from the address match detection means and the all write flag, and at the same time, the read request is made to wait until the data can be bypassed. or a control means for controlling whether to send the read request to the main storage device after storing the store data in the store buffer in the main storage device. .
JP61016315A 1986-01-28 1986-01-28 Storage checking system Pending JPS62174846A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61016315A JPS62174846A (en) 1986-01-28 1986-01-28 Storage checking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61016315A JPS62174846A (en) 1986-01-28 1986-01-28 Storage checking system

Publications (1)

Publication Number Publication Date
JPS62174846A true JPS62174846A (en) 1987-07-31

Family

ID=11913074

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61016315A Pending JPS62174846A (en) 1986-01-28 1986-01-28 Storage checking system

Country Status (1)

Country Link
JP (1) JPS62174846A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02257343A (en) * 1989-03-30 1990-10-18 Nec Corp Store buffer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02257343A (en) * 1989-03-30 1990-10-18 Nec Corp Store buffer

Similar Documents

Publication Publication Date Title
JPH0345407B2 (en)
JP2695017B2 (en) Data transfer method
JPH0532775B2 (en)
US4737908A (en) Buffer memory control system
JPS62174846A (en) Storage checking system
JP3130569B2 (en) Cache memory store method
JPH0210446A (en) Buffer storage device
JPS60701B2 (en) data processing equipment
JP2580587B2 (en) Address translation buffer
JPH0769863B2 (en) Data processing device
JPH01205354A (en) Cache memory device
JP3226557B2 (en) Multiprocessor system
JPH05158793A (en) Parallel cache memory
JP2703255B2 (en) Cache memory writing device
JPH0769861B2 (en) Control method of bypass buffer in cache memory controller
KR970010367B1 (en) On-board interleaving apparatus and method of main memory on multi processor system
JP3437224B2 (en) Delay invalidation method
JPH01205355A (en) Cache memory
JPH0548498B2 (en)
JPH02259945A (en) Storing processing system
JPH02176839A (en) Information processor
JPS6266348A (en) Store check system for cache memory controller
JPS5948880A (en) Buffer memory
JPH04160543A (en) Cache device
JPS62154039A (en) Buffer memory control system