JPH01205250A - Method for controlling cache memory - Google Patents

Method for controlling cache memory

Info

Publication number
JPH01205250A
JPH01205250A JP63028750A JP2875088A JPH01205250A JP H01205250 A JPH01205250 A JP H01205250A JP 63028750 A JP63028750 A JP 63028750A JP 2875088 A JP2875088 A JP 2875088A JP H01205250 A JPH01205250 A JP H01205250A
Authority
JP
Japan
Prior art keywords
data
way
cache memory
ways
tag
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
JP63028750A
Other languages
Japanese (ja)
Other versions
JPH0821001B2 (en
Inventor
Hideki Osone
大曽根 秀樹
Kazue Yamaguchi
和枝 山口
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 JP63028750A priority Critical patent/JPH0821001B2/en
Publication of JPH01205250A publication Critical patent/JPH01205250A/en
Publication of JPH0821001B2 publication Critical patent/JPH0821001B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To increase a resident rate to the cache memory of specific information and to execute an efficiency by giving a tag to specific data, making a specific number of ways into ways with tags as to the ways to store the data with the tag, and excluding them from the object of a data rewriting. CONSTITUTION:A cache memory 13 is composed of a CACHE DIRECTORY ARRAY 14 and a CACHE DATA ARRAY 15. Here, the specific data are made into the data with the tag, and the specific number of ways to be simultaneously exist in the ways to store the data with the tag is made into the ways with the tags. At the time of rewriting the data, the way with the tag is handled as the way not to be made into the object of the rewriting in an algorithm, and at the time of rewriting the data with the tag, the way to store the data with the tag is switched as a new way with the tag. Thus, the resident rate of the specific data can be increased, and the cache memory 13 can be efficiently controlled.

Description

【発明の詳細な説明】 〔概要〕 複数のウェイで構成されるキャッシュメモリの制御方法
であって、どのウェイのデータを書き替えるかを所定の
アルゴリズムで決定するものに関し、 特定のデータの常駐率を高いものとして効率のよいキャ
ッシュメモリの制御を行なうことができるようにするこ
とを目的とし、 複数のウェイで構成されるキャッシュメモリの制御方法
であって、どのウェイのデータを書き替えるかを所定の
アルゴリズムで決定するものにおいて、特定のデータを
タグ付きデータとして、このようなタグ付きデータを格
納したウェイのうち同時存在する特定個数をタグ付きウ
ェイとし、データ書き替えのとき、タグ付きウェイを上
記のアルゴリズムにおける書き替えの対象とならないも
のとして取扱い、タグ付きデータの書き替えの時にはこ
のタグ付きデータを格納したウェイな新たなタグ付きウ
ェイとして入換えるように構成する。
[Detailed Description of the Invention] [Summary] A control method for a cache memory composed of a plurality of ways, which uses a predetermined algorithm to determine which way data is to be rewritten. This is a method for controlling a cache memory composed of multiple ways, with the aim of achieving efficient cache memory control with high performance. In the algorithm determined by It is handled as not subject to rewriting in the above algorithm, and when tagged data is rewritten, it is configured to be replaced as a new tagged way that is the way in which this tagged data is stored.

(産業上の利用分野) 本発明はキャシュメモリの制御方法に係り、特に複数の
ウェイで構成されるキャッシュメモリの制御方法であっ
て、どのウェイのデータを書き替えるかを所定のアルゴ
リズムで決定するものに関する。
(Industrial Application Field) The present invention relates to a method for controlling a cache memory, and in particular a method for controlling a cache memory composed of a plurality of ways, in which a predetermined algorithm is used to determine which way data is to be rewritten. related to things.

〔従来の技術〕[Conventional technology]

一般に、第8図に示すように情報処理装置において、中
央処理装置(CPU)1のSユニット(SU)2は主記
憶装置(MSU)3の内容の一部の写しを格納するキャ
ッシュメモリ4を有し、データ転送の高速化を図ってい
る。このようなキャッシュメモリ4のアクセス時間は主
記憶装置3のアクセス時間に比べると非常に短く、また
その保持できるデータ量は主記憶装置3の保持できるデ
ータ量に比べると非常に少ない。そのため、このキャッ
シュメモリ4には効率良くデータを保持しなければなら
ない。
Generally, in an information processing apparatus, as shown in FIG. It is designed to speed up data transfer. The access time of the cache memory 4 is very short compared to the access time of the main storage device 3, and the amount of data that it can hold is very small compared to the amount of data that the main storage device 3 can hold. Therefore, data must be efficiently held in this cache memory 4.

尚、図中符号5はIユニット、6はEユニット、7は記
憶制御装置(Mcto私示している。
In the figure, reference numeral 5 indicates an I unit, 6 indicates an E unit, and 7 indicates a storage control device (MCTO).

従来、このようなキャッシュメモリの制御方法としてL
RU (Least Recently Used )
方式が採用されることがある。このLRU方式にあって
はキャッシュメモリの格納容量が一杯になって、新しい
データを書込むことができなくなったときに、最近最も
参照されないデータと新しいデータとの置換が行なわれ
る。
Conventionally, as a control method for such a cache memory, L
RU (Least Recently Used)
method may be adopted. In this LRU method, when the storage capacity of the cache memory becomes full and new data cannot be written, the least recently referenced data is replaced with new data.

これはキャッシュメモリがウェイ0からウェイ3までの
4ウエイで構成される例では第3図に示すような論理表
に従って行なわれる。図において、Bol、B02、B
03、B12、B13、B23は第9図に示すようにウ
ェイ0乃至ウェイ3の間においてどちらが最新に参照さ
れたかを示すもので例えばB。、はウェイ0とウェイl
との間においてウェイOのほうが最新に参照されていれ
ば1となり逆にウェイ1の方が最新に参照されていれば
0となる。これは他のB02、B03、B12、B13
、B23についても同様であり、もしウェイ0が全ての
ウェイ中で最近最も参照されていない時にはB。□、B
O2、BO3、の全ての値は1となる。なお、第3図に
おいて符号Φはそのビットの値が0であろうと1であろ
うと関係がないということを示している。またキャッシ
ュにヒツトした場合のビットB、、、  ・・・、B2
3の書込み論理が第4図に示されている。      
              1このような論理表によ
って最近最も参照されないウェイを認識してデータの書
き替えを実行する。
In an example where the cache memory is composed of four ways from way 0 to way 3, this is done according to a logical table as shown in FIG. In the figure, Bol, B02, B
03, B12, B13, and B23 indicate which of Ways 0 to 3 was most recently referenced, as shown in FIG. 9, and for example, B. , is way 0 and way l
If way O has been referenced more recently, it will be 1, and conversely, if way 1 has been referenced more recently, it will be 0. This is other B02, B03, B12, B13
, B23, if way 0 is the least recently referenced among all ways, B. □、B
All values of O2 and BO3 are 1. Note that in FIG. 3, the symbol Φ indicates that it does not matter whether the value of the bit is 0 or 1. Also, when the cache is hit, bit B, ..., B2
3 write logic is shown in FIG.
1. Using such a logical table, the least recently referenced way is recognized and the data is rewritten.

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

ところで、このようなキャッシュメモリ上にはユーザデ
ータの他トランスレーションテーブル、スーパバイザ、
ファーム命令といったデータが混在している。
By the way, in addition to user data, such cache memory also stores translation tables, supervisors,
Data such as firmware instructions are mixed.

しかしながら、上述したLRU方式によるキャッシュメ
モリの制御方法においては、データの性質に無関係にデ
ータの置換が行なわれるため効率の良い置換を行なうこ
とができないという問題がある。
However, in the cache memory control method using the LRU method described above, data replacement is performed regardless of the nature of the data, so there is a problem that efficient replacement cannot be performed.

そこで本発明は特定のデータの常駐率を高いものとして
効率のよいキャッシュメモリ制御を行なうことができる
キャッシュメモリの制御方法を提供することを目的とす
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a cache memory control method that can perform efficient cache memory control by increasing the resident rate of specific data.

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

本発明において上記の問題点を解決するための手段は、
複数のウェイで構成されるキャッシュメモリの制御方法
であって、どのウェイのデータを書き替えるかを所定の
アルゴリズムで決定するものにおいて、特定のデータを
タグ付きデータとして、このようなタグ付きデータを格
納したウェイのうち同時存在する特定個数をタグ付きウ
ェイとし、データ書き替えのとき、タグ付きウェイを上
記のアルゴリズムにおける書き替えの対象とならないも
のとして取扱い、タグ付きデータの書き替えの時にはこ
のタグ付きデータを格納したウェイを新たなタグ付きウ
ェイとして入換えることである。
Means for solving the above problems in the present invention are as follows:
In a method for controlling a cache memory composed of multiple ways, which uses a predetermined algorithm to determine which way's data is to be rewritten, specific data is treated as tagged data, and such tagged data is A specific number of stored ways that exist simultaneously are treated as tagged ways, and when data is rewritten, tagged ways are treated as not being rewritten in the above algorithm, and when tagged data is rewritten, this tag is This means replacing the way in which the tagged data is stored as a new tagged way.

〔作用〕 本発明にあってキャッシュメモリに格納される特定のデ
ータについはタグを付し、このタグ付きデータを格納し
たウェイについては特定の数をタグ付きウェイとしてデ
ータ書き替えの対象から外すこととなる。このため特定
情報のキャッシュメモリへの常駐率を高めることができ
る。
[Operation] According to the present invention, a tag is attached to specific data stored in the cache memory, and a specific number of ways storing this tagged data are excluded from data rewriting as tagged ways. becomes. Therefore, it is possible to increase the resident rate of specific information in the cache memory.

〔実施例〕〔Example〕

以下、本発明に係るキャシュメモリの制御方法の実施例
を図面に基づいて説明する。
Embodiments of the cache memory control method according to the present invention will be described below with reference to the drawings.

第1図乃至第7図は本発明に係るキャシュメモリの制御
方法の実施例を示すものである。第1図は本発明に係る
キャッシュメモリの制御方法を実行する装置の全体構成
図を示すものである。
1 to 7 show an embodiment of a cache memory control method according to the present invention. FIG. 1 shows an overall configuration diagram of an apparatus that executes a cache memory control method according to the present invention.

同図において10はCPUのエユニットからの論理アド
レスを格納するレジスタ、11はこの論理アドレスの所
定の上位アドレスを実アドレスに変換するTLBで、プ
ライマリ−とオルタネートの2つのウェイを有する。そ
してこのTLBIIの出力はセレクタ12を介して出力
される。また、13はキャッシュメモリを示しており、
このキャッシュメモリ13は上記のTLBからの出力を
受は実アドレスを出力するキャッシュデイレクトリアレ
イ(CACHE DIRERTORY ARRAY:以
下DIR)14とこの実アドレスに格納したデータを出
力するキャッシュデータアレイ(CHACHE DAT
EARREY:以下CDA)15とから構成されており
、4つのウェイ(WAYO〜WAY3)に分割されてい
る。そして各DIR14の各ウェイにはディレクトリマ
ツチレジスタ(DMR)16が設けられている。そして
CDA15に設けたセレクタ17が上記のDMRの値を
受けそのアドレスに相当するデータを選択する。このセ
レクタ17からのデータはI WR(IF WORD 
REGISTER)  18や0WR(OP WORD
 REGISTER) 19に出力される。
In the figure, 10 is a register that stores a logical address from an unit of the CPU, and 11 is a TLB that converts a predetermined upper address of this logical address into a real address, and has two ways, primary and alternate. The output of this TLBII is then output via the selector 12. In addition, 13 indicates a cache memory,
This cache memory 13 receives the output from the above-mentioned TLB, and has a cache directory array (hereinafter referred to as DIR) 14 that outputs a real address and a cache data array (CHACHE DAT) that outputs the data stored at this real address.
EARREY (hereinafter referred to as CDA) 15, and is divided into four ways (WAYO to WAY3). A directory match register (DMR) 16 is provided in each way of each DIR 14. Then, a selector 17 provided in the CDA 15 receives the above DMR value and selects data corresponding to that address. The data from this selector 17 is I WR (IF WORD
REGISTER) 18 and 0WR (OP WORD
REGISTER) 19.

また、同図において、20は上記のDMRの出力を受け
て書込み論理を発生する書込み論理発生部であって、第
3乃至第4の論理表を格納している。図において1及び
0はそのビットを1または0に書き替えることを意味し
、また符号Xはそのビットを変化させないことを意味し
ている(以下同じ。)。第3の論理表はタグなしデータ
を登録する時に用いるもので、第5図に示すように、上
記の第1の論理表にタグ部分(2ビツト)を付は加え、
これらのビットに符号Xを付したものである。そして第
4の論理表は、タグ付きデータを登録する時に用いるも
ので第6図に示すように、上記の第2の論理表のタグ部
分に自らのウェイ番号に相当する値を付加したものであ
る。
Further, in the figure, reference numeral 20 denotes a write logic generation section which generates write logic upon receiving the output of the DMR described above, and stores third and fourth logic tables. In the figure, 1 and 0 mean that the bit is rewritten to 1 or 0, and the symbol X means that the bit is not changed (the same applies hereinafter). The third logical table is used when registering untagged data, and as shown in Figure 5, a tag part (2 bits) is added to the first logical table, and
These bits are marked with X. The fourth logical table is used when registering tagged data, and as shown in Figure 6, a value corresponding to the own way number is added to the tag part of the second logical table. be.

また、21はキャシュリプレスアレー(RAR: CA
CHE REPLACE ARRAY)であって、キャ
ッシュメモリ13の各ウェイ間の参照情報(6ビツト)
とタグ付きウェイの番号をタグウェイビット(2ビツト
)とを格納する。そして、22は上記のRAR21の参
照情報及びタグウェイ情報と上記のDIR21のバリッ
ド情報を受け、書き替えるべきウェイな決定する決定論
理部である。この決定論理部22においては上記のタグ
ウェイビットの情報に基づいて参照情報を加工する第5
の論理表と、この加工後の参照情報に基づいて書き替え
るべきウェイな指定する第1の論理表とを有しており、
第5及び第1の論理表を経て置換すべきウェイを示すウ
ェイナンバーがリプレスウェイナンバーレジスタ(RE
PLACE WAY No REG) 23にセットさ
れる。
In addition, 21 is a cache repress array (RAR: CA
CHE REPLACE ARRAY), which is reference information (6 bits) between each way of the cache memory 13.
The tagged way number and tag way bit (2 bits) are stored. 22 is a decision logic unit that receives the reference information and tagway information of the RAR 21 and the valid information of the DIR 21 and determines the way to be rewritten. In this decision logic unit 22, the fifth
and a first logical table that specifies the way to be rewritten based on the reference information after processing,
The way number indicating the way to be replaced is entered in the repress way number register (RE) through the fifth and first logical tables.
PLACE WAY No REG) is set to 23.

この第5の論理表は第7図に示すように上記のタグウェ
イビットが指定するウェイ番号によって参照情報に情報
を付加するものである。例えば、タグウェイビットの示
すウェイがウェイ1であれば、SOtを強制的に0、B
12を強制的に1、B13を強制的に1とするものであ
る。図中符号FORCEI及びFORCEOは各ビット
を強制的に1またはOとすることを意味しており、符号
Xは変更を加えないことを意味している。
As shown in FIG. 7, this fifth logical table adds information to the reference information based on the way number specified by the tag way bit. For example, if the way indicated by the tag way bit is way 1, SOt is forced to 0, B
12 is forcibly set to 1, and B13 is forcibly set to 1. The symbols FORCEI and FORCEO in the figure mean that each bit is forcibly set to 1 or O, and the symbol X means that no change is made.

そして、第1の論理表は従来技術の説明において第3図
に示した論理表と全く同一であるのでその詳細な説明は
省略する。
Since the first logical table is exactly the same as the logical table shown in FIG. 3 in the description of the prior art, detailed description thereof will be omitted.

これらの決定論理は第2図に示す論理回路図で実現でき
る。
These decision logics can be realized by the logic circuit diagram shown in FIG.

次に本実施例に係る装置の作動について説明する。Next, the operation of the device according to this embodiment will be explained.

まずキャッシュメモリアクセスについて述べる。■ユニ
ットから送出されたTEAR(T CYCLEEFFE
CTIVE ADR8) ニよりTLBIIならびにD
 I R(CACHE DIRECTORY ARRA
Y)  14がアクセスされ、TLBIIによって変換
されたアドレスとDIR14内のアクセスされたアドレ
スとの一致がとられ、一致するアドレスがいずれかのウ
ェイに存在した場合には、該ウェイのD M R(DI
RECTORY MATCHREGISTER) 16
をONにセットする。また、TEARIOをSユニット
内で1でコピーしたBEAR(B CYCLE EFF
ECTIVE ADR8) 24 ”?? ハ、D A
 R(CACI(E DATA ARRAY) 15が
アクセスされており、該読出しデータのセレクト信号と
して上記DMR16が用いられる。該DMR信号により
セレクトされたデータはI WR(IF WORD R
EGISTER)18や0WR(OP WORD RE
GISTER) 19 ニ送出される。
First, we will discuss cache memory access. ■TEAR (T CYCLEEFFE) sent from the unit
CTIVE ADR8) TLBII and D
I R (CACHE DIRECTORY ARRA)
Y) 14 is accessed, the address translated by TLBII and the accessed address in DIR 14 are matched, and if a matching address exists in any way, the DMR( D.I.
RECTORY MATCHREGISTER) 16
Set to ON. In addition, BEAR (B CYCLE EFF
ECTIVE ADR8) 24 “?? Ha, D A
R (CACI (E DATA ARRAY) 15 is being accessed, and the DMR 16 is used as a select signal for the read data. The data selected by the DMR signal is I WR (IF WORD R
EGISTER) 18 and 0WR (OP WORD RE
GISTER) 19 will be sent.

つぎにRAR(CAC:HE REPLACE ARR
AY) 21の作動について述べる。該RAR21は上
記BEARのさ’) L 1 τ:ffピーであルRE
AR(RCYCLE EFFCTIVEADR3)25
によってアクセスされる。また該RAR21は、ウェイ
間参照状況(6ビツト)とタグウェイビット(2ビツト
)を保持するものである。
Next, RAR(CAC:HE REPLACE ARR
AY) The operation of 21 will be described. The RAR21 is the same as the above BEAR.
AR (RCYCLE EFFCTIVE ADR3) 25
accessed by The RAR 21 also holds inter-way reference status (6 bits) and tag way bits (2 bits).

