JPS63317859A - Control system for buffer storage way - Google Patents

Control system for buffer storage way

Info

Publication number
JPS63317859A
JPS63317859A JP62154015A JP15401587A JPS63317859A JP S63317859 A JPS63317859 A JP S63317859A JP 62154015 A JP62154015 A JP 62154015A JP 15401587 A JP15401587 A JP 15401587A JP S63317859 A JPS63317859 A JP S63317859A
Authority
JP
Japan
Prior art keywords
buffer storage
way
address
tag
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.)
Granted
Application number
JP62154015A
Other languages
Japanese (ja)
Other versions
JPH0693230B2 (en
Inventor
Akihiro Maruo
丸尾 昭宏
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62154015A priority Critical patent/JPH0693230B2/en
Publication of JPS63317859A publication Critical patent/JPS63317859A/en
Publication of JPH0693230B2 publication Critical patent/JPH0693230B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the capacity of a buffer storage by using the encoding signal for comparison result of a tag part as a way reading address of the buffer storage. CONSTITUTION:The tag parts 2 corresponding to the ways 0-n of a buffer storage BS1 are retrieved by the values of the low-order bits (tag addresses) of a main memory address set at an MS address register 20. Then a comparator 21 performs comparison of high-order bits of a register 20. In case a block containing the data that gave an access to the BS1 exists (hit), the coincident output signal of the comparator 21 is encoded by an encoder 22. Then an encoding signal (1) is set at a part of a BS address register 23 together with the low-order bits of the register 20. Thus data are read out of the BS1. In such a constitution, no memory element is required for each way and a compact buffer register is obtained.

Description

【発明の詳細な説明】 〔概要〕 (1)記憶装置の一部の写しを格納しているパンファス
トレージ(BS)を備えたデータ処理装置において、タ
グ部の検索結果をエンコードした値■を一旦格納するバ
ッファストレージ(BS)アドレスレジスタを設けるこ
とにより、8亥バツフアストレージ(BS)のアドレス
方向にウェイデータを持たせるようにしたものである。
[Detailed Description of the Invention] [Summary] (1) In a data processing device equipped with a pamphlet storage (BS) that stores a copy of a part of a storage device, a value ■ obtained by encoding a search result of a tag part is By providing a buffer storage (BS) address register for temporary storage, way data can be held in the address direction of the buffer storage (BS).

(2)  (1)項のバッファストレージウェイ制御方
式において、LRUが最新を示しているウェイを、タグ
部の検索と同時に予測して読み出し■、上記バッファス
トレージ(BS)アドレスレジスタの一部に設定する手
段を設けることにより、該LRUが示す最新のウェイを
先行して読み出し、該LRUが示す最新のウェイとタグ
部の検索結果とが一致した時には、該先行読み出しウェ
イのデータを使用するようにしたものである。
(2) In the buffer storage way control method described in (1), the way whose LRU is the latest is predicted and read at the same time as the tag section is searched, and set as part of the buffer storage (BS) address register described above. By providing a means to read the latest way indicated by the LRU in advance, and when the latest way indicated by the LRU and the search result of the tag section match, the data of the pre-read way is used. This is what I did.

〔産業上の利用分野〕[Industrial application field]

本発明は、記憶装置の一部の写しを格納しているバッフ
ァストレージを備えたデータ処理装置におけるバッファ
ストレージウェイ制御方式に関する。
The present invention relates to a buffer storage way control method in a data processing device equipped with a buffer storage that stores a copy of a portion of a storage device.

最近の半導体技術の著しい進歩に伴って、主記憶装置(
MS)は大容量化の方向に進んでおり、中央処理装置(
CPU)等の制御装置は、高速化されていて、その速度
差が開く動向にあり、この速度差を吸収する方策として
、例えば、比較°的に大容量で、中速度のグローバルバ
ッファストレージ(CBS)と。
With the recent remarkable progress in semiconductor technology, the main memory (
MS) is moving toward larger capacity, and central processing units (
Control devices such as CPUs are becoming faster and the speed difference is widening, and as a measure to absorb this speed difference, for example, relatively large capacity and medium speed global buffer storage (CBS) )and.

高速ではあるが小容量のローカルバッファストレージ(
LBS)とを備えた、所謂2階層のキャッシュメモリ方
式を採ることが多くなっている。
Fast but small local buffer storage (
A so-called two-layer cache memory system is increasingly being adopted.

一方、中型クラスの計算機システムにおいては、高速化
と共に、その経済性指向から、システム全体に対する小
型化の要求が強く、上記2階層のキャッシュメモリ方式
を採っている場合の、グローバルバッファストレージ(
CBS)等においては、その小型化が必須条件となる。
On the other hand, in medium-sized computer systems, there is a strong demand for miniaturization of the entire system due to increased speed and economic efficiency.
CBS), etc., miniaturization is an essential condition.

然して、キャッシュメモリのタグ部は、比較的小容量で
済むのに比較して、データ部は、前述のように大容量と
なる為、そのデータ部の小型化が必要とされる。
However, while the tag section of the cache memory has a relatively small capacity, the data section has a large capacity as described above, so it is necessary to downsize the data section.

〔従来の技術と発明が解決しようとする問題点]第3図
は従来のバッファストレージウェイ制御方式を説明する
図であり、(a)は全体の構成例を示し、(b)は動作
タイムチャートを示している。
[Prior art and problems to be solved by the invention] Fig. 3 is a diagram explaining a conventional buffer storage way control system, in which (a) shows an example of the overall configuration, and (b) shows an operation time chart. It shows.

