JPH05334176A - Memory access system - Google Patents

Memory access system

Info

Publication number
JPH05334176A
JPH05334176A JP14035492A JP14035492A JPH05334176A JP H05334176 A JPH05334176 A JP H05334176A JP 14035492 A JP14035492 A JP 14035492A JP 14035492 A JP14035492 A JP 14035492A JP H05334176 A JPH05334176 A JP H05334176A
Authority
JP
Japan
Prior art keywords
bus
cpu
address
bus master
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP14035492A
Other languages
Japanese (ja)
Inventor
Yasumasa Takazawa
靖昌 高沢
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.)
Fuji Facom Corp
Original Assignee
Fuji Facom Corp
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 Fuji Facom Corp filed Critical Fuji Facom Corp
Priority to JP14035492A priority Critical patent/JPH05334176A/en
Publication of JPH05334176A publication Critical patent/JPH05334176A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To shorten the delay of the access time of a CPU and a bus master to a memory. CONSTITUTION:At the time of detecting the transfer of bus using right from the CPU to the bus master or the bus master to the CPU based upon a change in a sub arbitration signal, a bus request signal from the bus master, a bus release permission signal from the CPU, or the like, a DMA detecting circuit 21 outputs a bus right transfer signal (a) to an OR gate 22 and informs a DRAM controller 23 of the transfer of the bus using right. Then the controller 23 turns a RAS signal to an inactive state for a certain time prior to the address determination of the succeeding access and then ends a page mode. If the bus using right is not transferred, the controller 23 holds the RAS signal in an active state until the succeeding access to continue the page mode.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、CPUとバスマスタ等
がバスの使用権を得てアクセスを行うコンピュータシス
テムにおけるメモリアクセス方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory access system in a computer system in which a CPU, a bus master and the like obtain a right to use a bus for access.

【0002】[0002]

【従来の技術】図8は、CPU11と、DRAM12
と、バスマスタ13と、ROM、RAMなどのLSI1
4等からなるコンピュータシステムの構成図である。
2. Description of the Related Art FIG. 8 shows a CPU 11 and a DRAM 12.
, Bus master 13, and LSI 1 such as ROM and RAM
It is a block diagram of the computer system which consists of 4 etc.

【0003】このシステムでは、バスの使用権がCPU
11からバスマスタ13へ、あるいはバスマスタ13か
らCPU11へ渡され、バスの使用権を得たものがDR
AM12に対してアクセスを行うことができる。
In this system, the right to use the bus is the CPU
DR that is passed from 11 to the bus master 13 or from the bus master 13 to the CPU 11 and obtains the bus use right
The AM 12 can be accessed.

【0004】DRAM12上にプログラムとデータとが
格納されている場合、CPU11は主にプログラム領域
をアクセスし、バスマスタ13はデータ領域をアクセス
することが多い。一般にプログラムとデータとは離れた
領域に格納され、それらの格納アドレスはDRAM12
上の異なるページとなる。
When programs and data are stored in the DRAM 12, the CPU 11 mainly accesses the program area, and the bus master 13 often accesses the data area. Generally, a program and data are stored in separate areas, and their storage addresses are stored in the DRAM 12
It will be a different page above.

【0005】例えば、図9に示すようにCPU11とバ
スマスタ13とによるメモリアクセスとが交互に行われ
る場合、CPU11によるメモリアクセスとバスマスタ
13によるメモリアクセスが行われる度にページ変更が
発生する。
For example, when the memory access by the CPU 11 and the bus master 13 are alternately performed as shown in FIG. 9, a page change occurs every time the memory access by the CPU 11 and the memory access by the bus master 13 are performed.

【0006】また、図10に示すようにバスマスタ13
が一定量のデータをバースト転送する場合は、ページ変
更の回数は少なくなるものの、バスの使用権がバスマス
タ13からCPU11へ、あるいはCPU11からバス
マスタ13へ移行するときにページ変更が発生する点で
は同じである。
Further, as shown in FIG. 10, the bus master 13
When a certain amount of data is burst-transferred, the number of page changes is small, but the page changes occur when the bus usage right shifts from the bus master 13 to the CPU 11 or from the CPU 11 to the bus master 13. Is.

【0007】図11は、従来のメモリアクセス方式に基
づくDRAM制御装置の回路構成図である。アドレスラ
ッチ15には、前回アクセス時の行アドレス(RA;Ro
w Address)が保持される。比較器16は、現在の行アド
レスとアドレスラッチ15に保持されている前回の行ア
ドレスとを比較し、行アドレスの一致、不一致をDRA
Mコントローラ17に通知する。
FIG. 11 is a circuit diagram of a DRAM control device based on the conventional memory access method. The row address (RA; Ro
w Address) is retained. The comparator 16 compares the current row address with the previous row address held in the address latch 15, and determines whether the row address matches or does not match the DRA.
Notify the M controller 17.

【0008】DRAMコントローラ17は、DRAM1
2に対するアクセス制御、リフレシュ制御等を行う回路
であり、比較器16から行アドレスの一致信号が出力さ
れたときには、RAS信号をアクティブのままにしてペ
ージモードでのメモリアクセスを継続し、行アドレスの
不一致信号が出力されたときには、RAS信号を一定時
間非アクティブにして、新しい行アドレスをアドレスラ
ッチ15にラッチさせる。
The DRAM controller 17 includes the DRAM 1
2 is a circuit for performing access control, refresh control, etc. for the row address 2. When a row address match signal is output from the comparator 16, the RAS signal is kept active to continue the memory access in the page mode and When the non-coincidence signal is output, the RAS signal is made inactive for a certain period of time to cause the address latch 15 to latch a new row address.

【0009】ここで、ページモードとは、RAS信号を
アクティブにした状態で、CAS信号をアクティブにし
て1回のアクセスを完了した後、CAS信号を一旦非ア
クティブにして列アドレスを変更した後、CAS信号を
アクティブにして同じ行の別の列のメモリセルをアクセ
スするものであり、通常のリード又はライトサイクルよ
り高速なメモリアクセスを行うことができる。
In the page mode, the RAS signal is activated, the CAS signal is activated to complete one access, and then the CAS signal is temporarily deactivated to change the column address. The CAS signal is activated to access a memory cell in another column in the same row, and memory access can be performed faster than a normal read or write cycle.

【0010】マルチプレクサ18は、行アドレスRAと
列アドレスCAとをマルチプレクスしてDRAM12へ
出力する。
The multiplexer 18 multiplexes the row address RA and the column address CA and outputs them to the DRAM 12.

【0011】[0011]

【発明が解決しようとする課題】次に、CPU11のア
クセスとバスマスタ13とのアクセスが交互に行われる
場合に、従来のメモリアクセス方式における動作タイミ
ングを図12を参照して説明する。
The operation timing in the conventional memory access system when the CPU 11 and the bus master 13 are alternately accessed will be described with reference to FIG.

【0012】CPU11によるDRAM12のアクセス
の次に、バスマスタ13によりDRAM12のアクセス
が行われ両者の行アドレスが異なると、すなわちページ
が変更されると、前述した比較器16からローレベルの
アドレス不一致信号がDRAコントローラ17へ出力さ
れる。
When the DRAM 12 is accessed by the bus master 13 after the access of the DRAM 12 by the CPU 11 and the row addresses of the two are different, that is, when the page is changed, a low-level address mismatch signal is output from the comparator 16 described above. It is output to the DRA controller 17.

【0013】DRAMコントローラ17は、比較器16
からのローレベルのアドレス不一致信号を検出すると、
RAS信号を一定時間(T1時間)非アクティブにした
後アクティブにするが、この場合、一定のプリチャージ
時間を経過してからRAS信号をアクティブにする必要
がある。
The DRAM controller 17 includes a comparator 16
When the low level address mismatch signal from
The RAS signal is made inactive after being deactivated for a certain time (T1 time), but in this case, it is necessary to activate the RAS signal after a certain precharge time has elapsed.

【0014】その為、従来のメモリアクセス方式では、
バスマスタ13のアクセスサイクル中にT1時間分のウ
ェイトサイクルを挿入してRAS信号のプリチャージ時
間を確保するようにしていた。
Therefore, in the conventional memory access method,
A wait cycle of T1 hours is inserted in the access cycle of the bus master 13 to secure the precharge time of the RAS signal.

【0015】バスマスタ13のアクセスの次にCPU1
1のアクセスが行われた場合も、ページの変更があった
場合には、同様にCPU11のアクセスサイクル中にT
1時間分のウェイトサイクルを挿入する必要がある。
After the access of the bus master 13, the CPU 1
Even if 1 is accessed, if there is a page change, the T
It is necessary to insert a wait cycle for one hour.

【0016】すなわち、従来のメモリアクセス方式で
は、CPUとバスマスタとの両方からDRAMのアクセ
スが行われページ変更が頻繁に発生する場合には、それ
ぞれのアクセスサイクル中にT1時間分のウェイトサイ
クルが挿入される結果、アクセス時間が長くなり、プロ
グラムの実行時間、データの転送時間が遅くなってしま
うという問題点があった。
That is, in the conventional memory access method, when DRAMs are accessed from both the CPU and the bus master and page changes occur frequently, a wait cycle of T1 hours is inserted in each access cycle. As a result, there is a problem that the access time becomes long and the program execution time and the data transfer time are delayed.

