JPH10222422A - Cache memory control system - Google Patents

Cache memory control system

Info

Publication number
JPH10222422A
JPH10222422A JP9021221A JP2122197A JPH10222422A JP H10222422 A JPH10222422 A JP H10222422A JP 9021221 A JP9021221 A JP 9021221A JP 2122197 A JP2122197 A JP 2122197A JP H10222422 A JPH10222422 A JP H10222422A
Authority
JP
Japan
Prior art keywords
entry
data
program
cache memory
processor
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
JP9021221A
Other languages
Japanese (ja)
Inventor
Yasuhiro Fujino
泰弘 藤野
Shuji Maeda
周二 前田
Yoshiharu Iwamoto
義晴 岩本
Junichi Fujiwara
淳一 藤原
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP9021221A priority Critical patent/JPH10222422A/en
Publication of JPH10222422A publication Critical patent/JPH10222422A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PROBLEM TO BE SOLVED: To continuously hold the instruction code of a program which is necessary to periodically be operated and to shorten the processing time of second and subsequent period programs by collectively changing a single entry or plural entries in an unused state. SOLUTION: A processor 11 reads program instruction code data 121-i stored in a memory 12 and data 121-d necessary for an operation through a bus 14, operates them by using an arithmetic circuit 111 and stores the operated result in a register 112 and the memory 12 in the processor 11. It is program-controlled by repetitively executing a series of operation actions. When the invalidity instruction of the entry is given from the processor 11, a data field 132 is rewritten into the memory 12 and a state display field 133 is changed to the unused state. Consequently, the occupied time of the processor 11 is reduced after the period program is once stored in the cache memory 13.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はキャッシュメモリ制
御方式に関する。
[0001] The present invention relates to a cache memory control system.

【0002】[0002]

【従来の技術】従来よりキャッシュメモリを使用した情
報処理装置は多い。命令コードを含むあるデータが高速
なキャッシュメモリに一旦格納されると、2回目以降の
データの読み込み・書き込みは速度の遅いメモリへのア
クセスが不要なため、プログラムを高速に実行できる。
2. Description of the Related Art Conventionally, there are many information processing apparatuses using a cache memory. Once the data including the instruction code is once stored in the high-speed cache memory, the second and subsequent reading and writing of the data do not require access to the low-speed memory, so that the program can be executed at high speed.

【0003】また本発明が具備するエントリの無効化機
能(未使用状態化する機能)についても、キャッシュメ
モリ全域を対象にしたものはある。
There is also an entry invalidation function (a function of making it unused) provided in the present invention, which covers the entire area of the cache memory.

【0004】しかし、部分的に無効化する機能を具備し
たものはなかった。
[0004] However, none has a function of partially invalidating.

【0005】また周期的に動作させる必要のあるプログ
ラムを実行する時点で、キャッシュメモリの当該プログ
ラム命令アドレスに対応するエントリが既に使用中の場
合には、現在使用しているデータを一旦掃き出すととも
に当該エントリを無効化(未使用状態)し、次いで新た
な命令コードデータを当該エントリにコピーし、かつ有
効化(使用中)する手段も存在する。この方式の場合に
は、同一エントリを使用する他の複数のデータにより、
せっかくキャッシュメモリに格納していた内容が失われ
ると再度速度の遅いメモリから読み込む必要があり、高
速化の効果を半減する結果を招いていた。
When an entry corresponding to the program instruction address in the cache memory is already in use at the time of executing a program which needs to be operated periodically, the currently used data is firstly swept out and the current data is used. There are also means for invalidating an entry (unused state), then copying new instruction code data to the entry, and validating (in use). In the case of this method, other multiple data using the same entry
If the contents stored in the cache memory are lost, it is necessary to read from the slow memory again, resulting in halving the effect of the high speed.

【0006】[0006]

【発明が解決しようとする課題】本発明は、周期的に使
用するデータ(命令コードを含む)を確実に高速なキャ
ッシュメモリに保持する手段を提供することにより、キ
ャッシュメモリを使用する高速化の効果を低下させない
ことにある。
SUMMARY OF THE INVENTION The present invention provides a means for reliably holding periodically used data (including an instruction code) in a high-speed cache memory. The effect is not to decrease.

【0007】[0007]

