JPS6329868A - Dma controller - Google Patents

Dma controller

Info

Publication number
JPS6329868A
JPS6329868A JP17450386A JP17450386A JPS6329868A JP S6329868 A JPS6329868 A JP S6329868A JP 17450386 A JP17450386 A JP 17450386A JP 17450386 A JP17450386 A JP 17450386A JP S6329868 A JPS6329868 A JP S6329868A
Authority
JP
Japan
Prior art keywords
register
transfer
dma
permission flag
information
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
JP17450386A
Other languages
Japanese (ja)
Inventor
Takahiro Tokuume
徳梅 孝啓
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP17450386A priority Critical patent/JPS6329868A/en
Publication of JPS6329868A publication Critical patent/JPS6329868A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To continuously execute DMA transfer to plural memory blocks as a series of operation by setting up information for data transfer in a 2nd register during the execution of DMA transfer based upon the contents of a 1st register. CONSTITUTION:A microprocessor sets up the information of a memory block to which data are to be transferred in the 1st memory address register 1 and a 1st transfer frequency register 2 and sets up a DMA request permission flag 6 to make the memory block DMA transfer enabling state. At the time of input of a DMA request signal 7, a timing control circuit 5 is driven, DMA transfer is started and a memory address 11 and a control signal 12 are outputted to an external. At the time of starting the DMA transfer, a write permission flag 8 is set up and writing in a 2nd memory address register 3 and a 2nd transfer frequency register 4 is permitted. Consequently, the DMA transfer can be continuously executed during the input of the DMA request signal 7.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はダイレクト・メモリ・アクセス(DMA)コン
トローラ、特に、不連続な領域に配置された複、!!個
のメモリ・プロ、りに対するDMA転送を行なう機能を
有するD M Aコントローラに関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application] The present invention relates to direct memory access (DMA) controllers, particularly those arranged in discontinuous areas. ! The present invention relates to a DMA controller having a function of performing DMA transfer to multiple memory processors.

〔従来の技術〕[Conventional technology]

従来のこの棟のDMAコントローラにおいては、不連続
な領域に配置された複数個のメモリ・プロ、りに対する
DMA歓送は、以下の手;貝に従って実行きれていた。
In the conventional DMA controller of this building, DMA transfers to a plurality of memory processors arranged in discontinuous areas could be executed according to the following procedure.

(1)マイクロプロセ、すはD M Aコントローラに
、データ転送の対象となるメモリ・ブロックの情報(メ
モリ・アドレスと転送回数)を設定し、DMAコントロ
ーラを動作可能な状態とする。
(1) Information on the memory block to be transferred (memory address and number of transfers) is set in the microprocessor, which is the DMA controller, to enable the DMA controller to operate.

+2) D M AコントローラはDMA転送を実行し
、転送が終了するとマイクロプロセッサに割り込み要求
を送出し、動作を停止する。
+2) The DMA controller executes DMA transfer, and when the transfer is completed, sends an interrupt request to the microprocessor and stops operation.

(3)マイクロプロセッサヲコ、割シ込み処理で、DM
Aコントローラに次のメモリ・プロ、りの情報を設定し
、再びD M Aコントローラを実行可能な状態にする
(3) By microprocessor woko and interrupt processing, DM
The next memory processing information is set in the A controller, and the DMA controller is made executable again.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のDMAコントローラは、不連続な領域に
配置された複数個のメモリ・プロ、りに対するDMA転
送を実行する場会、データ転送の対象となるメモリ・プ
ロ、りに対するDMA転送が終了した後九次のメモリ中
プロ、りの情報を設定する必要があったため、その情報
設定の間はDMA転送が実行できず、その結果、DMA
転送の能力が低下するという欠点がある0 〔問題点を解決するための平膜〕 本発明のDMAコントローラは、データ転送のために設
定された情報を保持する第1のレジスタと、 次のデータ転送のために設定される惰゛報を保持する第
2のレジスタと。
The conventional DMA controller described above is used when executing DMA transfers to multiple memory processors located in discontinuous areas, and when the DMA transfer to the memory processors targeted for data transfer is completed. Because it was necessary to set the information for the next nine programs in memory, DMA transfer could not be performed while that information was being set, and as a result, the DMA
[Flat film for solving the problem] The DMA controller of the present invention has a first register that holds information set for data transfer, and a first register that holds information set for data transfer; and a second register that holds the information set for the transfer.

