JP2002024157A - Method and device for processing dma - Google Patents

Method and device for processing dma

Info

Publication number
JP2002024157A
JP2002024157A JP2000206248A JP2000206248A JP2002024157A JP 2002024157 A JP2002024157 A JP 2002024157A JP 2000206248 A JP2000206248 A JP 2000206248A JP 2000206248 A JP2000206248 A JP 2000206248A JP 2002024157 A JP2002024157 A JP 2002024157A
Authority
JP
Japan
Prior art keywords
dma transfer
transfer channel
data
dma
channel group
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
JP2000206248A
Other languages
Japanese (ja)
Inventor
Kozo Nishimura
耕造 西村
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2000206248A priority Critical patent/JP2002024157A/en
Publication of JP2002024157A publication Critical patent/JP2002024157A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide DMA transfer setting enriched in kinds with more less memory consumption. SOLUTION: A plurality of mask data 500 and 501 for DMA transfer channel selection for selecting the use/no use of respective DMA transfer channels 501, 502, 504, 505 and 513 are provided corresponding to DMA transfer channel groups 50, 51 and 52, the mask data 500 and 501 for DMA transfer channel group selection for selecting the use/no use of respective plural DMA transfer channel groups are set corresponding to respective plural kinds of DMA transfer requests, and the mask data for DMA transfer channel selection are set to a DMA transfer channel mask register 53 corresponding to respective plural kinds of DMA transfer requests. According to the mask data for DMA transfer channel group selection and the mask data 500 and 501 for DMA transfer channel selection, a transfer channel to perform DMA transfer processing is selected.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、CPUなどを介さ
ずメモリ−メモリ間、外部デバイス−メモリ間、外部デ
バイス−外部デバイス間で直接データを転送するDMA
(Direct MemoryAccess)処理装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA for directly transferring data between memories, between external devices and between memories, and between external devices and external devices without using a CPU or the like.
(Direct Memory Access) It relates to a processing device.

【0002】[0002]

【従来の技術】一般に、DMA処理装置は、転送制御レ
ジスタと、転送許可情報を格納する転送イネーブルレジ
スタと、転送元アドレスを格納した転送元アドレスレジ
スタと、転送先アドレスを格納した転送先アドレスレジ
スタと、転送語数を格納した転送語数レジスタとから構
成されるDMA転送チャネルを1転送単位としている。
そして、複数の外部デバイスやソフトウェアからDMA
データ転送が要求されると、転送イネーブルレジスタを
イネーブルに設定し、DMAデータ転送を処理するよう
にCPUに各データバスの明け渡しの要求を行う。
2. Description of the Related Art In general, a DMA processor includes a transfer control register, a transfer enable register for storing transfer permission information, a transfer source address register for storing a transfer source address, and a transfer destination address register for storing a transfer destination address. And a transfer word number register storing the number of transfer words, a DMA transfer channel is defined as one transfer unit.
And DMA from multiple external devices and software
When data transfer is requested, the transfer enable register is set to be enabled, and a request for surrender of each data bus is made to the CPU so as to process DMA data transfer.

【0003】なお、転送制御レジスタは、以下のような
目的で設けられているレジスタである。すなわち、1回
に転送するデータのサイズ(8ビットまたは16ビット
等)、複数のDMA転送が同時に動くときの転送形態
(1語転送または連続転送か)、転送終了後に割込みを
発生させるかどうかなどの細かい制御を設定する。
The transfer control register is a register provided for the following purpose. That is, the size of data to be transferred at one time (8 bits or 16 bits, etc.), the transfer form when a plurality of DMA transfers operate simultaneously (single word transfer or continuous transfer), whether or not to generate an interrupt after the transfer ends Set fine control.

【0004】複数のDMA転送要求が同時に発生した場
合には、DMA転送要求優先順位判定回路により、最も
優先度の高いDMA転送要求に対応するDMA転送チャ
ネルの転送イネーブルレジスタをイネーブルに設定し、
DMA処理装置がCPUに代わって、転送元アドレスレ
ジスタに格納されているアドレス位置に格納されている
データを、転送先アドレスレジスタに格納されているア
ドレス位置に、転送語数レジスタに格納されている語数
だけDMA転送を行っていた。例えば特開平4−205
640号公報参照。
When a plurality of DMA transfer requests occur simultaneously, a DMA transfer request priority determination circuit sets a transfer enable register of a DMA transfer channel corresponding to the highest priority DMA transfer request to be enabled,
The DMA processing device replaces the CPU with the data stored in the address position stored in the transfer source address register, and transfers the data stored in the address position stored in the transfer destination address register to the number of words stored in the transfer word number register. Only DMA transfer was performed. For example, JP-A-4-205
See 640 publication.

【0005】従来のDMA転送では、(1) 転送制御
データと転送元アドレスデータと転送先アドレスデータ
と、転送語数データとから構成されるDMA転送チャネ
ルデータをメモリ上に多数配置し、対応するDMA転送
要求が発生して、DMA転送要求の優先順位が最も高い
場合、DMA転送チャネルデータを、予めDMA転送要
求に対して割り当てられたメモリ上から読み出して、D
MA転送を行っていた。なお、転送制御データは、上記
した転送制御レジスタに格納されるデータと同じデータ
であり、メモリが転送制御レジスタと同じ役割を果た
す。
In the conventional DMA transfer, (1) a large number of DMA transfer channel data composed of transfer control data, transfer source address data, transfer destination address data, and transfer word number data are arranged in a memory, and a corresponding DMA transfer is performed. If a transfer request occurs and the priority of the DMA transfer request is the highest, the DMA transfer channel data is read from a memory previously allocated to the DMA transfer request,
MA transfer was being performed. The transfer control data is the same data as the data stored in the transfer control register described above, and the memory plays the same role as the transfer control register.

【0006】また、従来のDMA転送では、(2) 複
数個のDMA転送チャネルデータから構成されるDMA
転送チャネルグループデータを複数個、メモリ上に配置
し、DMA転送チャネルグループデータの選択用のマス
クレジスタにDMA転送要求に対応するDMA転送チャ
ネルグループだけを選択するように設定し、選択された
DMA転送チャネルグループのDMA転送チャネルデー
タをメモリ上に配置した順序でメモリ上から読み出し
て、1つのDMA転送要求に対して複数組のDMA転送
を行っていた。
In the conventional DMA transfer, (2) a DMA composed of a plurality of DMA transfer channel data
A plurality of transfer channel group data are arranged in the memory, and a mask register for selecting the DMA transfer channel group data is set so that only the DMA transfer channel group corresponding to the DMA transfer request is selected. The DMA transfer channel data of the channel group is read from the memory in the order in which it is arranged on the memory, and a plurality of sets of DMA transfer are performed in response to one DMA transfer request.

【0007】なお、DMA転送チャネルは、転送制御デ
ータと転送元アドレスデータと転送先アドレスデータ
と、転送語数データとから構成されるDMA転送チャネ
ルデータで規定され、DMA転送チャネルグループは1
または複数個のDMA転送チャネルからなる。DMA転
送チャネルグループデータは、DMA転送チャネルグル
ープを構成する1または複数個のDMA転送チャネルを
それぞれ規定する1または複数組のDMA転送チャネル
データからなる。
The DMA transfer channel is defined by DMA transfer channel data including transfer control data, transfer source address data, transfer destination address data, and transfer word number data.
Alternatively, it comprises a plurality of DMA transfer channels. The DMA transfer channel group data includes one or a plurality of sets of DMA transfer channel data that respectively define one or a plurality of DMA transfer channels constituting the DMA transfer channel group.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記
(1)のような構成では、DMA転送要求に対応するD
MA転送チャネルデータを格納するメモリアドレスが固
定であるため、すべてのDMA転送要求を用いないにも
関わらず、DMA転送チャネルデータ格納のためのメモ
リ領域を占有してしまい、メモリ使用効率を悪化すると
いう問題点を有していた。
However, in the configuration such as the above (1), the D corresponding to the DMA transfer request
Since the memory address for storing the MA transfer channel data is fixed, the memory area for storing the DMA transfer channel data is occupied even though all DMA transfer requests are not used, and the memory use efficiency is deteriorated. There was a problem that.

【0009】さらに、DMA転送要求に対応するDMA
転送チャネルが1つしか設定できないため、DMA転送
要求に対して複数のDMA転送を行う場合、DMA転送
チャネルデータを書き換えながら、複数回DMA転送要
求を発生させなければならないという問題点を有してい
た。
Further, the DMA corresponding to the DMA transfer request
Since only one transfer channel can be set, when performing a plurality of DMA transfers in response to a DMA transfer request, there is a problem that a DMA transfer request must be generated a plurality of times while rewriting the DMA transfer channel data. Was.

【0010】また、上記(2)のような構成でも、1つ
のDMA転送要求で複数のDMA転送が可能ではある
が、DMA転送要求に対応するDMA転送チャネルグル
ープデータ内のDMA転送チャネルデータの個数が一律
に固定であるため、複数のDMA転送要求でたった1つ
のDMA転送を行う場合でも、DMA転送要求の個数分
の1組のDMA転送チャネルデータを設定したDMA転
送チャネルグループデータをメモリ内に格納する必要が
あり、DMA転送要求に対応するDMA転送チャネルグ
ループデータ内のDMA転送チャネルデータの個数が多
い場合、DMA転送チャネルグループデータ格納のため
のメモリ領域を占有してしまい、メモリ使用効率を悪化
するという問題点を有していた。
[0010] In the above configuration (2), a plurality of DMA transfers can be performed by one DMA transfer request. However, the number of DMA transfer channel data in the DMA transfer channel group data corresponding to the DMA transfer request is limited. Are uniformly fixed, even when performing only one DMA transfer with a plurality of DMA transfer requests, the DMA transfer channel group data in which one set of DMA transfer channel data corresponding to the number of DMA transfer requests is set is stored in the memory. When the number of DMA transfer channel data in the DMA transfer channel group data corresponding to the DMA transfer request is large, the memory area for storing the DMA transfer channel group data is occupied, and the memory use efficiency is reduced. It had the problem of getting worse.

【0011】上記(2)の従来のDMA処理装置の一例
を図5を参照しながら説明する。
An example of the conventional DMA processor (2) will be described with reference to FIG.

【0012】説明を簡単にするために、DMA処理装置
には第1のDMA転送チャネルグループ101、第2の
DMA転送チャネルグループ102、および第3のDM
A転送チャネルグループ103の3個が存在するものと
する。
For the sake of simplicity, the DMA processing apparatus includes a first DMA transfer channel group 101, a second DMA transfer channel group 102, and a third DM transfer channel group.
It is assumed that there are three A transfer channel groups 103.

