JPH05324496A - Dma controller - Google Patents

Dma controller

Info

Publication number
JPH05324496A
JPH05324496A JP4127614A JP12761492A JPH05324496A JP H05324496 A JPH05324496 A JP H05324496A JP 4127614 A JP4127614 A JP 4127614A JP 12761492 A JP12761492 A JP 12761492A JP H05324496 A JPH05324496 A JP H05324496A
Authority
JP
Japan
Prior art keywords
dma
input
time
monitoring
control
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
JP4127614A
Other languages
Japanese (ja)
Inventor
Noboru Ita
昇 板
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP4127614A priority Critical patent/JPH05324496A/en
Publication of JPH05324496A publication Critical patent/JPH05324496A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform time monitor and DMA interruption control at high speed with a hardware by setting the monitor time of DMA control individually for input/output devices concerning the DMA controller to perform the DMA control for the plural input/output devices. CONSTITUTION:This controller is provided with a DMA control part 12 to directly control and monitor the transfer of data, and the DMA control part 12 is provided with a monitor time setting part 14 to set the monitor time for each input/output device for interrupting the direct data transfer control to the input/output devices when there is no response from the input/output devices 21-23, request monitor and control part 15 to detect the presence/absence of the response from the input/output devices 21-23 and to output a DMA interruption request signal for interrupting the direct data transfer control to the input/output devices when there is no response from the input/output devices 21-23 within the monitor time, and DMA interruption control part 13 to interrupt the direct data transfer control by inputting the DMA interruption request signal from the request monitor and control part 15.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は,複数の入出力装置とメ
インメモリの間で直接データ転送制御するDMA制御装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA controller for direct data transfer control between a plurality of input / output devices and a main memory.

【0002】1つのDMA制御装置により複数の入出力
装置とメインメモリの間で直接データ転送(以後,DM
Aと称する)を行う場合,対象としている入出力装置の
応答を監視し,あらかじめ定めた監視時間のうちに入出
力装置からの応答がない時は,その入出力装置のDMA
制御を中断し,DMA制御を他の入出力装置に譲るよう
にしている。
Direct data transfer between a plurality of input / output devices and a main memory by one DMA controller (hereinafter referred to as DM
(Referred to as A), the response of the target I / O device is monitored, and if there is no response from the I / O device within the predetermined monitoring time, the DMA of the I / O device is monitored.
The control is interrupted and the DMA control is transferred to another I / O device.

【0003】このようなDMA制御ではCPUタイマが
DMA制御の時間監視に専有されている間CPUタイマ
は他の処理に使用することができないので,監視に専有
される時間をできるだけ少なくする必要がある。
In such a DMA control, since the CPU timer cannot be used for other processing while the CPU timer is dedicated to the time monitoring of the DMA control, it is necessary to minimize the time dedicated to the monitoring. ..

【0004】[0004]

【従来の技術】従来,1つのDMA制御装置で複数の入
出力装置をDMA制御する場合の時間監視はファームウ
ェアにより行われていた。その場合,時間間隔は入出力
装置によって異なるので,設定する監視時間も入出力装
置毎に定めれば良いのであるが,従来のDMA制御装置
では一律に監視時間を設定していた。例えば,磁気ディ
スク装置の場合,トラックを一周する時間に余裕を見込
んで16msを設定しているのに対し,半導体ディスク
の場合には平均転送速度に余裕を見込んで1msで十分
である。しかし,実際には,ファームウェアの動作が遅
いので,1msのような短時間の監視時間設定した場合
にはCPUの時間監視に専有される時間が多くなりす
ぎ,短時間の監視時間を設定することはできなかった。
そのため,従来は異なる種類の複数の入出力装置をDM
A制御する場合の監視時間は一律に大きい監視時間(例
えば16ms)を設定するようにしていた。 図6は従
来のDMA制御装置の構成を示す。
2. Description of the Related Art Conventionally, time monitoring has been performed by firmware when performing DMA control of a plurality of input / output devices by one DMA control device. In this case, since the time interval differs depending on the input / output device, the set monitoring time may be set for each input / output device, but the conventional DMA control device set the monitoring time uniformly. For example, in the case of a magnetic disk device, 16 ms is set to allow for a time to make a round of a track, whereas in the case of a semiconductor disk, 1 ms is sufficient to allow for an average transfer rate. However, since the operation of the firmware is slow in practice, if a short monitoring time such as 1 ms is set, the time dedicated to CPU time monitoring becomes too long, and a short monitoring time should be set. I couldn't.
Therefore, in the past, multiple I / O devices of different types were
The monitoring time for A control is set to a uniformly large monitoring time (for example, 16 ms). FIG. 6 shows the configuration of a conventional DMA controller.

【0005】図において,100はCPUであって,本
体側のCPUである。101はDMA制御装置であっ
て,複数の入出力装置(I/O)(120,121,1
22)とメインメモリ103の間で直接データ転送(D
MA)を行うものである。102はシステムバス,10
3はメインメモリ,104はファームウェアにより構成
される時間監視手段であって,CPUタイマを使用して
DMA転送における入出力装置の時間監視を行うもので
ある。
In the figure, 100 is a CPU, which is a CPU on the main body side. Reference numeral 101 denotes a DMA control device, which includes a plurality of input / output devices (I / O) (120, 121, 1).
22) and the main memory 103 to directly transfer data (D
MA). 102 is a system bus, 10
Reference numeral 3 is a main memory, and 104 is a time monitoring means composed of firmware, which uses a CPU timer to monitor the time of the input / output device in the DMA transfer.

