JP3202272B2 - DMA controller - Google Patents

DMA controller

Info

Publication number
JP3202272B2
JP3202272B2 JP26664691A JP26664691A JP3202272B2 JP 3202272 B2 JP3202272 B2 JP 3202272B2 JP 26664691 A JP26664691 A JP 26664691A JP 26664691 A JP26664691 A JP 26664691A JP 3202272 B2 JP3202272 B2 JP 3202272B2
Authority
JP
Japan
Prior art keywords
transfer
dma transfer
dma
channel
priority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP26664691A
Other languages
Japanese (ja)
Other versions
JPH05108545A (en
Inventor
淳一 自見
豊 石川
秀文 黒川
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP26664691A priority Critical patent/JP3202272B2/en
Publication of JPH05108545A publication Critical patent/JPH05108545A/en
Application granted granted Critical
Publication of JP3202272B2 publication Critical patent/JP3202272B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、DMAコントローラに
関し、特に、DRAMのページモードをサポートする固
定優先順位および回転優先順位のDMAコントローラに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA controller, and more particularly to a fixed priority and rotation priority DMA controller that supports a page mode of a DRAM.

【0002】[0002]

【従来の技術】従来の複数メモリの固定優先順位による
DMAコントローラについて、図9(a),(b)のブ
ロック図およびそのDMA転送制御回路のブロック図を
用いて説明する。図9(a)は、メモリのチャンネル数
が4チャンネルある優先順位固定のDMAコントローラ
の場合を示している。DMAコントローラの内部構造
は、各チャンネルのDMA転送制御回路10b〜13b
と各チャンネルを優先順位順につなぐ優先順位に関する
制御線によって構成される。ここで各チャンネル(CH
0〜CH3)は、DRAMのページモードをサポートし
ている。
2. Description of the Related Art A conventional DMA controller having a fixed priority of a plurality of memories will be described with reference to block diagrams of FIGS. 9A and 9B and a block diagram of a DMA transfer control circuit thereof. FIG. 9A shows the case of a fixed priority DMA controller having four memory channels. The internal structure of the DMA controller includes DMA transfer control circuits 10b to 13b for each channel.
And a control line related to the priority which connects each channel in the priority order. Here, each channel (CH
0 to CH3) support the page mode of the DRAM.

【0003】まず、DRAMのページモードについて説
明する。図10(a)はDRAMのページモードの場合
のDRAMからCPU周辺コントローラへのDMA転送
サイクルを示すタイミング図、図10(b)はページモ
ードではない通常モードのDRAMからCPU周辺コン
トローラへのDMA転送サイクルを示すタイミング図を
示す。
First, the page mode of the DRAM will be described. FIG. 10A is a timing chart showing a DMA transfer cycle from the DRAM to the CPU peripheral controller in the DRAM page mode, and FIG. 10B is a DMA transfer from the normal mode DRAM not in the page mode to the CPU peripheral controller. FIG. 4 shows a timing diagram illustrating a cycle.

【0004】図10(b)の通常のDRAMからのDM
A転送では、1回のDRAMアクセス毎に反転RAS信
号の立下りに対するロウアドレスと、反転CAS信号の
立下りに対するカラムアドレスを用意する必要がある。
これに対してページモードでは、図10(a)に示すよ
うに、最初のアクセスで、ロウアドレスを書き込んで反
転RAS信号を“0”にし続けていれば、2回目以降の
アクセスではカラムアドレスだけ用意すればよく、RA
Sの立下りに対するロウアドレスの設定分のアクセスタ
イムを削減することができる。
[0004] The DM from the normal DRAM shown in FIG.
In the A transfer, it is necessary to prepare a row address for the fall of the RAS signal and a column address for the fall of the CAS signal for each DRAM access.
On the other hand, in the page mode, as shown in FIG. 10A, if the row address is written in the first access and the inverted RAS signal is kept at "0", only the column address is used in the second and subsequent accesses. All you have to do is RA
The access time corresponding to the setting of the row address for the fall of S can be reduced.

【0005】次に、図9(b)のチャンネル単位のDM
A転送制御回路10bを説明する。この回路は、RD/
WR/DAK生成回路2Cと、アドレスカウンタ3と、
ANDゲート4と、ORゲート6とから構成される。
Next, the channel unit DM shown in FIG.
The A transfer control circuit 10b will be described. This circuit uses RD /
A WR / DAK generation circuit 2C, an address counter 3,
It comprises an AND gate 4 and an OR gate 6.

【0006】優先順位制御入力信号PRIは、上位の優
先順位を持つチャンネルでDMA転送中であることを知
るための入力で、後で述べる優先順位制御出力信号PR
Oを上位の優先順位のチャンネルからもらっている。チ
ャンネル毎のDMA転送制御回路10b〜13bは、信
号PRIが“0”の時、自分のDMA転送を行うことが
でき、その要求はDMA転送要求信号DMARQから入
力される。優先順位制御出力PROは、自分を含めた優
先順位上位のチャンネルでDMA転送中であることを下
位のチャンネルに知らせて、下位のチャンネルのDMA
転送を禁止する為の信号である。DMA転送認識信号D
MAAKの反転信号は、本チャンネルにつながるCPU
周辺コントローラに対するアクセスを選択する信号で、
CPU周辺コントローラのチップセレクト信号に接続さ
れ、IOWR・IORDの反転信号は、それぞれCPU
周辺コントローラに対する書込み・読出し信号であり、
RAS・CASの反転信号は、DRMAへのアクセス信
号であり、これらはRD/WR/DAK生成回路2cか
ら出力される。A7−0は、アドレスカウンタ3から出
力されメモリに対するアドレスを示す信号である。
The priority control input signal PRI is an input for knowing that a DMA transfer is being performed on a channel having a higher priority, and is a priority control output signal PR described later.
O is received from a higher priority channel. The DMA transfer control circuits 10b to 13b for each channel can perform their own DMA transfer when the signal PRI is "0", and the request is input from the DMA transfer request signal DMARQ. The priority control output PRO notifies the lower channel that the DMA transfer is being performed on the higher priority channel including itself, and outputs the DMA of the lower channel.
This signal is used to prohibit transfer. DMA transfer recognition signal D
The inverted signal of MAAK is the CPU connected to this channel.
This signal selects access to the peripheral controller.
Connected to the chip select signal of the CPU peripheral controller, the inverted signals of IOWR and IORD
These are write / read signals to the peripheral controller,
The inverted signal of RAS / CAS is an access signal to DRMA, which is output from the RD / WR / DAK generation circuit 2c. A7-0 is a signal output from the address counter 3 and indicating an address for a memory.

【0007】各チャンネルを優先順位順につなぐ優先順
位に関する制御線について説明する。チャンネル単位の
DMA転送制御回路10bの優先順位制御入力信号PR
Iには、優先順位が一つ上位のチャンネルの優先順位制
御出力PROにつながっており、自分より上位のチャン
ネルがDMA転送中であるか否かをチェックし、もし転
送中であれば、上述のDMA転送が終わってPRI入力
が“0”になるまで待ちつづける。このPRI信号が
“0”になると、RD/WR/DAK生成回路2cが駆
動される。
A control line related to the priority order for connecting the channels in the priority order will be described. Priority control input signal PR of the DMA transfer control circuit 10b for each channel
I is connected to the priority control output PRO of the channel whose priority is higher by one, and it is checked whether or not the channel higher than itself is in the DMA transfer. It waits until the PRI input becomes “0” after the DMA transfer is completed. When the PRI signal becomes "0", the RD / WR / DAK generation circuit 2c is driven.

【0008】図10(a)では、1チャンネルのDMA
転送が連続して生じていた場合を示したが、図11で
は、複数のチャンネルが非同期にDMA転送を要求した
場合を示している。図11でははじめCH1でページモ
ードでのDRAMからCPU周辺コントローラへのDM
A転送が始まり、2回転送したことろで、優先順位が上
位のCH0にDMA転送要求が発生して、DMARQ0
が“1”になり、優先順位制御入力PR0が“1”にな
ったため、CH1はDMA転送をやめて、DMA転送は
CH0に移っている。この例では、CH0のDMA転送
は、2回のみで終了しており、再びCH1のDMA転送
が始まっている。
In FIG. 10A, a one-channel DMA
FIG. 11 shows a case where a plurality of channels asynchronously request a DMA transfer. In FIG. 11, the DM from the DRAM in the page mode to the CPU peripheral controller in CH1
A transfer has started, and since the transfer has been performed twice, a DMA transfer request is issued to CH0 having a higher priority, and DMARQ0
Has become "1" and the priority control input PR0 has become "1", so that CH1 has stopped DMA transfer and DMA transfer has shifted to CH0. In this example, the DMA transfer of CH0 ends only twice, and the DMA transfer of CH1 starts again.

【0009】ここで問題となる点は、DMA転送がCH
1だけであった場合と、CH1のDMA転送中にCH0
のDMA転送が挿入された場合で、CH0のDMA転送
時間を除いたCH1のDMA転送時間について着目した
ときに、CH0のDMA転送が挿入された場合には、反
転RAS信号の立下りによるロウアドレスの設定サイク
ルが1回余分に必要になっているという点にある。
[0009] The problem here is that DMA transfer takes place on the CH.
1 and CH0 during DMA transfer of CH1.
When the DMA transfer of CH0 is inserted and the DMA transfer time of CH1 excluding the DMA transfer time of CH0 is inserted, when the DMA transfer of CH0 is inserted, the row address due to the fall of the RAS signal is inverted. Is required one extra setting cycle.

【0010】また、従来の複数メモリの回転優先順位方
式によるDMAコントローラについて、図12(a),
(b)を用いて説明する。図12(a)は、チャンネル
数が4チャンネルある回転優先順位のDMAコントロー
ラの場合を示している。回転優先順位とは、DMA転送
を終えたチャンネルが最下位になるように優先順位が回
転することにより、特定のチャンネルによるDMA転送
の独占を防ぐことをねらったものである。DMAコント
ローラの構造は、各チャンネルのDMA転送制御回路1
0c〜13cと、各チャンネルを優先順位順につなぐ優
先順位に関する制御線と各チャンネルのDMA転送状況
を集めて優先順位を回転させる回転優先順位制御回路2
0とによって構成される。
FIG. 12A shows a conventional DMA controller based on a rotation priority method for a plurality of memories.
This will be described with reference to FIG. FIG. 12A shows a case of a rotation priority DMA controller having four channels. The rotation priority is intended to prevent the monopolization of the DMA transfer by a specific channel by rotating the priority so that the channel that has completed the DMA transfer becomes the lowest. The structure of the DMA controller is as follows.
0c to 13c, a control line relating to the priority order connecting each channel in order of priority, and a rotation priority control circuit 2 for collecting the DMA transfer status of each channel and rotating the priority order.
0.

【0011】次に、図12(b)のチャンネル単位のD
MA転送制御回路10cは、図9(b)の回路に対して
DMA転送状況出力信号TMOが付加されたものであ
る。優先順位制御入力PRIは、一つ上位の優先順位制
御出力PRO信号と回転優先順位制御回路20からの回
転優先順位制御信号CPC0〜3との論理積をとった信
号をもらっている。DMA転送状況出力TMOは、チャ
ンネルがDMA転送中であることを示す信号で、この信
号をもとに回転優先順位の制御に使用する。
Next, D in channel units shown in FIG.
The MA transfer control circuit 10c is obtained by adding a DMA transfer status output signal TMO to the circuit of FIG. 9B. The priority control input PRI receives a signal that is the logical product of the next higher priority control output PRO signal and the rotation priority control signals CPC0 to CPC3 from the rotation priority control circuit 20. The DMA transfer status output TMO is a signal indicating that the channel is performing the DMA transfer, and is used for controlling the rotation priority based on this signal.

【0012】各チャンネルを優先順位順につなぐ優先順
位に関する制御線について説明する。チャンネル単位の
DMA転送制御回路10cの優先順位制御入力PRIに
は、優先順位が一つ上位のチャンネルの優先順位制御出
力PROと回転優先順位制御回路20からの回転優先順
位制御信号CPC0〜CPC3との論理積につながって
おり、自分より上位のチャンネルがDMA転送中である
かチェックし、もし転送中であれば、上位のDMA転送
が終わってPRI入力が“0”になるまで待ちつづけ
る。
A description will be given of a control line relating to the priority order for connecting the channels in order of priority. The priority control input PRI of the DMA transfer control circuit 10c for each channel includes the priority control output PRO of the channel whose priority is higher by one and the rotation priority control signals CPC0 to CPC3 from the rotation priority control circuit 20. It is linked to a logical product, and it is checked whether a higher-order channel is performing a DMA transfer. If a transfer is being performed, the process waits until the higher-order DMA transfer ends and the PRI input becomes “0”.

【0013】この時、回転優先順位制御回路20からの
回転優先順位制御信号CPC0〜CPC3とは、これま
でDMA転送が行われたチャンネルを最下位の優先順位
にするための制御信号で、今までDMA転送していたチ
ャンネルの一つの下位のチャンネルに対する制御信号を
“0”とする。これによって、回転優先順位制御信号と
して“0”が入るチャンネルが最上位のチャンネルにな
る。
At this time, the rotation priority control signals CPC0 to CPC3 from the rotation priority control circuit 20 are control signals for setting the channel on which DMA transfer has been performed so far to the lowest priority. The control signal for one lower channel of the channel that has been DMA-transferred is set to “0”. As a result, the channel in which “0” is entered as the rotation priority control signal is the highest-order channel.

【0014】図13も複数のチャンネルが非同期にDM
A転送を要求した場合のタイミング図であり、図11の
場合と同様の動作タイミングとなる。
FIG. 13 also shows that a plurality of channels
FIG. 12 is a timing chart when an A-transfer is requested, and has the same operation timing as that in FIG.

【0015】[0015]

【発明が解決しようとする課題】上述した従来のDMA
コントローラでは、あるチャンネルでDRAMのページ
モードを使ってのDMA転送中に、より優先順位の高い
DMA転送要求が発生した場合、後者のDMA転送をす
ぐ開始するために、より優先順位の高いDMA転送要求
が頻発した場合、ページモードにおけるロウアドレスの
設定サイクルの省略というメリットがなくなってしまう
ため、通常のリードサイクルによるDMA転送と変わら
なくなってしまうという問題点がある。
SUMMARY OF THE INVENTION The above-described conventional DMA
When a higher-priority DMA transfer request occurs during a DMA transfer using the DRAM page mode on a certain channel, the controller immediately starts the latter DMA transfer. If the request occurs frequently, the advantage of omitting the cycle of setting the row address in the page mode is lost, so that there is a problem that it is no different from the DMA transfer in the normal read cycle.

【0016】本発明の目的は、このような問題を解決
し、ページモードによる転送効率を維持することにより
トータルの転送スピードを向上させたDMAコントロー
ラを提供することにある。
An object of the present invention is to provide a DMA controller which solves such a problem and improves the total transfer speed by maintaining transfer efficiency in a page mode.

【0017】[0017]

【課題を解決するための手段】本発明の構成は、複数の
DRAMからなる各メモリチャンネル間を各DMA転送
制御回路により固定優先順位あるいは回転優先順位をも
って制御を行うDMAコントローラにおいて、前記各D
MA転送制御回路は、前記各メモリチャンネルのデータ
アクセス期間中に、他のメモリチャンネルに対してバス
を占有することを示しDRAMがページモードとなった
時にページモード転送状態出力信号を出力すること
と、この転送状態出力信号を優先順位が下位にあるメモ
チャンネルから入力した時、前記各メモリチャンネル
がDMA転送に入ることを禁止するゲート回路を備える
ことを特徴とする。
According to the present invention, there is provided a system comprising:
In a DMA controller which controls each memory channel composed of DRAMs with a fixed priority or a rotation priority by each DMA transfer control circuit,
MA transfer control circuit, during said data access period for each memory channel, is shown to DRAM to occupy the bus has become the page mode for the other memory channel
And outputting the transfer state output signal during page mode, note that this transfer state output signal priority is subordinate
A gate circuit is provided which inhibits each memory channel from entering DMA transfer when input from a re- channel.

【0018】本発明において、ページモードの転送状態
出力信号が、各チャンネルが他のチャンネルに対してバ
スを占有する期間を設定しロードされた連続転送値を各
DMA転送ごとに1減算する連続転送カウンタの出力か
ら得ることもできる。
In the present invention, the transfer status output signal of the page mode sets the period in which each channel occupies the bus with respect to the other channels, and indicates the continuous transfer value loaded.
It can also be obtained from the output of the continuous transfer counter that decrements by one for each DMA transfer .

【0019】[0019]

【実施例】図1(a),(b)は本発明の一実施例を示
すブロック図および各チャンネルのDMA転送制御回路
のブロック図である。この実施例も、CH0〜CH3の
4つのチャンネルからなる固定優先順位のDMAコント
ローラの例を示し、図9に対してORゲート14,15
が付加されている。
1A and 1B are a block diagram showing an embodiment of the present invention and a block diagram of a DMA transfer control circuit for each channel. This embodiment also shows an example of a fixed priority DMA controller composed of four channels CH0 to CH3.
Is added.

【0020】図1(b)において、DMA転送要求信号
DMARQは、ANDゲート4により優先順位制御入力
PRIとページモード転送状態入力PMIがともに
“0”の時有効となり、RD/WR/DAK生成回路2
を動かしてDMA転送を実現する。本チャンネルがペー
ジモードによるDMA転送に入り、ロウアドレスを設定
して反転RAS信号を“0”にし続けている間は、ペー
ジモード転送状態信号PMOを“1”にして、自分より
上位にチャンネルに対してDMA転送に入ることを禁止
している。
In FIG. 1B, the DMA transfer request signal DMARQ becomes valid when the priority control input PRI and the page mode transfer state input PMI are both "0" by the AND gate 4, and the RD / WR / DAK generation circuit 2
Is operated to implement DMA transfer. While this channel starts DMA transfer in page mode and sets the row address and keeps the inverted RAS signal at "0", it sets the page mode transfer status signal PMO to "1" and switches the channel to a higher channel than itself. On the other hand, entry into DMA transfer is prohibited.

【0021】優先順位出力PROは、自分を含めた上位
のチャンネルでDMA転送中であることを下位のチャン
ネルに知らせる信号で、下位のチャンネルでは、この信
号を前述したPRIに入力することによりDMA転送を
禁止するのに使用している。この他の信号は、従来技術
で述べた内容と同じである。
The priority output PRO is a signal for notifying the lower channel that the DMA transfer is being performed on the upper channel including itself, and the lower channel is configured to input this signal to the PRI for the DMA transfer. Used to ban. Other signals are the same as those described in the related art.

【0022】図1(a)において、各チャンネル10〜
13は、優先順位が上位のDMA転送状態を上位チャン
ネルのPROを自分のチャンネルのPRIに入力し、自
分より上位がDMA転送中である場合、自分のDMA転
送を禁止している。ページモード転送状態入力PMIに
は、自分より優先順位が下位のページモード状態を入力
しており、これによって、自分が優先順位的にはDMA
転送可能な状態にあっても、下位がページモードによる
連続転送状態にある場合は、DMA転送を持つようにし
ている。なお、最上位のチャンネル10のPRIには、
自分より上の優先順位がないために、常に“0”が入力
されており、また、チャンネル13のPMIには、自分
より下位のチャンネルがないために、常に“0”が入力
されている。
In FIG. 1A, each of the channels 10 to 10
Reference numeral 13 designates the DMA transfer status of the higher priority order by inputting the PRO of the upper channel to the PRI of its own channel, and prohibits its own DMA transfer when the higher priority is under DMA transfer. In the page mode transfer state input PMI, the page mode state having a lower priority than the self is input, whereby the DMA mode is determined by the priority of the DMA mode.
Even if the transfer is possible, if the lower level is in the continuous transfer state in the page mode, the DMA transfer is performed. In addition, the PRI of the top channel 10 includes:
"0" is always input because there is no priority above the user, and "0" is always input to the PMI of channel 13 because there is no channel lower than the user.

【0023】図2は、本実施例の複数のチャンネルが非
同期にDMA転送を要求した場合のタイミング図を示し
ている。ここでは、CH1がDRAMのページモードに
よるDMA転送中に、優先順位が高いCH0のDMA転
送要求が発生した場合を示している。
FIG. 2 is a timing chart when a plurality of channels of this embodiment request DMA transfer asynchronously. Here, a case is shown in which a DMA transfer request of CH0 having a higher priority is generated during CH1 DMA transfer in the page mode of the DRAM.

【0024】初めに、CH1でDMA転送要求が発生し
て、DMARQ1が“1”となる。この時点で、CH1
よりも上位のCH0でDMA転送が行われておらず(P
R0=“0”)、かつ自分より下位のチャンネルで、ペ
ージモードによるDMA転送が行われていない(DMO
2=PMO3=“0”)ため、CH1のDMA転送が始
まる。CH1が3回転送したところで、より優先順位の
高いCH0にDMA転送要求が発生しDMARQ0が
“1”となるが、ページモード転送状態出力PMO(C
H1)が“1”であるため、CH0のPMIには、
“1”が入力されており、CH0はDMA転送を開始で
きない。
First, a DMA transfer request occurs on CH1, and DMARQ1 becomes "1". At this point, CH1
DMA transfer is not performed on CH0 higher than
R0 = "0"), and DMA transfer in the page mode is not performed on a channel lower than itself (DMO).
2 = PMO3 = "0"), so the DMA transfer of CH1 starts. When CH1 has transferred three times, a DMA transfer request is issued to CH0, which has a higher priority, and DMARQ0 is set to "1", but the page mode transfer state output PMO (C
Since H1) is “1”, the PMI of CH0 includes:
Since "1" is input, CH0 cannot start DMA transfer.

