JPH0261745A - Read transfer control system for dmac - Google Patents

Read transfer control system for dmac

Info

Publication number
JPH0261745A
JPH0261745A JP21438988A JP21438988A JPH0261745A JP H0261745 A JPH0261745 A JP H0261745A JP 21438988 A JP21438988 A JP 21438988A JP 21438988 A JP21438988 A JP 21438988A JP H0261745 A JPH0261745 A JP H0261745A
Authority
JP
Japan
Prior art keywords
read
data
section
memory
buffer
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.)
Granted
Application number
JP21438988A
Other languages
Japanese (ja)
Other versions
JP2599184B2 (en
Inventor
Wataru Kikuchi
亘 菊池
Kenichi Abo
阿保 憲一
Kimishige Ogura
仁成 小椋
Tatsuya Yamaguchi
達也 山口
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63214389A priority Critical patent/JP2599184B2/en
Publication of JPH0261745A publication Critical patent/JPH0261745A/en
Application granted granted Critical
Publication of JP2599184B2 publication Critical patent/JP2599184B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the waiting time of an I/O (input/output) part to improve the data transfer performance by preliminarily accessing a memory to hold read data in a buffer and transferring read data from the buffer to the I/O part in accordance with the transfer request of the I/O part. CONSTITUTION:An advance read indicating part of a DMAC (direct memory access controller) instructs a memory bus control part 23b to perform the read access. This control part 23b outputs a read buffer enable signal RBFE to a read buffer 22a to set data on a memory bus 5b to the read buffer 22a through a receiver R1. A DMA bus control part 23c receives the data transfer request of an I/O part 4 and outputs a DMA data enable signal DDEN to a driver D2 to output read data in the read buffer 22a onto a DMA bus 5c. The I/O part 4 receives data from the DMA bus 5c and processes reception data.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術(第4図) 発明が解決しようとする課題 課題を解決するための手段(第1図) 作用 実施例 (a)  一実施例の構成の説明(第2図)(b)  
一実施例の動作の説明(第3図)(C)  他の実施例
の説明 発明の効果 〔概要〕 メモリ部とI/O部のデータ転送を制JBするDMAC
におけるリード転送時のデータ転送制御方式に関し、 I/O部の待ち時間を短縮し、データ転送性能を向上す
ることを目的とし、 アドレス更新と、バイトカウント更新を行う動作制御部
を有し、I/O部とメモリ部にハスを介し接続され、該
I/O部の転送要求に対し、設定されたアドレスから設
定されたバイト数分該メモリ部をアクセスし、該I/O
部にデータを転送するDMACにおいて、該メモリ部か
らのリードブタを格納するバッファと、リード転送モー
ド時、予め該メモリ部からデータをリードすることを指
示する先行リード指示部とを設け、t5I/O部の転送
要求前に、該先行リード指示部の指示により該メモリ部
から該バッファに予めデータをリードしておき、該I/
O部からの転送要求に対し、該バッファのデータを該I
/O部に転送する。
[Detailed description of the invention] [Table of contents] Overview Industrial field of application Prior art (Figure 4) Means for solving the problem to be solved by the invention (Figure 1) Working example (a) 1 Explanation of the configuration of the embodiment (Figure 2) (b)
Explanation of operation of one embodiment (Fig. 3) (C) Explanation of other embodiments Effects of the invention [Summary] DMAC that controls data transfer between memory section and I/O section
Regarding the data transfer control method during read transfer in /O section and memory section are connected via a hash, and in response to a transfer request from the I/O section, the memory section is accessed for the set number of bytes from the set address, and the I/O section is
A DMAC that transfers data to the memory section is provided with a buffer that stores read data from the memory section, and a advance read instruction section that instructs to read data from the memory section in advance in the read transfer mode. Before the I/O section transfer request, data is read in advance from the memory section to the buffer according to the instruction from the advance read instruction section, and the data is read from the memory section to the buffer in advance.
In response to a transfer request from part O, the data in the buffer is transferred to part I.
/Transfer to department O.

〔産業上の利用分野〕[Industrial application field]

本発明は、メモリ部とI/O部のデータ転送を制御する
DMACにおけるリード転送時のデータ転送制御方式に
関する。
The present invention relates to a data transfer control method during read transfer in a DMAC that controls data transfer between a memory section and an I/O section.

計算機システムにおいて、l10(人出力)部とメモリ
部とのデータ転送の方法として、プロセッサを介在せず
、データ転送専用のDMAC(ダイレクト メモリ ア
クセス コントローラ)を用いる方法がある。
In a computer system, there is a method of transferring data between the I10 (human output) section and the memory section using a DMAC (Direct Memory Access Controller) dedicated to data transfer without intervening a processor.

係るDMACによるデータ転送においては、I/O部の
高速化に伴い、メモリ部とI/O部とのデータ転送の高
速化が要求されている。
In data transfer using such a DMAC, as the speed of the I/O section increases, there is a demand for faster data transfer between the memory section and the I/O section.

このため、メモリバスの高速化が図られているが、メモ
リ素子のアクセスサイクルによって性能が決定されてし
まうので、より高速化を図るため、DMACのデータ転
送制御方式の工夫が望まれている。
For this reason, attempts have been made to speed up the memory bus, but since the performance is determined by the access cycle of the memory element, it is desired to devise a DMAC data transfer control system in order to achieve even higher speeds.

〔従来の技術〕[Conventional technology]

第4図は従来技術の説明図である。 FIG. 4 is an explanatory diagram of the prior art.

第4図(A)において、バス5によりプロセッサlと、
DMAC2と、メモリ部3と、I/O部4とが接続され
ている。
In FIG. 4(A), bus 5 connects processor l to
A DMAC 2, a memory section 3, and an I/O section 4 are connected.

従来のDMAC2のデータ転送制御では、第4図(B)
に示すように、リード転送モードでは、プロセッサ1か
ら先頭アドレス、転送バイト数のセット後、DMAスタ
ート指示を受けてから、I/O部4からのデータ転送要
求を受け、バス5のアクセス権を獲得し、メモリ部3を
リードアクセスし、リードデータをI/O部4に転送す
るというシーフェンスをとっていた。
In the conventional DMAC2 data transfer control, Fig. 4(B)
As shown in the figure, in the read transfer mode, after setting the start address and number of transfer bytes from the processor 1 and receiving a DMA start instruction, a data transfer request is received from the I/O section 4, and the access right to the bus 5 is granted. A sea fence was used in which the data was acquired, read access was made to the memory section 3, and the read data was transferred to the I/O section 4.

又、ライト転送モードでは、I/O部4からブタ転送要
求を受け、応答してから、メモリ部2ヘライトアクセス
を行っていた。
Further, in the write transfer mode, after receiving a pig transfer request from the I/O section 4 and responding, write access to the memory section 2 is performed.

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

ところで、バス5は、DMAC2のみならず、他の制御
部等と共用されて使用されるため、バス5のアクセス権
を得てから、メモリアクセスを行うため、時間がかかる
場合がある。
Incidentally, since the bus 5 is shared not only with the DMAC 2 but also with other control units and the like, it may take time to access the memory after obtaining access rights to the bus 5.

このため、従来技術では、リード転送モードにおいて、
第4図(B)に示すように、I/O部4の転送要求後、
DMAC2がバスのアクセス権を得て、メモリアクセス
してリードデータを得るため、I/O部4は転送要求か
ら時間Tだけ待たされてしまう。
For this reason, in the prior art, in read transfer mode,
As shown in FIG. 4(B), after the transfer request from the I/O unit 4,
Since the DMAC 2 obtains the right to access the bus and accesses the memory to obtain read data, the I/O unit 4 is forced to wait for a time T after the transfer request.

この待ち時間は、ライト転送モードでは、I/O部4を
突き離した後にメモリアクセスを行うため問題とならず
、リード転送モードでは、I/O部4とメモリ部3のデ
ータ転送性能を大きく低下させる原因となるという問題
があった。
This waiting time is not a problem in the write transfer mode because memory access is performed after the I/O section 4 is separated, and in the read transfer mode, the data transfer performance between the I/O section 4 and the memory section 3 is greatly improved. There was a problem in that it caused a decrease in performance.

従って、本発明は、I/O部の待ち時間を短縮し、デー
タ転送性能を向上せしめることのできるDMACのリー
ド転送制御方式を提供することを目的とする。
Therefore, an object of the present invention is to provide a DMAC read transfer control method that can shorten the waiting time of the I/O section and improve data transfer performance.

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

第1図は本発明の原理図である。 FIG. 1 is a diagram showing the principle of the present invention.

本発明は第1図に示すようにアドレス更新と、バイトカ
ウント更新を行う動作制御部20を有し、I/O部4と
メモリ部3にバス5を介し接続され、該I/O部4の転
送要求に対し、設定されたアドレスから設定されたバイ
ト数分該メモリ部3をアクセスし、該T10部4にデー
タを転送するDMACにおいて、該メモリ部3からのリ
ードデータを格納するバッファ22と、リード転送モー
ド時、予め該メモリ部3からデータをリードすることを
指示する先行リード指示部21とを設け、該I/O部4
の転送要求前に、該先行リード指示部21の指示により
該メモリ部3から該バッファ22に予めデータをリード
しておき、該I/O部4からの転送要求に対し、該バッ
ファ22のデータを該I/O部4に転送するものである
As shown in FIG. 1, the present invention has an operation control section 20 that updates addresses and byte counts, and is connected to an I/O section 4 and a memory section 3 via a bus 5. In response to a transfer request, a buffer 22 stores read data from the memory section 3 in the DMAC that accesses the memory section 3 for a set number of bytes from a set address and transfers data to the T10 section 4. and a advance read instruction section 21 that instructs to read data from the memory section 3 in advance in the read transfer mode, and the I/O section 4
Before the transfer request, data is read from the memory section 3 to the buffer 22 in accordance with the instruction from the advance read instruction section 21, and in response to the transfer request from the I/O section 4, the data in the buffer 22 is read. is transferred to the I/O unit 4.

〔作用〕[Effect]

本発明では、予めメモリアクセスをして、リードデータ
をバッファ22へ保持しておき、170部4の転送要求
に応じてバッファ22からリードデータをI/O部4へ
転送するものである。
In the present invention, the memory is accessed in advance, read data is held in the buffer 22, and the read data is transferred from the buffer 22 to the I/O section 4 in response to a transfer request from the 170 section 4.

このため、I/O部4からのデータ転送要求時に、直ら
にその要求に応答して、データをI/O部4へ転送でき
る。
Therefore, when a data transfer request is made from the I/O section 4, data can be transferred to the I/O section 4 in response to the request immediately.

従って、バスのアクセス権獲得及びメモリアクセスは、
データ転送要求前に済ましておくので、I/O部4はア
クセス権獲得の時間を待つことなく直ちにデータかえら
れる。
Therefore, bus access right acquisition and memory access are as follows:
Since the data transfer request is completed before the data transfer request, the I/O section 4 can immediately change the data without waiting for the access right to be acquired.

このことは、DMAC2がI/O部4のデータ転送要求
に従属してメモリアクセスするのではなく、独立にメモ
リアクセスし、データ転送要求は1) M A C2内
のバッファ22上のデータ要求として動作する。
This means that the DMAC 2 does not access the memory dependently on the data transfer request of the I/O unit 4, but accesses the memory independently, and the data transfer request is processed as a data request on the buffer 22 in the MAC2. Operate.

