JPH07182272A - Dma controller circuit - Google Patents

Dma controller circuit

Info

Publication number
JPH07182272A
JPH07182272A JP32711693A JP32711693A JPH07182272A JP H07182272 A JPH07182272 A JP H07182272A JP 32711693 A JP32711693 A JP 32711693A JP 32711693 A JP32711693 A JP 32711693A JP H07182272 A JPH07182272 A JP H07182272A
Authority
JP
Japan
Prior art keywords
cpu
dma
circuit
signal
memory
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.)
Withdrawn
Application number
JP32711693A
Other languages
Japanese (ja)
Inventor
Kazuaki Okabe
和昭 岡部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP32711693A priority Critical patent/JPH07182272A/en
Publication of JPH07182272A publication Critical patent/JPH07182272A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To attain DMA transfer operation without stopping the processing of a CPU and respective DMA controller circuits and to improve processing speed. CONSTITUTION:When a DMA transfer request is generated at the time of accessing from a CPU 4 to another device, a transfer request arbitrating circuit 11 outputs a wait request signal to the CPU 4 and inserts wait for DMA transfer into the machine cycle of the CPU 4. When the DMA transfer inserting cycle is started, a data bus control circuit 15 selects the CPU 4 and an I/O data register 3 in order in accordance with a signal from a memory control circuit 2 and connects the selected unit to a memory 5. At the time of starting the DMA transfer inserting cycle, an address control circuit 16 selects an address signal from the CPU 4 and a DMA address signal from an address calculating circuit 12 in order in accordance with a signal from the circuit 2 and sends the selected unit to the memory 5. The circuit 2 gives instruction on the switching timing of data and address signals at the time of starting the DMA transfer inserting cycle.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はDMAコントローラ回路
に関し、特にDMA(ダイレクトメモリアクセス)コン
トローラ回路によるメモリ装置に対するDMA転送動作
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DMA controller circuit, and more particularly to a DMA transfer operation for a memory device by a DMA (Direct Memory Access) controller circuit.

【0002】[0002]

【従来の技術】従来、DMAコントローラ回路において
は、DMAコントローラ回路がDMA転送を行う場合に
はCPUにホールド信号を出力し、CPUの動作を一旦
停止させてからメモリアクセスを行うようになってい
る。
2. Description of the Related Art Conventionally, in a DMA controller circuit, when the DMA controller circuit performs a DMA transfer, a hold signal is output to the CPU, and the operation of the CPU is temporarily stopped before the memory access. .

【0003】すなわち、CPUが動作しているときに、
DMAコントローラ回路が動作すると、アドレスデータ
バス上でCPUからのアドレスやデータとDMAコント
ローラ回路からのアドレスやデータとが衝突するため、
DMAコントローラ回路からCPUにホールド信号を出
力することで、CPUの動作を一旦停止させてからDM
A転送を行うようになっている。
That is, when the CPU is operating,
When the DMA controller circuit operates, the address and data from the CPU collide with the address and data from the DMA controller circuit on the address data bus.
By outputting a hold signal from the DMA controller circuit to the CPU, the operation of the CPU is temporarily stopped before the DM
A transfer is performed.

【0004】特開昭59−214931号公報に開示さ
れた技術では、DMAコントローラ回路によるDMA制
御時にI/O装置におけるデータセット時間をCPUモ
ードウェイト時間に加算してウェイト信号を形成し、各
I/O装置に対して最も効率のよい同期が取れるように
する方法が提案されている。
In the technique disclosed in Japanese Patent Laid-Open No. 59-214931, the data set time in the I / O device is added to the CPU mode wait time during the DMA control by the DMA controller circuit to form the wait signal, and each I There has been proposed a method for achieving the most efficient synchronization with the / O device.

【0005】上記の技術においても、DMAコントロー
ラ回路がCPUと同じアドレスバス上に接続されている
ため、DMA転送を行う場合にはホールド信号を出力す
ることでCPUの動作を一旦停止させなければならな
い。
Also in the above technique, since the DMA controller circuit is connected to the same address bus as the CPU, the operation of the CPU must be temporarily stopped by outputting a hold signal when performing the DMA transfer. .