【0025】CH1のDMA転送が進んで、ロウアドレ
スを書き換えるために反転RAS信号が“1”になる
と、ページモード転送状態出力PMO(CH1)は、
“0”になるため、CH0のページモード転送入力PM
I(CH0)には、“0”が入力され、DMA転送が可
能となり、CH0はDMA転送を開始し、CH1はDM
A転送を中断する。CH0のDMA転送が終了すると、
PRO=“0”になるので、再びCH1がDMA転送を
開始する。あとは、この例では、CH1のDMA転送が
終了するまでのタイミングが示されている。
When the DMA transfer of CH1 proceeds and the RAS signal becomes "1" to rewrite the row address, the page mode transfer state output PMO (CH1) becomes
Since it becomes “0”, the page mode transfer input PM of CH0
“0” is input to I (CH0), DMA transfer is enabled, CH0 starts DMA transfer, and CH1 is DM
A transfer is interrupted. When the DMA transfer of CH0 ends,
Since PRO = "0", CH1 starts DMA transfer again. Thereafter, in this example, the timing until the DMA transfer of CH1 ends is shown.

【0026】以上述べたように、従来のDMAコントロ
ーラでは、優先順位の高いチャンネルにおいてDMA転
送要求が発生した場合、その時点でDMA転送を上位に
開け渡していたのに対して、本実施例のDMAコントロ
ーラでは、ロウアドレスを書き換えるために反転RAS
信号が“1”になるまで、待たせるようになっている。
尚、この発明では、DRAMからCPU周辺コントロー
ラへのDMA転送について説明したが、CPU周辺コン
トローラからDRAMへのDMA転送についても同様で
ある。
As described above, in the conventional DMA controller, when a DMA transfer request occurs in a channel with a higher priority, the DMA transfer is transferred to a higher order at that time. In the DMA controller, RAS is inverted to rewrite the row address.
It waits until the signal becomes "1".
In the present invention, the DMA transfer from the DRAM to the CPU peripheral controller has been described, but the same applies to the DMA transfer from the CPU peripheral controller to the DRAM.

