JPH02280258A - Dma controller - Google Patents
Dma controllerInfo
- Publication number
- JPH02280258A JPH02280258A JP10226289A JP10226289A JPH02280258A JP H02280258 A JPH02280258 A JP H02280258A JP 10226289 A JP10226289 A JP 10226289A JP 10226289 A JP10226289 A JP 10226289A JP H02280258 A JPH02280258 A JP H02280258A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- dma
- memory
- data
- dmac
- 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
- 239000000872 buffer Substances 0.000 claims description 24
- 238000012546 transfer Methods 0.000 claims description 18
- 230000002457 bidirectional effect Effects 0.000 claims description 13
- 238000013475 authorization Methods 0.000 claims description 4
- 230000015654 memory Effects 0.000 description 116
- MHABMANUFPZXEB-UHFFFAOYSA-N O-demethyl-aloesaponarin I Natural products O=C1C2=CC=CC(O)=C2C(=O)C2=C1C=C(O)C(C(O)=O)=C2C MHABMANUFPZXEB-UHFFFAOYSA-N 0.000 description 62
- 230000004044 response Effects 0.000 description 27
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 241000132023 Bellis perennis Species 0.000 description 1
- 235000005633 Chrysanthemum balsamita Nutrition 0.000 description 1
- 101150090596 DMA2 gene Proteins 0.000 description 1
- 230000003213 activating effect Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Landscapes
- Bus Control (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明はダイレクトメモリアクセス(以下DMAと記す
)を用いる電子機器装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an electronic device using direct memory access (hereinafter referred to as DMA).
[従来の技術]
電子機器装置においては、記憶装置と複数の人出力ボー
ト(以下I/O装置と記す)間のデータの授受を高速に
行なうため、あるいは多重プログラム制御のためにDM
Aが広く用いられている。[Prior Art] In electronic devices, DM is used for high-speed data exchange between a storage device and a plurality of human output ports (hereinafter referred to as I/O devices), or for multiple program control.
A is widely used.
このDMAを実行、制御する装置はDMAコントローラ
(以下DMACと記す)と呼ばれている。A device that executes and controls this DMA is called a DMA controller (hereinafter referred to as DMAC).
従来例の1として、DMAの方式をI/O装置が二個の
場合について説明する。第3図は記憶装置(以下メモリ
と記す)302のデータ幅が8ビツトの場合で、300
は中央処理装置(以下CPUと記す)、303は複数チ
ャネルのDMAを各々独立して制御できるDMAC1例
えば日本電気社製のμPD8237がある。304−1
,304−2はI/O装置でI/O装置304−1は例
えばフロッピィディスク制御装置とするとメモリ302
とDMAを享受する主体はFDCと呼ばれるICチップ
で例えば日本電気社製のμPD765がある。I/O装
置304−2は例えば通信制御装置とするとメモリ30
2とDMAを享受する主体はMPSCと呼ばれるICチ
ップであり例えば日本電気社製のμP07201等があ
る。これらのICチップはDMA時には前記DMAC3
03を用いてメモリ302との、また非DMA時にはC
PU300とのデータの授受を8ビツトのデータ幅で行
なうように設計され、DMA要求信号端子を備えている
。これら二つのI/O装置例に限らず、−船釣なI/O
装置のほとんどはバイト単位でデータの転送がなされる
。 I/O装置304−1.304−2とメモリ30
2間及びCPU300間はデータバス305とアドレス
バス306で互いに接続されている。但し一般的には■
/O装置304−1.304−2はアドレスバス306
の一部しか使用しない。さらにI/O装置304−1.
304−2が駆動する各々のDMA要求信号307−1
.307−2がDMAC303にまたDMAC303が
駆動するバス要求信号309がCPU300に、またC
PU300が駆動するバス要求応答信号312がDMA
C303に、DMAC303が駆動するDMA許可信号
308−1.308−2がI/O装置304−1.30
4−2に各々人力されている。As a conventional example 1, a DMA system will be described for a case where there are two I/O devices. FIG. 3 shows a case where the data width of the storage device (hereinafter referred to as memory) 302 is 8 bits.
303 is a central processing unit (hereinafter referred to as CPU), and 303 is a DMAC 1 capable of independently controlling DMA of a plurality of channels, such as μPD8237 manufactured by NEC Corporation. 304-1
, 304-2 is an I/O device, and the I/O device 304-1 is, for example, a floppy disk controller.
The main body that enjoys DMA is an IC chip called FDC, such as μPD765 manufactured by NEC Corporation. For example, if the I/O device 304-2 is a communication control device, the memory 30
The main body that enjoys 2 and DMA is an IC chip called MPSC, such as μP07201 manufactured by NEC Corporation. These IC chips are connected to the DMAC3 during DMA.
03 to the memory 302, and when non-DMA, C
It is designed to exchange data with the PU 300 with an 8-bit data width, and is equipped with a DMA request signal terminal. Not limited to these two examples of I/O devices,
Most devices transfer data in bytes. I/O device 304-1.304-2 and memory 30
2 and the CPU 300 are connected to each other by a data bus 305 and an address bus 306. However, in general ■
/O device 304-1.304-2 is address bus 306
Only part of it is used. Furthermore, I/O device 304-1.
Each DMA request signal 307-1 driven by 304-2
.. 307-2 is sent to the DMAC 303, and a bus request signal 309 driven by the DMAC 303 is sent to the CPU 300, and the bus request signal 309 driven by the DMAC 303 is sent to the
The bus request response signal 312 driven by the PU 300 is a DMA
The DMA permission signal 308-1.308-2 driven by the DMAC 303 is sent to the I/O device 304-1.30.
4-2 are each manned.
この様な構成のもとにI/O装置304−1がDMAに
よってメモリ302とデータの授受を行なおうとするに
は、まずI/O装置304−1からDMA要求信号30
7−1によってDMAC3O3に対し、DMA要求を行
なう。これを受けてDMAC303はCPU300に対
し、バス要求信号309によりCPU300にバス解放
要求を行なう。バス要求応答信号312によりバス解放
がDMAC303に通知されると、DMAC303はD
MA許可信号308−1によりI/O装置304−1に
対し、DMA許可を知らせる。I/O装置304−1は
これをうけてDMAを開始する。In order for the I/O device 304-1 to exchange data with the memory 302 using DMA under such a configuration, first the I/O device 304-1 sends a DMA request signal 30.
7-1 makes a DMA request to DMAC3O3. In response to this, the DMAC 303 requests the CPU 300 to release the bus using a bus request signal 309 . When the DMAC 303 is notified of bus release by the bus request response signal 312, the DMAC 303
MA permission signal 308-1 notifies I/O device 304-1 of DMA permission. In response to this, the I/O device 304-1 starts DMA.
DMAにおいてはまずDMAC303はアドレスバス3
06にメモリ302に対す参照番地を出力する。その後
メモリ302に対して書き込みを行なうか読み込みを行
なうかにより、前者の場合はデータバス305にI/O
装置304−1がメモリ302に対して書き込むべきデ
ータを出力した後メモリライト信号3/Oを、後者の場
合には、メモリリード信号311をアクティブにする。In DMA, first DMAC303 is address bus 3.
The reference address for the memory 302 is output to 06. After that, depending on whether the memory 302 is written or read, in the former case, the I/O is sent to the data bus 305.
After the device 304-1 outputs the data to be written to the memory 302, the memory write signal 3/O is activated, and in the latter case, the memory read signal 311 is activated.
メモリ302はメモリライト信号3/Oがアクティブ化
された場合はデータバス305上のデータをアドレスバ
ス306で参照された番地に書き込む。When the memory write signal 3/O is activated, the memory 302 writes the data on the data bus 305 to the address referenced by the address bus 306.
またメモリリード信号311がアクティブ化された場合
はアドレスバス306で参照される番地のデータをデー
タバス305に出力する。このデータはI/O装置30
4−1内に取り込まれる。Furthermore, when the memory read signal 311 is activated, the data at the address referenced by the address bus 306 is output to the data bus 305. This data is the I/O device 30
4-1.
この様にしてI/O装置304−1とメモリ302間で
データの授受がなされるが、I/O装置304−2と記
憶装置302間のDMAについても共通のDMAC30
3を使用して同様に実行される。上記の説明ではI/O
装置が二個の場合を述べたが、DMAC33は全部で4
個程度のI/O装置のDMAを独立して制御する事が出
来る。In this way, data is exchanged between the I/O device 304-1 and the memory 302, but a common DMAC 30 is also used for DMA between the I/O device 304-2 and the storage device 302.
3 is similarly performed. In the above explanation, I/O
Although we have described the case where there are two devices, there are a total of four DMAC33s.
It is possible to independently control DMA of about 100 I/O devices.
[発明が解決しようとする課題] 第4図は従来例2としてのDMAの方式である。[Problem to be solved by the invention] FIG. 4 shows a DMA system as a second conventional example.
CPU401は例えば米国モトローラ社のMC6800
0があり、データ幅が16ビツトとなっている。従って
メモリ402もデータ幅は16ビツトとなっている。そ
のためデータバスは8ビツトの下位データバス405−
1と8ビツトの上位データバス405−2から成ってい
る。メモリ402は、メモリブロック402−1.40
2−2で構成され、メモリブロック402−1は下位デ
ータバス405−1に接続され奇数番地として割り撮ら
れ、メモリブロック402−2は上位データバス405
−2に接続され、偶数番地として割り振られる。一方I
/O装置404−1.404−2はデータ幅が8ビツト
であり、上位データバス405−1と下位データバス4
05−2のいずれかに接続されるが本例では、下位デー
タバス405−1に接続されている。また、メモリ40
2と1/O装置404−1または、I/O装置404−
2の間のDMAをメモリ402の任意の番地について実
行可能とするために双方向バスバ・ンファ414が置か
れる。双方向バスバッファ414の内部構成を第5図に
示す。For example, the CPU 401 is MC6800 manufactured by Motorola, USA.
There is 0, and the data width is 16 bits. Therefore, the data width of the memory 402 is also 16 bits. Therefore, the data bus is an 8-bit lower data bus 405-
It consists of a 1 and 8 bit upper data bus 405-2. The memory 402 is a memory block 402-1.40
The memory block 402-1 is connected to the lower data bus 405-1 and allocated as an odd address, and the memory block 402-2 is connected to the upper data bus 405.
-2 and allocated as an even address. On the other hand I
The /O device 404-1.404-2 has a data width of 8 bits, and has an upper data bus 405-1 and a lower data bus 4.
In this example, it is connected to the lower data bus 405-1. Also, memory 40
2 and 1/O device 404-1 or I/O device 404-
A bidirectional bus buffer 414 is provided to enable DMA between 2 and 2 to be performed on any address in the memory 402. The internal configuration of bidirectional bus buffer 414 is shown in FIG.
2つのゲート501−1.501−2とスリーステート
バッファ502−1.502−2からなっている。ゲー
ト501−1.501−2の人力にはDMA時を示す信
号503、メモリリード信号504、メモリライト信号
505、アドレス発生手段506が接続される。ゲー)
501−1.501−2の入力の組合せによってDMA
時のメモリ参照番地が偶数即ちアドレス発生手段506
が0で
(1)メモリーリードの時は、スリーステートバッファ
502−2がイネーブルされ、データバス405−2の
データをデータバス405−1に伝える。また
(2)メモリーライトの時は、スリーステートバッファ
502−1がイネーブルされ、データバス405−1の
データをデータバス405−2に伝える。It consists of two gates 501-1.501-2 and a three-state buffer 502-1.502-2. A signal 503 indicating DMA, a memory read signal 504, a memory write signal 505, and an address generating means 506 are connected to the gates 501-1 and 501-2. game)
DMA by combination of 501-1 and 501-2 inputs
When the memory reference address is an even number, that is, the address generating means 506
When is 0 and (1) is a memory read, three-state buffer 502-2 is enabled and transmits data on data bus 405-2 to data bus 405-1. In addition, (2) during memory write, the three-state buffer 502-1 is enabled and the data on the data bus 405-1 is transmitted to the data bus 405-2.
奇数番地のDMAに関してはデータバス405−1がメ
モリ402とI/O装置404−1または、I/O装置
404−2を直接接続しているため双方向バスバッファ
414を使用する事なく行える。従って双方向バスバッ
ファ414はデ、イスエーブルされる。DMA at odd addresses can be performed without using bidirectional bus buffer 414 because data bus 405-1 directly connects memory 402 and I/O device 404-1 or I/O device 404-2. Bidirectional bus buffer 414 is therefore de-enabled.
ところでデータバス幅がざら拡大した32ビツトシステ
ムにおいてCPUたとえば米国モトローラ社のMC68
020などはメモリデータバス幅に間して非常に柔軟で
8ビツト、16ビツト、32ビツトいずれのデータ幅の
メモリに対しても連続した参照番地を割り振る事が可能
としている。By the way, in a 32-bit system where the data bus width has been greatly expanded, the CPU, such as the MC68 manufactured by Motorola in the United States,
020 and the like are extremely flexible in terms of memory data bus width, making it possible to allocate consecutive reference addresses to memories with data widths of 8 bits, 16 bits, and 32 bits.
そのためシステム内にデータ幅の異なるメモリをいくつ
か存在させることが出来る。これはI/O装置に関して
も言える。この様なCPUを核としたシステムに上記し
た従来の方式と同じ考え方を用いてDMAの実行環境を
満たすには外部に複雑なバス制御回路を必要とする。Therefore, several memories with different data widths can exist in the system. This also applies to I/O devices. In order to satisfy the DMA execution environment using the same concept as the above-mentioned conventional method in such a CPU-based system, a complicated external bus control circuit is required.
また最近のパーソナルコンピュータ等は、追加機能を増
設ボードによって実現する様に設計されているが、工場
出荷段階に於てはDMAを必要とする増設ボードが果し
て幾つ使用されるかは分からない。これに対し、従来例
のDMACを用いた構成ではDMAのチャネル数が固定
である為、DMAを行なう増設ボード数が制限されたり
、逆にDMAを行なう増設ボード数が少ない場合はDM
ACが冗長となり、コストアップの原因となる。Furthermore, although recent personal computers and the like are designed to implement additional functions using expansion boards, it is not known at the time of factory shipment how many expansion boards that require DMA will be used. On the other hand, in the conventional configuration using DMAC, the number of DMA channels is fixed, so the number of expansion boards that perform DMA is limited, or conversely, if the number of expansion boards that perform DMA is small, DM
AC becomes redundant, which causes cost increase.
本発明の目的はこれらの問題に鑑み、■外部に複雑なバ
ス制御回路を必要とせず、■種々のデータ幅のI/O装
置、メモリ間のDMAが実行可能であり、■I/O装置
が容易に増設可能で■低コストなシステムを実現するこ
とにある。In view of these problems, the purpose of the present invention is to: 1) eliminate the need for a complex external bus control circuit; 2) enable DMA between I/O devices and memories with various data widths; The objective is to realize a low-cost system that can be easily expanded.
゛[i!題を解決するための手段]
本発明は同一のチップ内に複数個の双方向バスバッファ
と、これら複数個の双方向バスバッファの制御手段と、
外部バス獲得手段と、外部記憶装置へのアドレス発生手
段と、データ転送回数をカウントするカウント手段を含
み、前記記憶装置のデータ幅と外部!/O装置のデータ
幅が異なる場合にも前記記憶装置と外部I/O装置間の
DMAを外部に外部バスの制御装置等を用いることなく
実行可能なことを特徴としており、
さらに本発明は前記複数個の双方向バスバッファの制御
を外部から行なう手段を備え、前記DMAコントローラ
がDMAを実行していないときは、外部バスに接続され
たCPUは前記DMAコントローラの内部の前記複数個
の双方向バスバッファを経由して前記外部I/O装置を
対象としたデータの読みだし、書き込みを実行可能であ
ることを特徴としており、
さらに本発明はバス認可信号入力ピンと、バス許可出力
ビンを備え、該DMAコントローラを含む複数個のバス
マスタを外部バス上に配置可能にしたことを特徴として
いる。゛[i! Means for Solving the Problem] The present invention provides a plurality of bidirectional bus buffers within the same chip, a control means for the plurality of bidirectional bus buffers,
It includes external bus acquisition means, address generation means for the external storage device, and counting means for counting the number of data transfers, and includes a data width of the storage device and an external! The present invention is characterized in that even when the data widths of the /O devices are different, DMA between the storage device and the external I/O device can be executed without using an external bus control device or the like. means for externally controlling a plurality of bidirectional bus buffers; when the DMA controller is not executing DMA, a CPU connected to an external bus controls the plurality of bidirectional bus buffers inside the DMA controller; The present invention is characterized in that data can be read and written to the external I/O device via a bus buffer, and the present invention further includes a bus authorization signal input pin and a bus authorization output bin, A feature is that a plurality of bus masters including the DMA controller can be placed on an external bus.
[実施例]
本発明のDMACは■データバス端子をメモリ及びCP
Uに接続するものと外部I/O装置に接続するものに分
離している。■外部I/O装置一個毎にDMAコントロ
ーラも一個使用される。■システムに用いられた場合、
該DMAコントローラと外部I/O装置の増設が容易。[Embodiment] The DMAC of the present invention has ■ data bus terminals connected to memory and CP.
It is separated into those connected to U and those connected to external I/O devices. ■One DMA controller is also used for each external I/O device. ■When used in a system,
It is easy to add the DMA controller and external I/O devices.
■DMAを行なっていないDMACはCPUがそのDM
ACに付属した外部I/O装置を対象としたデータの読
み込み、書き込み時のデータバスのバッファーとして使
用できると言う特徴を備えている。以下本発明のDMA
Cを詳細に説明する。■For DMACs that are not performing DMA, the CPU
It has the feature that it can be used as a data bus buffer when reading and writing data to an external I/O device attached to the AC. The following is the DMA of the present invention
C will be explained in detail.
第1図には本発明によるDMACの内部ブロック図であ
る。/O0−1から/O0−4まではそれぞれ8ビツト
データバスで、図示しないCPU及び記憶装置側のバス
に接続される。以下これらをUUババス0Mバス、LM
ババスLLババス呼ぶことにする。 /O1−1./
O12は、それぞれ8ビツトデータバスで図示しないI
/O装置側のバスに接続される。ただしI/O装置のデ
ータ幅が8ビツトの場合は/O1−1のみが接続される
。またI/O装置のデータ幅が16ビツトか32ビツト
の場合は/O1−1./O1−2の両方共接続される。FIG. 1 is an internal block diagram of a DMAC according to the present invention. /O0-1 to /O0-4 are 8-bit data buses, respectively, and are connected to buses on the CPU and storage device sides (not shown). Below, these are UU Babas 0M bus, LM bus
I'll call you Babas LL Babas. /O1-1. /
O12 is an 8-bit data bus, and I
/O Connected to the device side bus. However, if the data width of the I/O device is 8 bits, only /O1-1 is connected. Also, if the data width of the I/O device is 16 bits or 32 bits, /O1-1. /O1-2 are both connected.
118は制御レジスタで第1図Aに示す様にDMA時の
データの転送方向即ちI/O装置からメモリへデータを
転送するのかまた逆にメモリからI/O装置へデータを
転送するのかを表わす情報と、DMA−回あたりのデー
タ転送単位がバイトなのかワードなのかあるいはロング
ワードなのかの情報がCPUによって設定される。尚I
/O装置のデータ幅が8ビツトの場合はバイト、16ビ
ツトの場合はワード、32ビツトの場合はロングワード
である。更にDMA終了割り込み要求をするかしないか
の情報とDMAを許可するかしないかの情報も設定され
る。このデータ転送単位を表わす情報はDMA時信号S
1信号/O2−1.SO信号/O2−2によりメモリに
通知される。/O3はDMA終了をCPUに通知する割
り込み要求信号。/O4はアドレスバス。第1のメモリ
応答信号123、第2のメモリ応答信号124はメモリ
が駆動する信号でメモリでの読み出し、書き込みが終了
した事を示すと共にメモリのデータ幅が8ビツトなのか
16ビツトなのか32ビツトなのかを第1図Bに示す組
合せで本DMACに通知する役割を兼ねている信号組。118 is a control register, which indicates the direction of data transfer during DMA, ie, whether data is transferred from the I/O device to the memory or vice versa, from the memory to the I/O device, as shown in FIG. 1A. Information and information as to whether the data transfer unit per DMA cycle is a byte, a word, or a longword are set by the CPU. Nao I
If the data width of the /O device is 8 bits, it is a byte, if it is 16 bits, it is a word, and if it is 32 bits, it is a longword. Furthermore, information on whether to issue a DMA end interrupt request and information on whether to permit DMA are also set. The information representing this data transfer unit is the DMA signal S.
1 signal/O2-1. The memory is notified by SO signal /O2-2. /O3 is an interrupt request signal that notifies the CPU of the end of DMA. /O4 is address bus. The first memory response signal 123 and the second memory response signal 124 are signals driven by the memory and indicate that reading or writing in the memory has been completed, and also indicate whether the data width of the memory is 8 bits, 16 bits, or 32 bits. The combination of signals shown in FIG. 1B serves to notify this DMAC of whether the
/O5はアドレスストローブ信号でDMA時は出力とな
りDMAの開始を示す。また非DMA時(以下アイドル
モード時と呼ぶ)には入力となりCPUのバスサイクル
の開始を示す。/O6はメモリリード信号。/O7はメ
モリライト信号。/O8はバス獲得要求信号。/O9は
バス使用許可人力信号、1/Oはバス使用許可出力信号
でこれら2個の信号はデージ−チエインされて図示しな
い本発明のDMACを含む別のバスマスタを直列接続す
る為に使用される。図示しない該DMAC内のデージ−
制御部によりこのバス使用許可出力信号1/Oを「バス
獲得要求/O8がアクティブになっていない時にバス使
用許可入力信号/O9がアクティブとなった時」のみア
クティブにすると決めておけば複数のバスマスタ間で同
時にバス獲得の要求が発生しても唯一個のバスマスタの
みにバス獲得権利を与えることができる。つまり各バス
マスタ及び該DMCは自身のバス使用許可人力信号がア
クティブかつバス使用許可出力信号がノンアクティブに
なるときに自身がバス獲得権利を受けたものと認識する
のである。/O5 is an address strobe signal which is output during DMA and indicates the start of DMA. Also, in non-DMA mode (hereinafter referred to as idle mode), it becomes an input and indicates the start of a CPU bus cycle. /O6 is a memory read signal. /O7 is a memory write signal. /O8 is a bus acquisition request signal. /O9 is a bus use permission manual signal, 1/O is a bus use permission output signal, and these two signals are daisy-chained and used to serially connect another bus master including the DMAC of the present invention (not shown). . Daisy in the DMAC (not shown)
If the control unit decides to activate this bus use permission output signal 1/O only "when the bus use permission input signal /O9 becomes active while the bus acquisition request /O8 is not active", multiple Even if requests for bus acquisition occur simultaneously between bus masters, only one bus master can be given the right to acquire the bus. In other words, each bus master and the DMC recognize that they have received the right to acquire the bus when their own bus use permission manual signal becomes active and their bus use permission output signal becomes non-active.
111はデータバス切り替え部外部制御信号、112は
I/O装置から人力されるDMA要求信号、115はI
/O装置のDMA応答信号、116はDMACがDMA
を実行中である旨をCPU。111 is a data bus switching unit external control signal, 112 is a DMA request signal manually input from the I/O device, and 115 is an I/O device.
DMA response signal of /O device, 116 indicates that DMAC is DMA
The CPU indicates that it is being executed.
および図示しない本発明のDMACを含む他のバスマス
タに認識させるためのバス許可応答信号である。 デー
タバス切り替え部の役割はDMA時及びアイドルモード
時、第り図Cの131、第1図りの132、第1図Eの
iaa、第1図Fの134、第1図Gの135、第1図
Hの136、第1図■の137、第1図Jの138に従
って8ビットバス/O1−1./O1−2をCPU側の
4個の8ビットバス/O0−1から/O0−4に接続す
る事にある。and a bus permission response signal to be recognized by other bus masters including the DMAC of the present invention (not shown). The role of the data bus switching unit is 131 in Figure C, 132 in Figure 1, iaa in Figure 1 E, 134 in Figure 1 F, 135 in Figure 1 G, and 1 in Figure 1 G during DMA and idle mode. According to 136 in FIG. H, 137 in FIG. 1, and 138 in FIG. /O1-2 is connected to four 8-bit buses /O0-1 to /O0-4 on the CPU side.
第1図Cの131ないし第1図Jの138ではデータ幅
の異なるメモリ及びI/O装置の種々の組合せに於ける
メモリ側バス及びI/O装置側バスの接続について記し
である。この場合前提として8ビツト幅のメモリはUU
ババス00−1を、16ビツト幅のメモリはUUババス
00−1及びUMババス00−2を、32ビツト幅のメ
モリはUUババス00−IS UMババス00−2、L
Mババス00−3、LLババス00−4の全部を使用す
るものとする。また8ビツト幅のI/O装置は8ビット
バス1oi−tを、16ビツト幅の■/O装置は8ビッ
トバス/O1−1及び/O1−2を使用するものとする
。尚アイドルモード時にあっては外部制御信号111が
アクティブの時のみメモリ側バスとI/O装置側バスの
接続が行なわれる。131 in FIG. 1C to 138 in FIG. 1J describe connections between memory-side buses and I/O device-side buses in various combinations of memories and I/O devices having different data widths. In this case, the 8-bit width memory is UU.
For 16-bit wide memory, UU bus 00-1 and UM bus 00-2, for 32-bit wide memory, UU bus 00-IS UM bus 00-2, L
It is assumed that all of M bus 00-3 and LL bus 00-4 are used. It is also assumed that an 8-bit wide I/O device uses an 8-bit bus 1oi-t, and a 16-bit wide I/O device uses 8-bit buses /O1-1 and /O1-2. In the idle mode, the memory side bus and the I/O device side bus are connected only when the external control signal 111 is active.
その他の内部ブロックについてはDMACにとって当然
備えられるべき機能であるので説明は省略する。Since the other internal blocks are functions that the DMAC should naturally have, their explanation will be omitted.
以上述べたDMACをシステムに使用した場合の応用例
を第2図に示す。FIG. 2 shows an application example in which the DMAC described above is used in a system.
応用例はCPU200及びメモリ201のデータバス幅
が32ビツトの場合でDMAC203−1,203−2
と、DMAを必要とし、データバス幅が8ビツト幅であ
るI/O装置202−1と、DMAを必要とし、データ
バス幅が16ビツト幅であるI/O装置202−2各1
個が使用された場合を示している。I/O装置202−
1とDMAC203−1の間は8ビツトのデータバス2
04−1、DMA要求信号205−1、DMA応答信号
206−1で接続されている。同様にI/O装置202
−2とDMAC203−2の間は2個の8ビツトのデー
タバス204−2.204−3、DMA要求信号205
−2、DMA応答信号206−2で接続されている。C
PU200、DMAC203−1,203−2、メモリ
201相互は4個の8ビツト幅データバスで接続されて
いる。The application example is when the data bus width of the CPU 200 and memory 201 is 32 bits, and the DMAC 203-1, 203-2
, an I/O device 202-1 that requires DMA and has a data bus width of 8 bits, and an I/O device 202-2 that requires DMA and has a data bus width of 16 bits.
Indicates the case in which the number is used. I/O device 202-
1 and DMAC203-1 is an 8-bit data bus 2.
04-1, a DMA request signal 205-1, and a DMA response signal 206-1. Similarly, I/O device 202
-2 and DMAC203-2 are two 8-bit data buses 204-2, 204-3, and a DMA request signal 205.
-2, connected by the DMA response signal 206-2. C
The PU 200, DMAC 203-1, 203-2, and memory 201 are interconnected by four 8-bit wide data buses.
これら8ビツトデータバスを第1図にと同様にUUババ
スUMババスLMババスLLババス呼ぶことにするとメ
モリ201内部の4個のメモリブロック209−1がU
Uババス0?−1で、メモリブロック209−2がUM
ババス0?−2で、メモリブロック209−3がLMバ
バス07−3で、メモリブロック209−4がLLババ
ス0?−4によって各々接続される。If these 8-bit data buses are called UU bus, UM bus, LM bus, LL bus, as in FIG.
U Babasu 0? -1, memory block 209-2 is UM
Babasu 0? -2, the memory block 209-3 is the LM bus 07-3, and the memory block 209-4 is the LL bus 0? -4, respectively.
メモリ201はアドレスバス208により参照されるが
、−船釣に4n番地はメモリブロック209−1内の記
憶エリアに、4n+1番地はメモリブロック209−2
内の記憶エリアに、4n+2番地はメモリブロック20
9−3内の記憶エリアに、4n+3番地はメモリブロッ
ク209−4内の記憶エリアに割当てられる。ここてn
は整数である。The memory 201 is referenced by the address bus 208, and the address 4n is stored in the storage area in the memory block 209-1, and the address 4n+1 is stored in the memory block 209-2.
In the storage area within, address 4n+2 is memory block 20.
Address 4n+3 is allocated to the storage area in memory block 9-3, and address 4n+3 is allocated to the storage area in memory block 209-4. kokote n
is an integer.
かかる構成のシステムに於てDMAC203−L DM
AC203−2はDMA実行に備えてCPU200によ
り図示しない内部の制御レジスタ、アドレスレジスタ、
カウンタに必要かつ有効な値をセットされ、待機せられ
る。In a system with such a configuration, DMAC203-L DM
The AC203-2 is configured by the CPU 200 to prepare for DMA execution by internal control registers, address registers,
A necessary and valid value is set in the counter and the counter is put on standby.
2個のI/O装置202−1と202−は独立してDM
Aを受ける事が可能であるので最初に■/O装置202
−1がバイトサイズのDMAを受ける時を説明する。ま
ず始めにI/O装置202−1はDMA要求信号205
−1をアクティブにしてDMAC203−1にその旨を
示す。これを受けてDMAC203−1はバス要求信号
211をアクティブにしてその旨をCPU200に要求
する。尚バス要求信号211は2個のDMAC203−
1,203−2のバス要求信号のワイアドオア出力であ
る。CPU200はバス要求を認識すると自身のバス使
用が終了した時点でバス使用許可をDMAC203−1
のバス使用許可人力信号212をアクティブにしてこれ
をDMAC203−1に伝える。この時前記した第1図
の説明に有る様にDMAC203−2のバス使用許可入
力信号213はアクティブとならないのでたとえDMA
C203−2がその時にバス獲得を要求していても許可
されずに保留される。この場合DMAC203−2はバ
ス獲得を要求し続ける必要がある。つぎにバス獲得の権
利が与えられた事をDMAC203−1が認識するとD
MAC203−1によるDMAサイクルが開始される。The two I/O devices 202-1 and 202- are independently DM
Since it is possible to receive A, first the /O device 202
-1 receives byte-sized DMA. First, the I/O device 202-1 sends a DMA request signal 205
-1 is activated to indicate this to the DMAC 203-1. In response to this, the DMAC 203-1 activates the bus request signal 211 and requests the CPU 200 to that effect. Note that the bus request signal 211 is sent to two DMACs 203-
1,203-2 is a wired-OR output of the bus request signal. When the CPU 200 recognizes the bus request, the CPU 200 grants permission to use the bus to the DMAC 203-1 when the CPU 200 has finished using the bus.
The bus use permission signal 212 is activated and transmitted to the DMAC 203-1. At this time, as explained in FIG. 1 above, the bus use permission input signal 213 of the DMAC 203-2 is not activated,
Even if C203-2 requests bus acquisition at that time, the request is not granted and is put on hold. In this case, the DMAC 203-2 needs to continue requesting bus acquisition. Next, when DMAC203-1 recognizes that the right to acquire the bus has been granted, D
A DMA cycle by the MAC 203-1 is started.
初めにDMAC203−1はアドレスバス208にメモ
リ201の参照番地を出力する。同時にDMA応答信号
206−1によりDMAが開始されたことをI/O装置
202−1へ通知する。以降は(1)DMAがI/O装
置202−1からメモリ201へのデータ転送の場合と
(2)メモリ201からI/O装置202−1へのデー
タ転送の場合に分は説明する。First, the DMAC 203 - 1 outputs the reference address of the memory 201 to the address bus 208 . At the same time, the DMA response signal 206-1 notifies the I/O device 202-1 that DMA has started. Hereinafter, (1) the case where DMA transfers data from the I/O device 202-1 to the memory 201, and (2) the case where the DMA transfers data from the memory 201 to the I/O device 202-1 will be explained.
(1)DMAがI/O装置202−1からメモリ201
へのデータ転送の場合
DMAC203−1はメモリライト信号214をアクテ
ィブにし、その後DMAC内の図示しないデータバス切
り替え部は8ビットバス204−1をUUババス7−1
、UMババス7−2、LMババス7−3、LLババス7
−4の全てのバスに接続する。なぜならばDMAC20
3−1はこの時点に置いてメモリ201のデータ幅を知
る事は出来ないからである。(1) DMA from I/O device 202-1 to memory 201
In the case of data transfer to the UU bus 7-1, the DMAC 203-1 activates the memory write signal 214, and then a data bus switching section (not shown) within the DMAC switches the 8-bit bus 204-1 to the UU bus 7-1.
, UM Babas 7-2, LM Babas 7-3, LL Babas 7
- Connect to all 4 buses. Because DMAC20
3-1 is because the data width of the memory 201 cannot be known at this point.
あるアクセス時間経過後メモリ201はデータ書き込み
終了した事を図示しない第1のメモリ応答信号と第2の
メモリ応答信号をアクティブにしてDMAC203−1
に通知しDMAを終了させる。尚2個のメモリ応答信号
信号はメモリ201のデータ幅をDMAC203−1に
示す事も兼ねている。After a certain access time has elapsed, the memory 201 activates a first memory response signal and a second memory response signal (not shown) to indicate that data writing has been completed, and the DMAC 203-1
DMA is terminated. The two memory response signals also serve to indicate the data width of the memory 201 to the DMAC 203-1.
(2)メモリ201からI/O装置202−1へのデー
タ転送の場合
DMAC203−1はメモリリード信号215をアクテ
ィブにする。あるアクセス時間経過後メモリ201はデ
ータ読み出しが準備出来た事を2個のメモリ応答信号を
アクティブにしてDMAC203−1に通知する。前記
した通り2個のメモリ応答信号はメモリ201のデータ
幅をDMAC203−1に示す事も兼ねているのでこの
時点でDMAC203−1は初めてメモリ201のデー
タ幅を認識する事が出来る。1本例の様にメモリ201
のデータ幅32ビツトの場合はDMAC203−1内の
図示しないデータバス切り替え部は2個のメモリ応答信
号とメモリ201への参照番地から8ビットバス204
−1に接続すべきメモリ側のバスを決定、接続する。即
ちメモリ201への参照番地が4n番地はUUババス0
?−1,4n+1番地は0Mバス207−2.4n+2
番地はLMババス0?−3,4n+3番地はLLババス
0?−4となる。但しnは整数である。その後決定、接
続されたバスを通してI/O装置202−1へ書き込み
が行なわれDMAは終了する。(2) In the case of data transfer from the memory 201 to the I/O device 202-1, the DMAC 203-1 activates the memory read signal 215. After a certain access time has elapsed, the memory 201 activates two memory response signals to notify the DMAC 203-1 that it is ready to read data. As described above, since the two memory response signals also serve to indicate the data width of the memory 201 to the DMAC 203-1, the DMAC 203-1 can recognize the data width of the memory 201 for the first time at this point. 1 Memory 201 as in this example
In the case of a data width of 32 bits, a data bus switching unit (not shown) in the DMAC 203-1 outputs two memory response signals and an 8-bit bus 204 from the reference address to the memory 201.
Determine and connect the memory side bus to be connected to -1. In other words, the reference address to the memory 201 is 4n, which is UU Babasu 0.
? -1,4n+1 address is 0M bus 207-2.4n+2
Is the address LM Babasu 0? Is address -3,4n+3 LL Babasu 0? -4. However, n is an integer. Thereafter, the data is determined and written to the I/O device 202-1 through the connected bus, and the DMA is completed.
次にI/O装置202−2がワードサイズDMAを受け
る場合を説明する。Next, a case where the I/O device 202-2 receives word size DMA will be described.
まず始めにI/O装置202−2はDMA要求信号20
5−2をアクティブにしてDMAC203−2にその旨
を示す。これを受けてDMAC203−2はバス要求信
号211によりその旨をCPU200に要求する。CP
U200はバス要求を認識すると自身のバス使用が終了
した時点でバス使用許可をDMAC203−1のバス使
用許可入力信号212をアクティブにしてこれをDMA
C203−1に伝える。第1図の説明に有るようにその
時DMAC203−1がDMAを要求していなければバ
ス使用許可人力信号213がアクティブとなりDMA2
03−2はバス獲得の権利を得る。一方その時DMAC
203−1がDMAを要求していればバス使用許可人力
信号213がアクティブとならずDMAC203−2は
バス獲得の権利は獲られず、DMAC203−1がその
権利を得る。この場合はDMAC203−2の権利はD
MAC203−1がDMAを終了するまで保留される。First, the I/O device 202-2 sends a DMA request signal 20
5-2 to indicate this to the DMAC 203-2. In response to this, the DMAC 203-2 requests the CPU 200 to that effect using the bus request signal 211. C.P.
When the U200 recognizes the bus request, it activates the bus use permission input signal 212 of the DMAC 203-1 to grant permission to use the bus when its own bus use is completed.
Inform C203-1. As shown in the explanation of FIG. 1, if the DMAC 203-1 does not request DMA at that time, the bus use permission signal 213 becomes active and the DMA2
03-2 obtains the right to acquire the bus. On the other hand, at that time DMAC
If DMA 203-1 requests DMA, the bus use permission signal 213 will not become active, and DMAC 203-2 will not get the right to acquire the bus, but DMAC 203-1 will get that right. In this case, the rights of DMAC203-2 are D
This is suspended until the MAC 203-1 completes the DMA.
この場合DMAC203−2はバス獲得を要求し続ける
必要がある。ここではDMAC203−2にバス獲得の
権利が与えられたものとして説明する。バス獲得権利が
与えられた事をDMAC23−2が認識するとDMAC
203−2によるDMAサイクルが開始される。初めに
DMAC203−2はアドレスバス208にメモリ20
1の参照番地を出力する。同時にDMA応答信号206
−2によりDMAが開始されたことを■/O装置202
−2へ通知する。以降は(1) DMAがI/O装置2
02−2からメモリ201へのデータ転送の場合と(2
)メモリ201から■/O装置202−1へのデータ転
送の場合に分は説明する。In this case, the DMAC 203-2 needs to continue requesting bus acquisition. Here, the description will be made assuming that the DMAC 203-2 is given the right to acquire the bus. When DMAC23-2 recognizes that the right to acquire the bus has been granted, DMAC
A DMA cycle by 203-2 is started. First, the DMAC 203-2 connects the memory 20 to the address bus 208.
Outputs the reference address of 1. At the same time, the DMA response signal 206
■/O device 202 indicates that DMA has been started by -2.
Notify -2. From then on (1) DMA is I/O device 2
In the case of data transfer from 02-2 to memory 201 and (2
) The case of data transfer from the memory 201 to the /O device 202-1 will be explained.
(1)DMAがI/O装置202−2からメモリ201
へのデータ転送の場合
DMAC203−2はメモリライト信号214をアクテ
ィブにし、その後DMAC内の図示しないデータバス切
り替え部は8ビットバス204−2を、UUババス07
−1及びLMババス07−3に、また8ビットバス20
4−3をUMババス7−2及びLLババス0?−4に接
続する。なぜならばDMAC203−2はこの時点に置
いてメモリ201のデータ幅を知る事が出来ないがらで
ある。 あるアクセス時間経過後メモリ201はデータ
転送が終了したことをメモリ201のデータ幅をしめず
2個のメモリ応答信号をアクティブにすることでDMA
C203−2に通知してDMAを終了する。(1) DMA from I/O device 202-2 to memory 201
In the case of data transfer to the
-1 and LM bus 07-3, and also 8-bit bus 20
4-3 to UM Babas 7-2 and LL Babas 0? Connect to -4. This is because the DMAC 203-2 cannot know the data width of the memory 201 at this point. After a certain access time has elapsed, the memory 201 indicates that the data transfer has been completed by activating two memory response signals without closing the data width of the memory 201.
It notifies C203-2 and ends the DMA.
(2)メモリ201からI/O装置202−1へのデー
タ転送の場合
DMAC203−2はメモリリード信号215をアクテ
ィブにする。あるアクセス時間経過後メモリ201はデ
ータ読みたしが準備出来た事を2個のメモリ応答をアク
ティブにしてDMAC203−1に通知する。データバ
ス切り替え部はこの時点で初めてメモリ201のデータ
幅を決定する事が出来る。本例の場合メモリ201は3
2ビツト幅であるので参照番地が4n番地の時は8ビッ
トバス204−2は、UUババス07−1に、8ビット
バス204−3は0Mバス20?−2に接続される。ま
た4n+2番地の時は8ビットバス204−2は、LM
ババス0?−3に、8ビットバス204−4はLLババ
ス07−4に接続される。但しnは整数である。その後
I/O装置2゜2−2は接続されたバスを用いて書き込
みが行なわれDMAは終了する。尚4n+1番地及び4
n+3番地からのワードサイズのDMAは行なわないも
のとする。(2) In the case of data transfer from the memory 201 to the I/O device 202-1, the DMAC 203-2 activates the memory read signal 215. After a certain access time has elapsed, the memory 201 activates two memory responses to notify the DMAC 203-1 that it is ready to read data. The data bus switching unit can determine the data width of the memory 201 for the first time at this point. In this example, the memory 201 is 3
Since the width is 2 bits, when the reference address is 4n, the 8-bit bus 204-2 is connected to the UU bus 07-1, and the 8-bit bus 204-3 is connected to the 0M bus 20? -2. Also, when the address is 4n+2, the 8-bit bus 204-2 is LM
Babasu 0? -3, the 8-bit bus 204-4 is connected to the LL bus 07-4. However, n is an integer. Thereafter, the I/O device 2-2-2 performs writing using the connected bus, and the DMA ends. Furthermore, address 4n+1 and 4
It is assumed that word-sized DMA from address n+3 is not performed.
以上述べた外に本発明のDMACを用いればメモリがメ
モリサイクル時出力する図示しないメモリのデータ幅を
示す2個のメモリ応答信号によりメモリのデー幅が8ビ
ツトの場合は、データ幅が8ビツトのI/O装置と、1
6ビツトの場合はデータ幅が8ビツト及び16ビツトの
I/O装置との間でDMAが実行できる。またI/O装
置のデータ幅が32ビツトの場合もDMAC外に16ビ
ツトバツフアを追加使用する事でデータ幅が32ビツト
のメモリとの間でDMAが実行可能である。In addition to the above, if the DMAC of the present invention is used, two memory response signals (not shown) indicating the data width of the memory output during a memory cycle can be used to change the data width to 8 bits when the data width of the memory is 8 bits. an I/O device, and 1
In the case of 6 bits, DMA can be executed with I/O devices with data widths of 8 bits and 16 bits. Furthermore, even if the data width of the I/O device is 32 bits, DMA can be performed with a memory having a data width of 32 bits by additionally using a 16-bit buffer outside the DMAC.
次にDMAC203−1,203−2がDMAを実行し
ない時、いわゆるアイドルモード時の働きについて説明
する。第2図で示す通り本DMACは回路上I/O装置
とCPU側バスの間に置かれるためCPUはDMACを
通じてI/O装置をアクセス出来なければならない。そ
のためアイドルモード時にあっては図示しないチップ選
択信号が入力された時はDMAC内のバス切り替え部は
CPU側バスの特定の8ビツトバスをI/O装置側のバ
スと直結する様に動作する。即ち第1図I(の説明で、
メモリはそのデータ幅に応じて特定のCPU側バスによ
って接続されたのと同様に、8ビツト幅のI/O装置2
02−1に使用されるDMAC203−1では8ビツト
のデータバス204−1はUUババス07−1とまた1
6ビツト幅のI/O装置202−1に使用されるDMA
C203−2では8ビツトのデータバス204−2はU
Uババス07−1と8ビツトのデータバス204−3は
UMババス0?−2と直結される。この様にアイドルモ
ード時はDMACはバスバッファとなる。本発明DMA
Cのバリエーションとして端子数を削減する為にCPU
側のデータバスの一部をアドレスバスと多重化すること
も可能である。Next, the operation in so-called idle mode when the DMACs 203-1 and 203-2 do not execute DMA will be explained. As shown in FIG. 2, this DMAC is placed between the I/O device and the CPU side bus on the circuit, so the CPU must be able to access the I/O device through the DMAC. Therefore, in the idle mode, when a chip selection signal (not shown) is input, the bus switching section in the DMAC operates to directly connect a specific 8-bit bus of the CPU side bus to the I/O device side bus. That is, in the explanation of Figure 1 I (
Just as memories are connected by specific CPU-side buses depending on their data width, 8-bit wide I/O devices 2
In the DMAC 203-1 used for 02-1, the 8-bit data bus 204-1 is connected to the UU bus 07-1 and 1
DMA used in 6-bit wide I/O device 202-1
In C203-2, the 8-bit data bus 204-2 is U
U bus 07-1 and 8-bit data bus 204-3 are UM bus 0? -2 is directly connected. In this way, the DMAC functions as a bus buffer in idle mode. DMA of the present invention
CPU as a variation of C to reduce the number of terminals
It is also possible to multiplex part of the side data bus with the address bus.
[発明の効果]
外部に複雑なバス制御装置を用いる事なくメモリのデー
タ幅、l/OR置デバイスのデータ幅、個数に柔軟に対
応出来るためシステム設計の自由度が向上した。またD
MACがDMAを実行しない時はバスバッファとなるの
で本来のバスバッファは不要となった。またデージ−チ
エイン方式によるバ獲得方式のため最近のEWS等で主
流なっているマルチプロセッサ構成のCPUシステムに
も応用出来る。[Effects of the Invention] The degree of freedom in system design has improved because it is possible to flexibly respond to the data width of memory, data width and number of l/OR devices without using a complicated external bus control device. Also D
Since the MAC functions as a bus buffer when not executing DMA, the original bus buffer is no longer necessary. In addition, since the system uses a daisy-chain system to obtain a bus, it can also be applied to a CPU system with a multiprocessor configuration, which has become mainstream in recent EWS and the like.
第1図には本発明の実施例としてのDMACの内部ブロ
ック図。
第1図Aは本発明による第1図に内の制御レジスタ11
Bの構成図
第1図Bは本発明による第1図に内、第1のメモリ応答
信号123と第2のメモリ応答信号124によるメモリ
のデータ幅の指定の説明図第1図Cないし第1図Jは、
本発明による第1図に内データバス切り替え部の仕様説
明図。
第2図は本発明の応用例で、データバスが32ビツト構
成を示す図。
第3図は従来のDMACを含むCPUシステムの構成例
で、データバスが8ビツト構成を示す図。
第4図は従来のDMACを含むCPUシステムの構成例
で、データバスが16ビツト構成を示す図。
第5図は従来の第4図に使用されているバスバッファ4
14の内部構成図である。
117・・・データバス切り替え部 118・・・制御
レジスタ 120・・・アドレス発生部 121・・・
タイミング発生部 122・・・バス獲得制御部 12
3・・・第1のメモリ応答信号 124・・・第2のメ
モリ応答信号 46・・・バスバッファ 411・・・
メモリライト信号 412・・・メモリリード信号 4
13・・・アドレスAO信号 54・・・メモリリード
信号55・・・メモリライト信号 56・・・アドレス
AO信号。
以 上
出願人 セイコーエプソン株式会社
代理人 弁理士 鈴本官三部 他−名
第1図B
(CPU側のバスと
I / O!sババスの接続仕様)
DMA時のバス接続
第
図D
DMA時のバス接続
(4)メモリから170への転送
13ダ
第1図G
DMA時のバス接続
31s
AIはメモリtM番地のビット1.AOはビット0であ
る
第一1−図H
DMA時のバス接続
(2)Iloからメモリへの転送
/33
第
図E
DMA時のバス接続
メモリから
Iloへの転送
l昇
第1
図F
第
図
■
第
図J
第1図に
第3図
第2図
第4図FIG. 1 is an internal block diagram of a DMAC as an embodiment of the present invention. FIG. 1A shows the control register 11 in FIG. 1 according to the present invention.
FIG. 1 B is an explanatory diagram of the designation of the data width of the memory by the first memory response signal 123 and the second memory response signal 124 in FIG. 1 according to the present invention. Figure J is
FIG. 1 is a diagram illustrating the specifications of the internal data bus switching unit according to the present invention. FIG. 2 is a diagram showing an application example of the present invention, in which the data bus has a 32-bit configuration. FIG. 3 is a diagram showing an example of the configuration of a conventional CPU system including a DMAC, in which the data bus has an 8-bit configuration. FIG. 4 is a diagram showing an example of the configuration of a conventional CPU system including a DMAC, in which the data bus has a 16-bit configuration. Figure 5 shows the conventional bus buffer 4 used in Figure 4.
14 is an internal configuration diagram. 117...Data bus switching section 118...Control register 120...Address generation section 121...
Timing generation unit 122...Bus acquisition control unit 12
3... First memory response signal 124... Second memory response signal 46... Bus buffer 411...
Memory write signal 412...Memory read signal 4
13...Address AO signal 54...Memory read signal 55...Memory write signal 56...Address AO signal. Applicant Seiko Epson Co., Ltd. Agent Patent Attorney Kanzo Suzumoto et al. Figure 1B (Connection specification between CPU side bus and I/O!s bus) Bus connection diagram during DMA Diagram D During DMA Bus connection (4) Transfer from memory to 170 13 data Figure 1 G Bus connection during DMA 31s AI is bit 1 of memory address tM. AO is bit 0. 1st 1 - Figure H Bus connection during DMA (2) Transfer from Ilo to memory / 33 Figure E Bus connection during DMA Transfer from memory to Ilo Figure 1 Figure F Figure ■ Figure J Figure 1 Figure 3 Figure 2 Figure 4
Claims (3)
、これら複数個の双方向バスバッファの制御手段と、外
部バス獲得手段と、外部記憶装置へのアドレス発生手段
と、データ転送回数をカウントするカウント手段を含み
、前記記憶装置のデータ幅と外部I/O装置のデータ幅
が異なる場合であっても外部に外部バスの制御装置等を
用いることなく前記記憶装置と外部I/O装置間のDM
Aを実行可能である事を特徴とするDMAコントローラ
。(1) The same chip includes multiple bidirectional bus buffers, control means for these multiple bidirectional bus buffers, external bus acquisition means, address generation means for an external storage device, and data transfer frequency control means. It includes a counting means for counting, and even if the data width of the storage device and the data width of the external I/O device are different, the storage device and the external I/O device can be connected without using an external bus control device or the like. DM between
A DMA controller characterized by being capable of executing A.
なう手段を備え、前記DMAコントローラがDMAを実
行していないときは、外部バスに接続されたCPUは前
記DMAコントローラの内部の前記複数個の双方向バス
バッファを経由して前記外部I/O装置を対象としたデ
ータの読みだし、書き込みが実行可能である事を特徴と
する請求項1記載のDMAコントローラ(2) A means for externally controlling a plurality of bidirectional bus buffers, and when the DMA controller is not executing DMA, a CPU connected to an external bus controls the plurality of bidirectional bus buffers inside the DMA controller. 2. The DMA controller according to claim 1, wherein the DMA controller is capable of reading and writing data to the external I/O device via a bidirectional bus buffer of the DMA controller.
え、該DMAコントローラを含む複数個のバスマスタを
外部バス上に配置可能とする機能を提供することを特徴
とする請求項1記載のDMAコントローラ。(3) The DMA controller according to claim 1, further comprising a bus authorization signal input pin and a bus authorization output pin, and providing a function of allowing a plurality of bus masters including the DMA controller to be placed on an external bus. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10226289A JPH02280258A (en) | 1989-04-21 | 1989-04-21 | Dma controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10226289A JPH02280258A (en) | 1989-04-21 | 1989-04-21 | Dma controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02280258A true JPH02280258A (en) | 1990-11-16 |
Family
ID=14322682
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10226289A Pending JPH02280258A (en) | 1989-04-21 | 1989-04-21 | Dma controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02280258A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000315186A (en) * | 1999-05-06 | 2000-11-14 | Hitachi Ltd | Semiconductor device |
-
1989
- 1989-04-21 JP JP10226289A patent/JPH02280258A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000315186A (en) * | 1999-05-06 | 2000-11-14 | Hitachi Ltd | Semiconductor device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4831514A (en) | Method and device for connecting a 16-bit microprocessor to 8-bit modules | |
| US4371932A (en) | I/O Controller for transferring data between a host processor and multiple I/O units | |
| EP0508634B1 (en) | Memory access for data transfer within an I/O device | |
| JPS63255759A (en) | Control system | |
| US5481678A (en) | Data processor including selection mechanism for coupling internal and external request signals to interrupt and DMA controllers | |
| US5566345A (en) | SCSI bus capacity expansion controller using gating circuits to arbitrate DMA requests from a plurality of disk drives | |
| US5930488A (en) | Semiconductor integrated circuit device with a central processing unit, a data transfer controller and a memory storing data transfer parameters | |
| JPH04363746A (en) | Microcomputer system having dma function | |
| US5611056A (en) | Method for controlling the expansion of connections to a SCSI bus | |
| JP3466214B2 (en) | Information processing device | |
| EP0478148B1 (en) | Work station including a direct memory access controller | |
| KR960001023B1 (en) | Bus sharing method and the apparatus between different bus | |
| JPH0227696B2 (en) | JOHOSHORISOCHI | |
| JPH04134551A (en) | Method of informing second agent of necessity of service from first agent in bus for transferring data between a lurality of data processing agents | |
| JPH09223103A (en) | Information processing system | |
| JPS581454B2 (en) | Input/output control method | |
| JPH07271654A (en) | controller | |
| JP2727514B2 (en) | Transfer destination ID designating circuit | |
| JP4114900B2 (en) | System LSI and semiconductor integrated circuit | |
| JP2741514B2 (en) | Multi CPU system | |
| JP2671743B2 (en) | Microcomputer | |
| JPH04225458A (en) | Computer | |
| JPH0635841A (en) | Bus controller | |
| JP2001265711A (en) | Data transfer device and bus system | |
| KR19990048634A (en) | Peripheral input / output device connection device using system bus of microcomputer |