前述のように、高速のデータ処理装置においては、主記
憶装置(MS)の写しを高速で、小容量のメモリ、即ち
、バッファストレージ(以下、BSと云う)に格納して
おき、主記憶装置(MS)に対する見掛は上のアクセス
タイムの向上を図る、所謂キャッシュメモリ方式を採り
入れることは良く行われている技術である。
As mentioned above, in a high-speed data processing device, a copy of the main memory (MS) is stored at high speed in a small-capacity memory, that is, a buffer storage (hereinafter referred to as BS). It is a common technique to adopt a so-called cache memory method, which apparently aims to improve the access time for (MS).

通常、該BSは、その効果を向上させる為に、本図に示
すように、複数個のBSウェイ(0〜n) 1からなり
、同時に該複数個のBSウェイ(0〜n) 1の読み出
しを行う。
Normally, in order to improve its effectiveness, the BS consists of a plurality of BS ways (0 to n) 1, as shown in this figure, and simultaneously reads out the plurality of BS ways (0 to n) 1. I do.

又、同時に、各ウェイに対応したタグ部(0−n)2を
検索して、どのウェイに、主記憶iff(MS)の、該
アクセス対象ブロックの写しがあるかを、比較器(0〜
n)21で調べ、その比較器(0〜n)21の一致信号
によって、上記各BSウェイ(0〜n) 1からのデー
タを選択回路11で選択して読み出していた。
At the same time, the tag section (0-n) 2 corresponding to each way is searched, and comparators (0-n) are used to determine which way has a copy of the block to be accessed in the main memory if (MS).
Based on the matching signal of the comparator (0 to n) 21, data from each BS way (0 to n) 1 is selected and read out by the selection circuit 11.

((b)図のタイムチャート参照) その為、該BSOウェイ(0〜n) 1のウェイの数だ
け、別々のメモリ素子が必要となり、部品点数の増大を
招き、該BSを備えた中型クラスの計算機システムの小
型化を妨げる要因となる問題があった。
(Refer to the time chart in figure (b)) Therefore, separate memory elements are required for the number of BSO ways (0 to n) 1, leading to an increase in the number of parts. There were problems that hindered the miniaturization of computer systems.

本発明は上記従来の欠点に鑑み、複数個のウェイからな
るバッファストレージ(BS)を備えた計算機システム
において、比較的大容量となるバッファストレージ(B
S)の各ウェイのデータをアドレス方向に格納すること
で、該バッファストレージ(BS)を小型化して、且つ
高速化する方法を提供することを目的とするものである
In view of the above conventional drawbacks, the present invention provides a computer system equipped with a buffer storage (BS) consisting of a plurality of ways, which has a relatively large capacity.
It is an object of this invention to provide a method of downsizing the buffer storage (BS) and increasing the speed by storing data of each way of S) in the address direction.

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