このDMAC2のメモリアクセスは、転送要求前のスタ
ート開始時及びI/O部4のデータ処理時間に行うこと
ができるので、I/O部4を全く待たせることがない。
This memory access of the DMAC 2 can be performed at the start before a transfer request and during the data processing time of the I/O unit 4, so the I/O unit 4 is not kept waiting at all.

〔実施例〕〔Example〕

(a)  一実施例の構成の説明 第2図は本発明の一実施例ブロック図である。 (a) Description of the configuration of one embodiment FIG. 2 is a block diagram of an embodiment of the present invention.

図中、第1図及び第4図で示したものと同一のものは、
同一の記号で示しである。
In the figure, the same parts as shown in Figures 1 and 4 are:
Indicated by the same symbol.

バス5は、システムバス5aと、メモリバス5bと、D
MAバス5Cとに分割され、システムバス5aは、プロ
セッサ1と、I/O部4と、DMAC2と、ディスクコ
ントローラ等の制御部6とを接続し、メモリバス5bは
、DMAC2と、メモリ部3と、制御部6とを接続し、
DMAバス5Cは、DMAC2とI/O部4とを接続す
る。
The bus 5 includes a system bus 5a, a memory bus 5b, and a D
The system bus 5a connects the processor 1, the I/O unit 4, the DMAC 2, and a control unit 6 such as a disk controller, and the memory bus 5b connects the DMAC 2 and the memory unit 3. and the control unit 6,
The DMA bus 5C connects the DMAC 2 and the I/O section 4.