【0013】第1のDMA転送チャネルグループ10
1、第2のDMA転送チャネルグループ102、第3の
DMA転送チャネルグループ103は、シーケンシャル
に処理される。
First DMA transfer channel group 10
The first, second DMA transfer channel group 102, and third DMA transfer channel group 103 are sequentially processed.

【0014】各DMA転送チャネルグループ101,1
02,103には、それぞれ最大4個のDMA転送チャ
ネルが格納できるものとする。この例では、第1のDM
A転送チャネルグループ101には、DMA転送チャネ
ル(A)1011とDMA転送チャネル(B)1012
との2個が存在し、第2のDMA転送チャネルグループ
102には、DMA転送チャネル(B)1022とDM
A転送チャネル(C)1023との2個が存在し、第3
のDMA転送チャネルグループ103には、DMA転送
チャネル(D)1034とDMA転送チャネル(E)1
035との2個が存在する場合を考える。
Each DMA transfer channel group 101, 1
02 and 103 can store a maximum of four DMA transfer channels, respectively. In this example, the first DM
The A transfer channel group 101 includes a DMA transfer channel (A) 1011 and a DMA transfer channel (B) 1012.
And the second DMA transfer channel group 102 includes DMA transfer channels (B) 1022 and DM
A transfer channel (C) 1023 and the third
The DMA transfer channel group 103 includes a DMA transfer channel (D) 1034 and a DMA transfer channel (E) 1
Let us consider a case where there are two such as 035.

【0015】なお、DMA転送チャネルデータ(B)1
012とDMA転送チャネルデータ(B)1022とは
同一の転送内容である。
Incidentally, DMA transfer channel data (B) 1
012 and the DMA transfer channel data (B) 1022 have the same transfer contents.

【0016】DMA転送チャネルグループ101,10
2,103およびDMA転送チャネル1011,101
2,1022,1023,1034,1035は、メモ
リ上に配置される。すなわち、メモリ上にDMA転送チ
ャネルグループデータ、DMA転送チャネルデータとし
て格納される。
DMA transfer channel groups 101 and 10
2 and 103 and DMA transfer channels 1011 and 101
2, 1022, 1023, 1034, and 1035 are arranged on the memory. That is, the data is stored as DMA transfer channel group data and DMA transfer channel data on the memory.

【0017】第1のDMA転送要求104によって、第
1のDMA転送チャネルグループ101に存在する2個
のDMA転送チャネル(A)1011と、DMA転送チ
ャネル(B)1012とを処理したいときは、DMA転
送チャネルグループ選択用マスクレジスタ107に第1
のDMA転送チャネルグループ101に対応するビット
のみをイネーブルに設定する。これによって、第1のD
MA転送チャネルグループ101に存在するDMA転送
チャネルがDMA転送チャネル(A)1011、DMA
転送チャネル(B)1012とメモリ内に配置された順
序で処理され、1つのDMA転送要求104に対して複
数チャネルのDMA転送が行われる。
When it is desired to process the two DMA transfer channels (A) 1011 and the DMA transfer channel (B) 1012 existing in the first DMA transfer channel group 101 by the first DMA transfer request 104, the The transfer channel group selection mask register 107 has the first
Only the bits corresponding to the DMA transfer channel group 101 are enabled. Thereby, the first D
DMA transfer channels existing in the MA transfer channel group 101 are DMA transfer channels (A) 1011 and DMA
The processing is performed in the order of the transfer channel (B) 1012 and the memory, and the DMA transfer of a plurality of channels is performed for one DMA transfer request 104.

【0018】同様に、第2のDMA転送要求105によ
って、第2のDMA転送チャネルグループ102に存在
する2個のDMA転送チャネル(B)1022と、DM
A転送チャネル(C)1023とを処理したいときは、
DMA転送チャネルグループ選択用マスクレジスタ10
7に第2のDMA転送チャネルグループ102に対応す
るビットのみをイネーブルに設定する。これによって、
第2のDMA転送チャネルグループ102に存在するD
MA転送チャネルがDMA転送チャネル(B)102
2、DMA転送チャネル(C)1023とメモリ内に設
定された順序で処理され、1つのDMA転送要求105
に対して複数チャネルのDMA転送が行われる。
Similarly, in response to the second DMA transfer request 105, the two DMA transfer channels (B) 1022 existing in the second DMA transfer channel
When you want to process the A transfer channel (C) 1023,
DMA transfer channel group selection mask register 10
7, only the bits corresponding to the second DMA transfer channel group 102 are enabled. by this,
D existing in the second DMA transfer channel group 102
The MA transfer channel is the DMA transfer channel (B) 102
2. Processing is performed in the order set in the DMA and the DMA transfer channel (C) 1023, and one DMA transfer request 105
, A plurality of channels of DMA transfer are performed.

【0019】さらに、第3のDMA転送要求106によ
って、DMA転送チャネル(A)1011と、DMA転
送チャネル(B)1012と、DMA転送チャネル
(D)1034と、DMA転送チャネル(E)1035
とを処理したいときは、DMA転送チャネルグループ選
択用マスクレジスタ107に第1のDMA転送チャネル
グループ101と第3のDMA転送チャネルグループ1
03とをイネーブルに設定する。これによって、まず第
1のDMA転送チャネルグループ101に存在するDM
A転送チャネルがDMA転送チャネル(A)1011、
DMA転送チャネル(B)1012の順序で処理され、
つぎに第3のDMA転送チャネルグループ103に存在
するDMA転送チャネルがDMA転送チャネル(D)1
034、DMA転送チャネル(E)1035とメモリ内
に設定された順序で処理され、1つのDMA転送要求1
06に対して複数チャネルのDMA転送が行われる。
Further, in response to the third DMA transfer request 106, a DMA transfer channel (A) 1011, a DMA transfer channel (B) 1012, a DMA transfer channel (D) 1034, and a DMA transfer channel (E) 1035.
When the first DMA transfer channel group 101 and the third DMA transfer channel group 1 are stored in the DMA transfer channel group selection mask register 107,
03 is enabled. As a result, first, the DM existing in the first DMA transfer channel group 101
A transfer channel is a DMA transfer channel (A) 1011;
Processed in the order of the DMA transfer channel (B) 1012,
Next, the DMA transfer channel existing in the third DMA transfer channel group 103 is the DMA transfer channel (D) 1
034, one DMA transfer request 1 is processed in the order set in the DMA transfer channel (E) 1035 and the memory.
06, DMA transfer of a plurality of channels is performed.

【0020】上記のDMA処理装置では、DMA転送チ
ャネルグループ選択用マスクレジスタ107の設定によ
って、DMA転送を行うDMA転送チャネルを選択する
ことが可能であるが、あるDMA転送チャネルグループ
に存在する複数のDMAチャネルのうちの1個のDMA
転送チャネルだけを選択して処理することができない。
そのため、処理すべきDMA転送チャネルのみからなる
DMA転送チャネルグループを別途メモリ上に準備しな
ければならないため、DMA処理装置で使用するメモリ
領域が大きくなってしまうという問題点を有していた。
In the above-described DMA processing apparatus, a DMA transfer channel for performing a DMA transfer can be selected by setting the DMA transfer channel group selection mask register 107. However, a plurality of DMA transfer channels existing in a certain DMA transfer channel group can be selected. DMA of one of the DMA channels
It is not possible to select and process only the transfer channel.
For this reason, a DMA transfer channel group consisting of only the DMA transfer channels to be processed must be separately prepared on the memory, and there is a problem that the memory area used in the DMA processing device becomes large.

【0021】また、上記のDMA転送例のDMA転送チ
ャネル(B)1012とDMA転送チャネル(B)10
22のように、複数のDMA転送チャネルグループに共
通のDMA転送チャネルが存在する場合にも、DMA転
送チャネルグループ間でDMA転送チャネルの共有がで
きないため、DMA処理装置で使用するメモリ領域が大
きくなってしまうという問題点を有していた。
The DMA transfer channel (B) 1012 and the DMA transfer channel (B) 1012 in the above-described DMA transfer example.
Even when a plurality of DMA transfer channel groups have a common DMA transfer channel as shown in FIG. 22, the DMA transfer channel cannot be shared between the DMA transfer channel groups. Had the problem that

【0022】さらに、1つのDMA転送チャネルグルー
プに存在可能なDMA転送チャネル数の最大値を小さく
すると、DMA転送チャネルの選択は容易になるが、D
MA転送チャネルグループ選択用のマスクレジスタのビ
ット数がDMA転送チャネルグループの個数だけ必要と
なるため、ハードウェアを増加してしまうし、逆に1つ
のDMA転送チャネルグループに存在可能なDMA転送
チャネル数の最大値を大きくすると、DMA転送チャネ
ルグループ選択用のマスクレジスタは小さくて済むが、
DMA転送チャネルの細かい選択設定が困難になり、そ
の上、DMA転送チャネルグループに存在可能なDMA
転送チャネル数の最大値までのDMA転送チャネルをほ
とんど使っていない場合、メモリの使用効率が非常に悪
いという問題点を有していた。
Further, when the maximum value of the number of DMA transfer channels that can exist in one DMA transfer channel group is reduced, the selection of the DMA transfer channel becomes easy.
Since the number of bits of the mask register for selecting the MA transfer channel group is required by the number of DMA transfer channel groups, the number of hardware increases, and conversely, the number of DMA transfer channels that can exist in one DMA transfer channel group Is larger, the mask register for selecting the DMA transfer channel group can be smaller,
It becomes difficult to make fine selection settings of the DMA transfer channel, and moreover, the DMA that can exist in the DMA transfer channel group
If the DMA transfer channels up to the maximum value of the number of transfer channels are hardly used, there is a problem that the use efficiency of the memory is very poor.

【0023】したがって、本発明の目的は、豊富な種類
のDMA転送設定をより少ないメモリ消費で実現できる
DMA処理方法およびDMA処理装置を提供することで
ある。
Accordingly, it is an object of the present invention to provide a DMA processing method and a DMA processing apparatus capable of realizing a wide variety of DMA transfer settings with less memory consumption.

【0024】[0024]

