JPH09231140A - Memory check device - Google Patents

Memory check device

Info

Publication number
JPH09231140A
JPH09231140A JP8036624A JP3662496A JPH09231140A JP H09231140 A JPH09231140 A JP H09231140A JP 8036624 A JP8036624 A JP 8036624A JP 3662496 A JP3662496 A JP 3662496A JP H09231140 A JPH09231140 A JP H09231140A
Authority
JP
Japan
Prior art keywords
data
memory
check
check code
read
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
JP8036624A
Other languages
Japanese (ja)
Inventor
Keizou Naraba
慶三 奈良場
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP8036624A priority Critical patent/JPH09231140A/en
Publication of JPH09231140A publication Critical patent/JPH09231140A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To detect a memory error in short time by executing judgment based on a check code corresponding to written data. SOLUTION: The check code is added to write data by a first memory error check part 11. When writing or reading is executed, a control signal is outputted from a DMA memory check cycle control part 16 to an address preservation part 15. When the control signal is outputted from the DMA memory check cycle control part 16, the address preservation part 15 outputs address data preserved at the time of previous data writing to a two port memory 12. When previous address data is inputted, the two port memory 12 outputs data corresponding to address data to a second memory error check part 13 through the second port. When the second memory check part 13 detects the error, it is judged that the cause of the error exists at the time of writing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、メモリチェック装
置に係わり、特に、DMA制御回路におけるメモリチェ
ック装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory check device, and more particularly to a memory check device in a DMA control circuit.

【0002】[0002]

【従来の技術】従来、DMA制御回路におけるメモリチ
ェックの方法は、CPUによって行なわれるメモリチェ
ックの方法と同様に、メモリ内容の読みだし時に、メモ
リに格納されたデータのパリティビットやECCなどを
チェックすることにより行なっていた。
2. Description of the Related Art Conventionally, a memory check method in a DMA control circuit is similar to a memory check method performed by a CPU, and when a memory content is read out, a parity bit or an ECC of data stored in the memory is checked. It was done by doing.

【0003】図4は、従来のDMA制御回路におけるメ
モリチェック装置の構成を示す図である。たとえば、周
辺機器、通信コントローラなどからI/Oポート1を介
して、DMA制御回路2に書き込みデータが出力される
と、DMA制御回路2からは、書き込みデータがデータ
バス3に出力されるとともに、データが書き込まれるメ
モリ5のアドレスを示すアドレスデータがアドレスバス
4に出力される。
FIG. 4 is a diagram showing the configuration of a memory check device in a conventional DMA control circuit. For example, when write data is output to the DMA control circuit 2 from a peripheral device, a communication controller or the like via the I / O port 1, the DMA control circuit 2 outputs the write data to the data bus 3 and Address data indicating the address of the memory 5 to which the data is written is output to the address bus 4.

【0004】アドレスバス4に出力されたアドレスデー
タは、DMAメモリチェックサイクル制御部8によって
定められるサイクルに従って、アドレス保存部6に保存
されるとともに、メモリ5に出力される。
The address data output to the address bus 4 is stored in the address storage unit 6 and also output to the memory 5 in accordance with the cycle determined by the DMA memory check cycle control unit 8.

【0005】一方、データバス3に出力された書き込み
データは、メモリエラーチェック部7によって計算され
る書き込みデータのECCなどとともに、DMAメモリ
チェックサイクル制御部8によって定められるサイクル
に従って、メモリ5に書き込まれる。
On the other hand, the write data output to the data bus 3 is written to the memory 5 according to the cycle determined by the DMA memory check cycle control unit 8 together with the ECC of the write data calculated by the memory error check unit 7. .

【0006】そして、次に、周辺機器、通信コントロー
ラなどからI/Oポート1を介して、DMA制御回路2
に読み込み命令が出力されると、DMA制御回路2から
は、読み込まれるデータに対応するメモリ5のアドレス
データがアドレスバス4を介して、メモリ5に出力され
る。
Then, the DMA control circuit 2 is supplied from the peripheral device, the communication controller or the like via the I / O port 1.
When the read command is output to, the DMA control circuit 2 outputs the address data of the memory 5 corresponding to the read data to the memory 5 via the address bus 4.

【0007】そして、このアドレスデータに対応するメ
モリ5に格納されたECCなどが付加されたデータが、
データバス3に出力され、メモリエラーチェック部7に
よって、メモリチェックが行なわれる。
Then, data to which ECC or the like stored in the memory 5 corresponding to the address data is added is
The data is output to the data bus 3, and the memory error check unit 7 performs a memory check.

【0008】[0008]

