JP2001154975A - Dma transfer controller - Google Patents

Dma transfer controller

Info

Publication number
JP2001154975A
JP2001154975A JP33599999A JP33599999A JP2001154975A JP 2001154975 A JP2001154975 A JP 2001154975A JP 33599999 A JP33599999 A JP 33599999A JP 33599999 A JP33599999 A JP 33599999A JP 2001154975 A JP2001154975 A JP 2001154975A
Authority
JP
Japan
Prior art keywords
data
port
dma
dma transfer
transfer
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
JP33599999A
Other languages
Japanese (ja)
Inventor
Yasuo Mutsuro
靖雄 無津呂
Hiroyasu Otsubo
宏安 大坪
Yasushi Tsugi
靖 都木
Akira Kanehira
晃 兼平
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP33599999A priority Critical patent/JP2001154975A/en
Publication of JP2001154975A publication Critical patent/JP2001154975A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To simplify an operation for setting timing data and data length data for DMA transfer by a CPU. SOLUTION: Ports 1 and 2 are assumed to exist. Before a data is DMA- transferred at a first time between the port 1 and the data buffer RAM3, information to designate the port 1 and the values of timing data and data length data for DAM transfer to the port 1 are transmitted from the CPU 1 to a DMA control part 4a as a DMA control signal. The DMA control part 4a selects a port 1 setting register 71 via a setting register selecting part 6a based on the DMA control signal and sets and holds timing data and data length data in it. When data is DMA-transferred between the port 1 and a data buffer RAM 3, set timing data and data length data are read from the register 71 and used for DAM transfer.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、DMA転送を制御
するDMA転送コントロール装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA transfer control device for controlling a DMA transfer.

【0002】[0002]

【従来の技術】近年、ダイレクトメモリアクセスコント
ローラ(DMAC)を内蔵したCPUが製造販売されて
いる。DMA転送コントロール装置は、DACK(DM
A転送終了通知)付き外部デバイス,外部メモリ,メモ
リマップト外部デバイス及び内蔵周辺モジュール間のデ
ータ転送をCPUに代わって高速に行なうものであっ
て、CPUの負担を減らし、CPUの動作効率を高める
ものである。DMA転送を開始するには、CPUがDM
A転送におけるタイミングやデータ長の設定を行なう。
2. Description of the Related Art In recent years, CPUs incorporating a direct memory access controller (DMAC) have been manufactured and sold. The DMA transfer control device uses DACK (DM
A data transfer between an external device with an A transfer end notification), an external memory, a memory-mapped external device, and a built-in peripheral module is performed at high speed in place of the CPU, thereby reducing the load on the CPU and increasing the operation efficiency of the CPU. is there. To start a DMA transfer, the CPU
The timing and data length in the A transfer are set.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、DMA
転送を行なう2つ以上のポートを有するDMA転送コン
トロールシステムでは、DMA転送を行なう際に必要な
タイミングデータ及びデータ長データなどの設定値をD
MA転送を行なう度に設定しなければならないし、異な
るポートのDMA転送を交互に行なうときなどでも、そ
の都度タイミングデータ及びデータ長データの設定を行
なわなければならず、設定が冗長となる。また、DMA
転送を行なうポートが1つであっても、データ転送のタ
イミング及びデータ長が複数通りある場合には、その都
度タイミングデータ及びデータ長データの設定が必要と
なる。
SUMMARY OF THE INVENTION However, DMA
In a DMA transfer control system having two or more ports for performing a transfer, a set value such as timing data and data length data required for performing a DMA transfer is set to D.
The setting must be made every time the MA transfer is performed. Even when the DMA transfer of different ports is performed alternately, the timing data and the data length data must be set each time, so that the setting becomes redundant. Also, DMA
Even if there is only one transfer port, if there are a plurality of data transfer timings and data lengths, it is necessary to set timing data and data length data each time.

【0004】本発明の目的は、かかる問題を解消し、同
じポートに対して同じタイミング及び同じデータ長のD
MA転送を行なう場合、タイミングデータ及びデータ長
データの設定を省略できるようにしたDMA転送コント
ロール装置を提供することにある。
[0004] An object of the present invention is to solve such a problem, and to provide the same timing and the same data length for the same port.
An object of the present invention is to provide a DMA transfer control device which can omit setting of timing data and data length data when performing MA transfer.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、DMA転送に係わるタイミングデータ及
びデータ長データの設定値毎にかかる設定値を保持する
保持手段を設け、DMA転送を行なう際に、これら保持
手段の内の所望とする1つ指定し、指定した保持手段に
保持している設定値を用いてDMA転送を制御する構成
とする。
In order to achieve the above object, the present invention provides a holding means for holding a set value for each set value of timing data and data length data related to DMA transfer, and performs a DMA transfer. When performing, a desired one of these holding units is designated, and the DMA transfer is controlled using the set value held in the designated holding unit.

【0006】かかる構成により、保持手段に一旦上記の
設定値が保持されると、これが保持されている限り、D
MA転送に際してこの設定値を用いることができ、外部
からの設定が不要となる。
With this configuration, once the above-mentioned set value is held in the holding means, as long as the set value is held, D
This set value can be used at the time of MA transfer, and external setting is not required.

【0007】[0007]

【発明の実施の形態】以下、本発明の実施形態を図面を
用いて説明する。図1は本発明によるDMA転送コント
ロール装置の第1の実施形態を示すブロック図であっ
て、1はDMACを内蔵するCPU、2はこの第1の実
施形態のDMA転送コントロール装置、3はDMA転送
データバッファRAM、4aはDMA制御部、5aは制
御信号発生器、6aは設定レジスタ選択部、71はポー
ト1設定レジスタ、72はポート2設定レジスタ、8a
はデータ選択部である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a first embodiment of a DMA transfer control device according to the present invention, wherein 1 is a CPU having a built-in DMAC, 2 is a DMA transfer control device of the first embodiment, and 3 is a DMA transfer. Data buffer RAM, 4a DMA controller, 5a control signal generator, 6a setting register selector, 71 1 port 1 setting register, 72 2 port 2 setting register, 8a
Is a data selection unit.

【0008】同図において、CPU1とともにDMAコ
ントロールシステムを形成するこの第1の実施形態のD
MA転送コントロール装置2は、DMA転送データバッ
ファRAM3,DMA制御部4a,設定レジスタ選択部
6a,ポート1設定レジスタ71,ポート2設定レジス
タ72及びデータ選択部8aなどで構成されており、D
MA制御部4aに制御信号発生器5aが内蔵されてい
る。また、このDMAコントロールシステムでは、ポー
ト1,ポート2の2個のポートを有しているものとし、
ポート1設定レジスタ71はポート1に対するタイミン
グデータ1及びデータ長データ1の値を、ポート2設定
レジスタ72 はポート2に対するタイミングデータ2及
びデータ長データ2の値を夫々保持する。
In FIG. 1, the D in the first embodiment forms a DMA control system together with the CPU 1.
MA transfer control device 2, DMA transfers data buffer RAM 3, DMA control unit 4a, setting register selection unit 6a, the port 1 setting register 71, which is configured by a Port 2 setting register 7 2 and the data selecting section 8a, D
The control signal generator 5a is built in the MA control unit 4a. This DMA control system has two ports, port 1 and port 2,
Port 1 setting register 7 1 the value of the timing data 1 and data length data 1 for port 1, port 2 setting register 7 2 the value of the timing data 2 and data length data 2 for the port 2 respectively held.