上記RAR21の8ビツトの書き込み論理についての詳
細を述べる。上記8ビツトの書き込み論理は上述した通
りであり、上記DMR21により参照されたWAY(D
IRMCHWAY)を認識し、上述したBOl・B 0
2. BO31B!l+ Bt:i・B23の参照状況
ビットに書き込む(例えばウェイOが参照された場合に
はB。、、 B、2. Bo、に“1゛′が書き込まれ
る)。またデータの登録に際しては、タグなしデータ登
録時とタグ付きデータ登録時の二通りの書き込み論理が
ある。前者の書き込み論理は上述したように参照状況ビ
ット(6ビツト)にのみ書き込みが行われる。また、後
者の書き込み論理は参照状況ビット(6ビツト)ならび
にタグウェイビット(2ビツト)に書き込みが行われる
。参照状況ビットへ書き込む値は前者と同様であり、タ
グウェイビットへ書き込む値は、■ユニットから送出さ
れてくるTAG信号によりタグ付きデータであることを
認識し、該タグ付きデータをキャッシュメモリへ登録す
る際のウェイ番号(例えばウェイ0へ登録する場合には
2ビツトとも“0”)をTB、、TB、の2ビツトに書
き込むものである。以上のことにより書き込まれた情報
とDIRのVALID信号をもとに第2図に示す決定論
理が構成され置換されるウェイ情報がREPLACEW
AY NO,REG 23にセットされる。
The 8-bit write logic of the RAR 21 will be described in detail. The 8-bit write logic is as described above, and the WAY (D
IRMCHWAY) and the above-mentioned BOl・B 0
2. BO31B! l+ Bt: Write to the reference status bit of i・B23 (for example, when way O is referenced, "1" is written to B., B, 2. Bo). Also, when registering data, There are two types of write logic when registering untagged data and when registering tagged data.The former write logic writes only to the reference status bit (6 bits) as described above.The latter write logic writes only to the reference status bit (6 bits). Writing is performed to the reference status bit (6 bits) and the tagway bit (2 bits).The value written to the reference status bit is the same as the former, and the value written to the tagway bit is the TAG sent from the unit. It recognizes that the data is tagged by the signal, and sets the way number (for example, when registering to way 0, both bits are "0") when registering the tagged data in the cache memory to TB, , TB. The decision logic shown in Figure 2 is constructed based on the information written above and the VALID signal of DIR, and the way information to be replaced is REPLACEW.
AY NO, REG Set to 23.