【発明が解決しようとする課題】このため、もし、メモ
リエラーチェック部7によるメモリチェックによって、
エラーが検出されたとしても、DMA制御回路の書き込
み時に原因が生じているのか、或いは読み込み時に原因
が生じているのかを判断することができなかった。
Therefore, if the memory error check unit 7 performs a memory check,
Even if an error was detected, it was not possible to determine whether the cause occurred during writing in the DMA control circuit or the cause occurred during reading.

【0009】一般に、読み込み命令と書き込み命令との
お互いのアクセス時間が短い場合には、測定器を使用す
ることにより、比較的容易に両方のタイミングを測定す
ることができるため、読み込み命令に起因するのか、或
いは書き込み命令に起因するのかの判断を行なうことが
できる。
In general, when the read command and the write command have a short access time to each other, the timings of both can be measured relatively easily by using a measuring instrument. It is possible to judge whether or not it is caused by the write command.

【0010】しかし、時間が経過した後のメモリエラー
では、測定器を使用しても時間が長すぎて、読み込み命
令或いは書き込み命令のいずれか一方しかトレースする
ことができず、その結果、メモリエラーを短時間に検出
することができないという問題があった。
However, in the case of a memory error after a lapse of time, even if a measuring instrument is used, the time is too long and only one of a read instruction and a write instruction can be traced. As a result, a memory error occurs. There is a problem in that it cannot be detected in a short time.

【0011】また、メモリエラーが読み込み動作に起因
するものなのか、或いは書き込み動作に起因するものな
のかを判断することができないという問題もあった。さ
らに、CPU9によって、メモリ5の書き込み及び読み
だしを行なう場合についても同様の問題があった。本発
明は、上記実情に鑑みてなされたものであり、メモリエ
ラーを短時間で検出することのできるメモリチェック装
置を提供することを目的とする。
There is also a problem that it is not possible to determine whether the memory error is due to a read operation or a write operation. Further, there is a similar problem when the CPU 9 writes and reads the memory 5. The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a memory check device capable of detecting a memory error in a short time.

【0012】[0012]

【課題を解決するための手段】従って、まず、上記目的
を達成するために請求項1に係る発明は、複数のポート
を有するメモリに書き込まれるデータにデータ異常を検
出するためのチェックコードを付加するチェックコード
付加手段と、前記メモリに特定のポートを介して前記デ
ータを書き込むデータ書込手段と、前記データ書込手段
により前記メモリにデータが書き込まれたサイクルと同
一のサイクルにおいて、前記メモリから前回書き込まれ
たデータを読み出す第1のデータ読出手段と、前記第1
のデータ読出手段により読み出された前回書き込まれた
データに異常が生じているか否かを前記チェックコード
付加手段により付加された前回書き込まれたデータに対
応するチェックコードに基づいて判定する第1の判定手
段とを具備したことを特徴とする。
Therefore, first, in order to achieve the above object, the invention according to claim 1 adds a check code for detecting a data abnormality to data written in a memory having a plurality of ports. Check code adding means, data writing means for writing the data to the memory through a specific port, and the same cycle in which the data is written to the memory by the data writing means. A first data reading means for reading previously written data;
A first judgment is made based on the check code corresponding to the previously written data added by the check code adding means to determine whether or not the previously written data read by the data reading means is abnormal. And a determination means.

【0013】また、請求項2に係る発明は、請求項1記
載のメモリチェック装置において、前記メモリの特定の
ポートからデータを読み込む第2のデータ読込手段と、
前記第2のデータ読込手段により前記メモリからデータ
が読み込まれたサイクルと同一のサイクルにおいて、前
記メモリから前回書き込まれたデータを読み出すデータ
第2の読出手段と、前記第2のデータ読出手段により読
み出された前回書き込まれたデータに異常が生じている
か否かを前記チェックコード付加手段により付加された
前回書き込まれたデータに対応するチェックコードに基
づいて判定する第2の判定手段とを付加したことを特徴
とする。
According to a second aspect of the present invention, in the memory check device according to the first aspect, second data reading means for reading data from a specific port of the memory,
In the same cycle as the cycle in which the data is read from the memory by the second data reading means, the data second read means that reads the previously written data from the memory and the read by the second data read means A second judging means for judging whether or not there is an abnormality in the outputted previously written data is added based on a check code corresponding to the previously written data added by the check code adding means. It is characterized by

【0014】さらに、請求項3に係る発明は、複数のポ
ートを有するメモリに書き込まれるデータにデータ異常
を検出するためのチェックコードを付加するチェックコ
ード付加手段と、前記メモリの特定のポートからデータ
を読み込むデータ読込手段と、前記データ読込手段によ
り前記メモリからデータが読み込まれたサイクルと同一
のサイクルにおいて、前記メモリから前回書き込まれた
データを読み出すデータ読出手段と、前記データ読出手
段により読み出された前回書き込まれたデータに異常が
生じているか否かを前記チェックコード付加手段により
付加された前回書き込まれたデータに対応するチェック
コードに基づいて判定する判定手段とを具備したことを
特徴とする。
Further, in the invention according to claim 3, a check code adding means for adding a check code for detecting a data abnormality to data written in a memory having a plurality of ports, and data from a specific port of the memory. In the same cycle in which the data is read from the memory by the data reading unit, the data reading unit that reads the previously written data from the memory, and the data reading unit that reads the previously written data from the memory. And a determination means for determining whether or not there is an abnormality in the previously written data based on the check code corresponding to the previously written data added by the check code adding means. .

