JPH01234957A - Method and device for controlling dma - Google Patents

Method and device for controlling dma

Info

Publication number
JPH01234957A
JPH01234957A JP6046588A JP6046588A JPH01234957A JP H01234957 A JPH01234957 A JP H01234957A JP 6046588 A JP6046588 A JP 6046588A JP 6046588 A JP6046588 A JP 6046588A JP H01234957 A JPH01234957 A JP H01234957A
Authority
JP
Japan
Prior art keywords
dma
register
address
main memory
operating means
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
JP6046588A
Other languages
Japanese (ja)
Inventor
Naoyuki Nishimura
尚幸 西村
Yasuyuki Higashiura
康之 東浦
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6046588A priority Critical patent/JPH01234957A/en
Publication of JPH01234957A publication Critical patent/JPH01234957A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To make DMA control efficient and to reduce the overhead of a control device by executing memory access based on an FiFo format, and at the time of arriving at the previously determined number of accesses, executing interruption processing for DMA end. CONSTITUTION:At the time of direct memory access (DMA) operation, a DMA operation means 3 outputs a source address, a destination address and length data to a main memory 2 based on a first in first out (FiFo) format. The operation means 3 stores the number of times of DMA, and when the number of times of DMA reaches the previously determined number of accesses, outputs a DMA end interruption. Consequently, DMA control can be efficiently executed and the overhead of the control device can be reduced.

Description

【発明の詳細な説明】 (概要) 本発明はDMA制御方法及び装置に関し、DMA制御を
効率よく行ない制御装置のオーバヘッドを軽減すること
を目的とし、 DMA制御装置にFiFo形式でアドレスを格納するレ
ジスタと、DMA実施回数を記憶し、この記憶内容に基
づいて前記レジスタへの入出力動作をコントロールする
手段とを備え、FiFo形式でメモリアクセスを行ない
、予め決められたアクセス回数に達したときにDMA終
了の割込み処理を行なうようにした。
DETAILED DESCRIPTION OF THE INVENTION (Summary) The present invention relates to a DMA control method and device, and aims to efficiently perform DMA control and reduce overhead of the control device. and a means for storing the number of DMA executions and controlling input/output operations to the register based on the stored contents, the memory is accessed in FiFo format, and when a predetermined number of accesses is reached, the DMA is executed. End interrupt processing is now performed.

〔産業上の利用分野〕[Industrial application field]

本発明は情報処理装置において、メインメモリにダイレ
クトメモリアクセス(DMA)を行なうに際してのDM
A制御方法及び装置に関するものである。
The present invention provides a DM for performing direct memory access (DMA) to a main memory in an information processing device.
A. This relates to a control method and device.

(従来の技術) 例えばホストCPUとIloであるディスク装置との間
のデータ転送を確立するための制御アダプタのように、
CPUからのコマンドを受けて一連の処理を行なう装置
にあっては、プログラム実行のための各種データを得る
ためにメインメモリに対してDMAを行なう手法が近年
よく採用されている。このような手法によるDMA制御
装置の一例としては、例えば第4図に示すようなものが
ある。これは所定のプログラムに従って各種演算処理を
行なうCPU1と、CPUIの動作プログラムをはじめ
各種データが格納されるメインメモリ2と、メインメモ
リ2に対してダイレクトメモリアクセス(以下DMAと
いう)を行なうDMA操作装置3と、CPU1、メイン
メモリ2、DMA操作装置3の間のデータ搬送路となる
バス8とから構成されている。DMA操作装置3はDM
A動作を制御するDMA制御部4と外部装置との間のデ
ータの出入口となるI10ボート5と、DMA操作用プ
ログラム及びデータが格納されるローカルメモリ6と、
前記各作動部を動作及び制御するマイクロプロセッサ7
(以下MPUという)と、これら各作動部間のデータ搬
送路となるバス9とから成っている。
(Prior art) For example, a control adapter for establishing data transfer between a host CPU and a disk device that is an Ilo.
2. Description of the Related Art In recent years, devices that perform a series of processes in response to commands from a CPU have often adopted a method of performing DMA on a main memory in order to obtain various data for program execution. An example of a DMA control device using such a method is shown in FIG. 4, for example. This consists of a CPU 1 that performs various arithmetic processing according to predetermined programs, a main memory 2 that stores various data including CPU operation programs, and a DMA operating device that performs direct memory access (hereinafter referred to as DMA) to the main memory 2. 3, and a bus 8 serving as a data transfer path between the CPU 1, main memory 2, and DMA operating device 3. DMA operating device 3 is DM
An I10 boat 5 serves as a data entry/exit between the DMA control unit 4 that controls the A operation and an external device, and a local memory 6 that stores DMA operation programs and data.
A microprocessor 7 that operates and controls each of the operating sections.
(hereinafter referred to as MPU) and a bus 9 serving as a data transfer path between these operating units.