第1図は、本発明のバッファストレージウェイ制御方式
の構成例を示した図である。
FIG. 1 is a diagram showing an example of the configuration of a buffer storage way control method according to the present invention.

本発明においては、 (1)記憶装置の一部の写しを格納しているパンファス
トレージ(BS) 1を備えたデータ処理装置において
、 タグ部2の比較結果のエンコード信号■を、上記バッフ
ァストレージ(BS) 1のウェイを読み出すアドレス
の一部に用いるように構成する。
In the present invention, (1) In a data processing device equipped with a buffer storage (BS) 1 that stores a copy of a part of the storage device, the encoded signal ■ of the comparison result of the tag section 2 is sent to the buffer storage described above. (BS) Configure so that way 1 is used as part of the read address.

(2)上記タグ部2の比較結果のエンコード信号■を、
上記バッファストレージ(BS) 10ウエイを読み出
すアドレスの一部に用いる方式において、LRU 28
の値からヒツトウェイを予測■して保持するレジスタ2
5と、 タグ部2での検索結果と、上記ヒツトウェイ予測結果と
を比較する手段26とを設け、上記の比較結果が一致し
た場合には、上記予測したウェイアドレス■をバッファ
ストレージ(BS)1のウェイを読み出すアドレスの一
部に用いて、該バッファストレージ(BS) 1を読み
出し、上記の比較結果が一致しない場合には、上記タグ
部2の比較結果のエンコード信号■を、上記バッファス
トレージ(BS) 1のウェイを読み出すアドレスの一
部に用いるように構成する。
(2) The encoded signal ■ of the comparison result of the tag part 2,
In the method of using the buffer storage (BS) 10 ways as part of the read address, LRU 28
Register 2 predicts the hitway from the value of and holds it.
5, and a means 26 for comparing the search result in the tag unit 2 and the hitway prediction result, and when the comparison result matches, the predicted way address ■ is stored in the buffer storage (BS) 1. The buffer storage (BS) 1 is read using the ways of the tag part 2 as part of the read address, and if the above comparison results do not match, the encoded signal ■ of the comparison result of the tag section 2 is read out from the buffer storage (BS) 1. BS) Configure so that way 1 is used as part of the read address.

〔作用] 即ち、本発明によれば、 (1)記憶装置の一部の写しを格納しているバッファス
トレージ(BS)を備えたデータ処理装置において、タ
グ部の検索結果をエンコードした値■を一旦格納するバ
ッファストレージ(BS)アドレスレジスタを設けるこ
とにより、バッファストレージのアドレス方向にウェイ
データを持たせるようにしたものである。
[Operation] That is, according to the present invention, (1) In a data processing device equipped with a buffer storage (BS) that stores a copy of a part of a storage device, a value ■ that is an encoded result of a search in a tag section is encoded. By providing a buffer storage (BS) address register for temporary storage, way data is provided in the address direction of the buffer storage.

(2)  (1)項のバッファストレージウェイ制御方
式において、LRUが最新を示しているウェイを、タグ
部の検索と同時に予測して読み出し■、上記バッファス
トレージ(BS)アドレスレジスタの一部に設定する手
段を設けることにより、該LRUが示す最新のウェイを
先行して読み出し、該LRUが示す最新のウェイとタグ
部の検索結果とが一致した時には、該先行読み出しウェ
イのデータを使用するようにしたものである。
(2) In the buffer storage way control method described in (1), the way whose LRU is the latest is predicted and read at the same time as the tag section is searched, and set as part of the buffer storage (BS) address register described above. By providing a means to read the latest way indicated by the LRU in advance, and when the latest way indicated by the LRU and the search result of the tag section match, the data of the pre-read way is used. This is what I did.