【0017】本発明の課題は、CPU又はバスマスタの
メモリアクセスによるアクセス時間の遅れを少なくする
ことである。
An object of the present invention is to reduce delay in access time due to memory access by a CPU or a bus master.

【0018】[0018]

【課題を解決するための手段】図1(a) は、第1の発明
の原理説明図である。CPU又はバスマスタがバスの使
用権を得てメモリに対するアクセスを行うシステムにお
いて、検出手段1は、例えば、アドレス確定信号、バス
マスタのバス要求信号、CPUのバス開放許可信号等の
バスアビトレーション信号からバスの使用権がCPUか
らバスマスタへ、あるいはバスマスタからCPUへ移行
したことを検出する。
FIG. 1A is an explanatory view of the principle of the first invention. In a system in which a CPU or a bus master obtains a right to use a bus to access a memory, the detection means 1 uses a bus arbitration signal such as an address confirmation signal, a bus master's bus request signal, or a CPU's bus release permission signal. It is detected that the usage right of the CPU is transferred from the CPU to the bus master or from the bus master to the CPU.

【0019】制御手段2は、上記検出手段1でバスの使
用権が移行したことを検出した場合に、次のアクセスの
アドレスが確定する前にRAS信号を非アクティブにし
てページモードを終了させる。
When the detecting means 1 detects that the bus use right has been transferred, the control means 2 deactivates the RAS signal before the address of the next access is fixed, and terminates the page mode.

【0020】また、図1(b) は、第2及び第3の発明の
原理説明図である。なお、1点鎖線で囲まれる部分が第
2の発明に対応する原理説明図であり、全体が第3の発
明に対応する原理説明図である。
FIG. 1B is an explanatory view of the principle of the second and third inventions. The portion surrounded by the one-dot chain line is a principle explanatory diagram corresponding to the second invention, and the whole is a principle explanatory diagram corresponding to the third invention.

【0021】第2の発明において、CPUアドレス記憶
手段3は、CPUがアクセスした最新の行アドレスを記
憶し、バスマスタアドレス記憶手段4は、バスマスタが
アクセスした最新の行アドレスを記憶する。
In the second invention, the CPU address storage means 3 stores the latest row address accessed by the CPU, and the bus master address storage means 4 stores the latest row address accessed by the bus master.

【0022】比較手段5Aは、上記検出手段1でバスの
使用権が移行したことを検出された場合に、CPUアド
レス記憶手段3に記憶されている行アドレスと、バスマ
スタアドレス記憶手段4に記憶されている行アドレスと
を比較する。
When the detecting means 1 detects that the bus usage right has been transferred, the comparing means 5A stores the row address stored in the CPU address storing means 3 and the bus master address storing means 4. Compare the row address.

【0023】制御手段2Aは、比較手段5Aでの比較の
結果、行アドレスが一致した場合には、RAS信号をア
クティブのままにしてページモードを継続させ、行アド
レスが一致しない場合には、次のアクセスのアドレスが
確定する前に所定時間RAS信号を非アクティブにして
ページモードを終了させる。
As a result of the comparison in the comparison means 5A, the control means 2A keeps the RAS signal active and continues the page mode if the row addresses match. Before the access address is determined, the RAS signal is made inactive for a predetermined time to end the page mode.

【0024】第3の発明において、アドレス記憶手段6
は、直前のアクセスでの行アドレスを記憶する。比較手
段5Bは、検出手段1でバスの使用権が移行したことを
検出されたとき、CPUアドレス記憶手段3又はバスマ
スタアドレス記憶手段4に記憶されている行アドレス
と、アドレス記憶手段6に記憶されている直前の行アド
レスとを比較する。
In the third invention, the address storage means 6
Stores the row address of the last access. When the detection means 1 detects that the bus usage right has been transferred, the comparison means 5B stores the row address stored in the CPU address storage means 3 or the bus master address storage means 4 and the address storage means 6. The line address immediately before is compared.

【0025】制御手段2Bは、比較手段5Bでの比較の
結果、行アドレスが一致した場合には、RAS信号をア
クティブのままにしてページモードを継続させ、行アド
レスが一致しない場合には、次のアクセスの行アドレス
が確定する前にRAS信号を非アクティブにしてページ
モードを終了させる。
As a result of the comparison by the comparison means 5B, the control means 2B keeps the RAS signal active and continues the page mode when the row addresses match. Before the row address for the access is determined, the RAS signal is deactivated to end the page mode.

【0026】[0026]

【作用】第1の発明では、バスの使用権がCPUからバ
スマタスへ、あるいはバスマスタからCPUへ移行した
ときには、次のアクセスサイクルが始まる前にRAS信
号を一定時間非アクティブにするようにしたので、CP
Uとバスマスタとのアクセスで頻繁にページが変更がさ
れる場合など、メモリのアクセス時間を大幅に短縮する
ことができる。
In the first aspect of the present invention, when the right to use the bus is transferred from the CPU to the bus Matus or from the bus master to the CPU, the RAS signal is made inactive for a certain period of time before the next access cycle starts. CP
The memory access time can be greatly shortened when the page is frequently changed by the access between U and the bus master.

【0027】第2及び第3の発明では、CPU又はバス
マスタへバスの使用権が移行する場合に、例えばCPU
又はバスマスタがアクセスした最新の行アドレスが、直
前のアクセスの行アドレスと一致する場合、ページモー
ドのアクセスを継続させ、一致しない場合、次のアクセ
スサイクルが始まる前にRAS信号を一定時間非アクテ
ィブにするようにしている。
In the second and third inventions, when the bus use right is transferred to the CPU or the bus master, for example, the CPU
Alternatively, if the latest row address accessed by the bus master matches the row address of the previous access, the page mode access is continued, and if the row address does not match, the RAS signal is deactivated for a certain period of time before the next access cycle starts. I am trying to do it.

【0028】従って、バスの使用権が移行しても、同じ
行アドレスがアクセスされる可能性が高い場合には、ペ
ージモードのアクセスを可能にしてメモリのアクセス時
間を短縮し、同じ行アドレスがアクセスされる可能性が
低い場合には、次のアクセスサイクルが始まる前にペー
ジモードを終了させてメモリのアクセス時間を短縮する
ことができる。
Therefore, if the same row address is likely to be accessed even if the right to use the bus is transferred, page mode access is enabled to shorten the memory access time, and the same row address is If the possibility of being accessed is low, the page mode can be ended before the next access cycle to shorten the memory access time.

【0029】[0029]

【実施例】以下、本発明の実施例を図面を参照しながら
説明する。図2は、本発明の第1実施例のDRAM制御
装置の主要部の回路構成図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 is a circuit configuration diagram of a main part of the DRAM control device according to the first embodiment of the present invention.

【0030】同図において、図11に示した従来の回路
と同じ回路ブロックには同じ符号を付してそれらの説明
を省略する。なお、実施例のDRAM制御装置が接続さ
れるコンピュータシステムの全体構成は図8と同様であ
る。
In the figure, the same circuit blocks as those of the conventional circuit shown in FIG. 11 are designated by the same reference numerals, and their description will be omitted. The overall configuration of the computer system to which the DRAM control device of the embodiment is connected is similar to that shown in FIG.

【0031】DMA検出回路21は、バスマスタ及びC
PUのアドレス確定信号、バスマスタのバス要求信号、
CPUのバス開放許可信号等のバスアビトレーション信
号の変化を検出して、バスの使用権がCPUからバスマ
スタへ、あるいはバスマスタからCPUへ移行したこと
を判断する回路である。このDMA検出回路21は、通
常、ハイレベルのバス権移行信号aをオアゲート22に
出力しており、バスの使用権が移動したことを検出した
ときには、ローレベルのバス権移行信号aをオアゲート
22へ出力する。
The DMA detection circuit 21 includes a bus master and a C
PU address confirmation signal, bus master bus request signal,
It is a circuit that detects a change in a bus arbitration signal such as a bus release permission signal of the CPU and determines that the right to use the bus is transferred from the CPU to the bus master or from the bus master to the CPU. The DMA detection circuit 21 normally outputs a high-level bus right transfer signal a to the OR gate 22, and when it detects that the right to use the bus has been transferred, it outputs a low level bus right transfer signal a. Output to.

【0032】比較器16は、後述するDRAMコントロ
ーラ23からの制御信号に従って、アドレスラッチ15
にラッチされている前回(1サイクル前)のアドレスの
上位アドレス(行アドレスRA)と、今回のアクセスで
の行アドレスとを比較する回路であり、行アドレスが一
致しないときにはローレベルのアドレス不一致信号bを
オアゲート22に出力する。なお、比較器16が行アド
レスの比較を行わないときには、ハイレベルのアドレス
不一致信号bが出力されている。
The comparator 16 receives the address latch 15 according to a control signal from a DRAM controller 23 which will be described later.
This is a circuit that compares the upper address (row address RA) of the previous (one cycle before) address latched in the row address with the row address in this access, and when the row addresses do not match, a low level address mismatch signal. b is output to the OR gate 22. When the comparator 16 does not compare the row address, the high level address mismatch signal b is output.