従来において、DMA制御部4は、第5図に示すように
ソースアドレス及びディスティネーションアドレスが一
時格納されるアドレスレジスタ10と、処理データ長が
格納されるレングスレジスタ11と、ダイレクトメモリ
アクセス動作を行なうDMA動作部12とから構成され
ている。そして、アドレスレジスタ10にはMPU7の
プログラム動作によってソースアドレス及びディスティ
ネーションアドレスがセットされる。またDMA動作部
12へはMPU7からDMA起動指示がかけられる。こ
れに伴ってDMA動作部12からアドレスレジスタ10
及びレングスレジスタ11へ桁上げ指示が出され、アド
レスレジスタ10からはバス8を通してメインメモリ2
ヘアドレス情報が出力される。またDMA動作部12か
らはバス8上へバス制御信号が出力される。これによっ
て成る特定のアドレスに対するダイレクトメモリアクセ
ス動作が行なわれ、これが終了すると、レングスレジス
タ11からDMA動作部12に対してアクセス動作終了
通知が出力される。このようなりMA制御においてソー
スアドレス、ディスティネーションアドレス、及びレン
グスについてのデータは、メインメモリ2上で例えば第
6図に示されているようにCPU1で実行されるプログ
ラムにより、1回目のダイレクトメモリアクセス動作用
、2回目のダイレクトメモリアクセス動作用、というよ
゛うに格納されていた場合に、CPUIからIloに対
して動作指示があるとIloはメインメモリ2の内容を
ローカルメモリ6へ取り込み、取り込んだデータをMP
U7は各レジスタ10.11にセットする。
Conventionally, the DMA control unit 4 performs a direct memory access operation using an address register 10 in which a source address and a destination address are temporarily stored, and a length register 11 in which a processing data length is stored, as shown in FIG. It is composed of a DMA operating section 12. Then, a source address and a destination address are set in the address register 10 by the program operation of the MPU 7. Further, the MPU 7 issues a DMA activation instruction to the DMA operation unit 12. Accordingly, from the DMA operation unit 12 to the address register 10
A carry instruction is issued to the length register 11, and the address register 10 is sent to the main memory 2 through the bus 8.
Hair address information is output. Further, a bus control signal is outputted from the DMA operating section 12 onto the bus 8. As a result, a direct memory access operation for a specific address is performed, and when this is completed, an access operation completion notification is output from the length register 11 to the DMA operation unit 12. In this way, in MA control, data regarding the source address, destination address, and length are stored in the main memory 2 by a program executed by the CPU 1 as shown in FIG. If the main memory 2 is stored for operation and for the second direct memory access operation, when an operation instruction is given to Ilo from the CPU, Ilo imports the contents of main memory 2 into local memory 6 and imports them. MP data
U7 is set in each register 10.11.

そして順次DMAを行ない最終回のダイレクトメモリア
クセス動作が行なわれると、終了フラグ(例えばカウン
タの値を°O゛と規定しておく)をMPU7がDMAの
レングスカウンタにセットする時に終了を判定しCPU
1に対して終了を通知する。
Then, when the DMA is performed sequentially and the final direct memory access operation is performed, the MPU 7 determines the end when it sets the end flag (for example, the counter value is defined as °O゛) in the DMA length counter, and the CPU
1 is notified of the termination.