20は前述の動作(チャネル)制御部であり、スタート
状態とストップ状態を保持し、スタート状態でDMA転
送を可能とし、ストップ状態でDMA転送を不可能とす
るスタート/ストップレジスタ200と、リード転送モ
ード(メモリ部3からI/O部4へのデータ転送)と、
ライト転送子ド(I/O部4からメモリ部3へのデータ
転送)とを指示するモードレジスタ201とを有する。
20 is the aforementioned operation (channel) control unit, which includes a start/stop register 200 that holds the start state and stop state, enables DMA transfer in the start state and disables DMA transfer in the stop state, and read transfer. mode (data transfer from memory section 3 to I/O section 4),
It has a mode register 201 that instructs a write transfer mode (data transfer from the I/O section 4 to the memory section 3).

更に、チャネル制御部20には、マルチプレクサ204
を介し転送データ量が設定され、1回のデータ転送を行
う毎に減算器203で’−IJ減算され、「OJとなる
とDMA転送を終了し、スタート/ストップレジスタ2
00をストップ状態とするデータレジスタ202と、マ
ルチプレクサ207を介しメモリアドレスが設定され、
1回のデータ転送を行う毎に加算器206で「+1」さ
れるアドレスレジスタ205とを有している。
Furthermore, the channel control unit 20 includes a multiplexer 204.
The amount of data to be transferred is set via the subtracter 203 for each data transfer, and '-IJ is subtracted by the subtracter 203. When OJ is reached, the DMA transfer is finished and the start/stop register 2
A memory address is set via a data register 202 with 00 as a stop state and a multiplexer 207,
The address register 205 is incremented by "+1" by an adder 206 every time one data transfer is performed.

