JPH05109270A - D-ram refresh controller - Google Patents

D-ram refresh controller

Info

Publication number
JPH05109270A
JPH05109270A JP3295064A JP29506491A JPH05109270A JP H05109270 A JPH05109270 A JP H05109270A JP 3295064 A JP3295064 A JP 3295064A JP 29506491 A JP29506491 A JP 29506491A JP H05109270 A JPH05109270 A JP H05109270A
Authority
JP
Japan
Prior art keywords
ram
signal
timer
refresh
cpu
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
JP3295064A
Other languages
Japanese (ja)
Inventor
Keiji Obara
啓二 小原
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP3295064A priority Critical patent/JPH05109270A/en
Publication of JPH05109270A publication Critical patent/JPH05109270A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To unnecessitate executing a specific refresh cycle, then to unnecessitate a complex control circuit for this and to refresh a D-RAM without reducing the operational efficiency of a CPU by using the waiting state interval of the CPU. CONSTITUTION:By an AND gate 5, the waiting state in a read cycle to the D-RAM of the CPU is detected, by a NAND gate 4, a RAS signal is made a non-active state in a prescribed interval in the waiting state and a hidden refresh is performed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、パーソナル・コンピュ
ータやワードプロセッサ等の電子装置に使用されるダイ
ナミック・ランダム・アクセス・メモリ(以下、「D−
RAM」と略記する)のリフレッシュ制御を行うD−R
AMリフレッシュ制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dynamic random access memory (hereinafter referred to as "D-") used in electronic devices such as personal computers and word processors.
Abbreviated as "RAM") D-R for refresh control
The present invention relates to an AM refresh controller.

【0002】[0002]