【課題を解決するための手段】複数のエントリを持つキ
ャッシュメモリ制御機能に単一あるいは複数のエントリ
を無効化(未使用状態)する手段を設け、周期的に動作
させる必要のあるプログラムに周期プログラム制御用エ
ントリ無効化フラグと、上記周期プログラム制御用エン
トリ無効化フラグが「無効化未済み状態」の場合には周
期的に動作させる必要のあるプログラムの各命令が格納
されるべき対応するエントリを無効化(未使用状態)す
るエントリの無効化指示を行う命令を設け、次いで周期
プログラム制御用エントリ無効化フラグを「無効化完了
状態」に変更する命令を設ける。
Means for solving the problems A cache memory control function having a plurality of entries is provided with means for invalidating (unused) a single or a plurality of entries. If the entry invalidation flag for control and the periodic program control entry invalidation flag are "invalidation not completed", the corresponding entry in which each instruction of the program that needs to be operated periodically should be stored. An instruction is provided for instructing an entry to be invalidated (unused state) to be invalidated, and then an instruction is provided for changing the periodic program control entry invalidation flag to “invalidation completed state”.

【0008】プロセッサは、プログラムの命令コードま
たは演算に必要なデータをメモリから読み込もうとする
と、キャッシュメモリ制御回路は格納すべきエントリを
演算し、エントリの状態表示フィールドを審査し、状態
表示フィールドが未使用状態の場合には、状態表示フィ
ールドを使用中状態に変更し、データをデータフィール
ドに格納(コピー)する。状態表示フィールドが使用中
状態の場合には、データをデータフィールドに格納(コ
ピー)しない。
When the processor tries to read the instruction code of the program or the data necessary for the operation from the memory, the cache memory control circuit calculates the entry to be stored, examines the status display field of the entry, and finds that the status display field is not set. In the case of the use state, the state display field is changed to the use state, and the data is stored (copied) in the data field. When the status display field is in use, data is not stored (copied) in the data field.

【0009】また、プロセッサが演算の結果データフィ
ールドに格納されているデータの値を更新し、再び同一
データとして書き戻す場合には、状態表示フィールドを
使用中状態のまま保持し、新データをデータフィールド
に格納する。
When the processor updates the value of the data stored in the data field of the operation result and writes it back again as the same data, the status display field is kept in use and the new data is stored in the data field. Store in field.

【0010】新データは、プロセッサからの「メモリへ
の書き戻し指示」によりメモリに書き戻される。
[0010] The new data is written back to the memory in response to a "write back instruction to the memory" from the processor.

【0011】一方、プロセッサから当該エントリの無効
化指示が指示されると、データフィールドをメモリに書
き戻し、次いで状態表示フィールドを未使用状態に変更
する。
On the other hand, when an instruction to invalidate the entry is issued from the processor, the data field is written back to the memory, and then the status display field is changed to an unused state.

【0012】プロセッサがキャッシュメモリ格納制御部
を初めて実行しようとすると、本周期プログラム制御用
エントリ無効化フラグが「無効化未済み状態」であるた
め、本周期プログラムの各命令に対応する各エントリに
対して当該エントリの無効化指示の命令が実行される。
この命令実行により、各エントリの現在のデータフィー
ルドの値をメモリに書き戻し、次いで状態表示フィール
ドを未使用状態に設定する。以上で周期動作部をキャッ
シュメモリに格納する(ヒットさせる)準備が完了す
る。
When the processor attempts to execute the cache memory storage control unit for the first time, the entry invalidation flag for this cycle program control is "invalidation not yet completed". In response, an instruction to instruct the entry to be invalidated is executed.
By executing this instruction, the value of the current data field of each entry is written back to the memory, and then the status display field is set to an unused state. Thus, the preparation for storing (hitting) the periodic operation unit in the cache memory is completed.

【0013】次いで、周期プログラム制御用エントリ無
効化フラグを「無効化完了状態」に更新し、キャッシュ
メモリ格納制御部の前処理を終了する。
Next, the periodic program control entry invalidation flag is updated to the "invalidation completed state", and the preprocessing of the cache memory storage control unit ends.

【0014】続いて周期動作部の命令がそれぞれのエン
トリに格納されながら、順次実行される。
Subsequently, the instructions of the cyclic operation unit are sequentially executed while being stored in the respective entries.

