JP2512999B2 - DRAM controller - Google Patents
DRAM controllerInfo
- Publication number
- JP2512999B2 JP2512999B2 JP63209647A JP20964788A JP2512999B2 JP 2512999 B2 JP2512999 B2 JP 2512999B2 JP 63209647 A JP63209647 A JP 63209647A JP 20964788 A JP20964788 A JP 20964788A JP 2512999 B2 JP2512999 B2 JP 2512999B2
- Authority
- JP
- Japan
- Prior art keywords
- refresh
- refresh request
- memory banks
- dram
- control device
- 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.)
- Expired - Lifetime
Links
- 102100023882 Endoribonuclease ZC3H12A Human genes 0.000 description 4
- 101710112715 Endoribonuclease ZC3H12A Proteins 0.000 description 4
- 108700012361 REG2 Proteins 0.000 description 4
- 101150108637 REG2 gene Proteins 0.000 description 4
- 101100120298 Rattus norvegicus Flot1 gene Proteins 0.000 description 4
- 101100412403 Rattus norvegicus Reg3b gene Proteins 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- QGVYYLZOAMMKAH-UHFFFAOYSA-N pegnivacogin Chemical compound COCCOC(=O)NCCCCC(NC(=O)OCCOC)C(=O)NCCCCCCOP(=O)(O)O QGVYYLZOAMMKAH-UHFFFAOYSA-N 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 101100325974 Arabidopsis thaliana BHLH95 gene Proteins 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Dram (AREA)
Description
【発明の詳細な説明】 <産業上の利用分野> 本発明は、複数バンクよりなるDRAM(Dynamic Random
Access Memory)アレイに対してリード/ライト、リフ
レッシュを制御するDRAMコントローラを核とするDRAM制
御装置に関するものであり、特にDRAMアレイのリフレッ
シュ方式に改善を施すものである。DETAILED DESCRIPTION OF THE INVENTION <Industrial field of application> The present invention relates to a DRAM (Dynamic Random
The present invention relates to a DRAM control device having a DRAM controller for controlling read / write and refresh for an access memory array as a core, and particularly to improving a refresh method of a DRAM array.
<従来の技術> DRAMはメイン・フレーム・メモリ、バッファ・メモ
リ、画像メモリ等大容量を要求されるメモリ・システム
に多く使用されている。<Prior Art> DRAM is often used in a memory system requiring a large capacity such as a main frame memory, a buffer memory, and an image memory.
従来のDRAMシステムの代表的な例を第7図のブロック
図に示す。A typical example of a conventional DRAM system is shown in the block diagram of FIG.
この図に示すシステムは、大きく分けてDMA部1、DMC
部2の2個の主要部より構成される。The system shown in this figure is roughly divided into a DMA unit 1 and a DMC.
It is composed of two main parts of the part 2.
DMA部1は、DRAMアレイであり、バンク#1から#N
のN個のメモリ・バンクより構成され、更に各メモリ・
バンクはk個のDRAMメモリ素子よりなる。即ちデータ幅
はkビットである。The DMA unit 1 is a DRAM array and includes banks # 1 to #N.
Of N memory banks, each memory
A bank consists of k DRAM memory elements. That is, the data width is k bits.
DMC部2は、DMA部1を制御するDRAMコントローラであ
り、DMC21、リフレッシュ・タイマRFT22、ウェイト・ス
テイト発生部WG23よりなる。The DMC unit 2 is a DRAM controller that controls the DMA unit 1, and includes a DMC 21, a refresh timer RFT22, and a wait state generation unit WG23.
DMC21はDRAMコントローラであり、例えばCPU側からメ
モリ・バンク選択信号BS(lビット)、ロウ・アドレス
RA、カラム・アドレスCA、メモリ・リード/ライト・ア
クセス要求信号MREQ、リード/ライト信号R/を受け
て、メモリ・バンク選択信号BSで選択された、いずれか
1つのメモリ・バンクのみにアドレスAD(ロウ・アドレ
スRA、カラム・アドレスCAを含む)、ロウ・アドレス・
ストローブ信号▲▼、カラム・アドレス・スト
ローブ信号▲▼、ライト有効信号▲▼を出
力する。The DMC21 is a DRAM controller, for example, a memory bank selection signal BS (l bit), a row address from the CPU side.
In response to RA, column address CA, memory read / write access request signal MREQ, read / write signal R /, only one memory bank selected by memory bank selection signal BS has address AD (Including row address RA and column address CA), row address
It outputs a strobe signal ▲ ▼, a column address strobe signal ▲ ▼, and a write valid signal ▲ ▼.
リフレッシュ・タイマRFT22は、一定間隔T0(例えばT
0<15.6μs=8ms/512リフレッシュ・サイクル)でDMC2
1にリフレッシュ要求RFREQを与えるタイマである。The refresh timer RFT22 has a fixed interval T 0 (eg T
DMC2 at 0 <15.6 μs = 8 ms / 512 refresh cycle)
It is a timer that gives a refresh request RFREQ to 1.
ウェイト・ステイト発生部WG23は、DRAMのリード/ラ
イト動作の終了を例えばCPU側に知らせるために、アク
セス要求信号MREQ及びDMC21からレディ信号RDYを受けて
終了信号ENDを生成する。The wait state generation unit WG23 receives the ready signal RDY from the access request signals MREQ and DMC21 and generates an end signal END in order to notify the end of the read / write operation of the DRAM to the CPU side, for example.
このような構成により、各メモリ・バンクはアドレス
信号AD、ロウ・アドレス・ストローブ信号▲
▼、カラム・アドレス・ストローブ信号▲▼、
ライト有効信号▲▼を受け、▲▼=“H"の時は
リード動作を行ってリード・データDOUT(kビット)
をデータ・バスDBに送出し、▲▼=“L"の時はライ
ト動作を行ってライト・データDIN(kビット)をデー
タ・バスDBより取り込む。通常、ロウ・アドレス・スト
ローブ信号▲▼、カラム・アドレス・ストロー
ブ信号▲▼が有効となったいずれか1個のメモ
リ・バンクがアクセスされる。With this configuration, each memory bank has an address signal AD and a row address strobe signal ▲
▼, column address strobe signal ▲ ▼,
When write valid signal ▲ ▼ is received and ▲ ▼ = "H", read operation is performed and read data DOUT (k bit)
Is sent to the data bus DB, and when ▲ ▼ = "L", a write operation is performed to fetch the write data DIN (k bits) from the data bus DB. Normally, any one memory bank in which the row address strobe signal ▲ ▼ and the column address strobe signal ▲ ▼ are valid is accessed.
リフレッシュ(再書き込み)動作時は、第8図に示す
ようなタイミングにより、(a)▲▼オンリー・
リフレッシュ、または(b)▲▼ビフォア▲
▼リフレッシュが行われる。During the refresh (rewrite) operation, the timing shown in FIG.
Refresh or (b) ▲ ▼ Before ▲
▼ Refresh is performed.
リフレッシュ実行時は、(a)▲▼オンリー・
リフレッシュまたは(b)▲▼ビフォア▲
▼リフレッシュにかかわらず、メモリ・バンク選択信号
BSによらず、全てのロウ・アドレス・ストローブ信号▲
▼〜▲▼(またはロウ・アドレス・ス
トローブ信号▲▼〜▲▼及びカラム・
アドレス・ストローブ信号▲▼〜▲
▼)は有効となり、これによりメモリ・バンク#1から
#Nまで同時にリフレッシュされる。(A) ▲ ▼ Only when refreshing
Refresh or (b) ▲ ▼ Before ▲
▼ Memory bank selection signal regardless of refresh
All row address strobe signals regardless of BS ▲
▼ to ▲ ▼ (or row address strobe signal ▲ ▼ to ▲ ▼ and column
Address strobe signal ▲ ▼ 〜 ▲
)) Becomes valid, whereby the memory banks # 1 to #N are simultaneously refreshed.
また、リフレッシュ動作中のDMC21のレディ信号RDYは
“L"である。リフレッシュ動作中にメモリ・リード/ラ
イト要求信号MREQが発生した場合は、リフレッシュ要求
が終了するまでメモリ・アクセスは待たされ、WG23はレ
ディ信号RDYが“H"になったことを確認した後に終了信
号ENDを出力する。Further, the ready signal RDY of the DMC21 during the refresh operation is "L". When the memory read / write request signal MREQ is generated during the refresh operation, the memory access is kept waiting until the refresh request is completed, and the WG23 confirms that the ready signal RDY has become “H” and then the completion signal. Output END.
<発明が解決しようとする課題> 上記のようなDRAM制御装置にあっては、リフレッシュ
動作時に全てのメモリ・バンクを同時にリフレッシュす
るため、メモリ・バンク数Nが増えると、このバンク数
Nに比例したリフレッシュ電流を必要とする。従って、
リフレッシュ動作時は通常のリード/ライト動作で必要
とする電源電流よりはるかに多くの電流を供給せざるを
得ず、結果として電源の出力容量増加につながるため、
好ましくない。<Problems to be Solved by the Invention> In the DRAM control device as described above, all memory banks are refreshed at the same time during the refresh operation. Therefore, when the number N of memory banks increases, the number N of memory banks is proportional to the number N of banks. Need refresh current. Therefore,
During the refresh operation, it is unavoidable to supply much more current than the power supply current required for normal read / write operation, which results in an increase in the output capacity of the power supply.
Not preferred.
例えば、1メガ・ビットDRAMデバイスを使用し、かつ
N=4,k=32の場合、通常のリード/ライト動作時、平
均電源電流2.7AMaxに対し、リフレッシュ動作時は約7.7
AMaxとなる。For example, if a 1-megabit DRAM device is used and N = 4, k = 32, the average power supply current is 2.7AMax during normal read / write operation, and about 7.7 during refresh operation.
It becomes AMax.
また、リフレッシュ電流が流れることにより、一般に
クロストーク・ノイズ、共通インピーダンス・ノイズが
発生しやすくなり、回路系全体が不安定となるため、好
ましくない。In addition, when the refresh current flows, generally, crosstalk noise and common impedance noise are easily generated, and the entire circuit system becomes unstable, which is not preferable.
更に、DRAMコントローラとしてメーカの標準デバイス
(例えば型式1431等)を用いようとする場合には、全メ
モリ・バンクを同時にリフレッシュするという仕様を変
更できないため、一層問題となる。Further, when a manufacturer's standard device (for example, model 1431 or the like) is used as the DRAM controller, the specification of refreshing all memory banks at the same time cannot be changed, which causes a further problem.
本発明は以上の問題、即ちリフレッシュ時に発生する
大電流を低く押さえようとすることを課題とし、常にメ
モリ・システム回路系の安定動作を実現することを目的
とする。An object of the present invention is to solve the above problems, that is, to suppress a large current generated during refreshing to a low level, and to always realize stable operation of a memory system circuit system.
<課題を解決するための手段> 本発明は、複数メモリ・バンクよりなるDRAMアレイに
対してリード/ライト、リフレッシュを行うDRAMコント
ローラを有するDRAM制御装置において、通常のリフレッ
シュ間隔よりも早い周期でリフレッシュ要求を発生する
リフレッシュ要求発生回路と、予め設定値が設定されて
前記リフレッシュ要求を計数するリフレッシュ要求計数
回路と、前記リフレッシュ要求計数回路からの計数値を
入力して予め設定してある論理構成に従って論理演算を
行いその結果により前記DRAMコントローラから与えられ
る少なくとも1組のロウ・アドレス・ストローブ信号,
カラム・アドレス・ストローブ信号を選択出力する選択
論理回路とを有することを特徴とするDRAM制御装置であ
る。<Means for Solving the Problems> According to the present invention, in a DRAM control device having a DRAM controller for performing read / write and refresh for a DRAM array including a plurality of memory banks, refresh is performed at a cycle faster than a normal refresh interval. A refresh request generation circuit that generates a request, a refresh request counting circuit that sets a preset value and counts the refresh request, and a count value from the refresh request counting circuit that is input according to a preset logical configuration. At least one set of row address strobe signals provided from the DRAM controller according to the result of logical operation,
And a selection logic circuit for selectively outputting a column address strobe signal.
前記リフレッシュ要求発生回路は、メモリ・バンク数
kの場合、通常のリフレッシュ要求間隔時間Tの1/kで
リフレッシュ要求が発生するように外部から所定値が設
定されるスイッチ手段を有し、クロック発生部からのク
ロックを計数して計数値が前記所定値に達した時にリフ
レッシュ要求を発するようにしても良い。The refresh request generating circuit has switch means for externally setting a predetermined value so that a refresh request is generated at 1 / k of a normal refresh request interval time T when the number of memory banks is k, and clock generation is performed. The clock from the unit may be counted, and the refresh request may be issued when the count value reaches the predetermined value.
前記リフレッシュ要求計数回路は、メモリ・バンク数
kに対応する設定値が外部から設定されるスイッチ手段
を有し、前記リフレッシュ要求を計数してメモリ・バン
ク数kに従ってサイクリックに計数値を出力するように
しても良い。The refresh request counting circuit has switch means for externally setting a set value corresponding to the number of memory banks k, counts the refresh request, and cyclically outputs the count value according to the number of memory banks k. You may do it.
CPU側の動作により、前記複数メモリ・バンクに順次
適当なデータをライト/リードして前記データが一致し
た数を実装されているメモリ・バンク数とし、前記リフ
レッシュ要求発生回路はこのメモリ・バンク数を基に内
部レジスタに所定値が設定され、前記リフレッシュ要求
計数回路はこのメモリ・バンク数を基に内部レジスタに
設定値が設定されるようにしても良い。By the operation on the CPU side, appropriate data is sequentially written / read to / from the plurality of memory banks, and the number of matched data is taken as the number of mounted memory banks, and the refresh request generation circuit determines the number of memory banks. A predetermined value may be set in the internal register based on the above, and the refresh request counting circuit may set the set value in the internal register based on the number of memory banks.
<作用> 本発明のDRAM制御装置は、通常よりも早い周期でリフ
レッシュ要求を発生させ、一方このリフレッシュ要求を
計数してこの計数値に対応する少なくとも1個のメモリ
・バンクを選択してリフレッシュ動作を実行する。<Operation> The DRAM control device of the present invention generates a refresh request at a faster cycle than usual, while counting the refresh request, selecting at least one memory bank corresponding to this count value, and performing a refresh operation. To execute.
<実施例> 第1図は本発明を実施したDRAM制御装置の構成を表わ
す図である。<Embodiment> FIG. 1 is a diagram showing the configuration of a DRAM control device embodying the present invention.
本発明装置は、DRAMコントローラDMC21(第7図に示
した従来の物と同一)、リフレッシュ要求発生回路(リ
フレッシュ・タイマ)RFT0 24、リフレッシュ要求計数
回路RBS30、選択論理回路LC31より構成される。The device of the present invention comprises a DRAM controller DMC21 (the same as the conventional one shown in FIG. 7), a refresh request generation circuit (refresh timer) RFT024, a refresh request counting circuit RBS30, and a selection logic circuit LC31.
リフレッシュ要求発生回路(リフレッシュ・タイマ)RF
T0 24は、その機能は第7図に示した従来のリフレッシ
ュ・タイマRFT22と同一であるが、クロック発振器OC241
のクロックCLKをカウントするカウンタRFC242にカウン
ト設定値Vs1を与えるスイッチ手段SW1 243が付加され
る。RFC242はダウン・カウンタであり、スイッチ手段SW
1 243に設定された値Vs1を一旦取り込み、クロックCLK
をダウン・カウントして内容が“0"になるとDMC21にリ
フレッシュ要求RFREQを与える。Refresh request generation circuit (refresh timer) RF
The T0 24 has the same function as the conventional refresh timer RFT22 shown in FIG. 7, but the clock oscillator OC241
A switch means SW1 243 for giving a count set value Vs1 is added to a counter RFC242 which counts the clock CLK of. RFC242 is a down counter, switch means SW
1 Once the value Vs1 set to 243 is fetched, clock CLK
When the counter counts down and the content becomes "0", the refresh request RFREQ is given to the DMC21.
リフレッシュ要求計数回路RBS30は、RFT0 24から発生
するリフレッシュ要求RFREQを計数する計数回路であ
り、カウンタCNT301とスイッチ手段SW2 302により構成
される。CNT301は例えばダウン・カウンタであり、SW2
302に設定された値Vs2を一旦取り込み、リフレッシュ要
求信号RFREQが有効となる毎にこれをダウン・カウント
し、内容が“0"になると再度値Vs2を内部に取り込みサ
イクリックに動作する。例えば値Vs2=2であれば、
“2",“1",“0",“2",“1",“0",…とカウントし、この
カウント値Dは選択論理部LCにlビットで与えられる。The refresh request counting circuit RBS30 is a counting circuit that counts the refresh request RFREQ generated from the RFT024, and is composed of a counter CNT301 and a switch means SW2302. CNT301 is, for example, a down counter, SW2
The value Vs2 set in 302 is once taken in, and every time the refresh request signal RFREQ becomes valid, it is down-counted, and when the content becomes "0", the value Vs2 is taken in again and operates cyclically. For example, if the value Vs2 = 2,
Counting as "2", "1", "0", "2", "1", "0", ..., This count value D is given to the selection logic unit LC by 1 bit.
選択論理回路LC31は、リード/ライト動作時はDMC21
からのロウ・アドレス・ストローブ信号▲▼,カ
ラム・アドレス・ストローブ信号▲▼をそのまま
通過させてDMA部(DRAM素子;図示せず)に出力する。
リフレッシュ動作時は、RBS30のカウント値Dに応じて
ロウ・アドレス・ストローブ信号▲▼〜▲
▼(または▲▼〜▲▼及びカラム
・アドレス・ストローブ信号▲▼〜▲
▼)の内1本または数本を有効(“L")とする。LC31
は、例えばプログラマブル・ロジック・デバイスPLD(P
LS161等)を用いる。Select logic circuit LC31 is DMC21 during read / write operation
The row address strobe signal ▲ ▼ and the column address strobe signal ▲ ▼ are passed through as they are and output to the DMA unit (DRAM element; not shown).
During the refresh operation, the row address strobe signal ▲ ▼ to ▲ according to the count value D of RBS30.
▼ (or ▲ ▼ to ▲ ▼ and column address strobe signal ▲ ▼ to ▲
One or several of ▼) are valid (“L”). LC31
Is a programmable logic device PLD (P
LS161 etc.) is used.
以上のように構成した本発明のDRAM制御装置の動作を
次に説明する。The operation of the DRAM control device of the present invention configured as above will be described below.
ここで、実装可能なメモリ・バンク数N=4、実際に
実装されるメモリ・バンク数k=3(1≦k≦N),l=
2ビット(s=s0,s1)を例とする。また、リフレッシ
ュ・モードとして▲▼ビフォア▲▼リフレ
ッシュを扱うこととする。Here, the number of memory banks that can be mounted N = 4, the number of memory banks that are actually mounted k = 3 (1 ≦ k ≦ N), l =
Two bits (s = s0, s1) are taken as an example. In addition, ▲ ▼ before ▲ ▼ refresh is handled as the refresh mode.
尚、リフレッシュ動作時はメモリ・バンク1個をリフ
レッシュするものとする。従って、LC31には、通常のリ
ード/ライト時とリフレッシュ動作時とに分けて、第2
図に示す論理をプログラムする。It should be noted that one memory bank is refreshed during the refresh operation. Therefore, the LC31 is divided into the second read / write operation and the second refresh operation in the normal operation.
Program the logic shown.
また、RFT0 24のSW1 243には、従来のリフレッシュ要
求間隔時間T0の約1/3(メモリ・バンク数kの場合、1/
k)の時間に相当する時間Tを発生するために必要とさ
れる値Vs1(=T/t;tはクロックCLK周期)を設定し、RBS
30のSW2 302には、値Vs2として値“2"を設定する。In addition, the SW1 243 of the RFT0 24 has about 1/3 of the conventional refresh request interval time T 0 (1/3 when the number of memory banks is k).
Set the value Vs1 (= T / t; t is the clock CLK period) required to generate time T corresponding to
In SW2 302 of 30, the value "2" is set as the value Vs2.
次に、第3図のタイムチャートを用いて(1)メモリ
のリード/ライト・サイクル、(2)メモリ・リフレッ
シュ・サイクルの場合に分けて説明する。Next, the case of (1) memory read / write cycle and (2) memory refresh cycle will be described separately using the time chart of FIG.
(1)リード/ライト・サイクル メモリ・アクセス要求MREQが有効“H"となり、アドレ
ス信号MAD(信号AD,RA,CAを含む)、リード/ライト信
号R/がDMC21に入力される。DMC21では、アクセス要求
信号MREQによるリード/ライト・サイクルとリフレッシ
ュ要求信号RFREQによるリフレッシュ・サイクルの優先
順位を決定する。リフレッシュ実行中でなければDMC21
のレディ信号RDYは“H"でリード・ライト・サイクルを
開始し、リフレッシュ実行中であればリード/ライトの
受付は待たされる。(1) Read / write cycle The memory access request MREQ becomes valid "H", and the address signal MAD (including signals AD, RA, CA) and the read / write signal R / are input to the DMC21. The DMC 21 determines the priority of the read / write cycle by the access request signal MREQ and the refresh cycle by the refresh request signal RFREQ. DMC21 if refresh is not in progress
When the ready signal RDY is "H", the read / write cycle is started, and if the refresh is being executed, acceptance of read / write is waited.
DMC21からはアドレスAD、ライト有効信号▲▼と
ともに、バンク選択信号BSで選択された該当メモリ・バ
ンク#i(i=1,2,3)に対応するロウ・アドレス・ス
トローブ信号▲▼,カラム・アドレス・ストロ
ーブ信号▲▼のみが“L"レベルとして出力され
る。From the DMC21, along with the address AD and the write enable signal ▲ ▼, the row address strobe signal ▲ ▼ and the column data corresponding to the corresponding memory bank #i (i = 1,2,3) selected by the bank selection signal BS Only the address strobe signal ▲ ▼ is output as "L" level.
LC31では、レディ信号RDY“H"によりリード/ライト
・サイクルが開始したことを知り、DMC21で発生したロ
ウ・アドレス・ストローブ信号▲▼“L"、カラ
ム・アドレス・ストローブ信号▲▼“L"を信号
▲▼,▲▼として入力し、第2図
の論理表に従って対応する信号▲▼,▲
▼を順次“L"レベルとする。The LC31 learns that the read / write cycle has started with the ready signal RDY “H”, and then detects the row address strobe signal ▲ ▼ “L” and the column address strobe signal ▲ ▼ “L” generated by the DMC21. Input as signals ▲ ▼, ▲ ▼, and corresponding signals ▲ ▼, ▲ according to the logic table of FIG.
Set ▼ to “L” level in sequence.
一方、DRAM側(図示せず)にはアドレスAD、ライト有
効信号▲▼が入力され、該当メモリ・バンク#iに
ロウ・アドレス・ストローブ信号▲▼、カラム
・アドレス・ストローブ信号▲▼が“L"レベル
で与えられ、リード/ライト動作が実行される。第3図
のタイムチャートの動作例ではi=1(バンク#1)で
ある。On the other hand, the address AD and the write valid signal ▲ ▼ are input to the DRAM side (not shown), and the row address strobe signal ▲ ▼ and the column address strobe signal ▲ ▼ are set to "L" to the corresponding memory bank #i. "Given at level, read / write operations are performed. In the operation example of the time chart of FIG. 3, i = 1 (bank # 1).
WG23ではアクセス要求信号MREQ“H"及びレディ信号RD
Y“H"を検出し、一定時間(メモリのアクセス・タイム
に相当する時間)待った後、終了信号ENDを出力する。In WG23, access request signal MREQ “H” and ready signal RD
Detects "H", waits for a certain time (time corresponding to memory access time), then outputs end signal END.
これでメモリのリード/ライト・サイクルは終了す
る。This completes the memory read / write cycle.
(2)リフレッシュ・サイクル RFT0 24からのリフレッシュ要求信号RFREQが有効“H"
となると、信号RFREQはDMC21とRBS30内のCNT301に与え
られる。(2) Refresh cycle Refresh request signal RFREQ from RFT0 24 is valid “H”
Then, the signal RFREQ is given to the CNT 301 in the DMC 21 and RBS 30.
DMC21では、リフレッシュ要求信号RFREQによるリフレ
ッシュ・サイクルとアクセス要求信号MREQによるリード
/ライト・サイクルとの優先順位を決定する。リフレッ
シュ要求RFREQが有効となった時点でアクセス要求信号M
REQ“H"であると、アクセス要求信号MREQ“L"になるま
でリフレッシュ要求の受付は待たされる。アクセス要求
信号MREQ“L"であると直ちにリフレッシュ動作が開始す
る。リフレッシュ・サイクルが開始するとDMC21のレデ
ィ信号RDYは“L"となる。The DMC 21 determines the priority of the refresh cycle by the refresh request signal RFREQ and the read / write cycle by the access request signal MREQ. Access request signal M when refresh request RFREQ becomes valid
If it is REQ "H", the refresh request is not accepted until the access request signal MREQ "L". When the access request signal MREQ is "L", the refresh operation starts immediately. When the refresh cycle starts, the ready signal RDY of DMC21 becomes “L”.
この時DMC21から全メモリ・バンクに対応するロウ・
アドレス・ストローブ信号▲▼〜▲
▼,カラム・アドレス・ストローブ信号▲▼〜
▲▼は全て“L"である。RBS30内のCNT301は、
リフレッシュ要求信号RFREQを+1ダウン・カウント
し、その結果をlビット(l=2即ち第3図にあっては
s1=“H",s0=“L"よりs1=“L",s0=“H"にダウン・カ
ウント)としてLC31に出力する。At this time, the row corresponding to all memory banks from DMC21
Address strobe signal ▲ ▼ 〜 ▲
▼, column address strobe signal ▲ ▼
▲ ▼ are all "L". CNT301 in RBS30 is
The refresh request signal RFREQ is counted down by +1 and the result is 1 bit (l = 2, that is, in FIG. 3,
It is output to LC31 as s1 = "H", s0 = "L" and s1 = "L", s0 = "H" (down count).
LC31は、レディ信号RDY“L"であることによりリフレ
ッシュ・サイクルが開始したことを知り、第2図に示し
た論理表に従ってカウント値(s1=“L",s0=“H")に
該当するメモリ・バンク#i(この例ではメモリ・バン
ク#2)を選択し、対応する信号▲▼,▲
▼を(i=2)“L"として出力する。The LC31 knows that the refresh cycle has started due to the ready signal RDY "L", and corresponds to the count value (s1 = "L", s0 = "H") according to the logic table shown in FIG. Select memory bank #i (memory bank # 2 in this example) and select the corresponding signal ▲ ▼, ▲
Output ▼ as (i = 2) "L".
DRAM側ではメモリ・バンク#2のみにロウ・アドレス
・ストローブ信号▲▼,カラム・アドレス・ス
トローブ信号▲▼が与えられてリフレッシュ動
作が開始される。On the DRAM side, the row address strobe signal ▲ ▼ and the column address strobe signal ▲ ▼ are given only to the memory bank # 2 to start the refresh operation.
DMC21はリフレッシュ動作が終了すると、レディ信号R
DYを“L"とする。When the refresh operation is completed, DMC21 returns ready signal R
Set DY to “L”.
これでメモリ・バンク#2のリフレッシュ動作は終了
する。This completes the refresh operation of memory bank # 2.
尚、上記の例の説明にあってはリフレッシュ・モード
として▲▼ビフォア▲▼リフレッシュ・モ
ードの場合を例に挙げたが、▲▼オンリー・リフ
レッシュ・モードの場合も同様に扱うことができる。In the above description of the example, the refresh mode is the before-refresh mode. However, the refresh mode can be handled in the same manner.
また、上記の例では、LC31の論理をリフレッシュ時に
メモリ・バンクを1個のみ選択するように論理を構成し
たが、数バンクを同時にリフレッシュするような論理構
成にしても良い。この際は、リフレッシュ要求が多く発
生するようにRFT0 24内のSW1 243の設定をその分大きい
値に変更する。例えば、メモリ・バンクを2個同時(バ
ンク#1,#2同時またはバンク#3,#4同時)にリフレ
ッシュする場合のLC31の論理構成を第4図の表に示す。Further, in the above example, the logic of LC31 is configured so that only one memory bank is selected at the time of refreshing, but it may be configured so that several banks are refreshed at the same time. At this time, the SW1 243 setting in the RFT0 24 is changed to a correspondingly larger value so that many refresh requests are generated. For example, the table of FIG. 4 shows the logical configuration of the LC31 when two memory banks are refreshed simultaneously (banks # 1 and # 2 simultaneously or banks # 3 and # 4 simultaneously).
第1図の実施例においては、実際に実装されたメモリ
・バンク数k(1≦k≦N)に応じて、RFT0 24,RBS30
内のSW1 243,SW2 302にそれぞれ値を手動でスイッチ設
定しているが、構築するシステムによってメモリ・バン
ク数が異なる場合に、その都度最適な値を手動で設定す
るのは煩わしく、また、誤設定を招く危険もあるので好
ましくない。In the embodiment shown in FIG. 1, RFT0 24 and RBS30 are set according to the number k of memory banks actually mounted (1 ≦ k ≦ N).
Values are manually set for SW1 243 and SW2 302 in the above, but when the number of memory banks is different depending on the system to be built, it is bothersome and erroneous to manually set the optimum value each time. It is not preferable because there is a risk of setting.
このような場合にはSW1 243,SW2 302の代わりに、第
5図(a),(b)に示すように、リフレッシュ要求発
生回路RFT0 24にレジスタRGE1 244、リフレッシュ要求
計数回路RBSにレジスタREG2 303を設けて、例えば第6
図に示すようなフローチャートの動作プログラムをCPU
側に設定し、CPUより値Vs1,Vs2をレジスタREG1 244,REG
2 302に設定するようにしても良い。In such a case, instead of SW1 243 and SW2 302, as shown in FIGS. 5 (a) and 5 (b), the refresh request generation circuit RFT0 24 has a register RGE1 244 and the refresh request counting circuit RBS has a register REG2 303. For example, the sixth
The operation program of the flow chart as shown in the figure
Set the value to Vs1 and Vs2 from the CPU to register REG1 244, REG
It may be set to 2 302.
即ち、実装可能最大メモリ・バンク数をNとし、(N
−1)をREG1 244に設定し、メモリ・バンク数Nの場合
のリフレッシュ要求間隔時間を生成するために必要な値
をREG2 303に設定する。That is, the maximum number of memory banks that can be mounted is N, and (N
-1) is set in REG1 244, and a value necessary to generate the refresh request interval time in the case of the number of memory banks N is set in REG2 303.
そして実装されているメモリ・バンクに順次適当なデ
ータをライト/リードし、このデータが一致した数(j
−1)を実際に実装されているメモリ・バンク数とし、
値(j−2)を値Vs2としてREG2 303に設定する。一
方、メモリ・バンク数(j−2)に応じたリフレッシュ
要求間隔時間を生成するのに必要な値Vs1をREG1 244に
再設定する。Then, appropriate data is sequentially written / read to / from the mounted memory banks, and the number of matching data (j
-1) is the number of memory banks actually mounted,
The value (j-2) is set in REG2 303 as the value Vs2. On the other hand, the value Vs1 necessary for generating the refresh request interval time according to the number of memory banks (j-2) is reset in REG1 244.
このようにして値Vs1,V、s2を決定することにより、
種々のシステムに対応することができる。By determining the values Vs1, V, s2 in this way,
It can support various systems.
尚、第1図の例では論理選択回路LC31とリフレッシュ
要求計数回路RBS30を別に構成して付加したが、DRAMコ
ントローラDMC21内に組み込むようにしても良い。Although the logic selection circuit LC31 and the refresh request counting circuit RBS30 are separately configured and added in the example of FIG. 1, they may be incorporated in the DRAM controller DMC21.
<発明の効果> 本発明のDRAM制御装置によれば次の効果が得られる。<Effects of the Invention> According to the DRAM control device of the present invention, the following effects can be obtained.
複数メモリ・バンクよりなるDRAMアレイにおいて、リ
フレッシュ動作を行う際に、予め与えられた指定情報に
基づきいずいれか1個または複数のメモリ・バンクのみ
をリフレッシュするので、全メモリ・バンクを同時にリ
フレッシュする場合に比較してリフレッシュ電流を大幅
に低減することができる。In a DRAM array consisting of multiple memory banks, when performing a refresh operation, either one or multiple memory banks are refreshed based on previously designated information, so that all memory banks are refreshed at the same time. The refresh current can be significantly reduced as compared with the case of performing.
また、実装可能なメモリ・バンク数に対して実際に実
装されたメモリ・バンク数が少ない場合にはメモリ・バ
ンク数に応じてリフレッシュ要求間隔時間を設定してい
るため、リフレッシュ要求間隔時間固定の従来の装置と
比較して無駄なリフレッシュ動作を省き、メモリのリー
ド/ライト動作の処理効率の低下を防ぐことができる。If the number of memory banks actually mounted is smaller than the number of memory banks that can be mounted, the refresh request interval time is set according to the number of memory banks. Compared with the conventional device, useless refresh operation can be omitted, and reduction in processing efficiency of memory read / write operation can be prevented.
更に、実際のメモリ・バンク数及びリフレッシュ要求
間隔時間に対応した値をレジスタにそれぞれプログラム
により自動的に設定できるような構成も可能であるた
め、システムによってメモリ・バンク数が異なる場合で
も手動設定に頼らなくて良い。Furthermore, it is possible to configure the registers to automatically set the values corresponding to the actual number of memory banks and refresh request interval time, so that even if the number of memory banks differs depending on the system, manual setting is possible. You don't have to rely on it.
第1図は本発明を実施したDRAM制御装置の構成を表わす
ブロック図、第2図は本発明装置における選択論理回路
LC31内にプログラムされる論理構成を表わす表、第3図
は本発明装置の動作を表わすタイムチャート、第4図は
本発明装置における選択論理回路LC31内にプログラムさ
れる他の論理構成を表わす表、第5図(a)は本発明装
置におけるリフレッシュ要求発生回路RFT0 24の他の構
成例、第5図(b)は本発明装置のリフレッシュ要求計
数回路RBS30の他の構成例、第6図は第5図(a),
(b)の構成を用いた場合の本発明装置の動作を表わす
タイムチャート、第7図は従来のDRAM制御装置を表わす
ブロック図、第8図(a),(b)は従来の装置におけ
るリフレッシュ動作を表わすタイムチャートである。 1……DMA部、2……DMC部、 21……DRAMコントローラDMC、 22……リフレッシュ・タイマRFT、 23……ウェイト・ステイト発生部WG、 24……リフレッシュ要求発生回路RFT0、 241……クロック発生部OC、 242……ダウン・カウンタRFC、 243……スイッチ手段SW1、 244……レジスタREG1、 30……リフレッシュ要求計数回路RBS、 31……選択論理回路LC、 301……ダウン・カウンタCNT、 302……スイッチ手段SW2、 303……レジスタREG2。FIG. 1 is a block diagram showing the configuration of a DRAM control device embodying the present invention, and FIG. 2 is a selection logic circuit in the device of the present invention.
FIG. 3 is a time chart showing the operation of the device of the present invention. FIG. 4 is a table showing another logic configuration programmed in the selection logic circuit LC31 in the device of the present invention. 5 (a) is another configuration example of the refresh request generation circuit RFT024 in the device of the present invention, FIG. 5 (b) is another configuration example of the refresh request counting circuit RBS30 of the device of the present invention, and FIG. Fig. 5 (a),
FIG. 7 is a time chart showing the operation of the device of the present invention in the case of using the configuration of (b), FIG. 7 is a block diagram showing a conventional DRAM control device, and FIGS. 8 (a) and 8 (b) are refreshing in the conventional device. It is a time chart showing an operation. 1 ... DMA block, 2 ... DMC block, 21 ... DRAM controller DMC, 22 ... Refresh timer RFT, 23 ... Wait state generating section WG, 24 ... Refresh request generating circuit RFT0, 241 ... Clock Generator OC, 242 ...... Down counter RFC, 243 ...... Switch means SW1, 244 ...... Register REG1, 30 ...... Refresh request counting circuit RBS, 31 ...... Selection logic circuit LC, 301 ...... Down counter CNT, 302 …… Switch means SW2, 303 …… Register REG2.
Claims (4)
対してリード/ライト、リフレッシュを行うDRAMコント
ローラを有するDRAM制御装置において、通常のリフレッ
シュ間隔よりも早い周期でリフレッシュ要求を発生する
リフレッシュ要求発生回路と、予め設定値が設定されて
前記リフレッシュ要求を計数するリフレッシュ要求計数
回路と、前記リフレッシュ要求計数回路からの計数値を
入力して予め設定してある論理構成に従って論理演算を
行いその結果により前記DRAMコントローラから与えられ
る少なくとも1組のロウ・アドレス・ストローブ信号,
カラム・アドレス・ストローブ信号を選択出力する選択
論理回路とを有することを特徴とするDRAM制御装置。1. A refresh request generation circuit for generating a refresh request at a cycle faster than a normal refresh interval in a DRAM controller having a DRAM controller for reading / writing and refreshing a DRAM array composed of a plurality of memory banks. A refresh request counting circuit that sets a preset value and counts the refresh request; and a count value from the refresh request counting circuit that is input to perform a logical operation according to a preset logical configuration At least one set of row address strobe signals provided from the DRAM controller,
A DRAM control device comprising: a selection logic circuit which selectively outputs a column address strobe signal.
・バンク数kの場合、通常のリフレッシュ要求間隔時間
Tの1/kでリフレッシュ要求が発生するように外部から
所定値が設定されるスイッチ手段を有し、クロック発生
部からのクロックを計数して計数値が前記所定値に達し
た時にリフレッシュ要求を発することを特徴とする請求
項(1)記載のDRAM制御装置。2. The refresh request generating circuit comprises a switch means for externally setting a predetermined value so that a refresh request is generated at 1 / k of a normal refresh request interval time T when the number of memory banks is k. 2. The DRAM control device according to claim 1, further comprising: counting a clock from the clock generation unit and issuing a refresh request when the count value reaches the predetermined value.
・バンク数kに対応する設定値が外部から設定されるス
イッチ手段を有し、前記リフレッシュ要求を計数してメ
モリ・バンク数kに従ってサイクリックに計数値を出力
することを特徴とする請求項(2)記載のDRAM制御装
置。3. The refresh request counting circuit has switch means for externally setting a set value corresponding to the number k of memory banks, counting the refresh requests and cyclically according to the number k of memory banks. The DRAM control device according to claim 2, wherein the DRAM control device outputs a count value.
ンクに順次適当なデータをライト/リードして前記デー
タが一致した数を実装されているメモリ・バンク数と
し、前記リフレッシュ要求発生回路はこのメモリ・バン
ク数を基に内部レジスタに所定値が設定され、前記リフ
レッシュ要求計数回路はこのメモリ・バンク数を基に内
部レジスタに設定値が設定されることを特徴とする請求
項(1)記載のDRAM制御装置。4. The operation on the CPU side sequentially writes / reads appropriate data in the plurality of memory banks, and sets the number of the matched data as the number of mounted memory banks, and the refresh request generation circuit The predetermined value is set in the internal register based on the number of memory banks, and the refresh request counting circuit is set to the set value in the internal register based on the number of memory banks. The DRAM control device described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63209647A JP2512999B2 (en) | 1988-08-24 | 1988-08-24 | DRAM controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63209647A JP2512999B2 (en) | 1988-08-24 | 1988-08-24 | DRAM controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0258793A JPH0258793A (en) | 1990-02-27 |
JP2512999B2 true JP2512999B2 (en) | 1996-07-03 |
Family
ID=16576262
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63209647A Expired - Lifetime JP2512999B2 (en) | 1988-08-24 | 1988-08-24 | DRAM controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2512999B2 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3112020B2 (en) * | 1990-06-18 | 2000-11-27 | 株式会社日立製作所 | Dynamic RAM control circuit |
TW432650B (en) | 1999-04-16 | 2001-05-01 | Cts Comp Technology System Cor | Semiconductor chip device and the manufacturing method thereof |
JP3620434B2 (en) | 2000-07-26 | 2005-02-16 | 株式会社日立製作所 | Information processing system |
JP5109388B2 (en) * | 2007-02-07 | 2012-12-26 | 富士通セミコンダクター株式会社 | Memory device, memory controller and memory system |
US10593392B1 (en) * | 2018-12-19 | 2020-03-17 | Micron Technology, Inc. | Apparatuses and methods for multi-bank refresh timing |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS53126229A (en) * | 1977-04-11 | 1978-11-04 | Nec Corp | Memory unit |
JPS57181494A (en) * | 1981-05-01 | 1982-11-08 | Fujitsu Ltd | Refreshing method for dynamic memory |
JPS6196597A (en) * | 1984-10-18 | 1986-05-15 | Mitsubishi Electric Corp | Main memory device of computer |
-
1988
- 1988-08-24 JP JP63209647A patent/JP2512999B2/en not_active Expired - Lifetime
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS53126229A (en) * | 1977-04-11 | 1978-11-04 | Nec Corp | Memory unit |
JPS57181494A (en) * | 1981-05-01 | 1982-11-08 | Fujitsu Ltd | Refreshing method for dynamic memory |
JPS6196597A (en) * | 1984-10-18 | 1986-05-15 | Mitsubishi Electric Corp | Main memory device of computer |
Also Published As
Publication number | Publication date |
---|---|
JPH0258793A (en) | 1990-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4077874B2 (en) | Dynamic random access memory system | |
EP1163598B1 (en) | Microprocessing device having programmable wait states | |
US5907857A (en) | Refresh-ahead and burst refresh preemption technique for managing DRAM in computer system | |
US6519689B2 (en) | Method and system for processing pipelined memory commands | |
JPH03149635A (en) | Memory control unit | |
JP2512999B2 (en) | DRAM controller | |
JPS61118850A (en) | Microprocessor | |
US6094703A (en) | Synchronous SRAM having pipelined memory access enable for a burst of addresses | |
JP3443689B2 (en) | Arbiter circuit | |
JPS63266576A (en) | Digital signal processing device | |
JP2000067576A (en) | Semiconductor storage device | |
JPH051504B2 (en) | ||
JP3151832B2 (en) | DMA controller | |
JP2914279B2 (en) | High-speed memory access device | |
JPH07146814A (en) | Memory device | |
JP2606824Y2 (en) | Multiport memory device | |
JPH06103026A (en) | Memory system | |
JP2002251883A (en) | Semiconductor storage device and information processing system | |
JPH10320975A (en) | Semiconductor-type memory device | |
JP3033334B2 (en) | Data storage device | |
JP2659886B2 (en) | Processor system | |
JPH0721113A (en) | Multiprocessor system | |
JPH07248995A (en) | Information processor | |
JPH04153984A (en) | Method for controlling dynamic memory | |
JPH04153750A (en) | Control system for main storage |