JPH0357055A - Dma transfer control system - Google Patents

Dma transfer control system

Info

Publication number
JPH0357055A
JPH0357055A JP19300189A JP19300189A JPH0357055A JP H0357055 A JPH0357055 A JP H0357055A JP 19300189 A JP19300189 A JP 19300189A JP 19300189 A JP19300189 A JP 19300189A JP H0357055 A JPH0357055 A JP H0357055A
Authority
JP
Japan
Prior art keywords
bus cycle
bus
memory
data
transfer
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
Application number
JP19300189A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Miki
三木 良行
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 Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP19300189A priority Critical patent/JPH0357055A/en
Publication of JPH0357055A publication Critical patent/JPH0357055A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To perform DMA (direct memory access) transfer at a high speed by allowing the read bus cycle and the write bus cycle to overlap even in the case of two-bus cycle transfer. CONSTITUTION:A bus cycle start signal BCYST is divided to a bus cycle start signal MBYST 13 for a main storage part (memory) 4 and a bus cycle start signal IBCYST 15 for an input/output device (IO) 2. A bus cycle extending signal IEADY is divided to a bus cycle extending signal IREADY 16 for the memory 4. The read bus cycle and the write bus cycle overlap even in the case of two-bus cycle transfer in this manner. Thus, DMA transfer is performed at t high speed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、情報処理装龍における入出力装置のダイレク
ト・メモリ・アクセス(以下DMAtたは]) M A
転送という)装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to direct memory access (hereinafter referred to as DMAt) of an input/output device in an information processing system.
(transfer) device.

〔従来の技術〕[Conventional technology]

DMA転送装置は、磁気ディスク装置、通信装置、ディ
スプレイ装置などの入出力装置が共通データ転送経路(
以下システムバスという)に接続された時に応答時間を
上げるために入出力.![(以丁工Oという)と主記憶
装置(以下メモリと略す)との間のデータ転送を中央処
理装置(以下CPUという)に代わって高速に行うため
のものである。1つのDMA転送装置は複数の10装置
を制御することができ、1つのIO装置によるDMA転
送経路をチャネルという。
A DMA transfer device uses a common data transfer path (
input/output to increase response time when connected to a system bus (hereinafter referred to as a system bus). ! This is to perform high-speed data transfer between the computer and the main storage device (hereinafter referred to as memory) in place of the central processing unit (hereinafter referred to as CPU). One DMA transfer device can control a plurality of 10 devices, and a DMA transfer path by one IO device is called a channel.

CPUの性能が向上すると共にCPUにつながるシステ
ムバスは、1回のリード・ライト(以下バスサイクルと
いう)に要する単位時間が短くなり高速化されている。
As the performance of the CPU improves, the system bus connected to the CPU becomes faster as the unit time required for one read/write (hereinafter referred to as a bus cycle) becomes shorter.

渣たシステムバスの幅も増えてきており、現在では32
ビットのバス幅を持つものが多い。
The width of the remaining system buses is also increasing, and currently there are 32
Many have a bus width of one bit.

しかし、10装置はC P U Vc比べて転送速度が
遅く、1た従来からの8ビット,16ビy}のデータ転
送幅(以下ボート幅という)を持つもΦがほとんどであ
る。このためシステムバスとは別にIOバスを持つ構或
、バッファメモIJ f設け、このバッファメモリを介
して10装置をシスデムバスに接続する構膵などが考え
られている。しかし、IOバス、バッファメモリを設け
ることは、コストア,プにつながるため、ここではソス
ナムバスにIO装置を直接阪続した構成に釦いて高速化
を計ることを考える。
However, the transfer speed of the 10 devices is lower than that of the CPU Vc, and most devices have a data transfer width (hereinafter referred to as a boat width) of 8 bits, 16 bits, which is conventional. For this reason, a structure having an IO bus separate from the system bus, or a structure in which a buffer memory IJf is provided and ten devices are connected to the system bus via this buffer memory is being considered. However, providing an IO bus and a buffer memory will lead to cost savings, so here we will consider increasing the speed by creating a configuration in which IO devices are directly connected to the Sosnam bus.

従来の[)MACではフライバイ転送、2バス・サイク
ル転送等の転送方式が用いられる。
In the conventional [)MAC, transfer methods such as fly-by transfer and two-bus cycle transfer are used.

フライパイ転送は、IO装置からの読出し・メモリへの
薔込を1つのパスプイクルで行い、また同様にメモリか
らの読出し・IO装置への書込みを1つのバスサイクル
で行う。このフ2イバイ転送は高速にDMA転送を行え
るが、ボート幅が2バイト(16ビット)以上の場合ご
スアシインされた番地(奇数番地)への転送が行えない
と・いう欠点がある。
In the flywheel transfer, reading from the IO device and writing to the memory are performed in one bus cycle, and similarly, reading from the memory and writing to the IO device are performed in one bus cycle. Although this two-by-bye transfer allows high-speed DMA transfer, it has the disadvantage that if the boat width is 2 bytes (16 bits) or more, transfer to an assigned address (odd address) cannot be performed.

一方、2バス・サイクル転送は、リード・バスサイクル
とライト・バスサイクルの2つのバスサイクルで1回の
DMA転送を行う方式で、ミスアラインされた番地への
転送が可能であるが、転送に要する時間が大幅に増えて
し筐うという欠点がある。
On the other hand, 2-bus cycle transfer is a method in which one DMA transfer is performed in two bus cycles, a read bus cycle and a write bus cycle, and it is possible to transfer to a misaligned address, but the transfer requires The disadvantage is that it takes a lot of time.

このことを図面を用いて詳細VC説明する。This will be explained in detail using drawings.

第5図は従来例に釦けるダイレクトメモリアクセスコン
トローラ(以下DMACという)のシステムS或を示す
ブロック図、第6図は第5図のDMACを動作させたと
きのタイミング図である。
FIG. 5 is a block diagram showing a system S of a conventional direct memory access controller (hereinafter referred to as DMAC), and FIG. 6 is a timing chart when the DMAC of FIG. 5 is operated.

IO装置2aはデータが読み書きできる状態になるとD
MAC l aに対してDM人転送要求信号(L)RQ
)l7をアクティブにしてDMA転送バスサイクルを開
始することを要求する。DMAClaはD凡Q17を受
け付けてCPUに対してバス・ホールド要求信号をアク
ティブにしてシステムバスを占有することを要求する。
When the IO device 2a becomes ready to read and write data,
DM person transfer request signal (L) RQ for MAC l a
) 17 to activate to initiate a DMA transfer bus cycle. DMACla receives DQ17 and requests the CPU to activate the bus hold request signal and occupy the system bus.