第1のレジスタに上記情報が設定されるとセットされる
D M A要求ffc”rフラグと、DMA要求許可フ
ラグがセッ状状態のときに限り可能な第1のレジスタの
内容に基づくデータ転送が開始するとセットされこのセ
ッ状状態のときに限シ可能な第2のレジスタへの上記情
報の設定が行われるとリセットされる書き込み許可フラ
グとを設け、第1のレジスタの内容に基づくデータ転送
が終了すると書き込み許可フラグの状態により、第2の
レジスタの内容を第1のレジスタに転送し、DMA要求
許可フラグをリセットシ、またデータ転送の終了を外部
に報告するようにしたことを特徴とする。
Data transfer based on the contents of the first register is possible only when the DMA request ffc''r flag is set when the above information is set in the first register, and the DMA request permission flag is set. A write permission flag that is set when the program starts and is reset when the above information is set in the second register, which can only be accessed in this set state, is provided, and data transfer based on the contents of the first register is provided. When the data transfer is completed, the contents of the second register are transferred to the first register depending on the state of the write permission flag, the DMA request permission flag is reset, and the completion of data transfer is reported to the outside.

〔実施例〕〔Example〕

次に本発明について図面なhaして説明する。 Next, the present invention will be explained with reference to the drawings.

第1図it本発明の一実施例のプロ、り図を示す。FIG. 1 shows a diagram of an embodiment of the present invention.

第1図において、第1のメモリ・アドレス−レジスタ1
と第1の転送回数レジスタ2は、現在実行中のDMA転
送に関する情報を有しており、それぞれアップ・カフ/
り、ダウ7・カウンタとして動作する。第2のメモリ・
アドレス・レジスタとによるDMA転送終了後に続いて
実行されるDMA転送に関する情報を有している。
In FIG. 1, the first memory address - register 1
and the first transfer count register 2 have information regarding the currently executing DMA transfer, and the up/cuff/first transfer count register 2 has information regarding the DMA transfer currently being executed.
It operates as a Dow 7 counter. Second memory
It has information regarding the DMA transfer to be executed subsequently after the completion of the DMA transfer by the address register.

タイミング制御回路5はDMAコントローラの内部タイ
ミングを削御し、DMA5求許可フラグ6は、DMA袈
求信号7を有効化するか無効化するかの制御を行なうフ
ラグで、マイクログロセ。
The timing control circuit 5 controls the internal timing of the DMA controller, and the DMA5 request permission flag 6 is a flag that controls whether to enable or disable the DMA request signal 7, and is a microgross flag.

すからの命令やDMAコントローラの内部状態によって
セットマたはリセットされる。
It is set or reset by a command from the original or by the internal state of the DMA controller.

書き込み許可フラグ8は第2のメモリ・アドレス・レジ
スタ3と第2の転送回数レジスタ4に情報が書き込まれ
ていることを示すフラグで、第2ツメモリ・アドレス・
レジスタ3と第2の転送回数レジスタ4に対する書き込
み動作やDMAコントローラの内部状態によってセット
またはリセ。
The write permission flag 8 is a flag indicating that information has been written to the second memory address register 3 and the second transfer count register 4.
Set or reset depending on the write operation to register 3 and second transfer count register 4 or the internal state of the DMA controller.

トされる0また、このフラグはマイクロプロセッサによ
って読み出すことができる0割シ込み発生回路9はDM
A転送の終了をマイクロプロセ、すに伝えるために割シ
込み要求信号10を発生させる回路である。
This flag can also be read by the microprocessor.
This circuit generates an interrupt request signal 10 to notify the microprocessor of the completion of A transfer.

次に本実施例の動作を説明する。Next, the operation of this embodiment will be explained.

(1)マイクロプロセッサは、第1のメモリ・アドレス
・レジスタ1と第1の転送回数レジスタ2に、データ転
送の対象となるメモリ・プロ、りの情報を設定し、DM
A要求許可フラグ6をセットシDMA転送が実行可能な
状態とする。
(1) The microprocessor sets information on the memory processor to be data transferred in the first memory address register 1 and the first transfer count register 2, and
The A request permission flag 6 is set to a state in which DMA transfer can be executed.