21は前述の先行リード指示部であり、チャネル制御部
20がリード転送モードでスタート状態となると、後述
するメモリバス制御部に対しリードアクセス指示を行い
、次からは後述するDMA制御部のデータ転送終了(1
回毎のデータ転送終了)でリードアクセス指示をDMA
転送終了まで行うものである。
Reference numeral 21 denotes the above-mentioned advance read instruction section, and when the channel control section 20 starts in the read transfer mode, it issues a read access instruction to the memory bus control section, which will be described later, and then performs data transfer by the DMA control section, which will be described later. End (1
DMA read access instruction at the end of each data transfer)
This is done until the transfer is completed.

22aはリードバッファであり、メモリ部3からのリー
ドデータを一時的に保持するもの、22bはライトバッ
ファであり、メモリ部3へのライトデータを一時的に保
持するものである。
22a is a read buffer, which temporarily holds read data from the memory section 3; and 22b is a write buffer, which temporarily holds write data to the memory section 3.

23aはシステムバス制御部であり、上位(ブロセッサ
1等)からのリード、ライトアクセスによって、DMA
C内部のレジスタ200.201.202.205等に
リード、ライト制御するもの、23bはメモリバス制御
部であり、メモリバス5bのアクセス獲得制御と、メモ
リバス5bを介してメモリ部3のアクセス獲得制御を行
うもの、23cはDMAバス制御部であり、DMAバス
5Cを介してI/O部4とのデータ転送制御を行うもの
である。
23a is a system bus control unit, which controls DMA by read and write access from the upper level (processor 1, etc.).
23b is a memory bus control unit that controls reading and writing to registers 200, 201, 202, 205, etc. inside C, and controls acquiring access to the memory bus 5b and acquiring access to the memory unit 3 via the memory bus 5b. The control unit 23c is a DMA bus control unit, which controls data transfer with the I/O unit 4 via the DMA bus 5C.

