JPH10106259A - Memory controller - Google Patents

Memory controller

Info

Publication number
JPH10106259A
JPH10106259A JP8254893A JP25489396A JPH10106259A JP H10106259 A JPH10106259 A JP H10106259A JP 8254893 A JP8254893 A JP 8254893A JP 25489396 A JP25489396 A JP 25489396A JP H10106259 A JPH10106259 A JP H10106259A
Authority
JP
Japan
Prior art keywords
memory
refresh
access
refresh operation
circuit
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
JP8254893A
Other languages
Japanese (ja)
Inventor
Kazuaki Hachisu
和明 蜂須
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 Gunma Ltd
Original Assignee
NEC Gunma 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 NEC Gunma Ltd filed Critical NEC Gunma Ltd
Priority to JP8254893A priority Critical patent/JPH10106259A/en
Publication of JPH10106259A publication Critical patent/JPH10106259A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dram (AREA)

Abstract

PROBLEM TO BE SOLVED: To decrease the number of times of interruption of access from a CPU to a memory by refresh operation. SOLUTION: An I/O monitor circuit 2 monitors operation of a CPU bus 10 and delivers an I/O access signal 11 to a memory 8 at the time other than accessing time and then a refresh control circuit 5 performs refeshing operation by controlling a memory control bus 15. When the memory 8 is accessed continuously and refresh operation through the I/O access signal 11 is interrupted, a timer circuit 9 performs minimum necessary refresh operation. According to the arrangement, efficiency of access from the CPU 1 to the memory 8 can be enhanced even when continuous I/O access is followed by continuous memory access.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、リフレシュ動作の
必要なメモリ(DRAM)を使用したコンピュータ装置
のメモリ制御装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a memory control device of a computer device using a memory (DRAM) requiring a refresh operation.

【0002】[0002]

【従来の技術】従来のこの種のメモリ制御装置として
は、タイマーにより一定間隔でリフレシュ動作を行う回
路が古くから知られているが、この周知の回路にI−O
アクセスやROMアクセス等のメモリ以外のアクセス時
にリフレシュ動作を行い、CPUからメモリへのアクセ
ス効率を上げようとした技術が、特開平4−13207
8や特開平5−174574に記載されている。
2. Description of the Related Art As a conventional memory control device of this type, a circuit for performing a refresh operation at regular intervals by a timer has been known for a long time.
Japanese Patent Laid-Open No. 4-13207 discloses a technique in which a refresh operation is performed at the time of access to a memory other than a memory such as an access or a ROM access to increase the efficiency of access from the CPU to the memory.
8 and JP-A-5-174574.

【0003】図5は、上記周知の技術にI/Oアクセス
時のリフレシュ動作を追加した上記公報に記載されてい
る技術を説明する為のブロック図である。
FIG. 5 is a block diagram for explaining the technique described in the above-mentioned publication in which a refresh operation at the time of I / O access is added to the above-mentioned known technique.

【0004】CPU1がメモリ8に対してアクセスする
為には、CPU1は、CPUバス10にメモリ8に対す
るアクセスであるという信号を出力する。この信号を入
力した制御回路3は、メモリ制御バス15に対してメモ
リ8にアクセスする為の信号を出力する。このことによ
り、CPU1がメモリ8に対してアクセスできるように
なる。
In order for the CPU 1 to access the memory 8, the CPU 1 outputs a signal to the CPU bus 10 that the access is to the memory 8. The control circuit 3 which has received this signal outputs a signal for accessing the memory 8 to the memory control bus 15. This allows the CPU 1 to access the memory 8.

【0005】また、メモリ8はリフレシュの必要なメモ
リである為、メモリ8は、リフレシュ動作が必要にな
る。このリフレシュ動作は、タイマー回路9により、一
定時間毎にリフレシュ動作を行うことにより実現してい
る。タイマー回路9から出力するタイマー信号19を入
力したリフレッシュ制御回路50は、メモリ制御回路3
に対してバス要求信号13を出力し、メモリ制御バス1
5の明け渡しを要求する。バス要求信号13を入力した
メモリ制御回路3は、メモリ8に対するアクセスをサイ
クルの切れ目で中断し、バス許可信号12を出力する。
このバス許可信号12を入力したリフレッシュ制御回路
50は、メモリ制御バス15に対してリフレッシュ動作
の制御信号を出力し、この信号を入力したメモリ8はリ
フレッシュ動作を行う。
[0005] Further, since the memory 8 is a memory that requires refreshing, the memory 8 requires a refresh operation. This refresh operation is realized by the timer circuit 9 performing the refresh operation at regular intervals. The refresh control circuit 50 to which the timer signal 19 output from the timer circuit 9 is input is connected to the memory control circuit 3
Outputs a bus request signal 13 to the memory control bus 1
Request a surrender of 5. The memory control circuit 3 to which the bus request signal 13 has been input interrupts access to the memory 8 at a break between cycles, and outputs a bus permission signal 12.
The refresh control circuit 50 that has received the bus permission signal 12 outputs a refresh operation control signal to the memory control bus 15, and the memory 8 that has received this signal performs the refresh operation.