【0006】110はDMA制御装置101におけるM
PU,111はアダプタ制御レジスタであって,制御コ
マンドの入力および解除等を行うものである。112は
DMA制御部であって,DMA制御を行うものである。
113はDMA中断制御部であって,時間監視手段10
4からのタイムアップ信号に基づいて対象とする入出力
装置のDMA制御を中断するものである。114はDM
A制御装置におけるRAM/ROMである。115はI
/O制御部1であって,入出力装置1(120)との入
出力制御を行うものである。116はI/O制御部2で
あって,入出力装置2(121)との入出力制御を行う
ものである。117はI/O制御部nであって,入出力
装置n(122)との入出力制御を行うものである。1
18はDMA制御部における内部バスである。120は
入出力装置1,121は入出力装置2,122は入出力
装置nである。
Reference numeral 110 is an M in the DMA control device 101.
PU and 111 are adapter control registers for inputting and releasing control commands. Reference numeral 112 denotes a DMA control unit, which performs DMA control.
Reference numeral 113 denotes a DMA interruption control unit, which is a time monitoring means 10
Based on the time-up signal from 4, the DMA control of the target input / output device is interrupted. 114 is DM
RAM / ROM in the A control device. 115 is I
The I / O control unit 1 controls input / output with the input / output device 1 (120). Reference numeral 116 denotes an I / O control unit 2, which controls input / output with the input / output device 2 (121). An I / O controller n 117 controls the input / output with the input / output device n (122). 1
Reference numeral 18 is an internal bus in the DMA control unit. Reference numeral 120 is an input / output device 1, 121 is an input / output device 2, and 122 is an input / output device n.

【0007】図の構成におけるDMAの時間監視につい
て説明する。DMAが起動されると時間監視手段104
は入出力装置からの応答の有無を検出し,タイマにより
データ転送要求があってから次のデータ転送要求がある
までの時間をカウントする。そして監視時間を超えてI
/Oからデータ転送要求がないと,時間監視手段104
は入出力装置に対するDMA転送中断をDMA制御装置
101に指示する。DMA中断制御部113は対象とし
ている入出力装置のDMA制御の中断処理を行う。
The time monitoring of the DMA in the configuration shown in the figure will be described. When the DMA is activated, the time monitoring means 104
Detects whether there is a response from the I / O device and counts the time from the data transfer request until the next data transfer request by the timer. And beyond the monitoring time I
If there is no data transfer request from the I / O, the time monitoring means 104
Instructs the DMA controller 101 to suspend the DMA transfer to the input / output device. The DMA interruption control unit 113 performs the interruption processing of the DMA control of the target input / output device.

【0008】MPU110は次の入出力装置に対するD
MA起動を行い,DMA制御部112はDMA制御を開
始する。図7は従来のDMA転送における時間監視方法
を示す。
The MPU 110 is the D for the next input / output device.
The MA is activated, and the DMA control unit 112 starts the DMA control. FIG. 7 shows a time monitoring method in the conventional DMA transfer.