【0027】図3は本発明の第2の実施例に用いられる
DMA転送制御回路のブロック図である。この実施例
も、図1(a)のCH0〜CH3の4つのチャンネルか
らなる固定優先順位のDMAコントローラである。
FIG. 3 is a block diagram of a DMA transfer control circuit used in the second embodiment of the present invention. This embodiment is also a fixed priority DMA controller composed of four channels CH0 to CH3 in FIG.

【0028】図3においては、図1(b)のインバータ
5の代りにページモード転送状態信号PMOを出力する
連続転送カウンタ7が用いられている。この連続転送カ
ウンタ7は、本チャンネルがページモードによるDMA
転送に入ったとき、連続転送する値がロードされ、一回
DMA転送する毎に1減算されてゆき、0となるまでペ
ージモード転送状態信号PMOを“1”にして、自分よ
り上位のチャンネルに対して、DMA転送に入ることを
禁止している。
In FIG. 3, a continuous transfer counter 7 for outputting a page mode transfer state signal PMO is used instead of the inverter 5 in FIG. This continuous transfer counter 7 indicates that the channel is a DMA in page mode.
When the transfer is started, the value to be continuously transferred is loaded, and is decremented by one each time a DMA transfer is performed. The page mode transfer state signal PMO is set to "1" until the value becomes 0, and the channel is shifted to a channel higher than itself. On the other hand, entry into DMA transfer is prohibited.

