JPH10116245A - DMA controller - Google Patents

DMA controller

Info

Publication number
JPH10116245A
JPH10116245A JP27046296A JP27046296A JPH10116245A JP H10116245 A JPH10116245 A JP H10116245A JP 27046296 A JP27046296 A JP 27046296A JP 27046296 A JP27046296 A JP 27046296A JP H10116245 A JPH10116245 A JP H10116245A
Authority
JP
Japan
Prior art keywords
transfer
dma
data
information
bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP27046296A
Other languages
Japanese (ja)
Inventor
Rikiya Okamoto
力哉 岡本
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP27046296A priority Critical patent/JPH10116245A/en
Publication of JPH10116245A publication Critical patent/JPH10116245A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

(57)【要約】 【課題】DMA情報をもとに転送元から転送先へのデー
タ転送を制御するDMA制御装置に関し,データ転送速
度を低下させないようなDMA情報の獲得を可能にし,
また,一度のDMAの起動で二度のDMA転送を行う手
段を提供することにより,DMA転送の全体としての処
理時間の短縮を図る。 【解決手段】DMA情報獲得用の専用バスを用いること
により,またはデータ転送の途切れを利用してデータ転
送用のバスを獲得することにより,DMA情報獲得手段
1によって,一つのDMA情報によるデータ転送途中に
次のDMA情報を獲得する。また,通知手段6によりロ
ーカルバッファ5へのデータの準備/未準備を監視し,
転送元からローカルバッファ5へのDMAと,ローカル
バッファ5から転送先へのDMAの2回のDMAを一度
のDMA起動で制御する。
(57) [PROBLEMS] To provide a DMA control device for controlling data transfer from a transfer source to a transfer destination based on DMA information, capable of acquiring DMA information without lowering the data transfer speed,
Further, by providing a means for performing the DMA transfer twice by activating the DMA once, the processing time of the entire DMA transfer can be reduced. By using a dedicated bus for DMA information acquisition or by acquiring a bus for data transfer utilizing interruption of data transfer, data transfer by one DMA information is performed by DMA information acquisition means (1). The next DMA information is acquired on the way. The notification means 6 monitors the preparation / non-preparation of data in the local buffer 5, and
Two DMAs, a DMA from the transfer source to the local buffer 5 and a DMA from the local buffer 5 to the transfer destination, are controlled by a single DMA activation.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は,計算機システム等
においてCPUを介さずにデータ転送を行うDMA制御
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA control device for transferring data without using a CPU in a computer system or the like.

【0002】DMA(Direct Memory Access)は,例え
ばメインメモリと入出力アダプタ等の間でCPUを介さ
ずに行うデータ転送である。DMAによれば効率的にデ
ータ転送を行うことができるが,本発明は,さらにDM
A情報も含めた全体としての転送処理時間の短縮を図る
ものである。
2. Description of the Related Art DMA (Direct Memory Access) is data transfer performed between a main memory and an input / output adapter without using a CPU. According to the DMA, data transfer can be performed efficiently.
It is intended to shorten the overall transfer processing time including the A information.

【0003】[0003]

【従来の技術】DMAを行うためには,転送元アドレ
ス,転送先アドレス,転送量等のDMA情報が必要であ
り,その情報によりDMAコントローラがデータ転送を
行う。このDMA情報は,レジスタに格納されたり,メ
モリに格納されたりするが,1回のDMA起動で複数の
DMA情報を獲得して複数回DMA転送を行うような場
合,すなわちDMA転送がチェーンで結ばれる場合に
は,DMA情報のデータ量がDMA転送の回数により変
化するため,メモリ上に置かれることが一般的である。
2. Description of the Related Art In order to perform DMA, DMA information such as a transfer source address, a transfer destination address, and a transfer amount is required, and a DMA controller performs data transfer based on the information. This DMA information is stored in a register or stored in a memory. However, when a plurality of pieces of DMA information are acquired and DMA transfer is performed a plurality of times by one DMA activation, that is, when the DMA transfer is linked in a chain. In such a case, since the data amount of the DMA information changes depending on the number of times of the DMA transfer, it is generally placed on a memory.

【0004】DMA転送は,以下の手順で行われる。 DMA情報を獲得する。 転送元アドレスから転送データを獲得する。通常は
データの転送に伴い転送元アドレスがインクリメントさ
れるが,転送元がFIFO等のように一定アドレスの場
合もある。
[0004] DMA transfer is performed in the following procedure. Acquire DMA information. Acquire transfer data from transfer source address. Normally, the transfer source address is incremented with the transfer of data, but the transfer source may be a fixed address such as a FIFO.

【0005】 転送先アドレスへ転送データを出力す
る。通常はデータの転送に伴い転送先アドレスがインク
リメントされるが,転送先がFIFO等のように一定ア
ドレスの場合もある。
The transfer data is output to a transfer destination address. Normally, the transfer destination address is incremented with the transfer of data, but the transfer destination may be a fixed address such as a FIFO.

【0006】DMA転送がチェーンで結ばれる場合に
は,上記の手順の後,再び手順から繰り返すことに
なる。
[0006] When the DMA transfer is linked by a chain, the procedure is repeated again after the above procedure.

【0007】[0007]

【発明が解決しようとする課題】従来,DMA転送がチ
ェーンで結ばれる場合には,一つのDMA情報によるデ
ータ転送を行った後に,次のDMA情報の獲得を行な
い,同様に転送処理を繰り返していた。DMA情報の獲
得と実際のデータ転送とを交互に繰り返すため,DMA
情報を獲得するときにはデータの転送を行うことができ
ず,DMA情報の獲得に時間がかかると,全体としての
データ転送速度が低下するという問題があった。
Conventionally, when DMA transfers are linked by a chain, after the data transfer using one piece of DMA information is performed, the next DMA information is obtained, and the transfer process is repeated in the same manner. Was. Since the acquisition of DMA information and the actual data transfer are alternately repeated, the DMA
When information is acquired, data cannot be transferred, and if it takes time to acquire DMA information, there is a problem that the overall data transfer speed is reduced.

【0008】また,公衆回線等の接続を行うネットワー
クアダプタ等においては,回線側の通信速度がIOバス
(入出力バス)の速度に比べてかなり遅く,また通常,
バイト単位の転送が発生するなどの理由により,IOバ
ス側の効率が悪くなるため,一度,転送データをローカ
ルバッファにためてから,まとめてIOバスに転送した
り(受信時),IOバスからまとめてローカルバッファ
にためたデータを少しずつ回線側に転送したり(送信
時)することが多い。
In a network adapter or the like for connecting a public line or the like, the communication speed on the line side is considerably lower than the speed of an IO bus (input / output bus).
Since the efficiency of the IO bus side deteriorates due to reasons such as transfer in units of bytes, the transfer data is temporarily stored in a local buffer, then transferred to the IO bus at a time (at the time of reception), or transferred from the IO bus. In many cases, the data accumulated in the local buffer is transferred little by little to the line side (at the time of transmission).

【0009】この場合には,ローカルバッファへのデー
タ転送とローカルバッファからのデータ転送という二度
の転送が発生することになるが,転送元からローカルバ
ッファへの転送終了後にローカルバッファから転送先へ
の転送が行われる必要があるため,CPUなどがローカ
ルバッファへの転送終了を割り込み等によって確認した
後,ローカルバッファから転送先へのDMAの起動をか
け直す必要があり,処理時間が多くかかっていた。
In this case, two transfers, data transfer to the local buffer and data transfer from the local buffer, occur. However, after the transfer from the transfer source to the local buffer is completed, the transfer from the local buffer to the transfer destination is performed. Therefore, it is necessary to restart the DMA from the local buffer to the transfer destination after the CPU or the like confirms the end of the transfer to the local buffer by using an interrupt or the like, which takes a long processing time. Was.