【0033】オアゲート22には、上記のDMA検出回
路21から出力されるバス権移行信号aと、比較器16
から出力されるアドレス不一致信号bとが入力してお
り、何れか一方の信号がローレベルとなったとき、ロー
レベルのページモードキャンセル信号cをDRAMコン
トローラ23に出力する。
In the OR gate 22, the bus right transfer signal a output from the DMA detection circuit 21 and the comparator 16 are output.
The address mismatch signal b output from the above is input, and when either one of the signals becomes the low level, the page mode cancel signal c of the low level is output to the DRAM controller 23.

【0034】DRAMコントローラ23は、DRAM
(図8参照)のアドレスの取り込みタイミングを制御す
る行アドレスストローブ信号(RAS信号)、列アドレ
スストローブ信号(CAS信号)、書き込みを制御する
ライトイネーブル信号(WE信号)の出力及びリフレッ
シュ制御等を行う回路である。
The DRAM controller 23 is a DRAM
(See FIG. 8) Output of a row address strobe signal (RAS signal), a column address strobe signal (CAS signal), a write enable signal (WE signal) that controls writing, and refresh control are performed. Circuit.

【0035】次に、CPU又はバスマスタがバスの使用
権を得てDRAMをアクセスする場合の動作を、図3の
動作タイムチャートを参照して説明する。なお、以下で
述べるアドレス確定信号、RAS信号、CAS信号、バ
ス要求信号、バス開放許可信号、ページモードキャンセ
ル信号c等の各信号はローベルでアクティブとなる信号
である。
Next, the operation when the CPU or the bus master obtains the right to use the bus to access the DRAM will be described with reference to the operation time chart of FIG. It should be noted that the address confirmation signal, the RAS signal, the CAS signal, the bus request signal, the bus release permission signal, the page mode cancel signal c, and the like, which will be described below, are low-level active signals.

【0036】DRAMコントローラ23は、CPUのア
ドレス確定信号がアクティブ(ローレベル)となったと
きRAS信号をアクティブ(ローレベル)にする(図
3、I)。
The DRAM controller 23 activates the RAS signal (low level) when the address confirmation signal of the CPU becomes active (low level) (FIG. 3, I).

【0037】CPUは、バスマスタのバス要求信号がア
クティブ(ローレベル)となったことを検出して、バス
マスタからのアクセス要求があったことを認識したな
ら、アクセスが終了した時点で、バス開放許可信号をア
クティブ(ローレベル)にしてバスの使用権をバスマス
タに渡す。
If the CPU detects that the bus request signal of the bus master has become active (low level) and recognizes that there is an access request from the bus master, the CPU releases the bus when the access is completed. Passes the bus usage right to the bus master by activating the signal (low level).

【0038】DRAM検出回路21は、CPU及びバス
マスタのアドレス確定信号が非アクティブ(ハイレベ
ル)、バスマスタのバス要求信号がアクティブ(ローレ
ベル)で、かつCPUのバス開放許可信号がアクティブ
(ローレベル)となったことを検出したなら、バスの使
用権がCPUからバスマスタに移行したものと判断し
て、ローベルのバス権移行検出信号aをオアゲート22
に出力する。
In the DRAM detection circuit 21, the address determination signals of the CPU and the bus master are inactive (high level), the bus request signal of the bus master is active (low level), and the bus release permission signal of the CPU is active (low level). If it is detected that the bus right has been transferred from the CPU to the bus master, the low-bell bus right transfer detection signal a is sent to the OR gate 22.
Output to.

【0039】このとき、オアゲート22の他方の入力端
子に入力する比較器16からのアドレス不一致信号bは
ハイレベルとなっているので、ローレベルのバス権移行
検出信号aは、ローレベルのページモードキャンセル信
号cとしてDRAMコントローラ23に出力されるDR
AMコントローラ23は、ページモードキャンセル信号
cがローレベルとなったことを検出すると、RAS信号
を一定時間(T1時間)非アクティブ(ハイレベル)に
してページモードを終了させる(図3、II)。
At this time, since the address mismatch signal b from the comparator 16 input to the other input terminal of the OR gate 22 is at high level, the low level bus right transition detection signal a is at low level in the page mode. DR output to the DRAM controller 23 as a cancel signal c
When the AM controller 23 detects that the page mode cancel signal c has become low level, the AM controller 23 makes the RAS signal inactive (high level) for a predetermined time (T1 time) and ends the page mode (FIG. 3, II).

【0040】そして、一定時間RAS信号を非アクティ
ブにしてRAS信号のプリチャージ時間を確保した後、
バスマスタのアドレス確定信号がアクティブとなったと
きRAS信号をアクティブにする(図3、III)。
After deactivating the RAS signal for a certain period of time to secure the precharge time of the RAS signal,
When the address confirmation signal of the bus master becomes active, the RAS signal becomes active (FIG. 3, III).

【0041】すなわち、バスの使用権がCPUからバス
マスタに移行する場合には、CPUのアクセスが終了し
てからバスマスタのアクセスが開始されるまでの間に、
RAS信号を一定時間(T1時間)非アクティブにして
RAS信号のプリチャージ時間を確保しているので、従
来のようにバスマスタのアクセスサイクル中にウェイト
サイクルを挿入してRAS信号を一定時間非アクティブ
とする必要が無く、アクセス時間を短縮できる。
That is, when the right to use the bus is transferred from the CPU to the bus master, the access from the CPU is completed until the access to the bus master is started.
Since the RAS signal is inactive for a certain time (T1 time) to secure the precharge time of the RAS signal, a wait cycle is inserted in the access cycle of the bus master to make the RAS signal inactive for a certain time as in the conventional case. Access time can be shortened.

【0042】なお、今回のアクセスがCPUで次のアク
セスもCPUである場合、すなわちバスの使用権の移行
がない場合には、ページモードが有効となる可能性が高
いのでRAS信号はアクティブのままにする。
If the current access is the CPU and the next access is also the CPU, that is, if the right to use the bus is not transferred, the page mode is likely to be valid, so the RAS signal remains active. To

【0043】バスマスタのアクセスが終了して、バスマ
スタのバス要求信号が非アクティブで、CPUのバス開
放許可信号が非アクティブとなると、バスの使用権がバ
スマスタからCPUに移行する。
When the access of the bus master is completed and the bus request signal of the bus master is inactive and the bus release permission signal of the CPU is inactive, the bus use right is transferred from the bus master to the CPU.

【0044】DMA検出回路21は、CPU及びバスマ
スタのアドレス確定信号が非アクティブ、バスマスタの
バス要求信号が非アクティブで、かつCPUのバス開放
許可信号が非アクティブとなったことを検出したなら、
バスの使用権がバスマスタからCPUに移行したものと
判断して、ローレベルのバス権移行検出信号aをオアゲ
ート22に出力する。
If the DMA detection circuit 21 detects that the address confirmation signals of the CPU and the bus master are inactive, the bus request signal of the bus master is inactive, and the bus release permission signal of the CPU is inactive,
It is determined that the bus mastership is transferred from the bus master to the CPU, and the low-level bus mastership detection signal a is output to the OR gate 22.

【0045】このローレベルのバス権移行検出信号a
は、ページモードキャンセル信号cとしてDRAMコン
トローラ23に出力される。DRAMコントローラ23
はページモードキャンセル信号cがローレベルとなった
ことを検出すると、RAS信号を一定時間非アクティブ
にし、ページモードを終了させる(図3、IV)。
This low level bus right transition detection signal a
Is output to the DRAM controller 23 as a page mode cancel signal c. DRAM controller 23
Detects that the page mode cancel signal c has become a low level, it deactivates the RAS signal for a certain period of time to end the page mode (IV in FIG. 3).

【0046】そして、RAS信号を一定時間非アクティ
ブにしてプリチャージ時間を確保したなら、CPUアド
レス確定信号がアクティブとなったときRAS信号をア
クティブにする(図3、V)。
If the RAS signal is inactive for a certain period of time to secure the precharge time, the RAS signal is activated when the CPU address confirmation signal becomes active (V in FIG. 3).

【0047】このように上記第1実施例では、バスの使
用権がCPUからバスマスタへ、あるいはバスマスタか
らCPUへ移行する場合に、次のアクセスが開始される
前、すなわち次のアドレスが確定する前に、RAS信号
を一定時間非アクティブにしてRAS信号のプリチャー
ジ時間を確保するようにしたので、従来のように次のア
クセス中にウェイトサイクルを挿入してRAS信号を非
カクティブにする必要が無く、その分アクセス時間を短
縮できる。
As described above, in the first embodiment, when the right to use the bus is transferred from the CPU to the bus master or from the bus master to the CPU, before the next access is started, that is, before the next address is determined. In addition, since the RAS signal is inactive for a certain period of time to secure the precharge time of the RAS signal, there is no need to insert a wait cycle during the next access to make the RAS signal inactive as in the conventional case. The access time can be shortened accordingly.