【0029】図4は、本実施例の複数のチャンネルが非
同期にDMA転送を要求した場合のタイミング図であ
る。ここでは、CH1がDRAMのページモードによる
DMA転送中に、優先順位が高いCH0のDMA転送要
求が発生した場合を示し、CH1の連続転送数は「5」
で、CH0の連続転送数は「7」の場合を例にとってい
る。
FIG. 4 is a timing chart when a plurality of channels of the present embodiment asynchronously request a DMA transfer. Here, a case is shown in which a DMA transfer request of CH0 having a higher priority occurs during a DMA transfer of CH1 in the page mode of the DRAM, and the number of continuous transfers of CH1 is "5".
The case where the number of continuous transfers of CH0 is “7” is taken as an example.

【0030】始めに、CH1でDMA転送要求が発生し
て、DMARQ1が“1”となった。この時点で、CH
1よりも上位のCH0でDMA転送が行われておらず
(PR0=“0”)、かつ、自分より下位のチャンネル
で、ページモードによるDMA転送が行われていない
(PMO2=PMO3=“0”)ため、CH1のDMA
転送が始まる。
First, a DMA transfer request was generated on CH1, and DMARQ1 was set to "1". At this point, CH
No DMA transfer is performed on CH0 higher than 1 (PR0 = “0”), and no DMA transfer in page mode is performed on a channel lower than itself (PMO2 = PMO3 = “0”). ), DMA of CH1
Transfer begins.