【0010】本発明は上記問題点の解決を図り,第一
に,データ転送速度を低下させないようなDMA情報獲
得手段を提供すること,第二に,ローカルバッファを使
用する場合でも一度のDMA起動で二度のDMA転送が
行われるような手段を提供することにより,DMA転送
の全体としての処理時間の短縮を可能にすることを目的
とする。
The present invention has been made to solve the above problems, and firstly, to provide a means for acquiring DMA information which does not lower the data transfer rate. Secondly, once the DMA is started even when a local buffer is used. Therefore, it is an object of the present invention to provide a means for performing the DMA transfer twice so that the processing time of the entire DMA transfer can be reduced.

【0011】[0011]

【課題を解決するための手段】図1は,本発明の原理ブ
ロック図であり,図1(A)は,データ転送を低下させ
ないでDMA情報を獲得する構成例,図1(B)は,ロ
ーカルバッファを使用する場合でも一度のDMA起動に
よって転送を行うことができるようにした構成例を示し
ている。
FIG. 1 is a block diagram showing the principle of the present invention. FIG. 1A shows an example of a configuration for acquiring DMA information without reducing data transfer, and FIG. This shows an example of a configuration in which transfer can be performed by starting DMA once even when a local buffer is used.

【0012】図1(A)に示すDMA情報獲得手段1
は,一つのDMA情報によるデータ転送途中に次のDM
A情報を獲得する手段である。DMA情報保持手段2
は,複数のDMA情報を保持することができる記憶手段
である。転送制御手段3は,DMA情報保持手段2に保
持されたDMA情報をもとに転送元から転送先へのデー
タ転送を制御する手段であり,一つのDMA情報による
転送終了後に,DMA情報獲得手段1によって前もって
獲得した次のDMA情報によりデータ転送を続ける制御
を行う。
DMA information acquisition means 1 shown in FIG.
Is the next DM during data transfer by one DMA information.
A means for acquiring A information. DMA information holding means 2
Is storage means capable of holding a plurality of pieces of DMA information. The transfer control means 3 controls the data transfer from the transfer source to the transfer destination based on the DMA information held in the DMA information holding means 2. 1 controls to continue the data transfer according to the next DMA information acquired in advance.

【0013】DMA情報獲得手段1の実現方法として,
例えば以下の二つの方法がある。一つは,DMAによる
データ転送用のバスとは別に,DMA情報獲得用の専用
バスを設け,この専用バスを利用して,DMAによるデ
ータ転送中に次のDMA情報を獲得できるようにする方
法である。このようにすると,図1(A1)に示すよう
に,1番目のDMA情報によるデータ転送中に,2番
目のDMA情報を獲得し,1番目のデータ転送が終了
すると,直ちに2番目のDMA情報によるデータ転送
を開始することができる。
As a method for realizing the DMA information acquisition means 1,
For example, there are the following two methods. One is to provide a dedicated bus for acquiring DMA information separately from a bus for transferring data by DMA, and to use the dedicated bus so that the next DMA information can be acquired during data transfer by DMA. It is. In this way, as shown in FIG. 1 (A1), the second DMA information is acquired during the data transfer by the first DMA information, and immediately after the first data transfer is completed, the second DMA information is obtained. Can start data transfer.

【0014】もう一つは,図1(A2)に示すような方
法である。例えば,ネットワークアダプタ等へのデータ
転送では,回線側の通信速度はIOバスの通信速度に比
較して遅いため,データ転送とデータ転送の間隔が空い
てしまう。すなわち,1番目のDMA情報によるデー
タ転送において,図1(A2)に示すように,実際のデ
ータ転送とデータ転送との間に生じた空き時間を利用し
て,データ転送用のバスを用いることにより,次のDM
A情報を獲得する。
Another method is as shown in FIG. 1 (A2). For example, in data transfer to a network adapter or the like, the communication speed on the line side is slower than the communication speed of the IO bus, so that there is a gap between data transfer and data transfer. That is, in the data transfer based on the first DMA information, as shown in FIG. 1 (A2), the data transfer bus is used by utilizing the idle time generated between the actual data transfer and the data transfer. By the next DM
Acquire A information.

【0015】図1(B)に示す転送制御手段4は,DM
A情報を保持する記憶手段(図示省略)と,DMAデー
タ転送のためのローカルバッファ5と,このローカルバ
ッファ5上にDMA転送元のデータが準備できているか
否かを通知する通知手段6と,通知手段6によりデータ
が準備できていないことが通知されると,ローカルバッ
ファ5上から転送先へのDMA転送を停止する停止手段
7と,通知手段6によりデータが準備できていることが
通知されると,ローカルバッファ5上から転送先へのD
MA転送を再開する再開手段8とを備える。
The transfer control means 4 shown in FIG.
A storage unit (not shown) for holding the A information, a local buffer 5 for DMA data transfer, a notifying unit 6 for notifying whether data of a DMA transfer source is ready on the local buffer 5, When the notifying unit 6 notifies that the data is not ready, the stopping unit 7 for stopping the DMA transfer from the local buffer 5 to the transfer destination and the notifying unit 6 are notified that the data is ready. Then, D from the local buffer 5 to the transfer destination
Resuming means 8 for resuming MA transfer.

【0016】DMA転送元からローカルバッファ5への
データ転送の終了を,直接,転送制御手段4が認識し,
データ転送が終了して転送元のデータが準備できるまで
は,ローカルバッファ5から転送先へのDMAを,停止
手段7によって停止させ,ローカルバッファ5上にデー
タが準備できると,転送先へのDMAを再開手段8によ
って再開する。このように制御することにより,一度の
DMA起動で2回のDMA転送を制御できることにな
る。
The transfer control means 4 directly recognizes the end of the data transfer from the DMA transfer source to the local buffer 5, and
The DMA from the local buffer 5 to the transfer destination is stopped by the stop means 7 until the data transfer is completed and the transfer source data is ready. When the data is ready on the local buffer 5, the DMA to the transfer destination is prepared. Is restarted by the restart means 8. By performing such control, two DMA transfers can be controlled by one DMA activation.

【0017】通知手段6は,例えば転送元データが準備
できたことを示す所定の制御情報保持手段(図示省略)
またはDMA情報の中に設けられた制御ビットをポーリ
ングにより確認することにより,転送元データがローカ
ルバッファ5上に準備できているか準備できていないか
を確認し,例えば割り込み信号によって停止手段7また
は再開手段8への通知を行う。
The notifying means 6 is, for example, a predetermined control information holding means (not shown) indicating that the transfer source data has been prepared.
Alternatively, by checking the control bit provided in the DMA information by polling, it is checked whether or not the transfer source data has been prepared in the local buffer 5 or not. The notification to the means 8 is performed.

【0018】[0018]

【発明の実施の形態】図2は,本発明の適用システムの
例を示す。本発明は,もちろんこれに限られるわけでは
ないが,例えば図2に示すような計算機システムに適用
される。
FIG. 2 shows an example of an application system of the present invention. The present invention is of course, but not limited to, applied to a computer system such as that shown in FIG.

【0019】中央処理装置(CPU)100は,逐次,
命令をフェッチして実行する装置である。メインメモリ
101は,プログラムやデータを記憶する記憶装置であ
る。バスブリッジ102は,CPUバスとIOバス10
3とを接続するインタフェース装置である。IOバス1
03は,入出力用のデータを転送するためのバスであ
る。
The central processing unit (CPU) 100
A device that fetches and executes instructions. The main memory 101 is a storage device that stores programs and data. The bus bridge 102 includes a CPU bus and an IO bus 10.
3 is an interface device for connecting the C.I. IO bus 1
03 is a bus for transferring input / output data.

