JPH0359740A - Memory fault detection system - Google Patents

Memory fault detection system

Info

Publication number
JPH0359740A
JPH0359740A JP1194289A JP19428989A JPH0359740A JP H0359740 A JPH0359740 A JP H0359740A JP 1194289 A JP1194289 A JP 1194289A JP 19428989 A JP19428989 A JP 19428989A JP H0359740 A JPH0359740 A JP H0359740A
Authority
JP
Japan
Prior art keywords
memory
data
error
circuit
address
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
JP1194289A
Other languages
Japanese (ja)
Inventor
Hidetaka Minami
南 秀孝
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 JP1194289A priority Critical patent/JPH0359740A/en
Publication of JPH0359740A publication Critical patent/JPH0359740A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To reduce the cost of the system and to completely check a memory by storing data whose all bits are reset in the same address, reading out the stored data, collating the read data with the original data, and at the time of detecting a memory fault, displaying an error on an error display FF circuit. CONSTITUTION:The system is provided with a timer circuit 9 for generating a periodical interruption signal to a CPU 1 and the error display FF circuit 8 for displaying an error at the time of generating a fault in the memory 3. When an interruption signal arrives, the address of the memory 3 is updated, data whose all bits are reaset are stored in the updated address and then read out and the read data are collated with the original data. When a memory fault is detected as the result of comparison, the error is displayed on the circuit 8. Consequently, complete memory check is attained without increasing the cost.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、CPUとメモリとを備えたシステムのメモリ
の障害を検出するメモリ障害検出方式に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory fault detection method for detecting a memory fault in a system including a CPU and a memory.

[従来の技術] 従来のメモリ障害検出方式を説明するブロック図を第3
図に示す。同図において、1はCPU、2はCPUバス
、3はCPUバス2に接続されるメモリ、4はメモリ3
に書き込まれるデータからパリティビットを生成するパ
リティジェネレータ、5はパリティジェネレータ4にお
いて生成されるパリティビットを保持するバリテ、イビ
ット保持メモリ、6はメモリ3およびパリティビット保
持メモリ5からそれぞれ読み出したデータをチエツクす
るパリティチエッカ、7はパリティチエッカ6から出力
されるデータからエラーを検出するエラー検出回路、8
はエラー検出回路7からのエラー出力を表示するエラー
表示F/F回路である。
[Prior art] A block diagram illustrating a conventional memory fault detection method is shown in the third section.
As shown in the figure. In the figure, 1 is the CPU, 2 is the CPU bus, 3 is the memory connected to the CPU bus 2, and 4 is the memory 3.
A parity generator 5 generates parity bits from data written in the parity generator 4, a valid bit holding memory 5 holds the parity bits generated in the parity generator 4, and a bit holding memory 6 checks the data read from the memory 3 and the parity bit holding memory 5, respectively. 7 is an error detection circuit that detects errors from the data output from the parity checker 6;
is an error display F/F circuit that displays the error output from the error detection circuit 7.

そして、このように構成されたシステムにおいて、メモ
リ障害を検出するときは次のようにしてメモリ障害の検
出を行っている。すなわち、CPU1がメモリ3に対し
てデータを書き込むとき、この書き込みデータがパリテ
ィジェネレータ4に送出される。そして、パリティジェ
ネレータ4では、この書き込みデータからパリティビッ
トを生成してパリティビット保持メモリ5に送出して保
持させる。
In the system configured as described above, when detecting a memory fault, the memory fault is detected as follows. That is, when the CPU 1 writes data to the memory 3, this write data is sent to the parity generator 4. Then, the parity generator 4 generates a parity bit from this write data and sends it to the parity bit holding memory 5 to be held there.