従って、従来のように、ウェイ毎のメモリ素子が不要に
なり、バッファストレージ(BS)の小型化が実現でき
ると共に、ヒツト率の高い最新のウェイを予測して、先
行して該バッファストレージ(BS)を読み出すことに
より、高速化が図れる効果がある。
Therefore, as in the past, a memory element for each way is no longer required, and the buffer storage (BS) can be made smaller.The latest way with a high hit rate can be predicted and the buffer storage (BS) ) has the effect of increasing speed.

〔実施例〕〔Example〕

以下本発明の実施例を図面によって詳述する。 Embodiments of the present invention will be described in detail below with reference to the drawings.

前述の第1図が本発明のバッファストレージウェイ制御
方式の構成例を示した図であり、(a)は基本構成の例
を示し、(b)はバッファストレージのウェイを選択す
るのに、LRυ論理により、最新のウェイを予測して、
先行して読み出す例を示しており、第2図は、本発明に
よるウェイ選択動作のタイムチャートであって、(a)
 、 (b)は第1図の(a) 、 (b)に対応して
おり、第1図におけるエンコーダ22. BSアドレス
レジスタ23.及び読み出しウェイ予測回路24.予測
ウェイレジスタ25.比較器26、選択ゲート回路27
が本発明を実施するのに必要で手段である。尚、全図を
通して同じ符号は同じ対象物を示している。
The above-mentioned FIG. 1 is a diagram showing an example of the configuration of the buffer storage way control method of the present invention, where (a) shows an example of the basic configuration, and (b) shows how LRυ is used to select a buffer storage way. By logic, predict the latest way,
An example of reading out in advance is shown, and FIG. 2 is a time chart of the way selection operation according to the present invention, in which (a)
, (b) correspond to (a) and (b) in FIG. 1, and the encoder 22 . BS address register 23. and read way prediction circuit 24. Prediction way register 25. Comparator 26, selection gate circuit 27
are necessary and means for carrying out the present invention. Note that the same reference numerals indicate the same objects throughout the figures.

以下、第1図、第2図によって、本発明のバッファスト
レージウェイ制御方式を説明する。
Hereinafter, the buffer storage way control method of the present invention will be explained with reference to FIGS. 1 and 2.

先ず、第1図、第2図の(a)によって、本発明のバッ
ファストレージウェイ制御方式の基本動作を説明する。
First, the basic operation of the buffer storage way control system of the present invention will be explained with reference to FIGS. 1 and 2(a).

第1図(a)において、図示していない処理装置から、
MSアドレスレジスタ20にセットされた主記憶アドレ
スの下位ビット (タグアドレス)の値により、BS 
1の各ウェイ(0〜n)に対応したタグ部(0〜n) 
2を検索し、比較器(0〜n)21によって、MSアド
レスレジスタ20の上位ビット (比較アドレス)との
比較を行う。(第2図(a)図のタイムチャートのサイ
クル1.2参照) ここで、若し、該タグ部(0〜n)2に該当したアドレ
スが存在しない場合は、ヒツトミスとして、図示してい
ない主記憶装置(MS)から該当データを含むデータブ
ロックをムーブインして、BS 1の空きブロックに登
録する。この時、該BS 1に空きブロックが存在しな
い時には、公知のLRU機構28゜29によって、最も
古いウェイを検索し、酸ウェイに上記ムーブインデータ
を登録する。
In FIG. 1(a), from a processing device not shown,
Depending on the value of the lower bits (tag address) of the main memory address set in the MS address register 20, the BS
Tag part (0 to n) corresponding to each way (0 to n) of 1
2 is searched, and the comparator (0 to n) 21 compares it with the upper bits (comparison address) of the MS address register 20. (Refer to cycle 1.2 of the time chart in Figure 2 (a)) Here, if there is no address that corresponds to the tag part (0 to n) 2, it is considered a hit error and the address is not shown. A data block containing the relevant data is moved in from the main memory (MS) and registered in an empty block of BS1. At this time, if there is no free block in the BS 1, the oldest way is searched for using the known LRU mechanism 28, 29, and the move-in data is registered in the acid way.

