JPH02105241A - Memory fault detection circuit - Google Patents

Memory fault detection circuit

Info

Publication number
JPH02105241A
JPH02105241A JP63258608A JP25860888A JPH02105241A JP H02105241 A JPH02105241 A JP H02105241A JP 63258608 A JP63258608 A JP 63258608A JP 25860888 A JP25860888 A JP 25860888A JP H02105241 A JPH02105241 A JP H02105241A
Authority
JP
Japan
Prior art keywords
data
memory
addition
failure detection
circuits
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
JP63258608A
Other languages
Japanese (ja)
Inventor
Hachiro Sawada
八郎 澤田
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 JP63258608A priority Critical patent/JPH02105241A/en
Publication of JPH02105241A publication Critical patent/JPH02105241A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To detect the faults of plural memory blocks in one time of DMA transfer by attaching an adder circuit and an expected value judging circuit at every memory block in the judgement of data written on a memory. CONSTITUTION:Two adder circuits 7 and 8 add every one constant number on data read out from the memory blocks 3 and 4, and output the results of addition, and also, output control signals 60 and 61 for the expected value judging circuits 11 and 12. The circuits 11 and 12 compare the addition results of the circuits 7 and 8 with the values of addition expected value registers 9 and 10 according to the signals 60 and 61 from the circuits 7 and 8, and output signals when they are different. A defect judging circuit 17 generates and holds data representing in which memory block a fault occurs by receiving output from the two circuits 11 and 12. A data generation circuit 16 for fault detection outputs data for fault detection to be written on the memory block, and it is connected to a data bus 18 via buses 33 and 34 and a buffer 15.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置などに用いら九るメモリの故障検
出回路に関し、特に大容量のメモリを短時間に調べるメ
モリ故障検出回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory failure detection circuit used in information processing devices and the like, and particularly to a memory failure detection circuit that can check a large capacity memory in a short time.

〔従来の技術〕[Conventional technology]

従来、メモリの故障検出は、メモリにデータを書き込み
、そのデータを読み出した時に書き込まれたデータと同
一かどうかを調べることにより行われているが、データ
の書き込み、読み出しおよび比較はすべて中央演算装置
(以下CPU)を介して行われていた。
Conventionally, memory failure detection has been performed by writing data to memory and checking whether the data is the same as the written data when reading it, but all data writing, reading, and comparison are performed by the central processing unit. (hereinafter referred to as CPU).

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

しかしながら、上述のようにすべての処理をCPUによ
り行っていると、メモリ容量の増大に伴って故障検出に
必要な時間が長くなるという問題がある。特に、情報処
理装置の動作開始時にメモリの故障検出に割りあてられ
る時間は短かく、全部のメモリを調べられない場合も生
じ、情報処理装置の信頼性上問題となっていた。
However, if all processing is performed by the CPU as described above, there is a problem that the time required for failure detection increases as the memory capacity increases. In particular, the time allotted for memory failure detection at the start of operation of the information processing apparatus is short, and there are cases in which all the memory cannot be checked, which poses a problem in terms of the reliability of the information processing apparatus.

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

本発明の目的は前述した問題点を解決し、大容量のメモ
リを短時間で調べることの可能なメモリ故障検出回路を
提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and provide a memory failure detection circuit that can check a large capacity memory in a short time.

本発明では、上記目的達成のため、故障検出対象メモリ
に対する故障検出用データの書き込みおよび読み出しに
ダイレクト・メモリ・アクセス(DMA)を用いるとと
もに、比較時に任意の一定アドレス区間内のデータを加
算した結果と、あらかじめ用意しておいた加算結果の期
待値とを比較することにより、上記目的を達成している
In order to achieve the above object, the present invention uses direct memory access (DMA) to write and read fault detection data to and from the fault detection target memory, and also uses the result of adding data within an arbitrary fixed address range during comparison. The above objective is achieved by comparing the expected value of the addition result prepared in advance.

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

第1図は本発明の一実施例を示すブロック図である。こ
こでは故障検出を行うメモリを2つのブロックに分けた
場合を示した。第1図において、CPU1はデータバス
18.アドレスバス19゜コントロールバス20を介し
て本発明のメモリ故障検出回路に必要なデータ等の設定
および動作開始などを制御している。
FIG. 1 is a block diagram showing one embodiment of the present invention. Here, a case is shown in which the memory for fault detection is divided into two blocks. In FIG. 1, the CPU 1 has a data bus 18. Setting of data necessary for the memory failure detection circuit of the present invention and the start of operation are controlled via an address bus 19 and a control bus 20.

