JP3438598B2 - Cache memory replacement method and cache memory using the same - Google Patents
Cache memory replacement method and cache memory using the sameInfo
- Publication number
- JP3438598B2 JP3438598B2 JP23605398A JP23605398A JP3438598B2 JP 3438598 B2 JP3438598 B2 JP 3438598B2 JP 23605398 A JP23605398 A JP 23605398A JP 23605398 A JP23605398 A JP 23605398A JP 3438598 B2 JP3438598 B2 JP 3438598B2
- Authority
- JP
- Japan
- Prior art keywords
- tag
- cache memory
- replacement
- cache
- victim
- 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 - Fee Related
Links
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、LRUリプレース
アルゴリズムを用いたセットアソシアティブ方式のキャ
ッシュメモリのリプレース方法及びこれを用いたキャッ
シュメモリに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a set associative cache memory replacement method using an LRU replacement algorithm and a cache memory using the replacement method.
【0002】[0002]
【従来の技術】近年、コンピュータ・システムにおい
て、CPUを高速に動作させるために、CPUとメイン
メモリとの間に小容量の高速動作が可能なキャッシュメ
モリ装置を配置することが一般に行われている。キャッ
シュメモリには使用頻度の高いデータがブロック単位で
保持されている。そして、CPUがキャッシュメモリに
対してアスセスする時、キャッシュ内に要求データを含
むエントリーが存在する場合をヒットといい、存在しな
い場合をミスという。ミスしたデータはメインメモリか
らCPUに転送されるが、この時、同時に要求データは
キャッシュ内に存在するあるエントリーとリプレースさ
れる。この転送とリプレースに費やした時間をミスペナ
ルティと呼ぶ。2. Description of the Related Art In recent years, in computer systems, in order to operate a CPU at high speed, it has been common practice to arrange a small-capacity high-speed cache memory device between the CPU and a main memory. . The cache memory holds frequently used data in block units. When the CPU accesses the cache memory, an entry containing the requested data in the cache is called a hit, and a non-existent entry is called a miss. The missed data is transferred from the main memory to the CPU, but at this time, the requested data is simultaneously replaced with an entry existing in the cache. The time spent for this transfer and replacement is called the miss penalty.
【0003】キャッシュの方式は様々だがその一つの方
式として、LRUリプレースアルゴリズムを用いたセッ
トアソシアティブキャッシュがある。セットアソシアテ
ィブキャッシュとは、リプレースするブロックをキャッ
シュ上のn通りにだけ置くことができる方式で、n−w
ayセットアソシアティブキャッシュとも呼ばれる。一
方、LRU(Least Recently Used)
アルゴリズムとは、最も長い時間使用されなかったデー
タブロックをリプレースするアルゴリズムである。例え
ば、特開平1−173239号公報に開示されたメモリ
制御回路においては、キャッシュミス発生時に、LRU
アルゴリズムに従ってキャッシュメモリ内の所定のデー
タブロックがリプレースされる構成となっている。There are various cache methods, but one of them is a set associative cache using the LRU replacement algorithm. The set associative cache is a method in which a block to be replaced can be placed only in n ways on the cache.
Also called ay set associative cache. On the other hand, LRU (Least Recently Used)
An algorithm is an algorithm that replaces a data block that has not been used for the longest time. For example, in the memory control circuit disclosed in JP-A-1-173239, when a cache miss occurs, the LRU
A predetermined data block in the cache memory is replaced according to the algorithm.
【0004】[0004]
【発明が解決しようとする課題】上述のように、従来の
LRUリプレースアルゴリズムを用いたセットアソシア
ティブキャッシュにおいては、時間的局所性しか考慮さ
れていないので、空間的局所性の高いエントリーがリプ
レースされる可能性があるという問題があった。また、
キャッシュメモリのブロックサイズ拡大による空間的局
所性の考慮方法では、ミス時のペナルティが大きくなる
ため性能が上がらないという問題があった。As described above, in the set associative cache using the conventional LRU replacement algorithm, only temporal locality is taken into consideration, so that an entry with high spatial locality is replaced. There was a problem that could be. Also,
The method of considering spatial locality by expanding the block size of the cache memory has a problem that the performance at the time of miss is increased because the penalty at the time of miss becomes large.
【0005】本発明は、ミス率を減らすことができ、高
性能なキャッシュメモリを提供することを目的とする。An object of the present invention is to provide a high performance cache memory which can reduce the miss rate.
【0006】[0006]
【課題を解決するための手段】本発明のキャッシュメモ
リのリプレース方法は、LRUリプレースアルゴリズム
を用いたセットアソシアティブ方式のキャッシュメモリ
において、過去にアクセスされたいくつかのタグのう
ち、前回入力分と同一でないものを順に記憶し、キャッ
シュミス発生後のビクテム選出時に、前記タグと、LR
Uリプレースアルゴリズムで選出された仮のビクテムの
アドレスタグとを比較し、空間的局所性の高い同一アド
レスタグを検出した場合に、前記ビクテムの選出をやり
直すことを特徴とする。Means for Solving the Problems The cache memory replacement method of the present invention, in the cache memory of the set associative method using the LRU replacement algorithm, the sale of a number of tags accessed in the past
Then, those that are not the same as the previous input are stored in order, and when selecting the victim after the occurrence of a cache miss, the tag and LR
It is characterized in that it compares the address tag of the temporary victim selected by the U-replacement algorithm, and reselects the victim when the same address tag with high spatial locality is detected.
【0007】[0007]
【0008】また本発明のキャッシュメモリは、LRU
リプレースアルゴリズムを用いたセットアソシアティブ
方式のキャッシュメモリにおいて、各エントリーがアド
レスタグとバリッドビットとデータブロックとで構成さ
れる記憶手段と、ターゲットデータのヒット/ミス判別
手段と、リプレース時の制御を行うリプレース制御手段
とを有し、前記リプレース制御手段は、キャッシュリプ
レース時に、メインメモリからCPUに転送されるター
ゲットデータブロックが入力される手段と、アクセス毎
に次回のキャッシュミス時のビクテム選出用演算とリプ
レース時の制御とを行うLRU制御手段と、過去アクセ
ス要求のあったいくつかのタグのうち前回入力分と同一
でないものを記憶する手段とを有することを特徴とす
る。The cache memory of the present invention is an LRU.
In a set associative cache memory using a replacement algorithm, a storage unit in which each entry is composed of an address tag, a valid bit, and a data block, a target data hit / miss determination unit, and a replacement for performing control during replacement. Control means and the replacement control means is
The data transferred from the main memory to the CPU during the race
The means by which the get data block is input and each access
In the next cache miss
LRU control means for controlling the race and past access
Same as last input from some tags that were requested
And a means for storing a non- stored item .
【0009】[0009]
【0010】また、本発明のキャッシュメモリは、前記
ターゲットデータのヒット/ミス判別手段は、前記記憶
手段から読み出されたアドレスタグと、ターゲットアド
レスのタグとを比較し、セット内のどのウェイにヒット
したか、または全てミスしたかを判別するタグ比較手段
を有することを特徴とする。Further, in the cache memory of the present invention, the target data hit / miss determination means compares the address tag read from the storage means with the target address tag to determine which way in the set. It is characterized by having a tag comparison means for discriminating whether a hit or an all miss.
【0011】また、本発明のキャッシュメモリは、前記
リプレース制御手段は、プリフェッチ機能を有すること
を特徴とする。In the cache memory of the present invention, the replacement control means has a prefetch function.
【0012】[0012]
【発明の実施の形態】以下、本発明の実施の形態を、図
面を参照して説明する。BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings.
【0013】図1は、本発明の第1の実施の形態として
の時間的局所性と空間的局所性の両方を考慮したLRU
リプレースアルゴリズムを用いたn−wayセットアソ
シアティブキャッシュメモリの構成を示す図である。こ
のn−wayセットアソシアティブキャッシュメモリ
は、キャッシュメモリ2と、リプレース制御部3と、デ
ータ制御部4とで構成されている。FIG. 1 shows an LRU that considers both temporal locality and spatial locality as a first embodiment of the present invention.
It is a figure which shows the structure of the n-way set associative cache memory using a replacement algorithm. This n-way set associative cache memory is composed of a cache memory 2, a replacement controller 3, and a data controller 4.
【0014】CPU(図示せず)からアクセス要求され
たターゲットアドレス1は、タグ11と、インデックス
12と、オフセット13とに区分される。インデックス
12は、キャッシュメモリ2内のどのセットにターゲッ
トデータが存在する可能性があるかを示し、タグ11
は、インデックス12で示されたセット(n個)のエン
トリーにターゲットデータが存在するかどうかを検索す
るためのキーとして使われ、オフセット13は、データ
ブロックのどのデータが要求されているかを示すもので
ある。The target address 1 requested to be accessed by the CPU (not shown) is divided into a tag 11, an index 12, and an offset 13. The index 12 indicates to which set in the cache memory 2 the target data may exist, and the tag 11
Is used as a key to search whether or not the target data exists in the set (n number) of entries indicated by the index 12, and the offset 13 indicates which data of the data block is requested. Is.
【0015】キャッシュメモリ2の各エントリーは、ア
ドレスタグと、バリッドビットと、データブロックとか
ら構成される。アドレスタグメモリ21、バリッドビッ
トメモリ22、データブロックメモリ23は、整数2の
インデックスビット数乗分のエントリーでそれぞれのメ
モリが構成されており、n−wayセットアソシアティ
ブの場合、それらのメモリ21、22、23がn枚づつ
存在することになる。また各エントリーには、アドレス
タグ毎にデータブロックが記憶されており、バリッドビ
ットはアドレスタグで指定されたデータブロックが有効
かどうかを示すものである。Each entry of the cache memory 2 is composed of an address tag, a valid bit and a data block. Each of the address tag memory 21, the valid bit memory 22, and the data block memory 23 is configured by entries corresponding to the index bit number power of an integer 2, and in the case of the n-way set associative, those memories 21, 22. , 23 are present every n sheets. In each entry, a data block is stored for each address tag, and the valid bit indicates whether the data block designated by the address tag is valid.
【0016】リプレース制御部3は、リプレースエント
リー31と、LRU制御ユニット32と、LRU制御ユ
ニット32内のタグヒストリーキュー33とで構成され
る。LRU制御ユニット32は、アクセス毎に次回のキ
ャッシュミス時のビクテム選出用演算と、リプレース時
の制御とを行う。タグヒストリーキュー33には、過去
アクセス要求のあったいくつかのタグ11が記憶されて
おり、ビクテム選出時に空間的局所性情報として使われ
る。一方、リプレースエントリー31には、キャッシュ
リプレース時に、メインメモリ(図示せず)からCPU
に転送されるターゲットデータブロックが入力され、L
RU制御ユニット32で選出したビクテムのエントリー
とリプレースされる。The replacement control unit 3 is composed of a replacement entry 31, an LRU control unit 32, and a tag history queue 33 in the LRU control unit 32. The LRU control unit 32 performs the operation for selecting a victim at the next cache miss and the control at the time of replacement for each access. The tag history queue 33 stores some tags 11 that have been requested to be accessed in the past, and is used as spatial locality information when selecting a victim. On the other hand, the replace entry 31 includes a CPU from a main memory (not shown) at the time of cache replacement.
The target data block to be transferred to
It is replaced with the entry of the victim selected by the RU control unit 32.
【0017】データ制御部4は、タグ比較ユニット41
と、データ選択ユニット42とで構成される。タグ比較
ユニット41は、アドレスタグメモリ21から読み出さ
れたn個のアドレスタグとターゲットアドレス1のタグ
11とを比較し、セット内のどのウェイにヒットした
か、または全てミスしたかをデータ選択ユニット42と
LRU制御ユニット32とに出力する。データ選択ユニ
ット42は、タグ比較ユニット41から出力されたwa
yのエントリーのデータブロックからオフセット13で
示されたデータを外部に出力する。The data control unit 4 includes a tag comparison unit 41.
And a data selection unit 42. The tag comparison unit 41 compares the n address tags read from the address tag memory 21 with the tag 11 having the target address 1 and selects which way in the set has been hit or has all missed. Output to the unit 42 and the LRU control unit 32. The data selection unit 42 outputs the wa output from the tag comparison unit 41.
The data indicated by the offset 13 is output to the outside from the data block of the y entry.
【0018】次に、本実施形態の動作を図1及び図2の
フローチャートを用いて説明する。まず、CPUからア
クセス要求(ステップA0)されたターゲットアドレス
1のタグ11が、LRU制御ユニット32内のタグヒス
トリーキュー33に入力される(ステップA1)。ここ
で、タグヒストリーキュー33には、過去アクセス要求
のあったいくつかのタグが記憶されており、キャッシュ
ミス時のビクテム選出の際に、時間的局所性のみを考慮
したLRUリプレースアルゴリズムで選出された仮のビ
クテムに空間的局所性を考慮させるために参照される。
ただし、タグ11が前回入力分と同一であれば、そのタ
ーゲットアドレス1はタグヒストリーキュー33には入
力されない。Next, the operation of this embodiment will be described with reference to the flowcharts of FIGS. First, the tag 11 of the target address 1 requested by the CPU (step A0) is input to the tag history queue 33 in the LRU control unit 32 (step A1). Here, the tag history queue 33 stores some tags that have been requested for access in the past, and is selected by the LRU replacement algorithm considering only temporal locality when selecting a victim at the time of a cache miss. It is referred to in order to let the tentative victim consider spatial locality.
However, if the tag 11 is the same as that input last time, the target address 1 is not input to the tag history queue 33.
【0019】次に、キャッシュメモリ2は、ターゲット
アドレス1のインデックス12を使い、ターゲットアド
レス1が記憶されている可能性があるセットを選択し、
nエントリー分(n−wayセットアソシアティブの場
合)のアドレスタグと、データブロックとを読み出す
(ステップA2)。Next, the cache memory 2 uses the index 12 of the target address 1 to select a set in which the target address 1 may be stored,
Address tags for n entries (in the case of n-way set associative) and data blocks are read (step A2).
【0020】次いで、タグ比較ユニット41は、ステッ
プA2において読み出されたエントリーのアドレスタグ
と、ターゲットアドレス1のタグ11とを比較してヒッ
トかミスかを判別する。この時バリッドビットでそのエ
ントリーが無効であると示されれば、そのエントリーは
ミスとみなされる(ステップA3、ステップA4)。Next, the tag comparison unit 41 compares the address tag of the entry read in step A2 with the tag 11 of the target address 1 to determine whether it is a hit or a miss. At this time, if the valid bit indicates that the entry is invalid, the entry is regarded as a miss (step A3, step A4).
【0021】そして、キャッシュにヒットした場合に
は、タグ比較ユニット41は、ヒットエントリーが何w
ay目のエントリーであったかをLRU制御ユニット3
2とデータ選択ユニット42とに通知する。このタグ比
較ユニット41から通知されたway情報を基に、LR
U制御ユニット32は次回のビクテム選出用演算を行う
(ステップA5)。また、データ選択ユニット42は、
タグ比較ユニット41から通知されたway情報を基に
ヒットしたデータブロックを選別し(ステップA6)、
ターゲットアドレス1のオフセット13を参照し、ヒッ
トしたデータブロックから必要なデータを出力する(ス
テップA7)。When the cache is hit, the tag comparison unit 41 determines which w entry is the hit entry.
LRU control unit 3 whether it was the entry of ay
2 and the data selection unit 42. Based on the way information notified from this tag comparison unit 41, the LR
The U control unit 32 performs the next operation for selecting a victim (step A5). In addition, the data selection unit 42
Based on the way information notified from the tag comparison unit 41, the hit data block is selected (step A6),
With reference to the offset 13 of the target address 1, necessary data is output from the hit data block (step A7).
【0022】一方、キャッシュにミスした場合には、L
RU制御ユニット32は、あらかじめ演算した情報を基
に仮のビクテムを選出し(ステップA8)、この仮のビ
クテムのアドレスタグと、タグヒストリーキュー33の
エントリーのタグ11とをタグ比較ユニット41が比較
する(ステップA9)。そして仮のビクテムのアドレス
タグがタグヒストリーキュー33内にあるタグ11のど
れとも一致しなかった場合には、仮のビクテムが真のビ
クテムとなり、ターゲットデータが真のビクテムとリプ
レースされる(ステップA11)。もし、真のビクテム
とタグヒストリーキュー33内のタグ11とで一致した
エントリーが検索されれば、その仮のビクテム以外の同
じセット内のエントリーでLRU制御ユニット32がも
う一度ビクテムを選出し直す。On the other hand, if the cache is missed, L
The RU control unit 32 selects a temporary victim based on the information calculated in advance (step A8), and the tag comparison unit 41 compares the address tag of this temporary victim with the tag 11 of the entry in the tag history queue 33. (Step A9). If the address tag of the temporary victim does not match any of the tags 11 in the tag history queue 33, the temporary victim becomes the true victim, and the target data is replaced with the true victim (step A11). ). If a match is found between the true victim and the tag 11 in the tag history queue 33, the LRU control unit 32 re-selects the victim with an entry in the same set other than the temporary victim.
【0023】以上のように、本実施形態によれば、時間
的局所性のみが考慮されたLRUリプレースアルゴリズ
ムにおいて、空間的局所性の高い同一アドレスタグを持
つエントリーがビクテムとしてリプレースされることが
防止される。As described above, according to this embodiment, in the LRU replacement algorithm in which only temporal locality is taken into consideration, an entry having the same address tag with high spatial locality is prevented from being replaced as a victim. To be done.
【0024】次に、本発明の第2の実施の形態について
説明する。本実施形態は、その基本的構成は上記第1の
実施の形態と同様であるが、ミスレイテンシについてさ
らに工夫している。即ち、図3に示すように、本実施形
態は、図1におけるLRU制御ユニット32の代わりに
LRU/プリフェッチ制御ユニット32’を設けると共
に、リプレースエントリー31の代わりにリプレース/
プリフェッチエントリー31’を設けて、リプレース制
御部3にプリフェッチ機能を取り入れた構成とする。Next, a second embodiment of the present invention will be described. The basic configuration of this embodiment is the same as that of the first embodiment described above, but the mislatency is further devised. That is, as shown in FIG. 3, in the present embodiment, an LRU / prefetch control unit 32 ′ is provided in place of the LRU control unit 32 in FIG.
The prefetch entry 31 'is provided so that the replacement control unit 3 has a prefetch function.
【0025】そして、本実施形態においては、LRU/
プリフェッチ制御ユニット32’はタグヒストリーキュ
ー33を参照し、次回アクセス要求される可能性がある
がキャッシュメモリ2内にはないエントリーをあらかじ
めメインメモリからリプレース/プリフェッチエントリ
ー31’に転送しておく。従って、本実施形態によれ
ば、次回アクセスされる可能性の高いエントリーをプリ
フェッチしておくことによって、ミスレイテンシを大幅
に削減することができる。Then, in this embodiment, LRU /
The prefetch control unit 32 'refers to the tag history queue 33, and transfers an entry that may be requested next time but is not in the cache memory 2 from the main memory to the replace / prefetch entry 31' in advance. Therefore, according to the present embodiment, by prefetching the entry that is likely to be accessed next time, the miss latency can be significantly reduced.
【0026】[0026]
【発明の効果】上述のように、本発明によれば、時間的
局所性のみを考慮したLRUリプレースアルゴリズムに
加えて空間的局所性を考慮しているので、空間的局所性
の高いエントリーがリプレースされることが少なくな
り、キャッシュミス率を下げることができる。また、空
間的局所性をブロックサイズの拡大以外で実現している
ので、ミス時のペナルティに変化がなく性能低下しな
い。従って、本発明によれば、高性能なキャッシュメモ
リを提供することができる。As described above, according to the present invention, since spatial locality is considered in addition to the LRU replacement algorithm considering only temporal locality, an entry with high spatial locality is replaced. The cache miss rate can be reduced. Further, since the spatial locality is realized by other than expanding the block size, there is no change in the penalty at the time of a miss and the performance does not deteriorate. Therefore, according to the present invention, a high performance cache memory can be provided.
【図面の簡単な説明】[Brief description of drawings]
【図1】 本発明の第1の実施の形態の構成を示す図で
ある。FIG. 1 is a diagram showing a configuration of a first exemplary embodiment of the present invention.
【図2】 本発明の第1の実施の形態の動作を示す図で
ある。FIG. 2 is a diagram showing an operation of the first exemplary embodiment of the present invention.
【図3】 本発明の第2の実施の形態の構成を示す図で
ある。FIG. 3 is a diagram showing a configuration of a second exemplary embodiment of the present invention.
1 ターゲットアドレス 11 タグ 12 インデックス 13 オフセット 2 キャッシュメモリ 21 アドレスタグメモリ 22 バリッドビットメモリ 23 データブロックメモリ 3 リプレース制御部 31 リプレースエントリー 32 LRU制御ユニット 33 タグヒストリーキュー 4 データ制御部 41 タグ比較ユニット 42 データ選択ユニット 1 target address 11 tags 12 Index 13 offset 2 cache memory 21 Address tag memory 22 Valid bit memory 23 Data block memory 3 Replace control unit 31 Replace Entry 32 LRU control unit 33 Tag History Cue 4 Data control section 41 Tag comparison unit 42 Data selection unit
フロントページの続き (56)参考文献 特開 平1−125641(JP,A) 特開 昭63−221441(JP,A) 特開 昭63−8851(JP,A) 特開 昭61−54547(JP,A) 特開 昭63−318654(JP,A) Kumar S et al.,Ex ploiting Spatial L ocality in Data Ca ches using Spatial Footprints,the Pr oceedings of 25th A nnual Internationa l Symposium on Com puter Architectur e,米国,ACM/IEEE,1998年 6月27日,p.357−368 Johnson T.L.,et a l.,Run−time Adapti ve Cache Hierarchy Management via Re ference Analysis,t he Proceedings of the 24th Annual Int ernational Symposi um on Computer Arc hitechture,米国,ACM /IEEE,1997年 6月 2日,p. 315−326 (58)調査した分野(Int.Cl.7,DB名) G06F 12/08 - 12/12 Continuation of the front page (56) Reference JP-A-1-125641 (JP, A) JP-A-63-221441 (JP, A) JP-A-63-8851 (JP, A) JP-A-61-54547 (JP , A) JP 63-318654 (JP, A) Kumar S et al. , Exploding Spatial L ocality in Data Causes using Spatial Footprints, the Proceedings of 25th August Eneum, October, 1994, United States, September, 2012, September, April, 2012, September, April, 2012, September, April, 2012, April, April, April, April, April, April, April, April, April, 1975, April, October, April, April, 2012. 357-368 Johnson T.S. L. , Et al. , Run-time Adaptive Cache Hierarchy Management via Rereference Analysis, the 326 Proceedings of the 24th Epoch. ) Fields surveyed (Int.Cl. 7 , DB name) G06F 12/08-12/12
Claims (4)
セットアソシアティブ方式のキャッシュメモリにおい
て、過去にアクセスされたいくつかのタグのうち、前回
入力分と同一でないものを順に記憶し、キャッシュミス
発生後のビクテム選出時に、前記タグと、LRUリプレ
ースアルゴリズムで選出された仮のビクテムのアドレス
タグとを比較し、空間的局所性の高い同一アドレスタグ
を検出した場合に、前記ビクテムの選出をやり直すこと
を特徴とするキャッシュメモリのリプレース方法。1. A cache memory set associative method using the LRU replacement algorithm, among the several tags accessed in the past, previous
Those that are not the same as the input data are stored in order, and when selecting a victim after a cache miss, the above-mentioned tag is compared with the temporary victim's address tag selected by the LRU replacement algorithm, and the same address with high spatial locality is stored. A method for replacing a cache memory, wherein the selection of the victim is redone when a tag is detected.
セットアソシアティブ方式のキャッシュメモリにおい
て、各エントリーがアドレスタグとバリッドビットとデ
ータブロックとで構成される記憶手段と、ターゲットデ
ータのヒット/ミス判別手段と、リプレース時の制御を
行うリプレース制御手段とを有し、前記リプレース制御手段は、キャッシュリプレース時
に、メインメモリからCPUに転送されるターゲットデ
ータブロックが入力される手段と、アクセス毎に次回の
キャッシュミス時のビクテム選出用演算とリプレース時
の制御とを行うLRU制御手段と、過去アクセス要求の
あったいくつかのタグのうち前回入力分と同一でないも
のを 記憶する手段とを有することを特徴とするキャッシ
ュメモリ。2. In a set associative cache memory using the LRU replacement algorithm, each entry comprises a storage means composed of an address tag, a valid bit and a data block, a target data hit / miss determination means, and a replacement. And a replacement control unit for controlling the cache replacement
The target device transferred from the main memory to the CPU.
Data block input method and next time each access
At the time of cache miss, calculation for victim selection and at the time of replacement
LRU control means for controlling the
Some of the tags that were not the same as the last input
And a means for storing the cache memory.
別手段は、前記記憶手段から読み出されたアドレスタグ
と、ターゲットアドレスのタグとを比較し、セット内の
どのウェイにヒットしたか、または全てミスしたかを判
別するタグ比較手段を有することを特徴とする請求項2
記載のキャッシュメモリ。3. The target data hit / miss determination means compares the address tag read from the storage means with the tag of the target address, and which way in the set has been hit or all misses. 3. A tag comparing means for determining whether or not the processing has been performed.
The listed cache memory.
チ機能を有することを特徴とする請求項2または3記載
のキャッシュメモリ。4. The cache memory according to claim 2 , wherein the replacement control means has a prefetch function.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23605398A JP3438598B2 (en) | 1998-08-21 | 1998-08-21 | Cache memory replacement method and cache memory using the same |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP23605398A JP3438598B2 (en) | 1998-08-21 | 1998-08-21 | Cache memory replacement method and cache memory using the same |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2000066954A JP2000066954A (en) | 2000-03-03 |
| JP3438598B2 true JP3438598B2 (en) | 2003-08-18 |
Family
ID=16995053
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP23605398A Expired - Fee Related JP3438598B2 (en) | 1998-08-21 | 1998-08-21 | Cache memory replacement method and cache memory using the same |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3438598B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007132742A1 (en) * | 2006-05-16 | 2007-11-22 | Panasonic Corporation | Image processing device |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112612727B (en) * | 2020-12-08 | 2023-07-07 | 成都海光微电子技术有限公司 | A cache line replacement method, device and electronic equipment |
-
1998
- 1998-08-21 JP JP23605398A patent/JP3438598B2/en not_active Expired - Fee Related
Non-Patent Citations (2)
| Title |
|---|
| Johnson T.L.,et al.,Run−time Adaptive Cache Hierarchy Management via Reference Analysis,the Proceedings of the 24th Annual International Symposium on Computer Architechture,米国,ACM/IEEE,1997年 6月 2日,p.315−326 |
| Kumar S et al.,Exploiting Spatial Locality in Data Caches using Spatial Footprints,the Proceedings of 25th Annual International Symposium on Computer Architecture,米国,ACM/IEEE,1998年 6月27日,p.357−368 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007132742A1 (en) * | 2006-05-16 | 2007-11-22 | Panasonic Corporation | Image processing device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2000066954A (en) | 2000-03-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6912623B2 (en) | Method and apparatus for multithreaded cache with simplified implementation of cache replacement policy | |
| US6990557B2 (en) | Method and apparatus for multithreaded cache with cache eviction based on thread identifier | |
| JP2554449B2 (en) | Data processing system having cache memory | |
| JP4486750B2 (en) | Shared cache structure for temporary and non-temporary instructions | |
| EP1149342B1 (en) | Method and apparatus for managing temporal and non-temporal data in a single cache structure | |
| US5537573A (en) | Cache system and method for prefetching of data | |
| US5751990A (en) | Abridged virtual address cache directory | |
| US7047362B2 (en) | Cache system and method for controlling the cache system comprising direct-mapped cache and fully-associative buffer | |
| US20100217937A1 (en) | Data processing apparatus and method | |
| US5737751A (en) | Cache memory management system having reduced reloads to a second level cache for enhanced memory performance in a data processing system | |
| EP2866148B1 (en) | Storage system having tag storage device with multiple tag entries associated with same data storage line for data recycling and related tag storage device | |
| JP3262519B2 (en) | Method and system for enhancing processor memory performance by removing old lines in second level cache | |
| US20060106991A1 (en) | Victim prefetching in a cache hierarchy | |
| EP1586039A2 (en) | Using a cache miss pattern to address a stride prediction table | |
| US20030018855A1 (en) | Method and apparatus for caching with variable size locking regions | |
| US6715040B2 (en) | Performance improvement of a write instruction of a non-inclusive hierarchical cache memory unit | |
| GB2546245A (en) | Cache memory | |
| KR100582340B1 (en) | Dynamic frequent instruction line cache | |
| US6792498B2 (en) | Memory system with mechanism for assisting a cache memory | |
| JP3438598B2 (en) | Cache memory replacement method and cache memory using the same | |
| US6785797B2 (en) | Address predicting apparatus and methods | |
| JP2001249846A (en) | Cache memory device and data processing system | |
| US9053030B2 (en) | Cache memory and control method thereof with cache hit rate | |
| US20030014594A1 (en) | Hot way caches: an energy saving technique for high performance caches | |
| US7865666B2 (en) | Cache memory systems and methods thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20030513 |
|
| LAPS | Cancellation because of no payment of annual fees |