JPH03175546A - Instruction cache memory - Google Patents

Instruction cache memory

Info

Publication number
JPH03175546A
JPH03175546A JP1314761A JP31476189A JPH03175546A JP H03175546 A JPH03175546 A JP H03175546A JP 1314761 A JP1314761 A JP 1314761A JP 31476189 A JP31476189 A JP 31476189A JP H03175546 A JPH03175546 A JP H03175546A
Authority
JP
Japan
Prior art keywords
signal
write
read
instruction cache
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP1314761A
Other languages
Japanese (ja)
Other versions
JPH0760410B2 (en
Inventor
Takao Yamamoto
崇夫 山本
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 JP1314761A priority Critical patent/JPH0760410B2/en
Publication of JPH03175546A publication Critical patent/JPH03175546A/en
Publication of JPH0760410B2 publication Critical patent/JPH0760410B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To test the data part of an instruction cache memory in a short time by selecting a set as the write object due to instruction fetch out of sets which are not in the test start in a control register. CONSTITUTION:Information from a control register 11 where information indicating which sets are in the test state is stored is inputted besides signals required for normal rewrite control to select a set to be written from sets which are not in the test state. Consequently, the set selected as the write object in accordance with contents of the control register 11 by execution of a write instruction of the instruction cache is removed from the object of substitution due to instruction fetch to operate only sets other than sets, which are in the test state, as the instruction cache. Thus, a data memory 3 in the instruction cache memory is tested at a high speed.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は命令キャッシュメモリに関するものである。[Detailed description of the invention] Industrial applications The present invention relates to an instruction cache memory.

従来の技術 近年、複数セットからなる大容量の命令キャッシュメモ
リがマイクロプロセッサに搭載されるようになってきた
。このような命令キャッシュは、正常に動作するかどう
かを前もってテストする必要がある。
2. Description of the Related Art In recent years, microprocessors have come to be equipped with large-capacity instruction cache memories consisting of multiple sets. It is necessary to test in advance whether such an instruction cache operates normally.

第2図に従来の命令キャッシュの構成を示す。FIG. 2 shows the configuration of a conventional instruction cache.

第2図において、1はデコーダ、2,3はデータメモリ
、4.5はタグメモリ、6,7は比較器、8は読み出し
制御回路、9は書き込み制御回路、10は置き換え制徂
回路、11はコントロールレジスタ、12はデータバス
、13はアドレスバス、14はイネーブル信号、15は
読み出し要求信号、16は書き込み要求信号、17は制
御信号、18.19はヒツト信号、20.21は読み出
し信号、22.23は書き込み信号、24は選択信号、
25.26はデータメモリの人出力信号、27.28は
タグメモリの出力信号、29はミス信号をそれぞれ示し
ている。
In FIG. 2, 1 is a decoder, 2 and 3 are data memories, 4.5 are tag memories, 6 and 7 are comparators, 8 is a read control circuit, 9 is a write control circuit, 10 is a replacement limiting circuit, and 11 is a control register, 12 is a data bus, 13 is an address bus, 14 is an enable signal, 15 is a read request signal, 16 is a write request signal, 17 is a control signal, 18.19 is a hit signal, 20.21 is a read signal, 22.23 is a write signal, 24 is a selection signal,
Reference numerals 25 and 26 indicate human output signals of the data memory, 27 and 28 indicate output signals of the tag memory, and 29 indicate a miss signal, respectively.

命令フェッチによるデータメモリ2,3の読み出しは、
アドレスバス13によって選択されるタグメモリ4,5
の内容が比較器6,7によってそれぞれアドレスのタグ
部と比較され、一致したセットのデータメモリの内容を
読み出すことによって行われる。また、命令フェッチに
よるデータメモリ2,3の書き込みは、外部メモリへの
アクセスの終了により、フェッチされた命令が置き換え
制御回路10により選択されるセットのデータメモリに
書き込まれることによって行なわれる。
Reading data memories 2 and 3 by instruction fetch is as follows:
Tag memories 4, 5 selected by address bus 13
This is done by comparing the contents of the address with the tag part of the address by the comparators 6 and 7, respectively, and reading out the contents of the data memory of the matched set. Furthermore, writing into the data memories 2 and 3 by fetching an instruction is performed by writing the fetched instruction into a set of data memories selected by the replacement control circuit 10 upon completion of access to the external memory.

ここで、命令キャッシュメモリ内のデータメモリ2.3
の読み出し命令による読み出しは、コントロールレジス
タ11の出力する選択信号24から読み出し対象のセッ
トを選択し、そのセットのデータメモリを読み出すこと
によって行なわれる。また命令キャッシュメモリ内のデ
ータメモリ2.3の書き込み命令による書き込みは、選
択信号24から書き込み対象のセットを選択してデータ
メモリのブロックに書き込むことによって行なわれる。
Here, data memory 2.3 in the instruction cache memory
Reading by the read command is performed by selecting a set to be read from the selection signal 24 output from the control register 11 and reading the data memory of the set. Writing to data memory 2.3 in the instruction cache memory by a write command is performed by selecting a set to be written from the selection signal 24 and writing it into a block of the data memory.

このような、命令キャッシュメモリの書き込みまたは読
み出し命令を用いて、命令キャッシュメモリ内の各セッ
トのデータメモリ2,3の書き込みと読み出しを行なう
二とにより、命令キャッシュメモリ内のデータメモリの
テストを行なうことができる。
The data memory in the instruction cache memory is tested by writing to and reading from each set of data memories 2 and 3 in the instruction cache memory using such instruction cache memory write or read instructions. be able to.

発明が解決しようとする課題 しかしながら、上記従来の命令キャッシュメモリでは、
命令キャッシュメモリを動作させながら2セツトのうち
いずれかのデータメモリをテストする場合、命令フェッ
チによって、テストの対象でないセットのみではなく、
テストの対象であるセットにも命令が書き込まれる可能
性がある。そこで、正常にデータメモリのテストを行な
うためには、命令キャッシュメモリを使用せずにテスト
しなければならず、データメモリのテストに長い時間が
かかるという問題を有していた。
Problems to be Solved by the Invention However, in the above conventional instruction cache memory,
When testing one of two sets of data memory while operating the instruction cache memory, by fetching instructions, you can test not only the set that is not the target of the test, but also the set that is not the target of the test.
Instructions may also be written to the set being tested. Therefore, in order to properly test the data memory, the test must be performed without using the instruction cache memory, which poses a problem in that it takes a long time to test the data memory.

本発明はこのような従来の問題点に鑑み、テスト状態の
セットへの命令フェッチによる書き込みを禁止すること
により、命令キャッシュメモリ内のデータメモリのテス
ト時に、テスト状態でない命令キャッシュメモリのデー
タメモリの有効活用を可能とし、大容量の命令キャッシ
ュメモリ内のデータメモリのテストを短時間に実行でき
るようにした命令キャッシュメモリを提供することを目
的とする。
In view of these conventional problems, the present invention prohibits writing to a set in a test state by fetching instructions, so that when testing data memory in the instruction cache memory, data memory in the instruction cache memory that is not in the test state is prohibited. It is an object of the present invention to provide an instruction cache memory that can be used effectively and that allows a test of data memory in a large capacity instruction cache memory to be executed in a short time.

課題を解決するための手段 本発明は、上記の目的を達成するために、通常の置き換
え制御に必要な信号の他に、どのセットがテスト状態で
あるかの情報を格納するコントロールレジスタからの情
報を人力とし、テスト状態でないセットの中から書き込
むセットを選択するようにしたしのである。
Means for Solving the Problems In order to achieve the above object, the present invention provides, in addition to the signals necessary for normal replacement control, information from a control register that stores information on which set is in a test state. This is done manually, and the set to be written is selected from among the sets that are not in the test state.

作用 本発明は上述の構成によって、命令キャッシュの書き込
み命令の実行によりコントロールレジスタの内容によっ
て書き込み対象として選択されるセットは、命令フェッ
チによる置き換えの対象としないことにより、テスト状
態であるセット以外のセットのみを命令キャッシュとし
て動作させることができるために、命令キャッシュメモ
リ内のデータメモリのテストを高速に実行することがで
きる。
Effect of the Invention With the above-described configuration, the present invention eliminates the set selected as a write target based on the contents of the control register upon execution of a write instruction in the instruction cache from being replaced by an instruction fetch, thereby replacing the set other than the set in the test state. Since only the instruction cache memory can be operated as an instruction cache, a test of the data memory in the instruction cache memory can be executed at high speed.

実施例 第1図は本発明の一実施例を示す命令キャッシュメモリ
の概略ブロック図であり、第2図に示す従来例とほぼ同
様な構成を備えているので、同様な要素には同じ符号を
付しである。第1図において、1はデコーダ、2.3は
データメモリ、4.5はタグメモリ、6.7は比較器、
8は読み出し制御回路、9は書き込み制御回路、10は
置き換え制御回路、11はコントロールレジスタ、12
はデータバス、13はアドレスバス、14はイネーブル
信号、15は読み出し要求信号、16は書き込み要求信
号、17は制御信号、18゜19はヒツト信号、20.
21は読み出し信号、22.23は書き込み信号、24
は第1の選択信号、25.26はデータメモリの人出力
信号、27.28はタグメモリの出力信号、2つはミス
信号、30は第2の選択信号をそれぞれ示している。
Embodiment FIG. 1 is a schematic block diagram of an instruction cache memory showing an embodiment of the present invention. Since it has almost the same configuration as the conventional example shown in FIG. 2, similar elements are designated by the same reference numerals. It is attached. In FIG. 1, 1 is a decoder, 2.3 is a data memory, 4.5 is a tag memory, 6.7 is a comparator,
8 is a read control circuit, 9 is a write control circuit, 10 is a replacement control circuit, 11 is a control register, 12
13 is a data bus, 13 is an address bus, 14 is an enable signal, 15 is a read request signal, 16 is a write request signal, 17 is a control signal, 18° and 19 are hit signals, 20.
21 is a read signal, 22.23 is a write signal, 24
25 and 26 are the human output signals of the data memory, 27 and 28 are the output signals of the tag memory, 2 are the miss signals, and 30 is the second selection signal, respectively.

データバス12とアドレスバス13はそれぞれ32ビツ
トである。データメモリ2,3はそれぞれ256個のブ
ロックから構成され、ブロック長は32ビツトである。
Data bus 12 and address bus 13 are each 32 bits. Data memories 2 and 3 each consist of 256 blocks, and the block length is 32 bits.

タグメモリ4,5はそれぞれ256個のブロックから構
成され、各ブロック長は22ビツトである。デコーダ1
はアドレスバス13の下位10ビツトを入力とし、デー
タメモリ2,3とタグメモリ4,5のそれぞれの256
ブロツクのうち一つのブロックを選択する。
The tag memories 4 and 5 each consist of 256 blocks, and each block length is 22 bits. Decoder 1
takes the lower 10 bits of address bus 13 as input, and inputs 256 bits of each of data memories 2 and 3 and tag memories 4 and 5.
Select one of the blocks.

データメモリ2.3は、それぞれに人力されている読み
出し信号20.21がアサートされれば、デコーダlに
よって選択されているブロックの内容をデータバス12
に出力し、それぞれに人力されている書き込み信号22
.23がアサートされればデータバスに印加されている
値をデコーダ1によって選択されているブロックに書き
込む。
When the read signal 20.21 input to each data memory 2.3 is asserted, the data memory 2.3 transfers the contents of the block selected by the decoder l to the data bus 12.
The write signal 22 that is output to and manually input to each
.. 23 is asserted, the value applied to the data bus is written into the block selected by the decoder 1.

タグメモリ4,5は、デコーダ1によって選択されてい
るブロックの内容をそれぞれ出力信号27.28に常に
出力し、それぞれに人力されている書き込み信号22.
23がアサートされれば、アドレスバス13上の上位2
2ビツトに印加されている値をデコーダ1によって選択
されているフロックに書き込む。
The tag memories 4, 5 always output the contents of the block selected by the decoder 1 as output signals 27, 28, respectively, and write signals 22, 28, which are input manually, respectively.
23 is asserted, the upper two on address bus 13
The value applied to the 2 bits is written to the block selected by the decoder 1.

比較器6,7は、それぞれに入力されているタグメモリ
の出力信号27.28の値とアドレスバス13上の上位
22ビツトに印加されている値を常に比較し、一致すれ
ばそれぞれのヒツト信号18.19をアサートし、一致
していなければネゲートする。
Comparators 6 and 7 constantly compare the values of the output signals 27 and 28 of the tag memory input to each with the value applied to the upper 22 bits on the address bus 13, and if they match, the respective hit signals are output. Assert 18.19 and negate if they do not match.

読み出し制御回路8は、イネーブル信号14がアサート
され、かつ制御信号17がネゲートされ、さらに読み出
し要求信号15がアサートされていればヒツト信号18
.19の状態によって動作する。このときヒツト信号1
8がアサートされていれば読み出し信号20をアサート
し、ヒツト信号19がアサートされていれば読み出し信
号21をアサートし、すべてのヒツト信号18.19が
ネゲートされていればミス信号29をアサートする。ま
た、制御信号17がアサートされていて読み出し要求信
号15がアサートされていれば、読み出し制御回路8は
ヒツト信号18.19の状態によらず、読み出し信号2
0.21のうち第1の選択信号24によって選択される
方のセットに接続される読み出し信号をアサートする。
The read control circuit 8 outputs a hit signal 18 if the enable signal 14 is asserted, the control signal 17 is negated, and the read request signal 15 is asserted.
.. It operates according to 19 states. At this time, the hit signal 1
8 is asserted, the read signal 20 is asserted, if the hit signal 19 is asserted, the read signal 21 is asserted, and if all the hit signals 18 and 19 are negated, the miss signal 29 is asserted. Further, if the control signal 17 is asserted and the read request signal 15 is asserted, the read control circuit 8 outputs the read signal 2 regardless of the state of the hit signal 18.19.
0.21, the read signal connected to the set selected by the first selection signal 24 is asserted.

書き込み制御回路9はイネーブル信号14がアサートさ
れ、かつ制御信号17がネゲートされ、さらに書き込み
要求信号16がアサートされていれば、書き込み信号2
2.23のうち第2の選択信号30の状態によって選択
される方のセットに接続される書き込み信号をアサート
する。また、制御信号17がアサートされていて書き込
み要求信号16がアサートされれば、書き込み信号22
.23のうち第1の選択信号24の状態によって選択さ
れる方のセットに接続される書き込み信号をアサートす
る。
If the enable signal 14 is asserted, the control signal 17 is negated, and the write request signal 16 is asserted, the write control circuit 9 outputs the write signal 2.
2. Assert the write signal connected to the set selected by the state of the second selection signal 30 among 23. Further, if the control signal 17 is asserted and the write request signal 16 is asserted, the write signal 22
.. 23, a write signal connected to the set selected by the state of the first selection signal 24 is asserted.

置き換え制御回路10は、ヒツト信号18,1つと読み
出し要求信号15と第1の選択信号24とを人力とし、
第1の選択信号24によって選択されていない方のセッ
トの中から最も最近の命令フェッチの際に読み出しの行
われたセットでない方のセットを示す情報を第2の選択
信号30として出力する。
The replacement control circuit 10 manually generates one hit signal 18, a read request signal 15, and a first selection signal 24,
Among the sets not selected by the first selection signal 24, information indicating the set that was not read out during the most recent instruction fetch is outputted as the second selection signal 30.

コントロールレジスタ11は命令キャッシュメモリの読
み出しおよび書き込みを行なう命令の対象とするセット
を選択する情報を格納し、その情報を第1の選択信号2
4として出力する。
The control register 11 stores information for selecting a target set of instructions for reading and writing into the instruction cache memory, and transmits the information to the first selection signal 2.
Output as 4.

命令フェッチによるデータメモリ2.3の読み出しは、
以下のように実行される。まず、イネーブル信号14が
アサートされている状態で、読み出し要求信号15がア
サートされアドレスバス13に読み出しアドレスが印加
される。そして、読み出しアドレスの下位10ビツトに
よって選択される各セットのブロックからタグメモリ4
,5の内容がそれぞれ読み出され、各セットの比較器6
.7によってそれぞれアドレスの上位22ビツトと比較
される。その比較結果によって、ヒツト信号18か19
のいずれかと命令キャッシュメモリのイネーブル信号1
4と読み出し要求信号15とが読み出し制御回路8に入
力され、ヒツト信号18がアサートされていれば読み出
し信号20をアサートし、ヒツト信号19がアサートさ
れていれば読み出し信号21をアサートし、ヒツト信号
19と20がどちらもネゲートされていればミス信号2
つをアサートする。したがって、読み出しアドレスの下
位10ビツトによって選択されるタグメモリ4.5のブ
ロックの内容とアドレスの上位22ビツトが一致すれば
、読み出しアドレスの下位10ビツトによって選択され
たデータメモリのブロックの内容がアドレスバス13に
読み出される。
Reading data memory 2.3 by instruction fetch is as follows:
It is executed as follows. First, while the enable signal 14 is asserted, the read request signal 15 is asserted and a read address is applied to the address bus 13. Then, the tag memory 4 is selected from each set of blocks selected by the lower 10 bits of the read address.
, 5 are read out, and the comparator 6 of each set is read out.
.. 7 are compared with the upper 22 bits of the address. Depending on the comparison result, the hit signal is 18 or 19.
and instruction cache memory enable signal 1
4 and the read request signal 15 are input to the read control circuit 8. If the hit signal 18 is asserted, the read signal 20 is asserted, and if the hit signal 19 is asserted, the read signal 21 is asserted. If both 19 and 20 are negated, miss signal 2
Assert one. Therefore, if the contents of the block of tag memory 4.5 selected by the lower 10 bits of the read address match the upper 22 bits of the address, the contents of the block of data memory selected by the lower 10 bits of the read address will match the address. The data is read out onto the bus 13.

また、命令フェッチによるデータメモリの書き込みは以
下のように実行される。命令キャッシュメモリのイネー
ブル信号14がアサートされていれば、外部メモリへの
アクセスの終了により書き込み要求信号16がアサート
され、フェッチされた命令がデータバス12上に印加さ
れる。このとき、書き込み制御回路9は第2の選択信号
30によって示されるセットに対して書き込み信号22
か23のいずれか一方をアサートする。このとき、置き
換え制御回路10により、命令キャッシュの読み出しお
よび書き込み命令によって対象となるセットを示す第1
の選択信号24によって選択されない方のセットのうち
、最も長い間命令フェッチによって読み出しの行われな
かったセットが選択され、第2の選択信号30としてそ
の情報が出力される。したがって、データバス12上の
値が命令キャッシュメモリの読み出しおよび書き込み命
令の対象であるとして選択しているセット以外のセット
が第2の選択信号30によって選択され、アドレスバス
13の下位10ビツトによって選択されるデータメモリ
のブロックに書き込まれる。
Furthermore, data memory writing by instruction fetch is executed as follows. If the instruction cache memory enable signal 14 is asserted, the write request signal 16 is asserted upon completion of the access to the external memory, and the fetched instruction is applied onto the data bus 12. At this time, the write control circuit 9 sends the write signal 22 to the set indicated by the second selection signal 30.
or 23. At this time, the replacement control circuit 10 controls the first set indicating the target set by the instruction cache read and write instructions.
Among the sets not selected by the selection signal 24, the set that has not been read by instruction fetch for the longest time is selected, and its information is output as the second selection signal 30. Therefore, the second selection signal 30 selects a set other than the set selected by the value on the data bus 12 as the target of instruction cache memory read and write instructions, and the lower 10 bits of the address bus 13 select a set other than the set selected as the target of the instruction cache memory read and write instructions. data is written to a block of memory.

ここで、命令キャッシュメモリ内のデータメモリ2,3
の読み出し命令による読み出しは、以下のように実行さ
れる。読み出しの対象となるブロックを選択するアドレ
スがデコーダ1に入力されると同時に、読み出し要求信
号15とその読み出しが命令キャッシュ読み出し命令に
よるものであることを示す制御信号17とがアサートさ
れる。このとき読み出し制御回路8はコントロールレジ
スタ11の出力する第1の選択信号24から読み出し対
象のセットを選択して、命令キャッシュのイネーブル信
号14の状態に関係なく、読み出し信号20か21をア
サートする。したがって、第1の選択信号24によって
選択されたセットのアドレスの下位10ビツトによって
選択されたデータメモリのブロックがデータバス12上
に読み出される。
Here, data memories 2 and 3 in the instruction cache memory
Reading by the read command is executed as follows. At the same time that an address for selecting a block to be read is input to the decoder 1, a read request signal 15 and a control signal 17 indicating that the read is based on an instruction cache read command are asserted. At this time, the read control circuit 8 selects the set to be read from the first selection signal 24 output from the control register 11, and asserts the read signal 20 or 21 regardless of the state of the instruction cache enable signal 14. Therefore, the block of data memory selected by the lower 10 bits of the address of the set selected by the first selection signal 24 is read onto the data bus 12.

また命令キャッシュメモリ内のデータメモリ2.3の書
き込み命令による書き込みは、以下のように実行される
。書き込みの対象となるブロックを選択するアドレスが
デコーダ1に人力され、書き込みデータがデータバス1
2に印加されると同時に、書き込み要求信号16とその
書き込みが命令キャッシュ書き込み命令によるものであ
ることを示す制御信号17とがアサートされる。このと
き書き込み制御回路9は命令キャッシュのイネーブル信
号14の状態に関係なく、第1の選択信号24から書き
込み対象のセットを選択して書き込み信号22か23を
アサートする。これによってデータバス12上の値は、
第1の選択信号24によって選択されたセットのアドレ
スの下位10ビツトによって選択されたデータメモリの
ブロックに書き込まれる。
Further, writing to the data memory 2.3 in the instruction cache memory by a write command is executed as follows. The address for selecting the block to be written is entered into decoder 1, and the write data is transferred to data bus 1.
2, a write request signal 16 and a control signal 17 indicating that the write is due to an instruction cache write command are asserted. At this time, the write control circuit 9 selects the set to be written from the first selection signal 24 and asserts the write signal 22 or 23, regardless of the state of the instruction cache enable signal 14. As a result, the value on the data bus 12 becomes
The lower 10 bits of the address of the set selected by the first selection signal 24 are written to the block of data memory selected.

したがって、データメモリ2をテストする場合、コント
ロールレジスタ11にデータメモリ2がテスト状態であ
る情報を格納した後、イネーブル信号14をアサートし
、データメモリ2をテストするプログラムを実行すれば
、前記プログラムはデータメモリ3のみに書き込まれ、
実行される。また、前記プログラム中の命令キャッシュ
の読み出しおよび書き込みを行なう命令はデータメモリ
4に対して実行される。したがって、テスト対象でない
セットを命令キャッシュメモリとして動作させながらテ
スト対象のセットのデータメモリをテストすることがで
きるので、前記テストプログラムを高速に実行すること
が可能となり、命令キャッシュメモリのテスト時間を短
縮することができる。また、コントロールレジスタ11
にデータメモリ3がテスト状態である情報を格納した後
、前記プログラムを実行すれば、データメモリ2に命令
を格納しながらデータメモリ3をテストすることが可能
であり、テストプログラムの作成にかかる労力を軽減す
ることができる。
Therefore, when testing the data memory 2, after storing information indicating that the data memory 2 is in the test state in the control register 11, the enable signal 14 is asserted and a program for testing the data memory 2 is executed. Written only to data memory 3,
executed. Further, instructions for reading and writing from the instruction cache in the program are executed to the data memory 4. Therefore, it is possible to test the data memory of the set to be tested while operating the set not to be tested as the instruction cache memory, making it possible to execute the test program at high speed and reducing the test time for the instruction cache memory. can do. In addition, the control register 11
By executing the program after storing information indicating that the data memory 3 is in a test state, it is possible to test the data memory 3 while storing instructions in the data memory 2, which reduces the effort required to create a test program. can be reduced.

発明の効果 本発明は、上記説明から明らかなように、コントロール
レジスタにテスト状態でないセットの中から命令フェッ
チによる書き込み対象のセットを選択することにより、
テスト対象のセットをテストするためのプログラムはテ
スト対象のセット以外のセットに格納されるため、命令
キャッシュメモリのデータ部のテストを短時間に実行す
ることができる。
Effects of the Invention As is clear from the above description, the present invention selects a set to be written to by fetching an instruction from among sets that are not in a test state in a control register.
Since the program for testing the set to be tested is stored in a set other than the set to be tested, the data portion of the instruction cache memory can be tested in a short time.

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

第1図は本発明の一実施例を示す命令キャッシュメモリ
の概略ブロック図、第2図は従来例を示す命令キャッシ
ュメモリの概略ブロック図である。 1・・・デコーダ、2.3・・・データメモリ、4,5
・・タグメモリ、6,7・・・比較器、8・・・読み出
し制御回路、9・・・書き込み制御回路、10・・・置
き換え制御回路、11・・・コントロールレジスタ、1
2・・データバス、13・・・アドレスバス、14・・
・イネーブル信号、15・・・読み出し要求信号、16
・・・書き込み要求信号、17・・・制御信号、18.
19・・・ヒツト信号、20.21・・・読み出し信号
、22゜23・・・書き込み信号、24・・・第1の選
択信号、25.26・・・人出力信号、27.28・・
・出力信号、2つ・・・ミス信号、30・・・第2の選
択信号。
FIG. 1 is a schematic block diagram of an instruction cache memory showing an embodiment of the present invention, and FIG. 2 is a schematic block diagram of an instruction cache memory showing a conventional example. 1... Decoder, 2.3... Data memory, 4, 5
... Tag memory, 6, 7... Comparator, 8... Read control circuit, 9... Write control circuit, 10... Replacement control circuit, 11... Control register, 1
2...Data bus, 13...Address bus, 14...
・Enable signal, 15...Read request signal, 16
. . . Write request signal, 17. . . Control signal, 18.
19...Hit signal, 20.21...Read signal, 22°23...Write signal, 24...First selection signal, 25.26...Human output signal, 27.28...
- Output signals, 2... miss signal, 30... second selection signal.

Claims (2)

【特許請求の範囲】[Claims] (1)命令フェッチによって発生するブロックの書き換
えを制御する制御回路と、それぞれのセットが読み出し
または書き込み命令の対象であるか否かの情報を格納す
るコントロールレジスタと、前記コントロールレジスタ
の出力信号により前記制御回路を制御することにより、
読み出しまたは書き込み命令の対象外であるセットの中
から命令フェッチによるブロックの書き換えの対象とな
るセットを選択する手段とを備えた命令キャッシュメモ
リ。
(1) A control circuit that controls rewriting of blocks generated by instruction fetch, a control register that stores information as to whether each set is a target of a read or write command, and an output signal of the control register that controls the rewriting of the block. By controlling the control circuit,
An instruction cache memory comprising: means for selecting a set to be a target for block rewriting by instruction fetch from sets that are not targets for read or write instructions.
(2)少なくとも2つのセットと、格納する内容により
前記セットのうち1つのセットを選択する第1の選択信
号を出力するコントロールレジスタと、前記各セットが
出力する全てのヒット信号と読み出しおよび書き込みが
命令フェッチによる要求か命令キャッシュの読み出しま
たは書き込み命令による要求かを示す制御信号と読み出
し要求信号と前記第1の選択信号とを入力とし、前記制
御信号がネゲートされていれば前記ヒット信号のうちア
サートされているヒット信号が接続されるセットに接続
される読み出し信号のみをアサートし、前記制御信号が
アサートされていれば前記第1の選択信号により選択さ
れるセットに接続される読み出し信号をアサートする読
み出し制御回路と、前記第1の選択信号を入力とし前記
第1の選択信号により選択されないセットの中から1つ
のセットを選択して第2の選択信号として出力する置き
換え制御回路と、前記制御信号と書き込み要求信号と前
記第1および第2の選択信号とを入力とし、前記制御信
号がネゲートされている状態で前記書き込み要求信号が
アサートされれば前記第2の選択信号により選択される
セットに接続される書き込み信号をアサートし、前記制
御信号がアサートされている状態で前記書き込み要求信
号がアサートされれば前記第1の選択信号により選択さ
れるセットに接続される書き込み信号をアサートする書
き込み制御回路とを備えた命令キャッシュメモリ。
(2) at least two sets, a control register that outputs a first selection signal for selecting one of the sets depending on the contents to be stored, and a control register that outputs all hit signals and read and write signals output by each of the sets; A control signal indicating whether the request is an instruction fetch request or an instruction cache read or write command, a read request signal, and the first selection signal are input, and if the control signal is negated, one of the hit signals is asserted. asserts only the read signal connected to the set to which the hit signal currently selected is connected; and if the control signal is asserted, asserts the read signal connected to the set selected by the first selection signal. a read control circuit; a replacement control circuit that receives the first selection signal as an input and selects one set from among the sets not selected by the first selection signal and outputs it as a second selection signal; and the control signal. , a write request signal, and the first and second selection signals, and if the write request signal is asserted while the control signal is negated, the set selected by the second selection signal is selected. Write control that asserts a write signal connected to the set, and asserts a write signal connected to the set selected by the first selection signal if the write request signal is asserted while the control signal is asserted. An instruction cache memory with a circuit.
JP1314761A 1989-12-04 1989-12-04 Instruction cache memory Expired - Lifetime JPH0760410B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1314761A JPH0760410B2 (en) 1989-12-04 1989-12-04 Instruction cache memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1314761A JPH0760410B2 (en) 1989-12-04 1989-12-04 Instruction cache memory

Publications (2)

Publication Number Publication Date
JPH03175546A true JPH03175546A (en) 1991-07-30
JPH0760410B2 JPH0760410B2 (en) 1995-06-28

Family

ID=18057266

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1314761A Expired - Lifetime JPH0760410B2 (en) 1989-12-04 1989-12-04 Instruction cache memory

Country Status (1)

Country Link
JP (1) JPH0760410B2 (en)

Also Published As

Publication number Publication date
JPH0760410B2 (en) 1995-06-28

Similar Documents

Publication Publication Date Title
US5247639A (en) Microprocessor having cache bypass signal terminal
KR100758185B1 (en) Data processing device
EP0438808A2 (en) Microprocessor incorporating cache memory
US5287483A (en) Prefetched operand storing system for an information processor
JPH03175546A (en) Instruction cache memory
US4628450A (en) Data processing system having a local memory which does not use a directory device with distributed resident programs and a method therefor
JP2000207203A (en) Micro controller
US7689864B2 (en) Processor comprising an integrated debugging interface controlled by the processing unit of the processor
JPH05143330A (en) Stack cache and control system thereof
JP3217348B2 (en) Information processing system
JPS6167156A (en) Data reading/altering apparatus
JPH1125006A (en) Memory tester
JP3147236B2 (en) Cache memory device
JPH0447350A (en) Main storage read/response control
JPH07141174A (en) Register
JPH05181746A (en) Data processing system and memory control system
JP2635169B2 (en) Micro program controller
JP2000347931A (en) Cache memory and method for controlling cache memory
JPH0235545A (en) Diagnosing method for set associative cache memory
JPH05289904A (en) Debugging tool for cache memory
JPH1049440A (en) Cache memory system
JPS6215645A (en) Central processing unit
JPH02156352A (en) Cache memory
JPH01100799A (en) Read-only memory control circuit
JPS60258654A (en) Semiconductor memory