JPH06131897A - Cache memory - Google Patents

Cache memory

Info

Publication number
JPH06131897A
JPH06131897A JP4275792A JP27579292A JPH06131897A JP H06131897 A JPH06131897 A JP H06131897A JP 4275792 A JP4275792 A JP 4275792A JP 27579292 A JP27579292 A JP 27579292A JP H06131897 A JPH06131897 A JP H06131897A
Authority
JP
Japan
Prior art keywords
entry
memory
address
tag
redundant
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
JP4275792A
Other languages
Japanese (ja)
Other versions
JP2997370B2 (en
Inventor
Itsuko Kinoshita
伊都子 木下
Katsunori Sawai
克典 澤井
Toshiyuki Hiraki
俊行 平木
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP4275792A priority Critical patent/JP2997370B2/en
Publication of JPH06131897A publication Critical patent/JPH06131897A/en
Application granted granted Critical
Publication of JP2997370B2 publication Critical patent/JP2997370B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To provide a cache memory device which can replace a faulty circuit with a stand-by circuit without cutting these circuits by a polysilicon fuse or a laser. CONSTITUTION:A defective entry that is diagnosed by a test for shipment of products is previously stored in a programmable ROM 23 and then written in an entry register 14 in a reset period. Then the accesses are switched between a redundant memory and a regular memory by the reference given to the register 14. Thus a satisfactory memory test is carried out and a faulty circuit can be replaced with a stand-by circuit in a short reset period. Furthermore the contents of the register 14 undergoe the comparison cuncurrently with the decoding of an address so that the time is never wasted even if an access is given to the stand-by circuit.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、キャッシュメモリに
関し、特に冗長回路を含むキャッシュメモリに関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a cache memory, and more particularly to a cache memory including a redundant circuit.

【0002】[0002]

【従来の技術】データ処理装置の高速アクセスを助ける
キャッシュメモリは、近年データ処理装置に内蔵され、
しかもその内蔵されたキャッシュメモリは大容量化の傾
向がある。一方、技術が進むにつれメモリセルの小面積
化が行われるため、同じ面積でより多くのメモリ容量が
得られ、上記傾向に合致するが、歩留りが低下するとい
う問題がある。
2. Description of the Related Art In recent years, a cache memory that helps a data processing device to access at high speed has been built into the data processing device.
Moreover, the built-in cache memory tends to have a large capacity. On the other hand, as the technology advances, the area of the memory cell is reduced, so that a larger memory capacity can be obtained in the same area and the above tendency is met, but there is a problem that the yield is reduced.

【0003】LSIにおけるこのような歩留りの低下を
防ぐために、冗長なメモリ回路を予備回路としてキャッ
シュメモリに内蔵する技術が既に提案されている。これ
は、ポリシリコンフューズあるいはレーザによる配線の
切断によって故障回路を予備回路に置き換えるというも
のである。
In order to prevent such a decrease in yield in an LSI, a technique has already been proposed in which a redundant memory circuit is built in a cache memory as a spare circuit. This is to replace the faulty circuit with a spare circuit by cutting the wiring with a polysilicon fuse or a laser.

【0004】しかしこの場合には、製造過程で診断を行
い、故障と判断された回路を予備回路に置き換えるため
の工程が必要である。そのためには診断する時間と、診
断と置き換えのための装置が必要となる。キャッシュメ
モリのような少量品種の製品では、これらの時間と装置
がコストアップにつながるという問題があった。
However, in this case, a step is required for diagnosing in the manufacturing process and replacing a circuit judged to be defective with a spare circuit. This requires time for diagnosis and a device for diagnosis and replacement. In the case of a small amount of product such as a cache memory, there is a problem that the time and the device lead to cost increase.

【0005】これを回避するため、例えば特開平3−1
62798(発明の名称「不揮発性半導体記憶装置」)
において、予備回路のアドレスを他の不揮発性予備回路
に書き込み、予備回路を選択する場合には他の予備回路
に書かれたアドレスに従ってアクセスする不揮発性メモ
リの技術が提案されている。
In order to avoid this, for example, Japanese Patent Laid-Open No. 3-1
62798 (Invention title "nonvolatile semiconductor memory device")
There is proposed a technique of a non-volatile memory in which the address of the spare circuit is written in another non-volatile spare circuit, and when the spare circuit is selected, access is performed according to the address written in the other spare circuit.

【0006】また、例えば未公開の特願平3−1976
88(発明の名称「メモリ装置及びそれを使用したデー
タ処理装置」)において、ポリシリコンフューズあるい
はレーザによる切断は行わず、リセット期間でのセルフ
テスト後に故障回路を予備回路に置き換えるメモリ装置
を内蔵したデータ処理装置の技術が提案されている。
Further, for example, unpublished Japanese Patent Application No. 3-1976.
88 (invention title "memory device and data processing device using the same") has a built-in memory device that replaces a defective circuit with a spare circuit after self-test during a reset period without cutting with a polysilicon fuse or a laser. Data processor technology has been proposed.

【0007】かかる従来の技術を図面で説明する。図6
は従来の技術を使用した場合のキャッシュメモリの内部
構成図である。このキャッシュメモリのメモリマッピン
グ方式はダイレクトマッピングであり、主記憶更新方式
はライトスルーである。また、ブロックサイズは4ワー
ドで、リードミスしたとき、要求されたアドレスのデー
タを含む4ワードを主メモリから読み込む。
The conventional technique will be described with reference to the drawings. Figure 6
FIG. 3 is an internal configuration diagram of a cache memory when using a conventional technique. The memory mapping method of this cache memory is direct mapping, and the main memory updating method is write through. The block size is 4 words, and when a read miss occurs, 4 words including the data of the requested address are read from the main memory.

【0008】外部から入力された32ビットの外部アド
レス1は、タグアドレス1a、エントリアドレス1b、
ワードアドレス1cに分割できる。タグアドレス1aは
第1マルチプレクサ18を介してタグメモリ2とタグア
ドレス比較器3に入力される。また、エントリアドレス
1bは第2マルチプレクサ19を介してエントリデコー
ダ4とエントリアドレス比較器5に入力される。そし
て、ワードアドレス1cはワードセレクタ6に入力され
る。
The 32-bit external address 1 input from the outside is a tag address 1a, an entry address 1b,
It can be divided into word addresses 1c. The tag address 1a is input to the tag memory 2 and the tag address comparator 3 via the first multiplexer 18. Further, the entry address 1b is input to the entry decoder 4 and the entry address comparator 5 via the second multiplexer 19. Then, the word address 1c is input to the word selector 6.

【0009】タグメモリ2は20ビット×256エント
リの大きさであり、バリッドビット7はタグメモリ2の
各エントリに対して1ビットずつ割り当てられている。
よってその大きさは1ビット×256エントリである。
またデータメモリ10には1エントリ当たり4ワード
(4×32ビット)が記憶され、これも256エントリ
設けられている。よってその記憶容量は128ビット×
256エントリである。
The tag memory 2 has a size of 20 bits × 256 entries, and the valid bit 7 is assigned to each entry of the tag memory 2 one bit at a time.
Therefore, its size is 1 bit × 256 entries.
Further, the data memory 10 stores 4 words (4.times.32 bits) per entry, and this also has 256 entries. Therefore, its storage capacity is 128 bits ×
There are 256 entries.

【0010】タグアドレス比較器3はヒット信号8を出
力する。第1マルチプレクサの出力と、タグメモリ2か
ら得られたタグアドレスとを比較し、両者が一致すれば
ヒット信号8をアクティブにする。一致しない場合はヒ
ット信号8をノンアクティブにする。
The tag address comparator 3 outputs a hit signal 8. The output of the first multiplexer is compared with the tag address obtained from the tag memory 2, and if they match, the hit signal 8 is activated. If they do not match, the hit signal 8 is made inactive.

【0011】ディスエーブルビット9はエントリデコー
ダ4の内部で各エントリに対して1ビットずつ割り当て
られている。よってその大きさは1ビット×256エン
トリである。
The disable bit 9 is assigned to each entry in the entry decoder 4 one bit at a time. Therefore, its size is 1 bit × 256 entries.

【0012】エントリデコーダ4でデコードされた結果
から、タグメモリ2とデータメモリ10のうち、特定の
エントリが選択される。バリッドビット7は、該当する
エントリのデータが有効かどうかを示し、“1”であれ
ば有効、“0”であれば無効を示す。データメモリ10
で該当するエントリに記憶されていたデータのうち、ワ
ードアドレス1cによりワードセレクタ6において特定
のワードが選択される。
Based on the result decoded by the entry decoder 4, a specific entry is selected from the tag memory 2 and the data memory 10. The valid bit 7 indicates whether or not the data of the corresponding entry is valid. “1” indicates valid, and “0” indicates invalid. Data memory 10
Of the data stored in the corresponding entry, the word selector 1 selects a specific word by the word address 1c.

【0013】1エントリは20ビットのタグメモリ2、
1ビットのバリッドビット7、128ビットのデータメ
モリ10で構成され、これらのメモリはまとめて冗長メ
モリに対して正規メモリと呼ばれる。
One entry is a 20-bit tag memory 2,
It is composed of 1-bit valid bit 7 and 128-bit data memory 10. These memories are collectively called a normal memory as opposed to a redundant memory.

【0014】冗長メモリは、キャッシュメモリの特徴を
生かしてライン方向のみに2エントリ(2ライン)分あ
る。その1エントリ(ライン)は20ビットの冗長タグ
メモリ11、1ビットの冗長バリッドビット12、12
8ビットの冗長データメモリ13、8ビットのエントリ
レジスタ14、1ビットの使用ビット15で構成され
る。
The redundant memory has two entries (two lines) only in the line direction by taking advantage of the characteristics of the cache memory. The one entry (line) is a 20-bit redundant tag memory 11, a 1-bit redundant valid bit 12, 12
It consists of an 8-bit redundant data memory 13, an 8-bit entry register 14, and a 1-bit used bit 15.

【0015】エントリレジスタ14の各ラインには、冗
長タグメモリ11と冗長データメモリ13に記憶するデ
ータのエントリアドレスが記憶される。冗長バリッドビ
ット12は、冗長メモリの該当するラインのデータが有
効かどうかを示し、“1”であれば有効、“0”であれ
ば無効を示す。
Each line of the entry register 14 stores the entry address of the data stored in the redundant tag memory 11 and the redundant data memory 13. The redundant valid bit 12 indicates whether or not the data of the corresponding line of the redundant memory is valid. When the redundant valid bit 12 is “1”, it is valid, and when the data is “0”, it is invalid.

【0016】エントリアドレス比較器5はエントリヒッ
ト信号16を出力する。エントリアドレス比較器5は冗
長メモリのライン毎に設けられ、それぞれ第2マルチプ
レクサの出力と、エントリレジスタ14から得られたエ
ントリアドレスとを比較する。比較した結果は、エント
リヒット信号16として出力され、冗長タグメモリ1
1、冗長バリッドビット12、冗長データメモリ13の
特定のラインを指定する。
The entry address comparator 5 outputs an entry hit signal 16. The entry address comparator 5 is provided for each line of the redundant memory and compares the output of the second multiplexer with the entry address obtained from the entry register 14, respectively. The comparison result is output as the entry hit signal 16, and the redundant tag memory 1
1, a redundant valid bit 12, and a specific line of the redundant data memory 13 are designated.

【0017】また、このキャッシュメモリはリセット期
間にセルフテストを行なうためのセルフテスト回路17
を備える。セルフテスト回路17は第1乃至第3マルチ
プレクサ18〜20を介してタグアドレス、エントリア
ドレス、データ等を正規メモリに入力し、タグメモリ2
から出力されるデータとデータメモリ10から出力され
るデータを診断する。
The cache memory also includes a self-test circuit 17 for performing a self-test during the reset period.
Equipped with. The self-test circuit 17 inputs the tag address, the entry address, the data, etc. into the regular memory via the first to third multiplexers 18 to 20, and the tag memory 2
The data output from the memory and the data output from the data memory 10 are diagnosed.

【0018】このように構成されたキャッシュメモリ
は、以下のように動作する。
The cache memory configured as described above operates as follows.

【0019】(A−1)冗長メモリへの登録 キャッシュメモリとMPUを含むようなシステムは、電
源を投入したときに全ての装置をリセットする。このリ
セット期間が開始すると、バリッドビット7、ディスエ
ーブルビット9、冗長バリッドビット12、使用ビット
15がすべて“0”にリセットされる。そしてリセット
期間中にセルフテスト回路17によりこのキャッシュメ
モリのセルフテストが行なわれる。
(A-1) Registration in redundant memory In a system including a cache memory and an MPU, all devices are reset when the power is turned on. When this reset period starts, the valid bit 7, the disable bit 9, the redundant valid bit 12, and the used bit 15 are all reset to "0". Then, during the reset period, the self-test circuit 17 self-tests the cache memory.

【0020】リセット信号21がアクティブになると、
セルフテスト回路17は、第2マルチプレクサ19を介
してエントリデコーダ4にエントリアドレスを入力す
る。そして、第1マルチプレクサ18を介してタグメモ
リ2へ、また第3マルチプレクサ20を介してデータメ
モリ10へ、その各エントリにデータをライト/リード
してメモリテストを行なう。
When the reset signal 21 becomes active,
The self-test circuit 17 inputs the entry address to the entry decoder 4 via the second multiplexer 19. Then, the memory test is performed by writing / reading data to / from each entry in the tag memory 2 via the first multiplexer 18 and in the data memory 10 via the third multiplexer 20.

【0021】つまり、セルフテストにおいてタグメモリ
2とデータメモリ10にライトするときは、エントリデ
コーダ4に入力されたエントリアドレスが特定するエン
トリに、それぞれタグアドレス、4ワードのデータを書
き込む。またリードするときは、エントリデコーダ4に
入力されたエントリアドレスが特定するエントリで、タ
グメモリ2からタグアドレスを、データメモリ10から
4ワードのデータを、セルフテスト回路17までリード
する。
That is, when writing to the tag memory 2 and the data memory 10 in the self test, the tag address and the data of 4 words are written to the entry specified by the entry address input to the entry decoder 4. Further, when reading, the tag address is read from the tag memory 2 and the 4-word data from the data memory 10 is read to the self-test circuit 17 with the entry specified by the entry address input to the entry decoder 4.

【0022】セルフテストを行なった結果、タグメモリ
2あるいはデータメモリ10に欠陥を発見した場合に
は、欠陥あるエントリのエントリアドレスをエントリレ
ジスタ14に書き込み、使用ビット15を“1”にす
る。複数個の欠陥を発見した場合は、2ラインのどれか
を適宜選択してエントリアドレスを書き込む。一方、正
規メモリに関しては、欠陥あるエントリのディスエーブ
ルビット9を“1”にしておく。
When a defect is found in the tag memory 2 or the data memory 10 as a result of the self-test, the entry address of the defective entry is written in the entry register 14 and the use bit 15 is set to "1". When a plurality of defects are found, one of the two lines is appropriately selected and the entry address is written. On the other hand, regarding the normal memory, the disable bit 9 of the defective entry is set to "1".

【0023】セルフテストが終了すると、キャッシュメ
モリは通常の動作(リードミス、リードヒット等)を開
始する。
When the self-test ends, the cache memory starts a normal operation (read miss, read hit, etc.).

【0024】(A−2)ヒット判定 外部アドレス1が入力されると、キャッシュメモリはリ
ード要求またはライト要求に関係なくヒット判定、即ち
外部から要求されるデータがキャッシュメモリ内に存在
しているかどうかの判定を行なう。
(A-2) Hit judgment When the external address 1 is input, the cache memory makes a hit judgment regardless of a read request or a write request, that is, whether the data requested from the outside exists in the cache memory. Is determined.

【0025】外部アドレス1が入力されると、第2マル
チプレクサ19を介してエントリアドレス1bがエント
リデコーダ4に与えられ、ここでデコードされて特定の
エントリが選択される。
When the external address 1 is input, the entry address 1b is given to the entry decoder 4 via the second multiplexer 19 and is decoded there to select a specific entry.

【0026】一方、エントリアドレス比較器5において
エントリレジスタ14の各エントリアドレスとエントリ
アドレス1bとが比較される。そして、使用ビット15
が“1”であり、2つのエントリアドレスが一致すれ
ば、エントリヒット信号16をアクティブにする。その
他の場合、即ち使用ビット15が“0”であるためにエ
ントリレジスタ14の内容が入力されない場合を含め、
2つのエントリアドレスが一致しない場合はノンアクテ
ィブにする。
On the other hand, the entry address comparator 5 compares each entry address of the entry register 14 with the entry address 1b. And used bit 15
Is "1" and the two entry addresses match, the entry hit signal 16 is activated. In other cases, including the case where the content of the entry register 14 is not input because the used bit 15 is "0",
If the two entry addresses do not match, they are made inactive.

【0027】選択されたエントリのディスエーブルビッ
ト9が“0”である場合、リセット期間のセルフテスト
でフェイルしていないエントリに相当する。よって選択
されたエントリでメモリ2のデータが読み出される。
When the disable bit 9 of the selected entry is "0", it corresponds to an entry which has not failed in the self test during the reset period. Therefore, the data of the memory 2 is read by the selected entry.

【0028】この場合には、タグアドレス比較器3で
は、タグメモリ2から読み出されたタグアドレスと外部
から入力され第1マルチプレクサ18を介して到達した
タグアドレス1aとを比較する。選択されたエントリの
バリッドビット7が“1”であり、2つのタグアドレス
が一致した場合には、タグアドレス比較器3はヒット信
号8をアクティブにする。その他の場合、即ち選択され
たエントリのバリッドビット7が“0”であるためにタ
グメモリ2の内容が入力されなかった場合を含め、2つ
のタグアドレスが一致しない場合には、ヒット信号8を
ノンアクティブにする。
In this case, the tag address comparator 3 compares the tag address read from the tag memory 2 with the tag address 1a input from the outside and arriving via the first multiplexer 18. When the valid bit 7 of the selected entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. In other cases, that is, when the two tag addresses do not match, including the case where the valid bit 7 of the selected entry is "0" and the contents of the tag memory 2 are not input, the hit signal 8 is output. Make it inactive.

【0029】選択されたエントリのディスエーブルビッ
ト9が“1”である場合、リセット期間のセルフテスト
でフェイルした不良エントリに相当する。この場合、エ
ントリヒット信号16のうちいずれかは必ずアクティブ
となっている。そして冗長タグメモリ11のうち、アク
ティブなエントリヒット信号16に対応するエントリの
データが読み出される。
When the disable bit 9 of the selected entry is "1", it corresponds to a defective entry that failed in the self-test in the reset period. In this case, one of the entry hit signals 16 is always active. Then, the data of the entry corresponding to the active entry hit signal 16 in the redundant tag memory 11 is read.

【0030】この場合には、タグアドレス比較器3で
は、冗長タグメモリ11からのタグアドレスと第1マル
チプレクサ18を介して外部から入力されたタグアドレ
ス1aとを比較する。該当するエントリの冗長バリッド
ビット12が“1”であり、2つのタグアドレスが一致
した場合には、タグアドレス比較器3はヒット信号8を
アクティブにする。その他の場合、即ち該当するエント
リの冗長バリッドビット12が“0”であるために冗長
タグメモリ11の内容が入力されなかった場合を含め、
2つのタグアドレスが一致しない場合には、ヒット信号
8をノンアクティブにする。
In this case, the tag address comparator 3 compares the tag address from the redundant tag memory 11 with the tag address 1a input from the outside via the first multiplexer 18. When the redundant valid bit 12 of the corresponding entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. In other cases, that is, when the content of the redundant tag memory 11 is not input because the redundant valid bit 12 of the corresponding entry is "0",
If the two tag addresses do not match, the hit signal 8 is made inactive.

【0031】(A−3)リードヒット 外部からリード要求があり、ヒット信号8がアクティブ
であるとき、即ち外部から要求されるデータがキャッシ
ュメモリ内に存在する場合、リードヒットと呼ばれ、外
部から要求されるデータをキャッシュメモリから出力す
る。
(A-3) Read hit When there is a read request from the outside and the hit signal 8 is active, that is, when the data requested from the outside exists in the cache memory, it is called a read hit and is called from the outside. Output the requested data from the cache memory.

【0032】第2マルチプレクサ19を介して外部から
与えられるエントリアドレス1bで選択される、特定の
エントリのディスエーブルビット9が“0”である場
合、データメモリ10のうち、選択されたエントリから
4ワードのデータが第3マルチプレクサ20を介してワ
ードセレクタ6に読み出され、ワードアドレス1cによ
り選択された1ワードが外部に出力される。
When the disable bit 9 of a particular entry selected by the entry address 1b given from the outside via the second multiplexer 19 is "0", 4 from the selected entry in the data memory 10 are selected. The word data is read by the word selector 6 via the third multiplexer 20, and one word selected by the word address 1c is output to the outside.

【0033】選択されたエントリのディスエーブルビッ
ト9が“1”である場合、2本のエントリヒット信号1
6の内の1本はアクティブである。そして冗長データメ
モリ13のうち、エントリヒット信号16で指定された
エントリから4ワードのデータが第3マルチプレクサ2
0を通してワードセレクタ6に出力される。ワードセレ
クタ6では、ワードアドレス1cにより選択されるワー
ドを外部に出力する。
When the disable bit 9 of the selected entry is "1", two entry hit signals 1
One of the six is active. Then, in the redundant data memory 13, data of 4 words from the entry specified by the entry hit signal 16 is transferred to the third multiplexer 2
It is output to the word selector 6 through 0. The word selector 6 outputs the word selected by the word address 1c to the outside.

【0034】(A−4)リードミス 外部からリード要求があり、ヒット信号8がアクティブ
でないとき、即ち外部から要求されるデータがキャッシ
ュメモリ内に存在しない場合、リードミスと呼ばれ、キ
ャッシュメモリは外部(主に主メモリ)から新たに4ワ
ードのデータを入力する。
(A-4) Read miss When there is a read request from the outside and the hit signal 8 is not active, that is, when the data requested from the outside does not exist in the cache memory, it is called a read miss and the cache memory is 4 words of data are newly input from the main memory).

