JPH0395649A - Cache device - Google Patents

Cache device

Info

Publication number
JPH0395649A
JPH0395649A JP1233236A JP23323689A JPH0395649A JP H0395649 A JPH0395649 A JP H0395649A JP 1233236 A JP1233236 A JP 1233236A JP 23323689 A JP23323689 A JP 23323689A JP H0395649 A JPH0395649 A JP H0395649A
Authority
JP
Japan
Prior art keywords
tag
cache
index
address
memory
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.)
Pending
Application number
JP1233236A
Other languages
Japanese (ja)
Inventor
Yukinobu Nishikawa
幸伸 西川
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1233236A priority Critical patent/JPH0395649A/en
Publication of JPH0395649A publication Critical patent/JPH0395649A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To control the memory traffic when the context is switched by providing an index changing part as well as a tag changing part which changes the tag in accordance with the cache application size. CONSTITUTION:A tag changing part 10 changes a tag by rewriting several lower rank bits of a tag of 20 bits segmented out of an address into 0 in accordance with the cache application size information. At the same time, an index changing part 11 changes an index by rewriting several higher ran bits of an index of 8 bits segmented out of an address in accordance with the cache application size information. That is, the cache application size can be limited when the tag and the index are changed in accordance with the cache application size information. Then the cache capacity is effectively changed with change of the tag and the index which are used for retrieval of the data stored in a cache. Thus it is possible to control the traffic due to a writing operation applied to a memory at switch of the context.

Description