24は割込み発生部であり、チャネル制御部20のDM
A転送終了をシステムバス5aを通して割込みとして上
位(プロセッサ1)へ通知するもの、R1、R2はレシ
ーバであり、各々メモリ部3からのリードデータ、I/
O部4からのライトデータを受信し、リードバッファ2
2a、ライトバッファ22bへ出力するものである。
24 is an interrupt generation unit, and DM of the channel control unit 20
R1 and R2 are receivers that notify the host (processor 1) of the completion of A transfer as an interrupt through the system bus 5a, and receive read data from the memory unit 3, I/O, etc.
Receives write data from O unit 4 and writes it to read buffer 2
2a, it is output to the write buffer 22b.

Dl、D2、D3は各々ドライバであり、ドライバDI
は、メモリバス制御部23bのメモリプタイネーブル信
号MDENに応じて、ライトバッファ22bのライトデ
ータをメモリバス5bへ出力し、ドライバD2は、DM
Aバス制御部23CのDMAデータイネーブル信号DD
ENに応じて、リードバッファ22aのリードデータを
DMAバス5cへ出力し、ドライバD3は、メモリバス
制御部23bのアドレスイネーブル信号ADEに応じて
、アドレスレジスタ205のメモリアドレスをメモリバ
ス5bに出力するものである。
Dl, D2, and D3 are each drivers, and the driver DI
outputs the write data of the write buffer 22b to the memory bus 5b in response to the memrist enable signal MDEN of the memory bus control unit 23b, and the driver D2 outputs the write data of the write buffer 22b to the memory bus 5b.
DMA data enable signal DD of A bus control unit 23C
In response to EN, the driver D3 outputs the read data of the read buffer 22a to the DMA bus 5c, and in response to the address enable signal ADE of the memory bus control unit 23b, the driver D3 outputs the memory address of the address register 205 to the memory bus 5b. It is something.

この実施例では、バス5が、システムバス5a、メモリ
バス5b及びDMAバス5Cの3つのバスで構成し、バ
スの負荷を減少し、高速アクセスを可能としている。
In this embodiment, the bus 5 is composed of three buses: a system bus 5a, a memory bus 5b, and a DMA bus 5C, which reduces the load on the bus and enables high-speed access.

(b)  一実施例の動作の説明 第3図は本発明の一実施例タイムチャート図である。(b) Description of operation of one embodiment FIG. 3 is a time chart diagram of one embodiment of the present invention.

ここで、メモリバス5b上のアクセス権の優先順位は、
制御部6の方が高いとする。
Here, the priority order of access rights on the memory bus 5b is as follows:
It is assumed that the control unit 6 is higher.

■ プロセッサlは、DMA開始に当たって、システム
バス5aを介し、DMAC2のチャネル制御部20のモ
ードレジスタ201、データレジスタ202、アドレス
レジスタ205の各々に、リード転送モード、転送デー
タ!(バイト数)、メモリアドレスをセットする。
(2) At the start of DMA, the processor l inputs the read transfer mode, transfer data!, to each of the mode register 201, data register 202, and address register 205 of the channel control unit 20 of the DMAC 2 via the system bus 5a. (number of bytes) and set the memory address.

その後、プロセッサ1は、チャネル制御部20のスター
ト/ストップレジスタ200にスタート状態をセットし
、DMAC2がスタート状態となる。
Thereafter, the processor 1 sets a start state in the start/stop register 200 of the channel control unit 20, and the DMAC 2 enters the start state.

このスタート状態とリード転送モードによって、先行リ
ード指示部21が起動され、先行リード指示部21は、
メモリバス制御部23bにリードアクセス指示を行う。
With this start state and read transfer mode, the advance read instruction section 21 is activated, and the advance read instruction section 21
A read access instruction is given to the memory bus control unit 23b.

■ メモリバス制JB部23bは、メモリバス5bのア
クセス権を得るため、アクセス要求αをオンとする。
(2) The memory bus system JB section 23b turns on the access request α in order to obtain the right to access the memory bus 5b.

そして、制?1部6のアクセス要求βがオフで、メモリ
バス5bがビジー状態でなければ、アクセス応答がオン
となり、メモリバス5bのアクセス権を獲得する。
And the system? If the access request β of the first part 6 is off and the memory bus 5b is not busy, the access response is turned on and the access right to the memory bus 5b is acquired.