【0006】[0006]

【発明が解決しようとする課題】上述した従来のメモリ
アクセス競合の調停方法では、CPUとDMAコントロ
ーラ回路とが互いにホールド信号を生成してアドレスデ
ータバスを占有するようにしているので、DMAコント
ローラ回路によるDMA転送制御時にCPUがホールド
状態となって動作が一旦停止されてしまうという問題が
ある。
In the above-described conventional memory access contention arbitration method, since the CPU and the DMA controller circuit generate hold signals to occupy the address data bus, the DMA controller circuit is used. There is a problem that the CPU is put in the hold state and the operation is temporarily stopped during the DMA transfer control.

【0007】また、CPUによるメモリアクセス時には
DMAコントローラ回路がホールド状態となり、DMA
コントローラ回路によるDMA転送が停止するので、D
MA転送に時間がかかるという問題がある。
Further, when the memory is accessed by the CPU, the DMA controller circuit is in the hold state, and the DMA
Since the DMA transfer by the controller circuit is stopped, D
There is a problem that the MA transfer takes time.

【0008】尚、ホールド信号によってCPUの動作を
一旦停止させる場合、CPUがある処理を行っていると
きにはその処理が完了するまで停止状態とならないの
で、DMA転送の時間がさらに長くなってしまう。
When the operation of the CPU is temporarily stopped by the hold signal, when the CPU is performing a certain process, it does not enter the stopped state until the process is completed, which further lengthens the DMA transfer time.

【0009】そこで、本発明の目的は上記の問題点を解
消し、CPU及びDMAコントローラ回路各々の処理を
停止することなくDMA転送を行うことができ、処理速
度の高速化を図ることができるDMAコントローラ回路
を提供することにある。
Therefore, an object of the present invention is to solve the above problems and to perform DMA transfer without stopping the processing of each of the CPU and the DMA controller circuit, and to increase the processing speed. To provide a controller circuit.

【0010】[0010]

【課題を解決するための手段】本発明によるDMAコン
トローラ回路は、中央演算処理装置に接続された入出力
装置からのメモリ装置に対するダイレクトメモリアクセ
ス要求に応じて前記メモリ装置に対してダイレクトメモ
リアクセスを行うDMAコントローラ回路であって、前
記中央演算処理装置から他装置へのアクセス時に前記入
出力装置から入力される前記ダイレクトメモリアクセス
要求を検出する検出手段と、前記検出手段が前記ダイレ
クトメモリアクセス要求を検出したときに前記中央処理
装置及び前記他装置の間のアクセス処理のマシンサイク
ルに前記ダイレクトメモリアクセスを行うためのウェイ
トを挿入するウェイト挿入手段と、前記中央処理装置及
び前記他装置の間のアクセス処理と前記ダイレクトメモ
リアクセスの処理とを前記ウェイトが挿入されたマシン
サイクル内で行うよう制御する手段とを備えている。
A DMA controller circuit according to the present invention provides direct memory access to a memory device in response to a direct memory access request to the memory device from an input / output device connected to a central processing unit. A DMA controller circuit for performing, the detecting means for detecting the direct memory access request input from the input / output device when the central processing unit accesses another device, and the detecting means detects the direct memory access request. Wait inserting means for inserting a wait for performing the direct memory access in a machine cycle of access processing between the central processing unit and the other device when detected, and access between the central processing unit and the other device Processing and processing of the direct memory access It said weights and means for controlling to perform in the inserted machine cycles a.

【0011】本発明による他のDMAコントローラ回路
は、上記の構成のほかに、前記ダイレクトメモリアクセ
スによる前記メモリ装置との間の転送回数を計数する計
数手段と、前記計数手段の計数値が所定値となったとき
にその旨を前記中央処理装置に通知する通知手段とを具
備している。
In addition to the above-mentioned configuration, another DMA controller circuit according to the present invention has a counting means for counting the number of times of transfer with the memory device by the direct memory access, and a count value of the counting means is a predetermined value. And a notification means for notifying the central processing unit of that fact.

【0012】[0012]