このような処理に際してのMPU7の動作が第7図及び
第8図に示されている。第7図はMPU7のDMA制御
動作を示すものである。DMA制御動作が開始されると
、MPU7は処理ステップ(以下、単にステップという
)STIにおいてアドレス及びレングスレジスタ10に
アドレス(例えば第6図中の1回目に相当するアドレス
)及びレングスをセットし、次いでステップST2にお
いてDMA動作部12に対してDMA起動指示を行なう
。すると、DMA動作部12の作動によってメインメモ
リ2にアクセスが行なわれ、アクセスされた番地のデー
タが読み出されたり、或はデータ書き込みが行なわれる
。このメモリアクセス動作の間、MPU7はステップS
T3に移行して先の起動による1回目のメモリアクセス
動作が終了したか否かチエツクし、DMA終了に伴う割
り込みルーチンによる動作終了を検出するとステップS
T5に移行し図6で示す所のチェーンしたすべてのDM
A終了か否かチエツクする。DMAが終了でないと判定
されれば、再びステップSTIに移行して2回目のDM
A動作が開始される。そしてアドレスレジスタ10に第
6図中の2回目に相当するアドレスをセットし、次いで
ステップS72以下の処理を行なう。このようにして、
ステップSTI〜ST5の処理動作が繰り返し行なわれ
、最終回目のDMA動作が行なわれると、ローカルメモ
リ6から終了フラグ13が読出される。MPU7は、ス
テップST5において、この終了フラグ13によってD
MA終了を認識しDMAの操作を終了する。なお、割り
込みルーチンにおいては、ステップST6において、各
回のDMA動作が正常に終了したか否かチエツクすると
共にDMA操作装置の各機能部の状態チエツクを行なう
。そして正常終了であると判断されたらステップST7
で割り込み原因をリセットしDMA終了フラグをセット
し割り込みルーチンを終了する。
The operation of the MPU 7 during such processing is shown in FIGS. 7 and 8. FIG. 7 shows the DMA control operation of the MPU 7. When the DMA control operation is started, the MPU 7 sets an address (for example, the address corresponding to the first time in FIG. 6) and a length in the address and length register 10 in a processing step (hereinafter simply referred to as step) STI, and then In step ST2, a DMA activation instruction is given to the DMA operating section 12. Then, the main memory 2 is accessed by the operation of the DMA operating section 12, and data at the accessed address is read or data is written. During this memory access operation, the MPU 7 performs step S
The process moves to T3, and it is checked whether the first memory access operation due to the previous startup has been completed, and when the completion of the operation due to the interrupt routine due to the end of DMA is detected, the process goes to step S.
All DMs that have moved to T5 and are chained as shown in Figure 6
Check whether A is finished. If it is determined that the DMA is not completed, the process returns to step STI and the second DM is performed.
A operation is started. Then, the address corresponding to the second time in FIG. 6 is set in the address register 10, and then the processing from step S72 onwards is performed. In this way,
The processing operations of steps STI to ST5 are repeated, and when the final DMA operation is performed, the end flag 13 is read from the local memory 6. In step ST5, the MPU 7 uses the end flag 13 to
It recognizes the end of MA and ends the DMA operation. In the interrupt routine, in step ST6, it is checked whether each DMA operation has been completed normally, and the status of each functional section of the DMA operating device is also checked. If it is determined that the process has ended normally, step ST7
The interrupt cause is reset, the DMA end flag is set, and the interrupt routine ends.

(発明が解決しようとする課題) しかしながら、このような従来のDMA制御にあっては
、DMAの操作の中において、1回のDMA動作が終る
毎に終了割り込みが上がり、次回でのDMAアドレスを
前記各レジスタ10゜11に再セットするため、オーバ
ーヘッドが大きいという不具合があった。
(Problem to be Solved by the Invention) However, in such conventional DMA control, an end interrupt is raised every time one DMA operation is completed during DMA operation, and the next DMA address is determined. Since the registers 10 and 11 are reset, there is a problem in that the overhead is large.

