JPH07211067A - Memory controller - Google Patents
Memory controllerInfo
- Publication number
- JPH07211067A JPH07211067A JP6002280A JP228094A JPH07211067A JP H07211067 A JPH07211067 A JP H07211067A JP 6002280 A JP6002280 A JP 6002280A JP 228094 A JP228094 A JP 228094A JP H07211067 A JPH07211067 A JP H07211067A
- Authority
- JP
- Japan
- Prior art keywords
- refresh
- memory
- address
- time
- signal
- 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
Links
Landscapes
- Dram (AREA)
Abstract
(57)【要約】
【目的】一定時間内にアクセスされたメモリセルの行
(ロウ)アドレスで選択されるメモリセルに対してはメ
モリのリフレッシュ動作を省略し、データ処理装置との
アクセス競合を削減する。
【構成】メモリのリフレッシュアドレスをリフレッシュ
アドレスデコーダ8でデコードして得られるリフレッシ
ュメモリ選択信号27と、メモリアクセスの時にCUP
1から出力されるアドレスをロウアドレスデコーダ7で
デコードし、一定時間内にアクセスされたメモリセルの
ロー(行)アドレスに対して、アクセス履歴を保持する
ラッチ素子9から得られるアクセス履歴ビット信号26
とを参照し、リフレッシュ対象となるメモリアドレスに
対してCPUが一定時間内にメモリのアクセス履歴を示
す場合には、リフレッシュを省略するメモリ制御装置の
構成とする。
(57) [Abstract] [Purpose] The memory refresh operation is omitted for the memory cells selected by the row address of the memory cells accessed within a fixed time, and access conflict with the data processing device is eliminated. Reduce. A refresh memory selection signal 27 obtained by decoding a refresh address of a memory by a refresh address decoder 8 and a CUP at the time of memory access.
The address output from 1 is decoded by the row address decoder 7, and the access history bit signal 26 obtained from the latch element 9 that holds the access history for the row (row) address of the memory cell accessed within a fixed time
When the CPU indicates the access history of the memory within a fixed time with respect to the memory address to be refreshed, the memory control device is configured to omit the refresh.
Description
【0001】[0001]
【産業上の利用分野】本発明は、記憶保持動作(以下リ
フレッシュという)が必要なメモリ、たとえばダイナミ
ックランダムアクセスメモリ(以下DRAMという)や
ビデオRAM(以下VRAMという)を用いたシステム
のメモリ制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory control device for a system using a memory requiring a memory holding operation (hereinafter referred to as refresh), such as a dynamic random access memory (hereinafter referred to as DRAM) or a video RAM (hereinafter referred to as VRAM). Regarding
【0002】[0002]
【従来の技術】近年、半導体技術の進歩とともに、メモ
リの大容量化が進み、小型化、コストの面で利点のある
DRAMやVRAMがさまざまな分野で利用されるよう
になってきた。これらのメモリでは、その構成単位であ
るメモリセルへの微小電荷の充放電によってデータの
“1”あるいは“0”を記憶しており、微小電荷の自己
放電などによりデータが消失しないように一定期間に一
度再書き込み(リフレッシュ)を行う必要がある。リフ
レッシュは、ロウ(行)アドレスをメモリに入力するこ
とで、ワード線が一本選択され、そのワード線に接続さ
れているメモリセルデータがセンスアンプによって増幅
され、再書き込みされることで行われる。2. Description of the Related Art In recent years, with the advancement of semiconductor technology, the capacity of memories has increased, and DRAMs and VRAMs, which are advantageous in terms of downsizing and cost, have come to be used in various fields. In these memories, data "1" or "0" is stored by charging / discharging a minute charge to / from a memory cell, which is a constituent unit of the memory, and the data is stored for a certain period so that the data is not lost by self-discharge of the minute charge. It is necessary to rewrite (refresh) once. The refresh is performed by inputting a row address to the memory, selecting one word line, amplifying the memory cell data connected to the word line by a sense amplifier, and rewriting the data. .
【0003】DRAMやVRAMを用いたシステムで
は、リフレッシュ動作を考慮にいれ、データの読み書き
を高速に行うため、いろいろな動作サイクルに対応した
複雑なメモリ制御装置が必要になっている。In a system using DRAM or VRAM, in order to read and write data at a high speed in consideration of the refresh operation, a complicated memory control device corresponding to various operation cycles is required.
【0004】ここで、従来のメモリ制御装置の構成例を
図5に示す。図5において構成要素として1はCPU、
2はリフレッシュするメモリアドレスを生成するリフレ
ッシュアドレス生成器、3はリフレッシュを行なう時期
を決めるリフレッシュタイマ、4はデータを読み書きす
るメモリアドレスとリフレッシュアドレスとを切り替え
るマルチプレクサ、5はデータの読み書きなどのタイミ
ングを生成するタイミング生成器、6はDRAM、14
はメモリアドレスバス、15はCPUのデータバス、1
6はCPUのアドレスバス、17はリフレッシュアドレ
スバス、18はリフレッシュ時にメモリアドレスバスに
リフレッシュアドレスを出力するためのリフレッシュア
ドレス切り替え信号、19は、データの読み書き時にメ
モリアドレスバスに行(ロウ)アドレスと列(カラム)
アドレスを切り替えて出力するためロウ・カラム切り替
え信号、20はCPUからメモリへのアクセス要求信
号、21はリフレッシュ時期であることを示すリフレッ
シュ要求信号、22はメモリ内部に行(ロウ)アドレス
を取り込むための/RAS信号、23はメモリ内部に列
(カラム)アドレスを取り込むための/CAS信号、2
4はデータの読み書きを制御するライトイネーブル(/
WE)信号である。Here, a configuration example of a conventional memory control device is shown in FIG. In FIG. 5, 1 is a CPU as a component,
Reference numeral 2 is a refresh address generator for generating a memory address to be refreshed, 3 is a refresh timer for deciding when to perform refreshing, 4 is a multiplexer for switching between a memory address for reading and writing data and a refresh address, and 5 is timing for reading and writing data. Timing generator for generation, 6 for DRAM, 14
Is a memory address bus, 15 is a CPU data bus, 1
6 is an address bus of the CPU, 17 is a refresh address bus, 18 is a refresh address switching signal for outputting a refresh address to the memory address bus at the time of refresh, and 19 is a row address on the memory address bus when reading / writing data. Column
A row / column switching signal for switching and outputting addresses, 20 is an access request signal from the CPU to the memory, 21 is a refresh request signal indicating the refresh time, and 22 is for fetching a row address into the memory. / RAS signal, 23 is a / CAS signal for fetching a column address into the memory, 2
4 is a write enable (/
WE) signal.
【0005】前記各構成要素よりなるメモリ制御装置の
動作を図6のフローチャートとともに説明する。まずリ
フレッシュタイマ3によりリフレッシュ時期か否かを判
定し(ステップ1)、リフレッシュ時期ならリフレッシ
ュ要求信号21を“1”(真)にする(ステップ2−
1)。このとき、DRAM6がCPU1によるアクセス
のために使用中でないかを判定し(ステップ2−2)、
使用中ならばCPU1のアクセスが終了するまでリフレ
ッシュ動作に入らずに待機する(ステップ2−3)。C
PU1のアクセスが終了すると、タイミング生成器5は
/RAS信号22を所定のタイミングで出力し、リフレ
ッシュを行なう(ステップ2−4)。リフレッシュが終
了するとリフレッシュタイマ3はリフレッシュ要求信号
21を“0”(偽)にする(ステップ2−5)。一方、
リフレッシュ時期でないときは、CPU1によるアクセ
ス要求であるかを判定し(ステップ3−1)、そうであ
るなら、DRAM6がリフレッシュ動作中でないかを判
定する(ステップ3−2)。このときリフレッシュ動作
中なら、CPU1によるDRAM6の読み書きではない
ため、リフレッシュ終了まで待機する(ステップ3−
3)。その後リフレッシュが終了すると、タイミング生
成器5は/RAS信号22、/CAS信号23、/WE
信号24を所定のタイミングで出力し、CPU1による
DRAM6の読み書きが行なわれる(ステップ3−
4)。このようにして、リフレッシュ動作とCPUによ
るアクセスの競合を調停しながら、メモリの制御が行な
われる。The operation of the memory control device including the above-mentioned components will be described with reference to the flow chart of FIG. First, the refresh timer 3 determines whether or not it is the refresh time (step 1), and if the refresh time is reached, the refresh request signal 21 is set to "1" (true) (step 2-).
1). At this time, it is determined whether the DRAM 6 is not being used for access by the CPU 1 (step 2-2),
If the CPU 1 is in use, it waits until the access of the CPU 1 is completed without entering the refresh operation (step 2-3). C
When the access of PU1 is completed, the timing generator 5 outputs the / RAS signal 22 at a predetermined timing to refresh (step 2-4). When the refresh is completed, the refresh timer 3 sets the refresh request signal 21 to "0" (false) (step 2-5). on the other hand,
If it is not the refresh time, it is determined whether the access request is issued by the CPU 1 (step 3-1). If so, it is determined whether the DRAM 6 is in the refresh operation (step 3-2). At this time, if the refresh operation is in progress, the CPU 1 does not read or write the DRAM 6, and therefore waits until the refresh is completed (step 3-
3). After that, when the refresh is completed, the timing generator 5 outputs the / RAS signal 22, / CAS signal 23, / WE
The signal 24 is output at a predetermined timing, and the CPU 1 reads and writes the DRAM 6 (step 3-
4). In this way, the memory is controlled while arbitrating the conflict between the refresh operation and the access by the CPU.
【0006】次に、上記構成の従来のメモリ制御装置の
動作を図7で示したタイミングチャートを参照しながら
説明する。図中、各制御信号は負論理(真がローレベ
ル)で記述されているものとする。CPU1がデータの
読み書きのため、DRAM6にアクセス要求信号を20
を真にすると(時刻T1)、リフレッシュ要求信号21
が偽であるので、タイミング生成器5はアクセスを許可
し、/RAS信号22を真にする(時刻T2)。このと
き、メモリアドレスバス14にはロウ・カラム切り替え
信号19によりロウアドレスが出力されており、/RA
S信号22の立ち下がりでロウアドレスがDRAM6の
内部に取り込まれる。次に、ロウ・カラム切り替え信号
19を真にして(時刻T3)、メモリアドレスバス14
にカラムアドレスが出力されると、タイミング生成器5
は/CAS信号23を真にする(時刻T4)。このとき
/CAS信号23の立ち下がりでカラムアドレスがDR
AM6の内部に取り込まれ、ロウアドレスとカラムアド
レスで指定されたメモリセルにデータの読み書きが行な
われる。上記の動作サイクルの途中、時刻T3におい
て、リフレッシュ時期であることを示すリフレッシュ要
求信号21が真になっているが、CPUアクセスと競合
しているため、タイミング生成器5はすぐにはリフレッ
シュ動作に入れず、データの読み書きのサイクルが終了
し、RASプリチャージ時間が経過するまでまってか
ら、リフレッシュを行なう。つまり、CPUアクセスが
時刻T5で終了後、所定のRASプリチャージ時間(T
5〜T7)を経過後リフレッシュ動作を行う。したがっ
てタイミング生成器5は、時刻T6においてCPUから
のアクセス要求信号20が偽であることを検出後、リフ
レッシュアドレス切り替え信号18を真にし、メモリア
ドレスバス14にリフレッシュアドレスを出力させ、リ
フレッシュ準備に入る。さらに時刻T7において、/R
AS信号22を真にすることにより、メモリ内部にリフ
レッシュアドレスが取り込まれ、リフレッシュ動作が行
なわれる(時刻T7〜T10)。Next, the operation of the conventional memory control device having the above configuration will be described with reference to the timing chart shown in FIG. In the figure, each control signal is described in negative logic (true is low level). The CPU 1 sends an access request signal to the DRAM 6 to read and write data.
Is set to true (time T1), the refresh request signal 21
Is false, the timing generator 5 permits the access and sets the / RAS signal 22 to true (time T2). At this time, the row address is being output to the memory address bus 14 by the row / column switching signal 19, and / RA
The row address is taken into the DRAM 6 at the falling edge of the S signal 22. Next, the row / column switching signal 19 is set to true (time T3) to set the memory address bus 14
When the column address is output to the timing generator 5,
Sets / CAS signal 23 to true (time T4). At this time, the column address is DR when the / CAS signal 23 falls.
The data is read into and read from the memory cell which is fetched inside the AM6 and designated by the row address and the column address. In the middle of the above operation cycle, at time T3, the refresh request signal 21 indicating that it is the refresh time is true, but since it conflicts with the CPU access, the timing generator 5 immediately starts the refresh operation. Without inserting the data, the data read / write cycle ends, and the RAS precharge time elapses before the refresh is performed. That is, after the CPU access ends at time T5, a predetermined RAS precharge time (T
After 5 to T7), the refresh operation is performed. Therefore, the timing generator 5, after detecting that the access request signal 20 from the CPU is false at time T6, sets the refresh address switching signal 18 to true, outputs the refresh address to the memory address bus 14, and enters the refresh preparation. . Further, at time T7, / R
By making the AS signal 22 true, the refresh address is taken into the memory and the refresh operation is performed (time T7 to T10).
【0007】一方、上記リフレッシュ期間中にCPUか
らのアクセス要求信号20が時刻T7で発生している
が、DRAM6はすでにリフレッシュ動作準備に入って
いるので、リフレッシュ動作が終了するまでCPUのア
クセス要求は許可されない。つまり、時刻T10におい
てリフレッシュ動作が終了し、RASプリチャージ時間
(T10〜T12)を経過後、時刻T12になってはじ
めて、時刻T7で発生したアクセス要求信号20が許可
され、その後前述したデータの読み書きサイクル(T2
〜T5)と同様の動作によりCPUによるデータの読み
書きが行なわれる。On the other hand, during the refresh period, the access request signal 20 from the CPU is generated at time T7, but since the DRAM 6 is already ready for the refresh operation, the access request from the CPU is not issued until the refresh operation is completed. Not allowed. That is, the refresh operation ends at time T10, the RAS precharge time (T10 to T12) elapses, and then the access request signal 20 generated at time T7 is permitted only at time T12, and then the above-described data read / write is performed. Cycle (T2
Data is read and written by the CPU by the same operation as (~ T5).
【0008】[0008]
【発明が解決しようとする課題】しかしながら、上記従
来の構成では、リフレッシュ要求信号にもとづき、一定
周期でリフレッシュアドレスを生成し、本来は不要であ
るリフレッシュ周期内にCPUアクセスされたメモリア
ドレスに対してのリフレッシュ動作も重複して行なって
いた。このため、CPUが別のアドレスに対してアクセ
スを行なう際に、上記のようなリフレッシュ動作中であ
ると、CPUはDRAMの読み書きではできずリフレッ
シュが終了するまで待たねばならないので、メモリ領域
内の大量のデータをDMA転送する場合や、画像データ
のブロック転送を煩雑に繰り返すようなシステムにおい
ては、大幅に性能が低下するという問題点を有してい
た。However, in the above-described conventional configuration, the refresh address is generated at a constant cycle based on the refresh request signal, and the memory address accessed by the CPU within the refresh cycle, which is originally unnecessary, is generated. The refresh operation of was also repeated. Therefore, when the CPU accesses another address, if the refresh operation as described above is being performed, the CPU cannot wait for the DRAM to read or write, and must wait until the refresh is completed. In the case of DMA transfer of a large amount of data or in a system in which block transfer of image data is repeated in a complicated manner, there is a problem that performance is significantly reduced.
【0009】本発明の目的は、リフレッシュ回数を削減
することでCPUとのアクセス競合を避け、CPUが無
駄な時間を費やすことなくDRAMにアクセスできるメ
モリ制御装置を提供することである。It is an object of the present invention to provide a memory control device capable of accessing the DRAM without wasting time by avoiding access competition with the CPU by reducing the number of refresh times.
【0010】[0010]
【課題を解決するための手段】本発明は上記目的を達成
するため、リフレッシュ周期内にCPUアクセスされた
メモリアドレスに対してリフレッシュ動作を省略する手
段を備えたメモリ制御装置の構成とする。In order to achieve the above object, the present invention provides a memory control device having means for omitting a refresh operation for a memory address accessed by a CPU within a refresh cycle.
【0011】[0011]
【作用】本発明は上記の構成により、一度CPUアクセ
スされたメモリセルのリフレッシュを省略できるので、
メモリ領域内の大量のデータをDMA転送するシステム
や、画像データのブロック転送を煩雑に繰り返すような
システムにおいて、CPUが無駄な時間を費やすことな
くメモリにアクセスできる。According to the present invention, with the above configuration, the refresh of the memory cell once accessed by the CPU can be omitted.
In a system that DMA-transfers a large amount of data in the memory area or a system that repeatedly repeats block transfer of image data, the CPU can access the memory without wasting time.
【0012】[0012]
【実施例】図1は本発明の一実施例の構成を示すブロッ
ク図、図2は図1の動作を説明するフローチャートであ
る。図1において前記図5と同じ回路等については、同
じ番号を付し説明を省略する。1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a flow chart for explaining the operation of FIG. In FIG. 1, the same circuits and the like as those in FIG. 5 are given the same numbers and their explanations are omitted.
【0013】本実施例の特徴は、リフレッシュ周期内に
CPU1によりアクセスされたメモリアドレスに対して
リフレッシュ動作を省略する手段として、図1に示すよ
うにCPU1から出力されるアドレスによりアクセスす
るメモリのロウ(行)を指定するアクセスメモリセル選
択信号25を出力するロウアドレスデコーダ7、リフレ
ッシュアドレス生成器の示すリフレッシュアドレスをデ
コードするリフレッシュアドレスデコーダ8、一定時間
内にアクセスされたメモリセルのロー(行)アドレスに
対してアクセス履歴を記憶するため、アクセスメモリセ
ル選択信号25を保持するラッチ素子9、ラッチ素子9
から出力されるアクセス履歴ビット信号26により、リ
フレッシュメモリセル選択信号27を次段へ伝達する論
理ゲート10、論理ゲート10から出力されるリフレッ
シュメモリセル選択信号27に従ってリフレッシュタイ
ム信号30を制御する論理ゲート11を備えたことにあ
る。The feature of the present embodiment is that as a means for omitting the refresh operation for the memory address accessed by the CPU 1 within the refresh cycle, the row of the memory accessed by the address output from the CPU 1 as shown in FIG. A row address decoder 7 that outputs an access memory cell selection signal 25 that specifies (row), a refresh address decoder 8 that decodes a refresh address indicated by a refresh address generator, and a row (row) of a memory cell accessed within a fixed time. Latch element 9 for holding access memory cell selection signal 25 for storing access history for address, latch element 9
A logic gate 10 transmitting a refresh memory cell selection signal 27 to the next stage by an access history bit signal 26 output from the logic gate 10 and a logic gate controlling a refresh time signal 30 according to the refresh memory cell selection signal 27 output from the logic gate 10. It is equipped with 11.
【0014】以上のように構成されたメモリ制御装置の
動作を図2で示したフローチャートを参照しながら説明
する。まず、リフレッシュタイマ3によりリフレッシュ
時期か否かを判定し(ステップ1)、リフレッシュ時期
ならアクセス履歴ビットが1(真)であるかを判定する
(ステップ1−1)。もしアクセス履歴ビットが1なら
アクセス履歴ビットを0(偽)にし(ステップ1−
2)、リフレッシュ要求信号21を偽にする(ステップ
1−3)。もしアクセス履歴ビットが0ならリフレッシ
ュ要求信号21を真にする(ステップ2−1)。このと
き、DRAM6がCPU1によるアクセスのために使用
中でないかを判定し(ステップ2−2)、使用中ならば
CPU1のアクセスが終了するまでリフレッシュ動作に
入らずに待機する(ステップ2−3)。CPU1のアク
セスが終了すると、タイミング生成器5は/RAS信号
22を所定のタイミングで出力し、リフレッシュを行な
う(ステップ2−4)。リフレッシュが終了するとリフ
レッシュタイマ3はリフレッシュ要求21を偽にする
(ステップ2−5)。一方、リフレッシュ時期でないと
きは、CPU1によるアクセス要求であるかを判定し
(ステップ3−1)、そうであるなら、DRAM6がリ
フレッシュ動作中でないかを判定する(ステップ3−
2)。このときリフレッシュ動作中なら、CPU1によ
るDRAM6の読み書きはできないため、リフレッシュ
終了まで待機する(ステップ3−3)。その後リフレッ
シュが終了すると、タイミング生成器5はCPUのアク
セスを受付け/RAS信号22、/CAS信号23、/
WE信号24を所定のタイミングで出力し、CPU1に
よるDRAM6の読み書きが行なわれる(ステップ3−
4)。このときCPU1によりアクセスされたDRAM
6のロウアドレスは、ロウアドレスデコーダ7によって
デコードされ、その結果がアクセス履歴ビットに“1”
としてラッチ9に保持される。The operation of the memory control device configured as described above will be described with reference to the flow chart shown in FIG. First, the refresh timer 3 determines whether it is the refresh time (step 1), and if it is the refresh time, it is determined whether the access history bit is 1 (true) (step 1-1). If the access history bit is 1, the access history bit is set to 0 (false) (step 1-
2) The refresh request signal 21 is set to false (step 1-3). If the access history bit is 0, the refresh request signal 21 is set to true (step 2-1). At this time, it is determined whether the DRAM 6 is not being used for access by the CPU 1 (step 2-2), and if it is being used, the CPU waits without entering the refresh operation until the access of the CPU 1 is completed (step 2-3). . When the access of the CPU 1 is completed, the timing generator 5 outputs the / RAS signal 22 at a predetermined timing to refresh (step 2-4). When the refresh is completed, the refresh timer 3 makes the refresh request 21 false (step 2-5). On the other hand, when it is not the refresh time, it is determined whether the access request is made by the CPU 1 (step 3-1), and if so, it is determined whether the DRAM 6 is in the refresh operation (step 3-).
2). At this time, if the refresh operation is in progress, the CPU 1 cannot read or write the DRAM 6, so the CPU waits until the refresh is completed (step 3-3). After that, when the refresh is finished, the timing generator 5 accepts the access from the CPU, / RAS signal 22, / CAS signal 23, /
The WE signal 24 is output at a predetermined timing, and the CPU 1 reads and writes the DRAM 6 (step 3-
4). DRAM accessed by CPU 1 at this time
The row address of 6 is decoded by the row address decoder 7, and the result is "1" in the access history bit.
Is held in the latch 9.
【0015】このように本実施例のメモリ制御装置は、
CPU1がアクセスしたDRAM6のロウアドレスで指
定される1行に対して、アクセス履歴を保持する処理
と、アクセス履歴があるか否かを判定してリフレッシュ
動作を省略する処理を行なうことを特徴とする。したが
って、アクセス履歴ビット信号26が1のときは対象と
なるメモリ1行のリフレッシュ動作を省略して、CPU
が無駄な時間を費やすことなくメモリにアクセスでき
る。As described above, the memory control device of this embodiment is
The CPU 1 is characterized by performing processing for holding an access history and processing for determining whether or not there is an access history and omitting the refresh operation for one row designated by a row address of the DRAM 6. . Therefore, when the access history bit signal 26 is 1, the refresh operation of the target memory 1 row is omitted, and the CPU
Can access memory without wasting time.
【0016】ここで図3に示す概念図を参照して本発明
によるメモリ制御装置の動作を説明する。CPU1がD
RAM6のロウアドレス00番地および03番地をアク
セスしたとすると、ロウアドレスデコーダ7により、0
0番地および03番地に相当するメモリセル選択信号2
5が真になり、00番地および03番地に相当するラッ
チ素子9に“1”が記憶される。図3(a)に、アクセ
ス履歴ビットの00番地と03番地に“1”が記憶され
その他のビットは“0”となっている状態が示されてい
る。The operation of the memory controller according to the present invention will now be described with reference to the conceptual diagram shown in FIG. CPU1 is D
If the row addresses 00 and 03 of the RAM 6 are accessed, the row address decoder 7
Memory cell selection signal 2 corresponding to addresses 0 and 03
5 becomes true, and "1" is stored in the latch element 9 corresponding to addresses 00 and 03. FIG. 3A shows a state in which “1” is stored in the access history bits 00 and 03 and the other bits are “0”.
【0017】さらに、この状態のときにメモリのロウア
ドレス02番地がリフレッシュ時期になったとする。図
3(a)を参照すると、リフレッシュアドレス選択信号
は02番地に相当するところが“1”であり、リフレッ
シュ時期が来ていることを示している。さらに、02番
地に対応するアクセス履歴ビットを参照すると“0”
(リフレッシュ必要)であるので、結局、メモリのロウ
アドレス02番地に対してリフレッシュが行なわれる。Further, in this state, it is assumed that the row address 02 of the memory has reached the refresh time. Referring to FIG. 3A, the portion corresponding to the address 02 of the refresh address selection signal is "1", which indicates that the refresh time has come. Furthermore, referring to the access history bit corresponding to the address 02, "0"
Since (refreshing is required), the row address 02 of the memory is finally refreshed.
【0018】一方、図1を参照すると、メモリのロウア
ドレス02番地がリフレッシュ時期になった場合、リフ
レッシュタイマ3により、リフレッシュタイム信号30
が出力され、これを受けたリフレッシュアドレス生成器
2によりリフレッシュアドレス02番地が出力される。
そしてリフレッシュアドレスデコーダ8はリフレッシュ
アドレス02番地をデコードし、02番地に相当するリ
フレッシュメモリセル選択信号27が真になる。この場
合、02番地に相当するアクセス履歴ビット信号26は
“0”が記憶されているので論理ゲート10から出力さ
れる02番地に相当するリフレッシュメモリセル有効選
択信号28は真となる。したがって、論理ゲート11に
よりリフレッシュイネーブル信号29は真となり、リフ
レッシュタイム信号30が論理ゲート12を通過してリ
フレッシュ要求信号21としてタイミング生成器5へ入
力される。リフレッシュ要求信号21を受けたタイミン
グ生成器5は、リフレッシュ時期であることを検出し
て、所定のタイミングで/RAS信号22を真にして、
リフレッシュを行う。On the other hand, referring to FIG. 1, when the row address 02 of the memory reaches the refresh time, the refresh timer 3 causes the refresh time signal 30
Is output, and the refresh address generator 2 receiving this outputs the refresh address 02.
Then, the refresh address decoder 8 decodes the refresh address 02, and the refresh memory cell selection signal 27 corresponding to the address 02 becomes true. In this case, since the access history bit signal 26 corresponding to the address 02 stores "0", the refresh memory cell valid selection signal 28 corresponding to the address 02 output from the logic gate 10 becomes true. Therefore, the refresh enable signal 29 becomes true by the logic gate 11, and the refresh time signal 30 passes through the logic gate 12 and is input to the timing generator 5 as the refresh request signal 21. Upon receiving the refresh request signal 21, the timing generator 5 detects that it is the refresh time, sets the / RAS signal 22 to true at a predetermined timing,
Refresh.
【0019】次に、所定の時間が経過後、メモリのロウ
アドレス03番地がリフレッシュ時期になったとする。
図3(b)を参照すると、リフレッシュメモリセル選択
信号は03番地に相当するところが“1”であり、リフ
レッシュ時期が来ていることを示している。さらに、0
3番地に対応するアクセス履歴ビット信号を参照すると
“1”(リフレッシュ不要)であるので、メモリのロウ
アドレス03番地に対してはリフレッシュが省略され
る。Next, it is assumed that the row address 03 of the memory reaches the refresh time after a predetermined time has elapsed.
Referring to FIG. 3B, the refresh memory cell selection signal is "1" at a position corresponding to the address 03, indicating that the refresh time has come. Furthermore, 0
When the access history bit signal corresponding to the address 3 is referred to, it is "1" (refresh unnecessary), so the refresh is omitted for the row address 03 of the memory.
【0020】上記動作を図1を参照して説明する。メモ
リのロウアドレス03番地がリフレッシュ時期になった
場合、再びリフレッシュタイム信号30が出力され、リ
フレッシュアドレス生成器2によりリフレッシュアドレ
ス03番地が出力される。そして03番地に相当するリ
フレッシュメモリセル選択信号27が真になる。この場
合、03番地はアクセス履歴ビットに“1”が記憶され
ているので、論理ゲート10から出力される03番地に
相当するリフレッシュメモリセル有効選択信号28は偽
となる。したがって、論理ゲート11によりリフレッシ
ュイネーブル信号29は偽となり、リフレッシュタイム
信号30が論理ゲート12を通過せず、リフレッシュ要
求信号21は偽のままである。したがって、メモリのロ
ウアドレス03番地に対しては、リフレッシュは行われ
ない。The above operation will be described with reference to FIG. When the row address 03 of the memory reaches the refresh time, the refresh time signal 30 is output again, and the refresh address generator 2 outputs the refresh address 03. Then, the refresh memory cell selection signal 27 corresponding to the address 03 becomes true. In this case, since "1" is stored in the access history bit at address 03, the refresh memory cell valid selection signal 28 corresponding to address 03 output from the logic gate 10 becomes false. Therefore, the refresh enable signal 29 becomes false by the logic gate 11, the refresh time signal 30 does not pass through the logic gate 12, and the refresh request signal 21 remains false. Therefore, refresh is not performed for the row address 03 of the memory.
【0021】ここで、図4のタイミングチャートを参照
しながら、本発明の一実施例におけるメモリ制御装置の
動作をさらに詳しく説明する。CPU1がデータの読み
書きのため、DRAM6にアクセス要求信号20を真に
すると(時刻T1)、リフレッシュ要求信号21が偽で
あるので、タイミング生成器5はアクセスを許可し、従
来例におけるメモリ装置の動作と同様の動作を行う。つ
まりタイミング生成器5は、時刻T2で/RAS信号2
2を真にし、DRAM6の内部にロウアドレスを取り込
ませた後、時刻T3でロウ・カラム切替え信号19を真
にして、メモリアドレスバス14にカラムアドレスを出
力する。さらにタイミング生成器5は時刻T4で/CA
S信号23を真にし、ロウアドレスとカラムアドレスで
指定されたDRAM6のメモリセルにデータの読み書き
が行なわれる(時刻T1〜T5)。The operation of the memory control device according to the embodiment of the present invention will now be described in more detail with reference to the timing chart of FIG. When the CPU 1 sets the access request signal 20 to the DRAM 6 to be true (time T1) for reading and writing data, the refresh request signal 21 is false, so the timing generator 5 permits the access and the operation of the memory device in the conventional example. Performs the same operation as. That is, the timing generator 5 outputs the / RAS signal 2 at the time T2.
2 is set to true and the row address is fetched in the DRAM 6, and then the row / column switching signal 19 is set to true at time T3 to output the column address to the memory address bus 14. Further, the timing generator 5 is / CA at time T4.
The S signal 23 is set to true, and data is read from and written to the memory cell of the DRAM 6 designated by the row address and the column address (time T1 to T5).
【0022】上記の動作サイクルの途中、時刻T2にお
いて、03番地がリフレッシュ時期であることを示すリ
フレッシュタイム信号30が真になったとする。このと
き、リフレッシュアドレスバス17にはリフレッシュア
ドレス03番地が出力されている。さらに時刻T3で、
03番地に相当するリフレッシュメモリセル選択信号2
7が真になっているが、03番地に相当するアクセス履
歴ビット信号26も同じく真になっている。したがっ
て、03番地に対するリフレッシュは不要であり、リフ
レッシュ要求信号21はT3において真にならず、リフ
レッシュタイム信号30が真の期間(T2〜T10)に
おいて偽を維持する。この動作により、CPU1がT7
において再びDRAM6にアクセス要求信号を20を出
力しても、何らアクセス競合を生じることなく、そのま
まメモリにデータの読み書きができる(T7〜T11の
期間)。It is assumed that the refresh time signal 30 indicating that the address 03 is the refresh time becomes true at time T2 during the above operation cycle. At this time, the refresh address 03 is output to the refresh address bus 17. At time T3,
Refresh memory cell selection signal 2 corresponding to address 03
Although 7 is true, the access history bit signal 26 corresponding to the address 03 is also true. Therefore, refreshing the address 03 is unnecessary, the refresh request signal 21 does not become true at T3, and the refresh time signal 30 maintains false during the true period (T2 to T10). By this operation, the CPU1 causes the T7
Even if the access request signal 20 is output to the DRAM 6 again in, the data can be read and written to the memory as it is without any access conflict (the period of T7 to T11).
【0023】[0023]
【発明の効果】以上説明したように、本発明のメモリ制
御装置は、リフレッシュ周期内にアクセスされたメモリ
アドレスに対してリフレッシュ動作を省略するのでCP
Uとのアクセス競合を高い確率で避けることができ、C
PUが無駄な時間を費やすことなくメモリにアクセスで
きる。したがってシステム全体としての性能を向上する
ことができる。As described above, since the memory control device of the present invention omits the refresh operation for the memory address accessed within the refresh cycle, the CP
Access conflict with U can be avoided with a high probability, and C
The PU can access the memory without wasting time. Therefore, the performance of the entire system can be improved.
【図1】本発明の一実施例のメモリ制御装置の構成を示
すブロック図FIG. 1 is a block diagram showing the configuration of a memory control device according to an embodiment of the present invention.
【図2】同メモリ制御装置の動作を説明するフローチャ
ートFIG. 2 is a flowchart explaining the operation of the memory control device.
【図3】同メモリ制御装置の動作を説明する概念図FIG. 3 is a conceptual diagram illustrating an operation of the memory control device.
【図4】同メモリ制御装置の動作を説明するタイミング
チャートFIG. 4 is a timing chart explaining the operation of the memory control device.
【図5】従来例のメモリ制御装置の構成を示すブロック
図FIG. 5 is a block diagram showing a configuration of a conventional memory control device.
【図6】同メモリ制御装置の動作を説明するフローチャ
ートFIG. 6 is a flowchart illustrating the operation of the memory control device.
【図7】同メモリ制御装置の動作を説明するタイミング
チャートFIG. 7 is a timing chart explaining the operation of the memory control device.
1 CPU 2 リフレッシュアドレス生成器 3 リフレッシュタイマ 4 マルチプレクサ 5 タイミング生成器 6 DRAM 7 ロウアドレスデコーダ 8 リフレッシュアドレスデコーダ 9 ラッチ素子 10 論理ゲート 11 論理ゲート 12 論理ゲート 14 メモリアドレスバス 15 データバス 16 アドレスバス 17 リフレッシュアドレス 18 リフレッシュアドレス切替え信号 19 ロウ・カラム切替え信号 20 アクセス要求信号 21 リフレッシュ要求信号 22 /RAS信号 23 /CAS信号 24 /WE信号 25 アクセスメモリセル選択信号 26 アクセス履歴ビット信号 27 リフレッシュメモリセル選択信号 28 リフレッシュメモリセル選択有効信号 29 リフレッシュイネーブル信号 30 リフレッシュタイム信号 31 クリア信号 1 CPU 2 Refresh Address Generator 3 Refresh Timer 4 Multiplexer 5 Timing Generator 6 DRAM 7 Row Address Decoder 8 Refresh Address Decoder 9 Latch Element 10 Logic Gate 11 Logic Gate 12 Logic Gate 14 Memory Address Bus 15 Data Bus 16 Address Bus 17 Refresh Address 18 Refresh address switching signal 19 Row / column switching signal 20 Access request signal 21 Refresh request signal 22 / RAS signal 23 / CAS signal 24 / WE signal 25 Access memory cell selection signal 26 Access history bit signal 27 Refresh memory cell selection signal 28 Refresh memory cell selection enable signal 29 Refresh enable signal 30 Refresh time signal 31 Clear Issue
Claims (1)
メモリの制御装置において、一定周期で、メモリにリフ
レッシュタイムを知らせるリフレッシュタイマと、前記
リフレッシュタイマから出力されるリフレッシュタイム
信号により、メモリのリフレッシュアドレスを生成する
リフレッシュアドレス生成器と、前記リフレッシュアド
レス生成器の示すリフレッシュアドレスをデコードする
リフレッシュアドレスデコーダと、データ処理装置から
出力されるアドレスによりメモリセルのロウ(行)選択
信号を出力するロウアドレスデコーダと、前記ロウ
(行)アドレスデコーダから出力されるロウ(行)選択
信号を入力とし、一定時間内にアクセスされたメモリセ
ルのロウ(行)アドレスに対して、アクセス履歴を保持
するラッチ素子と、前記ラッチ素子の出力により、前記
リフレッシュアドレスデコーダから出力されるリフレッ
シュメモリセル選択信号を制御する第一の論理ゲート
と、前記第一の論理ゲートの出力により前記リフレッシ
ュタイム信号を制御する第二の論理ゲートとを備え、リ
フレッシュアドレスに対応した前記ラッチ素子が一定時
間内のアクセス履歴を示す場合には、対象となるメモリ
に対してリフレッシュを行なわないようにしたことを特
徴とするメモリ制御装置。1. A memory control device which requires a memory holding operation (refresh), wherein a refresh timer for notifying the memory of a refresh time at a constant cycle and a refresh time signal output from the refresh timer, , A refresh address decoder for decoding the refresh address indicated by the refresh address generator, and a row address decoder for outputting a row selection signal of a memory cell according to an address output from the data processing device. And a latch element that receives a row selection signal output from the row address decoder and holds an access history for a row address of a memory cell accessed within a fixed time. , The above A first logic gate that controls the refresh memory cell selection signal output from the refresh address decoder by the output of the latch element, and a second logic gate that controls the refresh time signal by the output of the first logic gate And a memory control device, wherein the target memory is not refreshed when the latch element corresponding to the refresh address indicates an access history within a fixed time.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6002280A JPH07211067A (en) | 1994-01-14 | 1994-01-14 | Memory controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6002280A JPH07211067A (en) | 1994-01-14 | 1994-01-14 | Memory controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH07211067A true JPH07211067A (en) | 1995-08-11 |
Family
ID=11524964
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6002280A Pending JPH07211067A (en) | 1994-01-14 | 1994-01-14 | Memory controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07211067A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009181666A (en) * | 2008-01-31 | 2009-08-13 | Sony Corp | Semiconductor memory device and operation method thereof |
| US12494243B2 (en) | 2022-10-27 | 2025-12-09 | Samsung Electronics Co., Ltd. | Memory device, memory system including memory device, and method of operating memory device |
-
1994
- 1994-01-14 JP JP6002280A patent/JPH07211067A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009181666A (en) * | 2008-01-31 | 2009-08-13 | Sony Corp | Semiconductor memory device and operation method thereof |
| US12494243B2 (en) | 2022-10-27 | 2025-12-09 | Samsung Electronics Co., Ltd. | Memory device, memory system including memory device, and method of operating memory device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5875452A (en) | DRAM/SRAM with uniform access time using buffers, write back, address decode, read/write and refresh controllers | |
| US5201036A (en) | Data processor having wait state control unit | |
| KR100685547B1 (en) | Memory control system and memory bank refresh method | |
| KR100194396B1 (en) | Synchronous DRAM | |
| KR100816053B1 (en) | Memory devices, memory systems, and dual-port memory devices with self-copy capability | |
| US20020024882A1 (en) | Synchronous semiconductor memory device and method for controlling input circuit of synchronous semiconductor memory device | |
| JPH10233091A (en) | Semiconductor storage device and data processing device | |
| CN1788257B (en) | Method and device for processing memory affairs | |
| US6091667A (en) | Semiconductor memory device and a data reading method and a data writing method therefor | |
| CN1822224B (en) | Memory device capable of refreshing data by using buffer and refreshing method thereof | |
| US6026466A (en) | Multiple row address strobe DRAM architecture to improve bandwidth | |
| US6501701B2 (en) | Semiconductor memory device | |
| US20020136079A1 (en) | Semiconductor memory device and information processing system | |
| JP4229958B2 (en) | Memory control system and memory control circuit | |
| JPH07211067A (en) | Memory controller | |
| JPS63114000A (en) | Control system for dynamic random access memory | |
| JP6898498B1 (en) | Memory device and its burst read / write method | |
| JPH05174574A (en) | Memory controller | |
| JPH06103760A (en) | Dynamic memory | |
| JP2570271B2 (en) | Semiconductor memory controller | |
| CN1921008B (en) | Memory control system and memory control circuit | |
| JPH04287251A (en) | Memory device | |
| JPH09282872A (en) | Memory refresh control circuit | |
| JPS5971194A (en) | Controlling system of dynamic memory | |
| JPH06223564A (en) | Dram refreshing device |