【0009】次に、図1での各ブロックの機能を説明す
る。
Next, the function of each block in FIG. 1 will be described.

【0010】(1)DMA転送データバッファRAM3
の機能:DMA転送における転送データを格納し、DM
A制御部4aからの要求に応じて転送データをDMA制
御部4aと送受信する。
(1) DMA transfer data buffer RAM3
Function: Stores transfer data in DMA transfer, DM
The transfer data is transmitted / received to / from the DMA control unit 4a in response to a request from the A control unit 4a.

【0011】(2)DMA制御部4aの機能: CPU1から送られてくるDMA制御信号から転送デ
ータを取り出し、DMA転送データバッファRAM3へ
送る。 CPU1から送られてくるDMA制御信号からDMA
転送を行なうポートの情報と、ポート1でDMA転送を
行なう場合のタイミングデータ1及びデータ長データ1
あるいはポート2でDMA転送を行なう場合のタイミン
グデータ2及びデータ長データ2を含む設定信号を生成
し、設定レジスタ選択部6aへ送る。 CPU1から送られてくるDMA制御信号を基にポー
ト1アドレス信号及びポート2アドレス信号を生成し、
ポート1,2へ送る。 DMA転送データバッファRAM3からDMA転送の
ための転送データを取り込み、ポート1データ信号,ポ
ート2データ信号として夫々ポート1,2へ送る。 CPU1から送られてくるDMA制御信号を基にポー
ト1選択信号及びポート2選択信号を生成し、データ選
択部8aへ送る。 DMA転送に係わる設定信号を設定レジスタ選択部6
aから受け取り、制御信号発生器5aへ送る。 制御信号発生器5aの出力信号であるポート1制御信
号,ポート2制御信号を夫々ポート1,2へ送る。 データ選択部8aから送られてくるデータ信号を一時
DMA転送データバッファRAM3へ格納し、CPU1
の要求に応じてDMA転送データバッファRAM3から
取り出し、その転送データを含むDMA制御信号をCP
U1へ送る。
(2) Function of DMA control section 4a: The transfer data is extracted from the DMA control signal sent from the CPU 1 and sent to the DMA transfer data buffer RAM3. DMA from the DMA control signal sent from CPU 1
Information of a port to be transferred, and timing data 1 and data length data 1 when a DMA transfer is performed at port 1
Alternatively, a setting signal including the timing data 2 and the data length data 2 for performing the DMA transfer at the port 2 is generated and sent to the setting register selecting unit 6a. A port 1 address signal and a port 2 address signal are generated based on the DMA control signal sent from the CPU 1,
Send to ports 1 and 2. Transfer data for DMA transfer is fetched from the DMA transfer data buffer RAM 3 and sent to ports 1 and 2 as a port 1 data signal and a port 2 data signal, respectively. A port 1 selection signal and a port 2 selection signal are generated based on the DMA control signal sent from the CPU 1 and sent to the data selection unit 8a. A setting signal relating to the DMA transfer is set to a setting register selecting section 6
a and sends it to the control signal generator 5a. A port 1 control signal and a port 2 control signal, which are output signals of the control signal generator 5a, are sent to ports 1 and 2, respectively. The data signal sent from the data selector 8a is stored in the temporary DMA transfer data buffer RAM3,
Of the DMA transfer data buffer RAM 3 in response to the request of
Send to U1.

【0012】(3)制御信号発生器5aの機能:設定レ
ジスタ選択部6aからDMA制御部4a内に取り込まれ
た設定信号を基に、ポート1制御信号,ポート2制御信
号を生成し、ポート1,2に出力する。
(3) Function of control signal generator 5a: A port 1 control signal and a port 2 control signal are generated based on a setting signal taken into the DMA controller 4a from the setting register selector 6a. , 2.

【0013】(4)設定レジスタ選択部6aの機能: DMA制御部4aから送られてきた上記設定信号を受
け取ってタイミングデータ1及びデータ長データ1を含
むポート1設定信号を生成し、ポート1設定レジスタ7
1へ送る。 DMA制御部4aから送られてきた上記設定信号を受
け取ってタイミングデータ2及びデータ長データ2を含
むポート2設定信号を生成し、ポート2設定レジスタ7
2へ送る。 ポート1設定レジスタ71からタイミングデータ1及
びデータ長データ1を含むポート1設定信号を受け取
る。 ポート2設定レジスタ72からタイミングデータ2及
びデータ長データ2を含むポート2設定信号を受け取
る。 タイミングデータ1及びデータ長データ1、あるいは
タイミングデータ2及びデータ長データ2を含む設定信
号を生成し、DMA制御部4a内の制御信号発生器5a
へ送る。
(4) Function of setting register selecting section 6a: receives the above setting signal sent from DMA control section 4a, generates a port 1 setting signal including timing data 1 and data length data 1, and sets port 1 Register 7
Send to 1 . Upon receiving the setting signal sent from the DMA control unit 4a, a port 2 setting signal including timing data 2 and data length data 2 is generated, and the port 2 setting register 7
Send to 2 . Port receive port 1 setting signal including the timing data 1 and data length data 1 from 1 setting register 7 1. Receive port 2 setting signal including the timing data 2 and data length data 2 from the port 2 setting register 7 2. A setting signal including timing data 1 and data length data 1 or timing data 2 and data length data 2 is generated, and a control signal generator 5a in the DMA control unit 4a is generated.
Send to

【0014】(5)ポート1設定レジスタ71の機能:
設定レジスタ選択部6aから送られてきたポート1設定
信号からタイミングデータ1及びデータ長データ1を取
り出して保持し、また、設定レジスタ選択部6aの要求
に応じてタイミングデータ1及びデータ長データ1を設
定レジスタ選択部6aへ送る。
[0014] (5) Port 1 setting register 7 1 features:
The timing data 1 and the data length data 1 are extracted and held from the port 1 setting signal sent from the setting register selecting unit 6a, and the timing data 1 and the data length data 1 are converted according to a request from the setting register selecting unit 6a. It is sent to the setting register selector 6a.

【0015】(6)ポート2設定レジスタ72の機能:
ポート1設定レジスタ71と同様であって、設定レジス
タ選択部6aから送られてきたポート2設定信号からタ
イミングデータ2及びデータ長データ2を取り出して保
持し、また、設定レジスタ選択部6aの要求に応じてタ
イミングデータ2及びデータ長データ2を設定レジスタ
選択部6aへ送る。
[0015] (6) Port 2 setting register 7 2 features:
Be the same as the port 1 setting register 71, and held from the port 2 setting signal sent from the setting register selection unit 6a fetches the timing data 2 and data length data 2, also request setting register selection unit 6a Sends the timing data 2 and the data length data 2 to the setting register selecting section 6a.

【0016】(7)データ選択部8aの機能:DMA制
御部4aから送られてきたポート1選択信号やポート2
選択信号を用いて、ポート1から受信したポート1デー
タ信号,ポート2から受信したポート2データ信号のい
ずれかを選択し、選択したデータ信号をDMA制御部4
aへ出力する。
(7) Function of data selector 8a: port 1 select signal and port 2 transmitted from DMA controller 4a
Using the selection signal, one of the port 1 data signal received from the port 1 and the port 2 data signal received from the port 2 is selected, and the selected data signal is transmitted to the DMA controller 4.
Output to a.

【0017】次に、この第1の実施形態の動作を説明す
る。
Next, the operation of the first embodiment will be described.

