JPS63228360A - Dma controller - Google Patents

Dma controller

Info

Publication number
JPS63228360A
JPS63228360A JP6101487A JP6101487A JPS63228360A JP S63228360 A JPS63228360 A JP S63228360A JP 6101487 A JP6101487 A JP 6101487A JP 6101487 A JP6101487 A JP 6101487A JP S63228360 A JPS63228360 A JP S63228360A
Authority
JP
Japan
Prior art keywords
circuit
register
dma
address
holding register
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
JP6101487A
Other languages
Japanese (ja)
Inventor
Atsushi Obara
篤 小原
Takahiro Kawai
川合 孝裕
Hitoshi Sadamitsu
貞光 均
Katsuya Mitani
三谷 克哉
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 JP6101487A priority Critical patent/JPS63228360A/en
Publication of JPS63228360A publication Critical patent/JPS63228360A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal

Abstract

PURPOSE:To attain a high speed operation and the access to the address space of a wide range with simple constituting by dividing increment/decrement operation into individual operation unit and adopting system to be exchanged. CONSTITUTION:A selector circuit 3 which segments a holding register for DMA address and a holding register for the number of transfer bytes, selects one content among them and inputs it to an operation circuit, and the operation circuit 4 which executes increment and decrement with respect to the operation unit are provided. With using an incrementer/decrementer circuit having the bit width for one divided operation unit, count operation with respect to the register having the optional bit width is enabled. Since the incrementer/ decrementer circuit turns into the circuit of a small-scale, an operation delay value becomes small, and the counter action speed of one time can speedily designed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、1)HA制御装置、特にDMA転送の制御の
ための7ドレス生成、及び転送バイト数カウントが行な
われるDMA制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to 1) an HA control device, particularly a DMA control device that generates 7 addresses for controlling DMA transfer and counts the number of transferred bytes.

〔従来の技f〕[Conventional technique f]

