JP2002229932A - Dma transfer device and data transfer system - Google Patents

Dma transfer device and data transfer system

Info

Publication number
JP2002229932A
JP2002229932A JP2001029620A JP2001029620A JP2002229932A JP 2002229932 A JP2002229932 A JP 2002229932A JP 2001029620 A JP2001029620 A JP 2001029620A JP 2001029620 A JP2001029620 A JP 2001029620A JP 2002229932 A JP2002229932 A JP 2002229932A
Authority
JP
Japan
Prior art keywords
bus
dma transfer
transfer device
cpu
dma
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.)
Granted
Application number
JP2001029620A
Other languages
Japanese (ja)
Other versions
JP3497478B2 (en
Inventor
Kazuhiro Nagasawa
和広 長澤
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2001029620A priority Critical patent/JP3497478B2/en
Publication of JP2002229932A publication Critical patent/JP2002229932A/en
Application granted granted Critical
Publication of JP3497478B2 publication Critical patent/JP3497478B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a DMA transfer device of a cycle steal system in which such a useless CPU cycle, for the constant monitoring of the transfer termination of DMA, that is caused by the transfer of bus use rights to the CPU, does not occur, and to provide a data transfer system including these DMA transfer devices. SOLUTION: The DMA transfer device 2 has a bus request generation circuit 14, a DMA transfer termination flag reference counter 11 that is a counter for counting the number of times of reference to termination flag that is a detection means for detecting the status of waiting for DMA transfer termination of a CPU 3, an upper bound of the number of times of reference management register 12 of a register that makes the setting of the upper bound of the number of times of reference, and a comparator 13 that compares the discrete value of the DMA transfer termination flag reference counter 11 with the set value of the number of times of reference management register 12. If the number of times of reference, for the termination status, to the DMA transfer device 2 that is detected with the detection means hits a fixed number of times or more, it is judged that the CPU has entered the status of monitoring the termination of DMA transfer.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、DMA転送装置及
びデータ転送システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA transfer device and a data transfer system.

【0002】[0002]

【従来の技術】CPUを介さずにデバイスからメモリ
へ、またはメモリからデバイスへデータの転送を行う方
式として、ダイレクトメモリアクセス(以下、DMAと
称する。)転送方式がある。DMA転送方式には、イン
タロック方式やサイクルスチール方式などがある。
2. Description of the Related Art As a method of transferring data from a device to a memory or from a memory to a device without a CPU, there is a direct memory access (hereinafter, referred to as DMA) transfer method. The DMA transfer method includes an interlock method and a cycle steal method.

【0003】インタロック方式の場合、DMA転送装置
は一旦バスの使用権を獲得すると、DMA転送装置の転
送終了条件が満足されるまでバスを解放することなく、
DMA転送を連続的に行う。
In the case of the interlock method, once the DMA transfer device acquires the right to use the bus, it does not release the bus until the transfer end condition of the DMA transfer device is satisfied.
DMA transfer is performed continuously.

【0004】サイクルスチール方式の場合、DMA転送
装置は所定時間、または所定回数といった一転送単位の
転送を終了する毎にバスを解放し、CPUにバスの使用
権を委譲する。その後、再度のDMA転送装置の転送要
求が発生した場合、DMA転送装置はCPUからバスの
使用権を獲得し、再度一転送単位のDMA転送を行い、
転送終了後再びCPUにバスの使用権を委譲する。この
動作はDMA転送の転送終了条件が満足されるまで繰り
返し実行される。
In the case of the cycle stealing method, the DMA transfer device releases the bus each time transfer of one transfer unit such as a predetermined time or a predetermined number of times is completed, and transfers the right to use the bus to the CPU. Thereafter, when a transfer request of the DMA transfer device is generated again, the DMA transfer device acquires the right to use the bus from the CPU, performs DMA transfer in one transfer unit again,
After the transfer is completed, the right to use the bus is transferred to the CPU again. This operation is repeatedly executed until the transfer end condition of the DMA transfer is satisfied.

【0005】インタロック方式は制御が簡単であり、D
MA転送として高いスループットが得られる。しかし、
DMA転送中はCPU動作の介入ができなくなるため、
例えば、割り込み応答といったCPUの迅速なる処理が
必要となる状況においても、その応答がDMAの転送終
了を待たねばならないといった問題が生じる。
[0005] The interlock system is easy to control, and D
High throughput is obtained as MA transfer. But,
During DMA transfer, CPU operation cannot be intervened.
For example, even in a situation where quick processing of the CPU is required, such as an interrupt response, there arises a problem that the response must wait for the end of the DMA transfer.

【0006】サイクルスチール方式では、一定間隔でC
PUがバスの使用権を獲得できるため、インタロック方
式のように必要なCPU動作まで制限されるといった問
題は生じない。しかしながら、サイクルスチール方式を
実現するためのハードウェア資源、及びバス調停のため
のバスアービタが必要となる。また、バスアービタの調
停方式に基づくバスの使用権獲得のために、アービトレ
ーションが頻繁に生じる。そのため、所望のデータの転
送を完了するための転送速度が遅くなるという問題が生
じる。
[0006] In the cycle steel method, C
Since the PU can acquire the right to use the bus, there is no problem that the necessary CPU operation is limited as in the interlock method. However, hardware resources for realizing the cycle stealing method and a bus arbiter for bus arbitration are required. In addition, arbitration frequently occurs to acquire the right to use the bus based on the arbitration system of the bus arbiter. Therefore, there is a problem that the transfer speed for completing the transfer of the desired data is reduced.

【0007】現状のDMA転送方式はサイクルスチール
方式が一般的であり、インタロック方式はユーザが意識
して設定し使用する場合に限られる傾向にある。つま
り、インタロック方式は、サイクルスチール方式のDM
A転送装置において付加機能たる要素が強い。
The current DMA transfer system is generally a cycle steal system, and the interlock system tends to be limited to a case where a user is consciously setting and using the system. That is, the interlock method is the cycle steal type DM
The elements that are additional functions in the A transfer device are strong.

【0008】次に、従来のDMA転送装置を含むデータ
転送システムの構成を図2に基づいて説明する。図2
は、従来のDMA転送装置を含むデータ転送システムの
構成図である。データ転送システム51は、DMA転送
装置52、CPU53、バスアービタ(Bus arbiter )
54を含む構成である。DMA転送装置52及びCPU
53は、アドレスバス55とデータバス56とにそれぞ
れ接続されている。また、バスアービタ54及びDMA
転送装置52は、バスリクエスト(bus request)線7
1とバスグラント(bus grant )線72とにより接続さ
れている。さらに、バスアービタ54及びCPU53
は、バスリクエスト(bus request )線73とバスグラ
ント(bus grant )線74とにより接続されている。
Next, the configuration of a data transfer system including a conventional DMA transfer device will be described with reference to FIG. FIG.
1 is a configuration diagram of a data transfer system including a conventional DMA transfer device. The data transfer system 51 includes a DMA transfer device 52, a CPU 53, and a bus arbiter.
54. DMA transfer device 52 and CPU
53 is connected to the address bus 55 and the data bus 56, respectively. The bus arbiter 54 and the DMA
The transfer device 52 has a bus request line 7
1 and a bus grant line 72. Further, the bus arbiter 54 and the CPU 53
Are connected by a bus request line 73 and a bus grant line 74.

【0009】DMA転送装置52は、バスリクエスト生
成回路64を備えており、インタロック方式固定、サイ
クルスチール方式固定、またはその両方式を設定可能で
ある。DMA転送装置52は、バスリクエスト生成回路
64からバスアービタ54に対して、バスの使用要求
(バスリクエスト)を出す。バスアービタ54は、バス
のアービトレーション手段(不図示)に従って、CPU
53及びDMA転送装置52にアドレスバス55とデー
タバス56との使用権を与える。なお、図2において
は、CPU53及びDMA転送装置52がバスマスタと
なるが、複数のバスマスタを用いた構成のシステムも存
在する。
The DMA transfer device 52 includes a bus request generation circuit 64, and can set a fixed interlock system, a fixed cycle steal system, or both. The DMA transfer device 52 issues a bus use request (bus request) from the bus request generation circuit 64 to the bus arbiter 54. The bus arbiter 54 has a CPU according to a bus arbitration unit (not shown).
The right to use the address bus 55 and the data bus 56 is given to the DMA transfer device 53 and the DMA transfer device 52. In FIG. 2, the CPU 53 and the DMA transfer device 52 serve as bus masters. However, there are systems having a configuration using a plurality of bus masters.

【0010】DMA転送方式を採用したデータ転送シス
テムにおいて、バスの効率的使用を目的として、例えば
特開平11−232215号公報には、バスの空き時間
を利用してバス使用状況の情報を送信し、それに基づき
各バスマスタが使用要求のスケジューリングを行うバス
コントローラ、バスマスタ装置及びバス制御システムの
制御方法に関する技術が開示されている。また、特開平
5−282243号公報には、CPUの命令を解読し
て、例えば乗算命令といったCPU内部で複数サイクル
に渡って処理される命令発行時などのバスを所定期間使
用しなくなる際には、DMA転送装置にバスの使用権を
与えるバスマスター装置及び該装置を用いた電子機器に
関する技術が開示されている。
In a data transfer system adopting the DMA transfer system, for the purpose of efficient use of the bus, for example, Japanese Patent Application Laid-Open No. Hei 11-232215 discloses a method of transmitting information on a bus use state by utilizing an idle time of the bus. A technique relating to a bus controller, a bus master device, and a control method of a bus control system in which each bus master schedules a use request based on the bus controller is disclosed. Japanese Patent Application Laid-Open No. Hei 5-282243 discloses that when a command such as a multiplication instruction is processed for a plurality of cycles inside the CPU and a bus is not used for a predetermined period of time, a command of the CPU is decoded. A technique relating to a bus master device for giving a right to use a bus to a DMA transfer device and an electronic apparatus using the device are disclosed.

【0011】[0011]

【発明が解決しようとする課題】バスの使用効率を上げ
る目的でサイクルスチール方式のDMA転送装置を採用
したデータ転送システムでは、CPUがDMA転送の転
送終了を待っている状態にある時、次のような問題があ
る。すなわち、CPUへバスの使用権が委譲された時
に、DMAの転送終了を常に監視するといった無駄なC
PUサイクルが発生してしまう。そのため、このCPU
サイクルがDMA転送の転送速度を減じてしまう。一
方、DMA転送装置の転送速度を速めるためにインタロ
ック方式を採用すると、割り込み応答等の迅速な応答が
必要とされるCPUサイクルまで制限してしまうという
問題がある。これらの問題についての対策は、上記の従
来技術には記載されていない。
In a data transfer system employing a cycle stealing type DMA transfer device for the purpose of increasing the bus use efficiency, when the CPU is in a state of waiting for the end of the DMA transfer, the following process is performed. There is such a problem. That is, when the right to use the bus is delegated to the CPU, the useless C such as always monitoring the end of the DMA transfer is monitored.
A PU cycle occurs. Therefore, this CPU
The cycle reduces the transfer speed of the DMA transfer. On the other hand, if the interlock method is adopted to increase the transfer speed of the DMA transfer device, there is a problem that CPU cycles that require a quick response such as an interrupt response are limited. No measures against these problems are described in the above prior art.

【0012】そこで、この発明は上記の問題を解決する
ために創作したものであり、その目的は、CPUにバス
の使用権が委譲されることにより、DMAの転送終了を
常に監視するといった無駄なCPUサイクルの発生がな
いサイクルスチール方式のDMA転送装置及びサイクル
スチール方式とインタロック方式とを兼ね備えたDMA
転送装置、及びこれらのDMA転送装置を含むデータ転
送システムを提供することである。
Therefore, the present invention has been made to solve the above-mentioned problem, and its purpose is to wastefully monitor the end of DMA transfer by transferring the right to use the bus to the CPU. Cycle steal type DMA transfer device without occurrence of CPU cycle, and DMA having both cycle steal type and interlock type
It is an object to provide a transfer device and a data transfer system including these DMA transfer devices.

【0013】[0013]

【課題を解決するための手段】この発明は、上記の課題
を解決するための手段として、以下の構成を備えてい
る。
The present invention has the following arrangement as means for solving the above-mentioned problems.

【0014】(1) データのDMA転送を所定時間毎また
は所定回数毎に行うDMA転送装置であって、CPUが
DMA転送装置の転送終了待ち状態であることを検知し
て所定の信号を出力する検知手段と、該検知手段の出力
信号に応じてバス使用要求を出力するバスリクエスト生
成手段と、を備えたことを特徴とする。
(1) A DMA transfer apparatus for performing DMA transfer of data at predetermined time intervals or at predetermined times, wherein a CPU detects that the DMA transfer apparatus is in a state of waiting for transfer completion and outputs a predetermined signal. It is characterized by comprising detecting means, and bus request generating means for outputting a bus use request in response to an output signal of the detecting means.

【0015】この構成において、DMA転送装置は、C
PUがDMA転送装置の転送終了待ち状態であることを
検知して所定の信号を出力する検知手段と、該検知手段
の出力信号に応じてバス使用要求を出力するバスリクエ
スト生成手段と、を備え、データのDMA転送を必要に
応じた任意の時間毎または回数毎に行う。したがって、
DMA転送装置が検知手段でCPUがDMA転送装置の
転送終了待ち状態であることを検知するので、従来のよ
うにCPUにおいて、サイクルスチール方式のDMA転
送装置のDMA転送終了を常に監視するといった無駄な
CPUサイクルの発生を減じることができ、DMA転送
装置の転送速度を高めることが可能となる。
In this configuration, the DMA transfer device has a C
Detecting means for detecting that the PU is in a transfer end waiting state of the DMA transfer device and outputting a predetermined signal; and bus request generating means for outputting a bus use request in response to an output signal of the detecting means. , The DMA transfer of data is performed at an arbitrary time or at an arbitrary number of times as necessary. Therefore,
Since the DMA transfer device detects by the detection means that the CPU is waiting for the transfer completion of the DMA transfer device, the CPU always monitors the end of the DMA transfer of the cycle steal type DMA transfer device in the conventional CPU. The occurrence of CPU cycles can be reduced, and the transfer speed of the DMA transfer device can be increased.

【0016】(2) 上記の構成において、前記転送終了待
ち状態における1回のデータ転送時間またはデータ転送
回数を変更可能な転送数設定手段を備えたことを特徴と
する。
(2) In the above configuration, a transfer number setting means capable of changing one data transfer time or the number of data transfers in the transfer end waiting state is provided.

【0017】この構成において、DMA転送装置は、転
送数設定手段で転送終了待ち状態における1回のデータ
転送時間またはデータ転送回数を変更可能である。した
がって、DMA転送装置は、必要な時間または必要な回
数だけバスの使用権を占有することが可能となる。
In this configuration, the DMA transfer device can change one data transfer time or the number of data transfers in the transfer end waiting state by the transfer number setting means. Therefore, the DMA transfer device can occupy the right to use the bus for a required time or a required number of times.

【0018】(3) 前記検知手段は、前記CPUの終了ス
テータス参照回数が所定の回数以上、または参照周期が
所定の周期以下になると、所定の信号をバスリクエスト
生成手段に対して出力することを特徴とする。
(3) The detection means outputs a predetermined signal to the bus request generation means when the end status reference count of the CPU is equal to or more than a predetermined count or the reference cycle is equal to or less than a predetermined cycle. Features.

【0019】この構成において、CPUの終了ステータ
ス参照回数が所定の回数以上、または参照周期が所定の
周期以下になると、DMA転送装置の検知手段は、所定
の信号をバスリクエスト生成手段に対して出力する。し
たがって、CPUが常にDMA転送装置のDMA転送終
了を監視する必要がない。
In this configuration, when the end status reference count of the CPU is equal to or greater than a predetermined count or the reference cycle is equal to or less than a predetermined cycle, the detection means of the DMA transfer device outputs a predetermined signal to the bus request generation means. I do. Therefore, there is no need for the CPU to constantly monitor the end of the DMA transfer by the DMA transfer device.

【0020】(4) (3) の構成において、前記検知手段
は、前記CPUが終了フラグを参照した回数を計数する
終了フラグ参照回数計数手段と、前記CPUの終了フラ
グ参照回数の上限を設定した参照回数上限登録手段と、
該終了フラグ参照回数計数手段の計数値と該参照回数上
限登録手段の設定値とを比較して、該終了フラグ参照回
数計数手段の計数値が該参照回数上限登録手段の設定値
を超えると所定の信号を出力する比較手段と、により構
成されたとすることができる。
(4) In the configuration of (3), the detecting means sets an end flag reference number counting means for counting the number of times the CPU refers to the end flag, and sets an upper limit of the end flag reference number of the CPU. Reference count upper limit registration means,
The count value of the end flag reference count counting means is compared with the set value of the reference count upper limit registration means. If the count value of the end flag reference count counting means exceeds the set value of the reference count upper limit registration means, a predetermined value is determined. And comparison means for outputting the signal of

【0021】この構成において、検知手段の比較手段
は、終了フラグ参照回数計数手段が計数したCPUの終
了フラグを参照した回数と、参照回数上限登録手段に設
定されたCPUの終了フラグ参照回数の上限設定値と、
を比較して、終了フラグ参照回数計数手段の計数値が参
照回数上限登録手段の設定値を超えると所定の信号を出
力する。したがって、CPUがDMA転送装置のDMA
転送終了待ち状態であることを簡単な構成で容易に検出
することが可能となる。
In this configuration, the comparing means of the detecting means includes the number of times the end flag reference number counting means has referred to the CPU end flag and the upper limit of the CPU end flag reference number set in the reference number upper limit registering means. Settings and
And outputs a predetermined signal when the count value of the end flag reference count counting means exceeds the set value of the reference count upper limit registration means. Therefore, when the CPU
The transfer end waiting state can be easily detected with a simple configuration.

【0022】(5) 前記バスリクエスト生成手段は、割り
込み発生を検知すると、バスの使用権をCPUに委譲す
る信号を出力することを特徴とする請求項1乃至3のい
ずれかに記載のDMA転送装置。
(5) The DMA transfer according to any one of claims 1 to 3, wherein upon detecting occurrence of an interrupt, the bus request generation means outputs a signal for transferring the right to use the bus to the CPU. apparatus.

【0023】この構成においては、割り込み発生を検知
すると、バスの使用権をCPUに委譲する信号をバスリ
クエスト生成手段は出力する。したがって、割り込みが
発生した際には、速やかに割り込み処理を行うことが可
能となる。
In this configuration, when the occurrence of an interrupt is detected, the bus request generating means outputs a signal for transferring the right to use the bus to the CPU. Therefore, when an interrupt occurs, the interrupt processing can be performed promptly.

【0024】(6) 請求項1乃至4のいずれかに記載のD
MA転送装置と、バスを介してデータを送受信するCP
Uと、該DMA転送装置及び該CPUのバス使用要求を
調停するバス使用権調停装置と、を含むことを特徴とす
る。
(6) D according to any one of claims 1 to 4
CP for transmitting and receiving data via MA bus and bus
U and a bus use right arbitration device for arbitrating a bus use request of the DMA transfer device and the CPU.

【0025】この構成において、データ転送システム
は、請求項1乃至請求項4のいずれかに記載のDMA転
送装置と、バスを介してデータを送受信するCPUと、
該DMA転送装置及び該CPUのバス使用要求を調停す
るバス使用権調停装置と、を含んで構成される。したが
って、回路規模のさしたる増加もなく、容易にサイクル
スチール方式のDMA転送装置を構成要素とするデータ
転送システムにおいて、特にDMAの転送終了を常に監
視するといった無駄なCPUサイクルの発生を減じるこ
とができ、DMA転送装置の転送速度を高めることが可
能となる。
In this configuration, the data transfer system includes: a DMA transfer device according to any one of claims 1 to 4; a CPU for transmitting and receiving data via a bus;
A bus use right arbitration device for arbitrating a bus use request of the CPU. Therefore, it is possible to easily reduce unnecessary CPU cycles such as always monitoring the end of DMA transfer in a data transfer system including a cycle steal type DMA transfer device without any significant increase in circuit scale. , The transfer speed of the DMA transfer device can be increased.

【0026】(7) 前記バス使用権調停装置は、検知した
割り込み発生要因が前記DMA転送装置の終了割り込み
でない場合、割り込み応答終了後、再度バスの使用権を
前記DMA転送装置に付与することを特徴とする。
(7) When the detected interrupt occurrence factor is not the end interrupt of the DMA transfer device, the bus arbitration device reassigns the right to use the bus to the DMA transfer device after the end of the interrupt response. Features.

【0027】この構成において、データ転送システムの
バス使用権調停装置は、検知した割り込み発生要因が前
記DMA転送装置の終了割り込みでない場合、割り込み
応答終了後、再度バスの使用権を前記DMA転送装置に
付与する。したがって、割り込みを検知した際に、DM
A転送装置の転送処理が完了していなかった場合には、
割り込み応答後にDMA転送装置が必要な時間または回
数だけバスを占有可能な状態に速やかに復帰することが
可能となる。
In this configuration, the bus arbitration device of the data transfer system, if the detected interrupt occurrence factor is not the end interrupt of the DMA transfer device, after the end of the interrupt response, transfers the bus use right to the DMA transfer device again. Give. Therefore, when an interrupt is detected, DM
If the transfer process of the A transfer device has not been completed,
After the interrupt response, the DMA transfer device can quickly return to a state in which the bus can be occupied for a necessary time or number of times.

【0028】(8) 割り込み信号を検知するための割り込
みコントローラを備え、前記DMA転送装置に代えて、
該割り込みコントローラが前記検知手段を有し、前記検
知手段は、割り込みコントローラのDMA転送装置にお
ける転送の終了割り込み発生検知の対象ビット参照回数
が所定所定の回数以上、または参照周期が所定の周期以
下になると、所定の信号をバスリクエスト生成手段に対
して出力することを特徴とする。
(8) An interrupt controller for detecting an interrupt signal is provided, and instead of the DMA transfer device,
The interrupt controller has the detection unit, and the detection unit determines that the number of times the target bit of the DMA transfer device of the interrupt controller detects the end of transfer interruption detection is equal to or more than a predetermined number of times, or the reference cycle is equal to or less than a predetermined cycle. Then, a predetermined signal is output to the bus request generating means.

【0029】この構成において、データ転送システム
は、DMA転送装置に代えて、割り込み信号を検知する
ための割り込みコントローラが、CPUがDMA転送装
置の転送終了待ち状態であることを検知して所定の信号
を出力する検知手段を有し、検知手段は、割り込みコン
トローラのDMA転送装置における転送の終了割り込み
発生検知の対象ビット参照回数が所定所定の回数以上、
または参照周期が所定の周期以下になると、所定の信号
をバスリクエスト生成手段に対して出力する。したがっ
て、データ転送システムの特性に応じて、検知手段の実
装位置を代えて、割り込みコントローラにより、CPU
がDMA転送装置の転送終了待ち状態であることを検知
することが可能となる。
In this configuration, in the data transfer system, instead of the DMA transfer device, an interrupt controller for detecting an interrupt signal detects that the CPU is in a transfer end wait state of the DMA transfer device and outputs a predetermined signal. The detection means outputs the target bit of the transfer end interrupt detection in the DMA transfer device of the interrupt controller is a predetermined number of times or more,
Alternatively, when the reference cycle becomes equal to or shorter than a predetermined cycle, a predetermined signal is output to the bus request generation unit. Therefore, the mounting position of the detection means is changed according to the characteristics of the data transfer system, and the CPU is controlled by the interrupt controller.
Is in a state of waiting for the transfer completion of the DMA transfer device.

【0030】(9) CPUが参照するアドレスをデコード
するアドレスデコーダを備え、前記DMA転送装置に代
えて、該アドレスデコーダが前記検知手段を有し、前記
検知手段は、前記CPUの特定のアドレスへの参照回数
が所定の回数以上、または参照周期が所定の周期以下に
なると、所定の信号をバスリクエスト生成手段に対して
出力することを特徴とする。
(9) An address decoder for decoding an address referred to by the CPU is provided. Instead of the DMA transfer device, the address decoder has the detecting means. When the reference count is equal to or more than a predetermined number or when the reference cycle is equal to or less than a predetermined cycle, a predetermined signal is output to the bus request generating means.

【0031】この構成において、データ転送システム
は、DMA転送装置に代えて、CPUが参照するアドレ
スをデコードするアドレスデコーダが、CPUがDMA
転送装置の転送終了待ち状態であることを検知して所定
の信号を出力する検知手段を有し、検知手段は、前記C
PUの特定のアドレスへの参照回数が所定の回数以上、
または参照周期が所定の周期以下になると、所定の信号
をバスリクエスト生成手段に対して出力する。したがっ
て、データ転送システムの状態に応じて、検知手段の実
装位置を代えて、アドレスデコーダにより、CPUがD
MA転送装置の転送終了待ち状態であることを検知する
ことが可能となる。
In this configuration, in the data transfer system, instead of the DMA transfer device, an address decoder for decoding an address referred to by the CPU includes
Detecting means for detecting that the transfer device is in a transfer end waiting state and outputting a predetermined signal;
The number of references to a specific address of the PU is equal to or more than a predetermined number,
Alternatively, when the reference cycle becomes equal to or shorter than a predetermined cycle, a predetermined signal is output to the bus request generation unit. Therefore, the mounting position of the detecting means is changed according to the state of the data transfer system, and the address decoder causes the CPU to operate as D.
It is possible to detect that the MA transfer device is in a transfer end waiting state.

【0032】[0032]

【発明の実施の形態】図1に基づいて、本発明の実施形
態に係るデータ転送システムの構成を説明する。図1
は、データ転送システムの概略の構成図である。データ
転送システム1は、DMA転送装置2、CPU3、バス
使用権調停装置であるバスアービタ(Bus arbiter )4
を含む構成である。DMA転送装置2及びCPU3は、
アドレスバス5とデータバス6とにそれぞれ接続されて
いる。また、バスアービタ4及びDMA転送装置2は、
バスリクエスト(bus request )線21とバスグラント
(bus grant )線22とにより接続されている。さら
に、バスアービタ4及びCPU3は、バスリクエスト
(bus request )線23とバスグラント(bus grant )
線24とにより接続されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The configuration of a data transfer system according to an embodiment of the present invention will be described with reference to FIG. Figure 1
1 is a schematic configuration diagram of a data transfer system. The data transfer system 1 includes a DMA transfer device 2, a CPU 3, and a bus arbiter 4 serving as a bus arbitration device.
It is a configuration including. The DMA transfer device 2 and the CPU 3
They are connected to an address bus 5 and a data bus 6, respectively. Further, the bus arbiter 4 and the DMA transfer device 2
It is connected by a bus request line 21 and a bus grant line 22. Further, the bus arbiter 4 and the CPU 3 are connected to a bus request line 23 and a bus grant.
It is connected by a line 24.

【0033】DMA転送装置2は、サイクルスチール方
式またはサイクルスチール方式とインタロック方式の両
方式を設定可能であり、バスリクエスト生成手段として
バスリクエスト生成回路14を備えている。また、DM
A転送装置2内にCPU3のDMA転送終了待ち状態を
検知する検知手段として、終了フラグの参照回数を勘定
するカウンタであるDMA終了フラグ参照カウンタ1
1、参照回数の上限を設定するレジスタである参照回数
上限管理レジスタ12、及びDMA終了フラグ参照カウ
ンタ11の計数値と参照回数上限管理レジスタ12の設
定値とを比較する比較器13を備えている。
The DMA transfer device 2 can set a cycle steal system or both a cycle steal system and an interlock system, and has a bus request generating circuit 14 as a bus request generating means. Also, DM
A DMA end flag reference counter 1 which is a counter that counts the number of times the end flag has been referred to as a detecting means for detecting the DMA transfer end wait state of the CPU 3 in the A transfer apparatus 2
1. A reference count upper limit management register 12 that is a register for setting an upper limit of the reference count, and a comparator 13 that compares the count value of the DMA end flag reference counter 11 with the set value of the reference count upper limit register 12. .

【0034】本発明のデータ転送システムでは、DMA
転送装置2への終了ステータスの参照回数が一定回数以
上になった場合に、DMA転送の終了をCPU3が監視
している状態になったと判断する。つまり、DMA終了
フラグ参照カウンタ11は、CPU3が終了ステータス
であるDMA終了フラグを参照する毎にカウントアップ
し、予め設定した参照回数上限管理レジスタ12の値を
超えた時、CPU3がDMA転送装置2の転送終了待ち
状態(以下、DMA転送終了待ち状態と称する。)に入
ったものとする。
In the data transfer system of the present invention, the DMA
If the number of times the transfer status of the transfer device 2 is referred to exceeds a certain value, it is determined that the CPU 3 is monitoring the end of the DMA transfer. That is, the DMA end flag reference counter 11 counts up each time the CPU 3 refers to the DMA end flag which is the end status, and when the CPU 3 exceeds the value of the reference count upper limit management register 12 set in advance, the CPU 3 sets the DMA transfer device 2 (Hereinafter referred to as a DMA transfer end wait state).

【0035】このDMA転送終了待ち状態において、D
MA転送装置2では、DMA終了フラグ参照カウンタ1
1の計数値が予め設定した参照回数上限管理レジスタ1
2の値を超えた時に、比較器13から所定の信号が出力
される。この信号はバスリクエスト生成回路14に入力
される。バスリクエスト生成回路14はバスリクエスト
を出し続ける機能を有し、この場合、バスリクエスト線
21を介してバスアービタ4にバスリクエストを出力す
る。
In this DMA transfer end wait state, D
In the MA transfer device 2, the DMA end flag reference counter 1
Reference count upper limit management register 1 in which the count value of 1 is set in advance
When the value exceeds 2, a predetermined signal is output from the comparator 13. This signal is input to the bus request generation circuit 14. The bus request generation circuit 14 has a function of continuously issuing a bus request. In this case, the bus request generation circuit 14 outputs the bus request to the bus arbiter 4 via the bus request line 21.

【0036】バスアービタ4は、CPU3及びDMA転
送装置2からバスリクエストを受け取ると、バスの使用
権を調停して、CPU3及びDMA転送装置2のいずれ
かにアドレスバス5とデータバス6との使用権を与え
る。この時、DMA転送装置2のバス使用権の優先順位
をCPU3より高く設定しておくことにより、DMA転
送装置2は該DMA転送終了待ち状態においてバスの使
用権を占有することができる。
Upon receiving a bus request from the CPU 3 and the DMA transfer device 2, the bus arbiter 4 arbitrates the right to use the bus, and gives one of the CPU 3 and the DMA transfer device 2 the right to use the address bus 5 and the data bus 6. give. At this time, by setting the priority of the bus use right of the DMA transfer device 2 higher than that of the CPU 3, the DMA transfer device 2 can occupy the bus use right in the DMA transfer end waiting state.

【0037】さらに、該DMA転送終了待ち状態におけ
る所定時間または所定回数といった1回のデータ転送時
間またはデータ転送回数(一転送単位の転送数)を設定
する転送数設定レジスタ15を、転送数設定手段として
設けておく。そして、バスリクエスト生成回路14がバ
スリクエストを出力する際に、この転送数設定レジスタ
15に設定された一転送単位の転送数を参照するように
設定する。1回のデータ転送時間またはデータ転送回数
(一転送単位の転送数)は、任意の値に設定可能とす
る。これによって、より柔軟なバスの使用権のアービト
レーションが可能となる。
Further, a transfer number setting register 15 for setting one data transfer time or data transfer number (the number of transfers in one transfer unit) such as a predetermined time or a predetermined number of times in the DMA transfer end waiting state is provided. It is provided as. When the bus request generation circuit 14 outputs a bus request, the bus request generation circuit 14 refers to the number of transfers in one transfer unit set in the transfer number setting register 15. One data transfer time or the number of data transfers (the number of transfers in one transfer unit) can be set to an arbitrary value. This allows for more flexible arbitration of bus usage rights.

【0038】また、上記の構成においては、DMA転送
装置に転送回数の設定レジスタの転送が完了する毎にバ
スの要求を取り下げる機能を設ける。これにより、DM
A転送装置2は該DMA転送終了待ち状態において、必
要な時間または回数だけバスの使用権を占有することが
できる。
In the above configuration, the DMA transfer device is provided with a function of canceling a bus request every time the transfer of the transfer count setting register is completed. As a result, DM
In the DMA transfer end waiting state, the A transfer device 2 can occupy the right to use the bus for a necessary time or number of times.

【0039】なお、本発明のデータ転送システムでは、
DMA転送装置への終了ステータスの参照周期が一定周
期以下になった場合に、DMA転送の終了をCPUが監
視している状態になったと判断するようにしてもよい。
In the data transfer system of the present invention,
When the reference cycle of the end status to the DMA transfer device becomes equal to or less than a predetermined cycle, it may be determined that the CPU is monitoring the end of the DMA transfer.

【0040】次に、本発明の実施形態に係るデータ転送
システムのバスサイクルについて説明する。図3は、図
2に示した従来のデータ転送システム51のバスサイク
ルのタイミングチャートである。図4は、図1に示した
本発明のデータ転送システム1におけるバスサイクルの
タイミングチャートである。
Next, a bus cycle of the data transfer system according to the embodiment of the present invention will be described. FIG. 3 is a timing chart of a bus cycle of the conventional data transfer system 51 shown in FIG. FIG. 4 is a timing chart of a bus cycle in the data transfer system 1 of the present invention shown in FIG.

【0041】従来のデータ転送システム51では、一定
間隔毎にDMA転送装置52からCPU53にバスの使
用権が委譲されている。すなわち、図3に示したよう
に、DMA転送装置52が4サイクルの間バスを使用す
ると、CPU53は最低1サイクルの間バスを使用す
る。データ転送システムでは、データ転送が終了するま
でこのサイクルが繰り返される。
In the conventional data transfer system 51, the right to use the bus is transferred from the DMA transfer device 52 to the CPU 53 at regular intervals. That is, as shown in FIG. 3, when the DMA transfer device 52 uses the bus for four cycles, the CPU 53 uses the bus for at least one cycle. In the data transfer system, this cycle is repeated until the data transfer ends.

【0042】一方、本発明のデータ転送システム1で
は、CPU3がDMA終了フラグを所定の回数参照する
ことにより、DMA転送終了待ち状態となる。図4に示
したように、CPU3が最低1サイクルの間バスを使用
した際に、DMA転送終了待ち状態を検知すると、DM
A転送装置2はその後、その構成または設定に基づく任
意の期間バスを占有することができる。
On the other hand, in the data transfer system 1 of the present invention, the CPU 3 enters the DMA transfer end wait state by referring to the DMA end flag a predetermined number of times. As shown in FIG. 4, when the CPU 3 detects the DMA transfer end waiting state when using the bus for at least one cycle, the
The A transfer device 2 can then occupy the bus for any period based on its configuration or settings.

【0043】また、図1に示したDMA転送装置2のバ
スリクエスト生成回路14には、データ転送システム1
に割り込みが発生した際の検知信号が入力される構成も
考えられる。DMA転送装置2は、DMA転送終了待ち
状態を検知し、DMA転送装置がバスの使用権を保持し
ている状態において、割り込みが検知された等のCPU
の迅速な応答が必要となる際には、DMA転送装置2が
自らバス要求を取り下げる、またはCPU3よりもバス
要求の優先度を下げるための信号をバスアービタに出力
する。これにより、DMA転送装置2は必要な転送処理
の終了後、速やかにバスの使用権をCPU3に委譲する
ことができる。
The bus request generation circuit 14 of the DMA transfer device 2 shown in FIG.
A configuration is also conceivable in which a detection signal at the time of occurrence of an interrupt is input. The DMA transfer device 2 detects a DMA transfer end wait state, and detects that an interrupt has been detected while the DMA transfer device is holding the right to use the bus.
When a quick response is required, the DMA transfer device 2 outputs to the bus arbiter a signal for canceling the bus request by itself or lowering the priority of the bus request than the CPU 3. As a result, the DMA transfer device 2 can immediately transfer the right to use the bus to the CPU 3 after the necessary transfer processing is completed.

【0044】図5は、割り込みを検知した場合における
データ転送システムのバスタイミングチャートである。
図5では、DMA転送装置2は、DMA転送終了待ち状
態を検知して、その後バスを占有してデータ転送を行っ
ている。そして、割り込みが検知され、その割り込み検
知信号がDMA転送装置2のバスリクエスト生成回路1
4に入力されると、必要な転送処理を完了した後、速や
かにバス使用権をCPUに委譲する。これにより、CP
U3は直ちに割り込み応答を実行できる。
FIG. 5 is a bus timing chart of the data transfer system when an interrupt is detected.
In FIG. 5, the DMA transfer device 2 detects a DMA transfer end wait state, and thereafter occupies the bus and performs data transfer. Then, an interrupt is detected, and the interrupt detection signal is sent to the bus request generation circuit 1 of the DMA transfer device 2.
When the number is input to 4, the right to use the bus is immediately transferred to the CPU after necessary transfer processing is completed. Thereby, the CP
U3 can immediately execute an interrupt response.

【0045】また、割り込みを検知した際の割り込み要
因がDMA転送装置2の終了割り込み発生でなかった場
合には、割り込み応答後にDMA転送装置2が必要な時
間または回数だけ、バスを占有可能な状態に速やかに復
帰することができる。よって、バスリクエスト生成回路
14は、割り込み入力が非アクティブ側に変化した際に
は、再度必要な時間または回数だけバス要求を出し続け
る。
If the interrupt factor at the time of detecting the interrupt is not the generation of the end interrupt of the DMA transfer device 2, the DMA transfer device 2 can occupy the bus for a necessary time or number of times after the interrupt response. Can be quickly returned to. Therefore, when the interrupt input changes to the inactive side, the bus request generation circuit 14 keeps issuing the bus request again for the necessary time or number of times.

【0046】また、DMA転送終了待ち状態を検知して
DMA転送装置2がバスの使用権を保持している状態に
おいて、割り込みが検知された等の理由でバスの使用権
をCPU3に委譲した場合に、終了フラグ参照カウンタ
11をクリアする構成も考えられる。これにより、割り
込み応答後、データ転送システム1は正規のサイクルス
チール転送方式を実行する状態に戻る。また、DMA転
送終了待ち状態を再度検知した場合には、DMA転送装
置2がバスの使用権を優先的に使用することができる。
When the DMA transfer completion state is detected and the DMA transfer apparatus 2 holds the right to use the bus, the right to use the bus is transferred to the CPU 3 because an interrupt is detected. Alternatively, the end flag reference counter 11 may be cleared. As a result, after the interrupt response, the data transfer system 1 returns to the state of executing the normal cycle stealing transfer method. When the DMA transfer completion waiting state is detected again, the DMA transfer device 2 can preferentially use the right to use the bus.

【0047】なお、上記の構成要素はDMA転送装置内
にある必要はない。必要に応じて実装位置を変えること
ができるものとする。例えば、データ転送システム1に
おいて、図外の割り込みコントローラにDMA転送終了
待ち状態を検知する検知手段であるDMA終了フラグ参
照カウンタ11、参照回数上限管理レジスタ12及び比
較器13を備えた構成であっても良い。この場合、参照
回数上限管理レジスタ12に割り込みコントローラのD
MA転送装置2の転送時における終了割り込み発生検知
の対象ビット参照回数の上限値または参照周期の下限値
を設定する。また、DMA終了フラグ参照カウンタ11
は、割り込みコントローラのDMA転送装置における転
送の終了割り込み発生検知の対象ビット参照回数、また
は参照周期を確認するようにする。そして、DMA終了
フラグ参照カウンタ11は、割り込みコントローラのD
MA転送装置における転送の終了割り込み発生検知の対
象ビット参照回数が所定の回数以上、または参照周期が
所定の周期以下になると、比較器13は所定の信号をバ
スリクエスト生成回路14に対して出力するようにす
る。これにより、データ転送システムの特性に応じて、
検知手段の実装位置を代えて、割り込みコントローラに
より、CPUがDMA転送装置の転送終了待ち状態であ
ることを検知することができる。
The above components need not be in the DMA transfer device. The mounting position can be changed as needed. For example, the data transfer system 1 has a configuration in which an interrupt controller (not shown) includes a DMA end flag reference counter 11, a reference count upper limit management register 12, and a comparator 13, which are detection means for detecting a DMA transfer end wait state. Is also good. In this case, the reference number upper limit management register 12 stores the interrupt controller D
The upper limit value or the lower limit value of the reference cycle is set for the target bit of the end interrupt detection at the time of transfer of the MA transfer device 2. The DMA end flag reference counter 11
Is to check the number of times of reference or the reference cycle of the target bit for detecting the occurrence of the transfer end interrupt in the DMA transfer device of the interrupt controller. Then, the DMA end flag reference counter 11 reads the D of the interrupt controller.
The comparator 13 outputs a predetermined signal to the bus request generation circuit 14 when the number of times of reference to the target bit for detecting the end interrupt of the transfer in the MA transfer device is equal to or more than a predetermined number or the reference cycle is equal to or less than a predetermined cycle. To do. Thereby, according to the characteristics of the data transfer system,
By changing the mounting position of the detecting means, the interrupt controller can detect that the CPU is in the transfer end waiting state of the DMA transfer device.

【0048】また、データ転送システム1において、D
MA転送終了待ち状態を検知する検知手段であるDMA
終了フラグ参照カウンタ11、参照回数上限管理レジス
タ12及び比較器13を、図外のアドレスデコーダが備
えた構成であっても良い。この場合、参照回数上限管理
レジスタ12にCPU3の特定のアドレスへの参照アド
レスデコーダのDMA転送装置2の転送時における終了
割り込み発生検知の対象ビット参照回数の上限値または
参照周期の下限値を設定する。また、DMA終了フラグ
参照カウンタ11は、CPU3の特定のアドレスへの参
照回数、または参照周期を確認するようにする。そし
て、DMA終了フラグ参照カウンタ11は、CPU3か
らの特定のアドレスへの参照回数が所定の回数以上、ま
たは参照周期が所定の周期以下になると、比較器13は
所定の信号をバスリクエスト生成回路14に対して出力
するようにする。これにより、データ転送システムの特
性に応じて、検知手段の実装位置を代えて、アドレスデ
コーダにより、CPUがDMA転送装置の転送終了待ち
状態であることを検知することが可能となる。上記の構
成方法は、データ転送システム1が割り込み発生を待っ
ている状態では、割り込みが発生するまで割り込みコン
トローラのレジスタのアクセスがない場合もあるため、
そのような場合に特に有効である。
In the data transfer system 1, D
DMA which is a detecting means for detecting a state of waiting for the end of MA transfer
An end flag reference counter 11, a reference count upper limit management register 12, and a comparator 13 may be provided in an address decoder (not shown). In this case, the upper limit value or the lower limit value of the number of times of reference of the target bit for the detection of the end interrupt occurrence detection at the time of the transfer by the DMA transfer device 2 of the reference address decoder to the specific address of the CPU 3 is set in the reference number upper limit management register 12. . The DMA end flag reference counter 11 checks the number of times the CPU 3 refers to a specific address or the reference cycle. When the number of references to a specific address from the CPU 3 is equal to or more than a predetermined number or the reference cycle is equal to or less than a predetermined cycle, the comparator 13 sends a predetermined signal to the bus request generation circuit 14. Output to This makes it possible for the address decoder to detect that the CPU is in a state of waiting for the transfer completion of the DMA transfer device, by changing the mounting position of the detection means according to the characteristics of the data transfer system. According to the above configuration method, when the data transfer system 1 is waiting for an interrupt to occur, there is a case where the register of the interrupt controller is not accessed until the interrupt occurs.
It is particularly effective in such a case.

【0049】なお、特定のアドレスとは、DMA転送装
置2の転送終了を常に監視する目的に利用されるデータ
転送システムを構成するハードウェア資源の位置を示す
アドレスのことである。DMA転送装置2の転送終了を
監視するために必要なものであればいかなるアドレスで
あってもよい。
It should be noted that the specific address is an address indicating the position of a hardware resource constituting a data transfer system used for constantly monitoring the end of the transfer of the DMA transfer device 2. Any address may be used as long as it is necessary to monitor the completion of the transfer by the DMA transfer device 2.

【0050】[0050]

【発明の効果】本発明によれば、以下の効果が得られ
る。
According to the present invention, the following effects can be obtained.

【0051】(1) DMA転送装置は、CPUがDMA転
送装置の転送終了待ち状態であることを検知して所定の
信号を出力する検知手段と、該検知手段の出力信号に応
じてバス使用要求を出力するバスリクエスト生成手段
と、を備え、上記構成により、従来のようにCPUにお
いて、サイクルスチール方式のDMA転送装置のDMA
転送終了を常に監視するといった無駄なCPUサイクル
の発生を減じることができ、DMA転送装置の転送速度
を高めることができる。
(1) The DMA transfer device includes: a detection unit for detecting that the CPU is in a transfer completion waiting state of the DMA transfer device and outputting a predetermined signal; and a bus use request in response to the output signal of the detection unit. And a bus request generating means for outputting a DMA request.
It is possible to reduce the occurrence of useless CPU cycles such as constantly monitoring the end of transfer, and increase the transfer speed of the DMA transfer device.

【0052】(2) DMA転送装置は、転送数設定手段を
付加することもでき、該転送数設定手段で転送待ち状態
における1回のデータ転送時間またはデータ転送回数を
変更可能であるため、必要な時間または必要な回数だけ
バスの使用権を占有することが可能となる。
(2) The DMA transfer device can also add transfer number setting means, which can change one data transfer time or the number of data transfers in the transfer waiting state by the transfer number setting means. It is possible to occupy the right to use the bus for a short time or a necessary number of times.

【0053】(3) CPUの終了ステータス参照回数が所
定の回数以上、または参照周期が所定の周期以下になる
と、DMA転送装置の検知手段は、所定の信号をバスリ
クエスト生成手段に対して出力するので、CPUが常に
DMA転送装置のDMA転送終了を監視しなくてもよ
い。
(3) When the end status reference count of the CPU is equal to or greater than a predetermined count or the reference cycle is equal to or less than a predetermined cycle, the detection means of the DMA transfer device outputs a predetermined signal to the bus request generation means. Therefore, the CPU need not always monitor the end of the DMA transfer of the DMA transfer device.

【0054】(4) 割り込み発生を検知すると、バスの使
用権をCPUに委譲する信号をバスリクエスト生成手段
が出力する構成も考えられ、この場合、割り込みが発生
した際には、速やかに割り込み処理を行うことができ
る。
(4) It is also conceivable that the bus request generation means outputs a signal for transferring the right to use the bus to the CPU when the occurrence of an interrupt is detected. In this case, when an interrupt occurs, the interrupt processing is immediately performed. It can be performed.

【0055】(5) データ転送システムは、請求項1乃至
請求項4のいずれかに記載のDMA転送装置と、バスを
介してデータを送受信するCPUと、該DMA転送装置
及び該CPUのバス使用要求を調停するバス使用権調停
装置と、を含んで構成される。回路規模のさしたる増加
もなく、容易にサイクルスチール方式のDMA転送装置
を構成要素とするデータ転送システムにおいて、特にD
MAの転送終了を常に監視するといった無駄なCPUサ
イクルの発生を減じることができ、DMA転送装置の転
送速度を高めることができる。
(5) A data transfer system comprising: a DMA transfer device according to any one of claims 1 to 4; a CPU for transmitting and receiving data via a bus; and a DMA transfer device and a bus used by the CPU. And a bus arbitration device for arbitrating requests. In a data transfer system including a cycle steal type DMA transfer device as a component without any significant increase in the circuit size, particularly,
It is possible to reduce the occurrence of useless CPU cycles such as constantly monitoring the end of the transfer of the MA, and it is possible to increase the transfer speed of the DMA transfer device.

【0056】(6) データ転送システムのバス使用権調停
装置は、検知した割り込み発生要因が前記DMA転送装
置の終了割り込みでない場合、割り込み応答後、再度バ
スの使用権を前記DMA転送装置に付与するので、割り
込みを検知した際に、DMA転送装置の転送処理が完了
していなかった場合には、割り込み応答後にDMA転送
装置が必要な時間または回数だけバスを占有可能な状態
に速やかに復帰することができる。
(6) The bus arbiter of the data transfer system, if the detected interrupt occurrence factor is not the end interrupt of the DMA transfer device, gives the bus transfer right to the DMA transfer device again after responding to the interrupt. Therefore, if the transfer processing of the DMA transfer device is not completed when the interrupt is detected, the DMA transfer device immediately returns to a state where the bus can be occupied for a necessary time or number of times after the interrupt response. Can be.

【0057】(7) データ転送システムは、DMA転送装
置に代えて、割り込み信号を検知するための割り込みコ
ントローラが、CPUがDMA転送装置の転送終了待ち
状態であることを検知して所定の信号を出力する検知手
段を有し、検知手段は、割り込みコントローラのDMA
転送装置における転送の終了割り込み発生検知の対象ビ
ット参照回数が所定所定の回数以上、または参照周期が
所定の周期以下になると、所定の信号をバスリクエスト
生成手段に対して出力する。上記のように、データ転送
システムの特性に応じて検知手段の実装位置を代えて、
割り込みコントローラにより、CPUがDMA転送装置
の転送終了待ち状態であることを検知することができ
る。
(7) In the data transfer system, instead of the DMA transfer device, an interrupt controller for detecting an interrupt signal detects that the CPU is in a transfer completion waiting state of the DMA transfer device and outputs a predetermined signal. A detecting means for outputting a signal, wherein the detecting means comprises a DMA of an interrupt controller.
A predetermined signal is output to the bus request generating means when the number of times of reference to the target bit for detecting the occurrence of the transfer end interrupt in the transfer device is equal to or more than a predetermined number or the reference cycle is equal to or less than a predetermined cycle. As described above, changing the mounting position of the detecting means according to the characteristics of the data transfer system,
The interrupt controller can detect that the CPU is in a state of waiting for the transfer completion of the DMA transfer device.

【0058】(8) データ転送システムは、DMA転送装
置に代えて、CPUが参照するアドレスをデコードする
アドレスデコーダが、CPUがDMA転送装置の転送終
了待ち状態であることを検知して所定の信号を出力する
検知手段を有し、検知手段は、前記CPUの特定のアド
レスへの参照回数が所定の回数以上、または参照周期が
所定の周期以下になると、所定の信号をバスリクエスト
生成手段に対して出力する。上記のように、データ転送
システムの特性に応じて、検知手段の実装位置を代え
て、アドレスデコーダにより、CPUがDMA転送装置
の転送終了待ち状態であることを検知することができ
る。
(8) In the data transfer system, in place of the DMA transfer device, an address decoder for decoding an address referred to by the CPU detects a state that the CPU is waiting for the DMA transfer device to complete the transfer and outputs a predetermined signal. When the number of references to a specific address of the CPU is equal to or more than a predetermined number or the reference cycle is equal to or less than a predetermined cycle, the detection means outputs a predetermined signal to the bus request generation means. Output. As described above, the mounting position of the detecting means is changed according to the characteristics of the data transfer system, and the address decoder can detect that the CPU is in the transfer end waiting state of the DMA transfer device.

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

【図1】データ転送システムの概略の構成図である。FIG. 1 is a schematic configuration diagram of a data transfer system.

【図2】従来のDMA転送装置を含むデータ転送システ
ムの構成図である。
FIG. 2 is a configuration diagram of a data transfer system including a conventional DMA transfer device.

【図3】図2に示した従来のデータ転送システム51の
バスサイクルのタイミングチャートである。
FIG. 3 is a timing chart of a bus cycle of the conventional data transfer system 51 shown in FIG.

【図4】図1に示した本発明のデータ転送システム1に
おけるバスサイクルのタイミングチャートである。
FIG. 4 is a timing chart of a bus cycle in the data transfer system 1 of the present invention shown in FIG.

【図5】割り込みを検知した場合におけるデータ転送シ
ステムのバスタイミングチャートである。
FIG. 5 is a bus timing chart of the data transfer system when an interrupt is detected.

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

1,51−データ転送システム 2,52−DMA転送装置 3,53−CPU 11−DMA終了フラグ参照カウンタ 12−参照回数上限管理レジスタ 13−比較器 14,64−バスリクエスト生成回路 1,51-data transfer system 2,52-DMA transfer device 3,53-CPU 11-DMA end flag reference counter 12-reference upper limit management register 13-comparator 14,64-bus request generation circuit

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 データのDMA転送を所定時間毎または
所定回数毎に行うDMA転送装置であって、 CPUがDMA転送装置の転送終了待ち状態であること
を検知して所定の信号を出力する検知手段と、該検知手
段の出力信号に応じてバス使用要求を出力するバスリク
エスト生成手段と、を備えたことを特徴とするDMA転
送装置。
1. A DMA transfer device for performing DMA transfer of data at predetermined time intervals or at predetermined counts, wherein a CPU detects that the DMA transfer device is in a transfer end waiting state and outputs a predetermined signal. And a bus request generating means for outputting a bus use request in response to an output signal of the detecting means.
【請求項2】 前記転送終了待ち状態において、1回の
データ転送時間またはデータ転送回数を変更可能な転送
数設定手段を備えたことを特徴とする請求項1に記載の
DMA転送装置。
2. The DMA transfer device according to claim 1, further comprising a transfer number setting unit that can change one data transfer time or the number of data transfers in the transfer end waiting state.
【請求項3】 前記検知手段は、前記CPUの終了ステ
ータス参照回数が所定の回数以上、または参照周期が所
定の周期以下になると、所定の信号を前記バスリクエス
ト生成手段に対して出力することを特徴とする請求項1
または2に記載のDMA転送装置。
3. The detection means outputs a predetermined signal to the bus request generation means when the end status reference count of the CPU is equal to or more than a predetermined count or when a reference cycle is equal to or less than a predetermined cycle. Claim 1.
Or the DMA transfer device according to 2.
【請求項4】 前記バスリクエスト生成手段は、割り込
み発生を検知すると、バスの使用権をCPUに委譲する
信号を出力することを特徴とする請求項1乃至3のいず
れかに記載のDMA転送装置。
4. The DMA transfer device according to claim 1, wherein said bus request generation means outputs a signal for delegating a right to use a bus to a CPU upon detecting occurrence of an interrupt. .
【請求項5】 請求項1乃至4のいずれかに記載のDM
A転送装置と、バスを介してデータを送受信するCPU
と、該DMA転送装置及び該CPUのバス使用要求を調
停するバス使用権調停装置と、を含むことを特徴とする
データ転送システム。
5. The DM according to claim 1, wherein
A transfer device and CPU for transmitting and receiving data via bus
A data transfer system comprising: a DMA transfer device; and a bus use right arbitration device that arbitrates a bus use request of the CPU.
【請求項6】 前記バス使用権調停装置は、検知した割
り込み発生要因が前記DMA転送装置の終了割り込みで
ない場合、割り込み応答終了後、再度バスの使用権を前
記DMA転送装置に付与することを特徴とする請求項5
に記載のデータ転送システム。
6. The bus use right arbitration device, if the detected interrupt occurrence factor is not an end interrupt of the DMA transfer device, gives the right to use the bus to the DMA transfer device again after the end of the interrupt response. Claim 5
A data transfer system according to claim 1.
【請求項7】 割り込み信号を検知するための割り込み
コントローラを備え、前記DMA転送装置に代えて、該
割り込みコントローラが前記検知手段を有し、 前記検知手段は、割り込みコントローラのDMA転送装
置における転送の終了割り込み発生検知の対象ビット参
照回数が所定の回数以上、または参照周期が所定の周期
以下になると、所定の信号を前記バスリクエスト生成手
段に対して出力することを特徴とする請求項5または6
に記載のデータ転送システム。
7. An interrupt controller for detecting an interrupt signal, wherein the interrupt controller has the detecting means instead of the DMA transfer device, wherein the detecting means detects a transfer of the interrupt controller in the DMA transfer device. 7. The method according to claim 5, wherein a predetermined signal is output to the bus request generation means when the number of times of reference to the target bit for the detection of the end interrupt occurrence is equal to or more than a predetermined number or when the reference cycle is equal to or less than a predetermined cycle.
A data transfer system according to claim 1.
【請求項8】 CPUが参照するアドレスをデコードす
るアドレスデコーダを備え、前記DMA転送装置に代え
て、該アドレスデコーダが前記検知手段を有し、 前記検知手段は、前記CPUの特定のアドレスへの参照
回数が所定の回数以上、または参照周期が所定の周期以
下になると、所定の信号を前記バスリクエスト生成手段
に対して出力することを特徴とする請求項5または6に
記載のデータ転送システム。
8. An address decoder for decoding an address referred to by a CPU, wherein the address decoder has the detecting means in place of the DMA transfer device, and the detecting means detects a specific address of the CPU. 7. The data transfer system according to claim 5, wherein when the number of times of reference is equal to or more than a predetermined number or when the number of times of reference is equal to or less than a predetermined number, a predetermined signal is output to the bus request generation unit.
JP2001029620A 2001-02-06 2001-02-06 DMA transfer device and data transfer system Expired - Fee Related JP3497478B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001029620A JP3497478B2 (en) 2001-02-06 2001-02-06 DMA transfer device and data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001029620A JP3497478B2 (en) 2001-02-06 2001-02-06 DMA transfer device and data transfer system

Publications (2)

Publication Number Publication Date
JP2002229932A true JP2002229932A (en) 2002-08-16
JP3497478B2 JP3497478B2 (en) 2004-02-16

Family

ID=18893941

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001029620A Expired - Fee Related JP3497478B2 (en) 2001-02-06 2001-02-06 DMA transfer device and data transfer system

Country Status (1)

Country Link
JP (1) JP3497478B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005013137A1 (en) * 2003-08-04 2005-02-10 Fujitsu Limited Data transfer method
US7631114B2 (en) 2003-03-28 2009-12-08 Renesas Technology Corp. Serial communication device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7631114B2 (en) 2003-03-28 2009-12-08 Renesas Technology Corp. Serial communication device
WO2005013137A1 (en) * 2003-08-04 2005-02-10 Fujitsu Limited Data transfer method
US7353298B2 (en) 2003-08-04 2008-04-01 Fujitsu Limited Data transfer processing method

Also Published As

Publication number Publication date
JP3497478B2 (en) 2004-02-16

Similar Documents

Publication Publication Date Title
US5572686A (en) Bus arbitration scheme with priority switching and timer
AU687627B2 (en) Multiprocessor system bus protocol for optimized accessing of interleaved storage modules
JP3284311B2 (en) Communication bus control device and bus control method in data processing system
JP2004334552A (en) Bus connecting circuit and system
JP2015530679A (en) Method and apparatus using high efficiency atomic operations
JP2002229932A (en) Dma transfer device and data transfer system
US6009477A (en) Bus agent providing dynamic pipeline depth control
JP3766377B2 (en) Bus control device and information processing system
JP4151362B2 (en) Bus arbitration method, data transfer device, and bus arbitration method
US6105082A (en) Data processor used in a data transfer system which includes a detection circuit for detecting whether processor uses bus in a forthcoming cycle
US7181558B2 (en) Avoidance of extended bus occupancy through simple control operation
JPH0830549A (en) Bus control device
JP3101023B2 (en) Bus right control method
JP2004334840A (en) Control method and related device of system bus
JP2002049580A (en) Bus managing device, bus use request transmitter, method of bus managing, and bus use request transmission method
JPH07219887A (en) Dma transfer controller
JP3050131B2 (en) Arbitration method
JPH01305461A (en) Right of using bus control system
JP3266184B2 (en) I / O control method and device
JPH05282243A (en) Bus master device and electronic equipment using the same
JP2002091903A (en) Bus system
JP2000259548A (en) Dma bus transfer system
JPH04178869A (en) Interruption control device for multiprocessor system and its interruption communication method
JP2002049581A (en) Bus arbitration method and bus controller
JPH11328107A (en) Bus parking device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081128

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091128

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees