JPH0363849A - Cache memory of set associative system - Google Patents
Cache memory of set associative systemInfo
- Publication number
- JPH0363849A JPH0363849A JP1200627A JP20062789A JPH0363849A JP H0363849 A JPH0363849 A JP H0363849A JP 1200627 A JP1200627 A JP 1200627A JP 20062789 A JP20062789 A JP 20062789A JP H0363849 A JPH0363849 A JP H0363849A
- Authority
- JP
- Japan
- Prior art keywords
- way
- memory
- address tag
- selector
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、キャッシュ・システムに含まれるアドレス
タグメモリおよびL RU (Least Recen
t−1y Used)ビットメモリのテストを容易に行
うことが可能なセットアソシアティブ方式キャッシュメ
モリに関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention provides an address tag memory and an LRU (Least Receiver) included in a cache system.
The present invention relates to a set associative type cache memory that allows a bit memory to be easily tested.
第3図は従来のセットアソシアティブ方式キャッシュメ
モリの診断方法を説明するためのアドレス構成図および
4ウ工イセツトアソシアテイブ方式キャッシュメモリの
ブロック図である。この4ウ工イセツトアソシアテイブ
方式キャッシュメモリは、CQ出版社の「インタフェー
スJ 1987年9月号の205頁に記載されたもので
ある。FIG. 3 is an address configuration diagram and a block diagram of a four-way set associative cache memory for explaining a conventional method of diagnosing a set associative cache memory. This four-way set associative cache memory is described in "Interface J" published by CQ Publishing Co., Ltd., September 1987 issue, page 205.
第3図において、1はキャッシュメモリにアクセスしよ
うとするアドレス、2は前記アドレス1の一部であるア
ドレスタグ、3は前記アドレス1の一部であるセットセ
レクト、4は前記アドレス1の一部であるワードセレク
ト、5はキャッシュメモリ内にあるアドレスタグを保持
するアドレスタグ2そり、6は後記データブロックメモ
リ7の保持しているデータが有効であるか無効であるか
を示すバリッドビットメモリ、7はキャッシュメモリ内
にあるデータを保持するデータブロックメモリ、8は各
ウェイのデータの置き換え優先準位記憶手段としてのL
RUビットメモリであり、LRUビットメモリ8はデー
タの置き換えをLRU(1,gast Recentl
y 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 that is a part of the address 1, 3 is a set select that is a part of the address 1, and 4 is a part of the address 1. 5 is an address tag 2 that holds the 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 that holds data in the cache memory, and 8 is L as a data replacement priority level storage means for each way.
This is an RU bit memory, and the LRU bit memory 8 performs data replacement using LRU (1, gast Recent).
y Used) is a status register controlled by the algorithm. Furthermore, 9 is an address tag comparator that compares the address data held in the address tag 2 and the address tag memory 5 to check whether they match; The first selector 11 selected is the second selector selected by the address tag comparator 9, and a is the output data output from the second selector 11.
次に動作について説明する。Next, the operation will be explained.
外部からアドレス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 outside, set select 3
The contents of the address tag memory 5 of each way selected in the word select 4 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, and the word data selected in the word select 4 is sent to the second selector 10. is sent to the selector 11 of. Then, it is checked whether the contents of the address tag memory 5 selected by the address tag comparator 9 match the address tag 2, and if a matching way exists, the second selector 11 selects the way. Output the way data as output data a. However, if there is a mismatch in the address tag comparator 9, the main memory outside the cache memory,
(not shown), reads the data, sends the data to the MPU, and stores the data in the data block memory 7 in the cache memory. At this time, the LRU algorithm determines in which way the data should be stored, and this information is stored in the LRU 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 part of the previous address to the tag memory of the entry accessed in set select 3, and then The objective is to check whether cache hit determination and cache hit determination are performed correctly when the cache system is accessed using the same cache entry as before. In other words, if an address with the same bit pattern string as the address tag 2 previously written to the address tag memory 5 is accessed, it is determined to be a cache hit, the contents of the data memory are output, and the address tag 2 and the written address tag 2 are accessed. Addresses with different bitbump string groups are determined to be cache waste, and it is checked to see if an external memory access cycle occurs in order to fetch data into the data block memory 7.
この時、注意すべきはアドレスタグ2の書き込まれるウ
ェイは、その時点においての各エントリのLRUビット
が示す優先準位に従う点である。At this time, it should be noted that the way in which address tag 2 is written follows the priority level indicated by the LRU bit of each entry at that time.
したがって、テストバタンの作成に当ってはこの点を考
慮にいれ、各テストベクトルを与える時点でのLRUビ
ットの状態を把握している必要がある。Therefore, when creating a test vector, it is necessary to take this point into consideration and to know the state of the LRU bit at the time when each test vector is applied.
次に、このキャッシュメモリのLRUビットメモリ8の
診断方法について述ヘル。Next, a method for diagnosing the LRU bit memory 8 of this cache memory will be described.
この従来例では、LRUビットメモリ8に外部から直接
データを書き込むことができないため、LRUビットメ
モリ8を診断すべき値に設定するためには、メインメモ
リのデータをキャッシュメモリに複数回書き込むという
動作が必要である。In this conventional example, since it is not possible to directly write data to the LRU bit memory 8 from the outside, in order to set the LRU bit memory 8 to a value that should be diagnosed, data in the main memory is written to the cache memory multiple times. is necessary.
その上で、LRUビットメモリ8が所望の値に設定され
ていることを確認するためには、キャッシュメモリより
の複数回の読み出し動作とメインメモリのデータをキャ
ッシュメモリに複数回書き込むという動作が必要である
。この場合にも先と同じ理由で、テストバタンの作成に
当っては各時点におけるLRUの状態を把握している必
要がある。On top of that, in order to confirm that the LRU bit memory 8 is set to the desired value, it is necessary to read the cache memory multiple times and write the main memory data to the cache memory multiple times. It is. In this case, for the same reason as before, it is necessary to know the state of the LRU at each point in time when creating a test button.
従来のセットアソシアティブ方式キャッシュメモリにお
けるアドレスタグメモリ5およびLRUビットメモリ8
のテストは上記のような手法で行われているため、アド
レスタグメモリ5へ書き込むテストバタン、すなわち、
タグアドレスをどのウェイに書き込むかを外部から簡単
に制御することができない。したがって、テストバタン
の作成においてはLRUビットの状態、すなわち、各エ
ントリに対してのウェイのアクセスの履歴を知る必要が
あり、テストバタンの作成を困難にする問題点がある。Address tag memory 5 and LRU bit memory 8 in conventional set-associative cache memory
Since the test is performed using the method described above, the test button to write to the address tag memory 5, that is,
It is not possible to easily control from the outside which way the tag address is written. Therefore, in creating a test button, it is necessary to know the state of the LRU bit, that is, the history of way accesses to each entry, which poses a problem that makes it difficult to create a test button.
また、第3図から明らかなように、LRUビットメモリ
8自身も外部から直接にアクセスすることができないた
め、そのテストバタンを作成する場合にも上記と同様の
問題点が存在する。Further, as is clear from FIG. 3, since the LRU bit memory 8 itself cannot be accessed directly from the outside, the same problem as above exists when creating a test button for it.
この発明は、上記の問題点を解決するためになされたも
ので、タグメモリおよびLRUのテストを容易に行うこ
とが可能なセットアソシアティブ方式キャッシュメモリ
を得ることを目的とする。The present invention was made in order to solve the above problems, and an object of the present invention is to obtain a set associative type cache memory that allows tag memory and LRU tests to be easily performed.
(課題を解決するための手段)
この発明の請求項0)記載のセットアソシアティブ方式
キャッシュメモリは、特定のウェイを指示する外部から
のウェイ選択信号を受けてウェイヒツト信号を生成する
デコード回路と、診断モード信号を受けてデコード回路
からのウェイヒツト信号と優先順位記憶手段からのウェ
イヒツト信号のうちの一方を選択して出力する第3のセ
レクタとを設けたものである。(Means for Solving the Problems) A set associative cache memory according to claim 0 of the present invention includes a decoding circuit that generates a way hit signal in response to an external way selection signal instructing a specific way, and a diagnostic circuit. A third selector is provided for receiving the mode signal and selecting and outputting one of the Weihit signal from the decoding circuit and the Weihit signal from the priority storage means.
この発明の請求項(2)記載のセットアソシアティブ方
式キャッシュメモリは、特定のウェイな指示する外部か
らのウェイ選択信号を受けてウェイヒツト信号を生成す
るデコード回路と、診断モード信号を受けてデコード回
路からのウェイヒツト信号と優先順位記憶手段からのウ
ェイヒツト信号のうちの一方を選択して出力する第3の
セレクタと、診断モード信号によりデコード回路からの
ウェイヒツト信号が選択された時に、そのウェイヒツト
信号に従って優先順位記憶手段の内容を更新する制御回
路とを設けたものである。The set associative cache memory according to claim (2) of the present invention includes a decoding circuit that generates a way hit signal in response to an external way selection signal instructing a specific way, and a decoding circuit that generates a way hit signal in response to a diagnostic mode signal. a third selector for selecting and outputting one of the Weihit signal from the decoding circuit and the Weihit signal from the priority storage means; A control circuit for updating the contents of the storage means is provided.
請求項 (1)のセットアソシアティブ方式キャッシュ
メモリ定おいては、診断モード信号により診断モードと
すれば、外部から入力するウェイ選択信号によってウェ
イが選択される。In the set associative cache memory according to claim (1), when the diagnosis mode is set by the diagnosis mode signal, a way is selected by the way selection signal inputted from the outside.
請求項(2)のセットアソシアティブ方式キャッシュメ
モリにおいては、診断モード信号により診断モードとす
れば、外部から入力するウェイ選択信号によってウェイ
が選択されるほか、その選択結果に従って優先順位記憶
手段の内容が更新される。In the set associative cache memory of claim (2), when the diagnostic mode signal is set to the diagnostic mode, a way is selected by the way selection signal inputted from the outside, and the contents of the priority storage means are changed according to the selection result. 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でデ
コードすることによって得られるウェイヒツト信号、1
7は優先順位記憶手段としての前記LRUビットメモリ
8の発生するウェイヒツト信号である。FIG. 1 is a block diagram showing an embodiment of the set associative type cache memory according to claim (1), which is most suitable for testing the address tag memory 5. In this figure, the same reference numerals as in FIG. 3 indicate the same things, 12 is a diagnostic mode signal, 13 is a way selection signal, 14 is a decoding circuit, 15 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;
7 is a weight signal generated by the LRU bit memory 8 as a priority storage means.
次に動作について説明する。Next, the operation will be explained.
第1図に示す4ウ工イセツトアソシアテイブ方式キャッ
シュメモリの通常動作は、第3図で示した従来例のキャ
ッシュメモリの動作と全く同じで、診断モードの動作の
みが異なる。以下に診断モードにおけるアドレスタグメ
モリのテストの手順について述べる。The normal operation of the four-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, and differs only in the operation in the diagnostic mode. The procedure for testing the address tag memory in diagnostic mode will be described below.
まず、診断モード信号12を“1”に、ウェイ選択信号
13を選択すべきウェイに対応したレベルに設定する。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.
ウェイ選択信号13はキャッシュシステムの備えるウェ
イ数に対応するビット数を持ち、例えば4ウエイであれ
ば2ビツトとなる。The way selection signal 13 has the number of bits corresponding to the number of ways included in the cache system, and for example, for 4 ways, it has 2 bits.
次に各ウェイのアドレスタグメモリ5の内容をクリアし
ておき、任意アドレスでキャッシュシステムをアクセス
する。アクセスを受けたエントリには、いずれのウェイ
にもヒツトすべきアドレスタグ2が存在しないから、外
部メモリに対してデータを取り込むべく、外部バスサイ
クルが発生し、先のアドレスの一部がアドレスタグとし
てアドレスタグメモリ5に格納される。この時診断モー
ド信号12が″′1nレベルにある場合には、セレクタ
回路15はウェイヒット信号16を選択するので、アド
レスタグ2の書き込まれるウェイはウェイ選択信号13
によって決定されることになる。Next, the contents of the address tag memory 5 of each way are cleared, and the cache system is accessed using an arbitrary address. Since the accessed entry does not have address tag 2 to be hit in any way, an external bus cycle occurs to fetch data to external memory, and part of the previous address is added to the address tag. It is stored in the address tag memory 5 as an address tag. At this time, if the diagnostic mode signal 12 is at the ``''1n level, the selector circuit 15 selects the way hit signal 16, so the way in which the address tag 2 is written is the way select signal 13.
will be determined by.
この操作を全エントリの全ウェイに対して繰り返し行う
ことによって、アドレスタグメモリ5の全ビットに所望
のテストバタンを書き込むことができる。By repeating this operation for all ways of all entries, a desired test button 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 the test button to the address tag memory 5 of each entry, the way in which the button is written does not depend on the contents of the LRU bit memory 8, and the way selection signal 13 is always The point is that it only depends on the level. Therefore, without knowing the contents of the LRU bit memory 8, a test button can always be written to any way of any entry in one cycle.
したがって、このキャッシュシステムの全エントリを適
当なアドレスバタン群、すなわち、キャッシュがヒツト
すべきアドレスバタン群及びヒツトせざるべきアドレス
バタン群で順次アクセスして、キャッシュがヒツト、ミ
スヒツトの判定な正しく行うか否かを調べることにより
、アドレスタグメモリ5のテストを行うことができる。Therefore, all entries in this cache system are sequentially accessed using appropriate address button groups, that is, address button groups that should be hit by the cache and address button groups that should not be hit, so that the cache can correctly determine hits and misses. By checking whether or not the address tag memory 5 is present, 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 testing the LRU bit memory 8. In this figure, the same reference numerals as in FIG. 1 indicate the same parts, and 18 is a control circuit, in which the way specified by the way hit signal 16 obtained by decoding the way selection signal 13 in the diagnostic mode is the accessed way. It has the function of updating the LRU bit memory 8 as a function.
したがって、この実施例によれば、アドレスタグメモリ
5のテストを先の手順で実施する際、各時点におけるL
RUビットメモリ8のビット内容を非常に簡単な論理か
ら把握できる。LRUビットメモリ8が所望の値に設定
されているか否かはその後の数回にわたる読み出し操作
で間接的に知る必要があるが、その設定操作は上記のよ
うに簡単に行うことができる。Therefore, according to this embodiment, when testing the address tag memory 5 in the previous procedure, the L
The bit contents of the RU bit memory 8 can be understood from very simple logic. Although it is necessary to indirectly know whether the LRU bit memory 8 is set to a desired value through subsequent reading operations several times, the setting operation can be easily performed as described above.
以上説明したように、この発明の請求項 (1)記載の
セットアソシアティブ方式キャッシュメモリは、特定の
ウェイを指示する外部からのウェイ選択信号を受けてウ
ェイヒツト信号を生成するデコード回路と、診断モード
信号を受けてデコード回路からのウェイヒツト信号と優
先順位記憶手段からのウェイヒツト信号のうちの一方を
選択して出力する第3のセレクタとを設けたので、ウェ
イの選択を外部から直接行うことが可能になり、アドレ
スタグメモリの診断のためのテストバタン作成のアルゴ
リズムが非常に簡単化されるという効果がある。As explained above, the set associative cache memory according to claim (1) of the present invention includes a decoding circuit that generates a way hit signal in response to an external way selection signal instructing a specific way, and a diagnostic mode signal. Since a third selector is provided which selects and outputs either the way hit signal from the decoding circuit or the way hit signal from the priority storage means in response to the received way hit signal, it is possible to directly select a way from the outside. This has the effect that the algorithm for creating a test button for diagnosing the address tag memory is greatly simplified.
また、請求項 (2)記載のセットアソシアティブ方式
キャッシュメモリは、特定のウェイを指示する外部から
のウェイ選択信号を受けてウェイヒツト信号を生成する
デコード回路と、診断モード信号を受けてデコード回路
からのウェイヒツト信号と優先順位記憶手段からのウェ
イヒツト信号のうちの一方を選択して出力する第3のセ
レクタと、診断モード信号によりデコード回路からのウ
ェイヒツト信号が選択された時に、そのウェイヒツト信
号に従って優先順位記憶手段の内容を更新する制御回路
とを設けたので、ウェイの選択を外部から直接行うこと
が可能になるほか、その選択結果に従って優先順位記憶
手段の内容を更新でき、優先順位記憶手段の診断のため
のテストパターン作成のアルゴリズムも非常に簡単化さ
れるという効果がある。Further, the set associative cache memory according to claim (2) includes a decoding circuit that generates a way hit signal in response to an external way selection signal instructing a specific way, and a decoding circuit that generates a way hit signal in response to a diagnostic mode signal. a third selector for selecting and outputting either the Weicht signal or the Weicht signal from the priority storage means; and a third selector for selecting and outputting either the Weicht signal or the Weicht signal from the priority storage means; Since a control circuit for updating the contents of the means is provided, it is possible to directly select a way from the outside, and the contents of the priority storage means can be updated according to the selection result, making it possible to diagnose the priority storage means. This has the effect of greatly simplifying the algorithm for creating test patterns.
第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 the set associative cache memory according to claim (1), and FIG.
The figure is a block diagram showing an embodiment of a set associative cache memory according to claim (2), and FIG. 3 is a block diagram of a conventional four-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 Comparator, 10°11 is the 1st. A second selector, 12 is a diagnostic mode signal, 13 is a way selection signal, 14 is a decoding circuit, 15 is a selector circuit, 16.17 is a way hit signal, and 18 is a control circuit. Note that the same reference numerals in each figure indicate the same or corresponding parts.
Claims (2)
からなるアドレスを入力とし、キャッシュメモリ内にあ
るデータを保持するデータブロックメモリと、前記アド
レスタグを前記データブロックメモリの内容に対応させ
て記憶するアドレスタグメモリと、前記データブロック
内のメモリが有効であるか無効であるかを示すバリッド
ビットメモリと、各ウェイのデータの置き換え優先順位
を記憶する優先順位記憶手段と、前記アドレスタグと前
記アドレスタグメモリ内のデータを比較するアドレスタ
グ比較器と、前記ワードセレクトによりワードデータを
選択する第1のセレクタと、前記アドレスタグ比較器の
出力によって前記第1のセレクタからのワードデータを
選択して出力する第2のセレクタとを有するセットアソ
シアティブ方式キャッシュメモリにおいて、特定のウェ
イを指示する外部からのウェイ選択信号を受けてウェイ
ヒット信号を生成するデコード回路と、診断モード信号
を受けて前記デコード回路からのウェイヒット信号と前
記優先順位記憶手段からのウェイヒット信号のうちの一
方を選択して出力する第3のセレクタとを設けたことを
特徴とするセットアソシアティブ方式キャッシュメモリ
。(1) A data block memory that receives an address consisting of an address tag, set select, and word select as input and holds data in the cache memory, and an address tag that stores the address tag in correspondence with the contents of the data block memory. a memory, a valid bit memory for indicating whether the memory in the data block is valid or invalid, a priority storage means for storing data replacement priority for each way, the address tag and the address tag memory. an address tag comparator that compares data in the address tag comparator, a first selector that selects word data by the word select, and a word data from the first selector that is selected and output based on the output of the address tag comparator. In a set associative cache memory having a second selector, a decoding circuit generates a way hit signal in response to an external way selection signal indicating a specific way, and a decoding circuit generates a way hit signal in response to a diagnostic mode signal from the decoding circuit. A set associative type cache memory comprising a third selector that selects and outputs one of the way hit signal and the way hit signal from the priority storage means.
からなるアドレスを入力とし、キャッシュメモリ内にあ
るデータを保持するデータブロックメモリと、前記アド
レスタグを前記データブロックメモリの内容に対応させ
て記憶するアドレスタグメモリと、前記データブロック
内のメモリが有効であるか無効であるかを示すバリッド
ビットメモリと、各ウェイのデータの置き換え優先順位
を記憶する優先順位記憶手段と、前記アドレスタグと前
記アドレスタグメモリ内のデータを比較するアドレスタ
グ比較器と、前記ワードセレクトによりワードデータを
選択する第1のセレクタと、前記アドレスタグ比較器の
出力によって前記第1のセレクタからのワードデータを
選択して出力する第2のセレクタとを有するセットアソ
シアティブ方式キャッシュメモリにおいて、特定のウェ
イを指示する外部からのウェイ選択信号を受けてウェイ
ヒット信号を生成するデコード回路と、診断モード信号
を受けて前記デコード回路からのウェイヒット信号と前
記優先順位記憶手段からのウェイヒット信号のうちの一
方を選択して出力する第3のセレクタと、前記診断モー
ド信号により前記デコード回路からのウェイヒット信号
が選択された時に、そのウェイヒット信号に従って前記
優先順位記憶手段の内容を更新する制御回路とを設けた
ことを特徴とするセットアソシアティブ方式キャッシュ
メモリ。(2) A data block memory that receives an address consisting of an address tag, set select, and word select as input and holds data in the cache memory, and an address tag that stores the address tag in correspondence with the contents of the data block memory. a memory, a valid bit memory for indicating whether the memory in the data block is valid or invalid, a priority storage means for storing data replacement priority for each way, the address tag and the address tag memory. an address tag comparator that compares data in the address tag comparator, a first selector that selects word data by the word select, and a word data from the first selector that is selected and output based on the output of the address tag comparator. In a set associative cache memory having a second selector, a decoding circuit generates a way hit signal in response to an external way selection signal indicating a specific way, and a decoding circuit generates a way hit signal in response to a diagnostic mode signal from the decoding circuit. a third selector for selecting and outputting one of the way hit signal and the way hit signal from the priority storage means; A set associative type cache memory, further comprising a control circuit that updates the contents of the priority storage means in accordance with a way hit signal.
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 true JPH0363849A (en) | 1991-03-19 |
| JPH0795309B2 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) |
Cited By (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
Cited By (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 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0795309B2 (en) | 1995-10-11 |
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 | |
| US5388104A (en) | Semiconductor integrated circuit capable of testing memory blocks | |
| US4686621A (en) | Test apparatus for testing a multilevel cache system with graceful degradation capability | |
| US5125085A (en) | Least recently used replacement level generating apparatus and method | |
| US20040193831A1 (en) | Memory management in a data processing system | |
| US8589630B2 (en) | Methods and apparatus for handling a cache miss | |
| US5511180A (en) | Method and circuit for determining the size of a cache memory | |
| JPH0524540B2 (en) | ||
| US6240532B1 (en) | Programmable hit and write policy for cache memory test | |
| US8230277B2 (en) | Storage of data in data stores having some faulty storage locations | |
| JP3407808B2 (en) | Computer system | |
| US5463760A (en) | Break function in-circuit emulator for a microprocessor with a cache memory | |
| JPS61180347A (en) | Addressable cash memory by physical address and virtual address | |
| JPH0363849A (en) | Cache memory of set associative system | |
| JP2002312252A (en) | Memory diagnostic device and diagnostic method | |
| US6968427B1 (en) | Built-in self test circuit for testing cache tag array and compare logic | |
| JP3060825B2 (en) | Semiconductor integrated circuit and inspection method thereof | |
| US20090055687A1 (en) | RAM diagnosis device and RAM diagnosis method | |
| JPH01233638A (en) | Cache memory for set associative system | |
| JPH0235545A (en) | Diagnosing method for set associative cache memory | |
| JP2824853B2 (en) | Pattern data writing method | |
| JPH11250698A (en) | Parallel test circuit device and test circuit device for semiconductor memory device | |
| JP2845762B2 (en) | Hierarchical buffer memory device |