【0018】まず、CPU1は、ポート1でDMA転送
を行なうか、あるいはポート2でDMA転送を行なうか
を示す選択情報をDMA転送コントロール装置2内のD
MA制御部4aへ送る。これらポート1,2としては、
例えば、PCMCIAやIDEなどが用いられる。
First, the CPU 1 sends selection information indicating whether to perform the DMA transfer at the port 1 or the DMA transfer at the port 2 to the D in the DMA transfer control device 2.
Send to MA control unit 4a. As these ports 1 and 2,
For example, PCMCIA or IDE is used.

【0019】電源投入後、ポート1で最初のDMA転送
を行なう場合、CPU1はDMA転送コントロール装置
2内のDMA制御部4aにこのポート1に対するタイミ
ングデータ1及びデータ長データ1を含むDMA制御信
号を送り、DMA制御部4aは、このDMA制御信号に
基づいてDMA転送を行なうポートを示す情報,タイミ
ングデータ1及びデータ長データ1を含む設定信号を生
成し、設定レジスタ選択部6aに送る。設定レジスタ選
択部6aは、この設定信号をポート1設定信号としてポ
ート1設定レジスタ71に送り、このポート1設定レジ
スタ71は、このポート1設定信号に含まれるタイミン
グデータ1とデータ長データ1とを保持する。
When the first DMA transfer is performed at the port 1 after the power is turned on, the CPU 1 sends a DMA control signal including timing data 1 and data length data 1 to the port 1 to the DMA control unit 4a in the DMA transfer control device 2. The DMA control unit 4a generates a setting signal including information indicating a port for performing a DMA transfer, timing data 1 and data length data 1 based on the DMA control signal, and sends the generated setting signal to the setting register selecting unit 6a. Setting register selection unit 6a sends the setting signal as a port 1 set signal to the port 1 setting register 7 1, the port 1 setting register 71, the timing data 1 and the data length data 1 included in the port 1 setting signal And hold.

【0020】電源投入後、ポート2で最初のDMA転送
を行なう場合も上記のポート1の場合と同様であって、
ポート2設定レジスタ72にポート2に対するタイミン
グデータ2とデータ長データ2が保持される。
When the first DMA transfer is performed at port 2 after the power is turned on, the same as the case of port 1 described above,
Port 2 setting register 7 timing data 2 to the port 2 to 2 and data length data 2 is held.

【0021】次に、上記のようにポート1設定レジスタ
1にタイミングデータ1及びデータ長データ1の設定
が行なわれた上でのCPU1からポート1へデータを転
送する場合について説明する。
[0021] Next, the case of transferring data from CPU1 in on port 1 setting register 7 1 set of timing data 1 and data length data 1 as described above is performed to port 1.

【0022】CPU1は、DMA転送を行なうポートを
選択するための情報(ポート選択情報),データの転送
方向を示す情報及びDMA転送開始を指示する信号をD
MA転送コントロール装置2内のDMA制御部4aへ送
り、これとともに、転送データもDMA制御部4aへ順
次送る。この転送データは、ポート1データ信号とし
て、DMA転送データバッファRAM3に一旦蓄えられ
る。次に、DMA制御部4aは、CPU1から送られて
きたDMA制御信号に含まれるDMA転送を行なうポー
ト選択の情報を設定レジスタ選択部6aへ送る。設定レ
ジスタ選択部6aはこの情報に基づくポート1設定信号
を用いてポート1設定レジスタ71を選択し、上記の手
順に従ってポート1設定レジスタ71に保持されている
タイミングデータ1及びデータ長データ1を取り込み、
DMA制御部4a内の制御信号発生器5aへ送る。そこ
で、制御信号発生器5aは、設定レジスタ選択部6aか
ら送られてきたタイミングデータ1及びデータ長データ
1を基にポート1制御信号を生成し、DMA転送データ
バッファRAM3内にポート1データ信号として蓄えら
れている転送データとDMA制御部4aで生成されたポ
ート1アドレス信号とともに、ポート1へ転送する。
The CPU 1 outputs information (port selection information) for selecting a port for performing the DMA transfer, information indicating the data transfer direction, and a signal for instructing the start of the DMA transfer.
The data is sent to the DMA control unit 4a in the MA transfer control device 2, and the transfer data is sequentially sent to the DMA control unit 4a. This transfer data is temporarily stored in the DMA transfer data buffer RAM 3 as a port 1 data signal. Next, the DMA control unit 4a sends to the setting register selection unit 6a information on port selection for performing DMA transfer, which is included in the DMA control signal sent from the CPU 1. Setting register selection unit 6a selects the port 1 Configuration Register 7 1 using port 1 setting signal based on this information, the timing data 1 is held in the port 1 Configuration Register 7 1 according to the above procedure and data length data 1 Capture
It is sent to the control signal generator 5a in the DMA control unit 4a. Therefore, the control signal generator 5a generates a port 1 control signal based on the timing data 1 and the data length data 1 sent from the setting register selector 6a, and stores the port 1 control signal in the DMA transfer data buffer RAM 3 as a port 1 data signal. The data is transferred to port 1 together with the stored transfer data and the port 1 address signal generated by the DMA controller 4a.

【0023】次に、上記のようにポート1設定レジスタ
1にタイミングデータ1及びデータ長データ1の設定
が行なわれた上でのポート1からCPU1へデータを転
送する場合について説明する。
Next, the case of transferring data from the port 1 on the port 1 setting register 7 1 set of timing data 1 and data length data 1 as described above is performed to CPU 1.

【0024】CPU1は、DMA転送のポート選択情
報,データの転送方向を示す情報,及びDMA転送開始
を指示する信号をDMA転送コントロール装置2内のD
MA制御部4aへ送る。DMA制御部4aは、このDM
A転送を行なうポートの情報を設定レジスタ選択部6a
へ送る。設定レジスタ選択部6aは、この情報に基づく
ポート1設定信号を用いてポート1設定レジスタ71
に保持されているタイミングデータ1及びデータ長デー
タ1を取り込み、DMA制御部4a内の制御信号発生器
5aへ送る。そこで、制御信号発生器5aは、設定レジ
スタ選択部6aから送られてきたタイミングデータ1及
びデータ長データ1を基にポート1制御信号を生成し、
このポート1制御信号はDMA制御部4aで生成された
ポート1アドレス信号とともにポート1へと転送され
る。その後、ポート1から転送データが、ポート1デー
タ信号として、DMA転送コントロール装置2のデータ
選択部8aへ転送されてくる。データ選択部8aは、D
MA制御部4aから送られてきたポート1選択信号を用
いて転送データの転送元ポート(この場合、ポート1)
を識別し、このポート1データ信号をDMA制御部4a
へ送る。そこで、DMA制御部4aは、データ選択部8
aから送られたこのデータ信号をDMA転送データバッ
ファRAM3内に一時蓄え、CPU1が転送データの読
出し要求があったとき、DMA転送データバッファRA
M3からこの転送データを読み出してCPU1へ転送す
る。
The CPU 1 sends the port selection information of the DMA transfer, the information indicating the data transfer direction, and the signal instructing the start of the DMA transfer to the D
Send to MA control unit 4a. The DMA control unit 4 a
The information of the port performing the A transfer is set in the setting register selecting section 6a.
Send to Setting register selecting unit 6a, the timing data 1 and data length data 1 is held in the port 1 setting register 7 1 using port 1 setting signal based on this information capturing, the control signal generation of the DMA control unit 4a To the vessel 5a. Therefore, the control signal generator 5a generates a port 1 control signal based on the timing data 1 and the data length data 1 sent from the setting register selector 6a,
This port 1 control signal is transferred to port 1 together with the port 1 address signal generated by the DMA controller 4a. Thereafter, the transfer data is transferred from the port 1 to the data selection unit 8a of the DMA transfer control device 2 as a port 1 data signal. The data selection unit 8a
Using the port 1 selection signal sent from the MA control unit 4a, the transfer source port of the transfer data (in this case, port 1)
And the port 1 data signal is transmitted to the DMA controller 4a.
Send to Therefore, the DMA control unit 4a sets the data selection unit 8
a is temporarily stored in the DMA transfer data buffer RAM3, and when the CPU 1 receives a transfer data read request, the DMA transfer data buffer RA3.
This transfer data is read from M3 and transferred to CPU1.