DMAコントロール2はDMAによるデータの読み書き
などの制御を行う。
The DMA control 2 controls reading and writing of data using DMA.

第1のメモリブロック3は、アドレスバス19と直接接
続されているほかバス29.バッファ64およびバス3
0を介してデータバス18に接続されている。また、バ
ス29は加算回路7に、バス30は加算期待値レジスタ
9にそれぞれ接続されている。第2のメモリブロック4
も第1のメモリブロック3と同様な接続関係を有する。
The first memory block 3 is directly connected to an address bus 19 as well as a bus 29. Buffer 64 and bus 3
0 to the data bus 18. Further, the bus 29 is connected to the addition circuit 7, and the bus 30 is connected to the expected addition value register 9. Second memory block 4
also has the same connection relationship as the first memory block 3.

本発明によるメモリ故障検出回路を用いる場合、故障検
出対象となるメモリを容量の小さなブロックに分割する
と故障検出に要する時間を短縮することができるが、そ
れに伴って回路のコストが増すため、メモリの分割数は
DMAコントローラ2の性能を考慮して決定することが
望ましい。
When using the memory fault detection circuit according to the present invention, dividing the memory subject to fault detection into blocks of small capacity can shorten the time required for fault detection, but this increases the cost of the circuit. It is desirable to determine the number of divisions in consideration of the performance of the DMA controller 2.

メモリコントロール回路14は、メモリ選択レジスタ1
3内のデータにより選択されたメモリブロックに対し書
き込み許可あるいは読み出し許可(リード/ライト信号
)21および22を与える。
The memory control circuit 14 includes a memory selection register 1
Write permission or read permission (read/write signals) 21 and 22 is given to the memory block selected by the data in 3.

どのメモリブロックを選択するか、書き込み、読み出し
許可の種別はメモリへのデータ書き込み時および読み出
し時にCPUIによって設定される。
Which memory block to select and the types of write and read permissions are set by the CPUI when writing and reading data to the memory.

故障検出用データ発生回路16はメモリブロックに書き
込む故障検出用データを出力する回路で、バス33.バ
ッファ15およびバス34を通じてデータバス18に接
続されている。
The failure detection data generation circuit 16 is a circuit that outputs failure detection data to be written into the memory block, and is connected to the bus 33. It is connected to data bus 18 through buffer 15 and bus 34.

2つの加算回路7および8は、メモリブロック3および
4から読み出されたデータを1定数ずつ加算し、その結
果を出力するとともに、期待値判定回路11および12
0制御信号60および61を出力する。
The two adder circuits 7 and 8 add one constant to the data read from the memory blocks 3 and 4, and output the results, as well as expected value determination circuits 11 and 12.
0 control signals 60 and 61 are output.

2つの期待値判定回路11および12は、加算回路7お
よび8の加算結果と加算期待値レジスタ9および10の
値を加算回路7および8からの制御信号60および61
に従って比較し、異なっている場合に信号を出力する。
Two expected value determination circuits 11 and 12 combine the addition results of addition circuits 7 and 8 with the values of addition expected value registers 9 and 10 using control signals 60 and 61 from addition circuits 7 and 8.
Compare according to the following and output a signal if there is a difference.

不良判定回路17は、2つの期待値判定回路11および
12の出力を受けて、どのメモリブロックに故障がある
かを示すデータを作成、保持する。
The failure determination circuit 17 receives the outputs of the two expected value determination circuits 11 and 12, and creates and holds data indicating which memory block has a failure.