【0006】また、CPU1の動作をCPUバス10の
動作として監視しているI/O監視回路2がCPU1が
メモリ8に対するアクセスではないということを監視
し、I/Oアクセス信号11を出力する。I/Oアクセ
ス信号11を入力したリフレッシュ制御回路50は、バ
ス要求信号13とバス許可信号12の信号のやりとりで
メモリ制御回路3がメモリ8に対してアクセス中でない
ことを確認し、メモリ8に対してリフレッシュ動作を行
うわけであるが、I/O監視回路2によってCPU1か
らメモリ8に対するアクセスではないことは確認済みで
ある為、リフレッシュ制御回路50は無条件でメモリ8
に対するリフレッシュ動作ができることになる。
An I / O monitoring circuit 2 monitoring the operation of the CPU 1 as an operation of the CPU bus 10 monitors that the CPU 1 is not accessing the memory 8 and outputs an I / O access signal 11. The refresh control circuit 50 that has received the I / O access signal 11 confirms that the memory control circuit 3 is not accessing the memory 8 by exchanging the bus request signal 13 and the bus permission signal 12, and The refresh operation is performed on the memory 8 since the I / O monitoring circuit 2 has confirmed that the access is not from the CPU 1 to the memory 8.
Can be refreshed.

【0007】さらに、CPUバス10の監視によるリフ
レッシュ動作が行われた場合には、タイマー回路9によ
りリフレッシュ動作が不要になる為、タイマー回路9か
ら出力されるタイマー信号19をリフレッシュ制御回路
5が入力してもリフレッシュ制御回路50は、メモリ8
に対するリフレッシュ動作は行わなくなる。
Further, when a refresh operation is performed by monitoring the CPU bus 10, the refresh operation is not required by the timer circuit 9, so that the timer signal 19 output from the timer circuit 9 is input to the refresh control circuit 5. Even if the refresh control circuit 50
Is not performed.

【0008】ただし、本装置では、タイマー回路9によ
るリフレッシュ動作が行われなくなるのは、CPUバス
10の監視によるリフレッシュ動作が行われた直後の1
回のみである。
However, in the present apparatus, the reason why the refresh operation by the timer circuit 9 is not performed is that immediately after the refresh operation by monitoring the CPU bus 10 is performed.
Only times.

【0009】[0009]

【発明が解決しようとする課題】上述した従来のメモリ
制御装置では、CPUからメモリへの連続したアクセス
を行うと、CPUからメモリへのアクセスを中断させな
い為に追加したI/O監視回路によるリフレッシュ動作
が行われなくなるため、CPUからメモリに対する連続
したアクセスが行われた場合には、結局、タイマー回路
によるリフレッシュのみが行われることになり、CPU
からメモリに対するアクセスを中断させ、メモリに対す
るアクセス性能が低下するという問題がある。
In the above-mentioned conventional memory control device, when a continuous access from the CPU to the memory is performed, the refresh by the I / O monitoring circuit added so as not to interrupt the access from the CPU to the memory. Since the operation is not performed, if the CPU continuously accesses the memory, only the refreshment by the timer circuit is performed, and the
In this case, there is a problem that the access to the memory is interrupted and the access performance to the memory is reduced.

【0010】本発明では、タイマー回路によるリフレッ
シュ動作の発生する回数を減らすことにより、CPUか
らメモリへのアクセスが中断される回数を減らし、CP
Uからメモリへのアクセスを高速化することができるメ
モリ制御装置を提供することを目的とする。
In the present invention, by reducing the number of times that the refresh operation is performed by the timer circuit, the number of times that the access from the CPU to the memory is interrupted is reduced.
It is an object of the present invention to provide a memory control device capable of speeding up access from U to a memory.

【0011】[0011]

【課題を解決するための手段】本発明の装置は、一定時
間毎にメモリのリフレシュ動作を強制的に行うメモリ制
御装置において、前記メモリへのアクセス以外の動作を
契機としてリフレシュ動作を行わせ、その回数分だけ前
記強制的なリフレシュ動作を省略することを特徴とす
る。
According to the present invention, there is provided a memory control device for forcibly performing a refresh operation of a memory at regular time intervals, wherein the refresh operation is performed by an operation other than the access to the memory. The forced refresh operation is omitted by the number of times.