【0031】この例では、CH1の連続転送数は、
「5」であるため、連続転送カウンタ7(CH1)は、
まず「5」がロードされ、DMA転送1サイクル毎に1
減算されていっている。CH1の連続転送カウンタ7が
「3」のところで、より優先順位の高いCH0にDMA
転送要求が発生しDMARQ0が“1”となったが、ペ
ージモード転送状態出力PMO(CH1)が“1”であ
るため、CH0のPMIには、“1”が入力されてお
り、CH0はDMA転送を開始できない。CH1のDM
A転送が進んで、連続転送カウンタ7が「0」になる
と、ページモード転送状態出力PMO(CH1)は、
“0”になるため、CH0のページモード転送入力PM
I(CH0)には、“0”が入力され、DMA転送が可
能となる。あとは、この例ではCH0のDMA転送が終
了するまでのタイミングが示されている。
In this example, the number of continuous transfers of CH1 is
Since it is "5", the continuous transfer counter 7 (CH1)
First, “5” is loaded, and one every one DMA transfer cycle.
It has been subtracted. When the continuous transfer counter 7 of CH1 is “3”, DMA is assigned to CH0 having a higher priority.
Although a transfer request is generated and DMARQ0 becomes "1", "1" is input to the PMI of CH0 because the page mode transfer state output PMO (CH1) is "1", and CH0 is DMA Unable to start transfer. DM of CH1
When the A transfer progresses and the continuous transfer counter 7 becomes "0", the page mode transfer state output PMO (CH1) becomes
Since it becomes “0”, the page mode transfer input PM of CH0
“0” is input to I (CH0), and DMA transfer becomes possible. Thereafter, in this example, the timing until the DMA transfer of CH0 ends is shown.

【0032】以上述べたように、従来のDMAコントロ
ーラでは、優先順位が高いチャンネルで、DMA転送要
求が発生した場合、その時点でDMA転送を上位に開け
渡していたのに対して、本発明のDMAコントローラで
は、連続転送カウンタ7の値が“0”になるまで、待た
せるようになっている。
As described above, in the conventional DMA controller, when a DMA transfer request occurs on a channel with a high priority, the DMA transfer is handed over to a higher order at that time. The DMA controller waits until the value of the continuous transfer counter 7 becomes "0".