また、故障検出用データ発生回路16は第2図に示すよ
うに、データ列選択レジスタ40.アドレスカウンタ4
1.データROM42から構成されている。データRO
M42には故障検出率を上げるため数種類の故障検出用
データ列が書き込まれていて、その選択はデータ列選択
レジスタ40に設定するデータによって行う。データ列
選択レジスタ40は、メモリ故障検出実行前にCPU 
1から与えられるデータ列選択データ44を受け、内部
に持つテーブルを参照して選択されたデータ列の開始ア
ドレスを出力する。アドレスカウンタ41はこの開始ア
ドレスを受け、このアドレスにDMAコントローラ2か
ら与えられるアクノリッジ信号43の数を加算してデー
タROM42のリードアドレスを発生する。後述するア
クノリッジ信号43を計数するアドレスカウンタは、デ
ータ列がn個のデータから構成されているとすれば、n
進カウンタで構成されアクノリッジ信号43の数がnを
越えると0にもどる。一方、加算回路7は、第3図に示
すように、メモリブロックから読み出されたデータ56
をDMAコントローラ2からの書き込み信号55により
取り込む被加数レジスタ50と、■タイミング前の加算
結果を保持する加数レジスタ51と、この加数レジスタ
51と被加数レジスタ50の値を加算して出力する加算
器52と、CPUIからの加算データ数58を保持する
加算データ数レジスタ53と、DMAコントローラ2か
らのDMAアクノリッジ信号57をカウントし、加算デ
ータ数レジスタ53の値と比較して、一致した時に加数
しレジスタ50のリセット信号59および期待値判定回
路11の制御信号60を出力する加算コントロール回路
54とから構成されている。
Further, as shown in FIG. 2, the failure detection data generation circuit 16 includes a data string selection register 40. address counter 4
1. It is composed of a data ROM 42. Data RO
Several types of data strings for failure detection are written in M42 in order to increase the failure detection rate, and selection thereof is performed by data set in the data string selection register 40. The data string selection register 40 is set by the CPU before executing memory failure detection.
It receives the data string selection data 44 given from 1 and outputs the start address of the selected data string by referring to an internal table. The address counter 41 receives this start address, adds the number of acknowledge signals 43 given from the DMA controller 2 to this address, and generates a read address for the data ROM 42. If the data string is composed of n pieces of data, the address counter that counts the acknowledge signal 43, which will be described later, is n
It is composed of a forward counter, and returns to 0 when the number of acknowledge signals 43 exceeds n. On the other hand, the adder circuit 7, as shown in FIG.
an addend register 50 which takes in by the write signal 55 from the DMA controller 2; an addend register 51 which holds the addition result before the timing; The output adder 52, the addition data number register 53 that holds the addition data number 58 from the CPUI, and the DMA acknowledge signal 57 from the DMA controller 2 are counted, and compared with the value of the addition data number register 53, it is determined that they match. The addition control circuit 54 outputs a reset signal 59 for the adder register 50 and a control signal 60 for the expected value determination circuit 11 when the addition is performed.

次に、第1図のメモリ故障検出回路の動作を説明する。Next, the operation of the memory failure detection circuit shown in FIG. 1 will be explained.

本発明によるメモリ故障検出回路を含んだ情報処理装置
の電源が投入されると、CPU 1はメモリ故障検出処
理を含んだスタートアップ用プログラムを実行する。そ
のプログラムの中で、メモリ故障検出回路の初期設定が
行われるが、この初期設定はデータの設定と状態の設定
の2つに大別される。データ設定が行われるのはDMA
コントローラ2.メモリ選択レジスタ13および故障検
出用データ発生回路16中のデータ列選択レジスタ40
.加算回路7および8の加算データ数レジスタ53.加
算期待値レジスタ9および10でそれぞれ故障検出を行
うメモリブロックの番号、メモリブロックに書き込むデ
ータの個数、書き込む故障検出用データの種類、何番地
ごとに期待値の判定を行うか、データの加算期待値が設
定される。
When the information processing apparatus including the memory failure detection circuit according to the present invention is powered on, the CPU 1 executes a startup program including memory failure detection processing. In the program, initial settings of the memory failure detection circuit are performed, and these initial settings are roughly divided into two: data settings and status settings. Data setting is done in DMA
Controller 2. Memory selection register 13 and data string selection register 40 in failure detection data generation circuit 16
.. Addition data number register 53 for addition circuits 7 and 8. Expected value addition registers 9 and 10 each indicate the number of the memory block for which failure detection is to be performed, the number of data to be written to the memory block, the type of failure detection data to be written, the number of addresses at which the expected value is to be determined, and the expected value of data addition. The value is set.

また状態設定が行われるのは、バッファ64゜65およ
び15とメモリコントロール回路14で、バッファは全
てイネーブル状態に、メモリコントロール回路14は書
き込み許可出力状態にそれぞれ設定される。この初期設
定に必要なデータはCPUI外部の不揮発性メモリ(図
示せず)に保存されているが、書き換え可能でCPUI
がアクセス可能であればこれに限定されない。
The states of the buffers 64, 65, and 15 and the memory control circuit 14 are set, and all the buffers are set to an enabled state, and the memory control circuit 14 is set to a write permission output state. The data necessary for this initial setting is stored in a non-volatile memory (not shown) external to the CPU, but it is rewritable and
is not limited to this, as long as it is accessible.