【0035】第2マルチプレクサ19を介して外部から
与えられたエントリアドレス1bで選択される特定のエ
ントリのディスエーブルビット9が“0”である場合、
新たに読み込む4ワードのデータは、第3マルチプレク
サ20を介してデータメモリ10のうち、選択されたエ
ントリに記憶される。一方、第1マルチプレクサ18を
介して外部から得られたタグアドレス1aを、タグメモ
リ2のうち選択されたエントリに記憶し、選択されたエ
ントリのバリッドビット7を“1”にする。
When the disable bit 9 of the specific entry selected by the entry address 1b given from the outside via the second multiplexer 19 is "0",
The newly read 4-word data is stored in the selected entry of the data memory 10 via the third multiplexer 20. On the other hand, the tag address 1a obtained from the outside via the first multiplexer 18 is stored in the selected entry of the tag memory 2, and the valid bit 7 of the selected entry is set to "1".

【0036】選択されたエントリのディスエーブルビッ
ト9が“1”であれば、2本のエントリヒット信号16
の内の1本はアクティブである。そして冗長データメモ
リ13のうち、エントリヒット信号16がアクティブで
あるエントリに、新たに読み込む4ワードのデータが第
3マルチプレクサ20を介して記憶される。一方、冗長
タグメモリ11のうち、エントリヒット信号16がアク
ティブであるエントリに、第2マルチプレクサ18を介
して外部から得られるタグアドレス1aを記憶し、冗長
バリッドビット12を“1”にする。
If the disable bit 9 of the selected entry is "1", the two entry hit signals 16
One of these is active. Then, in the redundant data memory 13, the entry of which the entry hit signal 16 is active stores the newly read 4-word data via the third multiplexer 20. On the other hand, the tag address 1a obtained from the outside via the second multiplexer 18 is stored in the entry of the redundant tag memory 11 where the entry hit signal 16 is active, and the redundant valid bit 12 is set to "1".

【0037】(A−5)ライトヒット 外部からライト要求があり、ヒット信号8がアクティブ
であるとき、即ち要求されるデータがキャッシュメモリ
内に存在する場合、ライトヒットと呼ばれ、キャッシュ
メモリは外部から与えられるデータを用いてオーバーラ
イトされる。
(A-5) Write hit When there is a write request from the outside and the hit signal 8 is active, that is, when the requested data exists in the cache memory, it is called a write hit, and the cache memory is external. It is overwritten using the data given by.

【0038】第2マルチプレクサ19を介して外部から
得られるエントリアドレス1bで選択される、特定のエ
ントリのディスエーブルビット9が“0”である場合、
外部から入力される1ワードのデータは、ワードセレク
タ6と第3マルチプレクサ20を介してデータメモリ1
0のうちの、選択されたエントリに書き込まれる。
When the disable bit 9 of the specific entry selected by the entry address 1b obtained from the outside through the second multiplexer 19 is "0",
The data of 1 word input from the outside is transferred to the data memory 1 via the word selector 6 and the third multiplexer 20.
It is written to the selected entry of 0.

【0039】選択されたエントリのディスエーブルビッ
ト9が“1”である場合には2本のエントリヒット信号
16の内の1本はアクティブである。そして冗長データ
メモリ13のエントリヒット信号16で指定されるエン
トリに、ワードセレクタ6と第3マルチプレクサ20を
介して外部から入力された1ワードのデータが書き込ま
れる。
When the disable bit 9 of the selected entry is "1", one of the two entry hit signals 16 is active. Then, one word of data input from the outside via the word selector 6 and the third multiplexer 20 is written into the entry designated by the entry hit signal 16 of the redundant data memory 13.

【0040】(A−6)ライトミス 外部からライト要求があり、ヒット信号8がアクティブ
でないとき、即ち要求されるデータがキャッシュメモリ
内に存在しない場合には、ライトミスと呼ばれる。ライ
トスルー方式が採用されているので、キャッシュメモリ
は何もしない。
(A-6) Write Miss When there is a write request from the outside and the hit signal 8 is not active, that is, when the requested data does not exist in the cache memory, it is called a write miss. Since the write-through method is adopted, the cache memory does nothing.

【0041】[0041]

【発明が解決しようとする課題】前述の技術のように、
リセット期間中にセルフテストをして故障回路を予備回
路に置き換える方法では、キャッシュメモリの容量の大
きさに比べてリセット期間が短く、全てのエントリに対
してセルフテストができないという問題があった。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention As described above,
The method of performing the self-test during the reset period to replace the faulty circuit with the spare circuit has a problem that the reset period is shorter than the capacity of the cache memory and the self-test cannot be performed on all entries.

【0042】また、予備回路のアドレスを不揮発性メモ
リで記憶し、予備回路をアクセスする毎に不揮発性メモ
リを参照する方法は、キャッシュメモリの内部動作の速
度に比べて充分に速くするのが容易ではないという問題
があった。
Further, in the method of storing the address of the spare circuit in the non-volatile memory and referencing the non-volatile memory every time the spare circuit is accessed, it is easy to sufficiently increase the speed of the internal operation of the cache memory. There was a problem that was not.

【0043】更に、複数の故障回路を救済するには少な
くとも故障回路の数と同じ数の予備回路が必要になり、
予備回路が不足する場合は良品として出荷できないとい
う問題も残る。
Further, in order to repair a plurality of faulty circuits, at least as many spare circuits as the number of faulty circuits are required,
If there are not enough spare circuits, the problem remains that the product cannot be shipped as a good product.

【0044】本発明はこのような事情に鑑みてなされた
ものであり、ポリシリコンフューズやレーザによる回路
の切断をすることなく、故障回路を予備回路に置き換え
て製造歩留りを向上させ、製造コストを低下させ、かつ
その置き換えを十分に行えるキャッシュメモリの提供を
目的とする。
The present invention has been made in view of the above circumstances, and replaces a defective circuit with a spare circuit to improve the manufacturing yield without cutting the circuit by a polysilicon fuse or a laser, thereby reducing the manufacturing cost. An object of the present invention is to provide a cache memory that can be lowered and can be sufficiently replaced.

【0045】[0045]

【課題を解決するための手段】この発明にかかるキャッ
シュメモリは、アドレスの一部であるタグアドレスを、
前記アドレスの他の一部であるエントリアドレスに対応
して記憶するタグメモリと、前記エントリアドレスに対
応したデータを記憶するデータメモリと、少なくとも1
つのエントリに対応した冗長タグメモリと、前記冗長タ
グメモリに対応した冗長データメモリと、前記エントリ
アドレスのうち、予め検査された結果、前記タグメモリ
又は前記データメモリにおいて不良であると判断された
不良エントリアドレスを記憶する不良エントリ記憶手段
と、を備える。
A cache memory according to the present invention stores a tag address which is a part of an address,
A tag memory for storing an entry address, which is another part of the address, and a data memory for storing data corresponding to the entry address;
Of the redundant tag memory corresponding to one entry, the redundant data memory corresponding to the redundant tag memory, and the entry address, which is determined to be defective in the tag memory or the data memory as a result of being previously checked. Defective entry storage means for storing the entry address.

【0046】そして、第1の発明においては、起動時に
前記不良エントリアドレスを前記不良エントリ記憶手段
から読み込む、前記冗長タグメモリに対応したエントリ
アドレス記憶手段と、外部から与えられたアドレスであ
る外部アドレスのうち前記エントリアドレスに対応する
外部エントリアドレスと、前記エントリアドレス記憶手
段から得られる前記不良エントリアドレスとを比較し、
両者が一致すると前記冗長タグメモリ及び前記冗長デー
タメモリをアクセスする、前記冗長タグメモリ及び前記
冗長データメモリに対応したエントリアドレス比較手段
と、を更に備えている。
In the first invention, the entry address storage means corresponding to the redundant tag memory for reading the defective entry address from the defective entry storage means at the time of start-up and the external address which is an address given from the outside. Comparing an external entry address corresponding to the entry address with the defective entry address obtained from the entry address storage means,
It further comprises an entry address comparing means corresponding to the redundant tag memory and the redundant data memory, which accesses the redundant tag memory and the redundant data memory when both match.

【0047】また、第2の発明においては、前記エント
リアドレスの各々に対応して設けられ、前記不良エント
リ記憶手段に記憶された前記不良エントリアドレスに対
応したエントリの前記タグメモリ及び前記データメモリ
をアクセス不能にする不良エントリ禁止手段と、を更に
備えている。
Further, in the second invention, the tag memory and the data memory of the entry provided corresponding to each of the entry addresses and corresponding to the defective entry address stored in the defective entry storage means are provided. And a bad entry prohibiting means for making the access inaccessible.

【0048】また、第3の発明においては、前記エント
リアドレスの各々に対応して設けられ、前記不良エント
リ記憶手段に記憶された前記不良エントリアドレスに対
応したエントリの前記タグメモリ及び前記データメモリ
をクセス不能にする不良エントリ禁止手段と、外部から
与えられたアドレスである外部アドレスのうち前記エン
トリアドレスに対応する外部エントリアドレスが、前記
不良エントリアドレスである場合に、前記不良エントリ
禁止手段を参照して前記冗長タグメモリと共にアクセス
され、前記冗長タグメモリに対応して設けられた冗長エ
ントリメモリと、を更に備えている。
Further, in the third invention, the tag memory and the data memory of the entry provided corresponding to each of the entry addresses and corresponding to the defective entry address stored in the defective entry storage means are provided. When the external entry address corresponding to the entry address among the external addresses given from the outside is the defective entry address, the defective entry prohibiting means for disabling access is referred to. A redundant entry memory which is accessed together with the redundant tag memory and is provided corresponding to the redundant tag memory.

【0049】[0049]

【作用】冗長タグメモリや冗長データメモリが予備回路
として、タグメモリやデータメモリの故障回路に代替さ
れる。
The redundant tag memory and the redundant data memory serve as spare circuits, and are replaced by defective circuits of the tag memory and the data memory.

【0050】第1の発明では、予め不良エントリ記憶手
段に記憶されていた不良エントリアドレスが、起動時に
エントリアドレス記憶手段に書き込まれる。その後、エ
ントリアドレス比較器の比較結果を参照し、冗長タグメ
モリや冗長データメモリがアクセスされる。
In the first aspect of the invention, the defective entry address previously stored in the defective entry storage means is written in the entry address storage means at the time of startup. After that, the redundant tag memory and the redundant data memory are accessed by referring to the comparison result of the entry address comparator.

【0051】第2の発明では、予め不良エントリ記憶手
段に記憶されていた不良エントリアドレスが、不良エン
トリ禁止手段に書き込まれる。その後、不良エントリ禁
止手段を参照し、エントリアドレスのデコード時にタグ
メモリやデータメモリへのアクセスを禁止する。
In the second invention, the defective entry address stored in advance in the defective entry storage means is written in the defective entry prohibiting means. After that, the defective entry prohibiting means is referred to prohibit the access to the tag memory or the data memory when decoding the entry address.

【0052】第3の発明では、予め不良エントリ記憶手
段に記憶していた不良エントリアドレスが、不良エント
リ禁止手段に書き込む。その後、不良エントリ禁止手段
を参照して、エントリアドレスのデコード時にタグメモ
リやデータメモリへのアクセスを禁止し、また、冗長タ
グメモリと冗長エントリメモリにアクセスする。
In the third invention, the defective entry address stored in advance in the defective entry storage means is written in the defective entry prohibiting means. After that, the defective entry prohibiting means is referred to prohibit access to the tag memory and the data memory at the time of decoding the entry address, and access the redundant tag memory and the redundant entry memory.

【0053】[0053]

【実施例】【Example】

(B)実施例1.図1に第1の発明と第2の発明の実施
例である、キャッシュメモリの内部構成図を示す。この
キャッシュメモリのメモリマッピング方式はダイレクト
マッピングであり、主記憶更新方式はライトスルーであ
る。また、ブロックサイズは4ワードであり、リードミ
スしたときには、要求されたアドレスのデータを含む4
ワードが主メモリから読み込まれる。
(B) Example 1. FIG. 1 shows an internal configuration diagram of a cache memory which is an embodiment of the first invention and the second invention. The memory mapping method of this cache memory is direct mapping, and the main memory updating method is write through. Further, the block size is 4 words, and when a read miss occurs, the block size including the data of the requested address is 4
The word is read from main memory.

【0054】外部から入力された32ビットの外部アド
レス1は、タグアドレス1a、エントリアドレス1b、
ワードアドレス1cに分割できる。タグアドレス1aは
タグメモリ2とタグアドレス比較器3に入力される。ま
た、エントリアドレス1bはエントリデコーダ4とエン
トリアドレス比較器5に入力される。そして、ワードア
ドレス1cはワードセレクタ6に入力される。
The 32-bit external address 1 input from the outside is the tag address 1a, the entry address 1b,
It can be divided into word addresses 1c. The tag address 1a is input to the tag memory 2 and the tag address comparator 3. Further, the entry address 1b is input to the entry decoder 4 and the entry address comparator 5. Then, the word address 1c is input to the word selector 6.

【0055】タグメモリ2は20ビット×256エント
リの大きさであり、バリッドビット7はタグメモリ2の
各エントリに対して1ビットずつ割り当てられている。
よってその大きさは1ビット×256エントリである。
またデータメモリ10には1エントリ当たり4ワード
(4×32ビット)が記憶され、これも256エントリ
設けられている。よってその記憶容量は128ビット×
256エントリである。
The tag memory 2 has a size of 20 bits × 256 entries, and the valid bit 7 is assigned to each entry of the tag memory 2 by 1 bit.
Therefore, its size is 1 bit × 256 entries.
Further, the data memory 10 stores 4 words (4.times.32 bits) per entry, and this also has 256 entries. Therefore, its storage capacity is 128 bits ×
There are 256 entries.

【0056】タグアドレス比較器3はヒット信号8を出
力する。第1マルチプレクサの出力と、タグメモリ2か
ら得られたタグアドレスとを比較し、両者が一致すれば
ヒット信号8をアクティブにする。一致しない場合はヒ
ット信号8をノンアクティブにする。
The tag address comparator 3 outputs a hit signal 8. The output of the first multiplexer is compared with the tag address obtained from the tag memory 2, and if they match, the hit signal 8 is activated. If they do not match, the hit signal 8 is made inactive.

