JPH06214939A - Dma controller - Google Patents

Dma controller

Info

Publication number
JPH06214939A
JPH06214939A JP488093A JP488093A JPH06214939A JP H06214939 A JPH06214939 A JP H06214939A JP 488093 A JP488093 A JP 488093A JP 488093 A JP488093 A JP 488093A JP H06214939 A JPH06214939 A JP H06214939A
Authority
JP
Japan
Prior art keywords
dma
transfer
operation definition
read
definition table
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
JP488093A
Other languages
Japanese (ja)
Inventor
Michiyo Gunji
実千代 軍司
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP488093A priority Critical patent/JPH06214939A/en
Publication of JPH06214939A publication Critical patent/JPH06214939A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain the coexisting of read/write and to attain transfer by DMA transfer at a time by controlling an input/output bus in accordance with the setting of DMA operation by an operation definition storing means control means. CONSTITUTION:This DMA controller is provided with an operation definition table 1 which is an operation definition storing means, an operation definition table control part 2 which is also the operation definition storing means, and a DMA transfer control part 3. Then, the operation definition table 1 stores DMA operation data such as the source/destination, the read/write, etc., of each transfer by DMA transfer. When the operation definition table control part 2 receives a DMA requirement from CPU, the part 2 temporarily stores DMA operation data by reading the contents of the operation definition table 1 so as to set DMA operation. Furthermore, the DMA transfer control part 3 controls the input/output bus (I/O bus) in accordance with the setting of DMA operation by the operation definition table control part 2.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えばマイクロコンピ
ュータを組み合わせたシステムに用いられ、中央処理装
置(以下、CPUと称する)からのDMA要求に応じて
メモリ間のDMA転送の制御を行なうDMAコントロー
ラに係り、特にDMA動作を任意に設定できるようにし
たDMAコントローラに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is used in a system in which, for example, a microcomputer is combined, and controls a DMA transfer between memories in response to a DMA request from a central processing unit (hereinafter referred to as CPU). In particular, the present invention relates to a DMA controller capable of arbitrarily setting a DMA operation.

【0002】[0002]

【従来の技術】従来、この種のシステムにおけるDMA
転送は、各DMAチャンネル毎にデータ長をプログラム
することができ、DMA転送によってデータをリード
(収集)またはライト(分配)したいソースとデスティ
ネーションを指定し、アドレス自動インクリメントを用
いた連続転送処理を行なったり、アドレスポインタを用
いてソース/デスティネーションを記憶してあるメモリ
のアドレスをメモリ上で連結させ、連鎖的に転送処理を
行なう構成となっている。
2. Description of the Related Art Conventionally, DMA in this type of system is used.
For the transfer, the data length can be programmed for each DMA channel, the source and destination to which the data is to be read (collected) or written (distributed) are specified by the DMA transfer, and continuous transfer processing using the address automatic increment is performed. It is configured so that the addresses of the memories storing the source / destination are connected on the memory by using the address pointer and the transfer processing is performed in a chained manner.

【0003】しかしながら、この場合、アドレスのみの
操作となり、1チャンネルに対する一度のDMA転送で
は、データのリードもしくはライトの一方のみとなるた
め、リードとライトはそれぞれ別のDMA転送で行なわ
なければならない。また、各DMAチャンネル毎にデー
タ長が決まってしまうため、データ長の違うものは一緒
にDMA転送できない。
However, in this case, only the address is operated, and only one read or write of data is performed in one DMA transfer for one channel. Therefore, read and write must be performed in different DMA transfers. Also, since the data length is determined for each DMA channel, it is not possible to perform DMA transfer for different data lengths together.

【0004】[0004]

【発明が解決しようとする課題】以上のように、従来の
DMA転送においては、リードとライトを別のDMA転
送で行なわなければならず、またデータ長が一定でない
と一緒にDMA転送を行なえないという問題があった。
As described above, in the conventional DMA transfer, the read and the write must be performed by different DMA transfers, and the DMA transfer cannot be performed together if the data length is not constant. There was a problem.