【従来の技術】従来のD−RAMリフレッシュ制御装置
は、D−RAMのリフレッシュ動作時間を計時するタイ
マと、該タイマの計時にしたがい、一定間隔で中央演算
装置(以下、「CPU」と略記する)サイクル(D−R
AMや入出力装置へのアクセス動作のサイクル)を中断
させる中断手段とを設け、該中断手段によるCPUサイ
クルの中断中に、RASオンリー・リフレッシュや、C
ASビフォアRAS・リフレッシュを行なうためのリフ
レッシュ・サイクルを挿入するのが、一般的であった。
2. Description of the Related Art A conventional D-RAM refresh control device measures a refresh operation time of a D-RAM, and a central processing unit (hereinafter abbreviated as "CPU") at regular intervals according to the timer. ) Cycle (DR
A suspending means for suspending a cycle of access operation to the AM and the input / output device is provided, and RAS only refresh and C are provided during suspension of the CPU cycle by the suspending means.
It was common to insert a refresh cycle to perform AS before RAS refresh.

【0003】しかし、リフレッシュ動作のたびにCPU
サイクルを中断させるのでは、CPUの動作効率が落ち
てしまう。また、制御回路として、タイマ及びDMAコ
ントローラの1チャンネル分相当のかなりの規模の回路
が必要であった。
However, at each refresh operation, the CPU
If the cycle is interrupted, the operating efficiency of the CPU will drop. Further, as the control circuit, a circuit of a considerable scale corresponding to one channel of the timer and the DMA controller is required.

【0004】一方、CPUの動作速度が向上するにつ
れ、CPUの動作速度がメモリの動作速度を上回るもの
が出現するようになり、CPUサイクル中にウエイト・
サイクルを設けることが多くなってきた。
On the other hand, as the operating speed of CPUs has increased, some operating speeds of CPUs have become faster than the operating speeds of memories.
Cycles are becoming more common.

【0005】CPUによりD−RAMのアクセス動作を
制御する場合の回路構成の一例を図6に示す。
FIG. 6 shows an example of a circuit configuration in the case where the CPU controls the access operation of the D-RAM.

【0006】図6において、CPUユニット1は、CP
UやD−RAMコントローラなどで構成され、それらに
入力された基本クロック(CLK)に同期して動作し、
前記CPUの指示により、前記D−RAMコントローラ
が、RAS,CAS,WE,READYなどの各メモリ
制御信号を生成する。このRAS,CAS,WEの各信
号は、不図示のアドレス・バスやデータ・バスと共にD
−RAMからなるメモリ・ユニット2にダイレクトに接
続され、メモリ・ユニット2の動作を制御し、データの
書き込みや読み出しを行う。
In FIG. 6, the CPU unit 1 is a CP
It is composed of U and D-RAM controller and operates in synchronization with the basic clock (CLK) input to them.
The D-RAM controller generates each memory control signal such as RAS, CAS, WE, and READY according to an instruction from the CPU. Each of the RAS, CAS, and WE signals is D along with an address bus and a data bus (not shown).
-It is directly connected to the memory unit 2 composed of RAM, controls the operation of the memory unit 2, and writes and reads data.

【0007】この時の、CLK,RAS,CAS,RE
ADYの各信号のタイミングチャートを、図7及び図8
に示す。図7は、ノー・ウェイト・サイクルの場合で、
図8は初めのサイクルに1ウェイト・サイクルを設けた
場合を示している。
At this time, CLK, RAS, CAS, RE
7 and 8 are timing charts of ADY signals.
Shown in. Figure 7 shows the case of no wait cycle.
FIG. 8 shows a case where one wait cycle is provided in the first cycle.

【0008】この1ウェイト・サイクルとは、メモリの
動作速度が、CPUの動作速度よりも遅い場合に、D−
RAMコントローラ(場合によってはメモリ・ユニット
2)が、READY信号を生成し、CPUにその動作サ
イクルを延ばすように指示したことをCPUが受けて、
通常のCPU・マシン・サイクル(すなわち、T1とT
2ステイト)にウェイト・ステイト(TW)が挿入され
たものである。
This one wait cycle is D- when the operating speed of the memory is slower than the operating speed of the CPU.
When the CPU receives the fact that the RAM controller (possibly the memory unit 2) generates the READY signal and instructs the CPU to extend its operation cycle,
Normal CPU machine cycle (ie T1 and T
The weight state (TW) is inserted in the two states.

【0009】CPUは、各マシン・サイクルの終わり
(T2又はTWステイトの終わり:図7及び図8のRE
ADY信号の下の矢印のタイミング)にREADY信号
をサンプリングし、もし図7のようにREADY信号の
レベルが“H”であれば、そのままそのサイクルを終了
して次のサイクルに進み、もし図8のように“L”なら
ば、その直前のステイト(READY信号のレベルが
“H”の場合には、T2であるべきステイト)がウェイ
ト・ステイト(TW)であったと判別し、メモリ制御信
号の状態をそのままにして、再度T2ステイトを実行す
る。さらに、このT2ステイトの終わりでもREADY
信号をサンプリングし、図8のように“H”であればこ
のサイクルを終了し次のサイクルに進む。(もし、また
“L”であれば、もう1つウェイト・ステイトが追加さ
れ、2ウェイト・サイクルとなり、さらに、READY
信号が“H”になるまでウェイト・ステイトが追加され
ていく。)
The CPU uses the end of each machine cycle (end of T2 or TW state: RE in FIGS. 7 and 8).
The READY signal is sampled at the timing indicated by the arrow below the ADY signal), and if the level of the READY signal is "H" as shown in FIG. 7, the cycle is ended and the process proceeds to the next cycle. If it is "L", it is determined that the state immediately before that (state that should be T2 when the level of the READY signal is "H") is the wait state (TW), and the memory control signal The T2 state is executed again while keeping the state as it is. Furthermore, even at the end of this T2 state, READY
The signal is sampled, and if it is "H" as shown in FIG. 8, this cycle is ended and the next cycle is started. (If it is "L", another wait state is added, and it becomes 2 wait cycles.
Wait states are added until the signal becomes “H”. )

【0010】[0010]

【発明が解決しようとする課題】このように、ウェイト
・ステイトを設けるCPUのアクセス制御が行われてい
るが、このウエイト・ステイトの間、CPUはただ無駄
に時間を待っているだけである。
As described above, the access control of the CPU provided with the wait state is performed, but during this wait state, the CPU simply wastes time.

【0011】また、従来のD−RAMリフレッシュ制御
装置は、上述のごとく、D−RAMのリフレッシュを行
うのにCPUサイクルを中断しなければならず、CPU
の動作効率が悪いと同時に、規模の大きな制御回路が必
要であるという欠点があった。
Further, the conventional D-RAM refresh controller has to interrupt the CPU cycle in order to refresh the D-RAM as described above.
However, it has a drawback in that it requires a large-scale control circuit at the same time as it has a low operating efficiency.

【0012】本発明は、従来のD−RAMリフレッシュ
制御装置のこのような欠点を解消するためになされたも
のであり、特別なリフレッシュサイクルを実行する必要
がなく、したがってそのための複雑な制御回路を必要と
せず、かつCPUのウエイト・ステイト期間を利用し
て、CPUの動作効率を低下させずにD−RAMのリフ
レッシュをすることのできるD−RAMリフレッシュ制
御装置を提供することを目的とする。
The present invention has been made in order to eliminate such a drawback of the conventional D-RAM refresh control device, and it is not necessary to execute a special refresh cycle, and therefore, a complicated control circuit therefor is required. An object of the present invention is to provide a D-RAM refresh control device capable of refreshing the D-RAM without requiring reduction in the operating efficiency of the CPU by utilizing the wait state period of the CPU.

【0013】[0013]

【課題を解決するための手段】本発明のD−RAMリフ
レッシュ制御装置は、CPUのD−RAMに対するリー
ド・サイクル中のウエイト・ステイトを検出する検出手
段と、該検出手段により検出された前記CPUの前記ウ
エイト・ステイト中の所定の期間、該CPUにより制御
されるD−RAMコントローラから前記D−RAMへ供
給されるRAS信号をノン・アクティブ状態とするRA
S信号制御手段とを設けたことを特徴とする。
SUMMARY OF THE INVENTION A D-RAM refresh control device according to the present invention comprises a detecting means for detecting a wait state during a read cycle of a CPU with respect to a D-RAM, and the CPU detected by the detecting means. RA for setting the RAS signal supplied from the D-RAM controller controlled by the CPU to the D-RAM to a non-active state for a predetermined period during the wait state.
S signal control means is provided.

【0014】また、前記検出手段が前記CPUの前記ウ
エイト・ステイト状態を検出した後計時動作を開始し、
所定の時間を計時するとリフレッシュを追加する信号を
出力するタイマを設けたことを特徴とする。
Further, after the detecting means detects the wait state of the CPU, it starts the time counting operation,
A timer is provided which outputs a signal for adding refresh when a predetermined time is measured.

【0015】また、設定された時間内の計時動作を繰り
返すタイマと、前記検出手段の検出した前記ウエイト・
ステイトを含むD−RAMのリードサイクルの回数を計
数し、該計数値が所定の値に達したときそのことを示す
信号を出力するカウンタと、前記タイマの前記設定時間
の経過時に前記カウンタの計数値を判別し、該計数値が
前記所定の値に達していないときは、前記タイマの計時
動作を停止させる信号を前記タイマに供給するととも
に、リフレッシュを追加するための信号を出力する判別
手段とを設けたことを特徴とする。
Further, a timer that repeats the time counting operation within a set time, and the weight
A counter that counts the number of D-RAM read cycles including states and outputs a signal indicating that when the count value reaches a predetermined value, and a counter that counts when the set time of the timer elapses. When the numerical value is discriminated and the counted value does not reach the predetermined value, a discriminating means for supplying a signal for stopping the time counting operation of the timer to the timer and outputting a signal for adding refresh. Is provided.

【0016】さらに、設定された時間内の計時動作を繰
り返すタイマと、前記検出手段の検出した前記ウエイト
・ステイトを含むD−RAMのリードサイクルの回数を
計数するカウンタと、前記タイマの前記設定時間の経過
以前に前記カウンタの計数値が前記所定の値に達したと
きに、この時点から前記タイマの設定時間内リフレッシ
ュを禁止する禁止手段を設けたことを特徴とする。
Further, a timer that repeats a time counting operation within a set time, a counter that counts the number of read cycles of the D-RAM including the wait state detected by the detecting means, and the set time of the timer. When the count value of the counter reaches the predetermined value before the passage of, the prohibiting means for prohibiting the refreshing within the set time of the timer is provided from this point.

【0017】[0017]

【作用】本発明のD−RAMリフレッシュ制御装置は、
CPUのD−RAMに対するリード・サイクル中のウエ
イト・ステイトを検出手段が検出すると、該CPUのウ
エイト・ステイト中の所定の期間、該CPUにより制御
されるD−RAMコントローラから前記D−RAMへ供
給されるRAS信号をRAS信号制御手段がノン・アク
ティブ状態とする。これにより、CPUのウエイト・ス
テイト中にD−RAMのヒドゥンリフレッシュが行われ
るので、特別なリフレッシュサイクルを実行する必要が
なく、そのための複雑な制御回路を必要とせず、かつC
PUの動作効率を低下させずに、D−RAMのリフレッ
シュができる。
The D-RAM refresh controller of the present invention is
When the detecting means detects the wait state during the read cycle of the CPU for the D-RAM, the D-RAM controller controlled by the CPU supplies the wait state to the D-RAM during a predetermined period during the wait state of the CPU. The RAS signal control means brings the RAS signal to the non-active state. As a result, since the hidden refresh of the D-RAM is performed during the wait state of the CPU, it is not necessary to execute a special refresh cycle, a complicated control circuit therefor is not required, and C
The D-RAM can be refreshed without lowering the operating efficiency of the PU.

【0018】また、前記検出手段が前記CPUの前記ウ
エイト・ステイト状態を検出した後所定の時間が経過す
ると、リフレッシュを追加するための信号をタイマが出
力する。これにより、タイマに設定された所定の時間内
に1回はD−RAMのヒドゥンリフレッシュがなされ、
前記所定の時間内にウエイト・ステイトを含むメモリ・
リード・サイクルを発生しない電子装置においても等間
隔のリフレッシュを行うことができる。
When a predetermined time elapses after the detecting means detects the wait state of the CPU, the timer outputs a signal for adding refresh. As a result, the hidden refresh of the D-RAM is performed once within the predetermined time set in the timer,
Memory including wait state within the predetermined time
Even at an electronic device that does not generate a read cycle, refresh can be performed at regular intervals.

【0019】また、カウンタが、前記検出手段の検出し
た前記ウエイト・ステイトを含むD−RAMのリードサ
イクルの回数を計数し、判別手段が、タイマの設定時間
の経過時に前記カウンタの計数値を判別し、該計数値が
所定の値に達していないときは、前記タイマの計時動作
を停止させる信号を前記タイマに供給するとともに、リ
フレッシュを追加する信号を出力する。これにより、設
定された時間内に所定回数のリフレッシュ動作がなされ
ていないときには、タイマを停止して、所定回数までリ
フレッシュ動作をするので、設定時間内又はそれに近い
時間内に所定回数のリフレッシュ動作が必ず行われ、設
定時間内のある程度の長時間メモリ・リード・サイクル
が実行されない場合も、所定回数のリフレッシュがなさ
れ得ることとなる。
Further, the counter counts the number of read cycles of the D-RAM including the wait state detected by the detecting means, and the discriminating means discriminates the count value of the counter when the set time of the timer has elapsed. If the count value has not reached the predetermined value, the signal for stopping the time counting operation of the timer is supplied to the timer and the signal for adding refresh is output. As a result, when the refresh operation is not performed a predetermined number of times within the set time, the timer is stopped and the refresh operation is performed up to the predetermined number of times. Therefore, the refresh operation is performed a predetermined number of times within the set time or a time close thereto. It is always performed, and even when the memory read cycle is not executed for a long time within the set time, the refresh can be performed a predetermined number of times.

【0020】さらに、カウンタが、前記検出手段の検出
した前記ウエイト・ステイトを含むD−RAMのリード
サイクルの回数を計数し、該計数値が所定の値に達した
時以後タイマの設定時間内は、禁止手段がリフレッシュ
を禁止する。これにより、設定時間内に所定回数以上の
リフレッシュ動作がなされることがなく、リフレッシュ
動作に必要な消費電力を無駄に使うことがない。
Further, the counter counts the number of read cycles of the D-RAM including the wait state detected by the detecting means, and within the set time of the timer after the counted value reaches a predetermined value. , Prohibition means prohibit refresh. As a result, the refresh operation is not performed a predetermined number of times or more within the set time, and the power consumption required for the refresh operation is not wasted.

【0021】[0021]

【実施例】以下、図面を参照しながら本発明の一実施例
を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0022】図1は、本発明のD−RAMリフレッシュ
制御装置の第1の実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of the first embodiment of the D-RAM refresh control device of the present invention.

【0023】図1において、図6の従来例と同一の構成
要素には同一の番号を付し、その説明を省略する。
In FIG. 1, the same components as those of the conventional example of FIG. 6 are designated by the same reference numerals, and the description thereof will be omitted.

【0024】CPU・ユニット1とメモリ・ユニット2
との間には、本実施例のD−RAMリフレッシュ制御装
置3が設けられている。
CPU unit 1 and memory unit 2
The D-RAM refresh control device 3 of the present embodiment is provided between and.

【0025】D−RAMリフレッシュ制御装置3は、C
PUのD−RAMに対するリード・サイクル中のウエイ
ト・ステイトを検出する検出手段として用いられる4入
力アンドゲート5と、該4入力アンドゲート5により検
出された前記CPUの前記ウエイト・ステイト中の所定
の期間、該CPUにより制御されるD−RAMコントロ
ーラから前記D−RAMへ供給されるRAS信号をノン
・アクティブ状態とするRAS信号制御手段として用い
られる2入力ナンドゲート4とを有する。
The D-RAM refresh controller 3 has a C
A 4-input AND gate 5 used as a detecting means for detecting a wait state during a read cycle of the PU D-RAM, and a predetermined one of the wait states of the CPU detected by the 4-input AND gate 5. And a 2-input NAND gate 4 used as a RAS signal control means for bringing a RAS signal supplied from the D-RAM controller controlled by the CPU to the D-RAM into a non-active state for a period.

【0026】4入力アンドゲート5の入力端子には、負
論理でREDY信号,負論理でCAS信号,正論理でW
E信号,正論理でCLK信号がそれぞれ入力される。4
入力アンドゲート5の出力端子は負論理で2入力ナンド
ゲート4の一方の入力端子に接続され、該2入力ナンド
ゲート4の他方の入力端子には負論理でRAS信号が入
力される。
The input terminal of the 4-input AND gate 5 has a REDY signal with negative logic, a CAS signal with negative logic, and a W signal with positive logic.
The E signal and the CLK signal with positive logic are input respectively. Four
The output terminal of the input AND gate 5 is connected to one input terminal of the 2-input NAND gate 4 in negative logic, and the RAS signal is input to the other input terminal of the 2-input NAND gate 4 in negative logic.

【0027】図2は本実施例のタイミング・チャートで
ある。
FIG. 2 is a timing chart of this embodiment.

【0028】図2に示すように、本実施例においては、
CLK信号が“H”レベル,WE信号が“H”レベル,
CAS信号が“L”レベル,REDY信号が“L”レベ
ルとなって、CPUのD−RAMのリード・サイクル中
のウエイト・ステイトTWとなると、アンドゲート5の
出力信号レベルが“H”レベルとなる。これにより、ナ
ンドゲート4の出力信号レベルは“H”レベルとなり、
メモリユニット2に入力されるRAS信号はノン・アク
ティブ状態となる。このノン・アクティブ状態は、CL
K信号の立ち下がりで解消され、このTWステイトの後
半からT2ステイトの間にかけて、メモリユニット2中
のD−RAMはヒドゥンリフレッシュされる。
As shown in FIG. 2, in the present embodiment,
CLK signal is "H" level, WE signal is "H" level,
When the CAS signal becomes the "L" level and the REDY signal becomes the "L" level and the wait state TW is reached during the read cycle of the D-RAM of the CPU, the output signal level of the AND gate 5 becomes the "H" level. Become. As a result, the output signal level of the NAND gate 4 becomes "H" level,
The RAS signal input to the memory unit 2 is in the non-active state. This non-active state is CL
It is canceled at the fall of the K signal, and the D-RAM in the memory unit 2 is hidden refreshed from the latter half of this TW state to the T2 state.

【0029】なお、本実施例ではリフレッシュ制御装置
3を独立の回路ユニットとして構成したが、これをCP
U・ユニット中のD−RAMコントローラに組み込んで
もよい。
In this embodiment, the refresh control device 3 is constructed as an independent circuit unit, but this is a CP.
It may be incorporated in the D-RAM controller in the U unit.

【0030】本実施例によれば、CPUの動作速度が高
速で、そのメモリ・リード・サイクルに1つ以上のウェ
イト・ステイトを必要とし、このようなウェイト・ステ
イトを含むメモリ・リード・サイクルが、D−RAMの
リフレッシュに関する規格で規定されている所定の時間
内に、所定の回数以上実行されるような電子装置に適用
することにより、従来のようにCPUサイクルを中断
し、特別なリフレッッシュ・サイクルを実行することな
く、自動的にリフレッシュが行なわれるので、CPUの
動作効率の低下を招くことがなくなる。
According to this embodiment, the operating speed of the CPU is high, one or more wait states are required for the memory read cycle, and a memory read cycle including such a wait state is executed. , The D-RAM is applied to an electronic device that is executed a predetermined number of times or more within a predetermined time defined by the standard for refreshing the D-RAM, so that the CPU cycle is interrupted and a special refresh Since the refresh is automatically performed without executing the cycle, the operation efficiency of the CPU is not lowered.

【0031】また、簡単な論理回路構成で、リフレッシ
ュ制御装置が構成できる。
Further, the refresh control device can be constructed with a simple logic circuit configuration.

【0032】次に、本発明の第2の実施例を説明する。Next, a second embodiment of the present invention will be described.

【0033】図3は、本発明の第2の実施例の回路構成
を示すブロック図である。図3において、図1の本発明
の第1の実施例と同一の構成要素には同一の番号を付
し、その説明を省略する。
FIG. 3 is a block diagram showing the circuit configuration of the second embodiment of the present invention. 3, the same components as those of the first embodiment of the present invention shown in FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted.

【0034】本実施例のD−RAMリフレッシュ制御装
置3には、アンドゲート5がCPUのウエイト・ステイ
ト状態を検出した後、計時動作を開始し、所定の時間
(15μsec)を計時すると“H”レベルのタイムア
ウト信号(以下、「TO信号」と略記する)をCPUユ
ニット1中のD−RAMコントローラのウエイト・リク
エスト端子(以下、「WAITRQ端子」と略記する)
に出力し、D−RAMのリード・サイクルにウエイト・
ステイトを挿入するように指示するためのタイマ6が設
けられている。タイマ6のリセット端子はアンドゲート
5の出力端子に接続されており、該アンドゲート5の出
力レベルが“H”となるとリセットされ(つまり、前回
のリフレッシュ動作時にリセットされ)、その後新たな
計時を始める。15μsecの間次のリセット入力がな
い(つまり、次のリフレッシュ動作が行なわれなかっ
た)場合に“H”レベルのTO信号を出力したまま停止
する。この、TO信号は、CPU・ユニット中のメモリ
・コントローラのWAITRQ(この端子の入力信号レ
ベルが“H”の時はメモリ・リード・サイクルに1ウェ
イト・ステイトの期間が挿入させる)に入力され、次の
メモリ・リード・サイクルに強制的にウェイト・ステイ
トを挿入するように要求する。それを受けて、D−RA
Mコントローラが、次のメモリ・リード・サイクルに、
ウェイト・ステイトを挿入することにより、前記実施例
1で説明したのと同様なヒドゥン・リフレッシュ動作が
追加される。
In the D-RAM refresh control device 3 of the present embodiment, after the AND gate 5 detects the wait state state of the CPU, the clocking operation is started, and when the predetermined time (15 μsec) is measured, it becomes “H”. A level timeout signal (hereinafter abbreviated as "TO signal") is a wait request terminal (hereinafter abbreviated as "WAITRQ terminal") of the D-RAM controller in the CPU unit 1.
To the D-RAM read cycle.
A timer 6 is provided for instructing to insert a state. The reset terminal of the timer 6 is connected to the output terminal of the AND gate 5, and is reset when the output level of the AND gate 5 becomes “H” (that is, reset at the last refresh operation), and then a new time measurement is performed. start. When there is no next reset input for 15 .mu.sec (that is, the next refresh operation is not performed), the "H" level TO signal is output and stopped. The TO signal is input to the WAITRQ of the memory controller in the CPU unit (when the input signal level of this terminal is "H", one wait state period is inserted in the memory read cycle), Request to insert wait state forcibly in the next memory read cycle. In response to that, D-RA
The M controller is ready for the next memory read cycle.
By inserting the wait state, the hidden refresh operation similar to that described in the first embodiment is added.

【0035】なお、本実施例でタイマの所定時間を15
μsecとしたのは、例えば、対象とするD−RAMの
リフレッシュに関する規格が、256リフレッシュ/4
msec(4msec内に256回以上リフレッシュが
必要)であって、この規格にしたがって4msec内に
256回等間隔でリフレシュする場合、4ms/256
= 15.6μsec以内に1回以上のリフレッシュ
を行なう必要があるからであり、信号遅れ等の各種ロス
タイムを0.6μsecとすると、タイマの所定時間は
15μsecとなるからである。つまり、15.6μs
ecの間に、一度もウェイト・ステイトを含むメモリ・
リード・サイクルが発生しない電子装置の場合にも、本
実施例によれば強制的にウエイト・ステイトを要求して
D−RAMのリフレッシュが行えることとなる。
In this embodiment, the predetermined time of the timer is set to 15
μsec is defined as, for example, the standard for refreshing the target D-RAM is 256 refresh / 4.
In the case of msec (refreshing is required at least 256 times within 4 msec) and refreshing is performed at regular intervals of 256 times within 4 msec according to this standard, 4 ms / 256
This is because it is necessary to perform refreshing once or more within 15.6 μsec, and when various loss times such as signal delay are set to 0.6 μsec, the predetermined time of the timer becomes 15 μsec. That is, 15.6 μs
During ec, memory memory including wait state even once
Even in the case of an electronic device in which no read cycle occurs, according to the present embodiment, the wait state can be forcibly requested and the D-RAM can be refreshed.

【0036】なお、本実施例では、追加するリフレッシ
ュ動作として、ヒドウン・リフレッシュ方式を採用した
が、CASビフォアRAS・リフレッシュ等の他のリフ
レッシュ方式を採用してもよいことは、言うまでもな
い。
In this embodiment, the hidden refresh method is adopted as the refresh operation to be added, but it goes without saying that another refresh method such as CAS before RAS refresh may be adopted.

【0037】次に、本発明の第3の実施例について説明
する。
Next, a third embodiment of the present invention will be described.

【0038】図4は、本発明の第3の実施例の回路構成
を示すブロック図である。図4において、図1の本発明
の第1の実施例と同一の構成要素には同一の番号を付
し、その説明を省略する。
FIG. 4 is a block diagram showing the circuit configuration of the third embodiment of the present invention. 4, the same components as those of the first embodiment of the present invention shown in FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted.

【0039】本実施例のD−RAMリフレッシュ制御装
置3には、予め設定した時間(3.7msec)内の計
時動作を繰り返すタイマ7と、アンドゲート5の検出し
たCPUのウエイト・ステイトを含むD−RAMのリー
ドサイクルの回数を計数し、該計数値が所定の値(25
6)に達したときそのことを示す信号を出力するカウン
タ8と、前記タイマ7の前記設定時間の経過時に前記カ
ウンタ8の計数値を判別し、該計数値が前記所定の値に
達していないときは、前記タイマ7の計時動作を停止さ
せる信号を前記タイマに供給するとともに、CPUのD
−RAMに対するリード・サイクルにウエイト・ステイ
トを挿入することを指示するための信号を出力するD−
フリップ・フロップ回路9が設けられている。
The D-RAM refresh control device 3 of the present embodiment includes a timer 7 that repeats a timing operation within a preset time (3.7 msec) and a D-RAM including a wait state of the CPU detected by the AND gate 5. -The number of RAM read cycles is counted, and the counted value is a predetermined value (25
6) When the counter 8 outputs a signal indicating that when it reaches 6) and the count value of the counter 8 when the set time of the timer 7 has elapsed, the count value does not reach the predetermined value. In this case, a signal for stopping the time counting operation of the timer 7 is supplied to the timer and
-D- which outputs a signal for instructing to insert a wait state in the read cycle for RAM-
A flip-flop circuit 9 is provided.