【0057】ディスエーブルビット9はエントリデコー
ダ4の内部で各エントリに対して1ビットずつ割り当て
られている。よってその大きさは1ビット×256エン
トリである。
The disable bit 9 is assigned to each entry in the entry decoder 4 one bit at a time. Therefore, its size is 1 bit × 256 entries.

【0058】エントリデコーダ4でデコードされた結果
からタグメモリ2とデータメモリ10の特定のエントリ
が選択される。バリッドビット7は、該当するエントリ
のデータが有効かどうかを示し、“1”であれば有効、
“0”であれば無効を示す。
A specific entry in the tag memory 2 and the data memory 10 is selected from the result decoded by the entry decoder 4. The valid bit 7 indicates whether the data of the corresponding entry is valid, and if "1", it is valid,
If "0", it indicates invalid.

【0059】データメモリ10で該当するエントリに記
憶されていたデータのうち、ワードアドレス1cにより
ワードセレクタ6において特定のワードが選択される。
Of the data stored in the corresponding entry in the data memory 10, the word selector 1 selects a specific word by the word address 1c.

【0060】1エントリ(ライン)は20ビットのタグ
メモリ2、1ビットのバリッドビット7、128ビット
のデータメモリ10で構成され、これらのメモリはまと
めて冗長メモリに対して正規メモリと呼ばれる。
One entry (line) is composed of a tag memory 2 of 20 bits, a valid bit 7 of 1 bit, and a data memory 10 of 128 bits, and these memories are collectively called a normal memory as opposed to a redundant memory.

【0061】冗長メモリは、キャッシュメモリの特徴を
生かしてライン方向のみに2エントリ(2ライン)分あ
る。1エントリ(ライン)は20ビットの冗長タグメモ
リ11、1ビットの冗長バリッドビット12、128ビ
ットの冗長データメモリ13、8ビットのエントリレジ
スタ14、1ビットの使用ビット15で構成される。
The redundant memory has two entries (two lines) in the line direction only, taking advantage of the characteristics of the cache memory. One entry (line) is composed of a 20-bit redundant tag memory 11, a 1-bit redundant valid bit 12, a 128-bit redundant data memory 13, an 8-bit entry register 14, and a 1-bit used bit 15.

【0062】エントリレジスタ14の各ラインには、冗
長タグメモリ11と冗長データメモリ13に記憶するデ
ータのエントリアドレスが記憶される。冗長バリッドビ
ット12は、冗長メモリの該当するラインのデータが有
効かどうかを示し、“1”であれば有効、“0”であれ
ば無効を示す。
Each line of the entry register 14 stores the entry address of the data stored in the redundant tag memory 11 and the redundant data memory 13. The redundant valid bit 12 indicates whether or not the data of the corresponding line of the redundant memory is valid. When the redundant valid bit 12 is “1”, it is valid, and when the data is “0”, it is invalid.

【0063】使用ビット15は、冗長メモリの該当する
ラインが冗長メモリとして使用されている場合は
“1”、使用されていない場合は“0”を記憶する。
The use bit 15 stores "1" when the corresponding line of the redundant memory is used as the redundant memory and "0" when it is not used.

【0064】エントリアドレス比較器5はエントリヒッ
ト信号16を出力する。エントリアドレス比較器5は、
エントリレジスタ14のライン毎に設けられ、それぞれ
エントリアドレス1bとエントリレジスタ14から得ら
れたエントリアドレスとを比較する。比較した結果は、
エントリヒット信号16として出力され、冗長タグメモ
リ11、冗長バリッドビット12、冗長データメモリ1
3の特定のラインを指定する。
The entry address comparator 5 outputs the entry hit signal 16. The entry address comparator 5 is
It is provided for each line of the entry register 14, and compares the entry address 1b with the entry address obtained from the entry register 14, respectively. The comparison result is
Output as the entry hit signal 16, the redundant tag memory 11, the redundant valid bit 12, the redundant data memory 1
Specify 3 specific lines.

【0065】また、このキャッシュメモリは冗長メモリ
制御回路22を備え、製品出荷の際のテスト結果から冗
長メモリに切り換えるエントリ(不良エントリ)を冗長
メモリ制御回路22内のプログラマブルROM23に記
憶している。
Further, this cache memory is provided with a redundant memory control circuit 22, and an entry (defective entry) for switching from the test result at the time of product shipment to the redundant memory is stored in the programmable ROM 23 in the redundant memory control circuit 22.

【0066】このように構成されたキャッシュメモリ
は、冗長メモリへの切り換えの為のフューズ等を使用し
ない。不揮発性メモリであるプログラマブルROM23
にあらかじめ記憶した不良エントリを、リセット期間に
エントリレジスタ14とエントリデコーダ4の内部のデ
ィスエーブルビット9に書き込む。そして、通常動作に
おいてそれらを参照して正規メモリと冗長メモリへのア
クセスを切り換える。このため、このキャッシュメモリ
は、外部からは冗長メモリを使用しているかどうかを判
断できないように(完全良品と同様に)動作する。具体
的には以下のように動作する。
The cache memory thus configured does not use a fuse or the like for switching to the redundant memory. Programmable ROM 23 which is a non-volatile memory
The defective entry stored in advance is written in the disable bit 9 inside the entry register 14 and the entry decoder 4 during the reset period. Then, in normal operation, referring to them, the access to the normal memory and the redundant memory is switched. Therefore, this cache memory operates so that it cannot be judged from the outside whether or not the redundant memory is used (similar to a completely non-defective product). Specifically, it operates as follows.

【0067】(B−1)冗長メモリへの登録 製品出荷の際のテストにおいて検出された、不良エント
リを、あらかじめプログラマブルROM23に記憶して
おく。
(B-1) Registration in Redundant Memory The defective entry detected in the test before shipping the product is stored in the programmable ROM 23 in advance.

【0068】リセット信号21がアクティブになると、
キャッシュメモリはバリッドビット7、ディスエーブル
ビット9、冗長バリッドビット12、使用ビット15の
すべてを“0”にする。その後、冗長メモリ制御回路2
2の制御の下、プログラマブルROM23の内容がエン
トリレジスタ14に書き込まれ、該当するエントリの使
用ビット15及びディスエーブルビット9は“1”にな
る。リセット期間が終了すると、キャッシュメモリは通
常動作(リードミス、リードヒット等)を開始する。
When the reset signal 21 becomes active,
The cache memory sets all of the valid bit 7, the disable bit 9, the redundant valid bit 12, and the used bit 15 to "0". After that, the redundant memory control circuit 2
Under the control of 2, the contents of the programmable ROM 23 are written in the entry register 14, and the use bit 15 and the disable bit 9 of the corresponding entry become "1". When the reset period ends, the cache memory starts normal operation (read miss, read hit, etc.).

【0069】(B−2)ヒット判定 外部アドレス1が入力されると、キャッシュメモリはリ
ード要求またはライト要求に関係なくヒット判定を行な
う。
(B-2) Hit Determination When the external address 1 is input, the cache memory makes a hit determination regardless of a read request or a write request.

【0070】外部アドレス1が入力されると、エントリ
アドレス1bがエントリデコーダ4に与えられ、ここで
デコードされて特定のエントリが選択される。
When the external address 1 is input, the entry address 1b is given to the entry decoder 4 where it is decoded and a specific entry is selected.

【0071】一方、エントリアドレス比較器5において
エントリレジスタ14の各エントリアドレスとエントリ
アドレス1bとが比較される。使用ビット15が“1”
であり、2つのエントリアドレスが一致すれば、エント
リヒット信号16をアクティブにする。その他の場合、
即ち使用ビット15が“0”であるためにエントリレジ
スタ14の内容が入力されない場合も含め、2つのエン
トリアドレスが一致しない場合にはノンアクティブにす
る。
On the other hand, the entry address comparator 5 compares each entry address of the entry register 14 with the entry address 1b. Used bit 15 is "1"
If the two entry addresses match, the entry hit signal 16 is activated. Otherwise,
That is, when the two entry addresses do not match, including the case where the contents of the entry register 14 are not input because the used bit 15 is "0", the non-active state is made.

【0072】選択されたエントリのディスエーブルビッ
ト9が“0”である場合、製品出荷の際のテストでフェ
イルしていないエントリに相当する。よって選択された
エントリでメモリ2のデータが読み出される。
When the disable bit 9 of the selected entry is "0", it corresponds to the entry which has not failed in the test before shipping the product. Therefore, the data of the memory 2 is read by the selected entry.

【0073】この場合には、タグアドレス比較器3で
は、タグメモリ2から読み出されたタグアドレスと外部
から入力されたタグアドレス1aとを比較する。選択さ
れたエントリのバリッドビット7が“1”であり、2つ
のタグアドレスが一致した場合には、タグアドレス比較
器3はヒット信号8をアクティブにする。その他の場
合、即ちバリッドビット7が“0”であるためにタグメ
モリ2の内容が入力されない場合も含め、2つのタグア
ドレスが一致しない場合には、ヒット信号8をノンアク
ティブにする。
In this case, the tag address comparator 3 compares the tag address read from the tag memory 2 with the tag address 1a input from the outside. When the valid bit 7 of the selected entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. In other cases, that is, in the case where the contents of the tag memory 2 are not input because the valid bit 7 is "0", the hit signal 8 is made inactive when the two tag addresses do not match.

【0074】選択されたエントリのディスエーブルビッ
ト9が“1”である場合、製品出荷の際のテストでフェ
イルした不良エントリに相当する。この場合、エントリ
ヒット信号16のうちいずれかは必ずアクティブとなっ
ている。そして冗長タグメモリ11のうち、アクティブ
なエントリヒット信号16に対応するエントリのデータ
が読み出される。
When the disable bit 9 of the selected entry is "1", it corresponds to a defective entry that failed in the test before shipping the product. In this case, one of the entry hit signals 16 is always active. Then, the data of the entry corresponding to the active entry hit signal 16 in the redundant tag memory 11 is read.

【0075】この場合には、タグアドレス比較器3で
は、冗長タグメモリ11からのタグアドレスと外部から
入力されたタグアドレス1aとを比較する。該当するエ
ントリの冗長バリッドビット12が“1”であり、2つ
のタグアドレスが一致した場合には、タグアドレス比較
器3はヒット信号8をアクティブにする。その他の場
合、即ち該当するエントリの冗長バリッドビット12が
“0”であるために冗長タグメモリ11の内容が入力さ
れない場合も含め、2つのタグアドレスが一致しない場
合には、ヒット信号8をノンアクティブにする。
In this case, the tag address comparator 3 compares the tag address from the redundant tag memory 11 with the tag address 1a input from the outside. When the redundant valid bit 12 of the corresponding entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. In other cases, that is, in the case where the two tag addresses do not match, including the case where the content of the redundant tag memory 11 is not input because the redundant valid bit 12 of the corresponding entry is “0”, the hit signal 8 is not set. Activate.

【0076】(B−3)リードヒット 外部からリード要求があり、ヒット信号8がアクティブ
であるとき、即ち外部から要求されるデータがキャッシ
ュメモリ内に存在する場合、リードヒットと呼ばれ、外
部から要求されるデータをキャッシュメモリから出力す
る。
(B-3) Read hit When there is a read request from the outside and the hit signal 8 is active, that is, when the data requested from the outside exists in the cache memory, it is called a read hit and is called from the outside. Output the requested data from the cache memory.

【0077】外部から与えられるエントリアドレス1b
で選択される特定のエントリのディスエーブルビット9
が“0”である場合、データメモリ10のうち、選択さ
れたエントリから4ワードのデータがワードセレクタ6
に読みだされ、ワードアドレス1cにより選択された1
ワードが外部に出力される。
Entry address 1b given from the outside
Disable bit 9 for the specific entry selected by
Is “0”, the 4-word data from the selected entry in the data memory 10 is the word selector 6
1 read out to and selected by word address 1c
The word is output to the outside.

【0078】選択されたエントリのディスエーブルビッ
ト9が“1”である場合、2本のエントリヒット信号1
6の内の1本はアクティブである。そして冗長データメ
モリ13のうち、エントリヒット信号16で指定された
エントリから4ワードのデータがワードセレクタ6に出
力される。ワードセレクタ6では、ワードアドレス1c
により選択される1ワードを外部に出力する。
When the disable bit 9 of the selected entry is "1", two entry hit signals 1
One of the six is active. Then, 4-word data is output to the word selector 6 from the entry designated by the entry hit signal 16 in the redundant data memory 13. In the word selector 6, the word address 1c
One word selected by is output to the outside.

【0079】(B−4)リードミス 外部からリード要求があり、ヒット信号8がアクティブ
でないとき、即ち外部から要求されるデータがキャッシ
ュメモリ内に存在しない場合、リードミスと呼ばれ、キ
ャッシュメモリは外部(主に主メモリ)から新たに4ワ
ードのデータを入力する。
(B-4) Read miss When there is a read request from the outside and the hit signal 8 is not active, that is, when the data requested from the outside does not exist in the cache memory, it is called a read miss and the cache memory is 4 words of data are newly input from the main memory).

【0080】外部から与えられたエントリアドレス1b
で選択される特定のエントリのディスエーブルビット9
が“0”である場合、新たに読み込む4ワードのデータ
は、データメモリ10のうち、選択されたエントリに記
憶される。一方、外部から得られたタグアドレス1a
を、タグメモリ2のうち選択されたエントリに記憶し、
選択されたエントリのバリッドビット7を“1”にす
る。
Entry address 1b given from the outside
Disable bit 9 for the specific entry selected by
Is 0, the newly read 4-word data is stored in the selected entry of the data memory 10. On the other hand, the tag address 1a obtained from the outside
Is stored in the selected entry of the tag memory 2,
The valid bit 7 of the selected entry is set to "1".

【0081】選択されたエントリのディスエーブルビッ
ト9が“1”であれば、2本のエントリヒット信号16
の内の1本はアクティブである。そして冗長データメモ
リ13のうち、エントリヒット信号16がアクティブで
あるエントリに、新たに読み込む4ワードのデータがワ
ードセレクタ6を介して記憶される。一方、冗長タグメ
モリ11のうち、エントリヒット信号16がアクティブ
であるエントリに、第2マルチプレクサ18を介して外
部から得られるタグアドレス1aを記憶し、冗長バリッ
ドビット12を“1”にする。
If the disable bit 9 of the selected entry is "1", two entry hit signals 16
One of these is active. Then, in the redundant data memory 13, the entry of which the entry hit signal 16 is active stores the newly read 4-word data via the word selector 6. On the other hand, the tag address 1a obtained from the outside via the second multiplexer 18 is stored in the entry of the redundant tag memory 11 where the entry hit signal 16 is active, and the redundant valid bit 12 is set to "1".

【0082】(B−5)ライトヒット 外部からライト要求があり、ヒット信号8がアクティブ
であるとき、即ち要求されるデータがキャッシュメモリ
内に存在する場合、ライトヒットと呼ばれ、キャッシュ
メモリは外部から示されるデータを用いてオーバーライ
トされる。
(B-5) Write hit When there is a write request from the outside and the hit signal 8 is active, that is, when the requested data exists in the cache memory, it is called a write hit, and the cache memory is external. Is overwritten using the data shown in.

【0083】外部から得られるエントリアドレス1bで
選択される特定のエントリのディスエーブルビット9が
“0”である場合、外部から入力される1ワードのデー
タは、ワードセレクタ6を介してデータメモリ10のう
ちの、選択されたエントリに書き込まれる。
When the disable bit 9 of the specific entry selected by the entry address 1b obtained from the outside is “0”, one word of data inputted from the outside is passed through the word selector 6 to the data memory 10. Of the selected entries.

【0084】選択されたエントリのディスエーブルビッ
ト9が“1”である場合には2本のエントリヒット信号
16の内の1本はアクティブである。そして冗長データ
メモリ13のエントリヒット信号16で指定されるエン
トリに、ワードセレクタ6を介して外部から入力された
1ワードのデータが書き込まれる。
When the disable bit 9 of the selected entry is "1", one of the two entry hit signals 16 is active. Then, one word of data input from the outside via the word selector 6 is written in the entry designated by the entry hit signal 16 of the redundant data memory 13.

【0085】(B−6)ライトミス 外部からライト要求があり、ヒット信号8がアクティブ
でないとき、即ち要求されるデータがキャッシュメモリ
内に存在しない場合には、ライトミスと呼ばれる。ライ
トスルー方式が採用されているので、キャッシュメモリ
は何もしない。
(B-6) Write Miss When there is a write request from the outside and the hit signal 8 is not active, that is, when the requested data does not exist in the cache memory, it is called a write miss. Since the write-through method is adopted, the cache memory does nothing.

【0086】(B−7)以上のようにして実施例1のキ
ャッシュメモリが動作するので、ポリシリコンフューズ
やレーザによる回路の切断をすることはない。また予め
不良エントリが分かっているので、これを容易に冗長メ
モリに置き換えることができる。さらに、エントリアド
レスのデコード時において、正規メモリへのアクセスが
ディスエーブルビット9によって禁止されるので、余分
な電力が消費されることがない。
(B-7) Since the cache memory of the first embodiment operates as described above, the circuit is not cut off by the polysilicon fuse or the laser. Further, since the defective entry is known in advance, it can be easily replaced with the redundant memory. Further, when decoding the entry address, access to the normal memory is prohibited by the disable bit 9, so that extra power is not consumed.

【0087】(C)実施例2.図2に第1の発明及び第
2の発明の他の実施例である、キャッシュメモリの内部
構成図を示す。このキャッシュメモリのメモリマッピン
グ方式及び主記憶更新方式は実施例1と同様である。ま
た、ブロックサイズも実施例1と同様4ワードであり、
リードミスしたときには、要求されたアドレスのデータ
を含む4ワードが主メモリから読み込まれる。
(C) Example 2. FIG. 2 shows an internal configuration diagram of a cache memory which is another embodiment of the first invention and the second invention. The memory mapping method and the main memory updating method of this cache memory are the same as those in the first embodiment. Also, the block size is 4 words as in the first embodiment,
When a read miss occurs, 4 words including the data of the requested address are read from the main memory.