【0025】以上はポート1に関するものであったが、
ポート2に関しても、上記のようにポート2設定レジス
タ72にタイミングデータ2及びデータ長データ2の設
定が行なわれた上でのCPU1からポート2へDMA転
送を行なう場合には、上記のCPU1からポート1へD
MA転送を行なう場合と同様にして、CPU1からの転
送データをポート2データ信号としてDMA転送データ
バッファRAM3に一旦格納するとともに、DMA転送
コントロール装置2内の設定レジスタ選択部6aがポー
ト2設定レジスタ72に保持されているタイミングデー
タ2及びデータ長データ2をポート2設定信号として取
り込み、DMA制御部4a内の制御信号発生器5aへ送
る。そこで、制御信号発生器5aは、設定レジスタ選択
部6aから送られてきたこの設定信号を基にポート2制
御信号を生成し、ポート2アドレス信号及びDMA転送
データバッファRAM3から読み出したポート2データ
信号とともにポート2へ転送する。
The above description relates to port 1,
Regard port 2, when performing CPU1 DMA transfer from the port 2 on the port 2 setting register 7 2 setting timing data 2 and data length data 2 as described above has been performed, from the above CPU1 D to port 1
As in the case of performing the MA transfer, the transfer data from the CPU 1 is temporarily stored in the DMA transfer data buffer RAM 3 as a port 2 data signal, and the setting register selection unit 6a in the DMA transfer control device 2 sets the port 2 setting register 7 The timing data 2 and the data length data 2 held in 2 are taken in as a port 2 setting signal and sent to a control signal generator 5a in the DMA control unit 4a. Therefore, the control signal generator 5a generates a port 2 control signal based on the setting signal sent from the setting register selector 6a, and outputs the port 2 address signal and the port 2 data signal read from the DMA transfer data buffer RAM3. And to port 2.

【0026】また、上記のようにポート2設定レジスタ
2にタイミングデータ2及びデータ長データ2の設定
が行なわれた上でのポート2からCPU1へDMA転送
を行なう場合には、上記のポート1からCPU1へDM
A転送を行なう場合と同様にして、DMA転送コントロ
ール装置2内の設定レジスタ選択部6aがポート2設定
レジスタ72内のタイミングデータ2及びデータ長デー
タ2をポート2設定信号として取り込み、DMA制御部
4a内の制御信号発生器5aへ送る。そこで、制御信号
発生器5aは、設定レジスタ選択部6aから送られてき
たこの設定信号を基にポート2制御信号を生成し、ポー
ト2アドレス信号とともにポート2へ転送する。その
後、ポート2から転送データが、ポート2データ信号と
して、データ選択部8aへ転送されてくる。データ選択
部8aは、DMA制御部4aから送られてきたポート2
選択信号を用いて転送データ元のポートを識別し(この
場合、ポート2)、このデータ信号をDMA制御部4a
へ送る。DMA制御部4aは、データ選択部8aから送
られたこのデータ信号をDMA転送データバッファRA
M3内に一時蓄えておき、CPU1からDMA制御信号
を通して転送データの読出し要求があったとき、DMA
転送データバッファRAM3からこの転送データを読み
出してCPU1へ転送する。
Further, in the case of DMA transfer from the port 2 to the CPU1 in on port 2 setting register 7 2 setting timing data 2 and data length data 2 as described above has been performed, the above port 1 To CPU1 DM
In the same manner as in the case of the A transfer setting register selection unit 6a of the DMA transfer control device 2 captures timing data 2 and data length data 2 Port 2 setting register 7 in 2 as ports 2 setting signal, DMA controller 4a to the control signal generator 5a. Therefore, the control signal generator 5a generates a port 2 control signal based on the setting signal sent from the setting register selecting unit 6a, and transfers it to the port 2 together with the port 2 address signal. Thereafter, the transfer data is transferred from the port 2 to the data selection unit 8a as a port 2 data signal. The data selection unit 8a is connected to the port 2 transmitted from the DMA control unit 4a.
The port of the transfer data source is identified using the selection signal (in this case, port 2), and this data signal is transmitted to the DMA control unit 4a.
Send to The DMA controller 4a converts the data signal sent from the data selector 8a into a DMA transfer data buffer RA.
The data is temporarily stored in M3, and when a transfer data read request is issued from the CPU 1 through the DMA control signal, the DMA
The transfer data is read from the transfer data buffer RAM 3 and transferred to the CPU 1.

【0027】以上のように、この第1の実施形態では、
DMA転送を行なうポート毎にタイミングデータ及びデ
ータ長データを保持するレジスタを有し、夫々のポート
について、電源投入後、1回目のDMA転送のとき、こ
の1回目のDMA転送を行なうポートのタイミングデー
タ及びデータ長データがこのポートに該当するレジスタ
に設定されるので、一旦設定されたタイミングデータ及
びデータ長データは2回目以降のDMA転送でも有効と
なり、1回目のDMA転送と同じタイミング及び同じデ
ータ長のDMA転送を行なう場合には、タイミングデー
タ及びデータ長データの設定を省略できる。
As described above, in the first embodiment,
A register for holding timing data and data length data for each port for performing the DMA transfer; for each port, at the time of the first DMA transfer after power-on, the timing data of the port for performing the first DMA transfer; Since the data and data length data are set in the register corresponding to this port, the timing data and data length data once set are valid in the second and subsequent DMA transfers, and have the same timing and the same data length as the first DMA transfer. When the DMA transfer is performed, the setting of the timing data and the data length data can be omitted.

【0028】なお、同じポートとの間でのDMA転送に
際し、タイミングデータ及びデータ長データを異ならせ
る場合には、このDMA転送に先立って、このDMA転
送のための新たなタイミングデータ及びデータ長データ
をCPU1によってポート設定レジスタに設定し直すこ
とはいうまでもない。しかし、この第1の実施形態で
は、このようなタイミングデータ及びデータ長データの
変更の要求がない限り、ポート設定レジスタに既に設定
されているタイミングデータ及びデータ長データを用い
ることができるものであり、従って、CPU1によるタ
イミングデータ及びデータ長データの設定を省略するこ
とができるのである。
When the timing data and the data length data are made different during the DMA transfer with the same port, new timing data and data length data for the DMA transfer are required prior to the DMA transfer. Is set again in the port setting register by the CPU 1. However, in the first embodiment, the timing data and the data length data already set in the port setting register can be used as long as there is no request for changing the timing data and the data length data. Therefore, the setting of the timing data and the data length data by the CPU 1 can be omitted.