DMAClaはCPUからのバス占有許可信号がアクテ
ィブになるとDMA転送バスサイクルt−R始する。
DMACla starts a DMA transfer bus cycle t-R when the bus occupancy permission signal from the CPU becomes active.

転送方向については、ライト転送の時はIO%置からメ
モリへの転送、リード転送の時はメモリからIO装置へ
の転送であると定義する。
Regarding the transfer direction, write transfer is defined as a transfer from the IO% location to the memory, and read transfer is defined as transfer from the memory to the IO device.

2バスサイクル転送では最初にリード・バスサイクルを
開始する。リード・バスサイクルでは最初にBeY8T
信号2lをアクティブにしADDR,几/W,M/IO
の各信号11を出力する。
In a two-bus cycle transfer, a read bus cycle is started first. BeY8T first in read bus cycle
Activate signal 2l and ADDR, 几/W, M/IO
Each signal 11 is output.

リード転送の場合は、ADDH,ぱメモリ4aから読出
すべきアドレスを出力し、R/W=l,M/IO=1を
出力する。次に凡EADY信号22がアクティブになク
たときメモリ4aから読出されデータバス12に出力さ
れたデータをDMAC1aの内部レジスタに書き込む。
In the case of read transfer, ADDH outputs the address to be read from the memory 4a, and outputs R/W=1 and M/IO=1. Next, when the EADY signal 22 becomes active, the data read from the memory 4a and output to the data bus 12 is written into the internal register of the DMAC 1a.

ライト転送の場合は、ADD凡にはIO装置2aのボー
トアドレスを出力し、R/W=1 ,M/IO=Oを出
力する。次にI−LEADY信号22がアクティブにな
ったときIO装置2aから読出されデータバスl2に出
力されたデータをDMAC l aの内部レジスタに書
込む。
In the case of write transfer, the boat address of the IO device 2a is output to ADD, and R/W=1 and M/IO=O are output. Next, when the I-LEADY signal 22 becomes active, the data read from the IO device 2a and output to the data bus 12 is written into the internal register of the DMAC la.

リード・バスサイクル終了後、ライト・バスサイクルを
開始しする。ライト・バスサイクルでは最初にBCYS
T信号2lをアクティブにし、ADDR ,R/W,M
/IOの各信号11を出力する。
After the read bus cycle ends, a write bus cycle is started. In a write bus cycle, BCYS is first
Activate T signal 2l, ADDR, R/W, M
/IO signals 11 are output.

リード転送の場合は、ADDRにはIO装置のボートア
ドレスを出力し、R/W=0 ,M/IO=Oを出力す
る。次にREADY信号22がアクティブになったとき
リードサイクルでDMAClaの内部レジスタから読み
だしバスl2に出力しIOf::置2aK書込む・・ ライト転送の場合は、ADDRにはメモリから読出すべ
きアドレスを出力し、k/W=1,M/IO= 1を出
力する。次にRh,ADY信号22がアクティブになっ
たときリードサイクルでDMACiaの内部レジスタに
書込んだデータi D M AClaの内部レジスタか
ら読出しバスエ2に出力しメモリ4aVC書込む。
In the case of read transfer, the boat address of the IO device is output to ADDR, and R/W=0 and M/IO=O are output. Next, when the READY signal 22 becomes active, in a read cycle it reads from the internal register of DMACla, outputs it to bus l2, and writes IOf::02aK... In the case of a write transfer, ADDR contains the address to be read from the memory. Outputs k/W=1, M/IO=1. Next, when the Rh, ADY signal 22 becomes active, the data written in the internal register of DMACia in the read cycle is read from the internal register of DMACia and is output to the bus 2 and written to the memory 4aVC.

