JPS61206058A - Memory controller - Google Patents

Memory controller

Info

Publication number
JPS61206058A
JPS61206058A JP60047057A JP4705785A JPS61206058A JP S61206058 A JPS61206058 A JP S61206058A JP 60047057 A JP60047057 A JP 60047057A JP 4705785 A JP4705785 A JP 4705785A JP S61206058 A JPS61206058 A JP S61206058A
Authority
JP
Japan
Prior art keywords
memory
data
parity
signal line
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
JP60047057A
Other languages
Japanese (ja)
Inventor
Mitsuhiro Hirashima
平島 光裕
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 JP60047057A priority Critical patent/JPS61206058A/en
Publication of JPS61206058A publication Critical patent/JPS61206058A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To detect always destruction of holding data by executing a parity checking of memory data at the time of the scanning leading action in a memory fresh action by a direct memory access controller. CONSTITUTION:A DMA transfer for a memory access necessary to a memory fresh from the memory to an I/O by a direct memory access DMA controller 2 is obtained by inputting the output signal of a timer 1 to the controller 2. At such a case, a parity bit is generated by a parity bit generating circuit 4, the symbol '0' is outputted to a parity data signal line 108 at the timing of the memory leading and the symbol '1' is outputted to the line 108 only when the parity error is generated. Consequently, the data of the line 108 are transferred to a CK terminal of an FF 9 for detecting the parity error only by the timing of the memory leading. Thus, the parity error can be detected, namely, the destruction of the holding data can be always detected.

Description

【発明の詳細な説明】 罠i且1 本発明は、メモリ制御装置に関し、特にデータ処理装置
で使用するリフレッシュ動作の必要なランダムアクセス
メモリ制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Trap i and 1 The present invention relates to a memory control device, and more particularly to a random access memory control device that is used in a data processing device and requires a refresh operation.

