JPH0795309B2 - Set associative cache memory - Google Patents
Set associative cache memoryInfo
- Publication number
- JPH0795309B2 JPH0795309B2 JP1200627A JP20062789A JPH0795309B2 JP H0795309 B2 JPH0795309 B2 JP H0795309B2 JP 1200627 A JP1200627 A JP 1200627A JP 20062789 A JP20062789 A JP 20062789A JP H0795309 B2 JPH0795309 B2 JP H0795309B2
- Authority
- JP
- Japan
- Prior art keywords
- memory
- way
- data
- address tag
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、キャッシュ・システムに含まれるアドレス
タグメモリおよびLRU(Least Recent-ly Used)ビット
メモリのテストを容易に行うことが可能なセットアソシ
アティブ方式キャッシュメモリに関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention relates to a set associative system capable of easily testing an address tag memory and an LRU (Least Recent-ly Used) bit memory included in a cache system. The method relates to a cache memory.
第3図は従来のセットアソシアティブ方式キャッシュメ
モリの診断方法を説明するためのアドレス構成図および
4ウェイセットアソシアティブ方式キャッシュメモリの
ブロック図である。この4ウェイセットアソシアティブ
方式キャッシュメモリは、CQ出版社の「インタフェー
ス」1987年9月号の205頁に記載されたものである。FIG. 3 is an address configuration diagram and a block diagram of a 4-way set associative cache memory for explaining a conventional method of diagnosing a set associative cache memory. This 4-way set associative cache memory is described on page 205 of the September 1987 issue of "Interface" by CQ Publisher.
第3図において、1はキャッシュメモリにアクセスしよ
うとするアドレス、2は前記アドレス1の一部であるア
ドレスタグ、3は前記アドレス1の一部であるセットセ
レクト、4は前記アドレス1の一部であるワードセレク
ト、5はキャッシュメモリ内にあるアドレスタグを保持
するアドレスタグメモリ、6は後記データブロックメモ
リ7の保持しているデータが有効であるか無効であるか
を示すバリットビットメモリ、7はキャッシュメモリ内
にあるデータを保持するデータブロックメモリ、8は各
ウェイのデータの置き換え優先凖位記憶手段としてのLR
Uビットメモリであり、LRUビットメモリ8はデータの置
き換えをLRU(Least Recently Used)アルゴリズムによ
って制御される状態レジスタである。さらに、9は前記
アドレスタグ2と前記アドレスタグメモリ5に保持して
いるアドレスのデータを比較して一致しているか否かを
調べるアドレスタグ比較器、10は前記アドレス1の前記
ワードセレクト4によって選択される第1のセレクタ、
11は前記アドレスタグ比較器9によって選択される第2
のセレクタであり、aは第2のセレクタ11から出力され
る出力データである。In FIG. 3, 1 is an address to access the cache memory, 2 is an address tag which is a part of the address 1, 3 is a set select which is a part of the address 1, and 4 is a part of the address 1. Is a word select, 5 is an address tag memory that holds an address tag in the cache memory, 6 is a valid bit memory that indicates whether the data held in the data block memory 7 described later is valid or invalid, 7 Is a data block memory for holding the data in the cache memory, and 8 is an LR as a replacement priority data storage means for the data of each way.
The LRU bit memory 8 is a U bit memory, and the LRU bit memory 8 is a status register whose data replacement is controlled by an LRU (Least Recently Used) algorithm. Further, 9 is an address tag comparator which compares the data of the addresses held in the address tag 2 and the address tag memory 5 to check whether or not they match, 10 is the word select 4 of the address 1 The first selector selected,
11 is the second selected by the address tag comparator 9
, And a is output data output from the second selector 11.
次に動作について説明する。Next, the operation will be described.
外部からアドレス1が与えられると、セットセレクト3
で選ばれた各ウェイのアドレスタグメモリ5の内容をア
ドレスタグ比較器9に送るとともに、データブロックメ
モリ7の内容も第1のセレクタ10に送り、ワードセレク
ト4で選ばれたワードデータを第2のセレクタ11に送
る。そして、アドレスタグ比較器9で選ばれたアドレス
タグメモリ5の内容とアドレスタグ2とが一致している
か否かを調べ、一致しているウェイが存在していれば第
2のセレクタ11よりそのウェイのデータを出力データa
として出力する。しかし、アドレスタグ比較器9で不一
致となれば、キャッシュメモリ外のメインメモリ(図示
せず)にデータを読みにいき、MPUにデータを送るとと
もに、キャッシュメモリ内のデータブロックメモリ7に
データを格納する。この時、どのウェイにデータを格納
するかを決めるのがLRUアルゴリズムで、その情報がLRU
ビットメモリ8に格納されている。When address 1 is given from the outside, set select 3
The contents of the address tag memory 5 of each way selected in step 1 are sent to the address tag comparator 9, and the contents of the data block memory 7 are also sent to the first selector 10, so that the word data selected by the word select 4 is sent to the second. To selector 11. Then, it is checked whether the content of the address tag memory 5 selected by the address tag comparator 9 and the address tag 2 match, and if there is a matching way, the second selector 11 selects the corresponding way. Way data is output data a
Output as. However, if the address tag comparator 9 does not match, the main memory (not shown) outside the cache memory is read, the data is sent to the MPU, and the data is stored in the data block memory 7 in the cache memory. To do. At this time, the LRU algorithm decides which way to store the data, and that information is the LRU algorithm.
It is stored in the bit memory 8.
次にこのキャッシュメモリシステムのアドレスタグメモ
リ5の診断方法について述べる。Next, a method of diagnosing the address tag memory 5 of this cache memory system will be described.
基本的な手法は、まず、任意のアドレスでキャッシュシ
ステムをアクセスし、そのセットセレクト3でアクセス
を受けたエントリのタグメモリに対しての先のアドレス
の一部であるアドレスタグを書き込み、次に、先と同じ
キャッシュエントリでキャッシュシステムをアクセスし
た際、キャッシュヒット判定、キャッシュミスヒット判
定が正しく行われるか否かを調べることである。すなわ
ち、先にアドレスタグメモリ5に書き込んだアドレスタ
グ2と同一のビットパターン列を持ったアドレスでアク
セスした場合には、キャッシュヒットと判定してデータ
メモリの内容を出力し、書き込んだアドレスタグ2と異
なるビットパタン列群を持ったアドレスに対してはキャ
ッシュミスと判定し、データブロックメモリ7に対して
データを取り込むべく、外部メモリアクセスサイクルが
発生することを調べることである。The basic method is to first access the cache system with an arbitrary address, write an address tag that is a part of the previous address to the tag memory of the entry accessed by the set select 3, and then , When the cache system is accessed with the same cache entry as before, whether or not the cache hit determination and the cache mishit determination are correctly performed is checked. That is, when an address having the same bit pattern sequence as the address tag 2 previously written in the address tag memory 5 is accessed, it is determined to be a cache hit, the content of the data memory is output, and the written address tag 2 It is determined that an address having a bit pattern sequence group different from that is determined as a cache miss and that an external memory access cycle occurs in order to fetch data into the data block memory 7.
この時、注意すべきはアドレスタグ2の書き込まれるウ
ェイは、その時点においての各エントリのLRUビットが
示す優先凖位に従う点である。したがって、テストパタ
ンの作成に当ってはこの点を考慮にいれ、各テストベク
トルを与える時点でのLRUビットの状態を把握している
必要がある。At this time, it should be noted that the way in which the address tag 2 is written follows the priority level indicated by the LRU bit of each entry at that time. Therefore, it is necessary to take this point into consideration when creating the test pattern, and to know the state of the LRU bit at the time of giving each test vector.
次に、このキャッシュメモリのLRUビットメモリ8の診
断方法について述べる。Next, a method of diagnosing the LRU bit memory 8 of this cache memory will be described.
この従来例では、LRUビットメモリ8に外部から直接デ
ータを書き込むことができないため、LRUビットメモリ
8を診断すべき値に設定するためには、メインメモリの
データをキャッシュメモリに複数回書き込むという動作
が必要である。その上で、LRUビットメモリ8が所望の
値に設定されていることを確認するためには、キャッシ
ュメモリよりの複数回の読み出し動作とメインメモリの
データをキャッシュメモリに複数回書き込むという動作
が必要である。この場合にも先と同じ理由で、テストパ
タンの作成に当っては各時点におけるLRUの状態を把握
している必要がある。In this conventional example, since data cannot be directly written to the LRU bit memory 8 from the outside, in order to set the LRU bit memory 8 to a value to be diagnosed, the operation of writing the data of the main memory to the cache memory multiple times is performed. is necessary. In addition, in order to confirm that the LRU bit memory 8 is set to the desired value, it is necessary to perform multiple read operations from the cache memory and multiple write operations of the main memory data to the cache memory. Is. In this case as well, for the same reason as above, it is necessary to grasp the LRU state at each point in time when creating the test pattern.
従来のセットアソシアティブ方式キャッシュメモリにお
けるアドレスタグメモリ5およびLRUビットメモリ8の
テストは上記のような手法で行われているため、アドレ
スタグメモリ5へ書き込むテストパタン、すなわち、タ
グアドレスをどのウェイに書き込むかを外部から簡単に
制御することができない。したがって、テストパタンの
作成においてはLRUビットの状態、すなわち、各エント
リに対してのウェイのアクセスの履歴を知る必要があ
り、テストパタンの作成を困難にする問題点がある。ま
た、第3図から明らかなように、LRUビットメモリ8自
身も外部から直接にアクセスすることができないため、
そのテストパタンを作成する場合にも上記と同様の問題
点が存在する。Since the test of the address tag memory 5 and the LRU bit memory 8 in the conventional set associative cache memory is performed by the above-described method, the test pattern to write to the address tag memory 5, that is, to which way the tag address is written. It cannot be controlled easily from the outside. Therefore, in creating the test pattern, it is necessary to know the state of the LRU bit, that is, the access history of the way to each entry, which causes the problem of making the test pattern difficult. Further, as is apparent from FIG. 3, since the LRU bit memory 8 itself cannot be directly accessed from the outside,
When creating the test pattern, there are the same problems as described above.
この発明は、上記の問題点を解決するためになされたも
ので、タグメモリおよびLRUのテストを容易に行うこと
が可能なセットアソシアティブ方式キャッシュメモリを
得ることを目的とする。The present invention has been made to solve the above problems, and an object of the present invention is to obtain a set associative cache memory that can easily test a tag memory and an LRU.
この発明の請求項(1)記載のセットアソシアティブ方
式キャッシュメモリは、特定のウエイを指示する外部か
らのウエイ選択信号を受けてウエイヒット信号を生成す
るデコード回路と、診断モード信号を受けてデコード回
路からのウエイヒット信号と優先順位記憶手段からのウ
エイヒット信号のうちの一方を選択して出力する第3の
セレクタとを設けたものである。A set associative cache memory according to claim 1 of the present invention is a decode circuit for receiving a way selection signal from the outside for designating a specific way and generating a way hit signal, and a decode circuit for receiving a diagnostic mode signal. And a third selector for selecting and outputting one of the way hit signal from the priority order storing means and the way hit signal from the priority storing means.
この発明の請求項(2)記載のセットアソシアティブ方
式キャッシュメモリは、特定のウエイを指示する外部か
らのウエイ選択信号を受けてウエイヒット信号を生成す
るデコード回路と、診断モード信号を受けてデコード回
路からのウエイヒット信号と優先順位記憶手段からのウ
エイヒット信号のうちの一方を選択して出力する第3の
セレクタと、診断モード信号によりデコード回路からの
ウエイヒット信号が選択された時に、そのウエイヒット
信号に従って優先順位記憶手段の内容を更新する制御回
路とを設けたものである。A set associative cache memory according to claim (2) of the present invention includes a decoding circuit for receiving a way selection signal from the outside for designating a specific way and generating a way hit signal, and a decoding circuit for receiving a diagnostic mode signal. From the decoder circuit and the third selector which selects and outputs one of the way hit signal from the priority order storing means and the way hit signal from the priority storing means, and when the way hit signal from the decoding circuit is selected by the diagnostic mode signal. And a control circuit for updating the contents of the priority storage means according to the hit signal.
請求項(1)のセットアソシアティブ方式キャッシュメ
モリにおいては、診断モード信号により診断モードとす
れば、外部から入力するウエイ選択信号によってウエイ
が選択される。In the set associative cache memory according to the first aspect, if the diagnostic mode is set to the diagnostic mode, the way is selected by the way selection signal input from the outside.
請求項(2)のセットアソシアティブ方式キャッシュメ
モリにおいては、診断モード信号により診断モードとす
れば、外部から入力するウエイ選択信号によってウエイ
が選択されるほか、その選択結果に従って優先順位記憶
手段の内容が更新される。In the set associative cache memory according to claim (2), if the diagnostic mode is set to the diagnostic mode, the way is selected by the way selection signal input from the outside, and the contents of the priority storage means are selected according to the selection result. Will be updated.
以下、この発明の実施例を図について説明する。 Embodiments of the present invention will be described below with reference to the drawings.
第1図はアドレスタグメモリ5のテストに最適な請求項
(1)記載のセットアソシアティブ方式キャッシュメモ
リの一実施例を示すブロック図である。この図におい
て、第3図と同一符号は同一のものを示し、12は診断モ
ード信号、13はウェイ選択信号、14はデコード回路、15
は第3のセレクタとしてのセレクタ回路、16は前記ウェ
イ選択信号13を前記デコード回路14でデコードすること
によって得られるウェイヒット信号、17は優先順位記憶
手段としての前記LRUビットメモリ8の発生するウェイ
ヒット信号である。FIG. 1 is a block diagram showing an embodiment of a set associative cache memory which is most suitable for testing the address tag memory 5. In this figure, the same symbols as those in FIG. 3 indicate the same elements, 12 is a diagnostic mode signal, 13 is a way selection signal, 14 is a decoding circuit, and 15 is a decoding circuit.
Is a selector circuit as a third selector, 16 is a way hit signal obtained by decoding the way selection signal 13 by the decoding circuit 14, and 17 is a way generated by the LRU bit memory 8 as priority storage means. It is a hit signal.
次に動作について説明する。Next, the operation will be described.
第1図に示す4ウェイセットアソシアティブ方式キャッ
シュメモリの通常動作は、第3図で示した従来例のキャ
ッシュメモリの動作と全く同じで、診断モードの動作の
みが異なる。以下に診断モードにおけるアドレスタグメ
モリのテストの手順について述べる。The normal operation of the 4-way set associative cache memory shown in FIG. 1 is exactly the same as the operation of the conventional cache memory shown in FIG. 3, except for the operation in the diagnostic mode. The procedure for testing the address tag memory in the diagnostic mode is described below.
まず、診断モード信号12を“1"に、ウェイ選択信号13を
選択すべきウェイに対応したレベルに設定する。ウェイ
選択信号13はキャッシュシステムの備えるウェイ数に対
応するビット数を持ち、例えば4ウェイであれば2ビッ
トとなる。次に各ウェイのアドレスタグメモリ5の内容
をクリアしておき、任意アドレスでキャッシュシステム
をアクセスする。アクセスを受けたエントリには、いず
れのウェイにもヒットすべきアドレスタグ2が存在しな
いから、外部メモリに対してデータを取り込むべく、外
部バスサイクルが発生し、先のアドレスの一部がアドレ
スタグとしてアドレスタグメモリ5に格納される。この
時診断モード信号12が“1"レベルにある場合には、セレ
クタ回路15はウェイヒット信号16を選択するので、アド
レスタグ2の書き込まれるウェイはウェイ選択信号13に
よって決定されることになる。この操作を全エントリの
全ウェイに対して繰り返し行うことによって、アドレス
タグメモリ5の全ビットに所望のテストパタンを書き込
むことができる。First, the diagnostic mode signal 12 is set to "1" and the way selection signal 13 is set to a level corresponding to the way to be selected. The way selection signal 13 has the number of bits corresponding to the number of ways provided in the cache system. Next, the contents of the address tag memory 5 of each way are cleared and the cache system is accessed with an arbitrary address. In the accessed entry, there is no address tag 2 that should hit in any way. Therefore, an external bus cycle occurs to fetch data to the external memory, and part of the previous address is the address tag. Is stored in the address tag memory 5. At this time, when the diagnostic mode signal 12 is at "1" level, the selector circuit 15 selects the way hit signal 16, so the way in which the address tag 2 is written is determined by the way selection signal 13. By repeating this operation for all ways of all entries, desired test patterns can be written in all bits of the address tag memory 5.
この時に注意すべきは、各エントリのアドレスタグメモ
リ5に対してテストパタンを書き込んでいく際、パタン
の書き込まれるべきウェイはLRUビットメモリ8の内容
には依存せず、常にウェイ選択信号13のレベルのみに従
う点である。したがって、LRUビットメモリ8の内容を
知ることなく、任意のエントリの任意のウェイに対して
テストパタンを必ず1サイクルで書き込むことができ
る。At this time, it should be noted that when writing a test pattern to the address tag memory 5 of each entry, the way to which the pattern is written does not depend on the contents of the LRU bit memory 8 and the way selection signal 13 The point is to follow the level only. Therefore, without knowing the contents of the LRU bit memory 8, the test pattern can be written in one cycle without exception in any way of any entry.
したがって、このキャッシュシステムの全エントリを適
当なアドレスパタン群、すなわち、キャッシュがヒット
すべきアドレスパタン群及びヒットせざるべきアドレス
パタン群で順次アクセスして、キャッシュがヒット、ミ
スヒットの判定を正しく行うか否かを調べることによ
り、アドレスタグメモリ5のテストを行うことができ
る。Therefore, all entries of this cache system are sequentially accessed by an appropriate address pattern group, that is, an address pattern group which should be hit by the cache and an address pattern group which should be hit by the cache, and the cache is correctly judged as a hit or a mishit. By checking whether or not the address tag memory 5 can be tested.
また、第2図はLRUビットメモリ8のテストに最適な請
求項(2)記載のセットアソシアティブキャッシュメモ
リの一実施例を示すブロック図である。この図におい
て、第1図と同一符号は同一のものを示し、18は制御回
路で、診断モード時にはウェイ選択信号13をデコードし
て得られるウェイヒット信号16で指定されたウェイが、
アクセスされたものとしてLRUビットメモリ8を更新す
る機能を持つ。Further, FIG. 2 is a block diagram showing an embodiment of the set associative cache memory according to claim (2) which is most suitable for the test of the LRU bit memory 8. In this figure, the same reference numerals as those in FIG. 1 indicate the same parts, and 18 is a control circuit, and in the diagnostic mode, the way designated by the way hit signal 16 obtained by decoding the way selection signal 13 is
It has a function of updating the LRU bit memory 8 as if accessed.
したがって、この実施例によれば、アドレスタグメモリ
5のテストを先の手順で実施する際、各時点におけるLR
Uビットメモリ8のビット内容を非常に簡単な論理から
把握できる。LRUビットメモリ8が所望の値に設定され
ているか否かはその後の数回にわたる読み出し操作で間
接的に知る必要があるが、その設定操作は上記のように
簡単に行うことができる。Therefore, according to this embodiment, when the test of the address tag memory 5 is carried out by the previous procedure, the LR at each time point is
The bit contents of the U bit memory 8 can be grasped from a very simple logic. Whether or not the LRU bit memory 8 is set to a desired value needs to be indirectly known by several subsequent read operations, but the setting operation can be easily performed as described above.
以上説明したように、この発明の請求項(1)記載のセ
ットアソシアティブ方式キャッシュメモリは、特定のウ
エイを指示する外部からのウエイ選択信号を受けてウエ
イヒット信号を生成するデコード回路と、診断モード信
号を受けてデコード回路からのウエイヒット信号と優先
順位記憶手段からのウエイヒット信号のうちの一方を選
択して出力する第3のセレクタとを設けたので、ウエイ
の選択を外部から直接行うことが可能になり、アドレス
タグメモリの診断のためのテストパタン作成のアルゴリ
ズムが非常に簡単化されるという効果がある。As described above, the set associative cache memory according to claim (1) of the present invention includes a decoding circuit for receiving a way selection signal from the outside for designating a specific way and generating a way hit signal, and a diagnostic mode. Since the third selector which receives the signal and selects and outputs one of the way hit signal from the decoding circuit and the way hit signal from the priority order storing means is provided, the way can be selected directly from the outside. This makes it possible to significantly simplify the algorithm for creating a test pattern for diagnosing the address tag memory.
また、請求項(2)記載のセットアソシアティブ方式キ
ャッシュメモリは、特定のウエイを指示する外部からの
ウエイ選択信号を受けてウエイヒット信号を生成するデ
コード回路と、診断モード信号を受けてデコード回路か
らのウエイヒット信号と優先順位記憶手段からのウエイ
ヒット信号のうちの一方を選択して出力する第3のセレ
クタと、診断モード信号によりデコード回路からのウエ
イヒット信号が選択された時に、そのウエイヒット信号
に従って優先順位記憶手段の内容を更新する制御回路と
を設けたので、ウエイの選択を外部から直接行うことが
可能になるほか、その選択結果に従って優先順位記憶手
段の内容を更新でき、優先順位記憶手段の診断のための
テストパターン作成のアルゴリズムも非常に簡単化され
るという効果がある。A set associative cache memory according to a second aspect of the present invention includes a decoding circuit that receives a way selection signal from the outside for designating a specific way and generates a way hit signal, and a decoding circuit that receives a diagnostic mode signal. Of the way hit signal and the way hit signal from the priority storing means, and a third selector for selecting and outputting one of the way hit signals and the way hit signal from the decoding circuit by the diagnostic mode signal. Since the control circuit for updating the contents of the priority storage means according to the signal is provided, the way can be selected directly from the outside, and the contents of the priority storage means can be updated according to the selection result. This has the effect that the algorithm for creating a test pattern for diagnosing the storage means is also greatly simplified. .
第1図は請求項(1)記載のセットアソシアティブ方式
キャッシュメモリの一実施例を示すブロック図、第2図
は請求項(2)記載のセットアソシアティブ方式キャッ
シュメモリの一実施例を示すブロック図、第3図は従来
の4ウェイセットアソシアティブ方式キャッシュメモリ
のブロック図である。 図において、1はアドレス、2はアドレスタグ、3はセ
ットセレクト、4はワードセレクト、5はアドレスタグ
メモリ、6はバリッドビットメモリ、7はデータブロッ
クメモリ、8はLRUビットメモリ、9はアドレスタグ比
較器、10,11は第1,第2のセレクタ、12は診断モード信
号、13はウェイ選択信号、14はデコード回路、15はセレ
クタ回路、16,17はウェイヒット信号、18は制御回路で
ある。 なお、各図中の同一符号は同一または相当部分を示す。FIG. 1 is a block diagram showing an embodiment of a set associative cache memory according to claim (1), and FIG. 2 is a block diagram showing an embodiment of a set associative cache memory according to claim (2). FIG. 3 is a block diagram of a conventional 4-way set associative cache memory. In the figure, 1 is an address, 2 is an address tag, 3 is a set select, 4 is a word select, 5 is an address tag memory, 6 is a valid bit memory, 7 is a data block memory, 8 is an LRU bit memory, and 9 is an address tag. Comparators, 10 and 11 are first and second selectors, 12 is a diagnostic mode signal, 13 is a way selection signal, 14 is a decode circuit, 15 is a selector circuit, 16 and 17 are way hit signals, and 18 is a control circuit. is there. The same reference numerals in each drawing indicate the same or corresponding parts.
Claims (2)
レクトからなるアドレスを入力とし、キャッシュメモリ
内にあるデータを保持するデータブロックメモリと、前
記アドレスタグを前記データブロックメモリの内容に対
応させて記憶するアドレスタグメモリと、前記データブ
ロツク内のメモリが有効であるか無効であるかを示すバ
リッドビットメモリと、各ウエイのデータの置き換え優
先順位を記憶する優先順位記憶手段と、前記アドレスタ
グと前記アドレスタグメモリ内のデータを比較するアド
レスタグ比較器と、前記ワードセレクトによりワードデ
ータを選択する第1のセレクタと、前記アドレスタグ比
較器の出力によって前記第1のセレクタからのワードデ
ータを選択して出力する第2のセレクタとを有するセッ
トアソシアティブ方式キャッシュメモリにおいて、特定
のウエイを指示する外部からのウエイ選択信号を受けて
ウエイヒット信号を生成するデコード回路と、診断モー
ド信号を受けて前記デコード回路からのウエイヒット信
号と前記優先順位記憶手段からのウエイヒット信号のう
ちの一方を選択して出力する第3のセレクタとを設けた
ことを特徴とするセットアソシアティブ方式キャッシュ
メモリ。1. A data block memory which holds an address consisting of an address tag, a set select and a word select, and stores data in a cache memory, and the address tag is stored in association with the contents of the data block memory. An address tag memory, a valid bit memory indicating whether the memory in the data block is valid or invalid, a priority storage unit for storing the replacement priority of the data of each way, the address tag and the address An address tag comparator for comparing the data in the tag memory, a first selector for selecting the word data by the word select, and a word data from the first selector for selecting the output of the address tag comparator. Set associative with output second selector In a cache memory, a decoding circuit for receiving a way selection signal from the outside for designating a specific way and generating a way hit signal, and a way hit signal from the decoding circuit for receiving a diagnostic mode signal and the priority storing means And a third selector that selects and outputs one of the way hit signals from the set associative type cache memory.
レクトからなるアドレスを入力とし、キャッシュメモリ
内にあるデータを保持するデータブロックメモリと、前
記アドレスタグを前記データブロックメモリの内容に対
応させて記憶するアドレスタグメモリと、前記データブ
ロツク内のメモリが有効であるか無効であるかを示すバ
リッドビットメモリと、各ウエイのデータの置き換え優
先順位を記憶する優先順位記憶手段と、前記アドレスタ
グと前記アドレスタグメモリ内のデータを比較するアド
レスタグ比較器と、前記ワードセレクトによりワードデ
ータを選択する第1のセレクタと、前記アドレスタグ比
較器の出力によって前記第1のセレクタからのワードデ
ータを選択して出力する第2のセレクタとを有するセッ
トアソシアティブ方式キャッシュメモリにおいて、特定
のウエイを指示する外部からのウエイ選択信号を受けて
ウエイヒット信号を生成するデコード回路と、診断モー
ド信号を受けて前記デコード回路からのウエイヒット信
号と前記優先順位記憶手段からのウエイヒット信号のう
ちの一方を選択して出力する第3のセレクタと、前記診
断モード信号により前記デコード回路からのウエイヒッ
ト信号が選択された時に、そのウエイヒット信号に従っ
て前記優先順位記憶手段の内容を更新する制御回路とを
設けたことを特徴とするセットアソシアティブ方式キャ
ッシュメモリ。2. A data block memory for holding data in a cache memory, and an address tag corresponding to the contents of the data block memory. An address tag memory, a valid bit memory indicating whether the memory in the data block is valid or invalid, a priority storage unit for storing the replacement priority of the data of each way, the address tag and the address An address tag comparator for comparing the data in the tag memory, a first selector for selecting the word data by the word select, and a word data from the first selector for selecting the output of the address tag comparator. Set associative with output second selector In a cache memory, a decoding circuit for receiving a way selection signal from the outside for designating a specific way and generating a way hit signal, and a way hit signal from the decoding circuit for receiving a diagnostic mode signal and the priority storing means A third selector that selects and outputs one of the way hit signals from the decoder circuit and the priority storage means according to the way hit signal when the way hit signal from the decoding circuit is selected by the diagnostic mode signal. And a control circuit for updating the contents of the set associative cache memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1200627A JPH0795309B2 (en) | 1989-08-02 | 1989-08-02 | Set associative cache memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1200627A JPH0795309B2 (en) | 1989-08-02 | 1989-08-02 | Set associative cache memory |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0363849A JPH0363849A (en) | 1991-03-19 |
| JPH0795309B2 true JPH0795309B2 (en) | 1995-10-11 |
Family
ID=16427525
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1200627A Expired - Lifetime JPH0795309B2 (en) | 1989-08-02 | 1989-08-02 | Set associative cache memory |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0795309B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006072168A (en) * | 2004-09-06 | 2006-03-16 | The Pack Corp | Sheet body with which stereoscopic visual effect can be obtained by changing moire, manufacturing method therefor and bag body thereof |
-
1989
- 1989-08-02 JP JP1200627A patent/JPH0795309B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0363849A (en) | 1991-03-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4168541A (en) | Paired least recently used block replacement system | |
| US4996641A (en) | Diagnostic mode for a cache | |
| US4357656A (en) | Method and apparatus for disabling and diagnosing cache memory storage locations | |
| EP0455230A2 (en) | Cache memory apparatus | |
| US4426682A (en) | Fast cache flush mechanism | |
| JP3718302B2 (en) | Instruction fetch method and apparatus | |
| US4999770A (en) | Command controlled multi-storage space protection key pretesting system permitting access regardless of test result if selected key is predetermined value | |
| US4831622A (en) | Apparatus for forcing a reload from main memory upon cache memory error | |
| US5511180A (en) | Method and circuit for determining the size of a cache memory | |
| US6785770B2 (en) | Data processing apparatus with a cache memory and method of using such an apparatus | |
| US6240532B1 (en) | Programmable hit and write policy for cache memory test | |
| JP3407808B2 (en) | Computer system | |
| JPH0786848B2 (en) | Cache memory | |
| JP3589485B2 (en) | Set associative memory device and processor | |
| US5555379A (en) | Cache controller index address generator | |
| JPH0795309B2 (en) | Set associative cache memory | |
| JP2701703B2 (en) | Cache memory | |
| JPH08195089A (en) | Apparatus and method for simultaneous detection of pluralityof conditions | |
| JP3100807B2 (en) | Cache memory device | |
| EP0173556A2 (en) | Hierarchical architecture for determining the least recently used cache memory | |
| US6216198B1 (en) | Cache memory accessible for continuous data without tag array indexing | |
| JPH0235545A (en) | Diagnosing method for set associative cache memory | |
| JPH01233638A (en) | Cache memory for set associative system | |
| JP2845762B2 (en) | Hierarchical buffer memory device | |
| JPH02156352A (en) | cache memory |