【課題を解決するための手段】本発明のDMA処理方法
は、DMA転送制御データとDMA転送語数データとD
MA転送元アドレスデータとDMA転送先アドレスデー
タとからなる1組のDMA転送チャネルデータで規定さ
れるDMA転送チャネルをDMA転送単位として、DM
A転送を行うDMA処理方法であって、1個のDMA転
送チャネルグループを構成する1または複数個のDMA
転送チャネルをそれぞれ規定する1または複数組のDM
A転送チャネルデータと、1または複数個のDMA転送
チャネルの各々の使用/不使用を選択するDMA転送チ
ャネル選択用マスクデータとから構成されるDMA転送
チャネルグループデータを複数個のDMA転送チャネル
グループに対応して複数個設定し、複数種類のDMA転
送要求にそれぞれ対応して複数個のDMA転送チャネル
グループの各々の使用/不使用を選択するDMA転送チ
ャネルグループ選択用マスクデータを設定するととも
に、複数種類のDMA転送要求にそれぞれ対応してDM
A転送チャネル選択用マスクデータを設定し、複数種類
のDMA転送要求にそれぞれ対応して設定されたDMA
転送チャネルグループ選択用マスクデータに従って複数
個のDMA転送チャネルグループの各々の使用/不使用
を選択し、使用が選択されたDMA転送チャネルグルー
プ毎に複数種類のDMA転送要求にそれぞれ対応して設
定されたDMA転送チャネル選択用マスクデータに従っ
て複数個のDMA転送チャネルの各々の使用/不使用を
選択し、使用が選択されたDMA転送チャネルグループ
毎にそれぞれ使用が選択されたDMA転送チャネルのD
MA転送処理を実行することを特徴とする。
SUMMARY OF THE INVENTION A DMA processing method according to the present invention comprises the steps of:
A DMA transfer channel defined by a set of DMA transfer channel data including MA transfer source address data and DMA transfer destination address data is used as a DMA transfer unit,
A DMA processing method for performing A transfer, wherein one or more DMAs forming one DMA transfer channel group
One or more sets of DMs each defining a transfer channel
DMA transfer channel group data comprising A transfer channel data and DMA transfer channel selection mask data for selecting use / non-use of each of one or a plurality of DMA transfer channels is converted into a plurality of DMA transfer channel groups. A plurality of DMA transfer channel groups are set correspondingly, and a plurality of DMA transfer channel group selection mask data for selecting use / non-use of each of the plurality of DMA transfer channel groups are set corresponding to a plurality of types of DMA transfer requests. DM for each type of DMA transfer request
A transfer channel selection mask data is set, and DMAs set corresponding to a plurality of types of DMA transfer requests are set.
According to the transfer channel group selection mask data, use / non-use of each of the plurality of DMA transfer channel groups is selected, and each of the selected DMA transfer channel groups is set corresponding to a plurality of types of DMA transfer requests. Use / non-use of each of the plurality of DMA transfer channels is selected according to the DMA transfer channel selection mask data, and D of the DMA transfer channel whose use is selected for each of the selected DMA transfer channel groups.
MA transfer processing is performed.

【0025】この方法によれば、複数種類のDMA転送
要求にそれぞれ対応して複数個のDMA転送チャネルグ
ループの各々の使用/不使用を選択するDMA転送チャ
ネルグループ選択用マスクデータを設定するとともに、
複数種類のDMA転送要求にそれぞれ対応して複数個の
DMA転送チャネルの各々の使用/不使用を選択するD
MA転送チャネル選択用マスクデータを設定することに
より、1つのDMA転送要求に対して複数のDMA転送
処理が可能なだけでなく、複数のDMA転送チャネルを
複数のDMA転送要求間で共有できるため、豊富な種類
のDMA転送設定をより少ないメモリ消費で実現でき
る。
According to this method, mask data for selecting a DMA transfer channel group for selecting use / non-use of each of the plurality of DMA transfer channel groups is set in response to a plurality of types of DMA transfer requests, respectively.
D for selecting use / non-use of each of a plurality of DMA transfer channels in response to a plurality of types of DMA transfer requests, respectively
By setting the MA transfer channel selection mask data, not only a plurality of DMA transfer processes can be performed for one DMA transfer request, but also a plurality of DMA transfer channels can be shared among the plurality of DMA transfer requests. Various types of DMA transfer settings can be realized with less memory consumption.

【0026】請求項2記載のDMA処理方法は、請求項
1記載のDMA処理方法において、DMA転送チャネル
データが設定されていることを示すデータを複数のDM
A転送チャネルグループ毎にチャネルグループ確認デー
タとして設定し、チャネルグループ確認データとDMA
転送チャネルグループ選択用マスクデータの論理積でD
MA転送チャネルグループを選択することを特徴とす
る。
According to a second aspect of the present invention, in the DMA processing method of the first aspect, data indicating that DMA transfer channel data is set is transmitted to a plurality of DMs.
A Set as channel group confirmation data for each transfer channel group,
D is the logical product of the transfer channel group selection mask data
It is characterized in that an MA transfer channel group is selected.

【0027】この方法によれば、DMA転送チャネルデ
ータが存在しないDMA転送チャネルグループを選択す
るのを防止することができ、DMA転送チャネルデータ
の未設定による誤ったメモリアクセスを防止することが
できる。
According to this method, it is possible to prevent a DMA transfer channel group in which no DMA transfer channel data exists from being selected, and to prevent an erroneous memory access due to unset DMA transfer channel data.

【0028】本発明のDMA処理装置は、DMA転送制
御データとDMA転送語数データとDMA転送元アドレ
スデータとDMA転送先アドレスデータとからなる1組
のDMA転送チャネルデータで規定されるDMA転送チ
ャネルをDMA転送単位として、DMA転送を行うDM
A処理装置であって、1個のDMA転送チャネルグルー
プを構成する1または複数個のDMA転送チャネルをそ
れぞれ規定する1または複数組のDMA転送チャネルデ
ータと、1または複数個のDMA転送チャネルの各々の
使用/不使用を選択するDMA転送チャネル選択用マス
クデータとから構成されるDMA転送チャネルグループ
データが複数個のDMA転送チャネルグループに対応し
て格納され、複数種類のDMA転送要求にそれぞれ対応
してDMA転送チャネル選択用マスクデータが設定され
るメモリと、複数種類のDMA転送要求にそれぞれ対応
して設定されて複数個のDMA転送チャネルグループの
各々の使用/不使用を選択するDMA転送チャネルグル
ープ選択用マスクデータを格納するDMA転送チャネル
グループマスクレジスタと、複数種類のDMA転送要求
にそれぞれ対応して設定されたDMA転送チャネルグル
ープ選択用マスクデータに従って複数個のDMA転送チ
ャネルグループの各々の使用/不使用を選択し、使用が
選択されたDMA転送チャネルグループ毎に複数種類の
DMA転送要求にそれぞれ対応して設定されたDMA転
送チャネル選択用マスクデータに従って複数個のDMA
転送チャネルの各々の使用/不使用を選択し、使用が選
択されたDMA転送チャネルグループ毎にそれぞれ使用
が選択されたDMA転送チャネルのDMA転送処理を実
行するDMA転送ブロックとを備えている。
The DMA processing device of the present invention includes a DMA transfer channel defined by a set of DMA transfer channel data including DMA transfer control data, DMA transfer word number data, DMA transfer source address data, and DMA transfer destination address data. DM that performs DMA transfer as a DMA transfer unit
A processing apparatus, wherein one or a plurality of sets of DMA transfer channel data respectively defining one or a plurality of DMA transfer channels constituting one DMA transfer channel group, and each of the one or a plurality of DMA transfer channels DMA transfer channel group data composed of DMA transfer channel selection mask data for selecting use / non-use of a DMA transfer channel group is stored in correspondence with a plurality of DMA transfer channel groups, and each of the DMA transfer channel group data corresponds to a plurality of types of DMA transfer requests. And a DMA transfer channel group set corresponding to a plurality of types of DMA transfer requests to select use / non-use of a plurality of DMA transfer channel groups. DMA transfer channel group mask level for storing selection mask data And selecting whether to use each of the plurality of DMA transfer channel groups according to the DMA transfer channel group selection mask data set corresponding to each of the plurality of types of DMA transfer requests. A plurality of DMAs are transferred in accordance with DMA transfer channel selection mask data set corresponding to a plurality of types of DMA transfer requests for each transfer channel group.
A DMA transfer block for selecting use / non-use of each of the transfer channels and executing a DMA transfer process of the DMA transfer channel whose use is selected for each of the DMA transfer channel groups whose use is selected.

【0029】この構成によれば、複数個のDMA転送チ
ャネルグループの各々の使用/不使用を選択するための
DMA転送チャネルグループ選択用マスクデータを格納
するDMA転送チャネルグループマスクレジスタを設け
るとともに、メモリに書き込むDMA転送チャネルグル
ープデータに複数個のDMA転送チャネルの各々の使用
/不使用を選択するためのDMA転送チャネル選択用マ
スクデータを含め、DMA転送ブロックはDMA転送チ
ャネルグループ選択用マスクデータに従って複数個のD
MA転送チャネルグループの各々の使用/不使用を選択
し、かつ使用が選択されたDMA転送チャネルグループ
毎にDMA転送チャネル選択用マスクデータに従って複
数個のDMA転送チャネルの各々の使用/不使用を選択
し、使用が選択されたDMA転送チャネルグループ毎に
それぞれ使用が選択されたDMA転送チャネルのDMA
転送処理を実行するので、1つのDMA転送要求に対し
て複数のDMA転送処理が可能なだけでなく、複数のD
MA転送チャネルデータを複数のDMA転送要求間で共
有できるため、豊富な種類のDMA転送設定をより少な
いメモリ消費で実現できる。
According to this configuration, the DMA transfer channel group mask register for storing the DMA transfer channel group selection mask data for selecting use / non-use of each of the plurality of DMA transfer channel groups is provided, and the memory is provided. The DMA transfer channel group data to be written includes DMA transfer channel selection mask data for selecting use / non-use of each of the plurality of DMA transfer channels, and a plurality of DMA transfer blocks are provided in accordance with the DMA transfer channel group selection mask data. D
Use / non-use of each of the MA transfer channel groups is selected, and use / non-use of each of the plurality of DMA transfer channels is selected according to the DMA transfer channel selection mask data for each of the DMA transfer channel groups whose use is selected. The DMA of the DMA transfer channel whose use is selected for each of the DMA transfer channel groups whose use is selected
Since the transfer process is executed, not only a plurality of DMA transfer processes can be performed for one DMA transfer request, but also a plurality of D
Since the MA transfer channel data can be shared among a plurality of DMA transfer requests, a wide variety of DMA transfer settings can be realized with less memory consumption.

【0030】請求項4記載のDMA処理装置は、請求項
3記載のDMA処理装置において、複数のDMA転送チ
ャネルグループ毎にメモリへDMA転送チャネルデータ
が格納されていることを示すデータをチャネルグループ
確認データとして格納するDMAデータ確認レジスタを
設け、DMA転送ブロックがチャネルグループ確認デー
タとDMA転送チャネルグループ選択用マスクデータの
論理積でDMA転送チャネルグループを選択するように
している。
According to a fourth aspect of the present invention, in the DMA processing apparatus of the third aspect, data indicating that the DMA transfer channel data is stored in the memory for each of the plurality of DMA transfer channel groups is confirmed by the channel group. A DMA data confirmation register for storing data is provided, and the DMA transfer block selects a DMA transfer channel group by the logical product of the channel group confirmation data and the DMA transfer channel group selection mask data.