【発明の詳細な説明】 産業上の利用分野 本発明(よ 実効的なメモリアクセスを高速に行うため
のキャッシュ装置において、メモリトラヒックを調節で
き、しかL データを効率良く格納できるキャッシュ装
置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a cache device for performing effective memory access at high speed, which can adjust memory traffic and efficiently store L data. be.

従来の技術 従来のキャッシュ装置として(よ 例えば「キャッシュ
記憶」長島・堀は 情報処El,  VOI,21、N
o.4、9.332−340,  1980に示されて
いるセクタ方式のキャッシュ装置がある。セクタ方式の
キャッシュ装置(よ キャッシュの対象となるのがメモ
リ中の連続領域であるので、スタックのように極めて限
定されたアドレス範囲のアクセスしか起こらない場合に
は ヒット率の著しい低下もなく、少ないハードウェア
でキャッシュを実現できる。
Conventional technology As a conventional cache device (for example, "cache memory" Nagashima and Hori, Information Processing El, VOI, 21, N
o. 4, 9.332-340, 1980, there is a sector type cache device. Sector-based cache device (Yo) Since the target of caching is a contiguous area in memory, the hit rate does not drop significantly and is small when only accesses to a very limited address range occur, such as in the stack. Caching can be implemented in hardware.

第5図は従来のキャッシュ装置の構或を示すものである
。 1はタグレジスタで、 2はアドレスから切り出し
たタグ部とタグレジスタ1の内容を比較する比較沫 3
はアドレスから切り出したインデックス部をデコードす
るデコータ′, 4はデータアレーイ、 5はデータア
レイ4中のデータの有効性を示す有効フラグアレイ、 
6はANDゲートである。
FIG. 5 shows the structure of a conventional cache device. 1 is a tag register, 2 is a comparison register that compares the tag part cut out from the address and the contents of tag register 1. 3
is a decoder' that decodes the index section cut out from the address, 4 is a data array, 5 is a valid flag array that indicates the validity of data in data array 4,
6 is an AND gate.

また キャッシュ容量256バイトで、アドレスは24
ビット、インデックスはアドレスの下位8ビット、タグ
はアドレスの上位16ビットである。キャッシュデータ
のメモリへの書き込み方式はライトバック方式である。
Also, the cache capacity is 256 bytes, and the address is 24
The bit and index are the lower 8 bits of the address, and the tag is the upper 16 bits of the address. The method for writing cache data into memory is the write-back method.

以上のように構戊された従来のキャッシュ装置における
動作を説明する。
The operation of the conventional cache device configured as described above will be explained.

データ読み出しの場合、アドレスが入力されると、アド
レスのタグ部とタグレジスタ1の内容とを比較器2で比
較する。タグ比較と同時に アドレスのインデックス部
をデコーダ3でデコードレデータアレイ4の中の1つの
エントリおよび有効フラグアレイ5の中の対応するフラ
グを選択する。
In the case of data reading, when an address is input, a comparator 2 compares the tag part of the address with the contents of the tag register 1. Simultaneously with the tag comparison, the decoder 3 selects one entry in the decode record data array 4 and the corresponding flag in the valid flag array 5 using the index part of the address.

比較器2によって、アドレスのタグ部とタグレジスタ1
の内容が一致していることが検出され かつ、有効フラ
グアレイ5内の該当するフラグがアクティブの時に{.
t,ANDゲート6によってHIT信号がアクティブに
なり、メモリまでアクセスしなくてもデータアレイ4内
の該当エントリからデータを読み出すことができる。
Comparator 2 compares the tag part of the address with tag register 1.
When it is detected that the contents of {.
t, the HIT signal is activated by the AND gate 6, and data can be read from the corresponding entry in the data array 4 without accessing the memory.

アドレスのタグ部とタグレジスタlの内容が一致し か
つ、有効フラグアレイ5内の該当するフラグがインアク
ティブの時に4i  データアレイ4内の咳当エントリ
は無効であり、メモリへのアクセスが生じる。アドレス
のタグ部とタグレジスタlの内容が一致せず、信号TA
GEQがインアクティブの時に(よ タグレジスタ1の
内容をアドレスのタグ部で書き換丸 同時に有効フラグ
アレイ5の全フラグを一無効化し メモリへアクセスす
る。
When the tag part of the address and the contents of the tag register l match and the corresponding flag in the valid flag array 5 is inactive, the entry in the 4i data array 4 is invalid and an access to the memory occurs. The tag part of the address and the contents of tag register l do not match, and the signal TA
When GEQ is inactive, the contents of tag register 1 are rewritten using the tag part of the address. At the same time, all flags in valid flag array 5 are invalidated and the memory is accessed.

データ書き込みの場合にCi  比較器2によって、ア
ドレスのタグ部とタグレジスタ1の内容が一致している
ことが検出されTAGEQがアクティブになった時には
データアレイ4内の該当エントリにデータを書き込へ 
メモリにはアクセスしない。
When writing data, Ci comparator 2 detects that the tag part of the address matches the contents of tag register 1, and when TAGEQ becomes active, data is written to the corresponding entry in data array 4.
Does not access memory.

この時、有効フラグアレイ5内の該当するフラグがイン
アクティブであった場合にはそのフラグをアクティブに
する。アドレスのタグ部とタグレジスタ1の内容が一致
せづ1 信号TAGEQがインアクティブの時に(上 
タグレジスタ1の内容をアドレスのタグ部で書き換え 
同時に有効フラグアレイ5の全フラグを無効化し メモ
リへアクセスする。
At this time, if the corresponding flag in the valid flag array 5 is inactive, that flag is activated. The tag part of the address and the contents of tag register 1 do not match.1 When the signal TAGEQ is inactive (upper
Rewrite the contents of tag register 1 with the tag part of the address
At the same time, all flags in the valid flag array 5 are invalidated and the memory is accessed.

以上のような動作によって、キャッシュにヒットした場
合にはメモリアクセスを実効的に高速化することができ
る。
By the above-described operation, it is possible to effectively speed up memory access when a cache hit occurs.

発明が解決しようとする課題 しかしながら上記のような構戊で{友 使用するキャッ
シュのサイズは 最初に設計したサイズのままであり、
コンテキストスイッチが発生してキャッシュデータをメ
モリに書き込む必要が生じた時に{よ 場合によっては
キャッシュ中の全データを書き込まなければならなl,
%  従って、コンテキストスイッチ時のメモリ書き込
みによるトラヒックを規定できないという問題点を有し
ていた本発明はかかる点に鑑へ コンテキストスイッチ
時のメモリトラヒックを調節できるキャッシュ装置を提
供することを目的とする。
Problem to be Solved by the Invention However, in the above structure, the size of the cache used remains the originally designed size,
When a context switch occurs and cache data needs to be written to memory, in some cases all data in the cache must be written.
% Therefore, the present invention, which had the problem of not being able to specify the traffic due to memory writing at the time of a context switch, aims to provide a cache device that can adjust the memory traffic at the time of a context switch in view of this problem.

課題を解決するための手段 本発明(よ キャッシュエントリを決定するためのイン
デックスを使用容量情報によって変更する手段と、アド
レスタグを使用容量情報によって変更する手段とをを備
えたキャッシュ装置である。
Means for Solving the Problems The present invention provides a cache device including means for changing an index for determining a cache entry based on used capacity information, and means for changing an address tag based on used capacity information.

作   用 本発明は前記した手段により、キャッシュとして使用す
るサイズを変更可能にすることにより、コンテキストス
イッチが起きた時などのメモリ書き込みによるトラヒッ
クを調節することができる。
Operation The present invention makes it possible to change the size used as a cache using the above-described means, thereby making it possible to adjust traffic due to memory writing when a context switch occurs.

実施例 第1図は本発明のキャッシュ装置における第lの実施例
の構戊図である。 ■はタグレジスタで、2はアドレス
から切り出したタグ部とタグレジスタ1の内容を比較す
る比較沫 3はアドレスから切り出したインデックス部
をデコードするデコータ′, 4はデータアレイ、 5
はデータアレイ4中のデータの有効性を示す有効フラグ
アレイ、 6はANDゲート、 IOはキャッシュ使用
サイズによってタグを変更するタグ変更畝 11はキャ
ッシュ使用サイズによってインデックスを変更するイン
デックス変更部である。
Embodiment FIG. 1 is a block diagram of a first embodiment of a cache device according to the present invention. ■ is a tag register, 2 is a comparison register that compares the tag part extracted from the address and the contents of tag register 1, 3 is a decoder' that decodes the index part extracted from the address, 4 is a data array, 5
1 is a valid flag array indicating the validity of data in the data array 4; 6 is an AND gate; IO is a tag change ridge for changing the tag according to the cache use size; 11 is an index change section for changing the index according to the cache use size.

第1の実施例におけるキャッシュ装置の最大容量は25
6バイトである。アドレスは24ビットで、インデック
スはアドレスの下位8ビット、タグはアドレスの上位2
0ビットであり、タグとインデックスは4ビットの重な
りを持っている。キャッシュデータのメモリへの書き込
み方式はライトバック方式である。
The maximum capacity of the cache device in the first embodiment is 25
It is 6 bytes. The address is 24 bits, the index is the lower 8 bits of the address, and the tag is the upper 2 bits of the address.
It is 0 bit, and the tag and index have a 4-bit overlap. The method for writing cache data into memory is the write-back method.

以上のように構或された第lの実施例のキャッシュ装置
について、以下その動作を説明する。
The operation of the cache device of the first embodiment configured as described above will be explained below.

タグ変更部10で(よ キャッシュ使用サイズ情報に応
じて、アドレスから切り出した20ビットのタグの下位
数ビットをOに書き換えることによって変更すも イン
デックス変更部11でζよ キャッシュ使用サイズに応
じて、アドレスから切り出した8ビットのインデックス
の上位数ビットを書き換えて変更する。即板 タグおよ
びインデックスを第2図に示すように変更すれ(L キ
ャッシュの使用サイズを制限できる。
The tag change unit 10 changes the tag by rewriting the lower several bits of the 20-bit tag cut out from the address to O according to the cache usage size information.The index change unit 11 changes it according to the cache usage size Rewrite and change the upper few bits of the 8-bit index extracted from the address. Change the tag and index as shown in Figure 2 (L cache usage size can be limited).

データ読み出しの場合、アドレスが入力されると、タグ
変更部10で変更したタグとタグレジスタlの内容とを
比較器2で比較する。タグ比較と同時(ヘ インデック
ス変更部l1で変更したインデックスをデコーダ3でデ
コードレ データアレイ4の中の1つのエントリおよび
有効フラグアレイ5の中の対応するフラグを選択する。
In the case of data reading, when an address is input, the comparator 2 compares the tag changed by the tag changing unit 10 with the contents of the tag register l. At the same time as the tag comparison (to), the index changed by the index changing unit l1 is decoded by the decoder 3, and one entry in the data array 4 and the corresponding flag in the valid flag array 5 are selected.

比較器2によって、前記変更タグとタグレジスタ1の内
容が一致していることが検出され か1 有効フラグア
レイ5内の該当するフラグがアクティブの時にj;LA
NDゲート6によってHIT信号がアクティブになり、
メモリまでアクセスしなくてもデータアレイ4内の該当
エントリからデータを読み出すことができる。前記変更
タグとタダレジスタ1の内容が一致ム かス 有効フラ
グアレイ5内の該当するフラグがインアクティブの時に
(よ データアレイ4内の該当エントリは無効であり、
メモリへのアクセスが生じる。前記変更タグとタグレジ
スタ1の内容が一致せず、信号TAGEQがインアクテ
ィブの時には タダレジスタ1の内容を前記変更タグで
書き換え、同時に有効フラグアレイ5の全フラグを無効
化し メモリへアクセスする。
If the comparator 2 detects that the content of the modified tag and the tag register 1 match, then the corresponding flag in the valid flag array 5 is active;
The HIT signal is activated by the ND gate 6,
Data can be read from the corresponding entry in the data array 4 without accessing the memory. If the change tag and the contents of free register 1 match, then when the corresponding flag in valid flag array 5 is inactive, the corresponding entry in data array 4 is invalid.
An access to memory occurs. When the contents of the change tag and the tag register 1 do not match and the signal TAGEQ is inactive, the contents of the tag register 1 are rewritten with the change tag, and at the same time all flags in the valid flag array 5 are invalidated and the memory is accessed.

データ書き込みの場合に(上 比較器2によって、前記
変更タグとタグレジスタlの内容が一致していることが
検出されTAGEQがアクティブになった時にはデータ
アレイ4内の該当エントリにデータを書き込ム メモリ
にはアクセスしな(t この時、有効フラグアレイ5内
の該当するフラグがインアクティブであった場合にはそ
のフラグをアクティブにする。前記変更タグとタグレジ
スタlの内容が一致せづ1 信号TAGEQがインアク
ティブの時に(表 タグレジスタ1の内容を前記変更タ
グで書き換え、同時に有効フラグアレイ5の全フラグを
無効化し メモリへアクセスする。
In the case of data writing (above), when comparator 2 detects that the contents of the change tag and tag register l match and TAGEQ becomes active, data is written to the corresponding entry in data array 4. Do not access the memory (t) At this time, if the corresponding flag in the valid flag array 5 is inactive, that flag is activated. When the signal TAGEQ is inactive (Table 1), the contents of the tag register 1 are rewritten with the changed tag, and at the same time all flags in the valid flag array 5 are invalidated and the memory is accessed.

以上のように 本発明における第lの実施例によれば 
キャッシュ中のデータを検索するためのタグおよびイン
デックスを変更することによって、実効的にキャッシュ
容量を変更することができ、コンテキストスイッチ時な
どのメモリへの書き込みによるトラヒックを調節するこ
とができる。
As described above, according to the first embodiment of the present invention
By changing the tag and index for searching data in the cache, it is possible to effectively change the cache capacity and adjust the traffic due to writes to memory during context switches and the like.

第3図は本発明のキャッシュ装置における第2の実施例
の構戊図であも 第2の実施例はキャッシュ使用サイズ
を変更可能にするとともに 複数の領域をキャッシュ対
象にできるようにしたキャッシュ装置である。 1はタ
グレジスタで、 2はアドレスから切り出したタグ部と
タグレジスタ1の内容を比較する比較沫 3はアドレス
から切り出したインデックス部をデコードするデコータ
′,4はデータアレイ、 5はデータアレイ4中のデー
タの有効性を示す有効フラグアレイ、 6はANDゲー
ト、 10はキャッシュ使用サイズによってタグを変更
するタグ変更舐 l1はキャッシュ使用ザイズによって
インデックスを変更するインデックス変更臥 12は必
要に応じてタグレジスタ1の内容を保持し タグレジス
タ1の内容を切り換えるタグレジスタ制御部で、 13
はセレクタである。
FIG. 3 is a configuration diagram of a second embodiment of the cache device of the present invention. The second embodiment is a cache device that allows the cache usage size to be changed and also allows multiple areas to be cached. It is. 1 is a tag register, 2 is a comparison register that compares the tag part extracted from the address and the contents of tag register 1, 3 is a decoder' that decodes the index part extracted from the address, 4 is a data array, and 5 is a data array in 4. 6 is an AND gate, 10 is a tag change function that changes the tag according to the cache usage size, l1 is an index change function that changes the index according to the cache usage size, 12 is a tag register as necessary. 13 is a tag register control unit that holds the contents of tag register 1 and switches the contents of tag register 1.
is a selector.

第2の実施例におけるキャッシュ装置の最大容量は25
6バイトである。アドレスは24ビットで、インデック
スはアドレスの下位8ビット、タグはアドレスの上位2
0ビットであり、タグとインデックスは4ビットの重な
りを持っている。キャッシュデータのメモリへの書き込
み方式はライトバック方式である。まな ユーザ空間と
システム空間の2つの領域をキャッシュ対象にすること
ができる。
The maximum capacity of the cache device in the second embodiment is 25
It is 6 bytes. The address is 24 bits, the index is the lower 8 bits of the address, and the tag is the upper 2 bits of the address.
It is 0 bit, and the tag and index have a 4-bit overlap. The method for writing cache data into memory is the write-back method. Mana Two areas can be cached: user space and system space.

以上のように構或された第2の実施例のキャッシュ装置
について、以下その動作を説明する。
The operation of the cache device of the second embodiment configured as described above will be explained below.

タグ変更部10で(友 キャッシュ使用サイズ情報に応
じて、アドレスから切り出した20ビットのタグの下位
数ビットを0に書き換えることによって変更する。イン
デックス変更部1lで(よ キャッシュ使用サイズと空
間情報に応じて、アドレスから切り出した8ビットのイ
ンデックスの上位数ビットを書き換えて変更する。第4
図に示すように タグとインデックスの変更によってユ
ーザ空間用およびシステム空間用のキャッシュ使用サイ
ズを変更できる。
The tag change unit 10 changes the lower several bits of the 20-bit tag extracted from the address to 0 according to the cache usage size information.The index change unit 1l changes the cache usage size and space information. Accordingly, the upper few bits of the 8-bit index extracted from the address are rewritten and changed.
As shown in the figure, you can change the cache usage size for user space and system space by changing tags and indexes.

タグレジスタ制御部l2で{よ タグレジスタ1の内容
を保持する機構を持坂 空間情報によってシステム空間
用とユーザ空間用に応じてタグレジスタlを書き換える
The tag register control unit 12 rewrites the tag register 1 according to the system space and user space based on space information.

タグレジスタ1に(よ 空間情報によってシステム空間
用またはユーザ空間用のタグが設定されている。データ
読み出しの場合、アドレスが入力されると、タグ変更部
10で変更したタグとタグレジスタ1の内容とを比較器
2で比較する。タグ比較と同時に インデックス変更部
l1で変更したインデックスをデコーダ3でデコードし
 データアレイ4の中の1つのエントリおよび有効フラ
グアレイ5の中の対応するフラグを選択する。比較器2
によって、前記変更タグとタグレジスタ1の内容が一致
していることが検出され かコ 有効フラグアレイ5内
の該当するフラグがアクティブの時にiiANDゲート
6によってH I T信号がアクティブになり、メモリ
までアクセスしなくてもデータアレイ4内の該当エント
リからデータを読み出すことができる。前記変更タグと
タグレジスタ1の内容が一致レ かス 有効フラグアレ
イ5内の該当するフラグがインアクティブの時に{よデ
ータアレイ4内の核当エントリは無効であり、メモリへ
のアクセスが生じる。前記変更タグとタグレジスタ1の
内容が一致せず、信号TAGEQがインアクティブの時
に(よ タグレジスタlの内容を前記変更タグで書き換
え、かス タグレジスタ制御部12に保持している該当
空間用の保持情報を書き換える。同時に有効フラグアレ
イ5の全フラグを無効化し メモリへアクセスナもデー
タ書き込みの場合に(友 比較器2によって、前記変更
タグとタグレジスタ1の内容が一致していることが検出
されTAGEQがアクティブになった時にはデータアレ
イ4内の該当エントリにデータを書き込ム メモリには
アクセスしない。この時、有効フラグアレイ5内の該当
するフラグがインアクティブであった場合にはそのフラ
グをアクティブにする。前記変更タグとタグレジスタ1
の内容が一致せず、信号TAGEQがインアクティブの
時には タグレジスタlの内容を前記変更タグで書き換
え、か1 タグレジスタ制御部12に保持している該当
空間用の保持情報を書き換える。同時に有効フラグアレ
イ5の全フラグを無効化よ メモリへアクセスする。
A tag for system space or user space is set in tag register 1 (according to space information). When reading data, when an address is input, the tag changed by tag change unit 10 and the contents of tag register 1 are set. are compared by comparator 2. At the same time as the tag comparison, the index changed by index change unit l1 is decoded by decoder 3, and one entry in data array 4 and the corresponding flag in valid flag array 5 are selected. .Comparator 2
When the corresponding flag in the valid flag array 5 is active, the HIT signal is activated by the AND gate 6, and the contents of the modified tag and the tag register 1 are matched. Data can be read from the corresponding entry in the data array 4 without access. When the change tag and the contents of the tag register 1 match, the corresponding flag in the valid flag array 5 is inactive, the corresponding entry in the data array 4 is invalid, and an access to the memory occurs. When the contents of the changed tag and the tag register 1 do not match and the signal TAGEQ is inactive, the contents of the tag register 1 are rewritten with the changed tag or the contents of the corresponding space held in the tag register control unit 12 are At the same time, all flags in the valid flag array 5 are invalidated, and when writing data to the memory, the comparator 2 confirms that the contents of the changed tag and the tag register 1 match. When detected and TAGEQ becomes active, the data is written to the corresponding entry in data array 4 and the memory is not accessed.At this time, if the corresponding flag in valid flag array 5 is inactive, the Activate flag: said change tag and tag register 1
When the contents do not match and the signal TAGEQ is inactive, the contents of the tag register l are rewritten with the change tag, and (1) the information held in the tag register control unit 12 for the corresponding space is rewritten. At the same time, invalidate all flags in valid flag array 5. Access the memory.

以上のように 本発明における第2の実施例によれは 
キャッシュ中のデータを検索するためのタグおよびイン
デックスを変更することによって、実効的にキャッシュ
容量を変更することができ、コンテキストスイッチ時な
どのメモリへの書き込みによるトラヒックを調節するこ
とができる。まr=  タグレジスタ制御部12によっ
て、対象領域に応じてタグレジスタ1の内容を切り換え
ることにより効率的なキャッシュを実現できる。しかL
本実施例では2つの領域の場合をあげた力支 3つ以上
の領域に対処することも可能である。
As described above, according to the second embodiment of the present invention,
By changing the tag and index for searching data in the cache, it is possible to effectively change the cache capacity and adjust the traffic due to writes to memory during context switches and the like. By using the tag register control unit 12, the contents of the tag register 1 can be switched according to the target area, thereby realizing efficient caching. Only L
In this embodiment, the force support is given in the case of two areas, but it is also possible to deal with three or more areas.

まな データアレイ4における領域による分割の境界(
よ 2のべき乗で任意に設定でき、領域ごとに使用サイ
ズを設定できる。
Mana Boundary of division by area in data array 4 (
It can be set arbitrarily as a power of 2, and the usage size can be set for each area.

な抵 本発明はセクタ方式キャッシュ装置だけにとどま
らすミ ダイレクトマップ方式やセットアソシアティブ
方式などにおいても有効であることは明らかである。
However, it is clear that the present invention is effective not only in sector-based cache devices, but also in direct map systems, set associative systems, and the like.

発明の効果 以上説明したように 本発明によれば キャッシュとし
て使用するサイズを変更可能にすることにより、コンテ
キストスイッチが起きた時などのメモリ書き込みによる
トラヒックを調節することができ、その実用的効果は犬
き鶏
Effects of the Invention As explained above, according to the present invention, by making it possible to change the size used as a cache, it is possible to adjust the traffic due to memory writes when a context switch occurs, and the practical effects are as follows. dog chicken

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

第1図は本発明のキャッシュ装置における第lの実施例
の構戊ハ  第2図はタグ変更部およびインデックス変
更部における変更によるキャッシュ使用サイズ変更の例
を示す猛 第3図は本発明のキャッシュ装置における第
1の実施例の構或図、第4図はキャッシュを複数の領域
用に分割して使用する場合のタグおよびインデックスの
変更例を示す説明は 第5図は従来のキャッシュ装置の
構戊図である。 1・・・タグレジス久 2・・・比較@ 3・・・デコ
ー欠4・・・データアレイ、 5・・・有効フラグアレ
イ、 6・・・ANDゲート、 lO・・・タグ変更K
  11・・・インデックス変更R. 12・・・タグ
レジスタ制御K  13・・・セレクタ。
FIG. 1 shows the structure of a first embodiment of the cache device of the present invention. FIG. 2 shows an example of changing the cache usage size due to changes in the tag changing unit and the index changing unit. FIG. 3 shows the cache of the present invention. FIG. 4 is a diagram showing the configuration of the first embodiment of the device, and FIG. 4 shows an example of changing tags and indexes when the cache is divided into multiple areas. FIG. It is a diagram. 1... Tag Regis long 2... Comparison @ 3... Missing decoder 4... Data array, 5... Valid flag array, 6... AND gate, lO... Tag change K
11... Index change R. 12...Tag register control K 13...Selector.

Claims (2)

【特許請求の範囲】[Claims] (1)キャッシュエントリを決定するためのインデック
スを使用容量情報によって変更する手段と、アドレスタ
グを使用容量情報によって変更する手段とを備えたこと
を特徴とするキャッシュ装置。
(1) A cache device comprising means for changing an index for determining a cache entry based on used capacity information, and means for changing an address tag based on used capacity information.
(2)キャッシュエントリを決定するためのインデック
スを使用容量情報によって変更する手段と、アドレスタ
グを使用容量情報によって変更する手段と、複数のタグ
を保持し前記保持したタグを切り換える手段とを備えた
ことを特徴とするキャッシュ装置。
(2) A means for changing an index for determining a cache entry based on used capacity information, a means for changing an address tag based on used capacity information, and a means for holding a plurality of tags and switching between the held tags. A cache device characterized by:
JP1233236A 1989-09-08 1989-09-08 Cache device Pending JPH0395649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1233236A JPH0395649A (en) 1989-09-08 1989-09-08 Cache device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1233236A JPH0395649A (en) 1989-09-08 1989-09-08 Cache device

Publications (1)

Publication Number Publication Date
JPH0395649A true JPH0395649A (en) 1991-04-22

Family

ID=16951897

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1233236A Pending JPH0395649A (en) 1989-09-08 1989-09-08 Cache device

Country Status (1)

Country Link
JP (1) JPH0395649A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007172623A (en) * 2005-12-22 2007-07-05 Arm Ltd Variable size cache memory support within integrated circuit

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01233537A (en) * 1988-03-15 1989-09-19 Toshiba Corp Information processor provided with cache memory

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01233537A (en) * 1988-03-15 1989-09-19 Toshiba Corp Information processor provided with cache memory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007172623A (en) * 2005-12-22 2007-07-05 Arm Ltd Variable size cache memory support within integrated circuit

Similar Documents

Publication Publication Date Title
US9996466B2 (en) Apparatus, system and method for caching compressed data
US7783859B2 (en) Processing system implementing variable page size memory organization
KR970008188B1 (en) Control method of flash memory and information processing apparatus using the same
US7793070B2 (en) Processing system implementing multiple page size memory organization with multiple translation lookaside buffers having differing characteristics
US20090070545A1 (en) Processing system implementing variable page size memory organization using a multiple page per entry translation lookaside buffer
KR960032163A (en) Semiconductor disk device
US7779214B2 (en) Processing system having a supported page size information register
JP2007011523A (en) Data look-ahead method and computer system
KR20090108716A (en) Method and apparatus for setting cache policies in a processor
JP2000227874A (en) Method and device for addressing contents of main memory including directory structure in computer system
US7246202B2 (en) Cache controller, cache control method, and computer system
US20140258591A1 (en) Data storage and retrieval in a hybrid drive
US6324633B1 (en) Division of memory into non-binary sized cache and non-cache areas
US7181590B2 (en) Method for page sharing in a processor with multiple threads and pre-validated caches
EP0474356A1 (en) Cache memory and operating method
JPH0395649A (en) Cache device
WO2002027498A2 (en) System and method for identifying and managing streaming-data
JPH01303547A (en) Control system for information memory
JP2613258B2 (en) Information processing method and apparatus
JPS5922315B2 (en) Buffer memory control method
JPH0883213A (en) Storage device including cache memory
JPH01149153A (en) Address converting index mechanism invalidating device
KR970029104A (en) Group Adaptive Segment Cache Buffer Implementation
JPS589452B2 (en) Firmware broom
JPH0250743A (en) External storage subsystem