JPH0223442A - Memory control device - Google Patents

Memory control device

Info

Publication number
JPH0223442A
JPH0223442A JP63174777A JP17477788A JPH0223442A JP H0223442 A JPH0223442 A JP H0223442A JP 63174777 A JP63174777 A JP 63174777A JP 17477788 A JP17477788 A JP 17477788A JP H0223442 A JPH0223442 A JP H0223442A
Authority
JP
Japan
Prior art keywords
memory
data
error
cache memory
rewriting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63174777A
Other languages
Japanese (ja)
Inventor
Tatsuro Hashiguchi
橋口 達郎
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP63174777A priority Critical patent/JPH0223442A/en
Publication of JPH0223442A publication Critical patent/JPH0223442A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To relieve the intermittent error by showing the effectiveness of data with effective information when the error is detected at the data read from a cache memory and making ineffective the block of a memory when the rewriting information shows non-rewriting. CONSTITUTION:When an error is detected at the data read from a memory control device 1 having a cache memory 2 and when it is shown that the data of the entry to generate an error by the effective information and the rewriting information of the address array of the memory 2 are effective and the rewriting is not executed, the entry is made ineffective. The rewriting of the memory 2 is executed by the data from a main memory 3. Consequently, when the error is intermittent, the error is recovered and the continuation of the processing can be performed by the re-writing of the memory 2. Thus, a memory control device to be able to relieve the intermittent error of the cache memory is obtained.

Description

【発明の詳細な説明】 1血立1 本発明はメモリ制御装置に関し、特にストアイン方式の
キャッシュメモリを採用したメモリ制御装置のエラー処
理に関する。
DETAILED DESCRIPTION OF THE INVENTION 1. Summary 1 The present invention relates to a memory control device, and more particularly to error handling in a memory control device that employs a store-in type cache memory.

藍米弦韮 従来、この種のメモリ制御装置においては、ストアイン
方式のキャッシュメモリに訂正不能なエラーが発生した
場合、そのエラーが発生したキャッシュメモリのデータ
をそのままにして要求元装置の再試行を行っていた。
Traditionally, in this type of memory control device, when an uncorrectable error occurs in the store-in cache memory, the data in the cache memory where the error occurred is left as is and the requesting device retries. was going on.

ここで、ストアイン方式とは、新たに主記憶装置の内容
を必要とし、キャッシュメモリに空き領域がない場合に
、キャッシュメモリの内容を1記・隙装置に戻して空き
領域を作り、その空き領域に主記憶装置の内容を書込む
というものであり、通常はキャッシュメモリ上でデータ
の書換えか行われるため、キャッシュメモリの内容と主
記憶装置の内容とが必ずしも一致するとは限らない。
Here, the store-in method requires new contents of the main storage device, and if there is no free space in the cache memory, the contents of the cache memory are returned to the storage device described in 1. This involves writing the contents of the main memory device into the area, and since the data is usually rewritten on the cache memory, the contents of the cache memory and the contents of the main memory device do not necessarily match.

このような従来のメモリ制御装置では、キャッシュメモ
リにエラーが発生しても、そのエラーを残したまま要求
元装置の再試行を行っているので、その再試行の結果再
びエラーを検出してしまうという欠点がある。
In such conventional memory control devices, even if an error occurs in the cache memory, the error remains and the requesting device is retried, resulting in the error being detected again as a result of the retry. There is a drawback.

及朋ヱと目的 本発明は上記のような従来のものの欠点を除去すべくな
されたもので、キャッシュメモリの間欠的なエラーを救
済することができるメモリ制御装置の提供を目的とする
Aims and Objectives The present invention has been made to eliminate the drawbacks of the conventional devices as described above, and an object of the present invention is to provide a memory control device capable of relieving intermittent errors in a cache memory.

発明の構成 本発明によるメモリ制御装置は、キャッシュメモリに格
納されたデータが有効か否かを示す有効情報と、前記デ
ータが書換えられたか否かを示す書換え情報とを格納す
る格納手段と、前記キャッシュメモリから読出されたデ
ータのエラーを検出する検出手段と、前記検出手段によ
りエラーが検出されたデータに対応する前記有効情報が
該データの有効を示し、前記書換え情報が該データの未
書換えを示すとき、該データが格納された前記キャッシ
ュメモリのブロックを無効とする手段とを有することを
特徴とする。
Composition of the Invention A memory control device according to the present invention includes a storage means for storing validity information indicating whether data stored in a cache memory is valid or not, and rewriting information indicating whether the data has been rewritten; a detection means for detecting an error in data read from the cache memory; and the valid information corresponding to the data in which an error has been detected by the detection means indicates that the data is valid, and the rewrite information indicates that the data has not been rewritten. and means for invalidating the block of the cache memory in which the data is stored.