IO装置2aはBCYST信号2lがアクティブになる
とシステム・パスカラλD D f{, , M/ I
(J,R/W信号11を取込み、AIJDRがIO装置
のボートアドレスに一致し、M/lO=oである時動作
を開始する。1t/w=1のと@IO装il2aカラデ
ータを祝出し、システムバスのパス12K出力する。I
{,/W=Oのときシステム・バスのバス12からデー
タを取υ込みIO装置2a内に書込む。
When the BCYST signal 2l becomes active, the IO device 2a activates the system path color λD D f{, , M/I
(The J, R/W signal 11 is taken in, and the operation starts when AIJDR matches the boat address of the IO device and M/lO=o. 1t/w=1 and @IO device il2a color data are output and output 12K of the system bus path.I
When {,/W=O, data is taken from the system bus 12 and written into the IO device 2a.

主記憶装置4aぱBCY8T信号21がアクティブにな
るとシステムバスからM/TO , it/W信号11
を取り込み、M/IO=1である時動作を開始する。a
,”w=1のときメモリ4a内のADDRで指定される
番地からデータを読みだし、システムバスのバスl2に
出力する。
When the BCY8T signal 21 of the main memory device 4a becomes active, the M/TO and it/W signals 11 are sent from the system bus.
is taken in and starts operation when M/IO=1. a
,"When w=1, data is read from the address specified by ADDR in the memory 4a and output to bus l2 of the system bus.

K/W=Qの時、システム・バスのバス12からデータ
を取込みメモIJ d a内のAf)L)Rで指定され
る番地に書込む。このときのタイぐングを示した図が第
6図である。この図に釦いて、DMA転送が始まるとま
ず、リード・バスサイクルtRが開始される。リード・
バスサイクルでは,IO装置1たはメモリからデータf
{,Dlを読出しl)MAC1aの内部レジスタに書き
込む。
When K/W=Q, data is taken from bus 12 of the system bus and written to the address specified by Af)L)R in the memo IJda. FIG. 6 is a diagram showing the timing at this time. When the button in this figure is pressed to start DMA transfer, first, a read bus cycle tR is started. Lead
In the bus cycle, data f is sent from IO device 1 or memory.
{, Read Dl l) Write to internal register of MAC1a.

次にライト・バスサイクルが開始される。ライト・バス
サイクルでFi 1,1−ド・バスサイクルでDMAC
laの内部レジスタの書込んだデータWD,を出力しメ
モIJ tたはIO装置に書込む。
A write bus cycle is then initiated. Fi in write bus cycle DMAC in 1,1-de bus cycle
The data WD written in the internal register of la is output and written to the memory IJt or IO device.

このようにリード・バスサイクルとライト・バスサイク
ルが完全に独立してかり、lバスサイクルでリードとラ
イトが出来るフライバイ転送に比べて2倍のバスサイク
ルを必要とすることがわかる。
It can be seen that the read bus cycle and write bus cycle are completely independent in this way, and that twice as many bus cycles are required as compared to fly-by transfer in which reading and writing can be performed in one bus cycle.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したように従来技術に釦いては。システム・パスの
バス幅、IO装置のボート幅が広がり、ビス・アライン
・データを転送するために2バス・サイクル転送を用い
るとフライバイ転送より転送速度が大幅に遅くなってし
1うという欠点がある。
As mentioned above, regarding the prior art. The disadvantage is that the bus width of the system path and the port width of the IO device are widened, and that when two bus cycle transfers are used to transfer bis-aligned data, the transfer speed becomes significantly slower than fly-by transfers. be.

本発明の目的は、このような欠点を除き、バスサイクル
の時間を長くすることなしに、2バスサイクル転送を動
作できるようにしたDMA転送刊御方式を提供すること
にある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a DMA transfer control system that eliminates these drawbacks and allows two bus cycle transfers to be performed without increasing the bus cycle time.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のDMA転送制御方式の構或は、読出しを行うバ
スサイクルと書込みを行うバスサイクルの2つのバスサ
イクルで1単位のDMA転送を行うDMA転送装置と、
このDMA転送装置から供給されるIOバスサイクル開
始信号とこのD〜IA転送装置へ供給されるIOバスサ
イクル終了信号とを接続するIO装置と、このIO装置
へ供給されるメモリ・バスサイクル終了信号と前記DM
A転送装置から供給されるメモリ・バスサイクル開始信
号とを接続する主記憶装置と、これら各装置と共通接続
されるアドレスバス釦よびデータバスとを備え、 前記IO装置から前記主記憶装置へのDMA転送の場合
には、筐ず前記メモリ・バスサイクル終了信号がバスサ
イクル終了を示す前に、前記IOバスサイクル開始信号
をバスサイクル開始を示すようにし、前記アドレスバス
にIOアドレスを出力し、同時にメモリ・バスサイクル
終了信号がバスサイクル終了を示しているとき前記DM
A転送装置内に一旦記憶してひいたデータを前記データ
バスに出力し、次に前記IO・バスサイクル終了信号が
バスサイクル終了を示す前に、前記メモリ・バスサイク
ル開始信号をバスサイクル開始を示すようにし、前記ア
ドレスバスにメモリアドレスを出力し、同時にIOバス
サイクル終了信号がバスサイクル終了を示しているとき
は前記データバス上のデータを前記DMA転送装置内に
一旦記憶し、前記主記憶装置から前記IO装置へのDM
A転送の場合には、渣ず前記IOバスサイクル終了信号
がバスサイクル終了を示す前に、前記メモリ・バスサイ
クル開始信号をバスサイクル開始を示すようにし、前記
アドレスバスにメモリアドレスを出力し、同時にIOバ
スサイクル終了信号がバスサイクル終了を示していると
き前記D M A転送i+t内に一旦記憶して訃いたデ
ータを前記データバスに出力し、次に前記メモリ・バス
サイクル終了信号がバスサイクル終了を示す前に、前記
IOバスサイクル開始信号をバスサイクル開始を示すよ
うにし前記アドレスバスにIOアドレスを出力し、同時
にメモリ・バスサイクル終了信号がバスサイクル終了を
示しているときは前記データバス上のデータを前記D 
M A転送装置内に一旦記憶することを特徴とする。
The structure of the DMA transfer control method of the present invention includes a DMA transfer device that performs one unit of DMA transfer in two bus cycles: a bus cycle for reading and a bus cycle for writing;
An IO device that connects an IO bus cycle start signal supplied from this DMA transfer device and an IO bus cycle end signal supplied to this D to IA transfer device, and a memory bus cycle end signal supplied to this IO device. and said DM
A main memory device that connects the memory bus cycle start signal supplied from the A transfer device, and an address bus button and a data bus that are commonly connected to each of these devices, and the IO device to the main memory device In the case of DMA transfer, before the memory bus cycle end signal indicates the end of the bus cycle, the IO bus cycle start signal is set to indicate the start of the bus cycle, and the IO address is output to the address bus; At the same time, when the memory bus cycle end signal indicates the end of the bus cycle, the DM
The data that has been temporarily stored in the transfer device A is output to the data bus, and then the memory bus cycle start signal is sent to start the bus cycle before the IO bus cycle end signal indicates the end of the bus cycle. A memory address is output to the address bus as shown in FIG. DM from the device to the IO device
In the case of A transfer, before the IO bus cycle end signal indicates the end of the bus cycle, the memory bus cycle start signal is set to indicate the start of the bus cycle, and a memory address is output to the address bus; At the same time, when the IO bus cycle end signal indicates the end of the bus cycle, the data that has been temporarily stored in the DMA transfer i+t is output to the data bus, and then the memory bus cycle end signal indicates the end of the bus cycle. Before indicating the end, the IO bus cycle start signal is set to indicate the start of a bus cycle and an IO address is output to the address bus, and at the same time, when the memory bus cycle end signal indicates the end of the bus cycle, the data bus The above data is
It is characterized in that it is temporarily stored in the MA transfer device.

〔実施例〕〔Example〕

次に本発明について図面を用いつつ説明する。 Next, the present invention will be explained using the drawings.

第1図は本発明の一実施例にかけるDMA転送装置のシ
ステム構成を説明するブロック図、第2図は第1図での
タイミング・チャート、第3図は本実施例に釦ける状態
遷移図である。
Fig. 1 is a block diagram explaining the system configuration of a DMA transfer device according to an embodiment of the present invention, Fig. 2 is a timing chart in Fig. 1, and Fig. 3 is a state transition diagram of the button of this embodiment. It is.

本実施例は、従来例で説明した2バスサイクルD M 
A転送のリード・バスサイクルとライト・バスサイクル
をオーバーラップさせることにより、DMA転送に要す
る時間を短縮している。即ち、リード・バスサイクルを
開始した後、バスサイクル終了前にライト・バスサイク
ルを先行fj++ nにより開始し、次にリード・バス
サイクルを終了し、さらにライト・バスサイクル終了前
に2回目のりード・バスサイクルを先行制御により開始
する事により、バスサイクルに要する時間を短縮してい
る。
In this embodiment, the two bus cycles DM explained in the conventional example are
By overlapping the read bus cycle and write bus cycle of A transfer, the time required for DMA transfer is shortened. That is, after starting a read bus cycle and before the end of the bus cycle, a write bus cycle is started with the preceding fj++n, then the read bus cycle is ended, and then a second read is performed before the end of the write bus cycle. By starting the bus cycle with advance control, the time required for the bus cycle is shortened.

本実施例では、バスサイクル開始信号(BCYST)を
主記憶部(メモリ)4用のバスサイクル開始信号MBY
8Tt 3、IO装ftZ用のバスサイクル開始信号I
[lCYSTl 5に分けている。
In this embodiment, the bus cycle start signal (BCYST) is used as the bus cycle start signal MBY for the main storage section (memory) 4.
8Tt 3, Bus cycle start signal I for IO device ftZ
[lCYSTl Divided into 5 parts.

L 同様に、バスサイクル延長信号(建EADY)1=メモ
リ4用のバスサイクル延長信号I R kJA D Y
l6に分けている。
L Similarly, bus cycle extension signal (EADY) 1 = bus cycle extension signal for memory 4 I R kJA DY
It is divided into 16 parts.

DMACIから出力されるAL)D九,M/IO,■/
Wを含むアドレスバス11の各信号はレジスタ3を通し
てIO装置2に接続され、1たレジスタ5を通してメモ
リ4に接続される。データバス!2は従来例と同じ(D
MACI.メモリ4、IO装置2に共通に接続される。
AL output from DMACI) D9, M/IO, ■/
Each signal of address bus 11 including W is connected to IO device 2 through register 3 and to memory 4 through register 5. Data bus! 2 is the same as the conventional example (D
MACI. It is commonly connected to the memory 4 and the IO device 2.

DMACIは、2バスサイクル転送では最初にリード・
バスサイクルを開始する。リード転送(メモリ4からI
O装置2への転送)では、最初にバスサイクル開始信号
l3をアクティブにし、λDDR ,R/W,M/IO
のアドレスバス1lの各信号を出力する。ADDRには
メモリ4から読みだすべきアドレスを出力し、R/W=
l,M/IO=1を出力する。
DMACI is the first read/write in a two-bus cycle transfer.
Start a bus cycle. Read transfer (memory 4 to I
(transfer to O device 2), the bus cycle start signal l3 is first activated, and λDDR, R/W, M/IO
Each signal of the address bus 1l is output. The address to be read from memory 4 is output to ADDR, and R/W=
l, M/IO=1 is output.

2番目に、バスサイクル開始信号l3をインアクティブ
にし、IOバスサイクル開始(IBCYST)信号l5
をアクティブにしライト・バスサイクルを開始し、AD
DR ,M/IO ,R/Wの各信号IIを出力する。
Second, the bus cycle start signal l3 is made inactive and the IO bus cycle start (IBCYST) signal l5 is activated.
Activates and starts a write bus cycle, AD
Each signal II of DR, M/IO, and R/W is output.

ADDf’4にはIOボート1ドレス七出刀し、R/W
=0%M/1(J=0を出力する。1た同時に、MRE
AL)Y信号l4がアクティブになったときメモリ4か
ら読みだされ、データバスl2に出力されたデータをl
)MACIの内部レジスタに書き込む。
ADDf'4 has IO boat 1 dress seven swords, R/W
=0%M/1 (outputs J=0.1 At the same time, MRE
AL) When the Y signal l4 becomes active, the data read from the memory 4 and output to the data bus l2 is
) Write to MACI's internal register.

3番目にI B C Y S T信号15をインアクテ
ィブにし、MBCYST信号13をアクティブにし、2
回目のリード・バスサイクルを開始し、ADDi−t,
iも/vV,M/IOの各信号11を出力する。
Third, IBCYST signal 15 is made inactive, MBCYST signal 13 is made active, and 2
Starts the second read bus cycle, ADDi-t,
i also outputs signals 11 of /vV and M/IO.

ADDRにはメモリ4から2回目に絖出すべきアドレス
を出力し、凡/W=l ,M/IU=1を出力する。ま
た同時に、IREADY信号l6がアクティブになった
ときリードサイクルでDMACIの内部レジスタに書キ
込んだデータをl)MAClの内部レジスタから読出し
データバスl2に出力しIO装置2に書き込む。
The address to be read out for the second time from the memory 4 is output to ADDR, and W/W=l and M/IU=1 are output. At the same time, when the IREADY signal l6 becomes active, the data written to the internal register of DMACI in the read cycle is output from the internal register of MACl to the read data bus l2 and written to the IO device 2.

4番目、5番目以降は2番目、3番目と同様であるがメ
モリ・アドレスが順次加減算される。ライト転送(IO
装置からメモリへの転送)では最初にIBCYST信号
15tl−アクティブにしADDi{,,R/W,M/
IOの各信号1lを出力する。
The fourth, fifth and subsequent addresses are the same as the second and third, but the memory addresses are sequentially added and subtracted. Write transfer (IO
(transfer from device to memory), the IBCYST signal 15tl is first activated and ADDi{,, R/W, M/
Each IO signal 1l is output.

ADDRにはIO装置のポートアドレスを出力し、It
/W=l ,M/IO=0を出力する。
Output the port address of the IO device to ADDR, and
/W=l, M/IO=0 is output.

2番目にIBCYST信号l5をインアクティブにし、
MBCY8T信号l3をアクティブにしライト・バスサ
イクルを開始し、AI)DJM/10,1{/%’の各
信号11を出力する。Al)1)凡にはメモリに書き込
むべきアドレスを出力し、比/W=0、M/IO=1を
出力する。
Second, make IBCYST signal l5 inactive,
The MBCY8T signal 13 is activated to start a write bus cycle, and each signal 11 of AI) DJM/10, 1{/%' is output. Al) 1) Generally outputs the address to be written into the memory, and outputs ratio/W=0 and M/IO=1.

また同時に、Ii{,WAL)Y信号l6がアクティブ
になったときIO装置2から読出され、データバスl2
に出力されたデータをDMACIの内部レジスタに舊き
込む。
At the same time, when the Ii{,WAL)Y signal l6 becomes active, it is read from the IO device 2, and the data bus l2
The data output to DMACI is stored in the internal register of DMACI.

3番目にMBCYST信号13をインアクティブにし、
IBCYST信号l5をアクティブにし、2回目のリー
ド・バスサイクルを開始し、AL)DR ,l−L/W
, M/IOの各信号11を出力する。
Third, make the MBCYST signal 13 inactive,
Activate the IBCYST signal l5 and start the second read bus cycle, AL)DR,l-L/W
, M/IO signals 11 are output.

ADDRにはIOボートアドレスを出力し、R/W=l
 ,M/IO=Qを出力する。iたlEj時に、MIL
EADY信号l4がアクティブになったときリードナイ
クルでDMACIの内部レジスタに番き込んだデータを
DMACIの内部レジスタから読みだしデータアドレス
l2に出力しメモリ4に書き込む。
Output the IO boat address to ADDR, R/W=l
, M/IO=Q. When it comes to MIL
When the EADY signal l4 becomes active, the data written into the internal register of the DMACI by the read cycle is read from the internal register of the DMACI, outputted to the data address l2, and written into the memory 4.

4番目、5番目以降は2番目、3番目と同様であるがメ
モリアドレスが順次加減算される。
The fourth, fifth and subsequent addresses are the same as the second and third, but the memory addresses are sequentially added and subtracted.

IO装置2はIBCYST信号l5がアクティブになる
とシステムバスからADDR ,M/IO,1{ / 
W信号11を取り込みレジスタ3に一旦記憶しIHCY
STl5がインアクティブになった後もこの値を記憶す
る。IO装置2idレジスタ3に記憶したADDRの値
がIO装置2のボートアドレスに一致し、M/IO=0
である時動作を開始する。R/W=1のときIO装置2
からデータを読出し、システムバスのデータバス12に
出力する。データがデータバス12上で確定したときI
R,EADYt 6をアクティブにする。
When the IBCYST signal l5 becomes active, the IO device 2 receives ADDR, M/IO, 1{ /
Take in the W signal 11 and temporarily store it in register 3, then IHCY
This value is stored even after STl5 becomes inactive. The value of ADDR stored in the IO device 2 id register 3 matches the boat address of the IO device 2, and M/IO = 0.
Starts operation when . IO device 2 when R/W=1
Data is read from the data bus 12 and output to the data bus 12 of the system bus. When data is established on data bus 12 I
Activate R, EADYt 6.

R/W=0のトキシステム・バスのパス12からデータ
を取り込みIO装f2内に書込む。書込みが終了したと
き工凡EADY16をアクティブにする。
Data is fetched from path 12 of the Tokisystem bus with R/W=0 and written into the IO device f2. When the writing is completed, the engineer EADY16 is activated.

主記憶装置4はMHCYST信号13がアクティブにな
るとシステムバスからM/IO ,R/W信号11を取
込みレジスタ5に一旦記憶しMBCYSTがインアクテ
ィブになった後もこの値を記憶する。主記憶装置4ぱM
/IO=1である時動作を開始する。1{,/W=1の
とき主記tは装置4内のADDRで指定される番地から
データを読出し、システムバスのデータバスl2に出力
する。データがバスl2で上で確定したときMREAD
Yx4をアクティブにする。
When the MHCYST signal 13 becomes active, the main memory 4 takes in the M/IO and R/W signals 11 from the system bus and temporarily stores them in the register 5, and stores this value even after MBCYST becomes inactive. Main memory device 4P
The operation starts when /IO=1. When 1{,/W=1, the host t reads data from the address specified by ADDR in the device 4 and outputs it to the data bus l2 of the system bus. MREAD when data is confirmed on bus l2
Activate Yx4.

tt7’w=0の時システムパスのデータバスl2から
データを取り込みメモリ4内のAl)DRで指定される
番地に書込む。書込みが終了したときMREAi)Y 
l 4をアクティブにする。
When tt7'w=0, data is fetched from the data bus l2 of the system path and written to the address specified by Al)DR in the memory 4. When writing is completed MREAi)Y
Activate l4.

このときのタイくングを示した図が萬2図である。この
図に釦いて、DMA転送が始丑ると普ず、リード・バス
サイクルtHが開始される。このリード・パスナイクル
tRでは、IO装置1たはメモリからデータDを読出し
DMAClの内部レジスタに書き込む。
A diagram showing the tying at this time is Figure 2. When the button in this figure is pressed and a DMA transfer is started, a read bus cycle tH is usually started. In this read passnicle tR, data D is read from the IO device 1 or memory and written to the internal register of DMACl.

次にライト・バスサイクルtwが開始される。Next, a write bus cycle tw is started.

このライト・バスサイクルtwではリード・バスサイク
ルでDMAClの内部レジスタの書込んだデータをデー
タバスl2に出力しメモリ筐たはIO装置に言込ひ。
In this write bus cycle tw, the data written in the internal register of DMACl in the read bus cycle is output to the data bus l2 and transmitted to the memory case or IO device.

このDMACの状態遷移を示した図が第3図の状態遷移
図である。この状態遷移図に釦いてリード転送(メモリ
からIO装置への転送)の時RBCY8T=MBCYS
T 1tRE A D Y =〜i}LEAi)YWBCY
8T=IBCYST W凡EADY=I几EADY リードアドレス=メモリアドレス ライトアドレス=IOボートアドレス と定義する。
The state transition diagram of FIG. 3 is a diagram showing the state transition of this DMAC. Click this state transition diagram to perform read transfer (transfer from memory to IO device) RBCY8T=MBCYS
T 1tRE A DY =~i}LEAi)YWBCY
8T=IBCYSTW EADY=IEADY Read address=memory address Write address=IO boat address is defined.