【0048】ところで、CPUとバスマスタとがDRA
Mを交互、あるいはランダムにアスセス場合に、CPU
がアクセスするDRAMのページと、バスマスタがアク
セスするDRAMのページとが一致する場合がある。
By the way, the CPU and the bus master are connected to the DRA.
When M is alternated or randomly accessed, CPU
There is a case where the page of the DRAM accessed by and the page of the DRAM accessed by the bus master match.

【0049】図4は、バスの使用権が移行してもCPU
のアクセスするページとバスマスタがアクセスするペー
ジが一致する可能性が高い場合は、ページモードを継続
させ、それ以外の場合は次のアクセスサイクルの前にR
AS信号を非アクティブにする本発明の第2実施例のD
RAM制御装置の主要部の回路構成図である。
FIG. 4 shows the CPU even if the right to use the bus is transferred.
If the page accessed by the bus master and the page accessed by the bus master are likely to match each other, the page mode is continued. Otherwise, R is executed before the next access cycle.
D of the second embodiment of the invention for deactivating the AS signal
FIG. 3 is a circuit configuration diagram of a main part of a RAM control device.

【0050】同図において、CPUアドレスラッチ31
は、CPUがアクセスした最新(1番最後のアクセス)
のDRAMの上位アドレス(行アドレス)を記憶し、バ
スマスタアドレスラッチ32は、バスマスタがアクセス
した最新(1番最後のアクセス)の行アドレスを記憶す
る回路であり、後述するDMA検出回路35からの指示
に従ってそのときの行アドレスをラッチする。
In the figure, the CPU address latch 31
Is the latest CPU access (last access last)
The upper address (row address) of the DRAM is stored in the bus master address latch 32. The bus master address latch 32 is a circuit for storing the latest row address (first last access) accessed by the bus master. The row address at that time is latched according to.

【0051】また、アドレスラッチ15と比較器16と
は、前述したようにアドレスラッチ15に記憶されてい
る前回のアクセスの行アドレスと、今回のアクセスの行
アドレスとを比較して、両者が一致するか否かを判断す
る回路である。
Further, the address latch 15 and the comparator 16 compare the row address of the previous access stored in the address latch 15 with the row address of the current access as described above, and the two match. This is a circuit for determining whether or not to do.

【0052】比較器33は、DMA検出回路35からの
制御信号に従ってCPUアドレスラッチ31に記憶され
ているCPUがアクセスした最新の行アドレスと、アド
レスラッチ15に記憶されている前回の行アドレスとを
比較する回路であり、アドレスが不一致のときにはロー
レベルのCPUアドレス不一致信号dをDMA検出回路
35に出力する。
The comparator 33 compares the latest row address accessed by the CPU stored in the CPU address latch 31 and the previous row address stored in the address latch 15 in accordance with the control signal from the DMA detection circuit 35. This is a circuit for comparison and outputs a low level CPU address mismatch signal d to the DMA detection circuit 35 when the addresses do not match.

【0053】同様に、比較器34は、DMA検出回路3
5からの制御信号に従ってバスマスタアドレスラッチ3
2に記憶されているバスマスタがアクセスした最新の行
アドレスと、アドレスラッチ15に記憶されている前回
の行アドレスとを比較する回路であり、アドレスが不一
致のときにはローレベルのバスマスタアドレス不一致信
号eをDMA検出回路35に出力する。
Similarly, the comparator 34 includes the DMA detection circuit 3
Bus master address latch 3 according to the control signal from 5
2 is a circuit for comparing the latest row address accessed by the bus master stored in 2 with the previous row address stored in the address latch 15. When the addresses do not match, a low level bus master address mismatch signal e is output. Output to the DMA detection circuit 35.

【0054】DMA検出回路35は、CPU及びバスマ
スタのアドレス確定信号、バスマスタのバス要求信号、
CPUのバス開放許可信号等のバスアビトレーション信
号から、次のアクセスがCPUか、あるいはバスマスタ
かを判断し、比較器33又は比較器34に行アドレスの
比較を指示する。また、比較器33、34から出力され
るローレベルのCPUアドレス不一致信号d又はバスア
ドレス不一致信号eを検出してローレベルのアドレス不
一致信号fをオアゲート36に出力する。
The DMA detection circuit 35 includes an address confirmation signal for the CPU and the bus master, a bus request signal for the bus master,
Based on the bus arbitration signal such as the bus release permission signal of the CPU, it is determined whether the next access is the CPU or the bus master, and the comparator 33 or 34 is instructed to compare the row address. Further, it detects the low level CPU address mismatch signal d or the bus address mismatch signal e output from the comparators 33 and 34 and outputs the low level address mismatch signal f to the OR gate 36.

【0055】オアゲート36には、DMA検出回路35
からのアドレス不一致信号fと、前述した比較器16か
らのアドレス不一致信号aとが入力しており、何れか一
方の信号がローレベルのとき、ローレベルのベージモー
ドキャンセル信号gをDRAMコントローラ37に出力
する。
The OR gate 36 has a DMA detection circuit 35.
The address non-match signal f from the comparator 16 and the address non-match signal a from the comparator 16 are input, and when either one of the signals is at the low level, the low level bage mode cancel signal g is sent to the DRAM controller 37. Output.

【0056】DRAMコントローラ37は、DRAMの
アドレスの取り込みタイミングを制御する行アドレスス
トローブ信号(RAS信号)、列アドレスストローブ信
号(CAS信号)、書き込みを制御するライトイネーブ
ル信号(WE信号)等の出力及びDRAMのリフレッシ
ュ制御等を行う回路である。
The DRAM controller 37 outputs a row address strobe signal (RAS signal), a column address strobe signal (CAS signal), a write enable signal (WE signal) for controlling writing, and the like for controlling the fetch timing of the DRAM address. This is a circuit for performing refresh control of the DRAM.

【0057】次に、上記のDRAM制御装置の動作を図
5の動作タイムチャートを参照して説明する。CPUの
アクセスサイクルで、CPUのアドレス確定信号がアク
ティブとなったことが検出されると、DMA検出回路3
5からCPUアドレスラッチ31に行アドレスのラッチ
が指示され、そのときCPUがアクセスする行アドレス
がCPUアドレスラッチ31に記憶される。また、比較
器16によるアドレスラッチ15に記憶されている前回
の行アドレスと、今回の行アドレスとの比較が終了した
後、アドレスラッチ15に今回のCPUアドレスがラッ
チされる(図5、I)。
Next, the operation of the above DRAM controller will be described with reference to the operation time chart of FIG. When it is detected that the address confirmation signal of the CPU becomes active in the access cycle of the CPU, the DMA detection circuit 3
5, the CPU address latch 31 is instructed to latch the row address, and the row address accessed by the CPU at that time is stored in the CPU address latch 31. Further, after the comparison of the previous row address stored in the address latch 15 by the comparator 16 and the current row address is completed, the current CPU address is latched in the address latch 15 (FIG. 5, I). ..

【0058】CPUは、バスマスタのバス要求信号がア
クティブとなったことを検出して、バスマスタからバス
の要求があったことを認識すると、アクセスが終了した
時点でバス開放許可信号をアクティブにして、バスの使
用権をバスマスタに渡す。
When the CPU detects that the bus request signal of the bus master has become active and recognizes that the bus master has requested the bus, it activates the bus release permission signal when the access is completed, Pass the bus usage right to the bus master.

【0059】DMA検出回路35は、CPU及びバスマ
スタのアドレス確定信号が非アクティブ、バスマスタの
バス要求信号がアクティブで、かつCPUのバス開放許
可信号がアクティブとなったことを検出したなら、バス
の使用権がCPUからバスマスタに移行したことものと
判断して、比較器34に行アドレスの比較を指示する。
これを受け、比較器34は、バスマスタアドレスラッチ
32に記憶されているバスマスタがアクセスした最新の
行アドレスと、アドレスラッチ15に記憶されている直
前のアクセスの行アドレス(この場合、1サイクル前に
CPUがアクセスした行アドレス)との比較を行う。
If the DMA detection circuit 35 detects that the address confirmation signals of the CPU and the bus master are inactive, the bus request signal of the bus master is active, and the bus release permission signal of the CPU is active, the bus is used. It judges that the right has been transferred from the CPU to the bus master, and instructs the comparator 34 to compare the row addresses.
In response to this, the comparator 34 receives the latest row address accessed by the bus master stored in the bus master address latch 32 and the row address of the last access stored in the address latch 15 (in this case, one cycle before). The row address accessed by the CPU) is compared.

【0060】ここで、比較器34でバスマスタがアクセ
スした最新の行アドレスと、1サイクル前の行アドレス
とを比較しているのは、次のアクセスがバスマスタの場
合、バスマスタが1番最後にアクセスした行アドレスと
同じ行アドレスがアクセスされる可能性が高いので、バ
スマスタの最新の行アドレスと直前の行アドレスとを比
較し、両者が一致する場合には、次のアクセスでもペー
ジモードでのDRAMのアクセスを継続させる為であ
る。
Here, the comparator 34 compares the latest row address accessed by the bus master with the row address one cycle before. The reason is that if the next access is a bus master, the bus master will access the last one. Since the same row address as the specified row address is likely to be accessed, the latest row address of the bus master is compared with the immediately preceding row address, and if they match, the next access will also cause DRAM in page mode. This is for continuing the access of.