(2) D M A 要求信号7が入力すると、タイミ
ング制御回路5が動作し、DMA転送が開始され、メモ
リーアドレス11や1WIJ #信号12が外部に出力
される。1回のDMA転送が実行されるごとに第1のメ
モリ・アドレス・レジスタ1と第1の転送回数レジスタ
2はそれぞれ+1および−1される0また、DMA転送
が開始されると書き込み許可7ラグ8がセットされ、第
2のメモリ・アドレス・レジスタ3と第2の転送回数レ
ジスタ4に対する書き込みが許可される。
(2) When the DMA request signal 7 is input, the timing control circuit 5 operates, DMA transfer is started, and the memory address 11 and 1WIJ # signal 12 are output to the outside. Each time one DMA transfer is executed, the first memory address register 1 and the first transfer count register 2 are incremented by +1 and -1, respectively. Also, when a DMA transfer is started, write permission 7 lag is added. 8 is set, and writing to the second memory address register 3 and second transfer count register 4 is permitted.

(31D M A転送はDMA要求信号7が入力されて
いる間、連続して実行され、この間にマイクロプロセ、
すは書き込み許可フラグ8をモニタして第2のメモリ拳
アドレスΦレジスタ3と第2の転送回数レジスタ4に次
のメモリ・プロ、りの情報を設定することができる。情
報が設定されると書き込み許可フラグ8はリセットされ
る。
(The 31D MA transfer is executed continuously while the DMA request signal 7 is being input, and during this time the microprocessor,
The next memory program information can be set in the second memory address register 3 and the second transfer count register 4 by monitoring the write permission flag 8. When the information is set, the write permission flag 8 is reset.

(4)境在実行中のDMA転送は第1の転送回数レジス
タ2の内容が0になることで終了するが、その時の書き
込み許可フラグ80状態によって、以降の動作が異なる
(4) Boundary Although the DMA transfer being executed ends when the contents of the first transfer count register 2 become 0, the subsequent operation differs depending on the state of the write permission flag 80 at that time.

(4,1)書き込み許可7クグ8がリセットされている
場合 この場合は、第2のメモリーアドレス自レジスタ3と第
2の転送回数レジスタ4に次のメモリ・ブロックの情報
が設定されているので、次のメモリ・プロ、りに対する
DMA転送を引き絖き実行する。すなわち、転送終了信
号13が発生するとロード信号14が第1のメモリeア
ドレス・レジスタ1と第1の転送回数レジスタ2に送出
され、それぞれに第2のメモリ・アドレス・レジスタ3
と第2の転送回数レジスタ4の内容が設定される。
(4,1) When write permission 7 and 8 are reset. In this case, the information of the next memory block is set in the second memory address register 3 and the second transfer count register 4. , and executes the DMA transfer to the next memory processor. That is, when the transfer end signal 13 is generated, the load signal 14 is sent to the first memory e-address register 1 and the first transfer count register 2, and the second memory address register 3 is sent to each of them.
and the contents of the second transfer count register 4 are set.

サラに、DMA安求安打許可フラグ6ットサレタママで
あるので、DMA要求信号7が入力きれると次のメモリ
・ブロックに対するD M A転送が自動的に実行され
る。また、この場合は、割り込み要求信号】0は発生し
ない。
Additionally, since the DMA hit permission flag 6 is set, when the DMA request signal 7 is inputted, DMA transfer to the next memory block is automatically executed. Further, in this case, the interrupt request signal 0 is not generated.

(4,2)書き込み許可フラグ8がセットされている場
合 この場合は、第2のメモリ・アドレス・レジスタ3と第
2の転送回数レジスタ4に次のメモリ拳プロ、りの情報
が設定されていないので、DMA転送を終了する。すな
わち、歓送終了信号】3が発生すると、停止信号15が
、DMAe求許可フラグ6に送出され、D M A 賛
求計可フラグ6がリセットされ、以降、DMA1求信号
7を受は付けなくなF)DMA@j′F−が停止する。
(4, 2) When the write permission flag 8 is set In this case, the information for the next Memory Fist Pro is set in the second memory address register 3 and the second transfer count register 4. Since there is no DMA transfer, the DMA transfer ends. That is, when the farewell completion signal [3] is generated, a stop signal 15 is sent to the DMAe request permission flag 6, the DMA approval request permission flag 6 is reset, and the DMA1 request signal 7 is no longer accepted. F) DMA@j'F- is stopped.

