JPS62259295A - Refresh control system - Google Patents

Refresh control system

Info

Publication number
JPS62259295A
JPS62259295A JP61103494A JP10349486A JPS62259295A JP S62259295 A JPS62259295 A JP S62259295A JP 61103494 A JP61103494 A JP 61103494A JP 10349486 A JP10349486 A JP 10349486A JP S62259295 A JPS62259295 A JP S62259295A
Authority
JP
Japan
Prior art keywords
memory
refresh
processor
signal
banks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP61103494A
Other languages
Japanese (ja)
Inventor
Mikiya Ito
幹也 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP61103494A priority Critical patent/JPS62259295A/en
Publication of JPS62259295A publication Critical patent/JPS62259295A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent a CPU from the drop of processing capacity due to refreshing operation by refreshing banks other than an objective one and then refreshing the objective bank when an access request exists after the passage of a prescribed time, and when there is no request, refreshing all the bank. CONSTITUTION:When there are 20 memory addresses 2<0>-2<19>, 2<1>, 2<3> bits are decoded and the memory is divided into 4 sections to uniform access to respective banks. Receiving a signal indicating the passage of a regulated time from a counter 9, a control device executes the refreshing operation every memory banks 0-3. The control device is controlled by a processor 1, and when an access request is outputted from the processor to respective banks after the passage of the regulated time, the control device refreshes the banks other than an objective one and then refreshes the objective bank. If there is no access request from the processor, the control device holds the processor and refreshes all the banks after the passage of the prescribed time. Thereby, the simultaneous generation of both requests for access and refresh can be suppressed and the CPU can be prevented from the drop of processing capacity due to the refreshing operation.

Description

【発明の詳細な説明】 【産業上の利用分野〕 本発明は、リフレッシュ制御方式に関し、特にダイナミ
ックメモリのリフレッシュをCPU処理能力低下を伴う
ことなく行うのに好適なリフレッシュ制御方式に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a refresh control method, and particularly to a refresh control method suitable for refreshing a dynamic memory without reducing CPU processing performance.

