JPH0444139A - Prefetch control system - Google Patents

Prefetch control system

Info

Publication number
JPH0444139A
JPH0444139A JP2151887A JP15188790A JPH0444139A JP H0444139 A JPH0444139 A JP H0444139A JP 2151887 A JP2151887 A JP 2151887A JP 15188790 A JP15188790 A JP 15188790A JP H0444139 A JPH0444139 A JP H0444139A
Authority
JP
Japan
Prior art keywords
instruction
cache
data
control circuit
prefetch
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
JP2151887A
Other languages
Japanese (ja)
Inventor
Motoyoshi Hirose
元義 廣瀬
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 JP2151887A priority Critical patent/JPH0444139A/en
Publication of JPH0444139A publication Critical patent/JPH0444139A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To improve the processing speed and the efficient utilization of a cache memory by inserting a prefetch PF instruction into a position preceding an instruction using data in a program by several instructions and prefetching the data into the cache memory. CONSTITUTION:An instruction decoding control circuit 1-3 decodes a prefetch instruction and informs a cache control circuit 1 of a PF flag. Then the circuit 1 retrieves a cache tag 3-2 for the data on an informed address. When a mistake is decided, the circuit 1 stops the return of an interlock signal in response to the information of the PF flag and writes the data read out of a main storage 4 into a cache memory 3-3 to prefetch it in a state where the execution of an instruction is carried on. Thus an interlock state due to a cache mistake can be evaded so that the processing speed and the efficient utilization of the cache memory can be improved.

Description

【発明の詳細な説明】 〔概要〕 データをキャッシュメモリにプリフェッチするプリフェ
ッチ制御方式に関し、 プログラムの処理上必要とするデータについてプリフェ
ッチ命令を挿入してプリフェッチし、処理効率を向上さ
せると共に効率の良好なキャッシュの使用方法を提供す
ることを目的とし、プログラムから取り出して解読した
命令がプリフェッチ命令のときにPFフラグおよびリー
ドしようとするアドレスをキャッシュ制御回路に通知し
、このキャッシュ制御回路が通知を受けたアドレスのデ
ータについてキャシュタグを検索してミスと判明したと
きに、上記PFフラグの通知に対応してインターロック
信号の返送を抑止して命令の実行を続行させた状態で、
主記憶装置からリードしたデータをキャッシュメモリに
書き込んでプリフェッチし、複数命令後における当該デ
ータの使用に備えるように構成する。
[Detailed Description of the Invention] [Summary] Regarding a prefetch control method for prefetching data into a cache memory, a prefetch instruction is inserted and prefetched for data required for program processing, thereby improving processing efficiency and achieving high efficiency. The purpose is to provide a cache usage method, and when an instruction extracted from a program and decoded is a prefetch instruction, the cache control circuit is notified of the PF flag and the address to be read, and this cache control circuit receives the notification. When a cache tag is searched for the address data and an error is found, in response to the notification of the PF flag, the return of the interlock signal is suppressed and the execution of the instruction is continued.
The configuration is such that data read from the main memory is written to the cache memory and prefetched to prepare for use of the data after a plurality of instructions.

〔産業上の利用分野〕[Industrial application field]

本発明は、データをキャッシュメモリにプリフェッチす
るプリフェッチ制御方式に関するものである。近年のコ
ンピュータシステムの高速化の要求に伴い、キャッシュ
のヒツト率の向上が要求されている。このため、キャッ
シュ中に走行中のプログラムが必要とするデータを前も
って転送してプリフェッチしておくことが望まれている
The present invention relates to a prefetch control method for prefetching data into a cache memory. With the recent demand for faster computer systems, there is a demand for improved cache hit ratios. For this reason, it is desirable to transfer and prefetch data required by a program running in the cache in advance.

〔従来の技術〕[Conventional technology]