【0088】外部アドレス1は、実施例1と同様、タグ
アドレス1a、エントリアドレス1b、ワードアドレス
1cに分割できる。これらのアドレスの入力先は実施例
1と同様である。また、タグメモリ2、バリッドビット
7、データメモリ10の大きさも実施例1と同様であ
る。
The external address 1 can be divided into a tag address 1a, an entry address 1b and a word address 1c as in the first embodiment. The input destination of these addresses is the same as in the first embodiment. The sizes of the tag memory 2, the valid bit 7, and the data memory 10 are also the same as those in the first embodiment.

【0089】タグアドレス比較器3も実施例1と同様に
して、外部から入力されたタグアドレス1aとタグメモ
リ2からのタグアドレスを比較し、ヒット信号8をアク
ティブ、ノンアクティブにして出力する。バリッドビッ
ト7の指示する意味も実施例1と同様である。
Similarly to the first embodiment, the tag address comparator 3 also compares the tag address 1a input from the outside with the tag address from the tag memory 2 and outputs the hit signal 8 as active or non-active. The meaning indicated by the valid bit 7 is also the same as in the first embodiment.

【0090】エントリデコーダ4には実施例1で示され
たディスエーブルビット9の代わりに判定論理回路24
が設けられている。判定論理回路24は、第1OR回路
25の出力である、2本のエントリヒット信号16のO
R演算結果を判定し、特定のエントリ(不良エントリ)
を選択できないようにしている。具体的には、図3に示
されるように、インバータ及びAND回路の対を各エン
トリに対応して設けた構成を有している。
In the entry decoder 4, the decision logic circuit 24 is used instead of the disable bit 9 shown in the first embodiment.
Is provided. The decision logic circuit 24 outputs the O of the two entry hit signals 16 output from the first OR circuit 25.
R entry is judged and specific entry (bad entry)
I can not choose. Specifically, as shown in FIG. 3, a pair of an inverter and an AND circuit is provided corresponding to each entry.

【0091】冗長メモリは、ライン方向のみに2ライン
(2エントリ分)ある。1エントリの構成は、実施例1
と同様である。また、実施例1と同様にして、エントリ
レジスタ14の各ラインには、冗長タグメモリ11と冗
長データメモリ13に記憶するデータのエントリアドレ
スが記憶される。冗長バリッドビット12、使用ビット
15の意味するところは実施例1と同一である。
The redundant memory has two lines (for two entries) only in the line direction. The structure of one entry is the same as that of the first embodiment.
Is the same as. Further, similarly to the first embodiment, each line of the entry register 14 stores the entry address of the data stored in the redundant tag memory 11 and the redundant data memory 13. The meanings of the redundant valid bit 12 and the used bit 15 are the same as in the first embodiment.

【0092】エントリアドレス比較器5がエントリヒッ
ト信号16を出力し、冗長タグメモリ11、冗長バリッ
ドビット12、冗長データメモリ13の特定のラインを
指定するのも実施例1と同様である。
The entry address comparator 5 outputs the entry hit signal 16 and designates a specific line of the redundant tag memory 11, the redundant valid bit 12, and the redundant data memory 13 as in the first embodiment.

【0093】また、このキャッシュメモリは実施例1と
同様に冗長メモリ制御回路22、プログラマブルROM
23を備える。
Further, this cache memory has a redundant memory control circuit 22 and a programmable ROM as in the first embodiment.
23 is provided.

【0094】このように構成されたキャッシュメモリ
は、冗長メモリへの切り換えの為のフューズ等を使用し
ない。不揮発性メモリであるプログラマブルROM23
にあらかじめ記憶した不良エントリを、リセット期間に
エントリレジスタ14に書き込む。そして、通常動作に
おいてエントリレジスタ14の内容を参照し、正規メモ
リと冗長メモリへのアクセスを切り換える。このため、
このキャッシュメモリは、外部からは冗長メモリを使用
しているかどうかを判断できないように(完全良品と同
様に)動作する。具体的には以下のように動作する。
The cache memory thus constructed does not use a fuse or the like for switching to the redundant memory. Programmable ROM 23 which is a non-volatile memory
The defective entry stored in advance is written in the entry register 14 during the reset period. Then, in the normal operation, the contents of the entry register 14 are referred to and the access to the normal memory and the redundant memory is switched. For this reason,
This cache memory operates so that it cannot be judged from the outside whether or not the redundant memory is used (similar to a perfect product). Specifically, it operates as follows.

【0095】(C−1)冗長メモリへの登録 あらかじめ製品出荷の際のテストにおいて、不良エント
リを冗長メモリ制御回路22内のプログラマブルROM
23に記憶しておく。
(C-1) Registration in Redundant Memory In a test at the time of product shipment in advance, a defective entry is detected as a programmable ROM in the redundant memory control circuit 22.
It is stored in 23.

【0096】リセット信号21がアクティブになると、
キャッシュメモリはバリッドビット7、冗長バリッドビ
ット12、使用ビット15をすべて“0”にする。その
後、冗長メモリ制御回路22の制御の下、プログラマブ
ルROM23の内容はエントリレジスタ14に書き込ま
れ、使用ビット15は“1”になる。リセット期間が終
了すると、キャッシュメモリは通常動作(リードミス、
リードヒット等)を開始する。
When the reset signal 21 becomes active,
In the cache memory, the valid bit 7, the redundant valid bit 12, and the used bit 15 are all set to "0". After that, under the control of the redundant memory control circuit 22, the contents of the programmable ROM 23 are written in the entry register 14, and the used bit 15 becomes "1". When the reset period ends, the cache memory operates normally (read miss,
Lead hit, etc.).

【0097】(C−2)ヒット判定 外部アドレス1が入力されると、キャッシュメモリはリ
ード要求またはライト要求に関係なくヒット判定を行な
う。
(C-2) Hit Determination When the external address 1 is input, the cache memory makes a hit determination regardless of a read request or a write request.

【0098】外部アドレス1が入力されると、エントリ
アドレス1bがエントリデコーダ4に与えられ、ここで
デコードされて特定のエントリが選択される。
When the external address 1 is input, the entry address 1b is given to the entry decoder 4 where it is decoded and a specific entry is selected.

【0099】一方、エントリアドレス比較器5において
エントリレジスタ14の各エントリアドレスとエントリ
アドレス1bとが比較される。そして、使用ビット15
が“1”であり、2つのエントリアドレスが一致した場
合には、エントリヒット信号16をアクティブにする。
その他の場合、即ち使用ビット15が“0”であるため
にエントリレジスタ14の内容が入力されない場合も含
め、2つのエントリアドレスが一致しない場合には、ノ
ンアクティブにする。
On the other hand, the entry address comparator 5 compares each entry address of the entry register 14 with the entry address 1b. And used bit 15
Is "1" and the two entry addresses match, the entry hit signal 16 is activated.
In other cases, that is, in the case where the two entry addresses do not match, including the case where the contents of the entry register 14 are not input because the used bit 15 is "0", they are made non-active.

【0100】選択されたエントリの判定論理回路24が
アクティブである場合、即ち第1OR回路25によるエ
ントリヒット信号16の演算結果がアクティブでない場
合(つまりそのエントリが冗長メモリに登録されていな
い場合)、製品出荷の際のテストでフェイルしていない
エントリに相当する。よって選択されたエントリでメモ
リ2のデータが読み出される。
When the judgment logic circuit 24 of the selected entry is active, that is, when the operation result of the entry hit signal 16 by the first OR circuit 25 is not active (that is, when the entry is not registered in the redundant memory). Corresponds to an entry that has not failed the test during product shipment. Therefore, the data of the memory 2 is read by the selected entry.

【0101】この場合には、タグアドレス比較器3で
は、タグメモリ2から読み出されたタグアドレスと外部
から入力されたタグアドレス1aとを比較する。選択さ
れたエントリのバリッドビット7が“1”であり、2つ
のタグアドレスが一致した場合には、タグアドレス比較
器3はヒット信号8をアクティブにする。その他の場
合、即ち選択されたエントリのバリッドビット7が
“0”であるためにタグメモリ2の内容が入力されない
場合も含め、2つのタグアドレスが一致しない場合に
は、ヒット信号8をノンアクティブにする。
In this case, the tag address comparator 3 compares the tag address read from the tag memory 2 with the tag address 1a input from the outside. When the valid bit 7 of the selected entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. In other cases, including the case where the contents of the tag memory 2 are not input because the valid bit 7 of the selected entry is "0", the hit signal 8 is made non-active when the two tag addresses do not match. To

【0102】選択されたエントリの判定論理回路24が
ノンアクティブである場合、即ち第1OR回路25によ
り演算されたエントリヒット信号16のORがアクティ
ブでない場合(つまりそのエントリが冗長メモリに登録
されたいない場合)、製品出荷の際のテストでフェイル
した不良エントリに相当する。この場合、タグメモリ2
からデータは読み出されない。そして2本のエントリヒ
ット信号16のうちのいずれか1本は必ずアクティブと
なっている。よって冗長タグメモリ11のうち、アクテ
ィブなエントリヒット信号16に対応するエントリのデ
ータが読み出される。
When the decision logic circuit 24 of the selected entry is non-active, that is, when the OR of the entry hit signal 16 calculated by the first OR circuit 25 is not active (that is, the entry is not registered in the redundant memory). In the case), it corresponds to a defective entry that failed in the test before shipping the product. In this case, tag memory 2
No data is read from. Then, one of the two entry hit signals 16 is always active. Therefore, the data of the entry corresponding to the active entry hit signal 16 in the redundant tag memory 11 is read.

【0103】この場合には、タグアドレス比較器3で
は、冗長タグメモリ11からのタグアドレスと外部から
入力されたタグアドレス1aとを比較する。該当するエ
ントリの冗長バリッドビット12が“1”であり、2つ
のタグアドレスが一致した場合には、タグアドレス比較
器3はヒット信号8をアクティブにする。その他の場
合、即ち該当するエントリの冗長バリッドビット12が
“1”であるために冗長タグメモリ11の内容が入力さ
れない場合も含め、2つのタグアドレスが一致しない場
合には、ヒット信号8をノンアクティブにする。
In this case, the tag address comparator 3 compares the tag address from the redundant tag memory 11 with the tag address 1a input from the outside. When the redundant valid bit 12 of the corresponding entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. In other cases, that is, in the case where the two tag addresses do not match, including the case where the content of the redundant tag memory 11 is not input because the redundant valid bit 12 of the corresponding entry is "1", the hit signal 8 is not set. Activate.

【0104】(C−3)リードヒット 外部からリード要求があり、ヒット信号8がアクティブ
であるとき、即ち外部から要求されるデータがキャッシ
ュメモリ内に存在する場合、リードヒットと呼ばれ、外
部から要求されるデータをキャッシュメモリから出力す
る。
(C-3) Read hit When there is a read request from the outside and the hit signal 8 is active, that is, when the data requested from the outside exists in the cache memory, it is called a read hit and is called from the outside. Output the requested data from the cache memory.

【0105】外部から与えられるエントリアドレス1b
で選択される、特定のエントリの判定論理回路24の出
力がアクティブである場合、データメモリ10のうち、
選択されたエントリから4ワードのデータがワードセレ
クタ6に読み出され、ワードアドレス1cにより選択さ
れた1ワードが外部に出力される。
Entry address 1b given from the outside
When the output of the decision logic circuit 24 of the particular entry selected by
Data of 4 words is read from the selected entry to the word selector 6, and 1 word selected by the word address 1c is output to the outside.

【0106】選択されたエントリの判定論理回路24の
出力がノンアクティブである場合、2本のエントリヒッ
ト信号16の内の1本はアクティブである。そして冗長
データメモリ13のうち、エントリヒット信号16で指
定されたエントリから4ワードのデータがワードセレク
タ6に出力される。ワードセレクタ6では、ワードアド
レス1cにより選択される1ワードを外部に出力する。
When the output of the decision logic circuit 24 of the selected entry is non-active, one of the two entry hit signals 16 is active. Then, 4-word data is output to the word selector 6 from the entry designated by the entry hit signal 16 in the redundant data memory 13. The word selector 6 outputs one word selected by the word address 1c to the outside.

【0107】(C−4)リードミス 外部からリード要求があり、ヒット信号8がアクティブ
でないとき、即ち外部から要求されるデータがキャッシ
ュメモリ内に存在しない場合、リードミスと呼ばれ、キ
ャッシュメモリは外部から新たに4ワードのデータを入
力する。
(C-4) Read Miss When there is a read request from the outside and the hit signal 8 is not active, that is, when the data requested from the outside does not exist in the cache memory, it is called a read miss and the cache memory is read from the outside. Newly input 4-word data.

【0108】外部から与えられたエントリアドレス1b
で選択される特定のエントリの判定論理回路24の出力
がアクティブである場合、新たに読み込む4ワードのデ
ータは、データメモリ10のうち、選択されたエントリ
に記憶される。一方、外部から得られたタグアドレス1
aを、タグメモリ2のうち選択されたエントリに記憶
し、選択されたエントリのバリッドビット7を“1”に
する。
Entry address 1b given from the outside
When the output of the determination logic circuit 24 of the specific entry selected in step 4 is active, the newly read 4-word data is stored in the selected entry of the data memory 10. On the other hand, the tag address 1 obtained from the outside
a is stored in the selected entry of the tag memory 2, and the valid bit 7 of the selected entry is set to "1".

【0109】選択されたエントリの判定論理回路24の
出力がノンアクティブであれば、2本のエントリヒット
信号16の内の1本はアクティブである。そして冗長デ
ータメモリ13のうち、エントリヒット信号16がアク
ティブであるエントリに、新たに読み込む4ワードのデ
ータがワードセレクタ6を介して記憶される。一方、冗
長タグメモリ11のうち、エントリヒット信号がアクテ
ィブであるエントリに、外部から得られるタグアドレス
1aを記憶し、冗長バリッドビット12を“1”にす
る。
If the output of the decision logic circuit 24 of the selected entry is non-active, one of the two entry hit signals 16 is active. Then, in the redundant data memory 13, the entry of which the entry hit signal 16 is active stores the newly read 4-word data via the word selector 6. On the other hand, the tag address 1a obtained from the outside is stored in the entry of the redundant tag memory 11 where the entry hit signal is active, and the redundant valid bit 12 is set to "1".

【0110】(C−5)ライトヒット 外部からライト要求があり、ヒット信号8がアクティブ
であるとき、即ち要求されるデータがキャッシュメモリ
内に存在する場合、ライトヒットと呼ばれ、キャッシュ
メモリは外部から示されるデータを用いてオーバーライ
トされる。
(C-5) Write hit When there is a write request from the outside and the hit signal 8 is active, that is, when the requested data exists in the cache memory, it is called a write hit, and the cache memory is external. Is overwritten using the data shown in.

【0111】外部から得られるエントリアドレス1bで
選択される特定のエントリの判定論理回路24の出力が
アクティブである場合、外部から入力された1ワードの
データは、ワードセレクタ6を介してデータメモリ10
のうちの、選択されたエントリに書き込まれる。
When the output of the determination logic circuit 24 of the specific entry selected by the entry address 1b obtained from the outside is active, one word data inputted from the outside is passed through the word selector 6 to the data memory 10.
Of the selected entries.

【0112】選択されたエントリの判定論理回路24の
出力がノンアクティブである場合には、2本のエントリ
ヒット信号16の内の1本はアクティブである。そして
冗長データメモリ13のエントリヒット信号16で指定
されるエントリに、ワードセレクタ6を介して外部から
入力された1ワードのデータが書き込まれる。
When the output of the decision logic circuit 24 of the selected entry is non-active, one of the two entry hit signals 16 is active. Then, one word of data input from the outside via the word selector 6 is written in the entry designated by the entry hit signal 16 of the redundant data memory 13.

【0113】(C−6)ライトミス 外部からライト要求があり、ヒット信号8がアクティブ
でないとき、即ち要求されるデータがキャッシュメモリ
内に存在しない場合には、ライトミスと呼ばれる。ライ
トスルー方式が採用されているので、第1実施例と同様
に、キャッシュメモリは何もしない。
(C-6) Write Miss When there is a write request from the outside and the hit signal 8 is not active, that is, when the requested data does not exist in the cache memory, it is called a write miss. Since the write-through method is adopted, the cache memory does nothing as in the first embodiment.

【0114】(C−7)以上のようにして実施例2のキ
ャッシュメモリが動作するので、ポリシリコンフューズ
やレーザによる回路の切断をすることはない。また予め
不良エントリが分かっているので、これを容易に冗長メ
モリに置き換えることができる。さらに、エントリアド
レスのデコード時において、正規メモリへのアクセスが
判定論理回路24によって禁止されるので、余分な電力
が消費されることがない。
(C-7) Since the cache memory of the second embodiment operates as described above, the circuit is not cut off by the polysilicon fuse or the laser. Further, since the defective entry is known in advance, it can be easily replaced with the redundant memory. Further, when decoding the entry address, access to the regular memory is prohibited by the decision logic circuit 24, so that extra power is not consumed.

【0115】(D)実施例3.図4に第1の発明の更に
他の実施例である、キャッシュメモリの内部構成図を示
す。このキャッシュメモリのメモリマッピング方式及び
主記憶更新方式は実施例1と同様である。また、ブロッ
クサイズも実施例1と同様4ワードであり、リードミス
したときには、要求されたアドレスのデータを含む4ワ
ードが主メモリから読み込まれる。
(D) Example 3. FIG. 4 shows an internal configuration diagram of a cache memory which is still another embodiment of the first invention. The memory mapping method and the main memory updating method of this cache memory are the same as those in the first embodiment. The block size is also 4 words as in the first embodiment, and when a read miss occurs, 4 words including the data of the requested address are read from the main memory.

【0116】外部アドレス1は、実施例1と同様、タグ
アドレス1a、エントリアドレス1b、ワードアドレス
1cに分割できる。これらのアドレスの入力先は実施例
1と同様であるが、タグアドレス1aは、更に冗長アド
レス比較器28にも入力する。また、タグメモリ2、バ
リッドビット7、データメモリ10の大きさも実施例1
と同様である。バリッドビット7の指示する意味も実施
例1と同様である。
The external address 1 can be divided into a tag address 1a, an entry address 1b and a word address 1c, as in the first embodiment. The input destination of these addresses is the same as that of the first embodiment, but the tag address 1a is also input to the redundant address comparator 28. Also, the sizes of the tag memory 2, the valid bit 7, and the data memory 10 are the same as those in the first embodiment.
Is the same as. The meaning indicated by the valid bit 7 is also the same as in the first embodiment.