【0015】さらに、請求項4に係る発明は、請求項2
記載のメモリチェック装置において、前記第2のデータ
読込手段により読み込まれたデータに異常が生じている
か否かを前記チェックコード付加手段により付加された
読み込まれたデータに対応するチェックコードに基づい
て判定する第3の判定手段を付加したことを特徴とす
る。
Further, the invention according to claim 4 is the invention according to claim 2.
In the memory check device described above, it is judged whether or not there is an abnormality in the data read by the second data reading means based on a check code corresponding to the read data added by the check code adding means. It is characterized in that a third determining means for performing is added.

【0016】さらに、請求項5に係る発明は、請求項3
記載のメモリチェック装置において、前記データ読込手
段により読み込まれたデータに異常が生じているか否か
を前記チェックコード付加手段により付加された読み込
まれたデータに対応するチェックコードに基づいて判定
する第2の判定手段を付加したことを特徴とする。
Further, the invention according to claim 5 is the invention according to claim 3.
In the memory check device described above, it is determined whether or not there is an abnormality in the data read by the data reading means, based on a check code corresponding to the read data added by the check code adding means. It is characterized in that the determination means of is added.

【0017】次に、各請求項に係る発明の作用について
説明する。請求項1に係る発明は、チェックコード付加
手段により、メモリに書き込まれるデータにデータ異常
を検出するためのチェックコードを付加し、データ書込
手段により、メモリに特定のポートを介して前記データ
を書き込む。
Next, the operation of the invention according to each claim will be described. In the invention according to claim 1, the check code adding means adds a check code for detecting a data abnormality to the data written in the memory, and the data writing means writes the data in the memory through a specific port. Write.

【0018】また、第1のデータ読出手段により、デー
タ書込手段により前記メモリにデータが書き込まれたサ
イクルと同一のサイクルにおいて、メモリから前回書き
込まれたデータを読み出し、第1の判定手段により、第
1のデータ読出手段により読み出された前回書き込まれ
たデータに異常が生じているか否かをチェックコード付
加手段により付加された前回書き込まれたデータに対応
するチェックコードに基づいて判定するので、データの
書き込みが正常であるか否かを迅速に検出することがで
きる。
Further, in the same cycle as the cycle in which the data is written in the memory by the data writing means by the first data reading means, the previously written data is read from the memory and the first judging means Since it is determined based on the check code corresponding to the previously written data added by the check code adding means whether or not there is an abnormality in the previously written data read by the first data reading means, It is possible to quickly detect whether or not the data writing is normal.

【0019】請求項2に係る発明は、請求項1記載のメ
モリチェック装置において、第1の判定手段により、第
1のデータ読出手段により読み出された前回書き込まれ
たデータに異常が生じているか否かをチェックコード付
加手段により付加された前回書き込まれたデータに対応
するチェックコードに基づいて判定するとともに、第2
の判定手段により、第2のデータ読出手段により読み出
された前回書き込まれたデータに異常が生じているか否
かをチェックコード付加手段により付加された前回書き
込まれたデータに対応するチェックコードに基づいて判
定するので、信頼性の高いメモリチェック装置を提供す
ることができる。
According to a second aspect of the present invention, in the memory check device according to the first aspect, is there any abnormality in the previously written data read by the first data reading means by the first determining means? Whether or not it is determined based on the check code corresponding to the previously written data added by the check code adding means, and
Whether the previously written data read by the second data reading means is abnormal or not is determined by the check means according to the check code corresponding to the previously written data added by the check code adding means. Therefore, it is possible to provide a highly reliable memory check device.

【0020】請求項3に係る発明は、データ読込手段に
より、メモリの特定のポートからデータを読み込むとと
もに、データ読出手段により、データ読込手段により前
記メモリからデータが読み込まれたサイクルと同一のサ
イクルにおいて、前記メモリから前回書き込まれたデー
タを読み出す。
According to a third aspect of the present invention, the data reading unit reads data from a specific port of the memory, and the data reading unit reads data from the memory in the same cycle. , The previously written data is read from the memory.

【0021】そして、判定手段により、データ読出手段
により読み出された前回書き込まれたデータに異常が生
じているか否かを前記チェックコード付加手段により付
加された前回書き込まれたデータに対応するチェックコ
ードに基づいて判定するので、データの書き込みが正常
であるか否かを迅速に検出することができる。
Then, the check code corresponding to the previously written data added by the check code adding means determines whether or not the previously written data read by the data reading means is abnormal by the judging means. Since it is determined based on, it is possible to quickly detect whether or not the data writing is normal.