【実施例】次に、本発明の一実施例について図面を参照
して説明する。
An embodiment of the present invention will be described with reference to the drawings.

【0013】図1は本発明の一実施例の構成を示すブロ
ック図である。図において、DMAコントローラ回路
(DMAC)1はデコーダ10と、転送要求調停回路1
1と、アドレス計算回路12と、転送回数計算回路13
と、割込み発生回路14と、データバス制御回路15
と、アドレス制御回路16とから構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, a DMA controller circuit (DMAC) 1 includes a decoder 10 and a transfer request arbitration circuit 1
1, an address calculation circuit 12, and a transfer count calculation circuit 13
An interrupt generation circuit 14 and a data bus control circuit 15
And an address control circuit 16.

【0014】デコーダ10はCPU3からのアドレス信
号をデコードし、DMAコントローラ回路1内の各回路
及び図示せぬI/O装置に各種信号を送出する。例え
ば、転送回数計算回路13への転送回数設定信号や転送
要求調停回路11へのDMA転送の有効・無効信号を生
成して夫々の回路に送出する。
The decoder 10 decodes the address signal from the CPU 3 and sends various signals to each circuit in the DMA controller circuit 1 and an I / O device (not shown). For example, a transfer count setting signal to the transfer count calculation circuit 13 and a DMA transfer valid / invalid signal to the transfer request arbitration circuit 11 are generated and sent to the respective circuits.

【0015】転送要求調停回路11はCPU4からのア
ドレスストローブ信号とI/O装置からのDMA転送要
求と転送回数計算回路13からの設定値一致信号とを基
にメモリ5に対するアクセスを調停する。尚、CPU4
からのアドレスストローブ信号はCPU4によるメモリ
5及びI/O装置に対するアクセス時に出力される。
The transfer request arbitration circuit 11 arbitrates access to the memory 5 based on the address strobe signal from the CPU 4, the DMA transfer request from the I / O device, and the set value match signal from the transfer number calculation circuit 13. Incidentally, CPU4
The address strobe signal from is output when the CPU 4 accesses the memory 5 and the I / O device.

【0016】転送要求調停回路11はデコーダ10から
の信号によってDMA転送の有効または無効を判断す
る。転送要求調停回路11はDMA転送が有効と判断す
ると、CPU4によるメモリアクセスのマシンサイクル
にDMA転送を処理するためのサイクルを挿入してその
マシンサイクルをDMA転送挿入サイクルとする。
The transfer request arbitration circuit 11 determines whether the DMA transfer is valid or invalid according to a signal from the decoder 10. When the transfer request arbitration circuit 11 determines that the DMA transfer is valid, it inserts a cycle for processing the DMA transfer into the machine cycle of the memory access by the CPU 4 and sets the machine cycle as the DMA transfer insertion cycle.

【0017】すなわち、転送要求調停回路11はクロッ
クの立下りでI/O装置からのDMA転送要求が発生す
ると、このDMA転送要求の発生の後にCPU4から入
力されるアドレスストローブ信号の立上がりで開始され
るマシンサイクルがDMA転送挿入サイクルとなるよう
に上記の動作を行う。尚、転送要求調停回路11は1回
のDMA転送終了毎にそのサイクル内でDMA転送要求
をリセットし、次のDMA転送待ちとなる。
That is, when a DMA transfer request from the I / O device is generated at the falling edge of the clock, the transfer request arbitration circuit 11 starts at the rising edge of the address strobe signal input from the CPU 4 after the DMA transfer request is generated. The above operation is performed so that the machine cycle to be performed becomes the DMA transfer insertion cycle. The transfer request arbitration circuit 11 resets the DMA transfer request within the cycle each time one DMA transfer is completed, and waits for the next DMA transfer.

【0018】また、転送要求調停回路11はCPU4か
らのメモリ5に対するアクセス要求とI/O装置からの
DMA転送要求とを基に、そのときDMA転送するメモ
リまたはI/O装置に必要なウェイト数を示すDMA用
のウェイト数と、そのときアクセスするメモリまたはI
/O装置に必要なウェイト数を示すCPU用のウェイト
数とを加算した数だけCPU4のマシンサイクルにウェ
イトを挿入するよう動作する。
Further, the transfer request arbitration circuit 11 determines the number of waits required for the memory or I / O device to be DMA-transferred at that time based on the access request from the CPU 4 to the memory 5 and the DMA transfer request from the I / O device. The number of waits for DMA and the memory or I to be accessed at that time
The number of waits for the CPU 4, which indicates the number of waits required for the / O device, is added to the machine cycle of the CPU 4.