【0031】この構成によれば、DMA転送チャネルデ
ータが存在しないDMA転送チャネルグループを選択す
るのを防止することができ、DMA転送チャネルデータ
の未設定による誤ったメモリアクセスを防止することが
できる。
According to this configuration, it is possible to prevent a DMA transfer channel group in which no DMA transfer channel data exists from being selected, and to prevent an erroneous memory access due to unset DMA transfer channel data.

【0032】[0032]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図面を参照しながら説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0033】図1は、4個のDMA転送チャネルグルー
プを有し、2個のDMA転送チャネルグループを使用
し、5種類のDMA転送を行うDMA処理装置で使用さ
れるメモリ内に格納されるデータの一例を示す模式図で
ある。
FIG. 1 shows data stored in a memory used in a DMA processor which has four DMA transfer channel groups, uses two DMA transfer channel groups, and performs five types of DMA transfers. It is a schematic diagram which shows an example of.

【0034】図1において、20,21,22は、メモ
リ内に格納されるDMA転送チャネルグループデータで
あり、メモリ上の連続した領域に配置される。200,
210,220は、DMA転送チャネルの各々の使用/
不使用を選択するDMA転送チャネル選択用マスクデー
タである。2001,2002,2003,2004,
2101は、DMAの転送単位を表すDMA転送チャネ
ルに対応したDMA転送チャネルデータである。200
11,20021,20031,20041,2101
1は、DMA転送を行う場合のデータ転送元を示す転送
元アドレスデータである。20012,20022,2
0032,20042,21012は、DMA転送を行
う場合のデータ転送先を示す転送先アドレスデータであ
る。図示はしていないが、DMA転送制御データとDM
A転送語数データも各DMA転送チャネルデータ200
1,2002,2003,2004,2101に含まれ
ている。
In FIG. 1, DMA transfer channel group data 20, 21 and 22 stored in the memory are arranged in a continuous area on the memory. 200,
210, 220 are each used / used of the DMA transfer channel.
DMA transfer channel selection mask data for selecting non-use. 2001, 2002, 2003, 2004
Reference numeral 2101 denotes DMA transfer channel data corresponding to a DMA transfer channel indicating a DMA transfer unit. 200
11, 20021, 20031, 20041, 2101
Reference numeral 1 denotes transfer source address data indicating a data transfer source when performing a DMA transfer. 20012, 2202, 2
0032, 20042, and 21012 are transfer destination address data indicating the data transfer destination when performing the DMA transfer. Although not shown, the DMA transfer control data and the DM
A transfer word number data is also stored in each DMA transfer channel data 200.
1, 2002, 2003, 2004, and 2101.

【0035】ここで、DMA転送チャネルグループデー
タをメモリ上の連続領域に配置することの意味について
説明する。DMA転送チャネルグループデータをメモリ
上の連続領域に配置する意味は、先頭のDMA転送チャ
ネルグループのアドレスさえ管理すれば、後続のDMA
転送チャネルグループデータのアドレスを、転送チャネ
ルグループデータのサイズから計算で導き出せるので、
無駄なデータを管理する必要がなくなるということであ
る。
Here, the meaning of arranging the DMA transfer channel group data in a continuous area on the memory will be described. Arranging the DMA transfer channel group data in a continuous area on the memory means that if only the address of the first DMA transfer channel group is managed, the subsequent DMA transfer channel group can be used.
Since the address of the transfer channel group data can be derived from the size of the transfer channel group data by calculation,
This means that there is no need to manage useless data.

【0036】逆に、連続領域に配置しなかった場合に
は、すべてのDMA転送チャネルデータのアドレスを管
理する必要があり、レジスタやメモリを多く必要とする
ことになる。そのため、上記のように連続領域に配置し
ている。
On the other hand, if they are not arranged in a continuous area, it is necessary to manage the addresses of all DMA transfer channel data, which requires many registers and memories. Therefore, they are arranged in the continuous area as described above.

【0037】図2は、DMA処理装置の構成の一例を示
すブロック図である。図2において、300はDMA転
送制御ブロックである。
FIG. 2 is a block diagram showing an example of the configuration of the DMA processing device. In FIG. 2, reference numeral 300 denotes a DMA transfer control block.

【0038】301はメモリ上のDMA転送チャネルグ
ループデータの先頭アドレスを格納するDMA転送チャ
ネルグループ先頭アドレスレジスタである。
Reference numeral 301 denotes a DMA transfer channel group head address register for storing the head address of the DMA transfer channel group data on the memory.

【0039】302はDMA転送処理時にメモリ上のD
MA転送チャネルデータを格納するDMA転送チャネル
テンポラリレジスタである。
Reference numeral 302 denotes D on the memory during DMA transfer processing.
This is a DMA transfer channel temporary register that stores MA transfer channel data.

【0040】303はメモリ上にDMA転送チャネルデ
ータが格納されていることを示すデータをDMA転送チ
ャネルグループ毎にチャネルグループ確認データとして
記憶するDMAデータ確認レジスタである。
Numeral 303 denotes a DMA data confirmation register for storing data indicating that DMA transfer channel data is stored in the memory as channel group confirmation data for each DMA transfer channel group.

【0041】304は複数種類のDMA転送要求にそれ
ぞれ対応して設定される複数個のDMA転送チャネルグ
ループの各々の使用/不使用を選択するDMA転送チャ
ネルグループ選択用マスクデータを格納するDMA転送
チャネルグループマスクレジスタである。
A DMA transfer channel 304 stores DMA transfer channel group selection mask data for selecting use / non-use of each of a plurality of DMA transfer channel groups set corresponding to a plurality of types of DMA transfer requests. This is a group mask register.

【0042】305はDMA転送許可情報を格納するD
MA転送イネーブルレジスタである。
Reference numeral 305 denotes D for storing DMA transfer permission information.
This is an MA transfer enable register.

【0043】306は制御線である。307はデータバ
スである。308はアドレスバスである。
Reference numeral 306 denotes a control line. 307 is a data bus. 308 is an address bus.

【0044】図2には示されていないが、一度に転送す
る語数、複数のDMA転送が同時に行われる場合に連続
転送するのか分割転送するのかを示す転送形態、転送終
了後に割込みを発生させるかどうかを示す割込み制御な
どのDMA転送の詳細な設定を行うDMA転送制御レジ
スタが情報処理装置に含まれる。
Although not shown in FIG. 2, the number of words to be transferred at one time, a transfer form indicating whether to perform continuous transfer or divided transfer when a plurality of DMA transfers are performed simultaneously, and whether an interrupt should be generated after the transfer is completed The information processing apparatus includes a DMA transfer control register for performing detailed settings of DMA transfer such as interrupt control indicating whether the DMA transfer is performed.

【0045】また、図2には示されていないが、情報処
理装置に含まれる上記したメモリには、1個のDMA転
送チャネルグループを構成する1または複数個のDMA
転送チャネルをそれぞれ規定する1または複数組のDM
A転送チャネルデータと、1または複数個のDMA転送
チャネルの各々の使用/不使用を選択するDMA転送チ
ャネル選択用マスクデータとから構成されるDMA転送
チャネルグループデータが複数個のDMA転送チャネル
グループに対応して格納され、複数種類のDMA転送要
求にそれぞれ対応してDMA転送チャネル選択用マスク
データが設定され、DMA処理装置の構成要素となる。
上記のDMA転送チャネルデータは、DMA転送制御デ
ータとDMA転送語数データとDMA転送元アドレスデ
ータとDMA転送先アドレスデータとから構成され、D
MA転送チャネルが1個のDMA転送単位となる。
Although not shown in FIG. 2, one or a plurality of DMAs forming one DMA transfer channel group are stored in the memory included in the information processing apparatus.
One or more sets of DMs each defining a transfer channel
DMA transfer channel group data composed of A transfer channel data and DMA transfer channel selection mask data for selecting use / non-use of each of one or a plurality of DMA transfer channels is divided into a plurality of DMA transfer channel groups. DMA transfer channel selection mask data is set in correspondence with each of a plurality of types of DMA transfer requests and becomes a component of the DMA processor.
The DMA transfer channel data includes DMA transfer control data, DMA transfer word number data, DMA transfer source address data, and DMA transfer destination address data.
The MA transfer channel is one DMA transfer unit.

【0046】また、上記したDMA転送ブロック300
は、複数種類のDMA転送要求にそれぞれ対応して設定
されたDMA転送チャネルグループ選択用マスクデータ
に従って複数個のDMA転送チャネルグループの各々の
使用/不使用を選択し、使用が選択されたDMA転送チ
ャネルグループ毎に複数種類のDMA転送要求にそれぞ
れ対応して設定されたDMA転送チャネル選択用マスク
データに従って複数個のDMA転送チャネルの各々の使
用/不使用を選択し、使用が選択されたDMA転送チャ
ネルグループ毎にそれぞれ使用が選択されたDMA転送
チャネルのDMA転送処理を実行する。
The DMA transfer block 300 described above
Selects the use / non-use of each of the plurality of DMA transfer channel groups according to the DMA transfer channel group selection mask data set respectively corresponding to the plurality of types of DMA transfer requests, and selects the DMA transfer to be used. DMA transfer in which use of each of the plurality of DMA transfer channels is selected according to DMA transfer channel selection mask data set corresponding to each of a plurality of types of DMA transfer requests for each channel group, and the DMA transfer whose use is selected. The DMA transfer process of the DMA transfer channel whose use is selected for each channel group is executed.

【0047】図3は、DMA処理装置、CPU、2つの
外部デバイス、メモリから構成される情報処理装置の一
例を示すブロック図である。図4において、400はC
PUである。401は外部デバイスである。402はメ
モリである。403は外部デバイス401−メモリ40
2間のデータ転送が要求されると、CPU400に代っ
てデータ転送を制御するDMA処理装置である。404
はアドレスバスである。405はデータバスである。
FIG. 3 is a block diagram showing an example of an information processing apparatus comprising a DMA processing device, a CPU, two external devices, and a memory. In FIG. 4, 400 is C
PU. Reference numeral 401 denotes an external device. 402 is a memory. 403 is an external device 401-memory 40
A DMA processing device that controls data transfer in place of the CPU 400 when data transfer between the two is requested. 404
Is an address bus. 405 is a data bus.