ライト転送(10装置からメモリへの転送)の時 几BCYS’r=IBCYST 凡凡EADY=IRE人DY WBCYST=.−MBCY8T W几E AD Y=MR E ADY リードアドレス=I(Jボートアドレスライトアドレス
=メモリアドレス と定義する。
Time for write transfer (transfer from 10 devices to memory) BCYS'r = IBCYST ordinary EADY = IRE person DY WBCYST =. -MBCY8T WADY=MREADY Read address=I (J boat address Write address=Memory address is defined.

最初はアイドル状態T iに初期化される。Initially, it is initialized to an idle state T i.

DMA転送が始普るとTIステートに遷移する。When a DMA transfer begins, it transitions to the TI state.

このT1ステートではIL H C Y S Tをアク
ティフにし、リードアドレスをADL)凡に出力し、同
様に1{,/W,M/IOも出力する。T21ステート
ではRBCY8Tをインアクティブにし、WBCYST
をアクティブにし、ライト・アドレス全ADD凡に出力
する。同様にR/W,M/IOも出力する。RREAi
)Yがアクティブになるのを待ちリードデータをDMA
Clの内部レジスタに記憶する。l{, lL E A
 D Yがアクティブになると、転送を継続する場合T
12に遷移する。転送を終了する場合T i 2に遷移
する。
In this T1 state, ILHC YST is activated, the read address is output to ADL), and 1{, /W, and M/IO are also output in the same way. In the T21 state, RBCY8T is made inactive and WBCYST is
is activated and output to all write addresses. Similarly, R/W and M/IO are also output. RREAi
) Wait for Y to become active and DMA the read data.
Stored in internal register of Cl. l{, lL E A
When D Y becomes active, T if the transfer continues.
Transition to 12. To end the transfer, the process transitions to T i 2.

’1” 1 2ステートではWBCYSTをインアクテ
ィブにし、RBCY8Tをアクティブにし、リードアド
レスをA D D l{,に出力する。同様にu7w,
M/IOも出力する。ライトデータをDMAClの内部
レジスタから続出しデータバスl2に出力し、WREA
DYがアクティブになるのを待ち、このWREADYが
アクティブになるとT21に遷移する。
'1' In the 12 state, WBCYST is made inactive, RBCY8T is made active, and the read address is output to ADD l{,.Similarly, u7w,
It also outputs M/IO. Write data is successively output from the internal register of DMACl to data bus l2, and
It waits for DY to become active, and when this WREADY becomes active, it transitions to T21.

Ti2ステートはDM人転送を終了するステートであり
、l{,BCYST,WBCYSTを共にインアクティ
ブにし、ADDR ,R/W ,M/IOの各信号11
−ハイインピーダンスにする。ライト・データをDMA
C Iの内部レジスタから読出しデータバスl2に出力
し、Wl{,EADYがアクティブになるのを待つ。W
READYがアクティブになるとTiに遷移する。
The Ti2 state is a state in which DM transfer ends, and l{, BCYST, and WBCYST are all inactive, and each signal 11 of ADDR, R/W, and M/IO is
− Set to high impedance. DMA write data
It outputs the data from the internal register of CI to the read data bus l2 and waits for Wl{, EADY to become active. W
When READY becomes active, it transitions to Ti.

以上説明したように本発明により2バスサイクル転送に
9いても、リード・バスサイクルとライト・バスサイク
ルをオーバーラップさせることにより高速に1)MA転
送を行うことが出来る。
As explained above, according to the present invention, even if it takes two bus cycle transfers, 1) MA transfer can be performed at high speed by overlapping the read bus cycle and the write bus cycle.

第4図は本発明の第2の実施例に釦けるシステム構或を
示すブロック図である。第1の実施例ではIO装置と主
記憶湊置との間のDMA転送について説明を行ったが、
第2の実施例のように、主記憶装置から主記憶装置への
DM人転送についても適用することが可能である。
FIG. 4 is a block diagram showing the system configuration of a second embodiment of the present invention. In the first embodiment, the DMA transfer between the IO device and the main memory was explained.
As in the second embodiment, it is also possible to apply the DM person transfer from the main storage device to the main storage device.

この実施例では、主記憶装置7にデュアルボート・メモ
リを用いている。DMAC6のアドレスバス、テータパ
スはシステムバス上のアドレスバス11,データバスl
2に接続される。第1ポートl9のアドレスバス、テー
タパスはシステムバス上のアドレスバス111データバ
スl2に接続され、第2ボー}20のアドレスバス、テ
ータバスも/ステムバス上のアドレスバスl l.f一
タバスl2に接続される。
In this embodiment, a dual port memory is used as the main memory device 7. The address bus and data path of DMAC6 are address bus 11 and data bus l on the system bus.
Connected to 2. The address bus and data bus of the first port l9 are connected to the address bus 111 on the system bus and the data bus l2, and the address bus and data bus of the second port l9 are also connected to the address bus l l on the system bus. f - connected to bus l2.

ボートl9のバスサイクル開始信号にDMAC6からの
IOバスサイクル開始信号( IBCYSTl5)を接
続し、ボート19のバスサイクル終了信号をDMAC6
のIOバスサイクル終了信号(I凡EADYx 6 )
に接続する。同様に、第2ボート20のバス・サイクル
開始信号にL)MAC6からのメモリ・バスサイクル開
始信号(MBCYST13)を接続し、ボー}20のバ
スサイクル終了信号をDMAC6のメモリ・バスサイク
ル終了信号(MREADY14)に接続する。
Connect the IO bus cycle start signal (IBCYST15) from DMAC6 to the bus cycle start signal of boat 19, and connect the bus cycle end signal of boat 19 to DMAC6.
IO bus cycle end signal (IEADYx6)
Connect to. Similarly, the memory bus cycle start signal (MBCYST13) from the L) MAC 6 is connected to the bus cycle start signal of the second port 20, and the bus cycle end signal of the baud 20 is connected to the memory bus cycle end signal (MBCYST13) of the DMAC 6. Connect to MREADY14).

