JPH02280261A - Dma controller - Google Patents
Dma controllerInfo
- Publication number
- JPH02280261A JPH02280261A JP10196889A JP10196889A JPH02280261A JP H02280261 A JPH02280261 A JP H02280261A JP 10196889 A JP10196889 A JP 10196889A JP 10196889 A JP10196889 A JP 10196889A JP H02280261 A JPH02280261 A JP H02280261A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- cpu
- controller
- dma
- internal
- 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
【発明の詳細な説明】
〈産業上の利用分野〉
本発明は、コンピュータシステムにおいて、メモリ装置
と外部のメモリ装置との間でデータのやり取りを直接行
うDMA (ダイレフ!・・メモリ・アクセス)の制御
装置に関し、さらに詳しくは、DMAをバーストモード
で使用する場合のバスマスタ(CP tJ )のパーフ
ォーマンスの改善に関する。[Detailed Description of the Invention] <Industrial Application Field> The present invention is directed to a computer system using DMA (die reflex! memory access) that directly exchanges data between a memory device and an external memory device. The present invention relates to a control device, and more particularly to improving the performance of a bus master (CP tJ ) when using DMA in burst mode.
〈従来の技術〉
第3図は、メモリ装置とメモリ装置との間でデータの転
送を直接行うようにした従来のDMA制御装置の構成概
念図である。<Prior Art> FIG. 3 is a conceptual diagram of the configuration of a conventional DMA control device that directly transfers data between memory devices.
図において、1はバスマスタとなるCPU、2はこのC
PUIに内部データバスDBを介して接続されるメモリ
装置、3は外部メモリ装置(図示せず)が接続される外
部バスDBIに対するインターフェイスコントローラ、
4は内部データバスDBに接続されDMAを制御するD
M A :7ントローラである。In the figure, 1 is the CPU that becomes the bus master, 2 is this CPU
a memory device connected to the PUI via an internal data bus DB; 3 an interface controller for an external bus DBI to which an external memory device (not shown) is connected;
4 is connected to the internal data bus DB and controls the DMA.
MA: 7 controllers.
DMAコントローラ4は、インターフェイスコントロー
ラ3からデータの転送要求を受は取ると、CPUIに対
してバス権を要求する。cpuiはこの要求に対して、
DMAコントローラ4にバス権を渡す、バス権を得たD
MAコンl−ローラ4は、メモリ装置2とインターフェ
イスコントローラ3との間でデータ転送を行う。When the DMA controller 4 receives a data transfer request from the interface controller 3, it requests bus ownership from the CPUI. cpui responds to this request by
D transfers bus rights to DMA controller 4, D gains bus rights
The MA controller 4 transfers data between the memory device 2 and the interface controller 3.
ここで、以上の動作を1回行う毎にバス権を解放する手
法を「サイクルスチルモード」と呼び、データ転送の終
了がインターフェイスコントローラから通知されるまで
前記の動作を継続して繰り返す手法を「バーストモード
」と呼んでいる。Here, the method of releasing the bus every time the above operation is performed is called "cycle still mode", and the method of continuously repeating the above operation until notification of the end of data transfer from the interface controller is called "cycle still mode". It's called "Burst Mode".
〈発明が解決しようとする課題〉
このような構成の従来装置においては、サイクルスチル
モードにすると、外部バスの転送速度が速いと処理が追
い付かなくなるという不具合があり、バーストモードに
すると、外部バスの転送速度が遅くなるとシステムとし
てのパフォーマンスが低下してしまうという問題点があ
る。<Problems to be Solved by the Invention> In conventional devices with such a configuration, there is a problem that when the cycle still mode is set, the processing cannot keep up if the external bus transfer speed is high, and when the burst mode is set, the external bus transfer speed is too high. There is a problem in that the slower the transfer speed, the lower the performance of the system.
本発明は、このような点に鑑みてなされたもので、その
目的は、DMAをバーストモードで使用した時、バスマ
スタのパフォーマンス向上が行えるDMA制御装置を実
現することにある。The present invention has been made in view of the above points, and its object is to realize a DMA control device that can improve the performance of a bus master when DMA is used in burst mode.
く課題を解決するための手段〉
前記した課題を解決する本発明は、バスマスタとなるC
PUと、このCPUに内部データバスDBを介して接続
されるメモリ装置と、外部バスと内部データバスとの間
に設けられたインターフェイスコントローラと、内部デ
ータバスに接続されダイレクトメモリアクセス(DMA
)を制御するDMAコントローラとを備えたDMA制御
装置において、
前記CPUとDMAコントローラとの間に外部バスの使
用状況を監視し、当該外部バスが空いている時間が所定
の短定値以上の場合、それまでDMAコントローラが所
有していたバス権をCPUに解放するアーとl・レーシ
ョンコントローラを設けて構成される。Means for Solving the Problems> The present invention for solving the problems described above provides a bus master C.
A PU, a memory device connected to the CPU via an internal data bus DB, an interface controller provided between the external bus and the internal data bus, and a direct memory access (DMA) device connected to the internal data bus.
), which monitors the usage status of an external bus between the CPU and the DMA controller, and if the idle time of the external bus is equal to or greater than a predetermined short-term value, It is constructed by providing an architecture controller that releases the bus rights previously owned by the DMA controller to the CPU.
く作用〉
DMCコントローラは、内部データバスを用いてバース
トモードでデータ転送を行っている。この状態でアービ
トレーションコントローラは、外部バスの使用状況を監
視していて、短定値以上の時間空きが生じると、CPU
にバス権を渡す。Function> The DMC controller transfers data in burst mode using an internal data bus. In this state, the arbitration controller monitors the usage status of the external bus, and if there is a free time longer than a short-term fixed value, the CPU
give bus rights to
これによりCPUは、内部バスを使用してデータ転送を
行い処理が行えるようになり、パフォーマンスの向上が
可能となる。This allows the CPU to perform data transfer and processing using the internal bus, thereby improving performance.
〈実施例〉 以下図面を用いて、本発明の実施例を詳細に説明する。<Example> Embodiments of the present invention will be described in detail below with reference to the drawings.
第1図は、本発明の一実施例を示す構成ブロック図であ
る0図において、第3図装置の各部分と同じものには同
一符号を付して示しである。FIG. 1 is a block diagram showing an embodiment of the present invention, and in FIG. 0, the same parts as those in the device shown in FIG. 3 are denoted by the same reference numerals.
図において、1はバスマスタとしてのCPU、2はメモ
リ装置、3は内部バスBSと外部バスDB】のインター
フェイスを制御するインターフェイスコントローラ、4
はインターフェイスコントローラ3とメモリ装置2との
間で、データの転送をバーストモードで行うDMAコン
トローラである。In the figure, 1 is a CPU as a bus master, 2 is a memory device, 3 is an interface controller that controls the interface between the internal bus BS and external bus DB, and 4
is a DMA controller that transfers data between the interface controller 3 and the memory device 2 in burst mode.
5は本発明の装置において特徴とするアービトレーショ
ンコントローラで、外部バスDBIの使用状況を監視し
、バス権を制御するものである。Reference numeral 5 denotes an arbitration controller, which is a feature of the apparatus of the present invention, and monitors the usage status of the external bus DBI and controls the bus right.
このアービトレーションコン!・ローラ5の内部には、
外部バスが空いている時間(使用していない時間)を計
測するタイマー51と、タイマー51の計測値が所定の
規定値(この所定の規定値は、外部バスを用いて転送さ
れるデータの性質、CPU1の処理能力など考慮して決
められる)に到達したか否かを検出する比較手段52と
、比較手段52の比較結果に応じてバス許可信号、制御
信号イネーブルを出力する信号出力手段53とを含んで
いる。This arbitration con!・Inside the roller 5,
A timer 51 measures the time when the external bus is vacant (time when it is not in use), and the measured value of the timer 51 is set to a predetermined value (this predetermined value depends on the nature of data transferred using the external bus). , a signal outputting means 53 for outputting a bus permission signal and a control signal enable according to the comparison result of the comparing means 52. Contains.
6はアービトレーションコントローラ5からの信号に従
って、DMAコントローラ4の制御信号を切り離す切り
離し回路で、DMAコントローラ4につながる制御信号
/アドレスバスABに設けである。Reference numeral 6 denotes a disconnection circuit that disconnects the control signal of the DMA controller 4 according to a signal from the arbitration controller 5, and is provided on the control signal/address bus AB connected to the DMA controller 4.
このように構成した装置の動作を次に説明する。The operation of the device configured in this way will be described next.
第2図は、動作の一例を示すタイムチャートである。こ
こでは外部バスDBIを介して外部メモリ装置あるいは
入出力装置I10側から内部メモリ装置2へのデータ転
送を行う場合を想定している。FIG. 2 is a time chart showing an example of the operation. Here, it is assumed that data is transferred from the external memory device or the input/output device I10 side to the internal memory device 2 via the external bus DBI.
(a)は外部バスDBI上を転送して来るデータを示し
ており、例えば1語目と2語目との間隔が′1゛時間開
いている。(a) shows data transferred on the external bus DBI, and for example, the interval between the first word and the second word is '1' time.
インターフェイスコントローラ3は、外部バスDB1を
介して転送されたデータを受け、D M Aコントロー
ラ4に対して、(b)に示すように送信要求RT’を出
力する。DMAコントローラ4はこの送信要求を受け、
(c)に示すようにバス権要求BRDをアービトレーシ
ョンコントローラ5に出力する。アービトレーションコ
ントローラ5は、この要求を受け、(d)に示すように
CPU1に対してバス権要求を出力し、cputから(
e)に示すようにバス権許可BGをもらう。The interface controller 3 receives the data transferred via the external bus DB1, and outputs a transmission request RT' to the DMA controller 4 as shown in (b). The DMA controller 4 receives this transmission request,
As shown in (c), the bus right request BRD is output to the arbitration controller 5. Upon receiving this request, the arbitration controller 5 outputs a bus right request to the CPU 1 as shown in (d), and from cput (
Obtain bus permission BG as shown in e).
バス権許可BGをもらったアービトレーションコントロ
ーラ5は、DMAコントローラ4に対して、(f)に示
すようにバス権許可n G RN ’T”を出力する。The arbitration controller 5, which has received the bus right permission BG, outputs the bus right permission n G RN 'T'' to the DMA controller 4 as shown in (f).
また、1) M Aコン1ヘローラ4からバス権を所有
していることを示すバス権所有BGACKを(g)に示
すように受けとり、CPU1に対して、DMAによりバ
ス権が占有されていることを示す信号BAKを(h)に
示ずように返送する。In addition, 1) Receives bus ownership BGACK indicating ownership of the bus from M A controller 1 and roller 4 as shown in (g), and confirms that the bus is occupied by DMA for CPU 1. A signal BAK indicating this is returned as shown in (h).
DMAコントローラ4は、自分がD M A /<ス権
を所有している間に、内部バスDBを用いて、(i)に
示すようにメモリ装[1へのデータ転送を実行する。The DMA controller 4 uses the internal bus DB to transfer data to the memory device [1] as shown in (i) while it owns the DMA /< space right.
ここでアービトレーションコントローラ5は、外部バス
DBIのデータ転送状況を監視しており、DMCコント
ローラ4がバス権を所有している間であって、外部バス
DBI上のデータ転送に空きが生じている時間をタイマ
ー51が計測する。そして、この空き時間が規定の時間
を以上になると、比較手段52がこれを検出し、信号出
力手段53から切り離し回路6に対して、制御信号イネ
ーブルを出力する。Here, the arbitration controller 5 monitors the data transfer status of the external bus DBI, and during the period when the DMC controller 4 owns the bus right, there is a time when there is a vacant space in the data transfer on the external bus DBI. The timer 51 measures this. When this free time exceeds a predetermined time, the comparison means 52 detects this and outputs a control signal enable from the signal output means 53 to the disconnection circuit 6.
切り離し回路6は、この制御信号イネーブルを受けとる
とDMCコントローラ4への制御信号を切り離し、DM
Aコントローラ4は、内部データバスの占有を解いて、
CPU1に内部データバスのバス権を矢印jに示すタイ
ミングで解放する。Upon receiving this control signal enable, the disconnection circuit 6 disconnects the control signal to the DMC controller 4, and disconnects the control signal from the DMC controller 4.
The A controller 4 releases the occupation of the internal data bus,
The bus right of the internal data bus is released to the CPU 1 at the timing shown by arrow j.
バス権を得たCPUIは、次にデータ転送がなされバス
権が要求されるまでの間、内部データバスDBを用いて
、別の処理をすることが可能となり、CPUIのパフォ
ーマンスを改善することができる。The CPU that has obtained bus ownership can use the internal data bus DB to perform other processing until the next data transfer is performed and bus ownership is requested, improving CPU performance. can.
〈発明の効果〉
以上詳細に説明したように、本発明によれは、バースト
モードにおいて外部バスのデータ転送の速度が遅くなり
、規定の時間以上空きが検出されると、内部バスのバス
権がCPUに解放されることとなるので、CPUIは内
部バスを用いて他の仕事をすることが可能となり、パフ
ォーマンスを改善することができる。<Effects of the Invention> As described above in detail, according to the present invention, when the data transfer speed of the external bus becomes slow in burst mode and an empty space is detected for a predetermined time or more, bus ownership of the internal bus is taken over. Since it is freed up for the CPU, the CPU can use the internal bus to do other work, improving performance.
第1図は本発明の一実施例を示す構成ブロック図、第2
図は動作の一例を示すタイムチャート、第3図はメモリ
装置とメモリ装置との間でデータ転送を直接行うように
した従来のDMA制御装置の構成概念図である。
1・・・バスマスタ(CPU)、2・・・メモリ装置3
・・・インターフェイスコントローラ4・・・DMAコ
ントローラ
5・・・アービトレーションコントローラ51・・・タ
イマー 52・・・比較手段53・・・信号発生手段
DB・・・内部データバス、DBI・・・外部バス第
図
ブーツ1走
第
図FIG. 1 is a configuration block diagram showing one embodiment of the present invention, and FIG.
The figure is a time chart showing an example of the operation, and FIG. 3 is a conceptual diagram of the configuration of a conventional DMA control device that directly transfers data between memory devices. 1... Bus master (CPU), 2... Memory device 3
...Interface controller 4...DMA controller 5...Arbitration controller 51...Timer 52...Comparison means 53...Signal generation means DB...Internal data bus, DBI...External bus number Diagram Boots 1st run Diagram
Claims (1)
スを介して接続されるメモリ装置と、外部バスと内部デ
ータバスとの間に設けられたインターフェイスコントロ
ーラと、内部データバスに接続されダイレクトメモリア
クセス(DMA)を制御するDMAコントローラとを備
えたDMA制御装置において、 前記CPUとDMAコントローラとの間に外部バスの使
用状況を監視し、当該外部バスが空いている時間が所定
の短定値以上の場合、それまでDMAコントローラが所
有していたバス権をCPUに解放するアービトレーショ
ンコントローラを設けたことを特徴とするDMA制御装
置。[Claims] A CPU serving as a bus master, a memory device connected to the CPU via an internal data bus, an interface controller provided between an external bus and an internal data bus, and a memory device connected to the internal data bus. and a DMA controller that controls direct memory access (DMA), which monitors the usage status of an external bus between the CPU and the DMA controller, and determines when the external bus is idle for a predetermined period. A DMA control device comprising an arbitration controller that releases the bus right previously owned by the DMA controller to a CPU when the value exceeds a short-term fixed value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10196889A JPH02280261A (en) | 1989-04-21 | 1989-04-21 | Dma controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10196889A JPH02280261A (en) | 1989-04-21 | 1989-04-21 | Dma controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02280261A true JPH02280261A (en) | 1990-11-16 |
Family
ID=14314670
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10196889A Pending JPH02280261A (en) | 1989-04-21 | 1989-04-21 | Dma controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02280261A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002222161A (en) * | 2001-01-26 | 2002-08-09 | Fujitsu Ltd | Semiconductor device and data transfer method |
-
1989
- 1989-04-21 JP JP10196889A patent/JPH02280261A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002222161A (en) * | 2001-01-26 | 2002-08-09 | Fujitsu Ltd | Semiconductor device and data transfer method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3284311B2 (en) | Communication bus control device and bus control method in data processing system | |
| JP3766377B2 (en) | Bus control device and information processing system | |
| JPH02280261A (en) | Dma controller | |
| JP4151362B2 (en) | Bus arbitration method, data transfer device, and bus arbitration method | |
| JPH0343804A (en) | Sequence controller | |
| JPH10320349A (en) | Processor and data transfer system using the processor | |
| JP2000276437A (en) | Dma controller | |
| JPS61183763A (en) | Bus controlling system | |
| KR980010798A (en) | Interrupt processing device of multi-bus system | |
| KR100243868B1 (en) | Arbiter logic in main computer system | |
| JP3206013B2 (en) | Direct memory access transfer controller | |
| JP3266184B2 (en) | Input/output control method and device | |
| JPH07219887A (en) | Dma transfer controller | |
| JPS57211628A (en) | Controller for shared input and output loop bus of multicomputer system | |
| JP2837698B2 (en) | Direct memory access controller | |
| JP4432268B2 (en) | Bus arbitration system and interrupt processing method for a device serving as a bus master in this system | |
| JP2505303B2 (en) | Data transfer method | |
| JPS6280753A (en) | Bus control method | |
| JPH06161951A (en) | Bus control system | |
| JP2000298638A5 (en) | ||
| JPS6160162A (en) | Bus arbitration system | |
| JPH04106651A (en) | Controller for system bus | |
| JPS5856057A (en) | Interruption signal generating device | |
| JPS616755A (en) | Data transfer system | |
| JPS626359A (en) | Bus control system |