【0020】ネットワークアダプタ104は,CPU1
00等の計算機をネットワークに接続するためのアダプ
タであって,IOバス103との間でデータを送受信す
るIOバス制御部105,ローカルメモリ107,通信
回線110に対するデータ送受信のための回線制御を行
うネットワーク制御部109,これらを接続する内部バ
ス108を持つ。
The network adapter 104 is connected to the CPU 1
This is an adapter for connecting a computer such as 00 to a network, and performs line control for data transmission / reception to / from the IO bus control unit 105, the local memory 107, and the communication line 110 for transmitting / receiving data to / from the IO bus 103. A network control unit 109 has an internal bus 108 for connecting these.

【0021】本発明は,IOバス制御部105が持つD
MA制御回路106等に係り,メインメモリ101から
ネットワークアダプタ104内のローカルメモリ107
へのデータ転送,もしくはローカルメモリ107からメ
インメモリ101へのデータ転送におけるDMA制御,
またはメインメモリ101とネットワーク制御部109
間のローカルメモリ107を介したデータ転送のDMA
制御を効率よく行うものである。
According to the present invention, the D
The main memory 101 and the local memory 107 in the network adapter 104 are related to the MA control circuit 106 and the like.
DMA control in data transfer from the local memory 107 to the main memory 101,
Alternatively, the main memory 101 and the network control unit 109
DMA of data transfer via local memory 107 between
The control is performed efficiently.

【0022】[DMA制御回路の第1の実施の形態]図
3は,DMA制御回路の構成を示すブロック図である。
DMA情報保持部11は,転送元アドレス,転送先アド
レス,転送量(転送するデータのサイズ),次のDMA
情報がある場合にそのDMA情報をチェーンするための
DMA情報アドレスなどからなるDMA情報を保持す
る。DMA情報保持部11は,例えば図2に示すメイン
メモリ101内に設けられる。
[First Embodiment of DMA Control Circuit] FIG. 3 is a block diagram showing the configuration of the DMA control circuit.
The DMA information holding unit 11 stores a transfer source address, a transfer destination address, a transfer amount (the size of data to be transferred),
When there is information, DMA information including a DMA information address for chaining the DMA information is held. The DMA information holding unit 11 is provided in, for example, the main memory 101 shown in FIG.

【0023】次DMA情報獲得制御回路10は,DMA
情報保持部11へアドレスと読み出しの制御信号を送
り,チェーンされたDMA情報を事前に獲得するための
制御回路である。読み出されたDMA情報は,専用バス
23を介して,次転送元アドレスレジスタ12(転送元
アドレス),次転送カウンタ13(転送量),次転送先
アドレスレジスタ14(転送先アドレス),次DMA情
報アドレスレジスタ15(チェーン情報)にセットされ
る。
The next DMA information acquisition control circuit 10
This is a control circuit for sending an address and a read control signal to the information holding unit 11 to acquire chained DMA information in advance. The read DMA information is transferred via the dedicated bus 23 to the next transfer source address register 12 (transfer source address), the next transfer counter 13 (transfer amount), the next transfer destination address register 14 (transfer destination address), and the next DMA. It is set in the information address register 15 (chain information).

【0024】次転送元アドレスレジスタ12内の転送元
アドレス,次転送カウンタ13内の転送量,次転送先ア
ドレスレジスタ14内の転送先アドレス,次DMA情報
アドレスレジスタ15内のチェーン情報は,次のDMA
データ転送の開始時に,それぞれ転送元アドレスレジス
タ16,転送カウンタ17,転送先アドレスレジスタ1
8,DMA情報アドレスレジスタ19へ送られ,一つの
DMA情報によるデータ転送が開始される。
The transfer source address in the next transfer source address register 12, the transfer amount in the next transfer counter 13, the transfer destination address in the next transfer destination address register 14, and the chain information in the next DMA information address register 15 are as follows. DMA
At the start of data transfer, the transfer source address register 16, the transfer counter 17, and the transfer destination address register 1
8. The data is sent to the DMA information address register 19, and data transfer based on one piece of DMA information is started.

【0025】DMA情報アドレスレジスタ19の内容
は,次DMA情報獲得制御回路10へ送られ,次のDM
A情報が存在すれば,その獲得に用いられる。転送元制
御回路20は,転送元アドレスレジスタ16から転送元
アドレスと,転送カウンタ17から転送量とを読み出
し,その転送元アドレスとデータの転送を要求する制御
系信号とを転送元へ送り,バス上に送られてきた転送元
データを,ライト制御により内部のバッファ22に書き
込む。書き込みが終了すると,転送先制御回路21へデ
ータの取込み完了を通知する。
The contents of the DMA information address register 19 are sent to the next DMA information acquisition
If the A information exists, it is used to obtain it. The transfer source control circuit 20 reads the transfer source address from the transfer source address register 16 and the transfer amount from the transfer counter 17, and sends the transfer source address and a control signal for requesting data transfer to the transfer source. The transfer source data transmitted above is written into the internal buffer 22 by write control. When the writing is completed, the transfer control circuit 21 is notified of the completion of the data capture.

【0026】転送先制御回路21は,転送元制御回路2
0からの取込み完了の通知により転送先アドレスレジス
タ18から読み出した転送先アドレスと,データ転送の
制御系信号を転送先へ送り,リード制御によってバッフ
ァ22から読み出したデータを転送先へ送る。その転送
完了を転送元制御回路20と次DMA情報獲得制御回路
10へ通知する。
The transfer destination control circuit 21 is a transfer source control circuit 2
The transfer destination address read from the transfer destination address register 18 and a control signal for data transfer are sent to the transfer destination in response to the notification of the completion of the capture from 0, and the data read from the buffer 22 is sent to the transfer destination by the read control. The transfer completion is notified to the transfer source control circuit 20 and the next DMA information acquisition control circuit 10.

【0027】一つのDMA情報により転送カウンタ17
に設定された転送量分のデータ転送が完了すると,既に
次DMA情報獲得制御回路10によって次のDMA情報
が,次転送元アドレスレジスタ12,次転送カウンタ1
3,次転送先アドレスレジスタ14,次DMA情報アド
レスレジスタ15に設定されているので,それらを転送
元アドレスレジスタ16,転送カウンタ17,転送先ア
ドレスレジスタ18,DMA情報アドレスレジスタ19
へ移し,転送元制御回路20は,直ちに次のDMA情報
によるデータ転送を開始する。以下,同様にDMAデー
タ転送を続ける。
The transfer counter 17 is determined by one piece of DMA information.
Is completed, the next DMA information acquisition control circuit 10 has already transferred the next DMA information to the next transfer source address register 12 and the next transfer counter 1.
3. Since the next transfer destination address register 14 and the next DMA information address register 15 are set, they are transferred to the transfer source address register 16, the transfer counter 17, the transfer destination address register 18, the DMA information address register 19
The transfer source control circuit 20 immediately starts the data transfer based on the next DMA information. Hereinafter, similarly, the DMA data transfer is continued.

【0028】図4は,図3に示す転送元制御回路のブロ
ック図である。図4において,転送アドレスカウンタ3
0は,図3に示す転送元アドレスレジスタ16からのア
ドレス値が設定されるカウンタである。転送アドレスカ
ウンタ30の保持するアドレス値は,転送元からのデー
タの取込みごとに,そのデータ取込み単位分ずつインク
リメントされる。
FIG. 4 is a block diagram of the transfer source control circuit shown in FIG. In FIG. 4, the transfer address counter 3
0 is a counter to which an address value from the transfer source address register 16 shown in FIG. 3 is set. The address value held by the transfer address counter 30 is incremented by the data fetch unit every time data is fetched from the transfer source.

