JPH04199247A - Pseudo memory error generation circuit - Google Patents

Pseudo memory error generation circuit

Info

Publication number
JPH04199247A
JPH04199247A JP2317768A JP31776890A JPH04199247A JP H04199247 A JPH04199247 A JP H04199247A JP 2317768 A JP2317768 A JP 2317768A JP 31776890 A JP31776890 A JP 31776890A JP H04199247 A JPH04199247 A JP H04199247A
Authority
JP
Japan
Prior art keywords
memory
error
data
test
pseudo
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
JP2317768A
Other languages
Japanese (ja)
Inventor
Yukihiro Seki
関 行宏
Yasuhiko Kiyono
清野 靖彦
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2317768A priority Critical patent/JPH04199247A/en
Publication of JPH04199247A publication Critical patent/JPH04199247A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To simplify the processing of a pseudo-error by automatically invalidating an inversion instruction at the time of memory writing after a parity bit inverting instruction is issued. CONSTITUTION:By adding a pseudo-error clear circuit 10, a pseudo-error latch 8 is cleared to '0' at the time of memory writing after '1' is set in the pseudo- error latch 8. In other words, a pseudo-error generating instruction is automatically invalidated after one memory cycle. Since the pseudo-error of a memory can be generated only when the error is required, the need of a process for ignoring the other errors is eliminated and error processing is simplified.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はパーソナルコンピュータやワークステーション
などの情報機器のメモリ装置の診断回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a diagnostic circuit for a memory device of an information device such as a personal computer or a workstation.

〔従来の技術〕[Conventional technology]

一般的な情報処理装置のメモリシステムは、メモリエラ
ーによる誤動作を防ぐため、パリティまたはF CC(
Error  Correcting  Code )
などの検査ビットを付加し、メモリ内容の誤り検出を行
なっている。
The memory system of general information processing equipment uses parity or FCC (
Error Correcting Code)
Check bits such as these are added to detect errors in the memory contents.

また、これらの誤り検出回路や検査ビットを格納する検
査ビットメモリが正常かどうかを診断するために、疑似
的に誤りを発生させる回路を付加する場合がある。例え
ば、パリティ符号の場合、書込み時にパリティの極性を
反転しておき、そのアドレスを読出すことで疑似エラー
を発生させることができる。
Further, in order to diagnose whether these error detection circuits and the test bit memory storing the test bits are normal, a circuit that generates a pseudo error may be added. For example, in the case of a parity code, a pseudo error can be generated by inverting the polarity of the parity at the time of writing and reading the address.

そのような従来例は、特開昭63−73437号公報な
どに開示されている。
Such a conventional example is disclosed in Japanese Unexamined Patent Publication No. 63-73437.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで、メモリでエラーが発生すると、NMI  (
Non  Maskable  Interrutpt
 )などによッテメインのCPUなどに通知するのが一
般的である。
By the way, when an error occurs in memory, NMI (
Non Maskable Interrupt
) etc. to notify the main CPU.

NMIのような割込みが入力されると、CPUは即座に
現在の内部情報をスタック領域に書込み、のちに割込み
処理の命令を読出し、実行する。
When an interrupt such as NMI is input, the CPU immediately writes the current internal information to the stack area, and later reads and executes the interrupt processing instruction.

ここで、従来の技術では、診断のために疑似エラーを発
生することを指示した場合、次にそれを無効化する指示
をするまでは疑似エラーが発生し続けるという問題があ
る。すなわち、スタック領域へのメモリ書込みで検査ビ
ットが反転したり、割込み処理命令の読出しで再度エラ
ーが起きる。
Here, in the conventional technology, there is a problem in that when an instruction is given to generate a pseudo error for diagnosis, the pseudo error continues to occur until the next instruction is given to disable it. That is, the check bit may be inverted when writing memory to the stack area, or an error may occur again when reading an interrupt processing instruction.