初期設定が終了すると、CPUIはDMAコントローラ
2に対してメモリ故障検出の開始を指示する。この要求
を受けてDMAコントローラ2はCPU1に対してデー
タバス18.アドレスバス19、およびコントロールバ
ス20の占有要求をし、CPUIはその承認を与えると
DMAコントローラ2からバス使用権が返還されるまで
バスから切り離された状態となる。またメモリコントロ
ール回路14はメモリ選択レジスタ13からのメモリプ
ロ、り指定データに基づき、選択されたメモリブロック
に対して書き込み許可信号21および22を与える。本
実施例ではメモリブロック3および4を選択した場合を
示す。
When the initial settings are completed, the CPUI instructs the DMA controller 2 to start memory failure detection. In response to this request, the DMA controller 2 sends the data bus 18. After making a request for occupation of the address bus 19 and control bus 20 and granting approval, the CPU is disconnected from the bus until the right to use the bus is returned from the DMA controller 2. Furthermore, the memory control circuit 14 provides write permission signals 21 and 22 to the selected memory block based on memory specification data from the memory selection register 13. In this embodiment, a case is shown in which memory blocks 3 and 4 are selected.

バスの占有が許可されるとDMAコントローラ2は故障
検出用データ発生回路16中のデータROM42へ読み
出し信号45を与える。アドレスカウンタ41はデータ
列選択レジスタ40から与えられるデータ列の先頭アド
レスに、データROM42からデータが1つ読み出され
るごとにDMAコントローラ2から与えられるDMAア
クノリッジ信号43の数を加算して作ったアドレスをデ
ータROM42へ与える。
When bus occupancy is permitted, the DMA controller 2 provides a read signal 45 to the data ROM 42 in the failure detection data generation circuit 16. The address counter 41 generates an address by adding the number of DMA acknowledge signals 43 given from the DMA controller 2 every time one piece of data is read from the data ROM 42 to the start address of the data string given from the data string selection register 40. Provided to data ROM 42.

データROM42はアドレスおよび読み出し信号45を
受けて、故障検出用データを出力する。
The data ROM 42 receives the address and read signal 45 and outputs failure detection data.

この出力データはイネーブル状態のバッファ15を介し
てデータバス18へ送られ、バス30および32.イネ
ーブル状態のバッファ64および65゜バス29および
31を通じてメモリプロ、り3および4の同一アドレス
に同時に書き込まれる。このメモリアドレスはDMAコ
ントローラ2の内部にあるカウンタで作られ、アドレス
バス19を通じて各メモリブロック3および4に与えら
れる。
This output data is sent to data bus 18 via enabled buffer 15 and buses 30 and 32 . They are simultaneously written to the same addresses in memory processors 3 and 4 through enabled buffer 64 and 65° buses 29 and 31. This memory address is created by a counter inside the DMA controller 2 and is given to each memory block 3 and 4 via an address bus 19.

このような動作を、初期設定された回数繰り返し行うと
、DMAコントローラ2はバスの占有権をCPU1にも
どす。この時、メモリブロックにまだデータの書かれて
いない領域が存在する場合は、前述した書き込み動作を
繰り返し行う。この場合、書き込みアドレスは前回行っ
た書き込みの最終アドレスの次のアドレスから開始する
ようDMAコントローラ2にCPU1から設定を行う必
要がある。
When such an operation is repeated an initial set number of times, the DMA controller 2 returns the exclusive right of the bus to the CPU 1. At this time, if there is an area in the memory block where no data has been written yet, the write operation described above is repeated. In this case, it is necessary to set the DMA controller 2 from the CPU 1 so that the write address starts from the address following the last address of the last write.

DMAによる故障検出用データの書き込みが終了すると
、CPU1はバッファ64および65をディスイネーブ
ル状態に、メモリコントロール回路14を読み出し許可
信号出力状態にし、メモリ選択レジスタ13に読み出し
するメモリブロックを示すデータを設定した後、再びD
MAコントローラ2にDMAの開始を指示する。
When the writing of the failure detection data by DMA is completed, the CPU 1 disables the buffers 64 and 65, sets the memory control circuit 14 to a read permission signal output state, and sets data indicating the memory block to be read in the memory selection register 13. After that, press D again.
Instructs the MA controller 2 to start DMA.