【0009】入出力装置1にDMA起動がされると時間
監視手段は外部タイマにより時間監視をする。そして入
出力装置1からのデータ転送要求によりデータ転送単位
(1バイトもしくは1ワード)のデータが転送される。
図はデータ転送単位のデータ転送が2回行われた以後,
データ転送要求がなされなかったことを示す。監視時間
が経過してもデータ転送要求がなかったので,時間監視
手段104はDMA制御装置101にDMA中断指示を
出す。その結果,DMA中断制御部113はDMA中断
処理を行い,MPU110は入出力装置2のDMA起動
を行う。
When the DMA is activated in the input / output device 1, the time monitoring means monitors the time with an external timer. Then, in response to a data transfer request from the input / output device 1, data in a data transfer unit (1 byte or 1 word) is transferred.
The figure shows that after the data transfer of the data transfer unit is performed twice,
Indicates that no data transfer request was made. Since there is no data transfer request even after the monitoring time has elapsed, the time monitoring means 104 issues a DMA interruption instruction to the DMA control device 101. As a result, the DMA interruption control unit 113 executes the DMA interruption process, and the MPU 110 starts the DMA of the input / output device 2.

【0010】[0010]

【発明が解決しようとする課題】従来のDMA制御にお
ける時間監視は,データ転送速度の遅い入出力装置に合
わせて各入出力装置に共通に大きい監視時間を設定し,
ファームウェアにより行っていた。そのため,時間監視
のためのCPUのタイマ専有時間が大きくなりCPUの
他の処理を妨げていた。
In the conventional time monitoring in the DMA control, a large monitoring time is set commonly to each input / output device according to the input / output device having a slow data transfer rate.
It was done by firmware. Therefore, the time occupied by the timer of the CPU for time monitoring becomes large, which hinders other processing of the CPU.

【0011】本発明は,能率的に時間監視とDMA制御
を行うことのできるDMA制御装置を提供することを目
的とする。
An object of the present invention is to provide a DMA control device capable of efficiently performing time monitoring and DMA control.

【0012】[0012]

【課題を解決するための手段】DMAの時間監視および
DMA中断制御をハードウェアにより高速に行うように
し,入出力装置に個別に監視時間を設定し能率的にDM
A制御を行えるようにした。
[Means for Solving the Problems] Time monitoring of DMA and DMA interruption control are performed at high speed by hardware, and a monitoring time is individually set for an input / output device to efficiently perform DM.
A control can be performed.

【0013】図1は本発明の基本構成を示す。図におい
て,1は本体側のCPUである。2はDMA制御装置で
あって,複数の入出力装置(I/O)(21,22,2
3)とメインメモリ3の間でDMA転送を行うものであ
る。3はメインメモリ,4はシステムバスである。
FIG. 1 shows the basic configuration of the present invention. In the figure, 1 is a CPU on the main body side. Reference numeral 2 denotes a DMA controller, which is a plurality of input / output devices (I / O) (21, 22, 2).
3) and the main memory 3 are DMA-transferred. Reference numeral 3 is a main memory, and 4 is a system bus.

【0014】DMA制御装置2において,10はMP
U,11はアダプタ制御レジスタであって,制御コマン
ドの入力および解除等を行うものである。12はDMA
制御部であって,DMA制御を行うとともに,DMAの
時間監視を行うものである。14は監視時間設定部であ
って,入出力装置(21,22,23)毎の監視時間を
設定するものである。15は要求監視制御部であって,
入出力装置(21,22,23)からのデータ転送要求
の有無を判定するものである。16はDMA制御装置に
おけるRAM/ROMである。17はI/O制御部1で
あって,入出力装置1(21)との入出力制御を行うも
のである。18はI/O制御部2であって,入出力装置
2(22)との入出力制御を行うものである。19はI
/O制御部nであって,入出力装置n(23)との入出
力制御を行うものである。20はDMA制御装置におけ
る内部バスである。
In the DMA controller 2, 10 is an MP
U and 11 are adapter control registers for inputting and releasing control commands. 12 is DMA
The control unit is for performing DMA control and monitoring DMA time. A monitoring time setting unit 14 sets a monitoring time for each input / output device (21, 22, 23). Reference numeral 15 is a request monitoring control unit,
The presence / absence of a data transfer request from the input / output device (21, 22, 23) is determined. Reference numeral 16 is a RAM / ROM in the DMA control device. An I / O control unit 17 controls input / output with the input / output device 1 (21). Reference numeral 18 denotes an I / O control unit 2, which controls input / output with the input / output device 2 (22). 19 is I
The / O control unit n controls input / output with the input / output device n (23). 20 is an internal bus in the DMA controller.