本発明はかかる不具合に鑑みてなされたもので、その目
的はDMA制御を効率よく行ない制御装置のオーバーヘ
ッドを軽減することである。
The present invention has been made in view of such problems, and its purpose is to efficiently perform DMA control and reduce the overhead of the control device.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理構成を示す図である。この図にお
いて、20は第4図に示されたDMA制御装置内に組込
まれるDMA制御部を示す。
FIG. 1 is a diagram showing the basic configuration of the present invention. In this figure, 20 indicates a DMA control section incorporated in the DMA control device shown in FIG.

21はアドレスレジスタ群を示し、このアドレスレジス
タ群はR1、R2、・・・Rnのように第1段から所定
の段まで先入れ先出しくFiFo)形式で設定された複
数のレジスタから構成されている。22はレングスレジ
スタ群を示す。また23はDMA処理を行なうDMA動
作部を示し24はアドレス情報の搬送路となるバスを示
す。
Reference numeral 21 indicates an address register group, and this address register group is composed of a plurality of registers such as R1, R2, . 22 indicates a length register group. Further, 23 indicates a DMA operation unit that performs DMA processing, and 24 indicates a bus serving as a transport path for address information.

DMA動作部23はMPU7からDMA起動指示を受け
る一方、このMPU7に対してDMA終了通知を発する
。また、このDMA動作部23はレジスタR2、・・・
Rn及びレングスレジスタ22に対してアドレス情報の
ライト指示を出力する一方で、最終段のレジスタRn及
びレングスレジスタ22に桁上げ指示を出し、またレン
グスレジスタ22からのアクセス動作終了通知を受ける
。アドレスレジスタ群21内の第1段目のレジスタR1
へのアドレス情報のセットはMPU7によりアドレスバ
スを通じて行なわれるようになっている。
The DMA operating unit 23 receives a DMA activation instruction from the MPU 7, and also issues a DMA termination notification to the MPU 7. Further, this DMA operation section 23 includes registers R2, . . .
While outputting an instruction to write address information to Rn and length register 22, a carry instruction is issued to register Rn and length register 22 at the final stage, and a notification of completion of the access operation is received from length register 22. First stage register R1 in address register group 21
Address information is set by the MPU 7 through an address bus.

〔作用〕[Effect]

MPU7からはDMAを行なうべきメインメモリ2のア
ドレスデータが複数個、順次アドレスレジスタ群21へ
出力される。アドレスレジスタ群21では先入れ先出し
形式に従って複数のアドレス情報を第1段目のレジスタ
R1から最終段目のレジスタRnまで順送りにシフトし
格納する。そしてMPU7からDMA動作部23にDM
A起動指示が出されると、DMA動作部23は最終段の
レジスタRn及びレングスレジスタ22に桁上げ指示を
出し、最終段目のレジスタRnに格納されていたアドレ
ス情報をバス上に出力し、メインメモリ2上の対応する
番地をアクセスする。このアクセス動作が終るとレング
スレジスタ22からアクセス動作終了通知がDMA動作
部23に出力される。すると、DMA動作部23はレジ
スタR2、・・・Rnに対してライト指示をかける。こ
れによって各レジスタに格納されていたアドレス情報は
R1−+R2、R2−+R3、・・・Rn−1−+Rn
のように書込まれ、結局アドレス情報が1段分だけシフ
トされた形となる。こうして最後のアドレスが出力され
るまで順次DMAによるアクセス動作が行なわれる。そ
して、最後のアドレスが出力されこれに対応するメイン
メモリ2上の番地へのアクセス動作を終了するとDMA
動作部23からDMA終了通知が出力され、これに基づ
いて割り込みルーチンの処理動作が行なわれる。そして
割り込みルーチンが終了した後一連のDMA動作が終了
する。
The MPU 7 sequentially outputs a plurality of address data of the main memory 2 to be DMA'd to the address register group 21. In the address register group 21, a plurality of pieces of address information are sequentially shifted and stored from the first stage register R1 to the last stage register Rn according to a first-in, first-out format. Then, DM from the MPU 7 to the DMA operating section 23
When the A start instruction is issued, the DMA operating unit 23 issues a carry instruction to the final stage register Rn and length register 22, outputs the address information stored in the final stage register Rn onto the bus, and Access the corresponding address on memory 2. When this access operation is completed, the length register 22 outputs an access operation completion notification to the DMA operation unit 23. Then, the DMA operating section 23 issues a write instruction to the registers R2, . . . Rn. As a result, the address information stored in each register is R1-+R2, R2-+R3,...Rn-1-+Rn
In the end, the address information is shifted by one stage. In this way, access operations by DMA are performed sequentially until the last address is output. Then, when the last address is output and the access operation to the corresponding address on the main memory 2 is completed, the DMA
A DMA end notification is output from the operation unit 23, and the interrupt routine processing operation is performed based on this. After the interrupt routine ends, the series of DMA operations ends.