【0012】より具体的には、本発明の装置は、一定時
間ごとにメモリのリフレッシュ動作を強制的に行うメモ
リ制御装置において、メモリにとって最低限必要なリフ
レシュ動作の契機となるタイミングを作成するタイマー
回路と、該タイミングの発生した回数をカウントするタ
イマーカウント回路と、実際に行われたリフレシュ動作
の回数をカウントするリフレシュカウンタ回路と、前記
2つのカウンタ回路のカウント数を比較する比較回路と
を設け、前記タイマーカウンタ回路のカウント数の方が
大きい場合のみ前記強制的なリフレシュ動作の要求を行
うことを特徴とする。
More specifically, the device of the present invention is a memory control device for forcibly performing a refresh operation of a memory at fixed time intervals. In the memory control device, a timer for generating a timing which triggers a minimum refresh operation required for the memory is provided. A circuit, a timer count circuit for counting the number of times the timing has occurred, a refresh counter circuit for counting the number of refresh operations actually performed, and a comparison circuit for comparing the count numbers of the two counter circuits. The forcible refresh operation is requested only when the count number of the timer counter circuit is larger.

【0013】本発明においては、最低限必要なリフレッ
シュのタイミングは、タイマー回路が作り出すが、この
タイミングをタイマーカウンタ回路がカウントし、実際
に発生したリフレッシュ動作の回数をカウントしたリフ
レッシュカウンタ回路のカウント値と比較回路が比較す
る。そして、リフレッシュカウンタ回路のカウント値よ
りもタイマーカウンタ回路のカウント値の方が大きくな
った場合に、リフレッシュ要求信号を出力し、タイマー
によるリフレッシュ動作を行うことにより、I/O動作
等を監視する監視回路によるリフレッシュの回数を無駄
なく実際のリフレッシュ動作に使用することができ、タ
イマーによるリフレッシュ動作の回数を減らすことがで
きる。
In the present invention, the minimum required refresh timing is generated by a timer circuit. The timer counter circuit counts this timing, and the count value of the refresh counter circuit that counts the number of refresh operations that have actually occurred. And a comparison circuit. When the count value of the timer counter circuit is larger than the count value of the refresh counter circuit, a refresh request signal is output, and the refresh operation is performed by the timer, thereby monitoring the I / O operation and the like. The number of refresh operations by the circuit can be used for the actual refresh operation without waste, and the number of refresh operations by the timer can be reduced.

【0014】[0014]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して詳細に説明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0015】図1は、本発明の一実施例を示すブロック
図であり、CPU1,I/O監視回路2,メモリ制御回
路3,比較回路4,リフレッシュ制御回路5,タイマー
カウンタ回路6,リフレッシュカウンタ回路7,メモリ
8及びタイマー回路9から成る。
FIG. 1 is a block diagram showing an embodiment of the present invention, which includes a CPU 1, an I / O monitoring circuit 2, a memory control circuit 3, a comparison circuit 4, a refresh control circuit 5, a timer counter circuit 6, and a refresh counter. It comprises a circuit 7, a memory 8, and a timer circuit 9.

【0016】CPU1がメモリ8にアクセスする場合
は、CPU1はCPUバス10にメモリ8に対するアク
セスであることを示す信号を出力する。メモリ制御回路
3は、CPU1バス10にメモリ8に対するアクセスで
ある信号が出力されると、メモリ制御バス15を制御し
て、メモリ8に対してアクセスを行う。このことによ
り、CPU1はメモリ8に対してアクセスを行ったこと
なる。
When the CPU 1 accesses the memory 8, the CPU 1 outputs a signal to the CPU bus 10 indicating that the access is to the memory 8. When a signal indicating access to the memory 8 is output to the CPU 1 bus 10, the memory control circuit 3 controls the memory control bus 15 to access the memory 8. As a result, the CPU 1 has accessed the memory 8.

【0017】メモリ8はリフレッシュ動作の必要なメモ
リである為、CPU1からのアクセスの他に、データを
保持する為に一定時間毎のリフレッシュ動作が必要にな
る。このリフレッシュ動作を行う回路が、リフレッシュ
制御回路5である。リフレッシュ制御回路5は、I/O
アクセス信号11または、リフレッシュ要求信号14の
いずれかの信号が入力されると、メモリ制御回路3に対
してバス要求信号13を出力しメモリ制御バス15の明
け渡しを要求する。バス要求信号13を受け取ったメモ
リ制御回路3は、メモリ8に対してアクセス中でなけれ
ば、直ちにバス許可信号12を出力し、メモリ8に対し
てアクセス中であれば、メモリ8に対するアクセスをサ
イクルの切れ目で中断してからバス許可信号12を出力
する。バス許可信号12を受け取ったリフレッシュ制御
回路5は、メモリ制御バス15にリフレッシュ動作の信
号を出力し、メモリ8のリフレッシュ動作を実行し、リ
フレッシュ信号18をリフレッシュカウンタ回路7に出
力する。
Since the memory 8 is a memory that requires a refresh operation, a refresh operation at regular intervals is required to retain data in addition to access from the CPU 1. The circuit that performs this refresh operation is the refresh control circuit 5. The refresh control circuit 5 has an I / O
When either the access signal 11 or the refresh request signal 14 is input, a bus request signal 13 is output to the memory control circuit 3 to request the memory control bus 15 to surrender. The memory control circuit 3 that has received the bus request signal 13 immediately outputs the bus permission signal 12 if the memory 8 is not being accessed, and cycles the access to the memory 8 if the memory 8 is being accessed. The bus permission signal 12 is output after the interruption at the break. The refresh control circuit 5 that has received the bus permission signal 12 outputs a refresh operation signal to the memory control bus 15, executes a refresh operation of the memory 8, and outputs a refresh signal 18 to the refresh counter circuit 7.