次に決定論理についての詳細を述べる。ウェイ間の参照
状況を示す上記6ビツトに対し、第5の論理表に示すよ
うタグ付きデータがウェイOに登録されている場合には
B。1. BO2,BO3の3ビツトは強制的に“1°
′にされて読出され、他のビットは書き込まれたままの
値で読出される。同様にタグ付きデータが他のウェイに
登録されている場合にも一部のビットは第5の論理表に
従った値に強制的に変換され読出される。DIRのバリ
ッド・ビットがウェイ0からウェイ3まですべて1であ
る場合は以上のようにして読出されたREPLBOI、
REPL BO2,REPL BO3,REPL B1
2.REPL B13.REPLB23(REPLAC
E BIT)の6ビツトにより、LRUアルゴリズム(
第1の論理表)に従った置換が行われる。つまり、ウェ
イ0にタグ付きデータが登録されている場合には、ウェ
イ0を最新の情報であるよう上記REPLACE BI
Tを制御しウェイ0の置換を阻止している。他のウェイ
にタグ付きデータが登録されている場合にも同様のこと
が行われる。なお、DIRのバリッド・ビットが1でな
いウェイがある場合は、その中でもっとも若い番号のウ
ェイが置換ウェイとして選ばれる。また、該置換アルゴ
リズムによって新たに登録されるデータがタグ付きデー
タである場合には、新たなタグ付きデータをキャッシュ
メモリへ登録する際のウェイ番号がTBo、TB□に書
き込まれる。そうでない場合にはTB、、TB□は現在
の値を維持するものである。これにより1ラインにつき
1ウエイがタグ付きデータにあてがわれることになる。
Next, we will discuss the details of decision logic. For the above 6 bits indicating the reference status between ways, if tagged data is registered in way O as shown in the fifth logical table, B. 1. The 3 bits of BO2 and BO3 are forced to “1°”.
', and the other bits are read out with their written values. Similarly, even when tagged data is registered in another way, some bits are forcibly converted to values according to the fifth logic table and read out. If the valid bits of DIR are all 1 from way 0 to way 3, the REPLBOI read as above,
REPL BO2, REPL BO3, REPL B1
2. REPL B13. REPLB23 (REPLAC
The 6 bits of the LRU algorithm (E BIT)
Replacement according to the first logical table) is performed. In other words, if tagged data is registered in way 0, use the above REPLACE BI to make way 0 the latest information.
T is controlled to prevent replacement of way 0. The same thing is done when tagged data is registered in other ways. Note that if there is a way whose valid bit of DIR is not 1, the way with the lowest number among them is selected as the replacement way. Further, if the data newly registered by the replacement algorithm is tagged data, the way number for registering the new tagged data in the cache memory is written to TBo and TB□. Otherwise, TB, TB□ maintain their current values. As a result, one way per line is assigned to tagged data.