【0040】カウンタ8の計数端子CKは、アンドゲー
ト5の出力端子に接続されており、該カウンタ8が所定
の計数値を計数するまでは“H”レベルの信号を出力
し、所定値まで計数した後は“L”レベルの信号を出力
する出力端子COは、D−フリップ・フロップ回路9の
D入力端子及び“L”レベル信号でクリアされるクリア
端子(CLR端子)に接続されている。D−フリップ・
フロップ回路9のQ出力端子は、タイマ7のイネーブル
(EN)端子(該EN端子の入力信号が“L”レベルの
ときタイマ7がその計時動作を行い、“H”レベルのと
きタイマ7は“H”レベルとなる直前の状態を維持す
る)及びCPUユニット1のWAITRQ端子に接続さ
れている。タイマ7のTO出力端子はカウンタ8のリセ
ット(RES)端子及びD−フリップ・フロップ回路9
のクロック(CK)端子に接続されている。
The counting terminal CK of the counter 8 is connected to the output terminal of the AND gate 5, and outputs an "H" level signal until the counter 8 counts a predetermined count value and counts up to a predetermined value. After that, the output terminal CO that outputs a signal of "L" level is connected to the D input terminal of the D-flip-flop circuit 9 and the clear terminal (CLR terminal) that is cleared by the "L" level signal. D-flip
The Q output terminal of the flop circuit 9 is an enable (EN) terminal of the timer 7 (when the input signal of the EN terminal is at "L" level, the timer 7 performs its time counting operation, and when it is at "H" level, the timer 7 is set to " It is connected to the WAITRQ terminal of the CPU unit 1 while maintaining the state immediately before it becomes H ″ level). The TO output terminal of the timer 7 is the reset (RES) terminal of the counter 8 and the D-flip-flop circuit 9
Is connected to the clock (CK) terminal.

【0041】次に、本実施例の動作を説明する。Next, the operation of this embodiment will be described.

【0042】タイマ7は、EN端子の入力信号レベルが
“L”レベルのとき予め設定した3.7msec間連続
的に計時し、3.7msecの計時が完了するごとにT
O端子に正のパルス信号であるTO信号を出力する。E
N端子の入力信号が“H”レベルのときは、該信号が
“H”レベルとなる直前の状態を維持する。
The timer 7 continuously measures time for a preset 3.7 msec when the input signal level of the EN terminal is at "L" level, and T is counted every time the time of 3.7 msec is completed.
A TO signal which is a positive pulse signal is output to the O terminal. E
When the input signal of the N terminal is at "H" level, the state immediately before the signal becomes "H" level is maintained.

【0043】カウンタ8は、アンドゲート5の出力信号
が“H”レベルとなり、CPUがウエイト・ステイトを
含むリードサイクルを実行する度に該出力信号の立ち上
がりエッジを計数し、タイマ7のTO信号の立ち下がり
エッジでリセットされる。その後、アンドゲート5から
の出力信号で再度計数動作を開始し、256まで計数す
るとCO端子の信号レベルを“L”レベルとしたまま次
のTO信号の立ち下がりエッジが入力されるまで計数動
作を停止する。
The counter 8 counts the rising edge of the output signal of the AND gate 5 every time when the output signal of the AND gate 5 becomes "H" level and the CPU executes the read cycle including the wait state, and the TO signal of the timer 7 is output. Reset on falling edge. After that, the counting operation is started again by the output signal from the AND gate 5, and when counting up to 256, the counting operation is continued until the falling edge of the next TO signal is input while keeping the signal level of the CO terminal at the “L” level. Stop.

【0044】D−フリップ・フロップ回路9は、タイマ
7の各計時完了時に出力されるTO信号の立ち上がりエ
ッジで、カウンタ8のCO端子の出力信号をサンプリン
グする。
The D-flip-flop circuit 9 samples the output signal from the CO terminal of the counter 8 at the rising edge of the TO signal output when each timer 7 completes timing.

【0045】CPUユニット1,メモリユニット2,ア
ンドゲート5及びナンドゲート4は、前記実施例1とま
ったく同じ動作をし、必要なリフレッシュ動作を実行し
ている。そして、上記タイマ7,カウンタ8及びD−フ
リップ・フロップ回路9は、そのリフレッシュ動作の実
行状況を監視・制御する。すなわち、タイマ7が3.7
msec毎に出力するTO信号で、その3.7msec
の間に実行されたリフレッシュの回数をカウントしてい
るカウンタ8のCO端子の出力信号をD−フリップ・フ
ロップ回路9によりサンプリングすることによって、設
定された時間内のリフレッシュ回数をチェックする。
The CPU unit 1, the memory unit 2, the AND gate 5 and the NAND gate 4 perform exactly the same operation as in the first embodiment, and execute the necessary refresh operation. Then, the timer 7, the counter 8 and the D-flip-flop circuit 9 monitor and control the execution status of the refresh operation. That is, the timer 7 is 3.7
TO signal output every msec, 3.7 msec
The output signal from the CO terminal of the counter 8 which counts the number of refreshes executed during the period is sampled by the D-flip-flop circuit 9 to check the number of refreshes within the set time.

【0046】もし、256回以上のリフレッシュが行わ
れていれば、D−RAMの規格を既に満足しているの
で、カウンタ8のCO端子の出力信号レベルが“L”レ
ベルとなり、該出力信号がD−フリップ・フロップ回路
9のCLR端子に入力され、D−フリップ・フロップ回
路9をクリアし(Q端子の出力信号レベルを“L”レベ
ルとする)、CPUユニット1のWAITRQ端子の信
号レベルを“L”レベルとすることにより、CPUにウ
エイト・サイクルを要求しない。
If refresh is performed 256 times or more, the D-RAM standard has already been satisfied, so that the output signal level of the CO terminal of the counter 8 becomes "L" level, and the output signal is The signal is input to the CLR terminal of the D-flip-flop circuit 9, clears the D-flip-flop circuit 9 (sets the output signal level of the Q terminal to "L" level), and changes the signal level of the WAITRQ terminal of the CPU unit 1. By setting it to the "L" level, the CPU does not request a wait cycle.

【0047】逆に、もし、3.7msecの間に255
回以下のリフレッシュしか行なっていなかった場合に
は、カウンタ8のCO端子の信号レベルは“H”であ
り、それがD−フリップ・フロップ回路9でサンプリン
グされ、D−フリップ・フロップ回路9のQ端子の出力
信号レベルが“H”レベルとなり、CPUユニット1の
WAITRQ端子の信号レベルが“H”となって、その
後のメモリ・リード・サイクルに強制的にウェイト・ス
テイトを挿入するようにCPUに要求し、それにより、
ヒドゥン・リフレッシュを追加させる。
On the contrary, if 3.7 msec.
When only refreshing is performed less than or equal to the number of times, the signal level at the CO terminal of the counter 8 is "H", which is sampled by the D-flip-flop circuit 9 and Q-valued by the D-flip-flop circuit 9. The output signal level of the terminal becomes "H" level, the signal level of the WAIRQQ terminal of the CPU unit 1 becomes "H", and the CPU is forced to insert the wait state in the subsequent memory read cycle. Request and thereby
Add hidden refresh.

【0048】この要求は、カウンタ8が256を計数
し、CO端子の信号が“L”レベルとなり、D−フリッ
プ・フロップ回路9がクリアされるまで維持される。つ
まり、256回に満たない回数分(予め定められた値と
カウンタ8の計数値の差の回数分)のリフレッシュをま
とめて追加することになる。
This request is maintained until the counter 8 counts 256, the signal at the CO terminal becomes "L" level, and the D-flip-flop circuit 9 is cleared. That is, the refreshes of less than 256 times (the number of times of the difference between the predetermined value and the count value of the counter 8) are collectively added.

【0049】このようにして、4msec内に必ず25
6回以上のリフレッシュを行うことができる。
In this way, it is always 25 within 4 msec.
You can refresh 6 times or more.

【0050】本実施例は、長時間(15.6μsec以
上3.7msec以下)メモリ・リード・サイクルが実
行されない場合がある(例えば、Block転送モード
のDMAを使用するような)システムでも、設定された
時間内に所定回数のリフレッシュ動作を必ず行うので、
実用上どんなシステムにでも本発明を採用できる。
This embodiment is set even in a system in which a memory read cycle may not be executed for a long time (15.6 μsec or more and 3.7 msec or less) (for example, when using DMA in Block transfer mode). Since a certain number of refresh operations are always performed within the specified time,
The present invention can be applied to virtually any system.

【0051】次に、本発明の第4の実施例について説明
する。
Next, a fourth embodiment of the present invention will be described.

【0052】図5は、本発明の第4の実施例の回路構成
を示すブロック図である。図5において、図4の本発明
の第3の実施例と同一の構成要素には同一の番号を付
し、その説明を省略する。
FIG. 5 is a block diagram showing the circuit configuration of the fourth embodiment of the present invention. 5, the same components as those of the third embodiment of the present invention shown in FIG. 4 are designated by the same reference numerals, and the description thereof will be omitted.

【0053】本実施例においては、アンドゲート5’に
イネーブル端子ENが設けられており、該イネーブル端
子ENはカウンタ8のCO端子に接続されている。アン
ドゲート5’はイネーブル端子ENの入力信号レベルが
“L”レベルであるときは、出力信号レベルが常に
“L”レベルに保たれる。
In this embodiment, the AND gate 5'is provided with the enable terminal EN, and the enable terminal EN is connected to the CO terminal of the counter 8. The output signal level of the AND gate 5'is always kept at "L" level when the input signal level of the enable terminal EN is "L" level.

【0054】このように構成することにより、本実施例
においては、カウンタ8が所定回のリフレッシュ動作を
計数し、カウンタ8のCO端子の出力信号レベルが
“L”レベルとなると、すなわち3.7msecに満た
ないうちに256回のリフレッシュ動作を終えてしまう
と、アンドゲート5’のEN入力端子の信号レベルが
“L”レベルとなるため、アンドゲート5’の出力端子
の信号レベルは“L”レベルに保たれ、それ以後のリフ
レッシュ動作が禁止される。そして、この状態はタイマ
7が予め設定した値(3.7msec)を計時し、その
結果出力されるTO信号により、カウンタ8がリセット
され、CO端子の信号レベルが“H”レベルとなるまで
維持される。
With this configuration, in this embodiment, when the counter 8 counts a predetermined number of refresh operations and the output signal level of the CO terminal of the counter 8 becomes "L" level, that is, 3.7 msec. If the refresh operation is completed 256 times before the time is less than, the signal level of the EN input terminal of the AND gate 5 ′ becomes “L” level, and the signal level of the output terminal of the AND gate 5 ′ becomes “L”. It is kept at the level and the refresh operation thereafter is prohibited. This state is maintained until the timer 7 measures a preset value (3.7 msec), the TO signal output as a result resets the counter 8, and the signal level at the CO terminal becomes "H" level. To be done.

【0055】以上の動作により、本実施例では、3.7
msec〜4.0msec毎に、ちょうど256回のリ
フレッシュを行なうようになる。これにより、D−RA
Mのリフレッシュに関する規格で規定された必要最小限
のリフレッシュを行い、無駄なリフレッシュが行なわれ
るのを防ぎ、消費電力を節約することができる。
With the above operation, in the present embodiment, 3.7.
Every msec to 4.0 msec, the refresh is performed exactly 256 times. As a result, D-RA
It is possible to perform the minimum necessary refresh prescribed by the standard regarding the refresh of M, prevent unnecessary refresh, and save power consumption.

【0056】[0056]

【発明の効果】本発明のD−RAMリフレッシュ制御装
置においては、CPUのメモリ・リードサイクル中のウ
エイト・ステイトを検出し、そのリードサイクル中にヒ
ドゥン・リフレッシュを行なうので、CPUサイクルの
中断をすることなしに、すなわち、CPUの動作効率を
落すことなしに、D−RAMのリフレッシュが行なえ、
かつ簡単な回路構成で上述の機能が実現できる。
In the D-RAM refresh control device of the present invention, the wait state is detected during the memory read cycle of the CPU, and the hidden refresh is performed during the read cycle, so that the CPU cycle is interrupted. D-RAM can be refreshed without sacrificing the efficiency of the CPU.
Moreover, the above-described functions can be realized with a simple circuit configuration.

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

【図1】本発明の第1の実施例の構成を示すブロック図
である。
FIG. 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】図1の実施例の各信号のタイミングチャートで
ある。
FIG. 2 is a timing chart of each signal in the embodiment of FIG.

【図3】本発明の第2の実施例の構成を示すブロック図
である。
FIG. 3 is a block diagram showing a configuration of a second exemplary embodiment of the present invention.

【図4】本発明の第3の実施例の構成を示すブロック図
である。
FIG. 4 is a block diagram showing a configuration of a third exemplary embodiment of the present invention.

【図5】本発明の第4の実施例の構成を示すブロック図
である。
FIG. 5 is a block diagram showing a configuration of a fourth exemplary embodiment of the present invention.

【図6】従来のD−RAMのアクセス制御の回路構成例
を示す回路図である。
FIG. 6 is a circuit diagram showing a circuit configuration example of access control of a conventional D-RAM.

【図7】図6に示す回路の各信号のタイミングチャート
である。
FIG. 7 is a timing chart of each signal of the circuit shown in FIG.

【図8】図6に示す回路の各信号のタイミングチャート
である。
8 is a timing chart of each signal of the circuit shown in FIG.

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

1 CPUユニット 2 メモリユニット 3 D−RAMリフレッシュ制御装置 4 ナンドゲート 5 アンドゲート 6,7 タイマ 8 カウンタ 9 D−フリップ・フロップ回路 1 CPU unit 2 Memory unit 3 D-RAM refresh controller 4 NAND gate 5 AND gate 6,7 Timer 8 Counter 9 D-flip-flop circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 CPUのD−RAMに対するリード・サ
イクル中のウエイト・ステイトを検出する検出手段と、
該検出手段により検出された前記CPUの前記ウエイト
・ステイト中の所定の期間、該CPUにより制御される
D−RAMコントローラから前記D−RAMへ供給され
るRAS信号をノン・アクティブ状態とするRAS信号
制御手段とを設けたことを特徴とするD−RAMリフレ
ッシュ制御装置。
1. A detection means for detecting a wait state during a read cycle of a CPU for a D-RAM,
A RAS signal that makes the RAS signal supplied from the D-RAM controller controlled by the CPU to the D-RAM non-active for a predetermined period during the wait state of the CPU detected by the detecting means. A D-RAM refresh control device provided with a control means.
【請求項2】 前記検出手段が前記CPUの前記ウエイ
ト・ステイト状態を検出した後計時動作を開始し、所定
の時間を計時するとリフレッシュを追加するための信号
を出力するタイマを設けた請求項1記載のD−RAMリ
フレッシュ制御装置。
2. A timer for outputting a signal for adding refresh when the detecting means starts a time counting operation after detecting the wait state of the CPU and measures a predetermined time. The described D-RAM refresh controller.
【請求項3】 設定された時間内の計時動作を繰り返す
タイマと、前記検出手段の検出した前記ウエイト・ステ
イトを含むD−RAMのリードサイクルの回数を計数
し、該計数値が所定の値に達したときそのことを示す信
号を出力するカウンタと、前記タイマの前記設定時間の
経過時に前記カウンタの計数値を判別し、該計数値が前
記所定の値に達していないときは、前記タイマの計時動
作を停止させる信号を前記タイマに供給するとともに、
リフレッシュを追加するための信号を出力する判別手段
とを設けた請求項1記載のD−RAMリフレッシュ制御
装置。
3. A timer that repeats a time counting operation within a set time, and the number of read cycles of the D-RAM including the wait state detected by the detecting means is counted, and the counted value becomes a predetermined value. When the count value of the counter is discriminated when the preset time of the timer has elapsed and the counter that outputs a signal indicating that when the count value has not reached the predetermined value, the count value of the timer While supplying a signal to the timer to stop the timekeeping operation,
The D-RAM refresh control device according to claim 1, further comprising: a determination unit that outputs a signal for adding refresh.
【請求項4】 設定された時間内の計時動作を繰り返す
タイマと、前記検出手段の検出した前記ウエイト・ステ
イトを含むD−RAMのリードサイクルの回数を計数す
るカウンタと、前記タイマの前記設定時間の経過以前に
前記カウンタの計数値が前記所定の値に達したときに、
この時点から前記タイマの設定時間内リフレッシュを禁
止する禁止手段を設けた請求項1記載のD−RAMリフ
レッシュ制御装置。
4. A timer that repeats a time counting operation within a set time, a counter that counts the number of D-RAM read cycles including the wait state detected by the detecting means, and the set time of the timer. When the count value of the counter reaches the predetermined value before the passage of
2. The D-RAM refresh control device according to claim 1, further comprising a prohibition unit that prohibits refreshing within a set time of the timer from this point.
JP3295064A 1991-10-15 1991-10-15 D-ram refresh controller Pending JPH05109270A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3295064A JPH05109270A (en) 1991-10-15 1991-10-15 D-ram refresh controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3295064A JPH05109270A (en) 1991-10-15 1991-10-15 D-ram refresh controller

Publications (1)

Publication Number Publication Date
JPH05109270A true JPH05109270A (en) 1993-04-30

Family

ID=17815852

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3295064A Pending JPH05109270A (en) 1991-10-15 1991-10-15 D-ram refresh controller

Country Status (1)

Country Link
JP (1) JPH05109270A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5745914A (en) * 1996-02-09 1998-04-28 International Business Machines Corporation Technique for converting system signals from one address configuration to a different address configuration

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5745914A (en) * 1996-02-09 1998-04-28 International Business Machines Corporation Technique for converting system signals from one address configuration to a different address configuration

Similar Documents

Publication Publication Date Title
US6073223A (en) Memory controller and method for intermittently activating and idling a clock signal for a synchronous memory
US6334167B1 (en) System and method for memory self-timed refresh for reduced power consumption
US5418920A (en) Refresh control method and system including request and refresh counters and priority arbitration circuitry
JP3633998B2 (en) Computer system
TW200921671A (en) Memory control device and semiconductor processing apparatus
JPH04141886A (en) Micro computer
US6115767A (en) Apparatus and method of partially transferring data through bus and bus master control device
US6112306A (en) Self-synchronizing method and apparatus for exiting dynamic random access memory from a low power state
US7181605B2 (en) Deterministic shut down of memory devices in response to a system warm reset
US5680591A (en) Method and apparatus for monitoring a row address strobe signal in a graphics controller
JPH05109270A (en) D-ram refresh controller
EP0794497A2 (en) Memory refresh control method and apparatus
JP3939858B2 (en) Synchronous DRAM access method, interface circuit, and semiconductor integrated circuit device
US5557577A (en) System and method for performing wake-up operations to a memory
JPH09297990A (en) Memory refresh control method and memory refresh controller
JP3016812B2 (en) Wait cycle controller
JP3093374B2 (en) Interrupt controller
JPH117763A (en) Method for refresh control to dram and circuit therefor
JPH04243087A (en) Refresh device of random access memory and computer using this device
JP2002207541A (en) Microcomputer and data processor
US6016551A (en) Method and apparatus for masking and unmasking a clock signal in an integrated circuit
JPH02177081A (en) Refresh controller
JPH11191289A (en) Memory controller
JPH10302460A (en) Microcontroller
JPH0561762A (en) Memory controller