【0033】図5(a),(b)は本発明の第3の実施
例を示すブロック図およびそのDMA転送制御回路のブ
ロック図であり、CH0〜CH3の4つのチャンネルか
らなる回転優先順位のDMAコントローラの例を示して
いる。この回路は、従来例の図12(a)に対しORゲ
ート25〜28が付加され、図5(b)においては、図
1(b)に対してDMA転送状況出力信号TMOが付加
されている。DMA転送要求信号DMARQは、優先順
位制御入力PRIとページモード転送状態入力PMIが
ともに“0”の時有効となり、RD/WR/DAK生成
回路2を動かして、DMA転送を実現する。本チャンネ
ルがページモードによるDMA転送に入り、ロウアドレ
スを設定してRAS反転信号を“0”にし続けている間
は、ページモード転送状態信号PMOを“1”にして、
他のチャンネルに対して、DMA転送に入ることを禁止
している。
FIGS. 5 (a) and 5 (b) are a block diagram showing a third embodiment of the present invention and a block diagram of a DMA transfer control circuit therefor. The rotation priority order of four channels CH0 to CH3 is shown. 2 shows an example of a DMA controller. In this circuit, OR gates 25 to 28 are added to FIG. 12A of the conventional example, and in FIG. 5B, a DMA transfer status output signal TMO is added to FIG. 1B. . The DMA transfer request signal DMARQ is valid when the priority control input PRI and the page mode transfer state input PMI are both "0", and operates the RD / WR / DAK generation circuit 2 to implement DMA transfer. While this channel starts DMA transfer in the page mode and sets the row address and keeps the RAS inversion signal at "0", the page mode transfer state signal PMO is set to "1".
Other channels are prohibited from entering DMA transfer.

【0034】図5(a)において、各チャンネルは、優
先順位が上位のチャンネルのDMA転送状態を示す上位
チャンネルのPROと回転優先順位の制御回路20から
の回転優先順位制御信号CPC0〜CPC3との論理積
を自分のチャンネルのPRIに入力し、自分より上位の
チャンネルがDMA転送中である場合、自分のDMA転
送を禁止している。また、回転優先順位の制御信号は優
先順位が最上位のチャンネルに対して“0”が入力さ
れ、DMA転送が完了したチャンネルを最下位にするよ
うに制御信号を出力する。
In FIG. 5A, each channel is composed of a higher priority channel PRO indicating the DMA transfer state of a higher priority channel and a rotation priority control signal CPC0 to CPC3 from the rotation priority control circuit 20. The logical product is input to the PRI of its own channel, and when a higher-order channel is performing DMA transfer, its own DMA transfer is prohibited. As the control signal of the rotation priority, “0” is input to the channel with the highest priority, and the control signal is output so that the channel for which the DMA transfer is completed is the lowest.

【0035】ページモード転送状態入力PMIには、自
分以外のチャンネルのページモードによる転送状態を入
力しており、これによって、自分が優先順位的にはDM
A転送可能な状態にあっても、下位がページモードによ
る連続転送状態にある場合は、DMA転送に入ることを
待つようにしている。
The page mode transfer state input PMI is used to input the transfer state of the channel other than the own channel in the page mode.
Even if the A transfer is possible, if the lower level is in the continuous transfer state in the page mode, it is waited to start the DMA transfer.

【0036】図6は、本実施例での複数のチャンネルが
非同期にDMA転送を要求した場合のタイミング図であ
り、CH1がDRAMのページモードによるDMA転送
中に、優先順位が高いCH0のDMA転送要求が発生し
た場合を示している。
FIG. 6 is a timing chart in the case where a plurality of channels request DMA transfer asynchronously in the present embodiment. During the DMA transfer in the page mode of the DRAM in the CH1, the DMA transfer of the CH0 having a higher priority is performed. Indicates when a request has occurred.

【0037】初期状態は、CH0の優先順位が最上位な
のでCPCOは“0”である。CH1でDMA転送要求
が発生して、DMARQ1が“1”となった。この時点
で、CH1よりも上位のCH0でDMA転送が行われて
おらず(RP0=“0”)、かつ自分以外のチャンネル
で、ページモードによるDMA転送が行われていない
(PMO0=PMO2=PMO3=“0”)ため、CH
1のDMA転送が始まった。CH1が3回転送したこと
ろで、より優先順位の高いCH0のDMA転送要求が発
生しDMARQ0が“1”となったが、ページモード転
送状態出力PMO(CH1)が“1”であるため、CH
0のPMIには、“1”が入力されており、CH0はD
MA転送を開始できない。
In the initial state, since the priority of CH0 is the highest, CPCO is "0". A DMA transfer request occurred on CH1, and DMARQ1 became "1". At this point, no DMA transfer is performed on CH0 higher than CH1 (RP0 = "0"), and no DMA transfer is performed on any other channel in the page mode (PM0 = PM02 = PMO3). = “0”), CH
One DMA transfer has begun. Since the transfer of CH1 has been performed three times, a DMA transfer request of CH0 having a higher priority is generated and DMARQ0 becomes "1". However, since the page mode transfer state output PMO (CH1) is "1", CH
"1" is input to the PMI of 0, and CH0 is
MA transfer cannot be started.