【0019】アドレス計算回路12はDMAによるデー
タ転送開始アドレス及びアドレスの増加・減少の設定
と、転送要求調停回路11からの信号とを基にDMA転
送用のDMAアドレス信号を生成し、そのDMAアドレ
ス信号をアドレス制御回路16に出力する。
The address calculation circuit 12 generates a DMA address signal for DMA transfer based on the data transfer start address by DMA, setting of increase / decrease of address, and the signal from the transfer request arbitration circuit 11, and the DMA address is generated. The signal is output to the address control circuit 16.

【0020】転送回数計算回路13は転送要求調停回路
11からの信号によってDMA転送の回数を計算し、そ
の計算値がデコーダ10からの信号で設定された転送回
数になると、設定値一致信号を転送要求調停回路11及
び割込み発生回路14に出力する。
The transfer count calculation circuit 13 calculates the number of DMA transfers by the signal from the transfer request arbitration circuit 11, and when the calculated value reaches the transfer count set by the signal from the decoder 10, transfers the set value match signal. Output to the request arbitration circuit 11 and the interrupt generation circuit 14.

【0021】割込み発生回路14は転送回数計算回路1
3から設定値一致信号が入力されると、割込み信号を生
成してCPU4に出力する。CPU4は割込み発生回路
14から割込み信号が入力されると、DMA転送が転送
回数計算回路13に設定された回数だけ行われたことを
知り、メモリ5にDMA転送されたデータの処理を行
う。
The interrupt generation circuit 14 is a transfer number calculation circuit 1
When the set value matching signal is input from 3, an interrupt signal is generated and output to the CPU 4. When the interrupt signal is input from the interrupt generation circuit 14, the CPU 4 knows that the DMA transfer has been performed the number of times set in the transfer number calculation circuit 13, and processes the data DMA-transferred to the memory 5.

【0022】データバス制御回路15は転送要求調停回
路11からの信号によってDMA転送挿入サイクルに入
ったことが通知されると、メモリ制御回路2からの信号
に応じてCPU4及びメモリ5間のデータとI/O装置
のデータを格納するI/Oデータレジスタ3及びメモリ
5間のデータとを順番に選択する。
When the data bus control circuit 15 is informed by the signal from the transfer request arbitration circuit 11 that the DMA transfer insertion cycle has been entered, the data between the CPU 4 and the memory 5 is transferred according to the signal from the memory control circuit 2. The I / O data register 3 for storing the data of the I / O device and the data between the memory 5 are sequentially selected.

【0023】すなわち、CPU4によるアクセスがメモ
リ5へのデータの書込みで、DMA転送がI/Oデータ
レジスタ3からメモリ5へのデータの転送の場合には、
CPU4からのデータとI/Oデータレジスタ3のデー
タとがデータバス制御回路15で順番に選択されてメモ
リ5に書込まれる。
That is, when the access by the CPU 4 is writing data to the memory 5 and the DMA transfer is transferring data from the I / O data register 3 to the memory 5,
The data from the CPU 4 and the data in the I / O data register 3 are sequentially selected by the data bus control circuit 15 and written in the memory 5.

【0024】また、CPU4によるアクセスがメモリ5
からのデータの読出しで、DMA転送がメモリ5からI
/Oデータレジスタ3へのデータの転送の場合には、メ
モリ5から読出されたデータがデータバス制御回路15
で選択されてCPU4とI/Oデータレジスタ3とに順
番に送出される。
Further, the access by the CPU 4 is performed by the memory 5
By reading data from the
In the case of data transfer to the / O data register 3, the data read from the memory 5 is the data bus control circuit 15
Selected in step S1 and sent to the CPU 4 and the I / O data register 3 in order.