【0018】I/O監視回路2は、CPUバス10の信
号を監視し、CPU1からメモリ8以外のデバイス、例
えばI/OやROM等に対してのアクセスが発生する毎
に、リフレッシュ制御回路5に対してI/Oアクセス信
号11を出力し、メモリ8に対するリフレッシュ動作を
発生させる。この場合のリフレッシュ動作は、I/O監
視回路2がメモリ8に対するアクセスでないことを確認
している為、CPU1からメモリ8に対するアクセスを
中断させることなく、リフレッシュ動作を行うことがで
きる。
The I / O monitoring circuit 2 monitors signals on the CPU bus 10 and each time the CPU 1 accesses a device other than the memory 8, for example, an I / O or a ROM, the refresh control circuit 5. , An I / O access signal 11 is output, and a refresh operation for memory 8 is performed. In the refresh operation in this case, since the I / O monitoring circuit 2 confirms that the access is not to the memory 8, the refresh operation can be performed without interrupting the access to the memory 8 from the CPU 1.

【0019】比較回路4は、メモリ8にとって最低限必
要なリフレッシュの回数を確保する為のタイミングを作
成するタイマー回路9からのタイマー信号19の発生し
た回数をカウントするタイマーカウンタ回路6のタイマ
ーカウンタ値16と、リフレッシュ動作が行われた時に
発生するリフレッシュ信号18の回数をカウントするリ
フレッシュカウンタ回路7のリフレッシュカウンタ値1
7の2つのカウント値を比較して、リフレッシュカウン
タ値17よりもタイマーカウンタ値16の方が大きくな
った場合にリフレッシュ要求信号14を出力し、メモリ
8に対するリフレッシュ動作を発生させる。この場合の
リフレッシュ動作は、独立して動作するタイマー回路9
の発生させるタイミングによってリフレッシュ動作が発
生する為、CPU1からメモリ8へのアクセスを途中で
中断させる可能性がある。
The comparison circuit 4 counts the number of times the timer signal 19 is generated from the timer circuit 9 to generate the timing for securing the minimum required number of refreshes for the memory 8. 16 and the refresh counter value 1 of the refresh counter circuit 7 for counting the number of refresh signals 18 generated when the refresh operation is performed.
By comparing the two count values 7 and 7, when the timer counter value 16 becomes larger than the refresh counter value 17, the refresh request signal 14 is output, and the refresh operation for the memory 8 is performed. In this case, the refresh operation is performed by the timer circuit 9 which operates independently.
Since the refresh operation occurs at the timing of the occurrence of, the access from the CPU 1 to the memory 8 may be interrupted halfway.

【0020】汎用的なメモリにおいて、最低限必要なリ
フレッシュの回数は、16[ms]の間に1024回と
なる為、本発明のリフレッシュカウンタ回路7は、10
23までカウントして動作を停止し、タイマーカウンタ
回路6のタイマーカウンタ値16が1024となった時
点で、強制的にリフレッシュ動作をさせる。この結果に
より、リフレッシュ信号18が入力されることによって
リフレッシュカウンタ値17を0に戻して動作を再開す
る。また、この時、タイマーカウンタ回路6のタイマー
カウンタ値16も0も戻される。このことにより、16
[ms]中に1024回以上のI/Oアクセスが発生し
てしまい、偏ったりリフレッシュ動作のために、リフレ
ッシュ動作が発生しなくなることを防止する。
In a general-purpose memory, the minimum required number of refreshes is 1024 times during 16 [ms].
The operation is stopped after counting to 23, and when the timer counter value 16 of the timer counter circuit 6 becomes 1024, the refresh operation is forcibly performed. As a result, when the refresh signal 18 is input, the refresh counter value 17 is returned to 0, and the operation is restarted. At this time, both the timer counter value 16 of the timer counter circuit 6 and 0 are returned. As a result, 16
This prevents 1024 or more I / O accesses from occurring during [ms], and prevents the refresh operation from occurring due to bias or refresh operation.