〔実施例〕〔Example〕

第2図及び第3図は本発明によるDMA制御装置の一実
施例及びその−動作例を示す図である。
FIGS. 2 and 3 are diagrams showing an embodiment of a DMA control device according to the present invention and an example of its operation.

この実施例では、ソースアドレスレジスタ、ディスティ
ネーションアドレスレジスタ及びレングスレジスタがい
ずれもFiFo形式に設定されたレジスタ群25,26
.27によって構成されている。そして、これらのレジ
スタ群25゜26.27へはMPU7から各アドレス及
びレングスのデータが複数個出力され、これらのデータ
は各レジスタ群25,26.27の各レジスタにFiF
o形式で書込み、読出しされる。また各レジスタ群25
,26.27の出力側には、それぞれのレジスタ群25
,26.27から出力されるアドレスが設定されるセッ
トレジスタ28゜29.30が接続されている。ソース
アドレス設定用のセットレジスタ28及びディスティネ
ーションアドレス設定用のセットレジスタ29の各出力
はマルチプレクサ31に出力される一方、レングス設定
用のセットレジスタ30の出力は終了通知としてDMA
動作部23へ出力される。セットレジスタ28.29に
はDMA動作部23からカウントアツプ信号a、bがそ
れぞれ出力される一方セットレジスタ30へはDMA動
作部23からカウントダウン信号Cが出力される。また
、マルチプレクサ31へはDMA動作部23からセレク
ト信号dが出力され、ソースアドレス又はディスティネ
ーションアドレスが選択的に出力されてメインメモリ2
がアクセスされる。更にまたDMA動作部23にはパス
シーケンサ32が接続されており、バス9の制御を行な
う。また、第1図に関連して述べたように各レジスタ群
25゜26.27を構成するそれぞれのレジスタRSI
 、−−−RSn 、RDI 、−−−RDn 、RL
I 。
In this embodiment, the source address register, destination address register, and length register are all set in the FiFo format as register groups 25 and 26.
.. It is composed of 27. Then, a plurality of pieces of data of each address and length are outputted from the MPU 7 to these register groups 25, 26.27, and these data are sent to each register of each register group 25, 26.27 via FiF.
Written and read in o format. Also, each register group 25
, 26, 27 have respective register groups 25 on their output sides.
, 26, 27 are set to set registers 28, 29, and 30. The outputs of the set register 28 for setting the source address and the set register 29 for setting the destination address are output to the multiplexer 31, while the output of the set register 30 for setting the length is sent to the DMA as an end notification.
It is output to the operating section 23. Count-up signals a and b are output from the DMA operating section 23 to the set registers 28 and 29, respectively, while a count-down signal C is output from the DMA operating section 23 to the set register 30. Further, a select signal d is outputted from the DMA operation section 23 to the multiplexer 31, and a source address or a destination address is selectively outputted to the main memory 23.
is accessed. Furthermore, a path sequencer 32 is connected to the DMA operating section 23 and controls the bus 9. In addition, as described in relation to FIG.
, ---RSn, RDI, ---RDn, RL
I.