(発明の効果) 以上説明したように本発明によれば、キャッシュメモリ
の制御方法を、特定のデータをタグ付きデータとして、
このようなタグ付きデータを格納したウェイのうち同時
存在する特定個数をタグ付きウェイとし、データ書き替
えのとき、タグ付きウェイを上記のアルゴリズムにおけ
る書き替えの対象とならないものとして取扱い、タグ付
きデータの書き替えの時にはこのタグ付きデータを格納
したウェイを新たなタグ付きウェイとして入換えるよう
にしたから、特定のデータの常駐率を高いものとして効
率のよいキャッシュメモリの制御を行なうことができる
という効果を奏する。
(Effects of the Invention) As explained above, according to the present invention, the cache memory control method is implemented by using specific data as tagged data.
Among the ways that store such tagged data, a specific number of ways that exist simultaneously are defined as tagged ways, and when data is rewritten, the tagged ways are treated as not being rewritten in the above algorithm, and the tagged data is When rewriting the tagged data, the way that stored this tagged data is replaced as a new tagged way, so it is possible to increase the resident rate of specific data and perform efficient cache memory control. be effective.

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

第1図は本発明が適用される装置の全体構成図、第2図
は第1図に示した装置の決定論理部の論理回路を示す図
、第3図はLRU方式に用いる論理表を示す図、第4図
、第5図及び第6図は書き込み論理部に格納した第2、
第3及び第4の論理表を夫々示す図、第7図は決定論理
部に格納した第5の論理表を示す図、第8図は本発明が
適用される計算機を示す図、第9図はキャッシュメモリ
のウェイ間の関係を示す図である。 11・・・TLB 13・・・キャッシュメモリ 20・・・書き込み論理部 21・・・RAR 22・・・決定論理部
FIG. 1 is an overall configuration diagram of a device to which the present invention is applied, FIG. 2 is a diagram showing a logic circuit of the decision logic section of the device shown in FIG. 1, and FIG. 3 is a logic table used in the LRU method. 4, 5, and 6 show the second
FIG. 7 is a diagram showing the fifth logic table stored in the decision logic section, FIG. 8 is a diagram showing a computer to which the present invention is applied, and FIG. 9 is a diagram showing the third and fourth logic tables, respectively. FIG. 2 is a diagram showing the relationship between ways of a cache memory. 11...TLB 13...Cache memory 20...Write logic unit 21...RAR 22...Decision logic unit

