JPS63155346A - Ram check system - Google Patents

Ram check system

Info

Publication number
JPS63155346A
JPS63155346A JP61303189A JP30318986A JPS63155346A JP S63155346 A JPS63155346 A JP S63155346A JP 61303189 A JP61303189 A JP 61303189A JP 30318986 A JP30318986 A JP 30318986A JP S63155346 A JPS63155346 A JP S63155346A
Authority
JP
Japan
Prior art keywords
data
ram
processor
check
comparator
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
JP61303189A
Other languages
Japanese (ja)
Inventor
Masahiro Saito
雅弘 斉藤
Hideo Tsuboi
秀夫 坪井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61303189A priority Critical patent/JPS63155346A/en
Publication of JPS63155346A publication Critical patent/JPS63155346A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 産業上の利用分野 従来の技術 発明が解決しようとする問題点 問題点を解決するための手段(第1図)作用 実施例(第2図) 発明の効果 [慨 要] 本発明は起動時に行っていたR A M (Rando
lAccess He1ory)に対するリード・ライ
ト・チェックを、DMA (Direct Hel′I
ory Access)方式により行うことにより高速
にRAMのリード・ライト・チェックを行うものである
[Detailed description of the invention] Industrial field of application Conventional technology Problems to be solved by the invention Means for solving the problems (Fig. 1) Working examples (Fig. 2) Effects of the invention [Summary ] The present invention is capable of performing RAM (Rando) performed at startup.
DMA (Direct Hel'I
RAM is read, written, and checked at high speed by using the (ory Access) method.

[産業上の利用分野] 本発明はRAMのチェック方式に係り、特に起動時のR
AMのリード・ライト・チェックに関する。
[Industrial Application Field] The present invention relates to a RAM check method, and in particular, the R
Regarding AM read/write check.

RAMを具備するデータ処理装置においては、システム
の信頼性を向上するためにシステムの立ち上げ時にこの
R’AMに既知のデータを記入した後でこれをよみ出し
、記入したデータと読出したデータの一致性をチェック
するという、リード・ライト・チェックを行なっている
In a data processing device equipped with a RAM, in order to improve the reliability of the system, known data is written in this RAM at the time of system startup, and then read out. A read/write check is performed to check consistency.

C従来の技術l このため、従来では、プロセッサにより特定パターンを
RAMに店込み、それをプロセッサが読出して、書込み
データと読出しデータを比較することによりRAMのリ
ード・ライト・チェック(以下、R/Wチェックという
)を行っていた。
C. Prior Art l For this reason, conventionally, a processor stores a specific pattern in RAM, the processor reads it, and compares the written data with the read data to perform a RAM read/write check (hereinafter referred to as R/ (referred to as a W check).

この場合、さらに信頼性を高めるためには書込みパター
ンを変化させながら何回か上記の動作を繰返してRAM
のR/Wヂエックを行っていた。
In this case, to further improve reliability, repeat the above operation several times while changing the write pattern to
I was doing R/W checking.

[発明が解決しようとする問題点] ところで、このRAMのR/Wヂエックは、プロセッサ
がプログラムによりアドレス先にデータを閤込み、これ
を読出して比較するというソフトウェア処理により行っ
ていたのでこのR/Wチェック時間を速くすることがで
きず、時間がかかるという問題があった。特にRAMの
容量が増大すると、このチェックに時間がかかり、シス
テムの立上り時間が長くなるという問題が存在する。
[Problems to be Solved by the Invention] By the way, this RAM R/W check was performed by a software process in which a processor inserts data into an address destination using a program, reads it out, and compares it. There was a problem that the W check time could not be made faster and it took time. In particular, as the capacity of the RAM increases, this check takes time and the system start-up time becomes longer.

本発明の目的はこのような問題点を解決するため、高速
にRAMI)R/Wチェックを行うことを提供するもの
である。
An object of the present invention is to provide a high-speed RAMI) R/W check in order to solve these problems.