・・・RLnにFiFo手順での書込み指示を行なうた
めに、DMA動作部23から各レジスタ群25.26.
27に対して書込み指示信号線33.34.35が接続
されている。
. . . In order to instruct RLn to write in the FiFo procedure, the DMA operation unit 23 sends each register group 25, 26 .
Write instruction signal lines 33, 34, and 35 are connected to 27.

このような構成を有するDMA制御装置の動作を第3図
のフローチャートに基づいて説明する。
The operation of the DMA control device having such a configuration will be explained based on the flowchart of FIG. 3.

尚この場合は第6図で示すアレイチェーンされているD
MAの数がレジスタn個より多いとする。DMA制御動
作が開始されると、MPU7はステップ5TIIにおい
て各レジスタ群25゜26.27に複数のアドレス或は
レングスを順次FiFo形式でセットし、全アドレス、
レングスをセットし終るとステップ5T12においてD
MA動作部23に対してDMA起動指示を行なう。する
と、DMA動作部23の作動によって1回目のDMA動
作が行なわれ各レジスタ群25.26.27において先
ず先頭のレジスタRSn 、RDn、RLnから各アド
レス或はレングスの情報が出力されてセットレジスタ2
8゜29.30にそれぞれ格納される。その後DMA動
作部23によるMPX31の制御動作によりメインメモ
リ2にアクセスが行なわれ、アクセスされた番地のデー
タが読出されたり、データ書込みが行なわれる。DMA
動作部はセットされたレングス分程の転送が終了し動作
終了を検出するとDMAの実行継続を行なう。この処理
ステップでは、DMA動作部23は、レングスレジスタ
群27側(つまり、セットレジスタ30)からの終了通
知に基づいて各レジスタ群25,26゜27内に格納さ
れていたデータを、書き換えてシフトさせる。これによ
り、例えばソースアドレスレジスタ群25において、レ
ジスタR5n−1に格納されていたデータが新たにレジ
スタR3nに書込まれ、以下順々にシフトが行なわれて
レジスタR31のデータがR32に書込まれる。他のレ
ジスタ群26.27についても同様である。そして2回
目のDMA動作が行なわれメインメモリ2へのアクセス
が行なわれる。このようにDMA動作が繰返されて、各
レジスタ群25,26.27から全てのデータが出力さ
れてしまうとこれらのレジスタ側から終了通知が出力さ
れる。MPU7はステップ5T14において図8の割込
みルーチンの処理を行なった結果DMA終了であると判
断されるとステップ5T15においてアレイチェーンさ
れたDMAをすべて終了したか否かをチエツクし、DM
A終了でない場合はステップ5TIIに戻ってアドレス
、レングスをセットしDMA起動を行なう。この割込み
ルーチンの処理では第8図に示したのと同様の処理が行
なわれる。
In this case, the array chained D shown in FIG.
Assume that the number of MAs is greater than n registers. When the DMA control operation is started, the MPU 7 sequentially sets a plurality of addresses or lengths in each register group 25, 26, and 27 in the FiFo format in step 5TII, and sets all addresses,
After setting the length, in step 5T12
A DMA activation instruction is given to the MA operating section 23. Then, the first DMA operation is performed by the operation of the DMA operation unit 23, and in each register group 25, 26, and 27, information on each address or length is first output from the first register RSn, RDn, and RLn, and then sent to the set register 2.
They are stored at 8°29.30, respectively. Thereafter, the main memory 2 is accessed by the control operation of the MPX 31 by the DMA operating section 23, and data at the accessed address is read or data is written. D.M.A.
When the operation unit detects that the transfer for the set length has been completed and the operation has ended, it continues executing the DMA. In this processing step, the DMA operating unit 23 rewrites and shifts the data stored in each register group 25, 26, 27 based on the completion notification from the length register group 27 side (that is, the set register 30). let As a result, for example, in the source address register group 25, the data stored in register R5n-1 is newly written to register R3n, and the data in register R31 is subsequently written to R32 through sequential shifting. . The same applies to the other register groups 26 and 27. Then, a second DMA operation is performed and the main memory 2 is accessed. When the DMA operation is repeated in this manner and all data has been output from each register group 25, 26, 27, a completion notification is output from these registers. When the MPU 7 determines in step 5T14 that the DMA has ended as a result of processing the interrupt routine of FIG.
If A is not completed, return to step 5TII, set the address and length, and start DMA. In the processing of this interrupt routine, processing similar to that shown in FIG. 8 is performed.

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