メモリコントロール回路14は書き込み時に選択された
メモリブロックに対し、読み出し許可信号21および2
2を与える。故障検出用データ発生回路16にはデータ
書き込み時と同様、DMAコントローラ2から読み出し
信号45およびDMAアクノリッジ信号43が与えられ
、故障検出用データを出力する。故障検出用データの出
力と同時に各メモリブロック3および4からはデータが
読み出されるが、バッファ64および65がディスイネ
ーブル状態のため、メモリブロック3および4からのデ
ータは加算回路7および8へ入力される。加算回路7お
よび8は、メモリブロック3および4から読み出したデ
ータを加算データ数レジスタ53に設定された個数加算
し、その結果を期待値判定タイミング信号60とともに
出力する。
The memory control circuit 14 sends read permission signals 21 and 2 to the memory block selected during writing.
Give 2. The failure detection data generating circuit 16 is supplied with a read signal 45 and a DMA acknowledge signal 43 from the DMA controller 2, as in the case of data writing, and outputs failure detection data. Data is read from each memory block 3 and 4 at the same time as the failure detection data is output, but since buffers 64 and 65 are disabled, the data from memory blocks 3 and 4 is input to adder circuits 7 and 8. Ru. Addition circuits 7 and 8 add the data read from memory blocks 3 and 4 by the number set in addition data number register 53, and output the result together with expected value determination timing signal 60.

期待値判定回路11および12は、加算回路7および8
からの加算結果を、制御信号60および61により加算
期待値レジスタ9および10の値と比較し、一致しない
場合は不良判定回路17へ不一致信号25および26を
出力する。不良判定回路17はこれら不一致信号25お
よび26を受けて、故障のあったメモリブロック番号を
表わすデータを保持する。このデータは故障検出終了後
、CPU1の読み出し要求信号49によりデータバス1
8を通じてCPU1に与えられる。
Expected value determination circuits 11 and 12 are connected to adder circuits 7 and 8.
The addition results from the control signals 60 and 61 are compared with the values in the addition expected value registers 9 and 10, and if they do not match, the mismatch signals 25 and 26 are output to the defective determination circuit 17. The defect determination circuit 17 receives these mismatch signals 25 and 26 and holds data representing the memory block number where the failure occurred. After the failure detection is completed, this data is transferred to the data bus 1 by the read request signal 49 of the CPU 1.
8 to CPU1.

第4図に示す表は、メモリ読み出しデータと加算回路の
出力結果による期待値判定回路における判定結果を示し
た表である。
The table shown in FIG. 4 is a table showing the judgment results of the expected value judgment circuit based on the memory read data and the output results of the adder circuit.

第4図に示す例では、加算期待値レジスタ9にはFFF
Ehが、加算データ数設定レジスタ53には4h(=n
)が設定されている。期待値判定回路11によってメモ
リの不良判定が行われるのは、加算データ数設定レジス
タ53に設定された値ごとのメモリ・リード動作時であ
る。従って、第4図に示す場合、故障判定は、メモリブ
ロックのリード・アドレスが、0003h、0007h
In the example shown in FIG. 4, the addition expected value register 9 contains FFF.
Eh is 4h (=n
) is set. The expected value determination circuit 11 determines whether the memory is defective during a memory read operation for each value set in the addition data number setting register 53. Therefore, in the case shown in FIG. 4, failure determination is made when the read address of the memory block is
.

000Bh・・・・・・の時打われる。It is struck when 000Bh...

例としてメモリ・アドレス0005hにおいてメモリに
不良があるとする。この時加算器52の出力は、アドレ
スがoooohから0003hまでの読み出しデータの
加算値が期待値と等しいため、この領域の判定は正常と
なる。しかし、アドレス0004hから0007hにお
いては、0005hにおいてメモリ不良があるため加算
結果と期待値が一致せず期待値判定回路11によるメモ
リ故障判定は、不良となる。また、故障検出率向上のた
めに、故障検出用データの種類を変えて複数回メモリの
故障検出を行うことも可能である。
As an example, assume that there is a defective memory at memory address 0005h. At this time, as for the output of the adder 52, since the added value of the read data whose addresses are from ooooh to 0003h is equal to the expected value, the determination in this area is normal. However, in addresses 0004h to 0007h, since there is a memory defect at 0005h, the addition result and the expected value do not match, and the expected value determination circuit 11 determines that the memory is defective. Furthermore, in order to improve the failure detection rate, it is also possible to perform memory failure detection multiple times by changing the type of failure detection data.