【0015】21は入出力装置1,22は入出力装置
2,23は入出力装置nである。
Reference numeral 21 is an input / output device 1, 22 is an input / output device 2, and 23 is an input / output device n.

【0016】[0016]

【作用】図2により図1の基本構成の動作における時間
監視の動作を説明する。図示のフロー番号(括弧番号)
に従って説明する(必要に応じて図1を参照する)。
The operation of time monitoring in the operation of the basic configuration of FIG. 1 will be described with reference to FIG. Flow number shown in parentheses
(Refer to FIG. 1 as needed).

【0017】(1) CPU1は以下の初期設定をDMA
制御装置2に指示する。 接続I/O(21,22,23)の種類(磁気ディ
スク,半導体ディスク等の種類)を指示する。
(1) The CPU 1 executes the following initial setting by DMA
Instruct the control device 2. The type of connection I / O (21, 22, 23) (type of magnetic disk, semiconductor disk, etc.) is designated.

【0018】 接続I/O(21,22,23)の平
均データ転送速度を指示する。 (2) DMA制御装置は最大待ち時間(監視時間)を設
定する。最大待ち時間は,例えば,接続I/Oの平均デ
ータ転送速度からI/Oのデータ転送要求時間間隔を算
出し,算出したデータ転送要求時間間隔に余裕を見込ん
だ係数を掛けた値とする。余裕を見込む係数としては,
例えば,DMA制御部12の内部バッファのデータの受
け渡し時間を考慮して経験的に定められた値16とす
る。磁気ディスクに対しては,平均データ転送速度が4
MB/Sであるとすると,データ転送要求間隔として2
50ns(1/4M)を算出し,250ns×16=4
000nsを設定する。同様に半導体ディスクに対して
は,平均データ転送速度を10MB/Sとするとデータ
転送要求間隔100nsを算出し,100×16=16
00nsを設定する。
The average data transfer rate of the connection I / O (21, 22, 23) is designated. (2) The DMA controller sets the maximum waiting time (monitoring time). The maximum waiting time is, for example, a value obtained by calculating the data transfer request time interval of the I / O from the average data transfer speed of the connection I / O, and multiplying the calculated data transfer request time interval by a coefficient with a margin. As a coefficient to allow for margin,
For example, the value 16 is empirically determined in consideration of the data transfer time of the internal buffer of the DMA control unit 12. The average data transfer rate for magnetic disks is 4
If it is MB / S, the data transfer request interval is 2
50 ns (1/4 M) is calculated and 250 ns × 16 = 4
Set 000ns. Similarly, for a semiconductor disk, if the average data transfer rate is 10 MB / S, a data transfer request interval of 100 ns is calculated, and 100 × 16 = 16
Set 00 ns.

【0019】あるいは,磁気ディスクに対しては,従来
通り16msとし,半導体ディスクに対しては1msを
最大待ち時間として設定してもよい。但し,上記の最大
待ち時間の決定方法は例であって,これに限定されるも
のではない。
Alternatively, the maximum waiting time may be set to 16 ms for a magnetic disk and 1 ms for a semiconductor disk as in the conventional case. However, the above method of determining the maximum waiting time is an example, and the present invention is not limited to this.

【0020】(3) CPU1はI/O(21,22,2
3)のリードもしくはライトをDMA制御装置2に指示
する。 (4) DMA制御装置2はCPU1からリードもくし
はライトの指示を受けると,最大待ち時間を監視時間設
定部(監視時間設定レジスタ)14に設定する。
(3) The CPU 1 uses the I / O (21, 22, 2
The DMA controller 2 is instructed to read or write 3). (4) When the DMA controller 2 receives a read or write instruction from the CPU 1, it sets the maximum waiting time in the monitoring time setting unit (monitoring time setting register) 14.

【0021】 次に,MPU10は,DMA制御部1
2によるDMAを起動する。 (5) DMA制御部12は次の動作を行う。 要求監視制御部15はI/O(21,22,23)
からのデータ転送要求時間間隔をカウントし,監視時間
設定部14にセットされている最大待ち時間(監視時
間)内にデータ転送要求がない場合は,I/O(21,
22,23)からのデータ要求を抑止し,DMA中断制
御部13にDMA中断要求をする。
Next, the MPU 10 includes the DMA control unit 1
2. Start DMA by 2. (5) The DMA control unit 12 performs the following operation. The request monitoring controller 15 uses I / O (21, 22, 23)
Counting the data transfer request time interval from the I / O (21, 21) when there is no data transfer request within the maximum waiting time (monitoring time) set in the monitoring time setting unit 14.
(22, 23) to suppress the data request and issue a DMA interrupt request to the DMA interrupt controller 13.