【0029】図2は本発明によるDMA転送コントロー
ル装置の第2の実施形態を示すブロック図であって、4
bはDMA制御部、5bは制御信号発生器、6bは設定
レジスタ選択部、7n はポートn設定レジスタ、8bは
データ選択部であり、図1に対応する部分には同一符号
を付けて重複する説明を省略する。
FIG. 2 is a block diagram showing a second embodiment of the DMA transfer control device according to the present invention.
b is a DMA control unit, 5b is a control signal generator, 6b is a setting register selection unit, 7n is a port n setting register, 8b is a data selection unit, and the parts corresponding to those in FIG. The description of the operation will be omitted.

【0030】この第2の実施形態は、DMA転送するポ
ートがn個(但し、nは3以上の整数)ある場合のもの
である。
In the second embodiment, the number of ports for DMA transfer is n (where n is an integer of 3 or more).

【0031】図2において、DMA制御部4bは、図1
でのDMA制御部4aと同様の動作を行なうが、CPU
1から送られてくるDMA制御信号から取り出すDMA
転送を行なうポートの情報,タイミングデータ及びデー
タ長データをnポート分サポートしている点と、n個の
各ポートへ出力するアドレス信号及びデータ信号をnポ
ート分有する点、データ選択部8bへ出力する選択信号
をnポート分有する点及びDMA制御部4b内の制御信
号発生器5bからn個のポートへ制御信号を送る点とが
図1でのDMA制御部4aと異なる。
In FIG. 2, the DMA control unit 4b
Performs the same operation as that of the DMA control unit 4a,
DMA extracted from the DMA control signal sent from 1
The point that information, timing data and data length data of a port to be transferred are supported for n ports, the address signal and the data signal to be output to each of n ports are provided for n ports, and output to the data selection unit 8b The difference from the DMA control unit 4a in FIG. 1 is that a selection signal for n ports is provided and that a control signal is transmitted from the control signal generator 5b in the DMA control unit 4b to n ports.

【0032】設定レジスタ選択部6bは、図1での設定
レジスタ選択部6aと同様の動作をするが、選択を行な
うレジスタがポート1設定レジスタ71,ポート2設定
レジスタ72,……,ポートn設定レジスタ7n のn個
のレジスタである点と、ポート1設定信号からポートn
設定信号までn個の信号を有する点とが図1での設定レ
ジスタ選択部6aと異なる。
The setting register selecting section 6b operates in the same manner as the setting register selecting section 6a in FIG. 1 except that the registers to be selected are the port 1 setting register 7 1 , the port 2 setting register 7 2 ,. n setting registers 7 n and n registers from the port 1 setting signal
It differs from the setting register selection unit 6a in FIG. 1 in that it has n signals up to the setting signal.

【0033】ポートn設定レジスタ7i(但し、i=
1,2,……,n)は、図1におけるポート1設定レジ
スタ71,ポート2設定レジスタ72と同様であって、ポ
ートiに対するポートi設定信号からタイミングデータ
i及びデータ長データiを取り出して保持し、また、か
かるデータを読み取って設定レジスタ選択部6bへ送る
ものである。
The port n setting register 7 i (where i =
1, 2,..., N) are the same as the port 1 setting register 7 1 and the port 2 setting register 7 2 in FIG. 1, and extract the timing data i and the data length data i from the port i setting signal for the port i. The data is taken out and held, and the data is read and sent to the setting register selecting section 6b.

【0034】制御信号発生器5bは、図1での制御信号
発生器5aと同様の動作をするが、ポート1,2,…
…,n毎にポート1制御信号,ポート2制御信号,…
…,ポートn制御信号のn個の制御信号を生成し、出力
する点が図1に示した制御信号発生器5aと異なる。
The control signal generator 5b operates similarly to the control signal generator 5a in FIG.
.., A port 1 control signal, a port 2 control signal for each n,.
.., Is different from the control signal generator 5a shown in FIG. 1 in that n control signals of port n control signals are generated and output.

【0035】データ選択部8bは、図1でのデータ選択
部8aと同様の動作をするが、ポート1,2,……,n
毎にデータ信号を受信し、DMA制御部4bから送られ
てきたポート1選択信号,ポート2選択信号,……,ポ
ートn選択信号のn個の選択信号を用いてDMA制御部
4bへ送るデータ信号を選択する点が図1でのデータ選
択部8aと異なる。
The data selector 8b operates in the same manner as the data selector 8a in FIG.
..,..., Port n selection signals sent from the DMA control unit 4b, and transmitted to the DMA control unit 4b using the n selection signals of the port n selection signals. The difference from the data selection unit 8a in FIG. 1 is that a signal is selected.

【0036】この第2の実施形態は、DMA転送を行な
うポートの個数を、第1の実施形態でポート1,2の2
個であったものを、ポート1〜nのn個に拡張し、それ
に伴ってDMA転送に関するタイミングデータ,データ
長データを保持するレジスタを、第1の実施形態でポー
ト1設定レジスタ71とポート2設定レジスタ72の2個
であったものを、n個に拡張したものであり、また、上
記のように、DMA制御部4b,設定レジスタ選択部6
b,制御信号発生器5b及びデータ選択部8bもポート
数の拡張に応じて第1の実施形態と異なっているが、D
MA転送に係わる機能は第1の実施形態の場合と同様で
ある。
In the second embodiment, the number of ports for performing DMA transfer is set to two of ports 1 and 2 in the first embodiment.
What was pieces, expanded to n ports 1 to n, the timing data relating to DMA transfers with it, a register for holding the data length data, the port 1 setting register 7 1 and the port in the first embodiment what was 2 two setting register 7 2 are those extended to n, and as described above, DMA controller 4b, setting register selector 6
b, the control signal generator 5b and the data selector 8b also differ from the first embodiment in accordance with the expansion of the number of ports.
The functions related to the MA transfer are the same as in the first embodiment.

【0037】なお、電源投入後、いずれのポートに関し
ても、第1の実施形態と同様、1回目のDMA転送のと
きに設定したタイミングデータ及びデータ長データが2
回目以降のDMA転送でも有効で、1回目のDMA転送
と同じタイミング及び同じデータ長のDMA転送を行な
う場合には、タイミングデータ及びデータ長データの設
定を省略できるものである。
After the power is turned on, as with the first embodiment, the timing data and the data length data set at the time of the first DMA transfer are equal to 2 for any of the ports.
The DMA transfer is effective for the second and subsequent DMA transfers, and when DMA transfer with the same timing and the same data length as the first DMA transfer is performed, the setting of timing data and data length data can be omitted.

【0038】また、この第2の実施形態においても、上
記の第1の実施形態と同様、同じポートとの間でのDM
A転送に際し、タイミングデータ及びデータ長データを
異ならせる場合には、このDMA転送に先立って、この
DMA転送のための新たなタイミングデータ及びデータ
長データをCPU1によってポート設定レジスタに設定
し直すことはいうまでもない。しかし、この第2の実施
形態でも、このようなタイミングデータ及びデータ長デ
ータの変更の要求がない限り、ポート設定レジスタに既
に設定されているタイミングデータ及びデータ長データ
を用いることができるものであり、従って、CPU1に
よるタイミングデータ及びデータ長データの設定を省略
することができるのである。
Also, in the second embodiment, as in the first embodiment, the DM between the same port is set.
When the timing data and the data length data are made different at the time of the A transfer, it is not possible to reset new timing data and data length data for the DMA transfer in the port setting register by the CPU 1 prior to the DMA transfer. Needless to say. However, also in the second embodiment, the timing data and the data length data already set in the port setting register can be used unless there is a request for changing the timing data and the data length data. Therefore, the setting of the timing data and the data length data by the CPU 1 can be omitted.