【0025】尚、CPU4によるアクセスがメモリ5へ
のデータの書込みで、DMA転送がメモリ5からI/O
データレジスタ3へのデータの転送の場合、あるいはC
PU4によるアクセスがメモリ5からのデータの読出し
で、DMA転送がI/Oデータレジスタ3からメモリ5
へのデータの転送の場合にも上記と同様に動作する。
The access by the CPU 4 is writing of data to the memory 5, and the DMA transfer is I / O from the memory 5.
In the case of data transfer to the data register 3, or C
Access from the PU 4 is reading data from the memory 5, and DMA transfer is from the I / O data register 3 to the memory 5.
The operation is the same as above when transferring data to.

【0026】また、CPU4によるアクセスがI/O装
置に対するデータの書込み読出しの場合にも上記と同様
に動作する。
Also, when the access by the CPU 4 is writing / reading of data to / from the I / O device, the same operation as above is performed.

【0027】アドレス制御回路16はメモリ制御回路2
からの信号に応じてCPU4からのアドレス信号とアド
レス計算回路12で生成されたDMAアドレス信号とを
順番に選択してメモリ5に送出する。
The address control circuit 16 is the memory control circuit 2
The address signal from the CPU 4 and the DMA address signal generated by the address calculation circuit 12 are sequentially selected in accordance with the signal from the memory 5 and sent to the memory 5.

【0028】メモリ制御回路2は転送要求調停回路11
からの信号によってDMA転送挿入サイクルに入ったこ
とが通知されると、データバス制御回路15及びアドレ
ス制御回路16にデータ及びアドレス信号の切替えタイ
ミングを指示する信号を出力する。
The memory control circuit 2 includes a transfer request arbitration circuit 11
When it is notified that the DMA transfer insertion cycle has been entered by the signal from, a signal for instructing the switching timing of the data and address signals is output to the data bus control circuit 15 and the address control circuit 16.

【0029】また、メモリ制御回路2はCPU4からの
リード信号及びライト信号、転送要求調停回路11から
の信号によるメモリ5に対する制御信号、つまりCPU
実動作用リード/ライト信号やDMAコントロール用リ
ード/ライト信号、及びチップセレクト(メモリがDR
AMならばRAS,CAS)信号等を生成して出力す
る。
Further, the memory control circuit 2 controls the memory 5 by a read signal and a write signal from the CPU 4 and a signal from the transfer request arbitration circuit 11, that is, the CPU.
Read / write signals for actual operation, read / write signals for DMA control, and chip select (memory DR
If it is AM, it generates and outputs a RAS, CAS) signal or the like.

【0030】図2は本発明の一実施例の動作を示すタイ
ミングチャートである。これら図1及び図2を用いて本
発明の一実施例の動作について説明する。
FIG. 2 is a timing chart showing the operation of one embodiment of the present invention. The operation of the embodiment of the present invention will be described with reference to FIGS.

【0031】CPU4がメモリ5に対してアクセスを行
っているときにI/O装置からのDMA転送要求が発生
すると、転送要求調停回路11はデコーダ10で設定さ
れた信号によってDMA転送の有効または無効を判断す
る。
When a DMA transfer request from the I / O device occurs while the CPU 4 is accessing the memory 5, the transfer request arbitration circuit 11 enables or disables the DMA transfer according to the signal set by the decoder 10. To judge.

【0032】転送要求調停回路11はDMA転送が有効
と判断すると、アドレスストローブ信号の立上がりで開
始されるマシンサイクルがDMA転送挿入サイクルにな
るように動作する。
When the transfer request arbitration circuit 11 determines that the DMA transfer is valid, the transfer request arbitration circuit 11 operates so that the machine cycle started at the rising edge of the address strobe signal becomes the DMA transfer insertion cycle.