【0005】本発明の目的は、1チャンネルに対するD
MA転送において、リード/ライトの混在を可能にし、
またデータ長が一定でない場合でも一度のDMA転送で
転送を行なうことが可能な極めて信頼性の高いDMAコ
ントローラを提供することにある。
An object of the present invention is to set D for one channel.
Enables mixed read / write in MA transfer,
Another object of the present invention is to provide an extremely reliable DMA controller capable of performing a single DMA transfer even if the data length is not constant.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
めに本発明では、中央処理装置からのDMA要求に応じ
て、メモリ間のDMA転送の制御を行なうDMAコント
ローラにおいて、DMA転送で各転送毎のソース/デス
ティネーションやリード/ライト等のDMA動作データ
を記憶する動作定義記憶手段と、中央処理装置からのD
MA要求を受けると、動作定義記憶手段の内容を読み出
してDMA動作データを一時的に記憶し、DMA動作の
設定を行なう動作定義記憶手段制御手段と、動作定義記
憶手段制御手段によるDMA動作設定に従って入力/出
力バスの制御を行なうDMA転送制御手段とを備えて構
成している。
In order to achieve the above object, according to the present invention, in a DMA controller for controlling DMA transfer between memories in response to a DMA request from a central processing unit, each transfer is performed by DMA transfer. Operation definition storage means for storing DMA operation data such as source / destination and read / write for each, and D from the central processing unit
When the MA request is received, the contents of the operation definition storage means are read to temporarily store the DMA operation data, and the operation definition storage means control means for setting the DMA operation and the DMA operation setting by the operation definition storage means control means And DMA transfer control means for controlling the input / output bus.

【0007】[0007]

【作用】従って、本発明のDMAコントローラにおいて
は、中央処理装置からのDMA要求を受けると、動作定
義記憶手段制御手段は、各転送毎のソース/デスティネ
ーションやDMA動作を記述し初期化された動作定義記
憶手段からDMA動作データを読み出して一時的に記憶
し、DMA転送制御手段のDMA動作設定を行ない、そ
れに従ってDMA転送動作制御手段は入力/出力バスを
制御する。
Therefore, in the DMA controller of the present invention, when the DMA request from the central processing unit is received, the operation definition storage means control means describes and initializes the source / destination and the DMA operation for each transfer. The DMA operation data is read from the operation definition storage means and temporarily stored therein, and the DMA operation setting of the DMA transfer control means is performed, and the DMA transfer operation control means controls the input / output bus in accordance therewith.

【0008】また、DMA転送制御手段が入力/出力バ
ス転送制御を行なっている間に、動作定義記憶手段制御
手段は、動作定義記憶手段から次のDMA動作データの
読み出しを行なって記憶する。そして、DMA転送制御
手段における前の転送動作が終了すると、動作定義記憶
手段制御手段は、記憶していた次のDMA動作設定をD
MA転送制御手段に対して行ない、同様にDMA転送制
御手段は入力/出力バスの制御を、動作定義記憶手段制
御手段は次のDMA動作データの読み出しをそれぞれ行
なって、順次DMA転送する。
While the DMA transfer control means controls the input / output bus transfer, the operation definition storage means control means reads the next DMA operation data from the operation definition storage means and stores it. Then, when the previous transfer operation in the DMA transfer control means is completed, the operation definition storage means control means sets the stored next DMA operation setting to D.
Similarly to the MA transfer control means, the DMA transfer control means controls the input / output bus, and the operation definition storage means control means reads the next DMA operation data, and sequentially performs DMA transfer.

【0009】以上により、1チャンネルに対するDMA
転送において、アクセスするメモリアドレスを任意に設
定することが可能となるため、リード/ライトの混在を
可能にし、またデータ長が一定でない場合でも一度のD
MA転送で転送を行なうことができる。
As described above, DMA for one channel
Since it is possible to arbitrarily set the memory address to be accessed during transfer, read / write can be mixed, and even if the data length is not constant, D
Transfer can be performed by MA transfer.

【0010】[0010]

【実施例】以下、本発明の一実施例について図面を参照
して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings.

【0011】図1は、本発明によるDMAコントローラ
の構成例を示すブロック図である。すなわち、本実施例
のDMAコントローラは、図1に示すように、動作定義
記憶手段である動作定義テーブル1と、動作定義記憶手
段制御手段である動作定義テーブル制御部2と、DMA
転送制御部3とから構成している。ここで、動作定義テ
ーブル1は、DMA転送で各転送毎のソース/デスティ
ネーションやリード/ライト等のDMA動作データを記
憶するものである。
FIG. 1 is a block diagram showing a configuration example of a DMA controller according to the present invention. That is, as shown in FIG. 1, the DMA controller of the present embodiment has an operation definition table 1 which is an operation definition storage means, an operation definition table control section 2 which is an operation definition storage means control means, and a DMA.
It is composed of the transfer control unit 3. Here, the operation definition table 1 stores DMA operation data such as source / destination and read / write for each transfer in the DMA transfer.