【0039】図3は本発明によるDMA転送コントロー
ル装置の第3の実施形態を示すブロック図であって、4
cはDMA制御部、5cは制御信号発生器、6cは設定
レジスタ選択部、711,712,……,71m はポート1
設定レジスタであり、図1に対応する部分には同一符号
を付けて重複する説明を省略する。
FIG. 3 is a block diagram showing a third embodiment of the DMA transfer control device according to the present invention.
c is DMA controller, 5c control signal generator, 6c is set register selection unit, 7 11, 7 12, ...... , 7 1m port 1
The same reference numerals are given to portions corresponding to those shown in FIG. 1 and description thereof is omitted.

【0040】この第3の実施形態は、少なくとも1つの
ポートについて、m個のタイミングデータとデータ長デ
ータをもつものであり、ここでは、ポートを1つ有する
ものとし、これをポート1とする。
In the third embodiment, at least one port has m pieces of timing data and data length data. Here, it is assumed that there is one port, and this is port 1.

【0041】図3において、この第3の実施形態は、図
1に示した第1の実施形態と同様の動作をするが、この
第1の実施形態と異なる点は、DMA転送を行なうポー
トが1つである点、即ち、ポート1だけを有する点であ
る。
Referring to FIG. 3, the third embodiment operates in the same manner as the first embodiment shown in FIG. 1, except that the port for performing the DMA transfer is different from the first embodiment. One point, that is, a point having only port 1.

【0042】DMA制御部4cは、図1でのDMA制御
部4aと同様の動作をするが、CPU1から送られてく
るDMA制御信号から取り出すDMA転送のためのタイ
ミングデータ及びデータ長データをm種類サポートして
いる点と、1つのポート1へ出力するアドレス信号及び
データ信号を有する点と、制御信号発生器5cの出力信
号である制御信号を1つのポート1へ送るだけである点
とが、図1でのDMA制御部4aと異なる。
The DMA control unit 4c operates in the same manner as the DMA control unit 4a in FIG. 1, except that the timing data and the data length data for DMA transfer extracted from the DMA control signal sent from the CPU 1 are of m types. The point of support, the point of having an address signal and a data signal to be output to one port 1, and the point of only sending the control signal which is the output signal of the control signal generator 5c to one port 1, This is different from the DMA control unit 4a in FIG.

【0043】設定レジスタ選択部6cは、図1での設定
レジスタ選択部6aと同様の動作をするが、選択するレ
ジスタ数がm個ある点及びポート1設定信号をm個有す
る点が図1での設定レジスタ選択部6aと異なる。
The setting register selecting section 6c operates in the same manner as the setting register selecting section 6a in FIG. 1, except that the number of registers to be selected is m and the number of port 1 setting signals is m in FIG. Is different from the setting register selecting section 6a.

【0044】制御信号発生器5cは、図1での制御信号
発生器5aと同様の動作をするが、ポート1制御信号の
みの制御信号を生成してポート1に出力する点が図1で
の制御信号発生器5aと異なる。
The control signal generator 5c operates in the same manner as the control signal generator 5a in FIG. 1 except that a control signal of only the port 1 control signal is generated and output to the port 1 in FIG. It is different from the control signal generator 5a.

【0045】次に、この第3の実施形態が図1に示した
第1の実施形態と異なる動作について説明する。
Next, the operation of the third embodiment different from that of the first embodiment shown in FIG. 1 will be described.

【0046】第3の実施形態では、DMA転送を行なう
ポートを、第1の実施形態でポートがポート1及びポー
ト2の2個であったものを、ポート1のみの1個にし、
ポート1に対するDMA転送に関するタイミングデータ
及びデータ長データを保持するレジスタを、第1の実施
形態でポート1設定レジスタ71の1つであったもの
を、ポート1設定レジスタ711,712,……,71mのm
個に拡張し、これらによってm種類のタイミングデータ
及びデータ長データを保持し、また、第1の実施形態で
用いていたデータ選択部8aをなくし、さらに、DMA
制御部4cや設定レジスタ選択部6c,制御信号発生器
5cも、ポート数の相違に応じて、図1に示した第1の
実施形態と異なっている。
In the third embodiment, the number of ports for performing DMA transfer is changed from two ports of port 1 and port 2 in the first embodiment to one port of only port 1.
A register for holding the timing data and data length data regarding DMA transfer to port 1, what was one of the ports 1 setting register 7 1 in the first embodiment, the port 1 setting register 7 11, 7 12, ... ..., 7 1m of m
And holds m types of timing data and data length data. In addition, the data selection unit 8a used in the first embodiment is eliminated.
The control section 4c, the setting register selection section 6c, and the control signal generator 5c also differ from the first embodiment shown in FIG. 1 according to the difference in the number of ports.

【0047】また、図1に示した第1の実施形態では、
CPU1がDMA転送のポート選択情報をDMA制御部
4aに供給したが、この第3の実施形態では、DMA転
送を行なうタイミングデータの値及びデータ長データの
種類を示す情報をDMA制御部4cへ送るものであり、
この情報に応じてポート1設定レジスタ711,712,…
…,71mのいずれかでタイミングデータ及びデータ長デ
ータの保持あるいは読出しが行なわれる。以上以外のD
MA転送に係わる機能は、第1の実施形態と同様であ
る。
In the first embodiment shown in FIG.
Although the CPU 1 supplies the port selection information for the DMA transfer to the DMA control unit 4a, in the third embodiment, information indicating the value of the timing data for performing the DMA transfer and the type of the data length data is sent to the DMA control unit 4c. Things,
According to this information, the port 1 setting registers 7 11 , 7 12 ,.
, 71m holds or reads out the timing data and data length data. D other than the above
Functions related to MA transfer are the same as in the first embodiment.

【0048】なお、この第3の実施形態で複数のポート
を有する場合には、各ポート毎に複数のポート設定レジ
スタが設けられ、夫々毎に種類の異なるタイミングデー
タ及びデータ長データを保持することができ、また、図
2に示したデータ選択部8bが設けられる。
When a plurality of ports are provided in the third embodiment, a plurality of port setting registers are provided for each port, and different types of timing data and data length data are stored for each port. And a data selection unit 8b shown in FIG. 2 is provided.

【0049】また、第3の実施形態において、電源投入
後、1回目のDMA転送のときに設定したタイミングデ
ータ及びデータ長データが2回目以降のDMA転送でも
有効であり、1回目のDMA転送と同じタイミング及び
同じデータ長のDMA転送を行なう場合には、タイミン
グデータ及びデータ長データの設定を省略できること
は、先の各実施形態と同様であり、上記のように、複数
のポートを設けた場合でも、同様である。
In the third embodiment, the timing data and the data length data set in the first DMA transfer after the power is turned on are also effective in the second and subsequent DMA transfers. When DMA transfer with the same timing and the same data length is performed, the setting of the timing data and the data length data can be omitted as in the previous embodiments. But it is the same.

【0050】図4は本発明によるDMA転送コントロー
ル装置の第4の実施形態を示すブロック図であって、4
dはDMA制御部、5dは制御信号発生器、6dは設定
レジスタ選択部、711,712はポート1設定レジスタで
あり、図3に対応する部分には同一符号を付けて重複す
る説明を省略する。
FIG. 4 is a block diagram showing a fourth embodiment of the DMA transfer control device according to the present invention.
d is DMA controller, 5d control signal generator, 6d setting register selection unit, 7 11, 7 12 a port 1 setting register, a redundant description with the same reference numerals corresponding to FIG. 3 Omitted.