【0022】 DMA中断制御部13は要求監視制御
部15からのDMA中断要求に対して,次の動作を実行
する。 (a) DMAバッファ(図示せず)に保持されているデ
ータにダミーデータを付加し,データ転送要求信号を強
制的に発生させ,メインメモリ3のバウダリングに合わ
せてデータを強制転送する。
The DMA suspension control unit 13 executes the following operation in response to the DMA suspension request from the request monitoring control unit 15. (a) Dummy data is added to the data held in the DMA buffer (not shown), the data transfer request signal is forcibly generated, and the data is forcibly transferred in accordance with the bowing of the main memory 3.

【0023】(b) DMA制御部12はDMAを強制的
に終了させた後に,MPU10に強制DMA終了割り込
みを通知する。 (6) MPU10は,割り込みを受け付けると,次のデ
ータ転送の必要のあるI/O(21,22,23)に対
してDMA制御を移行する。
(B) The DMA control unit 12 notifies the MPU 10 of a forced DMA end interrupt after forcibly ending the DMA. (6) Upon accepting the interrupt, the MPU 10 transfers the DMA control to the I / O (21, 22, 23) that needs the next data transfer.

【0024】図3は本発明と従来の時間監視の動作時間
の比較を示す。(a)は従来の時間監視である(図7に同
じであるので説明は省略する)。 (b)は本発明の時間監
視を示す。 (a)と (b)とで時間スケールは同じである。
FIG. 3 shows a comparison of operating time between the present invention and conventional time monitoring. (a) is the conventional time monitoring (the description is omitted because it is the same as FIG. 7). (b) shows the time monitoring of the present invention. The time scales of (a) and (b) are the same.

【0025】(b)の説明をする(必要に応じて図1を参
照す)。入出力装置1に対するDMA起動により,要求
監視制御部15の時間監視が開始される。そして,デー
タ転送要求,の後,監視時間設定部(監視時間設定
レジスタ)14に設定された時間が経過しても入出力装
置1からデータ転送要求がないので,要求監視制御部1
5はDMA中断制御部13に中断処理を依頼する。DM
A中断制御部13にDMAの中断処理を行う。そして,
入出力装置2に対してDMA起動が開始される。
The description of (b) will be given (see FIG. 1 as necessary). The DMA monitoring of the input / output device 1 starts the time monitoring of the request monitoring controller 15. After the data transfer request, even if the time set in the monitoring time setting unit (monitoring time setting register) 14 elapses, there is no data transfer request from the input / output device 1, so the request monitoring control unit 1
Reference numeral 5 requests the DMA interruption control unit 13 for interruption processing. DM
The A interruption control unit 13 performs the DMA interruption processing. And
DMA activation is started for the input / output device 2.

【0026】図 (a)と比較して分かるように,本発明の
時間監視はデータ要求なしによるタイマーの専有時間が
短く,DMAを中断して,次の入出力装置のDMAを起
動するまでの時間が大幅に短縮される。
As can be seen from comparison with FIG. 7A, the time monitoring of the present invention is short in the time occupied by the timer without a data request, and the DMA is interrupted until the DMA of the next I / O device is activated. The time is greatly reduced.

【0027】図4は本発明の時間監視部と要求監視部の
実施例を示す。図において,30は監視時間設定部であ
って,監視時間設定レジスタよりなるものである。31
は要求監視部である。32は時間監視カウンタ,33は
ゲートAであってオア回路よりなるもの,34はゲート
Cであって,アンド回路よりなるものである。35はデ
ータ要求タイムアウトフリップフロップであって,DM
A中断制御部にDMA中断要求信号(IO REQ T
IMEOUT)を出力するものである。36はDMA開
始フリップフロップ(DMA START FF)であ
る。37はゲートBであって,アンド回路よりなるもの
である。
FIG. 4 shows an embodiment of the time monitoring unit and the request monitoring unit of the present invention. In the figure, reference numeral 30 is a monitoring time setting unit, which comprises a monitoring time setting register. 31
Is a request monitoring unit. Reference numeral 32 is a time monitoring counter, 33 is a gate A which is composed of an OR circuit, and 34 is a gate C which is composed of an AND circuit. 35 is a data request timeout flip-flop, which is DM
A interrupt request signal (IO REQ T
IMEOUT) is output. 36 is a DMA start flip-flop (DMA START FF). 37 is a gate B, which is composed of an AND circuit.