従って、割込み処理では、本来の疑似エラー以外のエラ
ーを無視するようにプログラムを作成する必要があり、
処理が複雑になるという問題があった。
Therefore, in interrupt processing, it is necessary to create a program to ignore errors other than the original pseudo errors.
There was a problem that the processing became complicated.

本発明の目的は、疑似エラーは本来必要とする一回のみ
発生するようにし、必要ないところでエラーが発生する
ことを防止することで、エラー処理を簡単化することに
ある。
SUMMARY OF THE INVENTION An object of the present invention is to simplify error handling by ensuring that a pseudo error occurs only once as originally required, and by preventing errors from occurring where they are not needed.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するために、本発明は疑似エラー発生指
示を一回のメモリサイクルののち、自動的に無効になる
ようにしたものである。
In order to achieve the above object, the present invention automatically invalidates the pseudo error occurrence instruction after one memory cycle.

例えば、書込み時に検査ビットを反転して検査メモリに
書込む疑似エラー発生方式では、疑似エラー発生を指示
したあとの最初のメモリ書込みがあると、検査ビット反
転機能を無効化し、それ以降の書込みで検査ビットが反
転しないようにしたものである。
For example, in a pseudo error generation method that inverts the check bits during writing and writes them to the test memory, when the first memory write is made after instructing the generation of a pseudo error, the check bit inversion function is disabled, and subsequent writes are disabled. This is to prevent the check bits from being inverted.

あるいは、読出し時に検査ビット、あるいは、データを
反転して誤りを発生させる疑似エラー発生方式では、疑
似エラー発生を指示したあとの最初のメモリ読出しがあ
ると、検査ビットあるいはデータ反転機能を無効化し、
それ以−降の読出しにおいてビットが反転しないように
したものである。
Alternatively, in a pseudo-error generation method that inverts check bits or data during read to generate an error, the first memory read after instructing pseudo-error generation disables the check bit or data inversion function,
This is to prevent the bits from being inverted during subsequent reading.

あるいは、読出し時に誤り検出回路の出力そのものを反
転して誤りを発生させる疑似エラー発生方式では、疑似
エラー発生を指示したあとの最初のメモリ読出しがある
と、誤り検出回路の出力の反転機能を無効化し、それ以
降の読出しで誤り信号が反転しないようにしたものであ
る。
Alternatively, in a pseudo error generation method that generates an error by inverting the output of the error detection circuit itself when reading, the first memory read after issuing a pseudo error generation instruction disables the error detection circuit's output inversion function. This is to prevent the error signal from being inverted during subsequent reading.

〔作用〕[Effect]

検査ビットやデータの反転指示は、通常、メインCPU
のI/○空間におかれた■/○レジスタによって制御さ
れる場合が多い。
Inspection bits and data inversion instructions are normally issued by the main CPU.
It is often controlled by the ■/○ register located in the I/○ space of.

そこで、書込み時に検査ビットを反転して検査メモリに
書込む疑似エラー発生方式では、メモリ書込み信号から
メモリ書込み終了パルスを作成し、疑似エラー発生を指
示したあとの最初のメモリ書込みがあるとそのパルスで
反転指示を行なうI10レジスタをクリアするようにす
ればよい。
Therefore, in a pseudo-error generation method that inverts the check bits during writing and writes them to the test memory, a memory write end pulse is created from the memory write signal, and when the first memory write after instructing pseudo-error generation occurs, the pulse It is sufficient to clear the I10 register, which instructs inversion.

あるいは、読出し時に検査ビット、あるいは、データを
反転して誤りを発生させる疑似エラー発生方式では、メ
モリ読出し信号からメモリ読出し終了パルスを作成し、
疑似エラー発生を指示したあとの最初のメモリ読出しが
あるとそのパルスで反転指示を行なうI10レジスタを
クリアするようにすればよい。
Alternatively, in a pseudo error generation method that generates an error by inverting the check bit or data during read, a memory read end pulse is created from the memory read signal,
When there is the first memory read after instructing the occurrence of a pseudo error, the I10 register, which instructs inversion, may be cleared by that pulse.