Claims (1)

【特許請求の範囲】 複数のウェイで構成されるキャッシュメモリの制御方法
であって、どのウェイのデータを書き替えるかを所定の
アルゴリズムで決定するものにおいて、 特定のデータをタグ付きデータとして、このようなタグ
付きデータを格納したウェイのうち同時存在する特定個
数をタグ付きウェイとし、 データ書き替えのとき、タグ付きウェイを上記のアルゴ
リズムにおける書き替えの対象とならないものとして取
扱い、 タグ付きデータの書き替えの時にはこのタグ付きデータ
を格納したウェイを新たなタグ付きウェイとして入換え
ることを特徴とするキャシュメモリの制御方法。
[Claims] A control method for a cache memory composed of a plurality of ways, in which data in which way is to be rewritten is determined using a predetermined algorithm. A specific number of ways that exist simultaneously that store tagged data such as A cache memory control method characterized in that, at the time of rewriting, a way storing this tagged data is replaced as a new tagged way.
JP63028750A 1988-02-12 1988-02-12 Cache memory control method Expired - Fee Related JPH0821001B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63028750A JPH0821001B2 (en) 1988-02-12 1988-02-12 Cache memory control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63028750A JPH0821001B2 (en) 1988-02-12 1988-02-12 Cache memory control method