【0012】また、動作定義テーブル制御部2は、図示
しないCPUからのDMA要求を受けると、動作定義テ
ーブル1の内容を読み出してDMA動作データを一時的
に記憶し、DMA動作の設定を行なうものである。
When the operation definition table controller 2 receives a DMA request from a CPU (not shown), it reads the contents of the operation definition table 1 to temporarily store the DMA operation data and sets the DMA operation. Is.

【0013】さらに、DMA転送制御部3は、動作定義
テーブル制御部2によるDMA動作設定に従って入力/
出力バス(以下、I/Oバスと称する)の制御を行なう
ものである。
Further, the DMA transfer control unit 3 inputs / outputs according to the DMA operation setting by the operation definition table control unit 2.
The output bus (hereinafter referred to as I / O bus) is controlled.

【0014】図2は、上記DMAコントローラにおける
動作定義テーブル制御部2の詳細な構成例を示すブロッ
ク図である。すなわち、動作定義テーブル制御部2は、
図2に示すように、テーブルアクセス制御部5と、テー
ブルアドレスカウンタ6と、内部レジスタ7とからなっ
ている。
FIG. 2 is a block diagram showing a detailed configuration example of the operation definition table control unit 2 in the DMA controller. That is, the operation definition table control unit 2
As shown in FIG. 2, it comprises a table access control unit 5, a table address counter 6, and an internal register 7.

【0015】ここで、テーブルアクセス制御部5は、C
PUからのDMA要求を受けると、テーブルアドレスカ
ウンタ6にカウントアップ開始要求を出し、このテーブ
ルアドレスカウンタ6により示されたアドレスのDMA
動作データを動作定義テーブル4から読み出し、かつ読
み出したDMA動作データを内部レジスタ7に格納・記
憶するものである。また、テーブルアドレスカウンタ6
は、テーブルアクセス制御部5からのカウントアップ開
始要求を受けると、カウントアップ動作を行なうもので
ある。さらに、内部レジスタ7は、DMA動作データを
格納・記憶するためのものである。次に、以上のように
構成した本実施例のDMAコントローラの動作について
説明する。
Here, the table access control unit 5 uses C
When a DMA request from the PU is received, a count-up start request is issued to the table address counter 6, and the DMA of the address indicated by the table address counter 6 is issued.
The operation data is read from the operation definition table 4, and the read DMA operation data is stored / stored in the internal register 7. Also, the table address counter 6
When a count-up start request is received from the table access control unit 5, the count-up operation is performed. Further, the internal register 7 is for storing and storing DMA operation data. Next, the operation of the DMA controller of this embodiment configured as described above will be described.

【0016】図1および図2において、まず、チャンネ
ルの初期化時に、DMA転送を行なうソース/デスティ
ネーションアドレス、リード/ライト、データ長等のD
MA動作データが、動作定義テーブル4に書き込まれ
る。
In FIGS. 1 and 2, first, at the time of initialization of a channel, D such as source / destination address for performing DMA transfer, read / write, and data length.
The MA operation data is written in the operation definition table 4.

【0017】次に、チャンネルの初期化が終わって、図
示しないCPUからのDMA要求を受けると、テーブル
アクセス制御部5により、テーブルアドレスカウンタ6
にカウントアップ開始要求が出され、このテーブルアド
レスカウンタ6によって示されたアドレスのDMA動作
データが動作定義テーブル4から読み出される。そし
て、この読み出したDMA動作データは、内部レジスタ
7に格納・記憶され、このデータに従ってDMA転送制
御部3のI/Oバス制御動作が設定される。この設定を
受けると、DMA転送制御部3により、I/Oバスにソ
ース/デスティネーションアドレスの送出やリード/ラ
イトのコマンド出力等の制御が行なわれる。
Next, when the initialization of the channel is completed and a DMA request from a CPU (not shown) is received, the table access control unit 5 causes the table address counter 6 to operate.
A count-up start request is issued to the DMA operation data of the address indicated by the table address counter 6 from the operation definition table 4. Then, the read DMA operation data is stored / stored in the internal register 7, and the I / O bus control operation of the DMA transfer control unit 3 is set according to this data. Upon receiving this setting, the DMA transfer control unit 3 controls the sending of source / destination addresses to the I / O bus and the output of read / write commands.