【0061】バスマスタがアクセスした最新の行アドレ
スと前回(1サイクル前)アクセス時の行アドレスとが
一致する場合には、比較器34から出力されるバスマス
タアドレス不一致信号eはハイレベルのままとなるの
で、DMA検出回路35は、ハイレベルのアドレス不一
致信号fを出力する。
When the latest row address accessed by the bus master and the row address at the time of the previous access (one cycle before) match, the bus master address mismatch signal e output from the comparator 34 remains high level. Therefore, the DMA detection circuit 35 outputs a high level address mismatch signal f.

【0062】この結果、行アドレスが一致する場合に
は、DRAMコントローラ37に入力するページモード
キャンセル信号gはハイレベルのままとなり、DRAM
コントローラ37から出力されるRAS信号は、次のバ
スマスタのアクセスサイクルまでの間アクティブのまま
となり、ページモードでのDRAMのアクセスが行われ
る。
As a result, if the row addresses match, the page mode cancel signal g input to the DRAM controller 37 remains at the high level, and the DRAM
The RAS signal output from the controller 37 remains active until the access cycle of the next bus master, and the DRAM is accessed in the page mode.

【0063】一方、バスマスタがアクセスした最新の行
アドレスと前回アクセス時の行アドレスとが一致しない
場合には、比較器34からはローレベルのバスマスタア
ドレス不一致信号eが出力される。DMA検出回路35
は、バスマスタアドレス不一致信号がローレベルとなっ
たことを検出すると、ローレベルのアドレス不一致信号
をオアゲート26に出力する。
On the other hand, when the latest row address accessed by the bus master and the row address at the time of previous access do not match, the comparator 34 outputs the low level bus master address mismatch signal e. DMA detection circuit 35
When it detects that the bus master address mismatch signal goes low, it outputs a low level address mismatch signal to the OR gate 26.

【0064】この結果、行アドレスが一致しない場合に
は、DRAMコントローラ37に入力するページモード
キャンセル信号gはローレベルとなり、DRAMコント
ローラ37から出力されるRAS信号は一定時間非アク
ティブとなる。これによりRAS信号のプリチャージ時
間が確保される(図5、II、III)。
As a result, when the row addresses do not match, the page mode cancel signal g input to the DRAM controller 37 becomes low level, and the RAS signal output from the DRAM controller 37 becomes inactive for a certain period of time. This secures the precharge time of the RAS signal (FIGS. 5, II and III).

【0065】なお、次のアクセスがCPUである場合、
すなわちバスの使用権が移行しない場合には、ページモ
ードが有効となる可能性が高いので、DRAMコントロ
ーラ37は、RAS信号をアクティブのままにしてペー
ジモードを継続させる。
If the next access is the CPU,
That is, if the bus use right does not shift, the page mode is likely to be valid, so the DRAM controller 37 keeps the RAS signal active and continues the page mode.

【0066】バスマスタは、アクセスが終了した時点で
バス獲得信号を非アクティブにして、バスの使用権をC
PUに渡す。DMA検出回路35は、CPU及びバスマ
スタのアドレス確定信号が非アクティブ、バスマスタの
バス要求信号及びCPUのバス開放許可信号が非アクテ
ィブで、バスマスタのバス獲得信号が非アクティブとな
ったことを検出したなら、バスの使用権がバスマスタか
らCPUに移行したものと判断して、比較器33にCP
Uアドレスラッチ31に記憶されているCPUがアクセ
スした最新の行アドレスと、アドレスラッチ15に記憶
されている前回アクセス時の行アドレスとの比較を指示
する。
The bus master deactivates the bus acquisition signal when the access is completed, and the bus mastership becomes C.
Pass to PU. If the DMA detection circuit 35 detects that the address confirmation signals of the CPU and the bus master are inactive, the bus request signal of the bus master and the bus release permission signal of the CPU are inactive, and the bus acquisition signal of the bus master is inactive. , It is judged that the bus use right is transferred from the bus master to the CPU, and the comparator 33 receives the CP.
An instruction is given to compare the latest row address accessed by the CPU, which is stored in the U address latch 31, with the row address at the time of the previous access, which is stored in the address latch 15.

【0067】CPUのアクセスの場合もバスマスタと同
様に、次のアクセスでCPUが1番最後にアクセスした
行アドレスと同じ行アドレスがアクセスされる可能性が
高いので、CPUアドレスラッチ31に記憶されている
CPUがアクセスした最新の(1番最後の)行アドレス
と、アドレスラッチ15に記憶されている前回アクセス
の行アドレス(この場合、1サイクル前にバスマスタが
アクセスした行アドレス)とを比較することで、次のC
PUのアクセスでアドレスが確定する前に、ページモー
ドを継続するか否かを判断するようにしている。
In the case of CPU access as well, like the bus master, it is highly likely that the same row address as the last row address accessed by the CPU will be accessed in the next access, so it is stored in the CPU address latch 31. Comparing the latest (first and last) row address accessed by the existing CPU with the previously accessed row address stored in the address latch 15 (in this case, the row address accessed by the bus master one cycle before). And the next C
Before the address is determined by the PU access, it is determined whether or not the page mode is continued.

【0068】CPUがアクセスした最新の行アドレスと
前回アクセス時(1サイクル前)の行アドレスとが一致
する場合には、前述したバスマスタのアクセルと同様
に、比較器33からはハイレベルのCPUアドレス不一
致信号dが出力されたままとなるので、DRAMコント
ローラ37から出力されるRAS信号は、次のCPUの
アクセスサイクルまでの間アクティブのままとなり、ペ
ージモードでのDRAMのアクセスが行われる。
When the latest row address accessed by the CPU and the row address at the time of the previous access (one cycle before) match, the high-level CPU address is output from the comparator 33 as in the accelerator of the bus master described above. Since the non-coincidence signal d is still output, the RAS signal output from the DRAM controller 37 remains active until the next CPU access cycle, and the DRAM is accessed in the page mode.

【0069】一方、CPUがアクセスした最新の行アド
レスと前回アクセス時の行アドレスとが一致しない場合
には、比較器33からはローレベルのCPUアドレス不
一致信号dが出力されるので、DRAMコントローラ3
7から出力されるRAS信号は非アクティブとなり、ペ
ージモードアクセスが終了する(図5、IV)。以下、後
続のアクセスサイクルにおいても、バスの使用権が移行
した時点でCPU又はバスマスタの最新の行アドレスと
前回アクセス時の行アドレスとの比較が行われ、ページ
モードを継続するか、終了するかの判断が行われる。
On the other hand, if the latest row address accessed by the CPU and the row address at the time of the previous access do not match, the comparator 33 outputs the low-level CPU address mismatch signal d, so the DRAM controller 3
The RAS signal output from 7 becomes inactive, and the page mode access ends (FIG. 5, IV). In the following, also in the subsequent access cycle, the latest row address of the CPU or the bus master is compared with the row address of the previous access at the time when the bus usage right is transferred, and whether the page mode is continued or terminated. Is judged.

【0070】上記実施例ではバスの使用権が移行したの
を検出したなら、CPU又はバスマスタがアクセスした
最新の行アドレスと、1サイクル前のアクセス時の行ア
ドレスとが一致するか否かを比較し、両者が一致する場
合には、次のCPU又はバスマスタのアクセスにおいて
も同じ行アドレスがアクセスされる可能性が高いので、
RAS信号をアクティブのままにしてページモードを継
続し、行アドレスが不一致の場合には、次のアクセスサ
イクルのアドレスが確定する前にRAS信号を非アクテ
ィブにしてページモードを終了させるようにしている。
In the above embodiment, when it is detected that the bus right has been transferred, it is compared whether or not the latest row address accessed by the CPU or the bus master matches the row address at the time of access one cycle before. However, if they match, the same row address is likely to be accessed in the next CPU or bus master access.
The page mode is continued with the RAS signal kept active, and if the row addresses do not match, the RAS signal is deactivated and the page mode is ended before the address of the next access cycle is determined. ..

【0071】これにより、CPU又はバスマスタの最新
の行アドレスと1サイクル前の行アドレスとが一致しな
い場合には、次のアクセスサイクルの前にRAS信号を
非アクティブするようにしたので、従来のようにアクセ
ス中にウェイトサイクルを挿入してRAS信号を非アク
ティブにする必要が無く、その分DRAMのアクセス時
間を短縮できる。
As a result, when the latest row address of the CPU or the bus master does not match the row address of one cycle before, the RAS signal is deactivated before the next access cycle. It is not necessary to insert a wait cycle during access to deactivate the RAS signal, and the DRAM access time can be shortened accordingly.