E問題点を解決するための手段] 前記目的を達成するため、本発明では、第1図に示す如
く、プロセッサ1とRAM2の外にダイレクト・メモリ
・アクセス(以下DMAという)制御部3と、データ・
レジスタ4と比較器5を設け、プロセッサ1がデータ・
レジスタ4に記入する。次いでDMA制御部3が起動さ
れて、このデータ・レジスタ4のデータをRAM2全体
に記入する。それからD M A 1lilJ 111
部3はいまRAM2に田込んだデータを読出し、比較器
5においてデータ・レジスタ4に保持されているデータ
を順次比較する。
Means for Solving Problem E] To achieve the above object, in the present invention, as shown in FIG. 1, a direct memory access (hereinafter referred to as DMA) control unit 3 is provided in addition to the processor 1 and the RAM 2; data·
A register 4 and a comparator 5 are provided, and the processor 1 receives data.
Fill in register 4. Next, the DMA control unit 3 is activated and writes the data in the data register 4 into the entire RAM 2. Then D M A 1lilJ 111
The unit 3 reads out the data currently stored in the RAM 2, and the comparator 5 sequentially compares the data held in the data register 4.

[作 用l RAM3に出込んだ全データを順次比較器5で比較する
が、不一致があれば比較器5はこれをプロセッサ1に報
告し、RAM2の状態をチェックすることができる。こ
の場合、DMA制御部3の動作はプロセッサ1のソフト
処理と異なり高速なのでRAM3を速くチェックできる
[Function 1] All the data input to and output from the RAM 3 are sequentially compared by the comparator 5. If there is a discrepancy, the comparator 5 reports this to the processor 1 so that the state of the RAM 2 can be checked. In this case, unlike the software processing of the processor 1, the operation of the DMA control unit 3 is fast, so the RAM 3 can be checked quickly.

[実施例1 本発明の一実施例を第2図にもとづき説明する。[Example 1 An embodiment of the present invention will be described based on FIG.

第2図において、第1図と同記号部は同一部分を示し、
6はデータ・バッファ、7はアンド回路である。
In Figure 2, the same symbols as in Figure 1 indicate the same parts,
6 is a data buffer, and 7 is an AND circuit.

プロセッサ1は、例えばマイクロプロセッサで構成され
ており、データ・レジスタ4にデータを書込んだり、R
/w信号を出力したり、DMA制御部3に対しDMAを
行うためのアドレスやDMA許可信号BAを出力するも
のである。
The processor 1 is composed of, for example, a microprocessor, and writes data to the data register 4, and writes data to the data register 4.
It outputs the /w signal, the address for performing DMA, and the DMA permission signal BA to the DMA control unit 3.

DMA制御部3はRAM2に対してD M A 1Ii
II御を行うものであり、データ・レジスタ4に記入さ
れたデータ・バッファ6を経由して、RAM2にデータ
を書込んだり、読出したりするものである。
The DMA control unit 3 performs DMA 1Ii on the RAM 2.
It performs II control, and writes and reads data to and from the RAM 2 via the data buffer 6 written in the data register 4.

データ・バッファ6はデータ・レジスタ4のデータをR
AM2に皇込むとき、データ・レジスタ4のデータを一
度保持するものである。そしてRAM2に書込むときに
オンとなりデータ・レジスタ4の内容を保持するが、R
AM2より続出でときオフとなり、データ・バッフ?6
の内容が比較器5に伝達されることを防止する。
Data buffer 6 inputs the data in data register 4 to R.
When entering AM2, the data in data register 4 is held once. When writing to RAM2, it turns on and holds the contents of data register 4, but R
It turns off one after another from AM2, and the data buffer? 6
is prevented from being transmitted to the comparator 5.

アンド回路7はRAM2の続出時においてオン状態とな
り比較器5の出力をプロセッサに送出するものであるが
、RAM2の書込み時にはオフとなる。
The AND circuit 7 is turned on when the RAM 2 is written and sends the output of the comparator 5 to the processor, but turned off when the RAM 2 is written.

次に第2図の動作について説明する。Next, the operation shown in FIG. 2 will be explained.

まずシステムの立上り時にプロセッサ1がデータ・レジ
スタ4にデータをセットフる。それからプロセッサ1は
DMA制御部3を起動し、リクエストの有無を求める。
First, the processor 1 sets data in the data register 4 when the system starts up. Then, the processor 1 activates the DMA control unit 3 and asks for the presence or absence of a request.

このシステムの立上り時におけるリクエストの有無に対
し、DMA制御部3はプロセッサ1に対しRAM2に対
する書込みを行うことを求めるリクエスト要求BRを出
力する。プロセッサ1がこれに対して許可信号BAを送
出し、また書込信号Wを出力する。この書込信号Wによ
りアンド回路7はオフになる。この許可信号BAを受け
てDMA制御部3はゲート信号8Gを出ツノし、比較器
5を非動作状態にし、データ・バッファ6をオンにして
データ・レジスタ4から前記セットずみのデータを送出
する。このときD M A ffflJ御部3はRAM
2のアドレスを送出するので、このデータ・レジスタ4
にセットされたデータが、データ・バッファ6を経由し
てRAM2に順次記入される。
In response to the presence or absence of a request at the start-up of the system, the DMA control unit 3 outputs a request BR requesting the processor 1 to write to the RAM 2. In response, processor 1 sends a permission signal BA and also outputs a write signal W. This write signal W turns off the AND circuit 7. In response to this permission signal BA, the DMA control section 3 outputs a gate signal 8G, turns the comparator 5 into a non-operating state, turns on the data buffer 6, and sends out the set data from the data register 4. . At this time, DM A ffflJ control section 3 is RAM
Since the address of 2 is sent, this data register 4
The data set in is sequentially written into the RAM 2 via the data buffer 6.

RAM2に対しデータ書込みが終了すると、DMA制御
部3のリード要求によりプロセッサ1はリード信号Rを
出力し、DMA制御部3にリード指示を行う。このとき
アンド回路7はリード信号Rによりオン状態となり、デ
ータ・バッファ6はディスエーブルとなる。またDMA
制御部3はリード時のゲート信号を出力するので今度は
データ・レジスタ4のみならず比較器5もイネーブル状
態となる。
When data writing to the RAM 2 is completed, the processor 1 outputs a read signal R in response to a read request from the DMA control section 3, and instructs the DMA control section 3 to read. At this time, the AND circuit 7 is turned on by the read signal R, and the data buffer 6 is disabled. Also DMA
Since the control unit 3 outputs a gate signal at the time of reading, not only the data register 4 but also the comparator 5 are enabled.

この状態でD M A ll1lJ m部3はアドレス
を出力してRAM2からデータを順次読出し、比較器5
に伝達する。このとき比較器5にはデータ・レジスタ4
にセットされたデータが伝達されているので、前記のよ
うにしてRAM2から読出されたデータは順次比較され
る。もし比較したデータが異なっていたとき、比較器5
は割込信号I N Tをアンド回路7を経由してプロセ
ッサ1に通知する。
In this state, the D M A ll1lJ m unit 3 outputs the address and sequentially reads data from the RAM 2, and the comparator 5
to communicate. At this time, comparator 5 has data register 4.
Since the data set in the RAM 2 is being transmitted, the data read from the RAM 2 as described above are sequentially compared. If the compared data are different, comparator 5
notifies the processor 1 of the interrupt signal I NT via the AND circuit 7 .

これによりプロセッサ1側ではこのRAM2に対するチ
ェックの途中で削込み入力があったことにより、RAM
2のR/Wチェックエラーの処理を行なう。
As a result, on the processor 1 side, due to the deletion input during the check on this RAM 2, the RAM
The R/W check error in step 2 is processed.

比較器5で不一致が検出されず正常終了すればRAM2
のR/Wチェックが完了したものとみなす。
If no mismatch is detected by comparator 5 and the process ends normally, RAM2
It is assumed that the R/W check has been completed.

勿論このチェックは1回のみでなく複数回行うこともで
きる。
Of course, this check can be performed not only once but also multiple times.

この場合、1回毎に異なるデータでチェックを行なって
もよい。
In this case, the check may be performed using different data each time.

また、データ・レジスタ4をカウンタで構成し、その出
力データをRAM2に一定バイト記入する度に更新する
ような手法により、データ・レジスタ4の内容を変化さ
せながら上記の動作を繰返すことも可能である。
It is also possible to repeat the above operation while changing the contents of data register 4 by configuring data register 4 with a counter and updating its output data every time a certain number of bytes are written in RAM 2. be.

[発明の効果] 本発明によればDMA制罪制式方式り、ハード的にRA
Mにアクセスできるので、RAMのR/Wヂエックを従
来のプロセッサによるソフト的チェックに比較して高速
に行うことができる。
[Effects of the Invention] According to the present invention, the DMA crime prevention system is implemented and RA is implemented in hardware.
Since it is possible to access M, RAM R/W check can be performed faster than a software check using a conventional processor.

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

第1図は本発明の原理説明図、 第2図は本発明の一実施例構成図を示す。 1・・・プロセッサ   2・・・RA M3・・・D
MAthlIwJ部  4・・・データ・レジスタ5・
・・比較器     6・・・データ・バッファ7・・
・アンド回路
FIG. 1 is a diagram explaining the principle of the present invention, and FIG. 2 is a diagram showing the configuration of an embodiment of the present invention. 1...Processor 2...RA M3...D
MAthlIwJ section 4...Data register 5.
...Comparator 6...Data buffer 7...
・AND circuit

Claims (1)

【特許請求の範囲】 プロセッサ(1)と、ダイレクト・メモリ・アクセス制
御手段(3)と、ランダム・アクセス・メモリ(2)を
備えたデータ処理装置において、データを記憶するデー
タ保持手段(4)と、比較手段(5)を具備し、 データ保持手段(4)とランダム・アクセス・メモリ(
2)から読出したデータとを比較手段(5)で比較し、
異なっていたときこれをプロセッサ(1)に通知するよ
うにしたことを特徴とするRAMチェック方式。
[Claims] In a data processing device comprising a processor (1), a direct memory access control means (3), and a random access memory (2), a data holding means (4) for storing data. and a comparison means (5), a data holding means (4) and a random access memory (
Compare the data read from 2) with the comparison means (5),
A RAM check method characterized by notifying a processor (1) when there is a difference.
JP61303189A 1986-12-19 1986-12-19 Ram check system Pending JPS63155346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61303189A JPS63155346A (en) 1986-12-19 1986-12-19 Ram check system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61303189A JPS63155346A (en) 1986-12-19 1986-12-19 Ram check system

Publications (1)

Publication Number Publication Date
JPS63155346A true JPS63155346A (en) 1988-06-28

Family

ID=17917952

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61303189A Pending JPS63155346A (en) 1986-12-19 1986-12-19 Ram check system

Country Status (1)

Country Link
JP (1) JPS63155346A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04271445A (en) * 1990-08-02 1992-09-28 Internatl Business Mach Corp <Ibm> Analysis for high-speed memory when power supply using dma is turned on

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04271445A (en) * 1990-08-02 1992-09-28 Internatl Business Mach Corp <Ibm> Analysis for high-speed memory when power supply using dma is turned on

Similar Documents

Publication Publication Date Title
JP2000003302A (en) Exclusive access control method for shared memory
JPS63155346A (en) Ram check system
JPH06274462A (en) Asynchronous writing system for shared memory
JPS61165170A (en) Bus controlling system
JP2594611B2 (en) DMA transfer control device
JP3130798B2 (en) Bus transfer device
JP2550493B2 (en) Input/Output Control Unit
JPS63144496A (en) Write control system for storage device
JPH03246741A (en) synchronous control device
JPH10247157A (en) Transaction processing system and its recovery method
JPH04137150A (en) Buffer storage device
JPH05265942A (en) Data input / output method in DMA controller
JPS5916067A (en) Data checking system
JPS6332642A (en) Information processor
JPH01296352A (en) Duplex processor
JPS63259746A (en) Data transfer method between bank memories
JPS6168655A (en) Access method for buffer storage
JPH07146818A (en) Data invalidating device for cache memory
JPS61127025A (en) Optical disk controller
JPH04299754A (en) Memory check system
JPH0315217B2 (en)
JPH0480860A (en) Program loading system
JPH0216657A (en) Partial write control system
JPH01205354A (en) Cache memory device
JPS63113749A (en) Channel device