(従来の技術〕 従来、ダイナミックメモリのリフレッシュは、規定時間
経過後、基本的にメモリアクセスの無い時にリフレッシ
ュ起動を行っていた。しかし、実際はメモリアクセス要
求とリフレッシュ要求が同時に発生することがあり、競
合した時には、一般的にメモリアクセスを待たせ、優先
してリフレッシュを行っている。このようなリフレッシ
ュ制御を行う装置としては、例えば、特開昭58−29
197号公報に記載のように、DMA制御装置の最高優
先順位のチャネルにメモリリフレシュ要求信号を周期的
に印加し、CPUをホールドしてリフレッシュを行う、
ものが知られている。また、特開昭58−171788
号公報に記載のように、メモリアクセス要求とリフレッ
シュ要求の競合によりリフレッシュ動作が終了するまで
、メモリアクセス要求を待たせることによる処理能力の
低下を避けるために、マイクロ命令の中でメモリアクセ
ス要求の発生しない命令実行であることを判定してリフ
レッシュ要求を出力するものが知られている。
(Prior art) Conventionally, dynamic memory refresh was performed after a specified period of time had elapsed, and when there was basically no memory access, the refresh was activated.However, in reality, a memory access request and a refresh request may occur at the same time. When there is contention, memory access is generally made to wait and refresh is performed with priority.As an example of a device that performs such refresh control, for example, Japanese Patent Laid-Open No. 58-29
As described in Publication No. 197, a memory refresh request signal is periodically applied to the highest priority channel of the DMA control device, and the CPU is held and refreshed.
something is known. Also, JP-A-58-171788
As described in the above publication, in order to avoid a decrease in processing performance due to a memory access request waiting until the refresh operation is completed due to a conflict between a memory access request and a refresh request, memory access requests are made in microinstructions. There is a known device that outputs a refresh request after determining that the execution of an instruction will not occur.

〔発明が解決しようとする問題点J しかしながら、前者の従来例では、システムスルーブツ
トの点において、リフレッシュ時にCPUを毎回ホール
ドするオーバヘッドが大きく、CPU処理能力が低下す
るという問題がある。また、後者の従来例では、現実的
にはソフトウェアの種類は数多くあり、またソフトウェ
アに無駄なステップを追加することは不可能である6 本発明の目的は、このような従来のIXiJg点を解決
し、ダイナミックメモリのリフレッシュにおいて、リフ
レッシュ要求とメモリアクセス要求の競合回避、および
リフレッシュによるCPU処理能力低下の回避を行える
リフレッシュ制御方式を提供することにある。
[Problem to be Solved by the Invention J] However, in the former conventional example, there is a problem in terms of system throughput that the overhead of holding the CPU each time during refresh is large and the CPU processing capacity is reduced. In addition, in the latter conventional example, there are actually many types of software, and it is impossible to add unnecessary steps to the software.6 The purpose of the present invention is to solve such conventional IXiJg points. Another object of the present invention is to provide a refresh control method that can avoid conflict between a refresh request and a memory access request and avoid a decrease in CPU processing capacity due to refreshing when refreshing a dynamic memory.

〔問題点を解決するための手段〕[Means for solving problems]

上記問題点を解決するために、本発明では、ダイナミッ
クメモリにより構成されたメモリ装置と、該メモリ装置
へのメモリアクセス要求を出力するプロセッサとを有す
るデータ処理システムにおいて、上記ダイナミックメモ
リを下位アドレス値によって順番に複数個に分けられた
メモリバンク構成とし、かつ所定時間(一定周期)でリ
フレッシュを行うためのカウンタと、該カウンタからの
所定時間経過を示す信号を受けて、各メモリバンク毎に
リフレッシュを実行制御する制御手段とを備え、上記制
御手段は、所定時間経過後、上記プロセッサから各メモ
リバンクへのメモリアクセス要求が発生すると、該メモ
リアクセス要求発生時にアクセスのあったメモリバンク
以外のリフレッシュを実行し、該リフレッシュ実行後、
上記アクセスのあったメモリバンクのリフレッシュを実
行し、上記プロセッサが停止命令を受けてメモリアクセ
ス要求が発生しないときは、所定時間経過後、上記プロ
セッサをホールドして全メモリバンクのリフレッシュを
実行することに特徴がある。
In order to solve the above problems, the present invention provides a data processing system that includes a memory device configured with a dynamic memory and a processor that outputs a memory access request to the memory device. It has a memory bank configuration in which it is divided into multiple memory banks in order, and a counter for refreshing at a predetermined time (constant period), and a signal indicating the elapse of a predetermined time from the counter, and each memory bank is refreshed. and control means for controlling the execution of memory banks, and when a memory access request is generated from the processor to each memory bank after a predetermined period of time has elapsed, the control means refreshes memory banks other than those accessed at the time of the memory access request. and after executing the refresh,
Refreshing the accessed memory bank, and if the processor receives a stop command and no memory access request is generated, after a predetermined period of time has elapsed, holding the processor and refreshing all memory banks. There are characteristics.

〔作用〕[Effect]

メモリ装置のリフレッシュは、所定時間経過後、プロセ
ッサからメモリアクセス要求発生時にアクセスのあった
メモリバンク以外のリフレッシュを実行し、リフレッシ
ュ実行後、アクセスのあったメモリバンクのリフレッシ
ュを実行し、プロセッサが停止命令を受けてメモリアク
セスが発生しないときは、所定時間経過後、プロセッサ
をホールドして全メモリバンクのリフレッシュを実行す
る。
To refresh the memory device, after a predetermined period of time has elapsed, memory banks other than those accessed when a memory access request was issued from the processor are refreshed, and after the refresh is executed, the memory banks that were accessed are refreshed, and the processor is stopped. If no memory access occurs in response to an instruction, the processor is held and all memory banks are refreshed after a predetermined period of time has elapsed.

これにより、メモリアクセス要求とメモリリフレッシュ
要求の競合を回避でき、メモリリフレッシュによるCP
U処理能力の低下を回避できる。
As a result, conflicts between memory access requests and memory refresh requests can be avoided, and CP due to memory refresh can be avoided.
A decrease in processing capacity can be avoided.

(実施例〕 以下、本発明の一実施例を、図面により詳細に説明する
(Example) Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

本実施例では、ダイナミックメモリを複数に分けてバン
ク化することにより、メモリリフレッシュ制御を行うも
のとする。第2図に本実施例によるダイナミックメモリ
のバンク選択方式を示す。
In this embodiment, memory refresh control is performed by dividing the dynamic memory into a plurality of parts and forming banks. FIG. 2 shows a bank selection method for a dynamic memory according to this embodiment.

第2図において、例えば、メモリアドレスが2゜〜21
まで20本あるとすると、下位アドレスの2’、2”ビ
ットをデコードし、その値によりメモリを4分割する。
In FIG. 2, for example, the memory address is between 2° and 21°.
Assuming that there are 20 lines, the 2' and 2'' bits of the lower address are decoded, and the memory is divided into four according to these values.

その内の1つをメモリバンクと称し、各々をメモリバン
ク1→メモリバンク1゜メモリバンク2.メモリバンク
3と称する。この分割方法によれば、通常プログラムは
シーケンシャルに実行されて行くので、メモリアクセス
がプロセッサのオブジェクトコードのプリフェッチ動作
のため、順次メモリバンク0−メモリバンク1→メモリ
バンク2−メモリバンク3へと実行され、あるメモリバ
ンクへアクセスが集中することなく、各メモリバンクへ
のアクセスが均一化されるようになる。
One of them is called a memory bank, and each is divided into memory bank 1 → memory bank 1 ° memory bank 2 . It is called memory bank 3. According to this division method, since a program is normally executed sequentially, memory access is executed sequentially from memory bank 0 to memory bank 1 → memory bank 2 to memory bank 3 due to the prefetch operation of the object code of the processor. As a result, accesses to each memory bank can be made uniform without concentration of accesses to a certain memory bank.

第1図は、本実施例の一実施例を示すダイナミックメモ
リのリフレッシュ制御動作のフローチャートである。以
下、第1図のフローチャートに従って説明する ダイナミックメモリにより構成されたメモリ装置を有す
るデータ処理システムが電源ONされているものとする
。また、メモリリフレッシュの制御を行う周期(規定時
間)は、例えば、14t1sとする。
FIG. 1 is a flowchart of a dynamic memory refresh control operation showing an example of the present embodiment. Hereinafter, it is assumed that a data processing system having a memory device configured with a dynamic memory, which will be explained according to the flowchart of FIG. 1, is powered on. Further, the period (regular time) for controlling memory refresh is, for example, 14t1s.

まず、規定時間が経過したか否かを調べる(ステップ1
00)。規定時間経過後、プロセッサからのメモリアク
セスを検出しくステップ101)、メモリアクセスがあ
れば、そのアクセスの間にアクセスされたメモリバンク
以外のリフレッシュを実行しくステップ102)、メモ
リアクセスが終了後(ステップ103)、アクセスされ
たメモリバンクのリフレッシュを実行する(ステップ1
04)。
First, check whether the specified time has elapsed (Step 1)
00). After a predetermined period of time has elapsed, a memory access from the processor is detected (step 101), and if there is a memory access, refreshing of memory banks other than those accessed during the access is performed (step 102), and after the memory access is completed (step 102), 103), perform a refresh of the accessed memory bank (step 1
04).

