JP2003099390A - Dma circuit - Google Patents
Dma circuitInfo
- Publication number
- JP2003099390A JP2003099390A JP2001290985A JP2001290985A JP2003099390A JP 2003099390 A JP2003099390 A JP 2003099390A JP 2001290985 A JP2001290985 A JP 2001290985A JP 2001290985 A JP2001290985 A JP 2001290985A JP 2003099390 A JP2003099390 A JP 2003099390A
- Authority
- JP
- Japan
- Prior art keywords
- dma
- cpu
- peripheral device
- circuit
- control circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Bus Control (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明はDMA(Direct Mem
ory Access)回路に関し、特にCPU(CentralProcess
ing Unit)周辺デバイスに内蔵されるDMA回路の改良
に関する。TECHNICAL FIELD The present invention relates to a DMA (Direct Mem
ory access) circuit, especially CPU (Central Process)
ing Unit) The present invention relates to improvement of a DMA circuit built in a peripheral device.
【0002】[0002]
【従来の技術】従来、この種のDMA回路は、例えば特
開平7−87162号公報の「モデムインタフェイスお
よびファクシミリ装置」、特開平7−175781号公
報の「ディジタル信号処理プロセッサ」、特開平11−
289357号公報の「受信データ処理方式」および特
開2000−298640号公報の「DMA装置」等に
開示されている。2. Description of the Related Art Conventionally, this type of DMA circuit is disclosed, for example, in Japanese Unexamined Patent Publication No. 7-87162, "Modem Interface and Facsimile Machine", in Japanese Unexamined Patent Publication No. 7-175781, "Digital Signal Processor", in Japanese Unexamined Patent Publication No. 11-175781. −
It is disclosed in "Reception Data Processing Method" of JP-A-289357 and "DMA Device" of JP-A-2000-298640.
【0003】図6は、上述した特開平7−87162号
公報に開示される従来のDMA回路の構成を示すブロッ
ク図である。この従来技術において、DMA回路は、D
MA実行中に発生する割込み信号をCPUに出力しない
ことにより、CPUの負荷軽減のために使用されてい
る。モデムインタフェイス100は、通信制御部11
0、モデムFIFO(先入れ先出し)メモリ部111、
DMAC(DMAコントローラ)112、INTC11
3、信号切り換え部114およびMODEM(変復調
器)115を含んでいる。FIG. 6 is a block diagram showing the configuration of a conventional DMA circuit disclosed in the above-mentioned Japanese Patent Laid-Open No. 7-87162. In this prior art, the DMA circuit is
It is used to reduce the load on the CPU by not outputting the interrupt signal generated during MA execution to the CPU. The modem interface 100 includes a communication control unit 11
0, modem FIFO (first-in first-out) memory unit 111,
DMAC (DMA controller) 112, INTC11
3, a signal switching unit 114 and a MODEM (modulator / demodulator) 115 are included.
【0004】ここで、通信制御部110は、INTC1
13を有し、通信に関する通信制御および切り換え部1
14からの信号を認知する。MODEM115は、各種
プロトコルによる信号又は画情報の変調・復調を行う。
更に、データバッファを有し、データバッファエンプテ
ィ割込み信号の送出を行う。DMAC112は、MOD
EM115からのデータバッファエンプティ割込み信号
に同期して、モデムFIFOメモリ部111およびデー
タバッファ間でデータ転送を行い、DMA転送終了時
に、終了信号の送出を行う。INTC113は、信号切
り換え部114からの信号を、優先順位に従って通信制
御部110に通知する。信号切り換え部114は、MO
DEM115からのデータバッファエンプティ割込み信
号を、DMAC112又はINTC113に切り替える
ものである。Here, the communication control unit 110 uses the INTC1
And a communication control and switching unit 1 for communication.
Recognize the signal from 14. The MODEM 115 performs modulation / demodulation of signals or image information according to various protocols.
Further, it has a data buffer and sends out a data buffer empty interrupt signal. DMAC112 is MOD
Data is transferred between the modem FIFO memory unit 111 and the data buffer in synchronization with the data buffer empty interrupt signal from the EM 115, and an end signal is sent when the DMA transfer is completed. The INTC 113 notifies the communication control unit 110 of the signal from the signal switching unit 114 according to the priority order. The signal switching unit 114 uses the MO
The data buffer empty interrupt signal from the DEM 115 is switched to the DMAC 112 or INTC 113.
【0005】次に、図6に示すDMA回路の動作を説明
する。通信制御部110が、MODEM115を送信モ
ードに設定した際に、DMAC112は、モデムFIF
Oメモリ部111に蓄積されたデータをMODEM11
5のデータバッファに転送する。DMAC112がDM
A転送を終了した場合には、MODEM115が出力す
るデータバッファエンプティ割込み信号を、信号切り換
え部114でDMAC112からINTC113に切り
替える。Next, the operation of the DMA circuit shown in FIG. 6 will be described. When the communication control unit 110 sets the MODEM 115 in the transmission mode, the DMAC 112 sets the modem FIF.
The data stored in the O memory unit 111 is stored in the MODEM 11
5 to the data buffer. DMAC112 is DM
When the A transfer is completed, the data buffer empty interrupt signal output from the MODEM 115 is switched from the DMAC 112 to the INTC 113 by the signal switching unit 114.
【0006】[0006]
【発明が解決しようとする課題】上述の如き従来のDM
A回路では、DMA終了割込み時には、必ずCPUから
CPU周辺デバイスへのアクセス動作が入るため、CP
Uの負荷軽減には限界がある。そこで、1つのCPUに
対して複数のDMAデバイスがある場合には、CPUの
性能を十分に引き出せず、従って更に高性能のCPUを
使用する必要があるため、システムが高価になるという
課題があった。DISCLOSURE OF THE INVENTION Conventional DM as described above
In the A circuit, the access operation from the CPU to the CPU peripheral device is always input at the time of the DMA end interrupt.
There is a limit to the U load reduction. Therefore, when there are a plurality of DMA devices for one CPU, the performance of the CPU cannot be fully obtained, and therefore, it is necessary to use a CPU with higher performance, which causes a problem that the system becomes expensive. It was
【0007】[0007]
【発明の目的】本発明は、従来技術の上述した課題に鑑
みなされたものであり、高速且つ安価に高機能システム
を構成可能にする改良されたDMA回路を提供すること
を目的とする。SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems of the prior art, and an object of the present invention is to provide an improved DMA circuit that enables a high-performance system to be configured at high speed and at low cost.
【0008】[0008]
【課題を解決するための手段】本発明によるDMA回路
は、アドレスバスおよびデータバスを介してCPUに接
続されたCPU周辺デバイス本体に内蔵され、外部メモ
リにアクセスするものであって、外部インタフェースに
接続されCPU周辺デバイスの核となるCPU周辺デバ
イスコア部と、このCPU周辺デバイスコア部から出力
されるDMA要求信号に従って動作するDMA制御回路
とを備える。本発明の好適実施形態によると、メモリ
は、アドレスバスおよびデータバスに直接接続される。
CPU周辺デバイス本体は、CPUおよびDMA制御回
路からCPU周辺デバイスコア部へのアクセスを調停す
る調停回路を含んでいる。メモリは、メモリ制御回路を
介して調停回路に接続される。DMA制御回路は、アド
レスバスに接続され、DMA転送時にメモリに対するア
ドレスを出力するDMAアドレス制御回路と、DMAサ
イクル終了毎にデクリメントし、所定値になると転送終
了信号を出力するDMA転送カウンタと、転送終了信号
により起動され、CPU周辺デバイスコア部に対して制
御信号を出力する自動書込み制御回路と、アドレスバス
およびデータバスに接続され、CPU周辺デバイスコア
部内のアドレスおよびデータを格納する自動書込命令格
納エリアとを含む。A DMA circuit according to the present invention is built in a CPU peripheral device main body connected to a CPU via an address bus and a data bus, accesses an external memory, and has an external interface. A CPU peripheral device core unit that is a core of the connected CPU peripheral device and a DMA control circuit that operates according to a DMA request signal output from the CPU peripheral device core unit are provided. According to the preferred embodiment of the present invention, the memory is directly connected to the address bus and the data bus.
The CPU peripheral device body includes an arbitration circuit that arbitrates access from the CPU and the DMA control circuit to the CPU peripheral device core unit. The memory is connected to the arbitration circuit via the memory control circuit. The DMA control circuit is connected to an address bus and outputs a memory address during a DMA transfer, a DMA address control circuit that decrements each DMA cycle and outputs a transfer end signal when a predetermined value is reached, and a transfer An automatic write control circuit that is activated by an end signal and outputs a control signal to the CPU peripheral device core unit, and an automatic write instruction that is connected to the address bus and the data bus and stores the address and data in the CPU peripheral device core unit Including a storage area.
【0009】また、本発明のDMA回路は、CPUに接
続されるCPU周辺デバイス本体に内蔵され外部メモリ
にアクセス可能にするものであって、DMA転送時に外
部メモリに格納するためのアドレスを制御するDMAア
ドレス制御回路と、DMA転送回数をカウントするDM
A転送カウンタと、DMA終了時にCPU周辺デバイス
コア部に対してCPUの代わりに命令を書き込む制御を
する自動書込み制御回路と、この自動書込み制御回路が
CPU周辺デバイスコア部に対して書込むCPUの命令
を格納する自動書込み命令格納エリアとを備え、DMA
転送カウンタのカウント値が所定値になったとき、自動
書込み制御回路に対して転送終了信号を出力し、CPU
周辺デバイスコア部に対して自動書込み命令がなくなっ
たとき、CPUに対して割込み信号を出力する。Further, the DMA circuit of the present invention is built in a CPU peripheral device main body connected to the CPU to enable access to an external memory, and controls an address to be stored in the external memory during DMA transfer. DMA address control circuit and DM for counting the number of DMA transfers
An A transfer counter, an automatic write control circuit that controls writing of an instruction to the CPU peripheral device core section instead of the CPU when the DMA ends, and a CPU of the automatic write control circuit that writes to the CPU peripheral device core section. It is equipped with an automatic write instruction storage area for storing instructions, and a DMA
When the count value of the transfer counter reaches a predetermined value, a transfer end signal is output to the automatic write control circuit, and the CPU
When there is no automatic write command to the peripheral device core section, an interrupt signal is output to the CPU.
【0010】[0010]
【発明の実施の形態】以下、本発明の上述したおよびそ
の他の目的、特徴および利点を明確にすべく、添付図面
を参照して本発明によるDMA回路の好適実施形態を詳
細に説明する。BEST MODE FOR CARRYING OUT THE INVENTION In order to clarify the above and other objects, features and advantages of the present invention, preferred embodiments of a DMA circuit according to the present invention will be described in detail with reference to the accompanying drawings.
【0011】先ず、図1は、本発明によるDMA回路の
第1実施形態の構成を示すブロック図である。図1にお
いて、CPU周辺デバイス本体1は、CPU周辺デバイ
スコア部2およびDMA制御回路3により構成される。
更に、DMA制御回路3は、DMAアドレス制御回路
4、DMA転送カウンタ5、自動書込命令格納エリア6
および自動書込み制御回路7を含んでいる。First, FIG. 1 is a block diagram showing a configuration of a first embodiment of a DMA circuit according to the present invention. In FIG. 1, a CPU peripheral device body 1 is composed of a CPU peripheral device core unit 2 and a DMA control circuit 3.
Further, the DMA control circuit 3 includes a DMA address control circuit 4, a DMA transfer counter 5, and an automatic write command storage area 6
And an automatic write control circuit 7.
【0012】CPU周辺デバイス本体1のCPU周辺デ
バイスコア部2は、外部シリアルポート等のCPU周辺
デバイスのコア(核)となる部分であり、アドレスバス
およびデータバスによってCPU(後述する図2中の1
1参照)から制御可能である。CPU周辺デバイスは、
例えばDMA実行後行なわれる各種命令をオン・オフで
きる機能を有する。また、CPU周辺デバイスは、各種
命令を格納する領域を有し、各種命令を書き換え可能で
ある。一方、DMA制御回路3は、CPU周辺デバイス
コア部2から出力されるDMA要求信号9に従い、CP
U周辺デバイス本体1に接続されるCPUに対するバス
の調停を行う。The CPU peripheral device core section 2 of the CPU peripheral device main body 1 is a core (core) of a CPU peripheral device such as an external serial port, and is provided by an address bus and a data bus to the CPU (see FIG. 2 which will be described later). 1
1)). CPU peripheral device
For example, it has a function of turning on / off various instructions executed after the execution of DMA. Further, the CPU peripheral device has an area for storing various instructions, and various instructions can be rewritten. On the other hand, the DMA control circuit 3 responds to the CP request signal 9 output from the CPU peripheral device core unit 2 according to the CP request signal CP.
Bus arbitration for the CPU connected to the U peripheral device body 1 is performed.
【0013】DMA制御回路3のDMAアドレス制御回
路4は、DMA転送時に、外部メモリに対するアドレス
を出力し、DMA転送後に、アドレスのインクリメント
を行う。DMA転送カウンタ5は、1回のDMAサイク
ル終了後デクリメントする。更に、DMA転送カウンタ
5が「0」になったとき、自動書込み制御回路7に対し
て、転送終了信号8を出力する。The DMA address control circuit 4 of the DMA control circuit 3 outputs an address to the external memory at the time of DMA transfer and increments the address after the DMA transfer. The DMA transfer counter 5 decrements after completion of one DMA cycle. Further, when the DMA transfer counter 5 becomes “0”, the transfer end signal 8 is output to the automatic write control circuit 7.
【0014】また、DMA制御回路3の自動書込み制御
回路7は、DMA転送カウンタ5から出力される転送終
了信号8によって起動れる。そして、自動書込み制御回
路7は、CPU周辺デバイスコア部2に対して、命令を
書き込むための制御信号を出力する。更に、自動書込み
命令格納エリア6内の命令をCPU周辺デバイスコア部
2に対して出力する。自動書込み命令格納エリア6は、
CPU周辺デバイスコア部2内のアドレスと書き込みデ
ータおよび書込みフラグを格納する。The automatic write control circuit 7 of the DMA control circuit 3 is activated by the transfer end signal 8 output from the DMA transfer counter 5. Then, the automatic write control circuit 7 outputs a control signal for writing an instruction to the CPU peripheral device core unit 2. Further, the instruction in the automatic write instruction storage area 6 is output to the CPU peripheral device core unit 2. The automatic write command storage area 6 is
The address, write data, and write flag in the CPU peripheral device core unit 2 are stored.
【0015】次に、図2は、図1に示す本発明によるD
MA回路の第1実施形態を使用するシステム構成例を示
す。図2に示すシステムにおいて、CPU周辺デバイス
1は、アドレスバスおよびデータバスによりCPU11
および外部メモリ(Memory)12と相互接続されてい
る。Next, FIG. 2 shows the D according to the present invention shown in FIG.
1 shows a system configuration example using the first embodiment of an MA circuit. In the system shown in FIG. 2, the CPU peripheral device 1 has a CPU 11 using an address bus and a data bus.
And an external memory (Memory) 12 are interconnected.
【0016】以下、図1に示すDMA回路の動作を、図
2のシステム構成図および図5のフローチャートを参照
して説明する。先ず、システムがスタートする(ステッ
プS1)。ここで、CPU周辺デバイスコア部2がデー
タの要求を出力していない状態から始まる。CPU周辺
デバイスコア部2でDMA発生の有無を判定する(ステ
ップS2)。DMA発生がない場合には(ステップS
2:NO)、再度ステップS2へ戻り、DMA発生の有
無を判定する。DMAが発生している場合には(ステッ
プS2:YES)、DMA制御回路3が、CPU11に
対してバスホールド要求を行う(ステップS3)。次
に、CPU11がバス開放したか否か判定する(ステッ
プS4)。CPU11が、バス開放をした場合には(ス
テップS4:YES)、DMAデータ転送を行い(ステ
ップS5)、DMA制御回路3は、バスホールドを解除
する(ステップS6)。そして、DMA転送カウンタ5
をデクリメント、DMAアドレスをインクリメントする
(ステップS7)。The operation of the DMA circuit shown in FIG. 1 will be described below with reference to the system configuration diagram of FIG. 2 and the flowchart of FIG. First, the system starts (step S1). Here, the operation starts from the state where the CPU peripheral device core unit 2 is not outputting a data request. The CPU peripheral device core unit 2 determines whether or not a DMA has occurred (step S2). If no DMA occurs (step S
2: NO), the process returns to step S2 again, and it is determined whether or not DMA has occurred. When the DMA is generated (step S2: YES), the DMA control circuit 3 makes a bus hold request to the CPU 11 (step S3). Next, it is determined whether the CPU 11 has opened the bus (step S4). When the CPU 11 releases the bus (step S4: YES), DMA data transfer is performed (step S5), and the DMA control circuit 3 releases the bus hold (step S6). Then, the DMA transfer counter 5
Is decremented and the DMA address is incremented (step S7).
【0017】次に、DMA転送カウンタ5が「0」であ
るか否か判定する(ステップS8)。「0」でない場合
には(ステップS8:NO)、上述したステップS2に
戻る。一方、DMA転送カウンタ5が「0」である場合
には(ステップS8:YES)、自動書込み命令格納エ
リア6内に命令の存在の有無を判定する(ステップS
9)。次に、自動書込み命令格納エリア6内における自
動書込み命令の有無を判定する(ステップS9)。自動
書込み命令が存在すれば(ステップS9:YES)、自
動書込みを実行し(ステップS10)、上述したステッ
プS9に戻る。自動書込み命令格納エリア6内に自動書
込み命令がない場合には(ステップS9:NO)、割込
みを出力し(ステップS11)、全てのDMAの処理を
終了する(ステップS12)。Next, it is determined whether the DMA transfer counter 5 is "0" (step S8). If it is not "0" (step S8: NO), the process returns to step S2. On the other hand, when the DMA transfer counter 5 is "0" (step S8: YES), it is determined whether or not there is an instruction in the automatic write instruction storage area 6 (step S).
9). Next, it is determined whether or not there is an automatic write command in the automatic write command storage area 6 (step S9). If the automatic write command is present (step S9: YES), the automatic write is executed (step S10), and the process returns to step S9 described above. When there is no automatic write command in the automatic write command storage area 6 (step S9: NO), an interrupt is output (step S11) and all the DMA processing is finished (step S12).
【0018】次に、図3を参照して本発明によるDMA
回路の第2実施形態を説明する。尚、上述した第1実施
形態の構成要素に対応する構成要素には、説明の便宜
上、同様の参照符号を使用する。CPU周辺デバイス本
体1は、CPU周辺デバイスコア部2、DMA制御回路
3、調停回路13およびメモリ制御回路14を含んでい
る。このメモリ制御回路14は、外部メモリ(Memory)
12に接続されている。Referring now to FIG. 3, the DMA according to the present invention.
A second embodiment of the circuit will be described. For convenience of explanation, the same reference numerals are used for the components corresponding to the components of the first embodiment described above. The CPU peripheral device body 1 includes a CPU peripheral device core unit 2, a DMA control circuit 3, an arbitration circuit 13, and a memory control circuit 14. This memory control circuit 14 is an external memory (Memory)
It is connected to 12.
【0019】DMA制御回路3および調停回路13は、
アドレスバスおよびデータバスを介して後述するCPU
11に接続される。また、DMA制御回路3および調停
回路13は、CPU11に対してそれぞれ割込み信号1
5およびCPUウェイト信号を出力する。DMA制御回
路3は、CPU周辺デバイスコア部2にDMAウェイト
10を出力する。また、CPU周辺デバイスコア部2
は、DMA制御回路3にDMA要求9を出力する。CP
U周辺デバイスコア部2および調停回路13は、双方向
接続されている。また、調停回路13は、メモリ制御回
路14を介して外部メモリ12に接続されている。The DMA control circuit 3 and the arbitration circuit 13 are
CPU described later via address bus and data bus
11 is connected. Further, the DMA control circuit 3 and the arbitration circuit 13 send the interrupt signal 1 to the CPU 11, respectively.
5 and CPU wait signal are output. The DMA control circuit 3 outputs the DMA wait 10 to the CPU peripheral device core unit 2. Also, CPU peripheral device core unit 2
Outputs a DMA request 9 to the DMA control circuit 3. CP
The U peripheral device core unit 2 and the arbitration circuit 13 are bidirectionally connected. Further, the arbitration circuit 13 is connected to the external memory 12 via the memory control circuit 14.
【0020】図4は、図3に示すDMA回路を使用する
システム構成図を示す。本発明によるDMA回路の第の
実施形態は、メモリ(Memory)12の接続先を、CPU
周辺デバイス本体1としている。CPU11およびCP
U周辺デバイス本体1は、それぞれアドレスバスおよび
データバスにより相互接続されている。また、CPU周
辺デバイス本体1内の構成は、CPU11からCPU周
辺デバイスコア部2への接続は、調停回路13を経由し
て行われる。調停回路13は、CPU11およびDMA
制御回路3からのCPU周辺デバイスコア部2へのアク
セスを調停する。更に、CPU11およびCPU周辺デ
バイスコア部2によるDMA時のアクセスからのメモリ
12へのアクセスを調停する。このため、CPU周辺デ
バイス本体1で発生するDMAは、バスホールド要求が
必要なくなるので、バス使用効率が良くなるという効果
も有する。FIG. 4 shows a system configuration diagram using the DMA circuit shown in FIG. In the first embodiment of the DMA circuit according to the present invention, the connection destination of the memory 12 is a CPU.
It is the peripheral device body 1. CPU11 and CP
The U peripheral device bodies 1 are interconnected by an address bus and a data bus, respectively. Further, in the internal configuration of the CPU peripheral device main body 1, the connection from the CPU 11 to the CPU peripheral device core unit 2 is performed via the arbitration circuit 13. The arbitration circuit 13 includes a CPU 11 and a DMA.
The access from the control circuit 3 to the CPU peripheral device core unit 2 is arbitrated. Further, the CPU 11 and the CPU peripheral device core unit 2 arbitrate the access to the memory 12 from the DMA access. Therefore, the DMA generated in the CPU peripheral device main body 1 does not require a bus hold request, and thus has the effect of improving the bus usage efficiency.
【0021】以上、本発明によるDMA回路の好適実施
形態の構成および動作を詳述した。しかし、斯かる実施
形態は、本発明の単なる例示に過ぎず、何ら本発明を限
定するものではない。本発明の要旨を逸脱することな
く、特定用途に応じて種々の変形変更が可能であるこ
と、当業者には容易に理解できよう。The configuration and operation of the preferred embodiment of the DMA circuit according to the present invention has been described above in detail. However, such an embodiment is merely an example of the present invention and does not limit the present invention in any way. Those skilled in the art can easily understand that various modifications and changes can be made according to a specific application without departing from the gist of the present invention.
【0022】[0022]
【発明の効果】以上の説明から理解される如く、本発明
のDMA回路によると、次の如き実用上の顕著な効果が
得られる。先ず第1に、DMA終了後に、CPUの命令
によらず、各種デバイスの命令実行が可能である。その
理由は、CPU周辺デバイスに、DMA終了後の命令
を、格納可能な領域および命令を自動実行できる回路を
付加しているためである。As will be understood from the above description, the DMA circuit of the present invention has the following remarkable practical effects. First of all, after the completion of DMA, it is possible to execute the instructions of various devices without depending on the instruction of the CPU. The reason is that the CPU peripheral device is provided with an area capable of storing instructions after DMA termination and a circuit capable of automatically executing the instructions.
【0023】第2に、CPUの負荷軽減によるシステム
の高速性に優れている。その理由は、CPU周辺デバイ
スが、DMA終了後の命令を自動実行することにより、
CPUによる割込み等の検出およびDMA終了後の命令
を実行する処理が必要なくなるためである。Secondly, the system is excellent in high speed by reducing the load on the CPU. The reason is that the CPU peripheral device automatically executes the instruction after the end of DMA,
This is because there is no need for the CPU to detect an interrupt or the like and to execute a command after the end of the DMA.
【0024】第3に、高機能なシステムを安価に提供可
能である。その理由は、高機能なシステムは、CPUの
負荷が高くなるため、より高速なCPUを必要とする
が、本発明によると、CPU周辺デバイスが複数存在す
るシステムでは、CPUの負荷を軽減するため、高速な
CPUを必要としないためである。Third, it is possible to provide a highly functional system at a low cost. The reason is that a high-performance system requires a higher-speed CPU because the load on the CPU is higher, but according to the present invention, in a system having a plurality of CPU peripheral devices, the load on the CPU is reduced. This is because a high speed CPU is not required.
【図1】本発明によるDMA回路の第1実施形態の構成
を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a first embodiment of a DMA circuit according to the present invention.
【図2】図1のDMA回路を使用するシステム構成を示
すブロック図である。FIG. 2 is a block diagram showing a system configuration using the DMA circuit of FIG.
【図3】本発明によるDMA回路の第2実施形態の構成
を示すブロック図である。FIG. 3 is a block diagram showing a configuration of a second embodiment of a DMA circuit according to the present invention.
【図4】図2に示すDMA回路を使用するシステム構成
のブロック図である。FIG. 4 is a block diagram of a system configuration using the DMA circuit shown in FIG.
【図5】図1のDMA回路の動作を示すフローチャート
である。5 is a flowchart showing an operation of the DMA circuit of FIG.
【図6】従来のDMA回路の構成を示すブロック図であ
る。FIG. 6 is a block diagram showing a configuration of a conventional DMA circuit.
1 CPU周辺デバイス本体 2 CPU周辺デバイスコア部 3 DMA制御回路 4 DMAアドレス制御回路 5 DMA転送カウンタ 6 自動書込命令格納エリア 7 自動書込み制御回路 8 転送終了信号 9 DMA要求信号 10 DMAウェイト信号 11 CPU 12 外部メモリ(Memory) 13 調停回路 14 メモリ制御回路 15 割込み信号 1 CPU peripheral device body 2 CPU peripheral device core 3 DMA control circuit 4 DMA address control circuit 5 DMA transfer counter 6 Automatic write command storage area 7 Automatic write control circuit 8 Transfer end signal 9 DMA request signal 10 DMA wait signal 11 CPU 12 External memory 13 Arbitration circuit 14 Memory control circuit 15 Interrupt signal
Claims (6)
PUに接続されたCPU周辺デバイス本体に内蔵され、
外部メモリにアクセスするDMA回路において、 外部インタフェースに接続されCPU周辺デバイスの核
となるCPU周辺デバイスコア部と、該CPU周辺デバ
イスコア部から出力されるDMA要求信号に従って動作
するDMA制御回路とを備えることを特徴とするDMA
回路。1. A C via an address bus and a data bus.
Built in the CPU peripheral device body connected to PU,
A DMA circuit for accessing an external memory includes a CPU peripheral device core unit which is connected to an external interface and serves as a core of a CPU peripheral device, and a DMA control circuit which operates according to a DMA request signal output from the CPU peripheral device core unit. DMA characterized by
circuit.
記データバスに直接接続されることを特徴とする請求項
1に記載のDMA回路。2. The DMA circuit according to claim 1, wherein the memory is directly connected to the address bus and the data bus.
Uおよび前記DMA制御回路から前記CPU周辺デバイ
スコア部へのアクセスを調停する調停回路を含むことを
特徴とする請求項1に記載のDMA回路。3. The CPU peripheral device body is the CP
The DMA circuit according to claim 1, further comprising an arbitration circuit that arbitrates access from the U and the DMA control circuit to the CPU peripheral device core unit.
記調停回路に接続されることを特徴とする請求項3に記
載のDMA回路。4. The DMA circuit according to claim 3, wherein the memory is connected to the arbitration circuit via a memory control circuit.
に接続され、DMA転送時に前記メモリに対するアドレ
スを出力するDMAアドレス制御回路と、DMAサイク
ル終了毎にデクリメントし、所定値になると転送終了信
号を出力するDMA転送カウンタと、前記転送終了信号
により起動され、前記CPU周辺デバイスコア部に対し
て制御信号を出力する自動書込み制御回路と、前記アド
レスバスおよびデータバスに接続され、前記CPU周辺
デバイスコア部内のアドレスおよびデータを格納する自
動書込命令格納エリアとを含むことを特徴とする請求項
1乃至4の何れかに記載のDMA回路。5. The DMA control circuit, which is connected to the address bus and outputs an address to the memory at the time of DMA transfer, decrements each DMA cycle, and sends a transfer end signal when a predetermined value is reached. A DMA transfer counter for outputting, an automatic write control circuit that is activated by the transfer end signal and outputs a control signal to the CPU peripheral device core unit, and the CPU peripheral device core connected to the address bus and the data bus. 5. The DMA circuit according to claim 1, further comprising an automatic write command storage area for storing an address and data in the unit.
体に内蔵され外部メモリにアクセス可能にするDMA回
路であって、DMA転送時に前記外部メモリに格納する
ためのアドレスを制御するDMAアドレス制御回路と、
DMA転送回数をカウントするDMA転送カウンタと、
DMA終了時に前記CPU周辺デバイスコア部に対して
前記CPUの代わりに命令を書き込む制御をする自動書
込み制御回路と、該自動書込み制御回路が前記CPU周
辺デバイスコア部に対して書込むCPUの命令を格納す
る自動書込み命令格納エリアとを備え、前記DMA転送
カウンタのカウント値が所定値になったとき、前記自動
書込み制御回路に対して転送終了信号を出力し、前記C
PU周辺デバイスコア部に対して自動書込み命令がなく
なったとき、前記CPUに対して割込み信号を出力する
ことを特徴とするDMA回路。6. A DMA circuit built in a CPU peripheral device main body connected to a CPU to enable access to an external memory, and a DMA address control circuit for controlling an address to be stored in the external memory during DMA transfer. ,
A DMA transfer counter for counting the number of DMA transfers,
An automatic write control circuit that controls writing of an instruction to the CPU peripheral device core unit in place of the CPU when the DMA ends, and an instruction of the CPU that the automatic write control circuit writes to the CPU peripheral device core unit. An automatic write command storage area for storing the data, and when the count value of the DMA transfer counter reaches a predetermined value, outputs a transfer end signal to the automatic write control circuit,
A DMA circuit, which outputs an interrupt signal to the CPU when there is no automatic write command to the PU peripheral device core section.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001290985A JP2003099390A (en) | 2001-09-25 | 2001-09-25 | Dma circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001290985A JP2003099390A (en) | 2001-09-25 | 2001-09-25 | Dma circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2003099390A true JP2003099390A (en) | 2003-04-04 |
Family
ID=19113204
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001290985A Pending JP2003099390A (en) | 2001-09-25 | 2001-09-25 | Dma circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2003099390A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005013137A1 (en) * | 2003-08-04 | 2005-02-10 | Fujitsu Limited | Data transfer method |
-
2001
- 2001-09-25 JP JP2001290985A patent/JP2003099390A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2745521B2 (en) | Frame transmission method | |
JP2004171209A (en) | Shared memory data transfer device | |
JP2007501472A (en) | USB host controller with transfer descriptor memory | |
JP2688171B2 (en) | Communication adapter and data transfer system and method | |
CA2289192C (en) | Communication dma device | |
EP3029579A2 (en) | Controller with indirect accessible memory | |
JP2003099390A (en) | Dma circuit | |
JP4592944B2 (en) | CPU interface circuit | |
JP2762506B2 (en) | Line controller | |
KR0170742B1 (en) | Data transmission method using Embus | |
JP2664208B2 (en) | Direct memory access control device and direct memory access control method | |
JP3878785B2 (en) | Network interface circuit | |
JP2000285087A (en) | Method for data communication between nodes | |
JP2002229929A (en) | Memory access control method and memory access control device | |
JPH10105488A (en) | Communication controller | |
JPH04192028A (en) | Control system for data sent to printer | |
JPH0713881A (en) | Communication processing device | |
JPH02113358A (en) | local bus style | |
JP2933039B2 (en) | Communication controller | |
JPH03262063A (en) | Bus control circuit for dma transfer | |
JPH01108665A (en) | Dma transfer control system | |
JPH07110018B2 (en) | Serial communication device | |
JPH05100995A (en) | Dma control system | |
JPH10320345A (en) | Bus controller | |
JP2002251368A (en) | Data transfer controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040430 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040511 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040709 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040817 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20041013 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20050323 |