【0033】すなわち、転送要求調停回路11はDMA
転送要求発生時にCPU4における次のマシンサイクル
にウェイトを挿入すべく、CPU4にウェイト要求信号
を送出する。この後に、転送要求調停回路11はアドレ
ス計算回路12にDMA転送用のDMAアドレス信号を
生成するよう指示し、転送回数計算回路13にDMA転
送を通知する。
That is, the transfer request arbitration circuit 11 uses the DMA
When a transfer request is generated, a wait request signal is sent to the CPU 4 to insert a wait into the next machine cycle in the CPU 4. Thereafter, the transfer request arbitration circuit 11 instructs the address calculation circuit 12 to generate a DMA address signal for DMA transfer, and notifies the transfer count calculation circuit 13 of the DMA transfer.

【0034】また、転送要求調停回路11はメモリ制御
回路2とデータバス制御回路15とアドレス制御回路1
6とに夫々DMA転送挿入サイクルに入ったことを通知
する。メモリ制御回路2は転送要求調停回路11からの
DMA転送挿入サイクルの通知を受取ると、メモリ5に
対するDMA転送用の制御信号を生成して出力する。
The transfer request arbitration circuit 11 includes a memory control circuit 2, a data bus control circuit 15, and an address control circuit 1.
6 and 6 are notified that the DMA transfer insertion cycle has been entered. Upon receiving the notification of the DMA transfer insertion cycle from the transfer request arbitration circuit 11, the memory control circuit 2 generates and outputs a control signal for DMA transfer to the memory 5.

【0035】このとき、データバス制御回路15ではI
/Oデータレジスタ3側が選択され、アドレス制御回路
16ではアドレス計算回路12からのDMAアドレス信
号が選択される。
At this time, in the data bus control circuit 15, I
The / O data register 3 side is selected, and the address control circuit 16 selects the DMA address signal from the address calculation circuit 12.

【0036】よって、このDMA転送挿入サイクルの前
半部分では、I/O装置とメモリ5との間でDMA転送
が行われる。
Therefore, in the first half of this DMA transfer insertion cycle, DMA transfer is performed between the I / O device and the memory 5.

【0037】I/O装置とメモリ5との間のDMA転送
が終了するタイミングで、メモリ制御回路2はメモリ5
に対するCPU実動作用の制御信号を生成して出力す
る。同時に、メモリ制御回路2はデータバス制御回路1
5及びアドレス制御回路16に切替指示信号を出力す
る。
At the timing when the DMA transfer between the I / O device and the memory 5 is completed, the memory control circuit 2 causes the memory 5 to move.
To generate and output a control signal for CPU actual operation. At the same time, the memory control circuit 2 is replaced by the data bus control circuit 1
5 and the address control circuit 16 to output a switching instruction signal.

【0038】データバス制御回路15はメモリ制御回路
2から切替指示信号を受取ると、I/Oデータレジスタ
3側からCPU4側に切替える。また、アドレス制御回
路16はメモリ制御回路2から切替指示信号を受取る
と、アドレス計算回路12からのDMAアドレス信号か
らCPU4からのアドレス信号に切替える。
Upon receiving the switching instruction signal from the memory control circuit 2, the data bus control circuit 15 switches from the I / O data register 3 side to the CPU 4 side. When the address control circuit 16 receives the switching instruction signal from the memory control circuit 2, the address control circuit 16 switches the DMA address signal from the address calculation circuit 12 to the address signal from the CPU 4.

【0039】よって、このDMA転送挿入サイクルの後
半部分では、CPU4とメモリ5との間でアクセスが行
われる。
Therefore, in the latter half of this DMA transfer insertion cycle, access is performed between the CPU 4 and the memory 5.

【0040】尚、CPU4がI/O装置に対してアクセ
スを行っているときに、他のI/O装置からのDMA転
送要求が発生した場合にも、上述した動作と同様にし
て、CPU4及びI/O装置間のアクセスと他のI/O
装置によるDMA転送とが同一マシンサイクル内で行わ
れる。
When the CPU 4 is accessing the I / O device and a DMA transfer request is issued from another I / O device, the CPU 4 and the CPU 4 Access between I / O devices and other I / O
The DMA transfer by the device is performed in the same machine cycle.