【0029】転送カウンタ31は,図3に示す転送カウ
ンタ17からの転送量が設定されるカウンタであり,転
送元からのデータの取込みが行われると,そのデータ取
込み単位分ずつデクリメントされる。
The transfer counter 31 is a counter for setting the transfer amount from the transfer counter 17 shown in FIG. 3. When data is taken in from the transfer source, the data is decremented by the unit of the data take-in.

【0030】転送量判定回路32は,1回のバースト転
送で転送するデータ量を決定する回路であり,テンポラ
リのバッファ量と,転送カウンタ31が示す残り転送量
と,転送元バースト長とにより転送量を決定し,転送ア
ドレスカウンタ30のインクリメント量と転送カウンタ
31のデクリメント量を制御するとともに,転送元バス
制御回路34および図3に示す転送先制御回路21に転
送量を通知する。
The transfer amount determination circuit 32 is a circuit for determining the amount of data to be transferred in one burst transfer. The transfer amount is determined based on the temporary buffer amount, the remaining transfer amount indicated by the transfer counter 31, and the transfer source burst length. The amount is determined, the increment amount of the transfer address counter 30 and the decrement amount of the transfer counter 31 are controlled, and the transfer amount is notified to the transfer source bus control circuit 34 and the transfer destination control circuit 21 shown in FIG.

【0031】転送元バス獲得回路33は,CPU等から
のDMA起動指示によるスタート信号により,転送アド
レスカウンタ30,転送カウンタ31へのカウンタロー
ドタイミング信号を出力し,また,データを取り込むた
めのバス獲得を要求するバスリクエスト信号を出力す
る。バスリクエスト信号に対して,バスの使用許可を示
すバスグラント信号が届くと,その旨を転送元バス制御
回路34へ通知する。
The transfer source bus acquisition circuit 33 outputs a counter load timing signal to the transfer address counter 30 and the transfer counter 31 in response to a start signal according to a DMA activation instruction from the CPU or the like, and acquires a bus for taking in data. Is output. When a bus grant signal indicating permission for use of the bus arrives in response to the bus request signal, the bus request signal is notified to the transfer source bus control circuit 34.

【0032】転送元バス制御回路34は,転送アドレス
カウンタ30からの転送元アドレスと,データ・サイズ
と,ストローブ信号とを転送元へ送り,また転送アドレ
スカウンタ30のインクリメントタイミング信号および
転送カウンタ31のデクリメントタイミング信号を出力
する。バス上にデータが送られたことを示すアクノリッ
ジ信号が到着すると,バッファ制御回路35へ通知す
る。
The transfer source bus control circuit 34 sends the transfer source address, the data size, and the strobe signal from the transfer address counter 30 to the transfer source, and increments the transfer address counter 30 and the transfer counter 31. Outputs a decrement timing signal. When an acknowledgment signal indicating that data has been sent arrives on the bus, the buffer control circuit 35 is notified.

【0033】バッファ制御回路35は,図3に示すバッ
ファ22に対して,ライトタイミング信号とライトアド
レスとを出力し,バッファ22へのバス上のデータの書
き込みを制御する。バッファ制御回路35は,バッファ
22へのデータの取込みが終了すると,図3に示す転送
先制御回路21へのスタート信号を出力する。
The buffer control circuit 35 outputs a write timing signal and a write address to the buffer 22 shown in FIG. 3, and controls writing of data on the bus to the buffer 22. The buffer control circuit 35 outputs a start signal to the transfer destination control circuit 21 shown in FIG.

【0034】図5は,図3に示す転送先制御回路のブロ
ック図である。図5において,転送アドレスカウンタ4
0は,図3に示す転送先アドレスレジスタ14からのア
ドレス値が設定されるカウンタである。転送アドレスカ
ウンタ40の保持するアドレス値は,転送先へのデータ
転送ごとに,そのデータ転送量分ずつインクリメントさ
れる。
FIG. 5 is a block diagram of the transfer destination control circuit shown in FIG. In FIG. 5, the transfer address counter 4
0 is a counter to which an address value from the transfer destination address register 14 shown in FIG. 3 is set. The address value held by the transfer address counter 40 is incremented by the data transfer amount every time data is transferred to the transfer destination.

【0035】転送カウンタ41は,図4に示す転送元制
御回路の転送量判定回路32から送られた転送先データ
転送量が設定されるカウンタであり,転送先へのデータ
の転送が行われると,そのデータ転送量分ずつデクリメ
ントされる。
The transfer counter 41 is a counter for setting the transfer amount of the transfer destination data sent from the transfer amount determination circuit 32 of the transfer source control circuit shown in FIG. 4, and when the transfer of data to the transfer destination is performed. , Is decremented by the data transfer amount.

【0036】転送量判定回路42は,1回のバースト転
送で転送するデータ量を決定する回路であり,転送元制
御回路20からの転送量と,転送先バースト長とにより
転送量を決定し,転送アドレスカウンタ40のインクリ
メント量と転送カウンタ41のデクリメント量を制御す
るとともに,転送先バス制御回路44に転送量を通知す
る。
The transfer amount determination circuit 42 is a circuit that determines the amount of data to be transferred in one burst transfer, and determines the transfer amount based on the transfer amount from the transfer source control circuit 20 and the transfer destination burst length. It controls the increment amount of the transfer address counter 40 and the decrement amount of the transfer counter 41 and notifies the transfer destination bus control circuit 44 of the transfer amount.

【0037】転送先バス獲得回路43は,図3に示す転
送元制御回路のバッファ制御回路35からのスタート信
号により,転送アドレスカウンタ40,転送カウンタ4
1へのカウンタロードタイミング信号を出力し,また,
データを転送するためのバス獲得を要求するバスリクエ
スト信号を出力する。バスリクエスト信号に対して,バ
スの使用許可を示すバスグラント信号が届くと,その旨
を転送先バス制御回路44へ通知する。
The transfer destination bus acquisition circuit 43 receives the start signal from the buffer control circuit 35 of the transfer source control circuit shown in FIG.
1 to output a counter load timing signal.
It outputs a bus request signal for requesting a bus to transfer data. When a bus grant signal indicating permission to use the bus arrives with respect to the bus request signal, the bus grant signal is notified to the transfer destination bus control circuit 44.

【0038】転送先バス制御回路44は,転送アドレス
カウンタ40からの転送先アドレスと,データ・サイズ
と,ストローブ信号とをバスへ出力し,これに伴い,バ
ッファ制御回路45は,図3に示すバッファ22に対し
て,リードタイミング信号とリードアドレスとを出力す
ることにより,バッファ22からデータを読み出して転
送先へのデータ転送を制御する。バッファ制御回路45
は,バッファ22からのデータ転送が終了すると,図3
に示す転送元制御回路20へのスタート信号を出力す
る。
The transfer destination bus control circuit 44 outputs the transfer destination address from the transfer address counter 40, the data size, and the strobe signal to the bus, and accordingly, the buffer control circuit 45 changes to the state shown in FIG. By outputting a read timing signal and a read address to the buffer 22, data is read from the buffer 22 and data transfer to the transfer destination is controlled. Buffer control circuit 45
When data transfer from the buffer 22 is completed,
Is output to the transfer source control circuit 20 shown in FIG.

【0039】また,転送先バス制御回路44は,転送ア
ドレスカウンタ40のインクリメントタイミング信号お
よび転送カウンタ41のデクリメントタイミング信号を
出力する。
The transfer destination bus control circuit 44 outputs an increment timing signal of the transfer address counter 40 and a decrement timing signal of the transfer counter 41.