以上説明したように、本発明によれば、DMA動作を行
なうに際して、このDMA動作に必要な全てのアドレス
情報セットの回数1 / n回の処理でレジスタにFi
Fo形式で格納し、複数段階のDMA処理を連続的に行
なうようにしたため、DMA動作を制御するMPU等の
割込みによるオーバーヘッドを軽減させることが可能と
なり、更にDMAの作業効率が向上するという効果が得
られる。
As explained above, according to the present invention, when performing a DMA operation, Fi is stored in the register by processing all the address information necessary for the DMA operation 1/n times.
Since data is stored in the Fo format and multiple stages of DMA processing are performed continuously, it is possible to reduce the overhead caused by interrupts from the MPU, etc. that control DMA operations, and this has the effect of improving DMA work efficiency. can get.

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

第1図は本発明の原理構成を示す図、第2図は発明の実
施例図、第3図は前記実施例の動作を示すフローチャー
ト、第4図は本発明が適用されるDMA制御装置を示す
ブロック図、第5図はDMA制御装置内におけるDMA
制御部の従来例を示すブロック図、第6図は従来におけ
るアドレス、レングスのメモリへの格納状態を示す図、
第7図は従来のDMA制御装置の動作を示すフローチャ
ート、第8図は第7図中の割込みルーチンの内容を示す
フローチャートである。 1・・・CPU 2・・・メインメモリ 3・・・DMA操作手段 7・・・MPU (コントロール手段)20・・・DM
A制御部 23・・・DMA動作部 25・・・ソースアドレスレジスタ群 26・・・ディスティネーションアドレスレジスタ群2
7・・・レングスレジスタ群 28.29.30・・・セットレジスタ20(DMAセ
」御仲) 発θ月め原理、Iも一へ図 第1図 τ・IAかルーチハxJa(ll]− 不発+]8の夫鬼例の動イTt示すフローチ↑−ト第3
FA DMA%すVm % 、i=の橋戚ブ′ロ、2図第 4
 区 イ芝+−畏11−おりりDMAγ八図 第へ図 第6図 第7図 第8図
FIG. 1 is a diagram showing the principle configuration of the present invention, FIG. 2 is an embodiment of the invention, FIG. 3 is a flowchart showing the operation of the embodiment, and FIG. 4 is a DMA control device to which the present invention is applied. The block diagram shown in FIG. 5 shows the DMA in the DMA control device.
A block diagram showing a conventional example of a control unit, FIG. 6 is a diagram showing a conventional storage state of addresses and lengths in memory,
FIG. 7 is a flowchart showing the operation of a conventional DMA control device, and FIG. 8 is a flowchart showing the contents of the interrupt routine in FIG. 1...CPU 2...Main memory 3...DMA operation means 7...MPU (control means) 20...DM
A control unit 23...DMA operation unit 25...Source address register group 26...Destination address register group 2
7...Length register group 28.29.30...Set register 20 (DMA SE) The principle of starting θ, I also go to one Figure 1 τ・IA or Luciha xJa (ll) - Misfire +] Flowchart showing the movement of example 8 ↑-T3
FA DMA% Vm %, i = bridge relation block, Figure 2, Figure 4
Ku I Shiba + - A 11 - Oriri DMA γ Figure 8 Figure 6 Figure 7 Figure 8