【0022】請求項4に係る発明は、請求項2記載のメ
モリチェック装置において、第3の判定手段により、第
2のデータ読込手段により読み込まれたデータに異常が
生じているか否かを前記チェックコード付加手段により
付加された読み込まれたデータに対応するチェックコー
ドに基づいて判定するので、読み込まれたデータの異常
をも検出することができる。
According to a fourth aspect of the present invention, in the memory check device according to the second aspect, it is checked by the third judging means whether or not there is an abnormality in the data read by the second data reading means. Since the judgment is made based on the check code corresponding to the read data added by the code adding means, it is possible to detect an abnormality in the read data.

【0023】請求項5に係る発明は、請求項3記載のメ
モリチェック装置において、第2の判定手段により、デ
ータ読込手段により読み込まれたデータに異常が生じて
いるか否かを前記チェックコード付加手段により付加さ
れた読み込まれたデータに対応するチェックコードに基
づいて判定するので、読み込まれたデータの異常をも検
出することができる。
According to a fifth aspect of the present invention, in the memory check device according to the third aspect, the check code adding means determines whether or not the data read by the data reading means is abnormal by the second determining means. Since the determination is made based on the check code corresponding to the read data added by, the abnormality of the read data can be detected.

【0024】[0024]

【発明の実施の形態】以下、図面を参照して本発明の一
実施の形態について説明する。図1は、本発明の一実施
の形態に係るメモリチェック装置の構成を示す図であ
る。なお、図4と同一部分には、同一符号を付して説明
する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing a configuration of a memory check device according to an embodiment of the present invention. Note that the same parts as those in FIG.

【0025】同図に示すように、周辺機器、通信コント
ローラなどに接続されるI/Oポート1には、DMA制
御回路2が接続されている。このDMA制御回路2は、
データバス3及びアドレスバス4に接続されている。
As shown in the figure, a DMA control circuit 2 is connected to an I / O port 1 which is connected to peripheral equipment, a communication controller and the like. This DMA control circuit 2
It is connected to the data bus 3 and the address bus 4.

【0026】上記データバス3には、DMA制御回路2
の他に、CPU9、第1のメモリエラーチェック部1
1、2ポートメモリ12が接続されている。また、2ポ
ートメモリ12と第2のメモリエラーチェック部13と
の間、2ポートメモリ12と第2のメモリエラーチェッ
ク部13との間もデータバス3によって接続されてい
る。
The data bus 3 has a DMA control circuit 2
Besides, the CPU 9 and the first memory error check unit 1
The 1 and 2 port memories 12 are connected. Further, the 2-port memory 12 and the second memory error check unit 13 are also connected by the data bus 3 between the 2-port memory 12 and the second memory error check unit 13.

【0027】アドレスバス4には、DMA制御回路2の
他に、CPU9、2ポートメモリ12、アドレス保存部
15、DMAメモリチェックサイクル制御部16が接続
されている。
In addition to the DMA control circuit 2, a CPU 9, a 2-port memory 12, an address storage unit 15, and a DMA memory check cycle control unit 16 are connected to the address bus 4.

【0028】DMA制御回路2は、I/Oポート1から
書き込みデータが入力されると、書き込みデータをデー
タバス3に出力するとともに、この書き込みデータが書
き込まれる2ポートメモリ12のアドレスを示すアドレ
スデータをアドレスバス4に出力する。
When the write data is input from the I / O port 1, the DMA control circuit 2 outputs the write data to the data bus 3 and also the address data indicating the address of the 2-port memory 12 to which the write data is written. Is output to the address bus 4.

【0029】また、DMA制御回路2は、I/Oポート
1を介して、読みだし命令が入力されると、2ポートメ
モリ12から読み出されるデータのアドレスを示すアド
レスデータをアドレスバス4に出力する。
When a read command is input via the I / O port 1, the DMA control circuit 2 outputs address data indicating the address of the data read from the 2-port memory 12 to the address bus 4. .

【0030】第1のメモリエラーチェック部11は、2
ポートメモリ12に書き込まれるデータにメモリチェッ
クの際に使用されるチェックコードを付加する。このメ
モリチェック用のコードは、例えば、ECC、パリティ
ビットなどである。
The first memory error check unit 11 is
A check code used for memory check is added to the data written in the port memory 12. The memory check code is, for example, an ECC or a parity bit.