X1ヱ 次に、本発明の一実施例について図面を参照して説明す
る。
X1ヱNext, one embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る9図において、本発明の一実施例によるメモリ制御装
置1は、ストアイン方式のキャッシュメモリ2を有し、
演算処理装置5と入出力処理装置6とに接続され、これ
ら演算処理装置5および入出力処理装置6から主記憶装
置3へのアクセスを制御する。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In FIG. 9, a memory control device 1 according to an embodiment of the present invention has a store-in type cache memory 2,
It is connected to the arithmetic processing device 5 and the input/output processing device 6, and controls access to the main storage device 3 from the arithmetic processing device 5 and the input/output processing device 6.

キャッシュメモリ2は主記憶装W3の写しであるが、キ
ャッシュメモリ2が満杯となって主記憶装置3からの新
たなデータを書込むために、キャッシュメモリ2のある
単位(ブロック)が主記憶装fi2に書戻されるまでは
、キャッシュメモリ2上でデータの読出しおよび書込み
が行われる。
The cache memory 2 is a copy of the main memory W3, but when the cache memory 2 becomes full and new data from the main memory 3 is written, a certain unit (block) of the cache memory 2 is transferred to the main memory W3. Data is read and written on the cache memory 2 until it is written back to fi2.

したがって、キャッシュメモリ2の内容と主記憶装置3
の内容とが必ずしも一致するとは限らない。
Therefore, the contents of cache memory 2 and main memory 3
The content does not necessarily match.

第2図は第1図のキャッシュメモリ2の構成を示すブロ
ック図である。図において、キャッシュメモリ2はメモ
リデータを格納するデータアレイ21と、データアレイ
21に格納されたメモリデータが有効か無効かを示す■
ビットと、該メモリデータか書換えられたかどうかを示
すMビットとからなる制御情報とメモリアドレスとを格
納するアドレスアレイ22と、データアレイ21から読
出されたメモリデータのエラーを検出するエラー検出回
路23と、読出しアドレスレジスタ24と、読出しデー
タレジスタ25と、書込みデータレジスタ26とにより
構成されている。
FIG. 2 is a block diagram showing the configuration of the cache memory 2 of FIG. 1. In the figure, the cache memory 2 includes a data array 21 that stores memory data, and a data array 21 that indicates whether the memory data stored in the data array 21 is valid or invalid.
an address array 22 that stores memory addresses and control information consisting of bits and M bits that indicate whether the memory data has been rewritten; and an error detection circuit 23 that detects errors in memory data read from the data array 21. , a read address register 24 , a read data register 25 , and a write data register 26 .

これら第1図および第2図を用いて本発明の一実施例の
動作について説明する。
The operation of an embodiment of the present invention will be explained using FIG. 1 and FIG. 2.

演算処理装置5または入出力処理装置6が主記憶装置3
に格納されたメモリデータを必要とするとき、メモリ制
御装置1に読出し要求が出力される。
The arithmetic processing unit 5 or the input/output processing unit 6 is the main storage device 3
When memory data stored in is required, a read request is output to the memory control device 1.

メモリ制御装置1ではこの読出し要求に対してキャッシ
ュメモリ2を参照し、キャッシュメモリ2でヒツトしな
ければ、すなわち読出し要求のあったエントリに対応す
るアドレスアレイ22のVビットが°0′°か、あるい
はメモリアドレスが不一致であれば、主記憶装置3から
メモリデータを引取ってキャッシュメモリ2のメモリデ
ータの入換えを行った後に、要求元装置(演算処理装置
5まなは入出力処理装置6)に該メモリデータが転送さ
れる。
The memory control device 1 refers to the cache memory 2 in response to this read request, and if there is no hit in the cache memory 2, that is, whether the V bit of the address array 22 corresponding to the entry for which the read request was made is 0'° or Alternatively, if the memory addresses do not match, the requesting device (processing unit 5 or input/output processing unit 6) retrieves the memory data from the main storage device 3 and replaces the memory data in the cache memory 2. The memory data is transferred to.

読出し要求に対するキャッシュメモリ2の参照により、
キャッシュメモリ2でヒツトすれば、キャッシュメモリ
2のメモリデータがそのまま要求元装置に転送される。
By referring to the cache memory 2 in response to a read request,
If there is a hit in the cache memory 2, the memory data in the cache memory 2 is transferred as is to the requesting device.