次に、CPUIがメモリ3に対して上記で書き込んだデ
ータを読み出すとき、この読み出されたデータがパリテ
ィチエッカ6に送出されると同時に、保持されているパ
リティビットがパリティビット保持メモリ5から読み出
されてパリティチエッカ6に送出される。そして、パリ
ティチエッカ6ではこの保持された書き込みデータのパ
リティビットと読みだしデータのパリティビットとをエ
ラー検出回路7に送出する。このエラー検出回路7はこ
の双方のパリティビットを比較照合し、エラーを検出し
たときはエラー信号をエラー表示F/F回路に送出して
エラー表示をさせる。
Next, when the CPUI reads the data written above to the memory 3, the read data is sent to the parity checker 6, and at the same time, the held parity bit is transferred from the parity bit holding memory 5. The data is read out and sent to the parity checker 6. Then, the parity checker 6 sends the held parity bits of the write data and the parity bits of the read data to the error detection circuit 7. The error detection circuit 7 compares and collates both parity bits, and when an error is detected, sends an error signal to the error display F/F circuit to display an error.

なお、メモリ3への書き込みデータとメモリ3からの読
みだしデータとを比較して、この読みだしデータの中の
障害ビットが偶数個であれば、このときにはエラー検出
を行うことができない。
Note that if the data written to the memory 3 and the data read from the memory 3 are compared and the number of failure bits in the read data is an even number, error detection cannot be performed at this time.

[発明が解決しようとする課H] 上述した従来のメモリ障害検出方式は、メモリ障害を検
出するために、パリティジェネレータ4.パリティビッ
ト保持メモリ5.パリティチエッカ6、エラー検出回路
7等の付加回路が必要となり、しかもメモリ3のメモリ
容量が増大するにつれてパリティビット保持メモリ5の
容量も増大し、コストアップを招くという問題があった
。また、メモリ3への書き込みデータとメモリ3からの
読みだしデータとを比較して、この読みだしデータの中
から偶数個のビットが障害となったときには、この障害
ビットのエラーが検出できないという問題もあった。
[Problem H to be Solved by the Invention] The conventional memory fault detection method described above uses a parity generator 4. Parity bit holding memory5. Additional circuits such as a parity checker 6 and an error detection circuit 7 are required, and as the memory capacity of the memory 3 increases, the capacity of the parity bit holding memory 5 also increases, resulting in an increase in cost. Another problem is that when comparing the data written to the memory 3 and the data read from the memory 3, if an even number of bits in the read data becomes a fault, the error in the faulty bit cannot be detected. There was also.

[課題を解決するための手段] このような課題を解決するために本発明のメモリ障害検
出方式は、CPUに対して周期的な割り込み信号を発生
するタイマ回路と、メモリの障害時にエラー表示を行う
エラー表示F/F回路とを備えたものである。
[Means for Solving the Problems] In order to solve such problems, the memory fault detection method of the present invention includes a timer circuit that generates periodic interrupt signals to the CPU, and an error display when a memory fault occurs. It is equipped with an error display F/F circuit that performs error display.

[作用] 割り込み信号が到来すると、メモリのアドレスが更新さ
れ、このアドレスに全ビットがセットされたデータを記
憶した後このデータを読み出して照合するとともに、次
にこの同じアドレスに全ビットがリセットされたデータ
を記憶した後このデータを読み出して照合する。この照
合の結果、メモリ障害が検出されれば、エラー表示F/
F回路にエラー表示を行う。
[Operation] When an interrupt signal arrives, the memory address is updated, and after storing data with all bits set at this address, this data is read and verified, and then all bits are reset at this same address. After storing the data, this data is read out and verified. As a result of this verification, if a memory failure is detected, an error message will be displayed F/
Displays an error on the F circuit.

[実施例] 次に、本発明について図面を参照して説明する。[Example] Next, the present invention will be explained with reference to the drawings.

第1図は本発明のメモリ障害検出方式の一実例を示すブ
ロック図である。同図において、第3図の従来のメモリ
障害方式のブロック図と同等部分は同一符号を付してそ
の説明を省略する。第1図において、9はCPUIに対
して周期的に割り込み信号を発生させるタイマである。
FIG. 1 is a block diagram showing an example of the memory fault detection method of the present invention. In this figure, the same parts as those in the block diagram of the conventional memory failure method shown in FIG. 3 are given the same reference numerals, and the explanation thereof will be omitted. In FIG. 1, 9 is a timer that periodically generates an interrupt signal to the CPUI.

