JPH05189997A - Memory fault detecting mechanism - Google Patents
Memory fault detecting mechanismInfo
- Publication number
- JPH05189997A JPH05189997A JP4024545A JP2454592A JPH05189997A JP H05189997 A JPH05189997 A JP H05189997A JP 4024545 A JP4024545 A JP 4024545A JP 2454592 A JP2454592 A JP 2454592A JP H05189997 A JPH05189997 A JP H05189997A
- Authority
- JP
- Japan
- Prior art keywords
- data
- memory
- parity data
- write
- parity
- 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
Landscapes
- For Increasing The Reliability Of Semiconductor Memories (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、データの記憶を行なう
データメモリの障害検出を、データの書込みの際に生成
されたパリティデータに基づいて実施するメモリ障害検
出機構に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory fault detecting mechanism for detecting a fault in a data memory that stores data based on parity data generated when writing data.
【0002】[0002]
【従来の技術】コンピュータにおいて、データの記憶を
行なうハードウェアとして、RAM等のメモリが一般的
に利用される。このメモリに障害が発生し、処理結果が
不正確になるのを防止するため、メモリの障害検出を行
なう機構が用意されている。具体的には、メモリに障害
が発生すると、正常にデータの書込み(記憶)を行なう
ことができず、データが書込み時と読出し時で相違する
事態が発生する。2. Description of the Related Art In computers, memories such as RAM are generally used as hardware for storing data. A mechanism for detecting a memory failure is provided in order to prevent a failure in this memory and an inaccurate processing result. Specifically, when a failure occurs in a memory, data cannot be written (stored) normally, and a situation occurs in which data differs between writing and reading.
【0003】このような事態が発生すると、全く内容の
異なるデータを参照して処理を実施することになり、処
理結果が不正確になる。一般に、メモリの障害を検出す
るため、書込み時のデータを基にパリティデータを生成
し、データに対応させてパリティデータの記憶を行な
う。データの読出し時には、読出したデータを基に再び
パリティデータを生成し、このパリティデータと先に記
憶したパリティデータと比較し、一致したならばメモリ
が正常であるため読出したデータを有効なものとして取
扱う。When such a situation occurs, the processing is carried out with reference to data having completely different contents, and the processing result becomes inaccurate. Generally, in order to detect a memory failure, parity data is generated based on the data at the time of writing, and the parity data is stored in correspondence with the data. When reading data, parity data is generated again based on the read data, and this parity data is compared with the previously stored parity data. If they match, the memory is normal and the read data is regarded as valid. Handle it.
【0004】一方、比較の結果が不一致の場合、メモリ
の障害発生を示すため、読出したデータを無効なものと
して取扱う。ここでは、パリティデータを用いてメモリ
の障害を検出する機構を、メモリ障害検出機構と呼ぶこ
とにする。On the other hand, if the comparison results do not match, it indicates that the memory has failed, so the read data is treated as invalid. Here, a mechanism for detecting a memory failure using parity data will be referred to as a memory failure detection mechanism.
【0005】図2に、従来のメモリ障害検出機構に係る
ブロック図を示す。図は、従来のメモリ障害検出機構を
備えたメモリシステムMS1である。図において、プロ
セッサ(CPU)1には、アドレスバスAB、制御線C
を介してメモリ制御部2が接続されている。メモリ制御
部2には、メモリアドレス線MA、メモリ制御線MCを
介してデータメモリ3及びパリティデータメモリ4が接
続されている。FIG. 2 shows a block diagram of a conventional memory failure detection mechanism. The figure shows a memory system MS1 having a conventional memory failure detection mechanism. In the figure, a processor (CPU) 1 includes an address bus AB and a control line C.
The memory control unit 2 is connected via. A data memory 3 and a parity data memory 4 are connected to the memory control unit 2 via a memory address line MA and a memory control line MC.
【0006】また、プロセッサ1には、データバスDB
を介して、パリティデータ生成部5、パリティデータ比
較部6、そしてデータメモリ3が接続されている。プロ
セッサ1は、データメモリ3の内容に内容に基づいて、
各種の処理を制御するものである。アドレスバスAB
は、プロセッサ1のアクセス対象を特定するアドレスの
伝送を行なう信号線である。The processor 1 also includes a data bus DB
The parity data generation unit 5, the parity data comparison unit 6, and the data memory 3 are connected via the. The processor 1 is based on the contents of the data memory 3
It controls various processes. Address bus AB
Is a signal line for transmitting an address that specifies an access target of the processor 1.
【0007】制御線Cは、プロセッサ1の出力する制御
信号の伝送を行なう信号線である。メモリ制御部2は、
プロセッサ1の指示に基づいて、データメモリ3及びパ
リティデータメモリ4の書込み及び読出し制御を行なう
ものである。メモリ制御線MCは、データメモリ3及び
パリティデータメモリ4上のアクセス領域を特定するR
AS及びCAS信号、そして書込み状態の設定を行なう
WE信号の伝送を行なう信号線である。The control line C is a signal line for transmitting the control signal output from the processor 1. The memory control unit 2
Based on instructions from the processor 1, writing and reading control of the data memory 3 and the parity data memory 4 are performed. The memory control line MC specifies R for specifying an access area on the data memory 3 and the parity data memory 4.
It is a signal line for transmitting the AS and CAS signals and the WE signal for setting the write state.
【0008】メモリアドレス線MAは、アクセス対象が
データメモリ3なのかパリティデータメモリ4なのかを
特定するアドレスを伝送する信号線である。データバス
DBは、データメモリ3へ書込む及びデータメモリ3か
ら読出したデータの伝送を行なう信号線である。パリテ
ィデータ生成部5は、データメモリ3へ書込みデータの
ビット列の内、内容“1”のビット数が偶数であるか奇
数であるかを示すパリティデータを生成するものであ
る。The memory address line MA is a signal line for transmitting an address that specifies whether the access target is the data memory 3 or the parity data memory 4. The data bus DB is a signal line for writing data in the data memory 3 and transmitting data read from the data memory 3. The parity data generation unit 5 generates parity data indicating whether the number of bits of the content “1” is an even number or an odd number in the bit string of the write data to the data memory 3.
【0009】このパリティデータ生成部5は、生成した
パリティデータをパリティライトデータPWDとしてパ
リティデータメモリ4に向けて出力する。パリティデー
タ比較部6は、パリティデータメモリ4から読出したパ
リティデータを示すパリティリードデータPRDと、パ
リティデータ生成部5と同様に、データメモリ3から読
出され、データバスDBを介して入力するデータに基づ
いて生成されたパリティデータを比較し、比較結果を示
すパリティデータエラー信号PESをプロセッサ1に向
けて出力するものである。The parity data generator 5 outputs the generated parity data to the parity data memory 4 as parity write data PWD. The parity data comparison unit 6 converts the parity read data PRD indicating the parity data read from the parity data memory 4 into the data read from the data memory 3 and input via the data bus DB similarly to the parity data generation unit 5. The parity data generated based on the comparison is compared, and the parity data error signal PES indicating the comparison result is output to the processor 1.
【0010】このパリティデータエラー信号PESは、
プロセッサ1への割込み(例えばNMI)に利用される
信号で、有効に設定された場合、プロセッサ1は、アド
レスバスABや制御線C等の情報が保持して処理を中断
する。以上の構成のメモリシステムMS1において、パ
リティデータメモリ4、パリティデータ生成部5、パリ
ティデータ比較部6によりメモリ障害検出機構が構築さ
れている。This parity data error signal PES is
When the signal is used for an interrupt (for example, NMI) to the processor 1 and is set to be valid, the processor 1 holds information such as the address bus AB and the control line C, and interrupts the processing. In the memory system MS1 having the above configuration, the memory failure detection mechanism is constructed by the parity data memory 4, the parity data generation unit 5, and the parity data comparison unit 6.
【0011】さて、データメモリ3へデータを書込む場
合、プロセッサ1は、アドレスバスABに書込みアドレ
スを、制御線Cに書込み要求を、そしてデータバスDB
にデータを出力する。メモリ制御部2は、アドレスバス
AB上のアドレスを解析し、メモリアドレス線MA及び
メモリ制御線のRAS、CAS、WEをアクセスする。
データメモリ3は、メモリアドレス線MA及びメモリ制
御線MCのアクセスを受けてデータバスDB上のデータ
の書込みを実施する。When writing data to the data memory 3, the processor 1 issues a write address to the address bus AB, a write request to the control line C, and the data bus DB.
Output the data to. The memory control unit 2 analyzes the address on the address bus AB and accesses the memory address line MA and the memory control lines RAS, CAS, and WE.
The data memory 3 receives the access from the memory address line MA and the memory control line MC to write the data on the data bus DB.
【0012】一方、パリティデータ生成部5は、データ
バスDBにデータが出力されたのを受けて、このデータ
に基づくパリティデータを生成し、パリティライトデー
タとしてパリティデータメモリ4に向けて出力する。パ
リティデータメモリ4は、データメモリ3同様にメモリ
アドレス線MA及びメモリ制御線MCのアクセスを受け
て、パリティデータの書込みを実施する。データメモリ
3上のデータと、パリティデータメモリ4上のパリティ
データは、1対1に対応する形で記憶される。On the other hand, the parity data generator 5 receives the data output to the data bus DB, generates parity data based on this data, and outputs it as parity write data to the parity data memory 4. Like the data memory 3, the parity data memory 4 receives access from the memory address line MA and the memory control line MC and writes the parity data. The data in the data memory 3 and the parity data in the parity data memory 4 are stored in a one-to-one correspondence.
【0013】さて、データメモリ3からデータを読出す
場合、プロセッサ1は、アドレスAB上に読出しアドレ
スを、制御線C上に読出し要求を出力する。このアドレ
ス及び要求は、メモリ制御部2により解析され、この解
析結果に基づいてデータメモリ3からデータの読出しが
実施される。読出されたデータはデータバスDBを介し
てプロセッサ1及びパリティデータ比較部6に認識され
る。When reading data from the data memory 3, the processor 1 outputs a read address on the address AB and a read request on the control line C. The address and the request are analyzed by the memory control unit 2, and the data is read from the data memory 3 based on the analysis result. The read data is recognized by the processor 1 and the parity data comparison unit 6 via the data bus DB.
【0014】パリティデータ比較部6では、パリティデ
ータ生成部5同様に、データバスDB上のデータを基に
パリティデータを生成する。一方、パリティデータメモ
リ4においても、データメモリ3同様にメモリ制御部2
の解析結果に基づいてパリティデータの読出しが実施さ
れる。読出されたパリティデータは、パリティデータ比
較部6に向けてパリティリードデータPRDとして出力
される。Similar to the parity data generation unit 5, the parity data comparison unit 6 generates parity data based on the data on the data bus DB. On the other hand, also in the parity data memory 4, like the data memory 3, the memory control unit 2
Parity data is read out based on the analysis result of. The read parity data is output to the parity data comparison unit 6 as parity read data PRD.
【0015】パリティデータ比較部6では、先に生成し
たパリティデータと、パリティデータメモリ4から読出
されたパリティデータを比較し、比較結果が一致の場合
にはパリティデータエラー信号PESを無効に、不一致
の場合にはパリティデータエラー信号PESを有効に設
定する。プロセッサ1は、パリティデータエラー信号P
ESが無効の場合、データメモリ3から読出し、データ
バスDB上に出力されたデータが信頼できるものとして
以降の処理を実施する。また、パリティデータエラー信
号PESが有効の場合、データバスDB上に出力された
データが信頼できないものとしてプロセッサ1の動作が
中断する。The parity data comparison unit 6 compares the previously generated parity data with the parity data read from the parity data memory 4, and if the comparison results are in agreement, the parity data error signal PES is invalidated and does not match. In this case, the parity data error signal PES is set valid. The processor 1 uses the parity data error signal P
If ES is invalid, the subsequent processing is performed assuming that the data read from the data memory 3 and output on the data bus DB is reliable. When the parity data error signal PES is valid, the operation of the processor 1 is interrupted because the data output on the data bus DB is unreliable.
【0016】[0016]
【発明が解決しようとする課題】ところで、データメモ
リ3上の記憶領域の中で、普遍的なパラメータの記憶に
利用するため、ある一定の領域を読出し専用に設定する
場合がある。このような読出し専用領域に、プログラム
のバグ等が原因で書込みを実施した場合、パリティデー
タも新たに生成され記憶されるため、データメモリ3の
ハードウェア的な障害が無ければ、正当なデータとして
取扱われてしまう。即ち、パリティデータを利用して不
当な書込みが実施されたことを検出することができない
といった問題が生じていた。本発明は以上の点に着目し
てなされたもので、パリティデータを利用して不当な書
込みを検出することのできるメモリ障害検出機構を提供
することを目的とする。By the way, in the storage area of the data memory 3, a certain area may be set as read-only in order to use it for storing universal parameters. When writing is performed in such a read-only area due to a program bug or the like, parity data is also newly generated and stored, so if there is no hardware failure of the data memory 3, it is regarded as valid data. It will be handled. That is, there has been a problem that it is not possible to detect that improper writing has been performed using the parity data. The present invention has been made in view of the above points, and an object thereof is to provide a memory failure detection mechanism capable of detecting an illegal write by using parity data.
【0017】[0017]
【課題を解決するための手段】本発明のメモリ障害検出
機構は、データの記憶を行なうデータメモリと、前記記
憶領域へ書込む前記データに固有のパリティデータを生
成するパリティデータ生成部と、前記データに対応して
前記パリティデータを記憶するパリティデータメモリ
と、前記データメモリからの前記データの読出しと同時
に、前記パリティデータメモリから前記パリティデータ
を読出し、当該データの正当性を判断するパリティデー
タ判定部と、予め設定された前記データメモリの書込み
禁止領域への書込みを検出する書込み領域検出部と、前
記書込み領域検出部が前記書込み禁止領域への書込みを
検出した場合、前記パリティデータメモリに書込む前記
パリティデータを強制的に無効内容に変更するパリティ
データ変更部とを備えたものである。A memory failure detection mechanism according to the present invention includes a data memory for storing data, a parity data generation unit for generating parity data unique to the data written in the storage area, and A parity data memory that stores the parity data corresponding to the data, and a parity data determination that determines the validity of the data by reading the parity data from the parity data memory at the same time as reading the data from the data memory. Unit, a write area detection unit that detects writing to a preset write protected area of the data memory, and a write area detection unit that writes to the parity data memory when the write area detection unit detects writing to the write protected area. And a parity data changing unit for forcibly changing the parity data Those were.
【0018】[0018]
【作用】この機構は、書込み領域検出部において、書込
み時のアドレスを監視し、予め設定された書込み禁止領
域への書込みを検出する。パリティデータ変更部は、書
込み領域検出部の検出結果が書込み禁止領域への書込み
であった場合、パリティデータ生成部において生成され
たパリティデータを強制的に無効内容に変更し、パリテ
ィデータとデータメモリ上のデータを整合させない。In this mechanism, the write area detection unit monitors the address at the time of writing and detects writing to the preset write prohibited area. The parity data changing unit forcibly changes the parity data generated by the parity data generating unit to invalid contents when the detection result of the write area detecting unit indicates writing to the write prohibited area, and the parity data and the data memory. Do not match the above data.
【0019】[0019]
【実施例】図1は、本発明のメモリ障害検出機構に係る
ブロック図である。図は、本発明のメモリ障害検出機構
を備えたメモリシステムMS2で、先に図2において説
明したメモリシステムMS1と比べると、新たに書込み
領域検出部7及びパリティデータ変更部8が設けられて
いる。その他の構成は、従来と同様のため、重複する説
明は省略し、本発明の特徴部分について説明を行なう。DESCRIPTION OF THE PREFERRED EMBODIMENT FIG. 1 is a block diagram of a memory failure detection mechanism of the present invention. The figure shows a memory system MS2 provided with a memory failure detection mechanism of the present invention, which is newly provided with a write area detection section 7 and a parity data change section 8 as compared with the memory system MS1 previously described in FIG. .. Since other configurations are similar to those of the related art, duplicate description will be omitted, and the characteristic part of the present invention will be described.
【0020】書込み領域検出部7の入力側はアドレスバ
スABに接続され、出力側はパリティデータ変更部8の
一方の入力に接続されている。パリティデータ変更部8
の他方の入力には、パリティデータ生成部5の出力側が
接続されている。パリティデータ変更部8の出力側は、
パリティデータメモリ4に接続されている。書込み領域
検出部7は、データメモリ3上の書込み領域及び書込み
禁止領域を特定するためのRAM等に設けられたテーブ
ルから構成される。The input side of the write area detecting section 7 is connected to the address bus AB, and the output side is connected to one input of the parity data changing section 8. Parity data changing unit 8
The output side of the parity data generator 5 is connected to the other input of the. The output side of the parity data changing unit 8 is
It is connected to the parity data memory 4. The write area detection unit 7 is composed of a table provided in a RAM or the like for specifying a write area and a write prohibited area on the data memory 3.
【0021】このテーブルは、データメモリ3に割当て
られた各アドレスに対応する1ビットのデータから構成
され、書込み領域の場合は内容“0”、書込み禁止領域
の場合“1”が設定されている。例えばデータメモリ3
の先頭アドレスにより特定される記憶領域が書込み領域
の場合、書込み領域検出部7の先頭データは内容“0”
が設定され、書込み禁止領域の場合、先頭データは内容
“1”が設定される。This table is composed of 1-bit data corresponding to each address assigned to the data memory 3, and the content "0" is set in the case of the write area and "1" is set in the case of the write-inhibited area. .. For example, data memory 3
If the storage area specified by the start address of the write area is the write area, the start data of the write area detection unit 7 has the content "0".
Is set, and in the case of the write-protected area, the content “1” is set as the head data.
【0022】パリティデータ変更部8は、排他的論理和
回路(exclusive OR回路)から構成されるものである。
パリティデータ変更部8は、書込み領域検出部7の出力
が内容“0”、即ち書込み領域を示す場合、パリティデ
ータ生成部5の出力をそのままパリティライトデータP
WDとして出力する。一方、書込み領域検出部7の出力
が内容“1”、即ち書込み禁止領域を示す場合、パリテ
ィデータ生成部5の出力を反転する。The parity data changing unit 8 is composed of an exclusive OR circuit.
When the output of the write area detecting unit 7 indicates the content “0”, that is, the write area, the parity data changing unit 8 outputs the output of the parity data generating unit 5 as it is to the parity write data P.
Output as WD. On the other hand, when the output of the write area detection unit 7 indicates the content “1”, that is, the write prohibited area, the output of the parity data generation unit 5 is inverted.
【0023】また、データメモリ3へデータを書込む場
合、プロセッサ1は、アドレスバスABに書込みアドレ
スを、制御線Cに書込み要求を、そしてデータバスDB
にデータを出力する。メモリ制御部2は、アドレスバス
AB上のアドレスを解析し、メモリアドレス線MA及び
メモリ制御線のRAS、CAS、WEをアクセスする。
データメモリ3は、メモリアドレス線MA及びメモリ制
御線MCのアクセスを受けてデータバスDB上のデータ
の書込みを実施する。When writing data to the data memory 3, the processor 1 issues a write address to the address bus AB, a write request to the control line C, and the data bus DB.
Output the data to. The memory control unit 2 analyzes the address on the address bus AB and accesses the memory address line MA and the memory control lines RAS, CAS, and WE.
The data memory 3 receives the access from the memory address line MA and the memory control line MC to write the data on the data bus DB.
【0024】さて、パリティデータ生成部5は、データ
バスDBにデータが出力されたのを受けて、このデータ
に基づくパリティデータを生成し、パリティデータ変更
部8に向けて出力する。書込み領域検出部7では、アド
レスバスAB上のアドレスにより特定されるビットの内
容をパリティデータ変更部8に向けて出力する。Upon receipt of the data output to the data bus DB, the parity data generator 5 generates parity data based on this data and outputs it to the parity data changer 8. The write area detecting unit 7 outputs the content of the bit specified by the address on the address bus AB to the parity data changing unit 8.
【0025】アドレスバスAB上のアドレスが書込み領
域の場合、書込み領域検出部7の出力は内容“0”とな
るため、パリティデータ変更部8は、パリティデータ生
成部5の出力内容をパリティライトデータとしてパリテ
ィデータメモリ4に向けて出力する。パリティデータメ
モリ4は、データメモリ3同様にメモリアドレス線MA
及びメモリ制御線MCのアクセスを受けて、パリティデ
ータの書込みを実施する。When the address on the address bus AB is the write area, the output of the write area detecting section 7 is the content "0", so the parity data changing section 8 changes the output content of the parity data generating section 5 to the parity write data. Is output to the parity data memory 4. The parity data memory 4 has the same memory address line MA as the data memory 3.
Also, the parity data is written in response to the access from the memory control line MC.
【0026】アドレスバスAB上のアドレスが書込み禁
止領域の場合、書込み領域検出部7の出力は内容“1”
となるため、パリティデータ変更部8は、パリティデー
タ生成部5の出力内容を反転し、パリティライトデータ
PWDとしてパリティデータメモリ4に向けて出力さ
れ、パリティデータメモリ4に書込まれる。When the address on the address bus AB is the write prohibited area, the output of the write area detecting unit 7 is the content "1".
Therefore, the parity data changing unit 8 inverts the output content of the parity data generating unit 5, outputs the parity write data PWD to the parity data memory 4, and writes the parity write data PWD to the parity data memory 4.
【0027】次に、データメモリ3からデータを読出す
場合、プロセッサ1は、アドレスAB上に読出しアドレ
スを、制御線C上に読出し要求を出力する。このアドレ
ス及び要求は、メモリ制御部2により解析され、この解
析結果に基づいてデータメモリ3からデータの読出しが
実施される。読出されたデータはデータバスDBを介し
てプロセッサ1及びパリティデータ比較部6に認識され
る。パリティデータ比較部6では、パリティデータ生成
部5同様に、データバスDB上のデータを基にパリティ
データを生成する。Next, when reading data from the data memory 3, the processor 1 outputs a read address on the address AB and a read request on the control line C. The address and the request are analyzed by the memory control unit 2, and the data is read from the data memory 3 based on the analysis result. The read data is recognized by the processor 1 and the parity data comparison unit 6 via the data bus DB. Similar to the parity data generation unit 5, the parity data comparison unit 6 generates parity data based on the data on the data bus DB.
【0028】一方、パリティデータメモリ4において
も、データメモリ3同様にメモリ制御部2の解析結果に
基づいてパリティデータの読出しが実施される。読出さ
れたパリティデータは、パリティデータ比較部6に向け
てパリティリードデータPRDとして出力される。パリ
ティデータ比較部6では、先に生成したパリティデータ
と、パリティデータメモリ4から読出されたパリティデ
ータを比較し、比較結果が一致の場合にはパリティデー
タエラー信号PESを無効に、不一致の場合にはパリテ
ィデータエラー信号PESを有効に設定する。On the other hand, also in the parity data memory 4, like the data memory 3, the parity data is read based on the analysis result of the memory control unit 2. The read parity data is output to the parity data comparison unit 6 as parity read data PRD. The parity data comparison unit 6 compares the previously generated parity data with the parity data read from the parity data memory 4, invalidates the parity data error signal PES if the comparison results match, and compares the parity data error signal PES if they do not match. Sets the parity data error signal PES to valid.
【0029】先に実施された書込みが書込み禁止領域の
場合、パリティデータ変更部8においてパリティデータ
生成部5により生成されたパリティデータが変更(反
転)されているため、パリティデータ比較部6における
比較が不一致となる。即ち、データメモリ3の障害では
なく、書込み禁止領域への書込みに基づいてパリティデ
ータエラー信号の有効に設定することができ、プロセッ
サ1がデータメモリ3から読出したデータを正当なもの
として取扱う事態を回避する。本発明は以上の実施例に
限定されない。If the previously executed write is in the write-prohibited area, the parity data changing unit 8 has changed (inverted) the parity data generated by the parity data generating unit 5, and therefore the parity data comparing unit 6 compares the parity data. Will not match. That is, it is possible to set the parity data error signal to be valid based on the writing to the write protected area instead of the failure of the data memory 3, and the processor 1 treats the data read from the data memory 3 as valid. To avoid. The present invention is not limited to the above embodiments.
【0030】書込み領域検出部7の出力を、スイッチ等
によりパリティデータ変更部8に供給する場合と供給し
ない場合を設定することにより、パリティデータチェッ
クを常時実施することなく単にデータメモリ3へのデー
タ書込み及びデータ読出しを実現することができる。By setting whether the output of the write area detecting unit 7 is supplied to the parity data changing unit 8 or not by a switch or the like, the data to the data memory 3 is simply stored without performing the parity data check. Writing and data reading can be realized.
【0031】[0031]
【発明の効果】以上説明したように、本発明によると、
書込みを行なう際のアドレスを監視し、このアドレスが
書込み禁止領域への書込み、即ち不当な書込みであるか
否かを監視し、不当な書込みである場合には、パリティ
データを強制的にデータメモリ上のデータと整合しない
内容に変更する。このため、データの読出しを実施した
場合、パリティデータが障害を示す内容であるため、不
当な書込みを障害として取扱うことができる。As described above, according to the present invention,
The address at the time of writing is monitored, whether this address is a write to the write protected area, that is, whether it is an illegal write or not, and if it is an illegal write, the parity data is forced to the data memory. Change the contents to be inconsistent with the above data. Therefore, when the data is read, since the parity data has a content indicating a failure, the improper writing can be treated as a failure.
【図1】本発明のメモリ障害検出機構に係るブロック図
である。FIG. 1 is a block diagram of a memory failure detection mechanism of the present invention.
【図2】従来のメモリ障害検出機構に係るブロック図で
ある。FIG. 2 is a block diagram of a conventional memory failure detection mechanism.
3 データメモリ 4 パリティデータメモリ 5 パリティデータ生成部 6 パリティデータ比較部 7 書込み領域検出部 8 パリティデータ変更部 3 data memory 4 parity data memory 5 parity data generation unit 6 parity data comparison unit 7 write area detection unit 8 parity data change unit
Claims (1)
タを生成するパリティデータ生成部と、 前記データに対応して前記パリティデータを記憶するパ
リティデータメモリと、 前記データメモリからの前記データの読出しと同時に、
前記パリティデータメモリから前記パリティデータを読
出し、当該データの正当性を判断するパリティデータ判
定部と、 予め設定された前記データメモリの書込み禁止領域への
書込みを検出する書込み領域検出部と、 前記書込み領域検出部が前記書込み禁止領域への書込み
を検出した場合、前記パリティデータメモリに書込む前
記パリティデータを強制的に無効内容に変更するパリテ
ィデータ変更部とを備えたことを特徴とするメモリ障害
検出機構。1. A data memory for storing data, a parity data generation unit for generating parity data unique to the data to be written in the storage area, and parity data for storing the parity data corresponding to the data. A memory and reading the data from the data memory,
A parity data determination unit that reads the parity data from the parity data memory and determines the validity of the data; a write area detection unit that detects writing to a preset write prohibited area of the data memory; A memory failure, comprising: a parity data changing unit for forcibly changing the parity data to be written in the parity data memory to invalid contents when the area detecting unit detects writing to the write prohibited area. Detection mechanism.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4024545A JPH05189997A (en) | 1992-01-14 | 1992-01-14 | Memory fault detecting mechanism |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4024545A JPH05189997A (en) | 1992-01-14 | 1992-01-14 | Memory fault detecting mechanism |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05189997A true JPH05189997A (en) | 1993-07-30 |
Family
ID=12141125
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4024545A Pending JPH05189997A (en) | 1992-01-14 | 1992-01-14 | Memory fault detecting mechanism |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05189997A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006079811A (en) * | 2004-09-06 | 2006-03-23 | Samsung Electronics Co Ltd | Semiconductor memory device having parity detector for error detection |
| US20230153197A1 (en) * | 2021-11-17 | 2023-05-18 | Nxp B.V. | Address fault detection system |
-
1992
- 1992-01-14 JP JP4024545A patent/JPH05189997A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006079811A (en) * | 2004-09-06 | 2006-03-23 | Samsung Electronics Co Ltd | Semiconductor memory device having parity detector for error detection |
| US7783941B2 (en) | 2004-09-06 | 2010-08-24 | Samsung Electronics Co., Ltd. | Memory devices with error detection using read/write comparisons |
| US20230153197A1 (en) * | 2021-11-17 | 2023-05-18 | Nxp B.V. | Address fault detection system |
| US11853157B2 (en) * | 2021-11-17 | 2023-12-26 | Nxp B.V. | Address fault detection system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5381544A (en) | Copyback memory system and cache memory controller which permits access while error recovery operations are performed | |
| JPH05189997A (en) | Memory fault detecting mechanism | |
| US5652837A (en) | Mechanism for screening commands issued over a communications bus for selective execution by a processor | |
| JP3239935B2 (en) | Tightly-coupled multiprocessor system control method, tightly-coupled multiprocessor system, and recording medium therefor | |
| KR20000009381A (en) | Memory writing protection apparatus of computer system | |
| JPH05108493A (en) | Memory control system | |
| JPS61166654A (en) | Memory patrol diagnosis system | |
| JPH01251254A (en) | Interruption request generating system | |
| JPH07302226A (en) | Memory illegal access detection circuit | |
| JP2000207235A (en) | Information processor | |
| JPH02278446A (en) | Memory access control circuit | |
| JPH0266652A (en) | Cache memory | |
| JPH0223442A (en) | Memory control device | |
| JPH0480860A (en) | Program loading system | |
| JPH0782447B2 (en) | DMA data transfer control device | |
| JPS6270956A (en) | Memory protecting device | |
| JPH0350652A (en) | Electronic disk sub-system | |
| JPH01258054A (en) | Access control system for storage device | |
| JPH04309137A (en) | memory system | |
| JPS61228544A (en) | Write protection system | |
| JPS6282438A (en) | Control system for interruption of debug in information processor | |
| JPH02176843A (en) | Dma controller | |
| JPS62130443A (en) | Memory access controller | |
| JPH02287743A (en) | Decision system for writing to defective memory | |
| JPH02148340A (en) | System for controlling writing in control storage |