【0117】タグアドレス比較器3も実施例1と同様に
して、外部から入力されたタグアドレス1aとタグメモ
リ2からのタグアドレスを比較する。しかし、その出力
は実施例1とは異なり、タグヒット信号26である。タ
グアドレス1aとタグメモリ2からのタグアドレスが一
致すればタグヒット信号26はアクティブに、一致しな
い場合はノンアクティブにされる。
Similarly to the first embodiment, the tag address comparator 3 also compares the tag address 1a input from the outside with the tag address from the tag memory 2. However, its output is the tag hit signal 26, unlike the first embodiment. If the tag address 1a and the tag address from the tag memory 2 match, the tag hit signal 26 becomes active, and if they do not match, it becomes inactive.

【0118】実施例1及び実施例2と異なり、エントリ
デコーダ4はディスエーブルビット9も判定論理回路2
4も備えていない。エントリデコーダ4はエントリアド
レス1bをデコードし、その結果からタグメモリ2とデ
ータメモリ10の特定のエントリが選択される。
Unlike the first and second embodiments, the entry decoder 4 also disables the disable bit 9 in the decision logic circuit 2.
Not even equipped with 4. The entry decoder 4 decodes the entry address 1b, and a specific entry in the tag memory 2 and the data memory 10 is selected from the result.

【0119】データメモリ10で選択されたエントリに
記憶されているデータのうち、ワードアドレス1cによ
りワードセレクタ6で特定されたワードが、第4マルチ
プレクサ27を介して選択される。
Of the data stored in the entry selected in the data memory 10, the word specified by the word selector 6 by the word address 1c is selected via the fourth multiplexer 27.

【0120】冗長メモリは、ライン方向のみに1ライン
(1エントリ分)ある。1エントリの構成は、実施例1
と同様である。また、実施例1と同様にして、エントリ
レジスタ14には、冗長タグメモリ11と冗長データメ
モリ13に記憶するデータのエントリアドレスが記憶さ
れる。冗長バリッドビット12、使用ビット15の意味
するところは実施例1と同一である。
The redundant memory has one line (one entry) only in the line direction. The structure of one entry is the same as that of the first embodiment.
Is the same as. Further, similar to the first embodiment, the entry register 14 stores the entry address of the data stored in the redundant tag memory 11 and the redundant data memory 13. The meanings of the redundant valid bit 12 and the used bit 15 are the same as in the first embodiment.

【0121】冗長タグメモリ11は冗長タグアドレス比
較器28に接続される。冗長タグアドレス比較器28は
外部からのタグアドレス1aと冗長タグメモリ11内の
タグアドレスとを比較して、冗長タグヒット信号29を
出力する。
The redundant tag memory 11 is connected to the redundant tag address comparator 28. The redundant tag address comparator 28 compares the external tag address 1a with the tag address in the redundant tag memory 11 and outputs a redundant tag hit signal 29.

【0122】エントリアドレス比較器5は、エントリレ
ジスタ14に接続され、外部からのエントリアドレス1
bとエントリレジスタ14からのエントリアドレスを比
較する。比較した結果は、エントリヒット信号16とし
て出力され、第4マルチプレクサ27と第5マルチプレ
クサ30に入力される。
The entry address comparator 5 is connected to the entry register 14 and receives an entry address 1 from the outside.
b and the entry address from the entry register 14 are compared. The result of the comparison is output as the entry hit signal 16 and input to the fourth multiplexer 27 and the fifth multiplexer 30.

【0123】第4マルチプレクサ27は、エントリヒッ
ト信号16に従ってデータメモリ10及び冗長データメ
モリ13の一方を選択する。
The fourth multiplexer 27 selects one of the data memory 10 and the redundant data memory 13 according to the entry hit signal 16.

【0124】第5マルチプレクサ30では、エントリヒ
ット信号16に従ってタグヒット信号26と冗長タグヒ
ット信号29の一方を選択する。
The fifth multiplexer 30 selects one of the tag hit signal 26 and the redundant tag hit signal 29 according to the entry hit signal 16.

【0125】また、このキャッシュメモリは実施例1と
同様に冗長メモリ制御回路22、プログラマブルROM
23を備える。
Further, this cache memory has a redundant memory control circuit 22 and a programmable ROM as in the first embodiment.
23 is provided.

【0126】このように構成されたキャッシュメモリ
は、冗長メモリへの切り換えの為のフューズ等を使用し
ない。不揮発性メモリであるプログラマブルROM23
にあらかじめ記憶した不良エントリを、リセット期間に
エントリレジスタ14に書き込む。そして、通常動作に
おいてエントリレジスタ14の内容を参照し、正規メモ
リと冗長メモリへのアクセスを切り換える。このため、
このキャッシュメモリは、外部からは冗長メモリを使用
しているかどうかを判断できないように(完全良品と同
様に)動作する。具体的には以下のように動作する。
The cache memory thus constructed does not use a fuse or the like for switching to the redundant memory. Programmable ROM 23 which is a non-volatile memory
The defective entry stored in advance is written in the entry register 14 during the reset period. Then, in the normal operation, the contents of the entry register 14 are referred to and the access to the normal memory and the redundant memory is switched. For this reason,
This cache memory operates so that it cannot be judged from the outside whether or not the redundant memory is used (similar to a perfect product). Specifically, it operates as follows.

【0127】(D−1)冗長メモリへの登録 実施例1と同様に、あらかじめ製品出荷の際のテストに
おいて、検出された、不良エントリが冗長メモリ制御回
路22内のプログラマブルROM23に記憶される。
(D-1) Registration in Redundant Memory Similar to the first embodiment, the defective entry detected in advance in the test before shipping the product is stored in the programmable ROM 23 in the redundant memory control circuit 22.

【0128】リセット信号21がアクティブになると、
キャッシュメモリはバリッドビット7、冗長バリッドビ
ット12、使用ビット15をすべて“0”にする。その
後、冗長メモリ制御回路22の制御の下、プログラマブ
ルROM23の内容はエントリレジスタ14に書き込ま
れ、使用ビット15は“1”になる。リセット期間が終
了すると、キャッシュメモリは通常動作(リードミス、
リードヒット等)を開始する。
When the reset signal 21 becomes active,
In the cache memory, the valid bit 7, the redundant valid bit 12, and the used bit 15 are all set to "0". After that, under the control of the redundant memory control circuit 22, the contents of the programmable ROM 23 are written in the entry register 14, and the used bit 15 becomes "1". When the reset period ends, the cache memory operates normally (read miss,
Lead hit, etc.).

【0129】(D−2)ヒット判定 外部アドレス1が入力されると、キャッシュメモリはリ
ード要求またはライト要求に関係なくヒット判定を行な
う。
(D-2) Hit Judgment When the external address 1 is input, the cache memory makes a hit judgment regardless of a read request or a write request.

【0130】入力された外部アドレス1のうち、エント
リアドレス1bはエントリデコーダ4によってデコード
され、特定のエントリが選択される。
Of the input external address 1, the entry address 1b is decoded by the entry decoder 4 and a specific entry is selected.

【0131】実施例3においては、エントリヒット信号
16の内容に関係なく、タグメモリ2のうち選択された
エントリのデータは読み出される。タグアドレス比較器
3では、選択されたエントリのバリッドビット7が
“1”で2つのタグアドレスが一致すればタグヒット信
号26をアクティブにする。その他の場合、即ち選択さ
れたエントリのバリッドビット7が“0”であるために
タグメモリ2の内容が入力されない場合も含めて2つの
タグアドレスが一致しない場合は、タグヒット信号26
をノンアクティブにする。
In the third embodiment, the data of the selected entry in the tag memory 2 is read regardless of the content of the entry hit signal 16. The tag address comparator 3 activates the tag hit signal 26 when the valid bit 7 of the selected entry is "1" and the two tag addresses match. In other cases, that is, when the two tag addresses do not match, including the case where the valid bit 7 of the selected entry is "0" and the contents of the tag memory 2 are not input, the tag hit signal 26
Deactivate.

【0132】一方、エントリアドレス比較器5において
エントリレジスタ14のエントリアドレスとエントリア
ドレス1bとが比較される。使用ビット15が“1”で
あり、2つのエントリアドレスが一致すれば、エントリ
ヒット信号16をアクティブにする。その他の場合、即
ち使用ビット15が“0”であるためにエントリレジス
タ14の内容が入力されない場合も含めて2つのエント
リアドレスが一致しない場合は、ノンアクティブにす
る。
On the other hand, the entry address comparator 5 compares the entry address of the entry register 14 with the entry address 1b. If the used bit 15 is "1" and the two entry addresses match, the entry hit signal 16 is activated. In other cases, that is, in the case where the two entry addresses do not match, including the case where the content of the entry register 14 is not input because the used bit 15 is "0", it is made inactive.

【0133】また、同時に冗長タグメモリ11からのタ
グアドレスと外部から得られたタグアドレス1aとが、
冗長タグアドレス比較器28で比較される。冗長タグア
ドレス比較器28は、冗長バリッドビット12が“1”
であり、2つのタグアドレスが一致すれば、冗長タグヒ
ット信号29をアクティブにする。その他の場合、即ち
冗長バリッドビット12が“0”であるために冗長タグ
メモリ11の内容が入力されない場合も含めて2つのタ
グアドレスが一致しない場合は、ノンアクティブにす
る。
At the same time, the tag address from the redundant tag memory 11 and the tag address 1a obtained from the outside are
The redundant tag address comparator 28 compares them. In the redundant tag address comparator 28, the redundant valid bit 12 is "1".
If the two tag addresses match, the redundant tag hit signal 29 is activated. In other cases, that is, in the case where the two tag addresses do not match, including the case where the content of the redundant tag memory 11 is not input because the redundant valid bit 12 is "0", it is made inactive.

【0134】第5マルチプレクサ30では、エントリヒ
ット信号16がノンアクティブであればタグヒット信号
26、アクティブであれば冗長タグヒット信号29をヒ
ット信号8として出力する。ヒット信号8がアクティブ
であれば「ヒット」に、ノンアクティブであれば「ミ
ス」に、それぞれ対応する。
The fifth multiplexer 30 outputs the tag hit signal 26 when the entry hit signal 16 is inactive, and outputs the redundant tag hit signal 29 as the hit signal 8 when it is active. If the hit signal 8 is active, it corresponds to “hit”, and if it is non-active, it corresponds to “miss”.

【0135】(D−3)リードヒット 外部からリード要求があり、ヒット信号8がアクティブ
であるとき、即ち外部から要求されるデータがキャッシ
ュメモリ内に存在する場合、リードヒットと呼ばれ、外
部から要求されるデータをキャッシュメモリから出力す
る。
(D-3) Read hit When there is a read request from the outside and the hit signal 8 is active, that is, when the data requested from the outside exists in the cache memory, it is called a read hit and is called from the outside. Output the requested data from the cache memory.

【0136】リード要求があると、データメモリ10の
うち、外部から与えられるエントリアドレス1bで選択
される、特定のエントリの4ワードデータが読み出され
る。また冗長データメモリ13の4ワードのデータも読
み出される。
When a read request is issued, 4-word data of a specific entry selected from the externally applied entry address 1b of the data memory 10 is read. Further, 4-word data in the redundant data memory 13 is also read.

【0137】エントリヒット信号16がアクティブの場
合にはそのエントリが不良エントリに相当するので、第
4マルチプレクサ27は冗長データメモリ13から得ら
れるデータを出力する。一方、エントリヒット信号16
がノンアクティブの場合には、そのエントリが不良エン
トリに相当しないので、第4マルチプレクサ27はデー
タメモリ10から得られるデータを出力する。
When the entry hit signal 16 is active, that entry corresponds to a defective entry, so the fourth multiplexer 27 outputs the data obtained from the redundant data memory 13. On the other hand, the entry hit signal 16
Is inactive, the entry does not correspond to a defective entry, so the fourth multiplexer 27 outputs the data obtained from the data memory 10.

【0138】エントリヒット信号16がノンアクティブ
であり、タグヒット信号26がアクティブである場合、
ヒット信号8はアクティブである。そしてデータメモリ
10からの4ワードのデータが第4マルチプレクサ27
で選択され、ワードセレクタ6に出力される。ワードセ
レクタ6では、外部からのワードアドレス1cにより選
択されたデータが外部に出力される。
When the entry hit signal 16 is non-active and the tag hit signal 26 is active,
The hit signal 8 is active. Then, the 4-word data from the data memory 10 is transferred to the fourth multiplexer 27.
Selected by and output to the word selector 6. The word selector 6 outputs the data selected by the word address 1c from the outside.

【0139】エントリヒット信号16がアクティブであ
り、冗長タグヒット信号29がアクティブである場
合、、ヒット信号8はアクティブである。そして冗長デ
ータメモリ13からの4ワードのデータが第4マルチプ
レクサ27で選択され、ワードセレクタ6に出力され
る。ワードセレクタ6では、外部からのワードアドレス
1cにより選択されたデータが外部に出力される。
When the entry hit signal 16 is active and the redundant tag hit signal 29 is active, the hit signal 8 is active. Then, the 4-word data from the redundant data memory 13 is selected by the fourth multiplexer 27 and output to the word selector 6. The word selector 6 outputs the data selected by the word address 1c from the outside.

【0140】(D−4)リードミス 外部からリード要求があり、ヒット信号8がアクティブ
でないとき、即ち外部から要求されるデータがキャッシ
ュメモリ内に存在しない場合、リードミスと呼ばれ、キ
ャッシュメモリは外部から新たに4ワードのデータを入
力する。
(D-4) Read Miss When there is a read request from the outside and the hit signal 8 is not active, that is, when the data requested from the outside does not exist in the cache memory, it is called a read miss and the cache memory is read from the outside. Newly input 4-word data.

【0141】エントリヒット信号16がノンアクティブ
である場合、第4マルチプレクサ27はデータメモリ1
0を選択する。そしてタグヒット信号26がノンアクテ
ィブである場合、ヒット信号8もノンアクティブであ
る。この場合、データメモリ10のうち、エントリアド
レス1bで選択される特定のエントリに、新たに読み込
む4ワードのデータがワードセレクタ6、第4マルチプ
レクサ27を介して記憶される。
When the entry hit signal 16 is non-active, the fourth multiplexer 27 operates in the data memory 1
Select 0. When the tag hit signal 26 is inactive, the hit signal 8 is also inactive. In this case, newly read 4-word data is stored in the specific entry selected by the entry address 1b in the data memory 10 via the word selector 6 and the fourth multiplexer 27.

【0142】この場合、不良エントリには相当しないの
で、外部から得られたタグアドレス1aをタグメモリ2
の選択されるエントリに記憶し、選択されるエントリの
バリッドビット7を“1”にする。
In this case, since it does not correspond to a defective entry, the tag address 1a obtained from the outside is used as the tag memory 2
Stored in the selected entry, and the valid bit 7 of the selected entry is set to "1".

【0143】エントリヒット信号16がアクティブであ
る場合、第4マルチプレクサ27は冗長データメモリ1
3を選択する。そして冗長タグヒット信号29がノンア
クティブである場合、ヒット信号8もノンアクティブで
ある。冗長データメモリ13に、新たに読み込む4ワー
ドのデータがワードセレクタ6、第4マルチプレクサ2
7を介して記憶される。
When the entry hit signal 16 is active, the fourth multiplexer 27 operates in the redundant data memory 1
Select 3. When the redundant tag hit signal 29 is inactive, the hit signal 8 is also inactive. The 4-word data newly read into the redundant data memory 13 is the word selector 6 and the fourth multiplexer 2.
Stored via 7.

【0144】この場合、不良エントリに相当するので、
外部から得られたタグアドレス1aを冗長タグメモリ1
1に記憶し、冗長バリッドビット12を“1”にする。
In this case, since this corresponds to a defective entry,
The tag address 1a obtained from the outside is used as the redundant tag memory 1
The redundant valid bit 12 is set to "1".

【0145】(D−5)ライトヒット 外部からライト要求があり、ヒット信号8がアクティブ
であるとき、即ち要求されるデータがキャッシュメモリ
内に存在する場合、ライトヒットと呼ばれ、キャッシュ
メモリは外部から示されるデータを用いてオーバーライ
トされる。
(D-5) Write hit When there is a write request from the outside and the hit signal 8 is active, that is, when the requested data exists in the cache memory, it is called a write hit, and the cache memory is external. Is overwritten using the data shown in.

【0146】エントリヒット信号16がノンアクティブ
である場合、第4マルチプレクサ27はデータメモリ1
0を選択する。タグヒット信号26がアクティブである
場合、ヒット信号8もアクティブであり、外部から入力
される1ワードのデータは、ワードセレクタ6、第4マ
ルチプレクサ27を介して、データメモリ10のエント
リアドレス1bで選択される特定のエントリに書き込ま
れる。
When the entry hit signal 16 is non-active, the fourth multiplexer 27 operates in the data memory 1
Select 0. When the tag hit signal 26 is active, the hit signal 8 is also active, and 1-word data input from the outside is selected by the entry address 1b of the data memory 10 via the word selector 6 and the fourth multiplexer 27. Will be written to a specific entry.

【0147】エントリヒット信号16がアクティブであ
る場合、第4マルチプレクサ27は冗長データメモリ1
3を選択する。冗長タグヒット信号29がアクティブで
ある場合、ヒット信号8もアクティブであり、外部から
入力される1ワードのデータは、ワードセレクタ6、第
4マルチプレクサ27を介して冗長データメモリ13に
書き込まれる。
When the entry hit signal 16 is active, the fourth multiplexer 27 operates in the redundant data memory 1
Select 3. When the redundant tag hit signal 29 is active, the hit signal 8 is also active, and one word of data input from the outside is written to the redundant data memory 13 via the word selector 6 and the fourth multiplexer 27.