第5図は本発明の他の実施例を示すブロック図である。FIG. 5 is a block diagram showing another embodiment of the present invention.

第1図に示した実施例がメモリブロックと同数の加算回
路、加算期待値レジスタおよび期待値判定回路を使用し
、故障検出用データの書き込みの他、書き込んだデータ
と加算期待値との比較も、選択された全てのメモリブロ
ックに対して同時に行われるのに対し、この実施例では
、故障検出用データの書き込みは選択された全てのメモ
リプロ、りに対し同時に行うが、読み出しデータの加算
および加算結果と加算期待値との比較は、1つの加算回
路7.加算期待値レジスタ9および期待値判定回路11
を用いてメモリブロックごとに行っている。読み出し比
較は各メモリブロックごとに行うため、メモリ選択レジ
スタ13の値を比較処理ごとに設定しなおす必要がある
。また、本実施例においては第1図における不良判定回
路17を設けず、期待値判定回路11の不一致信号を直
接CPU1へ返す方法を採っているが、第1図と同様に
不良判定回路を設けてもよいことは明らかである。
The embodiment shown in FIG. 1 uses the same number of adder circuits, expected addition value registers, and expected value judgment circuits as memory blocks, and in addition to writing data for failure detection, it also compares the written data with the expected addition value. , is performed simultaneously on all selected memory blocks, whereas in this embodiment, writing of fault detection data is performed simultaneously on all selected memory blocks, but addition of read data and Comparison of the addition result and expected addition value is performed by one addition circuit 7. Addition expected value register 9 and expected value judgment circuit 11
This is done for each memory block using . Since the read comparison is performed for each memory block, it is necessary to reset the value of the memory selection register 13 for each comparison process. Further, in this embodiment, the defect determination circuit 17 shown in FIG. 1 is not provided, and a method is adopted in which the mismatch signal of the expected value determination circuit 11 is directly returned to the CPU 1, but a defect determination circuit is provided as in FIG. It is clear that it is possible.

さらに、本実施例において、メモリブロックの一種とし
て、ROM5が接続されている。ROM5の不良判定は
読み出し比較の処理のみで行うことができる他は、他の
メモリプロ、り3および4と同様に扱うことができるが
、ROM5内のデータは一定パターンを有するわけでは
ないので、加。
Furthermore, in this embodiment, a ROM 5 is connected as a type of memory block. The defectiveness of ROM5 can be determined by only reading comparison processing, and can be treated in the same way as other memory processors 3 and 4. However, since the data in ROM5 does not have a fixed pattern, Add.

算期待値にはROM5内の全データの加算結果を設定し
、加算結果との比較は1回のみ行われる。
The result of addition of all data in the ROM 5 is set as the expected value, and comparison with the result of addition is performed only once.

〔発明の効果〕〔Effect of the invention〕

以上の様に、本発明のメモリ故障検出回路は、DMAコ
ントローラを用いることで、故障検出対象となるメモリ
・ブロックに対してDMA転送を行い故障検出用データ
の書き込みを高速に実行している。また、メモリに書き
込まれたデータの読み出しについてもDMA転送を行い
、高速な故障検出を実行している。
As described above, the memory failure detection circuit of the present invention uses a DMA controller to perform DMA transfer to a memory block targeted for failure detection and to write failure detection data at high speed. Furthermore, DMA transfer is also performed for reading data written in the memory to perform high-speed failure detection.

さらに大容量のメモリに対する故障検出においては、メ
モリを複数のメモリ・ブロックに分割し、複数のメモリ
・ブロックに同時に故障検出用データを書き込むこと、
また、すべてのメモリに対して、書込まれたデータと読
み出されたデータを比較するのではなく、ある特定の個
数のメモリ・データを加算し、その加算結果とその期待
値を判定することにより、メモリ故障検出の時間を速め
ることを実現している。
Furthermore, when detecting faults in large-capacity memories, it is possible to divide the memory into multiple memory blocks and simultaneously write data for fault detection into multiple memory blocks.
Also, instead of comparing written data and read data for all memories, it adds a certain number of memory data and determines the addition result and its expected value. This makes it possible to speed up memory failure detection.