このキャッシュメモリ2に格納されたメモリデータを読
出す過程で、エラー検出回路23によりエラーが検出さ
れた場合には、要求元装置にエラー発生の通知を行うと
ともに、障害処理装置4に対してエラー処理要求を行う
。尚、要求元装置も同様に障害処理装置4に対してエラ
ー処理要求を行う。
If an error is detected by the error detection circuit 23 in the process of reading memory data stored in the cache memory 2, the error detection circuit 23 notifies the requesting device of the occurrence of the error and also sends an error message to the failure processing device 4. Make a processing request. It should be noted that the request source device similarly issues an error processing request to the failure processing device 4.

このエラー処理要求を受けた障害処理装置4は障害情報
を収集した後に、その障害情報からエラーが発生したキ
ャッシュメモリ2のエントリ番号を得る。
After receiving this error processing request, the fault processing device 4 collects fault information and then obtains the entry number of the cache memory 2 in which the error occurred from the fault information.

次に、障害処理装置4は読出しアドレスレジスタ24と
読出しデータレジスタ25とを使用し、アドレスアレイ
22の該エントリから制御情報を得る。
Fault handling device 4 then uses read address register 24 and read data register 25 to obtain control information from the entry in address array 22 .

この制御情報のうち、■ビットはキャッシュメモリ2が
ヒツトしているので必ず“1″であるが、Mビットは不
定である。このとき、障害処理装置4は該Mビットを参
照し、該Mビットが0″であれば該エントリを無効とす
る。
Of this control information, the ■ bit is always "1" since the cache memory 2 is hit, but the M bit is undefined. At this time, the failure processing device 4 refers to the M bit, and invalidates the entry if the M bit is 0''.

すなわち、該エントリに対応するメモリデータが書換え
られていなければ、書込みデータレジスタ26を使用し
て該エントリの制御情報をクリアする。
That is, if the memory data corresponding to the entry has not been rewritten, the write data register 26 is used to clear the control information of the entry.

障害処理装置4により該エントリが無効とされてから、
要求元装置の再試行が行われる。この再試行により該エ
ントリが再びアクセスされるが、該エントリは無効とさ
れているので、キャッシュメモリ2でヒツトすることは
なく、主記憶装置3からのメモリデータでキャッシュメ
モリ2の書換えが行われる。
After the entry is invalidated by the failure processing device 4,
A retry of the requesting device occurs. As a result of this retry, the entry is accessed again, but since the entry is invalidated, there is no hit in the cache memory 2, and the cache memory 2 is rewritten with the memory data from the main storage device 3. .

エラー検出回路23で検出されたエラーが間欠的なエラ
ーであれば、このキャッシュメモリ2の書換え動作によ
り該エラーが回復され、処理の続行が可能となる。
If the error detected by the error detection circuit 23 is an intermittent error, the error is recovered by this rewriting operation of the cache memory 2, and processing can be continued.

このように、ストアイン方式を採用したキャッシュメモ
リ2を有するメモリ制御装置1でキャッシュメモリ2に
エラーが発生した場合、アドレスアレイ22のVビット
およびMビットによりエラーが発生したエントリのメモ
リデータが有効で、かつ書換えが行われていないことが
示されたとき、該エントリを無効とするようにすること
によって、エラー検出回路23で検出されたエラーが間
欠的なエラーであれば、このキャッシュメモリ2の書換
え動作により該エラーが回復さルるので処理の続行が可
能となる。よって、キャッシュメモリ2の間欠的なエラ
ーを救済することができる。
In this way, when an error occurs in the cache memory 2 in the memory control device 1 having the cache memory 2 that adopts the store-in method, the memory data of the entry where the error occurred is valid according to the V bit and M bit of the address array 22. If the error detected by the error detection circuit 23 is an intermittent error, the cache memory 2 Since the error is recovered by the rewrite operation, it is possible to continue the process. Therefore, intermittent errors in the cache memory 2 can be relieved.