【0051】この第4実施形態は、少なくとも1つのポ
ート設定レジスタに予め決められたタイミングデータ及
びデータ長データの値を格納している場合であり、ここ
では、1つのポート1を有していて、図4に示すよう
に、このポート1に対して2つのポート1設定レジスタ
11,712が設けられ、夫々に異なるタイミングデータ
及びデータ長データの値が予め設定されているものであ
る。全体的な概略構成は、m=2の場合の図3に示す第
3の実施形態と同様である。
In the fourth embodiment, at least one port setting register stores predetermined timing data and data length data values. In this embodiment, one port 1 is provided. as shown in FIG. 4, the port 1 to the two ports 1 setting register 7 11, 7 12 is provided, in which different values of the timing data and data length data respectively are set in advance. The overall schematic configuration is the same as that of the third embodiment shown in FIG. 3 when m = 2.

【0052】図4において、DMA制御部4dは、図3
でのDMA制御部4cと同様の動作をするが、CPU1
から送られてくるDMA制御信号にDMA転送における
タイミングデータ及びデータ長データが含まれておら
ず、従って、DMA転送に先立つCPU1によるタイミ
ングデータ及びデータ長データの設定は行なわれない点
が図3でのDMA制御部4cと異なり、タイミングデー
タ1及びデータ長データ1、あるいはタイミングデータ
2及びデータ長データ2を選択するための信号をDMA
制御信号から取り出して設定レジスタ選択部6dへ出力
することにより、ポート1設定レジスタ711,712から
タイミングデータ1及びデータ長データ1、あるいはタ
イミングデータ2及びデータ長データ2を読み取るだけ
である。
In FIG. 4, the DMA control unit 4d
Performs the same operation as the DMA control unit 4c in
3 does not include the timing data and the data length data in the DMA transfer in the DMA control signal sent from the CPU 1, and therefore, the timing data and the data length data are not set by the CPU 1 prior to the DMA transfer in FIG. Unlike the DMA control unit 4c, the signals for selecting the timing data 1 and the data length data 1 or the timing data 2 and the data length data 2
By outputting removed from the control signal to the setting register selection unit 6d, it is from port 1 setting register 7 11, 7 12 only reads the timing data 1 and data length data 1 or timing data 2 and data length data 2,.

【0053】設定レジスタ選択部6dは、図3での設定
レジスタ選択部6cと同様の動作をするが、選択するレ
ジスタ数が2個ある点と、ポート1設定レジスタ711
12に対してタイミングデータ及びデータ長データの設
定を行なわず、ポート1設定レジスタ711からタイミン
グデータ1及びデータ長データ1を、あるいはポート1
設定レジスタ712からタイミングデータ2及びデータ長
データ2を取り出すだけである点が図3での設定レジス
タ選択部6cと異なる。
The setting register selecting section 6d operates in the same manner as the setting register selecting section 6c in FIG. 3 except that the number of registers to be selected is two, and the port 1 setting registers 7 11 ,
7 without setting the timing data and data length data with respect to 12, the timing data 1 and data length data 1 from the port 1 Configuration Register 7 11 or port 1,
That from the setting register 7 12 only retrieve the timing data 2 and data length data 2 is different from the setting register selection unit 6c in FIG.

【0054】ポート1設定レジスタ711は、予め決めら
れたタイミングデータ1及びデータ長データ1を設定保
持しており、新たにタイミングデータ1及びデータ長デ
ータ1を再設定しない点が図3でのポート1設定レジス
タ711と異なる。
[0054] Port 1 setting register 7 11 is set hold timing data 1 and data length data 1 predetermined, new that it does not re-set the timing data 1 and data length data 1 in FIG. 3 port 1 setting register 7 11 different.

【0055】ポート1設定レジスタ712も、ポート1設
定レジスタ711と同様であって、予め決められたタイミ
ングデータ2及びデータ長データ2を設定保持してお
り、CPU1によって新たにタイミングデータ2及びデ
ータ長データ2を再設定しない点が図3でのポート設定
レジスタ711と異なる。
The port 1 setting register 7 12 is similar to the port 1 setting register 7 11, and sets and holds predetermined timing data 2 and data length data 2. that it does not reset the data length data 2 is different from the port setting register 7 11 in FIG.

【0056】なお、第4の実施形態では、ポート1につ
いてのDMA転送に関するタイミングデータ及びデータ
長データを保持するポート設定レジスタを上記のポート
1設定レジスタ711,712の2個としたが、図3に示し
た第3の実施形態のように、1つのポートに対して異な
るm(但し、mは3以上の整数)種類のタイミングデー
タ及びデータ長データを用いる場合も、また、図1,図
2に示した実施形態のように、複数個のポートを有する
場合も、さらには、図1,図2に示した実施形態のよう
に、複数個のポートを有し、かつポート毎に複数個ずつ
ポート設定レジスタを設けて異なる種類のタイミングデ
ータ及びデータ長データを用いる場合も、夫々のポート
設定レジスタに予めタイミングデータ及びデータ長デー
タとを設定し、CPU1によるタイミングデータ及びデ
ータ長データの設定を省略できるようにすることができ
る。
In the fourth embodiment, the port 1 setting registers 7 11 and 7 12 are used as the port 1 setting registers 7 11 and 7 12 to hold the timing data and the data length data relating to the DMA transfer for the port 1. As in the third embodiment shown in FIG. 3, when different types of timing data and data length data are used for one port (where m is an integer of 3 or more), FIG. In the case of having a plurality of ports as in the embodiment shown in FIG. 2, further, as in the embodiment shown in FIG. 1 and FIG. When different types of timing data and data length data are used by providing port setting registers for each port, timing data and data length data are set in advance in each port setting register, and C The setting of the timing data and the data length data by the PU1 can be omitted.

【0057】[0057]

【発明の効果】以上説明したように、本発明によれば、
同じポートに関し、同じタイミングで同じデータ長のD
MA転送を行なう場合、少なくとも2回目以降のDMA
転送では、タイミングデータ及びデータ長データの設定
を省略することができ、DMA転送毎にかかるデータ設
定を繰り返すという従来技術での無駄な動作をなくすこ
とができる。
As described above, according to the present invention,
D of the same data length at the same timing for the same port
When performing MA transfer, at least the second and subsequent DMA
In the transfer, the setting of the timing data and the data length data can be omitted, and the unnecessary operation in the related art of repeating the data setting for each DMA transfer can be eliminated.

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

【図1】本発明によるDMA転送コントロール装置の第
1の実施形態を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a DMA transfer control device according to the present invention.

【図2】本発明によるDMA転送コントロール装置の第
2の実施形態を示すブロック図である。
FIG. 2 is a block diagram showing a second embodiment of the DMA transfer control device according to the present invention.

【図3】本発明によるDMA転送コントロール装置の第
3の実施形態を示すブロック図である。
FIG. 3 is a block diagram showing a third embodiment of the DMA transfer control device according to the present invention.

【図4】本発明によるDMA転送コントロール装置の第
4の実施形態を示すブロック図である。
FIG. 4 is a block diagram showing a fourth embodiment of the DMA transfer control device according to the present invention.

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