【0048】406はDMA処理装置403からCPU
400へのデータ転送要求信号である。407は外部デ
バイス401からDMA処理装置403へのデータ転送
要求信号である。408はCPU400からDMA処理
装置403へのデータ転送アクノリッジ信号である。4
09はDMA処理装置403から外部デバイス401へ
のデータ転送アクノリッジ信号である。メモリ402に
は、DMA転送チャネルグループデータと転送データと
が存在する。
Reference numeral 406 denotes a CPU from the DMA processing device 403
400 is a data transfer request signal. Reference numeral 407 denotes a data transfer request signal from the external device 401 to the DMA processing device 403. Reference numeral 408 denotes a data transfer acknowledge signal from the CPU 400 to the DMA processing device 403. 4
09 is a data transfer acknowledge signal from the DMA processing device 403 to the external device 401. The memory 402 has DMA transfer channel group data and transfer data.

【0049】図4は、本発明の実施の形態において、あ
るソフトウェアで5種類のDMA転送をシーケンシャル
に実行する場合の例を示した模式図である。図4におい
て、50はメモリ上の第1のDMA転送チャネルグルー
プ、51はメモリ上の第2のDMA転送チャネルグルー
プ、52はメモリ上の第3のDMA転送チャネルグルー
プであり、これらは図1におけるDMA転送チャネルグ
ループデータ20,21,22を有する。53はDMA
転送チャネルグループマスクレジスタである。
FIG. 4 is a schematic diagram showing an example in which five types of DMA transfer are sequentially executed by a certain software in the embodiment of the present invention. In FIG. 4, reference numeral 50 denotes a first DMA transfer channel group on the memory, 51 denotes a second DMA transfer channel group on the memory, and 52 denotes a third DMA transfer channel group on the memory. It has DMA transfer channel group data 20, 21, and 22. 53 is DMA
This is a transfer channel group mask register.

【0050】500は第1のDMA転送チャネル選択用
マスクデータ、510は第2のDMA転送チャネル選択
用マスクデータであり、これらは図1におけるDMA転
送チャネル選択用マスクデータ200,210に該当す
る。
Reference numeral 500 denotes mask data for selecting a first DMA transfer channel, and reference numeral 510 denotes mask data for selecting a second DMA transfer channel. These correspond to the mask data 200 and 210 for selecting a DMA transfer channel in FIG.

【0051】501は外部デバイス401−メモリ40
2間のDMAデータ転送を行う第1のDMA転送チャネ
ル(A)、502は外部デバイス401−メモリ402
間のDMAデータ転送を行う第2のDMA転送チャネル
(B)、513は外部デバイス401−メモリ402間
のDMAデータ転送を行う第3のDMA転送チャネル
(C)、504はメモリ402内でのDMAデータ転送
を行う第4のDMA転送チャネル(D)、505はメモ
リ402−外部デバイス401間のDMAデータ転送を
行う第5のDMA転送チャネル(E)である。これら
は、図1のDMA転送チャネルデータ2001,200
2,2101,2003,2004を有する。
Reference numeral 501 denotes the external device 401 and the memory 40
A first DMA transfer channel (A) 502 for performing DMA data transfer between the two, an external device 401 and a memory 402
A second DMA transfer channel (B) 513 for transferring DMA data between the external device 401 and the memory 402; a third DMA transfer channel (C) for transferring DMA data between the external device 401 and the memory 402; A fourth DMA transfer channel (D) for performing data transfer, 505 is a fifth DMA transfer channel (E) for performing DMA data transfer between the memory 402 and the external device 401. These are the DMA transfer channel data 2001 and 200 in FIG.
2,2101,2003,2004.

【0052】そして、図4は、上記した5種類のデータ
転送をあるソフトウェアで以下のように実行する場合を
示している。
FIG. 4 shows a case where the above-described five types of data transfer are executed by a certain software as follows.

【0053】すなわち、最初に第1のDMA転送要求5
06によって、第1のDMA転送チャネル(A)501
によるDMA転送、第2のDMA転送チャネル(B)5
02によるDMA転送というように、シーケンシャルに
DMA転送を行う。
That is, first, the first DMA transfer request 5
06, the first DMA transfer channel (A) 501
DMA transfer by the second DMA transfer channel (B) 5
The DMA transfer is performed sequentially, such as the DMA transfer by 02.

【0054】つぎに、第2のDMA転送要求507によ
って、第2のDMA転送チャネル(B)502によるD
MA転送、第3のDMA転送チャネル(C)513によ
るDMA転送というように、シーケンシャルにDMA転
送を行う。
Next, in response to the second DMA transfer request 507, D by the second DMA transfer channel (B) 502
DMA transfer is performed sequentially, such as MA transfer and DMA transfer using the third DMA transfer channel (C) 513.

【0055】つぎに、第3のDMA転送要求508によ
って、第1のDMA転送チャネル(A)501によるD
MA転送、第2のDMA転送チャネル(B)502によ
るDMA転送、第4のDMA転送チャネル(D)504
によるDMA転送、第5のDMA転送チャネル(E)5
05によるDMA転送というように、シーケンシャルに
DMA転送を行う。
Next, in response to the third DMA transfer request 508, D by the first DMA transfer channel (A) 501 is set.
MA transfer, DMA transfer by the second DMA transfer channel (B) 502, fourth DMA transfer channel (D) 504
DMA transfer by the fifth DMA transfer channel (E) 5
The DMA transfer is performed sequentially, such as the DMA transfer according to E.05.

【0056】以上のように構成されたDMA処理装置に
ついて、以下図1、図2、図3および図4を用いてその
動作を説明する。
The operation of the above-configured DMA processing device will be described below with reference to FIGS. 1, 2, 3 and 4.

【0057】説明を簡単にするために、第1のDMA転
送要求506と第2のDMA転送要求507は同時に発
生せず、また第1のDMA転送要求506と第3のDM
A転送要求508も同時に発生せず、さらに第2のDM
A転送要求507と第3のDMA転送要求508も同時
に発生しないとする。また、転送ブロック数はすべて同
じであり、予めDMA処理装置403に転送ブロック数
が固定の転送機能が備えられているものとする。なお、
転送ブロック数というのは、DMA転送の単位で、8ビ
ット(1バイト)、16ビット(1ワード)等のことで
ある。
To simplify the description, the first DMA transfer request 506 and the second DMA transfer request 507 do not occur at the same time, and the first DMA transfer request 506 and the third DMA transfer request 506 do not occur simultaneously.
A transfer request 508 does not occur at the same time, and the second DM
It is assumed that the A transfer request 507 and the third DMA transfer request 508 do not occur at the same time. The number of transfer blocks is the same, and it is assumed that the DMA processor 403 has a transfer function in which the number of transfer blocks is fixed in advance. In addition,
The number of transfer blocks is a unit of DMA transfer, such as 8 bits (1 byte), 16 bits (1 word), and the like.

【0058】(1) 第1のDMA転送チャネル(A)
501、第2のDMA転送チャネル(B)502、第3
のDMA転送チャネル(C)513、第4のDMA転送
チャネル(D)504、第5のDMA転送チャネル
(E)505によるDMA転送を実行するように、各D
MA転送チャネルデータ2001,2002,200
3,2004,2101の転送設定を行う。
(1) First DMA transfer channel (A)
501, second DMA transfer channel (B) 502, third
Each DMA transfer channel (C) 513, the fourth DMA transfer channel (D) 504, and the fifth DMA transfer channel (E) 505 perform DMA transfer.
MA transfer channel data 2001, 2002, 200
3, 2004 and 2101 are set.

【0059】同時にDMAデータ確認レジスタ303の
各DMA転送チャネルグループデータ20,21,22
(DMA転送チャネルグループ50,51,52)のう
ちでDMA転送チャネルデータが設定されたDMA転送
チャネルグループデータ20,21に対応するビットに
イネーブルフラグを立てる。
At the same time, each DMA transfer channel group data 20, 21, 22 in the DMA data confirmation register 303
In the (DMA transfer channel groups 50, 51, 52), an enable flag is set for bits corresponding to the DMA transfer channel group data 20, 21 in which the DMA transfer channel data is set.

【0060】DMA転送チャネルの使用/不使用を選択
する各DMA転送チャネル選択用マスクデータ200,
210,220には、ディセーブルを設定し、DMA転
送チャネルグループ先頭アドレスレジスタ301には、
DMA転送チャネルグループデータ20の先頭アドレス
を設定し、DMA転送チャネルグループマスクレジスタ
304には、全DMA転送チャネルグループデータ2
0,21,22に対してディセーブルの設定を行う。
Each DMA transfer channel selection mask data 200 for selecting use / non-use of the DMA transfer channel,
Disable is set to 210 and 220, and the DMA transfer channel group head address register 301 is set to
The start address of the DMA transfer channel group data 20 is set, and the DMA transfer channel group mask register 304 stores all DMA transfer channel group data 2.
Disable is set for 0, 21 and 22.

【0061】なお、DMA転送チャネルグループ先頭ア
ドレスレジスタ301に設定したDMA転送チャネルグ
ループデータ20の先頭アドレスは、以下のように使用
される。すなわち、DMA転送チャネルグループ先頭ア
ドレスレジスタ301には、メモリ上に連続配置したD
MA転送チャネルグループデータの先頭アドレスを記憶
しているが、このアドレスをもとに、後続のDMA転送
チャネルグループデータの格納アドレスを計算してデー
タにアクセスする。
The start address of the DMA transfer channel group data 20 set in the DMA transfer channel group start address register 301 is used as follows. That is, the DMA transfer channel group head address register 301 stores the D
The head address of the MA transfer channel group data is stored. Based on this address, the storage address of the subsequent DMA transfer channel group data is calculated to access the data.

【0062】(2) 第1のDMA転送要求506が発
生すると、DMA転送チャネルグループマスクレジスタ
304(DMA転送チャネルグループマスクレジスタ5
3)に、DMA転送チャネルグループ選択用マスクデー
タとして、DMA転送チャネルグループデータ20(D
MA転送チャネルグループデータ50)だけにイネーブ
ルを設定し、DMA転送チャネルグループデータ20の
DMA転送チャネル選択用マスクデータ200(DMA
転送チャネル選択用マスクデータ500)のビットパタ
ーンを、DMA転送チャネルデータ2001,2002
(DMA転送チャネルデータ501,502)にイネー
ブルを設定し、DMA転送イネーブルレジスタ305を
イネーブルに設定する。
(2) When the first DMA transfer request 506 occurs, the DMA transfer channel group mask register 304 (the DMA transfer channel group mask register 5
3) As DMA transfer channel group selection mask data, DMA transfer channel group data 20 (D
The enable is set only for the MA transfer channel group data 50), and the DMA transfer channel selection mask data 200 (DMA
The bit pattern of the transfer channel selection mask data 500) is transferred to the DMA transfer channel data 2001, 2002.
(DMA transfer channel data 501 and 502) are enabled, and the DMA transfer enable register 305 is enabled.