【0021】次に本発明の実施例の動作について、図を
参照して詳細に説明する。
Next, the operation of the embodiment of the present invention will be described in detail with reference to the drawings.

【0022】図2は、本実施例のI/Oアクセスにより
リフレッシュ動作を示すタイムチャートである。
FIG. 2 is a time chart showing a refresh operation by I / O access according to this embodiment.

【0023】CPU1がメモリにアクセスを行う時はC
PUバス10上に、メモリアクセスを示す信号が出力さ
れ、メモリ制御バス15に、メモリアクセスを示す信号
を出力することにより、メモリアクセスが行われる。
When the CPU 1 accesses the memory, C
A signal indicating a memory access is output on the PU bus 10, and a signal indicating the memory access is output to the memory control bus 15, whereby the memory access is performed.

【0024】また、CPU1がI/Oアクセスを行う時
はCPUバス10上に、I/Oアクセスを示す信号が出
力され、この信号を検出して出力されるI/Oアクセス
信号11をきっかけとしてメモリ制御バス15にリフレ
ッシュ動作を示す信号が出力されることにより、メモリ
8のリフレッシュ動作が行われる。この時、メモリ制御
バス15の使用権を確認する信号としてバス要求信号1
3が出力されるが、I/Oアクセス中である為、問題な
くバス許可信号12が発生し、リフレッシュ動作を行う
ことができる。
When the CPU 1 makes an I / O access, a signal indicating the I / O access is output on the CPU bus 10, and the I / O access signal 11 output by detecting this signal is used as a trigger. When a signal indicating the refresh operation is output to the memory control bus 15, the refresh operation of the memory 8 is performed. At this time, the bus request signal 1 is used as a signal for confirming the right to use the memory control bus 15.
3 is output, but since the I / O access is being performed, the bus permission signal 12 is generated without any problem, and the refresh operation can be performed.

【0025】さらに、I/Oアクセス毎に実行されるリ
フレッシュ動作により、リフレッシュ信号18が発生
し、リフレッシュカウンタ値を増加させる。
Further, a refresh signal 18 is generated by a refresh operation executed for each I / O access, and the refresh counter value is increased.

【0026】図3は、実施例のタイマーによるリフレッ
シュ動作を示すタイムチャートである。
FIG. 3 is a time chart showing the refresh operation by the timer of the embodiment.

【0027】タイマー信号19が入力されると、タイマ
ーカウンタ値16が増加し、リフレッシュカウンタ値1
7と比較してタイマーカウンタ値16の方が大きくなれ
ば、リフレッシュ要求信号14が出力される。図3で最
初のタイマー信号19が発生した場合は、リフレッシュ
カウンタ値17が「10」に対して、タイマーカウンタ
値16が「11」になっているのでリフレッシュ要求信
号14が発生し、バス要求信号13が出力させる。この
時、CPUバス信号10は、メモリアクセスになってい
ないので、バス許可信号12が直ぐに出力され、リフレ
ッシュ動作が発生する。このリフレッシュ動作により、
リフレッシュ信号が発生し、リフレッシュカウンタ値1
7が「11」に増加する為、タイマーカウンタ値16と
同じ値になるので、リフレッシュ要求信号がなくなる。
また、このリフレッシュ動作中に発生したCPUバス信
号10のメモリアクセスは、リフレッシュ動作でメモリ
制御バス15が使用中である為、リフレッシュ動作が終
了するまで待たされることになる。
When the timer signal 19 is input, the timer counter value 16 increases and the refresh counter value 1
If the timer counter value 16 becomes larger than 7, the refresh request signal 14 is output. In FIG. 3, when the first timer signal 19 is generated, the refresh counter value 17 is "10" and the timer counter value 16 is "11", so that the refresh request signal 14 is generated and the bus request signal is generated. 13 outputs. At this time, since the CPU bus signal 10 is not a memory access, the bus permission signal 12 is immediately output, and a refresh operation occurs. By this refresh operation,
A refresh signal is generated and the refresh counter value 1
Since 7 is increased to “11”, the value becomes the same as the timer counter value 16, so that there is no refresh request signal.
In addition, the memory access of the CPU bus signal 10 generated during the refresh operation has to wait until the refresh operation ends because the memory control bus 15 is being used in the refresh operation.