若し、該タグ部(0〜n) 2の内容(タグアドレス)
が、MSアドレスレジスタ20の上位ビットである比較
アドレスと一致した場合、つまり、BS 1にアクセス
したデータを含むブロックが存在している場合(ヒツト
)には、該比較器(0〜n)21の一致出力信号がエン
コーダ22によってエンコードされ、該エンコード信号
■が上記MSアドレスレジスタ20の下位ビットと共に
、本発明のBSアドレスレジスタ23の一部(例えば、
最下位、或いは最上位等)に設定される。(第2図(a
)のサイクル2−03参照) 次に、第2図(a)で示したサイクル3.4において、
BS lに対する読み出し動作が行われ、サイクル4に
おいて、処理装置に該読み出しデータが渡されるように
機能する。
If the tag part (0 to n) 2 contents (tag address)
matches the comparison address which is the upper bit of the MS address register 20, that is, if there is a block containing data accessed to BS 1 (hit), the comparator (0 to n) 21 The coincidence output signal of is encoded by the encoder 22, and the encoded signal {circle around (2)} is encoded along with the lower bits of the MS address register 20 as part of the BS address register 23 of the present invention (for example,
(lowest, highest, etc.). (Figure 2 (a)
)) Next, in cycle 3.4 shown in FIG. 2(a),
A read operation for BS l is performed and in cycle 4 the read data is passed to the processing unit.

この結果、第3図(b)のタイムチャートで示した従来
方式に比較して、BS 1をアクセスする為のサイクル
数が1つ増加するが、前述のグローバルバッファストレ
ージ(CBS)のように、BS読み出し時間に比較して
、タグ検索時間が短い場合には、このサイクル数の増加
は殆ど問題とはならない。
As a result, the number of cycles for accessing BS 1 increases by one compared to the conventional method shown in the time chart of FIG. 3(b), but unlike the aforementioned global buffer storage (CBS), If the tag search time is short compared to the BS read time, this increase in the number of cycles is hardly a problem.

又、第2図(a)に示したサイクル3.4において、旧
アドレスレジスタ20の値を保持すれば、上記旧アドレ
スレジスタ20の下位ビットと、エンコーダ22の出力
を保持する部分のみで、R1B51の読み出しができ、
BSアドレスレジスタ23のビット数を削減することも
できる。
Furthermore, if the value of the old address register 20 is held in cycle 3.4 shown in FIG. can be read,
The number of bits of the BS address register 23 can also be reduced.

次に、第1図、第2図(b)によって、本発明のバッフ
ァストレージ制御方式において、該バッファストレージ
(BS)のウェイを選択するのに、LRU論理により、
最新のウェイを予測して、先行して読み出す例について
説明する。
Next, as shown in FIG. 1 and FIG. 2(b), in the buffer storage control method of the present invention, the LRU logic is used to select the way of the buffer storage (BS).
An example of predicting the latest way and reading it in advance will be described.

先ず、第1図(b)において、図示していない処理装置
からMSアドレスレジスタ20にセットされた下位ビッ
ト (タグアドレス)の値により、各ウェイのタグ部(
0〜n) 2を検索し、比較器(0〜n)21によって
、上記MSアドレスレジスタ20の上位ビット (比較
アートレス)との比較を行う。(第2図(b)のサイク
ル1.2参照) 該サイクル1においては、同時に、公知のLRU28を
読み出し、読み出しウェイ予測回路24において、その
最新のウェイ■を調べ、選択ゲート回路27を介してB
Sアドレスレジスタ23の一部(最上位、又は最下位等
、本例では、最下位)にセットする。
First, in FIG. 1(b), the tag part (
0 to n) 2 and is compared with the upper bits (comparison address) of the MS address register 20 by the comparator (0 to n) 21. (See cycle 1.2 in FIG. 2(b)) In the cycle 1, the known LRU 28 is simultaneously read out, the read way prediction circuit 24 examines the latest way B
It is set in a part of the S address register 23 (the highest or lowest position, in this example, the lowest position).