しかし、規定時間が経過したのにもかかわらず、メモリ
アクセスが来ないまま次の規定時間が来た場合は(ステ
ップ101,105)、プロセッサに対してホールド要
求信号を出力しくステップ106)、プロセッサがホー
ルドされる(ホールド許可信号が来ることによりホール
ドされる)のを待つ(ステップ107)。プロセッサが
ホールドされる前にメモリアクセスが来ると(ステップ
108)、そのアクセスの間にアクセスされたメモリバ
ンク以外のリフレッシュを実行しくステップ109)、
メモリアクセス終了後(ステップ11o)、アクセスさ
れたメモリバンクのリフレッシュを実行しくステップ1
11)、プロセッサがホールドされるのを待つ、プロセ
ッサからホールドされたことを示すホールド許可信号が
来ると(ステップ107)、プロセッサがホールドされ
メモリアクセスは発生しないので、全メモリバンクのリ
フレッシュを実行する(ステップ112)、また、プロ
セッサが停止命令を受けてHALTL、メモリアクセス
要求が発生しない場合は規定時間毎にプロセッサをホー
ルドし、全メモリバンクのリフレッシュを実行する。
However, even though the specified time has elapsed, if the next specified time comes without any memory access (steps 101, 105), a hold request signal is output to the processor (step 106). is held (held by the arrival of a hold permission signal) (step 107). If a memory access occurs before the processor is held (step 108), refreshing of memory banks other than those accessed during that access is performed (step 109);
After completing the memory access (step 11o), refresh the accessed memory bank in step 1.
11) Wait for the processor to be held. When a hold permission signal indicating that the processor is held is received from the processor (step 107), the processor is held and no memory access occurs, so refresh all memory banks. (Step 112) If the processor receives a stop command and no HALTL or memory access request occurs, the processor is held at regular intervals and refreshes all memory banks.