【0148】(D−6)ライトミス 外部からライト要求があり、ヒット信号8がアクティブ
でないとき、即ち要求されるデータがキャッシュメモリ
内に存在しない場合には、ライトミスと呼ばれる。ライ
トスルー方式が採用されているので、第1実施例と同様
に、キャッシュメモリは何もしない。
(D-6) Write Miss When there is a write request from the outside and the hit signal 8 is not active, that is, when the requested data does not exist in the cache memory, it is called a write miss. Since the write-through method is adopted, the cache memory does nothing as in the first embodiment.

【0149】(D−7)以上のようにして実施例3のキ
ャッシュメモリが動作するので、ポリシリコンフューズ
やレーザによる回路の切断をすることはない。また予め
不良エントリが分かっているので、これを容易に冗長メ
モリに置き換えることができる。
(D-7) Since the cache memory of the third embodiment operates as described above, the circuit is not cut by the polysilicon fuse or the laser. Further, since the defective entry is known in advance, it can be easily replaced with the redundant memory.

【0150】(E)実施例4.図5に第3の発明の実施
例である、キャッシュメモリの内部構成図を示す。この
キャッシュメモリのメモリマッピング方式及び主記憶更
新方式は実施例1と同様である。また、ブロックサイズ
も実施例1と同様4ワードであり、リードミスしたとき
には、要求されたアドレスのデータを含む4ワードが主
メモリから読み込まれる。
(E) Example 4. FIG. 5 shows an internal configuration diagram of a cache memory which is an embodiment of the third invention. The memory mapping method and the main memory updating method of this cache memory are the same as those in the first embodiment. The block size is also 4 words as in the first embodiment, and when a read miss occurs, 4 words including the data of the requested address are read from the main memory.

【0151】外部アドレス1は、実施例1と同様、タグ
アドレス1a、エントリアドレス1b、ワードアドレス
1cに分割できる。タグアドレス1a及びワードアドレ
ス1cの入力先は実施例3と同様であるが、エントリア
ドレス1bは、冗長アドレス比較器31、冗長エントリ
メモリ32、エントリデコーダ4に入力する。タグメモ
リ2、バリッドビット7、データメモリ10の大きさは
実施例1と同様である。バリッドビット7の指示する意
味も実施例1と同様である。
The external address 1 can be divided into a tag address 1a, an entry address 1b and a word address 1c, as in the first embodiment. The input destinations of the tag address 1a and the word address 1c are the same as in the third embodiment, but the entry address 1b is input to the redundant address comparator 31, the redundant entry memory 32, and the entry decoder 4. The sizes of the tag memory 2, the valid bit 7, and the data memory 10 are the same as those in the first embodiment. The meaning indicated by the valid bit 7 is also the same as in the first embodiment.

【0152】タグアドレス比較器3は実施例3と同様に
して、タグアドレス1aとタグメモリ2からのタグアド
レスを比較し、タグヒット信号26を出力する。タグア
ドレス1aとタグメモリ2からのタグアドレスが一致す
れば、タグヒット信号26はアクティブに、一致しない
場合はノンアクティブにされる。
As in the third embodiment, the tag address comparator 3 compares the tag address 1a with the tag address from the tag memory 2 and outputs the tag hit signal 26. If the tag address 1a and the tag address from the tag memory 2 match, the tag hit signal 26 becomes active, and if they do not match, it becomes inactive.

【0153】エントリデコーダ4の内部にはチェックビ
ット33が各エントリに対して1ビットずつある。よっ
てその大きさは1ビット×256エントリである。エン
トリデコーダ4でデコードされた結果から、タグメモリ
2とデータメモリ10のうちの特定のエントリが選択さ
れる。
Inside the entry decoder 4, there is one check bit 33 for each entry. Therefore, its size is 1 bit × 256 entries. A specific entry in the tag memory 2 and the data memory 10 is selected from the result decoded by the entry decoder 4.

【0154】実施例1乃至実施例3とは異なり、エント
リレジスタ14、使用ビット15、エントリアドレス比
較器5は備えられていない。
Unlike the first to third embodiments, the entry register 14, the used bit 15, and the entry address comparator 5 are not provided.

【0155】冗長メモリは、ライン方向のみに1ライン
(1エントリ分)ある。冗長エントリメモリ32(8ビ
ット)、冗長タグメモリ11(20ビット)、冗長バリ
ッドビット12(1ビット)、冗長データメモリ13
(128ビット)で1エントリを構成する。
The redundant memory has one line (one entry) only in the line direction. Redundant entry memory 32 (8 bits), redundant tag memory 11 (20 bits), redundant valid bit 12 (1 bit), redundant data memory 13
One entry is composed of (128 bits).

【0156】冗長タグメモリ11と冗長エントリメモリ
32は、それぞれタグアドレス、エントリアドレスを記
憶する。冗長バリッドビット12の意味するところは実
施例1と同一である。
The redundant tag memory 11 and the redundant entry memory 32 store a tag address and an entry address, respectively. The meaning of the redundant valid bit 12 is the same as that of the first embodiment.

【0157】冗長アドレス比較器31は、冗長メモリに
接続され、一方に外部から得られたタグアドレス1a及
びエントリアドレス1bを入力し、他方に冗長タグメモ
リ11からのタグアドレスと冗長エントリメモリ32か
らのエントリアドレスを入力して比較し、冗長アドレス
ヒット信号34を出力する。これらを比較した結果が一
致すれば冗長アドレスヒット信号34をアクティブに、
不一致であればノンアクティブにして、冗長データメモ
リ13にアクセスする。
The redundant address comparator 31 is connected to the redundant memory, inputs the tag address 1a and the entry address 1b obtained from the outside to one side, and inputs the tag address from the redundant tag memory 11 and the redundant entry memory 32 to the other side. The entry address is input and compared, and the redundant address hit signal 34 is output. If the results of comparing these match, the redundant address hit signal 34 is activated,
If they do not match, they are made inactive and the redundant data memory 13 is accessed.

【0158】タグヒット信号26と冗長アドレスヒット
信号34とは、第2OR回路35に入力し、ここで論理
和をとってヒット信号8を生成する。ヒット信号8がア
クティブであればヒット(キャッシュメモリ内に要求さ
れたデータが存在する)を示し、ノンアクティブであれ
ばミス(キャッシュメモリ内に要求されたデータが存在
しない)を示す。
The tag hit signal 26 and the redundant address hit signal 34 are input to the second OR circuit 35, where they are logically summed to generate the hit signal 8. If the hit signal 8 is active, it indicates a hit (the requested data exists in the cache memory), and if it is non-active, it indicates a miss (the requested data does not exist in the cache memory).

【0159】また、このキャッシュメモリは実施例1と
同様に冗長メモリ制御回路22、プログラマブルROM
23を備える。
Further, this cache memory includes a redundant memory control circuit 22 and a programmable ROM as in the first embodiment.
23 is provided.

【0160】このように構成されたキャッシュメモリ
は、冗長メモリへの切り換えの為のフューズ等を使用し
ない。リセット期間に、エントリデコーダ4の内部のチ
ェックビット33のうち、不揮発性メモリであるプログ
ラマブルROM23にあらかじめ記憶した不良エントリ
に対応したエントリにおいて“1”を書き込む。そし
て、通常動作においてチェックビット33を参照して正
規メモリと冗長メモリへのアクセスを切り換える。
The cache memory thus constructed does not use a fuse or the like for switching to the redundant memory. During the reset period, of the check bits 33 inside the entry decoder 4, "1" is written in the entry corresponding to the defective entry previously stored in the programmable ROM 23 which is a non-volatile memory. Then, in normal operation, the access to the normal memory and the redundant memory is switched by referring to the check bit 33.

【0161】第4マルチプレクサ27は、チェックビッ
ト33に従ってデータメモリ10及び冗長データメモリ
13の一方を選択する。
The fourth multiplexer 27 selects one of the data memory 10 and the redundant data memory 13 according to the check bit 33.

【0162】不良エントリは常に同じ冗長メモリに対応
するわけではなく、不良アドレスの数が冗長メモリの数
を越えても、リードミスの際にオーバーライトして冗長
メモリに切り換えることができる。当然ながら、実施例
4のキャッシュメモリは、外部からは冗長メモリを使用
しているかどうかを判断できないように(完全良品と同
様に)動作する。具体的には以下のように動作する。
A defective entry does not always correspond to the same redundant memory, and even if the number of defective addresses exceeds the number of redundant memories, it is possible to overwrite and switch to the redundant memory when a read miss occurs. As a matter of course, the cache memory of the fourth embodiment operates so that it cannot be judged from the outside whether or not the redundant memory is used (similar to a perfectly good product). Specifically, it operates as follows.

【0163】(E−1)冗長メモリへの登録 実施例1と同様に、あらかじめ製品出荷の際のテストに
おいて、不良エントリが冗長メモリ制御回路22内のプ
ログラマブルROM23に記憶される。
(E-1) Registration in Redundant Memory Similar to the first embodiment, a defective entry is stored in the programmable ROM 23 in the redundant memory control circuit 22 in advance in a test before shipping the product.

【0164】リセット信号21がアクティブになると、
キャッシュメモリはバリッドビット7、チェックビット
33、冗長バリッドビット12をすべて“0”にする。
その後、冗長メモリ制御回路22はプログラマブルRO
M23の内容から不良エントリを判断し、そのエントリ
のチェックビット33を“1”にする。リセット期間が
終了すると、キャッシュメモリは通常動作(リードミ
ス、リードヒット等)を開始する。
When the reset signal 21 becomes active,
The cache memory sets the valid bit 7, the check bit 33, and the redundant valid bit 12 to "0".
After that, the redundant memory control circuit 22 executes the programmable RO.
The defective entry is judged from the contents of M23, and the check bit 33 of the entry is set to "1". When the reset period ends, the cache memory starts normal operation (read miss, read hit, etc.).

【0165】(E−2)ヒット判定 外部アドレス1が入力されると、キャッシュメモリはリ
ード要求またはライト要求に関係なくヒット判定を行な
う。
(E-2) Hit Determination When the external address 1 is input, the cache memory makes a hit determination regardless of a read request or a write request.

【0166】外部アドレス1が入力されると、エントリ
アドレス1bがエントリデコーダ4に与えられ、ここで
デコードされて特定のエントリが選択される。
When the external address 1 is input, the entry address 1b is given to the entry decoder 4 where it is decoded and a specific entry is selected.

【0167】選択されたエントリのチェックビット33
が“0”である場合、製品出荷の際のテストでフェイル
していないエントリに相当する。よって選択されたエン
トリでメモリ2のデータが読み出される。
Check bit 33 of selected entry
Is 0, it corresponds to an entry that has not failed in the test before shipping the product. Therefore, the data of the memory 2 is read by the selected entry.

【0168】この場合には、タグアドレス比較器3で
は、タグメモリ2から読み出されたタグアドレスと外部
から入力されたタグアドレス1aを比較する。選択され
たエントリのバリッドビット7が“1”であり、2つの
タグアドレスが一致した場合には、タグアドレス比較器
3はタグヒット信号26をアクティブにする。その他の
場合、即ち選択されたエントリのバリッドビット7が
“0”である場合を含めて2つのタグアドレスが一致し
ない場合には、タグヒット信号26をノンアクティブに
する。
In this case, the tag address comparator 3 compares the tag address read from the tag memory 2 with the tag address 1a input from the outside. When the valid bit 7 of the selected entry is "1" and the two tag addresses match, the tag address comparator 3 activates the tag hit signal 26. In other cases, that is, in the case where the two tag addresses do not match, including the case where the valid bit 7 of the selected entry is "0", the tag hit signal 26 is made non-active.

【0169】選択されたエントリのチェックビット33
が“0”である場合、冗長アドレス比較器31には冗長
エントリメモリ32、冗長タグメモリ11の内容が入力
されない。よって冗長アドレスヒット信号34はノンア
クティブとなる。従って、第2OR回路35から出力さ
れるヒット信号8は、タグヒット信号26がアクティブ
であればアクティブ、タグヒット信号26がノンアクテ
ィブであればノンアクティブとなる。
Check bit 33 of selected entry
Is 0, the contents of the redundant entry memory 32 and the redundant tag memory 11 are not input to the redundant address comparator 31. Therefore, the redundant address hit signal 34 becomes non-active. Therefore, the hit signal 8 output from the second OR circuit 35 is active when the tag hit signal 26 is active, and nonactive when the tag hit signal 26 is nonactive.

【0170】選択されたエントリのチェックビット33
が“1”である場合、製品出荷の際のテストでフェイル
した不良エントリに相当し、冗長メモリがアクティブに
なる。エントリデコーダ4はチェックビット33によ
り、タグメモリ2のどのエントリもアクティブにしな
い。よってタグ比較器3にはタグメモリ2の内容が入力
されず、故にタグヒット信号26はノンアクティブにな
る。
Check bit 33 of selected entry
Is "1", it corresponds to a defective entry that failed in the test before shipping the product, and the redundant memory becomes active. Due to the check bit 33, the entry decoder 4 does not activate any entry in the tag memory 2. Therefore, the contents of the tag memory 2 are not input to the tag comparator 3, and the tag hit signal 26 becomes non-active.

【0171】冗長アドレス比較器31の出力である冗長
アドレスヒット信号34がアクティブである場合には、
ヒット信号8はアクティブになる。冗長アドレスヒット
信号34がアクティブでない場合には、ヒット信号8は
ノンアクティブになる。
When the redundant address hit signal 34 output from the redundant address comparator 31 is active,
The hit signal 8 becomes active. When the redundant address hit signal 34 is not active, the hit signal 8 becomes non-active.

【0172】(E−3)リードヒット 外部からリード要求があり、ヒット信号8がアクティブ
であるとき、即ち外部から要求されるデータがキャッシ
ュメモリ内に存在する場合、リードヒットと呼ばれ、外
部から要求されるデータをキャッシュメモリから出力す
る。
(E-3) Read hit When there is a read request from the outside and the hit signal 8 is active, that is, when the data requested from the outside exists in the cache memory, it is called a read hit and is called from the outside. Output the requested data from the cache memory.

【0173】外部からのエントリアドレス1bで選択さ
れる、特定のエントリのチェックビット33が“0”で
ある場合、第4マルチプレクサ27はデータメモリ10
を選択する。このため、データメモリ10から4ワード
のデータが、第4マルチプレクサ27を介してワードセ
レクタ6に読み出され、ワードアドレス1cにより選択
された1ワードが外部に出力される。
When the check bit 33 of a particular entry selected by the entry address 1b from the outside is "0", the fourth multiplexer 27 determines the data memory 10
Select. Therefore, 4-word data is read from the data memory 10 to the word selector 6 via the fourth multiplexer 27, and one word selected by the word address 1c is output to the outside.

【0174】選択されたエントリのチェックビット33
が“1”である場合、第4マルチプレクサ27は冗長デ
ータメモリ13を選択する。そして冗長アドレスヒット
信号34がアクティブである場合、これが指定するエン
トリから4ワードのデータが第4マルチプレクサ27を
介してワードセレクタ6に出力される。ワードセレクタ
6では、ワードアドレス1cにより選択される1ワード
を外部に出力する。
Check bit 33 of selected entry
Is “1”, the fourth multiplexer 27 selects the redundant data memory 13. When the redundant address hit signal 34 is active, 4-word data is output from the entry designated by the redundant address hit signal 34 to the word selector 6 via the fourth multiplexer 27. The word selector 6 outputs one word selected by the word address 1c to the outside.

【0175】(E−4)リードミス 外部からリード要求があり、ヒット信号8がアクティブ
でないとき、即ち外部から要求されるデータがキャッシ
ュメモリ内に存在しない場合、リードミスと呼ばれ、キ
ャッシュメモリは外部(主に主メモリ)から新たに4ワ
ードのデータを入力する。
(E-4) Read Miss When there is a read request from the outside and the hit signal 8 is not active, that is, when the data requested from the outside does not exist in the cache memory, it is called a read miss and the cache memory is 4 words of data are newly input from the main memory).

【0176】外部から与えられたエントリアドレス1b
で選択される特定のエントリのチェックビット33が
“0”である場合、第4マルチプレクサ27はデータメ
モリ10を選択し、新たに読み込む4ワードのデータは
第4マルチプレクサ27を介してデータメモリ10の選
択されたエントリに記憶される。
Entry address 1b given from the outside
When the check bit 33 of the specific entry selected in step 4 is “0”, the fourth multiplexer 27 selects the data memory 10, and the newly read 4-word data is stored in the data memory 10 via the fourth multiplexer 27. It is stored in the selected entry.

【0177】この場合、不良エントリには相当しないの
で、外部から得られたタグアドレス1aをタグメモリ2
の選択されるエントリに記憶し、選択されるエントリの
バリッドビット7を“1”にする。
In this case, since it does not correspond to a defective entry, the tag address 1a obtained from the outside is used as the tag memory 2
Stored in the selected entry, and the valid bit 7 of the selected entry is set to "1".

【0178】選択されたエントリのチェックビット33
が“1”である場合、不良エントリに相当する。冗長ア
ドレスヒット信号34がノンアクティブである場合、第
4マルチプレクサ27は冗長データメモリ13を選択す
る。新たに読み込む4ワードのデータは、第4マルチプ
レクサ27を介して冗長データメモリ13に記憶され
る。そして冗長タグメモリ11に外部からのタグアドレ
ス1aを記憶し、冗長バリッドビット12を“1”にす
る。
Check bit 33 of selected entry
Is "1", it corresponds to a defective entry. When the redundant address hit signal 34 is non-active, the fourth multiplexer 27 selects the redundant data memory 13. The newly read 4-word data is stored in the redundant data memory 13 via the fourth multiplexer 27. Then, the tag address 1a from the outside is stored in the redundant tag memory 11, and the redundant valid bit 12 is set to "1".

【0179】冗長メモリに既にデータが書かれている場
合でも、選択されたエントリのチェックビット33が
“1”であり、冗長アドレスヒット信号34がノンアク
ティブであれば、上述の様にして新たに外部から入力さ
れた4ワードのデータ、タグアドレス1a、エントリア
ドレス1bが冗長メモリに上書きされて、該当するエン
トリの予備回路として用いられる。
Even if data is already written in the redundant memory, if the check bit 33 of the selected entry is "1" and the redundant address hit signal 34 is inactive, a new data is newly added as described above. The 4-word data, tag address 1a, and entry address 1b input from the outside are overwritten in the redundant memory and used as a spare circuit for the corresponding entry.