■ これによって、メモリバス制御部23bは、アドレ
スイネーブル信号ADEをドライバD3に出力し、アド
レスレジスタ205のメモリアドレス(m)をメモリバ
ス5bに出力する。
(2) As a result, the memory bus control section 23b outputs the address enable signal ADE to the driver D3, and outputs the memory address (m) of the address register 205 to the memory bus 5b.

メモリ部3は、これによってメモリバス5bにメモリア
ドレス(m)のデータ(RDI)を出力してくるので、
メモリ制御部23bはリードバッファイネーブル信号R
BFEをリードバッファ22aに出力、メモリバス5b
上のデータ(RDl)をレシーバR1を介し、リードバ
ッファ22aにセットする。
As a result, the memory unit 3 outputs the data (RDI) of the memory address (m) to the memory bus 5b.
The memory control unit 23b receives a read buffer enable signal R.
Output BFE to read buffer 22a, memory bus 5b
The above data (RDl) is set in the read buffer 22a via the receiver R1.

■ プロセッサlによって、システムバス5aを介しI
/O部4にI10スタートを指示すると、I/O部4の
DMAがスタートとなる。
■ By processor l, I
When the /O section 4 is instructed to start I10, the DMA of the I/O section 4 is started.

170部4は、DMAC2にDMAバス5cよりデータ
転送要求γを出力し、データ転送要求を行う。
The 170 unit 4 outputs a data transfer request γ to the DMAC 2 from the DMA bus 5c to issue a data transfer request.

■ DMAバス制御部23cは、データ転送要求Tを受
け、リードバッファ22aに有効データ(RDI)がセ
ットされているので、直ちにI/O部4にデータ転送応
答を出力し、DMAデータイネーブル信号DDENをド
ライバD2へ出力し、リードバッファ22aのリードデ
ータ(RDI)をDMAバス5cに出力する。
- The DMA bus control unit 23c receives the data transfer request T, and since valid data (RDI) is set in the read buffer 22a, it immediately outputs a data transfer response to the I/O unit 4 and outputs a DMA data enable signal DDEN. is output to the driver D2, and read data (RDI) of the read buffer 22a is output to the DMA bus 5c.

I/O部4はDMAバス5Cからデータを受信し、受信
データを処理する。
The I/O unit 4 receives data from the DMA bus 5C and processes the received data.

■ このデータ転送応答によって、チャネル制御部20
は、アドレスレジスタ205のメモリアドレスを(m+
1)に、データレジスタ202の内容を「−1」更新す
る。
■ This data transfer response causes the channel control unit 20
sets the memory address of the address register 205 to (m+
1), the contents of the data register 202 are updated by "-1".

これとともに、先行リード指示部21は、ブタ転送応答
に応じて、メモリバス制御部23bにリードアクセス指
示を行う。
At the same time, the advance read instruction section 21 issues a read access instruction to the memory bus control section 23b in response to the pig transfer response.

■ I/O部4が、受信したデータ(RDI)を処理し
ている間に、■〜■のシーケンスを繰り返す。
(2) While the I/O section 4 is processing the received data (RDI), the sequence (2) to (2) is repeated.

この時、制御部6が、メモリバス5bのアクセス権を獲
得し、メモリ部3を使用している間は、メモリバス制御
部23bは、これを待ってアクセス権を獲得し、メモリ
アクセスする。
At this time, while the control unit 6 acquires the access right to the memory bus 5b and uses the memory unit 3, the memory bus control unit 23b waits for this, acquires the access right, and accesses the memory.

■ このようにして、上述のシーケンスを繰り返し、デ
ータレジスタ202の内容が「0」になると、DMA転
送終了となり、スタート/ストップレジスタ200がス
トップ状態となる。
(2) In this way, the above sequence is repeated, and when the content of the data register 202 becomes "0", the DMA transfer ends and the start/stop register 200 enters the stop state.

これによって、プロセッサlに割込み発生部24から割
込みが発生し、DMA転送シーケンスが終了する。
As a result, an interrupt is generated from the interrupt generating section 24 in the processor 1, and the DMA transfer sequence ends.