【0028】次に、2番目のタイマー信号19が発生し
た場合には、タイマーカウンタ値16が「12」になり
リフレッシュカウンタ値17よりも大きくなって、リフ
レッシュ要求信号14が出力され、バス要求信号13も
出力されるが、メモリ制御バス信号15がメモリアクセ
ス状態になっている為、バス許可信号12はメモリへの
アクセスの切れ間まで待たされ発行される。このバス許
可信号12により、メモリ8のリフレッシュ動作が実行
され、リフレッシュ信号によりリフレッシュカウンタ値
17が増加してリフレッシュ動作が終了する。この場合
も、CPUバス10の連続したメモリ8へのアクセスが
中断され、リフレッシュ動作の間、アクセスが待たされ
ることになる。
Next, when the second timer signal 19 is generated, the timer counter value 16 becomes "12" and becomes larger than the refresh counter value 17, so that the refresh request signal 14 is output and the bus request signal 13 is also output, but since the memory control bus signal 15 is in the memory access state, the bus permission signal 12 is issued while waiting until the access to the memory is cut off. The refresh operation of the memory 8 is executed by the bus permission signal 12, and the refresh signal increases the refresh counter value 17 to terminate the refresh operation. Also in this case, the continuous access to the memory 8 of the CPU bus 10 is interrupted, and the access is waited during the refresh operation.

【0029】図4は、本実施例における比較回路4の動
作を示すタイムチャートである。
FIG. 4 is a time chart showing the operation of the comparison circuit 4 in this embodiment.

【0030】図4では、I/Oアクセス信号11が連続
して4回入ることにより、リフレッシュ動作が4回発生
する。このことにより発生するリフレッシュ信号18に
より、リフレッシュカウンタ値17が4回増加し、「1
0」から「14」に変化する。その後、発生するタイマ
ー信号19によりタイマーカウンタ値16が増加してい
くが、タイマー信号19が4回発生するまでは、タイマ
ーカウンタ値16が「10」から「14」に増加する
が、リフレッシュカウンタ値17に比べて大きくならな
い為、リフレッシュ動作は発生しない。次に5回目のタ
イマー信号19が発生した時にタイマーカウンタ値16
が「15」になり、初めてリフレッシュカウンタ値17
の「14」よりも大きくなる為、メモリ8のリフレッシ
ュ動作が発生する。
In FIG. 4, the refresh operation occurs four times due to the input of the I / O access signal 11 four times in succession. Due to the refresh signal 18 generated by this, the refresh counter value 17 is increased four times and “1”
It changes from “0” to “14”. Thereafter, the timer counter value 16 is increased by the generated timer signal 19, but the timer counter value 16 increases from “10” to “14” until the timer signal 19 is generated four times, but the refresh counter value is increased. The refresh operation does not occur because it is not larger than 17. Next, when the fifth timer signal 19 is generated, the timer counter value 16
Becomes “15” and the refresh counter value 17
Therefore, the refresh operation of the memory 8 occurs.

【0031】このようにしてI/Oアクセス信号11の
入った数だけ、タイマー信号19によるメモリ8のリフ
レッシュ動作の回数を減らすことができる。
In this manner, the number of refresh operations of the memory 8 by the timer signal 19 can be reduced by the number of the I / O access signals 11.

【0032】次に、本発明の他の実施例について説明す
る。
Next, another embodiment of the present invention will be described.

【0033】図1に示した実施例では、CPU1からメ
モリ8へのアクセスではないことをCPUバス10のI
/Oアクセス状態を監視することにより実現している
が、これは、同じくCPUバス10上に存在するROM
へのアクセスや、CPUバス10上に存在するリフレッ
シュ動作の必要のないSRAMを使用したキャッシュメ
モリへのアクセスや、CPU1の動作をCPUバス10
の動作状態を監視することでCPU1が動作していない
アイドル状態を検出する等、CPU1からメモリ8への
アクセスでないことを判別できる動作であれば、その動
作を監視することで同様の効果を得ることができる。
In the embodiment shown in FIG. 1, the fact that the access is not from the CPU 1 to the memory 8
This is realized by monitoring the I / O access state.
Access to the cache memory using the SRAM on the CPU bus 10 that does not require a refresh operation, and the operation of the CPU 1
If the operation is such that it is possible to determine that the CPU 1 is not accessing the memory 8 by, for example, detecting an idle state where the CPU 1 is not operating by monitoring the operating state of the CPU 1, the same effect can be obtained by monitoring the operation. be able to.

【0034】さらに、汎用的なメモリの最低限必要なリ
フレッシュの回数は、16[ms]の間に1024回と
なる為、図1の実施例では、リフレッシュカウンタ回路
7は、1023までのカウントで動作を停止すると説明
したが、一般にメモリの最低限必要なリフレッシュの回
数が、T[ms]の間でN回であった場合は、リフレッ
シュカウンタ回路7は、(N−1)回で動作を停止し、
N回目のリフレッシュ動作が発生した時に動作を再開す
ることになる。この時、タイマー回路9が発生させるタ
イマー信号19は、T/N[ms]に1回となる。
Further, since the minimum required number of refreshes of a general-purpose memory is 1024 during 16 [ms], the refresh counter circuit 7 in the embodiment of FIG. It has been described that the operation is stopped. However, when the minimum required number of refreshes of the memory is generally N times during T [ms], the refresh counter circuit 7 performs the operation at (N-1) times. Stop,
The operation will be restarted when the Nth refresh operation occurs. At this time, the timer signal 19 generated by the timer circuit 9 is once every T / N [ms].