【0072】さらに、CPU又はバスマスタの最新の行
アドレスと1サイクル前の行アドレスとが一致する場
合、例えばDRAM上に配置されたプログラムと、バス
マスタがアクセスするデータのページが一致する場合な
どには、RAS信号をアクティブのままにしてページモ
ードを継続するようにしたのでDRAMのアクセス時間
をさらに短縮できる。
Further, when the latest row address of the CPU or the bus master matches the row address of one cycle before, for example, when the program arranged in the DRAM and the page of data accessed by the bus master match. , The RAS signal is kept active to continue the page mode, so that the access time of the DRAM can be further shortened.

【0073】なお、バスマスタ又はCPUの最新の行ア
ドレスと直前の行アドレスとが一致しても、実際の行ア
ドレスが直前の行アドレスと一致しない場合がある。す
なわち、次のアクセスがバスマスタで、バスマスタがア
クセスした最新の行アドレスと直前の行アドレスとが一
致したが、実際にバスマスタがアクセスする行アドレス
が直前の行アドレスと一致しない場合と、次のアクセス
がCPUで、CPUがアクセスした最新の行アドレスと
直前の行アドレスとが一致したが、CPUが実際にアク
セスする行アドレスが直前の行アドレスと一致しない場
合とである。この実施例では、これらの場合のみCPU
又はバスマスタのアクセス中にRAS信号のプリチャー
ジが行われる。
Even if the latest row address of the bus master or the CPU matches the previous row address, the actual row address may not match the previous row address. That is, the next access is the bus master, the latest row address accessed by the bus master matches the previous row address, but the row address actually accessed by the bus master does not match the previous row address. In the CPU, the latest row address accessed by the CPU matches the previous row address, but the row address actually accessed by the CPU does not match the previous row address. In this embodiment, the CPU is used only in these cases.
Alternatively, the RAS signal is precharged during the access of the bus master.

【0074】次に、図6は本発明の第3実施例のDRA
M制御装置の主要部の回路構成図である。この実施例
は、図4の第2実施例のアドレスラッチを1個少なくし
た場合の回路構成を示している。以下、図4と同じ回路
ブロックには、同じ符号を付けてその説明を省略する。
Next, FIG. 6 shows the DRA of the third embodiment of the present invention.
It is a circuit block diagram of the principal part of an M control apparatus. This embodiment shows a circuit configuration when the number of address latches in the second embodiment of FIG. 4 is reduced by one. Hereinafter, the same circuit blocks as those in FIG. 4 will be assigned the same reference numerals and explanations thereof will be omitted.

【0075】図6において、比較器41は、後述するD
MA検出回路42からの指示に従ってCPUアドレスラ
ッチ31に記憶されているCPUがアクセスした最新の
行アドレスと、バスマスタアドレスラッチ32に記憶さ
れているバスマスタがアクセスした最新の行アドレスと
を比較し、両者が一致する場合にはハイレベルのアドレ
ス不一致信hを、不一致の場合にはローレベルのアドレ
ス不一致信号hをDMA検出回路42に出力する。な
お、比較器41からは、通常、ハイレベルのアドレス不
一致信号が出力されている。
In FIG. 6, the comparator 41 has a D
According to the instruction from the MA detection circuit 42, the latest row address accessed by the CPU stored in the CPU address latch 31 is compared with the latest row address accessed by the bus master stored in the bus master address latch 32, and both are compared. If they do not match, a high-level address mismatch signal h is output, and if they do not match, a low-level address mismatch signal h is output to the DMA detection circuit 42. Note that the comparator 41 normally outputs a high-level address mismatch signal.

【0076】DMA検出回路42は、アドレス確定信
号、バスマスタのバス要求信号、CPUのバス開放許可
信号等のバスアビトレーション信号の変化からバスの使
用権の移行を検出する回路であり、バスの使用権が移行
したことを検出したなら、比較器41に行アドレスの比
較を指示する。また、DMA検出回路42は、比較器4
1から出力されるローレベルのアドレス不一致信号hを
検出したなら、ローレベルのアドレス不一致信号f1
オアゲート45に出力する。
The DMA detection circuit 42 is a circuit for detecting the shift of the bus use right from the change of the bus arbitration signal such as the address confirmation signal, the bus request signal of the bus master, and the bus release permission signal of the CPU. When it is detected that the right has been transferred, the comparator 41 is instructed to compare the row addresses. Further, the DMA detection circuit 42 includes a comparator 4
When the low level address mismatch signal h output from 1 is detected, the low level address mismatch signal f 1 is output to the OR gate 45.

【0077】比較器43、44は、DMA検出回路42
からの制御信号に従ってアドレスが確定したときに、現
在の行アドレスとバスマスタアドレスラッチ32又はC
PUアドレスラッチ31にラッチされている直前の行ア
ドレスとを比較する回路である。
The comparators 43 and 44 are the DMA detection circuit 42.
The current row address and the bus master address latch 32 or C when the address is determined according to the control signal from
This is a circuit for comparing the immediately preceding row address latched by the PU address latch 31.

【0078】例えば、直前のアクセスがバスマスタであ
った場合には、比較器43によりバスマスタアドレスラ
ッチ32に記憶されているバスマスタがアクセスした最
新の行アドレスと、現在の行アドレスとが比較され、両
者が一致する場合にはハイレベルのアドレス不一致信号
1 が、不一致の場合にはローレベルのアドレス不一致
信号b1 がオアゲート45に出力される。
For example, if the last access was to the bus master, the comparator 43 compares the latest row address accessed by the bus master stored in the bus master address latch 32 with the current row address. If they match, the high level address mismatch signal b 1 is output to the OR gate 45, and if they do not match, the low level address mismatch signal b 1 is output to the OR gate 45.

【0079】また、直前のアクセスがCPUであった場
合には、比較器44によりCPUアドレスラッチ31に
記憶されているCPUがアクセスした最新の行アドレス
と、現在の行アドレスとが比較され、両者が一致する場
合にはハイレベルのアドレス不一致信号b2 が、不一致
の場合にはローレベルのアドレス不一致信号b2 がオア
ゲート45に出力される。
If the last access was to the CPU, the comparator 44 compares the latest row address accessed by the CPU stored in the CPU address latch 31 with the current row address. If they match, a high-level address mismatch signal b 2 is output to the OR gate 45, and if they do not match, a low-level address mismatch signal b 2 is output to the OR gate 45.

【0080】DRAMコントローラ46は、基本的には
図4の回路と同様であり、DRAMのリード、ライトの
タイミング制御、リフレシュ制御等を行う。DRAMコ
ントローラ46は、オアゲート45から出力されるペー
ジモードキャンセル信号g1がハイレベルのときは、R
AS信号をアクティブのままとしてページモードを継続
し、ページモードキャンセル信号g1 がローベルのとき
は、RAS信号を非アクティブにしてページモードを終
了させる。
The DRAM controller 46 is basically the same as the circuit of FIG. 4, and performs DRAM read / write timing control, refresh control, and the like. The DRAM controller 46 outputs R when the page mode cancel signal g 1 output from the OR gate 45 is at high level.
The page mode is continued with the AS signal kept active, and when the page mode cancel signal g 1 is low, the RAS signal is deactivated to end the page mode.

【0081】すなわち、上記のDRAM制御装置では、
バスの使用権の移行が検出された時点(次のアクセスの
アドレスが確定する前)に、比較器41によりバスマス
タがアクセスした最新の行アドレスとCPUがアクセス
した最新の行アドレスとの比較を行い、行アドレスが一
致した場合には、RAS信号がアクティブのままとして
ページモードを継続させ、行アドレスが一致しない場合
には、次のアクセスの行アドレスが確定する前にRAS
信号を非アクティブにしてページモードを終了させる また、次のアクセスサイクルで行アドレスが確定したと
きに、比較器43又は比較器44によりそのとき確定す
る行アドレスと、バスマスタアドレスラッチ32又はC
PUアドレスラッチ31に記憶されている直前のアクセ
スにおける行アドレスとの比較を行い、実際の行アドレ
スが一致したときにはそのままページモードでのアクセ
スを行い、実際の行アドレスが一致しないときには、ア
クセス中にウェイトサイクルを挿入してRAS信号が非
アクティブして、ページモードのアクセスを終了させ
る。
That is, in the above DRAM controller,
At the time when the transfer of the right to use the bus is detected (before the address of the next access is determined), the comparator 41 compares the latest row address accessed by the bus master with the latest row address accessed by the CPU. If the row addresses match, the RAS signal remains active and the page mode is continued. If the row addresses do not match, the RAS signal is set before the row address for the next access is determined.
The signal is made inactive to terminate the page mode. Further, when the row address is determined in the next access cycle, the row address determined by the comparator 43 or 44 at that time and the bus master address latch 32 or C.
The row address stored in the PU address latch 31 at the immediately preceding access is compared, and when the actual row address matches, the page mode access is performed as it is. When the actual row address does not match, the access is performed during the access. A wait cycle is inserted and the RAS signal is deactivated, ending the page mode access.