【0028】図における信号の意は次の通りである。 +DMATIMER SET : MPUより内部バス
を通して監視時間設定部(レジスタ)30をセットする
信号。
Signals in the figure have the following meanings. + DMATIMER SET: A signal for setting the monitoring time setting unit (register) 30 through the internal bus from the MPU.

【0029】+DMA START IN : DMA
を起動するためのスタート信号。 −DMA START : 時間監視カウンタ3
2の動作を開始させる信号である。
+ DMA START IN: DMA
Start signal for activating. -DMA START: Time monitoring counter 3
2 is a signal for starting the operation.

【0030】+DMA START : 時間監
視カウンタ32をリセットする(カウト値を0に戻す信
号。 −LOAD INIT : DMA起動時,時間
監視カウンタ32に監視時間設定部30に設定されてい
る値をロードするための信号である。 +IO REQ : I/Oからのデー
タ転送要求信号。 −TIME UP : I/OからのIO
REQが監視時間設定値までなかった場合に出力され
るタイムアップ信号である。 −CCLR : MPUよりDMA
制御部をリセットするための制御信号。 +IO REQ TIMEOUT: 時間監視タイムア
ップ信号(−TIMEUP)により出力され,DMA中
断制御部に送出される信号である。 +IO ACK(図5参照) : IO REQに対
応する信号である。
+ DMA START: resets the time monitoring counter 32 (a signal that resets the count value to 0.) -LOAD INIT: loads the value set in the monitoring time setting unit 30 into the time monitoring counter 32 at the time of starting the DMA. + IO REQ: Data transfer request signal from I / O -TIME UP: IO from I / O
It is a time-up signal output when REQ does not reach the set value for the monitoring time. -CCLR: DMA from MPU
Control signal for resetting the control. + IO REQ TIMEOUT: This signal is output by the time monitoring time-up signal (-TIMEUP) and is sent to the DMA interruption control unit. + IO ACK (see FIG. 5): This is a signal corresponding to IO REQ.

【0031】図5により図4の時間監視部と要求監視制
御部の動作を説明する。MPUより監視時間設定部30
に監視時間のセット信号(DMATIMERSET)が
入力され,監視時間(最大待ち時間)がセットされる。
MPUよりDMA起動信号(+DMA START I
N)がDMA開始フリップフロップ(DMA STAR
T FF)36に入力される。その結果,DMA開始フ
リップフロップ(DMA START FF)36の出
力がオンとなる(出力Qから値1の+DMASTART
が出力される,Qバーから値0の−DMA START
が出力される)。
The operations of the time monitoring unit and the request monitoring control unit shown in FIG. 4 will be described with reference to FIG. Monitoring time setting unit 30 from MPU
A monitoring time set signal (DMATIMERSET) is input to and the monitoring time (maximum waiting time) is set.
DMA start signal from MPU (+ DMA START I
N) is a DMA start flip-flop (DMA STAR
T FF) 36. As a result, the output of the DMA start flip-flop (DMA START FF) 36 is turned on (the output Q is + DMASTART having a value of 1).
Is output, the value 0 from the Q bar is -DMA START.
Is output).

【0032】−DMA STARTは時間監視カウンタ
32に入力され,時間監視カウンタ32は動作を開始
し,監視時間設定レジスタ30の監視時間を取り込んで
設定する。
-DMA START is input to the time monitoring counter 32, the time monitoring counter 32 starts its operation, and the monitoring time of the monitoring time setting register 30 is fetched and set.

【0033】+DMA START INとDMA開始
フリップフロップ36から出力される−DMA STA
RTがゲートB(37)に入力され,ゲートBから−L
OAD INITIALが出力される。−LOAD I
NITはゲートA33を介して時間監視カウンタ32に
入力され,時間監視カウンタ32をリセットする(カウ
ンタの値を0に戻してカウントする)。
+ DMA START IN and -DMA STA output from the DMA start flip-flop 36
RT is input to the gate B (37), and -L from the gate B
OAD INITIAL is output. -LOAD I
The NIT is input to the time monitoring counter 32 via the gate A33 and resets the time monitoring counter 32 (counts the value of the counter returned to 0).