【0031】また、第1のメモリエラーチェック部11
は、DMA制御回路2或いはCPU9によって読み出さ
れるデータのエラーチェックを行なう。2ポートメモリ
12は、データバス3に出力された書き込みデータと第
1のメモリエラーチェック部11によって付加されたチ
ェックコードとを格納する。なお、2ポートメモリ12
にチェックコードを付加する領域がない場合には、他に
メモリを用意しても良い。
Further, the first memory error check unit 11
Performs an error check on the data read by the DMA control circuit 2 or the CPU 9. The 2-port memory 12 stores the write data output to the data bus 3 and the check code added by the first memory error check unit 11. The 2-port memory 12
If there is no area to which the check code is added, another memory may be prepared.

【0032】第2のメモリエラーチェック部13は、D
MAメモリチェックサイクル制御部16によって決定さ
れるサイクルであって、前のサイクルにおいて書き込ま
れたデータのチェックを、第1のメモリエラーチェック
部11において付加されたチェックコードに基づいて行
なう。
The second memory error check unit 13 is D
In the cycle determined by the MA memory check cycle control unit 16, the data written in the previous cycle is checked based on the check code added by the first memory error check unit 11.

【0033】アドレス保存部15は、DMA制御回路2
によって2ポートメモリ12に書き込みが行なわれたア
ドレスを示すアドレスデータを保存する。DMAメモリ
チェックサイクル制御部16は、DMA制御回路2の書
き込みサイクル及び読みだしサイクルを決定するもので
あって、DMA制御回路2によって、書き込み或いは読
みだしが行なわれた場合に、アドレス保存部15に制御
信号を出力することにより、アドレス保存部15に保存
された前回書き込みが行なわれたアドレスを示すアドレ
スデータを、チェック用アドレスバス14を介して、2
ポートメモリ12に出力する。
The address storage unit 15 includes the DMA control circuit 2
Address data indicating the written address is stored in the 2-port memory 12. The DMA memory check cycle control unit 16 determines a write cycle and a read cycle of the DMA control circuit 2, and when the DMA control circuit 2 writes or reads, the DMA memory check cycle control unit 16 stores it in the address storage unit 15. By outputting the control signal, the address data, which is stored in the address storage unit 15 and indicates the previously written address, is transferred to the 2
Output to the port memory 12.

【0034】次に、上述のごとく構成されたメモリチェ
ック装置の動作について説明する。まず、I/Oポート
1を介して書き込みデータ或いは読みだし命令が入力さ
れると、DMA制御回路2は、CPU9の動作を停止さ
せて、内部バス3、アドレスバス4を開放する。
Next, the operation of the memory check device configured as described above will be described. First, when write data or a read command is input via the I / O port 1, the DMA control circuit 2 stops the operation of the CPU 9 and opens the internal bus 3 and the address bus 4.

【0035】書き込みデータが入力された場合、DMA
制御回路2は、書き込みデータをデータバス3に出力す
るとともに、この書き込みデータが書き込まれる2ポー
トメモリ12のアドレスを示すアドレスデータをアドレ
スバス4に出力する。
When write data is input, DMA
The control circuit 2 outputs the write data to the data bus 3 and outputs the address data indicating the address of the 2-port memory 12 to which the write data is written to the address bus 4.

【0036】データバス3に出力された書き込みデータ
は、第1のメモリエラーチェック部11によって、チェ
ックコードが付加されたのち、2ポートメモリ12の第
1のポートを介して該当するアドレスに保存される。
The write data output to the data bus 3 is stored in the corresponding address via the first port of the 2-port memory 12 after a check code is added by the first memory error check unit 11. It

【0037】同時に、アドレスバス4に出力されたアド
レスデータは、アドレス保存部15に保存される。上記
DMA制御回路2から出力されるデータ、アドレスデー
タ及びアドレス保存部15へのアドレスデータの保存の
タイミングは、DMAメモリチェックサイクル制御部1
6によって制御されている。
At the same time, the address data output to the address bus 4 is stored in the address storage unit 15. The timing of storing the data output from the DMA control circuit 2, the address data, and the address data in the address storage unit 15 is determined by the DMA memory check cycle control unit 1
6.

【0038】そして、次のサイクルにおいて、DMA制
御回路2から2ポートメモリ12への書き込み或いは読
みだしが行なわれると、DMAメモリチェックサイクル
制御部16からアドレス保存部15に制御信号が出力さ
れる。
In the next cycle, when the DMA control circuit 2 writes to or reads from the 2-port memory 12, the DMA memory check cycle control unit 16 outputs a control signal to the address storage unit 15.

【0039】アドレス保存部15は、DMAメモリチェ
ックサイクル制御部16から制御信号が出力されると、
前回のデータ書き込み時において保存されたアドレスデ
ータをチェック用アドレスバス14を介して、2ポート
メモリ12に出力する。
When the control signal is output from the DMA memory check cycle control unit 16, the address storage unit 15 receives the control signal.
The address data stored at the time of the previous data writing is output to the 2-port memory 12 via the check address bus 14.