また、このリフレッシュ制御動作中、メモリアクセスの
あったメモリバンクのリフレッシュは行わないで、プロ
セッサが停止命令を受けてメモリアクセスが発生しない
場合は、規定時間経過後、プロセッサをホールドして、
全メモリバンクのリフレッシュを行うようにしてもよい
Also, during this refresh control operation, the memory bank that has been accessed is not refreshed, and if the processor receives a stop command and no memory access occurs, the processor is held after a specified period of time has elapsed.
All memory banks may be refreshed.

第3図は、本実施例のリフレッシュ制御を実現するため
のハードウェア構成図である。これは、ダイナミックメ
モリにより構成されたメモリ装置を有するデータ処理シ
ステムの構成を示している。
FIG. 3 is a hardware configuration diagram for realizing the refresh control of this embodiment. This shows the configuration of a data processing system having a memory device configured with a dynamic memory.

また、第4図に規定時間計数カウンタ出力パルス(信号
)を示す。
Further, FIG. 4 shows the prescribed time counter output pulse (signal).

第3図において、■はメモリアクセス要求信号2、ホー
ルド許可信号3.プロセッサアドレス5等を送出して、
各種装置の制御を行うプロセッサ、6はプロセッサlと
メモリバンク29〜32間でデータの転送を行うデータ
バス、8はクロック7により規定時間(ここでは、14
μs)を計数し、14μsに1回有効になる信号9を出
力する規定時間計数カウンタ、11はリフレッシュ起動
信号12.13.34を送出するリフレッシュ起動装置
In FIG. 3, ■ indicates a memory access request signal 2, a hold permission signal 3. Send processor address 5 etc.
A processor that controls various devices; 6 a data bus that transfers data between the processor l and memory banks 29 to 32; 8 a clock 7 for a specified time (here, 14
11 is a refresh activation device that outputs a refresh activation signal 12.13.34.

14はリフレッシュサイクル終了信号10.  リフレ
ッシュ信号15.リフレッシュアドレス更新信号16を
発生するリフレッシュ信号発生装置、17はプロセッサ
lからのアドレスをデコードして信号18を出力するデ
コーダ、20はメモリバンクを制御するメモリ制御信号
21〜24を送出する制御信号送出装置、25はリフレ
ッシュアドレス更新信号16によってリフレッシュアド
レスを計数し、リフレッシュアドレス26を出力するリ
フレッシュアドレスカウンタ、27はメモリリフレッシ
ュアドレス26とプロセッサアドレス5を選択し、メモ
リアドレス28を出力するアドレスセレクタ、29〜3
2はメモリバンク、33はメモリ制御信号19を発生す
るメモリ制御信号発生装置である。
14 is a refresh cycle end signal 10. Refresh signal 15. 17 is a decoder that decodes the address from processor l and outputs signal 18; 20 is a control signal generator that outputs memory control signals 21 to 24 that control memory banks; 25 is a refresh address counter that counts refresh addresses according to refresh address update signal 16 and outputs refresh address 26; 27 is an address selector that selects memory refresh address 26 and processor address 5 and outputs memory address 28; 29; ~3
Reference numeral 2 represents a memory bank, and reference numeral 33 represents a memory control signal generator that generates the memory control signal 19.

プロセッサlからメモリバンク29〜32へのアクセス
は、メモリアクセス要求信号(メモリリード信号または
メモリライト信号)2が発生すると、メモリ制御信号発
生装置33にてメモリ制御信号19を作成し、プロセッ
サアドレス5の下位アドレスをデコーダ17でデコード
した結果をもとに、制御信号送出装置20でどのメモリ
バンク29〜32へ出力するかを決定し、メモリ制御信
号21〜24を通して、ある1つのメモリバンクを与え
、プロセッサアドレス5は、アドレスセレクタ27で選
択されメモリアドレス28をメモリに与え、プロセッサ
lとメモリバンク29〜32のデータ転送はデータバス
6を通して行う。
To access memory banks 29 to 32 from processor 1, when a memory access request signal (memory read signal or memory write signal) 2 is generated, memory control signal generator 33 generates memory control signal 19, and processor address 5 is generated. Based on the result of decoding the lower address of , by the decoder 17, the control signal sending device 20 determines to which memory bank 29-32 the output is to be made, and one memory bank is given through the memory control signals 21-24. , processor address 5 is selected by address selector 27 and provides memory address 28 to the memory, and data transfer between processor 1 and memory banks 29 to 32 is performed through data bus 6.

メモリバンク0〜3(29〜32)のリフレッシュ方法
を以下に説明する。規定時間計数カウンタ8は、クロッ
ク7によって計数し、1411s経過した時点で第4図
に示すパルス信号9をリフレッシュ起動装置11に連絡
する。リフレッシュ起動装置11は、次の3通りのリフ
レッシュを起動する。
A method of refreshing memory banks 0 to 3 (29 to 32) will be described below. The specified time counter 8 counts based on the clock 7, and transmits a pulse signal 9 shown in FIG. 4 to the refresh starting device 11 when 1411 seconds have elapsed. The refresh activation device 11 activates the following three types of refresh.

第1は、141Li経過後、メモリアクセス要求2が来
た場合に、リフレッシュ起動信号12を出力する。第2
は、1411s経過後、メモリアクセス要求信号2が終
了した場合に、リフレッシュ起動信号13を出力する。
First, when a memory access request 2 comes after 141Li has elapsed, a refresh activation signal 12 is output. Second
outputs the refresh start signal 13 when the memory access request signal 2 ends after 1411 seconds have elapsed.

第3は、1411s経過したのにもかかわらず、メモリ
アクセスが来ないまま次の14μs経過した場合に、プ
ロセッサ1にホールド要求信号4を出力し、プロセッサ
1がホールドされるのを待ち、プロセッサ1がホールド
される前にメモリアクセス要求信号2が来た場合は、リ
フレッシュ起動信号12を出力し、アクセスが終了する
とリフレッシュ起動信号13を出力し、プロセッサlが
ホールドされ、プロセッサ1からホールド許可信号3が
戻ってくると、リフレッシュ起動信号34を出力する。
The third method is to output a hold request signal 4 to the processor 1, wait for the processor 1 to be held, and wait for the processor 1 to be held. If the memory access request signal 2 comes before the memory access request signal 2 is held, the refresh activation signal 12 is output, and when the access is completed, the refresh activation signal 13 is output, the processor l is held, and the hold permission signal 3 is output from the processor 1. When it returns, a refresh activation signal 34 is output.

これらのリフレッシュ起動信号は、リフレッシュサイク
ルの終了を示す信号10によってクリアされる。以上の
3つのリフレッシュを以降第1リフレツシユ、第2リフ
レツシユ、第3リフレツシユと称する。
These refresh activation signals are cleared by signal 10 indicating the end of the refresh cycle. The above three refreshes will hereinafter be referred to as a first refresh, a second refresh, and a third refresh.

リフレッシュ信号発生装置14は、リフレッシュ起動信
号12,13.34を入力とし、これらのリフレッシュ
起動信号に基づいて、リフレッシュ信号15を生成する
とともに、リフレッシュ起動信号をクリアするリフレッ
シュサイクル終了信号lOと、リフレッシュアドレスカ
ウンタ25の値を更新するリフレッシュアドレス更新信
号16を出力する。
The refresh signal generator 14 receives the refresh activation signals 12, 13, and 34 as input, and generates the refresh signal 15 based on these refresh activation signals, as well as a refresh cycle end signal lO for clearing the refresh activation signal, and a refresh cycle end signal lO for clearing the refresh activation signal. A refresh address update signal 16 that updates the value of the address counter 25 is output.

制御信号送出装置20は、デコーダ17でプロセッサア
ドレス5の下位アドレス2’、2”ビットをデコードし
た内容に基づいて、リフレッシュ信号15およびプロセ
ッサ1のメモリアクセス要求信号2に基づきメモリ制御
信号発生装置33で発生したメモリ制御信号19をどの
メモリバンクに出力するかを次の通りに制御する。リフ
レッシュ起動信号12によるリフレッシュは、メモリア
クセスのあったメモリバンク以外にリフレッシュ信号1
5を出力し、リフレッシュ起動信号13によるリフレッ
シュは、メモリアクセス終了後、メモリアクセスのあっ
たメモリバンクにリフレッシュ信号15を出力し、リフ
レッシュ起動信号34によるリフレッシュは、全メモリ
バンクにリフレッシュ信号15を与え、プロセッサlか
らのメモリアクセスによるメモリ制御信号19は、メモ
リアクセスのあったメモリバンクに与える。なお、各メ
モリバンク29〜32に対するリフレッシュ信号および
メモリ制御信号は、メモリ制御信号21〜24を通して
与えられる。
The control signal sending device 20 generates a memory control signal generating device 33 based on the refresh signal 15 and the memory access request signal 2 of the processor 1 based on the contents decoded by the decoder 17 of the lower address 2' and 2'' bits of the processor address 5. To which memory bank the memory control signal 19 generated in
5 is output, and the refresh by the refresh start signal 13 outputs the refresh signal 15 to the memory bank where the memory access was made after the memory access is completed, and the refresh by the refresh start signal 34 gives the refresh signal 15 to all memory banks. , a memory control signal 19 resulting from a memory access from processor l is given to the memory bank to which the memory was accessed. Note that refresh signals and memory control signals for each memory bank 29-32 are provided through memory control signals 21-24.

第5図は、本実施例による第1および第2リフレツシユ
の概略タイミングチャートである。ここで、全ての信号
は“H”で有効とする。以下、第5図のタイミングチャ
ートを用いて、第1および第2リフレツシユについて説
明する。
FIG. 5 is a schematic timing chart of the first and second refreshes according to this embodiment. Here, all signals are assumed to be "H" and valid. The first and second refreshes will be explained below using the timing chart of FIG.

規定時間14t1s経過後、信号9が有効になり、その
後メモリアクセス要求2が有効になるとリフレッシュ起
動信号12が有効となり、リフレッシュ起動信号15が
出力され、デコーダ17でメモリバンク0がメモリアク
セスされているとすると。
After the specified time 14t1s has elapsed, signal 9 becomes valid, and then memory access request 2 becomes valid, refresh activation signal 12 becomes valid, refresh activation signal 15 is output, and memory bank 0 is accessed by decoder 17. If so.

メモリバンク0(29)はメモリアクセスされ、その他
のメモリバンク1〜3(30〜32)はリフレッシュさ
れる。メモリバンク0(29)へのメモリアクセスが終
了すると、リフレッシュ起動信号13が有効となり、リ
フレッシュ起動信号15が出力され、メモリバンク0(
29)のリフレッシュを実行する。このような第1およ
び第2リフレツシユ実行後、リフレッシュサイクル終了
信号lOにより、リフレッシュ起動信号をクリアし、リ
フレッシュアドレス更新信号16によりリフレッシュア
ドレスを更新する。
Memory bank 0 (29) is memory accessed, and other memory banks 1 to 3 (30 to 32) are refreshed. When the memory access to memory bank 0 (29) is completed, the refresh activation signal 13 becomes valid, the refresh activation signal 15 is output, and the memory bank 0 (29) is activated.
29) Execute the refresh. After execution of the first and second refreshes, the refresh start signal is cleared by the refresh cycle end signal 10, and the refresh address is updated by the refresh address update signal 16.