【0015】全ての周期動作部の命令実行が完了する
と、第1回目の周期的に動作するプログラムの処理が終
了する。
When the execution of the instructions of all the cyclic operation units is completed, the processing of the first cyclically operated program ends.

【0016】周期的なプログラムを動作させるために、
情報処理装置は周期割込手段により割込を検出すると、
本周期プログラムを再度実行する。
In order to operate a periodic program,
When the information processing device detects the interruption by the periodic interruption means,
Execute this cycle program again.

【0017】第2回目以降は、周期プログラム制御用エ
ントリ無効化フラグが「無効化完了状態」になっている
ため、キャッシュメモリ格納制御部処理の最初の判定処
理にてキャッシュメモリ格納制御部処理を何もせず終了
する。
Since the second and subsequent times, the entry invalidation flag for periodic program control is in the "invalidation completed state", the cache memory storage controller processing is performed in the first determination processing of the cache memory storage controller processing. Exit without doing anything.

【0018】次いで周期動作部の命令実行を開始する
が、これら周期動作部の各命令は既にキャッシュメモリ
内部の各エントリに格納されているため、高速に読み込
み処理を完了し、それぞれメモリから読み込んだのと同
じように実行される。
Next, the execution of the instructions of the periodic operation unit is started. Since the instructions of these periodic operation units are already stored in the respective entries in the cache memory, the read processing is completed at a high speed and read from the memory. Is performed in the same way as

【0019】[0019]

【発明の実施の形態】図1に情報処理装置を示す。FIG. 1 shows an information processing apparatus.

【0020】情報処理装置1はプロセッサ11とメモリ
12とキャッシュメモリ13とこれらを接続するバス1
4より構成される。
The information processing apparatus 1 includes a processor 11, a memory 12, a cache memory 13, and a bus 1 connecting these.
4

【0021】プロセッサ11はメモリ12の内部に格納
されているプログラム命令コードデータ121−iや演
算に必要なデータ121−dをバス14を介して読み込
み、演算回路111を使用して演算し、演算結果をプロ
セッサ11内部のレジスタ112やメモリ12に格納す
る、一連の演算動作を繰り返し行うことでプログラム制
御される。
The processor 11 reads the program instruction code data 121-i stored in the memory 12 and the data 121-d required for the operation via the bus 14, and performs the operation using the operation circuit 111. Program control is performed by repeatedly performing a series of arithmetic operations for storing the result in the register 112 or the memory 12 in the processor 11.

【0022】キャッシュメモリ13はメモリ12よりも
高速に読み書きできるメモリであり、メモリ12のコピ
ーを保持するための複数のエントリ131と、コピーも
とのメモリ12内データ121のアドレス122の値を
用いてデータ121を格納するエントリ1311を算出
するキャッシュメモリ制御回路134より構成される。
The cache memory 13 is a memory that can be read and written at a higher speed than the memory 12, and uses a plurality of entries 131 for holding a copy of the memory 12 and the value of the address 122 of the data 121 in the memory 12 as the copy source. And a cache memory control circuit 134 that calculates an entry 1311 for storing the data 121.

【0023】各エントリはデータフィールド132と、
フィールド132が使用中であることを示す状態表示フ
ィールド133より構成される。
Each entry has a data field 132,
The field 132 includes a status display field 133 indicating that the field is in use.

【0024】プロセッサ11がプログラムの命令コード
121−iまたは演算に必要なデータ121−dをメモ
リ12から読み込もうとすると、キャッシュメモリ制御
回路134が格納すべきエントリ1311を算出し、エ
ントリ1311の状態表示フィールド1331を審査
し、状態表示フィールド1331が未使用状態の場合に
は、状態表示フィールド1331を使用中状態に変更
し、データ121をデータフィールド1321に格納
(コピー)する。状態表示フィールド1331が使用中
状態の場合には、データ121をデータフィールド13
21に格納(コピー)しない。
When the processor 11 attempts to read the instruction code 121-i of the program or the data 121-d required for the operation from the memory 12, the cache memory control circuit 134 calculates an entry 1311 to be stored, and displays the status of the entry 1311. The field 1331 is examined, and if the status display field 1331 is in the unused state, the status display field 1331 is changed to the in-use state, and the data 121 is stored (copied) in the data field 1321. When the status display field 1331 is in use, the data 121 is stored in the data field 13.
21 is not stored (copied).