1 CPU 2 DMA転送コントロール装置 3 DMA転送データバッファRAM 4a〜4d DMA制御部 5a〜5d 制御信号発生器 6a〜6d 設定レジスタ選択部 71〜7n,711〜71m ポート設定レジスタ 8a〜8d データ選択部1 CPU 2 DMA transfer control unit 3 DMA transfer data buffer RAM 4 a to 4 d DMA controller 5a~5d control signal generator 6a~6d setting register selection unit 7 1 ~7 n, 7 11 ~7 1m port configuration register 8a~8d Data selection section

───────────────────────────────────────────────────── フロントページの続き (72)発明者 都木 靖 神奈川県横浜市戸塚区吉田町292番地 株 式会社日立製作所デジタルメディア開発本 部内 (72)発明者 兼平 晃 神奈川県横浜市戸塚区吉田町292番地 株 式会社日立製作所デジタルメディア開発本 部内 Fターム(参考) 5B061 DD06 DD11 RR07  ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Yasushi Toki 292 Yoshida-cho, Totsuka-ku, Yokohama-shi, Kanagawa Prefecture Inside Digital Media Development Division, Hitachi, Ltd. (72) Inventor Akira Kanehira Yoshida-cho, Totsuka-ku, Yokohama-shi, Kanagawa 292 Hitachi Media, Ltd. Digital Media Development Division F-term (reference) 5B061 DD06 DD11 RR07

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数のポートに対するDMA転送を制御
するDMA転送コントロール装置において、 DMA転送に係わる設定値を外部から設定可能であって
再度の設定まで保持する保持手段を該ポート毎に1個ず
つ設けるとともに、外部からの選択情報に基づいて該保
持手段のいずれか1つを選択する選択手段を設け、 DMA転送を行なうポートを指定する該選択情報の入力
とともに、該選択手段によってDMA転送を行なう該ポ
ートに対応する該保持手段を選択し、選択された該保持
手段に設定されている設定値を読み取って該ポートとの
間のDMA転送に用いることを特徴とするDMA転送コ
ントロール装置。
1. A DMA transfer control device for controlling a DMA transfer to a plurality of ports, wherein a set value relating to the DMA transfer can be set from the outside and one holding means for each port is provided for holding the setting value again. And a selection means for selecting one of the holding means based on selection information from the outside, and when the selection information for designating a port for performing the DMA transfer is input, the DMA transfer is performed by the selection means. A DMA transfer control device which selects the holding means corresponding to the port, reads a set value set in the selected holding means, and uses the set value for DMA transfer with the port.
【請求項2】 請求項1において、 前記ポートが2個であることを特徴とするDMA転送コ
ントロール装置。
2. The DMA transfer control device according to claim 1, wherein the number of the ports is two.
【請求項3】 少なくとも1個のポートに対するDMA
転送を制御するDMA転送コントロール装置において、 DMA転送に係わる設定値を外部から設定可能であって
再度の設定するまで保持する保持手段を該ポート毎に複
数個ずつ設けるとともに、外部からの選択情報に基づい
て該保持手段のいずれか1つを選択する選択手段を設
け、 DMA転送を行なうポートのDMA転送に係わる設定値
を指定する該選択情報の入力により、該選択手段が該選
択情報に応じた該保持手段を選択し、選択された該保持
手段に設定されている設定値を読み取って該ポートとの
間のDMA転送に用いることを特徴とするDMA転送コ
ントロール装置。
3. DMA for at least one port
In a DMA transfer control device for controlling the transfer, a plurality of holding means are provided for each port, wherein a set value relating to the DMA transfer can be set from the outside and held until the setting is performed again. Selection means for selecting any one of the holding means based on the selection information, the selection means designating a set value relating to the DMA transfer of the port performing the DMA transfer, and the selection means responding to the selection information A DMA transfer control device for selecting the holding unit, reading a set value set in the selected holding unit, and using the read value for DMA transfer with the port.
【請求項4】 n個(但し、nは1以上の整数)のポー
トに対するDMA転送を制御するDMA転送コントロー
ル装置において、 DMA転送に係わる設定値が予め設定保持された手段を
n個の該ポート毎にm個(但し、mは1以上の整数)ず
つ設けるとともに、外部からの選択情報に基づいて該保
持手段のいずれか1つを選択する選択手段を設け、 DMA転送を行なうポートのDMA転送に係わる設定値
を指定する該選択情報の入力により、該選択手段が該選
択情報に応じた該保持手段を選択し、選択された該保持
手段に設定されている設定値を読み取って該ポートとの
間のDMA転送に用いることを特徴とするDMA転送コ
ントロール装置。
4. A DMA transfer control device for controlling a DMA transfer to n (where n is an integer of 1 or more) ports, wherein a means in which a set value relating to the DMA transfer is set and held in advance is set to the n number of said ports. M (where m is an integer equal to or greater than 1) is provided for each, and a selecting means for selecting any one of the holding means based on selection information from the outside is provided, and the DMA transfer of the port performing the DMA transfer is provided. The selection means selects the holding means corresponding to the selection information by inputting the selection information for specifying the setting value related to, and reads the setting value set in the selected holding means to read the port and the port. A DMA transfer control device for use in DMA transfer during the transfer.
JP33599999A 1999-11-26 1999-11-26 Dma transfer controller Pending JP2001154975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33599999A JP2001154975A (en) 1999-11-26 1999-11-26 Dma transfer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33599999A JP2001154975A (en) 1999-11-26 1999-11-26 Dma transfer controller

Publications (1)

Publication Number Publication Date
JP2001154975A true JP2001154975A (en) 2001-06-08

Family

ID=18294658

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33599999A Pending JP2001154975A (en) 1999-11-26 1999-11-26 Dma transfer controller

Country Status (1)

Country Link
JP (1) JP2001154975A (en)

Similar Documents

Publication Publication Date Title
JP2836321B2 (en) Data processing device
JP4917746B2 (en) COMMUNICATION DEVICE AND COMMUNICATION METHOD HAVING A COMMON PLATFORM
CN110008162B (en) Buffer interface circuit, and method and application for transmitting data based on buffer interface circuit
JP2001154975A (en) Dma transfer controller
JPH11232214A (en) Processor for information processor and its controlling method
US20110320677A1 (en) Data processing apparatus, data processing method, and storage medium
US5717874A (en) Apparatus for data transfer between image memory and external I/O device wherein inner registers set the image valid area, direction and moder of transfer
JP3096576B2 (en) Memory control circuit and integrated circuit device incorporating the circuit
US6483753B1 (en) Endianess independent memory interface
EP1746509B1 (en) Apparatus and method for ordering transaction beats in a data transfer
JPH05189360A (en) Data transfer and storage system
JP2003242098A (en) Semiconductor integrated circuit
JP2534321B2 (en) Data transfer control method and apparatus
JP3207329B2 (en) Bus controller and bus transfer method
JP4012298B2 (en) interface
JPH1040165A (en) Data read method and read buffer
JPH01169691A (en) Ic card
JPH11242651A (en) Interface
JP2003203043A (en) Data transfer device and information processor
JP2002007317A (en) Integrated circuit
JPH05101008A (en) One-chip microcomputer
JP2001306493A (en) Data transfer controller and microcomputer
JPH03209544A (en) Memory control circuit
JPH09269890A (en) Endian conversion system
JPH10320267A (en) Memory controller and its method

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20050901

A621 Written request for application examination

Effective date: 20060307

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080711

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080722

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080916

A02 Decision of refusal

Effective date: 20081028

Free format text: JAPANESE INTERMEDIATE CODE: A02