【0063】DMA転送イネーブルレジスタ305がイ
ネーブルに設定されると、DMA制御ブロック300
は、DMAデータ確認レジスタ303の設定値と、DM
A転送チャネルグループマスクレジスタ304の設定値
との論理積を演算して、DMA転送チャネルグループデ
ータ20を選択する。
When the DMA transfer enable register 305 is set to be enabled, the DMA control block 300
Is the value set in the DMA data confirmation register 303,
The logical AND with the set value of the A transfer channel group mask register 304 is calculated to select the DMA transfer channel group data 20.

【0064】つぎに、選択されたDMA転送チャネルグ
ループデータ20のマスクデータ200で選択設定され
たDMA転送チャネルデータ2001,2002をメモ
リ上の配置順に、DMA転送チャネルテンポラリレジス
タ302に格納し、順次DMA転送処理を行う。
Next, the DMA transfer channel data 2001 and 2002 selected and set by the mask data 200 of the selected DMA transfer channel group data 20 are stored in the DMA transfer channel temporary register 302 in the order of arrangement on the memory, and are sequentially stored in the DMA. Perform transfer processing.

【0065】第1のDMA転送要求506に対するDM
A転送処理が終了すると、DMA制御ブロック300
は、DMA転送イネーブルレジスタ305にディセーブ
ルを設定し、DMA転送チャネルグループマスクレジス
タ304の設定値をクリアして、全DMA転送チャネル
グループデータを無効化して、つぎのDMA転送要求を
待つ。
The DM for the first DMA transfer request 506
When the A transfer processing is completed, the DMA control block 300
Sets the DMA transfer enable register 305 to disable, clears the set value of the DMA transfer channel group mask register 304, invalidates all DMA transfer channel group data, and waits for the next DMA transfer request.

【0066】なお、DMA転送チャネルグループデータ
の無効化というのは、処理の終了したDMA転送を無効
化することである。DMA転送チャネルグループマスク
レジスタ304をクリアしないと、同じDMA転送を何
度も行ってしまうことになる。
Note that invalidating the DMA transfer channel group data means invalidating the DMA transfer for which processing has been completed. If the DMA transfer channel group mask register 304 is not cleared, the same DMA transfer will be performed many times.

【0067】(3) 第2のDMA転送要求507が発
生すると、DMA転送チャネルグループマスクレジスタ
304(DMA転送チャネルグループマスクレジスタ5
3)に、DMA転送チャネルグループ選択用マスクデー
タとして、DMA転送チャネルグループデータ20およ
び21(DMA転送チャネルグループ50,51)だけ
にイネーブルを設定し、DMA転送チャネルグループデ
ータ20のDMA転送チャネル選択用マスクデータ20
0(DMA転送チャネル選択用マスクデータ500)の
ビットパターンを、DMA転送チャネルデータ2002
(DMA転送チャネル502)にイネーブルを設定し、
DMA転送チャネルグループデータ21のDMA転送チ
ャネル選択用マスクデータ210(DMA転送チャネル
選択用マスクデータ510)のビットパターンを、DM
A転送チャネルデータ2101(DMA転送チャネル5
13)にイネーブルを設定し、DMA転送イネーブルレ
ジスタ305をイネーブルに設定する。
(3) When the second DMA transfer request 507 occurs, the DMA transfer channel group mask register 304 (the DMA transfer channel group mask register 5
In 3), only the DMA transfer channel group data 20 and 21 (DMA transfer channel groups 50 and 51) are enabled as the DMA transfer channel group selection mask data, and the DMA transfer channel group data 20 is used to select the DMA transfer channel. Mask data 20
0 (DMA transfer channel selection mask data 500) bit pattern
(DMA transfer channel 502) is enabled,
The bit pattern of the DMA transfer channel selection mask data 210 (DMA transfer channel selection mask data 510) of the DMA transfer channel group data 21
A transfer channel data 2101 (DMA transfer channel 5
13), enable is set, and the DMA transfer enable register 305 is set to be enabled.

【0068】DMA転送イネーブルレジスタ305がイ
ネーブルに設定されると、DMA制御ブロック300
は、DMAデータ確認レジスタ303の設定値と、DM
A転送チャネルグループマスクレジスタ304の設定値
との論理積を演算して、DMA転送チャネルグループデ
ータ20,21を選択する。
When the DMA transfer enable register 305 is set to be enabled, the DMA control block 300
Is the value set in the DMA data confirmation register 303,
The logical AND with the set value of the A transfer channel group mask register 304 is calculated to select the DMA transfer channel group data 20 and 21.

【0069】つぎに、選択されたDMA転送チャネルグ
ループデータ20のDMA転送チャネル選択用マスクデ
ータ200で選択設定されたDMA転送チャネルデータ
2002をメモリ上の配置順に、DMA転送チャネルテ
ンポラリレジスタ302に格納し、順次DMA転送処理
を行う。
Next, the DMA transfer channel data 2002 selected and set by the DMA transfer channel selection mask data 200 of the selected DMA transfer channel group data 20 are stored in the DMA transfer channel temporary register 302 in the order of arrangement on the memory. , And sequentially perform a DMA transfer process.

【0070】続いて、選択されたDMA転送チャネルグ
ループデータ21のマスクデータ210で選択設定され
たDMA転送チャネルデータ2101を、DMA転送チ
ャネルテンポラリレジスタ302に格納し、DMA転送
処理を行う。
Subsequently, the DMA transfer channel data 2101 selected and set by the mask data 210 of the selected DMA transfer channel group data 21 is stored in the DMA transfer channel temporary register 302, and DMA transfer processing is performed.

【0071】第2のDMA転送要求507に対するDM
A転送処理が終了すると、DMA制御ブロック300
は、DMA転送イネーブルレジスタ305にディセーブ
ルを設定し、DMA転送チャネルグループマスクレジス
タ304の設定値をクリアして、全DMA転送チャネル
グループデータを無効化して、つぎのDMA転送要求を
待つ。
DM for second DMA transfer request 507
When the A transfer processing is completed, the DMA control block 300
Sets the DMA transfer enable register 305 to disable, clears the set value of the DMA transfer channel group mask register 304, invalidates all DMA transfer channel group data, and waits for the next DMA transfer request.

【0072】(4) 第3のDMA転送要求508が発
生すると、DMA転送チャネルグループマスクレジスタ
304(DMA転送チャネルグループマスクレジスタ5
3)に、DMA転送チャネルグループ選択用マスクデー
タとして、DMA転送チャネルグループデータ20(D
MA転送チャネルグループ50)だけにイネーブルを設
定し、DMA転送チャネルグループデータ20のDMA
転送チャネル選択用マスクデータ200(DMA転送チ
ャネル選択用マスクデータ500)のビットパターン
を、DMA転送チャネルデータ2001,2002,2
003,2004(DMA転送チャネル501,50
2,504,505)にイネーブルを設定し,DMA転
送イネーブルレジスタ305をイネーブルに設定する。
(4) When the third DMA transfer request 508 occurs, the DMA transfer channel group mask register 304 (the DMA transfer channel group mask register 5
3) As DMA transfer channel group selection mask data, DMA transfer channel group data 20 (D
Enable is set only for the MA transfer channel group 50) and the DMA of the DMA transfer channel group data 20 is set.
The bit pattern of the transfer channel selection mask data 200 (the DMA transfer channel selection mask data 500) is changed to the DMA transfer channel data 2001, 2002, 2
003, 2004 (DMA transfer channels 501, 50)
2, 504, 505) and the DMA transfer enable register 305 is enabled.

【0073】DMA転送イネーブルレジスタ305がイ
ネーブルに設定されると、DMA制御ブロック300
は、DMAデータ確認レジスタ303の設定値と、DM
A転送チャネルグループマスクレジスタ304の設定値
との論理積を演算して、DMA転送チャネルグループデ
ータ20を選択する。
When the DMA transfer enable register 305 is set to be enabled, the DMA control block 300
Is the value set in the DMA data confirmation register 303,
The logical AND with the set value of the A transfer channel group mask register 304 is calculated to select the DMA transfer channel group data 20.

【0074】つぎに、選択されたDMA転送チャネルグ
ループデータ20のマスクデータ200で選択設定され
たDMA転送チャネルデータ2001,2002,20
03,2004をメモリ上の配置順に、DMA転送チャ
ネルテンポラリレジスタ302に格納し、順次DMA転
送処理を行う。
Next, the DMA transfer channel data 2001, 2002, 20 selected and set by the mask data 200 of the selected DMA transfer channel group data 20.
03, 2004 are stored in the DMA transfer channel temporary register 302 in the order of arrangement on the memory, and DMA transfer processing is sequentially performed.

【0075】第3のDMA転送要求508に対するDM
A転送処理が終了すると、DMA制御ブロック300
は、DMA転送イネーブルレジスタ305にディセーブ
ルを設定し、DMA転送チャネルグループマスクレジス
タ304の設定値をクリアして、全DMA転送チャネル
グループデータを無効化して、つぎのDMA転送要求を
待つ。
DM for third DMA transfer request 508
When the A transfer processing is completed, the DMA control block 300
Sets the DMA transfer enable register 305 to disable, clears the set value of the DMA transfer channel group mask register 304, invalidates all DMA transfer channel group data, and waits for the next DMA transfer request.

【0076】上記DMA処理装置の動作例では、3つの
DMA転送要求に対して2つのDMA転送チャネルグル
ープだけを用いて、DMAデータ転送が可能となり、D
MA処理装置で消費するメモリサイズを削減することが
可能である。
In the operation example of the above-described DMA processing apparatus, DMA data transfer can be performed using only two DMA transfer channel groups for three DMA transfer requests.
It is possible to reduce the memory size consumed by the MA processing device.

【0077】以上のように本発明の実施の形態によれ
ば、DMA転送チャネルグループデータ20,21,2
2をマスクするDMA転送チャネルグループマスクレジ
スタ304と、メモリ上に置かれたDMA転送チャネル
グループデータ内のDMA転送チャネルデータをマスク
するDMA転送チャネル選択用マスクデータ200,2
10,220とを設けることにより、1つのDMA転送
要求に対して複数のDMA転送処理が可能なだけでな
く、複数のDMA転送チャネルデータを複数のDMA転
送要求間で共有できるため、DMA処理装置で使用する
メモリ領域を削減することが可能となる。
As described above, according to the embodiment of the present invention, the DMA transfer channel group data 20, 21, 22
2 and DMA transfer channel selection mask data 200 and 2 for masking DMA transfer channel data in the DMA transfer channel group data placed on the memory.
Provision of the DMA transfer devices 10 and 220 allows not only a plurality of DMA transfer processes for one DMA transfer request but also a plurality of DMA transfer channel data to be shared among the plurality of DMA transfer requests. Can reduce the memory area used.