【0025】キャッシュメモリは一般に高価であるた
め、メモリ12よりも容量が少なく、同一エントリを使
用する対象は複数存在する。例えば、メモリ12が0x
80000000から0x8000FFFFまで存在す
る場合、すなわち64Kバイトの場合には、キャッシュ
メモリ13は8Kバイトというように少量実装され、6
4Kバイト/8Kバイト=64個が同一エントリを使用
することになる。キャッシュメモリ制御回路134は、
例えば、格納すべきデータのアドレス(32ビットデー
タ)の中間の複数ビットをエントリインデックスとして
データエントリ1311を算出する。1エントリの容量
を8バイトとする場合、エントリ数は8Kバイト/8バ
イト=1K個となり、対応するアドレスを0x0000
1FF8でマスクし、8(バイト)で割った値をエント
リインデックスとして対応するエントリを決定する。
Since the cache memory is generally expensive, it has a smaller capacity than the memory 12, and there are a plurality of objects using the same entry. For example, if the memory 12 is 0x
When there are from 80000000 to 0x8000FFFF, that is, in the case of 64 Kbytes, the cache memory 13 is mounted in a small amount such as 8 Kbytes, and
4K bytes / 8K bytes = 64 will use the same entry. The cache memory control circuit 134
For example, the data entry 1311 is calculated using a plurality of intermediate bits of the address (32-bit data) of the data to be stored as an entry index. When the capacity of one entry is 8 bytes, the number of entries is 8K bytes / 8 bytes = 1K, and the corresponding address is 0x0000.
The corresponding entry is determined by masking with 1FF8 and dividing the value by 8 (bytes) as an entry index.

【0026】以上が一般的なキャッシュメモリのエント
リ決定方法である。
The above is a general cache memory entry determination method.

【0027】またプロセッサ11が演算の結果でデータ
フィールド1321に格納されているデータの値を更新
し、同一データの新しい値として書き戻す場合には、状
態表示フィールド1331を使用中状態のまま保持し、
新データ121をデータフィールド1321に格納す
る。
When the processor 11 updates the value of the data stored in the data field 1321 with the result of the operation and writes it back as a new value of the same data, the status display field 1331 is kept in the in-use state. ,
The new data 121 is stored in the data field 1321.

【0028】新データ121は、プロセッサ11からの
メモリへの書き戻し指示41によりメモリ12に書き戻
される。
The new data 121 is written back to the memory 12 in response to a write-back instruction 41 from the processor 11 to the memory.

【0029】一方、プロセッサ11から当該エントリの
無効化指示42が指示されると、データフィールド13
21をメモリ12に書き戻し、次いで状態表示フィール
ド1331を未使用状態に変更する。
On the other hand, when the processor 11 instructs the invalidation instruction 42 of the entry, the data field 13
21 is written back to the memory 12, and then the status display field 1331 is changed to an unused status.

【0030】以上が情報処理装置1を構成する各手段の
実施例である。
The above is an embodiment of each means constituting the information processing apparatus 1.

【0031】情報処理装置1を制御するソフトウェアの
実施例を図2及び図3に示す。
An embodiment of software for controlling the information processing apparatus 1 is shown in FIGS.

【0032】図2は情報処理装置1を制御するソフトウ
ェアの全体構成である。
FIG. 2 shows the overall configuration of software for controlling the information processing apparatus 1.

【0033】情報処理装置1を制御するソフトウェア3
は、周期的に動作するプログラム31を含み情報処理装
置1を使用して何らかの出力を行うソフトウェアであ
る。周期的に動作するプログラム31は情報処理装置1
を正常に動作させるために必要な手段であって、直接的
に出力に影響するとは限らない。
Software 3 for controlling information processing apparatus 1
Is software that includes a program 31 that operates periodically and performs some output using the information processing apparatus 1. The program 31 that operates periodically includes the information processing apparatus 1.
Is necessary for normal operation of the device, and does not necessarily directly affect the output.

【0034】周期的に動作するプログラム31は、キャ
ッシュメモリ格納制御部311と周期動作部312より
なる。
The program 31 that operates periodically includes a cache memory storage control unit 311 and a periodic operation unit 312.