このような構成の本発明により、2バスサイクル転送で
、リード・バスサイクルとライト・バスサイクルをオー
バーラップサせて、高速にメモリからメモリへのD M
A転送を行うことが”J能になる。
According to the present invention having such a configuration, the read bus cycle and the write bus cycle are overlapped with each other in two bus cycle transfers, and D M from memory to memory can be performed at high speed.
Performing A transfer becomes "J function".

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、2バスサイクル転
送に釦いても、リード・バスサイクルとライト・バスサ
イクルとをオーバーラップさせることにより、高速にD
MA転送を行うことが出米るという効果がある。
As explained above, according to the present invention, even if a two-bus cycle transfer button is pressed, the read bus cycle and the write bus cycle are overlapped, so that the data can be transferred at high speed.
This has the effect of making it easier to perform MA transfer.

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

第1図は本発明の一実施例のDMA転送装置のシステム
ブロック図、第2区は第1図のDMA転送のタイくング
チャート、第3図は第1図のDMA転送装置の状態遷移
図、@4図は本発明の第2の実施例のブロック凶、第5
図は従来例のLAMA転送装置の/ステムブロック図、
第6図は第5図のL)MA転送のタイミングチャートで
ある。 1 , l a , 6−・−・DMAc, 2 . 
2 a−−IO装1、3.5・・・・・・レジスタ、4
,4a,7・・・・・・主記憶部、11・・・゜゜゜ア
ドレスバス、l2・・・・・・データバス、13・・・
・・・メモリ・バスサイクル開始信号、l4・・・・・
・メモリ・バスサイクル終了1呂号、15・゜゛・・・
IOバスサイクル開始信号、l6・・・・・・IOバス
サイクル終了信号、17・・・・・・DRQ% l8・
・・・・・D入CK,19・・・・・・第1ボート、2
0・・・・・・第2ボート。
Fig. 1 is a system block diagram of a DMA transfer device according to an embodiment of the present invention, Section 2 is a timing chart of the DMA transfer shown in Fig. 1, and Fig. 3 is a state transition diagram of the DMA transfer device shown in Fig. 1. , @4 shows the block failure of the second embodiment of the present invention, and the fifth
The figure is a /stem block diagram of a conventional LAMA transfer device.
FIG. 6 is a timing chart of L) MA transfer in FIG. 5. 1, la, 6-・-DMAc, 2.
2 a--IO unit 1, 3.5...Register, 4
, 4a, 7...main memory section, 11...゜゜゜address bus, l2...data bus, 13...
...Memory bus cycle start signal, l4...
・Memory bus cycle ends 1ro, 15・゜゛...
IO bus cycle start signal, l6... IO bus cycle end signal, 17...DRQ% l8.
...D CK, 19...1st boat, 2
0...Second boat.