【0040】図6は,図3に示す次DMA情報獲得制御
回路のブロック図である。図5において,DMA情報先
頭アドレスレジスタ46は,DMAの起動前に,あらか
じめDMA情報の先頭アドレス(図3に示すDMA情報
保持部11のアドレス)が設定されるレジスタであり,
最初のDMA転送に用いるDMA情報を獲得する場合に
用いられる。DMA情報アドレスレジスタ19は,図3
に示すDMA情報アドレスレジスタ19であり,最初の
DMA情報以外のチェーンされたDMA情報の獲得に用
いられる。
FIG. 6 is a block diagram of the next DMA information acquisition control circuit shown in FIG. In FIG. 5, a DMA information start address register 46 is a register in which a start address of the DMA information (an address of the DMA information holding unit 11 shown in FIG. 3) is set before the start of the DMA.
It is used to acquire DMA information used for the first DMA transfer. As shown in FIG.
Are used to acquire chained DMA information other than the first DMA information.

【0041】DMA情報保持部制御回路47は,図3に
示すDMA情報保持部11からのDMA情報の読み出し
を制御する回路であり,DMAスタート信号により,最
初はDMA情報先頭アドレスレジスタ46から,2回目
以降はDMA情報アドレスレジスタ19からのアドレス
をロードし,そのアドレスとストローブ信号とリードイ
ネーブル信号とを出力することにより,DMA情報の読
み出しを制御する。
The DMA information holding unit control circuit 47 is a circuit for controlling the reading of DMA information from the DMA information holding unit 11 shown in FIG. From the next time on, reading of the DMA information is controlled by loading the address from the DMA information address register 19 and outputting the address, the strobe signal and the read enable signal.

【0042】アドレスレジスタ制御回路48は,図3に
示す次転送元アドレスレジスタ12,次転送カウンタ1
3,次転送先アドレスレジスタ14,次DMA情報アド
レスレジスタ15の内容を,転送元アドレスレジスタ1
6,転送カウンタ17,転送先アドレスレジスタ18,
DMA情報アドレスレジスタ19へ移すアドレスレジス
タセットタイミング信号を出力するとともに,DMA情
報保持部11から読み出したDMA情報を,次転送元ア
ドレスレジスタ12,次転送カウンタ13,次転送先ア
ドレスレジスタ14,次DMA情報アドレスレジスタ1
5にそれぞれセットする次アドレスレジスタセットタイ
ミング信号を出力する。その後,図3に示す転送元制御
回路20へのスタート信号を出力する。
The address register control circuit 48 includes the next transfer source address register 12 and the next transfer counter 1 shown in FIG.
3. Transfer the contents of the next transfer destination address register 14 and the next DMA information address register 15 to the transfer source address register 1
6, transfer counter 17, transfer destination address register 18,
An address register set timing signal to be transferred to the DMA information address register 19 is output, and the DMA information read from the DMA information holding unit 11 is transferred to the next transfer source address register 12, the next transfer counter 13, the next transfer destination address register 14, the next DMA. Information address register 1
Next, the next address register set timing signal to be set to 5 is output. Thereafter, a start signal is output to the transfer source control circuit 20 shown in FIG.

【0043】図7は,以上の各回路の動作を示すタイミ
ングチャートである。図7の(a)は各回路の動作タイ
ミングを制御するクロック信号のクロックエッジを示し
ている。(b)〜(v)はそれぞれ前述した説明におけ
る次のような信号である。
FIG. 7 is a timing chart showing the operation of each circuit described above. FIG. 7A shows clock edges of a clock signal for controlling the operation timing of each circuit. (B) to (v) are the following signals in the above description, respectively.

【0044】(b):DMAスタート信号 (c):DMA情報ストローブ等の信号 (d):次アドレスレジスタセットタイミング信号 (e):アドレスレジスタセットタイミング信号 (f):転送元制御回路スタート信号 (g):転送元カウンタロードタイミング信号 (h):転送元バスリクエスト信号 (i):転送元バスグラント信号 (j):転送元バスストローブ等の信号 (k):転送元バスアクノリッジ信号 (l):バッファライト信号等 (m):転送元カウンタデクリメント/インクリメント
タイミング信号 (n):転送先制御回路スタート信号 (o):転送先カウンタロードタイミング信号 (p):転送先バスリクエスト信号 (q):転送先バスグラント信号 (r):転送先バスストローブ等の信号 (s):転送先バスアクノリッジ信号 (t):バッファリード信号等 (u):転送先カウンタデクリメント/インクリメント
タイミング信号 (v):転送元制御回路スタート信号 図7のタイミングチャートに示すように,(o)の転送
先カウンタロードタイミング信号の出力によって,図3
に示す転送元アドレスレジスタ16〜DMA情報アドレ
スレジスタ19が空きになるので,次転送元アドレスレ
ジスタ12〜次DMA情報アドレスレジスタ15の値を
移すことができるようになる。そこで,(e)のアドレ
スレジスタセットタイミング信号,(c)のDMA情報
ストローブ等の信号をONにし,続いて(d)の次アド
レスレジスタセットタイミング信号をONにする。これ
によってDMAによるデータ転送と,次のDMA情報の
読み出しとが,時間的に並列に実行される。
(B): DMA start signal (c): DMA information strobe signal (d): next address register set timing signal (e): address register set timing signal (f): transfer source control circuit start signal ( g): transfer source counter load timing signal (h): transfer source bus request signal (i): transfer source bus grant signal (j): signal of transfer source bus strobe, etc. (k): transfer source bus acknowledge signal (l) : Buffer write signal, etc. (m): Transfer source counter decrement / increment timing signal (n): Transfer destination control circuit start signal (o): Transfer destination counter load timing signal (p): Transfer destination bus request signal (q): Transfer destination bus grant signal (r): Signal of transfer destination bus strobe, etc. (s): Transfer destination bus grant signal Acknowledge signal (t): buffer read signal etc. (u): transfer destination counter decrement / increment timing signal (v): transfer source control circuit start signal As shown in the timing chart of FIG. 7, transfer destination counter load of (o) FIG. 3 shows the timing signal output.
Since the transfer source address register 16 to the DMA information address register 19 shown in (1) become empty, the values of the next transfer source address register 12 to the next DMA information address register 15 can be transferred. Therefore, the address register set timing signal in (e) and the signal such as the DMA information strobe in (c) are turned on, and then the next address register set timing signal in (d) is turned on. As a result, the data transfer by the DMA and the reading of the next DMA information are executed in parallel in time.

【0045】[DMA制御回路の第2の実施の形態]図
8は,DMA制御回路の他の構成を示すブロック図であ
る。次DMA情報獲得制御回路50によって,一つのD
MA情報によるデータ転送途中に次のDMA情報を獲得
する点については,図3に示すDMA制御回路と同じで
ある。
[Second Embodiment of DMA Control Circuit] FIG. 8 is a block diagram showing another configuration of the DMA control circuit. By the next DMA information acquisition control circuit 50, one D
The point that the next DMA information is acquired during the data transfer based on the MA information is the same as the DMA control circuit shown in FIG.