従来の命令処理装置は、キャッシュ・ミス時にミスした
アドレス周辺のデータもハードウェアにより、主記憶装
置から読み出してキャッシュに転送して格納するプリフ
ェ・ノチを行っている。このプリフェッチによってヒン
ト率を向上させるために、キャッシュ・ミスしたアドレ
スの周辺のデータを多量にキャッシュに転送して格納す
るようにしていた。
Conventional instruction processing devices use hardware to read out data around the missed address at the time of a cache miss from the main memory, transfer it to the cache, and store it therein. In order to improve the hint rate through this prefetch, a large amount of data around the cache miss address is transferred to the cache and stored.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従って、上述のプリフェッチは、プログラムが必要とし
ていないデータを多量にキャッシュに転送して格納して
しまい、有効性が少なく、必要としているデータを当該
キャッシュから消去してしまうと共に、過度なキャッシ
ュへのデータの格納は主起41装置のスループットを低
下させてしまうという問題があった。
Therefore, the above-mentioned prefetch transfers and stores a large amount of data that the program does not need in the cache, which is less effective, erases the data that is needed from the cache, and causes excessive use of the cache. There is a problem in that data storage reduces the throughput of the host device 41.

本発明は、プログラムの処理上必要とするデータについ
てプリフェッチ命令を挿入してプリフェッチし、処理効
率を向上させると共に効率の良好なキヤ・7シユの使用
方法を提供することを目的としている。
SUMMARY OF THE INVENTION An object of the present invention is to insert a prefetch instruction to prefetch data necessary for program processing, thereby improving processing efficiency and providing an efficient method of using a cache.

〔課題を解決するための手段〕[Means to solve the problem]

第1図を参照して課題を解決するための手段を説明する
Means for solving the problem will be explained with reference to FIG.

第1図において、命令解読制御回路1−3は、プログラ
ムから取り出して解読した命令がプリフェッチ命令のと
きにPFフラグをキャッシュ制御回路3−1に通知した
りなどするものである。
In FIG. 1, the instruction decoding control circuit 1-3 notifies the cache control circuit 3-1 of a PF flag when the instruction extracted and decoded from the program is a prefetch instruction.

キャッシュ制御回路3−1は、キャッシュタグ3−2を
検索して通知を受けたアドレスのデータがキャッシュメ
モリ3−3に存在するか否か(ミス/ヒソ1−か否か)
を判定したり、ミスのときに主記憶装置4からリードし
たデータをキャッシュメモリ3−3に書き込んだりなど
するものである。
The cache control circuit 3-1 searches the cache tag 3-2 and determines whether data at the notified address exists in the cache memory 3-3 (whether there is a miss/history 1- or not).
, and writes data read from the main storage device 4 to the cache memory 3-3 in the event of a miss.

〔作用〕[Effect]

本発明は、第1図に示すように、命令解読制御回路1−
3がプリフェッチ命令と解読したときにPFフラグをキ
ャッシュ制御回路1に通知し、キャッシュ制御回路1が
通知を受けたアドレスのブタについてキ中シュクグ3−
2を検索してミスと判明したときに、このPFフラグの
通知に対応してインターロック信号の返送を抑止して命
令の実行を続行させた状態で、主記憶装置4からリート
したデータをキャッシュメモリ3−3に書き込んでプリ
フェッチするようにしている。
As shown in FIG. 1, the present invention provides an instruction decoding control circuit 1-
3 is decoded as a prefetch command, it notifies the cache control circuit 1 of the PF flag, and the cache control circuit 1 executes the PF flag in the cache control circuit 1 for the flag at the notified address.
2, when a mistake is found, the data read from the main memory 4 is cached while suppressing the return of the interlock signal and continuing execution of the instruction in response to the notification of this PF flag. It is written to the memory 3-3 and prefetched.

従って、プログラム中でデータを使用する命令の数命令
前にプリフェッチ命令を挿入して予め当該データをキャ
ッシュメモリにプリフェッチしておくことにより、キャ
ッシュ・ミスによるインターロックを回避し、処理速度
を向上させることが可能となると共に、キャッシュメモ
リを効率的に利用することが可能となる。
Therefore, by inserting a prefetch instruction several instructions before an instruction that uses data in a program and prefetching the data into the cache memory, interlocks caused by cache misses can be avoided and processing speed can be improved. This makes it possible to use the cache memory efficiently.

〔実施例〕〔Example〕

次に、第1図から第5図を用いて本発明の1実施例の構
成および動作を順次詳細に説明する。
Next, the configuration and operation of one embodiment of the present invention will be explained in detail using FIGS. 1 to 5.