170部4も最終データを受信すると、DMAをストッ
プする。
When the 170 unit 4 also receives the final data, it stops DMA.

このようにして、リード転送モードでスタート状態にな
ると、先行リード指示部21によってメモリバス制御部
2にリードアクセス指示を行い、メモリバス制御部2は
、メモリバス5bのアクセス権を役で、リードアクセス
を行い、リードブタをリードバッファ22aに保持して
おく。
In this way, when the read transfer mode starts, the advance read instruction section 21 issues a read access instruction to the memory bus control section 2, and the memory bus control section 2 uses the access right of the memory bus 5b to read the data. The read buffer 22a is accessed and held in the read buffer 22a.

そして、I/O部4からのデータ転送要求があると、D
MAバス制御部23cは、直ちにその要求に対して応答
し、リードバッファ22aのブタを転送して、1回のデ
ータ転送を終了する。
Then, when there is a data transfer request from the I/O section 4, the D
The MA bus control unit 23c immediately responds to the request, transfers the data in the read buffer 22a, and completes one data transfer.

そして、そのデータ転送の応答を、先行リード指示部2
1に通知し、先行リード指示部21は、これに応じてメ
モリバス制御部23bにリードアクセス指示を行い、以
降DMA転送が終了するまで、前述した動作を繰り返す
The data transfer response is sent to the advance read instruction unit 2.
In response to this, the advance read instruction unit 21 issues a read access instruction to the memory bus control unit 23b, and thereafter repeats the above-described operations until the DMA transfer is completed.

従って、リード転送モードの場合には、I/O部4から
のデータ転送要求前・に、予めメモリ部3からデータを
リードしておくため、I/O部4からのデータ転送要求
時、直ちにデータ転送の応答ができる。
Therefore, in the read transfer mode, data is read from the memory section 3 in advance before a data transfer request from the I/O section 4 is made, so that when a data transfer request is made from the I/O section 4, the data is immediately read. Can respond to data transfer.

(C)  他の実施例の説明 上述の実施例では、バス5が3つのバスで構成されたも
のについて説明したが、1つ又は2つのバスで構成する
ものにも適用できる。
(C) Description of other embodiments In the above-described embodiments, the bus 5 is composed of three buses, but the bus 5 can also be composed of one or two buses.

以上本発明を実施例により説明したが、本発明は本発明
の主旨に従い種々の変形が可能であり、本発明からこれ
らを排除するものではない。
Although the present invention has been described above using examples, the present invention can be modified in various ways according to the gist of the present invention, and these are not excluded from the present invention.

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

以上説明した様に、本発明によれば、リード転送モード
のDMA転送に対しては、I/O部のブタ転送要求前に
、予めメモリ部からデータをリードしておくので、I/
O部のデータ転送要求に対し直ちに応答でき、DMA転
送を高速化することができるという効果を奏し、I/O
部の待ちがなく、I/O部の高速化に寄与し、計算機シ
ステムの性能向上を実現する。
As explained above, according to the present invention, for DMA transfer in read transfer mode, data is read from the memory section in advance before a pig transfer request from the I/O section.
This has the effect of being able to immediately respond to data transfer requests from the O unit, speeding up DMA transfer, and reducing I/O
There is no waiting time for the I/O section, which contributes to speeding up the I/O section and improves the performance of the computer system.

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

第1図は本発明の原理図、 第2図は本発明の一実施例ブロック図、第3図は本発明
の一実施例タイムチャート図、第4図は従来技術の説明
図である。 図中、■−プロセッサ、 2−・DMAC。 3−メモリ部、 4−I/O部、 5−バス、 20・−動作制御部、 21−先行リード指示部、 22−バッファ。
FIG. 1 is a principle diagram of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 is a time chart diagram of an embodiment of the present invention, and FIG. 4 is an explanatory diagram of the prior art. In the figure, ■-processor, 2-DMAC. 3-Memory section, 4-I/O section, 5-Bus, 20--Operation control section, 21-Preliminary read instruction section, 22-Buffer.

Claims (1)