【0082】次に、上記DRAM制御装置の動作を図7
を参照して説明する。CPUのアクセスが終了して、C
PU及びバスマスタのアドレス確定信号が非アクティ
ブ、バスマスタのバス要求信号がアクティブで、かつC
PUのバス開放許可信号がアクティブとなったことを検
出したなら、DMA検出回路42は、バスの使用権がC
PUからバスマスタに移行したものと判断して、比較器
41に行アドレスの比較を指示する。
Next, the operation of the DRAM control device will be described with reference to FIG.
Will be described with reference to. After the CPU access is completed, C
Address determination signals of PU and bus master are inactive, bus request signal of bus master is active, and C
When it is detected that the PU bus release permission signal has become active, the DMA detection circuit 42 determines that the bus use right is C
When it is determined that the PU has shifted to the bus master, the comparator 41 is instructed to compare the row addresses.

【0083】これにより、比較器41は、バスマスタア
ドレスラッチ32に記憶されているバスマスタがアクセ
スした最新の(1番最後の)行アドレスと、CPUアド
レスラッチ31に記憶されているCPUがアクセスした
最新の行アドレスとの比較を行う。
As a result, the comparator 41 causes the latest (first-last) row address accessed by the bus master stored in the bus master address latch 32 and the latest row address accessed by the CPU stored in the CPU address latch 31. Compare with the row address of.

【0084】この比較の結果、行アドレスが一致した場
合には、バスマスタの次のアクセスでも同じ行アドレス
がアクセスされる可能性が高いので、DRAMコントロ
ーラ46は、RAS信号をアクティブのままとして、次
のバスマスタのアクセスサイクルでもページモードでの
DRAMアクセスを可能にする。このとき、行アドレス
が不一致の場合には、RAS信号を一定時間(T1時
間)非アクティブにしてページモードを終了させる(図
7、II、III)。
If the row addresses match as a result of this comparison, it is highly likely that the same row address will be accessed in the next access by the bus master. Therefore, the DRAM controller 46 keeps the RAS signal active, and It enables DRAM access in page mode even in the bus master access cycle. At this time, if the row addresses do not match, the RAS signal is made inactive for a predetermined time (T1 time) to end the page mode (FIGS. 7, II and III).

【0085】なお、このとき次のアクセスがCPUのア
クセスの場合には、ページモードが有効となる可能性が
高いので、比較器41での比較は行わず、次のアクセス
サイクルまでRAS信号はアクティブのままにしてペー
ジモードを継続させる。
At this time, if the next access is a CPU access, the page mode is likely to be valid, so the comparator 41 does not perform comparison, and the RAS signal remains active until the next access cycle. Leave it and continue page mode.

【0086】次に、バスマスタのアクセスが終了して、
CPU及びバスマスタのアドレス確定信号が非アクティ
ブ、バスマスタのバス要求信号が非アクティブで、かつ
CPUのバス開放許可信号が非アクティブとなったこと
を検出したなら、DMA検出回路42は、バスの使用権
がバスマスタからCPUに移行したものと判断して比較
器41に行アドレスの比較を指示する。
Next, when the bus master access is completed,
If it is detected that the address confirmation signal of the CPU and the bus master is inactive, the bus request signal of the bus master is inactive, and the bus release permission signal of the CPU is inactive, the DMA detection circuit 42 determines that Judges that the bus master has transferred to the CPU, and instructs the comparator 41 to compare the row address.

【0087】この場合も、上述したバスマスタのアクセ
スと同様に、比較器41は、CPUアドレスラッチ31
のCPUがアクセスした最新の行アドレスと、バスマス
タアドレスラッチ32のバスマスタがアクセスした最新
の行アドレスとを比較する。この比較の結果、行アドレ
スが一致する場合には、CPUの次のアクセスでも同じ
行アドレスがアクセスされる可能性が高いので、DRA
Mコントローラ46は次のアクセスサイクルまでRAS
信号をアクティブにして、ページモードでのDRAMの
アクセスを可能にする。このとき、行アドレスが一致し
なければ、RAS信号を一定時間非アクティブにしてペ
ージモードを終了させる(図7、IV、V)。
In this case as well, as in the case of the bus master access described above, the comparator 41 determines the CPU address latch 31.
The latest row address accessed by the CPU is compared with the latest row address accessed by the bus master of the bus master address latch 32. If the row addresses match as a result of this comparison, the same row address is likely to be accessed in the next access by the CPU.
M controller 46 RAS until the next access cycle
Activates the signal to enable DRAM access in page mode. At this time, if the row addresses do not match, the RAS signal is made inactive for a certain period of time to end the page mode (FIG. 7, IV, V).

【0088】なお、バスマスタ又はCPUの次のアクセ
スでそれぞれのアドレスが確定した時点で、比較器43
又は比較器44により、直前(1サイクル前)のアクセ
スにおける行アドレスと、確定した行アドレスとの比較
が行われ、行アドレスが一致しないときには、そのアク
セス中にRAS信号が非アクティブとなる。
It should be noted that when the respective addresses are determined by the next access of the bus master or the CPU, the comparator 43
Alternatively, the comparator 44 compares the row address in the immediately previous access (one cycle before) with the confirmed row address, and when the row addresses do not match, the RAS signal becomes inactive during the access.

【0089】すなわち、アドレスが確定する前の行アド
レスの比較で、バスマスタがアクセスした最新の行アド
レスと、CPUがアクセスした最新の行アドレスとが一
致したが、実際にバスマスタがアクセスした行アドレス
が直前のアクセスの行アドレスと一致しない場合と、実
際にCPUがアクセスした行アドレスが直前のアクセス
の行アドレスと一致しない場合のみ、CPU又はバスマ
スタのアクセス中にウエイトサイクルが挿入されてRA
S信号が非アクティブとなる。
That is, in the comparison of the row address before the address is determined, the latest row address accessed by the bus master and the latest row address accessed by the CPU match, but the row address actually accessed by the bus master is Only when the row address of the immediately preceding access does not match or when the row address actually accessed by the CPU does not match the row address of the immediately preceding access, a wait cycle is inserted during the access of the CPU or the bus master, and RA
The S signal becomes inactive.

【0090】この実施例では、上述した第2実施例の効
果に加え、アドレスラッチの数をすくなくできるので、
第2実施例より簡単な回路構成で高速なメモリアクセス
を実現できる。
In addition to the effect of the second embodiment described above, this embodiment can reduce the number of address latches,
High-speed memory access can be realized with a simpler circuit configuration than the second embodiment.

【0091】なお、上記実施例では、CPU及びバスマ
スタのアドレス確定信号、バスマスタのバス要求信号、
CPUのバス開放許可信号等の変化により、バスの使用
権が移行したことを検出しているが、上記の信号を全て
利用しなくとも、あるいはそれ以外の信号からバスの使
用権の移行を検出するようにしても良い。また、CPU
及びバスマスタは1つに限らず複数ある場合にも本発明
は適用できる。
In the above embodiment, the address confirmation signal of the CPU and the bus master, the bus request signal of the bus master,
Although it is detected that the right to use the bus has been transferred due to a change in the CPU bus release permission signal, etc., the transfer of the right to use the bus is detected without using all of the above signals or from other signals. It may be done. Also, CPU
The present invention can be applied not only to one bus master but also to a plurality of bus masters.

【0092】[0092]

【発明の効果】本発明では、バスの使用権がCPUから
バスマスタへ、あるいはバスマスタからCPUへ移行す
るのを検出して、次のアクセスサイクルのアドレスが確
定する前に、RAS信号を非アクティブにしてページモ
ードを終了させるようにしたので、次のアクセスサイク
ルでウエイトサイクルを挿入してRAS信号を非アクテ
ィブにする必要が無く、メモリのアクセス時間を短縮す
ることができる。さらに、CPU及びバスマスタがアク
セスした最新の行アドレスを記憶しておいて、バスの使
用権がCPUからバスマスタへ、あるいはバスマスタか
らCPUへ移行した場合に、例えばそれらの行アドレス
と直前のアクセスの行アドレスとを比較して、行アドレ
スが一致する場合には、RAS信号をアクティブのまま
としてページモードのアクセスを継続し、行アドレスが
不一致の場合には、次のアクセスのアドレスが確定する
前に、ページモードをキャンセルすることで、メモリの
アクセス時間をさらに短縮することができる。
According to the present invention, the RAS signal is made inactive before detecting the transfer of the right to use the bus from the CPU to the bus master or from the bus master to the CPU, and before the address of the next access cycle is determined. Since the page mode is terminated in this manner, there is no need to insert a wait cycle in the next access cycle to deactivate the RAS signal, and the memory access time can be shortened. Further, the latest row address accessed by the CPU and the bus master is stored, and when the bus use right is transferred from the CPU to the bus master or from the bus master to the CPU, for example, those row address and the row of the immediately preceding access are stored. When the row address is compared with the address and the RAS signal remains active, the page mode access is continued, and when the row address does not match, before the address of the next access is determined. By canceling the page mode, the memory access time can be further shortened.

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

【図1】(a) は第1の発明の原理説明図であり、(b) は
第2及び第3の発明の原理説明図である。
FIG. 1A is a diagram illustrating the principle of the first invention, and FIG. 1B is a diagram illustrating the principle of the second and third inventions.