【0040】2ポートメモリ12は、このチェック用ア
ドレスバス14を介して前回のアドレスデータが入力さ
れると、このアドレスデータに対応するデータを、第2
のポートを介して第2のメモリエラーチェック部13に
出力する。
When the previous address data is input via the check address bus 14, the 2-port memory 12 transfers the data corresponding to this address data to the second address data.
Output to the second memory error check unit 13 via the port.

【0041】そして、第2のメモリエラーチェック部1
3によって、エラーが検出された場合には、書き込み時
にエラーの原因があると判断することができる。また、
同時に、このサイクルにおいては、DMA制御回路2に
よって指定された2ポートメモリ12に格納されたデー
タの読みだし、或いは2ポートメモリ12へのデータの
書き込みが第1のポートを介して行なわれる。
Then, the second memory error check unit 1
According to 3, if an error is detected, it can be determined that there is an error cause during writing. Also,
At the same time, in this cycle, the data stored in the 2-port memory 12 designated by the DMA control circuit 2 is read or the data is written into the 2-port memory 12 via the first port.

【0042】図2は、DMA制御回路2から2ポートメ
モリ12に対して、連続的に書き込みが行われている場
合における第2のメモリエラーチェック部13によるチ
ェックタイミングを示す図である。
FIG. 2 is a diagram showing check timings by the second memory error check unit 13 when writing is continuously performed from the DMA control circuit 2 to the 2-port memory 12.

【0043】すなわち、この場合、2ポートメモリ12
にデータが書き込まれると同時に、前回のサイクルにお
いて書き込まれたデータのチェックが第2のメモリエラ
ーチェック部13において行なわれることになる。
That is, in this case, the 2-port memory 12
At the same time that the data is written in, the data written in the previous cycle is checked in the second memory error check unit 13.

【0044】また、図3は、DMA制御回路2から2ポ
ートメモリ12に対して、連続的に読み込み行われてい
る場合における第2のメモリエラーチェック部13によ
るチェックタイミングを示す図である。
FIG. 3 is a diagram showing the check timing by the second memory error check unit 13 when the DMA control circuit 2 continuously reads from the 2-port memory 12.

【0045】このようなケースにおいては、DMA制御
回路2からの読みだし命令に対して、2ポートメモリ1
2から読み出されたデータは、第1のメモリエラーチェ
ック部11によってチェックが行なわれる。
In such a case, in response to the read instruction from the DMA control circuit 2, the 2-port memory 1
The data read from No. 2 is checked by the first memory error check unit 11.

【0046】このとき、第1のメモリエラーチェック部
11において、メモリエラーが検出された場合には、読
み込み時にメモリエラーの原因があると判断することが
できる。
At this time, when the first memory error check unit 11 detects a memory error, it can be determined that the cause of the memory error is at the time of reading.

【0047】また、同時に、2ポートメモリ12から前
回2ポートメモリ12に書き込まれたデータが第2のメ
モリエラーチェック部13に出力される。そして、第2
のメモリエラーチェック部13において前回2ポートメ
モリ12に書き込まれたデータにエラーが生じていない
か否かの判定が行なわれる。
At the same time, the data previously written in the 2-port memory 12 from the 2-port memory 12 is output to the second memory error check unit 13. And the second
The memory error check unit 13 determines whether an error has occurred in the data written in the 2-port memory 12 last time.

【0048】従って、この読みだし命令に対するメモリ
チェックにおいては、第1のメモリエラーチェック部1
1におけるチェック結果及び第2のメモリエラーチェッ
ク部13におけるチェック結果から2ポートメモリ12
に欠陥があるのか、或いはDMA制御回路2、2ポート
メモリ12及び第1のメモリエラーチェック部11をつ
なぐデータバス3に欠陥があるのか否かの判定を行なう
ことができる。
Therefore, in the memory check for this read instruction, the first memory error check unit 1
From the check result in 1 and the check result in the second memory error check unit 13, the 2-port memory 12
It is possible to determine whether or not there is a defect, or whether there is a defect in the data bus 3 connecting the DMA control circuit 2, the 2-port memory 12 and the first memory error check unit 11.

【0049】なお、上述の説明においては、DMA制御
回路2によって、2ポートメモリ12へのデータの書き
込み、読み込みを行なう場合について説明したが、CP
U9から2ポートメモリ12へのデータの書き込み、読
み込みを行なう場合についても同様に、メモリチェック
を行なうことができることはいうまでもない。
In the above description, the case where the DMA control circuit 2 writes / reads data to / from the 2-port memory 12 has been described.
It goes without saying that the memory check can be similarly performed when writing and reading data from the U9 to the 2-port memory 12.

