JPH04132078A - Memory refresh system - Google Patents
Memory refresh systemInfo
- Publication number
- JPH04132078A JPH04132078A JP2248915A JP24891590A JPH04132078A JP H04132078 A JPH04132078 A JP H04132078A JP 2248915 A JP2248915 A JP 2248915A JP 24891590 A JP24891590 A JP 24891590A JP H04132078 A JPH04132078 A JP H04132078A
- Authority
- JP
- Japan
- Prior art keywords
- refresh
- access
- cpu
- memory
- timer
- 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
- 230000015654 memory Effects 0.000 title claims abstract description 23
- 230000006870 function Effects 0.000 claims abstract description 8
- 238000000034 method Methods 0.000 claims description 6
- 239000003990 capacitor Substances 0.000 description 2
- 230000002860 competitive effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Dram (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、コンピュータやワープロ等主記憶素子、ある
いはCRT制御の表示用メモリー(通称VRAM)とし
てDRAMを用いている機器に関するものである。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to equipment that uses DRAM as a main memory element, such as computers and word processors, or as a CRT-controlled display memory (commonly known as VRAM).
(従来の技術)
DRAMは記憶素子としてビット単価が安く、単位面積
当りの容量が大きい等の理由から近年コンピュータやワ
ープロの主記憶素子として多く利用されている。DRA
、Mはリード/ライト動作およびランダムアクセス可能
なことが大きな特徴であり、これと似たものにスタティ
ックRA、M(吹下SRAMと略す)がある。SRAM
はフリップフロップという素子の構成上、記憶容量は同
技術のDRAMの4分の1であるため、原価、実装密度
など大容量のメモリを用いるシステムには適していない
。一方DRAMはコンデンサに電荷を蓄積して記憶して
いるため、一定時間にコンデンサを再充電する必要があ
る。これがリフレッシュ動作であり、DRAMがSRA
Mと比べて制御しにくいところである。通常リフレッシ
ュ動作は同−DRAM(同一チップ)に対して約16μ
s毎に行う必要がある。リフレッシュの方法としては、
RASオンリーリフレッシュ、CASビフォアRASリ
フレッシュ、ヒドンリフレッシュ等が一般に用いられて
いる。リフレッシュ動作は一定時間内に行わなければ、
データが保持できないため、通常タイマー、カウンター
およびクロック等を用いて一定周期で動作の要求を行う
。このとき、CPtJからのメモリアクセスが起こる(
以下メモリアクセスと略す)と両者の競合が発生してシ
ステムにおいて何等かの競合回路が働き両者の調整を行
う。(Prior Art) DRAMs have recently been widely used as main memory elements in computers and word processors because they have a low bit unit price and a large capacity per unit area. DRA
, M are characterized by read/write operations and random access, and similar to this is static RA, M (abbreviated as Fukishita SRAM). SRAM
Due to the structure of the flip-flop element, the storage capacity is one-fourth that of DRAM of the same technology, so it is not suitable for systems using large-capacity memories due to its cost and packaging density. On the other hand, since DRAM stores charge by storing it in a capacitor, it is necessary to recharge the capacitor at regular intervals. This is a refresh operation, and the DRAM is
It is difficult to control compared to M. Normal refresh operation is approximately 16μ for the same DRAM (same chip)
It is necessary to perform this every s. As a refresh method,
RAS only refresh, CAS before RAS refresh, hidden refresh, etc. are commonly used. If the refresh operation is not performed within a certain time,
Since data cannot be retained, a timer, counter, clock, etc. are usually used to request operation at regular intervals. At this time, memory access from CPtJ occurs (
When a conflict occurs between the two (hereinafter abbreviated as memory access), some kind of conflict circuit operates in the system to adjust the two.
(発明が解決しようとする課題)
ところが競合回路において、リフレッシュ要求がメモリ
アクセス要求より優先した場合、第2図に示すようにC
PUは(リフレッシュサイクル+プリチャージタイム)
分、待たされることになる。(Problem to be Solved by the Invention) However, in a competitive circuit, if a refresh request takes priority over a memory access request, C
PU is (refresh cycle + precharge time)
You will have to wait for several minutes.
あるいはCPUをホールドさせてリフレッシュを行うこ
とになる。これらは高速アクセスを要求されるメモリサ
イクルに余分な時間を費やし、システムの性能を低下す
ることになる。Alternatively, the CPU will be held and refreshed. These consume extra time in memory cycles that require fast access, reducing system performance.
本発明の目的は、従来の欠点を解消し、CPUからはリ
フレッシュサイクルと競合することなく常に高速なアク
セスを期待することができるメモリリフレッシュ方式を
提供することである。SUMMARY OF THE INVENTION An object of the present invention is to provide a memory refresh method that eliminates the conventional drawbacks and allows a CPU to always expect high-speed access without competing with refresh cycles.
(課題を解決するための手段)
本発明のメモリリフレッシュ方式は、リフレッシュ動作
をCPUがメモリ以外のIloやROMをアクセス中と
いうことを知る判定回路と、前回のリフレッシュ要求動
作からの経過時間を知るクリアー機能付きタイマーより
備えてなるものである。(Means for Solving the Problems) The memory refresh method of the present invention includes a determination circuit that determines when a refresh operation is being performed by the CPU while accessing Ilo or ROM other than the memory, and a determination circuit that determines the elapsed time from the previous refresh request operation. It is equipped with a timer with a clear function.
(作 用)
上記手段において、CPUが170またはROM等DR
AM以外のアクセスを行うときにリフレッシュ動作を行
い、メモリアクセスとの競合をなくするようにしたもの
である。但し、Ilo。(Function) In the above means, if the CPU is 170 or ROM etc.
A refresh operation is performed when an access other than AM is performed to eliminate conflict with memory access. However, Ilo.
ROMのアクセスが一定周期(16μs以内)にて行わ
れる保証がないシステムに関しては、タイマーで前回の
リフレッシュ要求信号からも経過時間を監視し、その都
度リフレッシュ要求を出すようにする。For systems in which there is no guarantee that ROM access will be performed at a fixed period (within 16 μs), a timer is used to monitor the elapsed time since the previous refresh request signal, and a refresh request is issued each time.
(実施例)
第1図は本発明の一実施例におけるメモリリフレッシュ
方式の構成図である。同図において、AはCPU、Bは
CPUAから出力されたコマンド信号1よりIloある
いはROM等のようにDRAM以外をアクセス中か否か
を判定する判定回路、2は判定回路Bより出力されたリ
フレッシュ可能信号、Cはリフレッシュ可能信号2が前
回有効になってからの経過時間を監視するクリアー機能
付きタイマー 3はリフレッシュ可能信号2、あるいは
タイマー〇からの監視により出力するリフレッシュ要求
信号、DはCPUAからのメモリアクセス要求とリフレ
ッシュ要求信号3の競合を行う競合回路、4は調停後の
DRAMに対するアクセス信号である。(Embodiment) FIG. 1 is a block diagram of a memory refresh method in an embodiment of the present invention. In the figure, A is the CPU, B is a determination circuit that determines whether or not a device other than DRAM such as Ilo or ROM is being accessed based on command signal 1 output from CPUA, and 2 is a refresh signal output from determination circuit B. C is a timer with a clear function that monitors the elapsed time since refresh enable signal 2 was last enabled. 3 is a refresh request signal output by monitoring from refresh enable signal 2 or timer 〇. D is a refresh request signal from CPUA. A competition circuit performs competition between a memory access request and a refresh request signal 3, and 4 is an access signal for the DRAM after arbitration.
以上の構成においてタイマー〇はDRAMがリフレッシ
ュ動作を行わなければならない最大の時間(約16μs
)を設定する。CPUAがIloをアクセスするとコマ
ンド信号1より判定回路Bはリフレッシュ可能信号2を
出力する。リフレッシュ可能信号2を受けたクリアー機
能付きタイマー〇はクリアーを行い、リフレッシュ要求
信号3を競合回路りに出力する。このとき、コマンド信
号1はメモリアクセスを要求していない(Iloをアク
セスしているため)ため競合回路中で競合することなく
DRAMに対してリフレッシュ動作を行うことができる
。一般にI10アクセスはDRAMへのアクセスと比べ
て時間がかかるためCPUAがI10アクセスを終了す
るときにはリフレッシュ動作も終了しておりI10アク
セス直後メモリアクセス要求がきても競合することはな
い。In the above configuration, timer 〇 is the maximum time (approximately 16 μs) that the DRAM must perform a refresh operation.
). When CPUA accesses Ilo, determination circuit B outputs refresh enable signal 2 based on command signal 1. Upon receiving the refresh enable signal 2, the clear function timer 〇 clears the refresh request signal 3 and outputs the refresh request signal 3 to the competition circuit. At this time, since the command signal 1 does not request memory access (because it accesses Ilo), the refresh operation can be performed on the DRAM without conflict in the conflict circuit. In general, I10 access takes longer than access to DRAM, so when the CPU finishes I10 access, the refresh operation is also finished, and even if a memory access request comes immediately after I10 access, there will be no conflict.
次に第3図に示すように、IloまたはROMのアクセ
スがDRAMのリフレッシュ間隔最大時間(約16μs
)までになかった場合について説明する。Next, as shown in FIG.
) will be explained below.
前回のI10アクセスにより、リフレッシュ可能信号2
が有効になり、タイマーCは一度クリアーされ、前回の
リフレッシュ要求からの経過時間が測られる。このタイ
マーはリフレッシュ可能信号2が有効になる度にクリア
ーされるがDRAMのリフレッシュ間隔最大時間になっ
てもクリアーされなかった場合、リフレッシュ可能信号
とは別にタイマー〇からリフレッシュ要求信号3が出力
され、リフレッシュ動作を要求する。このとき競合回路
りで競合が発生することがあるが、その確率は低い。ま
たCPUが長い間アクセスしない場合でもリフレッシュ
動作は正常に行われる。Due to the previous I10 access, refresh enable signal 2
is enabled, timer C is cleared once, and the elapsed time since the previous refresh request is measured. This timer is cleared every time the refresh enable signal 2 becomes valid, but if it is not cleared even after the maximum refresh interval time of the DRAM is reached, a refresh request signal 3 is output from timer 0 in addition to the refresh enable signal. Request a refresh operation. At this time, competition may occur due to competition circuits, but the probability of this is low. Further, even if the CPU does not access the memory for a long time, the refresh operation is performed normally.
(発明の効果)
本発明によれば、CPUからはリフレッシュサイクルと
競合することなく常に高速なアクセスを期待することが
できるようになり、システム全体のスループットを向上
することができ、その実用上の効果は大である。(Effects of the Invention) According to the present invention, it is possible to always expect high-speed access from the CPU without competing with the refresh cycle, and the throughput of the entire system can be improved. The effect is great.
第1図は本発明の一実施例におけるメモリリフレッシュ
方式の構成図、第2図は競合回路でリフレッシュ動作が
優先されたときの一連のサイクル、第3図はリフレッシ
ュ最大間隔時間までにリフレッシュ可能信号が出力され
なかったときのタイミングチャートである。
A・・・CPU% B・・・判定回路、 C・・・クリ
アー機能付きタイマー D・・・競合回路、 1・
・・コマンド信号、 2・・・リフレッシュ可能信号
、 3・・・リフレッシュ要求信号、 4・・・調停
後のDRAMに対するアクセス信号。
特許呂願人 松下電器産業株式会社FIG. 1 is a block diagram of a memory refresh method according to an embodiment of the present invention, FIG. 2 is a series of cycles when a refresh operation is prioritized in a competitive circuit, and FIG. 3 is a refreshable signal by the maximum refresh interval time. This is a timing chart when the output is not output. A...CPU% B...Judgment circuit, C...Timer with clear function D...Conflict circuit, 1.
...Command signal, 2.. Refresh enable signal, 3.. Refresh request signal, 4.. Access signal for DRAM after arbitration. Patent applicant Matsushita Electric Industrial Co., Ltd.
Claims (1)
リードオンリーメモリ)等のようにDRAM(ダイナミ
ックランダムアクセスメモリ)以外に対してアクセスを
行っていることを知ることができる判定回路と、前記判
定回路からのアクセス中を知らせるリフレッシュ可能信
号と、前記リフレッシュ可能信号が有効になってからの
経過時間を監視することが可能なクリヤー機能付きタイ
マーと、前記CPUからのDRAMアクセス要求と、前
記タイマーからのリフレッシュ要求を競合、調停する競
合回路より構成されることを特徴とするメモリリフレッ
シュ方式。The central processing unit (hereinafter abbreviated as CPU) has I/O, ROM (
a determination circuit that can determine whether access is being made to a device other than DRAM (dynamic random access memory) such as a read-only memory; a refresh enable signal from the determination circuit that indicates that an access is in progress; It consists of a timer with a clear function that can monitor the elapsed time after the enabling signal becomes valid, and a competition circuit that competes and arbitrates between the DRAM access request from the CPU and the refresh request from the timer. A memory refresh method characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2248915A JPH04132078A (en) | 1990-09-20 | 1990-09-20 | Memory refresh system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2248915A JPH04132078A (en) | 1990-09-20 | 1990-09-20 | Memory refresh system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04132078A true JPH04132078A (en) | 1992-05-06 |
Family
ID=17185318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2248915A Pending JPH04132078A (en) | 1990-09-20 | 1990-09-20 | Memory refresh system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04132078A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001184861A (en) * | 1999-11-23 | 2001-07-06 | Robert Bosch Gmbh | Method for refreshing dram and microcontroller |
-
1990
- 1990-09-20 JP JP2248915A patent/JPH04132078A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001184861A (en) * | 1999-11-23 | 2001-07-06 | Robert Bosch Gmbh | Method for refreshing dram and microcontroller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6028804A (en) | Method and apparatus for 1-T SRAM compatible memory | |
US9281046B2 (en) | Data processor with memory controller for high reliability operation and method | |
US6477598B1 (en) | Memory controller arbitrating RAS, CAS and bank precharge signals | |
US20070011397A1 (en) | Dram with hidden refresh | |
JP4487040B2 (en) | Method and apparatus for semiconductor memory refresh using idle memory cycles | |
EP1625590B1 (en) | Selective bank refresh | |
JPH0471223B2 (en) | ||
JPH11312386A (en) | DRAM chip | |
US5822265A (en) | DRAM controller with background refresh | |
US6285616B1 (en) | Memory refreshing control apparatus comprising a unique refreshing counter | |
US7093067B2 (en) | DRAM architecture enabling refresh and access operations in the same bank | |
CN1822224B (en) | Memory device capable of refreshing data by using buffer and refreshing method thereof | |
US20050078538A1 (en) | Selective address-range refresh | |
JPH04132078A (en) | Memory refresh system | |
JPS63114000A (en) | Control system for dynamic random access memory | |
JPH07161184A (en) | Memory-controlling apparatus | |
JPH04143993A (en) | Dram controller | |
JP3962850B2 (en) | Control device for SDRAM | |
JPH06325570A (en) | Dynamic memory refresh circuit | |
JPH0668671A (en) | Memory device | |
JPH04114391A (en) | Refresh system for memory | |
JPH09297990A (en) | Memory refresh control method and memory refresh control device | |
JPH04114392A (en) | Refresh system for memory | |
JPH05303886A (en) | Memory device | |
JPH06223564A (en) | Dram refreshing device |