さらに、メモリに書き込まれたデータの判定においても
各メモリ・ブロックごとに加算回路と加算期待値レジス
タと期待値判定回路を付加することにより、−回のDM
A転送で複数のメモリ・ブロックの故障検出が可能とな
り、−層の高速化を図ることができる。
Furthermore, by adding an adder circuit, an addition expected value register, and an expected value judgment circuit to each memory block in determining the data written to the memory, -times of DM
With A transfer, it is possible to detect failures in multiple memory blocks, and it is possible to increase the speed of the - layer.

従って、ワークステーション等、装置の電源投入後の初
期処理としてメモリの故障検出機能を必要とし、しかも
そのメモリ故障検出処理を短時間で実行する必要がある
ような装置、あるいは各メモリ・ブロックに付加される
回路が小規模であり低コストであるため、増設メモリボ
ードの様な大容量のメモリボードのメモリ故障検出回路
に適用した場合、その効果は大きい。
Therefore, for devices such as workstations that require a memory failure detection function as an initial process after the device is powered on, and that memory failure detection processing needs to be executed in a short period of time, or for devices such as Since the circuit to be used is small-scale and low-cost, it is highly effective when applied to a memory failure detection circuit of a large-capacity memory board such as an expansion memory board.

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

第1図は、本発明の一実施例を示すブロック図、第2図
はパターン・データ発生回路の例を示すブロック図、第
3図は加算回路の例を示すプロ、ツタ図、第4図は不良
検出の原理を示す表、第5図は本発明の別の実施例を示
すブロック図である。 図において 1・・・・・・CPU、2・・・・・・DMAコントロ
ーラ、3.4・・・・・・メモリ・ブロック、5・・・
・・・ROM。 7.8・・・・・・加算回路、9,10・・・・・・加
算期待値レジスタ、11.12・・・・・・期待値判定
回路、13・・・・・・メモリ選択レジスタ、14・・
・・・・メモリコントロール回路、15,64,65・
・・・・・バッファ、16・・・・・・故障検出用デー
タ発生回路、17・・・・・・不良判定回路、18・・
・・・・データバス、19・・・・・・アドレスバス、
20・・・・・・フントロールバス、21.22・・・
・・・リード/ライト信号、25.26・・・・・・不
一致信号、29〜34・・・・・・バス、40・・・・
・・データ列選択レジスタ、41・・・・・・アドレス
カウンタ、42・・・・・・データROM、43・・・
・・・アクノリッジ信号、44・・・・・・データ列選
択データ、45.49・・・・・・読み出し信号、5・
・・・・・被加数レジスタ、51・・・・・・加数レジ
スタ、52・・・・・・加算器、53・・・・・・加算
データ数レジスタ、54・・・・・・加算器コントロー
ル回路、55・・・・・・書き込み信号、56・・・・
・・読み出しデータ、58・・・・・・加算データ数、
59・・・・・・リセット信号、60.61・・・・・
・制御信号。 代理人 弁理士  内 原   晋 扁4目
FIG. 1 is a block diagram showing an example of the present invention, FIG. 2 is a block diagram showing an example of a pattern/data generation circuit, FIG. 3 is a block diagram showing an example of an adding circuit, and FIG. 5 is a table showing the principle of defect detection, and FIG. 5 is a block diagram showing another embodiment of the present invention. In the figure, 1...CPU, 2...DMA controller, 3.4...Memory block, 5...
...ROM. 7.8...Addition circuit, 9,10...Addition expected value register, 11.12...Expected value judgment circuit, 13...Memory selection register , 14...
...Memory control circuit, 15, 64, 65.
...Buffer, 16...Failure detection data generation circuit, 17...Failure judgment circuit, 18...
...Data bus, 19...Address bus,
20...Huntrolbus, 21.22...
...read/write signal, 25.26...mismatch signal, 29-34...bus, 40...
...Data string selection register, 41...Address counter, 42...Data ROM, 43...
...Acknowledge signal, 44...Data string selection data, 45.49...Read signal, 5.
... Addend register, 51 ... Addend register, 52 ... Adder, 53 ... Addition data number register, 54 ... Adder control circuit, 55...Write signal, 56...
...Read data, 58...Additional data number,
59...Reset signal, 60.61...
·Control signal. Agent: Patent Attorney Shinbian Uchihara 4th year

Claims (2)