【0078】ここで、DMA処理方法について説明す
る。このDMA処理方法は、最初に1個のDMA転送チ
ャネルグループを構成する1または複数個のDMA転送
チャネルをそれぞれ規定する1または複数組のDMA転
送チャネルデータと、1または複数個のDMA転送チャ
ネルの各々の使用/不使用を選択するDMA転送チャネ
ル選択用マスクデータとから構成されるDMA転送チャ
ネルグループデータを複数個のDMA転送チャネルグル
ープに対応して複数個設定する。
Here, the DMA processing method will be described. In this DMA processing method, first, one or a plurality of sets of DMA transfer channel data respectively defining one or a plurality of DMA transfer channels forming one DMA transfer channel group, and one or a plurality of DMA transfer channels are defined. A plurality of DMA transfer channel group data, each of which includes a DMA transfer channel selection mask data for selecting use / non-use, is set in correspondence with a plurality of DMA transfer channel groups.

【0079】つぎに、複数種類のDMA転送要求にそれ
ぞれ対応して複数個のDMA転送チャネルグループの各
々の使用/不使用を選択するDMA転送チャネルグルー
プ選択用マスクデータを設定するとともに、複数種類の
DMA転送要求にそれぞれ対応してDMA転送チャネル
選択用マスクデータを設定する。
Next, the DMA transfer channel group selection mask data for selecting use / non-use of each of the plurality of DMA transfer channel groups is set in response to each of the plurality of types of DMA transfer requests. DMA transfer channel selection mask data is set corresponding to each of the DMA transfer requests.

【0080】つぎに、複数種類のDMA転送要求にそれ
ぞれ対応して設定されたDMA転送チャネルグループ選
択用マスクデータに従って複数個のDMA転送チャネル
グループの各々の使用/不使用を選択し、使用が選択さ
れたDMA転送チャネルグループ毎に複数種類のDMA
転送要求にそれぞれ対応して設定されたDMA転送チャ
ネル選択用マスクデータに従って複数個のDMA転送チ
ャネルの各々の使用/不使用を選択し、使用が選択され
たDMA転送チャネルグループ毎にそれぞれ使用が選択
されたDMA転送チャネルのDMA転送処理を実行す
る。
Next, use / non-use of each of the plurality of DMA transfer channel groups is selected according to the DMA transfer channel group selection mask data set corresponding to each of a plurality of types of DMA transfer requests, and use is selected. Multiple types of DMAs for each set of DMA transfer channel groups
The use / non-use of each of the plurality of DMA transfer channels is selected according to the DMA transfer channel selection mask data set corresponding to each transfer request, and the use is selected for each of the DMA transfer channel groups whose use is selected. Execute the DMA transfer process of the selected DMA transfer channel.

【0081】[0081]

【発明の効果】以上のように、本発明の請求項1記載の
DMA処理方法によれば、複数種類のDMA転送要求に
それぞれ対応して複数個のDMA転送チャネルグループ
の各々の使用/不使用を選択するDMA転送チャネルグ
ループ選択用マスクデータを設定するとともに、複数種
類のDMA転送要求にそれぞれ対応して複数個のDMA
転送チャネルの各々の使用/不使用を選択するDMA転
送チャネル選択用マスクデータを設定することにより、
1つのDMA転送要求に対して複数のDMA転送処理が
可能なだけでなく、複数のDMA転送チャネルを複数の
DMA転送要求間で共有できるため、豊富な種類のDM
A転送設定をより少ないメモリ消費で実現できる。
As described above, according to the DMA processing method of the first aspect of the present invention, each of a plurality of DMA transfer channel groups is used / not used corresponding to a plurality of types of DMA transfer requests. Is set, and a plurality of DMAs corresponding to a plurality of types of DMA transfer requests are set.
By setting DMA transfer channel selection mask data for selecting use / non-use of each transfer channel,
Since not only a plurality of DMA transfer processes can be performed for one DMA transfer request, but also a plurality of DMA transfer channels can be shared among the plurality of DMA transfer requests, a wide variety of types of DM transfer can be performed.
The A transfer setting can be realized with less memory consumption.

【0082】また、本発明の請求項2記載のDMA処理
方法によれば、DMA転送チャネルデータが存在しない
DMA転送チャネルグループを選択するのを防止するこ
とができ、DMA転送チャネルデータの未設定による誤
ったメモリアクセスを防止することができる。
Further, according to the DMA processing method of the second aspect of the present invention, it is possible to prevent a DMA transfer channel group having no DMA transfer channel data from being selected, and it is possible to prevent the DMA transfer channel data from being set. Erroneous memory access can be prevented.

【0083】また、本発明の請求項3記載のDMA処理
装置によれば、複数個のDMA転送チャネルグループの
各々の使用/不使用を選択するためのDMA転送チャネ
ルグループ選択用マスクデータを格納するDMA転送チ
ャネルグループマスクレジスタを設けるとともに、メモ
リに書き込むDMA転送チャネルグループデータに複数
個のDMA転送チャネルの各々の使用/不使用を選択す
るためのDMA転送チャネル選択用マスクデータを含
め、DMA転送ブロックはDMA転送チャネルグループ
選択用マスクデータに従って複数個のDMA転送チャネ
ルグループの各々の使用/不使用を選択し、かつ使用が
選択されたDMA転送チャネルグループ毎にDMA転送
チャネル選択用マスクデータに従って複数個のDMA転
送チャネルデータの各々の使用/不使用を選択し、使用
が選択されたDMA転送チャネルグループ毎にそれぞれ
使用が選択されたDMA転送チャネルのDMA転送処理
を実行するので、1つのDMA転送要求に対して複数の
DMA転送処理が可能なだけでなく、複数のDMA転送
チャネルデータを複数のDMA転送要求間で共有できる
ため、豊富な種類のDMA転送設定をより少ないメモリ
消費で実現できる。
According to the DMA processing device of the present invention, the DMA transfer channel group selection mask data for selecting use / non-use of each of the plurality of DMA transfer channel groups is stored. A DMA transfer channel group mask register is provided, and the DMA transfer channel group data to be written into the memory includes a DMA transfer channel selection mask data for selecting use / non-use of each of the plurality of DMA transfer channels. Selects use / non-use of each of the plurality of DMA transfer channel groups in accordance with the DMA transfer channel group selection mask data, and selects a plurality of DMA transfer channel groups in accordance with the DMA transfer channel selection mask data for each of the DMA transfer channel groups selected for use. DMA transfer channel data Since each use / non-use is selected, and the DMA transfer processing of the DMA transfer channel whose use is selected is executed for each of the DMA transfer channel groups whose use is selected, a plurality of DMAs can be assigned to one DMA transfer request. In addition to performing transfer processing, a plurality of DMA transfer channel data can be shared among a plurality of DMA transfer requests, so that a wide variety of DMA transfer settings can be realized with less memory consumption.

【0084】また、本発明の請求項4記載のDMA処理
装置によれば、DMA転送チャネルデータが存在しない
DMA転送チャネルグループを選択するのを防止するこ
とができ、DMA転送チャネルデータの未設定による誤
ったメモリアクセスを防止することができる。
Further, according to the DMA processing device of the fourth aspect of the present invention, it is possible to prevent a DMA transfer channel group having no DMA transfer channel data from being selected, and it is possible to prevent the DMA transfer channel data from being set. Erroneous memory access can be prevented.

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

【図1】本発明の実施の形態におけるDMA処理装置で
使用するメモリ内の構成データを示す模式図である。
FIG. 1 is a schematic diagram showing configuration data in a memory used in a DMA processing device according to an embodiment of the present invention.

【図2】本発明の実施の形態におけるDMA処理装置の
構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a DMA processing device according to the embodiment of the present invention.

【図3】本発明の実施の形態における情報処理装置の構
成を示すブロック図である。
FIG. 3 is a block diagram illustrating a configuration of an information processing apparatus according to an embodiment of the present invention.

【図4】本発明のDMA処理装置の設定の一例を示した
模式図である。
FIG. 4 is a schematic diagram showing an example of setting of a DMA processing device according to the present invention.

【図5】従来のDMA処理装置の動作例を示した模式図
である。
FIG. 5 is a schematic diagram showing an operation example of a conventional DMA processing device.

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