第1図において、命令解読部(IPU)1は、プログラ
ムから取り込んだ命令を解読などするものであって、命
令データを一時的に格納する命令バッファ1−1、この
命令バッファ1−1から取り出して実行しようとする命
令を格納する命令レジスタ1−2、この命令レジスタ1
−1に格納された命令を解読する命令解読制御回路1−
3、および読み出そうとする命令アドレスを格納する命
令アドレスレジスタ1−4などから構成されるものであ
る。
In FIG. 1, an instruction decoding unit (IPU) 1 is a unit that decodes instructions taken in from a program. This instruction register 1-2 stores the instruction to be executed.
-1 instruction decoding control circuit 1-
3, and an instruction address register 1-4 for storing an instruction address to be read.

命令解読制御回路1−3は、プログラムから取り出して
解読した命令がプリフェッチ命令のときにPFフラグを
キャッシュ制御回路3〜1に通知したり、キャッシュ制
御回路3−1からの命令インターロック信号の通知に対
応して命令の解読の実行を停止したりなどするものであ
る。
The instruction decoding control circuit 1-3 notifies the cache control circuits 3-1 of a PF flag when the instruction extracted and decoded from the program is a prefetch instruction, and also notifies the cache control circuit 3-1 of an instruction interlock signal. In response to this, the execution of decoding of instructions is stopped.

演算部(EPU)2は、命令解読制御部1−3によって
命令を解読した結果をもとに生成された制御信号の通知
に対応して、各種演算を行うものであって、演算を制御
する演算制御回路2−1、オペランドアドレスを格納す
るオペランドアドレスレジスタ2−2、各種演算を行う
演算器2−3などから構成されるものである。
The calculation unit (EPU) 2 performs various calculations in response to notifications of control signals generated based on the results of decoding instructions by the instruction decoding control unit 1-3, and controls the calculations. It is comprised of an arithmetic control circuit 2-1, an operand address register 2-2 for storing operand addresses, an arithmetic unit 2-3 for performing various operations, and the like.

主記憶制御部(SCU)3は、キャッシュ制御を行うキ
ャッシュ制御回路3−1、キャッシュメモリ3−3にデ
ータが存在するか否か(ヒツト/ミスか否か)を検索し
て判別するためのキャッシュタグ3−2、データを格納
するキャッシュメモリ3−3などから構成されるもので
ある。
The main memory control unit (SCU) 3 includes a cache control circuit 3-1 that performs cache control, and a cache control circuit 3-1 that performs cache control, and a cache memory 3-3 that searches and determines whether data exists (hit/miss or not). It is composed of a cache tag 3-2, a cache memory 3-3 for storing data, and the like.

主記憶装置(MSU)4は、命令、データを格納するメ
モリである。
The main storage unit (MSU) 4 is a memory that stores instructions and data.

次に、第2図フローチャートに示す順序に従い、第1図
構成の動作を詳細に説明する。
Next, the operation of the configuration shown in FIG. 1 will be explained in detail in accordance with the order shown in the flowchart of FIG.

第2図において、■は、PF命令か否かを判別する。こ
れは、第1図命令解読制御回路1−3が命令レジスタI
−2に格納された命令を解読してPF命令(本発明で新
設したプリフェッチ命令)であるか否かを判別する。Y
ESの場合には、■、0でインターロックを抑止した状
態で、■から@でミスのときに○Pアドレスのデータを
主記憶装置4からリードしてキャッシュメモリ3−3に
プリフェッチする。
In FIG. 2, ■ determines whether it is a PF instruction or not. This means that the instruction decoding control circuit 1-3 in FIG.
-2 is decoded to determine whether it is a PF instruction (a prefetch instruction newly established in the present invention). Y
In the case of ES, with the interlock inhibited by ■ and 0, when there is a miss from ■ to @, the data at the ○P address is read from the main storage device 4 and prefetched into the cache memory 3-3.

■は、PFフラグをセットする。これにより、命令解読
制御回路1−3からキャッシュ制御回路3−1にPFフ
ラグが通知される。
(2) sets the PF flag. As a result, the PF flag is notified from the instruction decoding control circuit 1-3 to the cache control circuit 3-1.