【0035】[0035]

【発明の効果】本発明によれば、リフレッシュ動作の発
生した回数をカウントするカウンタ回路の値と、タイマ
ーによって最低限必要なリフレッシュ動作の回数をカウ
ントするカウンタ回路の値を比較回路で比較して、CP
Uからメモリへのアクセス以外で発生したリフレッシュ
動作の回数分だけタイマーによるリフレッシュ動作を省
略する構成としたため、CPUからメモリへのアクセス
を中断する可能性が減り、CPUからメモリへのアクセ
ス効率が上がるという効果がある。
According to the present invention, the value of the counter circuit that counts the number of times the refresh operation has occurred and the value of the counter circuit that counts the minimum number of required refresh operations by the timer are compared by the comparison circuit. , CP
Since the refresh operation by the timer is omitted by the number of times of the refresh operation generated except for the access from the U to the memory, the possibility of interrupting the access from the CPU to the memory is reduced, and the efficiency of the access from the CPU to the memory is increased. This has the effect.

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

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

【図2】図1の実施例におけるI/Oアクセスによるリ
フレッシュ動作を示すタイムチャートである。
FIG. 2 is a time chart showing a refresh operation by I / O access in the embodiment of FIG. 1;

【図3】図1の実施例におけるタイマーによるリフレッ
シュ動作を示すタイムチャートである。
FIG. 3 is a time chart showing a refresh operation by a timer in the embodiment of FIG. 1;

【図4】図1の実施例における比較回路の動作を示すタ
イムチャートである。
FIG. 4 is a time chart illustrating an operation of the comparison circuit in the embodiment of FIG. 1;

【図5】従来技術の一例を示すブロック図である。FIG. 5 is a block diagram showing an example of the related art.

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

1 CPU 2 I/O監視回路 3 メモリ制御回路 4 比較回路 5,50 リフレッシュ制御回路 6 タイマーカウンタ回路 7 リフレッシュカウンタ回路 8 メモリ 9 タイマー回路 10 CPUバス 11 I/Oアクセス信号 12 バス許可信号 13 バス要求信号 14 リフレッシュ要求信号 15 メモリ制御バス 16 タイマーカウンタ値 17 リフレッシュカウンタ値 18 リフレッシュ信号 19 タイマー信号。 DESCRIPTION OF SYMBOLS 1 CPU 2 I / O monitoring circuit 3 Memory control circuit 4 Comparison circuit 5, 50 Refresh control circuit 6 Timer counter circuit 7 Refresh counter circuit 8 Memory 9 Timer circuit 10 CPU bus 11 I / O access signal 12 Bus permission signal 13 Bus request Signal 14 Refresh request signal 15 Memory control bus 16 Timer counter value 17 Refresh counter value 18 Refresh signal 19 Timer signal.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 一定時間毎にメモリのリフレシュ動作を
強制的に行うメモリ制御装置において、 前記メモリへのアクセス以外の動作を契機としてリフレ
シュ動作を行わせ、その回数分だけ前記強制的なリフレ
シュ動作を省略することを特徴とするメモリ制御装置。
1. A memory control device for forcibly performing a refresh operation of a memory at fixed time intervals, wherein the refresh operation is performed in response to an operation other than access to the memory, and the forced refresh operation is performed by the number of times. The memory control device characterized by omitting the above.
【請求項2】 メモリにとって最低限必要なリフレシュ
動作の契機となるタイミングを作成するタイマー回路
と、 該タイミングの発生した回数をカウントするタイマーカ
ウント回路と、 実際に行われたリフレシュ動作の回数をカウントするリ
フレシュカウンタ回路と、 前記2つのカウンタ回路のカウント数を比較する比較回
路とを設け、前記タイマーカウンタ回路のカウント数の
方が大きい場合のみ前記強制的なリフレシュ動作の要求
を行うことを特徴とする請求項1記載のメモリ制御装
置。
2. A timer circuit for generating a timing which triggers a refresh operation at least necessary for a memory, a timer count circuit for counting the number of times the timing has occurred, and counting the number of refresh operations actually performed. A refresh counter circuit that performs the refresh operation, and a comparison circuit that compares the count numbers of the two counter circuits, and requests the forced refresh operation only when the count number of the timer counter circuit is larger. 2. The memory control device according to claim 1, wherein:
【請求項3】 前記メモリへのアクセス以外の動作が、
入出力装置アクセス,ROMへのアクセス,リフレシュ
動作が不要なSRAMへのアクセス又はCPUのアイド
ル状態であることを特徴とする請求項1記載のメモリ制
御装置。
3. An operation other than accessing the memory,
2. The memory control device according to claim 1, wherein the memory control device is an input / output device access, an access to a ROM, an access to an SRAM that does not require a refresh operation, or an idle state of a CPU.
【請求項4】 前記メモリへのアクセス以外の動作であ
るか否かは、CPUバス又はメモリ制御バスを監視する
ことによって検出することを特徴とする請求項1記載の
メモリ制御装置。
4. The memory control device according to claim 1, wherein whether the operation is other than the access to the memory is detected by monitoring a CPU bus or a memory control bus.
【請求項5】 前記メモリへのアクセス以外の動作を契
機とするリフレシュ動作は、該アクセスごとに行われる
ことを特徴とする請求項1記載のメモリ制御装置。
5. The memory control device according to claim 1, wherein a refresh operation triggered by an operation other than an access to the memory is performed for each access.
JP8254893A 1996-09-26 1996-09-26 Memory controller Pending JPH10106259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8254893A JPH10106259A (en) 1996-09-26 1996-09-26 Memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8254893A JPH10106259A (en) 1996-09-26 1996-09-26 Memory controller