【0041】このように、CPU4がメモリ5やI/O
装置にアクセスしているときに、他のI/O装置からメ
モリ5に対するDMA転送要求が発生したときに、転送
要求調停回路11からCPU4にウェイト要求信号を送
出してCPU4のアクセス処理のマシンサイクルにウェ
イトを挿入してDMA転送挿入サイクルとし、DMA転
送挿入サイクル内でCPU4によるアクセス処理と他の
I/O装置からメモリ5に対するDMA転送とを行うこ
とによって、CPU4の動作を停止させることなく、ま
たDMAコントローラ回路1の動作を停止させることな
く、CPU4のアクセス処理とI/O装置のDMA転送
とを同一マシンサイクル内で実行することができる。
In this way, the CPU 4 causes the memory 5 and I / O
When a DMA transfer request is made to the memory 5 from another I / O device while accessing the device, the transfer request arbitration circuit 11 sends a wait request signal to the CPU 4 to send a machine cycle of the access process of the CPU 4. Is inserted into the DMA transfer insertion cycle, and the access processing by the CPU 4 and the DMA transfer from the other I / O device to the memory 5 are performed within the DMA transfer insertion cycle, so that the operation of the CPU 4 is not stopped. Further, the access processing of the CPU 4 and the DMA transfer of the I / O device can be executed in the same machine cycle without stopping the operation of the DMA controller circuit 1.

【0042】よって、CPU4から他装置へのアクセス
が行われているときにDMA転送要求が発生してもCP
U4の処理を停止することなくDMA転送を行うことが
できるので、CPU4をホールド状態とするまでの時間
等を削減することができ、CPU4のアクセス処理やI
/O装置のDMA転送における処理速度の高速化を図る
ことができる。
Therefore, even if a DMA transfer request is issued while the CPU 4 is accessing another device, the CP
Since the DMA transfer can be performed without stopping the processing of U4, it is possible to reduce the time until the CPU4 is brought into the hold state, and the access processing of the CPU4 and I
It is possible to increase the processing speed in the DMA transfer of the / O device.

【0043】また、CPU4自体の動作が停止されるこ
となく、I/O装置のDMA転送を行うので、CPU4
に対する信号がウェイト要求信号のみとなり、DMA転
送制御を簡易化することができる。
Since the DMA transfer of the I / O device is performed without stopping the operation of the CPU 4 itself, the CPU 4
The only signal for the request is the wait request signal, and the DMA transfer control can be simplified.

【0044】[0044]

【発明の効果】以上説明したように本発明によれば、中
央演算処理装置が他装置にアクセスしているときに入出
力装置からのダイレクトメモリアクセス要求が検出され
た場合、中央処理装置による他装置との間のアクセス処
理のマシンサイクルにダイレクトメモリアクセスを行う
ためのウェイトを挿入し、ダイレクトメモリアクセスと
中央処理装置による他装置との間のアクセス処理とをウ
ェイトが挿入されたマシンサイクル内で行うよう制御す
ることによって、CPU及びDMAコントローラ回路各
々の処理を停止することなくDMA転送を行うことがで
き、処理速度の高速化を図ることができるという効果が
ある。
As described above, according to the present invention, when a direct memory access request from an input / output device is detected while the central processing unit is accessing another device, the central processing unit is A wait for direct memory access is inserted in the machine cycle of access processing with the device, and direct memory access and access processing with other devices by the central processing unit are inserted in the machine cycle in which the wait is inserted. By controlling so that the processing is performed, the DMA transfer can be performed without stopping the processing of each of the CPU and the DMA controller circuit, and the processing speed can be increased.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】本発明の一実施例の動作を示すタイミングチャ
ートである。
FIG. 2 is a timing chart showing the operation of the embodiment of the present invention.

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