第6図は、本実施例による第3リフレツシユの概略タイ
ミングチャートである。ここで、全ての信号は“H″で
有効とする。以下、第6図のタイミングチャートを用い
て、第3リフレツシユについて説明する。
FIG. 6 is a schematic timing chart of the third refresh according to this embodiment. Here, all signals are "H" and valid. The third refresh will be explained below using the timing chart of FIG.

最初の規定時間1411s経過後、メモリアクセス要求
がないまま、さらに14IIs経過したときに、リフレ
ッシュ起動装置11は、プロセッサ1に対してホールド
要求信号4を出力し、プロセッサlからホールド許可信
号3が戻って来ると、リフレッシュ起動信号34を有効
にして、リフレッシュ信号15を出力し、全メモリバン
クのリフレッシュを実行する。リフレッシュ実行後、リ
フレッシュサイクル終了信号10によりホールド要求信
号4とリフレッシュ起動信号34をクリアし、リフレッ
シュアドレス更新信号16により、リフレッシュアドレ
スを更新する。
After the first specified time 1411s has elapsed, when another 14IIs has elapsed without any memory access request, the refresh activation device 11 outputs the hold request signal 4 to the processor 1, and the hold permission signal 3 is returned from the processor l. When this occurs, the refresh start signal 34 is enabled, the refresh signal 15 is output, and all memory banks are refreshed. After the refresh is executed, the hold request signal 4 and refresh start signal 34 are cleared by the refresh cycle end signal 10, and the refresh address is updated by the refresh address update signal 16.