従来のDMA制御装fk+工、特開昭58−21703
3号公報に記載が見られる様に、DMAアドレスレジス
タ、或いは転送バイト数レジスタ内容に対し、インクリ
メンタ、デクリメンタ回路ン用いて演算7行い、再び該
当レジスタに曹込む事で、DMAアドレスや転送バイト
数のカウント’2行なっていた、 〔発明が解決しようとする問題点〕 上記従来技術においては、広いアドレス空間にアクセス
可能なりMA制御装置ケ構成する場合、DMAアドレス
レジスタ、転送バイト数レジスタの5口幅が大ぎくなれ
は、それに対応するbit幅のインクリメンタ、デクリ
メンタ回路が必要となる点について配慮されておらず、
回路構成が複雑化、大規模化する、又前記回路ケ小規模
回路のカスケード接続で構成した場合には、CARRY
伝幡時間等、演算ディレイ値が太き(なり、カウンタ動
作が遅(なるといつ九問題があった、本発明の目的は、
上記問題点乞解決し、より簡素な回路構成で高速に動作
し、かつ、広範囲のアドレス空間にアクセス可能なりM
A制御装置ケ提供する事にある。
Conventional DMA control system fk+, JP-A-58-21703
As described in Publication No. 3, by performing seven operations on the contents of the DMA address register or transfer byte count register using an incrementer and decrementer circuit, and then writing to the corresponding register again, the DMA address and transfer byte count register can be calculated. [Problems to be Solved by the Invention] In the above-mentioned conventional technology, when configuring an MA control device that can access a wide address space, the DMA address register and transfer byte number register are No consideration is given to the fact that if the width becomes too large, incrementer and decrementer circuits with corresponding bit widths will be required.
CARRY
The purpose of the present invention is to solve problems when the calculation delay value becomes large (such as transmission time) and the counter operation becomes slow.
M
A: To provide a control device.

〔問題点ケ解決するための手段〕[Means for solving problems]

上記目的は、DMAアドレスレジスタ、転送バイト数レ
ジスタを、一定のbit @の演算単位に区分し、かつ
、これらの演算単位の内、1つの内容を選択してインタ
リメンタ、デクリメンタに入力するセレクタ回路を設け
てインクリメント、デクリメント演算ケ、個々の演算単
位に分割して実行する方式を採用する事によシ達成され
る。
The above purpose is to create a selector circuit that divides the DMA address register and transfer byte number register into arithmetic units of fixed bit @, and selects the contents of one of these arithmetic units and inputs it to the intermenter and decrementer. This is achieved by adopting a method in which the increment and decrement operations are divided into individual operation units and executed.

〔作用〕[Effect]

前記セレクタ回路の働き、及びカウント動作シーケンス
を、第3図フローチャートに示す。
The function of the selector circuit and the counting operation sequence are shown in the flowchart of FIG.

(ス、セレクタ回路はDMAアドレスレジスタの最下位
の演算単位を選択し、インクリメント演泗回路により、
その内容をカウントアンプする。
(The selector circuit selects the lowest operation unit of the DMA address register, and the increment operation circuit selects the lowest operation unit of the DMA address register.
Count and amplify the contents.

CARRkJ、生が1fい時、DMAアドレスレジスタ
のカウントは終了し、次に転送バイト数レジスタのカウ
ント動作7行rxう、CARRY発生の場合は、1つ上
位の演算単位ケセレクタ回路により選択し、その内容Z
カウントアツプでる。再びCARRYケ判定し、以下、
CARRYの発生がな(なるまで順に上位の演算単位を
カウントアツプし続けてゆき、CARRYの発生がな(
なり之時点で、或いは最上位演算単位ケカウントアンプ
した時点で、カウント動作を終了とする。
When CARRkJ is 1f, the count in the DMA address register is finished, and then the transfer byte number register counts in line 7 rx.If CARRY occurs, it is selected by the next higher arithmetic unit selector circuit, and then Content Z
The count is up. Judging CARRY again, below:
It continues counting up the higher-order operation units in order until no CARRY occurs (
The counting operation ends at this point, or when the highest level calculation unit is counted.

転F ハイド数レジスタのカウントも、カウントアンプ
ケカウントダウンに替えるだけで、上記と同一の動作で
実現される。
The counting of the Hyde number register can also be performed in the same manner as above, by simply replacing the counter with the countdown.

DMAアドレスレジスタのカウント動作について、レジ
スタ内容更新の様子を第4図に示す。
Regarding the counting operation of the DMA address register, FIG. 4 shows how register contents are updated.

以上説明した様な動作を行なう事により、分割さtv7
h演算単位1ヶ分のbit幅を持つインクリメンタ、デ
クリメンタ回路ケ用いて、任意のbit幅ケ持つレジス
タに対しカウント演算が可能となる。
By performing the operations explained above, the divided tv7
By using incrementer and decrementer circuits having a bit width of one h operation unit, it is possible to perform a count operation on a register having an arbitrary bit width.

又、インクリメンタ、デクリメンタ回路は、小規模な回
路となるため、演算ディレイ値も小さくたり、その分1
回のカウント動作速度は速く設計出来る。従って本発明
では、CARRY発生し九回数分、余分にカウント動作
が必要であるが、平均した動作速度という点では、従来
技術より有利となる。
Also, since the incrementer and decrementer circuits are small-scale circuits, the calculation delay value is also small, or
The counting operation speed can be designed to be fast. Therefore, although the present invention requires an extra count operation for nine times when a CARRY occurs, it is more advantageous than the prior art in terms of average operation speed.

〔実施例〕〔Example〕

以下に、本発明の一実施例を図面に従って詳細に説明す
る。
An embodiment of the present invention will be described in detail below with reference to the drawings.

第1図は、本発明の一実施例の構成図である、図中、1
はDMAアドレスレジスタ、2は転送バイト数レジスタ
、5は上記レジスタ内容を、1バイト幅の演算単位に区
分し、演算回路4に入力するセレクタ回路、4は1バイ
ト幅のインクリメンタ、デクリメンタ兼用演算−回路、
5は上記演負回路出力を保持する1バイト幅のスレーブ
レジスタ。
FIG. 1 is a block diagram of an embodiment of the present invention.
is a DMA address register, 2 is a transfer byte number register, 5 is a selector circuit that divides the contents of the above register into 1-byte wide calculation units and inputs it to the calculation circuit 4, 4 is a 1-byte wide incrementer/decrementer operation - circuit,
5 is a 1-byte wide slave register that holds the output of the above-mentioned operator circuit.

6は前記セレクタ回路6の切替制御及び、前記レジスタ
群の書込タイミング制御、及び演算回路4のインクリメ
ント、デクリメント切替を行なうDMAシーケンス制御
部であり、又、7はDMAアドレスレジスタ(ハ)容?
アドレスバスに出力するバッフ丁回路である、 次に1本実施例について、その動作ケ説明する。
6 is a DMA sequence control unit that controls switching of the selector circuit 6, write timing control of the register group, and increment/decrement switching of the arithmetic circuit 4, and 7 is a DMA address register (c) capacity?
Next, the operation of this embodiment, which is a buffer circuit for outputting to the address bus, will be explained.

デーr、DMAアドレスレジスタ1.転送バイト数レジ
スタ2に、CPUによυデータバスを介して初期設定さ
れる。DMA制御装置に対し、起動がかかると、アドレ
スバスにDMAアドレスが出力され、D M Aサイク
ルが実行される、次に、DMAサイクル終了後、前記セ
レクタ回路6は、DhlAアドレスレジスタ1の最下位
演算単位を選択し、演算回路4に入カイろ、演算回路4
は、インクリメンタとして機能し、スレーブレジスタ5
乞介し、DMAアドレスレジスタ最下位演算単位ケカウ
ントアップする、ここで、演算回路4のCARRYが、
DMAシーケンス制御部6により、判定され、CARR
Y発生1fい時は、カウント動作は終了し、次に、転送
バイト数レジスタのカウント動作ン開始する。CARR
Y発生の場合は、セレクタ回路3が1つ上位の演算単位
?選択し、演鴬回路4により、カウントアツプが行なわ
れる。再びCARRYが判定さn、CARRY発生ない
時はカウント動作終了、CARRY発生の場合、さらに
上位の演模単位がカウントアツプされる、この様にして
、CARRY発生のな(なった時点又は、最上位演算単
位のカウントアツプが行なわれた時点でDMAアドレス
レジスタ10カウント動作乞終了し、次に、転送バイト
数しジヌタ2のカウント動作を開始する。転送バイト数
レジスタ20カウントは、前記演算回路4において、イ
ンクリメント機能から、デクリメント機能に切替られる
事を除き、DMAアドレスレジスタ10カウントとまっ
たく同一の動作が行なわれる。
data r, DMA address register 1. The transfer byte number register 2 is initialized by the CPU via the υ data bus. When the DMA control device is activated, a DMA address is output to the address bus and a DMA cycle is executed. Next, after the DMA cycle is completed, the selector circuit 6 selects the lowest order of the DhlA address register 1. Select the arithmetic unit and enter the arithmetic circuit 4.Arithmetic circuit 4
acts as an incrementer and the slave register 5
The lowest calculation unit of the DMA address register is counted up. Here, the CARRY of the calculation circuit 4 is
The DMA sequence control unit 6 determines that CARR
When Y occurs 1f, the counting operation ends, and then the counting operation of the transfer byte number register starts. C.A.R.R.
If Y occurs, is selector circuit 3 the next higher calculation unit? The selection is made, and the counting circuit 4 performs a count-up. CARRY is determined again. If CARRY does not occur, the counting operation ends. If CARRY occurs, the higher-level performance unit is counted up. When the count up of the unit of operation is performed, the 10 count operation of the DMA address register is completed, and then the number of transferred bytes is counted and the counting operation of the dinuta 2 is started. , the operation is exactly the same as the DMA address register 10 count except that the increment function is switched to the decrement function.

以上の様にして、一連のカウント動作が終了すると、再
ひDMA了ドレスが、アドレスバスに出力され、DMA
サイクルが実行される、以後、次々と、DMAアドレス
レジスタ1.転送バイト数レジスタ2の内容ケ更新しな
がら、DMAサイクルケ夷行してゆき、転送バイト数レ
ジスタ1の最上位演算単位ンカウント時に、CARRY
発生した場合、DMA制御装置tは、終了カウント信号
を出力して、DM、4M作を終了する。
When the series of counting operations is completed as described above, the DMA completion address is output to the address bus again, and the DMA completion address is outputted to the address bus again.
Cycles are executed, from then on, the DMA address registers 1 . While updating the contents of transfer byte number register 2, DMA cycles are performed, and when counting the highest operation unit of transfer byte number register 1, CARRY
If this occurs, the DMA control device t outputs an end count signal and ends the DM and 4M operation.

第2図は、従来技術によるDMA制御装置の1例である
。図中、ルよりMAアドレヌレジスタ。
FIG. 2 is an example of a DMA control device according to the prior art. In the figure, the MA address register is shown.

2は転送バイト数レジスタ、8はアドレスインタリメン
ト回路、9は転送バイト数デクリメント回路、10はア
ドレス演算結果を保持子るスレーブレジスタ、11は転
送バイト数演算結果ン保持するスレーブレジスタ、6は
各レジスタ群の曹込みタイミングを制御するDMAシー
ケンス制御部、7はDMAアドレヌYアドレスバスに出
カフるバッファ回路である。
2 is a transfer byte number register, 8 is an address increment circuit, 9 is a transfer byte number decrement circuit, 10 is a slave register that holds the address operation result, 11 is a slave register that holds the transfer byte number operation result, 6 is each A DMA sequence control section 7 controls the programming timing of the register group, and 7 is a buffer circuit that outputs to the DMA address Y address bus.

従来例の第2図と、本実施例の第1図を比較して判かる
様に、本実施例によれば、従来例のアドレスインクリメ
ント回路8.転送バイト数デクリメント回路9.及びス
レーブレジスタ10,11 yを、セレクタ回路6.イ
ンクリメンタ、デクリメンタ兼用の1バイト幅演算回路
4.及び1バイト幅のスレーブレジスタ5によって置換
える事が出来るため、従来例に比へ15程度の素子削減
となり、装置の簡素化に効果がある。
As can be seen by comparing FIG. 2 of the conventional example and FIG. 1 of the present embodiment, according to the present embodiment, the address increment circuit 8. Transfer byte count decrement circuit9. and slave registers 10, 11y, selector circuit 6. 1-byte width arithmetic circuit that serves as both an incrementer and decrementer 4. Since the slave register 5 can be replaced with a 1-byte width slave register 5, the number of elements can be reduced by about 15 compared to the conventional example, which is effective in simplifying the device.

又、演算回路を6バイト幅より1゛バイトに小型化した
ことにより、1回のカウント動作速度ン約2倍程度に設
計可能でおり、こnにより平均動作速度を約1.8倍と
する事が可能で、装置の高速化にも効果がある。
In addition, by downsizing the arithmetic circuit from 6 bytes to 1 byte, it is possible to design the one-time counting operation speed to about double, which increases the average operation speed to about 1.8 times. It is possible to do this, and it is also effective in increasing the speed of the device.

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

以上説明した様に、本発明にょjば、以下の点で効果が
ある、 DMAアドレスレジスタ、及び転送バイト数レジスタの
bit幅に関係なく、インクリメンタ回路。
As explained above, the present invention provides an incrementer circuit that is effective in the following points, regardless of the bit width of the DMA address register and transfer byte number register.

デクリメンタ回路乞小規模な回路とすることが出来るり
で、装置の簡素化、コスト低減に効果がありまた、演算
ディレイ値を小さくてる事が出来るので、装置の高速化
に効果がある。
Since the decrementer circuit can be made into a small-scale circuit, it is effective in simplifying the device and reducing costs.Also, since the calculation delay value can be reduced, it is effective in increasing the speed of the device.

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

第1図は、本発明の一実施例の構成図、第2図スタカウ
ント方法の説明図である。 1・・・L)MAアドレスレジスタ、 2・・・転送バイト数レジスタ、 5・・・セレクタ回路、 5・・・スレーブレジ2り、 6・・・DMAシーケンス制御部、 7・・・アドレスバッファ回路、 8・・・アドレスインクリメント回路、9・・・転送バ
イト数デタリメント回路。 第 1 図 第 2 z
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is an explanatory diagram of a star counting method. 1...L) MA address register, 2... Transfer byte number register, 5... Selector circuit, 5... Slave register 2, 6... DMA sequence control unit, 7... Address buffer Circuit: 8: Address increment circuit; 9: Transfer byte number detarriment circuit. Figure 1 Figure 2 z

Claims (1)

【特許請求の範囲】[Claims] 1、DMAアドレス保持レジスタ、転送バイト数保持レ
ジスタ、及び前記のレジスタ内容をインクリメント、又
はデクリメントする演算回路、さらに、DMAアドレス
保持レジスタの出力を、アドレスバスに出力するバッフ
ァ回路より構成されるDMA制御装置において、DMA
アドレス保持レジスタ、転送バイト数保持レジスタを、
一定のbit巾の演算単位に区分し、これらの内1つの
内容を選択して演算回路へ入力するセレクタ回路と、上
記演算単位に対し、インクリメント又はデクリメントす
る演算回路を有する事を特徴とするDMA制御装置。
1. DMA control consisting of a DMA address holding register, a transfer byte number holding register, an arithmetic circuit that increments or decrements the contents of the register, and a buffer circuit that outputs the output of the DMA address holding register to the address bus. In the device, DMA
Address holding register, transfer byte number holding register,
A DMA characterized in that it has a selector circuit that divides the data into arithmetic units of a certain bit width, selects one of the contents and inputs it to the arithmetic circuit, and an arithmetic circuit that increments or decrements the arithmetic unit. Control device.
JP6101487A 1987-03-18 1987-03-18 Dma controller Pending JPS63228360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6101487A JPS63228360A (en) 1987-03-18 1987-03-18 Dma controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6101487A JPS63228360A (en) 1987-03-18 1987-03-18 Dma controller

Publications (1)

Publication Number Publication Date
JPS63228360A true JPS63228360A (en) 1988-09-22

Family

ID=13159047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6101487A Pending JPS63228360A (en) 1987-03-18 1987-03-18 Dma controller

Country Status (1)

Country Link
JP (1) JPS63228360A (en)

Similar Documents

Publication Publication Date Title
US4467447A (en) Information transferring apparatus
JPWO2004057481A1 (en) DMA control device, DMA control method, DMA control program
US6728797B2 (en) DMA controller
EP0428111A2 (en) Data transfer control method and data processor using the same
JP2003281074A (en) Direct access memory device
JPS63228360A (en) Dma controller
JPH06103225A (en) Chain type dma system and dma controller therefor
JP2002024158A (en) Data transfer device and microcomputer
JP4451010B2 (en) Programmable controller
JPH10326248A (en) Dma controller
JP2861560B2 (en) Data processing device
KR100396189B1 (en) Digital signal processing apparatus and method for controlling the same
JP3145044B2 (en) High-speed data processing unit
JP2826490B2 (en) Vector data processing device
JPS6237429B2 (en)
JP2566009B2 (en) Data processing device
JP2005209224A (en) Direct memory access device
JP2985201B2 (en) Microcomputer
JP2635863B2 (en) Central processing unit
JPH0425938A (en) Micro program controller
JPH02204832A (en) Instruction control system
JPH01162937A (en) Control system for priority order
JPS58140849A (en) Programmable logic controller
JP2003316721A (en) Data transfer control device, data transfer device, and data transfer control method
JP2001166918A (en) Processor system