JPH0258793A - Dram controller - Google Patents
Dram controllerInfo
- Publication number
- JPH0258793A JPH0258793A JP63209647A JP20964788A JPH0258793A JP H0258793 A JPH0258793 A JP H0258793A JP 63209647 A JP63209647 A JP 63209647A JP 20964788 A JP20964788 A JP 20964788A JP H0258793 A JPH0258793 A JP H0258793A
- Authority
- JP
- Japan
- Prior art keywords
- refresh
- refresh request
- memory banks
- control device
- dram
- 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.)
- Granted
Links
Landscapes
- Dram (AREA)
Abstract
Description
【発明の詳細な説明】
〈産業上の利用分野〉
本発明は、複数バンクよりなるDRAM(Dyn−an
ic Randon Access Hen+ory
)アレイに対してリード/ライト、リフレッシュを制御
するDRAMコントローラを核とするDRAM制御装置
に関するものであり、特にDRAMアレイのリフレッシ
ュ方式に改善を施すものである。[Detailed Description of the Invention] <Industrial Application Field> The present invention is directed to a DRAM (Dyn-an
ic Randon Access Hen+ory
) This invention relates to a DRAM control device that has a DRAM controller at its core that controls read/write and refresh operations for an array, and in particular improves the DRAM array refresh method.
〈従来の技術〉
DRAMはメイン・フレーム・メモリ、バッファ・メモ
リ、画像メモリ等大容量を要求されるメモリ・システム
に多く使用されている。<Prior Art> DRAMs are often used in memory systems that require large capacity, such as main frame memories, buffer memories, and image memories.
従来のDRAMシステムの代表的な例を第7図のブロッ
ク図に示す。A typical example of a conventional DRAM system is shown in the block diagram of FIG.
この図に示すシステムは、大きく分けてDMA部l、D
MCM2O3個の主要部より構成される。The system shown in this figure is roughly divided into DMA sections I and D.
Consists of three main parts of MCM2O.
DMA部1は、DRAMアレイであり、バンク#1から
#NのN個のメモリ・バンクより構成され、更に各メモ
リ・バンクはに個のD RA Mメモリ素子よりなる。The DMA unit 1 is a DRAM array, and is composed of N memory banks #1 to #N, and each memory bank is composed of DRAM memory elements.
即ちデータ幅はにビットである。That is, the data width is 2 bits.
DMCM2O3DMA部1を制御するDRAMコントロ
ーラであり、D M C21、リフレッシュ・タイマR
FT22、ウェイ1へ・ステイ)〜発生部WG23より
なる。DMCM2O3 A DRAM controller that controls the DMA section 1, and includes the DMC21, refresh timer R
FT22, go to way 1/stay) to generation part WG23.
D M C21はDRAMコントローラであり、例えば
CPU側からメモリ・バンク選択信号BS (1ビツト
)、ロウ・アドレスRA、カラム・アドレスCA、メモ
リ・リード/ライト・アクセス要求信号M R1シQ、
リード/ライト信号R/Wを受(ブて、メモリ・バンク
選択信号BS″C″選択された、いずれか1つのメモリ
・バンクのみにアドレスAD(ロウ・アドレスRA、カ
ラム・アドレスCAを含む)、ロウ・アドレス・ストロ
ーブ信号nリフレッシュ・タイマRF’f”22は、一
定間隔1゛o(例えはTo<15.6μs = 8m
s 1512リフレツシユ・サイクル)でD M C2
1にリフレッシュ要求RFREQを与えるタイマである
。DMC21 is a DRAM controller, and receives, for example, a memory bank selection signal BS (1 bit), row address RA, column address CA, memory read/write access request signal MR1SIQ, from the CPU side.
Upon receiving read/write signal R/W, address AD (including row address RA and column address CA) is sent to only one memory bank selected by memory bank selection signal BS"C". , row address strobe signal n refresh timer RF'f'' 22 is transmitted at a constant interval of 1゛o (for example, To<15.6μs = 8m
s 1512 refresh cycle)
This is a timer that provides a refresh request RFREQ to 1.
ウェイト・ステイト発生部WG23は、DRAMのリー
ド/ライト動作の終了を例えはCPLJII!+に知ら
せるために、アクセス要求信号MREQ及びD M C
21からレディ信号RT) Yを受けて終了信号END
を生成する。The wait state generation unit WG23 indicates the end of the DRAM read/write operation, for example, CPLJII! + to inform the access request signal MREQ and DMC
Ready signal RT from 21) End signal END upon receiving Y
generate.
このような構成により、各メモリ・バンクはアドレス信
号AD、ロウ・アドレス・ストローブ信号RASi、カ
ラム・アドレス・ストローブ信号CAS i 、ライト
有効信号WEを受け、W〒−”H”の時はリード動作を
行ってリード・データDOUT(kビット)をデータ・
バスDBに送出し、WE−”L”の時はライト動作を行
ってライト・データD IN (kピット)をデータ・
バスDBより取り込む。通常、ロウ・アドレス・ストロ
ーブ信号RASi、カラム・アドレス・ストローブ信号
CASiが有効となったいずれか1個のメモリ・バンク
かアクセスされる。With this configuration, each memory bank receives an address signal AD, a row address strobe signal RASi, a column address strobe signal CAS i, and a write enable signal WE, and when W - "H", a read operation is performed. and read data DOUT (k bits) as data.
When WE- is “L”, write operation is performed and write data D IN (k pit) is sent to bus DB.
Import from bus DB. Normally, one of the memory banks for which row address strobe signal RASi and column address strobe signal CASi are enabled is accessed.
リフレッシュ(再書き込み)動作時は、第8図に示すよ
うなタイミングにより、(a)RASオンリー・リフレ
ッシュ、または(b)CASビフォアRASリフレッシ
ュが行われる。During a refresh (rewrite) operation, (a) RAS only refresh or (b) CAS before RAS refresh is performed according to the timing shown in FIG.
リフレッシュ実行時は、(a)RASオンリー・リフレ
ッシュまたは(b)CASビフォアRASリフレッシュ
にかかわらず、メモリ・バンク選択信号BSによらず、
全てのロウ・アドレス・スびカラム・アドレス・ストロ
ーブ信号CASI〜CASN)は有効となり、これによ
りメモリ・バンク#]から#Nまで同時にリフレッシュ
される。When performing a refresh, regardless of (a) RAS only refresh or (b) CAS before RAS refresh, regardless of the memory bank selection signal BS,
All row address, column address, and strobe signals (CASI to CASN) become valid, thereby causing memory banks #] to #N to be refreshed simultaneously.
また、リフレッシュ動作中のDMC21のレディ信号R
I) Yは” L ”である。リフレッシュ動作中にメ
モリ・リード/ライト要求信号MREQが発生した場合
は、リフレッシュ動作か終了するまでメモリ・アクセス
は待たされ、WG23はレディ信号RDYが″“H”に
なったことを確認した後に終了信号E N Dを出力す
る。Also, the ready signal R of the DMC21 during refresh operation
I) Y is "L". If the memory read/write request signal MREQ occurs during a refresh operation, memory access is made to wait until the refresh operation is completed, and the WG 23 terminates after confirming that the ready signal RDY has become "H". Outputs signal END.
〈発明が解決しようとする課題〉
上記のようなりRAM制御装置にあっては、リフレッシ
ュ動作時に全てのメモリ・バンクを同時にリフレッシュ
するため、メモリ・バンク数Nが増えると、このバンク
数Nに比例したリフレッシュ電流を必要とする。従って
、リフレッシュ動作時は通常のリード/ライト動作で必
要とする電源電流よりはるかに多くの電流を供給せざる
を得す、結果として電源の出力容量増加につながるなめ
、好ましくない。<Problems to be Solved by the Invention> In the RAM control device as described above, all memory banks are refreshed at the same time during the refresh operation, so when the number of memory banks N increases, the Requires a high refresh current. Therefore, during the refresh operation, it is necessary to supply a much larger power supply current than that required for normal read/write operations, which is undesirable because it results in an increase in the output capacity of the power supply.
例えば、1メカ・ビットDRAMデバイスを使用し、か
つN=4.に=32の場合、通常のリード/ライト動作
時、平均電源電流2.7A Haxに対し、リフレッシ
ュ動作時は約7.7A Haxとなる。For example, if a 1 mecha-bit DRAM device is used and N=4. In the case of =32, the average power supply current is 2.7 A Hax during normal read/write operations, whereas the average power supply current is approximately 7.7 A Hax during refresh operations.
また、リフレッシュ電流が流れることにより、一般にク
ロストーク・ノイズ、共通インピーダンス・ノイズが発
生しやすくなり、回路系全体か不安定となるため、好ま
しくない。Furthermore, the flow of the refresh current generally tends to cause crosstalk noise and common impedance noise, making the entire circuit system unstable, which is undesirable.
更に、DRAMコントローラとしてメーカの標準デバイ
ス(例えば型式1431等)を用いようとする場合には
、全メモリ・バンクを同時にリフレッシュするという仕
様を変更できないため、層問題となる。Furthermore, if a manufacturer's standard device (for example, model 1431, etc.) is to be used as a DRAM controller, a layer problem arises because the specification of refreshing all memory banks at the same time cannot be changed.
本発明は以上の問題、即ちリフレッシュ時に発生ずる大
電流を低く押さえようとすることを課題とし、常にメモ
リ・システム回路系の安定動作を実現することを目的と
する。The present invention addresses the above-mentioned problem, ie, attempts to suppress the large current generated during refresh, and aims to always realize stable operation of the memory system circuitry.
く課題を解決するための手段〉
本発明は、複数メモリ・バンクよりなるDRAMアレイ
に対してリード/ライト、リフレッシュを行うDRAM
コントローラを有するDRAM制御装置において、通常
のリフレッシュ間隔よりも早い周期でリフレッシュ要求
を発生ずるリフレッシュ要求発生回路と、予め設定値が
設定されて前記リフレッシュ要求を計数するリフレッシ
ュ要求計数回路と、前記リフレッシュ要求を受けて前記
リフレッシュ要求計数回路の計数値に応じて前記複数メ
モリ・バンクの内部なくとも1個のメモリ・バンクを選
択する選択論理回路とを有することを特徴とするDRA
M制御装置である。Means for Solving the Problems> The present invention provides a DRAM that performs read/write and refresh operations on a DRAM array consisting of a plurality of memory banks.
In a DRAM control device having a controller, a refresh request generating circuit generates a refresh request at a cycle faster than a normal refresh interval, a refresh request counting circuit has a set value set in advance and counts the refresh requests, and the refresh request and a selection logic circuit for receiving the refresh request counting circuit and selecting at least one memory bank from among the plurality of memory banks according to the count value of the refresh request counting circuit.
M control device.
前記リフレッシュ要求発生回路は、メモリ・バンク数に
の場合、通常のリフレッシュ要求間隔時間Tの1/kで
リフレッシュ要求が発生するように外部から所定値が設
定されるスイッチ手段を有し、クロック発生部からのタ
ロツクを計数して計数値が前記所定値に達した時にリフ
レッシュ要求を発するようにしても良い。The refresh request generation circuit has a switch means to which a predetermined value is externally set so that a refresh request is generated at 1/k of the normal refresh request interval time T in the case of the number of memory banks. Alternatively, the refresh request may be issued when the tally from the department is counted and the counted value reaches the predetermined value.
前記リフレッシュ要求計数回路は、メモリ・バンク数k
に対応する設定値が外部から設定されるスイッチ手段を
有し、前記リフレッシュ要求を計数してメモリ・バンク
数kに従ってサイクリックに計数値を出力するようにし
ても良い。The refresh request counting circuit calculates the number of memory banks k
It is also possible to have a switch means for externally setting a setting value corresponding to , and to count the refresh requests and cyclically output the counted value according to the number of memory banks k.
前記選択論理回路は、前記リフレッシュ要求計数回路か
らの計数値を入力して予め設定してある論理構成に従っ
て論理演算を行い、その結果により前記DRAMコント
ローラから与えられる少なくとも1組のロウ・アドレス
・ストローブ信号、カラム・アドレス・ストローブ信号
を選択出力するようにしても良い。The selection logic circuit inputs the count value from the refresh request counting circuit, performs a logical operation according to a preset logic configuration, and based on the result, selects at least one set of row address strobes provided from the DRAM controller. The column address strobe signal may be selectively output.
CPUl111の動作により、前記複数メモリ・バンク
に順次適当なデータをライ)〜/リードして前記データ
が一致した数を実装されているメモリ・バンク数とし、
前記リフレッシュ要求発生回路はこのメモリ・バンク数
を基に内部レジスタに所定値が設定され、前記リフレッ
シュ要求計数回路はこのメモリ・バンク数を基に内部レ
ジスタに設定値が設定されるようにしても良い。By the operation of the CPU 111, appropriate data is sequentially written to/read from the plurality of memory banks, and the number of matched data is set as the number of installed memory banks;
The refresh request generation circuit may set a predetermined value in an internal register based on this number of memory banks, and the refresh request counting circuit may set a set value in an internal register based on this number of memory banks. good.
く作用〉
本発明のDRAM制御装置は、通常よりも早い周期でリ
フレッシュ要求を発生させ、一方このリフレッシュ要求
を計数してこの計数値に対応する少なくとも1個のメモ
リ・バンクを選択してリフレッシュ動作を実行する。Effect> The DRAM control device of the present invention generates a refresh request at a cycle earlier than usual, counts the refresh requests, selects at least one memory bank corresponding to the counted value, and performs a refresh operation. Execute.
〈実施例〉
第1図は本発明を実施したDRAM制御装置の構成を表
わす図である。<Embodiment> FIG. 1 is a diagram showing the configuration of a DRAM control device embodying the present invention.
本発明装置は、D RA Mコントローラr)Me 2
1(第7図に示した従来の物と同一)、リフレッシュ要
求発生回路(リフレッシュ・タイマ)RFT024、リ
フレッシュ要求計数回路RBS30、選択論理回路LC
31より構成される。The device of the present invention includes a DRAM controller r) Me 2
1 (same as the conventional one shown in FIG. 7), refresh request generation circuit (refresh timer) RFT024, refresh request counting circuit RBS30, selection logic circuit LC
Consists of 31.
リフレッシュ要求発生回路(リフレッシュ・タイマンR
F’r’024は、その機能は第7図に示した従来のリ
フレッシュ・タイマRFT22と同一であるが、クロッ
ク発振器OC241のクロックCLKをカウントするカ
ウンタRF C242にカウント設定値Vs1を与える
スイッチ手段S W 1243が付加される。RF C
242はダウン・カウンタであり、スイッチ手段s W
1243に設定されな値Vs1を一旦取り込み、タロ
ツクCL、Kをタウン・カウントして内容が0″になる
とD M C21にリフレッシュ要求RFREQを与え
る。Refresh request generation circuit (refresh timer R
The function of F'r'024 is the same as that of the conventional refresh timer RFT22 shown in FIG. W 1243 is added. R.F.C.
242 is a down counter, and switch means s W
Once the value Vs1 which is not set in 1243 is taken in, the tally clocks CL and K are counted, and when the contents become 0'', a refresh request RFREQ is given to the DMC21.
リフレッシュ要求計数回NRBS30は、RF T02
4から発生するリフレッシュ要求RF RE Qを計数
する計数回路であり、カウンタCN l’ 301とス
イッチ手段S W 2302により構成される。0NT
301は例えばダウン・カウンタであり、5W2302
に設定された値Vs2を一旦取り込み、リフレッシュ要
求信号RF RE Qが有効となる毎にこれをタウン・
カウントし、内容が0″になると再度値Vs2を内部に
取り込みサイクリックに動作する。例えば値Vs2=2
であれば、“′2′″ ” i ”“O′”、°“2
” 、”1” 、 “’o”、・・・とカウントし、
このカウント値りは選択論理部L Cに2ビツトで与え
られる。The refresh request count NRBS30 is RF T02
This is a counting circuit that counts refresh requests RF RE Q generated from 4, and is composed of a counter CN l' 301 and a switch means SW 2302. 0NT
For example, 301 is a down counter, and 5W2302
Once the value Vs2 set in
It counts, and when the content reaches 0'', it takes in the value Vs2 again and operates cyclically.For example, the value Vs2=2
If so, “′2′” ” i ”“O′”, °“2
”, “1”, “'o”, etc.,
This count value is given to the selection logic section LC in 2 bits.
選択論理回路LC31は、リード/ライト動作時はDM
C21からのロウ・アドレス・ストローブ信号RAS、
カラム・アドレス・ストローブ信号CAsをそのまま通
過させてDMA部(1) RA M素子:図示せず)に
出力する。リフレッシュ動作時は、RBS30のカウン
ト値りに応じてロウ・アトは数本を有効(”L” )と
する。LC31は、例えはプログラマブル・ロジック・
デバイスPLD(PLSi6]等)を用いる。The selection logic circuit LC31 is DM during read/write operations.
Row address strobe signal RAS from C21,
The column address strobe signal CAs is passed through as is and output to the DMA section (1) RAM element (not shown). During the refresh operation, several rows are made valid (“L”) according to the count value of the RBS 30. LC31 is, for example, a programmable logic
A device PLD (PLSi6, etc.) is used.
以上のように構成した本発明のDRAM制御装置の動作
を次に説明する。The operation of the DRAM control device of the present invention configured as described above will be explained next.
ここで、実装可能なメモリ・バンク数N=4、実際に実
装されるメモリ・バンク数に=3 (1≦に≦N)、!
=2ビット(s=so、sl)を例とする。また、リフ
レッシュ・モードとしてGASビフォアRASリフレッ
シュを扱うこととする。Here, the number of memory banks that can be implemented is N = 4, and the number of memory banks that are actually implemented is = 3 (1≦≦N)!
=2 bits (s=so, sl) as an example. Furthermore, GAS before RAS refresh will be handled as the refresh mode.
尚、リフレッシュ動作時はメモリ・バンク1個をリフレ
ッシュするものとする。従って、LC31には、通常の
リード/ライト時とリフレッシュ動作時とに分けて、第
2図に示す論理をプログラムする。It is assumed that one memory bank is refreshed during the refresh operation. Therefore, the logic shown in FIG. 2 is programmed into the LC 31 for normal read/write and refresh operations.
また、RF T 024のS W 1243には、従来
のリフレッシュ要求間隔時間1゛oの約1/3(メモリ
・バンク数にの場合、1/k)の時間に相当する時間T
を発生ずるなめに必要とされる値Vsl(T/l;tは
クロックCLK周期)を設定し、RBS30のS W
2302には、値Vs2として値” 2 ”を設定する
。In addition, SW 1243 of RF T 024 has a time T corresponding to approximately 1/3 of the conventional refresh request interval time 1o (1/k in the case of the number of memory banks).
Set the value Vsl (T/l; t is the clock CLK period) required to generate the RBS30 SW
In 2302, the value "2" is set as the value Vs2.
次に、第3図のタイムチャートを用いて(1)メモリの
リード/ライト・サイクル、(2)メモリ・リフレッシ
ュ・サイクルの場合に分けて説明する。Next, using the time chart of FIG. 3, the cases of (1) memory read/write cycle and (2) memory refresh cycle will be explained separately.
(1)リード/ライト・サイクル
メモリ・アクセス要求M Rト″、Qが有効“′Hパと
なり、アドレス信号MAT)(信号AI)、RA、CA
を含む)、リード/ライト信号R/WがD M C21
に入力される。D M C21では、アクセス要求信号
MREQによるリード/ライ1へ・サイクルとリフレッ
シュ要求信号RFREQによるリフレッシュ・サイクル
の優先順位を決定する。リフレッシュ実行中でなければ
DMC21のレディ信号RDYは°′H”でリード・ラ
イト・サイクルを開始し、リフレッシュ実行中であれば
リード/ライトの受付は待たされる。(1) Read/write cycle memory access request M Rt'', Q becomes valid 'H path, address signal MAT) (signal AI), RA, CA
), the read/write signal R/W is DMC21
is input. The DMC 21 determines the priority of the read/write 1 cycle based on the access request signal MREQ and the refresh cycle based on the refresh request signal RFREQ. If a refresh is not being executed, the ready signal RDY of the DMC 21 starts a read/write cycle at °'H'', and if a refresh is being executed, read/write reception is delayed.
DMC21からはアドレスAD、ライト有効信号WEと
ともに、バンク選択信号BSで選択された該当メモリ・
バンク#i (i=1.2.3)に対応するロウ・アド
レス・ストローブ信号RASi。The DMC21 outputs the address AD, write enable signal WE, and the corresponding memory selected by the bank selection signal BS.
Row address strobe signal RASi corresponding to bank #i (i=1.2.3).
カラム・アドレス・ストローブ信号C口]のみか“’
L、 ”レベルとして出力される。Column address strobe signal C port] only "'
L, ” output as level.
LC31では、レディ信号RDY″11″によりリード
/ライト・サイクルか開始したことを知り、0MC21
で発生しなロウ・アドレス・ストローブ信号RASi
“I−5′”、カラム・アドレス・ストローブ信号CA
S i ”I−、”を信号IRASi ICASj
として入力し、第2図の論理表に従って対応する信号O
RA S i 、 OCA S iを順次′冒、″レベ
ルとする。LC31 knows that the read/write cycle has started due to the ready signal RDY"11", and 0MC21
Row address strobe signal RASi
"I-5'", column address strobe signal CA
S i "I-," signal IRASi ICASj
and the corresponding signal O according to the logic table in Figure 2.
RA S i and OCA S i are set to ``progress'' level in sequence.
一方、I) RA M側(図示せず)にはアドレスAI
)、ライト有効信号WEが入力され、該当メモリ・バン
ク#iにロウ・アドレス・ストローブ信号RASi、カ
ラム・アドレス・ストローブ信号CASiか゛′L″レ
ベルで与えられ、リード/ライト動作か実行される。第
3図のタイムチャートの動作例では1−1(バンク#1
)である。On the other hand, there is an address AI on the RAM side (not shown).
), the write enable signal WE is input, and the row address strobe signal RASi and column address strobe signal CASi are applied to the corresponding memory bank #i at the ``L'' level, and a read/write operation is executed. In the operation example of the time chart in Figure 3, 1-1 (bank #1
).
WG23ではアクセス要求信号MREQ”H’″及びレ
ディ信号RDY”H”を検出し、一定時間(メモリのア
クセス・タイムに相当する時間)待った後、終了信号E
N I)を出力する。The WG 23 detects the access request signal MREQ "H'" and the ready signal RDY "H", waits for a certain period of time (a time corresponding to the memory access time), and then outputs the end signal E.
N I) is output.
これでメモリのリード/ライト・サイクルは終了する。This completes the memory read/write cycle.
(2)リフレッシュ・サイクル
RI? ’I’ 02/lからのリフレッシュ要求信号
RF REQが有効” )I ’″となると、信号RF
RE Qは0MC21とRBS30内のCN T 3
01に与えられる。(2) Refresh cycle RI? 'I' When the refresh request signal RF REQ from 02/l becomes valid ")I '", the signal RF
RE Q is CN T 3 in 0MC21 and RBS30
01.
1)MC21では、リフレッシュ要求信号RFREQに
よるリフレッシュ・サイクルとアクセス要求信号MRE
Qによるリード/ライ1へ・サイクルとの優先順位を決
定する。リフレッシュ要求RF REQが有効となった
時点でアクセス要求信号M REQ”H”であると、ア
クセス要求信号M REQ” L ”になるまでリフレ
ッシュ要求の受イ1は待たされる。アクセス要求信号M
REQ”L’”であると直ちにリフレッシュ動作か開始
する。リフレッシュ・サイクルか開始するとD M C
21のレディ信号RJ) Yは’ L ”となる。1) In the MC21, the refresh cycle by the refresh request signal RFREQ and the access request signal MRE
Determine the priority order of read/write to 1 cycle by Q. If the access request signal M REQ is "H" at the time the refresh request RF REQ becomes valid, reception of the refresh request 1 is delayed until the access request signal M REQ becomes "L". Access request signal M
If REQ is "L'", the refresh operation starts immediately. When a refresh cycle starts, DMC
The ready signal RJ) Y of 21 becomes 'L'.
この時DMC21から全メモリ・バンクに対応するロウ
・アドレス・ストローブ信号RASI〜RAS4.カラ
ム・アドレス・ストローブ信号CAS1〜CAS4は全
て“L″である。RBS30内のCN’r301は、リ
フレッシュ要求信号RFREQを+1ダウン・カウント
し、その結果を!ビット(/=2即ち第3図にあっては
Sl−“1−ビs O= ” L、”よりs 1− =
”L” 、 s O= ”H”にダウン・カウント)
としてLC31に出力する。At this time, the DMC 21 sends row address strobe signals RASI to RAS4. Column address strobe signals CAS1 to CAS4 are all "L". CN'r301 in RBS30 counts down the refresh request signal RFREQ by +1 and outputs the result! bit (/=2, that is, in FIG.
“L”, s O = count down to “H”)
It is output to the LC31 as
L、C31は、レディ信号RDY”’ L ”であるこ
とによりリフレッシュ・サイクルが開始したことを知り
、第2図に示した論理表に従ってカウント値(sl=”
L”、sO−“H″)に該当するメモリ・バンク#i(
この例ではメモリ・バンク#2)を選択し、対応する信
号0RAS i 、0CAS 1(i=2)を“L”と
して出力する。L, C31 knows that the refresh cycle has started from the ready signal RDY"'L", and according to the logic table shown in FIG.
Memory bank #i (
In this example, memory bank #2) is selected and the corresponding signals 0RAS i and 0CAS 1 (i=2) are output as "L".
DRAM側ではメモリ・バンク#2のみにロウ・アドレ
ス・ストローブ信号RAS2.カラム・アドレス・スト
ローブ信号CAS2が与えられてリフレッシュ動作が開
始される。On the DRAM side, row address strobe signal RAS2. is applied only to memory bank #2. Column address strobe signal CAS2 is applied to start the refresh operation.
0MC21はリフレッシュ動作が終了すると、レディ信
号RDYを“17″とする。When the refresh operation is completed, the 0MC21 sets the ready signal RDY to "17".
これでメモリ・バンク#2のリフレッシュ動作は終了す
る。This completes the refresh operation for memory bank #2.
尚、」1記の例の説明にあってはリフレッシュ・モード
としてCASビフォアRASリフレッシュ・モードの場
合を例に挙げたが、RASオンリー・リフレッシュ・モ
ードの場合も同様に扱うことかできる。In the explanation of the example in item 1, the CAS-before-RAS refresh mode was used as an example of the refresh mode, but the RAS-only refresh mode can also be handled in the same way.
また、上記の例では、LC31の論理をリフレッシュ時
にメモリ・バンクを1個のみ選択するように論理を構成
したか、数バンクを同時にリフレッシュするような論理
構成にしても良い。この際は、リフレッシュ要求が多く
発生するようにRFTO24内のS W 1243の設
定をその分大きい値に変更する。例えば、メモリ・バン
クを2個同時(バンク#1.#2同時またはバンク#3
.#4同時)にリフレッシュする場合のLC31の論理
構成を第4図の表に示す。Further, in the above example, the logic of the LC 31 may be configured to select only one memory bank at the time of refresh, or may be configured to refresh several banks at the same time. At this time, the setting of the SW 1243 in the RFTO 24 is changed to a correspondingly larger value so that more refresh requests are generated. For example, you can use two memory banks at the same time (Bank #1.#2 at the same time or Bank #3
.. The table in FIG. 4 shows the logical configuration of the LC 31 in the case of refresh #4 simultaneously).
第1図の実施例においては、実際に実装されたメモリ・
バンク数k(]≦に≦N)に応じて、RFT024.R
BS30内のSW 1243 、 5W2302にそれ
ぞれ値ご手動でスイッチ設定しているが、構築するシス
テムによってメモリ・バンク数が異なる場合に、その都
度最適な値を手動で設定するのは煩わしく、また、誤設
定を招く危険もあるので好ましくない。In the embodiment shown in FIG.
Depending on the number of banks k (]≦≦N), RFT024. R
Switch values are manually set for SW1243 and 5W2302 in the BS30, but when the number of memory banks differs depending on the system being constructed, it is troublesome to manually set the optimal value each time, and it is also prone to errors. This is not desirable as there is a risk of causing settings.
このような場合には5W1243.5W2302の代わ
りに、第5図(a)、(b)に示すように、リフレッシ
ュ要求発生回路RFTO24にレジスタREG1244
、リフレッシュ要求計数回路RBSにレジスタRE G
2303を設けて、例えば第6図に示すようなフロー
チャートの動作プログラムをCPU側に設定し、CPU
より値Vs1. Vs2をレジスタREG1244 、
REG2302に設定するようにしても良い。In such a case, instead of 5W1243.5W2302, the register REG1244 is added to the refresh request generation circuit RFTO24 as shown in FIGS. 5(a) and (b).
, the register REG is added to the refresh request counting circuit RBS.
2303 is provided, an operating program of a flowchart as shown in FIG. 6 is set on the CPU side, and the CPU
The value Vs1. Vs2 to register REG1244,
It may be set in REG2302.
即ち、実装可能最大メモリ・バンク数をNとし、(N−
1)をREGl、244に設定し、メモリ・バンク数N
の場合のリフレッシュ要求間隔時間を生成するために必
要な値をRE G 2303に設定する。That is, let the maximum number of memory banks that can be implemented be N, and (N-
1) is set to REGl, 244, and the number of memory banks N
A value necessary for generating the refresh request interval time in the case of 1 is set in RE G 2303.
そして実装されているメモリ・バンクに順次適当なデー
タをライト/リ−1し、このデータが一致した数(j−
1>を実際に実装されているメモリ・バンク数とし、値
(、j−2)を値Vs2としてREG2303に設定す
る6一方、メモリ・バンク数(j −2)に応じたリフ
レッシュ要求間隔時間を生成するのに必要な値Vslを
REG1244に再設定する。Then, write/read appropriate data in the installed memory banks in sequence, and calculate the number (j-
1> is the number of memory banks actually implemented, and the value (,j-2) is set in REG2303 as the value Vs2.6 On the other hand, the refresh request interval time according to the number of memory banks (j-2) is The value Vsl required for generation is reset to REG1244.
このようにして値Vs1. V、s2を決定することに
より、種々のシステムに対(16することかできる。In this way, the value Vs1. By determining V, s2, it is possible to make a pair (16) for various systems.
尚、第1図の例では論理選択回路LC31とリフレッシ
ュ要求計数回路RBS30を別に構成して付加したか、
DR,AMコントローラD M C21内に組み込むよ
うにしても良い。In the example of FIG. 1, the logic selection circuit LC31 and the refresh request counting circuit RBS30 are configured separately and added.
It may be incorporated into the DR/AM 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, only one or more memory banks are refreshed based on specified information given in advance, so the refresh current can be significantly reduced compared to when all memory banks are refreshed at the same time. can be reduced.
また、実装可能なメモリ・バンク数に対して実際に実装
されたメモリ・バンク数が少ない場合にはメモリ・バン
ク数に応じてリフレッシュ要求間隔時間を設定している
ため、リフレッシュ要求間隔時間固定の従来の装置と比
較して無駄なリフレッシュ動作を省き、メモリのリード
/ライト動作の処理効率の低下を防ぐことができる。In addition, if the number of memory banks actually implemented is small compared to the number of memory banks that can be implemented, the refresh request interval time is set according to the number of memory banks, so the refresh request interval time is fixed. Compared to conventional devices, unnecessary refresh operations can be omitted, and a decrease in processing efficiency of memory read/write operations can be prevented.
更に、実際のメモリ・バンク数及びリフレッシュ要求間
隔時間に対応した値をレジスタにそれぞれプログラムに
より自動的に設定できるような構成も可能であるため、
システムによってメモリ・バンク数が異なる場合でも手
動設定に頼らなくて良い。Furthermore, it is possible to configure the system so that values corresponding to the actual number of memory banks and refresh request interval times can be automatically set in the registers by a program.
Even if the number of memory banks varies depending on the system, there is no need to rely on manual settings.
第1図は本発明を実施したDRAM制御装置の構成を表
わすブロック図、第2図は本発明装置における選択論理
回路LC31内にプログラムされる論理構成を表わす表
、第3図は本発明装置の動作を表わすタイムチャート、
第4図は本発明装置における選択論理回路LC31内に
プログラムされる他の論理構成を表わす表、第5図(a
)は本発明装置におけるリフレッシュ要求発生回路RF
T’ 024の他の構成例、第5図(b)は本発明装
置のリフレッシュ要求計数回路RBS30の他の構成例
、第6図は第5図(a>、(b)の構成を用いた場合の
本発明装置の動作を表わすタイムチャート、第7図は従
来のDRAM制御装置を表わすブロック図、第8図(a
)、(b)は従来の装置におけるリフレッシュ動作を表
わすタイムチャートである。
1・・・DMA部、2・・・DMC部、21・・・DR
AMコントローラDMC122・・・リフレッシュ・タ
イマRF T、23・・・ウェイト・ステイト発生部W
G、24・・・リフレッシュ要求発生回路RP ’r’
05241・・・クロック発生部0C1
242・・・ダウン・カウンタRF C2243・・・
スイッチ手段SWI、
244・・・レジスタREGI、
30・・・リフレッシュ要求計数回路RBS、31・・
・選択論理回路LC1
301・・・タウン・カウンタCNT、302・・・ス
イッチ手段SW2.
303・・・レジスタRE G 2゜
目)
派
なな
11′7
図FIG. 1 is a block diagram showing the configuration of a DRAM control device embodying the present invention, FIG. 2 is a table showing the logic configuration programmed in the selection logic circuit LC31 in the device of the present invention, and FIG. A time chart showing the operation,
FIG. 4 is a table showing other logic configurations programmed into the selection logic circuit LC31 in the device of the present invention, and FIG.
) is the refresh request generation circuit RF in the device of the present invention.
Another configuration example of T' 024, FIG. 5(b) is another configuration example of the refresh request counting circuit RBS30 of the device of the present invention, and FIG. 6 uses the configuration of FIGS. 5(a>, (b)). FIG. 7 is a block diagram showing the conventional DRAM control device, and FIG. 8 (a)
) and (b) are time charts showing refresh operations in a conventional device. 1...DMA section, 2...DMC section, 21...DR
AM controller DMC122...Refresh timer RF T, 23...Wait state generation section W
G, 24...Refresh request generation circuit RP 'r'
05241... Clock generation section 0C1 242... Down counter RF C2243...
Switch means SWI, 244...Register REGI, 30...Refresh request counting circuit RBS, 31...
- Selection logic circuit LC1 301... Town counter CNT, 302... Switch means SW2. 303...Register RE G 2nd degree) 11'7 Figure
Claims (5)
してリード/ライト、リフレッシュを行うDRAMコン
トローラを有するDRAM制御装置において、通常のリ
フレッシュ間隔よりも早い周期でリフレッシュ要求を発
生するリフレッシュ要求発生回路と、予め設定値が設定
されて前記リフレッシュ要求を計数するリフレッシュ要
求計数回路と、前記リフレッシュ要求を受けて前記リフ
レッシュ要求計数回路の計数値に応じて前記複数メモリ
・バンクの内少なくとも1個のメモリ・バンクを選択す
る選択論理回路とを有することを特徴とするDRAM制
御装置。(1) In a DRAM control device having a DRAM controller that reads/writes and refreshes a DRAM array consisting of multiple memory banks, a refresh request generation circuit that generates a refresh request at a faster cycle than a normal refresh interval; a refresh request counting circuit having a set value set in advance and counting the refresh requests; and at least one memory bank among the plurality of memory banks responsive to the count value of the refresh request counting circuit upon receiving the refresh request. A selection logic circuit for selecting a DRAM control device.
ク数kの場合、通常のリフレッシュ要求間隔時間Tの1
/kでリフレッシュ要求が発生するように外部から所定
値が設定されるスイッチ手段を有し、クロック発生部か
らのクロックを計数して計数値が前記所定値に達した時
にリフレッシュ要求を発することを特徴とする請求項(
1)記載のDRAM制御装置。(2) When the number of memory banks is k, the refresh request generation circuit is configured to
A switch means is provided with a predetermined value externally set so that a refresh request is generated at /k, and the refresh request is issued when the counted value reaches the predetermined value by counting the clocks from the clock generator. Claims characterized (
1) DRAM control device described.
ク数kに対応する設定値が外部から設定されるスイッチ
手段を有し、前記リフレッシュ要求を計数してメモリ・
バンク数kに従ってサイクリックに計数値を出力するこ
とを特徴とする請求項(1)記載のDRAM制御装置。(3) The refresh request counting circuit has a switch means to which a set value corresponding to the number k of memory banks is externally set, and counts the refresh requests to count the memory banks.
2. The DRAM control device according to claim 1, wherein the count value is output cyclically according to the number of banks k.
回路からの計数値を入力して予め設定してある論理構成
に従つて論理演算を行い、その結果により前記DRAM
コントローラから与えられる少なくとも1組のロウ・ア
ドレス・ストローブ信号、カラム・アドレス・ストロー
ブ信号を選択出力することを特徴とする請求項(1)記
載のDRAM制御装置。(4) The selection logic circuit inputs the count value from the refresh request counting circuit, performs a logical operation according to a preset logic configuration, and uses the result to select the DRAM.
2. The DRAM control device according to claim 1, wherein the DRAM control device selectively outputs at least one set of row address strobe signals and column address strobe signals given from the controller.
に順次適当なデータをライト/リードして前記データが
一致した数を実装されているメモリ・バンク数とし、前
記リフレッシュ要求発生回路はこのメモリ・バンク数を
基に内部レジスタに所定値が設定され、前記リフレッシ
ュ要求計数回路はこのメモリ・バンク数を基に内部レジ
スタに設定値が設定されることを特徴とする請求項(1
)記載のDRAM制御装置。(5) By the operation of the CPU side, appropriate data is sequentially written/read in the plurality of memory banks, and the number of matched data is set as the number of installed memory banks, and the refresh request generation circuit - Claim (1) characterized in that a predetermined value is set in an internal register based on the number of banks, and the refresh request counting circuit sets a set value in the internal register based on the number of memory banks.
) 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 true JPH0258793A (en) | 1990-02-27 |
| JP2512999B2 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) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0449593A (en) * | 1990-06-18 | 1992-02-18 | Hitachi Ltd | Dynamic ram control circuit |
| US6278183B1 (en) | 1999-04-16 | 2001-08-21 | Ming-Tung Shen | Semiconductor device and method for manufacturing the same |
| US7068253B2 (en) | 2000-07-26 | 2006-06-27 | Renesas Technology Corporation | Liquid crystal display controller |
| JP2008192262A (en) * | 2007-02-07 | 2008-08-21 | Fujitsu Ltd | Memory device, memory controller and memory system |
| CN113168863A (en) * | 2018-12-19 | 2021-07-23 | 美光科技公司 | Apparatus and method 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 |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0449593A (en) * | 1990-06-18 | 1992-02-18 | Hitachi Ltd | Dynamic ram control circuit |
| US6278183B1 (en) | 1999-04-16 | 2001-08-21 | Ming-Tung Shen | Semiconductor device and method for manufacturing the same |
| US6420210B2 (en) | 1999-04-16 | 2002-07-16 | Computech International Ventures Limited | Semiconductor device and method for manufacturing the same |
| US7068253B2 (en) | 2000-07-26 | 2006-06-27 | Renesas Technology Corporation | Liquid crystal display controller |
| US7453433B2 (en) | 2000-07-26 | 2008-11-18 | Renesas Technology Corp. | Liquid crystal display controller |
| US8130190B2 (en) | 2000-07-26 | 2012-03-06 | Renesas Electronics Corporation | Liquid crystal display controller |
| US8421829B2 (en) | 2000-07-26 | 2013-04-16 | Renesas Electronics Corporation | Liquid crystal display controller |
| US8823627B2 (en) | 2000-07-26 | 2014-09-02 | Renesas Electronics Corporation | Liquid crystal display controller |
| JP2008192262A (en) * | 2007-02-07 | 2008-08-21 | Fujitsu Ltd | Memory device, memory controller and memory system |
| CN113168863A (en) * | 2018-12-19 | 2021-07-23 | 美光科技公司 | Apparatus and method for multi-bank refresh timing |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2512999B2 (en) | 1996-07-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10740263B2 (en) | Apparatuses and methods for variable latency memory operations | |
| US8397036B2 (en) | Memory control device and semiconductor processing apparatus | |
| US7111143B2 (en) | Burst mode implementation in a memory device | |
| KR101913549B1 (en) | Semiconductor device and data processing system | |
| KR100238188B1 (en) | Method and apparatus for generating memory clock of video controller | |
| JP3225531B2 (en) | Memory card | |
| US5907857A (en) | Refresh-ahead and burst refresh preemption technique for managing DRAM in computer system | |
| US6886072B2 (en) | Control device for semiconductor memory device and method of controlling semiconductor memory device | |
| JP2004013618A (en) | Access controller for synchronous semiconductor storage device | |
| JP2512999B2 (en) | DRAM controller | |
| US20030204651A1 (en) | Circuit for controlling sequential access to SDRAM | |
| JP2000067576A (en) | Semiconductor storage device | |
| JP2590712B2 (en) | Memory controller | |
| JP2829998B2 (en) | Refresh control device | |
| JPH06110778A (en) | Memory | |
| JPS6139298A (en) | Control device of dynamic random access memory | |
| JPS599117B2 (en) | Storage device | |
| JPH10320975A (en) | Semiconductor storage device | |
| JPH04153984A (en) | Method for controlling dynamic memory | |
| JPH0784866A (en) | Memory control circuit | |
| JPS60103590A (en) | Refresh controller | |
| JPH11176155A (en) | Dram-refreshing circuit | |
| JPS6061994A (en) | Control circuit of dynamic memory | |
| JPS58118089A (en) | Memory controlling system | |
| JPH04114391A (en) | Memory refresh method |