【0034】データ要求(IO REQ)があった場
合,IO REQとDMA開始フリップフロップ36か
ら出力される+DMA STARTがゲートC34に入
力され,ゲートA33を介して時間監視カウンタに入力
され,時間監視カウンタ32をリセットする。
When there is a data request (IO REQ), IO REQ and + DMA START output from the DMA start flip-flop 36 are input to the gate C34 and the time monitoring counter via the gate A33. 32 is reset.

【0035】データ転送要求信号(IO REQ)がな
く,時間監視カウンタ32がタイムアップした場合に
は,時間監視カウンタ32はタイムアップ信号(TIM
E UP)を出力する。TIME UPはデータ要求タ
イムアウトフリップフロップ35のクロックとして入力
され,データ要求タイムアウトフリップフロップ35か
ら中断制御部(図示せず)にDMA中断制御を依頼する
信号(+IO REQTIME OUT)が出力され
る。
When there is no data transfer request signal (IO REQ) and the time monitoring counter 32 times up, the time monitoring counter 32 outputs the time up signal (TIM).
E UP) is output. TIME UP is input as a clock of the data request time-out flip-flop 35, and the data request time-out flip-flop 35 outputs a signal (+ IO REQTIME OUT) for requesting DMA interrupt control to the interrupt controller (not shown).

【0036】+IO REQ TIME OUTはDM
A中断制御部に入力され,中断制御部はDMA制御部の
バッファに残されているデータにダミーデータを付加
し,メインメモリに強制転送する。
+ IO REQ TIME OUT is DM
The data is input to the A interruption control unit, and the interruption control unit adds dummy data to the data remaining in the buffer of the DMA control unit and forcibly transfers it to the main memory.

【0037】[0037]

【発明の効果】本発明によれば,DMAの中断制御が高
速化され,入出力装置に個別の監視時間を設定して時間
監視ができるので,DMA制御を能率的に行うことがで
きる。また,時間監視のためにCPUタイマーが専有さ
れることがないので,システム全体の処理が効率化され
る。
According to the present invention, the DMA interruption control is speeded up, and the time can be monitored by setting the individual monitoring time in the input / output device, so that the DMA control can be efficiently performed. Moreover, since the CPU timer is not exclusively used for time monitoring, the processing of the entire system is made efficient.

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

【図1】本発明の基本構成を示す図である。FIG. 1 is a diagram showing a basic configuration of the present invention.

【図2】本発明の基本構成の時間監視の動作を示す図で
ある。
FIG. 2 is a diagram showing a time monitoring operation of the basic configuration of the present invention.

【図3】本発明と従来の時間監視の動作時間の比較を示
す図である。
FIG. 3 is a diagram showing a comparison of operating times of the present invention and conventional time monitoring.

【図4】本発明の時間監視部と要求監視部の実施例を示
す図である。
FIG. 4 is a diagram showing an embodiment of a time monitoring unit and a request monitoring unit of the present invention.

【図5】本発明の時間監視部と要求監視部の動作説明図
である。
FIG. 5 is an operation explanatory diagram of a time monitoring unit and a request monitoring unit of the present invention.

【図6】従来のDMA制御装置の構成を示す図である。FIG. 6 is a diagram showing a configuration of a conventional DMA control device.

【図7】従来のDMA転送における時間監視方法を示す
図である。
FIG. 7 is a diagram showing a time monitoring method in a conventional DMA transfer.

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

1 :CPU 2 :DMA制御装置 3 :メインメモリ 4 :システムバス 10:MPU 11:アダプタ制御レジスタ 12:DMA制御部 13:DMA中断制御部 14:監視時間設定部 15:要求監視制御部 16:RAM/ROM 17:I/O制御部1 18:I/O制御部2 19:I/O制御部n 21:入出力装置1 22:入出力装置2 23:入出力装置n 1: CPU 2: DMA control device 3: Main memory 4: System bus 10: MPU 11: Adapter control register 12: DMA control unit 13: DMA interruption control unit 14: Monitoring time setting unit 15: Request monitoring control unit 16: RAM / ROM 17: I / O control unit 1 18: I / O control unit 2 19: I / O control unit n 21: I / O device 1 22: I / O device 2 23: I / O device n

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 メインメモリ(3) と入出力装置(21,22,
23) との間で直接データ転送を行うDMA制御装置(2)
において, 直接データ転送制御および監視を行うDMA制御部(12)
を備え, DAM制御部(12)は,入出力装置からの応答が無い場合
にその入出力装置に対する直接データ転送制御を中断す
るための監視時間を入出力制御装置毎に設定される監視
時間設定部(14)と,入出力装置からの応答の有無を検出
し,監視時間設定部(14)に設定された監視時間内に入出
力装置から応答がない場合に,その入出力装置に対する
直接データ転送制御を中断するためのDMA中断要求信
号を出力する要求監視制御部(15)と,要求監視制御部(1
5)からのDMA中断要求信号を入力し,直接データ転送
制御の中断処理をするDMA中断制御部(13)とを備え, 入出力装置毎に設定された監視時間に従って,直接デー
タ転送を監視する機能を備えたことを特徴とするDMA
制御装置。
1. A main memory (3) and an input / output device (21, 22,
23) DMA controller for direct data transfer with (2)
DMA control unit for direct data transfer control and monitoring in (12)
The DAM control unit (12) has a monitoring time setting for each input / output control device that sets a monitoring time for interrupting direct data transfer control for the input / output device when there is no response from the input / output device. Direct data for the I / O device is detected if there is no response from the I / O device and the I / O device, and if there is no response from the I / O device within the monitoring time set in the monitoring time setting unit (14). A request monitoring control unit (15) that outputs a DMA interrupt request signal for interrupting transfer control, and a request monitoring control unit (1
5) The DMA interruption request signal from 5) is input, and the DMA interruption control unit (13) for interrupting the direct data transfer control is provided, and the direct data transfer is monitored according to the monitoring time set for each I / O device. DMA characterized by having a function
Control device.
【請求項2】 請求項1において,直接データ転送制御
を中断する場合, DMA中断制御部(13)はDMA制御装置(2) に残されて
いるデータを定められたデータ長にするダミーデータを
付加し,メインメモリ(3) に強制的に転送することを特
徴とするDMA制御装置。
2. The method according to claim 1, wherein when the direct data transfer control is suspended, the DMA suspension controller (13) converts dummy data left in the DMA controller (2) into dummy data having a predetermined data length. A DMA controller characterized by being added and forcibly transferred to the main memory (3).
JP4127614A 1992-05-20 1992-05-20 Dma controller Pending JPH05324496A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4127614A JPH05324496A (en) 1992-05-20 1992-05-20 Dma controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4127614A JPH05324496A (en) 1992-05-20 1992-05-20 Dma controller

Publications (1)

Publication Number Publication Date
JPH05324496A true JPH05324496A (en) 1993-12-07

Family

ID=14964451

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4127614A Pending JPH05324496A (en) 1992-05-20 1992-05-20 Dma controller

Country Status (1)

Country Link
JP (1) JPH05324496A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012198605A (en) * 2011-03-18 2012-10-18 Yokogawa Electric Corp Data transfer device and field equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012198605A (en) * 2011-03-18 2012-10-18 Yokogawa Electric Corp Data transfer device and field equipment

Similar Documents

Publication Publication Date Title
JP3055917B2 (en) Data transfer control device
JP3621497B2 (en) Computer system and clock stop signal control method in the same system
JPH05324496A (en) Dma controller
JPH09223102A (en) Direct memory access controller
EP0803130B1 (en) Processor that indicates system bus ownership in an upgradable multiprocessor computer system
JP3266184B2 (en) I / O control method and device
JP2765267B2 (en) Direct memory access transfer controller
JP3497478B2 (en) DMA transfer device and data transfer system
JP2569694B2 (en) Disk controller
JPH06161933A (en) Common bus input/output control system
JPS616755A (en) Data transfer system
JPS6269349A (en) Input and output interface
JPS60263395A (en) Microprocessor
JPH0145657B2 (en)
JP2842639B2 (en) Data transfer method
JPH0561694A (en) Program stall generation detecting system
JP2560834B2 (en) Channel device
JP2002196892A (en) Method for interrupting data destruction in floppy (registered tradmark) disk controller
JPH1196019A (en) Method for controlling interruption
JPH03224048A (en) Informing method for interruption of transfer
JPS6340955A (en) Direct memory access controller
JPH02150942A (en) Bus abnormality detecting circuit
JPH0535460B2 (en)
JPS63245755A (en) Input/output device controller
JPS62152056A (en) Information processor