Claims (2)

【特許請求の範囲】[Claims] (1)演算処理部と、メインメモリと、メインメモリに
対してダイレクトメモリアクセスを行なう操作手段とを
備えた情報処理装置にあって、前記DMA操作手段は、
DMA動作に際し、メインメモリに対してソースアドレ
ス、ディスティネーションアドレス、及びレングスのデ
ータをファーストイン・ファーストアウト形式で出力す
ると共に、当該操作手段において DMAの回数を記憶しておき、予め決められたアクセス
回数に達したときにダイレクトメモリアクセス終了の割
込みを上げることを特徴とするDMA制御方法。
(1) An information processing device comprising an arithmetic processing unit, a main memory, and an operating means for performing direct memory access to the main memory, wherein the DMA operating means includes:
During DMA operation, the source address, destination address, and length data are output to the main memory in a first-in, first-out format, and the operating means stores the number of DMA operations and performs predetermined access. A DMA control method characterized by raising an interrupt for completion of direct memory access when a specified number of times is reached.
(2)演算処理部(1)と、メインメモリ(2)と、D
MA操作手段(3)とを備えた情報処理装置において、
DMA操作手段には、 メインメモリへのアクセス制御を行なう DMA制御部(20)と、 前記アクセスのためのアドレスデータを格納する先入れ
先出し形式に構成された複数のレジスタ(25、26、
27)と、 DMA実施回数を記憶し、この記憶内容に基づいて前記
DMA制御部及びレジスタをコントロールする手段(7
)と、 が設けられていることを特徴とするDMA制御装置。
(2) Arithmetic processing unit (1), main memory (2), and D
An information processing device comprising an MA operating means (3),
The DMA operating means includes a DMA control unit (20) that controls access to the main memory, and a plurality of registers (25, 26,
27), and means (7) for storing the number of DMA executions and controlling the DMA control unit and register based on the stored contents.
), A DMA control device characterized in that it is provided with:
JP6046588A 1988-03-16 1988-03-16 Method and device for controlling dma Pending JPH01234957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6046588A JPH01234957A (en) 1988-03-16 1988-03-16 Method and device for controlling dma

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6046588A JPH01234957A (en) 1988-03-16 1988-03-16 Method and device for controlling dma

Publications (1)

Publication Number Publication Date
JPH01234957A true JPH01234957A (en) 1989-09-20

Family

ID=13143040

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6046588A Pending JPH01234957A (en) 1988-03-16 1988-03-16 Method and device for controlling dma

Country Status (1)

Country Link
JP (1) JPH01234957A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03248257A (en) * 1990-02-26 1991-11-06 Nec Corp Memory control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03248257A (en) * 1990-02-26 1991-11-06 Nec Corp Memory control system

Similar Documents

Publication Publication Date Title
JPH01234957A (en) Method and device for controlling dma
AU714669B2 (en) Peripheral device control
JPH06103225A (en) Chain type dma system and dma controller therefor
JPH07219766A (en) Arithmetic processor
JPH0377137A (en) Information processor
JPH03288906A (en) Instruction executing system for pc
JP3139310B2 (en) Digital signal processor
JP2965045B2 (en) Semiconductor integrated circuit device
JPS6158861B2 (en)
JP3168845B2 (en) Digital signal processor
JPH0731527B2 (en) Programmable controller
JPS62221059A (en) Central processing unit
JP2583614B2 (en) Vector arithmetic unit
JPH0548490B2 (en)
JPH03246654A (en) Method for controlling data transfer
JPH0683640A (en) Interruption response processing system
JPS62119657A (en) Dma chain control system
JPS63137358A (en) Data processor
JPS63204322A (en) Information processor
JPS61264432A (en) Sequence arithmetic controller
JPH0752416B2 (en) Microcomputer system
JPH02199571A (en) Coprocessor interface circuit
JPH05120203A (en) Dma control system
JPS6344231A (en) Inter-storage device data transfer system
JPS6146545A (en) Input and output instruction control system