【0050】また、上述のメモリチェック装置の応用と
して、第1のメモリエラーチェック部11或いは第2の
メモリエラーチェック部13にてエラーが検出された場
合に、DMAメモリチェックサイクル制御部16の制御
を停止するようにすることにより、エラーが発生したア
ドレスを知ることができる。
Further, as an application of the above-mentioned memory check device, when an error is detected by the first memory error check unit 11 or the second memory error check unit 13, the control of the DMA memory check cycle control unit 16 is performed. By stopping the, it is possible to know the address at which the error occurred.

【0051】さらに、必要であれば、このエラーが発生
したアドレスをアドレス保存部15に保存したり、CP
U9にこのエラーが発生したアドレスの情報を知らせる
ようにしてもよい。
Further, if necessary, the address in which this error has occurred is saved in the address saving unit 15 or the CP
You may make it notify U9 the information of the address where this error occurred.

【0052】従って、本実施の形態に係るメモリチェッ
ク装置によれば、DMA制御回路2によって2ポートメ
モリ12に書き込みが行われたサイクルの後のサイクル
において、書き込まれたデータのエラー判定を行なうこ
とができるため、データの書き込みが正常か否かをすぐ
に確認することができる。
Therefore, according to the memory check device of the present embodiment, the error judgment of the written data is performed in the cycle after the cycle in which the DMA control circuit 2 writes the two-port memory 12. Therefore, it is possible to immediately confirm whether or not the data writing is normal.

【0053】また、DMA制御回路2から2ポートメモ
リ12の読みだしを行なう場合には、第1のメモリエラ
ーチェック部11及び第2のメモリエラーチェック部1
3においてメモリチェックを行なうため、信頼性の高い
メモリチェック装置を提供することができる。
When the 2-port memory 12 is read from the DMA control circuit 2, the first memory error check unit 11 and the second memory error check unit 1 are used.
Since the memory check is performed in 3, it is possible to provide a highly reliable memory check device.

【0054】[0054]

【発明の効果】以上詳記したように、本発明によれば、
メモリエラーを短時間に検出することができる。
As described above in detail, according to the present invention,
A memory error can be detected in a short time.

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

【図1】本発明の一実施の形態に係るメモリチェック装
置の構成を示す図である。
FIG. 1 is a diagram showing a configuration of a memory check device according to an embodiment of the present invention.

【図2】同実施の形態におけるメモリチェック装置の動
作を説明するための図である。
FIG. 2 is a diagram for explaining the operation of the memory check device according to the same embodiment.

【図3】同実施の形態におけるメモリチェック装置の動
作を説明するための図である。
FIG. 3 is a diagram for explaining the operation of the memory check device in the same embodiment.

【図4】従来のDMA制御回路によるメモリチェック装
置の構成を示す図である。
FIG. 4 is a diagram showing a configuration of a memory check device using a conventional DMA control circuit.

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