【0018】また、この転送制御中に、テーブルアクセ
ス制御部5により、動作定義テーブル4から次のDMA
動作データが読み出され、この読み出したDMA動作デ
ータは、内部レジスタ7に格納・記憶される。そして、
DMA転送制御部3における前のI/Oバス制御動作が
終了すると、内部レジスタ7に記憶してある次のDMA
動作データに従って、制御動作の設定、I/Oバス制御
が行なわれる。これら一連の動作を繰り返し、DMA転
送終了時には、カウントアップを続けていたテーブルア
ドレスカウンタ6が初期状態に戻る。
Also, during this transfer control, the table access control unit 5 causes the table to be transferred to the next DMA from the operation definition table 4.
The operation data is read, and the read DMA operation data is stored / stored in the internal register 7. And
When the previous I / O bus control operation in the DMA transfer control unit 3 ends, the next DMA stored in the internal register 7
The control operation is set and the I / O bus is controlled according to the operation data. A series of these operations are repeated, and at the end of the DMA transfer, the table address counter 6 which has continued counting up returns to the initial state.

【0019】上述したように、本実施例のDMAコント
ローラは、DMA転送で各転送毎のソース/デスティネ
ーションやリード/ライト等のDMA動作データを記憶
する動作定義テーブル1と、CPUからのDMA要求を
受けると、動作定義テーブル1の内容を読み出してDM
A動作データを一時的に記憶し、DMA動作の設定を行
なう動作定義テーブル制御部2と、動作定義テーブル制
御部2によるDMA動作設定に従ってI/Oバスの制御
を行なうDMA転送制御部3とから構成したものであ
る。
As described above, the DMA controller of this embodiment has the operation definition table 1 for storing the DMA operation data such as the source / destination and the read / write for each transfer in the DMA transfer, and the DMA request from the CPU. When the operation is received, the contents of the operation definition table 1 are read and DM
From the operation definition table control unit 2 which temporarily stores the A operation data and sets the DMA operation, and the DMA transfer control unit 3 which controls the I / O bus according to the DMA operation setting by the operation definition table control unit 2. It is composed.

【0020】従って、各転送毎のDMA動作・データ長
等の設定が行なえるため、1チャンネルに対するDMA
転送において、リード/ライトを混在させることが可能
となる。また、各転送先毎に転送データ長を設定できる
ため、データ長が一定でない場合でも、一度のDMA転
送で転送を行なうことが可能となる。
Therefore, since the DMA operation and data length can be set for each transfer, the DMA for one channel can be set.
In the transfer, read / write can be mixed. Further, since the transfer data length can be set for each transfer destination, even if the data length is not constant, it is possible to perform transfer by one DMA transfer.

【0021】さらに、次のDMA動作を動作定義テーブ
ル1から先読み出しして一時記憶しているため、DMA
転送時間中の動作設定時間をほとんど無視できることに
より、DMA転送の高速化を図ることが可能となる。
Further, since the next DMA operation is pre-read from the operation definition table 1 and temporarily stored, the DMA
Since the operation setting time during the transfer time can be almost ignored, it is possible to speed up the DMA transfer.

【0022】[0022]

【発明の効果】以上説明したように本発明によれば、D
MA転送で各転送毎のソース/デスティネーションやリ
ード/ライト等のDMA動作データを記憶する動作定義
記憶手段と、中央処理装置からのDMA要求を受ける
と、動作定義記憶手段の内容を読み出してDMA動作デ
ータを一時的に記憶し、DMA動作の設定を行なう動作
定義記憶手段制御手段と、動作定義記憶手段制御手段に
よるDMA動作設定に従って入力/出力バスの制御を行
なうDMA転送制御手段とを備えて構成したので、1チ
ャンネルに対するDMA転送において、リード/ライト
の混在を可能にし、またデータ長が一定でない場合でも
一度のDMA転送で転送を行なうことが可能な極めて信
頼性の高いDMAコントローラが提供できる。
As described above, according to the present invention, D
In the MA transfer, the operation definition storing means for storing the DMA operation data such as the source / destination and the read / write for each transfer, and the DMA request from the central processing unit, the contents of the operation definition storing means are read to perform the DMA. An operation definition storage means control means for temporarily storing operation data and setting a DMA operation, and a DMA transfer control means for controlling the input / output bus according to the DMA operation setting by the operation definition storage means control means are provided. Since it is configured, it is possible to provide a highly reliable DMA controller that enables mixed read / write in DMA transfer for one channel and can perform transfer in one DMA transfer even when the data length is not constant. .

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