さらに停止信号】4は割り込み発生回路9にも送出され
、割シ込み要求信号10が発生し、マイクロプロセッサ
に転送の終了を伝達する。
Further, the stop signal ]4 is also sent to the interrupt generation circuit 9, and an interrupt request signal 10 is generated to notify the microprocessor of the end of the transfer.

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

以上説明したように本発明のDMAコントローラは、第
1のレジスタの内容によるDMA転送を実行中に第2の
レジスタにデータ転送のための情報を設定しておくと、
第】のレジスタの内容によるDMA転送が終了した後に
第2のレジスタの内容によるDMA転送が引き続いて実
行されるので、不連続な領域に配置された複数個のメモ
リ・ブロックに対するDMA1送を実行する場合に、D
MAコントローラへの情報設定のためにDMA転送を禁
止する必要がなくなシ、複叡個のメモリ・プロ、りに対
するDMA転送を一連の動作として連続して実行できる
ようになるという効果がある。
As explained above, the DMA controller of the present invention sets information for data transfer in the second register while executing DMA transfer based on the contents of the first register.
After the DMA transfer based on the contents of the second register is completed, the DMA transfer based on the contents of the second register is subsequently executed, so DMA1 transfer is executed to multiple memory blocks located in discontinuous areas. In case, D
There is no need to inhibit DMA transfer to set information to the MA controller, and DMA transfer to multiple memory processors can be executed continuously as a series of operations.

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

第1図は本発明の一実施倒を示すプロ、り図である。 1・・・・・・第1のメモリ・アドレス・レジスタ、2
・・・・・・第1の転送回数レジスタ、3・・・・・・
第2のメモリ・アドレス−レジスタ、4・・・・・・第
2の転送回数レジスタ、5・・・・・・タイミング制御
回路、6・・・・DMA要求許可フラグ、7・・・・・
・DMA要求信号、8・・・・・・書き込み許可フラグ
、9・・・・・・割シ込み発生回路、】O・・・・・・
割シ込み要求信号、11・・・・・・メモリ・アドレス
、12・・・・・・制御信号、13・・・・・・転送終
了信号、14・・・・・・ロード信号、15・・・・・
・停止信号、16・・・・・・レジスタ更新信号。
FIG. 1 is a schematic diagram showing one implementation of the present invention. 1...First memory address register, 2
...First transfer count register, 3...
Second memory address register, 4... Second transfer count register, 5... Timing control circuit, 6... DMA request permission flag, 7...
・DMA request signal, 8...Write permission flag, 9...Interrupt generation circuit, ]O...
Interrupt request signal, 11... Memory address, 12... Control signal, 13... Transfer end signal, 14... Load signal, 15...・・・・・・
- Stop signal, 16...Register update signal.

Claims (1)

【特許請求の範囲】 データ転送のために設定された情報を保持する第1のレ
ジスタと、 次のデータ転送のために設定される情報を保持する第2
のレジスタと、 前記第1のレジスタに前記情報が設定されるとセットさ
れるDMA要求許可フラグと、 該DMA要求許可フラグがセット状態のときに限り可能
な前記第1のレジスタの内容に基づくデータ転送が開始
するとセットされ該セット状態のときに限り可能な前記
第2のレジスタへの前記情報の設定が行われるとリセッ
トされる書き込み許可フラグ とを設け、前記第1のレジスタの内容に基づくデータ転
送が終了すると前記書き込み許可フラグの状態により、
前記第2のレジスタの内容を前記第1のレジスタに転送
し、前記DMA要求許可フラグをリセットし、またデー
タ転送の終了を外部に報告するようにしたことを特徴と
するDMAコントローラ。
[Claims] A first register that holds information set for data transfer, and a second register that holds information set for the next data transfer.
a DMA request permission flag that is set when the information is set in the first register; and data based on the contents of the first register that is possible only when the DMA request permission flag is set. and a write permission flag that is set when the transfer starts and is reset when the information is set in the second register, which is possible only in the set state, and data based on the contents of the first register. When the transfer is completed, depending on the state of the write permission flag,
A DMA controller, characterized in that the content of the second register is transferred to the first register, the DMA request permission flag is reset, and the completion of data transfer is reported to the outside.
JP17450386A 1986-07-23 1986-07-23 Dma controller Pending JPS6329868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17450386A JPS6329868A (en) 1986-07-23 1986-07-23 Dma controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17450386A JPS6329868A (en) 1986-07-23 1986-07-23 Dma controller

