Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2523398B2 - Control method for fetching instruction data to instruction cache - Google Patents
[go: Go Back, main page]

JP2523398B2 - Control method for fetching instruction data to instruction cache - Google Patents

Control method for fetching instruction data to instruction cache

Info

Publication number
JP2523398B2
JP2523398B2 JP2173850A JP17385090A JP2523398B2 JP 2523398 B2 JP2523398 B2 JP 2523398B2 JP 2173850 A JP2173850 A JP 2173850A JP 17385090 A JP17385090 A JP 17385090A JP 2523398 B2 JP2523398 B2 JP 2523398B2
Authority
JP
Japan
Prior art keywords
instruction
data
cache
code
control unit
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.)
Expired - Fee Related
Application number
JP2173850A
Other languages
Japanese (ja)
Other versions
JPH0462649A (en
Inventor
寛 後藤
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 JP2173850A priority Critical patent/JP2523398B2/en
Publication of JPH0462649A publication Critical patent/JPH0462649A/en
Application granted granted Critical
Publication of JP2523398B2 publication Critical patent/JP2523398B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 〔概要〕 命令キャッスとオペランド・キャッシュを持つ計算機
における命令キャッシュへのデータ取込制御方式に関
し、 命令列を実行せずに命令キャッシュへデータを登録する
ことが出来るようにすることを目的とし、 不当コード・サーチ制御部と命令不当コード割込み制
御部を持ち、 不当コード・サーチ制御部は、番地が指定され、起動
が指示されたことを契機として、 当該番地をオペランド・キャッシュに対するアクセ
ス番地として設定し、 オペランド取出し要求を発行し、読出しデータが不
当コードか否かを調べ、 不当コードでない場合には、アクセス番地を更新し
ての処理に戻り、 不当コードの場合には、不当コードとされたデータ
に対応するアクセス番地を予め定められた記憶手段に格
納すると共に命令不当コード割込み制御部を起動する 処理を行うように構成され、 命令不当コード割込み制御部は、起動されると、′
上記記憶手段の番地を命令キャッシュに対するアクセス
番地として設定し、命令取出し要求を発行する 処理を行なうように構成されている。
DETAILED DESCRIPTION OF THE INVENTION [Outline] Regarding a data fetch control method for an instruction cache in a computer having an instruction cache and an operand cache, it is possible to register data in the instruction cache without executing an instruction sequence. The illegal code search control unit and the instruction illegal code interrupt control unit are provided for the purpose of executing the instruction, and the illegal code search control unit sets the address to the operand Set as the access address for the cache, issue an operand fetch request, check whether the read data is an invalid code, and if it is not an invalid code, update the access address and return to the processing. If it is an invalid code, , Store the access address corresponding to the illegal coded data in a predetermined storage means and store the address. Is configured to perform a process for starting an illegal code interrupt control unit, the instruction unduly code interrupt control unit, when activated, '
The address of the storage means is set as an access address for the instruction cache, and a process for issuing an instruction fetch request is performed.

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

本発明は、命令キャッシュとオペランド・キャッシュ
の二つに区分けした構造のキャッシュを具備した計算機
において、命令実行なしに命令キャッシュへのデータの
取込みを行い得るようにしたものである。
According to the present invention, a computer having a cache having a structure divided into an instruction cache and an operand cache can fetch data into the instruction cache without executing the instruction.

〔従来の技術〕[Conventional technology]

従来の方式では、命令キャッシュとオペランド・キャ
ッシュは一つの共用したキャッシュであったため、キャ
ッシュへの取込みは、オペランド・アクセスによってブ
ロック・データ単位に登録が可能であった。
In the conventional method, since the instruction cache and the operand cache are one shared cache, the fetch into the cache can be registered in block data units by operand access.

キャッシュに対する登録の方法を第3図を参照して説
明する。第3図において、111は命令の実行制御部、112
はオペランド・アクセス制御部、160はキャッシュ、200
は主記憶装置、210は命令データ格納域、220はアクセス
・データ格納域、Bi(iは1,2,…)はブロック域をそれ
ぞれ示している。
The method of registration in the cache will be described with reference to FIG. In FIG. 3, reference numeral 111 denotes an instruction execution control unit, 112
Is an operand access control unit, 160 is a cache, 200
Is a main memory, 210 is an instruction data storage area, 220 is an access data storage area, and Bi (i is 1, 2, ...) Is a block area.

命令の実行制御部111とオペランド・アクセス制御部1
12は、プロセッサの中に存在する。キャッシュ160は、
主記憶装置200のデータの写しを保持するものであり、
複数のブロック域B1,B2,…に分割されている。キャッシ
ュ160と主記憶装置200との間のデータ転送は、ブロック
単位で行われる。キャッシュ160は、記憶制御ユニット
の中に存在する。
Instruction execution controller 111 and operand access controller 1
12 is in the processor. The cache 160 is
It holds a copy of the data in main memory 200,
It is divided into a plurality of block areas B1, B2, .... Data transfer between the cache 160 and the main storage device 200 is performed in block units. The cache 160 resides in the storage control unit.

命令の実行制御部111が命令取出し要求を発行する
と、記憶制御ユニットはキャッシュ200の中に該当命令
データが存在するか否かを調べ、存在する場合には該当
命令データをキャッシュ200から読出して命令の実行制
御部111に渡し、存在しない場合には該当命令データを
含む1ブロックのデータを主記憶装置200から読出し、
該当命令データを命令の実行制御部111に渡すと共に、
当該命令データ・ブロックをキャッシュ160に書き込
む。
When the instruction execution control unit 111 issues an instruction fetch request, the storage control unit checks whether or not the corresponding instruction data exists in the cache 200, and if there is, reads the corresponding instruction data from the cache 200 and outputs the instruction. To the execution control unit 111, and if it does not exist, read one block of data including the relevant instruction data from the main storage device 200,
While passing the relevant instruction data to the instruction execution control unit 111,
Write the instruction data block to cache 160.

オペランド・アクセス制御部112がオペランド取出し
要求を発行した場合にも、記憶制御ユニットは同様な動
作を行い、オペランド・データを演算部に渡す。
When the operand access control unit 112 issues an operand fetch request, the storage control unit performs the same operation and passes the operand data to the arithmetic unit.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上述のように、一つの共用したキャッシュであった場
合には、指定されたブロック・データ(命令列)をキャ
ッシュに登録するには、オペランド・アクセス(命令列
に対して読出し動作)によって可能であった。
As described above, in the case of one shared cache, it is possible to register the specified block data (instruction string) in the cache by operand access (read operation for the instruction string). there were.

しかしながら、命令キャッシュとオペランド・キャッ
シュが存在すると、オペランド・キャッシュへの登録は
今まで通りのアクセスで可能であるが、命令キャッシュ
ヘのデータの登録はオペランド・アクセスでは行うこと
が出来ず、一度,命令を実行しないと、命令キャッシュ
へのデータ登録が不可能であった。
However, if there is an instruction cache and an operand cache, registration to the operand cache can be performed by the conventional access, but data registration to the instruction cache cannot be performed by the operand access. If the instruction was not executed, data could not be registered in the instruction cache.

本発明は、この点に鑑みて創作されたものであって、
命令列を実行せずに、命令キャッシュへデータを登録す
ることが出来るようにすることを目的としている。
The present invention was created in view of this point,
The purpose is to enable data to be registered in the instruction cache without executing the instruction sequence.

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

第1図は本発明の原理説明図である。本発明の前提と
なる計算機は、命令キャッシュ161とオペランド・キャ
ッシュ162を持つ記憶制御ユニットと、命令実行のため
のハードウェア機構(図示せず)とを有している。
FIG. 1 is an explanatory view of the principle of the present invention. The computer on which the present invention is based has a storage control unit having an instruction cache 161 and an operand cache 162, and a hardware mechanism (not shown) for executing instructions.

記憶制御ユニットは、命令取出し要求が発行された時
には、該要求で指定された番地のデータ命令キャッシュ
161に存在するか否かを調べ、存在する場合には該当デ
ータを命令キャッシュ161から読み出して命令実行のた
めのハードウェア機構に渡し、存在しない場合には該当
データを含む1ブロックのデータを主記憶装置200から
読み出して命令キャッシュ161に書き込むと共に該当デ
ータを命令実行のためのハードウェア機構に渡す。ま
た、オペランド取出し要求が発行された時には、該要求
で指定された番地のデータがオペランド・キャッシュ16
2に存在するか否かを調べ、存在する場合には該当デー
タをオペランド・キャッシュ162から読み出して演算部
に渡し、存在しない場合には該当データを含み1ブロッ
クのデータを主記憶装置200から読み出してオペランド
・キャッシュ162に書き込むと共に該当データを演算部
に渡す。
The storage control unit, when an instruction fetch request is issued, issues a data instruction cache of the address specified by the request.
161 is checked to see if it exists, and if it exists, the corresponding data is read from the instruction cache 161 and passed to the hardware mechanism for executing the instruction. The data is read from the storage device 200, written in the instruction cache 161, and the corresponding data is passed to the hardware mechanism for instruction execution. Also, when an operand fetch request is issued, the data at the address specified by the request is written in the operand cache 16
It is checked whether or not it exists in 2, and if it exists, the corresponding data is read from the operand cache 162 and passed to the arithmetic unit. If it does not exist, one block of data including the corresponding data is read from the main storage device 200. And writes the data to the operand cache 162 and passes the corresponding data to the arithmetic unit.

命令実行のためのハードウェア機構は、命令データと
して渡されたデータの命令コード部分が命令コードとし
て定義されていないものである場合には、不当命令コー
ド割込みを発生する。
The hardware mechanism for instruction execution generates an illegal instruction code interrupt when the instruction code portion of the data passed as instruction data is not defined as an instruction code.

本発明は、上記のような計算機において、命令不当コ
ード割込み制御部113と、不当コード・サーチ制御部114
とを設けたものである。
The present invention provides an instruction illegal code interrupt control unit 113 and an illegal code search control unit 114 in the above computer.
And are provided.

不当コード・サーチ制御部114は、番地が指定され、
起動が指示されたことを契機として、 当該番地をオペランド・キャッシュ162に対するア
クセス番地として設定し、 オペランド取出し要求を発行し、読出しデータが不
当コードか否かを調べ、 不当コードでない場合には、アクセス番地を更新し
ての処理に戻り、 不当コードの場合には、不当コードとされたデータ
に対応するアクセス番地を予め定められた記憶手段に格
納すると共に命令不当コード割込み制御部113を起動す
る 処理を行うように構成されている。
The illegal code search control unit 114 has a designated address.
When the activation is instructed, the address is set as the access address for the operand cache 162, an operand fetch request is issued, it is checked whether the read data is an invalid code, and if it is not an invalid code, access is made. Returning to the processing after updating the address, if the code is an illegal code, the access address corresponding to the data regarded as the illegal code is stored in a predetermined storage means and the instruction illegal code interrupt control unit 113 is activated. Is configured to do.

命令不当コード割込み制御部113は、起動されると、 ′上記記憶手段の番地を命令キャッシュ161に対する
アクセス番地として設定し、命令取出し要求を発行する 処理を行うように構成されている。
When activated, the instruction illegal code interrupt control unit 113 is configured to set the address of the storage means as an access address to the instruction cache 161 and issue an instruction fetch request.

〔作用〕[Action]

先ず、先頭番地として主記憶装置の命令データ域の番
地を指定し、不当コード・サーチ制御部114を起動す
る。
First, the address of the instruction data area of the main storage device is designated as the head address, and the illegal code search control unit 114 is activated.

不当コード・サーチ制御部114は、起動されると、命
令データ・ブロックを主記憶装置200から読み出してオ
ペランド・キャッシュ162に格納し、この命令データ・
ブロックを2バイトずつ読み出して不当コードをサーチ
する。不当コードとは、命令コードとして定義されてい
ないコードであり、例えば16進表示で「00」,「FF」な
どのコードである。不当コードが見つかったならば、こ
の不当コードの主記憶装置上の格納場所を特定する番地
を記憶手段に格納し、命令不当コード割込み制御部113
を起動する。
The illegal code search control unit 114, when activated, reads an instruction data block from the main storage device 200 and stores it in the operand cache 162.
The block is read every 2 bytes and the illegal code is searched. The illegal code is a code that is not defined as an instruction code, and is, for example, a code such as “00” or “FF” in hexadecimal notation. If an illegal code is found, an address for specifying the storage location of this illegal code in the main storage device is stored in the storage means, and the instruction illegal code interrupt control unit 113
To start.

命令不当コード割込み制御部113は、起動されると、
記憶手段の番地を読み出し、この番地を命令キャッシュ
に対するアドレスとして命令取出し要求を発行する。記
憶制御ユニットは、該当するデータが命令キャッシュ16
1の中に存在すれば直ちに該当データを命令キャッシュ1
61から読出して命令実行のためのハードウェア機構に送
り、存在しなければ該当データを含む1ブロックのデー
タを主記憶装置200から読出して命令キャッシュ161に書
込み、該当データを命令実行のためのハードウェア機構
に送る。
When the instruction illegal code interrupt control unit 113 is activated,
The address of the storage means is read, and an instruction fetch request is issued using this address as an address for the instruction cache. In the storage control unit, the corresponding data is stored in the instruction cache 16
If it exists in 1, the relevant data is immediately cached in the instruction cache 1
The data is read from 61 and sent to the hardware mechanism for instruction execution. If it does not exist, one block of data including the corresponding data is read from the main storage device 200 and written to the instruction cache 161, and the corresponding data is executed by the hardware for instruction execution. Send to wear organization.

命令キャッシュ161の中に該当データが存在しないも
のと仮定すると、1ブロックの命令データが命令キャッ
シュ161に登録されると共に該当データ(この場合は不
当な命令コードを持つ命令)が命令実行のためのハード
ウェア機構に送られる。ハードウェア機構は、入力され
た該当データを解析する。不当な命令コードであるので
不当命令コード割込みが発生する。不当命令コード割込
み契機は命令不当コード割込み制御部113で解除する。
このように、本発明によれば、命令を実行することな
く、命令キャッシュにデータを登録することが出来る。
Assuming that the corresponding data does not exist in the instruction cache 161, one block of instruction data is registered in the instruction cache 161, and the corresponding data (in this case, an instruction having an invalid instruction code) is used for instruction execution. Sent to the hardware mechanism. The hardware mechanism analyzes the input corresponding data. Since it is an illegal instruction code, an illegal instruction code interrupt occurs. The illegal instruction code interrupt trigger is released by the illegal instruction code interrupt control unit 113.
As described above, according to the present invention, data can be registered in the instruction cache without executing the instruction.

〔実施例〕〔Example〕

第2図は本発明の1実施例を説明する図である。同図
において、100はプロセッサ、113は命令不当コード割込
み制御部、114は不当コード・サーチ制御部、150は番地
データ記憶部、161は命令キャッシュ、162はオペランド
・キャッシュ、200は主記憶装置、301はプログラムの起
動部、302は試験プログラムの実行制御部、Bi(iは1,
2,…)はブロック域をそれぞれ示している。
FIG. 2 is a diagram for explaining one embodiment of the present invention. In the figure, 100 is a processor, 113 is an illegal instruction code interrupt control unit, 114 is an illegal code search control unit, 150 is an address data storage unit, 161 is an instruction cache, 162 is an operand cache, 200 is a main storage device, 301 is a program starting part, 302 is a test program execution control part, and Bi (i is 1,
2, ...) indicates the block areas.

プラグラムの起動部301は、主記憶装置200の命令デー
タ域中に存在する番地を先頭番地として選択し、この先
頭番地と起動指示とを不当コード・サーチ制御部114に
与える。
The start-up unit 301 of the program selects an address existing in the instruction data area of the main storage device 200 as the start address, and gives the start address and the start instruction to the illegal code search control unit 114.

プロセッサ100の中には、命令不当コード割込み制御
部113と不当コード・サーチ制御部114とが設けられてい
る。命令キャッシュ161とオペランド・キャッシュ162
は、記憶制御ユニットの中に存在する。命令取出し要求
に対応する命令データは、命令実行のためのハード(命
令デコーダなどを含む)に送られ、当該命令データに基
づく命令実行が開始される。
The processor 100 is provided with an instruction illegal code interrupt control unit 113 and an illegal code search control unit 114. Instruction cache 161 and operand cache 162
Exists in the storage control unit. The instruction data corresponding to the instruction fetch request is sent to hardware for instruction execution (including an instruction decoder), and instruction execution based on the instruction data is started.

不当コード・サーチ制御部114は、次のような処理を
行う。不当コード・サーチ制御部114は、起動指示が与
えられると、指定された先頭番地以降の命令列を2バイ
ト境界で順番に読み出し、2バイト境界のデータが不当
コードが否かを調べる。不当コードとは、命令コードと
して定義されていないコードを意味しており、例えば
「00」や「FF」(16進表示)がこれに相当する。
The illegal code search control unit 114 performs the following processing. When the start instruction is given, the illegal code search control unit 114 sequentially reads the instruction sequence after the designated start address at the 2-byte boundary and checks whether the data at the 2-byte boundary is an illegal code. The illegal code means a code that is not defined as an instruction code, and for example, "00" or "FF" (hexadecimal notation) corresponds to this.

2バイト境界のデータが不当コードか否かを調べるた
めに、不当コード・サーチ制御部114は、オペランド取
出し要求を発行する。オペランド取出し要求を受け取る
と、記憶制御ユニットは、該データがオペランド・キャ
ッシュ162の中に存在するか否かを調べ、存在する場合
には該当データをオペランド・キャッシュ162から読み
出して不当コード・サーチ制御部114に渡し、存在しな
い場合には該当データを含む命令データ・ブロックを主
記憶装置200から読み出し、該当データを不当コード・
サーチ制御部114に渡すと共に該当命令データ・ブロッ
クをオペランド・キャッシュ162に書き込む。不当コー
ド・サーチ制御部114は、不当コードが見つかると、不
当コードの番地を番地データ記憶部150に書き込み、命
令不当コード割込み制御部113を起動する。
In order to check whether the data on the 2-byte boundary is an illegal code, the illegal code search control unit 114 issues an operand fetch request. Upon receiving the operand fetch request, the storage control unit checks whether the data exists in the operand cache 162, and if there is, reads the corresponding data from the operand cache 162 and controls the illegal code search. When it does not exist, the instruction data block containing the relevant data is read from the main memory device 200, and the relevant data is passed to the illegal code.
The relevant instruction data block is written to the operand cache 162 while being passed to the search control unit 114. When an illegal code is found, the illegal code search control unit 114 writes the address of the illegal code in the address data storage unit 150 and activates the instruction illegal code interrupt control unit 113.

例えば、命令データ・ブロックが2バイトのA命令,6
バイトのB命令,…から構成されており、A命令は00番
地〜01番地に格納され、B命令が02番地〜07番地に格納
されていると仮定する。不当コード・サーチ制御部114
は、最初に00番地と01番地の2バイト・データ(A命
令)が不当コードであるか否かを調べる。不当コードで
はないので、不当コード・サーチ制御部114は、次に02
番地と03番地のバイト・データ(B命令の命令コードと
此れに続くアドレス部の1バイト・データ)が不当コー
ドであるか否かを調べる。不当コードではないので、不
当コード・サーチ制御部114は、次に04番地と05番地の
2バイト・データが不当コードであるか否かを調べる。
04番地の1バイト・データが命令コードの集合に属して
いないとすると、04番地と05番地の2バイト・データは
不当コードとされ、04番地が番地データ記憶部150に書
き込まれる。なお、命令には2バイトのもの,4バイトの
もの,6バイトのもの,8バイトのものが存在する。
For example, the instruction data block is a 2-byte A instruction, 6
It is assumed that the B instruction is stored in the addresses 00 to 01 and the B instruction is stored in the addresses 02 to 07. Illegal code search control unit 114
First checks whether the 2-byte data (A instruction) at addresses 00 and 01 is an illegal code. Since it is not an illegal code, the illegal code search control unit 114
It is checked whether or not the byte data at the address and the address 03 (the instruction code of the B instruction and the 1-byte data of the address portion following this) is an illegal code. Since it is not an illegal code, the illegal code search control unit 114 next checks whether or not the 2-byte data at addresses 04 and 05 is an illegal code.
Assuming that the 1-byte data at address 04 does not belong to the set of instruction codes, the 2-byte data at addresses 04 and 05 is regarded as an invalid code, and address 04 is written in the address data storage unit 150. Note that there are two-byte instructions, four-byte instructions, six-byte instructions, and eight-byte instructions.

命令不当コード割込み制御部113は、起動されると、
番地データ記憶部150のデータを読み出し、これを命令
キャッシュに対するアドレス・レジスタに設定し、命令
取出し要求を発行する。記憶制御ユニットは、該当デー
タが命令キャッシュ161に存在するか否かを調べ、存在
する場合には該当データを命令キャッシュ161から読み
出してハード(命令実行のため)に送り、存在しない場
合には該当データを含む命令データ・ブロックを主記憶
装置200から読み出し、該当データをハード(命令実行
のための)に送ると共に該当命令データ・ブロックを命
令キャッシュ161に書き込む。
When the instruction illegal code interrupt control unit 113 is activated,
The data in the address data storage unit 150 is read, this is set in the address register for the instruction cache, and the instruction fetch request is issued. The storage control unit checks whether the corresponding data exists in the instruction cache 161, reads the corresponding data from the instruction cache 161, and sends it to the hardware (for executing the instruction) if it exists, and if it does not exist, the corresponding The instruction data block including the data is read from the main memory 200, the relevant data is sent to the hardware (for executing the instruction), and the relevant instruction data block is written in the instruction cache 161.

命令データが入力されると、命令実行のためのハード
は、先ず命令解読を行う。この場合、命令コードは不当
コードであるので、不当命令コード割込みが発生する。
不当命令コード割込みが発生すると、命令不当コード割
込み制御部113は、割込み解除の処理を行い、命令キャ
ッシュ161に命令データが取り込まれたことを試験プロ
グラムの実行制御部302に知らせる。試験プログラムの
実行制御部302は、所定の試験条件/試験項目を開始す
る。
When the instruction data is input, the hardware for executing the instruction first decodes the instruction. In this case, since the instruction code is an illegal code, an illegal instruction code interrupt occurs.
When an illegal instruction code interrupt occurs, the instruction illegal code interrupt control unit 113 performs an interrupt canceling process, and notifies the execution control unit 302 of the test program that the instruction data has been fetched into the instruction cache 161. The test program execution control unit 302 starts a predetermined test condition / test item.

〔発明の効果〕〔The invention's effect〕

以上の説明から明らかなように、本発明によれば、命
令の機能実行(機能動作)を伴わずに命令キャッシュ上
へブロック単位に命令データ(列)を登録することがで
きる。そのため、 命令キャッシュ登録アルゴリズム試験が従来と同じ
ように可能となる。
As is clear from the above description, according to the present invention, it is possible to register the instruction data (column) in the block unit on the instruction cache without performing the functional execution (functional operation) of the instruction. Therefore, the instruction cache registration algorithm test can be performed as before.

命令キャッシュ状態を任意環境に変化させることが
可能でなる。
It is possible to change the instruction cache state to an arbitrary environment.

など、試験不可能であった命令キャッシュに対する試験
が可能となる。
It becomes possible to test the instruction cache that could not be tested.

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

第1図は本発明の原理説明図、第2図は本発明の1実施
例を説明する図、第3図は1個のキャッシュを持つ計算
機におけるキャッシュへのデータの取込みを説明する図
である。 100……プロセッサ、111……命令の実行制御部、 112……オペランド・アクセス制御部、113……命令不当
コード割込み制御部、114……不当コード・サーチ制御
部、150……番地データ記憶部、161……命令キャッシ
ュ、162……オペランド・キャッシュ、200……主記憶装
置、301……プログラムの起動部、302……試験プログラ
ムの実行制御部。
FIG. 1 is a diagram for explaining the principle of the present invention, FIG. 2 is a diagram for explaining one embodiment of the present invention, and FIG. 3 is a diagram for explaining fetching of data into the cache in a computer having one cache. . 100 ... Processor, 111 ... Instruction execution control section, 112 ... Operand access control section, 113 ... Instruction illegal code interrupt control section, 114 ... Illegal code search control section, 150 ... Address data storage section , 161 ... Instruction cache, 162 ... Operand cache, 200 ... Main storage device, 301 ... Program startup unit, 302 ... Test program execution control unit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】命令キャッシュ(161)とオペランド・キ
ャッシュ(162)を持つ記憶制御ユニットと、命令実行
のためのハードウェア機構とを有し、 記憶制御ユニットが、 (a)命令取出し要求が発行された時には、該要求で指
定された番地のデータ命令キャッシュ(161)に存在す
るか否かを調べ、存在する場合には該当データを命令キ
ャッシュ(161)から読み出して命令実行のためのハー
ドウェア機構に渡し、存在しない場合には該当データを
含む1ブロックのデータを主記憶装置(200)から読み
出して命令キャッシュ(161)に書き込むと共に該当デ
ータを命令実行のためのハードウェア機構に渡し、 (b)オペランド取出し要求が発行された時には、該要
求で指定された番地のデータがオペランド・キャッシュ
(162)に存在するか否かを調べ、存在する場合には該
当データをオペランド・キャッシュ(162)から読み出
して演算部に渡し、存在しない場合には該当データを含
み1ブロックのデータを主記憶装置(200)から読み出
してオペランド・キャッシュ(162)に書き込むと共に
該当データを演算部に渡す ように構成され、 命令実行のためのハードウェア機構が、命令データとし
て渡されたデータの命令コード部分が命令コードとして
定義されていないものである場合には、不当命令コード
割込みを発生するように構成されている 計算機において、 命令不当コード割込み制御部(113)と、 不当コード・サーチ制御部(114)と を有し、 不当コード・サーチ制御部(114)は、番地が指定さ
れ、起動が指示されたことを契機として、 当該番地をオペランド・キャッシュ(162)に対す
るアクセス番地として設定し、 オペランド取出し要求を発行し、読出しデータが不
当コードか否かを調べ、 不当コードでない場合には、アクセス番地を更新し
ての処理に戻り、 不当コードの場合には、不当コードとされたデータ
に対応するアクセス番地を予め定められた記憶手段に格
納すると共に命令不当コード割込み制御部(113)を起
動する 処理を行うように構成され、 命令不当コード割込み制御部(113)は、起動される
と、 ′上記記憶手段に格納されている番地を命令キャッシ
ュ(161)に対するアクセス番地として設定し、命令取
出し要求を発行する 処理を行うよう構成されている ことを特徴とする命令キャッシュへの命令データ取込み
制御方式。
1. A storage control unit having an instruction cache (161) and an operand cache (162), and a hardware mechanism for executing instructions, wherein the storage control unit issues (a) an instruction fetch request. When it is determined, it is checked whether or not it exists in the data instruction cache (161) at the address specified by the request, and if it exists, the corresponding data is read from the instruction cache (161) and the hardware for instruction execution is read. (1) to the hardware mechanism for executing instructions, reading one block of data including the relevant data from the main storage device (200) and writing it to the instruction cache (161) when it does not exist. b) When an operand fetch request is issued, it is checked whether the data at the address specified by the request exists in the operand cache (162). If it exists, the corresponding data is read from the operand cache (162) and passed to the operation unit. If it does not exist, one block of data including the corresponding data is read from the main storage device (200) and the operand cache (162) is read. 162) and the corresponding data is passed to the arithmetic unit, and the hardware mechanism for instruction execution is such that the instruction code part of the data passed as instruction data is not defined as an instruction code. In the computer configured to generate an illegal instruction code interrupt, an illegal instruction code interrupt control unit (113) and an illegal code search control unit (114) are provided. (114) points the address to the operand cache (162) when the address is specified and activation is instructed. Access address, issue an operand fetch request, check whether the read data is an invalid code, and if it is not an invalid code, update the access address and return to the processing. If it is an invalid code, An instruction illegal code interrupt control unit (113) is configured to store an access address corresponding to data regarded as an illegal code in a predetermined storage unit and to activate an instruction illegal code interrupt control unit (113). ) Is configured so that, when activated, ′ sets an address stored in the storage means as an access address to the instruction cache (161) and issues an instruction fetch request. Control method for fetching instruction data into the instruction cache.
JP2173850A 1990-06-30 1990-06-30 Control method for fetching instruction data to instruction cache Expired - Fee Related JP2523398B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2173850A JP2523398B2 (en) 1990-06-30 1990-06-30 Control method for fetching instruction data to instruction cache

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2173850A JP2523398B2 (en) 1990-06-30 1990-06-30 Control method for fetching instruction data to instruction cache

Publications (2)

Publication Number Publication Date
JPH0462649A JPH0462649A (en) 1992-02-27
JP2523398B2 true JP2523398B2 (en) 1996-08-07

Family

ID=15968315

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2173850A Expired - Fee Related JP2523398B2 (en) 1990-06-30 1990-06-30 Control method for fetching instruction data to instruction cache

Country Status (1)

Country Link
JP (1) JP2523398B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4863658B2 (en) * 2005-06-30 2012-01-25 天龍化学工業株式会社 Lid device for liquid containers

Also Published As

Publication number Publication date
JPH0462649A (en) 1992-02-27

Similar Documents

Publication Publication Date Title
JP2610104B2 (en) Apparatus and method for checking instruction operation code
US5249286A (en) Selectively locking memory locations within a microprocessor's on-chip cache
JP3285644B2 (en) Data processor with cache memory
JP2678527B2 (en) Cache memory device
EP0380859A2 (en) Source list, pointer queues and result queues
CN111213131B (en) Zero-latency prefetching in cache
EP0459233A2 (en) Selectively locking memory locations within a microprocessor's on-chip cache
US4779193A (en) Data processing apparatus for writing calculation result into buffer memory after the writing of the beginning word of the read data
JP2523398B2 (en) Control method for fetching instruction data to instruction cache
JPS6250934A (en) Interrupting control system of processor
JP2002032264A (en) Cache memory device and central processing unit using the same
JPH08161169A (en) VLIW type computer system and VLIW interpretation / execution method
JPH077356B2 (en) Pipelined microprocessor
JP2504235B2 (en) Data processing device
JPH03175548A (en) Microprocessor and address control system
US5117491A (en) Ring reduction logic using parallel determination of ring numbers in a plurality of functional units and forced ring numbers by instruction decoding
JPS6232508B2 (en)
JP2877468B2 (en) Electronic computer
JPH06324861A (en) System and method for controlling cpu
JP2956707B2 (en) Information processing device
JP3490191B2 (en) calculator
JPH08161226A (en) Data prefetch control method, cache control device, and data processing device
JPS6410858B2 (en)
JPS6221131B2 (en)
JPH05334082A (en) Microprocessor

Legal Events

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