【図1】本発明によるDMAコントローラの一実施例を
示すブロック図。
FIG. 1 is a block diagram showing an embodiment of a DMA controller according to the present invention.

【図2】同実施例における動作定義テーブル制御部の詳
細な構成例を示すブロック図。
FIG. 2 is a block diagram showing a detailed configuration example of an operation definition table control unit in the embodiment.

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

1…動作定義テーブル、2…動作定義テーブル制御部、
3…DMA転送制御部、5…テーブルアクセス制御部、
6…テーブルアドレスカウンタ、7…内部レジスタ。
1 ... motion definition table, 2 ... motion definition table control unit,
3 ... DMA transfer control unit, 5 ... table access control unit,
6 ... table address counter, 7 ... internal register.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置からのDMA要求に応じ
て、メモリ間のDMA転送の制御を行なうDMAコント
ローラにおいて、 DMA転送で各転送毎のソース/デスティネーションや
リード/ライト等のDMA動作データを記憶する動作定
義記憶手段と、 前記中央処理装置からのDMA要求を受けると、前記動
作定義記憶手段の内容を読み出してDMA動作データを
一時的に記憶し、DMA動作の設定を行なう動作定義記
憶手段制御手段と、 前記動作定義記憶手段制御手段によるDMA動作設定に
従って入力/出力バスの制御を行なうDMA転送制御手
段と、 を備えて成ることを特徴とするDMAコントローラ。
1. A DMA controller for controlling DMA transfer between memories in response to a DMA request from a central processing unit, wherein DMA operation data such as source / destination and read / write for each transfer is transferred by DMA transfer. Operation definition storage means for storing the operation definition storage means for receiving the DMA request from the central processing unit, reading the contents of the operation definition storage means, temporarily storing the DMA operation data, and setting the DMA operation. A DMA controller comprising: control means; and DMA transfer control means for controlling the input / output bus according to the DMA operation setting by the operation definition storage means control means.
JP488093A 1993-01-14 1993-01-14 Dma controller Pending JPH06214939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP488093A JPH06214939A (en) 1993-01-14 1993-01-14 Dma controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP488093A JPH06214939A (en) 1993-01-14 1993-01-14 Dma controller

Publications (1)

Publication Number Publication Date
JPH06214939A true JPH06214939A (en) 1994-08-05

Family

ID=11595994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP488093A Pending JPH06214939A (en) 1993-01-14 1993-01-14 Dma controller

Country Status (1)

Country Link
JP (1) JPH06214939A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100429724B1 (en) * 2000-05-19 2004-05-03 마츠시타 덴끼 산교 가부시키가이샤 High-performance dma controller
KR100708266B1 (en) * 2005-01-27 2007-04-17 후지쯔 가부시끼가이샤 Direct memory access control method, direct memory access controller, information processing system, and computer readable media comprising program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100429724B1 (en) * 2000-05-19 2004-05-03 마츠시타 덴끼 산교 가부시키가이샤 High-performance dma controller
US6775716B2 (en) 2000-05-19 2004-08-10 Matsushita Electric Industrial Co., Ltd. High-performance DMA controller
KR100708266B1 (en) * 2005-01-27 2007-04-17 후지쯔 가부시끼가이샤 Direct memory access control method, direct memory access controller, information processing system, and computer readable media comprising program

Similar Documents

Publication Publication Date Title
JPS6376044A (en) Bus master
JPH04363746A (en) Microcomputer system having dma function
KR20060028705A (en) Readdressable virtual dma control and status registers
JPH06214939A (en) Dma controller
JPH06103225A (en) Chain type dma system and dma controller therefor
JPS592058B2 (en) Storage device
JPH0115900B2 (en)
JPH0736806A (en) Dma system
JP2581144B2 (en) Bus control device
JP2841432B2 (en) Data transfer device
JPH0335335A (en) Storage device
JPH05210572A (en) Memory controller
JPH07146839A (en) Dma circuit
JPH07306825A (en) Dma controller
JPH0133848B2 (en)
JPH0261749A (en) Data transfer device
JPH03269650A (en) Buffer storage
JPH01177661A (en) Data transferring device
JPH04262449A (en) Data transfer system
JPH0713922A (en) Data transmission system
JPH01158545A (en) Control system for memory
JPH06161945A (en) Memory data transfer device
JPS61201336A (en) Loading system for microprogram
JPH06110777A (en) Gate array controller
JPS5856144B2 (en) microprocessor system