又、該読み出しウェイ予測回路24の出力■を予測ウェ
イレジスタ25に格納し、サイクル2において、上記タ
グ部2の検索結果との比較を比較器26で行う。
Further, the output (2) of the read way prediction circuit 24 is stored in the prediction way register 25, and in cycle 2, the comparator 26 compares it with the search result of the tag unit 2.

この比較動作で、一致信号が得られた場合には、サイク
ル3で得られるバッファストレージ(BS)の読み出し
結果を処理装置に送出する。(第2図(b)(イ)参照
) 然し、上記比較動作において、不一致となった場合には
、サイクル2において、比較器(0〜n) 21の一致
出力をエンコーダ22でエンコードした信号■の値を、
選択ゲート回路27を介してBSアドレスレジスタ23
の一部(例えば、最下位)にセットし直して、バッファ
ストレージ(BS) 1に対する読み出しを再度行うよ
うに機能させる。
If a match signal is obtained in this comparison operation, the read result of the buffer storage (BS) obtained in cycle 3 is sent to the processing device. (Refer to FIG. 2(b)(a)) However, if there is a mismatch in the above comparison operation, in cycle 2, the signal ■ The value of
BS address register 23 via selection gate circuit 27
The buffer storage (BS) 1 is reset to a part (for example, the lowest position) of the buffer storage (BS) 1 and read from the buffer storage (BS) 1 again.

従って、この場合の該バッファストレージ(BS)2の
読み出しデータは、サイクル4において得られることに
なる。(第2図(b)(ロ)参照)上記のように、公知
のLRU論理による予測によって、バッファストレージ
(BS) 1のヒツトするウェイ (最新のウェイ)■
を予測して読み出すことにより、アドレス分布の局所性
から考えて、該予測の当たる確率を高めることができる
Therefore, the read data of the buffer storage (BS) 2 in this case is obtained in cycle 4. (See Figure 2 (b) (b)) As mentioned above, by prediction using the well-known LRU logic, the way that hits the buffer storage (BS) 1 (the latest way) ■
By predicting and reading out the address, it is possible to increase the probability that the prediction will be correct, considering the locality of the address distribution.

このように、本発明は、複数個のウェイからなるバッフ
ァストレージ(BS)を備えた処理装置において、タグ
部の検索結果のエンコード結果を、該バッファストレー
ジ(BS)のアドレスレジスタの一部として、該バッフ
ァストレージ(BS)を読み出すように構成し、ウェイ
データをアドレスの方向に持たせるようにすると共に、
公知のLRU機構を用いて、最新のウェイを予測して、
酸ウェイアドレスを、上記アドレスレジスタの一部とし
て、該バッファストレージ(BS)を先行読み出しを行
い、上記タグ部の検索結果と、該予測結果とが一致した
場合には、該先行読み出しを行ったウェイデータを用い
るようにした所に特徴がある。
As described above, the present invention provides, in a processing device equipped with a buffer storage (BS) consisting of a plurality of ways, the encoded result of the search result of the tag section as part of the address register of the buffer storage (BS). The buffer storage (BS) is configured to be read out, and the way data is held in the direction of the address, and
Using the known LRU mechanism, predict the latest way,
The acid way address is pre-read from the buffer storage (BS) as part of the address register, and if the search result of the tag section matches the prediction result, the pre-read is performed. The feature is that way data is used.

〔発明の効果〕 以上、詳細に説明したように、本発明のバッファストレ
ージウェイ制御方式は、 (1)記憶装置の一部の写しを格納しているバッファス
トレージ(BS)を備えたデータ処理装置において、タ
グ部の検索結果をエンコードした値■を一旦格納するバ
ッファストレージ(BS)アドレスレジスタを設けるこ
とにより、バッファストレージのアドレス方向にウェイ
データを持たせるようにしたものである。
[Effects of the Invention] As explained above in detail, the buffer storage way control method of the present invention provides: (1) a data processing device equipped with a buffer storage (BS) storing a copy of a part of a storage device; In this method, a buffer storage (BS) address register is provided to temporarily store the value (2) obtained by encoding the search result of the tag section, so that way data is provided in the address direction of the buffer storage.