【図2】第1実施例のDRAM制御装置の回路構成図で
ある。
FIG. 2 is a circuit configuration diagram of the DRAM control device of the first embodiment.

【図3】第1実施例の動作タイムチャートである。FIG. 3 is an operation time chart of the first embodiment.

【図4】第2実施例のDRAM制御装置の回路構成図で
ある。
FIG. 4 is a circuit configuration diagram of a DRAM control device of a second embodiment.

【図5】第2実施例の動作タイムチャートである。FIG. 5 is an operation time chart of the second embodiment.

【図6】第3実施例のDRAM制御装置の回路構成図で
ある。
FIG. 6 is a circuit configuration diagram of a DRAM control device of a third embodiment.

【図7】第3実施例の動作タイムチャートである。FIG. 7 is an operation time chart of the third embodiment.

【図8】コンピュータシステムの構成図である。FIG. 8 is a configuration diagram of a computer system.

【図9】CPUとバスマスタのアクセスが交互に行われ
る場合の動作説明図である。
FIG. 9 is an operation explanatory diagram when the CPU and the bus master are alternately accessed.

【図10】バスマスタがバースト転送を行う場合の動作
説明図である。
FIG. 10 is an operation explanatory diagram when the bus master performs burst transfer.

【図11】従来のDRAM制御装置の回路構成図であ
る。
FIG. 11 is a circuit configuration diagram of a conventional DRAM control device.

【図12】従来のメモリアクセス方式の動作タイムチャ
ートである。
FIG. 12 is an operation time chart of a conventional memory access method.

【符号の説明】[Explanation of symbols]

1 検出手段 2、2A、2B 制御手段 3 CPUアドレス記憶手段 4 バスマスタアドレス記憶手段 5A、5B 比較手段 6 アドレス記憶手段 DESCRIPTION OF SYMBOLS 1 detection means 2, 2A, 2B control means 3 CPU address storage means 4 bus master address storage means 5A, 5B comparison means 6 address storage means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】CPU又はバスマスタがバスの使用権を得
てメモリに対するアクセスを行うシステムにおいて、 バスアビトレーション信号の変化から、バスの使用権が
CPUからバスマスタへ、あるいはバスマスタからCP
Uへ移行したことを検出する検出手段(1)と、 この検出手段(1)でバスの使用権が移行したことを検
出した場合に、次のアクセスのアドレスが確定する前に
RAS信号を所定時間非アクティブにしてページモード
を終了させる制御手段(2)とを備えることを特徴とす
るメモリアクセス方式。
1. In a system in which a CPU or a bus master obtains a bus use right to access a memory, the bus use right is transferred from the CPU to the bus master or from the bus master to the CP due to a change in the bus arbitration signal.
When the detection means (1) for detecting the shift to U and the shift of the right to use the bus are detected by the detection means (1), the RAS signal is set to a predetermined value before the address of the next access is determined. A memory access method, comprising: a control means (2) that is inactive for a certain period of time to end the page mode.
【請求項2】CPU又はバスマスタがバスの使用権を得
てメモリに対するアクセスを行うシステムにおいて、 バスアビトレーション信号の変化から、バスの使用権が
CPUからバスマスタへ、あるいはバスマスタからCP
Uへ移行したことを検出する検出手段(1)と、 CPUがアクセスした最新の行アドレスを記憶するCP
Uアドレス記憶手段(3)と、 バスマスタがアクセスした最新の行アドレスを記憶する
バスマスタアドレス記憶手段(4)と、 前記検出手段(1)でバスの使用権が移行したことを検
出した場合に、前記CPUアドレス記憶手段(3)に記
憶されている行アドレスと、前記バスマスタアドレス記
憶手段(4)に記憶されている行アドレスとを比較する
比較手段(5A)と、 この比較手段(5A)での比較の結果、行アドレスが一
致した場合には、RAS信号をアクティブのままとして
ページモードを継続させ、行アドレスが一致しない場合
には、次のアクセスのアドレスが確定する前に所定時間
RAS信号を非アクティブにしてページモードを終了さ
せる制御手段(2A)とを備えることを特徴とするメモ
リアクセス方式。
2. In a system in which a CPU or a bus master obtains a bus use right to access a memory, the bus use right is transferred from the CPU to the bus master or from the bus master to the CP due to a change in the bus arbitration signal.
Detecting means (1) for detecting the shift to U and CP for storing the latest row address accessed by the CPU
U address storage means (3), bus master address storage means (4) for storing the latest row address accessed by the bus master, and when the detection means (1) detects that the bus usage right has been transferred, A comparing means (5A) for comparing the row address stored in the CPU address storing means (3) with the row address stored in the bus master address storing means (4), and the comparing means (5A). If the row addresses match as a result of the comparison, the RAS signal remains active and the page mode is continued. If the row addresses do not match, the RAS signal is output for a predetermined time before the address for the next access is determined. And a control means (2A) for deactivating the page mode and ending the page mode.
【請求項3】CPU又はバスマスタがバスの使用権を得
てメモリに対するアクセスを行うシステムにおいて、 バスアビトレーション信号の変化からバスの使用権がC
PUからバスマスタへ、あるいはバスマスタからCPU
へ移行したことを検出する検出手段(1)と、 CPUがアクセスした最新の行アドレスを記憶するCP
Uアドレス記憶手段(3)と、 バスマスタがアクセスした最新の行アドレスを記憶する
バスマスタアドレス記憶手段(4)と、 直前のアクセスでの行アドレスを記憶するアドレス記憶
手段(6)と、 前記検出手段(1)でバスの使用権が移行したことを検
出されたとき、前記CPUアドレス記憶手段(3)又は
バスマスタアドレス記憶手段(4)に記憶されている行
アドレスと、前記アドレス記憶手段(6)に記憶されて
いる直前の行アドレスとを比較する比較手段(5B)
と、 この比較手段(5B)での比較の結果、行アドレスが一
致した場合には、RAS信号をアクティブのままにして
ページモードを継続させ、行アドレスが一致しない場合
には、次のアクセスの行アドレスが確定する前にRAS
信号を非アクティブにしてページモードを終了させる制
御手段(2B)とを備えることを特徴とするメモリアク
セス方式。
3. In a system in which a CPU or a bus master obtains a right to use a bus to access a memory, the right to use the bus is C
PU to bus master or bus master to CPU
Detecting means (1) for detecting the shift to (1) and the CP for storing the latest row address accessed by the CPU
U address storage means (3), bus master address storage means (4) for storing the latest row address accessed by the bus master, address storage means (6) for storing the row address in the immediately preceding access, and the detection means When it is detected in (1) that the right to use the bus has been transferred, the row address stored in the CPU address storage means (3) or the bus master address storage means (4) and the address storage means (6). Comparing means (5B) for comparing with the immediately preceding row address stored in
As a result of the comparison by the comparing means (5B), if the row addresses match, the RAS signal remains active to continue the page mode. If the row addresses do not match, the next access is performed. RAS before the row address is fixed
A memory access method comprising: a control unit (2B) that deactivates a signal to end the page mode.
JP14035492A 1992-06-01 1992-06-01 Memory access system Withdrawn JPH05334176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14035492A JPH05334176A (en) 1992-06-01 1992-06-01 Memory access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14035492A JPH05334176A (en) 1992-06-01 1992-06-01 Memory access system

Publications (1)

Publication Number Publication Date
JPH05334176A true JPH05334176A (en) 1993-12-17

Family

ID=15266880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14035492A Withdrawn JPH05334176A (en) 1992-06-01 1992-06-01 Memory access system

Country Status (1)

Country Link
JP (1) JPH05334176A (en)

Similar Documents

Publication Publication Date Title
KR100387317B1 (en) Method and apparatus for controlling a memory device in page mode
EP0222520A2 (en) Bus access interface and method for a computer
JPH06505825A (en) Refresh control device for dynamic random access memory system
JPH05210567A (en) Memory device and data read/write method of memory
JP3795689B2 (en) Memory controller having continuous page mode and method thereof
US6389520B2 (en) Method for controlling out of order accessing to a multibank memory
US6564284B2 (en) Apparatus for controlling a multibank memory device
JP3922487B2 (en) Memory control apparatus and method
US20050182868A1 (en) Apparatus and method for controlling memory
JPH1011348A (en) Controller for dram, and the dram
US6292867B1 (en) Data processing system
JPH05334176A (en) Memory access system
JP2000242544A (en) Memory controller and direct memory access controller
JP3145765B2 (en) Information processing device
JPH0140432B2 (en)
KR930006380B1 (en) Dynamic ram controller and its method
JPS584375B2 (en) Memory access control method
JPH1116339A (en) Memory command control circuit
JPH01258152A (en) Memory controller
JPH0850567A (en) Data transfer device
JPH0512121A (en) Data processor
JPH0784866A (en) Memory control circuit
JPH07334455A (en) Data transferring method through bus
JPH0594407A (en) Bus control system
JPH1097788A (en) Information processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990803