【0046】しかし,図3に示すDMA制御回路では,
DMA情報の獲得に専用バス23を用いていたのに対
し,図8に示すDMA制御回路では,DMA情報の獲得
にデータ転送用のバスを用い,バスをDMA情報の獲得
とデータ転送とで共用する点が異なる。ただし,一つの
DMA情報によるデータ転送が完了する前に,次のDM
A情報を獲得するため,図1(A2)に示すように,実
際のデータ転送の途切れによるバスの空き時間を利用し
て,次のDMA情報の獲得を行う。
However, in the DMA control circuit shown in FIG.
While the dedicated bus 23 is used to acquire the DMA information, the DMA control circuit shown in FIG. 8 uses a data transfer bus to acquire the DMA information and shares the bus between the acquisition of the DMA information and the data transfer. Is different. However, before the data transfer by one DMA information is completed, the next DM
In order to obtain the A information, as shown in FIG. 1 (A2), the next DMA information is obtained by utilizing the idle time of the bus due to the actual interruption of data transfer.

【0047】これは,図2に示すようなシステムにおい
て,ネットワーク制御部109側の通信速度は,CPU
100側のIOバス103の通信速度に比較して遅いた
め,IOバス103を用いたデータ転送とデータ転送の
間隔が空いてしまうことに着目し,その空き時間を次の
DMA情報の獲得に用いるようにしたものである。
This is because, in the system as shown in FIG.
Paying attention to the fact that the communication speed of the IO bus 103 on the 100 side is lower than the communication speed of the IO bus 103, an interval between data transfer using the IO bus 103 is increased, and the idle time is used for acquiring the next DMA information. It is like that.

【0048】そのため,転送元制御回路59と転送先制
御回路60との間でデータの取込み完了,転送完了の通
知を行い,取込み完了によってバスに空きが生じたとき
に,次DMA情報獲得制御回路50に対して,次のDM
A情報の獲得が可能であることを通知する。次DMA情
報獲得制御回路50は,これによって,バスリクエスト
信号を出力し,バスの使用許可(バスグラント)を得た
後,次のDMA情報を読み出す。読み出したDMA情報
は,次転送元アドレスレジスタ51,次転送カウンタ5
2,次転送先アドレスレジスタ53,次DMA情報アド
レスレジスタ54にセットする。
For this reason, the completion of the data fetch and the completion of the transfer are notified between the transfer source control circuit 59 and the transfer destination control circuit 60, and when a vacancy occurs in the bus due to the completion of the fetch, the next DMA information acquisition control circuit is provided. 50, the next DM
Notifies that acquisition of A information is possible. As a result, the next DMA information acquisition control circuit 50 outputs a bus request signal and, after obtaining a bus use permission (bus grant), reads the next DMA information. The read DMA information is stored in the next transfer source address register 51 and the next transfer counter 5.
2. The next transfer destination address register 53 and the next DMA information address register 54 are set.

【0049】他の構成部分については,図3のDMA制
御回路と同様であるので,説明の繰り返しを省略する。 [DMA制御回路の第3の実施の形態]図9は,DMA
制御回路の他の構成を示すブロック図である。
The other components are the same as those of the DMA control circuit shown in FIG. 3, and the description thereof will not be repeated. [Third Embodiment of DMA Control Circuit] FIG.
FIG. 9 is a block diagram illustrating another configuration of the control circuit.

【0050】図9において,ローカルバッファ76は,
例えば図2に示すネットワークアダプタ104内のロー
カルメモリ107に相当し,通信回線110へのデータ
送信時には,転送元DMA制御部70は,図2のメイン
メモリ101からローカルメモリ107(ローカルバッ
ファ76)へのデータ転送を制御し,転送先DMA制御
部80は,ローカルメモリ107からネットワーク制御
部109の内部バッファへのデータ転送を制御する。な
お,データ転送がネットワーク制御部109側からCP
U100側へ行われるような逆方向の場合も,以下に説
明する基本的動作等は同様である。
In FIG. 9, the local buffer 76
For example, it corresponds to the local memory 107 in the network adapter 104 shown in FIG. 2, and when transmitting data to the communication line 110, the transfer source DMA control unit 70 transfers the data from the main memory 101 to the local memory 107 (local buffer 76) in FIG. The transfer destination DMA control unit 80 controls the data transfer from the local memory 107 to the internal buffer of the network control unit 109. The data transfer is performed by the network control unit 109 from the CP.
The same applies to the reverse operation performed on the U100 side, such as the basic operation described below.

【0051】図9に示すDMA制御回路では,メインメ
モリ101からローカルバッファ76へのDMAデータ
転送と,ローカルバッファ76からネットワーク制御部
109等へのDMAデータ転送の二度のDMAを,CP
U100からの一度のDMA起動によって行うことがで
きるようになっている。
In the DMA control circuit shown in FIG. 9, two DMAs, DMA data transfer from the main memory 101 to the local buffer 76 and DMA data transfer from the local buffer 76 to the network control unit 109, etc.
It can be performed by one DMA start from U100.

【0052】このため,転送元DMA制御部70は,転
送元データを書き込むためのローカルバッファ76のア
ドレスを保持する転送元ローカルバッファアドレスレジ
スタ71と,転送元のメインメモリ101(図2)のア
ドレスを保持する転送元アドレスレジスタ72と,転送
量をカウントするための転送元転送カウンタ73と,転
送元からのデータの取込みを制御する転送元制御回路7
4とを持つ。
For this reason, the transfer source DMA control unit 70 includes a transfer source local buffer address register 71 for holding the address of the local buffer 76 for writing the transfer source data, and an address of the transfer source main memory 101 (FIG. 2). Source address register 72 for holding the transfer, transfer source transfer counter 73 for counting the transfer amount, and transfer source control circuit 7 for controlling the fetching of data from the transfer source.
With 4.

【0053】一方,転送先DMA制御部80は,ローカ
ルバッファ76からデータを読み出すためのアドレスを
保持する転送先ローカルバッファアドレスレジスタ81
と,転送先の例えばネットワーク制御部109が持つバ
ッファのアドレスを保持する転送先アドレスレジスタ8
2と,転送量をカウントするための転送先転送カウンタ
83と,転送先へのデータの転送を制御する転送先制御
回路84とを持つ。
On the other hand, the transfer destination DMA control section 80 has a transfer destination local buffer address register 81 for holding an address for reading data from the local buffer 76.
And a transfer destination address register 8 for holding the address of a buffer of the transfer destination, for example, of the network control unit 109.
2, a transfer destination transfer counter 83 for counting the transfer amount, and a transfer destination control circuit 84 for controlling the transfer of data to the transfer destination.

【0054】他に,転送先制御回路84は,ローカルバ
ッファ76上から転送先へのDMA転送の停止を制御す
る停止制御回路85と,ローカルバッファ76上から転
送先へのDMA転送の再開を制御する再開制御回路86
とを持つ。
In addition, the transfer destination control circuit 84 controls the stop control circuit 85 for controlling the stop of the DMA transfer from the local buffer 76 to the transfer destination, and controls the restart of the DMA transfer from the local buffer 76 to the transfer destination. Restart control circuit 86
With

【0055】本発明は,転送先制御回路84が停止制御
回路85と再開制御回路86とを持つことと,これらを
動作させるための通知手段75を持つことが,従来技術
と特に異なる。
The present invention is particularly different from the prior art in that the transfer destination control circuit 84 has a stop control circuit 85 and a restart control circuit 86 and a notifying means 75 for operating them.

【0056】転送元制御回路74は,転送元ローカルバ
ッファアドレスレジスタ71と,転送元アドレスレジス
タ72と,転送元転送カウンタ73の値をもとに,転送
元アドレスとデータ取込みのための制御信号を転送元へ
送り,転送元から送られてきたデータをローカルバッフ
ァ76に書き込む。
The transfer source control circuit 74 outputs a transfer source address and a control signal for taking in data based on the values of the transfer source local buffer address register 71, the transfer source address register 72, and the transfer source transfer counter 73. The data is sent to the transfer source, and the data sent from the transfer source is written in the local buffer 76.