あるいは、読出し時に誤り検出信号を反転して誤りを発
生させる疑似エラー発生方式では、メモリ読出し信号か
らメモリ読出し終了パルスを作成し、疑似エラ・−発生
を指示したあとの最初のメモリ読出しがあるとそのパル
スで反転指示を行なうI10レジスタをクリアするよう
にすればよい。
Alternatively, in a pseudo error generation method that generates an error by inverting the error detection signal at the time of reading, a memory read end pulse is created from the memory read signal, and when the first memory read after instructing the generation of a pseudo error occurs, The pulse may be used to clear the I10 register that issues an inversion instruction.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図を用いて説明する。な
お、説明を簡略化するために、メモリの検査方法はパリ
ティ方式とする。同図において、1はデータメモリ、2
はデータバス、3はパリティメモリ、4はパリティ生成
回路、5はパリティ信号、6はパリティチエツク回路、
7はパリティエラーラッチである。また、8は疑似エラ
ーを指示する疑似エラーラッチ、9はパリティ反転回路
である610は本発明の特有の部分である疑似エラーク
リア回路である。
An embodiment of the present invention will be described below with reference to FIG. Note that in order to simplify the explanation, the memory checking method is assumed to be a parity method. In the figure, 1 is a data memory, 2
is a data bus, 3 is a parity memory, 4 is a parity generation circuit, 5 is a parity signal, 6 is a parity check circuit,
7 is a parity error latch. Further, 8 is a pseudo error latch that indicates a pseudo error, 9 is a parity inversion circuit, and 610 is a pseudo error clear circuit which is a unique part of the present invention.

簡単に動作を説明する。データバス2に接続された、例
えば、CP Uがメモリ書込みを行なった場合、データ
そのものはデータメモリ1に書込まれる。同時にパリテ
ィ生成回路4で書込みデータからパリティ信号5を作成
し、バリティメ王り3に書込む。読出し時はデータメモ
リ1からデータを読出すと共に、データバス2」、に出
力されたデータから書込み時と同様にパリティ生成回路
4でパリティ信号5を作成し、パリティチエツク回路6
でパリティメモリ3の出力との比較を行なう。
Briefly explain the operation. When, for example, a CPU connected to the data bus 2 performs memory writing, the data itself is written to the data memory 1. At the same time, a parity signal 5 is generated from the write data in a parity generation circuit 4 and written to a parity signal 3. At the time of reading, data is read from the data memory 1, and the parity generation circuit 4 generates a parity signal 5 from the data output to the data bus 2, as in the case of writing, and the parity check circuit 6 generates a parity signal 5.
A comparison is made with the output of parity memory 3.

もし、両者の値が異なっていれば、メモリエラーである
と判断し、パリティエラーラッチ7でエラー状態のラッ
チを行ない、NMI信号11として6丁)Uなど外部に
通知する。
If the two values are different, it is determined that there is a memory error, the parity error latch 7 latches the error state, and the NMI signal 11 is notified to external devices such as 6) U.

次に、疑似エラーを起こす場合について説明する。まず
、メモリへの書込みに先立ち、疑似エラーラッチ8に対
し°°1゛をセットする。疑似エラーラッチ8は一般的
なI10レジスタとして構成すればよい。その後、メモ
リ書込みを行なうと、パリティ反転回路9でパリティメ
モリ3に書込むべきパリティ信号5が反転される。次に
、書込んだアドレスを読出すと、パリティメモリ3の内
容が反転しているためエラーとなり、NMI信号11が
出力される。
Next, a case in which a pseudo error occurs will be explained. First, prior to writing to the memory, the pseudo error latch 8 is set to °°1. The pseudo error latch 8 may be configured as a general I10 register. Thereafter, when memory writing is performed, the parity signal 5 to be written into the parity memory 3 is inverted by the parity inverting circuit 9. Next, when the written address is read out, an error occurs because the contents of the parity memory 3 are inverted, and the NMI signal 11 is output.

