JPH03156551A - Dma controller - Google Patents

Dma controller

Info

Publication number
JPH03156551A
JPH03156551A JP29481189A JP29481189A JPH03156551A JP H03156551 A JPH03156551 A JP H03156551A JP 29481189 A JP29481189 A JP 29481189A JP 29481189 A JP29481189 A JP 29481189A JP H03156551 A JPH03156551 A JP H03156551A
Authority
JP
Japan
Prior art keywords
input
register
channel
dma
control signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP29481189A
Other languages
Japanese (ja)
Inventor
Katsuhiko Yanagisawa
克彦 柳沢
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP29481189A priority Critical patent/JPH03156551A/en
Publication of JPH03156551A publication Critical patent/JPH03156551A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently utilize plural channels by allocating an input/output equipment requiring DMA transfer to the arbitrary idle channel according to a control signal to be sent out from a CPU. CONSTITUTION:A CPU 5 detects the idle channel based on the state of a status register 12 and when the necessity of DMA transfer is generated, the control signal to designate the idle channel is outputted to a DMA controller 15. The gate of the register 12 is opened/closed according to a gate control signal to be supplied from an address decoder 14. An address to designate the channel is supplied to the decoder 14 as well similarly to an address decoder 13 and according to this address, the gate control signal is supplied. When the gate control signal to be inputted from the decoder 14 to the register 12 is 'L', the contents of a control register 11 are fetched into the register 12. When an access from the CPU 5 shows reading, this gate control signal is turned to be 'H' and the gate of the register 12 is opened. Then, data latched at the register 11 are inputted to the CPU 5.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はDMAコントローラ装置に関するものであり、
特に、DMA転送を要求する磁気ディスク装置、磁気テ
ープ装置などのコンピュータ周辺記憶装置、または表示
装置などの入出力機器がコンピュータに複数台接続され
ている場合、この入出力機器に転送待ち状態が発生する
回数または待ち状態時間を減らし、効率良<DMA転送
を行うためのDMAコントローラ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a DMA controller device,
In particular, if multiple input/output devices such as computer peripheral storage devices such as magnetic disk devices and magnetic tape devices, or display devices that request DMA transfer are connected to the computer, a transfer waiting state occurs in this input/output device. The present invention relates to a DMA controller device for efficiently performing DMA transfer by reducing the number of transfers or wait state time.

(従来の技術) コンピュータのメモリおよび前記入出力機器間において
データ転送を高速で行う必要がある場合には、CPUを
介さないでDMA転送によりデータを転送することが多
い。
(Prior Art) When it is necessary to transfer data at high speed between a computer memory and the input/output device, data is often transferred by DMA transfer without going through a CPU.

第3図は、従来のDMA転送のための制御装置、つまり
DMAコントローラを有するコンピュータの構成を示す
ブロック図である。
FIG. 3 is a block diagram showing the configuration of a conventional control device for DMA transfer, that is, a computer having a DMA controller.

同図において、DMAコントローラ15は、DMA転送
を要求する複数の入出力機器20゜21.22.23と
メモリ9との間でデータをDMA転送するための制御装
置である。
In the figure, a DMA controller 15 is a control device for DMA transfer of data between the memory 9 and a plurality of input/output devices 20, 21, 22, 23 requesting DMA transfer.

前記入出力機器20〜22は、入出力制御部20a、2
1a、22aを介してDMA:lシトローラ15のDM
Aチャネル(以下、単にチャネルという)1に接続され
、入出力装置23は入出力制御部23aを介してチャネ
ル2に接続されている。この従来技術の例では、チャネ
ル3.4は空き状態となっている。
The input/output devices 20 to 22 include input/output control units 20a, 2
DMA via 1a, 22a: l Citrola 15 DM
The input/output device 23 is connected to the A channel (hereinafter simply referred to as channel) 1, and the input/output device 23 is connected to the channel 2 via the input/output control section 23a. In this prior art example, channel 3.4 is idle.

前記チャネル1〜4は、これらのうち複数のチャネルを
同時に活性化することが可能である。
A plurality of the channels 1 to 4 can be activated simultaneously.

前記DMAコントローラ15は、CPU5を接続するた
めのインターフェース6、メモリ9を制御するためのメ
モリ制御部7、チャネル1〜4の優先度制御をしたりD
MA要求の管理を行ったりするためのDMA制御部8を
有している。
The DMA controller 15 includes an interface 6 for connecting the CPU 5, a memory control unit 7 for controlling the memory 9, and priority control for channels 1 to 4.
It has a DMA control unit 8 for managing MA requests.

上記の構成による従来の装置では、DMA転送の必要が
生じた場合、CPU5からDMAコントローラ15に入
出力命令信号S1が出力され、この信号S1に従ってチ
ャネル1〜4のうち必要′なチャネルが選択される。
In the conventional device with the above configuration, when the need for DMA transfer arises, the CPU 5 outputs the input/output command signal S1 to the DMA controller 15, and the necessary channel is selected from channels 1 to 4 according to this signal S1. Ru.

また、信号S2に応答して、入出力制御部2゜a〜23
aのうち、DMA転送を必要とする入出力機S20〜2
3と接続されている入出力制御部が入出カイネーブルの
状態に設定される。
In addition, in response to the signal S2, the input/output control units 2°a to 23
Among a, input/output devices S20 to 2 that require DMA transfer
The input/output control section connected to 3 is set to the input/output enable state.

そして、入出力制御部20a〜23aがら入出力機器2
0〜23に入出力命令が転送され、これに応答して入出
力機器20〜23がらDMA要求信号が出力される。こ
のDMA要求信号はチャネル1または2を介してDMA
制御部8に人力される。DMA要求信号は、さらにDM
A制御部8がらインターフェース6を介してCPU5に
上げられる。DMA要求信号DREQを受けたCPU5
は、DMAコントローラ15にアクノリッジ信号DAC
Kを返す。
Then, the input/output control units 20a to 23a as well as the input/output devices 2
The input/output command is transferred to the input/output devices 0 to 23, and in response, a DMA request signal is output from the input/output devices 20 to 23. This DMA request signal is sent to the DMA via channel 1 or 2.
It is manually operated by the control section 8. The DMA request signal further includes DM
The data is sent from the A control unit 8 to the CPU 5 via the interface 6. CPU5 that received the DMA request signal DREQ
sends an acknowledge signal DAC to the DMA controller 15.
Return K.

このアクノリッジ信号DACKは、DMA制御部8から
チャネル1または2を介して入出力制御部20a〜23
aならびに入出力機器20〜23に転送される。アクノ
リッジ信号DACKを受取った入出力機器20〜23は
メモリ9との間でブタの転送を開始する。
This acknowledge signal DACK is sent from the DMA control unit 8 to the input/output control units 20a to 23 via channel 1 or 2.
a and the input/output devices 20 to 23. The input/output devices 20 to 23 that have received the acknowledge signal DACK start transferring data to and from the memory 9.

データの読出しおよび書込みのためのメモリ9上のアド
レスの指定と、転送データ量とはメモリ制御部7に設定
されていて、この設定データに従ってメモリ9および入
出力機器20〜23間でデータの転送が行われる。
The designation of addresses on the memory 9 for reading and writing data and the amount of data to be transferred are set in the memory control unit 7, and data is transferred between the memory 9 and the input/output devices 20 to 23 according to this setting data. will be held.

予定のデータ転送が終了すると、CPU5に対するDM
A要求信号DREQはクリアされ、前記アクノリッジ信
号DACKもクリアされる。
When the scheduled data transfer is completed, DM to CPU5 is sent.
The A request signal DREQ is cleared, and the acknowledge signal DACK is also cleared.

(発明が解決しようとする課題) 上記した従来の技術は、次のような問題点を有していた
(Problems to be Solved by the Invention) The above-described conventional technology had the following problems.

例えば、チャネル1を使用して、このチャネルlに接続
されている入出力機器22およびメモリ9間でデータ転
送が行われている時、このチャネル1に接続されている
他の入出力機器20または21のDMA要求があると、
前記入出力機器22とメモリ9との間でデータの転送が
終了するまで入出力機器20または21のDMA転送は
待ち状態となる。
For example, when channel 1 is used to transfer data between the input/output device 22 connected to channel 1 and the memory 9, other input/output devices 20 or If there are 21 DMA requests,
The DMA transfer of the input/output device 20 or 21 is in a waiting state until the data transfer between the input/output device 22 and the memory 9 is completed.

すなわち入出力機器20〜23は、予定のチャネルにハ
ードウェア的に接続されているので、他のチャネル2〜
4が空いていても入出力機器20゜21はこのチャネル
2〜4を用いてメモリ9との間でデータ転送をすること
ができず待ち状態となる。
In other words, since the input/output devices 20 to 23 are hardware-connected to the scheduled channel, they are connected to the other channels 2 to 23 in terms of hardware.
Even if channel 4 is vacant, input/output devices 20 and 21 cannot transfer data to and from memory 9 using channels 2 to 4, and are in a waiting state.

このように、従来の装置では各入出力機器が1つのチャ
ネルに対してハードウェア的に接続されていて融通がき
かないため、複数のチャネルを有しているにもかかわら
ず、これらのチャネルの使用効率が低いという問題点が
あった。
In this way, in conventional devices, each input/output device is hardware-connected to one channel, making it inflexible, so even though it has multiple channels, it is difficult to use these channels. There was a problem with low efficiency.

本発明の目的は、上記の問題点を解決し、複数のチャネ
ルを効率的に利用してコンピュータの演算速度を上げる
ことのできるDMAコントローラ装置を提供することに
ある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a DMA controller device that can solve the above problems and increase the calculation speed of a computer by efficiently using a plurality of channels.

(課泡を解決するための手段および作用)前記の問題点
を解決し、目的を達成するための本発明は、CPUから
出力されるコントロール信号に従い、DMA転送を要求
する入出力機器を空いているチャネルに割当てるチャネ
ル再配置手段を具備した点に特徴がある。
(Means and effects for solving the problems) The present invention solves the above problems and achieves the objectives by freeing input/output devices requesting DMA transfer in accordance with control signals output from the CPU. It is characterized in that it is equipped with channel relocation means for allocating channels to existing channels.

上記構成を有する本発明では、入出力機器とチャネルと
がハードウェア的に接続されているのではなく、cpt
tから送出されるコントロール信号に従い、空いている
チャネルに入出力機器を接続することができる。したが
って、チャネルが空いているにもかかわらず入出力機器
がデータの人出力を待機するということはない。
In the present invention having the above configuration, the input/output device and the channel are not connected by hardware, but by cpt
According to the control signal sent from t, input/output devices can be connected to vacant channels. Therefore, the input/output device does not wait for human output of data even though the channel is vacant.

(実施例) 以下に図面を参照して、本発明の詳細な説明する。第1
図は本発明の一実施例を示すブロック図である。同図に
おいて、第3図と同符号は同一または同等部分を示す。
(Example) The present invention will be described in detail below with reference to the drawings. 1st
The figure is a block diagram showing one embodiment of the present invention. In this figure, the same reference numerals as in FIG. 3 indicate the same or equivalent parts.

同図において、入出力機器20〜23はチャネル再配置
回路(チャネルリロケータブル回路)10を介してチャ
ネル1〜4に接続されている。
In the figure, input/output devices 20 to 23 are connected to channels 1 to 4 via a channel relocation circuit (channel relocatable circuit) 10.

チャネル再配置回路10は、CPU5から出力されるコ
ントロール信号に従い、入出力機器20〜23をチャネ
ル1〜4のうちの空いているチャネルに割当てられるよ
うに構成されている。
The channel relocation circuit 10 is configured to allocate the input/output devices 20 to 23 to an empty channel among the channels 1 to 4 according to a control signal output from the CPU 5.

前記チャネル再配置回路10の具体的な回路例を第2図
に示す。同図はチャネル1に割当てられる入出力機器を
決定する回路を示しており、チャネル2〜4に割当てら
れる入出力機器を決定する回路も、この回路と同様に構
成される。
A specific circuit example of the channel relocation circuit 10 is shown in FIG. This figure shows a circuit that determines the input/output devices assigned to channel 1, and the circuits that determine the input/output devices assigned to channels 2 to 4 are configured similarly to this circuit.

同図において、コントロールレジスタ11はラッチ回路
で構成されており、CPU5から出力されるコントロー
ル信号dO−64が、アドレスデコーダ13から供給さ
れるラッチ信号に従ってラッチされる。
In the figure, the control register 11 is composed of a latch circuit, and a control signal dO-64 outputted from the CPU 5 is latched in accordance with a latch signal supplied from the address decoder 13.

ラッチされた前記信号dO〜d4はデコーダ16に入力
され、このデコーダ16の出力はゲート20b〜23b
に供給される。デコーダ16の出力に従ってゲート20
b〜23bのいずれかが開かれ、入出力機器20〜23
のいずれかがチャネル1に割当てられる。そして、割当
てられた入出力機器とチャネル1との間でDMA要求信
号DREQおよびアクノリッジ信号DACKが交換され
る。
The latched signals dO to d4 are input to the decoder 16, and the outputs of the decoder 16 are the gates 20b to 23b.
is supplied to Gate 20 according to the output of decoder 16
b to 23b is opened, and input/output devices 20 to 23
is assigned to channel 1. Then, a DMA request signal DREQ and an acknowledge signal DACK are exchanged between the assigned input/output device and channel 1.

信号d4が“L“の場合には、すべてのゲート20b〜
23bが閉じられてチャネル1は外部の入出力機器とは
切離される。
When the signal d4 is “L”, all gates 20b to
23b is closed and channel 1 is isolated from external input/output equipment.

アドレスデコーダ13にはチャネルを指定するアドレス
が供給され、このアドレスに従って各チャネル割当て用
のコントロールレジスタ(チャネル2〜4用のコントロ
ールレジスタは図示しない)にラッチ信号が供給される
。ラッチ信号はCPU5からのアクセスが書込みの時に
出力される。
An address specifying a channel is supplied to the address decoder 13, and a latch signal is supplied to a control register for each channel assignment (control registers for channels 2 to 4 are not shown) in accordance with this address. The latch signal is output when access from the CPU 5 is for writing.

前記コントロールレジスタ11の状態、つまり、どの入
出力機器がチャネルlに割当てられているかの状態はス
テータスレジスタ12を介してCPU5が認識できる。
The state of the control register 11, that is, the state of which input/output device is assigned to channel l, can be recognized by the CPU 5 via the status register 12.

したがって、CPU5はこのステータスレジスタ12の
状態に基づいて空きチャネルを検知し、DMA転送の必
要が生じた場合には、この空きチャネルを指定するため
のコントロール信号をDMAコントローラ15に出力す
ればよい。
Therefore, the CPU 5 detects an empty channel based on the state of the status register 12, and outputs a control signal to the DMA controller 15 to designate this empty channel when DMA transfer is necessary.

ステータスレジスタ12のゲートはアドレスデコーダ1
4から供給されるゲート制御信号によって開閉される。
The gate of status register 12 is address decoder 1
It is opened and closed by the gate control signal supplied from 4.

このアドレスデコーダ14にも前記アドレスデコーダ1
3と同様に、チャネルを指定するアドレスが供給され、
このアドレスに従って各チャネル用に設けられているス
テータスレジスタ(チャネル2〜4用のステータスレジ
スタは図示しない)にゲート制御信号が供給される。
This address decoder 14 also includes the address decoder 1.
3, an address specifying the channel is supplied,
According to this address, a gate control signal is supplied to a status register provided for each channel (status registers for channels 2 to 4 are not shown).

アドレスデコーダ14からステータスレジスタ12に入
力されるゲート制御信号が“L“の時にコトロールレジ
スタ11の内容はステータスレジスタ12に取込まれる
。そしてCPU5からのアクセスが読出しの時にこのゲ
ート制御信号が“H”になってステータスレジスタ12
のゲートが開き、CPU5に対してコントロールレジス
タ11にラッチされているデータが人力される。
When the gate control signal input from the address decoder 14 to the status register 12 is "L", the contents of the control register 11 are taken into the status register 12. When the access from the CPU 5 is for reading, this gate control signal becomes "H" and the status register 12
gate is opened, and the data latched in the control register 11 is manually input to the CPU 5.

以上の説明のように、本実施例によれば、CPU5から
チャネル再配置回路10に供給されるコントロール信号
に従い、入出力機器を任意のチャネルに割当てることが
できる。
As described above, according to this embodiment, input/output devices can be assigned to arbitrary channels according to the control signal supplied from the CPU 5 to the channel relocation circuit 10.

なお、本実施例では入出力機器が4台接続されている例
を示した。本発明はこれに限定されず、入出力機器が5
台以上接続される場合には、信号dO〜d4の値に従っ
て5台以上接続されている各入出力機器を決定するよう
に前記デコーダ16の構成を変更°すれば本発明を実施
できる。
Note that this embodiment shows an example in which four input/output devices are connected. The present invention is not limited to this, and the input/output devices are five.
When more than five devices are connected, the present invention can be carried out by changing the configuration of the decoder 16 so that five or more connected input/output devices are determined according to the values of the signals dO to d4.

(発明の効果) 以上の説明から明らかなように、本発明によれば、任意
の空きチャネルにDMA転送が必要な入出力機器を割当
てることができるので、入出力機器からのデータの読出
し、および入出力機器に対するデータの格納の際の待ち
状態を減らすことができる。その結果、複数のチャネル
を効率的に利用でき、コンピュータの演算速度を向上す
ることができる。
(Effects of the Invention) As is clear from the above description, according to the present invention, it is possible to allocate an input/output device that requires DMA transfer to any vacant channel, so that reading data from the input/output device and It is possible to reduce the waiting state when storing data in input/output devices. As a result, a plurality of channels can be used efficiently and the calculation speed of the computer can be improved.

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

第1図は本発明の実施例を示すブロック図、第2図はチ
ャネル再配置回路の回路図、第3図は従来技術を示すブ
ロック図である。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a circuit diagram of a channel relocation circuit, and FIG. 3 is a block diagram showing a conventional technique.

Claims (1)

【特許請求の範囲】[Claims] (1)メモリと複数の入出力機器間のデータ転送をCP
Uを介さずに行うDMAの制御をするDMAコントロー
ラ装置において、 前記メモリと複数の入出力機器との間に配置され、かつ
互いに独立した動作が可能な複数のDMAチャネルと、 DMA転送を要求する入出力機器に前記複数のDMAチ
ャネルのうちの未使用のDMAチャネルを割当てるチャ
ネル再配置回路とを具備したことを特徴とするDMAコ
ントローラ装置。
(1) CP data transfer between memory and multiple input/output devices
A DMA controller device that controls DMA without going through a U, including a plurality of DMA channels arranged between the memory and a plurality of input/output devices and capable of operating independently of each other, and requesting DMA transfer. A DMA controller device comprising: a channel relocation circuit that allocates an unused DMA channel among the plurality of DMA channels to an input/output device.
JP29481189A 1989-11-15 1989-11-15 Dma controller Pending JPH03156551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29481189A JPH03156551A (en) 1989-11-15 1989-11-15 Dma controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29481189A JPH03156551A (en) 1989-11-15 1989-11-15 Dma controller

Publications (1)

Publication Number Publication Date
JPH03156551A true JPH03156551A (en) 1991-07-04

Family

ID=17812559

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29481189A Pending JPH03156551A (en) 1989-11-15 1989-11-15 Dma controller

Country Status (1)

Country Link
JP (1) JPH03156551A (en)

Similar Documents

Publication Publication Date Title
JPH071495B2 (en) Data processing system
JP4562107B2 (en) Direct memory access engine to support multiple virtual direct memory access channels
JPH06236344A (en) Method and apparatus for arbitration between plurality of data transfer requests
US5416916A (en) Structure for enabling direct memory-to-memory transfer with a fly-by DMA unit
US5408612A (en) Microprocessor system for selectively accessing a processor internal register when the processor has control of the bus and partial address identifying the register
JPH03156551A (en) Dma controller
EP1231540A2 (en) Direct memory access controller
JP2727514B2 (en) Transfer destination ID designating circuit
JPS6226563A (en) Bus request control circuit
JP2826780B2 (en) Data transfer method
JPS60253083A (en) Storage device controlling system
JPH05158859A (en) Information processor
JPH05324534A (en) Dma transfer system
JPS6162965A (en) Device switching apparatus
JPS61206066A (en) System for setting memory address
JPS63234316A (en) Exclusive control system for table storage
JPH0229835A (en) Memory element
JPH04346150A (en) Data transfer processing system
JPH05173931A (en) Data transfer system
JPH03185545A (en) I/o control adaptor
JPH01205359A (en) System for controlling input/output device
JPS61210460A (en) Data buffer priority control system
JPH0460257B2 (en)
JPH04116750A (en) Dma memory transfer device
JPS62293365A (en) Data transfer system