Publications (2)

Publication Number Publication Date
JPH01205250A true JPH01205250A (en) 1989-08-17
JPH0821001B2 JPH0821001B2 (en) 1996-03-04

Family

ID=12257084

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63028750A Expired - Fee Related JPH0821001B2 (en) 1988-02-12 1988-02-12 Cache memory control method

Country Status (1)

Country Link
JP (1) JPH0821001B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5349656A (en) * 1990-11-28 1994-09-20 Hitachi, Ltd. Task scheduling method in a multiprocessor system where task selection is determined by processor identification and evaluation information
US6643737B1 (en) 1998-11-13 2003-11-04 Nec Electronics Corporation Cache lock device and method therefor
JP2005149290A (en) * 2003-11-18 2005-06-09 Seiko Epson Corp Information processing device and cache memory control method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5724083A (en) * 1980-07-17 1982-02-08 Nec Corp Buffer memory

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5724083A (en) * 1980-07-17 1982-02-08 Nec Corp Buffer memory

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5349656A (en) * 1990-11-28 1994-09-20 Hitachi, Ltd. Task scheduling method in a multiprocessor system where task selection is determined by processor identification and evaluation information
US6643737B1 (en) 1998-11-13 2003-11-04 Nec Electronics Corporation Cache lock device and method therefor
JP2005149290A (en) * 2003-11-18 2005-06-09 Seiko Epson Corp Information processing device and cache memory control method