■は、インターロック抑止を行う。これは、@でPFフ
ラグをキャッシュ制御回路3−1に通知したことに対応
して、キャッシュ制御回路3−1がたとえミスのときで
あっても命令解読制御回路1−3に命令インターロック
信号の返送を抑止し、当該命令解読制御回路1−3がミ
スによるプリフェッチ処理(■YES、[相]、■、■
によりプリフェッチ処理)の終了を待つことなく、次の
命令の解読を続行することが可能となる。
(2) performs interlock suppression. This means that in response to notifying the cache control circuit 3-1 of the PF flag with @, the cache control circuit 3-1 sends an instruction interlock signal to the instruction decoding control circuit 1-3 even if there is a miss. The instruction decoding control circuit 1-3 prevents the return of the instruction, and the instruction decoding control circuit 1-3 performs prefetch processing (■YES, [phase], ■, ■
This makes it possible to continue decoding the next instruction without waiting for the end of the prefetch process.

■は、OPアドレスを生成する。これは、演算部2が命
令解読制御回路1−3から通知された制御信号をもとに
オペランドアドレスを生成する(第3図参照)。
(2) Generates an OP address. In this case, the arithmetic unit 2 generates an operand address based on the control signal notified from the instruction decoding control circuit 1-3 (see FIG. 3).

■は、ミスか否かを判別する。これは、■で生成された
オペランドアドレスの通知を受けたキヤ・ノシュ制御回
路3−1がキャッシュタグ3−2を検索してミスか否か
を判別する。YESの場合(ミスの場合)には、[相]
ないし[相]でプリフェッチする。一方、NOの場合(
ヒツトした場合)には、キャッシュメモリ3−3にデー
タが存在したので、プリフェッチする必要がなく、次命
令の処理へ進む。
(2) determines whether there is a mistake or not. In this case, the cache control circuit 3-1, which has been notified of the operand address generated in step (2), searches the cache tag 3-2 and determines whether or not there is a miss. If YES (in case of mistake), [phase]
Or prefetch with [phase]. On the other hand, if NO (
If there is a hit), the data exists in the cache memory 3-3, so there is no need to prefetch and the process proceeds to the next instruction.

[相]は、■でミスと判別されたので、読み出し要求を
主記憶装置4に発行する。
[Phase] is determined to be a mistake in ■, so a read request is issued to the main storage device 4.

Oは、主記憶装置4からデータが転送されてくる。Data is transferred to O from the main storage device 4.

0は、キャッシュメモリ3−3にデータを書き込む。こ
れにより、データがキャッシュメモリ33にプリフェッ
チされたこととなる。そして、次命令の処理へ進む。
0 writes data to the cache memory 3-3. This means that the data has been prefetched into the cache memory 33. Then, the process proceeds to the next instruction.

以上のように、■YESでPF命令と解読されたときに
、PFフラグをキャッシュ制御回路31に通知し、ミス
時に命令インターロック信号の返送を抑止した状態で、
主記憶装置4からデータを読みだしてキャッシュメモリ
3−3に格納してプリフェッチすることにより、当該P
F命令の挿入された以降の命令がこのプリフェッチした
データを使用し、ミスによる命令の実行を停止すること
なく、高速に処理を行うことが可能となる(第5図(ロ
)参照)。
As described above, when ■YES is decoded as a PF instruction, the PF flag is notified to the cache control circuit 31, and the return of the instruction interlock signal is suppressed in the event of a miss.
By reading data from the main storage device 4, storing it in the cache memory 3-3, and prefetching it, the relevant P
Instructions after the F instruction is inserted use this prefetched data, allowing high-speed processing to be performed without stopping instruction execution due to a mistake (see FIG. 5(b)).

次に、■NOでPF命令でないと解読されたときの動作
を説明する。
Next, an explanation will be given of the operation when the instruction is decoded as ``NO'' and is not a PF instruction.

■は、OPアドレスを生成する。これは、演算部2が命
令解読制御回路1−3から通知された制御信号をもとに
オペランドアドレスを生成する。
(2) Generates an OP address. In this case, the arithmetic unit 2 generates an operand address based on a control signal notified from the instruction decoding control circuit 1-3.

Oは、ミスか否かを判別する。これは、■で生成された
オペランドアドレスの通知を受けたキャッシュ制御回路
3−1がキャッシュタグ3−2を検索してミスか否かを
判別する。YESの場合(ミスの場合)には、[相]で
主記憶装置4に読みだし要求を発行し、[相]でデータ
の転送を受け、■で処理を実行する。この際、[相]で
キャッシュ制御回路3−1がインターロック信号を命令
解読制御回路1−3に通知して処理を停止させ、■でイ
ンターロック信号の解除を行い、■の実行を行うようニ
スる。一方、Noの場合(ヒントの場合)には、キャッ
シュメモリ3−3からデータの転送を受けて[相]の実
行を行い、次命令の処理へ進む。
O determines whether it is a mistake or not. In this case, the cache control circuit 3-1, which has been notified of the operand address generated in step (2), searches the cache tag 3-2 and determines whether or not there is a miss. In the case of YES (in the case of a mistake), a read request is issued to the main storage device 4 in [phase], data is transferred in [phase], and processing is executed in (2). At this time, in [phase], the cache control circuit 3-1 notifies the instruction decoding control circuit 1-3 of an interlock signal to stop the processing, and in phase 2, the interlock signal is released, and step 3 is executed. Varnish. On the other hand, in the case of No (in the case of a hint), data is transferred from the cache memory 3-3, the [phase] is executed, and the process proceeds to the next instruction.

第3図は、本発明に係るプリフェッチ命令の形式例を示
す。ここで、PF命令はプリフェッチ命令であって、図
示のように、Code、M、B、■、Dから構成されて
いる。Code  (コード)は77”である。MはM
ode bitであって、命令用キャッシュの有無など
のモードを表すビットである。B、I、Dはペースレジ
スタ、インデックスレジスタ、変位量を表す。OPアド
レスは、B、IXDの内容を加算した値(アドレス)で
ある。
FIG. 3 shows an example of the format of a prefetch instruction according to the present invention. Here, the PF instruction is a prefetch instruction, and is composed of Code, M, B, ■, and D as shown in the figure. Code is 77”.M is M
This bit is an ode bit that indicates a mode such as the presence or absence of an instruction cache. B, I, and D represent a pace register, an index register, and a displacement amount. The OP address is the value (address) obtained by adding the contents of B and IXD.

第4図を用いて命令データの読みだしおよびオペランド
データの読みだしついて説明する。
Reading of instruction data and reading of operand data will be explained using FIG.

命令解読部1は実行する命令アドレスと共に命令読みだ
し要求を記憶制御部3に通知する。ヒツトしたとき(キ
ャッシュ3−4に命令ドレスのデータが存在したとき)
は、命令データを命令解読部1に転送する。一方、ミス
のときは、命令解読部1にIPUインクツクンク信号を
通知して動作を停止させた状態で、主記憶装置4に読み
だし要求を通知してデータをキャッシュ3−4および命
令解読部lに転送する。そして、IPUインターコック
信号を解除し、処理を続行させる。
The instruction decoder 1 notifies the storage controller 3 of an instruction read request along with the address of the instruction to be executed. When hit (when instruction address data exists in cache 3-4)
transfers the instruction data to the instruction decoder 1. On the other hand, in the case of a miss, the IPU ink-tsunk signal is sent to the instruction decoder 1 to stop the operation, and a read request is sent to the main memory 4 to transfer the data to the cache 3-4 and the instruction decoder l. Transfer to. Then, the IPU intercock signal is canceled and processing is continued.

また、命令の解読の結果を制御信号として演算部2に通
知し、各種演算を行う。この際、演算部2は、演算を行
う対象となるオペランドアドレスと共にオペランド読み
だし要求を記憶制御部3に通知する。ヒントしたときは
、オペランドデータを演算部2に転送する。一方、ミス
のときは、演算部2にEPUインターロック信号を通知
して動作を停止させた状態で、主記憶装置4に読みだし
要求を通知してデータをキャッシュ3−4および演算部
2に転送する。そして、EPUインターロック信号を解
除し、処理を続行させる。
Further, the result of decoding the instruction is notified to the calculation unit 2 as a control signal, and various calculations are performed. At this time, the calculation unit 2 notifies the storage control unit 3 of an operand read request together with the operand address to be subjected to the calculation. When a hint is given, the operand data is transferred to the calculation unit 2. On the other hand, in the event of a miss, the EPU interlock signal is sent to the calculation unit 2 to stop the operation, and a read request is sent to the main storage device 4 to transfer the data to the cache 3-4 and the calculation unit 2. Forward. Then, the EPU interlock signal is released and processing is continued.

次に、第5図を用いて命令実行時間の比較を説明する。Next, a comparison of instruction execution times will be explained using FIG.

第5図(イ)は、従来のPF命令がなくキャッシュ・ミ
スした場合のパイプラインの状態を表す。
FIG. 5(a) shows the state of the pipeline when there is no conventional PF instruction and a cache miss occurs.

この場合には、命令8の実行時にミスとなり、図示のよ
うにサイクル11ないしサイクル15の間、主記憶装置
4からデータをリードするために必要な5ザイクルの待
ち時間が発生し、合計16サイクル必要となる。
In this case, an error occurs when executing instruction 8, and as shown in the figure, a waiting time of 5 cycles required to read data from the main memory device 4 occurs between cycles 11 and 15, for a total of 16 cycles. It becomes necessary.

第5図(ロ)は、本発明のPF命令が有りキャッシュ・
ミスした場合のパイプラインの状態を表す。この場合に
は、命令8で使用するデータにって、PF命令を挿入し
て予めプリフェッチしてキャッシュメモリ3−3に書き
込んでおくことにより、命令8の実行時にヒツトし、待
ち時間が無くなり、合計12サイクルで処理を終了する
Figure 5 (b) shows that there is a PF instruction of the present invention and the cache
Represents the state of the pipeline in case of a mistake. In this case, by inserting a PF instruction with the data used in instruction 8, prefetching it, and writing it to the cache memory 3-3, it will be hit when instruction 8 is executed, eliminating waiting time. The process ends in a total of 12 cycles.

従って、第5図(イ)の従来の16サイクルから第5図
(ロ)本発明の12サイクルになり、4サイクルだけ実
行時間を短縮することが可能となる。また、使用するデ
ータのみついてPF命令を数ステップ前に挿入してキャ
ッシュメモリ3−3に書き込むことにより、従来のよう
に多量のデータを当該キャッシュメモリ3−3に書き込
んでヒツト率を向上させる必要がなく、キャッシュメモ
リ3−3を効率的に使用することが可能となる。
Therefore, the conventional 16 cycles shown in FIG. 5(a) become 12 cycles according to the present invention shown in FIG. 5(b), making it possible to shorten the execution time by 4 cycles. In addition, by inserting a PF instruction for only the data to be used a few steps earlier and writing it to the cache memory 3-3, it is no longer necessary to write a large amount of data to the cache memory 3-3 as in the past to improve the hit rate. Therefore, the cache memory 3-3 can be used efficiently.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、プログラム中で
データを使用する命令の数命令前にプリフェッチ命令(
PF命令)を挿入して予め当該データをキャッシュメモ
リにプリフェッチする構成を採用しているため、キャッ
シュ・ミスによるインターロックを回避し、処理速度を
向上させることができると共に、キャッシュメモリを効
率的に利用することができる。
As explained above, according to the present invention, a prefetch instruction (
By inserting a PF instruction and prefetching the data into the cache memory, it is possible to avoid interlocks caused by cache misses, improve processing speed, and use the cache memory efficiently. can be used.

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

第1図は本発明の1実施例構成図、第2図は本発明の動
作説明フローチャー1・、第3図は本発明に係るプリフ
ェッチ命令の形式例、第4図は本発明の全体構成図、第
5図は命令実行時間の比較説明図を示す。 図中、1は命令解読部、1−3は命令解読制御回路、2
は演算部、3は主記憶制御部、3−1はキャッシュ制御
回路、3−2はキャッシュタグ、3−3はキャッシュメ
モリ、4は主記憶装置を表す。
FIG. 1 is a configuration diagram of one embodiment of the present invention, FIG. 2 is a flowchart 1 for explaining the operation of the present invention, FIG. 3 is an example of the format of a prefetch instruction according to the present invention, and FIG. 4 is the overall configuration of the present invention. FIG. 5 shows comparative diagrams of instruction execution times. In the figure, 1 is an instruction decoding section, 1-3 is an instruction decoding control circuit, and 2
3 represents an arithmetic unit, 3 represents a main memory control unit, 3-1 represents a cache control circuit, 3-2 represents a cache tag, 3-3 represents a cache memory, and 4 represents a main storage device.

Claims (1)

【特許請求の範囲】  データをキャッシュメモリにプリフェッチするプリフ
ェッチ制御方式において、 プログラムから取り出して解読した命令がプリフェッチ
命令のときにPFフラグおよびリードしようとするアド
レスをキャッシュ制御回路(3−1)に通知し、このキ
ャッシュ制御回路(3−1)が通知を受けたアドレスの
データについてキャシュタグ(3−2)を検索してミス
と判明したときに、上記PFフラグの通知に対応してイ
ンターロック信号の返送を抑止して命令の実行を続行さ
せた状態で、主記憶装置(4)からリードしたデータを
キャッシュメモリ(3−3)に書き込んでプリフェッチ
し、複数命令後における当該データの使用に備えるよう
に構成したことを特徴とするプリフェッチ制御方式。
[Claims] In a prefetch control method for prefetching data into a cache memory, when an instruction extracted and decoded from a program is a prefetch instruction, the cache control circuit (3-1) is notified of the PF flag and the address to be read. When this cache control circuit (3-1) searches the cache tag (3-2) for the data at the notified address and finds that there is a mistake, it issues an interlock signal in response to the notification of the PF flag. The data read from the main memory (4) is written to the cache memory (3-3) and prefetched while the return of the command is suppressed and instruction execution continues, in preparation for use of the data after multiple instructions. A prefetch control method characterized by being configured as follows.
JP2151887A 1990-06-11 1990-06-11 Prefetch control system Pending JPH0444139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2151887A JPH0444139A (en) 1990-06-11 1990-06-11 Prefetch control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2151887A JPH0444139A (en) 1990-06-11 1990-06-11 Prefetch control system

Publications (1)

Publication Number Publication Date
JPH0444139A true JPH0444139A (en) 1992-02-13

Family

ID=15528379

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2151887A Pending JPH0444139A (en) 1990-06-11 1990-06-11 Prefetch control system

Country Status (1)

Country Link
JP (1) JPH0444139A (en)

Similar Documents

Publication Publication Date Title
US4521851A (en) Central processor
US5377336A (en) Improved method to prefetch load instruction data
US6131145A (en) Information processing unit and method for controlling a hierarchical cache utilizing indicator bits to control content of prefetching operations
JP3548616B2 (en) Information processing equipment
US4583165A (en) Apparatus and method for controlling storage access in a multilevel storage system
US4775927A (en) Processor including fetch operation for branch instruction with control tag
JP2000339157A (en) Cache memory controller and computer system
JPH03147022A (en) Branch instruction processing apparatus and method
JP2006518053A (en) Prefetch generation by speculatively executing code through hardware scout threading
JP7096840B2 (en) Equipment and methods for managing capacity metadata
JPS6356731A (en) Data processor
US20060149940A1 (en) Implementation to save and restore processor registers on a context switch
US5146570A (en) System executing branch-with-execute instruction resulting in next successive instruction being execute while specified target instruction is prefetched for following execution
US6704833B2 (en) Atomic transfer of a block of data
JPH06161779A (en) Interruption control system for data processor
JPS6112289B2 (en)
JP2680899B2 (en) Information processing apparatus and control method therefor
JPH0444139A (en) Prefetch control system
JP2534662B2 (en) Instruction cache control method
JP4111645B2 (en) Memory bus access control method after cache miss
JP2783285B2 (en) Information processing device
JPH03175548A (en) Microprocessor and address control system
US20230418749A1 (en) Processor and method for designating a demotion target to be demoted from an in-core cache structure to an out-of-core cache structure
JPH0679273B2 (en) Data processing device
US20220004390A1 (en) Instruction ordering