【0035】キャッシュメモリ格納制御部311及び周
期動作部312は、いずれも単一あるいは複数の命令コ
ードより構成され、各々の命令コードはプロセッサ11
が解釈・実行し得る複数バイトの命令コード及びオペラ
ンドデータより構成される。
Each of the cache memory storage control unit 311 and the cyclic operation unit 312 is composed of a single or a plurality of instruction codes.
Is composed of a plurality of bytes of instruction code and operand data that can be interpreted and executed by.

【0036】周期動作部312はメモリ12内のアドレ
ス、例えば0x80001200番地より格納されてお
り、キャッシュメモリ格納制御部311はその若番地に
連続的に(プロセッサ11が連続的に命令を読み込める
番地に)格納されている。
The periodic operation unit 312 is stored from an address in the memory 12, for example, address 0x800001200, and the cache memory storage control unit 311 continuously stores the address at the young address (at the address where the processor 11 can continuously read the instruction). Is stored.

【0037】キャッシュメモリ格納制御部311は図3
に示すように、周期動作部312のそれぞれの命令コー
ドを対応するエントリ3121〜312nに格納できる
ように、まずエントリ3121〜312nに対して当該
エントリの無効化指示22を行うプログラムである。
The cache memory storage control unit 311 has the configuration shown in FIG.
As shown in (1), this program first issues an invalidation instruction 22 to the entries 3121 to 312n so that the instruction codes of the cyclic operation unit 312 can be stored in the corresponding entries 3121 to 312n.

【0038】プロセッサ11がキャッシュメモリ格納制
御部311を初めて実行しようとすると、本周期プログ
ラム制御用エントリ無効化フラグ313が「無効化未済
み状態」であるため、エントリ3121〜312nに対
して当該エントリの無効化指示42の命令が実行され
る。この命令実行により、エントリ3121〜312n
のエントリの現在のデータフィールド1321の値をメ
モリ12に書き戻し、次いで状態表示フィールド133
1を未使用状態に設定する。以上で周期動作部312を
キャッシュメモリ13に格納する(ヒットさせる)準備
が完了する。
When the processor 11 attempts to execute the cache memory storage control unit 311 for the first time, the entry invalidation flag 313 for this period program control is “invalidation not yet completed”. Of the invalidation instruction 42 is executed. By executing this instruction, the entries 3121 to 312n
The value of the current data field 1321 of the entry is written back to the memory 12, and then the status display field 133
Set 1 to unused state. Thus, the preparation for storing (hitting) the periodic operation unit 312 in the cache memory 13 is completed.

【0039】次いで、周期プログラム制御用エントリ無
効化フラグ313を「無効化完了状態」に更新し、キャ
ッシュメモリ格納制御部311の前処理を終了する。
Next, the periodic program control entry invalidation flag 313 is updated to "invalidation completed state", and the preprocessing of the cache memory storage control unit 311 is terminated.

【0040】続いて周期動作部312の命令が対応する
エントリ3121〜312nに格納されながら、順次実
行される。このとき、各エントリの状態表示フィールド
は「使用中状態」に変更される。
Subsequently, the instructions of the cyclic operation unit 312 are sequentially executed while being stored in the corresponding entries 3121 to 312n. At this time, the status display field of each entry is changed to "in use".

【0041】全ての周期動作部312の命令実行が完了
すると、第1回目の周期的に動作するプログラム31の
処理が終了する。
When the execution of the instructions of all the cyclic operation units 312 is completed, the processing of the first cyclically operated program 31 ends.

【0042】周期的なプログラムを動作させるために、
情報処理装置1は周期割込手段15により割込を検出す
ると、本周期プログラムを再度実行する。
In order to operate a periodic program,
When the information processing device 1 detects the interruption by the period interruption means 15, the information processing device 1 executes the present period program again.

【0043】第2回目以降は、図4に示すように、周期
プログラム制御用エントリ無効化フラグ313が「無効
化完了状態」になっているため、キャッシュメモリ格納
制御部311処理の最初の判定処理3111にてキャッ
シュメモリ格納制御部311処理を何もせず終了する。
After the second time, as shown in FIG. 4, since the entry invalidation flag 313 for periodic program control is in the "invalidation completed state", the first determination processing of the cache memory storage control unit 311 processing is performed. In 3111, the cache memory storage control unit 311 ends the processing without doing anything.