【0180】つまり、チェックビット33において、リ
セット期間中にプログラマブルROM23の内容から
“1”とされたエントリが複数であっても、冗長メモリ
は少なくとも1エントリあれば足りる。
That is, in the check bit 33, even if there are a plurality of entries which are set to "1" from the contents of the programmable ROM 23 during the reset period, at least one redundant memory is sufficient.

【0181】例えば、リセット期間中に、256個ある
エントリのうち、第1及び第2のエントリにおいて、チ
ェックビット33が“1”であり、先ず第1のエントリ
にリードアクセスされたとする。この時点では、冗長メ
モリには何もデータは記憶されていない。そこで冗長メ
モリにおいてリードミスが生じ、冗長メモリには新たに
データが書き込まれる。
For example, it is assumed that the check bit 33 is “1” in the first and second entries of the 256 entries during the reset period, and the first entry is first read-accessed. At this point, no data is stored in the redundant memory. Therefore, a read miss occurs in the redundant memory, and new data is written in the redundant memory.

【0182】次にもう一度、第1のエントリにリードア
クセスされた場合には、冗長タグアドレス11と冗長エ
ントリメモリ32が、外部からのタグアドレス1aとエ
ントリアドレス1bと一致した場合に冗長データメモリ
13のデータが出力される。
Then, when the first entry is read-accessed once again, the redundant tag address 11 and the redundant entry memory 32 coincide with the external tag address 1a and the entry address 1b. Data is output.

【0183】この後、第2のエントリにリードアクセス
された場合、このエントリのチェックビット33は
“1”であるので、冗長アドレス比較器31において外
部アドレスと比較される。しかし、エントリアドレスが
異なるために、リードミスとなる。この場合には第2の
エントリのアドレスが冗長メモリに上書きされることに
なる。
After that, when the second entry is read-accessed, the check bit 33 of this entry is "1", so that the redundant address comparator 31 compares it with the external address. However, since the entry addresses are different, a read miss will occur. In this case, the address of the second entry will be overwritten in the redundant memory.

【0184】(E−5)ライトヒット 外部からライト要求があり、ヒット信号8がアクティブ
であるとき、即ち要求されるデータがキャッシュメモリ
内に存在する場合、ライトヒットと呼ばれ、キャッシュ
メモリは外部から示されるデータを用いてオーバーライ
トされる。
(E-5) Write hit When there is a write request from the outside and the hit signal 8 is active, that is, when the requested data exists in the cache memory, it is called a write hit, and the cache memory is external. Is overwritten using the data shown in.

【0185】エントリアドレス1bで選択される特定の
エントリのチェックビット33が“0”である場合、第
4マルチプレクサ27はデータメモリ10を選択し、外
部から入力された1ワードのデータは、ワードセレクタ
6と第4マルチプレクサ27を介してデータメモリ10
の選択されたエントリに書き込まれる。
When the check bit 33 of the specific entry selected by the entry address 1b is "0", the fourth multiplexer 27 selects the data memory 10, and the 1-word data input from the outside is the word selector. 6 and the fourth multiplexer 27 through the data memory 10
Written to the selected entry of.

【0186】選択されたエントリのチェックビット33
が“1”である場合、第4マルチプレクサ27は冗長デ
ータメモリ13を選択する。り、冗長アドレスヒット信
号34がアクティブであれば、ワードセレクタ6と第4
マルチプレクサ27を介して、外部から入力された1ワ
ードのデータが冗長データメモリ13に書き込まれる。
Check bit 33 of selected entry
Is “1”, the fourth multiplexer 27 selects the redundant data memory 13. If the redundant address hit signal 34 is active, the word selector 6 and the fourth
One word of data input from the outside is written into the redundant data memory 13 via the multiplexer 27.

【0187】(E−6)ライトミス 外部からライト要求があり、ヒット信号8がアクティブ
でないとき、即ち要求されるデータがキャッシュメモリ
内に存在しない場合には、ライトミスと呼ばれる。ライ
トスルー方式が採用されているので、第1実施例と同様
に、キャッシュメモリは何もしない。
(E-6) Write Miss When there is a write request from the outside and the hit signal 8 is not active, that is, when the requested data does not exist in the cache memory, it is called a write miss. Since the write-through method is adopted, the cache memory does nothing as in the first embodiment.

【0188】(E−7)以上のようにして実施例4のキ
ャッシュメモリが動作するので、ポリシリコンフューズ
やレーザによる回路の切断をすることはない。また予め
不良エントリが分かっているので、これを容易に冗長メ
モリに置き換えることができる。
(E-7) Since the cache memory of the fourth embodiment operates as described above, the circuit is not cut by the polysilicon fuse or the laser. Further, since the defective entry is known in advance, it can be easily replaced with the redundant memory.

【0189】また、アドレスのデコード時において、正
規メモリへのアクセスがチェックビット33によって禁
止されるので、余分な電力が消費されることがない。
Further, when the address is decoded, access to the regular memory is prohibited by the check bit 33, so that extra power is not consumed.

【0190】更に、チェックビット33を参照して冗長
メモリをアクセスするので、冗長メモリの数が不良エン
トリの数より少なくても、冗長メモリを上書きして使用
することができる。
Furthermore, since the redundant memory is accessed by referring to the check bit 33, the redundant memory can be overwritten and used even if the number of redundant memories is smaller than the number of defective entries.

【0191】なお、冗長メモリの数が不良エントリの数
より少ないことにより、キャッシュメモリの記憶容量が
等価的に減少したことになる。このため、キャッシュメ
モリのヒット率は若干低下するものの、通常は記憶容量
に比較すると不良エントリの数は非常に少ないので、実
際上問題にはならない。
Since the number of redundant memories is smaller than the number of defective entries, the storage capacity of the cache memory is equivalently reduced. Therefore, although the hit rate of the cache memory is slightly lowered, the number of defective entries is usually very small as compared with the storage capacity, so that there is no practical problem.

【0192】[0192]

【発明の効果】第1の発明によれば、レーザトリミング
等の装置を使用する必要なく故障回路と予備回路を書き
換えることができる。また、充分なメモリテストを行
い、短いリセット期間中に故障回路と予備回路を置き換
えることができる。
According to the first aspect of the present invention, the fault circuit and the spare circuit can be rewritten without using a device such as laser trimming. It is also possible to perform a sufficient memory test and replace the faulty circuit and the spare circuit during a short reset period.

【0193】第2の発明によれば、レーザトリミング等
の装置を使用する必要なく故障回路と予備回路を置き換
えることができる。また、充分なメモリテストを行い、
短いリセット期間中に故障回路と予備回路を置き換える
ことができる。また、不良エントリ禁止手段により、エ
ントリアドレスのデコード時にタグメモリ、データメモ
リへのアクセスを禁止することができるので、余分な電
力が使用されることがない。
According to the second invention, it is possible to replace the defective circuit with the spare circuit without using a device such as laser trimming. Also, perform a sufficient memory test,
The faulty circuit and the spare circuit can be replaced during a short reset period. Further, since the defective entry prohibiting means can prohibit access to the tag memory and the data memory at the time of decoding the entry address, extra power is not used.

【0194】第3の発明によれば、レーザトリミング等
の装置を使用する必要なく故障回路と予備回路を置き換
えることができる。また、充分なメモリテストを行い、
短いリセット期間中に故障回路と予備回路を置き換える
ことができる。また、不良エントリ禁止手段によりエン
トリアドレスのデコード時にタグメモリ、データメモリ
へのアクセスを禁止することができるので、余分な電力
が使用されることがない。また、不良エントリ禁止手段
を参照して予備回路をアクセスするので、予備回路の数
が故障回路の数より少なくても、キャッシュメモリの性
能(ヒット率)は若干低下するが、予備回路を上書きし
て使用できる。
According to the third invention, the fault circuit and the spare circuit can be replaced without using a device such as laser trimming. Also, perform a sufficient memory test,
The faulty circuit and the spare circuit can be replaced during a short reset period. Further, since the defective entry prohibiting means can prohibit access to the tag memory and the data memory at the time of decoding the entry address, extra power is not used. Further, since the spare circuit is accessed by referring to the defective entry prohibiting means, even if the number of spare circuits is smaller than the number of faulty circuits, the cache memory performance (hit rate) is slightly lowered, but the spare circuits are overwritten. Can be used.

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

【図1】本発明の実施例1のキャッシュメモリを示す内
部構成図である。
FIG. 1 is an internal configuration diagram showing a cache memory according to a first embodiment of the present invention.

【図2】本発明の実施例2のキャッシュメモリを示す内
部構成図である。
FIG. 2 is an internal configuration diagram showing a cache memory according to a second embodiment of the present invention.

【図3】判定論理回路24の構成を示す回路図である。FIG. 3 is a circuit diagram showing a configuration of a decision logic circuit 24.

【図4】本発明の実施例3のキャッシュメモリを示す内
部構成図である。
FIG. 4 is an internal configuration diagram showing a cache memory according to a third embodiment of the present invention.

【図5】本発明の実施例4のキャッシュメモリを示す内
部構成図である。
FIG. 5 is an internal configuration diagram showing a cache memory according to a fourth embodiment of the present invention.

【図6】従来の技術のキャッシュメモリを示す内部構成
図である。
FIG. 6 is an internal configuration diagram showing a conventional cache memory.

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

1 アドレス 1a タグアドレス 1b エントリアドレス 2 タグメモリ 5 エントリアドレス比較器 9 ディスエーブルビット 10 データメモリ 11 冗長タグメモリ 13 冗長データメモリ 14 エントリレジスタ 23 プログラマブルROM 24 判定論理回路 32 冗長エントリメモリ 33 チェックビット 1 Address 1a Tag Address 1b Entry Address 2 Tag Memory 5 Entry Address Comparator 9 Disable Bit 10 Data Memory 11 Redundant Tag Memory 13 Redundant Data Memory 14 Entry Register 23 Programmable ROM 24 Judgment Logic Circuit 32 Redundant Entry Memory 33 Check Bit

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成5年2月15日[Submission date] February 15, 1993

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0026[Correction target item name] 0026

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0026】一方、エントリアドレス比較器5において
エントリレジスタ14の各エントリアドレスとエントリ
アドレス1bとが比較される。そして、使用ビット15
が“1”であり、2つのエントリアドレスが一致すれ
ば、エントリヒット信号16をアクティブにする。その
他の場合、即ち使用ビット15が“0”である場合を含
め、2つのエントリアドレスが一致しない場合はノンア
クティブにする。
On the other hand, the entry address comparator 5 compares each entry address of the entry register 14 with the entry address 1b. And used bit 15
Is "1" and the two entry addresses match, the entry hit signal 16 is activated. Otherwise, i.e. including the case using bit 15 Ru der "0", two entries address If no match to the non-active.

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0028[Correction target item name] 0028

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0028】この場合には、タグアドレス比較器3で
は、タグメモリ2から読み出されたタグアドレスと外部
から入力され第1マルチプレクサ18を介して到達した
タグアドレス1aとを比較する。選択されたエントリの
バリッドビット7が“1”であり、2つのタグアドレス
が一致した場合には、タグアドレス比較器3はヒット信
号8をアクティブにする。その他の場合、即ち選択され
たエントリのバリッドビット7が“0”である場合を含
め、2つのタグアドレスが一致しない場合には、ヒット
信号8をノンアクティブにする。
In this case, the tag address comparator 3 compares the tag address read from the tag memory 2 with the tag address 1a input from the outside and arriving via the first multiplexer 18. When the valid bit 7 of the selected entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. Otherwise, i.e. including if valid bit 7 is Ru der "0" of the selected entry, the two tag addresses when they do not match, the hit signal 8 non-active.