【特許請求の範囲】[Claims] (1)中央処理装置(CPU)と、このCPUの有する
バスに接続された複数のメモリ・ブロックを含むシステ
ムにおける、前記メモリ・ブロックの故障検出を行うメ
モリ故障検出回路が故障検出用のデータを発生するデー
タ発生手段と、前記データを前記複数のメモリ・ブロッ
クのうち、任意から複数のメモリ・ブロックに対し同時
に書き込みを行う書き込み手段と、前記データの書き込
まれた前記複数のメモリ・ブロックから、1つのメモリ
・ブロックごとに読み出す読み出し手段と読み出された
前記データを加算する加算手段と、この加算結果とあら
かじめ設定した期待値とを一定周期で比較し、一致しな
い場合は不良検出信号を出力する比較手段と、前記一定
周期で前記加算手段をリセットするリセット手段とから
構成されることを特徴とするメモリ故障検出回路
(1) In a system including a central processing unit (CPU) and a plurality of memory blocks connected to a bus included in the CPU, a memory failure detection circuit that detects failures in the memory blocks collects data for failure detection. a data generating means for generating data; a writing means for simultaneously writing the data into any plurality of memory blocks among the plurality of memory blocks; and from the plurality of memory blocks to which the data has been written; A reading means reads each memory block, an adding means adds the read data, and compares the addition result with a preset expected value at a constant cycle, and outputs a defect detection signal if they do not match. and a reset means that resets the addition means at the constant cycle.
(2)前記加算手段、前記比較手段、前記リセット手段
をそれぞれ前記複数のメモリ・ブロックごとに有し、前
記読み出し手段が前記複数のメモリ・ブロックから各メ
モリ・ブロック同時に読み出しを行うことを特徴とする
特許請求の範囲第1項記載のメモリ故障検出回路。
(2) The adding means, the comparing means, and the resetting means are provided for each of the plurality of memory blocks, and the reading means reads each memory block simultaneously from the plurality of memory blocks. A memory failure detection circuit according to claim 1.
JP63258608A 1988-10-13 1988-10-13 Memory fault detection circuit Pending JPH02105241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63258608A JPH02105241A (en) 1988-10-13 1988-10-13 Memory fault detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63258608A JPH02105241A (en) 1988-10-13 1988-10-13 Memory fault detection circuit

Publications (1)

Publication Number Publication Date
JPH02105241A true JPH02105241A (en) 1990-04-17

Family

ID=17322638

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63258608A Pending JPH02105241A (en) 1988-10-13 1988-10-13 Memory fault detection circuit

Country Status (1)

Country Link
JP (1) JPH02105241A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100442383C (en) * 2003-08-29 2008-12-10 株式会社东芝 Semiconductor integrated circuit device and error detecting method therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100442383C (en) * 2003-08-29 2008-12-10 株式会社东芝 Semiconductor integrated circuit device and error detecting method therefor

Similar Documents

Publication Publication Date Title
KR100303947B1 (en) Multiprocessor system and its initialization function distributed and self-diagnostic system and method
US4191996A (en) Self-configurable computer and memory system
JP4243245B2 (en) Transparent ECC memory system
US5606662A (en) Auto DRAM parity enable/disable mechanism
JPH02500307A (en) Auto-sizing memory system
JPH10283274A (en) Method and device for testing memory
KR20190019209A (en) DDR memory error recovery
US6519718B1 (en) Method and apparatus implementing error injection for PCI bridges
US6950907B2 (en) Enhanced protection for memory modification tracking with redundant dirty indicators
JP3202700B2 (en) Signal processing device
US5673419A (en) Parity bit emulator with write parity bit checking
US5204964A (en) Method and apparatus for resetting a memory upon power recovery
US6216189B1 (en) Error master detector
JPH02105241A (en) Memory fault detection circuit
US6795938B2 (en) Memory access controller with response faking
JP3202696B2 (en) Signal processing device
JPH03501304A (en) Activity verification system for storage or logical devices
JPS5939052B2 (en) Information processing device and method
US20030145175A1 (en) Multiprocessor system having respective control programs of a plurality of processors stored contiguously in a memory
JP2600376B2 (en) Memory controller
JPH034939B2 (en)
JP2768371B2 (en) Inspection method of random access memory
JPH04256033A (en) Memory diagnostic system
JPH01197860A (en) Memory fault detecting circuit
JP3236459B2 (en) Error handling device in common bus data transfer