ここまでは従来技術の動作と同じである。これに本発明
の特徴である疑似エラークリア回路10を加えると、疑
似エラーラッチ8に“1”°をセットしたあとのメモリ
書込みによって、疑似エラーラッチ8をクリアし°゛0
゛にする。その動作をタイムチャートで説明すると、第
2図のようになる。
The operation up to this point is the same as that of the prior art. Adding the pseudo error clearing circuit 10, which is a feature of the present invention, clears the pseudo error latch 8 by writing to memory after setting the pseudo error latch 8 to "1".
Make it ゛. The operation is explained using a time chart as shown in Fig. 2.

ここで、CLK20は基本クロック信号、r owc−
N21はI10書込み信号(負極性) 、MWTC−N
22はメモリ書込み信号(負極性) 、MRDC−N2
3はメモリ読出し信号(負極性)、DATA24はデー
タ信号である。時刻t]のl0WC−N21の立上りで
疑似エラーラッチ8にDA、TA24の値である“1゛
が書込まれる。続く時刻t2のMWTC−N22の立」
ニリでデータメモリ1とパリデイメモリ3に対しデータ
とパリティ情報がそれぞれ書込まれる。疑似エラークリ
ア回路10でMWT(、−N22から作成したクリア信
号25のパルスで、時刻L3に疑似エラーラッチ8の内
容はクリアされて0°゛になる。従って、以後、疑似エ
ラーラッチ8をO゛に戻す処理は不要となる。次に書込
んだのと同一アドレスに対してメモリ読出しを行なうと
、時刻t4でデータとパリティが読出されると共に、パ
リティエラーラッチ7にエラーがラッチされ、NMI(
3号11が出力される。
Here, CLK20 is the basic clock signal, rowc-
N21 is I10 write signal (negative polarity), MWTC-N
22 is a memory write signal (negative polarity), MRDC-N2
3 is a memory read signal (negative polarity), and DATA24 is a data signal. At the rising edge of l0WC-N21 at time t], "1", which is the value of DA and TA24, is written to the pseudo error latch 8. At the subsequent rising edge of MWTC-N22 at time t2.
Data and parity information are written into the data memory 1 and the parity memory 3, respectively. The content of the pseudo error latch 8 is cleared to 0° at time L3 by the pulse of the clear signal 25 generated from the MWT(, -N22) in the pseudo error clearing circuit 10.Therefore, from now on, the content of the pseudo error latch 8 is There is no need to perform the process of returning to ``.'' When the memory is read from the same address that was written next, the data and parity are read out at time t4, the error is latched in the parity error latch 7, and the NMI (
No. 3 11 is output.

このように、本発明ではパリティピットの反転指示を行
なったあとのメモリ書込みで、反転指示を自動的に無効
にするため、疑似エラー処理を簡単にすることができる
As described above, according to the present invention, the inversion instruction is automatically invalidated by memory writing after the parity pit inversion instruction is issued, so that pseudo error handling can be simplified.

第3図は、メモリ読出し時にパリティビットを反転して
疑似エラーを発生させる方式に本発明を適用した場合の
一実施例である。
FIG. 3 shows an embodiment in which the present invention is applied to a system in which a pseudo error is generated by inverting the parity bit during memory reading.

第1図の構成とは異なり、パリティ反転回路9はパリテ
ィメモリ3の出力に接続される。また、疑似エラークリ
ア回路10の出力であるクリア信号25は、メモリ読出
し信号MRD(>N23から作成する。動作原理は第1
図と同様であり、パリティの反転指示をする疑似エラー
ラッチ8をメモリ読出しの終了時にクリアすることで、
例えば割込み処理ルーチンにおける命令読出し時の疑似
パリティエラーを防ぐことができる。従って、エラー処
理ルーチンは本来必要とするエラーの処理のみを行なえ
ばよい。
Unlike the configuration in FIG. 1, parity inversion circuit 9 is connected to the output of parity memory 3. The clear signal 25, which is the output of the pseudo error clear circuit 10, is created from the memory read signal MRD (>N23.The operating principle is based on the first
This is similar to the figure, and by clearing the pseudo error latch 8 that instructs parity inversion at the end of memory reading,
For example, pseudo parity errors can be prevented when reading instructions in an interrupt processing routine. Therefore, the error handling routine only needs to process the errors that are originally required.

また、パリティエラーラッチ7の出力を反転させて疑似
エラーを発生する方式でも、同様に適用することができ
る。
Further, a method in which a pseudo error is generated by inverting the output of the parity error latch 7 can be similarly applied.

なお、本実施例は、パリティ方式で説明したが、ECC
方式でのエラー訂正/検出を行なうメモリシステムにも
適用することができる。
Although this embodiment has been explained using the parity method, the ECC
The present invention can also be applied to a memory system that performs error correction/detection based on the method.

U発明の効果〕 本発明によれば、メモリの疑似エラーを本来必要とする
時のみ発生させることができるので、それ以外のエラー
を無視するなどの処理が不要となり、エラーの処理が簡
単化できる。
U Effects of the Invention] According to the present invention, a memory pseudo error can be generated only when it is originally required, so processing such as ignoring other errors is not necessary, and error processing can be simplified. .

【図面の簡単な説明】 第1図は本発明の一実施例のブロック図、第2図はその
動作を表わすタイミングチャート、第3図は本発明の他
の実施例のブロック図である。 1・・・データメモリ   2・・・データバス3・・
・パリティメモリ  4・・・パリティ生成回路5・・
・パリティ信号 6・・・パリティチエツク回路 7゛°゛パリテイエラーラツチ 8・・・疑似エラーラッチ 9・・パリティ反転回路1
0・・・疑似エラークリア回路 1】・・・NMT信号    20・・・CLK21−
10WC−N    22−MWT C−N23・・・
M RD C−N    24・・・DATA25・・
・クリア信号 代理人 弁理士 小 川 勝 男
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of one embodiment of the present invention, FIG. 2 is a timing chart showing its operation, and FIG. 3 is a block diagram of another embodiment of the present invention. 1...Data memory 2...Data bus 3...
・Parity memory 4...Parity generation circuit 5...
・Parity signal 6... Parity check circuit 7゛°゛ Parity error latch 8... Pseudo error latch 9... Parity inversion circuit 1
0...Pseudo error clear circuit 1]...NMT signal 20...CLK21-
10WC-N 22-MWT C-N23...
MRD C-N 24...DATA25...
・Clear Signal Agent Patent Attorney Katsuo Ogawa

Claims (1)

【特許請求の範囲】 1、データを格納するデータメモリと、書込み時に前記
データから検査ビットを作成する検査ビット生成回路と
、前記検査ビットを格納する検査ビットメモリと、読出
し時に前記データメモリから読出されたデータと前記検
査ビットメモリから読出された前記検査ビットを用いて
誤りを検出する誤り検出回路を備えたメモリシステムに
おいて、 書込み時に前記検査ビット作成回路の出力を反転させる
反転手段と、前記反転手段は反転指示の後の一回のメモ
リ書込みのみ有効とすることを特徴とする疑似メモリエ
ラー発生回路。 2、データを格納するデータメモリと、書込み時に前記
データから検査ビットを作成する検査ビット生成回路と
、前記検査ビットを格納する検査ビットメモリと、読出
し時に前記データメモリから読出されたデータと前記検
査ビットメモリから読出された前記検査ビットを用いて
誤りを検出する誤り検出回路を備えたメモリシステムに
おいて、 読出し時に前記検査ビットメモリの出力または前記デー
タメモリの出力を反転させる反転手段と、前記反転手段
は反転指示の後の一回のメモリ読出しのみ有効とするこ
とを特徴とする疑似メモリエラー発生回路。 3、データを格納するデータメモリと、書込み時に前記
データから検査ビットを作成する検査ビット生成回路と
、前記検査ビットを格納する検査ビットメモリと、読出
し時に前記データメモリから読出されたデータと前記検
査ビットメモリから読出された前記検査ビットを用いて
誤りを検出する誤り検出回路を備えたメモリシステムに
おいて、 読出し時に前記誤り検出回路の出力を誤りを示す値に反
転させる反転手段と、前記反転手段は反転指示の後の一
回のメモリ読出しのみ有効とすることを特徴とする疑似
メモリエラー発生回路。
[Claims] 1. A data memory that stores data, a test bit generation circuit that creates test bits from the data when writing, a test bit memory that stores the test bits, and a test bit memory that reads data from the data memory when reading. In the memory system, the memory system includes an error detection circuit that detects an error using the data read from the test bit memory and the test bit read from the test bit memory, the inverting means for inverting the output of the test bit generation circuit during writing; A pseudo memory error generating circuit characterized in that the means is effective only for one memory write after an inversion instruction. 2. A data memory that stores data, a test bit generation circuit that creates test bits from the data when writing, a test bit memory that stores the test bits, and data read from the data memory and the test when reading. In a memory system comprising an error detection circuit that detects errors using the check bits read from a bit memory, the inverting means inverts the output of the check bit memory or the output of the data memory during reading; and the inverting means. A pseudo memory error generating circuit is characterized in that only one memory readout after an inversion instruction is valid. 3. A data memory that stores data, a test bit generation circuit that creates test bits from the data when writing, a test bit memory that stores the test bits, and data read from the data memory and the test when reading. In a memory system comprising an error detection circuit that detects errors using the check bits read from a bit memory, the inverting means inverts the output of the error detection circuit to a value indicating an error at the time of reading, and the inverting means A pseudo memory error generation circuit characterized in that only one memory readout after an inversion instruction is valid.
JP2317768A 1990-11-26 1990-11-26 Pseudo memory error generation circuit Pending JPH04199247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2317768A JPH04199247A (en) 1990-11-26 1990-11-26 Pseudo memory error generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2317768A JPH04199247A (en) 1990-11-26 1990-11-26 Pseudo memory error generation circuit

Publications (1)

Publication Number Publication Date
JPH04199247A true JPH04199247A (en) 1992-07-20

Family

ID=18091837

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2317768A Pending JPH04199247A (en) 1990-11-26 1990-11-26 Pseudo memory error generation circuit

Country Status (1)

Country Link
JP (1) JPH04199247A (en)

Similar Documents

Publication Publication Date Title
JPH07129426A (en) Fault handling method
JP2731745B2 (en) Data failure handling device
JPH07129427A (en) Data comparison check method by ECC code
JPH04199247A (en) Pseudo memory error generation circuit
JPH0316655B2 (en)
JPH0670775B2 (en) Error detection / correction system
JP3450132B2 (en) Cache control circuit
JPH06149685A (en) Memory error recovering circuit
JP2536781B2 (en) Parity check device
JPH01171033A (en) Arithmetic unit
JPS60225941A (en) Microprogram control device
JPH0314148A (en) Program destruction detection device
JPH01145732A (en) Parity bit generating system
JPS6319053A (en) Memory device
JPH08286977A (en) System for processing fault of in-store cache
JPH05324487A (en) Memory control system
JPH01133147A (en) Data processor
JPH03105630A (en) Error correcting system
JPS63282872A (en) Data processor
JPH0391198A (en) Memory rewrite system
JPS59144246A (en) Data reception control system
JPS63198132A (en) Data processing system
JPS58225446A (en) Memory parity retrying system
JPS63216150A (en) Storage device
JPH0484246A (en) Memory rewrite system