【0057】通知手段75は,ローカルバッファ76上
にDMA転送元のデータが準備できているか否かを,例
えば特定の制御ビットをポーリングすることによって監
視し,その情報を停止制御回路85および再開制御回路
86へ通知する。これにより,停止制御回路85および
再開制御回路86は,転送先制御回路84に対し,それ
ぞれDMA転送の停止/再開の指示を出す。
The notifying means 75 monitors whether or not the data of the DMA transfer source is ready on the local buffer 76 by, for example, polling a specific control bit, and monitors the information by the stop control circuit 85 and the restart control. The circuit 86 is notified. As a result, the stop control circuit 85 and the restart control circuit 86 instruct the transfer destination control circuit 84 to stop / restart the DMA transfer.

【0058】転送先制御回路84は,転送先ローカルバ
ッファアドレスレジスタ81と,転送先アドレスレジス
タ82と,転送先転送カウンタ83の値をもとに,転送
先アドレスとデータ転送のための制御信号を転送先へ送
り,ローカルバッファ76から転送先データを読み出し
て,転送先へ送る。
The transfer destination control circuit 84 generates a transfer destination address and a control signal for data transfer based on the values of the transfer destination local buffer address register 81, the transfer destination address register 82, and the transfer destination transfer counter 83. The data is sent to the transfer destination, the transfer destination data is read from the local buffer 76, and sent to the transfer destination.

【0059】図10は,本実施の形態に用いるDMA情
報のデータ構造の例を示す。DMA転送に用いるDMA
情報は,例えば図10に示すように,転送元アドレスと
転送先アドレスと転送量と各種制御情報とからなる。制
御情報は,次のDMA情報のチェーンの有無,チェーン
のためのアドレス情報,転送終了をDMA転送の要求元
へ割り込みによって通知するか否かなどの情報を持つ。
他に,本実施の形態では,DMA転送の作業用制御ビッ
トとして,この制御情報内に準備/未準備制御ビット8
8が設けられる。準備/未準備制御ビット88は,初期
値は“0”であり,ローカルバッファ76内にデータが
未準備であることを示す。転送元制御回路74がローカ
ルバッファ76内にデータを書き込むと,“1”にな
り,データが準備できたことを示す。
FIG. 10 shows an example of the data structure of the DMA information used in the present embodiment. DMA used for DMA transfer
The information includes, for example, a transfer source address, a transfer destination address, a transfer amount, and various control information as shown in FIG. The control information includes the presence / absence of a chain of the next DMA information, address information for the chain, and information on whether or not to notify the end of the transfer to the DMA transfer request source by interruption.
In addition, in the present embodiment, the prepared / unprepared control bit 8 in the control information is used as a work control bit for DMA transfer.
8 are provided. The preparation / unprepared control bit 88 has an initial value of “0”, indicating that data is not prepared in the local buffer 76. When the transfer source control circuit 74 writes data in the local buffer 76, it becomes "1", indicating that the data is ready.

【0060】この例では,DMA転送時にはあらかじめ
ローカルバッファ76に,DMA情報が用意されるよう
になっており,転送元DMA制御部70はそのDMA情
報の先頭アドレスを保持している。転送元制御回路74
が,ローカルバッファ76内へのデータの取込みに伴
い,準備/未準備制御ビット88を“1”にセットし,
これによって,通知手段75はローカルバッファ76上
にデータが準備できたことを知る。なお,DMA情報内
の制御ビットを作業フラグとして用いる代わりに,あら
かじめ定められたローカルバッファ76内の特定アドレ
スのビットを用いるようにしてもよい。
In this example, at the time of DMA transfer, DMA information is prepared in the local buffer 76 in advance, and the transfer source DMA control unit 70 holds the start address of the DMA information. Transfer source control circuit 74
Sets the ready / unprepared control bit 88 to “1” with the data being taken into the local buffer 76,
Thus, the notifying means 75 knows that the data has been prepared on the local buffer 76. Instead of using the control bit in the DMA information as the work flag, a bit of a predetermined specific address in the local buffer 76 may be used.

【0061】このように,通知手段75が介在して,転
送元から転送先へのDMA転送の引き継ぎを行うので,
CPU100からの一度のDMA起動で2回のDMA転
送を制御することが可能になる。
As described above, the notification means 75 intervenes to take over the DMA transfer from the transfer source to the transfer destination.
It is possible to control two DMA transfers by starting the DMA from the CPU 100 once.

【0062】[DMA制御回路の第4の実施の形態]図
11は,DMA制御回路のさらに他の構成を示すブロッ
ク図である。図11に示すDMA制御回路の各部の基本
的動作は図9に示すDMA制御回路とほぼ同様である。
[Fourth Embodiment of DMA Control Circuit] FIG. 11 is a block diagram showing still another configuration of the DMA control circuit. The basic operation of each part of the DMA control circuit shown in FIG. 11 is almost the same as that of the DMA control circuit shown in FIG.

【0063】図11に示すDMA制御回路の図9に示す
回路との大きな違いは,通知手段90であり,図9の通
知手段75がDMA情報の制御ビットをポーリングによ
り監視していたのに対し,本実施の形態による通知手段
90は,転送元制御回路74から転送終了の通知を受
け,それを割り込み信号によって転送先DMA制御部8
0の停止制御回路85,再開制御回路86に通知する点
が異なる。
The major difference between the DMA control circuit shown in FIG. 11 and the circuit shown in FIG. 9 is the notification means 90, whereas the notification means 75 in FIG. 9 monitors the control bits of the DMA information by polling. The notifying means 90 according to the present embodiment receives the notification of the transfer completion from the transfer source control circuit 74, and sends it to the transfer destination DMA control unit 8 by an interrupt signal.
The difference is that the stop control circuit 85 and the restart control circuit 86 of 0 are notified.

【0064】本実施の形態によっても,CPU100か
らの一度のDMA起動で2回のDMA転送を制御するこ
とが可能になる。
According to the present embodiment, two DMA transfers can be controlled by a single DMA activation from the CPU 100.

【0065】[0065]

【発明の効果】以上説明したように,本発明によれば,
データ転送速度を低下させることなく,チェーンでつな
がれたDMA情報を獲得し,DMA転送の全体としての
処理時間を短縮させることが可能になる。また,一度の
DMA起動によって2回のDMA転送を制御することが
できるので,効率のよい通信が可能になる。
As described above, according to the present invention,
It is possible to acquire chained DMA information without reducing the data transfer speed, and to shorten the processing time of the entire DMA transfer. Further, since two DMA transfers can be controlled by one DMA activation, efficient communication is possible.

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

【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】本発明の適用システムの例を示す図である。FIG. 2 is a diagram illustrating an example of an application system of the present invention.

【図3】DMA制御回路の構成を示すブロック図であ
る。
FIG. 3 is a block diagram illustrating a configuration of a DMA control circuit.

【図4】図3に示す転送元制御回路のブロック図であ
る。
FIG. 4 is a block diagram of a transfer source control circuit shown in FIG. 3;

【図5】図3に示す転送先制御回路のブロック図であ
る。
FIG. 5 is a block diagram of a transfer destination control circuit shown in FIG. 3;

【図6】図3に示す次DMA情報獲得制御回路のブロッ
ク図である。
FIG. 6 is a block diagram of a next DMA information acquisition control circuit shown in FIG. 3;

【図7】回路の動作を示すタイミングチャートである。FIG. 7 is a timing chart showing the operation of the circuit.

【図8】DMA制御回路の他の構成を示すブロック図で
ある。
FIG. 8 is a block diagram showing another configuration of the DMA control circuit.