Publications (1)

Publication Number Publication Date
JPS6329868A true JPS6329868A (en) 1988-02-08

Family

ID=15979638

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17450386A Pending JPS6329868A (en) 1986-07-23 1986-07-23 Dma controller

Country Status (1)

Country Link
JP (1) JPS6329868A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0333594A2 (en) * 1988-03-18 1989-09-20 Fujitsu Limited Direct memory access controller
JPH01318135A (en) * 1988-06-20 1989-12-22 Hitachi Ltd Direct memory access control circuit
EP0464615A2 (en) * 1990-06-25 1992-01-08 Nec Corporation Microcomputer equipped with DMA controller
EP0474253A2 (en) * 1990-09-07 1992-03-11 Nec Corporation Register circuit for copying contents of one register into another register
JPH04260955A (en) * 1990-06-25 1992-09-16 Nec Corp Microcomputer
US6111592A (en) * 1996-11-26 2000-08-29 Kabushiki Kaisha Toshiba DMA data transfer apparatus, motion picture decoding apparatus using the same, and DMA data transfer method
CN1065887C (en) * 1995-04-27 2001-05-16 住友化学工业株式会社 Thermoplastic resin composition and injection molded article thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0333594A2 (en) * 1988-03-18 1989-09-20 Fujitsu Limited Direct memory access controller
JPH01318135A (en) * 1988-06-20 1989-12-22 Hitachi Ltd Direct memory access control circuit
EP0464615A2 (en) * 1990-06-25 1992-01-08 Nec Corporation Microcomputer equipped with DMA controller
JPH04260955A (en) * 1990-06-25 1992-09-16 Nec Corp Microcomputer
US5696989A (en) * 1990-06-25 1997-12-09 Nec Corporation Microcomputer equipped with DMA controller allowed to continue to perform data transfer operations even after completion of a current data transfer operation
EP0474253A2 (en) * 1990-09-07 1992-03-11 Nec Corporation Register circuit for copying contents of one register into another register
EP0474253A3 (en) * 1990-09-07 1995-11-15 Nec Corp Register circuit for copying contents of one register into another register
CN1065887C (en) * 1995-04-27 2001-05-16 住友化学工业株式会社 Thermoplastic resin composition and injection molded article thereof
US6111592A (en) * 1996-11-26 2000-08-29 Kabushiki Kaisha Toshiba DMA data transfer apparatus, motion picture decoding apparatus using the same, and DMA data transfer method

Similar Documents

Publication Publication Date Title
EP0464615B1 (en) Microcomputer equipped with DMA controller
JPH0430053B2 (en)
JPS5933553U (en) processor
JPS6329868A (en) Dma controller
JPS6131485B2 (en)
JPH05108548A (en) Dma controller
JPS6290728A (en) Interruption processing method
JPS6049352B2 (en) data processing equipment
JPS62120542A (en) Information processor
JP3127737B2 (en) Digital signal processor
JPS62219058A (en) Exclusive control system for shared memory
JP3139310B2 (en) Digital signal processor
JPH023217B2 (en)
JPH0378661B2 (en)
JPS59177631A (en) Dma control system
JPH0460858A (en) Interruption address setting controlling system
JPS59135525A (en) Loading system of initializing program
JPH05334239A (en) Bus system
JPH027099B2 (en)
JPH0521260B2 (en)
JPS5831022B2 (en) Processor control method
JPH0229848A (en) System control device
JP2000010899A (en) Input/output processing system and its peripheral device control method, and recording medium where its control program is recorded
JPS60140437A (en) Virtual computer system timer control system
JPH01263763A (en) Instruction execution control system