(2)  (1)項のバッファストレージウェイ制御方
式において、LRUが最新を示しているウェイを、タグ
部の検索と同時に予測して読み出し■、上記バッファス
トレージ(BS)アドレスレジスタの一部に設定する手
段を設けることにより、該LRUが示す最新のウェイを
先行して読み出し、該LRUが示す最新のウェイとタグ
部の検索結果とが一致した時には、該先行読み出しウェ
イのデータを使用するようにしたものである。
(2) In the buffer storage way control method described in (1), the way whose LRU is the latest is predicted and read at the same time as the tag section is searched, and set as part of the buffer storage (BS) address register described above. By providing a means to read the latest way indicated by the LRU in advance, and when the latest way indicated by the LRU and the search result of the tag section match, the data of the pre-read way is used. This is what I did.

従って、従来のように、ウェイ毎のメモリ素子が不要に
なり、バッファストレージ(BS)の小型化が実現でき
ると共に、ヒツト率の高い最新のウェイを予測して、先
行して該バッファストレージ(BS)を読み出すことに
より、高速化が図れる効果がある。
Therefore, as in the past, a memory element for each way is no longer required, and the buffer storage (BS) can be made smaller.The latest way with a high hit rate can be predicted and the buffer storage (BS) ) has the effect of increasing speed.

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