このように、本実施例においては、ダイナミックメモリ
のリフレッシュは、メモリアクセス要求発生時に、メモ
リアクセスされたメモリバンク以外のメモリバンクをリ
フレッシュするので、メモリアクセス要求とリフレッシ
ュ要求とは競合しない、また、メモリアクセス終了後に
、メモリアクセスのあったメモリバンクをリフレッシュ
するので、同一メモリバンクへの連続アクセスがあって
も、次のメモリアクセスの間にリフレッシュを実行すれ
ば、メモリアクセス要求と競合しない、また、プロセッ
サが停止命令を受けてHALTL、た場合に、プロセッ
サをホールドしてリフレッシュを実行するが、プロセッ
サの処理能力に何ら影響を与えない0以上のことがらプ
ロセッサの処理能力を低下させないリフレッシュ制御が
可能になる。
In this way, in this embodiment, dynamic memory refresh refreshes memory banks other than the accessed memory bank when a memory access request occurs, so that there is no conflict between the memory access request and the refresh request. After the memory access is completed, the memory bank that was accessed is refreshed, so even if there are consecutive accesses to the same memory bank, if the refresh is executed between the next memory access, there will be no conflict with memory access requests. , when the processor receives a stop command and goes into HALTL, the processor is held and refreshed, but there are 0 or more things that do not affect the processing capacity of the processor.Refresh control that does not reduce the processing capacity of the processor It becomes possible.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、ダイナミックメ
モリのリフレッシュにおいて、リフレッシュ要求とメモ
リアクセス要求との競合が回避でき、リフレッシュによ
るCPU処理能力を低下させずに、リフレッシュ制御が
行える。
As described above, according to the present invention, conflict between a refresh request and a memory access request can be avoided in dynamic memory refresh, and refresh control can be performed without reducing CPU processing capacity due to refresh.

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