従来技術 従来、メモリ装置に保持されている保持データのパリテ
ィエラーの検出をなす場合、CPU (中央処理f、i
りがメモリリードを実行したときのみパリティエラー検
出回路が動作してパリティチェックを行うようになって
いる。
Prior Art Conventionally, when detecting a parity error in data held in a memory device, a CPU (central processing f, i
The parity error detection circuit operates and performs a parity check only when the controller executes a memory read.

かかるパリティエラーの検出方式では、CPUが保持デ
ータ破壊を生じているアドレスに対してメモリアクセス
を実行しない限り、メモリ保持データの破壊の検出は不
可能であるという欠点がある。
Such a parity error detection method has a drawback in that it is impossible to detect destruction of memory-held data unless the CPU executes memory access to the address where the data is destroyed.

及IJとl飽 本発明の目的は、CPUが保持データ破壊を生じている
アドレスに対してメモリアクセスを実行しなくとも、メ
モリリフレッシュ動作におけるスキャンリード動作時に
メモリデータのパリティチェックを行うようにして、常
に保持データの破壊を検出し得るようにしたメモリ制御
装置を提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to perform a parity check on memory data during a scan read operation in a memory refresh operation without the need for the CPU to execute memory access to an address where data destruction has occurred. An object of the present invention is to provide a memory control device that can always detect destruction of retained data.

及i=を丞 本発明によるメモリ制御装置は、メモリリフレッシュ動
作の実行タイミングを生成する手段と、この実行タイミ
ング毎にメモリのスキャンリード動作をなすメモリアク
セス手段と、このスキャンリード動作のタイミングにお
いてメモリリードデータのパリティチェックを行うパリ
ティ検出手段とを含む構成である。
A memory control device according to the present invention includes means for generating execution timing of a memory refresh operation, memory access means for performing a memory scan read operation at each execution timing, and memory access means for performing a memory scan read operation at each execution timing. The configuration includes parity detection means for performing a parity check on read data.

1亙J 次に本発明の一実施例を示す図面を参照して本発明の詳
細な説明する。
1. Next, the present invention will be described in detail with reference to the drawings showing one embodiment of the present invention.

図において、インターバルタイマ1の出力信号線101
は、DMA (ダイレクトメモリアクセス)コントロー
ラ2のDMAリクエストである入力端子(DRQ)に直
接接続されている。メモリリードライト制御回路10は
、アドレス信号線103と制御信号線102を介してD
MAコントローラ2と接続され、またバッファイネーブ
ル信号[1113を介して双方向性データバスバッファ
3と接続されており、更にメモリリード信号線109を
介して、ANDゲート7の入力とANDゲート11の入
力及び双方向性データバスバッファ3とに接続されてい
る。更にはまた、制御回路10はメモリアクセスアドレ
ス信号線111とメモリ制御信号線112とを介してデ
ータ保持メモリ6及びパリティデータ保持メモリ5とに
それぞれ接続されている。
In the figure, an output signal line 101 of interval timer 1
is directly connected to the DMA request input terminal (DRQ) of the DMA (direct memory access) controller 2. The memory read/write control circuit 10 connects D via an address signal line 103 and a control signal line 102.
It is connected to the MA controller 2 and also to the bidirectional data bus buffer 3 via the buffer enable signal [1113, and further connected to the input of the AND gate 7 and the input of the AND gate 11 via the memory read signal line 109. and bidirectional data bus buffer 3. Furthermore, the control circuit 10 is connected to the data holding memory 6 and the parity data holding memory 5 via a memory access address signal line 111 and a memory control signal line 112, respectively.

双方向性データバスバッファ3は、データバス線105
を介してパリティビット生成回路4とデータ保持メモリ
6及びHiah−Z(ハイインピーダンス)付バッファ
8とにそれぞれ接続されまた、データバス信号線104
により外部のデータバスに接続されている。
The bidirectional data bus buffer 3 is connected to the data bus line 105.
The parity bit generation circuit 4 is connected to the data holding memory 6 and the buffer with Hiah-Z (high impedance) 8 via the data bus signal line 104.
connected to an external data bus.

パリティビット生成回路4は、パリティデータ信号線1
08を介してANDゲート7の出力端子とさらに、パリ
ティデータ書込データ信号線106を介してパリティデ
ータ保持メモリ5及びANDゲート11の入力端子にそ
れぞれ接続されている。ANDゲート7の入力端子は、
メモリリードデータ信号線107を介してパリティデー
タ保持メモリ5と接続されている。ANDゲート11の
出力端子は、エラー信号線114を介してパリティエラ
ー検出用F/F (フリップ70ツブ)9のclock
端子へ接続されている。データ保持メモリ6は、リード
信号線110を介してHiah−2付バツフア8と接続
されている。
The parity bit generation circuit 4 includes a parity data signal line 1
The output terminal of the AND gate 7 is connected to the output terminal of the AND gate 7 via a line 08, and to the input terminal of the parity data holding memory 5 and the AND gate 11 via a parity data write data signal line 106, respectively. The input terminal of AND gate 7 is
It is connected to the parity data holding memory 5 via a memory read data signal line 107. The output terminal of the AND gate 11 is connected to the clock of the parity error detection F/F (flip 70 tube) 9 via the error signal line 114.
connected to the terminal. The data holding memory 6 is connected to the buffer 8 with Hiah-2 via a read signal line 110.

次に、以上の構成の動作を順をおって説明する。Next, the operation of the above configuration will be explained in order.

DMAコントO−ラ2によるメモリからl10(入出力
装置)へのメモリリフレッシュに必要なメモリアクセス
の為のDMA転送は、インターバルタイマ1の出力する
一定の方形波信号を出力信号線101を介してDMAコ
ントローラ2のDMAリクエスト端子に入力する事で得
られる。DMAコントローラ2によって生成されたメモ
リリフレッシュ用のDMA転送によるメモリリードで、
CPUによるメモリリードと同様にメモリリードライト
制御回路10により保持データメモリ6とパリティデー
タ保持メモリ5からデータリードする為のアドレス信号
線111のアドレス信号およびメモリ制御信号線112
のメモリ制御信号が生成される。
DMA transfer for memory access necessary for memory refreshing from memory to l10 (input/output device) by DMA controller O-2 is performed by transmitting a constant square wave signal output from interval timer 1 via output signal line 101. It can be obtained by inputting it to the DMA request terminal of the DMA controller 2. Memory read by DMA transfer for memory refresh generated by DMA controller 2,
The address signal of the address signal line 111 and the memory control signal line 112 are used to read data from the held data memory 6 and the parity data holding memory 5 by the memory read/write control circuit 10 in the same way as the memory read by the CPU.
memory control signals are generated.

DMAコントローラ2によるメモリリフレッシュ用メモ
リリードアクセスで、保持データメモリ6から読み出さ
れたデータは、リードデータ信号[1110を介してメ
モリリード信号109によるメモリリードのタイミング
でのみHi ah−Z付バッファ8へ入力され、さらに
データバス信号線105を介してパリティビット生成の
入力データとしてパリティビット生成回路4に取り込ま
れる。
In the memory read access for memory refresh by the DMA controller 2, the data read from the retained data memory 6 is transferred to the buffer 8 with Hi ah-Z only at the timing of memory read by the memory read signal 109 via the read data signal [1110. The data is input to the parity bit generation circuit 4 via the data bus signal line 105 as input data for parity bit generation.

一方、パリティビット保持メモリ5から読み出されたデ
ータはANDゲート7に入力されているが、ANDゲー
トの他入力であるメモリリード信号線109のメモリリ
ードの信号がメモリリードを示しているときのみメモリ
リードデータ信号線107のデータをパリティデータ信
号線108に伝え、パリティビット生成回路4に取り込
まれ、データバス信号線105のデータと共にパリティ
ビット生成回路4によりパリティビット生成が実行され
る。
On the other hand, the data read from the parity bit holding memory 5 is input to the AND gate 7, but only when the memory read signal on the memory read signal line 109, which is the other input to the AND gate, indicates a memory read. The data on the memory read data signal line 107 is transmitted to the parity data signal line 108 and taken into the parity bit generation circuit 4, and the parity bit generation circuit 4 executes parity bit generation together with the data on the data bus signal line 105.

このパリティビット生成においては、メモリライト時に
パリティビットが生成されている為、メモリリードのタ
イミングでは、パリティデータ信帰線10Bには“0″
が出力され、パリティエラーが発生している場合のみ、
パリティデータ信号[1108に“1”が出力されるよ
うになっている。
In this parity bit generation, since the parity bit is generated at the time of memory write, the parity data signal line 10B is set to "0" at the memory read timing.
is output and only if a parity error has occurred,
“1” is output to the parity data signal [1108.

したがって、パリティデータ信号線108のデータはA
NDゲート7の入力信号であるメモリリード信号線10
9のリード信号により、ANDゲート11を介してメモ
リリードのタイミングでのみパリティエラー検出用F/
F9のC1ock端子へ伝えられる。そして、メモリリ
ード時にパリティエラーであるパリティビット信号線1
06のO′から“1”への変化がパリティエラー検出用
F/F9によりラッチされて、パリティエラー発生の状
態が保持される。その結果、CPUのメモリリードだけ
でなく、DMAコントローラ2によるメモリリフレッシ
ュ用DMA転送メモリリードでもパリティエラーの検出
が可能である。
Therefore, the data on the parity data signal line 108 is A
Memory read signal line 10 which is an input signal of ND gate 7
9, the parity error detection F/
It is transmitted to the C1ock terminal of F9. Then, parity bit signal line 1, which is a parity error when reading memory,
The change from O' of 06 to "1" is latched by the parity error detection F/F 9, and the state of occurrence of a parity error is maintained. As a result, parity errors can be detected not only in memory read by the CPU but also in DMA transfer memory read for memory refresh by the DMA controller 2.

11亘11 以上説明したように、本発明によれば、DMAコントロ
ーラによるスキャンリードによるメモリリフレッシュ動
作タイミングで、データチェックのパリティエラー発生
の有無を検出するものであるから、CPUがメモリリー
ドを実行していないメモリ上に存在するデータ破壊エラ
ーを安価に検出できる効果がある。
11 Wataru 11 As explained above, according to the present invention, the presence or absence of a parity error in data check is detected at the memory refresh operation timing by scan read by the DMA controller. This has the effect of being able to inexpensively detect data corruption errors that exist on memory that has not been used.

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

図は本発明の実施例のブロック図である。 主要部分の符号の説明 1・・・・・・タイマ The figure is a block diagram of an embodiment of the invention. Explanation of symbols of main parts 1...Timer

Claims (1)

【特許請求の範囲】[Claims] メモリリフレッシュ動作の必要なランダムアクセスメモ
リにおけるメモリ制御装置であって、メモリリフレッシ
ュ動作の実行タイミングを生成する手段と、前記実行タ
イミング毎にメモリのスキャンリード動作をなすメモリ
アクセス手段と、前記スキャンリード動作のタイミング
においてメモリリードデータのパリティチェックを行う
パリティ検出手段とを含むことを特徴とするメモリ制御
装置。
A memory control device for a random access memory requiring a memory refresh operation, comprising: means for generating an execution timing for the memory refresh operation; a memory access means for performing a memory scan read operation at each execution timing; and the scan read operation. and parity detection means for performing parity check on memory read data at the timing of.
JP60047057A 1985-03-09 1985-03-09 Memory controller Pending JPS61206058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60047057A JPS61206058A (en) 1985-03-09 1985-03-09 Memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60047057A JPS61206058A (en) 1985-03-09 1985-03-09 Memory controller

Publications (1)

Publication Number Publication Date
JPS61206058A true JPS61206058A (en) 1986-09-12

Family

ID=12764524

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60047057A Pending JPS61206058A (en) 1985-03-09 1985-03-09 Memory controller

Country Status (1)

Country Link
JP (1) JPS61206058A (en)

Similar Documents

Publication Publication Date Title
JPS61206058A (en) Memory controller
US6405260B2 (en) Data transmission method and apparatus for interfacing between main system and microcomputer
JPH07129427A (en) Comparative check method for data with ecc code
JPH0316655B2 (en)
JPH0652065A (en) Memory control circuit
JPH04239355A (en) Electronic disk device
JPS62205456A (en) Memory device
JPS6158051A (en) False trouble generating system
JPS63303448A (en) Data storing circuit
JPH04199247A (en) Pseudo-memory error generation circuit
JPH023853A (en) Interface method for cpu
JPH038040A (en) 1-bit error information storage device
JPH0589036A (en) Slave information processor
JPH02297650A (en) Receiver
JPS61109154A (en) Error detecting system for fixed data register
JPS6339061A (en) Processing system for memory error
JPH0782447B2 (en) DMA data transfer control device
JPH0315948A (en) Address bus test system
JPS6252649A (en) Hard error detector for memory element
JPS6236578B2 (en)
JPH04220729A (en) Information processor
JPH0683642A (en) Interruption controller
JPH0535652A (en) Dma controller
JPS63259875A (en) Fault detecting device for write in magnetic disk
JPS6146538A (en) Fast reading method of memory