【0044】次いで周期動作部312の命令実行を開始
するが、これら周期動作部312の各命令は既にキャッ
シュメモリ13内部のエントリ3121〜312nに格
納されているため、高速に読み込み処理を完了し、それ
ぞれメモリ12から読み込んだのと同じように実行され
る。
Next, the execution of the instruction of the periodic operation unit 312 is started. Since each instruction of the periodic operation unit 312 has already been stored in the entries 3121 to 312n in the cache memory 13, the read processing is completed at high speed. Each is executed in the same way as read from the memory 12.

【0045】[0045]

【発明の効果】本発明によれば、周期的に動作させる必
要のあるプログラムの命令コードなどを、確実に高速な
キャッシュメモリに保持し続けることができるため、2
回目以降の周期プログラムの処理時間を短縮することが
できる。その結果、周期プログラムが一旦キャッシュメ
モリに格納された以降は、本発明を適用する前と比べて
プロセッサの占有時間が削減できることになり、電子交
換機等においては交換プログラムを実行する時間を増加
できるため、システム性能を向上できる。
According to the present invention, the instruction code of the program that needs to be operated periodically can be reliably kept in the high-speed cache memory.
It is possible to reduce the processing time of the cyclic program after the first time. As a result, after the periodic program is once stored in the cache memory, the occupation time of the processor can be reduced as compared with before the present invention is applied, and the time for executing the exchange program can be increased in an electronic exchange or the like. , System performance can be improved.

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

【図1】本発明の情報処理装置を示すブロック図。FIG. 1 is a block diagram showing an information processing apparatus of the present invention.

【図2】本発明の情報処理装置を制御するソフトウェア
の全体構成を示す説明図。
FIG. 2 is an explanatory diagram showing an overall configuration of software for controlling the information processing apparatus of the present invention.

【図3】本発明のキャッシュメモリ制御シーケンスを示
す説明図。
FIG. 3 is an explanatory diagram showing a cache memory control sequence according to the present invention.

【図4】本発明のキャッシュメモリ制御シーケンスを示
す説明図。
FIG. 4 is an explanatory diagram showing a cache memory control sequence according to the present invention.

【符号の説明】[Explanation of symbols]