1 DMAコントローラ回路 2 メモリ制御回路 3 I/Oデータレジスタ 4 CPU 5 メモリ 10 デコーダ 11 転送要求調停回路 12 アドレス計算回路 13 転送回数計算回路 14 割込み発生回路 15 データバス制御回路 16 アドレス制御回路 1 DMA controller circuit 2 Memory control circuit 3 I / O data register 4 CPU 5 Memory 10 Decoder 11 Transfer request arbitration circuit 12 Address calculation circuit 13 Transfer count calculation circuit 14 Interrupt generation circuit 15 Data bus control circuit 16 Address control circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 中央演算処理装置に接続された入出力装
置からのメモリ装置に対するダイレクトメモリアクセス
要求に応じて前記メモリ装置に対してダイレクトメモリ
アクセスを行うDMAコントローラ回路であって、前記
中央演算処理装置から他装置へのアクセス時に前記入出
力装置から入力される前記ダイレクトメモリアクセス要
求を検出する検出手段と、前記検出手段が前記ダイレク
トメモリアクセス要求を検出したときに前記中央処理装
置及び前記他装置の間のアクセス処理のマシンサイクル
に前記ダイレクトメモリアクセスを行うためのウェイト
を挿入するウェイト挿入手段と、前記中央処理装置及び
前記他装置の間のアクセス処理と前記ダイレクトメモリ
アクセスの処理とを前記ウェイトが挿入されたマシンサ
イクル内で行うよう制御する手段とを有することを特徴
とするDMAコントローラ回路。
1. A DMA controller circuit for performing direct memory access to a memory device in response to a direct memory access request to the memory device from an input / output device connected to the central processing unit, the central processing unit comprising: Detecting means for detecting the direct memory access request input from the input / output device when the device accesses another device; and the central processing unit and the other device when the detecting means detects the direct memory access request. Between the central processing unit and the other device and the direct memory access processing, the wait insertion means for inserting a wait for performing the direct memory access in the machine cycle of the access processing between As done within the machine cycle in which the And a means for controlling the DMA controller circuit.
【請求項2】 前記ダイレクトメモリアクセスによる前
記メモリ装置との間の転送回数を計数する計数手段と、
前記計数手段の計数値が所定値となったときにその旨を
前記中央処理装置に通知する通知手段とを含むことを特
徴とする請求項1記載のDMAコントローラ回路。
2. Counting means for counting the number of transfers to and from the memory device by the direct memory access,
2. The DMA controller circuit according to claim 1, further comprising a notification unit that notifies the central processing unit of the fact that the count value of the counting unit reaches a predetermined value.
JP32711693A 1993-12-24 1993-12-24 Dma controller circuit Withdrawn JPH07182272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32711693A JPH07182272A (en) 1993-12-24 1993-12-24 Dma controller circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32711693A JPH07182272A (en) 1993-12-24 1993-12-24 Dma controller circuit

Publications (1)

Publication Number Publication Date
JPH07182272A true JPH07182272A (en) 1995-07-21

Family

ID=18195484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32711693A Withdrawn JPH07182272A (en) 1993-12-24 1993-12-24 Dma controller circuit

Country Status (1)

Country Link
JP (1) JPH07182272A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008065512A (en) * 2006-09-06 2008-03-21 Denso Corp Data processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008065512A (en) * 2006-09-06 2008-03-21 Denso Corp Data processor

Similar Documents

Publication Publication Date Title
JP2000047974A (en) Bus arbitrating method of bus controller, bus controller, and system of electronic equipment
US6115767A (en) Apparatus and method of partially transferring data through bus and bus master control device
JPH07182272A (en) Dma controller circuit
JP2624388B2 (en) DMA device
JPH10320349A (en) Processor and data transfer system using the processor
JP2003281083A (en) Bus control circuit
KR100244471B1 (en) Direct memory access controller and control method
JPH08137785A (en) Dma controller
JP2617132B2 (en) Direct memory access method
JP3492139B2 (en) Data transfer method via bus and bus master controller
JP2570271B2 (en) Semiconductor memory controller
JP3016812B2 (en) Wait cycle controller
JPH05165541A (en) Electronic circuit
JPH0876876A (en) Clock supply control circuit of microprocessor
JPH04306754A (en) Dma controller
JPS60151894A (en) Refresh circuit of dynamic ram
JP2000148657A (en) Dma controller
JPH06111568A (en) Image memory device
JP2000259548A (en) Dma bus transfer system
JPH0850567A (en) Data transfer device
JPH04352266A (en) Direct memory access controller
JPH1125034A (en) Cpu peripheral circuit
JPH0142017B2 (en)
JP2000322377A (en) Data transfer controller
JPH07244632A (en) Information processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010306