第1図は本発明の一実施例を示すリフレッシュ制御動作
のフローチャート、第2図はメモリバンク選択方式を説
明するための図、第3図は本実施例のリフレッシュ制御
を実現するためのハードウェア構成図、第4図は規定時
間計数カウンタ出力パルスを示す図、第5図は本実施例
による第1および第2リフレツシユの概略タイミングチ
ャート第6図は本実施例による第3リフレツシユの概略
タイミングチャートである。 1:プロセッサ、8:規定時間計数カウンタ、11:リ
フレッシュ起動装置、14:リフレッシュ信号発生装置
、17:デコーダ、2o:制御信号送出装置、25:リ
フレッシュアドレスカウンタ。 27:アドレスセレクタ、29〜32:メモリバンク、
33:メモリ制御信号発生装置。 第     2     図
FIG. 1 is a flowchart of refresh control operation showing one embodiment of the present invention, FIG. 2 is a diagram for explaining a memory bank selection method, and FIG. 3 is hardware for realizing refresh control of this embodiment. FIG. 5 is a schematic timing chart of the first and second refresh according to the present embodiment; FIG. 6 is a schematic timing chart of the third refresh according to the present embodiment. It is. 1: Processor, 8: Prescribed time counter, 11: Refresh activation device, 14: Refresh signal generation device, 17: Decoder, 2o: Control signal sending device, 25: Refresh address counter. 27: Address selector, 29-32: Memory bank,
33: Memory control signal generator. Figure 2

Claims (1)

【特許請求の範囲】[Claims] 1、ダイナミックメモリにより構成されたメモリ装置と
、該メモリ装置へのメモリアクセス要求を出力するプロ
セッサとを有するデータ処理システムにおいて、上記ダ
イナミックメモリを下位アドレス値によって順番に複数
個に分けられたメモリバンク構成とし、かつ所定時間を
計数するカウンタと、該カウンタからの所定時間経過を
示す信号を受けて、各メモリバンク毎にリフレッシュを
実行制御する制御手段を備え、上記制御手段は、上記プ
ロセッサから各メモリバンクへのメモリアクセス要求が
発生すると、該メモリアクセス要求発生時にアクセスの
あったメモリバンク以外のリフレッシュを実行し、上記
プロセッサが停止命令を受けてメモリアクセス要求が発
生しないときは、所定時間経過後、上記プロセッサをホ
ールドして全メモリバンクのリフレッシュを実行するこ
とを特徴とするリフレッシュ制御方式。
1. In a data processing system having a memory device constituted by a dynamic memory and a processor that outputs a memory access request to the memory device, the dynamic memory is divided into a plurality of memory banks in order according to lower address values. and a counter for counting a predetermined time, and a control means for controlling the execution of refresh for each memory bank in response to a signal from the counter indicating the elapse of a predetermined time, and the control means controls each memory bank from the processor. When a memory access request to a memory bank occurs, refresh of the memory bank other than the one accessed at the time of the memory access request is executed, and if the processor receives a stop instruction and no memory access request occurs, a predetermined period of time elapses. After that, the refresh control method is characterized in that the processor is held and all memory banks are refreshed.
JP61103494A 1986-05-06 1986-05-06 Refresh control system Pending JPS62259295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61103494A JPS62259295A (en) 1986-05-06 1986-05-06 Refresh control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61103494A JPS62259295A (en) 1986-05-06 1986-05-06 Refresh control system

Publications (1)

Publication Number Publication Date
JPS62259295A true JPS62259295A (en) 1987-11-11

Family

ID=14355545

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61103494A Pending JPS62259295A (en) 1986-05-06 1986-05-06 Refresh control system

Country Status (1)

Country Link
JP (1) JPS62259295A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6744685B2 (en) 2000-07-21 2004-06-01 Seiko Epson Corporation Semiconductor device, method for refreshing the same, and electronic equipment
US6804161B2 (en) 2001-04-02 2004-10-12 Seiko Epson Corporation Semiconductor device, refreshing method thereof, memory system, and electronic instrument
JP2008210513A (en) * 2008-04-17 2008-09-11 Fujitsu Ltd Semiconductor memory

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6744685B2 (en) 2000-07-21 2004-06-01 Seiko Epson Corporation Semiconductor device, method for refreshing the same, and electronic equipment
US6804161B2 (en) 2001-04-02 2004-10-12 Seiko Epson Corporation Semiconductor device, refreshing method thereof, memory system, and electronic instrument
JP2008210513A (en) * 2008-04-17 2008-09-11 Fujitsu Ltd Semiconductor memory

Similar Documents

Publication Publication Date Title
JP3057934B2 (en) Shared bus arbitration mechanism
JP3092566B2 (en) Memory control method using pipelined bus
JP3153078B2 (en) Data processing device
JPS62259295A (en) Refresh control system
JP2001135079A (en) Memory control device
KR20010050234A (en) Addressing of a memory
JPH07114496A (en) Shared memory control circuit
US6499087B1 (en) Synchronous memory sharing based on cycle stealing
JPH06325570A (en) Dynamic memory refresh circuit
JP3169878B2 (en) Memory control circuit
JPH0668671A (en) Memory device
JP2004220309A (en) Multiprocessor system
JPS62214588A (en) Refresh control method for dynamic memory
JPH09297990A (en) Memory refresh control method and memory refresh controller
JPH117763A (en) Method for refresh control to dram and circuit therefor
JP3303420B2 (en) Memory access control device
JPH07153268A (en) Information recorder
JPH0574154A (en) Microcomputer
JPS63247996A (en) Method for accessing memory
JPH0142017B2 (en)
JPH11176155A (en) Dram-refreshing circuit
JPH0745073A (en) Method for refreshing dram
JPH11167519A (en) Memory refresh control circuit, memory, memory module, and digital device
JPH06290104A (en) Memory controller
US20040205277A1 (en) Data transfer control circuit in system LSI