11…プロセッサ、 111…演算回路、 112…プロセッサ内部のレジスタ、 12…メモリ、 121…メモリ内データ、 121−i…命令コード、 121−d…演算に必要なデータ、 122…メモリ内データのアドレス、 13…キャッシュメモリ、 131…複数のエントリ、 1311…エントリ、 132…データフィールド、 1321…エントリのデータフィールド、 133…状態表示フィールド、 134…キャッシュメモリ制御回路、 14…バス、 15…周期割込手段。 11: processor, 111: arithmetic circuit, 112: register in processor, 12: memory, 121: data in memory, 121-i: instruction code, 121-d: data required for operation, 122: address of data in memory 13: cache memory, 131: multiple entries, 1311: entry, 132: data field, 1321: data field of entry, 133: status display field, 134: cache memory control circuit, 14: bus, 15: periodic interrupt means.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 藤原 淳一 神奈川県横浜市戸塚区戸塚町216番地株式 会社日立製作所情報通信事業部内 ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Junichi Fujiwara 216 Totsuka-cho, Totsuka-ku, Yokohama-shi, Kanagawa Pref.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】メモリから命令コードやデータを読み出
し、演算し、演算結果を上記プロセッサ内部のレジスタ
やメモリに格納する手段を有するプロセッサと、プログ
ラムの命令コードやデータを格納する機能を有するメモ
リと、上記メモリの内容をプロセッサが読み込んだ場合
に当該データが入るべきエントリが使用中でない場合に
上記データを上記エントリに保持する高速なキャッシュ
メモリと、及びこれらを接続し上記読み書きする手段を
有するバスより構成される情報処理装置であって、上記
キャッシュメモリは複数のエントリより構成され、上記
エントリが使用中である場合には、プロセッサが読み込
もうとするデータを上記エントリに格納せず、使用中で
ない場合にはプロセッサが読み込もうとするデータを上
記エントリに格納するとともに、上記エントリが使用中
であることを示すために具備している有効表示手段を使
用中状態に設定する機能を有しており、上記エントリの
使用中状態をプロセッサからの指示により未使用状態に
変更する手段を有する情報処理装置において、プロセッ
サが単一エントリあるいは複数エントリを一括して未使
用状態に変更する手段を有することを特徴とするキャッ
シュメモリ制御装置。
A processor having means for reading an instruction code or data from a memory, performing an operation, and storing the operation result in a register or a memory inside the processor, and a memory having a function of storing an instruction code or data of a program. A high-speed cache memory for holding the data in the entry when the entry in which the data is to be entered when the content of the memory is read by the processor is not in use, and a bus having means for connecting these and reading and writing the data The cache memory is composed of a plurality of entries, and when the entry is in use, the processor does not store the data to be read in the entry and is not in use. In this case, the data that the processor is trying to read is stored in the above entry. And a function of setting the valid display means provided to indicate that the entry is in use to a use state, and setting the use state of the entry to an unused state by an instruction from the processor. A cache memory control device, comprising: a processor for changing a single entry or a plurality of entries to an unused state collectively in an information processing apparatus having a means for changing to a non-use state.
【請求項2】上記キャッシュメモリ制御装置を使用する
ソフトウェアであって、周期的に動作する必要のあるプ
ログラムが初めて動作する前段で当該プログラムが使用
するエントリを未使用状態にし、次いで当該プログラム
が実行されるに当たって当該プログラムの命令コード及
びデータが上記高速なキャッシュメモリに格納され、上
記周期的に動作する必要のあるプログラムの処理が終了
した後の2回目以降の実行開始の前段では、上記エント
リを未使用状態に変更しない請求項1に記載のキャッシ
ュメモリ制御方式。
2. The software using the cache memory control device, wherein an entry used by the program which needs to operate periodically is set to an unused state before the program first operates, and then the program is executed. At the same time, the instruction code and data of the program are stored in the high-speed cache memory, and the entry is stored in a stage preceding the start of the second or later execution after the processing of the program that needs to operate periodically ends. 2. The cache memory control method according to claim 1, wherein the cache memory is not changed to an unused state.
JP9021221A 1997-02-04 1997-02-04 Cache memory control system Pending JPH10222422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9021221A JPH10222422A (en) 1997-02-04 1997-02-04 Cache memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9021221A JPH10222422A (en) 1997-02-04 1997-02-04 Cache memory control system

Publications (1)

Publication Number Publication Date
JPH10222422A true JPH10222422A (en) 1998-08-21

Family

ID=12048970

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9021221A Pending JPH10222422A (en) 1997-02-04 1997-02-04 Cache memory control system

Country Status (1)

Country Link
JP (1) JPH10222422A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100416494C (en) * 2003-04-15 2008-09-03 威盛电子股份有限公司 Method for reading out stored data in system storage by display controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100416494C (en) * 2003-04-15 2008-09-03 威盛电子股份有限公司 Method for reading out stored data in system storage by display controller

Similar Documents

Publication Publication Date Title
US7844802B2 (en) Instructions for ordering execution in pipelined processes
JP4205506B2 (en) Data processing apparatus and data processing method
JP3204323B2 (en) Microprocessor with built-in cache memory
JP2002251321A (en) Cache memory system device
JP2002032264A (en) Cache memory device and central processing unit using the same
JP3088303B2 (en) Cache memory bank controller
JPH0916409A (en) Microcomputer
EP1103898A2 (en) Microprocessor and memory
JPH10222422A (en) Cache memory control system
JP3005626B2 (en) Data processing system and data transfer method
JP2004318877A (en) Intelligent waiting method
JP2883465B2 (en) Electronic computer
JPH06149669A (en) System and device for transferring cache data
JP3424430B2 (en) Processor
JP2902847B2 (en) Self-modifying code execution method
JP2000194554A (en) Arithmetic processor
JP2778623B2 (en) Prefetch control device
JPH1185613A (en) Cache memory
JPH0795288B2 (en) Microcomputer
JP3388518B2 (en) Program control unit
Good Structuring an instruction cache
JPH0683986A (en) Single chip microcomputer
JPH0364903B2 (en)
JPH05189313A (en) Cache memory control system
JP2000076132A (en) Information processor provided with cache memory