JPH04171550A - Cache memory - Google Patents
Cache memoryInfo
- Publication number
- JPH04171550A JPH04171550A JP2300593A JP30059390A JPH04171550A JP H04171550 A JPH04171550 A JP H04171550A JP 2300593 A JP2300593 A JP 2300593A JP 30059390 A JP30059390 A JP 30059390A JP H04171550 A JPH04171550 A JP H04171550A
- Authority
- JP
- Japan
- Prior art keywords
- array
- data
- address
- circuit
- cache memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 claims description 9
- 230000006866 deterioration Effects 0.000 abstract description 2
- 230000000593 degrading effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
Landscapes
- Detection And Correction Of Errors (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Retry When Errors Occur (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、キャッシュメモリに関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a cache memory.
従来のキャッシュメモリは、読み出し時に読み出しデー
タのパリティエラーを検出すると、プロセッサの処理を
中断し、キャッシュメモリの内容をクリアしてから命令
リトライを行い、再度パリティエラーを検出するとキャ
ッシュをデグレードしていた。When conventional cache memory detects a parity error in the read data during reading, it interrupts processor processing, clears the contents of the cache memory, retries the instruction, and degrades the cache when a parity error is detected again. .
上述した従来のキャッシュメモリは、間欠故障に対し、
キャッシュメモリの内容がクリアされ、2回目の間欠故
障でキャッシュメモリはデグレードされるため、プロセ
ッサの性能低下を招くという問題点がある。The conventional cache memory described above is resistant to intermittent failures.
Since the contents of the cache memory are cleared and the second intermittent failure causes the cache memory to be degraded, there is a problem in that the performance of the processor deteriorates.
本発明のキャッシュメモリは、主記憶のデータの写しを
記憶するデータアレイと、前記データアレイの内容と主
記憶の内容とを対応づけるアドレスアレイと、前記デー
タアレイとアドレスアレイの読み出しデータとをチェッ
クするパリティチェック回路と、前記パリティチェック
回路の出力から前記アドレスアレイまたは前記データア
レイの故障を判定しパリティ−エラーが起きたことを内
部に記憶する故障判定回路と、前記パリティエラーが発
生してから一定時間のカウントを行い前記故障判定回路
が記憶しているパリティエラーが起きたという記憶をリ
セットするタイマと、前記データアレイをアクセスする
際には前記アドレスアレイの内容を調べて読み出しデー
タのヒツトを判定する検出回路とを有している。The cache memory of the present invention includes a data array that stores a copy of data in the main memory, an address array that associates the contents of the data array with the contents of the main memory, and checks read data of the data array and the address array. a parity check circuit that determines a failure of the address array or the data array from the output of the parity check circuit and internally stores that a parity error has occurred; a timer that counts a certain period of time and resets the memory that a parity error has occurred stored in the failure determination circuit; and a timer that checks the contents of the address array when accessing the data array to determine if there is a hit in the read data. and a detection circuit for making a determination.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は、本発明の一実施例のブロック図である。アド
レスレジスタ10は、メモリアクセスアドレスを保持す
る。FIG. 1 is a block diagram of one embodiment of the present invention. Address register 10 holds memory access addresses.
アドレスアレイ20は、信号線102で示されるメモリ
アクセスアドレスの一部をアドレス都心こ記憶すること
により、アドレスレジスタ10との間の対応を管理する
。The address array 20 manages correspondence with the address register 10 by storing part of the memory access address indicated by the signal line 102 in the address center.
データアレイ30は、アドレスレジスタ10番こよって
アドレスアレイ20のアドレス値が決定されるのと同時
に索引され、信号線301上に読み出しデータを送出す
る。信号l1301上の読み出しデータは、検出回路4
0から信号!!401上への出力が論理「1」の時に有
効となる。なお、信号線401上の論理値が[1」の時
にはキヤ・ソシュヒットが発生する、
パリティチェック回路50は、アドレスアレイ20とデ
ータアレイ30の読み出しデータとを各々パリティチェ
ックし、パリティエラーならζf論理値「1」を信号線
501上に出力する。Data array 30 is indexed at the same time that the address value of address array 20 is determined by address register 10, and the read data is sent out on signal line 301. The read data on the signal l1301 is sent to the detection circuit 4.
Signal from 0! ! It is valid when the output on 401 is logic "1". Note that when the logic value on the signal line 401 is [1], a signal hit occurs. The parity check circuit 50 performs a parity check on the read data of the address array 20 and the data array 30, and if there is a parity error, the ζf logic is detected. A value “1” is output onto the signal line 501.
故障判定回路60は、パリティチエ・・lり回路50の
出力が「1」の時、つまりアドレスアレイ20またはデ
ータアレイ30の出力がRリテイエラーの時、パリティ
−エラーが起きたことを内部に記憶しておく、この時、
すでにパリティエラーを記憶していたならば、信号線6
02上に論理「1」を出力し、まだ記憶していなかった
ならば信号線601上に論理「1」を出力する。The failure determination circuit 60 internally stores that a parity error has occurred when the output of the parity check circuit 50 is "1", that is, when the output of the address array 20 or data array 30 is an R error. Keep it at this time,
If the parity error has already been memorized, signal line 6
02, and if it has not been stored yet, outputs a logic "1" onto signal line 601.
検出回路40は、アドレスアレイ20のアドレス部の内
容とアドレスレジスタ10の内容とを比較し、両者が一
致で信号線601上の論理値が「0」の時、論理「1」
を信号11401hに出力する。The detection circuit 40 compares the contents of the address section of the address array 20 with the contents of the address register 10, and when the two match and the logical value on the signal line 601 is “0”, a logical “1” is generated.
is output as signal 11401h.
タイマ70は、信号線501上の論理値が「0」から「
1」に変化した時に、一定時間のカウントを開始し、一
定時間になると信号線701上に論理「1」を出力する
。これを受けて故障判定回路60は、過去にパリティエ
ラーが起きたという記憶をリセットする。The timer 70 changes the logical value on the signal line 501 from "0" to "
When the signal changes to "1", it starts counting for a certain period of time, and outputs a logic "1" onto the signal line 701 when the certain period of time has elapsed. In response to this, the failure determination circuit 60 resets the memory that a parity error occurred in the past.
次に、本発明に関する動作を説明する。メモリアクセス
アドレスが、アドレスレジスタ10にセットされ、信号
線102によってアドレスアレイ20.データアレイ3
0の内容が同時に索引され、検出回路40によってアド
レスの一致検出が行われる。ここでパリティチエ・Vり
回路50の出力が論理「0」の時(つまりアドレスアレ
イ20、データアレイ30の読み出しデータが正常の場
合)、故障判定回路60は信号線601゜602上に論
理「0」を出力する。検出回路40は、アドレスアレイ
20のアドレス部の内容と、アドレスレジスタ10の内
容とを比較し、両者が一致ならば信号線601上の論理
値が「0」なので信号線401上の一致出力を「1」に
する、つまり、キャツシュヒツトとなり、信号線201
上の読み出しデータが有効となる。Next, the operation related to the present invention will be explained. A memory access address is set in address register 10 and sent to address array 20 . data array 3
The contents of 0 are simultaneously indexed, and the detection circuit 40 performs address match detection. Here, when the output of the parity check circuit 50 is a logic "0" (that is, when the read data of the address array 20 and data array 30 is normal), the failure determination circuit 60 outputs a logic "0" on the signal lines 601 and 602. " is output. The detection circuit 40 compares the contents of the address part of the address array 20 and the contents of the address register 10, and if they match, the logical value on the signal line 601 is "0", and therefore outputs a match output on the signal line 401. Set to "1", that is, the signal line 201 is set to "1".
The above read data becomes valid.
次に、アドレスアレイ20またはデータアレイ30で故
障が発生し、パリティチエ・ツク回路50の出力が論理
「1」の場合を考えると、故障判定回路60は信号線6
01上に論理「1」、信号線602上に論理「0」を出
力し同時にパリティエラーを記憶する。検出回路40は
、アドレス比較の結果に関らず信号線401上に論理「
0」を出力する。つまり、キヤ・ソシュミスとなり、主
記憶よりメモリアクセスアドレスに対応するデータをロ
ードしアドレスアレイ20.データアレイ30に登録す
る。タイマ70は、信号線501上の論理値がrl、に
変化したのを受けて一定時間のカランI〜を開始する。Next, consider the case where a failure occurs in the address array 20 or the data array 30 and the output of the parity check circuit 50 is logic "1".
A logic "1" is output on signal line 602 and a logic "0" is output on signal line 602, and a parity error is stored at the same time. The detection circuit 40 outputs a logic signal on the signal line 401 regardless of the result of address comparison.
0" is output. In other words, it becomes Kiya Soshmis, loads the data corresponding to the memory access address from the main memory, and loads the address array 20. Register in data array 30. The timer 70 starts running I~ for a certain period of time in response to the change in the logic value on the signal line 501 to rl.
ここで一定時間内にパリティエラーが引き続いて発生し
なかった場合、故障判定回路60内に記憶されているパ
リティエラーをリセットする。パリティエラーがリセッ
トされる前に引き続いてパリティエラーが発生した場合
、故障判定回路60は、信号線602上に論理「1」を
出力し、キャッシュメモリのデクレードの通知を行う。Here, if a parity error does not continue to occur within a certain period of time, the parity error stored in the failure determination circuit 60 is reset. If a parity error continues to occur before the parity error is reset, the failure determination circuit 60 outputs a logic "1" on the signal line 602 to notify that the cache memory has been decried.
以上説明したように本発明は、キャッシュメモリの索引
時において一定時間内に2回のパリティエラーが発生し
ない限りキャッシュメモリの故障と判定しないで、エラ
ーを起こしたデータを正常なデータに書き換えることに
より、間欠事故によるキャッシュメモリのデクレードを
回避することができる効果がある。As explained above, the present invention does not determine that the cache memory is malfunctioning unless two parity errors occur within a certain period of time when indexing the cache memory, and instead rewrites the error data with normal data. This has the effect of avoiding cache memory deterioration due to intermittent accidents.
第1図は本発明の一実施例のブロック図である。
10・・・・・・アドレスレジスタ、20・・・・・・
アドレスアレイ、30・・・・・・データアレイ、4o
・・・・・・検出回路、101,102,301.40
1,501゜601.602,701・・・・・・信号
線、5o・・・・・・パリティチェック回路、60・・
・・・・故障判定回路、70・・・・・・タイマ。
代理人 弁理士 内 原 晋FIG. 1 is a block diagram of one embodiment of the present invention. 10...Address register, 20...
Address array, 30...Data array, 4o
...Detection circuit, 101, 102, 301.40
1,501゜601.602,701...Signal line, 5o...Parity check circuit, 60...
...Failure judgment circuit, 70...Timer. Agent Patent Attorney Susumu Uchihara
Claims (1)
記データアレイの内容と主記憶の内容とを対応づけるア
ドレスアレイと、前記データアレイとアドレスアレイの
読み出しデータとをチェックするパリテイチェック回路
と、前記パリテイチェック回路の出力から前記アドレス
アレイまたは前記データアレイの故障を判定しパリティ
ーエラーが起きたことを内部に記憶する故障判定回路と
、前記パリテイエラーが発生してから一定時間のカウン
トを行い前記故障判定回路が記憶しているパリテイエラ
ーが起きたという記憶をリセットするタイマと、前記デ
ータアレイをアクセスする際には前記アドレスアレイの
内容を調べて読み出しデータのヒットを判定する検出回
路とを有することと特徴とするキャッシュメモリ。a data array that stores a copy of data in a main memory, an address array that associates the contents of the data array with the contents of the main memory, and a parity check circuit that checks read data of the data array and the address array; a failure determination circuit that determines a failure of the address array or the data array from the output of the parity check circuit and internally stores that a parity error has occurred; and a failure determination circuit that counts a certain period of time after the parity error occurs. a timer that resets the memory that a parity error has occurred stored in the failure determination circuit; and a detection circuit that examines the contents of the address array when accessing the data array and determines whether there is a hit in the read data. A cache memory characterized by having.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2300593A JPH04171550A (en) | 1990-11-06 | 1990-11-06 | Cache memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2300593A JPH04171550A (en) | 1990-11-06 | 1990-11-06 | Cache memory |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04171550A true JPH04171550A (en) | 1992-06-18 |
Family
ID=17886715
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2300593A Pending JPH04171550A (en) | 1990-11-06 | 1990-11-06 | Cache memory |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04171550A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07271671A (en) * | 1994-03-29 | 1995-10-20 | Kofu Nippon Denki Kk | Cache device |
| JP2007272493A (en) * | 2006-03-31 | 2007-10-18 | Nec Corp | Computer system, data normality confirmation method, and program |
| US7409600B2 (en) | 2004-07-12 | 2008-08-05 | International Business Machines Corporation | Self-healing cache system |
-
1990
- 1990-11-06 JP JP2300593A patent/JPH04171550A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07271671A (en) * | 1994-03-29 | 1995-10-20 | Kofu Nippon Denki Kk | Cache device |
| US7409600B2 (en) | 2004-07-12 | 2008-08-05 | International Business Machines Corporation | Self-healing cache system |
| US7840848B2 (en) | 2004-07-12 | 2010-11-23 | International Business Machines Corporation | Self-healing cache operations |
| JP2007272493A (en) * | 2006-03-31 | 2007-10-18 | Nec Corp | Computer system, data normality confirmation method, and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0989492B1 (en) | Technique for correcting single-bit errors in caches with sub-block parity bits | |
| US4780809A (en) | Apparatus for storing data with deferred uncorrectable error reporting | |
| JPS6051749B2 (en) | Error correction method | |
| CN1729456A (en) | On-die mechanism for high-reliability processor | |
| EP0112622B1 (en) | Error correction in buffer storage units | |
| JPH113290A (en) | Memory control method | |
| JPH04171550A (en) | Cache memory | |
| JP3170145B2 (en) | Memory control system | |
| KR860002027B1 (en) | Key memory error handling system | |
| JP3130796B2 (en) | Control storage device | |
| JPH04124747A (en) | Cache memory | |
| JPH02143352A (en) | Memory error detection and correction system | |
| JPH05274223A (en) | Cache memory | |
| JPS60163135A (en) | Data bus check system | |
| JPH0230060B2 (en) | ||
| JPH0922387A (en) | Memory device | |
| JPH038040A (en) | 1-bit error information storage device | |
| JPH04273348A (en) | Cache memory | |
| JPH07271671A (en) | Cache device | |
| JPH04153757A (en) | Storage | |
| JPS59207080A (en) | Control device of cache memory | |
| JPS6356751A (en) | Memory patrol control method | |
| JPH05225070A (en) | Memory device | |
| JPH0778747B2 (en) | Data processing device | |
| JPS58215781A (en) | Information processor |