Publications (1)

Publication Number Publication Date
JPH10106259A true JPH10106259A (en) 1998-04-24

Family

ID=17271313

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8254893A Pending JPH10106259A (en) 1996-09-26 1996-09-26 Memory controller

Country Status (1)

Country Link
JP (1) JPH10106259A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001184861A (en) * 1999-11-23 2001-07-06 Robert Bosch Gmbh Method for refreshing dram and microcontroller
JP2006314659A (en) * 2005-05-16 2006-11-24 Daiman:Kk Game machine
JP2006314660A (en) * 2005-05-16 2006-11-24 Daiman:Kk Game machine
JP2008522339A (en) * 2004-11-24 2008-06-26 クゥアルコム・インコーポレイテッド Method and system for minimizing the effect of refresh operations on volatile memory performance
JP2009157549A (en) * 2007-12-26 2009-07-16 Yokogawa Electric Corp Sdram refresh control device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001184861A (en) * 1999-11-23 2001-07-06 Robert Bosch Gmbh Method for refreshing dram and microcontroller
JP2008522339A (en) * 2004-11-24 2008-06-26 クゥアルコム・インコーポレイテッド Method and system for minimizing the effect of refresh operations on volatile memory performance
US7930471B2 (en) 2004-11-24 2011-04-19 Qualcomm Incorporated Method and system for minimizing impact of refresh operations on volatile memory performance
US8171211B2 (en) 2004-11-24 2012-05-01 Qualcomm Incorporated Method and system for minimizing impact of refresh operations on volatile memory performance
JP2006314659A (en) * 2005-05-16 2006-11-24 Daiman:Kk Game machine
JP2006314660A (en) * 2005-05-16 2006-11-24 Daiman:Kk Game machine
JP2009157549A (en) * 2007-12-26 2009-07-16 Yokogawa Electric Corp Sdram refresh control device

Similar Documents

Publication Publication Date Title
US5630145A (en) Method and apparatus for reducing power consumption according to bus activity as determined by bus access times
JP4083847B2 (en) Memory refresh method and system
US6378083B1 (en) Watch dog timer device
WO2012113232A1 (en) Method and device for adjusting clock interrupt cycle
JPH10106259A (en) Memory controller
JP2504818B2 (en) Common memory control method in multiprocessor device
JP2001135079A (en) Memory control device
JP2978871B2 (en) Refresh control method
JPH06236683A (en) Memory refresh control circuit
JPH06324957A (en) Bus monitoring device
JPH117763A (en) Method for refresh control to dram and circuit therefor
JP3497478B2 (en) DMA transfer device and data transfer system
JPH05198170A (en) Refresh control circuit
JP2504515B2 (en) Test channel instruction execution control method
JP2613986B2 (en) Information processing device
JP2747258B2 (en) Write buffer busy control method
JPH06259376A (en) Data transfer device
JPH0581169A (en) Bus control system
JPH02307123A (en) Computer
KR100338954B1 (en) Deadlock avoidance apparatus and method in multi-bus computer system
JPH03167633A (en) Control method for interruption program
JPH04362593A (en) Refreshing control system for dram
JPH09297990A (en) Memory refresh control method and memory refresh controller
JPH03181090A (en) Refresh method for dynamic ram
JPH0736820A (en) I/o controller

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19981110