【特許請求の範囲】[Claims] (1)アドレス更新と、バイトカウント更新を行う動作
制御部(20)を有し、I/O部(4)とメモリ部(3
)にバス(5)を介し接続され、該I/O部(4)の転
送要求に対し、設定されたアドレスから設定されたバイ
ト数分該メモリ部(3)をアクセスし、該I/O部(4
)にデータを転送するDMACにおいて、 該メモリ部(3)からのリードデータを格納するバッフ
ァ(22)と、 リード転送モード時、予め該メモリ部(3)からデータ
をリードすることを指示する先行リード指示部(21)
とを設け、 該I/O部(4)の転送要求前に、該先行リード指示部
(21)の指示により該メモリ部(3)から該バッファ
(22)に予めデータをリードしておき、 該I/O部(4)からの転送要求に対し、該バッファ(
22)のデータを該I/O部(4)に転送することを 特徴とするDMACのリード転送制御方式。
(1) It has an operation control unit (20) that updates addresses and byte counts, and has an I/O unit (4) and a memory unit (3).
) is connected to the I/O unit (4) via a bus (5), and in response to a transfer request from the I/O unit (4), the memory unit (3) is accessed by the set number of bytes from the set address, and the I/O Part (4
), the DMAC includes a buffer (22) that stores read data from the memory section (3), and a preceding buffer that instructs in advance to read data from the memory section (3) in the read transfer mode. Lead instruction section (21)
and read data in advance from the memory section (3) to the buffer (22) according to instructions from the advance read instruction section (21) before the transfer request from the I/O section (4); In response to a transfer request from the I/O unit (4), the buffer (
22) is transferred to the I/O unit (4).
JP63214389A 1988-08-29 1988-08-29 DMAC read transfer controller Expired - Lifetime JP2599184B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63214389A JP2599184B2 (en) 1988-08-29 1988-08-29 DMAC read transfer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63214389A JP2599184B2 (en) 1988-08-29 1988-08-29 DMAC read transfer controller

Publications (2)

Publication Number Publication Date
JPH0261745A true JPH0261745A (en) 1990-03-01
JP2599184B2 JP2599184B2 (en) 1997-04-09

Family

ID=16654980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63214389A Expired - Lifetime JP2599184B2 (en) 1988-08-29 1988-08-29 DMAC read transfer controller

Country Status (1)

Country Link
JP (1) JP2599184B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0464159A (en) * 1990-07-02 1992-02-28 Fujitsu Ltd Data transfer control system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59100931A (en) * 1982-12-02 1984-06-11 Ricoh Co Ltd Data transferring circuit
JPS59108133A (en) * 1982-12-13 1984-06-22 Nec Corp Input/output controlling method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59100931A (en) * 1982-12-02 1984-06-11 Ricoh Co Ltd Data transferring circuit
JPS59108133A (en) * 1982-12-13 1984-06-22 Nec Corp Input/output controlling method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0464159A (en) * 1990-07-02 1992-02-28 Fujitsu Ltd Data transfer control system

Also Published As

Publication number Publication date
JP2599184B2 (en) 1997-04-09

Similar Documents

Publication Publication Date Title
CA2060820C (en) Direct memory access for data transfer within an i/o device
KR20060122934A (en) A multiple address two channel bus structure
JPH10149332A (en) Dma control circuit and method for receiving size data of dma channel
JP4097883B2 (en) Data transfer apparatus and method
JP2000020451A (en) Device and method for processing information and provision method
JPH0261745A (en) Read transfer control system for dmac
JPH10178626A (en) Transmitting device, server device and transmitting method
JPH0351943A (en) Sharing system for high/low speed bus lines
JP2000347989A (en) Data transfer system
JP2854066B2 (en) Multiprocessor system
JP3516835B2 (en) Information processing system
JPH0131225B2 (en)
JP2001256169A (en) Data transfer control system and device
JPH0713814B2 (en) Bus control method
JPH05173936A (en) Data transfer processing device
JPH0981500A (en) Virtual dma transfer method
JPH06332851A (en) Data transfer system
JP2006195810A (en) High-speed data transfer method
JPH1063565A (en) Data processor
JPH03241442A (en) Store buffer control system
JPH104420A (en) Data transfer method
JPH05210616A (en) Computer device
JPS62243055A (en) Data transfer system
JPS62145345A (en) Control system for direct memory access interval
JPH04346150A (en) Data transfer processing system