1肌Ω見1 以上説明したように本発明によれば、キャッシュメモリ
から読出されたデータにエラーが検出されたとき、該デ
ータに対応して格納された有効情報が該データの有効を
示し、書換え情報か該データの未書換えを示すとき、該
データが格納されたキャッシュメモリのブロックを無効
とするようにすることによって、キャッシュメモリの間
欠的なエラーを救済することができるという効果がある
As explained above, according to the present invention, when an error is detected in data read from the cache memory, the validity information stored corresponding to the data indicates the validity of the data, When the rewriting information indicates that the data has not been rewritten, the cache memory block in which the data is stored is invalidated, thereby making it possible to relieve intermittent errors in the cache memory.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は第1図のキャッシュメモリの構成を示す図である
。 主要部分の符号の説明 1・・・・・・メモリ制御装置 2・・・・・・キャッシュメモリ 3・・・・・・主記憶装置  4・・・・・・障害処理
装置21・・・・・・データアレイ 22・・・・・・アドレスアレイ 23・・・・・・エラー検出回路
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a diagram showing the configuration of the cache memory shown in FIG. 1. Explanation of symbols of main parts 1...Memory control device 2...Cache memory 3...Main storage device 4...Fault processing device 21... ...Data array 22...Address array 23...Error detection circuit

Claims (1)

【特許請求の範囲】[Claims] (1)キャッシュメモリに格納されたデータが有効か否
かを示す有効情報と、前記データが書換えられたか否か
を示す書換え情報とを格納する格納手段と、前記キャッ
シュメモリから読出されたデータのエラーを検出する検
出手段と、前記検出手段によりエラーが検出されたデー
タに対応する前記有効情報が該データの有効を示し、前
記書換え情報が該データの未書換えを示すとき、該デー
タが格納された前記キャッシュメモリのブロックを無効
とする手段とを有することを特徴とするメモリ制御装置
(1) A storage means for storing validity information indicating whether the data stored in the cache memory is valid or not and rewrite information indicating whether the data has been rewritten or not; a detecting means for detecting an error; and when the valid information corresponding to data in which an error has been detected by the detecting means indicates that the data is valid and the rewriting information indicates that the data has not been rewritten, the data is stored. and means for invalidating a block of the cache memory.
JP63174777A 1988-07-13 1988-07-13 Memory control device Pending JPH0223442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63174777A JPH0223442A (en) 1988-07-13 1988-07-13 Memory control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63174777A JPH0223442A (en) 1988-07-13 1988-07-13 Memory control device

Publications (1)

Publication Number Publication Date
JPH0223442A true JPH0223442A (en) 1990-01-25

Family

ID=15984486

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63174777A Pending JPH0223442A (en) 1988-07-13 1988-07-13 Memory control device

Country Status (1)

Country Link
JP (1) JPH0223442A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6033976A (en) * 1993-08-11 2000-03-07 Sony Corporation Ohmic electrode, its fabricating method and semiconductor device
JP2012178121A (en) * 2011-02-28 2012-09-13 Nec Computertechno Ltd Information processor and error correction support method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56117400A (en) * 1980-02-20 1981-09-14 Fujitsu Ltd Buffer memory control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56117400A (en) * 1980-02-20 1981-09-14 Fujitsu Ltd Buffer memory control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6033976A (en) * 1993-08-11 2000-03-07 Sony Corporation Ohmic electrode, its fabricating method and semiconductor device
JP2012178121A (en) * 2011-02-28 2012-09-13 Nec Computertechno Ltd Information processor and error correction support method

Similar Documents

Publication Publication Date Title
US5249284A (en) Method and system for maintaining data coherency between main and cache memories
US4896257A (en) Computer system having virtual memory configuration with second computer for virtual addressing with translation error processing
JP3270367B2 (en) Semiconductor storage device
JP3129224B2 (en) Cache memory device
JPH0223442A (en) Memory control device
JPH05165719A (en) Memory access processor
KR860002027B1 (en) Key memory error processing system
JP3239935B2 (en) Tightly-coupled multiprocessor system control method, tightly-coupled multiprocessor system, and recording medium therefor
JPH0652065A (en) Memory control circuit
JPH0690683B2 (en) Fault handling method for multiprocessor system
JPS6024492B2 (en) memory system
EP0128353A2 (en) Error recovery of non-store-through cache
JPH06149685A (en) Memory error recovering circuit
JPH0822416A (en) Control method for cache memory
JPS59217298A (en) Memory error relieve system
JPH0756816A (en) Controller for memory
EP0460852A2 (en) System for maintaining data coherency between main and cache memories
JP2796162B2 (en) Instruction processing method
JPH03157744A (en) Error correction rewrite system
JPH07168760A (en) Cache controller
JPS62166456A (en) Information processor
JPH071490B2 (en) Data write-back method
JPS59207080A (en) Control device of cache memory
JPS6320641A (en) Memory access system
JPS60225941A (en) Microprogram control device