1…I/Oポート、 2…DMA制御回路、 3…データバス、 4…アドレスバス、 9…CPU、 11…第1のメモリエラーチェック部、 12…2ポートメモリ、 13…第2のメモリエラーチェック部、 14…チェック用アドレスバス、 15…アドレス保存部、 16…DMAメモリチェックサイクル制御部。 1 ... I / O port, 2 ... DMA control circuit, 3 ... Data bus, 4 ... Address bus, 9 ... CPU, 11 ... First memory error check unit, 12 ... 2-port memory, 13 ... Second memory error Check unit, 14 ... Check address bus, 15 ... Address storage unit, 16 ... DMA memory check cycle control unit.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数のポートを有するメモリに書き込ま
れるデータにデータ異常を検出するためのチェックコー
ドを付加するチェックコード付加手段と、 前記メモリに特定のポートを介して前記データを書き込
むデータ書込手段と、 前記データ書込手段により前記メモリにデータが書き込
まれたサイクルと同一のサイクルにおいて、前記メモリ
から前回書き込まれたデータを読み出す第1のデータ読
出手段と、 前記第1のデータ読出手段により読み出された前回書き
込まれたデータに異常が生じているか否かを前記チェッ
クコード付加手段により付加された前回書き込まれたデ
ータに対応するチェックコードに基づいて判定する第1
の判定手段とを具備したことを特徴とするメモリチェッ
ク装置。
1. A check code adding means for adding a check code for detecting a data abnormality to data written in a memory having a plurality of ports, and a data writing for writing the data in the memory via a specific port. Means, first data reading means for reading previously written data from the memory in the same cycle in which data is written to the memory by the data writing means, and first data reading means A first judgment is made on the basis of a check code corresponding to the previously written data added by the check code adding means as to whether or not there is an abnormality in the read previously written data.
A memory check device, comprising:
【請求項2】 前記メモリの特定のポートからデータを
読み込む第2のデータ読込手段と、 前記第2のデータ読込手段により前記メモリからデータ
が読み込まれたサイクルと同一のサイクルにおいて、前
記メモリから前回書き込まれたデータを読み出すデータ
第2の読出手段と、 前記第2のデータ読出手段により読み出された前回書き
込まれたデータに異常が生じているか否かを前記チェッ
クコード付加手段により付加された前回書き込まれたデ
ータに対応するチェックコードに基づいて判定する第2
の判定手段とを付加したことを特徴とする請求項1記載
のメモリチェック装置。
2. A second data reading means for reading data from a specific port of the memory, and the same cycle in which the data is read from the memory by the second data reading means in the same cycle from the previous time. Data second reading means for reading the written data, and a previous time added by the check code adding means for determining whether or not an abnormality has occurred in the previously written data read by the second data reading means. Second determination based on the check code corresponding to the written data
2. The memory check device according to claim 1, further comprising:
【請求項3】 複数のポートを有するメモリに書き込ま
れるデータにデータ異常を検出するためのチェックコー
ドを付加するチェックコード付加手段と、 前記メモリの特定のポートからデータを読み込むデータ
読込手段と、 前記データ読込手段により前記メモリからデータが読み
込まれたサイクルと同一のサイクルにおいて、前記メモ
リから前回書き込まれたデータを読み出すデータ読出手
段と、 前記データ読出手段により読み出された前回書き込まれ
たデータに異常が生じているか否かを前記チェックコー
ド付加手段により付加された前回書き込まれたデータに
対応するチェックコードに基づいて判定する第1の判定
手段とを具備したことを特徴とするメモリチェック装
置。
3. A check code adding means for adding a check code for detecting a data abnormality to data written in a memory having a plurality of ports, a data reading means for reading data from a specific port of the memory, In the same cycle as the cycle in which the data is read from the memory by the data reading means, there is an abnormality in the data reading means for reading the previously written data from the memory and the previously written data read by the data reading means. A memory check device, comprising: a first judging means for judging whether or not the occurrence of the above occurs based on a check code corresponding to the previously written data added by the check code adding means.
【請求項4】 前記第2のデータ読込手段により読み込
まれたデータに異常が生じているか否かを前記チェック
コード付加手段により付加された読み込まれたデータに
対応するチェックコードに基づいて判定する第3の判定
手段を付加したことを特徴とする請求項2記載のメモリ
チェック装置。
4. A method for determining whether or not an abnormality has occurred in the data read by the second data reading means, based on a check code corresponding to the read data added by the check code adding means. 3. The memory check device according to claim 2, further comprising a determination means of 3.
【請求項5】 前記データ読込手段により読み込まれた
データに異常が生じているか否かを前記チェックコード
付加手段により付加された読み込まれたデータに対応す
るチェックコードに基づいて判定する第2の判定手段を
付加したことを特徴とする請求項3記載のメモリチェッ
ク装置。
5. A second judgment for judging whether or not there is an abnormality in the data read by said data reading means, based on a check code corresponding to the read data added by said check code adding means. 4. The memory check device according to claim 3, further comprising means.
JP8036624A 1996-02-23 1996-02-23 Memory check device Pending JPH09231140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8036624A JPH09231140A (en) 1996-02-23 1996-02-23 Memory check device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8036624A JPH09231140A (en) 1996-02-23 1996-02-23 Memory check device

Publications (1)

Publication Number Publication Date
JPH09231140A true JPH09231140A (en) 1997-09-05

Family

ID=12474984

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8036624A Pending JPH09231140A (en) 1996-02-23 1996-02-23 Memory check device

Country Status (1)

Country Link
JP (1) JPH09231140A (en)

Similar Documents

Publication Publication Date Title
JPH09231140A (en) Memory check device
JPS6146864B2 (en)
US5586129A (en) Parity bit memory simulator
JPS62299000A (en) Semiconductor memory
JPH1040130A (en) Microcomputer
JP3161532B2 (en) DMA diagnostic device
KR0121094B1 (en) The method of memory system
JPS63753A (en) Test system for memory error checking and correcting circuit
JPH04364552A (en) Memory circuit with parity monitor circuit
JPH04120642A (en) System for detecting fault of ram
JPH03125246A (en) Memory test device
JPH03126147A (en) Test system for external storage device
JPS5856159A (en) Firmware tester
JP2001307498A (en) Memory check device, memory check method, and storage medium
JPH0589030A (en) Input/output controller
JPS617947A (en) Control storage device
JPH0296257A (en) Diagnostic system for main storage
JPH02105230A (en) Semiconductor integrated circuit
JPH0322060A (en) Memory error detection control system
JPS63245747A (en) Two-port memory abnormality detecting system
JPH05233846A (en) Microprocessor
JPH0358217A (en) Electronic disk subsystem
JPS63288345A (en) Numerical controller
JPH0822420A (en) Storage device with automatic error correcting function
JPH01205357A (en) System for testing memory error detecting circuit