JP3036442B2 - Memory monitoring method - Google Patents

Memory monitoring method

Info

Publication number
JP3036442B2
JP3036442B2 JP8307950A JP30795096A JP3036442B2 JP 3036442 B2 JP3036442 B2 JP 3036442B2 JP 8307950 A JP8307950 A JP 8307950A JP 30795096 A JP30795096 A JP 30795096A JP 3036442 B2 JP3036442 B2 JP 3036442B2
Authority
JP
Japan
Prior art keywords
signal
data
memory
address
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.)
Expired - Lifetime
Application number
JP8307950A
Other languages
Japanese (ja)
Other versions
JPH10149318A (en
Inventor
修市 藤崎
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 JP8307950A priority Critical patent/JP3036442B2/en
Publication of JPH10149318A publication Critical patent/JPH10149318A/en
Application granted granted Critical
Publication of JP3036442B2 publication Critical patent/JP3036442B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、メモリ監視方式に
関し、特にデータの書き込み時のビット間違えを発見し
修正する方式に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a memory monitoring method, and more particularly to a method for detecting and correcting a bit error when writing data.

【0002】[0002]

【従来の技術】従来は、特開昭59−175100号公
報に記載されているように、データをメモリに書き込ん
だ後、そのデータを読み出す際にパリティチェックを行
いエラーがあればそれを通知することによりデータの信
頼性を高めるというものであった。しかし、この方式で
はメモリにデータを書き込んだ時にメモリの不良により
値が間違っていてもその値を読み出してパリティチェッ
クを行うまでエラーが発見できない。そのため、従来の
メモリ監視方式ではメモリへデータを書き込んだ時に擬
似的にデータを読みだし、そのデータのパリティチェッ
クを実行し、エラーが発見されると、そのデータを再書
き込みするという方式が用いられてきた。
2. Description of the Related Art Conventionally, as described in JP-A-59-175100, after data is written to a memory, a parity check is performed when the data is read and an error is notified if there is an error. Thus, the reliability of the data was improved. However, in this method, even if a value is wrong due to a memory failure when data is written to the memory, no error can be found until the value is read and a parity check is performed. Therefore, in the conventional memory monitoring method, a method of reading data in a pseudo manner when writing data to the memory, performing a parity check of the data, and rewriting the data when an error is found is used. Have been.

【0003】図9は上記のような従来のメモリ監視方式
のブロック図である。
FIG. 9 is a block diagram of a conventional memory monitoring system as described above.

【0004】この従来のメモリ監視方式は、CPU91
と、メインメモリ2と、ダミーリード信号生成部93
と、アドレス保持部94と、パリティ生成/チェック部
5と、パリティメモリ6で構成されている。
[0004] This conventional memory monitoring system employs a CPU 91
, Main memory 2 and dummy read signal generation unit 93
, An address holding unit 94, a parity generation / check unit 5, and a parity memory 6.

【0005】CPU91はデータ書き込み時にメモリラ
イト信号13をアクティブとし書き込むデータをデータ
バス11に出力するとともに書き込むデータのアドレス
指定をアドレスバス12により行う。また、データ読み
込み時には、メモリリード信号14をアクティブとし、
読み込みを行おうとするアドレスをアドレスバス11に
出力する。
The CPU 91 activates the memory write signal 13 at the time of data writing, outputs data to be written to the data bus 11, and specifies the address of the data to be written via the address bus 12. When reading data, the memory read signal 14 is activated,
An address to be read is output to the address bus 11.

【0006】メインメモリ2は、メモリライト信号13
を入力するとデータバス11のデータをアドレスバス1
2が示すアドレスに記憶し、メモリリード信号14を入
力するとアドレスバス12が示すアドレスに記憶されて
いるデータをデータバス11に出力する。
The main memory 2 has a memory write signal 13
Is input, the data on the data bus 11 is transferred to the address bus 1
When the data is stored at the address indicated by 2 and the memory read signal 14 is input, the data stored at the address indicated by the address bus 12 is output to the data bus 11.

【0007】パリティ生成/チェツク部5は、メモリラ
イト信号13がアクティブになると、データバス11の
データに対するパリティビットを生成し、パリティデー
タ28として出力する。また、メモリリード信号14が
アクティブになると、パリティメモリ6よりパリティデ
ータ28を読み込み、パリティデータ28とデータバス
11のデータとが対応しているかチェックし、その結果
をパリティ結果信号27として出力する。
When the memory write signal 13 becomes active, the parity generation / check unit 5 generates a parity bit for the data on the data bus 11 and outputs it as parity data 28. When the memory read signal 14 becomes active, the parity data 28 is read from the parity memory 6, it is checked whether the parity data 28 corresponds to the data on the data bus 11, and the result is output as a parity result signal 27.

【0008】パリティメモリ6は、メモリライト信号1
3がアクティブの時はパリティ生成/チェック部5から
のパリティデータ28をアドレスバス11の示すアドレ
スに記憶し、メモリリード信号14がアクティブの時は
アドレスバス11の示すアドレスに記憶しているパリテ
ィデータ28を出力する。
The parity memory 6 stores the memory write signal 1
When 3 is active, the parity data 28 from the parity generation / check unit 5 is stored at the address indicated by the address bus 11, and when the memory read signal 14 is active, the parity data stored at the address indicated by the address bus 11 is stored. 28 is output.

【0009】ダミーリード信号生成部93は、メモリラ
イト信号13がアクティブになると、その後一定時間経
過後に疑似的にデータの読み込みを行わせるためのダミ
ーリード信号15をメモリリード信号14に出力する。
When the memory write signal 13 becomes active, the dummy read signal generator 93 outputs a dummy read signal 15 for reading data in a pseudo manner after a lapse of a predetermined time to the memory read signal 14.

【0010】アドレス保持部94は、メモリライト信号
13がアクティブになると、アドレスバス12のアドレ
スを記憶し、ダミーリード信号15がアクティブになる
と記憶しているアドレスをアドレスバス12に出力す
る。
The address holding unit 94 stores the address of the address bus 12 when the memory write signal 13 becomes active, and outputs the stored address to the address bus 12 when the dummy read signal 15 becomes active.

【0011】次に、上記従来例の動作について図10を
用いて説明する。
Next, the operation of the above conventional example will be described with reference to FIG.

【0012】図10は図9のメモリ監視方式の動作を示
したフローチャートである。
FIG. 10 is a flowchart showing the operation of the memory monitoring system shown in FIG.

【0013】まず、CPU91はメモリ書き込みのた
め、指定するアドレスをアドレスバス12に出力し、書
き込みを行うデータをデータバス11に出力する。そし
て、メモリライト信号13をアクティブにする。メイン
メモリ2はメモリライト信号13がアクティブとなった
ため、アドレスバス12が指定するアドレスにデータバ
ス11のデータを記憶する。またメモリライト信号13
がアクティブになったため、アドレス保持部94はアド
レスバス12のアドレスを記憶し、パリティ生成/チェ
ック部5はアドレスバス12のアドレスのパリティビッ
トを生成しパリティデータ28として出力する。そし
て、パリティメモリ6はアドレスバス12の指定するア
ドレスにパリティデータ28を記憶する。(ステップ1
11) データ書き込みが終了するとダミーリード信号生成部9
3はダミーリード信号15をメモリリード信号14に出
力する。アドレス保持部94は、ダミーリード信号15
がアクティブとなったため、記憶していたアドレスをア
ドレスバス12に出力する。メインメモリ2はメモリリ
ード信号14を介して入力されたダミーリード信号15
により、データ読み込み動作を行うためアドレス保持部
94が出力したアドレスに記憶しているデータをデータ
バス11に出力する。(ステップ 112)メモリリード信号14を介してダミーリード信
号15がアクティブとなったため、パリティメモリ6
は、アドレスバス12が示すアドレスに記憶しているパ
リティビットをパリティデータ28として出力する。パ
リティ生成/チェック部5は、データバス11のデータ
とパリティデータ28のパリティビットが対応するかど
うかのパリティチェックを行い結果をパリティ結果信号
27に出力する。(ステップ113) パリティチェックによりエラーが検出されパリティ結果
信号27にエラーが出力されると、CPU91はデータ
の再書き込みの指示を出力し、エラーが検出されなけれ
ば動作を終了する(ステップ114)。
First, the CPU 91 outputs an address to be specified to the address bus 12 for writing to the memory, and outputs data to be written to the data bus 11. Then, the memory write signal 13 is activated. Since the memory write signal 13 has become active, the main memory 2 stores the data on the data bus 11 at the address specified by the address bus 12. Also, the memory write signal 13
Becomes active, the address holding unit 94 stores the address of the address bus 12, and the parity generation / check unit 5 generates the parity bit of the address of the address bus 12 and outputs it as the parity data 28. Then, the parity memory 6 stores the parity data 28 at the address specified by the address bus 12. (Step 1
11) When the data writing is completed, the dummy read signal generator 9
3 outputs the dummy read signal 15 to the memory read signal 14. The address holding unit 94 receives the dummy read signal 15
Becomes active, and outputs the stored address to the address bus 12. The main memory 2 receives a dummy read signal 15 input via the memory read signal 14.
Thus, the data stored at the address output from the address holding unit 94 to perform the data reading operation is output to the data bus 11. (Step 112) Since the dummy read signal 15 becomes active via the memory read signal 14, the parity memory 6
Outputs the parity bit stored at the address indicated by the address bus 12 as the parity data 28. The parity generation / check unit 5 performs a parity check to determine whether the data on the data bus 11 and the parity bit of the parity data 28 correspond to each other, and outputs the result to a parity result signal 27. (Step 113) When an error is detected by the parity check and an error is output to the parity result signal 27, the CPU 91 outputs an instruction to rewrite the data, and if no error is detected, ends the operation (Step 114).

【0014】[0014]

【発明が解決しようとする課題】上述した従来のメモリ
監視方式では、疑似的なデータの読み込みによるパリテ
ィチェックによりエラーが発見された場合、データの再
書き込みの処理に多くの時間が必要となるという問題点
があった。
In the above-mentioned conventional memory monitoring method, if an error is found by a parity check by reading pseudo data, it takes a lot of time to rewrite the data. There was a problem.

【0015】本発明の目的は、パリティチェックでエラ
ーが発見された場合に、ソフトウェア処理に負担をかけ
ずに短時間でデータの再書き込みを行うことのできるメ
モリ監視方式を提供することである。
An object of the present invention is to provide a memory monitoring method capable of rewriting data in a short time without imposing a load on software processing when an error is found in a parity check.

【0016】[0016]

【課題を解決するための手段】上記目的を達成するため
に、本発明のメモリ監視方式は、データ書き込み時にメ
モリライト信号をアクティブとし書き込むデータをデー
タバスに出力するとともに書き込むデータのアドレス指
定をアドレスバスにより行い、データ読み込み時には、
メモリリード信号をアクティブとし、読み込みを行おう
とするアドレスを前記アドレスバスに出力し、CPUw
ait信号がアクティブな間は動作を停止するCPU
と、前記メモリライト信号を入力すると前記データバス
のデータを前記アドレスバスが示すアドレスに記憶し、
前記メモリリード信号を入力すると前記アドレスバスが
示すアドレスに記憶されているデータを前記データバス
に出力するメインメモリと、ダミーリード指示信号がア
クティブになると、前記メインメモリに疑似的にデータ
の読み込みを行わせるためのダミーリード信号を前記メ
モリリード信号に出力し、ダミーライト指示信号がアク
ティブになると、前記メインメモリに疑似的にデータの
書き込みを行わせるためのダミーライト信号を前記メモ
リライト信号に出力するダミーリード/ダミーライト信
号生成部と、前記メモリライト信号がアクティブで前記
ダミーライト信号がアクティブでないときに前記アドレ
スバスのアドレス、前記データバスのデータを記憶し、
前記ダミーライト信号がアクティブになると記憶してい
るデータとアドレスを前記データバスと前記アドレスバ
スにぞれぞれ出力し、前記ダミーリード信号がアクティ
ブになると記憶しているアドレスを前記アドレスバスに
出力し、記憶しているデータを記憶データとして出力す
るデータ/アドレス保持部と、前記ダミーリード信号が
アクティブになると前記データバスのデータと前記記憶
データの全ビットを比較し1ビットでも異なるとチェッ
ク結果信号にエラーを出力するデータ比較部と、前記メ
モリライト信号がアクティブの時はパリティデータを前
記アドレスバスの示すアドレスに記憶し、前記メモリリ
ード信号がアクティブの時は前記アドレスバスの示すア
ドレスに記憶しているデータを前記パリティデータとし
て出力するパリティメモリと、前記メモリライト信号が
アクティブになると、前記データバスのデータに対する
パリティビットを生成し、前記パリティデータとして出
力し、前記メモリリード信号がアクティブになると、前
記パリティデータと前記データバスのデータとが対応し
ているかチェックし、その結果をパリティ結果信号とし
て出力するパリティ生成/チェツク部と、前記メモリラ
イト信号がアクティブになると、一定時間の後に前記C
PUwait信号をアクティブとした後ダミーリード指
示信号を出力し、前記パリティ結果信号によりエラーが
検出されなければ前記CPUwait信号を解除し前記
CPUを正常動作に戻し、前記パリティ結果信号により
エラーが検出されれば前記ダミーライト指示信号をアク
ティブとした後、前記ダミーリード指示信号をアクティ
ブとし、前記チェック結果信号によりエラーが検出され
なければ前記CPUwait信号を解除し前記CPUを
正常動作に戻し、前記チェック結果信号によりエラーが
検出されれば再度前記ダミーライト指示信号をアクティ
ブとした後、前記ダミーリード指示信号をアクティブと
し、前記チェック結果信号によりエラーが検出されなく
なるまでこの動作を繰り返すが一定の回数を越えた場合
には、当該データの再書き込み/読みだしの繰り返し動
作を中止し、前記CPUwait信号を解除し前記CP
Uを正常動作に戻し、エラー信号を前記CPUに出力す
るコントロール部とで構成される。
In order to achieve the above object, a memory monitoring method according to the present invention provides a memory write signal which is activated when data is written, outputs data to be written to a data bus, and specifies an address of the data to be written. Performed by bus, and when reading data,
The memory read signal is activated, and the address to be read is output to the address bus.
CPU that stops operation while ait signal is active
When the memory write signal is input, the data on the data bus is stored at an address indicated by the address bus,
When the memory read signal is input, the main memory outputs data stored at the address indicated by the address bus to the data bus, and when the dummy read instruction signal becomes active, the data is read into the main memory in a pseudo manner. A dummy read signal for performing a write operation is output to the memory read signal, and when a dummy write instruction signal is activated, a dummy write signal for causing the main memory to perform pseudo data writing is output to the memory write signal. A dummy read / dummy write signal generating unit for storing an address of the address bus and data of the data bus when the memory write signal is active and the dummy write signal is not active;
When the dummy write signal is activated, the stored data and address are output to the data bus and the address bus, respectively, and when the dummy read signal is activated, the stored address is output to the address bus. And a data / address holding unit for outputting stored data as storage data, and comparing the data on the data bus with all the bits of the storage data when the dummy read signal becomes active, and checking if at least one bit differs, A data comparing unit that outputs an error to a signal, and stores parity data at an address indicated by the address bus when the memory write signal is active, and stores the parity data at an address indicated by the address bus when the memory read signal is active. A parity that outputs the data being read as the parity data. When the memory and the memory write signal are activated, a parity bit for the data on the data bus is generated and output as the parity data.When the memory read signal is activated, the parity data and the data on the data bus are output. And a parity generation / check unit for outputting the result as a parity result signal. When the memory write signal becomes active, the C / C is output after a predetermined time.
After activating the PUwait signal, a dummy read instruction signal is output, and if no error is detected by the parity result signal, the CPU wait signal is released and the CPU is returned to a normal operation, and an error is detected by the parity result signal. For example, after activating the dummy write instruction signal, the dummy read instruction signal is activated. If no error is detected by the check result signal, the CPU wait signal is released and the CPU is returned to a normal operation. If an error is detected, the dummy write instruction signal is activated again, and then the dummy read instruction signal is activated.This operation is repeated until no error is detected by the check result signal. If applicable, the data To stop the repetitive operation of the read re-write / to release the CPUwait signal the CP
U to return to normal operation, and a control unit for outputting an error signal to the CPU.

【0017】本発明は、CPUからメインメモリへのデ
ータ書き込み後に、ダミーリード/ダミーライト信号生
成部がダミーリード信号を出力することにより書き込ま
れたデータを一旦読みだしパリティ生成/チェック部で
パリティチェックを行いエラーが検出された場合に、デ
ータ/アドレス保持部が記憶しているデータを再度メイ
ンメモリに書き込んだ後にそのデータを再度読みだし今
度はデータ/アドレス保持部が記憶しているデータと全
ビットのチェックを行い、それでもエラーが検出される
と再書き込みと全ビットのチェックを規定回数繰り返す
ようにしたものである。
According to the present invention, after data is written from the CPU to the main memory, the dummy read / dummy write signal generator outputs a dummy read signal to temporarily read the written data, and the parity generator / checker checks the parity. When an error is detected, the data stored in the data / address holding unit is written into the main memory again, and the data is read out again. The bit is checked, and if an error is still detected, rewriting and checking of all bits are repeated a specified number of times.

【0018】したがって、データの再書き込みをソフト
ウェア処理によらずハードウェアにより行うため、デー
タの再書き込みを高速に行うことができる。また、デー
タの再書き込み時のチェックは全ビットのチェックを行
うためパリティチェックを行うよりデータの信頼性を高
めることができる。
Therefore, data rewriting is performed by hardware, not by software processing, so that data rewriting can be performed at high speed. In addition, since the check at the time of rewriting data checks all bits, the reliability of data can be improved as compared with the case of performing a parity check.

【0019】本発明の実施態様によれば、前記ダミーリ
ード/ダミーライト信号生成部が、システムクロック
と、前記システムクロックを入力し分周することによっ
て、命令信号1つ分の周期を有するパルス信号を発生さ
せるパルス発生回路と、前記ダミーリード指示信号と前
記パルス信号との論理和演算を行い前記ダミーリード信
号を出力する第1のOR回路と、前記ダミーライト指示
信号と前記パルス信号との論理和演算を行い前記ダミー
ライト信号を出力する第2のOR回路とにより構成され
る。
According to an embodiment of the present invention, the dummy read / dummy write signal generation unit receives and divides the frequency of the system clock and the system clock to generate a pulse signal having a cycle of one command signal. A first OR circuit that performs a logical sum operation of the dummy read instruction signal and the pulse signal to output the dummy read signal, and a logic of the dummy write instruction signal and the pulse signal. A second OR circuit that performs a sum operation and outputs the dummy write signal.

【0020】また、本発明の他の実施態様によれば、前
記データ/アドレス保持部が、前記メモリライト信号と
前記ダミーライト信号の排他的論理和演算を行いメモリ
指示信号として出力するEX−OR回路と、前記ダミー
ライト信号と前記ダミーリード信号との論理積演算を行
いアドレス出力指示信号として出力するAND回路と、
前記メモリ指示信号を入力すると前記データバスのデー
タを記憶し、前記ダミーライト信号を入力すると記憶し
ているデータを前記データバスに出力し、前記ダミーリ
ード信号を入力すると記憶しているデータを前記記憶デ
ータとして出力するデータメモリと、前記メモリ指示信
号を入力すると前記アドレスバスのアドレスを記憶し、
前記アドレス出力信号を入力すると記憶しているアドレ
スを前記アドレスバスに出力するアドレスメモリとで構
成される。
According to another embodiment of the present invention, the data / address holding unit performs an exclusive OR operation of the memory write signal and the dummy write signal and outputs an EX-OR signal as a memory instruction signal. A AND circuit that performs a logical product operation of the dummy write signal and the dummy read signal and outputs the result as an address output instruction signal;
When the memory instruction signal is input, the data of the data bus is stored, when the dummy write signal is input, the stored data is output to the data bus, and when the dummy read signal is input, the stored data is stored in the data bus. A data memory that outputs as storage data, and stores the address of the address bus when the memory instruction signal is input,
An address memory for receiving the address output signal and outputting the stored address to the address bus.

【0021】また、本発明の他の実施態様によれば、前
記パリティ生成/チェック部が、前記メモリリード信号
がアクティブの時に前記パリティデータをパリティ入力
信号として出力する第1のスイッチ回路と、前記メモリ
ライト信号がアクティブの時にパリティ出力信号を前記
パリティデータとして出力する第2のスイッチ回路と、
前記データバスのデータに含まれる”1”ビットの数
と、前記パリティ入力信号に含まれる”1”ビットの数
との和が奇数または偶数になるようなパリティビットを
前記パリティ出力信号として出力するパリティ生成/チ
ェック回路と、前記パリティ出力信号を入力とし、前記
メモリリード信号をクロック入力とし前記パリティ結果
信号を出力するフリップフロップとで構成される。
According to another embodiment of the present invention, the parity generation / check unit outputs the parity data as a parity input signal when the memory read signal is active; A second switch circuit that outputs a parity output signal as the parity data when a memory write signal is active;
A parity bit is output as the parity output signal such that the sum of the number of “1” bits included in the data of the data bus and the number of “1” bits included in the parity input signal is odd or even. It comprises a parity generation / check circuit, and a flip-flop which receives the parity output signal as input, receives the memory read signal as a clock input, and outputs the parity result signal.

【0022】また、本発明の他の実施態様によれば、前
記コントロール部が、初期状態のカウンタ値はゼロであ
り、前記チェック結果信号にエラーが出力されると記憶
しているカウンタ値に1を足し、前記カウンタ値が規定
値を越えていなければ前記カウンタ値をカウンタ出力と
して出力するカウンタ部を有する。
Further, according to another embodiment of the present invention, the control unit is configured so that the counter value in the initial state is zero and the counter value stored when an error is output to the check result signal is one. And a counter section that outputs the counter value as a counter output if the counter value does not exceed a specified value.

【0023】また、本発明の他の実施態様によれば、前
記データ比較部が、前記ダミーリード信号がアクティブ
のときに前記記憶データの各ビットをビットデータとし
て出力する複数のスイッチ回路と、前記各ビットデータ
と前記データバスのデータの対応する各ビットの排他的
論理和演算を行う複数のEX−OR回路と、当該各EX
−OR回路の出力の論理和演算を行い前記チェック結果
信号として出力するOR回路とで構成される。
According to another embodiment of the present invention, the data comparing section outputs a plurality of switch circuits for outputting each bit of the storage data as bit data when the dummy read signal is active; A plurality of EX-OR circuits for performing an exclusive OR operation on each bit data and each bit corresponding to the data on the data bus;
An OR circuit that performs a logical OR operation on the output of the OR circuit and outputs the result as the check result signal.

【0024】[0024]

【発明の実施の形態】次に、本発明の実施形態について
図面を参照して詳細に説明する。
Next, an embodiment of the present invention will be described in detail with reference to the drawings.

【0025】図1は本発明の一実施形態のメモリ監視方
式のブロック図、図2は図1中のダミーリード/ダミー
ライト信号生成部3の構成図、図3は図1中のデータ/
アドレス保持部4の構成図、図4は図1中のパリティ生
成/チェック部5の構成図、図5は図1中のコントロー
ル部7の構成図、図6は図1中のデータ比較部8の構成
図である。図9中と同番号は同じ構成要素を示す。
FIG. 1 is a block diagram of a memory monitoring system according to an embodiment of the present invention, FIG. 2 is a diagram showing the configuration of a dummy read / dummy write signal generator 3 in FIG. 1, and FIG.
FIG. 4 is a block diagram of the parity generation / check unit 5 in FIG. 1, FIG. 5 is a block diagram of the control unit 7 in FIG. 1, and FIG. 6 is a data comparison unit 8 in FIG. FIG. The same numbers in FIG. 9 indicate the same components.

【0026】本実施形態のメモリ監視方式は、CPU1
と、メインメモリ2と、パリティ生成/チェック部5
と、パリティメモリ6と、ダミーリード/ダミーライト
信号生成部3と、データ/アドレス保持部4と、データ
比較部8と、コントロール部7により構成されている。
The memory monitoring method according to the present embodiment uses the CPU 1
, Main memory 2 and parity generation / check unit 5
, A parity memory 6, a dummy read / dummy write signal generation unit 3, a data / address holding unit 4, a data comparison unit 8, and a control unit 7.

【0027】CPU1はデータ書き込み時にメモリライ
ト信号13をアクティブとし書き込むデータをデータバ
ス11に出力するとともに書き込むデータのアドレス指
定をアドレスバス12により行う。また、データ読み込
み時には、メモリリード信号14をアクティブとし、読
み込みを行おうとするアドレスをアドレスバス11に出
力する。また、CPUwait信号26を入力するとC
PUwait信号26がアクティブな間は動作を停止す
る。
The CPU 1 activates the memory write signal 13 when writing data, outputs data to be written to the data bus 11, and specifies the address of the data to be written via the address bus 12. When reading data, the memory read signal 14 is activated, and an address to be read is output to the address bus 11. When the CPU wait signal 26 is input, C
The operation stops while the PUwait signal 26 is active.

【0028】ダミーリード/ダミーライト信号生成部3
は、ダミーリード指示信号21がアクティブになると、
メインメモリ2に疑似的にデータの読み込みを行わせる
ためのダミーリード信号15をメモリリード信号14に
出力し、ダミーライト指示信号22がアクティブになる
と、メインメモリ2に疑似的にデータの書き込みを行わ
せるためのダミーライト信号16をメモリライト信号1
3に出力する。
Dummy read / dummy write signal generator 3
When the dummy read instruction signal 21 becomes active,
A dummy read signal 15 for causing the main memory 2 to read data in a pseudo manner is output to the memory read signal 14, and when the dummy write instruction signal 22 becomes active, the data is written in the main memory 2 in a pseudo manner. The dummy write signal 16 for causing the memory write signal 1
Output to 3.

【0029】データ/アドレス保持部4は、メモリライ
ト信号13がアクティブでダミーライト信号16がアク
ティブでないときにアドレスバス12のアドレス、デー
タバス11のデータを記憶し、ダミーライト信号16が
アクティブになると記憶しているデータとアドレスをデ
ータバス11とアドレスバス12にぞれぞれ出力し、ダ
ミーリード信号15がアクティブになると記憶している
アドレスをアドレスバス12に出力し、記憶しているデ
ータを記憶データ29として出力する。
The data / address holding unit 4 stores the address of the address bus 12 and the data of the data bus 11 when the memory write signal 13 is active and the dummy write signal 16 is not active, and when the dummy write signal 16 becomes active. The stored data and the address are output to the data bus 11 and the address bus 12, respectively. When the dummy read signal 15 becomes active, the stored address is output to the address bus 12, and the stored data is output. Output as storage data 29.

【0030】データ比較部8は、ダミーリード信号15
がアクティブになるとデータバス11のデータと記憶デ
ータ29の全ビットを比較し1ビットでも異なるとチェ
ック結果信号にエラーを出力する。
The data comparing section 8 has a dummy read signal 15
Becomes active, the data on the data bus 11 is compared with all the bits of the storage data 29. If even one bit is different, an error is output to the check result signal.

【0031】コントロール部7は、メモリライト信号1
6がアクティブになると、一定時間の後にCPUwai
t信号26をアクティブとした後、ダミーリード指示信
号21をアクティブとする。そして、パリティチェック
結果信号27によりエラーが検出されなければCPUw
ait信号26を解除しCPU1を正常動作に戻す。エ
ラーが検出されればダミーライト指示信号22をアクテ
ィブとした後、ダミーリード指示信号21をアクティブ
とする。チェック結果信号30によりエラーが検出され
なければCPUwait信号26を解除しCPU1を正
常動作に戻す。エラーが検出されれば再度ダミーライト
指示信号22をアクティブとした後、ダミーリード指示
信号21をアクティブとする。チェック結果信号30に
よりエラーが検出されなくなるまでこの動作を繰り返す
が一定の回数を越えた場合には、このデータの再書き込
みと再読みだしの繰り返し動作を中止し、CPUwai
t信号26を解除しCPU1を正常動作に戻し、エラー
信号23をCPU1に出力する。
The control unit 7 receives the memory write signal 1
6 becomes active, after a certain period of time, the CPUwai
After activating the t signal 26, the dummy read instruction signal 21 is activated. If no error is detected by the parity check result signal 27, the CPU w
The ait signal 26 is released to return the CPU 1 to the normal operation. If an error is detected, the dummy write instruction signal 22 is activated, and then the dummy read instruction signal 21 is activated. If no error is detected by the check result signal 30, the CPU wait signal 26 is released and the CPU 1 returns to the normal operation. If an error is detected, the dummy write instruction signal 22 is activated again, and then the dummy read instruction signal 21 is activated. This operation is repeated until no error is detected by the check result signal 30. If the number of times exceeds a certain number, the repeated operation of rewriting and rereading the data is stopped and the CPUwai is executed.
The t signal 26 is released to return the CPU 1 to the normal operation, and the error signal 23 is output to the CPU 1.

【0032】本実施形態では、メモリライト信号13、
メモリリード信号14、ダミーリード信号15、ダミー
ライト信号16、ダミーリード指示信号21、ダミーラ
イト指示信号22はLow出力でアクティブとなるアク
ティブLowの信号である。また、パリティチェック信
号27、チェック結果信号30はLow出力でエラー無
しを示す信号である。
In this embodiment, the memory write signal 13,
The memory read signal 14, the dummy read signal 15, the dummy write signal 16, the dummy read instructing signal 21, and the dummy write instructing signal 22 are active low signals which become active at low output. The parity check signal 27 and the check result signal 30 are Low output signals indicating no error.

【0033】図2は、図1中のダミーリード/ダミーラ
イト信号生成部3の構成を示すブロック図である。
FIG. 2 is a block diagram showing the structure of the dummy read / dummy write signal generator 3 in FIG.

【0034】ダミーリード/ダミーライト信号生成部3
は、システムクロック32と、システムクロック32を
入力し分周することによって、命令信号1つ分の周期を
有するパルス信号35を発生させるパルス発生回路31
と、ダミーリード指示信号21とパルス信号35との論
理和演算を行いダミーリード信号15を出力するOR回
路33と、ダミーライト指示信号22とパルス信号35
との論理和演算を行いダミーライト信号16を出力する
OR回路34とにより構成される。
Dummy read / dummy write signal generator 3
Is a pulse generating circuit 31 which generates a pulse signal 35 having a cycle of one command signal by inputting and dividing the system clock 32 and the system clock 32
An OR circuit 33 that performs a logical sum operation of the dummy read instruction signal 21 and the pulse signal 35 and outputs the dummy read signal 15; a dummy write instruction signal 22 and the pulse signal 35
And an OR circuit 34 that performs a logical OR operation on the data and outputs the dummy write signal 16.

【0035】ダミーリード/ダミーライト信号生成部3
は、ダミーリード指示信号21とダミーライト指示信号
を入力し、パルス信号35と同じ周期のダミーリード信
号15とダミーライト信号16を生成し出力する。
Dummy read / dummy write signal generator 3
Receives a dummy read instruction signal 21 and a dummy write instruction signal, and generates and outputs a dummy read signal 15 and a dummy write signal 16 having the same cycle as the pulse signal 35.

【0036】図3は、図1中のデータ/アドレス保持部
4の構成を示すブロック図である。
FIG. 3 is a block diagram showing the configuration of the data / address holding unit 4 in FIG.

【0037】データ/アドレス保持部4は、メモリライ
ト信号13とダミーライト信号16の排他的論理和演算
を行いメモリ指示信号46として出力するEX−OR回
路44と、ダミーライト信号16とダミーリード信号1
5との論理積演算を行いアドレス出力指示信号45とし
て出力するAND回路43と、メモリ指示信号46を入
力するとデータバス11のデータを記憶し、ダミーライ
ト信号16を入力すると記憶しているデータをデータバ
ス11に出力し、ダミーリード信号15を入力すると記
憶しているデータを記憶データ29として出力するデー
タメモリ41と、メモリ指示信号46を入力するとアド
レスバス12のアドレスを記憶し、アドレス出力信号4
5を入力すると記憶しているアドレスをアドレスバス1
2に出力するアドレスメモリ42とで構成される。
The data / address holding unit 4 performs an exclusive OR operation of the memory write signal 13 and the dummy write signal 16 and outputs an EX-OR circuit 44 as a memory instruction signal 46, a dummy write signal 16 and a dummy read signal 1
5 and an AND circuit 43 for outputting an address output instruction signal 45 as an address output instruction signal 45. When the memory instruction signal 46 is input, the data on the data bus 11 is stored. When the dummy write signal 16 is input, the stored data is output. The data memory 41 outputs the data to the data bus 11 and outputs the stored data as the storage data 29 when the dummy read signal 15 is input, and stores the address of the address bus 12 when the memory instruction signal 46 is input and outputs the address output signal. 4
When 5 is input, the stored address is transferred to the address bus 1
2 and an address memory 42 that outputs the data to the address memory 2.

【0038】データ/アドレス保持部4は、メモリライ
ト信号13がアクティブでダミーライト信号16がアク
ティブでないときにアドレスバス12のアドレス、デー
タバス11のデータを記憶し、ダミーライト信号16が
アクティブになると記憶しているデータをデータバス1
1に、記憶しているアドレスをアドレスバス12に出力
し、ダミーリード信号15がアクティブになると記憶し
ているアドレスをアドレスバス12に出力し、記憶して
いるデータを記憶データ29に出力する。
The data / address holding unit 4 stores the address of the address bus 12 and the data of the data bus 11 when the memory write signal 13 is active and the dummy write signal 16 is not active, and when the dummy write signal 16 becomes active. Data stored in the data bus 1
1, the stored address is output to the address bus 12, and when the dummy read signal 15 becomes active, the stored address is output to the address bus 12, and the stored data is output to the storage data 29.

【0039】図4は、図1中のパリティ生成/チェック
部5の構成を示すブロック図である。
FIG. 4 is a block diagram showing the configuration of the parity generation / check unit 5 in FIG.

【0040】パリティ生成/チェック部5は、メモリリ
ード信号14がアクティブの時にパリティデータ28を
パリティ入力信号56として出力するスイッチ回路54
と、メモリライト信号13がアクティブの時にパリティ
出力信号55をパリティデータ28として出力するスイ
ッチ回路53と、データバス11のデータに含まれる”
1”ビットの数と、パリティ入力信号56に含まれる”
1”ビットの数との和が奇数または偶数になるようなパ
リティビットをパリティ出力信号55として出力するパ
リティ生成/チェック回路51と、パリティ出力信号5
5を入力とし、メモリリード信号14をクロック入力と
しパリティ結果信号27を出力するフリップフロップ5
2とで構成される。
The parity generating / checking unit 5 outputs a switch circuit 54 for outputting the parity data 28 as a parity input signal 56 when the memory read signal 14 is active.
And a switch circuit 53 that outputs the parity output signal 55 as the parity data 28 when the memory write signal 13 is active, and is included in the data of the data bus 11 ”.
1 “the number of bits and the number included in the parity input signal 56”
A parity generation / check circuit 51 that outputs a parity bit whose sum with the number of 1 ″ bits is odd or even as a parity output signal 55, and a parity output signal 5
5 as an input, a memory read signal 14 as a clock input, and a parity result signal 27 as a flip-flop 5
And 2.

【0041】データ書き込み時にはパリティ生成/チェ
ック回路51はデータバス11のデータに対するパリテ
ィビットをパリティ出力信号55として出力しスイッチ
回路53を介してパリティデータ28として出力する。
また、データ読み込み時には、入力されたパリティデー
タ28はスイッチ回路54を介してパリティ入力信号5
6としてパリティ生成/チェック回路51に入力され、
データバス11のデータとのパリティチェックが行われ
る。そしてパリティチェックの結果はパリティ出力信号
55として出力されフリップフロップ52を介してパリ
ティ結果信号27として出力される。
At the time of data writing, the parity generation / check circuit 51 outputs a parity bit for the data on the data bus 11 as a parity output signal 55 and outputs it as the parity data 28 via the switch circuit 53.
At the time of data reading, the input parity data 28 is transmitted through the switch circuit 54 to the parity input signal 5.
6 is input to the parity generation / check circuit 51,
A parity check with the data on the data bus 11 is performed. The result of the parity check is output as a parity output signal 55 and output as a parity result signal 27 via the flip-flop 52.

【0042】図5は、図1中のコントロール部7のブロ
ック図である。
FIG. 5 is a block diagram of the control section 7 in FIG.

【0043】コントロール部7は、初期状態のカウンタ
値はゼロであり、チェック結果信号30にエラーが出力
されると記憶しているカウンタ値に1を足し、カウンタ
値が規定値を越えていなければカウンタ値をカウンタ出
力73として出力するカウンタ部72と、CONT71
とで構成される。
The control unit 7 determines that the counter value in the initial state is zero, and when an error is output to the check result signal 30, adds 1 to the stored counter value, and if the counter value does not exceed the specified value. A counter 72 for outputting a counter value as a counter output 73;
It is composed of

【0044】CONT71は、カウンタ出力73により
チェック結果信号30のエラーの回数を検知する以外は
コントロール部7と同様な動作を行う。
The CONT 71 performs the same operation as the control unit 7 except that the number of errors of the check result signal 30 is detected by the counter output 73.

【0045】チェック結果信号30に送られてきたエラ
ーの回数はカウンタ72でカウントされカウンタ出力7
3としてCONT71に出力されるが、エラーの回数が
規定値を越えるとCONT71にカウンタ出力73が出
力されなくなることによりCONT71は、データの再
書き込みが規定回数行われたことを知ることができる。
The number of errors sent to the check result signal 30 is counted by the counter 72 and the counter output 7
3 is output to the CONT 71, but when the number of errors exceeds a specified value, the counter output 73 is not output to the CONT 71, so that the CONT 71 can know that the data has been rewritten the specified number of times.

【0046】図6は、図1中のデータ比較部8の構成を
示すブロック図である。
FIG. 6 is a block diagram showing the configuration of the data comparing section 8 in FIG.

【0047】データ比較部8は、ダミーリード信号15
がアクティブのときに記憶データ29の各ビットをビッ
トデータ74として出力する複数のスイッチ回路78
と、各ビットデータ74とデータバス11のデータの対
応する各ビットの排他的論理和演算を行う複数のEX−
OR回路79と、EX−OR回路79のそれぞれの出力
の論理和演算を行いチェック結果信号30として出力す
るOR回路80とで構成される。
The data comparing section 8 has a dummy read signal 15
Are active, a plurality of switch circuits 78 for outputting each bit of the stored data 29 as bit data 74
And a plurality of EX-s that perform an exclusive OR operation on each bit corresponding to each bit data 74 and data on the data bus 11.
It comprises an OR circuit 79 and an OR circuit 80 which performs a logical OR operation on the respective outputs of the EX-OR circuit 79 and outputs the result as a check result signal 30.

【0048】データ比較部8は、データ/アドレス保持
部4で記憶されていたデータである記憶データ29とメ
インメモリ2から読み出されたデータの全ビットを比較
して、全ビットが同一ならばエラー無しをチェック結果
信号30として出力する。
The data comparing section 8 compares the stored data 29, which is the data stored in the data / address holding section 4, with all the bits of the data read from the main memory 2, and if all the bits are the same, No error is output as a check result signal 30.

【0049】次に、本実施形態の動作について図1、図
7を参照して説明する。
Next, the operation of this embodiment will be described with reference to FIGS.

【0050】図7は、図1のメモリ監視方式の動作を示
すフローチャートである。
FIG. 7 is a flowchart showing the operation of the memory monitoring system of FIG.

【0051】まず、CPU1はメモリ書き込みのため、
指定するアドレスをアドレスバス12に出力し、書き込
みを行うデータをデータバス11に出力する。そして、
メモリライト信号13をアクティブにする。メインメモ
リ2はメモリライト信号13がアクティブとなったた
め、アドレスバス12が指定するアドレスにデータバス
11のデータを記憶する。またメモリライト信号13が
アクティブになったため、データ/アドレス保持部4は
アドレスバス12のアドレスとデータバス11のデータ
を記憶し、パリティ生成/チェック部5はアドレスバス
12のアドレスのパリティビットを生成しパリティデー
タ28として出力する。そして、パリティメモリ6はア
ドレスバス12の指定するアドレスにパリティデータ2
8を記憶する。(ステップ81) データ書き込みが終了するとコントロール部7は、CP
Uwait信号26をアクティブとしCPU1の動作を
一旦停止させる。そしてダミーリード指示信号21をア
クティブとする。ダミーリード/ダミーライト信号生成
部3はダミーリード指示信号21がアクティブとなった
ため、ダミーリード信号15をアクティブとする。デー
タ/アドレス保持部4は、ダミーリード信号15がアク
ティブとなったため、記憶していたアドレスをアドレス
バス12に出力する。メインメモリ2はメモリリード1
4を介して入力されたダミーリード信号15により、デ
ータ読み込み動作を行うためデータ/アドレス保持部4
が出力したアドレスに記憶しているデータをデータバス
11に出力する。(ステップ82) メモリリード信号14を介したダミーリード信号15が
アクティブとなったため、パリティメモリ6は、アドレ
スバス12が示すアドレスに記憶しているパリティビッ
トをパリティデータ28として出力する。パリティ生成
/チェック部5は、データバス11のデータとパリティ
データ28のパリティビットを比較し、対応するかどう
かのパリティチェックを行う。パリティチェック生成/
チェック部5は、パリティチェックによりエラーが検出
されればパリティ結果信号27にエラーを出力する。コ
ントロール部7はエラーが検出されなければCPUwa
it信号26を解除しCPU1を通常動作に戻す。(ス
テップ83) コントロール部7はパリティ結果信号27でエラーが検
出されると、ダミーライト信号22をアクティブとし再
書き込み動作の実行を指示する。ダミーリード/ダミー
ライト信号生成部3はダミーライト指示信号22がアク
ティブになるとダミーライト信号16をアクティブとす
る。データ/アドレス保持部4は、ダミーライト信号1
6がアクティブになると、記憶しているデータをデータ
バス11に、記憶しているアドレスをアドレスバス12
に出力する。メインメモリ2は、メモリライト信号13
を介して入力されたダミーライト信号16がアクティブ
となったため、アドレスバス12の指定するアドレスに
データバス11のデータを記憶する。(ステップ84) ステップ84のダミーライト動作が終了すると、コント
ロール部7は、ダミーリード指示信号21をアクティブ
とし再読みだし動作の実行を指示する。再読みだし動作
はステップ82で述べたのと同様な順序により実行され
る。データ/アドレス保持部4は、ダミーリード信号1
5がアクティブになったことにより記憶しているデータ
を記憶データ29として出力する。(ステップ85) データ比較部8は、データバス11に読み出されたデー
タと記憶データ29との全ビットの比較を行い1ビット
でも異なればチェック結果信号30にエラーを出力す
る。コントロール部7は、エラーが検出されなければC
PUwait信号26を解除しCPU1を通常動作に戻
す。(ステップ86) ステップ86でエラーが検出されるとステップ84、8
5、86の動作を再度繰り返す。このくり返し回数が一
定の値を越えると、コントロール部7はCPUwait
信号26を解除するとともにエラー信号23をCPU1
に送出し動作を終了する。(ステップ88) 次に図8の本実施形態のメモリ監視方式の動作を示すタ
イミングチャー卜を示して説明する。
First, the CPU 1 writes data into the memory.
The specified address is output to the address bus 12 and the data to be written is output to the data bus 11. And
Activate the memory write signal 13. Since the memory write signal 13 has become active, the main memory 2 stores the data on the data bus 11 at the address specified by the address bus 12. Further, since the memory write signal 13 is activated, the data / address holding unit 4 stores the address of the address bus 12 and the data of the data bus 11, and the parity generation / check unit 5 generates the parity bit of the address of the address bus 12. Then, the data is output as parity data 28. The parity memory 6 stores the parity data 2 in the address specified by the address bus 12.
8 is stored. (Step 81) When the data writing is completed, the control unit 7
The Uwait signal 26 is activated to temporarily stop the operation of the CPU 1. Then, the dummy read instruction signal 21 is activated. The dummy read / dummy write signal generation unit 3 activates the dummy read signal 15 since the dummy read instruction signal 21 has been activated. Since the dummy read signal 15 has become active, the data / address holding unit 4 outputs the stored address to the address bus 12. Main memory 2 is memory read 1
The data / address holding unit 4 for performing a data reading operation is provided by a dummy read signal 15 input through the data / address holding unit 4.
Outputs the data stored at the address output by the data bus 11 to the data bus 11. (Step 82) Since the dummy read signal 15 via the memory read signal 14 becomes active, the parity memory 6 outputs the parity bit stored at the address indicated by the address bus 12 as the parity data 28. The parity generation / check unit 5 compares the data on the data bus 11 with the parity bits of the parity data 28, and performs a parity check to determine whether or not they correspond. Parity check generation /
The check unit 5 outputs an error to the parity result signal 27 if an error is detected by the parity check. If no error is detected, the control unit 7
The it signal 26 is released, and the CPU 1 returns to the normal operation. (Step 83) When an error is detected in the parity result signal 27, the control unit 7 activates the dummy write signal 22 and instructs execution of a rewrite operation. The dummy read / dummy write signal generator 3 activates the dummy write signal 16 when the dummy write instruction signal 22 becomes active. The data / address holding unit 4 outputs the dummy write signal 1
6 becomes active, the stored data is stored on the data bus 11 and the stored address is stored on the address bus 12.
Output to The main memory 2 has a memory write signal 13
Since the dummy write signal 16 input through the interface becomes active, the data on the data bus 11 is stored at the address specified by the address bus 12. (Step 84) When the dummy write operation in step 84 is completed, the control unit 7 activates the dummy read instruction signal 21 and instructs execution of the reread operation. The reread operation is performed in the same order as described in step 82. The data / address holding unit 4 outputs the dummy read signal 1
The stored data is output as the storage data 29 when the data 5 becomes active. (Step 85) The data comparison unit 8 compares all bits of the data read to the data bus 11 and the storage data 29, and outputs an error to the check result signal 30 if even one bit is different. If no error is detected, the control unit 7
The PUwait signal 26 is released, and the CPU 1 returns to the normal operation. (Step 86) When an error is detected in Step 86, Steps 84 and 8 are performed.
Operations 5 and 86 are repeated again. When the number of repetitions exceeds a certain value, the control unit 7 sets the CPU wait.
The signal 26 is released and the error signal 23 is sent to the CPU 1
To end the operation. (Step 88) Next, a description will be given with reference to a timing chart showing the operation of the memory monitoring method of the present embodiment in FIG.

【0052】図8(a)はパリティチェックにおいてエ
ラーが検出されない場合のタイミングチャート、図8
(b)はパリティチェックにおいてエラーが検出されデ
ータの再書き込みおよびデータ比較がおこなわれた場合
のタイミングチャートである。
FIG. 8A is a timing chart when no error is detected in the parity check.
(B) is a timing chart when an error is detected in the parity check and data rewriting and data comparison are performed.

【0053】まず図8(a)について説明する。First, FIG. 8A will be described.

【0054】CPU1がデータをメインメモリ2に書き
込んだ後、コントロール部7はCPUwait信号26
を出力しCPU1の動作を停止させ、ダミーリード信号
15を出力する。データ/アドレス保持部4がアドレス
バス12に保持しているアドレスを出力し、メインメモ
リ2は指定されたアドレスに記憶しているデータをデー
タバス11に出力する。出力されたデータはパリティ生
成/チェック部5でパリティデータ28によりチェック
されエラーが検出されないため、パリティ結果信号27
にはエラー無しを示す信号が出力されCPUwait信
号26が解除される。
After the CPU 1 writes the data to the main memory 2, the control unit 7 sends the CPU wait signal 26
To stop the operation of the CPU 1 and output the dummy read signal 15. The data / address holding unit 4 outputs the address held on the address bus 12, and the main memory 2 outputs the data stored at the specified address to the data bus 11. The output data is checked by the parity generation / check unit 5 with the parity data 28 and no error is detected.
, A signal indicating no error is output, and the CPU wait signal 26 is released.

【0055】次に図8(b)について説明する。Next, FIG. 8B will be described.

【0056】CPUwait信号26とダミーリード信
号15が出力され、アドレスとデータが出力されパリテ
ィチェックが行われるまでの動作は図8(a)と同様で
あるが、このタイミングチャートの場合ではパリティチ
ェックでエラーが検出されるため、パリティ結果信号2
7にエラー無しの信号が出力されない。そのため、コン
トロール部7ではデータの再書き込みの指示を出しダミ
ーライト信号16を出力させ、データ/アドレス保持部
4は記憶しているデータとアドレスをそれぞれデータバ
ス11とアドレスバス12に出力し、メインメモリ2は
指定されたアドレスにデータを記憶する。そして、再度
ダミーリード信号15が出力されメインメモリ2のデー
タが読み込まれ、データ比較部8でデータ/アドレス保
持部4が記憶している記憶データ29と全ビットのチェ
ックが行われチェック結果信号30にエラー無しの信号
が出力されるとCPUwait信号26解除される。エ
ラー無しの信号が出力されない場合、再書き込みと再読
み出しの動作がエラー無しの信号が出力されるかくり返
し回数が規定回数を越えるまで行われる。
The operation from when the CPU wait signal 26 and the dummy read signal 15 are output until the address and data are output and the parity check is performed is the same as in FIG. 8A, but in this timing chart, the parity check is performed. Since an error is detected, the parity result signal 2
No signal indicating no error is output to 7. Therefore, the control unit 7 issues a data rewrite instruction and outputs a dummy write signal 16, and the data / address holding unit 4 outputs the stored data and address to the data bus 11 and the address bus 12, respectively. The memory 2 stores data at a specified address. Then, the dummy read signal 15 is output again, the data of the main memory 2 is read, and the data comparison unit 8 checks the storage data 29 stored in the data / address holding unit 4 and all bits, and the check result signal 30 Is output, the CPU wait signal 26 is released. When no error-free signal is not output, rewriting and re-reading operations are performed until an error-free signal is output or the number of repetitions exceeds a specified number.

【0057】[0057]

【発明の効果】以上説明したように、本発明は、下記の
ような効果を有する。 (1)データ書き込み動作においてエラーが発生した場
合、ソフトウェアの処理によらずに再度データ書き込み
を実行できるので、データの再書き込みを高速に行え
る。 (2)データの再度書き込み後に、全ビットのチェック
を行うため、パリティチェックを行うよりデータの信頼
性が高まる。
As described above, the present invention has the following effects. (1) When an error occurs in the data write operation, the data write can be executed again without depending on the software processing, so that the data can be rewritten at high speed. (2) Since all bits are checked after rewriting data, data reliability is improved as compared with parity check.

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

【図1】本発明のメモリ監視方式の一実施形態を示すブ
ロック図である。
FIG. 1 is a block diagram showing an embodiment of a memory monitoring method according to the present invention.

【図2】図1中のダミーリード/ダミーライト信号生成
部3の構成図である。
FIG. 2 is a configuration diagram of a dummy read / dummy write signal generation unit 3 in FIG.

【図3】図1中のデータ/アドレス保持部4の構成図で
ある。
FIG. 3 is a configuration diagram of a data / address holding unit 4 in FIG. 1;

【図4】図1中のパリティ生成/チェック部5の構成図
である。
FIG. 4 is a configuration diagram of a parity generation / check unit 5 in FIG. 1;

【図5】図1中のコントロール部7の構成図である。FIG. 5 is a configuration diagram of a control unit 7 in FIG.

【図6】図1中のデータ比較部8の構成図である。FIG. 6 is a configuration diagram of a data comparison unit 8 in FIG. 1;

【図7】図1のメモリ監視方式の動作を示すフローチャ
ートである。
FIG. 7 is a flowchart showing an operation of the memory monitoring method of FIG. 1;

【図8】図1のメモリ監視方式のを動作を示すタイミン
グチャー卜である。
8 is a timing chart showing the operation of the memory monitoring method of FIG.

【図9】従来のメモリ監視方式のブロック図である。FIG. 9 is a block diagram of a conventional memory monitoring method.

【図10】図9のメモリ監視方式の動作を示すフローチ
ャートである。
FIG. 10 is a flowchart showing the operation of the memory monitoring method of FIG. 9;

【符号の説明】[Explanation of symbols]

1 CPU 2 メインメモリ 3 ダミーリード/ダミーライト信号生成部 4 データ/アドレス生成部 5 パリティ生成/チェック部 6 パリティメモリ 7 コントロール部 8 データ比較部 11 アドレスバス 12 データバス 13 メモリライ卜信号 14 メモリリード信号 15 ダミーリード信号 16 ダミーライ卜信号 21 ダミーリード指示信号 22 ダミーライト指示信号 23 エラー信号 26 CPUwait信号 27 パリティ結果信号 28 パリティデータ 29 記憶データ 30 チェック結果信号 31 パルス発生回路 32 システムクロック 33、34 OR回路 35 パルス信号 41 データメモリ 42 アドレスメモリ 43 AND回路 44 EX−OR回路 45 アドレス出力指示信号 46 メモリ指示信号 51 パリティ生成/チェック回路 52 フリップフロップ 53、54 スイッチ回路 55 パリティ出力信号 56 パリティ入力信号 71 CONT 72 カウンタ 73 カウンタ出力 74 ビットデータ 78 スイッチ回路 79 EX−OR回路 80 OR回路 81〜88 ステップ 91 CPU 93 ダミーリード信号生成部 94 アドレス保持部 111〜114 ステップ 1 CPU 2 Main memory 3 Dummy read / dummy write signal generator 4 Data / address generator 5 Parity generator / check unit 6 Parity memory 7 Control unit 8 Data comparison unit 11 Address bus 12 Data bus 13 Memory write signal 14 Memory read signal 15 Dummy read signal 16 Dummy write signal 21 Dummy read instruction signal 22 Dummy write instruction signal 23 Error signal 26 CPU wait signal 27 Parity result signal 28 Parity data 29 Storage data 30 Check result signal 31 Pulse generation circuit 32 System clock 33, 34 OR circuit 35 pulse signal 41 data memory 42 address memory 43 AND circuit 44 EX-OR circuit 45 address output instruction signal 46 memory instruction signal 51 parity generation / check Circuit 52 flip-flops 53, 54 switch circuit 55 parity output signal 56 parity input signal 71 CONT 72 counter 73 counter output 74 bit data 78 switch circuit 79 EX-OR circuit 80 OR circuit 81-88 step 91 CPU 93 dummy read signal generation Unit 94 address holding unit 111-114 step

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 12/16 310 G06F 12/16 320 G06F 11/10 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 12/16 310 G06F 12/16 320 G06F 11/10

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データ書き込み時にメモリライト信号を
アクティブとし書き込むデータをデータバスに出力する
とともに書き込むデータのアドレス指定をアドレスバス
により行い、データ読み込み時には、メモリリード信号
をアクティブとし、読み込みを行おうとするアドレスを
前記アドレスバスに出力し、CPUwait信号がアク
ティブな間は動作を停止するCPUと、 前記メモリライト信号を入力すると前記データバスのデ
ータを前記アドレスバスが示すアドレスに記憶し、前記
メモリリード信号を入力すると前記アドレスバスが示す
アドレスに記憶されているデータを前記データバスに出
力するメインメモリと、 ダミーリード指示信号がアクティブになると、前記メイ
ンメモリに疑似的にデータの読み込みを行わせるための
ダミーリード信号を前記メモリリード信号に出力し、ダ
ミーライト指示信号がアクティブになると、前記メイン
メモリに疑似的にデータの書き込みを行わせるためのダ
ミーライト信号を前記メモリライト信号に出力するダミ
ーリード/ダミーライト信号生成部と、 前記メモリライト信号がアクティブで前記ダミーライト
信号がアクティブでないときに前記アドレスバスのアド
レス、前記データバスのデータを記憶し、前記ダミーラ
イト信号がアクティブになると記憶しているデータとア
ドレスを前記データバスと前記アドレスバスにぞれぞれ
出力し、前記ダミーリード信号がアクティブになると記
憶しているアドレスを前記アドレスバスに出力し、記憶
しているデータを記憶データとして出力するデータ/ア
ドレス保持部と、 前記ダミーリード信号がアクティブになると前記データ
バスのデータと前記記憶データの全ビットを比較し1ビ
ットでも異なるとチェック結果信号にエラーを出力する
データ比較部と、 前記メモリライト信号がアクティブの時はパリティデー
タを前記アドレスバスの示すアドレスに記憶し、前記メ
モリリード信号がアクティブの時は前記アドレスバスの
示すアドレスに記憶しているデータを前記パリティデー
タとして出力するパリティメモリと、 前記メモリライト信号がアクティブになると、前記デー
タバスのデータに対するパリティビットを生成し、前記
パリティデータとして出力し、前記メモリリード信号が
アクティブになると、前記パリティデータと前記データ
バスのデータとが対応しているかチェックし、その結果
をパリティ結果信号として出力するパリティ生成/チェ
ツク部と、 前記メモリライト信号がアクティブになると、一定時間
の後に前記CPUwait信号をアクティブとした後ダ
ミーリード指示信号を出力し、前記パリティ結果信号に
よりエラーが検出されなければ前記CPUwait信号
を解除し前記CPUを正常動作に戻し、前記パリティ結
果信号によりエラーが検出されれば前記ダミーライト指
示信号をアクティブとした後、前記ダミーリード指示信
号をアクティブとし、前記チェック結果信号によりエラ
ーが検出されなければ前記CPUwait信号を解除し
前記CPUを正常動作に戻し、前記チェック結果信号に
よりエラーが検出されれば再度前記ダミーライト指示信
号をアクティブとした後、前記ダミーリード指示信号を
アクティブとし、前記チェック結果信号によりエラーが
検出されなくなるまでこの動作を繰り返すが一定の回数
を越えた場合には、当該データの再書き込み/読みだし
の繰り返し動作を中止し、前記CPUwait信号を解
除し前記CPUを正常動作に戻し、エラー信号を前記C
PUに出力するコントロール部とで構成されるメモリ監
視方式。
When writing data, an active memory write signal is output, data to be written is output to a data bus, and an address of written data is specified by an address bus. At the time of reading data, a memory read signal is activated to read data. A CPU that outputs an address to the address bus and stops operating while a CPUwait signal is active; and, when the memory write signal is input, stores data of the data bus at an address indicated by the address bus, and outputs the memory read signal. And a main memory for outputting data stored at the address indicated by the address bus to the data bus; and a dummy read instruction signal for causing the main memory to read data in a pseudo manner. Dummy And a dummy read / dummy for outputting a dummy write signal for causing the main memory to write data in a pseudo manner when the dummy write instruction signal is activated. A write signal generation unit, which stores the address of the address bus and the data of the data bus when the memory write signal is active and the dummy write signal is not active, and stores the data when the dummy write signal becomes active. And the address are output to the data bus and the address bus, respectively. When the dummy read signal is activated, the stored address is output to the address bus, and the stored data is output as storage data. A data / address holding unit, and the dummy read signal A data comparison unit that compares the data on the data bus with all the bits of the storage data when activated and outputs an error to a check result signal when even one bit is different; A parity memory that stores data stored at an address indicated by a bus and outputs data stored at an address indicated by the address bus as the parity data when the memory read signal is active; and A parity bit for data on the data bus is generated and output as the parity data. When the memory read signal becomes active, it is checked whether the parity data corresponds to the data on the data bus, and the result is used as a parity result. Paris output as a signal When the memory write signal becomes active, the CPU wait signal is made active after a predetermined time, a dummy read instruction signal is output, and if no error is detected by the parity result signal, the CPU wait signal is output. And the CPU is returned to normal operation. If an error is detected by the parity result signal, the dummy write instruction signal is activated, and then the dummy read instruction signal is activated, and an error is detected by the check result signal. If not, the CPU wait signal is released and the CPU is returned to the normal operation. If an error is detected by the check result signal, the dummy write instruction signal is activated again, and the dummy read instruction signal is activated. Depending on the check result signal This operation is repeated until the error is no longer detected, but if the number of times exceeds a certain number, the repetition operation of rewriting / reading the data is stopped, the CPUwait signal is released, and the CPU is returned to the normal operation. When the error signal is
A memory monitoring method configured with a control unit that outputs to a PU.
【請求項2】 前記ダミーリード/ダミーライト信号生
成部が、システムクロックと、 前記システムクロックを入力し分周することによって、
命令信号1つ分の周期を有するパルス信号を発生させる
パルス発生回路と、 前記ダミーリード指示信号と前記パルス信号との論理和
演算を行い前記ダミーリード信号を出力する第1のOR
回路と、 前記ダミーライト指示信号と前記パルス信号との論理和
演算を行い前記ダミーライト信号を出力する第2のOR
回路とにより構成される請求項1記載のメモリ監視方
式。
2. The system according to claim 2, wherein the dummy read / dummy write signal generating unit receives and divides a system clock and the system clock, and
A pulse generation circuit for generating a pulse signal having a cycle corresponding to one command signal; a first OR for performing a logical sum operation of the dummy read instruction signal and the pulse signal and outputting the dummy read signal
A second OR circuit that performs a logical sum operation of the dummy write instruction signal and the pulse signal and outputs the dummy write signal
2. The memory monitoring method according to claim 1, comprising a circuit.
【請求項3】 前記データ/アドレス保持部が、前記メ
モリライト信号と前記ダミーライト信号の排他的論理和
演算を行いメモリ指示信号として出力するEX−OR回
路と、 前記ダミーライト信号と前記ダミーリード信号との論理
積演算を行いアドレス出力指示信号として出力するAN
D回路と、 前記メモリ指示信号を入力すると前記データバスのデー
タを記憶し、前記ダミーライト信号を入力すると記憶し
ているデータを前記データバスに出力し、前記ダミーリ
ード信号を入力すると記憶しているデータを前記記憶デ
ータとして出力するデータメモリと、 前記メモリ指示信号を入力すると前記アドレスバスのア
ドレスを記憶し、前記アドレス出力信号を入力すると記
憶しているアドレスを前記アドレスバスに出力するアド
レスメモリとで構成される請求項1記載のメモリ監視方
式。
3. An EX-OR circuit, wherein the data / address holding unit performs an exclusive OR operation of the memory write signal and the dummy write signal and outputs the result as a memory instruction signal, and the dummy write signal and the dummy read signal. AN that performs a logical AND operation with a signal and outputs it as an address output instruction signal
D circuit, when the memory instruction signal is input, the data of the data bus is stored, when the dummy write signal is input, the stored data is output to the data bus, and when the dummy read signal is input, the data is stored. A data memory for outputting the stored data as the storage data; an address memory for storing the address of the address bus when the memory instruction signal is input, and outputting the stored address to the address bus when the address output signal is input 2. The memory monitoring method according to claim 1, comprising:
【請求項4】 前記パリティ生成/チェック部が、前記
メモリリード信号がアクティブの時に前記パリティデー
タをパリティ入力信号として出力する第1のスイッチ回
路と、 前記メモリライト信号がアクティブの時にパリティ出力
信号を前記パリティデータとして出力する第2のスイッ
チ回路と、 前記データバスのデータに含まれる”1”ビットの数と
前記パリティ入力信号に含まれる”1”ビットの数との
和が奇数または偶数になるようなパリティビットを前記
パリティ出力信号として出力するパリティ生成/チェッ
ク回路と、 前記パリティ出力信号を入力とし、前記メモリリード信
号をクロック入力とし前記パリティ結果信号を出力する
フリップフロップとで構成される請求項1記載のメモリ
監視方式。
4. A first switch circuit for outputting the parity data as a parity input signal when the memory read signal is active, wherein the parity generation / check unit outputs a parity output signal when the memory write signal is active. A second switch circuit that outputs the parity data, and a sum of the number of “1” bits included in the data of the data bus and the number of “1” bits included in the parity input signal is an odd number or an even number A parity generation / check circuit that outputs such a parity bit as the parity output signal, and a flip-flop that receives the parity output signal as input, receives the memory read signal as a clock input, and outputs the parity result signal. Item 2. The memory monitoring method according to Item 1.
【請求項5】 前記コントロール部が、初期状態のカウ
ンタ値はゼロであり、前記チェック結果信号にエラーが
出力されると記憶しているカウンタ値に1を足し、前記
カウンタ値が規定値を越えていなければ前記カウンタ値
をカウンタ出力として出力するカウンタ部を有する請求
項1記載のメモリ監視方式。
5. The control unit according to claim 1, wherein the counter value in an initial state is zero, and when an error is output to the check result signal, the control unit adds one to the stored counter value, and the counter value exceeds a specified value. 2. The memory monitoring method according to claim 1, further comprising a counter unit that outputs the counter value as a counter output if the counter value is not present.
【請求項6】 前記データ比較部が、前記ダミーリード
信号がアクティブのときに前記記憶データの各ビットを
ビットデータとして出力する複数のスイッチ回路と、 前記各ビットデータと前記データバスのデータの対応す
る各ビットの排他的論理和演算を行う複数のEX−OR
回路と、 当該各EX−OR回路の出力の論理和演算を行い前記チ
ェック結果信号として出力するOR回路とで構成される
請求項1記載のメモリ監視方式。
6. A plurality of switch circuits, wherein the data comparing section outputs each bit of the storage data as bit data when the dummy read signal is active, and a correspondence between each bit data and data of the data bus. EX-ORs that perform an exclusive OR operation on each bit
2. The memory monitoring method according to claim 1, comprising a circuit, and an OR circuit that performs a logical sum operation of outputs of the respective EX-OR circuits and outputs the result as the check result signal.
JP8307950A 1996-11-19 1996-11-19 Memory monitoring method Expired - Lifetime JP3036442B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8307950A JP3036442B2 (en) 1996-11-19 1996-11-19 Memory monitoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8307950A JP3036442B2 (en) 1996-11-19 1996-11-19 Memory monitoring method

Publications (2)

Publication Number Publication Date
JPH10149318A JPH10149318A (en) 1998-06-02
JP3036442B2 true JP3036442B2 (en) 2000-04-24

Family

ID=17975130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8307950A Expired - Lifetime JP3036442B2 (en) 1996-11-19 1996-11-19 Memory monitoring method

Country Status (1)

Country Link
JP (1) JP3036442B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7805645B2 (en) * 2008-01-11 2010-09-28 Arm Limited Data processing apparatus and method for testing stability of memory cells in a memory device
JP6862951B2 (en) 2017-03-15 2021-04-21 富士通株式会社 Memory control device, information processing device and memory control method

Also Published As

Publication number Publication date
JPH10149318A (en) 1998-06-02

Similar Documents

Publication Publication Date Title
US5392302A (en) Address error detection technique for increasing the reliability of a storage subsystem
US5488691A (en) Memory card, computer system and method of operation for differentiating the use of read-modify-write cycles in operating and initializaiton modes
US4782487A (en) Memory test method and apparatus
US5446741A (en) Fast memory power-on diagnostics using DMA
EP0463210A1 (en) Method and apparatus for checking the address and contents of a memory array
JPH07191915A (en) Computer system, memory card and its operating method
JP3036442B2 (en) Memory monitoring method
CN112349343A (en) Circuit structure, chip and electronic equipment
JP2004021922A (en) Pseudo memory failure injection device
JPS62242258A (en) Storage device
JP3123855B2 (en) Patrol control circuit of memory device
JP3512442B2 (en) Error generation control device for storage device test
JP3190867B2 (en) Apparatus and method for detecting memory rewrite operation error
EP0653706A2 (en) Error handling and correction in computer system
JPH05165734A (en) Fixed fault diagnostic device for main storage device
JP2998282B2 (en) Memory device
KR100362188B1 (en) Dram emulation device
JP3153063B2 (en) Micro program controller
JP2536781B2 (en) Parity check device
JPH1153267A (en) Memory data error automatic correcting circuit
JPH11282763A (en) Device and method for storage device monitoring
JPH04318628A (en) Central processing unit
JPS59163651A (en) Parity checking device for program data
JPS60116052A (en) Amending system of inferior data
JPH07160586A (en) Method and circuit for memory monitoring