第1図は本発明のバッファストレージウェイ制御方式の
構成例を示した図。 第2図は本発明によるウェイ選択動作のタイムチャート
。 第3図は従来のバッファストレージウェイ制御方式を説
明する図。 である。 図面において、 1はバッファストレージ(IIS)。 11は選択回路、    2はタグ部(0〜nL21は
比較器(0〜n)、    22はエンコーダ。 23はBSアドレスレジスタ。 24は読み出しウェイ予測回路。 25は予測ウェイレジスタ。 26は比較器、28はLI?U。 27は選択ゲート回路。 29はリプレースウェイ制御回路。 ■はエンコード信号。 ■は予測ウェイアドレス、又は最新のウェイ、又はヒツ
トするウェイ。 をそれぞれ示す。 ミ 堝
FIG. 1 is a diagram showing an example of the configuration of a buffer storage way control method according to the present invention. FIG. 2 is a time chart of way selection operation according to the present invention. FIG. 3 is a diagram explaining a conventional buffer storage way control method. It is. In the drawing, 1 is buffer storage (IIS). 11 is a selection circuit; 2 is a tag unit (0 to nL; 21 is a comparator (0 to n); 22 is an encoder; 23 is a BS address register; 24 is a read way prediction circuit; 25 is a prediction way register; 26 is a comparator; 28 is LI?U. 27 is a selection gate circuit. 29 is a replace way control circuit. ■ is an encode signal. ■ is a predicted way address, the latest way, or a hit way.

Claims (2)

【特許請求の範囲】[Claims] (1)記憶装置の一部の写しを格納しているバッファス
トレージ(1)を備えたデータ処理装置において、 タグ部(2)の比較結果のエンコード信号([1])を
、上記バッファストレージ(1)のウェイを読み出すア
ドレスの一部に用いることを特徴とするバッファストレ
ージウェイ制御方式。
(1) In a data processing device equipped with a buffer storage (1) that stores a copy of a part of the storage device, the encoded signal ([1]) of the comparison result of the tag section (2) is sent to the buffer storage ( A buffer storage way control method characterized in that the way of 1) is used as a part of the read address.
(2)上記タグ部(2)の比較結果のエンコード信号(
[1])を、上記バッファストレージ(1)のウェイを
読み出すアドレスの一部に用いる方式において、 LRUの値からヒットウェイを予測([2])して保持
するレジスタ(25)と、 タグ部(2)での検索結果と、上記ヒットウェイ予測結
果とを比較する手段(26)とを設け、上記の比較結果
が一致した場合には、上記予測したウェイアドレスをバ
ッファストレージ(1)のウェイを読み出すアドレスの
一部に用いて、該バッファストレージ(1)を読み出し
、 上記の比較結果が一致しない場合には、上記タグ部(2
)の比較結果のエンコード信号([1])を、上記バッ
ファストレージ(1)のウェイを読み出すアドレスの一
部に用いるように制御することを特徴とする特許請求の
範囲第1項に記載のバッファストレージウェイ制御方式
(2) The encoded signal of the comparison result of the tag part (2) (
[1]) is used as a part of the address for reading the way of the buffer storage (1), which includes: a register (25) that predicts ([2]) the hit way from the LRU value and holds it; and a tag section. Means (26) is provided for comparing the search result in (2) with the hit way prediction result, and if the comparison results match, the predicted way address is transferred to the hit way prediction result in the buffer storage (1). is used as part of the read address to read out the buffer storage (1), and if the above comparison results do not match, the tag part (2
) The buffer according to claim 1, wherein the encoded signal ([1]) of the comparison result of the buffer storage (1) is controlled to be used as a part of the address for reading out the way of the buffer storage (1). Storage way control method.
JP62154015A 1987-06-19 1987-06-19 Buffer storage way control circuit Expired - Lifetime JPH0693230B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62154015A JPH0693230B2 (en) 1987-06-19 1987-06-19 Buffer storage way control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62154015A JPH0693230B2 (en) 1987-06-19 1987-06-19 Buffer storage way control circuit

Publications (2)

Publication Number Publication Date
JPS63317859A true JPS63317859A (en) 1988-12-26
JPH0693230B2 JPH0693230B2 (en) 1994-11-16

Family

ID=15575044

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62154015A Expired - Lifetime JPH0693230B2 (en) 1987-06-19 1987-06-19 Buffer storage way control circuit

Country Status (1)

Country Link
JP (1) JPH0693230B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0371246A (en) * 1989-08-11 1991-03-27 Fujitsu Ltd Buffer control system
JP2010097557A (en) * 2008-10-20 2010-04-30 Toshiba Corp Set associative cache apparatus and cache method
US8819036B2 (en) 2011-06-13 2014-08-26 Fujitsu Limited Computer product, search method, search apparatus, and node

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0371246A (en) * 1989-08-11 1991-03-27 Fujitsu Ltd Buffer control system
JP2010097557A (en) * 2008-10-20 2010-04-30 Toshiba Corp Set associative cache apparatus and cache method
US8819036B2 (en) 2011-06-13 2014-08-26 Fujitsu Limited Computer product, search method, search apparatus, and node

Also Published As

Publication number Publication date
JPH0693230B2 (en) 1994-11-16

Similar Documents

Publication Publication Date Title
US3699533A (en) Memory system including buffer memories
KR920005280B1 (en) High speed cache system
US4493026A (en) Set associative sector cache
US7694077B2 (en) Multi-port integrated cache
US4604691A (en) Data processing system having branch instruction prefetching performance
EP0072179B1 (en) Clearing invalid addresses in cache memory
CA1180463A (en) Method and apparatus for hashing cache addresses in a cached disk storage system
CA2022529C (en) Apparatus for page tagging in a computer system
US3984818A (en) Paging in hierarchical memory systems
GB1579061A (en) Random access memory modules for digital data processing systems
CN101256481A (en) Data processor and memory read active control method
KR910005510B1 (en) Butter memory control device
WO1997048048A1 (en) Word width selection for sram cache
US4942521A (en) Microprocessor with a cache memory in which validity flags for first and second data areas are simultaneously readable
US4691279A (en) Instruction buffer for a digital data processing system
WO2006027643A1 (en) A virtual address cache and method for sharing data stored in a virtual address cache
JPS63317859A (en) Control system for buffer storage way
JPH0727492B2 (en) Buffer storage
KR100517765B1 (en) Cache memory and control method thereof
JPH0830568A (en) Cache control system for distributed memory type parallel computer
JPS60701B2 (en) data processing equipment
JPH05342101A (en) Hierarchical cache memory
KR930001022B1 (en) Request cancel system
JPS6152505B2 (en)
EP0502206A1 (en) System equipped with processor and cache memory, and method of controlling said cache memory