そして、このタイマ9の周期は16m5に設定されてい
る。また、CPUバス2は16ビツトアドレスバスと1
6ビツトデータバスにより構成されている。
The period of this timer 9 is set to 16 m5. In addition, CPU bus 2 is a 16-bit address bus and
It consists of a 6-bit data bus.

そして、このメモリ3の障害検出は、タイマ9がCPU
Iに対して周期的な割り込み信号を発生させることによ
り、CPUIがこの割り込み信号を受信して実行する割
り込み処理の中で行われ、この処理の結果エラーが検出
されれば、エラー表示F/F回路8にエラー表示情報を
送出してエラー表示させるものとなっている。
The timer 9 detects a fault in the memory 3 when the CPU
By generating a periodic interrupt signal to I, this is done during the interrupt processing that the CPUI receives and executes, and if an error is detected as a result of this processing, an error display will be displayed on the F/F. Error display information is sent to the circuit 8 to display the error.

次に、第2図はこのメモリ障害検出方式の動作を説明す
るフローチャートである。このフローチャートに基づい
てメモリ障害検出方式の詳細な動作を説明する。
Next, FIG. 2 is a flowchart illustrating the operation of this memory fault detection method. The detailed operation of the memory fault detection method will be explained based on this flowchart.

CPUIがタイマ9から割り込み信号を受は付けると、
割り込み処理が実行されステップ100で予め「O」ク
リアされていたCPUI内部のアドレスカウンタで示さ
れるメモリ3のデータを読み出して、ステップ101で
この読み出したデータをCPUI内部の他のレジスタに
退避する。このデータは通常の処理で使用するために退
避するものである。次に、ステップ102において上記
と同じ値のアドレスカウンタで示されるメモリ3のアド
レスに16ビツトデータFFFFH(16進でFFFF
というデータ〉を書き込む。そして、ステップ103で
令書き込んだメモリ3の同じアドレスのデータを読み出
す。
When the CPUI accepts the interrupt signal from timer 9,
When interrupt processing is executed, in step 100 the data in the memory 3 indicated by the address counter inside the CPUI which has been cleared to "O" in advance is read out, and in step 101 the read data is saved in another register inside the CPUI. This data is saved for use in normal processing. Next, in step 102, 16-bit data FFFFH (FFFF in hexadecimal) is stored at the address in memory 3 indicated by the address counter with the same value as above.
Write the data. Then, the data at the same address in the memory 3 into which the command was written in step 103 is read out.

ステップ104でこの読みだしデータ(リードデータ〉
が書き込みデータ(ライトデータ)、すなわちFFFF
Hと一致するか否かを判断する。そして、これが「Y」
のとき、すなわち書き込んだデータと一致すれば、次に
ステップ105で上記と同じ値のアドレスカウンタで示
されるメモリ3のアドレスに16ビツトデータ0OOO
H(16進でooooというデータ)を書き込む。そし
て、ステップ106で令書き込んだメモリ3の同じアド
レスのデータを読み出す。
In step 104, this read data (read data)
is write data (write data), i.e. FFFF
Determine whether it matches H. And this is "Y"
In other words, if it matches the written data, then in step 105, 16-bit data 0OOOO is written to the address of memory 3 indicated by the address counter with the same value as above.
Write H (data oooo in hexadecimal). Then, the data at the same address in the memory 3 into which the command was written in step 106 is read out.

ステップ107でこの読みだしデータが書き込みデータ
、すなわち0OOOHと一致するか否かを判断する。そ
して、これが「Y」のとき、すなわち書き込んだデータ
と一致すればステップ108で他のレジスタに退避して
いたデータをアドレスカウンタで示されるメモリ3のア
ドレスに書き込んで、ステップ109でアドレスカウン
タを2番地だけカウントアツプし割り込み処理から復帰
する。このようにこの割り込み処理のなかでは、アドレ
スが0番地と1番地のメモリ3の障害が検出され、次の
16IIIs後の割り込み処理においては、アドレスが
3番地と4番地のメモリ3の障害検出が行われる。
In step 107, it is determined whether the read data matches the write data, that is, 0OOOH. If this is "Y", that is, if it matches the written data, the data saved in another register is written to the address of memory 3 indicated by the address counter in step 108, and the address counter is set to 2 in step 109. It counts up the address and returns from interrupt processing. In this way, during this interrupt processing, a fault in memory 3 at addresses 0 and 1 is detected, and in the next interrupt processing after 16IIIs, a fault in memory 3 at addresses 3 and 4 is detected. It will be done.

また、ステップ104で「N」、すなわち読みだしデー
タがFFFFHではないときはステップ110でエラー
表示F/F回路8にエラー表示情報をセットし割り込み
処理から復帰し、ステップ107で「N」、すなわち読
みだしデータが0OOOHではないときはステップ11
0でエラー表示F/F回路8にエラー表示情報をセット
し割り込み処理から復帰する。
If the result in step 104 is "N", that is, the read data is not FFFFH, the error display information is set in the error display F/F circuit 8 in step 110, and the process returns from the interrupt processing, and the result in step 107 is "N", that is, when the read data is not FFFFH. If the read data is not 0OOOH, step 11
When the value is 0, error display information is set in the error display F/F circuit 8 and the process returns from the interrupt processing.

上記したように本実施例の場合、このメモリ3の障害検
出はCPUIが実行する通常の処理の合間を縫って、す
なわち通常処理以外のタイマ割り込み処理で16m5毎
に2番地づつメモリ障害を検出している。そして、メモ
リ3は64にバイトのRAMであるので、これを−通り
チエツクするためには、32000回の割り込み処理が
必要となる。すなわち、メモリ3の全エリアの障害検出
を行うには、16w5X32000=512S、つまり
512秒の時間を要することになる。
As mentioned above, in the case of this embodiment, fault detection in the memory 3 is performed in between normal processing executed by the CPU, that is, during timer interrupt processing other than normal processing, memory faults are detected at two addresses every 16m5. ing. Since the memory 3 is a 64-byte RAM, 32,000 interrupt processes are required to check this data. That is, to detect a fault in all areas of the memory 3, it takes 16w5×32000=512S, that is, 512 seconds.

また、メモリ3に読み書きする16ビツトデータを全ビ
ットがセットされるデータFFFFHと全ビットがリセ
ットされるデータ0000Hという二通りのデータに基
づいてチエツクを行っているので、すべてのデータのビ
ットの組み合わせがチエツクでき、完璧なメモリチエツ
クが行える。
In addition, since the 16-bit data to be read and written to memory 3 is checked based on two types of data: data FFFFH in which all bits are set and data 0000H in which all bits are reset, all bit combinations of data are checked. can be checked, and a perfect memory check can be performed.

[発明の効果] 以上説明したように本発明のメモリ障害方式は、周期的
な割り込み信号を発生するタイマ回路と、メモリの障害
時にエラー表示を行うエラー表示F/F回路とを備え、
割り込み信号が到来すると、メモリのアドレスが更新さ
れ、このアドレスに全ビットがセットされたデータを記
憶した後このデータを読み出して照合するとともに、次
にこの同じアドレスに全ビットがリセットされたデータ
を記憶した後このデータを読み出して照合し、この照合
の結果メモリ障害が検出されるとエラー表示F/F回路
にエラー表示を行うように構成したので、メモリ障害検
出に伴う付加回路が削減でき、コストダウンが可能にな
るとともに、全てのメモリの全てのビットの障害検出が
でき、完全なメモリチエツクが行えるという効果が得ら
れる。
[Effects of the Invention] As explained above, the memory failure method of the present invention includes a timer circuit that generates periodic interrupt signals, and an error display F/F circuit that displays an error when a memory failure occurs.
When an interrupt signal arrives, the memory address is updated, the data with all bits set is stored at this address, this data is read out and compared, and the next data with all bits reset is stored at this same address. After being stored, this data is read out and verified, and if a memory failure is detected as a result of this verification, an error is displayed on the error display F/F circuit, so the additional circuitry involved in memory failure detection can be reduced. In addition to being able to reduce costs, it is also possible to detect faults in all bits of all memories, resulting in the effect that a complete memory check can be performed.

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

第1図は本発明のメモリ障害方式の一実施例を示すブロ
ック図、第2図はその動作説明に供するフローチャート
、第3図は従来のメモリ障害方式を説明するブロック図
である。 工・・ ・・CPU、2・ ・・ ・CPUバス、3・
・・・メモリ、8・・・・エラー表示171回路、9・
・・・タイマ。
FIG. 1 is a block diagram showing an embodiment of the memory failure method of the present invention, FIG. 2 is a flowchart explaining its operation, and FIG. 3 is a block diagram explaining a conventional memory failure method. Engineering...CPU, 2... -CPU bus, 3.
...Memory, 8...Error display 171 circuit, 9.
...Timer.

Claims (1)

【特許請求の範囲】 CPUとメモリとを備えたシステムのメモリ障害を検出
するメモリ障害検出方式において、前記CPUに対して
周期的な割り込み信号を発生するタイマ回路と、 前記メモリの障害時にエラー表示を行うエ ラー表示F/F回路と を備え、前記割り込み信号の到来毎に更新される前記メ
モリのアドレスに全ビットがセットされたデータを記憶
した後に読み出して照合するとともに、前記アドレスに
全ビットがリセットされたデータを記憶した後に読み出
して照合するようにしたことを特徴とするメモリ障害検
出方式。
[Scope of Claims] A memory fault detection method for detecting a memory fault in a system including a CPU and a memory, comprising: a timer circuit that generates a periodic interrupt signal to the CPU; and an error display when the memory fault occurs. and an error display F/F circuit that stores data with all bits set at the address of the memory that is updated every time the interrupt signal arrives, and then reads and collates the data, and also displays data with all bits set at the address. A memory failure detection method characterized in that reset data is stored and then read out and verified.
JP1194289A 1989-07-28 1989-07-28 Memory fault detection system Pending JPH0359740A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1194289A JPH0359740A (en) 1989-07-28 1989-07-28 Memory fault detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1194289A JPH0359740A (en) 1989-07-28 1989-07-28 Memory fault detection system

Publications (1)

Publication Number Publication Date
JPH0359740A true JPH0359740A (en) 1991-03-14

Family

ID=16322122

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1194289A Pending JPH0359740A (en) 1989-07-28 1989-07-28 Memory fault detection system

Country Status (1)

Country Link
JP (1) JPH0359740A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007194840A (en) * 2006-01-18 2007-08-02 Toshiba Corp Remote control unit and image receiving system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007194840A (en) * 2006-01-18 2007-08-02 Toshiba Corp Remote control unit and image receiving system

Similar Documents

Publication Publication Date Title
JPH07271403A (en) Inactive system memory updating system
US20040205384A1 (en) Computer system and memory control method thereof
JPH0359740A (en) Memory fault detection system
JPH0316655B2 (en)
JP2910692B2 (en) Testing method of random access memory
JPH0922387A (en) Memory unit
JPH05225077A (en) Hard error detection system for memory control circuit holding ecc
JPH0612339A (en) Check system for memory
JP3344432B2 (en) Information processing device
JP2567986B2 (en) Data processing system
JPH0793225A (en) Memory check system
JPH06103469B2 (en) Memory control circuit
JP2000040036A (en) Memory checking circuit
JPH02143352A (en) Memory error detection and correction system
JPH0486932A (en) Memory fault detecting system
JPH10161940A (en) Checking method for memory
JPS62195800A (en) Testing device for memory ic with redundancy circuit
JPH0341538A (en) Main storage device
JPH0934801A (en) Method for detecting pointer control abnormality for fifo
JPH01222357A (en) Soft error identifying method
JPH09297714A (en) Method and device for backing up data
JPS61253564A (en) Storage device
JPH05165735A (en) Identification system for parity error occured memory element
JPS60173647A (en) Detecting system of error generating part of information processing unit
JPH02171991A (en) Control method for ic card