【図9】DMA制御回路の他の構成を示すブロック図で
ある。
FIG. 9 is a block diagram showing another configuration of the DMA control circuit.

【図10】DMA情報のデータ構造の例を示す図であ
る。
FIG. 10 is a diagram illustrating an example of a data structure of DMA information.

【図11】DMA制御回路のさらに他の構成を示すブロ
ック図である。
FIG. 11 is a block diagram showing still another configuration of the DMA control circuit.

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

1 DMA情報獲得手段 2 DMA情報保持手段 3 転送制御手段 4 転送制御手段 5 ローカルバッファ 6 通知手段 7 停止手段 8 再開手段 DESCRIPTION OF SYMBOLS 1 DMA information acquisition means 2 DMA information holding means 3 Transfer control means 4 Transfer control means 5 Local buffer 6 Notification means 7 Stop means 8 Restart means

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 複数のDMA情報を保持する記憶手段を
持ち,保持されたDMA情報をもとに転送元から転送先
へのデータ転送を制御するDMA制御装置であって,一
つのDMA情報によるデータ転送途中に次のDMA情報
を獲得するDMA情報獲得手段と,一つのDMA情報に
よる転送終了後に,前もって獲得した次のDMA情報に
よってデータ転送を続ける制御手段とを備えることを特
徴とするDMA制御装置。
1. A DMA controller having storage means for holding a plurality of pieces of DMA information and controlling data transfer from a transfer source to a transfer destination based on the held DMA information. DMA control, comprising: DMA information acquiring means for acquiring the next DMA information during data transfer; and control means for continuing data transfer with the previously acquired next DMA information after the transfer by one DMA information is completed. apparatus.
【請求項2】 請求項1記載のDMA制御装置におい
て,前記DMA情報獲得手段は,DMAによるデータ転
送用のバスとは別に,DMA情報獲得用の専用バスを持
つことを特徴とするDMA制御装置。
2. The DMA controller according to claim 1, wherein said DMA information acquisition means has a dedicated bus for acquiring DMA information, separately from a bus for transferring data by DMA. .
【請求項3】 請求項1記載のDMA制御装置におい
て,前記DMA情報獲得手段は,DMAによるデータ転
送用のバスをDMA情報の獲得のために使用し,一つの
DMA情報によるデータ転送における,部分的な転送と
部分的な転送との間に生じた空いた時間にデータ転送用
バスを用いて次のDMA情報を獲得するようにしたこと
を特徴とするDMA制御装置。
3. The DMA controller according to claim 1, wherein said DMA information obtaining means uses a bus for data transfer by DMA for obtaining DMA information, and includes a bus for data transfer by one DMA information. A DMA controller for acquiring the next DMA information by using a data transfer bus during a vacant time between a temporary transfer and a partial transfer.
【請求項4】 DMA情報を保持する記憶手段とDMA
データ転送のためのローカルバッファとを持ち,保持さ
れたDMA情報をもとに転送元から転送先へのデータ転
送を制御するDMA制御装置であって,前記ローカルバ
ッファ上にDMA転送元のデータが準備できているか否
かを通知する通知手段と,前記通知手段によりデータが
準備できていないことが通知されると,前記ローカルバ
ッファ上から転送先へのDMA転送を停止する停止手段
と,前記通知手段によりデータが準備できていることが
通知されると,前記ローカルバッファ上から転送先への
DMA転送を再開する再開手段とを備えることを特徴と
するDMA制御装置。
4. A storage means for holding DMA information and a DMA
A DMA controller which has a local buffer for data transfer and controls data transfer from a transfer source to a transfer destination based on held DMA information, wherein data of the DMA transfer source is stored in the local buffer. Notifying means for notifying whether or not the data is ready; stopping means for stopping DMA transfer from the local buffer to the transfer destination when notified that the data is not ready; A DMA control device, comprising: a resuming means for resuming DMA transfer from the local buffer to a transfer destination when notified that data is ready by the means.
【請求項5】 請求項4記載のDMA制御装置におい
て,前記通知手段は,転送元データが準備できたことを
示す所定の制御情報保持手段またはDMA情報の中に設
けられた制御情報をポーリングにより確認することによ
り,転送元データが前記ローカルバッファ上に準備でき
ているか準備できていないかを確認する手段であること
を特徴とするDMA制御装置。
5. The DMA control device according to claim 4, wherein said notifying means polls control information provided in said predetermined control information holding means or DMA information indicating that transfer source data is ready. A DMA controller for confirming whether or not transfer source data is prepared in the local buffer by checking the data.
【請求項6】 請求項4記載のDMA制御装置におい
て,前記通知手段は,転送元データが準備できたことを
割り込み信号によって通知する手段であることを特徴と
するDMA制御装置。
6. The DMA control device according to claim 4, wherein said notifying means is means for notifying that transfer source data is ready by an interrupt signal.
JP27046296A 1996-10-14 1996-10-14 DMA controller Pending JPH10116245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27046296A JPH10116245A (en) 1996-10-14 1996-10-14 DMA controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27046296A JPH10116245A (en) 1996-10-14 1996-10-14 DMA controller

Publications (1)

Publication Number Publication Date
JPH10116245A true JPH10116245A (en) 1998-05-06

Family

ID=17486641

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27046296A Pending JPH10116245A (en) 1996-10-14 1996-10-14 DMA controller

Country Status (1)

Country Link
JP (1) JPH10116245A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013246778A (en) * 2012-05-29 2013-12-09 Nec Corp Dma transfer device, dma transfer method and dma transfer program
US9727504B2 (en) 2012-02-29 2017-08-08 Mitsubishi Electric Corporation Data transfer apparatus, data transfer method, and data transfer program
WO2019229063A1 (en) * 2018-05-30 2019-12-05 Nordic Semiconductor Asa Direct memory access controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9727504B2 (en) 2012-02-29 2017-08-08 Mitsubishi Electric Corporation Data transfer apparatus, data transfer method, and data transfer program
JP2013246778A (en) * 2012-05-29 2013-12-09 Nec Corp Dma transfer device, dma transfer method and dma transfer program
WO2019229063A1 (en) * 2018-05-30 2019-12-05 Nordic Semiconductor Asa Direct memory access controller
US11386029B2 (en) 2018-05-30 2022-07-12 Nordic Semiconductor Asa Direct memory access controller

Similar Documents

Publication Publication Date Title
JPH10116245A (en) DMA controller
JPH10334037A (en) Communication dma device
US5418744A (en) Data transfer apparatus
JP3193155B2 (en) DMA control method
JPH06332848A (en) Data transfer method
JPH09204311A (en) Information processing system
JP2581041B2 (en) Data processing device
JP2000010909A (en) Data transfer control device
JPS6019023B2 (en) data processing equipment
JPH09219716A (en) Data transfer control system
JPS61131154A (en) Data transfer control system
JPH11134288A (en) Bus controller
JPH04306754A (en) Dma controller
JPS61156454A (en) Data transfer control device
JPH10133999A (en) System and method for data transfer control
JPH0934831A (en) Data transfer system for bus adaptor
JP2000298639A (en) Transmitting circuit, receiving circuit, interface circuit, system controller, input-output controller and information processor
JP2001005742A (en) Data transfer method
JPH07334453A (en) Memory access system
JPH06214947A (en) Information processor
JPH06149703A (en) Message transfer controller
JP2001175544A (en) Information communication device and information communication method
JPH0728750A (en) Interface conversion device
JPH04243459A (en) Double buffer control system
JPS6268346A (en) Line connection system for data transmission system

Legal Events

Date Code Title Description
A977 Report on retrieval

Effective date: 20050913

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20051004

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060117

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060314

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061121