101,102,103 DMA転送チャネルグルー
プ 1011,1012,1022,1023,1034,
1035 DMA転送チャネル 104,105,106 DMA転送要求 107 DMA転送チャネルグループ選択用マスクレ
ジスタ 20,21,22 DMA転送チャネルグループデー
タ 200,210,220 マスクデータ 2001,2002,2003,2004,2101
DMA転送チャネルデータ 20011,20021,20031,20041,2
1011 転送元アドレスデータ 20012,20022,20032,20042,2
1012 転送元アドレスデータ 300 DMA転送制御ブロック 301 DMA転送チャネルグループ先頭アドレスレ
ジスタ 302 DMA転送チャネルテンポラリレジスタ 303 DMA転送データ確認レジスタ 304 DMA転送チャネルグループマスクレジスタ 305 DMA転送イネーブルレジスタ 306 制御線 307 データバス 308 アドレスバス 400 CPU 401 外部デバイス 402 メモリ 403 DMA処理装置 404 アドレスバス 405 データバス 406,407 データ転送要求信号 408,409 データ転送アクノリッジ信号 501 第1のDMA転送チャネル(A) 502 第2のDMA転送チャネル(B) 513 第3のDMA転送チャネル(C) 504 第4のDMA転送チャネル(D) 505 第5のDMA転送チャネル(E) 506 第1のDMA転送要求 507 第2のDMA転送要求 508 第3のDMA転送要求
101, 102, 103 DMA transfer channel groups 1011, 1012, 1022, 1023, 1034
1035 DMA transfer channels 104, 105, 106 DMA transfer request 107 DMA transfer channel group selection mask register 20, 21, 22 DMA transfer channel group data 200, 210, 220 Mask data 2001, 2002, 2003, 2004, 2101
DMA transfer channel data 2011, 2001, 20031, 20041, 2
1011 Transfer source address data 2012, 2202, 20032, 20042, 2
1012 Transfer source address data 300 DMA transfer control block 301 DMA transfer channel group head address register 302 DMA transfer channel temporary register 303 DMA transfer data confirmation register 304 DMA transfer channel group mask register 305 DMA transfer enable register 306 Control line 307 Data bus 308 Address Bus 400 CPU 401 External device 402 Memory 403 DMA processor 404 Address bus 405 Data bus 406, 407 Data transfer request signal 408, 409 Data transfer acknowledge signal 501 First DMA transfer channel (A) 502 Second DMA transfer channel ( B) 513 Third DMA transfer channel (C) 504 Fourth DMA transfer channel (D) 505 Fifth D A transfer channel (E) 506 first DMA transfer request 507 second DMA transfer request 508 third DMA transfer request

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 DMA転送制御データとDMA転送語数
データとDMA転送元アドレスデータとDMA転送先ア
ドレスデータとからなる1組のDMA転送チャネルデー
タで規定されるDMA転送チャネルをDMA転送単位と
して、DMA転送を行うDMA処理方法であって、 1個のDMA転送チャネルグループを構成する1または
複数個のDMA転送チャネルをそれぞれ規定する1また
は複数組のDMA転送チャネルデータと、前記1または
複数個のDMA転送チャネルの各々の使用/不使用を選
択するDMA転送チャネル選択用マスクデータとから構
成されるDMA転送チャネルグループデータを複数個の
DMA転送チャネルグループに対応して複数個設定し、 複数種類のDMA転送要求にそれぞれ対応して複数個の
DMA転送チャネルグループの各々の使用/不使用を選
択するDMA転送チャネルグループ選択用マスクデータ
を設定するとともに、前記複数種類のDMA転送要求に
それぞれ対応して前記DMA転送チャネル選択用マスク
データを設定し、 前記複数種類のDMA転送要求にそれぞれ対応して設定
された前記DMA転送チャネルグループ選択用マスクデ
ータに従って前記複数個のDMA転送チャネルグループ
の各々の使用/不使用を選択し、使用が選択されたDM
A転送チャネルグループ毎に前記複数種類のDMA転送
要求にそれぞれ対応して設定された前記DMA転送チャ
ネル選択用マスクデータに従って前記複数個のDMA転
送チャネルの各々の使用/不使用を選択し、使用が選択
されたDMA転送チャネルグループ毎にそれぞれ使用が
選択されたDMA転送チャネルのDMA転送処理を実行
することを特徴とするDMA処理方法。
1. A DMA transfer channel defined by a set of DMA transfer channel data including DMA transfer control data, DMA transfer word number data, DMA transfer source address data, and DMA transfer destination address data, as a DMA transfer unit. A DMA processing method for performing a transfer, comprising: one or a plurality of sets of DMA transfer channel data respectively defining one or a plurality of DMA transfer channels constituting one DMA transfer channel group; A plurality of DMA transfer channel group data, each of which is composed of a DMA transfer channel selection mask data for selecting use / non-use of a transfer channel, are set corresponding to the plurality of DMA transfer channel groups, and a plurality of types of DMAs are set. Multiple DMA transfer channel groups corresponding to each transfer request DMA transfer channel group selection mask data for selecting use / non-use of each group is set, and the DMA transfer channel selection mask data is set corresponding to each of the plurality of types of DMA transfer requests. The use / non-use of each of the plurality of DMA transfer channel groups is selected according to the DMA transfer channel group selection mask data set corresponding to each of a plurality of types of DMA transfer requests, and the DM selected for use is selected.
A use / non-use of each of the plurality of DMA transfer channels is selected according to the DMA transfer channel selection mask data set corresponding to each of the plurality of types of DMA transfer requests for each A transfer channel group. A DMA processing method comprising: performing a DMA transfer process of a DMA transfer channel whose use is selected for each selected DMA transfer channel group.
【請求項2】 DMA転送チャネルデータが設定されて
いることを示すデータを複数のDMA転送チャネルグル
ープ毎にチャネルグループ確認データとして設定し、前
記チャネルグループ確認データとDMA転送チャネルグ
ループ選択用マスクデータの論理積でDMA転送チャネ
ルグループを選択することを特徴とする請求項1記載の
DMA処理方法。
2. Data indicating that DMA transfer channel data is set is set as channel group confirmation data for each of a plurality of DMA transfer channel groups, and the channel group confirmation data and the DMA transfer channel group selection mask data are set. 2. The DMA processing method according to claim 1, wherein a DMA transfer channel group is selected by a logical product.
【請求項3】 DMA転送制御データとDMA転送語数
データとDMA転送元アドレスデータとDMA転送先ア
ドレスデータとからなる1組のDMA転送チャネルデー
タで規定されるDMA転送チャネルをDMA転送単位と
して、DMA転送を行うDMA処理装置であって、 1個のDMA転送チャネルグループを構成する1または
複数個のDMA転送チャネルをそれぞれ規定する1また
は複数組のDMA転送チャネルデータと、前記1または
複数個のDMA転送チャネルの各々の使用/不使用を選
択するDMA転送チャネル選択用マスクデータとから構
成されるDMA転送チャネルグループデータが複数個の
DMA転送チャネルグループに対応して格納され、複数
種類のDMA転送要求にそれぞれ対応して前記DMA転
送チャネル選択用マスクデータが設定されるメモリと、 前記複数種類のDMA転送要求にそれぞれ対応して設定
されて複数個のDMA転送チャネルグループの各々の使
用/不使用を選択するDMA転送チャネルグループ選択
用マスクデータを格納するDMA転送チャネルグループ
マスクレジスタと、 前記複数種類のDMA転送要求にそれぞれ対応して設定
された前記DMA転送チャネルグループ選択用マスクデ
ータに従って前記複数個のDMA転送チャネルグループ
の各々の使用/不使用を選択し、使用が選択されたDM
A転送チャネルグループ毎に前記複数種類のDMA転送
要求にそれぞれ対応して設定された前記DMA転送チャ
ネル選択用マスクデータに従って前記複数個のDMA転
送チャネルの各々の使用/不使用を選択し、使用が選択
されたDMA転送チャネルグループ毎にそれぞれ使用が
選択されたDMA転送チャネルのDMA転送処理を実行
するDMA転送ブロックとを備えたDMA処理装置。
3. A DMA transfer channel defined by a set of DMA transfer channel data consisting of DMA transfer control data, DMA transfer word number data, DMA transfer source address data, and DMA transfer destination address data, as a DMA transfer unit. A DMA processor for performing a transfer, wherein one or a plurality of sets of DMA transfer channel data respectively defining one or a plurality of DMA transfer channels constituting one DMA transfer channel group; DMA transfer channel group data composed of DMA transfer channel selection mask data for selecting use / non-use of each transfer channel is stored corresponding to a plurality of DMA transfer channel groups, and a plurality of types of DMA transfer requests are stored. Corresponding to the DMA transfer channel selection cells. A memory in which data is set, and mask data for selecting a DMA transfer channel group which is set corresponding to each of the plurality of types of DMA transfer requests and selects use / non-use of each of the plurality of DMA transfer channel groups are stored. DMA transfer channel group mask registers to be used, and use / non-use of each of the plurality of DMA transfer channel groups according to the DMA transfer channel group selection mask data set corresponding to each of the plurality of types of DMA transfer requests. DM selected and used
A use / non-use of each of the plurality of DMA transfer channels is selected according to the DMA transfer channel selection mask data set corresponding to each of the plurality of types of DMA transfer requests for each A transfer channel group. A DMA transfer block for performing a DMA transfer process of a DMA transfer channel whose use is selected for each of the selected DMA transfer channel groups.
【請求項4】 複数のDMA転送チャネルグループ毎に
メモリへDMA転送チャネルデータが格納されているこ
とを示すデータをチャネルグループ確認データとして格
納するDMAデータ確認レジスタを設け、DMA転送ブ
ロックが前記チャネルグループ確認データとDMA転送
チャネルグループ選択用マスクデータの論理積でDMA
転送チャネルグループを選択するようにした請求項3記
載のDMA処理装置。
4. A DMA data confirmation register for storing, as channel group confirmation data, data indicating that DMA transfer channel data is stored in a memory for each of a plurality of DMA transfer channel groups, DMA by logical product of confirmation data and mask data for DMA transfer channel group selection
4. The DMA processing device according to claim 3, wherein a transfer channel group is selected.
JP2000206248A 2000-07-07 2000-07-07 Method and device for processing dma Pending JP2002024157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000206248A JP2002024157A (en) 2000-07-07 2000-07-07 Method and device for processing dma

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000206248A JP2002024157A (en) 2000-07-07 2000-07-07 Method and device for processing dma

Publications (1)

Publication Number Publication Date
JP2002024157A true JP2002024157A (en) 2002-01-25

Family

ID=18703203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000206248A Pending JP2002024157A (en) 2000-07-07 2000-07-07 Method and device for processing dma

Country Status (1)

Country Link
JP (1) JP2002024157A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7970960B2 (en) * 2008-07-16 2011-06-28 Electronics And Telecommunications Research Institute Direct memory access controller and data transmitting method of direct memory access channel
CN110738308A (en) * 2019-09-23 2020-01-31 陈小柏 neural network accelerators
CN113434441A (en) * 2021-06-24 2021-09-24 深圳市航顺芯片技术研发有限公司 DMA transmission method, device, controller and readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7970960B2 (en) * 2008-07-16 2011-06-28 Electronics And Telecommunications Research Institute Direct memory access controller and data transmitting method of direct memory access channel
CN110738308A (en) * 2019-09-23 2020-01-31 陈小柏 neural network accelerators
CN110738308B (en) * 2019-09-23 2023-05-26 陈小柏 Neural network accelerator
CN113434441A (en) * 2021-06-24 2021-09-24 深圳市航顺芯片技术研发有限公司 DMA transmission method, device, controller and readable storage medium

Similar Documents

Publication Publication Date Title
JPH06236344A (en) Method and apparatus for arbitration between plurality of data transfer requests
JPH04246745A (en) Memory access system
JP3619532B2 (en) Semiconductor integrated circuit device
JPH08221353A (en) Method for multi-dimensional transfer of data in data-processing system
JPH076122A (en) Method and apparatus for request of data
JP2002024157A (en) Method and device for processing dma
US6378032B1 (en) Bank conflict avoidance in multi-bank DRAMS with shared sense amplifiers
JP2006251916A (en) Dma transfer system and dma transfer method
JPH03238539A (en) Memory access controller
JPH01125644A (en) Data transfer equipment
JPH05282242A (en) Bus control system
JP2000099452A (en) Dma control device
JP2004213666A (en) Dma module and its operating method
JP2972557B2 (en) Data transfer control device and control method
JP3936694B2 (en) Semiconductor integrated circuit device and data transfer method for semiconductor integrated circuit device
JP4190969B2 (en) Bus arbitration system in bus system and AMBA
JP4388643B2 (en) Multi-channel signal processor
JP3322993B2 (en) Information processing device
JPH0833869B2 (en) Data processing device
JPH052551A (en) Dma transfer control system
JP4771619B2 (en) Direct memory access control device
JPS6297047A (en) Input and output controller
JPS60253083A (en) Storage device controlling system
JPH0651751A (en) Image display device
JPS63259746A (en) Inter-bank-memory data transmission system