【0038】CH1のDMA転送が進んで、ロウアドレ
スを書き換えるために反転RASが“1”になると、ペ
ージモード転送状態出力PMO(CH1)は、“0”に
なるため、CH0のページモード転送入力PMI(CH
0)には、“0”が入力され、DMA転送が可能とな
り、CH0はDMA転送を開始し、CH1はDMA転送
を中断する。CH0のDMA転送が終了すると、PR0
=PMO0=“0”になり、回転優先順位制御信号CP
C1が“0”となるのでCH1の優先順位が最上位とな
り、再びCH1がDMA転送を開始する。この例では、
CH1のDMA転送が終了するまでのタイミングが示さ
れている。
When the DMA transfer of CH1 proceeds and RAS becomes "1" to rewrite the row address, the page mode transfer state output PMO (CH1) becomes "0". PMI (CH
In (0), "0" is input to enable DMA transfer, CH0 starts DMA transfer, and CH1 interrupts DMA transfer. When the DMA transfer of CH0 ends, PR0
= PMO0 = "0", and the rotation priority control signal CP
Since C1 becomes "0", the priority of CH1 becomes the highest, and CH1 starts DMA transfer again. In this example,
The timing until the DMA transfer of CH1 ends is shown.

【0039】図7は本発明の第4の実施例を示すブロッ
ク図であり、図5(a)に対してDMA転送状況出力信
号TMOが削除されている。この場合、図3と同じDM
A転送制御回路10が用いられている。
FIG. 7 is a block diagram showing a fourth embodiment of the present invention. The DMA transfer status output signal TMO is omitted from FIG. 5A. In this case, the same DM as in FIG.
An A transfer control circuit 10 is used.

【0040】図8は、本実施例で複数のチャンネルが非
同期にDMA転送を要求した場合のタイミング図であ
り、図4の場合と同様の動作をする。
FIG. 8 is a timing chart when a plurality of channels asynchronously request DMA transfer in the present embodiment, and the operation is the same as that in FIG.

【0041】[0041]

【発明の効果】以上説明したように本発明は、各チャン
ネル毎に優先順位が下位のチャンネルまたは他のチャン
ネルの反転RAS信号が“1”であることを上位に知ら
せ、または他のチャンネルの反転RAS信号が“1”で
あることを各チャンネルに知らせて、上位のチャンネル
のDMA転送を禁止させることにより、下位のチャンネ
ルがページモードによるDMA転送中であった場合に上
位のチャンネルにDMA転送要求が発生してもこれを待
たせることができ、DRAMのページモードによる転送
サイクルの削減を有効に維持することができるという効
果がある。
As described above, according to the present invention, for each channel, the higher RAS signal of the lower priority channel or another channel is notified to the upper level, or the other channel is inverted. By notifying each channel that the RAS signal is "1" and prohibiting the DMA transfer of the upper channel, a DMA transfer request to the upper channel is performed when the lower channel is performing the DMA transfer in the page mode. Is generated, there is an effect that the reduction of the transfer cycle in the page mode of the DRAM can be effectively maintained.

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

【図1】(a),(b)は本発明の一実施例を示すブロ
ック図およびそのDMA転送制御回路のブロック図。
FIGS. 1A and 1B are a block diagram showing an embodiment of the present invention and a block diagram of a DMA transfer control circuit thereof.

【図2】図1の動作を説明するタイミング図。FIG. 2 is a timing chart for explaining the operation of FIG. 1;

【図3】本発明の第2の実施例に用いるDMA転送制御
回路のブロック図。
FIG. 3 is a block diagram of a DMA transfer control circuit used in a second embodiment of the present invention.

【図4】図3の動作を説明するタイミング図。FIG. 4 is a timing chart for explaining the operation of FIG. 3;

【図5】(a),(b)は本発明の第3の実施例を示す
ブロック図およびそのDMA転送制御回路のブロック
図。
FIGS. 5A and 5B are a block diagram showing a third embodiment of the present invention and a block diagram of a DMA transfer control circuit thereof.

【図6】図5の動作を説明するタイミング図。FIG. 6 is a timing chart for explaining the operation of FIG. 5;

【図7】本発明の第4の実施例を示すブロック図。FIG. 7 is a block diagram showing a fourth embodiment of the present invention.

【図8】図7の動作を説明するタイミング図。FIG. 8 is a timing chart for explaining the operation of FIG. 7;

【図9】(a),(b)は従来の固定優先順位方式のD
MAコントローラの一例のブロック図およびそのDMA
転送制御回路のブロック図。
9 (a) and 9 (b) show a conventional fixed priority type D
Block diagram of one example of MA controller and its DMA
FIG. 3 is a block diagram of a transfer control circuit.

【図10】(a),(b)はDRAMのページモードお
よび通常モードのDMA転送サイクルのタイミング図。
FIGS. 10A and 10B are timing diagrams of a DMA transfer cycle in a page mode and a normal mode of a DRAM.

【図11】図9の動作を説明するタイミング図。FIG. 11 is a timing chart for explaining the operation of FIG. 9;

【図12】(a),(b)は従来の回転優先順位方式の
DMAコントローラの一例のブロック図およびそのDM
A転送制御回路のブロック図。
12A and 12B are a block diagram of an example of a conventional rotation priority type DMA controller and its DM.
FIG. 3 is a block diagram of an A transfer control circuit.

【図13】図12の動作を説明するタイミング図。FIG. 13 is a timing chart for explaining the operation of FIG. 12;

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

2,2a〜2c RD/WR/DAK生成回路 3 アドレスカウンタ 4,21〜24 ANDゲート 5 インバータ 6,14,15,25〜28 ORゲート 7 連続転送カウンタ 10〜13,10a〜13a,10c〜13c DM
A転送制御回路 20 回転優先順位制御回路 DMARQ0〜3 DMA転送要求信号 DMAAK0〜3 DMA転送認識信号 IOWR CPU周辺コントローラ書込信号 IORD CPU周辺コントローラ読出信号 RAS DRAMロウアドレス選択信号 CAS DRAMカラムアドレス選択信号 A7〜0 アドレス信号 PR0〜3 優先順位制御信号 PM0〜3 ページモード転送状態信号 CPC0〜3 回転優先順位制御信号 PRI 優先順位制御入力 PRO 優先順位制御出力 PMI ページモード転送状態入力 PMO ページモード転送状態出力 TMO DMA転送状況出力
2, 2a to 2c RD / WR / DAK generation circuit 3 Address counter 4, 21 to 24 AND gate 5 Inverter 6, 14, 15, 25 to 28 OR gate 7 Continuous transfer counter 10 to 13, 10a to 13a, 10c to 13c DM
A transfer control circuit 20 rotation priority control circuit DMARQ0-3 DMA transfer request signal DMAAK0-3 DMA transfer recognition signal IOWR CPU peripheral controller write signal IORD CPU peripheral controller read signal RAS DRAM row address selection signal CAS DRAM column address selection signal A7 00 Address signal PR0-3 Priority control signal PM0-3 Page mode transfer status signal CPC0-3 Rotation priority control signal PRI Priority control input PRO Priority control output PMI Page mode transfer status input PMO Page mode transfer status output TMO DMA transfer status output

フロントページの続き (72)発明者 石川 豊 神奈川県川崎市中原区小杉町一丁目403 番53日本電気アイシーマイコンシステム 株式会社内 (72)発明者 黒川 秀文 東京都港区芝五丁目7番1号日本電気株 式会社内 (56)参考文献 特開 昭56−44925(JP,A) 特開 平1−211155(JP,A) 特開 昭64−65656(JP,A) 特開 昭62−82592(JP,A) 特開 昭58−224497(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 12/02,13/28,13/30 Continuation of the front page (72) Inventor Yutaka Ishikawa 1-403-3, Kosugicho, Nakahara-ku, Kawasaki-shi, Kanagawa Prefecture Within NEC Icy Microcomputer Systems Co., Ltd. (72) Inventor Hidefumi Kurokawa 5-7-1 Shiba, Minato-ku, Tokyo (56) References JP-A-56-44925 (JP, A) JP-A-1-211155 (JP, A) JP-A-64-65656 (JP, A) JP-A-62-82592 (JP, A) JP-A-58-224497 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 12/02, 13/28, 13/30

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数のDRAMからなる各メモリチャン
ネル間を各DMA転送制御回路により固定優先順位ある
いは回転優先順位をもって制御を行うDMAコントロー
ラにおいて、前記各DMA転送制御回路は、前記各メモ
リチャンネルのデータアクセス期間中に、他のメモリチ
ャンネルに対してバスを占有することを示しDRAMが
ページモードとなった時にページモード転送状態出力
信号を出力することと、この転送状態出力信号を優先順
位が下位にあるメモリチャンネルから入力した時、前記
メモリチャンネルがDMA転送に入ることを禁止する
ゲート回路を備えることを特徴とするDMAコントロー
ラ。
1. A DMA controller which controls each memory channel comprising a plurality of DRAMs with a fixed priority or a rotation priority by means of each DMA transfer control circuit, wherein each DMA transfer control circuit comprises: during the access period, it indicates to DRAM to occupy the bus to other memory channel
Outputting a transfer status output signal of the page mode when the page mode is set, and prohibiting each memory channel from entering the DMA transfer when this transfer status output signal is input from a memory channel having a lower priority. A DMA controller, comprising:
【請求項2】 ページモード転送状態出力信号が、各チ
ャンネルが他のチャンネルに対してバスを占有する期間
を設定しロードされた連続転送値を各DMA転送ごとに
1減算する連続転送カウンタの出力から得られる請求項
1記載のDMAコントローラ。
2. A page mode transfer status output signal sets a period during which each channel occupies a bus with respect to another channel, and transfers a loaded continuous transfer value for each DMA transfer.
1 DMA controller according to claim 1, wherein obtained from the output of the continuous transfer counter you subtraction.
JP26664691A 1991-10-16 1991-10-16 DMA controller Expired - Fee Related JP3202272B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26664691A JP3202272B2 (en) 1991-10-16 1991-10-16 DMA controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26664691A JP3202272B2 (en) 1991-10-16 1991-10-16 DMA controller

Publications (2)

Publication Number Publication Date
JPH05108545A JPH05108545A (en) 1993-04-30
JP3202272B2 true JP3202272B2 (en) 2001-08-27

Family

ID=17433725

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26664691A Expired - Fee Related JP3202272B2 (en) 1991-10-16 1991-10-16 DMA controller

Country Status (1)

Country Link
JP (1) JP3202272B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8285889B2 (en) 2009-06-03 2012-10-09 Renesas Electronics Corporation DMA transfer control device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3420091B2 (en) 1998-11-30 2003-06-23 Necエレクトロニクス株式会社 Microprocessor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8285889B2 (en) 2009-06-03 2012-10-09 Renesas Electronics Corporation DMA transfer control device

Also Published As

Publication number Publication date
JPH05108545A (en) 1993-04-30

Similar Documents

Publication Publication Date Title
JP2571067B2 (en) Bus master
US7707328B2 (en) Memory access control circuit
JP3290650B2 (en) Memory controller
US5418920A (en) Refresh control method and system including request and refresh counters and priority arbitration circuitry
US5845315A (en) Method and apparatus for reducing the access time of a memory device by decoding a row address during a precharge period of the memory device
JPS629456A (en) Data transfer unit
JP3202272B2 (en) DMA controller
EP0851360B1 (en) Bus arbiter
JPH05197619A (en) Memory control circuit for multi-cpu
US5778447A (en) System and method for fast memory access using speculative access in a bus architecture system
JP3180877B2 (en) Memory interface circuit
JP3206013B2 (en) Direct memory access transfer controller
JPS63228498A (en) Semiconductor storage device
JPH06325570A (en) Dynamic memory refresh circuit
JP3201439B2 (en) Direct memory access control circuit
JP2570271B2 (en) Semiconductor memory controller
JP4062478B2 (en) Device access method
JP3516835B2 (en) Information processing system
JPH0561762A (en) Memory controller
JPH09259031A (en) Frame memory access control method
JPH05108538A (en) Memory access control system
JPS6336021B2 (en)
JPH11176155A (en) Dram-refreshing circuit
JPH11503550A (en) Microprocessors and systems
JPH04232689A (en) Refresh controller for dram

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010605

LAPS Cancellation because of no payment of annual fees