【手続補正3】[Procedure 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0030[Name of item to be corrected] 0030

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0030】この場合には、タグアドレス比較器3で
は、冗長タグメモリ11からのタグアドレスと第1マル
チプレクサ18を介して外部から入力されたタグアドレ
ス1aとを比較する。該当するエントリの冗長バリッド
ビット12が“1”であり、2つのタグアドレスが一致
した場合には、タグアドレス比較器3はヒット信号8を
アクティブにする。その他の場合、即ち該当するエント
リの冗長バリッドビット12が“0”である場合を含
め、2つのタグアドレスが一致しない場合には、ヒット
信号8をノンアクティブにする。
In this case, the tag address comparator 3 compares the tag address from the redundant tag memory 11 with the tag address 1a input from the outside via the first multiplexer 18. When the redundant valid bit 12 of the corresponding entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. Otherwise, i.e. appropriate including cases redundant valid bit 12 is Ru der "0" of the entry, two tag addresses when they do not match, the hit signal 8 non-active.

【手続補正4】[Procedure amendment 4]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0056[Correction target item name] 0056

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0056】タグアドレス比較器3はヒット信号8を出
力する。外部から入力されたタグアドレス1aと、タグ
メモリ2から得られたタグアドレスとを比較し、両者が
一致すればヒット信号8をアクティブにする。一致しな
い場合はヒット信号8をノンアクティブにする。
The tag address comparator 3 outputs a hit signal 8. The tag address 1a input from the outside is compared with the tag address obtained from the tag memory 2, and if they match, the hit signal 8 is activated. If they do not match, the hit signal 8 is made inactive.

【手続補正5】[Procedure Amendment 5]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0071[Correction target item name] 0071

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0071】一方、エントリアドレス比較器5において
エントリレジスタ14の各エントリアドレスとエントリ
アドレス1bとが比較される。使用ビット15が“1”
であり、2つのエントリアドレスが一致すれば、エント
リヒット信号16をアクティブにする。その他の場合、
即ち使用ビット15が“0”である場合も含め、2つの
エントリアドレスが一致しない場合にはノンアクティブ
にする。
On the other hand, the entry address comparator 5 compares each entry address of the entry register 14 with the entry address 1b. Used bit 15 is "1"
If the two entry addresses match, the entry hit signal 16 is activated. Otherwise,
That use bit 15 is "0" Ru der case including two entry address is non-active when they do not match.

【手続補正6】[Procedure correction 6]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0073[Correction target item name] 0073

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0073】この場合には、タグアドレス比較器3で
は、タグメモリ2から読み出されたタグアドレスと外部
から入力されたタグアドレス1aとを比較する。選択さ
れたエントリのバリッドビット7が“1”であり、2つ
のタグアドレスが一致した場合には、タグアドレス比較
器3はヒット信号8をアクティブにする。その他の場
合、即ちバリッドビット7が“0”である場合も含め、
2つのタグアドレスが一致しない場合には、ヒット信号
8をノンアクティブにする。
In this case, the tag address comparator 3 compares the tag address read from the tag memory 2 with the tag address 1a input from the outside. When the valid bit 7 of the selected entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. In other cases, that is the valid bit 7 is "0", including Der Ru If,
If the two tag addresses do not match, the hit signal 8 is made inactive.

【手続補正7】[Procedure Amendment 7]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0075[Correction target item name] 0075

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0075】この場合には、タグアドレス比較器3で
は、冗長タグメモリ11からのタグアドレスと外部から
入力されたタグアドレス1aとを比較する。該当するエ
ントリの冗長バリッドビット12が“1”であり、2つ
のタグアドレスが一致した場合には、タグアドレス比較
器3はヒット信号8をアクティブにする。その他の場
合、即ち該当するエントリの冗長バリッドビット12が
“0”である場合も含め、2つのタグアドレスが一致し
ない場合には、ヒット信号8をノンアクティブにする。
In this case, the tag address comparator 3 compares the tag address from the redundant tag memory 11 with the tag address 1a input from the outside. When the redundant valid bit 12 of the corresponding entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. Otherwise, i.e. corresponding redundant valid bit 12 of the entry including "0" der Ru If, two tag addresses when they do not match, the hit signal 8 non-active.

【手続補正8】[Procedure Amendment 8]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0099[Correction target item name] 0099

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0099】一方、エントリアドレス比較器5において
エントリレジスタ14の各エントリアドレスとエントリ
アドレス1bとが比較される。そして、使用ビット15
が“1”であり、2つのエントリアドレスが一致した場
合には、エントリヒット信号16をアクティブにする。
その他の場合、即ち使用ビット15が“0”である場
も含め、2つのエントリアドレスが一致しない場合に
は、ノンアクティブにする。
On the other hand, the entry address comparator 5 compares each entry address of the entry register 14 with the entry address 1b. And used bit 15
Is "1" and the two entry addresses match, the entry hit signal 16 is activated.
Otherwise, i.e. including the use bit 15 is "0" Ru der if, when the two entries addresses do not match, the non-active.

【手続補正9】[Procedure Amendment 9]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0101[Correction target item name] 0101

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0101】この場合には、タグアドレス比較器3で
は、タグメモリ2から読み出されたタグアドレスと外部
から入力されたタグアドレス1aとを比較する。選択さ
れたエントリのバリッドビット7が“1”であり、2つ
のタグアドレスが一致した場合には、タグアドレス比較
器3はヒット信号8をアクティブにする。その他の場
合、即ち選択されたエントリのバリッドビット7が
“0”である場合も含め、2つのタグアドレスが一致し
ない場合には、ヒット信号8をノンアクティブにする。
In this case, the tag address comparator 3 compares the tag address read from the tag memory 2 with the tag address 1a input from the outside. When the valid bit 7 of the selected entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. Otherwise, i.e. including if the valid bit 7 is Ru der "0" of the selected entry, if the two tag addresses do not match, the hit signal 8 non-active.

【手続補正10】[Procedure Amendment 10]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0102[Correction target item name] 0102

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0102】選択されたエントリの判定論理回路24が
ノンアクティブである場合、即ち第1OR回路25によ
り演算されたエントリヒット信号16のORがアクティ
ブである場合(つまりそのエントリが冗長メモリに登録
されている場合)、製品出荷の際のテストでフェイルし
た不良エントリに相当する。この場合、タグメモリ2か
らデータは読み出されない。そして2本のエントリヒッ
ト信号16のうちのいずれか1本は必ずアクティブとな
っている。よって冗長タグメモリ11のうち、アクティ
ブなエントリヒット信号16に対応するエントリのデー
タが読み出される。
[0102] The decision logic circuit 24 of the selected entry when a non-active, i.e. if the OR is an entry hit signal 16 calculated by the 1OR circuit 25 is active (that is, the entry is registered in the redundant memory If it exists ), it corresponds to the defective entry that failed in the test before shipping the product. In this case, no data is read from the tag memory 2. Then, one of the two entry hit signals 16 is always active. Therefore, the data of the entry corresponding to the active entry hit signal 16 in the redundant tag memory 11 is read.

【手続補正11】[Procedure Amendment 11]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0103[Correction target item name] 0103

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0103】この場合には、タグアドレス比較器3で
は、冗長タグメモリ11からのタグアドレスと外部から
入力されたタグアドレス1aとを比較する。該当するエ
ントリの冗長バリッドビット12が“1”であり、2つ
のタグアドレスが一致した場合には、タグアドレス比較
器3はヒット信号8をアクティブにする。その他の場
合、即ち該当するエントリの冗長バリッドビット12が
“0”である場合も含め、2つのタグアドレスが一致し
ない場合には、ヒット信号8をノンアクティブにする。
In this case, the tag address comparator 3 compares the tag address from the redundant tag memory 11 with the tag address 1a input from the outside. When the redundant valid bit 12 of the corresponding entry is "1" and the two tag addresses match, the tag address comparator 3 activates the hit signal 8. In other cases, that is, the redundant valid bit 12 of the corresponding entry is
When the two tag addresses do not match, including the case of "0" , the hit signal 8 is made inactive.

【手続補正12】[Procedure Amendment 12]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0131[Name of item to be corrected] 0131

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0131】実施例3においては、エントリヒット信号
16の内容に関係なく、タグメモリ2のうち選択された
エントリのデータは読み出される。タグアドレス比較器
3では、選択されたエントリのバリッドビット7が
“1”で2つのタグアドレスが一致すればタグヒット信
号26をアクティブにする。その他の場合、即ち選択さ
れたエントリのバリッドビット7が“0”である場合も
含めて2つのタグアドレスが一致しない場合は、タグヒ
ット信号26をノンアクティブにする。
In the third embodiment, the data of the selected entry in the tag memory 2 is read regardless of the content of the entry hit signal 16. The tag address comparator 3 activates the tag hit signal 26 when the valid bit 7 of the selected entry is "1" and the two tag addresses match. Otherwise, i.e. if the selected two tag address valid bit 7 is "0" der Ru If be included in the entry does not match, a tag hit signal 26 to non-active.

【手続補正13】[Procedure Amendment 13]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0132[Correction target item name] 0132

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0132】一方、エントリアドレス比較器5において
エントリレジスタ14のエントリアドレスとエントリア
ドレス1bとが比較される。使用ビット15が“1”で
あり、2つのエントリアドレスが一致すれば、エントリ
ヒット信号16をアクティブにする。その他の場合、即
ち使用ビット15が“0”である場合も含めて2つのエ
ントリアドレスが一致しない場合は、ノンアクティブに
する。
On the other hand, the entry address comparator 5 compares the entry address of the entry register 14 with the entry address 1b. If the used bit 15 is "1" and the two entry addresses match, the entry hit signal 16 is activated. Otherwise, i.e. if the use bit 15 is "0" Ru der If even including two entry address does not match, the non-active.

【手続補正14】[Procedure Amendment 14]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0133[Name of item to be corrected] 0133

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0133】また、同時に冗長タグメモリ11からのタ
グアドレスと外部から得られたタグアドレス1aとが、
冗長タグアドレス比較器28で比較される。冗長タグア
ドレス比較器28は、冗長バリッドビット12が“1”
であり、2つのタグアドレスが一致すれば、冗長タグヒ
ット信号29をアクティブにする。その他の場合、即ち
冗長バリッドビット12が“0”である場合も含めて2
つのタグアドレスが一致しない場合は、ノンアクティブ
にする。
At the same time, the tag address from the redundant tag memory 11 and the tag address 1a obtained from the outside are
The redundant tag address comparator 28 compares them. In the redundant tag address comparator 28, the redundant valid bit 12 is "1".
If the two tag addresses match, the redundant tag hit signal 29 is activated. In other cases, that is redundant valid bit 12 is "0" Der Ru If even including 2
If the two tag addresses do not match, deactivate them.

【手続補正15】[Procedure Amendment 15]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0174[Correction target item name] 0174

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0174】選択されたエントリのチェックビット33
が“1”である場合、第4マルチプレクサ27は冗長デ
ータメモリ13を選択する。そして冗長アドレスヒット
信号34がアクティブである場合、冗長データメモリ1
から4ワードのデータが第4マルチプレクサ27を介
してワードセレクタ6に出力される。ワードセレクタ6
では、ワードアドレス1cにより選択される1ワードを
外部に出力する。
Check bit 33 of selected entry
Is “1”, the fourth multiplexer 27 selects the redundant data memory 13. When the redundant address hit signal 34 is active, the redundant data memory 1
Data of 3 to 4 words is output to the word selector 6 via the fourth multiplexer 27. Word selector 6
Then, one word selected by the word address 1c is output to the outside.

【手続補正16】[Procedure Amendment 16]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0178[Correction target item name] 0178

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0178】選択されたエントリのチェックビット33
が“1”である場合、不良エントリに相当、第4マル
チプレクサ27は冗長データメモリ13を選択する。新
たに読み込む4ワードのデータは、第4マルチプレクサ
27を介して冗長データメモリ13に記憶される。そし
て冗長タグメモリ11に外部からのタグアドレス1aを
記憶し、冗長バリッドビット12を“1”にする。
Check bit 33 of selected entry
Is "1", it corresponds to a defective entry, and the fourth multiplexer 27 selects the redundant data memory 13. The newly read 4-word data is stored in the redundant data memory 13 via the fourth multiplexer 27. Then, the tag address 1a from the outside is stored in the redundant tag memory 11, and the redundant valid bit 12 is set to "1".

【手続補正17】[Procedure Amendment 17]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0179[Correction target item name] 0179

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0179】冗長メモリに既にデータが書かれている場
合でも、選択されたエントリのチェックビット33が
“1”であれば、上述の様にして新たに外部から入力さ
れた4ワードのデータ、タグアドレス1a、エントリア
ドレス1bが冗長メモリに上書きされて、該当するエン
トリの予備回路として用いられる。
Even if data has already been written in the redundant memory, if the check bit 33 of the selected entry is "1 ", 4-word data and tag newly input from the outside as described above are added. The address 1a and the entry address 1b are overwritten in the redundant memory and used as a spare circuit for the corresponding entry.

【手続補正18】[Procedure 18]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0192[Name of item to be corrected] 0192

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0192】[0192]

【発明の効果】第1の発明によれば、レーザトリミング
等の装置を使用する必要なく故障回路と予備回路を書き
換えることができる。また、充分なメモリテストを行
い、短いリセット期間中に故障回路と予備回路を置き換
えることができる。またアドレスのデコードと同時にレ
ジスタの内容を比較するので、予備回路をアクセスした
場合でも時間を無駄に使うことがない。
According to the first aspect of the present invention, the fault circuit and the spare circuit can be rewritten without using a device such as laser trimming. It is also possible to perform a sufficient memory test and replace the faulty circuit and the spare circuit during a short reset period. Also, at the same time as the address decoding,
Since the contents of the register are compared, the spare circuit was accessed.
Even if you don't waste your time.

【手続補正19】[Procedure Amendment 19]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0193[Name of item to be corrected] 0193

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0193】第2の発明によれば、レーザトリミング等
の装置を使用する必要なく故障回路と予備回路を置き換
えることができる。また、充分なメモリテストを行い、
短いリセット期間中に故障回路と予備回路を置き換える
ことができる。また、不良エントリ禁止手段により、エ
ントリアドレスのデコード時にタグメモリ、データメモ
リへのアクセスを禁止することができるので、余分な電
力が使用されることがない。またアドレスのデコードと
同時にレジスタの内容を比較するので、予備回路をアク
セスした場合でも時間を無駄に使うことがない。
According to the second invention, it is possible to replace the defective circuit with the spare circuit without using a device such as laser trimming. Also, perform a sufficient memory test,
The faulty circuit and the spare circuit can be replaced during a short reset period. Further, since the defective entry prohibiting means can prohibit access to the tag memory and the data memory at the time of decoding the entry address, extra power is not used. Also with address decoding
At the same time, the contents of the registers are compared, so the spare circuit
You don't waste your time even if you do.

【手続補正20】[Procedure amendment 20]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図1[Name of item to be corrected] Figure 1

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図1】 [Figure 1]

【手続補正21】[Procedure correction 21]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図2[Name of item to be corrected] Figure 2

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図2】 [Fig. 2]

【手続補正22】[Procedure correction 22]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図5[Name of item to be corrected] Figure 5

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図5】 [Figure 5]

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 アドレスの一部であるタグアドレスを、
前記アドレスの他の一部であるエントリアドレスに対応
して記憶するタグメモリと、 前記エントリアドレスに対応したデータを記憶するデー
タメモリと、 少なくとも1つのエントリに対応した冗長タグメモリ
と、 前記冗長タグメモリに対応した冗長データメモリと、 前記エントリアドレスのうち、予め検査された結果、前
記タグメモリ又は前記データメモリにおいて不良である
と判断された不良エントリアドレスを記憶する不良エン
トリ記憶手段と、 起動時に前記不良エントリアドレスを前記不良エントリ
記憶手段から読み込む、前記冗長タグメモリに対応した
エントリアドレス記憶手段と、 外部から与えられたアドレスである外部アドレスのうち
前記エントリアドレスに対応する外部エントリアドレス
と、前記エントリアドレス記憶手段から得られる前記不
良エントリアドレスとを比較し、両者が一致すると前記
冗長タグメモリ及び前記冗長データメモリをアクセスす
る、前記冗長タグメモリ及び前記冗長データメモリに対
応したエントリアドレス比較手段と、を備えるキャッシ
ュメモリ。
1. A tag address, which is a part of an address,
A tag memory for storing an entry address which is another part of the address, a data memory for storing data corresponding to the entry address, a redundant tag memory corresponding to at least one entry, and the redundant tag A redundant data memory corresponding to the memory; a defective entry storage unit that stores a defective entry address that is determined to be defective in the tag memory or the data memory as a result of a pre-inspection among the entry addresses; An entry address storage unit corresponding to the redundant tag memory for reading the defective entry address from the defective entry storage unit; an external entry address corresponding to the entry address among external addresses given from the outside; Entry address memorizer And a defective entry address obtained from the above, and if the two match, the redundant tag memory and the redundant data memory are accessed, and the redundant tag memory and an entry address comparison means corresponding to the redundant data memory are provided. memory.
【請求項2】 アドレスの一部であるタグアドレスを、
前記アドレスの他の一部であるエントリアドレスに対応
して記憶するタグメモリと、 前記エントリアドレスに対応したデータを記憶するデー
タメモリと、 少なくとも1つのエントリに対応した冗長タグメモリ
と、 前記冗長タグメモリに対応した冗長データメモリと、 前記エントリアドレスのうち、予め検査された結果、前
記タグメモリ又は前記データメモリにおいて不良である
と判断された不良エントリアドレスを記憶する不良エン
トリ記憶手段と、 前記エントリアドレスの各々に対応して設けられ、前記
不良エントリ記憶手段に記憶された前記不良エントリア
ドレスに対応したエントリの前記タグメモリ及び前記デ
ータメモリをアクセス不能にする不良エントリ禁止手段
と、を備えるキャッシュメモリ。
2. A tag address, which is a part of the address,
A tag memory for storing an entry address which is another part of the address, a data memory for storing data corresponding to the entry address, a redundant tag memory corresponding to at least one entry, and the redundant tag A redundant data memory corresponding to the memory; a defective entry storage unit that stores a defective entry address that is determined to be defective in the tag memory or the data memory as a result of a pre-inspection among the entry addresses; A cache memory provided corresponding to each of the addresses, and a defective entry prohibiting unit that makes the tag memory and the data memory of the entry corresponding to the defective entry address stored in the defective entry storage unit inaccessible. .
【請求項3】 アドレスの一部であるタグアドレスを、
前記アドレスの他の一部であるエントリアドレスに対応
して記憶するタグメモリと、 前記エントリアドレスに対応したデータを記憶するデー
タメモリと、 少なくとも1つのエントリに対応した冗長タグメモリ
と、 前記冗長タグメモリに対応した冗長データメモリと、 前記エントリアドレスのうち、予め検査された結果、前
記タグメモリ又は前記データメモリにおいて不良である
と判断された不良エントリアドレスを記憶する不良エン
トリ記憶手段と、 前記エントリアドレスの各々に対応して設けられ、前記
不良エントリ記憶手段に記憶された前記不良エントリア
ドレスに対応したエントリの前記タグメモリ及び前記デ
ータメモリをアクセス不能にする不良エントリ禁止手段
と、 外部から与えられたアドレスである外部アドレスのうち
前記エントリアドレスに対応する外部エントリアドレス
が、前記不良エントリアドレスである場合に、前記不良
エントリ禁止手段を参照して前記冗長タグメモリと共に
アクセスされ、前記冗長タグメモリに対応して設けられ
た冗長エントリメモリと、を備えるキャッシュメモリ。
3. A tag address, which is a part of the address,
A tag memory for storing an entry address which is another part of the address, a data memory for storing data corresponding to the entry address, a redundant tag memory corresponding to at least one entry, and the redundant tag A redundant data memory corresponding to the memory; a defective entry storage unit that stores a defective entry address that is determined to be defective in the tag memory or the data memory as a result of a pre-inspection among the entry addresses; Bad entry prohibiting means provided corresponding to each of the addresses and making the tag memory and the data memory of the entry corresponding to the bad entry address stored in the bad entry storing means inaccessible; Of the external addresses that are When the external entry address corresponding to the entry address is the defective entry address, it is accessed together with the redundant tag memory by referring to the defective entry prohibiting means, and the redundant entry memory provided corresponding to the redundant tag memory is provided. And a cache memory including.
JP4275792A 1992-10-14 1992-10-14 Cache memory Expired - Lifetime JP2997370B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4275792A JP2997370B2 (en) 1992-10-14 1992-10-14 Cache memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4275792A JP2997370B2 (en) 1992-10-14 1992-10-14 Cache memory

Publications (2)

Publication Number Publication Date
JPH06131897A true JPH06131897A (en) 1994-05-13
JP2997370B2 JP2997370B2 (en) 2000-01-11

Family

ID=17560482

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4275792A Expired - Lifetime JP2997370B2 (en) 1992-10-14 1992-10-14 Cache memory

Country Status (1)

Country Link
JP (1) JP2997370B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7469369B2 (en) 2005-03-31 2008-12-23 Renesas Technology Corp. Low power content-addressable-memory device
JP2010146636A (en) * 2008-12-18 2010-07-01 Toshiba Corp Semiconductor integrated circuit device and memory system
JPWO2008155805A1 (en) * 2007-06-20 2010-08-26 富士通株式会社 Cache memory device, arithmetic processing device and control method thereof
JP2020010354A (en) * 2014-01-17 2020-01-16 株式会社半導体エネルギー研究所 Semiconductor device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10327549A1 (en) * 2003-06-18 2005-01-13 Robert Bosch Gmbh Method and device for error detection for a cache memory and corresponding cache memory

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7469369B2 (en) 2005-03-31 2008-12-23 Renesas Technology Corp. Low power content-addressable-memory device
US7661042B2 (en) 2005-03-31 2010-02-09 Renesas Technology Corp. Low-power content-addressable-memory device
JPWO2008155805A1 (en) * 2007-06-20 2010-08-26 富士通株式会社 Cache memory device, arithmetic processing device and control method thereof
JP4595029B2 (en) * 2007-06-20 2010-12-08 富士通株式会社 Cache memory device, arithmetic processing device and control method thereof
US8700947B2 (en) 2007-06-20 2014-04-15 Fujitsu Limited Cache memory apparatus, execution processing apparatus and control method thereof
JP2010146636A (en) * 2008-12-18 2010-07-01 Toshiba Corp Semiconductor integrated circuit device and memory system
JP2020010354A (en) * 2014-01-17 2020-01-16 株式会社半導体エネルギー研究所 Semiconductor device

Also Published As

Publication number Publication date
JP2997370B2 (en) 2000-01-11

Similar Documents

Publication Publication Date Title
US6922798B2 (en) Apparatus and methods for providing enhanced redundancy for an on-die cache
US20040255209A1 (en) Apparatus and method for compressing redundancy information for embedded memories, including cache memories, of integrated circuits
KR100388550B1 (en) Changing the thread capacity of a multithreaded computer processor
US6408401B1 (en) Embedded RAM with self-test and self-repair with spare rows and columns
JP4062247B2 (en) Semiconductor memory device
US6434067B1 (en) Semiconductor memory having multiple redundant columns with offset segmentation boundaries
EP1447813B1 (en) Memory built-in self repair (MBISR) circuits / devices and method for repairing a memory comprising a memory built-in self repair (MBISR) structure
US7366946B2 (en) ROM redundancy in ROM embedded DRAM
JPH10334695A (en) Cache memory and information-processing system
JP4492218B2 (en) Semiconductor memory device
US6320804B2 (en) Integrated semiconductor memory with a memory unit a memory unit for storing addresses of defective memory cells
KR100270007B1 (en) Wordline and bitline redundancy with no performance penalty
US5708789A (en) Structure to utilize a partially functional cache memory by invalidation of faulty cache memory locations
JPH07121439A (en) Constituent body for usage of partially functional cache memory
US6192486B1 (en) Memory defect steering circuit
US8694838B2 (en) Cache memory, processor, and production methods for cache memory and processor
US6240532B1 (en) Programmable hit and write policy for cache memory test
JP3659350B2 (en) New micro-cell redundancy scheme for high performance eDRAM
US7593274B2 (en) Semiconductor integrated circuit and relief method and test method of the same
JP2997370B2 (en) Cache memory
US6421283B1 (en) Trap and patch system for virtual replacement of defective volatile memory cells
US6055611A (en) Method and apparatus for enabling redundant memory
JPS62250599A (en) Semiconductor memory device
JP2001307497A (en) Semiconductor integrated circuit device
CN117524291B (en) Post-package repair circuit, post-package repair method, and memory device