Also Published As

Publication number Publication date
JPH0821001B2 (en) 1996-03-04

Similar Documents

Publication Publication Date Title
US4493026A (en) Set associative sector cache
JPS6136667B2 (en)
US20040181631A1 (en) Accessing data values in a cache
US20080104364A1 (en) Vector indexed memory unit and method
EP3964967A1 (en) Cache memory and method of using same
JPH08272692A (en) Conversion method of virtual address
JPH0887876A (en) Nand-type flash-memory ic card
JP4445081B2 (en) Cache memory
US4975872A (en) Dual port memory device with tag bit marking
JPH0362144A (en) Method of quickening memory access in information processing system and apparatus for executing the same
US8468297B2 (en) Content addressable memory system
US5710905A (en) Cache controller for a non-symetric cache system
US20020194431A1 (en) Multi-level cache system
JP3439350B2 (en) Cache memory control method and cache memory control device
JPH01205250A (en) Method for controlling cache memory
JPS6194159A (en) Memory
JPH05158795A (en) Cache memory system
JP3190661B2 (en) Information processing system
JPH01149153A (en) Address converting index mechanism invalidating device
JPH02156352A (en) Cache memory
JPH11296431A (en) Information processor and mapping method for cache memory
JPH09504627A (en) Virtual indexable cache memory
JPS63206844A (en) System for storing key of information processor
JPS60221855A (en) Replacement control device
KR19990068873A (en) Cache memory

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees