JPH04160457A - Dma controller - Google Patents

Dma controller

Info

Publication number
JPH04160457A
JPH04160457A JP28653290A JP28653290A JPH04160457A JP H04160457 A JPH04160457 A JP H04160457A JP 28653290 A JP28653290 A JP 28653290A JP 28653290 A JP28653290 A JP 28653290A JP H04160457 A JPH04160457 A JP H04160457A
Authority
JP
Japan
Prior art keywords
control
transfer
channel
register
control information
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
JP28653290A
Other languages
Japanese (ja)
Inventor
Masaaki Arioka
有岡 雅章
Shoichi Kitagami
北上 尚一
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP28653290A priority Critical patent/JPH04160457A/en
Publication of JPH04160457A publication Critical patent/JPH04160457A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To decrease the number of elements and to facilitate the incorporation of a microcomputer by providing one set of control registers regardless of the number of channels. CONSTITUTION:An entirety control part 2 saves the contents of a control register part 9 on a memory in the case of channel transition, and generates and sends control information on the channel to a data control part 4. The data control part 4 is controlled to write the contents of the control register 9 in a memory area indicated by a control information address register part and reads contents whose transfer is to be started next out to the control register part 9. Then the entirety control part 2 generates a control signal to be sent to the data control part 4 with this information and performs DMA transfer with an external device through an external bus 7.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は複数の転送チャネルを備えたDMAコントロ
ーラに関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a DMA controller with a plurality of transfer channels.

〔従来の技術〕[Conventional technology]

従来のDMAコントローラのブロック図ヲ第4図に示す
。図では4つの転送チャネルを持つDMAコントローラ
の場合である。図に於いて、(1)は転送要求信号端子
(6:に入力された外部デバイスからの転送要求を調停
し、全体制御部(2)に転送開始要求を送る転送要求制
御部、(2)は転送要求制御部(1)よシ転送開始要求
を受けると制御レジスタ部(8)より制御情報を読みデ
ータ制御部(4)に転送を実行させる制御信号を生成す
る全体制御部、(8)は各転送チャネルの転送方法、転
送制御、チャネルの状態等に関する制御情報を保持する
制御レジスタ部、(4)は全体制御部(2)により送ら
れた制御信号にょシ制御てれ外部デバイスとデータ、ア
ドレス、各° 種制御信号をやり取りし転送を実行する
データ制御部、(6)は外部デバイスからの転送要求を
入力する転送要求信号端子、(6)はDMAコントロー
ラ内部のユニット間でデータ、アドレス、各種制御信号
をやり取りする内部バス、(γ)はDMAコントa−ラ
がcPTJ、   工101 メモリなどの外部デバイ
スとデータ、アドレス、各種制御信号をやり取りする外
部バスである。
A block diagram of a conventional DMA controller is shown in FIG. The figure shows the case of a DMA controller having four transfer channels. In the figure, (1) is a transfer request control unit that mediates transfer requests from external devices input to the transfer request signal terminal (6:) and sends a transfer start request to the overall control unit (2); (2) is an overall control unit (8) which reads control information from a control register unit (8) upon receiving a transfer start request from a transfer request control unit (1) and generates a control signal to cause the data control unit (4) to execute the transfer; (4) is a control register section that holds control information regarding the transfer method, transfer control, channel status, etc. of each transfer channel, and (4) is a control register section that stores control signals sent by the overall control section (2), external devices, and data. , address, data control unit that exchanges various control signals and executes transfer, (6) is a transfer request signal terminal that inputs a transfer request from an external device, (6) is a data control unit that exchanges data between units inside the DMA controller, An internal bus (γ) is an internal bus for exchanging addresses and various control signals, and an external bus (γ) is for exchanging data, addresses, and various control signals with external devices such as DMA controllers such as cPTJ and memory.

第5図は第4図に於ける制御レジスタ部(8)の内部ブ
ロック図である。図に於いて、(301)は各チャネル
の制御情報を格納するアドレスレジスタ、バイトカウン
トレジスタ、転送モードレジスタ、チャネル状態レジス
タ等の制御レジスタ群である。
FIG. 5 is an internal block diagram of the control register section (8) in FIG. 4. In the figure, (301) is a group of control registers such as an address register, a byte count register, a transfer mode register, and a channel status register, which store control information for each channel.

次に動作について説明する。外部デバイスから転送要求
信号端子(6)に転送要求があると、転送要求制御部(
1)はその要求を調停する。転送要求を受は付けた場合
、転送要求制御部(1)は全体制御部(2)に転送を開
始する要求と転送を要求し、転送を開始しようとするチ
ャネル番号を送り、全体制御部(2)は制御レジスタ部
(8)のレジスタ群の内、そのチャネル番号に対応する
レジスタ群の保持する情報によって、データ制御部(4
)に送る制御信号を生成する。データ制御部(4)はこ
の制御信号に制御され外部バス(7)を通して外部デバ
イスとDMA転送を行う。
Next, the operation will be explained. When there is a transfer request from an external device to the transfer request signal terminal (6), the transfer request control unit (
1) mediates the request. If the transfer request is accepted, the transfer request control unit (1) requests the general control unit (2) to start the transfer, requests the transfer, sends the channel number on which the transfer is to be started, and sends the general control unit (2) a request to start the transfer. 2) controls the data control unit (4) according to the information held in the register group corresponding to the channel number among the register groups of the control register unit (8).
) generates a control signal to be sent to the The data control section (4) is controlled by this control signal and performs DMA transfer with an external device via an external bus (7).

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のDMAコントローラは以上のように構成されてい
たので、転送に必要な情報を格納するために、チャネル
数だけ制御レジスタをそなえなければならないので、制
御レジスタ部を構成する素子数が多くなる。このDMA
コントローラヲ半導体集積回路として実現する際チップ
面積が増大しS%KDMAコントローラのマイクロコン
ピュータへの内蔵に困難を生じるという問題点があった
Since the conventional DMA controller is configured as described above, in order to store the information necessary for transfer, it is necessary to provide as many control registers as the number of channels, which increases the number of elements that make up the control register section. This DMA
When realizing the controller as a semiconductor integrated circuit, the chip area increases, making it difficult to incorporate the S%KDMA controller into a microcomputer.

この発明は上記のような問題点を解決するためになされ
たもので、制御レジスタ部をチャネル数に関わνなく1
組のみ備えることで転送を実行し、DMAコントローラ
を構成する素子数を減らし、特にマイクロコンピュータ
への内蔵に適したDMAコントローラを得ることを目的
とする。
This invention was made to solve the above-mentioned problems, and the control register section can be set to 1 regardless of the number of channels.
It is an object of the present invention to provide a DMA controller that is particularly suitable for being built into a microcomputer by performing transfer by providing only a set of sets, reducing the number of elements constituting the DMA controller.

【課題を解決するための手段〕[Means to solve problems]

本発明に係るDMAコントローラは、転送を実行中の転
送チャネルの転送方法、転送制御、チャネルの状態等に
関する制御情報を保持する1組の制御レジスタ群と、 各転送チャネルメモリ上に格納でれている制御情報の先
頭アドレスを保持するチャネルごとの制御情報アドレス
レジスタと、 転送要求が発生しチャネルが切りかわる時制御レジスタ
群の内容を、制御情報アドレスレジスタの内チャネルか
切りかわる前の転送チャネルに対応する該レジスタが示
す内容を、先頭アドレスとするメモリ領域に書き込み、
次に制御情報アドレスレジスタの内転送を開始しようと
するチャネルに対応する該レジスタが示す内容を、先頭
アドレスとするメモリ領域の内容を制御レジスタ群に読
み出すための制御信号を生成する制御手段を備えたもの
である。     ゛ 〔作用〕 この発明におけるDMAコントローラは、チャネルが遷
移する時制御レジスタ部に格納されているチャネルが切
りかわる前のチャネルの制御情報を、制御情報アドレス
レジスタの内このチャネルに対応したレジスタの内容を
先頭アドレスとするメモリ領域に書き込み、次に制御情
報アドレスレジスタの内転送を開始しようとするチャネ
ルに対応するレジスタが示す内容を、先頭アドレスとす
るメモリからこのチャネルの制御情報を読み込み制御レ
ジスタ部に格納する。この制御レジスタ部に格納された
情報を基にDMA転送を実行する。
The DMA controller according to the present invention includes a set of control registers that hold control information related to the transfer method, transfer control, channel state, etc. of the transfer channel that is executing the transfer, and There is a control information address register for each channel that holds the start address of the control information in the control information register, and when a transfer request occurs and the channel is switched, the contents of the control register group are transferred to the channel in the control information address register or to the transfer channel before switching. Writes the contents indicated by the corresponding register to the memory area designated as the start address,
Next, the control means generates a control signal for reading out the contents of a memory area whose start address is the contents indicated by the register corresponding to the channel to which transfer is to be started in the control information address register to the control register group. It is something that [Operation] When a channel changes, the DMA controller of the present invention transfers the control information of the channel stored in the control register section before the channel is switched to the contents of the register corresponding to this channel among the control information address registers. Writes the control information of this channel from the memory whose starting address is the content indicated by the register corresponding to the channel to which transfer is to be started in the control information address register to the control register section. Store in. DMA transfer is executed based on the information stored in this control register section.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。第1
図はこの発明の一実施例であるDMAコントローラのブ
ロック図である。図では4つの転送チャネルを持つDM
Aコントローラの場合である。図に於いて、(1)は転
送要求信号端子(5)に入力式れた外部デバイスからの
転送要求を調停し、全体制御部(2) K転送開始要求
と転送を開始しようとするチャネル番号を送る転送要求
制御部、(2)は転送要求制御部(1)より転送開始要
求を受けると、チャネル遷移が生じた場合、制御レジス
タ部(9]の内容をメモリ上に退避させメモリから転送
を開始しようとするチャネルの制御情報を読み出し制御
レジスタ部(9)に瞥き込むという動作及び、制御レジ
スタ部(9)より制御情報を読みデータ制御部C4)に
転送を実行させる制御信号を生成する全体制御部、(9
)は転送を実行中のチャネルの転送方法、転送制御、チ
ャネルの状態等に関する制御情報を保持する制御レジス
タ部、(4)は全体制御部(2)によシ送られた制御信
号により制御され外部スパイスとデータ、アドレス、各
種制御信号をやり取しし転送を実行するデータ制御部、
【8)は各転送チャネルのメモリ上に格納されているチ
ャネルの制御情報の先頭アドレスを保持する制御情報ア
ドレスレジスタ部、(6(は外部デバイスからの転送要
求を人力する転送要求信号端子、C6)はIIMAコン
トローラ内部のユニット間でデータ、アドレス、各種制
御1信号をやり取りする内部バス、(7)はDMAコン
トローラがCPU、  工10、メモリなどの外部デバ
イスとデータ、アドレス、各種制御信号をやり取りする
外部バスである。
An embodiment of the present invention will be described below with reference to the drawings. 1st
The figure is a block diagram of a DMA controller that is an embodiment of the present invention. In the figure, a DM with four transfer channels
This is the case of A controller. In the figure, (1) arbitrates transfer requests from external devices input to the transfer request signal terminal (5), and controls the overall control unit (2) K transfer start request and the channel number on which the transfer is to be started. When a transfer request control unit (2) receives a transfer start request from the transfer request control unit (1), if a channel transition occurs, the transfer request control unit (2) saves the contents of the control register unit (9) to memory and transfers it from the memory. The operation of reading the control information of the channel to be started and looking into the control register section (9), and the operation of reading the control information from the control register section (9) and generating a control signal that causes the data control section C4 to execute the transfer. Overall control unit (9
) is a control register section that holds control information regarding the transfer method, transfer control, channel status, etc. of the channel in progress, and (4) is controlled by the control signal sent from the overall control section (2). A data control unit that exchanges data, addresses, and various control signals with external spices and executes transfers;
[8] is a control information address register section that holds the start address of the control information of the channel stored in the memory of each transfer channel; (6) is a transfer request signal terminal for manually inputting a transfer request from an external device; ) is an internal bus that exchanges data, addresses, and various control signals between units inside the IIMA controller, and (7) is an internal bus that allows the DMA controller to exchange data, addresses, and various control signals with external devices such as the CPU, controller 10, and memory. This is an external bus.

第2図は第1図に於ける制御レジスタ部(9)の内部ブ
ロック図である。図に於いて、(901)は転送を実行
中のチャネルの制御情報を格納するアドレスレジスタ、
バイトカウントレジスタ転送モードレジスタ、チャネル
状態レジスタ等の制御レジスタ群である。
FIG. 2 is an internal block diagram of the control register section (9) in FIG. 1. In the figure, (901) is an address register that stores control information of the channel that is currently transferring;
A group of control registers such as a byte count register, transfer mode register, and channel status register.

第3図は第1図における制御情報アドレスレジスp 部
+81の内部ブロック図である。図に於いて、(801
)は各転送チャネルのメモリ上に格納されているチャネ
ルの制御情報の先頭アドレスを保持する制御情報アドレ
スレジスタである。
FIG. 3 is an internal block diagram of the control information address register p section+81 in FIG. In the figure, (801
) is a control information address register that holds the start address of channel control information stored in the memory of each transfer channel.

次に動作について説明する。外部デバイスから転送要求
信号端子(6)に転送要求があると、転送要求制御部(
1)はその要求を調停する。転送要求を受は付けた場合
、転送要求制御部(1)は全体制御部(2)に転送開始
要求と転送を要求し、転送を開始しようとするチャネル
番号を送る。全体制御部(2)はチャネル遷移が生じる
場合には、制御レジスタ部(9)の内容をメモリ上に退
避させ、メモリから転送を開始しようとしているチャネ
ルの制御情報を、制御レジスタ部(9)に読み込むため
の制御信号を生成しデータ制御部(2)に送る。データ
制御部(2)はこの制御信号によって制御され、制御レ
ジスタ部(9)の内容を、制御情報アドレスレジスタ部
(8)の内チャネルが切りかわる前の転送チャネルに対
応する制御情報アドレスレジスタ(801)が示す内容
を、先頭アドレスとするメモリ領域に書き込み、次に制
御情報アドレスレジスタ部(8)の内転送を開始しよう
とするチャネルに対応する制御情報アドレスレジスタ(
801)が示す内容を、先頭アドレスとするメモリ領域
の内容を制御レジスタ部(9)に読み出すという動作を
行う。この後、全体制御部(2)は制御レジスタ部(9
)の保持する情報によって、データ制御部(4)に送る
制御信号を生成する。データ制御部(4)はこの制御信
号に制御され外部バス(7)を通して外部デバイスとD
MA転送を行う。
Next, the operation will be explained. When there is a transfer request from an external device to the transfer request signal terminal (6), the transfer request control unit (
1) mediates the request. When the transfer request is accepted, the transfer request control unit (1) requests the overall control unit (2) to start the transfer and request the transfer, and sends the channel number on which the transfer is to be started. When a channel transition occurs, the overall control unit (2) saves the contents of the control register unit (9) in memory, and transfers the control information of the channel about to start transfer from the memory to the control register unit (9). It generates a control signal for reading into the data controller (2) and sends it to the data control unit (2). The data control unit (2) is controlled by this control signal, and transfers the contents of the control register unit (9) to the control information address register (8) corresponding to the transfer channel before the channel is switched. Write the contents indicated by 801) into the memory area as the start address, and then write the control information address register (801) corresponding to the channel to which transfer is to be started in the control information address register section (8).
The content indicated by 801) is read out from the memory area whose starting address is the content indicated by 801) into the control register unit (9). After this, the overall control section (2) controls the control register section (9
) generates a control signal to be sent to the data control unit (4). The data control unit (4) is controlled by this control signal and communicates with external devices through the external bus (7).
Perform MA transfer.

〔発明の効果〕〔Effect of the invention〕

以上のようにこの発明によれば、制御レジスタをチャネ
ル数に関わりなく1組しか備える必要が無いので、DM
Aコントローラを構成する素子数を減少することができ
、特にDMAコントローラのマイクロコンピュータへの
内蔵が容易になるという効果がある。
As described above, according to the present invention, there is no need to provide only one set of control registers regardless of the number of channels.
The number of elements constituting the A controller can be reduced, and in particular, the DMA controller can be easily incorporated into a microcomputer.

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

第1図はこの発明の一実施例であるDMAコントローラ
のブロック図、第2図は第1図に於ける制御レジスタ部
の内部ブロック図、第3図は第1図における制御情報ア
ドレスレジスタ部の内部ブロック図、第4図は従来のD
MAコントローラのブロック図、第5図は第4図に於け
る制御レジスタ部の内部ブロック図である。 図に於いて、(1)は転送要求制御部、(2)は全体制
御部、C4)はデータ制御部、(8)は制御情報アドレ
スレジスタ部、(9)は制御レジスタ部、(801)は
制御情報アドレスレジスタ、(901)は制御レジスタ
群を示す。 なお、図中、同一符号は同一、または相当部分を示す。 ノ  第1図 第5図 手続補正書C自発) 耳クツ 2、発明の名称   DMA:!/)。−ラ3、補正を
する者 事件との関係 特許出願人 住 所    東京都千代田区丸の内二丁目2番3号名
 称  (601)三菱電機株式会社代表者志岐守哉 4、代理人 住 所    東京都千代田区丸の内二丁目2番3号6
、 補正の対象 明細誓の発明の詳細な説明の欄。 行、第6頁@8行、第9頁第8行〜第9行。 第■行の 「内容を、先頭アドレスと」を 「内容を元唄アドレスと」と訂正する。 (!1 明細引1頁#I6行の rバイトカウントレジスタ転送モード」t「バイトカウ
ントレジスタ、転送モード」と訂正する。 以上
FIG. 1 is a block diagram of a DMA controller that is an embodiment of the present invention, FIG. 2 is an internal block diagram of the control register section in FIG. 1, and FIG. 3 is an internal block diagram of the control information address register section in FIG. 1. Internal block diagram, Figure 4 is the conventional D
A block diagram of the MA controller, FIG. 5 is an internal block diagram of the control register section in FIG. 4. In the figure, (1) is a transfer request control section, (2) is an overall control section, C4) is a data control section, (8) is a control information address register section, (9) is a control register section, (801) indicates a control information address register, and (901) indicates a control register group. In addition, in the figures, the same reference numerals indicate the same or equivalent parts.ノ Figure 1 Figure 5 Procedural amendment C voluntary) Ear shoes 2, title of the invention DMA:! /). -3, Relationship with the case of the person making the amendment Patent applicant address: 2-2-3 Marunouchi, Chiyoda-ku, Tokyo Name (601) Mitsubishi Electric Corporation Representative Moriya Shiki 4, Agent address: Tokyo 2-2-3-6 Marunouchi, Chiyoda-ku
, Detailed description of the invention in the specification subject to amendment. line, page 6 @ line 8, page 9, lines 8-9. In line ①, ``Contents, starting address'' should be corrected to ``Contents, original song address.'' (!1 Correct "byte count register transfer mode" t "byte count register, transfer mode" in line #I6 of statement page 1.)

Claims (1)

【特許請求の範囲】 複数の転送チャネルを持つDMAコントローラにおいて
、 転送を実行中の前記転送チャネルの転送方法、転送制御
、チャネルの状態等に関する制御情報を保持する1組の
制御レジスタ群と、 前記各転送チャネルのメモリ上に格納されている前記制
御情報の先頭アドレスを保持するチャネルごとの制御情
報アドレスレジスタと、 転送要求が発生しチャネルが切りかわる時前記制御レジ
スタ群の内容を前記制御情報アドレスレジスタのうちチ
ャネルが切りかわる前の転送チャネルに対応する該レジ
スタが示す内容を先頭アドレスとするメモリ領域に書き
込み、次に前記制御情報アドレスレジスタのうち転送を
開始しようとするチャネルに対応する該レジスタが示す
内容を先頭アドレスとするメモリ領域の内容を前記制御
レジスタ群に読み出すための制御信号を生成する制御手
段を備えたことを特徴とするDAMコントローラ。
[Scope of Claims] In a DMA controller having a plurality of transfer channels, a set of control registers retaining control information regarding a transfer method, transfer control, channel state, etc. of the transfer channel during transfer; a control information address register for each channel that holds the start address of the control information stored in the memory of each transfer channel; and a control information address register for each channel that holds the start address of the control information stored in the memory of each transfer channel; Out of the registers, the contents indicated by the register corresponding to the transfer channel before the channel is switched are written to the memory area having the start address, and then the register corresponding to the channel to start transfer among the control information address registers is written. A DAM controller comprising: a control means for generating a control signal for reading the contents of a memory area having the contents indicated by as a start address into the control register group.
JP28653290A 1990-10-23 1990-10-23 Dma controller Pending JPH04160457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28653290A JPH04160457A (en) 1990-10-23 1990-10-23 Dma controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28653290A JPH04160457A (en) 1990-10-23 1990-10-23 Dma controller

Publications (1)

Publication Number Publication Date
JPH04160457A true JPH04160457A (en) 1992-06-03

Family

ID=17705630

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28653290A Pending JPH04160457A (en) 1990-10-23 1990-10-23 Dma controller

Country Status (1)

Country Link
JP (1) JPH04160457A (en)

Similar Documents

Publication Publication Date Title
JP4322451B2 (en) Data transfer method between DSP memories or between DSP memory and CPU memory (DPRAM)
JPS61148563A (en) Data transfer system and data transfer
US4835684A (en) Microcomputer capable of transferring data from one location to another within a memory without an intermediary data bus
US7185133B2 (en) Data processor
JPH04160457A (en) Dma controller
JP2723970B2 (en) Data transfer control device
JP3201439B2 (en) Direct memory access control circuit
JPH02207363A (en) Data transfer system, device controller, and memory controller
JPH04205452A (en) Dma controller
JPH04369753A (en) Direct memory access controller
JP2821176B2 (en) Information processing device
JPS6383854A (en) Data transfer circuit
JP2004021713A (en) Semiconductor storage device
JPH0769885B2 (en) Data transfer device
JPS6398757A (en) Data chaining control system for dma circuit
JPH11338713A (en) Computer system
JPH039453A (en) Data transfer controller
JPS62131356A (en) Peripheral control circuit of microprocessor system
JPS59211125A (en) Memory control system
JPS62224849A (en) Data processing system
JPH02307149A (en) Direct memory access control system
JPS62145345A (en) Control system for direct memory access interval
JPH0212557A (en) Dma control circuit
JPS61245268A (en) Channel controller
JPH04287260A (en) Direct memory access controller