JP3497478B2 - DMA transfer device and data transfer system - Google Patents

DMA transfer device and data transfer system

Info

Publication number
JP3497478B2
JP3497478B2 JP2001029620A JP2001029620A JP3497478B2 JP 3497478 B2 JP3497478 B2 JP 3497478B2 JP 2001029620 A JP2001029620 A JP 2001029620A JP 2001029620 A JP2001029620 A JP 2001029620A JP 3497478 B2 JP3497478 B2 JP 3497478B2
Authority
JP
Japan
Prior art keywords
bus
cpu
dma transfer
transfer device
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.)
Expired - Fee Related
Application number
JP2001029620A
Other languages
Japanese (ja)
Other versions
JP2002229932A (en
Inventor
和広 長澤
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

Landscapes

  • Bus Control (AREA)

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 passing through a CPU, there is a direct memory access (hereinafter referred to as DMA) transfer method. The DMA transfer system includes an interlock system and a cycle steal system.

【0003】インタロック方式の場合、DMA転送装置
は一旦バスの使用権を獲得すると、DMA転送装置の転
送終了条件が満足されるまでバスを解放することなく、
DMA転送を連続的に行う。
In the interlock system, 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 continuously performed.

【0004】サイクルスチール方式の場合、DMA転送
装置は所定時間、または所定回数といった一転送単位の
転送を終了する毎にバスを解放し、CPUにバスの使用
権を委譲する。その後、再度のDMA転送装置の転送要
求が発生した場合、DMA転送装置はCPUからバスの
使用権を獲得し、再度一転送単位のDMA転送を行い、
転送終了後再びCPUにバスの使用権を委譲する。この
動作はDMA転送の転送終了条件が満足されるまで繰り
返し実行される。
In the case of the cycle steal method, the DMA transfer device releases the bus each time a transfer of one transfer unit such as a predetermined time or a predetermined number of times is completed, and transfers the bus use right to the CPU. After that, when another transfer request of the DMA transfer device is generated, the DMA transfer device acquires the right to use the bus from the CPU and performs the DMA transfer of one transfer unit again,
After the transfer is completed, the bus usage right 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の転送終
了を待たねばならないといった問題が生じる。
The interlock system is easy to control, and D
High throughput can be obtained as MA transfer. But,
During the DMA transfer, CPU operation cannot be performed, so
For example, even in a situation where the CPU needs to perform a quick process 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動作まで制限されるといった問
題は生じない。しかしながら、サイクルスチール方式を
実現するためのハードウェア資源、及びバス調停のため
のバスアービタが必要となる。また、バスアービタの調
停方式に基づくバスの使用権獲得のために、アービトレ
ーションが頻繁に生じる。そのため、所望のデータの転
送を完了するための転送速度が遅くなるという問題が生
じる。
In the cycle steal system, C at regular intervals
Since the PU can acquire the right to use the bus, the problem that the necessary CPU operation is limited unlike the interlock system does not occur. However, a hardware resource for realizing the cycle steal method and a bus arbiter for bus arbitration are required. Further, arbitration frequently occurs in order to acquire the right to use the bus based on the arbitration method of the bus arbiter. Therefore, there arises a problem that the transfer speed for completing the transfer of desired data becomes slow.

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

【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 structure of a data transfer system including a conventional DMA transfer device will be described with reference to FIG. Figure 2
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.
This is a configuration including 54. DMA transfer device 52 and CPU
53 is connected to the address bus 55 and the data bus 56, respectively. Also, the bus arbiter 54 and the DMA
The transfer device 52 uses the bus request line 7
1 and a bus grant line 72. Furthermore, 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 is provided with a bus request generation circuit 64, and it is possible to set the interlock system fixed, the cycle steal system fixed, or both types. 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 is a CPU according to a bus arbitration unit (not shown).
The use right of the address bus 55 and the data bus 56 is given to the 53 and the DMA transfer device 52. In FIG. 2, the CPU 53 and the DMA transfer device 52 are bus masters, but there is a system having a configuration using a plurality of bus masters.

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

【0011】[0011]

【発明が解決しようとする課題】バスの使用効率を上げ
る目的でサイクルスチール方式のDMA転送装置を採用
したデータ転送システムでは、CPUがDMA転送の転
送終了を待っている状態にある時、次のような問題があ
る。すなわち、CPUへバスの使用権が委譲された時
に、DMAの転送終了を常に監視するといった無駄なC
PUサイクルが発生してしまう。そのため、このCPU
サイクルがDMA転送の転送速度を減じてしまう。一
方、DMA転送装置の転送速度を速めるためにインタロ
ック方式を採用すると、割り込み応答等の迅速な応答が
必要とされるCPUサイクルまで制限してしまうという
問題がある。これらの問題についての対策は、上記の従
来技術には記載されていない。
In a data transfer system that employs a cycle stealing DMA transfer device for the purpose of improving bus utilization efficiency, when the CPU is waiting for the end of the DMA transfer, There is such a problem. That is, when the right to use the bus is transferred to the CPU, the end of the DMA transfer is constantly monitored, which is a wasteful C.
A PU cycle will occur. Therefore, this CPU
The cycle reduces the transfer rate of the DMA transfer. On the other hand, if the interlock system is adopted in order to increase the transfer rate 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 countermeasure for these problems is described in the above-mentioned prior art.

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

【0013】[0013]

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

【0014】 (1) データのDMA転送を所定時間毎ま
たは所定回数毎に行うDMA転送装置であって、CPU
がDMA転送装置の転送終了待ち状態であることを検知
して所定の信号を出力する検知手段と、該検知手段
した所定の信号に応じてバス使用要求を出力するバス
リクエスト生成手段と、を備えたことを特徴とする。
(1) A DMA transfer device for performing a DMA transfer of data at a predetermined time interval or a predetermined number of times, comprising a CPU
Bus There outputting a detection unit configured to detect and output a predetermined signal that is a transfer termination waiting state of DMA transfer device, bus use request according to a predetermined signal that said detecting means has <br/> Outputs And a request generation means.

【0015】 この構成において、DMA転送装置は、
CPUがDMA転送装置の転送終了待ち状態であること
を検知して所定の信号を出力する検知手段と、該検知手
出力した所定の信号に応じてバス使用要求を出力す
るバスリクエスト生成手段と、を備え、データのDMA
転送を必要に応じた任意の時間毎または回数毎に行う。
したがって、DMA転送装置が検知手段でCPUがDM
A転送装置の転送終了待ち状態であることを検知するの
で、従来のようにCPUにおいて、サイクルスチール方
式のDMA転送装置のDMA転送終了を常に監視すると
いった無駄なCPUサイクルの発生を減じることがで
き、DMA転送装置の転送速度を高めることが可能とな
る。
In this configuration, the DMA transfer device is
A detecting means for outputting a predetermined signal by detecting that the CPU is transferred termination waiting state of the DMA transfer device, a bus request generating means for outputting a bus use request according to a predetermined signal that said detecting means has an output , Data DMA of
The transfer is performed at any time or every time as needed.
Therefore, the DMA transfer device is the detection means and the CPU is the DM.
Since it is detected that the transfer device A is in the transfer end waiting state, it is possible to reduce the occurrence of useless CPU cycles such as always monitoring the DMA transfer end of the cycle steal system DMA transfer device in the CPU as in the conventional case. , 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 the data transfer time or the number of data transfers once 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 the required time or the required number of times.

【0018】 (3) 前記検知手段は、前記CPUの終了
ステータス参照回数が所定の回数以上、または参照周期
が所定の周期以下になると、前記所定の信号をバスリク
エスト生成手段に対して出力することを特徴とする。
[0018] (3) the detection means, the exit status reference number of the CPU is higher than a predetermined number of times, or Referring cycle is below a predetermined cycle, to output the predetermined signal to the bus request generating means Is characterized by.

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

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

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

【0022】 (5) 前記バスリクエスト生成手段は、割
り込み発生を検知すると、バス使用要求を取り下げる、
またはバス使用要求の優先度を下げることを特徴とす
る。
(5) The bus request generation means withdraws the bus use request when detecting the occurrence of an interrupt ,
Or lowering the priority of bus use requests
It

【0023】 この構成においては、割り込み発生を検
知すると、バス使用要求を取り下げる、またはバス使用
要求の優先度を下げる。したがって、割り込みが発生し
た際には、速やかに割り込み処理を行うことが可能とな
る。
In this configuration, when the occurrence of an interrupt is detected, the bus use request is canceled or the bus use is stopped.
Lower the priority of the request . Therefore, when an interrupt occurs, it is possible to quickly perform the interrupt process.

【0024】(6) 請求項1乃至4のいずれかに記載のD
MA転送装置と、バスを介してデータを送受信するCP
Uと、該DMA転送装置及び該CPUのバス使用要求を
調停するバス使用権調停装置と、を含むことを特徴とす
る。
(6) D according to any one of claims 1 to 4
CP for transmitting / receiving data to / from the MA transfer device via the bus
U and a bus use right arbitration device that arbitrates bus use requests 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 that arbitrates the bus use request of the DMA transfer device and the CPU. Therefore, it is possible to easily reduce the occurrence of useless CPU cycles such as constantly monitoring the end of DMA transfer in a data transfer system including a DMA transfer device of a cycle steal system as a constituent element without any significant increase in the circuit scale. , The transfer speed of the DMA transfer device can be increased.

【0026】[0026]

【0027】[0027]

【0028】 (7) 割り込み信号を検知するための割り
込みコントローラを備え、前記DMA転送装置に代え
て、該割り込みコントローラが前記検知手段を有し、前
記検知手段は、前記CPUの終了ステータス参照回数
所定の回数以上、または参照周期が所定の周期以下にな
ると、前記所定の信号を前記バスリクエスト生成手段に
対して出力することを特徴とする。
( 7 ) An interrupt controller for detecting an interrupt signal is provided, and instead of the DMA transfer device, the interrupt controller has the detecting means, and the detecting means is capable of checking the number of end statuses of the CPU. predetermined number of times or more, or when the reference period is equal to or less than a predetermined period, and outputs the predetermined signal to the bus request generating means.

【0029】 この構成において、データ転送システム
は、DMA転送装置に代えて、割り込み信号を検知する
ための割り込みコントローラが、CPUがDMA転送装
置の転送終了待ち状態であることを検知して所定の信号
を出力する検知手段を有し、検知手段は、CPUの終了
ステータス参照回数が所定所定の回数以上、または参照
周期が所定の周期以下になると、所定の信号をバスリク
エスト生成手段に対して出力する。したがって、データ
転送システムの特性に応じて、検知手段の実装位置を代
えて、割り込みコントローラにより、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 waiting state of the DMA transfer device, and outputs a predetermined signal. It has a detecting means for outputting a detection means, the end of the CPU
When the number of times the status is referred to is greater than or equal to a predetermined number of times or the reference period is less than or equal to a predetermined period, a predetermined signal is output to the bus request generation means. Therefore, depending on the characteristics of the data transfer system, it is possible to change the mounting position of the detection means and detect by the interrupt controller that the CPU is waiting for the transfer end of the DMA transfer device.

【0030】 (8) 前記CPUが参照するアドレスをデ
コードするアドレスデコーダを備え、前記DMA転送装
置に代えて、該アドレスデコーダが前記検知手段を有
し、前記検知手段は、前記CPUの特定のアドレスへの
参照回数が所定の回数以上、または参照周期が所定の周
期以下になると、前記所定の信号をバスリクエスト生成
手段に対して出力することを特徴とする。
[0030] (8) comprises an address decoder for decoding an address which the CPU refers, instead of the DMA transfer device, said address decoder having said sensing means, said sensing means, a specific address of said CPU reference number to the predetermined number of times or more, or when the reference period is equal to or less than a predetermined period, and outputs the predetermined signal to the bus request generating means.

【0031】この構成において、データ転送システム
は、DMA転送装置に代えて、CPUが参照するアドレ
スをデコードするアドレスデコーダが、CPUがDMA
転送装置の転送終了待ち状態であることを検知して所定
の信号を出力する検知手段を有し、検知手段は、前記C
PUの特定のアドレスへの参照回数が所定の回数以上、
または参照周期が所定の周期以下になると、所定の信号
をバスリクエスト生成手段に対して出力する。したがっ
て、データ転送システムの状態に応じて、検知手段の実
装位置を代えて、アドレスデコーダにより、CPUがD
MA転送装置の転送終了待ち状態であることを検知する
ことが可能となる。
In this structure, in the data transfer system, instead of the DMA transfer device, an address decoder for decoding an address referred to by the CPU is provided by the CPU by the DMA.
The transfer device has a detection unit for detecting that the transfer device is in a transfer end waiting state and outputting a predetermined signal, and the detection unit is the C
The number of times the PU refers to a specific address is a predetermined number of times or more,
Alternatively, when the reference cycle becomes equal to or shorter than the predetermined cycle, a predetermined signal is output to the bus request generation means. Therefore, according to the state of the data transfer system, the mounting position of the detecting means is changed and the CPU is controlled by the address decoder.
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とにより接続されている。
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
FIG. 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 which is a bus usage right arbitration device.
It is a configuration including. The DMA transfer device 2 and the CPU 3 are
It is connected to the address bus 5 and the data bus 6, respectively. In addition, the bus arbiter 4 and the DMA transfer device 2 are
It is connected by a bus request line 21 and a bus grant line 22. Further, the bus arbiter 4 and the CPU 3 have a bus request line 23 and a bus grant.
It is connected by the 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 the cycle steal system or both the cycle steal system and the interlock system, and includes a bus request generation circuit 14 as a bus request generation means. Also, DM
The DMA end flag reference counter 1, which is a counter that counts the number of times the end flag is referred to, serves as a detection unit that detects the DMA transfer end wait state of the CPU 3 in the A transfer device 2.
1, a reference number upper limit management register 12 that is a register for setting the upper limit of the reference number, and a comparator 13 that compares the count value of the DMA end flag reference counter 11 with the set value of the reference number upper limit management 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
When the number of times the end status is referred to the transfer device 2 exceeds a certain number of times, it is determined that the CPU 3 is in a state of 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 preset count upper limit management register 12 value is exceeded, the CPU 3 causes the DMA transfer device 2 The transfer end waiting state (hereinafter referred to as the DMA transfer end waiting state) is entered.

【0035】このDMA転送終了待ち状態において、D
MA転送装置2では、DMA終了フラグ参照カウンタ1
1の計数値が予め設定した参照回数上限管理レジスタ1
2の値を超えた時に、比較器13から所定の信号が出力
される。この信号はバスリクエスト生成回路14に入力
される。バスリクエスト生成回路14はバスリクエスト
を出し続ける機能を有し、この場合、バスリクエスト線
21を介してバスアービタ4にバスリクエストを出力す
る。
In this wait state for completion of DMA transfer, D
In the MA transfer device 2, the DMA end flag reference counter 1
Reference count upper limit management register 1 with a count value of 1 set in advance
When the value exceeds 2, the comparator 13 outputs a predetermined signal. 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, and in this case, 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転送終了待ち状態においてバスの使
用権を占有することができる。
When the bus arbiter 4 receives 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 either the CPU 3 or the DMA transfer device 2 acquires 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 waiting state of the DMA transfer end.

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

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

【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 is equal to or less than a certain cycle, it may be determined that the CPU is in the state of monitoring the end of the DMA transfer.

【0040】次に、本発明の実施形態に係るデータ転送
システムのバスサイクルについて説明する。図3は、図
2に示した従来のデータ転送システム51のバスサイク
ルのタイミングチャートである。図4は、図1に示した
本発明のデータ転送システム1におけるバスサイクルの
タイミングチャートである。
Next, the 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 the bus cycle of the conventional data transfer system 51 shown in FIG. FIG. 4 is a timing chart of bus cycles 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 4 cycles, the CPU 53 uses the bus for at least 1 cycle. In the data transfer system, this cycle is repeated until the data transfer is completed.

【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 refers to the DMA end flag a predetermined number of times to enter the DMA transfer end wait state. As shown in FIG. 4, when the CPU 3 uses the bus for at least one cycle and detects a DMA transfer end waiting state, DM
The A transfer device 2 can then occupy the bus for any period of time 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 in which a detection signal when an interrupt occurs in is input is also conceivable. The DMA transfer device 2 detects the DMA transfer end wait state, and when the DMA transfer device holds the right to use the bus, the CPU detects that an interrupt is detected.
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 quickly transfer the bus use right 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 waiting state, and then occupies the bus to perform 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.
4 is input, the bus right of use is immediately transferred to the CPU after the necessary transfer processing is completed. This makes CP
U3 can immediately execute the interrupt response.

【0045】また、割り込みを検知した際の割り込み要
因がDMA転送装置2の終了割り込み発生でなかった場
合には、割り込み応答後にDMA転送装置2が必要な時
間または回数だけ、バスを占有可能な状態に速やかに復
帰することができる。よって、バスリクエスト生成回路
14は、割り込み入力が非アクティブ側に変化した際に
は、再度必要な時間または回数だけバス要求を出し続け
る。
If the interrupt factor at the time of detecting the interrupt is not the end interrupt of the DMA transfer device 2, the DMA transfer device 2 can occupy the bus for the required 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 continues to issue the bus request again for the required time or number of times.

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

【0047】 なお、上記の構成要素はDMA転送装置
内にある必要はない。必要に応じて実装位置を変えるこ
とができるものとする。例えば、データ転送システム1
において、図外の割り込みコントローラにDMA転送終
了待ち状態を検知する検知手段であるDMA終了フラグ
参照カウンタ11、参照回数上限管理レジスタ12及び
比較器13を備えた構成であっても良い。この場合、参
照回数上限管理レジスタ12に終了割り込み発生検知の
対象ビット参照回数(CPU3の終了フラグ参照回数)
の上限値または参照周期の下限値を設定する。また、D
MA終了フラグ参照カウンタ11は、終了割り込み発生
検知の対象ビット参照回数(CPU3の終了フラグ参照
回数)、または参照周期を確認するようにする。そし
て、DMA終了フラグ参照カウンタ11の終了割り込み
発生検知の対象ビット参照回数(CPU3の終了フラグ
参照回数)が所定の回数以上、または参照周期が所定の
周期以下になると、比較器13は所定の信号をバスリク
エスト生成回路14に対して出力するようにする。これ
により、データ転送システムの特性に応じて、検知手段
の実装位置を代えて、割り込みコントローラにより、C
PUがDMA転送装置の転送終了待ち状態であることを
検知することができる。
It should be noted that the above constituent elements do not have to be present in the DMA transfer device. The mounting position can be changed as required. For example, the data transfer system 1
In the above configuration, the interrupt controller (not shown) may include a DMA end flag reference counter 11, a reference number upper limit management register 12, and a comparator 13, which are detection means for detecting a DMA transfer end wait state. In this case, the reference count upper limit management register 12 subject bit reference number of end interrupt occurrence detection (end flag number of references to CPU 3)
Set the upper limit of or the lower limit of the reference cycle. Also, D
MA end flag reference counter 11, the end flag references exit target bit reference number of interrupts generated detection (CPU 3
Number of times) or the reference cycle. The end interrupt occurrence detection completion flag of the target bit reference number (CPU 3 of the DMA completion flag reference counter 11
When the reference number of times is equal to or greater than a predetermined number or the reference period is equal to or less than the predetermined period, the comparator 13 outputs a predetermined signal to the bus request generation circuit 14. Thereby, the mounting position of the detection means is changed according to the characteristics of the data transfer system, and the C
It is possible to detect that the PU 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 detection means for detecting the MA transfer end waiting state
The end flag reference counter 11, the reference count upper limit management register 12, and the comparator 13 may be provided in an address decoder (not shown). In this case, the reference number upper limit management register 12 is set with the upper limit value of the target bit reference number of the end interrupt occurrence detection at the time of transfer of the DMA transfer device 2 of the reference address decoder to the specific address of the CPU 3 or the lower limit value of the reference cycle. . Further, the DMA end flag reference counter 11 confirms the number of times the CPU 3 refers to a specific address or the reference cycle. Then, the DMA end flag reference counter 11 causes the comparator 13 to output a predetermined signal when the reference number from the CPU 3 to the specific address is equal to or larger than a predetermined number or the reference period is equal to or smaller than the predetermined period. To be output to. As a result, according to the characteristics of the data transfer system, it is possible to change the mounting position of the detecting means and detect by the address decoder that the CPU is in the transfer end waiting state of the DMA transfer device. In the above configuration method, when the data transfer system 1 is waiting for an interrupt, the register of the interrupt controller may not be accessed until the interrupt occurs.
It is particularly effective in such a case.

【0049】なお、特定のアドレスとは、DMA転送装
置2の転送終了を常に監視する目的に利用されるデータ
転送システムを構成するハードウェア資源の位置を示す
アドレスのことである。DMA転送装置2の転送終了を
監視するために必要なものであればいかなるアドレスで
あってもよい。
The specific address is an address indicating the position of a hardware resource constituting the data transfer system used for the purpose of constantly monitoring the end of transfer of the DMA transfer device 2. Any address may be used as long as it is necessary to monitor the end of transfer of 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転送終了を常に監視するといった無駄なCP
Uサイクルの発生を減じることができ、DMA転送装置
の転送速度を高めることができる。
(1) In the DMA transfer device, the CPU is DMA
A detecting means for outputting a predetermined signal by detecting that a transfer end waiting state of the transfer device, where said detecting means has an output
Bus request generation means for outputting a bus use request in response to a constant signal, and with the above-mentioned configuration, the CPU always monitors the end of the DMA transfer of the cycle steal DMA transfer device in the conventional manner. CP
The occurrence of U cycles can be reduced and the transfer rate of the DMA transfer device can be increased.

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

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

【0054】 (4) 割り込み発生を検知すると、バスリ
クエスト生成手段がバス使用要求を取り下げる、または
バス使用要求の優先度を下げる構成も考えられ、この場
合、割り込みが発生した際には、速やかに割り込み処理
を行うことができる。
[0054] (4) When detecting the interrupt generation, the bus request generating means withdraw a bus request, or
A configuration in which the priority of the bus use request is lowered is also conceivable. In this case, when an interrupt occurs, the interrupt process can be performed promptly.

【0055】(5) データ転送システムは、請求項1乃至
請求項4のいずれかに記載のDMA転送装置と、バスを
介してデータを送受信するCPUと、該DMA転送装置
及び該CPUのバス使用要求を調停するバス使用権調停
装置と、を含んで構成される。回路規模のさしたる増加
もなく、容易にサイクルスチール方式のDMA転送装置
を構成要素とするデータ転送システムにおいて、特にD
MAの転送終了を常に監視するといった無駄なCPUサ
イクルの発生を減じることができ、DMA転送装置の転
送速度を高めることができる。
(5) A data transfer system, 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 bus use of the DMA transfer device and the CPU And a bus right arbitration device that arbitrates the request. Especially in a data transfer system having a cycle-stealing DMA transfer device as a constituent element without any significant increase in circuit scale,
It is possible to reduce the occurrence of useless CPU cycles such as constantly monitoring the end of transfer of MA, and it is possible to increase the transfer speed of the DMA transfer device.

【0056】[0056]

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

【0058】 (7) データ転送システムは、DMA転送
装置に代えて、CPUが参照するアドレスをデコードす
るアドレスデコーダが、CPUがDMA転送装置の転送
終了待ち状態であることを検知して所定の信号を出力す
る検知手段を有し、検知手段は、前記CPUの特定のア
ドレスへの参照回数が所定の回数以上、または参照周期
が所定の周期以下になると、所定の信号をバスリクエス
ト生成手段に対して出力する。上記のように、データ転
送システムの特性に応じて、検知手段の実装位置を代え
て、アドレスデコーダにより、CPUがDMA転送装置
の転送終了待ち状態であることを検知することができ
る。
( 7 ) In the data transfer system, instead of the DMA transfer device, an address decoder that decodes an address referred to by the CPU detects that the CPU is in a transfer end waiting state of the DMA transfer device, and outputs a predetermined signal. When the number of references to the specific address of the CPU is equal to or greater 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, depending on the characteristics of the data transfer system, the mounting position of the detection means can be changed and the address decoder can detect that the CPU is in the transfer end waiting state of the DMA transfer device.

【図面の簡単な説明】[Brief description of 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の
バスサイクルのタイミングチャートである。
3 is a timing chart of a bus cycle of the conventional data transfer system 51 shown in FIG.

【図4】図1に示した本発明のデータ転送システム1に
おけるバスサイクルのタイミングチャートである。
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 count upper limit management register 13-comparator 14, 64-bus request generation circuit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平4−333949(JP,A) 特開 平6−175966(JP,A) 特開 平8−171529(JP,A) 特開 平4−306754(JP,A) 特開 平5−151143(JP,A) 特開 平9−305532(JP,A) 特開 平2−181855(JP,A) 特開 昭64−78353(JP,A) 特開2000−293483(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 13/28 310 G06F 13/362 510 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-4-333949 (JP, A) JP-A-6-175966 (JP, A) JP-A-8-171529 (JP, A) JP-A-4- 306754 (JP, A) JP 5-151143 (JP, A) JP 9-305532 (JP, A) JP 2-181855 (JP, A) JP 64-78353 (JP, A) JP, 2000-293483 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G06F 13/28 310 G06F 13/362 510

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データのDMA転送を所定時間毎または
所定回数毎に行うDMA転送装置であって、 CPUがDMA転送装置の転送終了待ち状態であること
を検知して所定の信号を出力する検知手段と、該検知手
出力した所定の信号に応じてバス使用要求を出力す
るバスリクエスト生成手段と、を備えたことを特徴とす
るDMA転送装置。
1. A DMA transfer device for performing a DMA transfer of data at a predetermined time interval or a predetermined number of times, wherein the CPU detects that the DMA transfer device is in a transfer end waiting state and outputs a predetermined signal. means and, DMA transfer device characterized by comprising a, a bus request generating means for outputting a bus use request according to a predetermined signal that said detecting means has outputted.
【請求項2】 前記転送終了待ち状態において、1回の
データ転送時間またはデータ転送回数を変更可能な転送
数設定手段を備えたことを特徴とする請求項1に記載の
DMA転送装置。
2. The DMA transfer apparatus according to claim 1, further comprising a transfer number setting means capable of changing a data transfer time or a data transfer number once in the transfer end waiting state.
【請求項3】 前記検知手段は、前記CPUの終了ステ
ータス参照回数が所定の回数以上、または参照周期が所
定の周期以下になると、前記所定の信号を前記バスリク
エスト生成手段に対して出力することを特徴とする請求
項1または2に記載のDMA転送装置。
Wherein said detecting means, the exit status reference number of the CPU is higher than a predetermined number of times, or Referring cycle is below a predetermined cycle, to output the predetermined signal to the bus request generating means The DMA transfer device according to claim 1 or 2, wherein.
【請求項4】 前記バスリクエスト生成手段は、割り込
み発生を検知すると、バス使用要求を取り下げる、また
はバス使用要求の優先度を下げることを特徴とする請求
項1乃至3のいずれかに記載のDMA転送装置。
4. The bus request generation means cancels the bus use request when detecting the occurrence of an interrupt , and
4. The DMA transfer apparatus according to claim 1 , wherein the priority of the bus use request is lowered .
【請求項5】 請求項1乃至4のいずれかに記載のDM
A転送装置と、バスを介してデータを送受信するCPU
と、該DMA転送装置及び該CPUのバス使用要求を調
停するバス使用権調停装置と、を含むことを特徴とする
データ転送システム。
5. The DM according to any one of claims 1 to 4.
A transfer device and a CPU for transmitting and receiving data via a bus
And a bus usage right arbitration device that arbitrates bus usage requests of the DMA transfer device and the CPU.
【請求項6】 割り込み信号を検知するための割り込み
コントローラを備え、前記DMA転送装置に代えて、該
割り込みコントローラが前記検知手段を有し、 前記検知手段は、前記CPUの終了ステータス参照回数
が所定の回数以上、または参照周期が所定の周期以下に
なると、前記所定の信号を前記バスリクエスト生成手段
に対して出力することを特徴とする請求項5に記載のデ
ータ転送システム。
6. An interrupt controller for detecting an interrupt signal, the interrupt controller having the detecting means instead of the DMA transfer device, and the detecting means, the detecting means referring to the end status of the CPU. 6. The data transfer system according to claim 5 , wherein the predetermined signal is output to the bus request generation means when the number of times is a predetermined number of times or more or the reference period is less than or equal to a predetermined period.
【請求項7】 前記CPUが参照するアドレスをデコー
ドするアドレスデコーダを備え、前記DMA転送装置に
代えて、該アドレスデコーダが前記検知手段を有し、 前記検知手段は、前記CPUの特定のアドレスへの参照
回数が所定の回数以上、または参照周期が所定の周期以
下になると、前記所定の信号を前記バスリクエスト生成
手段に対して出力することを特徴とする請求項5に記載
のデータ転送システム。
7. an address decoder for decoding an address which the CPU refers, instead of the DMA transfer device, said address decoder having said detection means, said detection means to a specific address of said CPU 6. The data transfer system according to claim 5 , wherein the predetermined signal is output to the bus request generation means when the number of times the reference is performed is a predetermined number of times or more or the reference period is a predetermined period or less.
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 JP2002229932A (en) 2002-08-16
JP3497478B2 true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004295701A (en) 2003-03-28 2004-10-21 Renesas Technology Corp Serial communication device
JP4137939B2 (en) 2003-08-04 2008-08-20 富士通株式会社 Data transfer processing method

Also Published As

Publication number Publication date
JP2002229932A (en) 2002-08-16

Similar Documents

Publication Publication Date Title
US20080133787A1 (en) Method and apparatus for host messaging unit for peripheral component interconnect busmaster devices
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
JP6129976B2 (en) Method and apparatus using high efficiency atomic operations
US5138709A (en) Spurious interrupt monitor
JP3497478B2 (en) DMA transfer device and data transfer system
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
JP3101023B2 (en) Bus right control method
JP4151362B2 (en) Bus arbitration method, data transfer device, and bus arbitration method
JP2000250853A (en) Bus arbitration controller
JPH0830549A (en) Bus control device
JP2004334840A (en) Control method and related device of system bus
JPH07219887A (en) Dma transfer controller
JP2002049580A (en) Bus managing device, bus use request transmitter, method of bus managing, and bus use request transmission method
JP3050131B2 (en) Arbitration method
JP2001117860A (en) Memory access priority switching controller
JP3211264B2 (en) External bus control method
JPH09204311A (en) Information processing system
JP3266184B2 (en) I / O control method and device
JP2001312413A (en) Method for retrial control in access collision and recording medium
JPH05282243A (en) Bus master device and electronic equipment using the same
JPH0660017A (en) Collision circuit
JP2000259548A (en) Dma bus transfer system
JPH09223106A (en) Exclusive control system
JPH10214253A (en) Request control circuit

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