Claims (1)

【特許請求の範囲】 読出しを行うバスサイクルと書込みを行うバスサイクル
の2つのバスサイクルで1単位のDMA転送を行うDM
A転送装置と、このDMA転送装置から供給されるIO
バスサイクル開始信号とこのDMA転送装置へ供給され
るIOバスサイクル終了信号とを接続するIO装置と、
このIO装置へ供給されるメモリ・バスサイクル終了信
号と前記DMA転送装置から供給されるメモリ・バスサ
イクル開始信号とを接続する主記憶装置と、これら各装
置と共通接続されるアドレスバスおよびデータバスとを
備え、 前記IO装置から前記主記憶装置へのDMA転送の場合
には、まず前記メモリ・バスサイクル終了信号がバスサ
イクル終了を前に、前記IOバスサイクル開始信号をバ
スサイクル開始を示すようにし、前記アドレスバスにI
Oアドレスを出力し、同時にメモリ・バスサイクル終了
信号がバスサイクル終了を示しているとき前記DMA転
送装置内に一旦記憶しておいたデータを前記データバス
に出力し、次に前記IO・バスサイクル終了信号がバス
サイクル終了を示す前に、前記メモリ・バスサイクル開
始信号をバスサイクル開始を示すようにし、前記アドレ
スバスにメモリアドレスを出力し、同時にIOバスサイ
クル終了信号がバスサイクル終了を示しているときは前
記データバス上のデータを前記DMA転送装置内に一旦
記憶し、前記主記憶装置から前記IO装置へのDMA転
送の場合には、まず前記IOバスサイクル終了信号がバ
スサイクル終了を示す前に、前記メモリ・バスサイクル
開始信号をバスサイクル開始を示すように、前記アドレ
スバスにメモリアドレスを出力し、同時にIOバスサイ
クル終了信号がバスサイクル終了を示しているとき前記
DMA転送装置内に一旦記憶しておいたデータを前記デ
ータバスに出力し、次に前記メモリ・バスサイクル終了
信号がバスサイクル終了を示す前に、前記IOバスサイ
クル開始信号をバスサイクル開始を示すようにし前記ア
ドレスバスにIOアドレスを出力し、同時にメモリ・バ
スサイクル終了信号がバスサイクル終了を示していると
きは前記データバス上のデータを前記DMA転送装置内
に一旦記憶することを特徴とするDMA転送制御方式。
[Claims] A DM that performs one unit of DMA transfer in two bus cycles: a bus cycle for reading and a bus cycle for writing.
A transfer device and IO supplied from this DMA transfer device
an IO device that connects a bus cycle start signal and an IO bus cycle end signal supplied to the DMA transfer device;
A main memory device that connects the memory bus cycle end signal supplied to this IO device and the memory bus cycle start signal supplied from the DMA transfer device, and an address bus and a data bus that are commonly connected to each of these devices. In the case of DMA transfer from the IO device to the main storage device, first, before the memory bus cycle end signal indicates the end of the bus cycle, the IO bus cycle start signal is set to indicate the start of the bus cycle. and input I to the address bus.
At the same time, when the memory bus cycle end signal indicates the end of the bus cycle, the data temporarily stored in the DMA transfer device is output to the data bus, and then the IO bus cycle Before the end signal indicates the end of the bus cycle, the memory bus cycle start signal is set to indicate the start of the bus cycle, a memory address is output to the address bus, and at the same time, the IO bus cycle end signal indicates the end of the bus cycle. When the data bus is in use, the data on the data bus is temporarily stored in the DMA transfer device, and in the case of DMA transfer from the main storage device to the IO device, first the IO bus cycle end signal indicates the end of the bus cycle. Before outputting a memory address to the address bus, the memory bus cycle start signal indicates the start of a bus cycle, and at the same time, when the IO bus cycle end signal indicates the end of the bus cycle, The stored data is once output to the data bus, and then, before the memory bus cycle end signal indicates the end of the bus cycle, the IO bus cycle start signal is set to indicate the start of the bus cycle, and the address bus 1. A DMA transfer control method comprising: outputting an IO address to a bus cycle; and at the same time, when a memory bus cycle end signal indicates the end of a bus cycle, data on the data bus is temporarily stored in the DMA transfer device.
JP19300189A 1989-07-25 1989-07-25 Dma transfer control system Pending JPH0357055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19300189A JPH0357055A (en) 1989-07-25 1989-07-25 Dma transfer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19300189A JPH0357055A (en) 1989-07-25 1989-07-25 Dma transfer control system

Publications (1)

Publication Number Publication Date
JPH0357055A true JPH0357055A (en) 1991-03-12

Family

ID=16300561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19300189A Pending JPH0357055A (en) 1989-07-25 1989-07-25 Dma transfer control system

Country Status (1)

Country Link
JP (1) JPH0357055A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6032238A (en) * 1998-02-06 2000-02-29 Interantional Business Machines Corporation Overlapped DMA line transfers

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6032238A (en) * 1998-02-06 2000-02-29 Interantional Business Machines Corporation Overlapped DMA line transfers

Similar Documents

Publication Publication Date Title
JPH0357055A (en) Dma transfer control system
JPS61166647A (en) Accessing for reading out information microprocessor and addressable memory
JPH0546527A (en) Dual port memory circuit
JPS592058B2 (en) Storage device
JP2522412B2 (en) Communication method between programmable controller and input / output device
JP3266610B2 (en) DMA transfer method
JPH0222748A (en) Non-volatile memory control circuit
JPH0375957A (en) Dma transfer control system
JP3201439B2 (en) Direct memory access control circuit
JPH01175056A (en) Program transfer system
JP2574821B2 (en) Direct memory access controller
JPH05173936A (en) Data transfer processing device
JPS63284659A (en) Dma transfer control method
JPH0696006A (en) DMA controller
JPH02211571A (en) Information processor
JPH03144740A (en) Processor comparator and instruction feeder
JPH03182956A (en) Buffer memory sharing system
JPH03211652A (en) Direct memory access circuit
JPH058459B2 (en)
JPS63228359A (en) Data transfer control system
JPH0437946A (en) Communication system
JPH02307149A (en) Direct memory access control method
JP2001144817A (en) Data communication system
JPH01134649A (en) I/o channel controller
JPS6325732A (en) Microprogram controller