JPH01219942A - Buffer control system - Google Patents

Buffer control system

Info

Publication number
JPH01219942A
JPH01219942A JP4412788A JP4412788A JPH01219942A JP H01219942 A JPH01219942 A JP H01219942A JP 4412788 A JP4412788 A JP 4412788A JP 4412788 A JP4412788 A JP 4412788A JP H01219942 A JPH01219942 A JP H01219942A
Authority
JP
Japan
Prior art keywords
data
transfer
buffer
adapter
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP4412788A
Other languages
Japanese (ja)
Other versions
JPH0474747B2 (en
Inventor
Noboru Ita
板 昇
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP4412788A priority Critical patent/JPH01219942A/en
Publication of JPH01219942A publication Critical patent/JPH01219942A/en
Publication of JPH0474747B2 publication Critical patent/JPH0474747B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To quickly transfer processing to another I/O data bus by providing a DMA controller with a data transfer temporary stop function and a dummy sending function for data forcible transfer. CONSTITUTION:A processor instructs the DMA controller to start data transfer and starts data transfer. A buffer A and a flag FA are set by a transfer request signal of data A from an I/O data bus. A response signal to the transfer request is sent back. These operations are performed for a transfer request of data B in the same manner. Since plural I/O data busses are controlled by one DMA controller, the processor instructs the DMA controller to interrupt transfer if data transfer is not terminated within a certain time. The processor reads out flag information to perform the recovery processing for next transfer.

Description

【発明の詳細な説明】 〔概 要] アダプタ内のデータバッファのデータ転送を制御するバ
ッファ制御方式に関し、 アダプタ内のマイクロプロセッサにてデータ送出処理を
行なう処理時間を短縮することによりDMAコントロー
ルの処理効率の向上を図ることを目的とし、 中央処理装置の配下にシステムバスを介してメモリ、ア
ダプタ等が接続され、アダプタを介して複数の入出力装
置が接続されるデータ処理システムにおける前記アダプ
タ内のデータバッファのデータ転送を制御するバッファ
制御方式において、前記アダプタ内のDMAコントロー
ラ内に、前記メモリへのデータ転送を強制的に一時中断
させる制御手段と、前記データバッファ内のデータを前
記メモリのバウンダリ条件に合せて補正し、ダミーデー
タをセットした後、前記メモリへ強制的にデータの送出
を行なう指示手段とを備え、前記データバッファを複数
のI/Oデータバスが共用する構成において、他のI/
Oデータバスに一定時間後に強制的に処理を移すように
構成する。
[Detailed Description of the Invention] [Summary] Regarding a buffer control method for controlling data transfer of a data buffer in an adapter, processing of DMA control is achieved by shortening the processing time for data transmission processing in a microprocessor in the adapter. For the purpose of improving efficiency, in a data processing system in which memory, adapters, etc. are connected under a central processing unit via a system bus, and multiple input/output devices are connected via the adapter, In the buffer control method for controlling the data transfer of the data buffer, the DMA controller in the adapter includes a control means for forcibly temporarily suspending the data transfer to the memory, and the data in the data buffer is transferred to the boundary of the memory. and an instruction means for forcibly sending the data to the memory after correction according to the conditions and setting dummy data, and in the configuration in which the data buffer is shared by a plurality of I/O data buses, I/
The configuration is such that processing is forcibly transferred to the O data bus after a certain period of time.

〔産業上の利用分野] 本発明は、データ処理システムにおいて中央処理装置に
システムバスを介して接続されるアダプタ内のデータバ
ッファのデータ転送を強制するバッファ制御方式に関し
、特に、アダプタ内において、DMAコントローラを含
むデータバッファを、複数の人出力データハスにより共
用する場合のデータバッファの切り換え制御11に有効
なバッファ制御方式に関する。
[Field of Industrial Application] The present invention relates to a buffer control method for forcing data transfer of a data buffer in an adapter connected to a central processing unit via a system bus in a data processing system, and in particular, the present invention relates to a buffer control method for forcing data transfer of a data buffer in an adapter connected to a central processing unit via a system bus. The present invention relates to a buffer control method effective for data buffer switching control 11 when a data buffer including a controller is shared by a plurality of human output data blocks.

[従来の技術および発明が解決しようとする課題]第4
図はアダプタを含むデータ処理システム構成図である。
[Prior art and problems to be solved by the invention] Part 4
The figure is a configuration diagram of a data processing system including an adapter.

図に示す如く、中央処理装置(CPtl)の配下にシス
テムバス(SB)を介してメモリ(MEM)、アダプタ
(ADP)が接続されアダプタを介して入出力装置(I
/O)が接続される。アダプタはCPUと1/O間のデ
ータ転送、メモリとl/O間のDMA転送を円滑に行な
うための制御機能を有する。アダプタの内部は、通常、
マイクロプロセッサ(MPU)と、内部バス(rn)を
介して接続されるD?lAコントローラ(DMA −C
NT)と、データを一時格納するデータバッファ(DB
U)と、各I/Oに接続される複数のI/O制御部(I
lo−CNT)により構成される。
As shown in the figure, a memory (MEM) and an adapter (ADP) are connected under the central processing unit (CPtl) via a system bus (SB), and an input/output device (I/O device) is connected via the adapter.
/O) is connected. The adapter has a control function for smoothly performing data transfer between the CPU and 1/O and DMA transfer between memory and I/O. The inside of the adapter is usually
D? connected to the microprocessor (MPU) via the internal bus (rn). lA controller (DMA-C
NT) and a data buffer (DB) that temporarily stores data.
U) and multiple I/O control units (I/O) connected to each I/O.
lo-CNT).

このような構成において、DMAコントローラはデータ
バッファの小領域A、B、C,Dのデータ格納状態を監
視するためレジスタ内にバッファ監視フラグFA 、 
FB 、 FC、FDを設け、内部バスを介してプロセ
ッサはこれらのフラグの状態を監視する。
In such a configuration, the DMA controller sets buffer monitoring flags FA,
FB, FC, and FD are provided, and the processor monitors the states of these flags via an internal bus.

通常、データバッファのA、B、C,Dが充足されると
データ転送が行なわれるが、何らかの要因で充足してい
ないときはダミーデータ“0”を入力して見かけ上充足
してデータ転送を行なう。−方、複数のI/Oデータバ
ス(DB、〜DB、、)を時分割で使用する場合に、あ
る1つのI/Oデータバスが長時間専有するとプロセッ
サからの指令により強制的にバス使用を停止させていた
。また、例えば、メモリバウンダリと合わないために転
送されずデータバッファ内に残ったデータをメモリに転
送する場合には、前述の如(、プロセッサがダミーデー
タをデータバッファ内の空いている領域、例えばC,D
にデータ数をカウントしてセットし、データバッファを
充足して転送する。この場合に、残ったデータが少なけ
ればダミーデータの量が多くなりその分プロセッサの処
理に時間を要することになる。従って、他のI/Oデー
タバスに処理を移すまで多くの時間を必要とし、複数の
I/Oデータバスを接続するに際して処理の遅延を来す
という問題を生じていた。
Normally, data transfer is performed when A, B, C, and D of the data buffer are full, but if they are not full for some reason, dummy data "0" is input to make the buffer appear full and data transfer is performed. Let's do it. -On the other hand, when using multiple I/O data buses (DB, ~DB,, etc.) in a time-sharing manner, if one I/O data bus is monopolized for a long time, the bus will be forcibly used by a command from the processor. was stopped. For example, when transferring data that was not transferred and remained in the data buffer because it does not match the memory boundary to memory, the processor transfers dummy data to an empty area in the data buffer, for example, as described above. C,D
Count and set the number of data, fill the data buffer, and transfer. In this case, if there is less remaining data, the amount of dummy data will increase, and the processor will take more time to process it. Therefore, it takes a lot of time to transfer processing to another I/O data bus, causing a problem of processing delays when connecting a plurality of I/O data buses.

本発明の目的は、DMAコントローラ内にデータ転送の
一時停止機能およびデータ強制転送のためのダミー送出
機能を持つことにより、他のI/Oデータバスに処理を
速やかに移すことを可能とし、データ転送処理の効率化
を図ることにある。
An object of the present invention is to provide a data transfer temporary stop function and a dummy sending function for forced data transfer in a DMA controller, so that processing can be quickly transferred to another I/O data bus, and data The purpose is to improve the efficiency of transfer processing.

〔課題を解決するための手段および作用〕第1図は本発
明の原理構成図である。図に示すように、本発明によれ
ば、中央処理装置(CPU)の配下にシステムバス(S
B)を介してメモリ(MEM)、アダプタ(ADP)等
が接続され、アダプタを介して複数の入出力装置(Il
o)が接続されるデータ処理システムにおける前記アダ
プタ内のデータバッファ(DBU)のデータ転送を制御
するバッファ制御方式において、前記アダプタ内のDM
Aコントローラ(DMA −CNT)に、前記メモリへ
のデータ転送を強制的に一時中断させる制御手段(A)
と、前記データバッファ内のデータを前記メモリのバウ
ンダリ条件に合せて補正し、ダミーデータをセットした
後、前記メモリへ強制的にデータの送出を行なう指示手
段(B)とを備え、前記データバッファを複数のI/O
データバスが共用する構成において、他のI/Oデータ
バスに一定時間後に強制的に処理を移すようにしたこと
を特徴とする。
[Means and operations for solving the problems] FIG. 1 is a diagram showing the basic configuration of the present invention. As shown in the figure, according to the present invention, a system bus (S
Memory (MEM), adapter (ADP), etc. are connected through B), and multiple input/output devices (Il) are connected through the adapter.
o) in a buffer control method for controlling data transfer of a data buffer (DBU) in the adapter in a data processing system to which a DM in the adapter is connected;
Control means (A) for forcing the A controller (DMA-CNT) to temporarily suspend data transfer to the memory;
and instruction means (B) for forcibly sending the data to the memory after correcting the data in the data buffer according to the boundary condition of the memory and setting dummy data. multiple I/O
In a configuration in which data buses are shared, processing is forcibly transferred to another I/O data bus after a certain period of time.

〔実施例〕〔Example〕

第2図は本発明に係るバッファ制御を行なうためにDM
Aコントローラ内に設けられた転送制御回路である。図
に示す如く、転送制御回路Tはフリップフロップ回路F
F、〜FF3およびAND回路により構成される。
FIG. 2 shows the DM for buffer control according to the present invention.
This is a transfer control circuit provided in the A controller. As shown in the figure, the transfer control circuit T is a flip-flop circuit F.
It is composed of F, ~FF3 and an AND circuit.

このような構成において、各フリップフロップへの人出
力信号は次の如き機能を有する。尚、*印は反転信号で
あることを示す。即ち、*畦に−MS−STR,メモリ
にデータ転送中BP−WRK、DMAコントローラがデ
ータバッファに一連のデータを転送中、 5TP−BP−5ET−PF 、データバッファへのダ
ミーをセット * IIF−FL、データバッファの格納状態0F−S
TR−FLG、データ転送の起動フラグBP−5TP−
FLG、データ転送の停止指示フラグを示している。尚
、信号BP−WRKは停止指示完了後オフとなり、信号
BP−STR−FLGは信号BP−5TP−PFがオン
の場合は、オフ指示により強制データ取込み起動フラグ
となる。また、5ET−BP−CNTはバ・ソファ・コ
ントロール・レジスタのセットパルスである。
In such a configuration, the human output signal to each flip-flop has the following function. Note that the * mark indicates an inverted signal. That is, *Round - MS-STR, data is being transferred to memory BP-WRK, DMA controller is transferring a series of data to data buffer, 5TP-BP-5ET-PF, setting dummy to data buffer * IIF- FL, data buffer storage status 0F-S
TR-FLG, data transfer start flag BP-5TP-
FLG indicates a data transfer stop instruction flag. Note that the signal BP-WRK is turned off after the stop instruction is completed, and the signal BP-STR-FLG becomes a forced data retrieval activation flag due to the off instruction when the signal BP-5TP-PF is on. Further, 5ET-BP-CNT is a set pulse for the bath sofa control register.

AND回路へはFF+の出力信号* BF−5TR−F
LGSPF!の出力信号BF−5TP−FLG、 FF
3の出力信号*5TP−11F−SF!T−FF等が人
力され、さらにバッファ監視レジスタから信号* BF
−PLが入力される。AND回路はこれらの信号が一致
したときのみダミーデータをセットする起動をFF3に
対して行ない、F1?3はデータバッファヘダミセット
信号* 5TP−BF−SET−FFを出力する。
FF+ output signal to AND circuit* BF-5TR-F
LGSPF! Output signal of BF-5TP-FLG, FF
3 output signal *5TP-11F-SF! T-FF, etc. are input manually, and furthermore, a signal is sent from the buffer monitoring register * BF
-PL is input. The AND circuit activates FF3 to set dummy data only when these signals match, and F1?3 outputs a dummy set signal *5TP-BF-SET-FF to the data buffer.

第3図は本発明に係る信号タイムチャー[・である。FIG. 3 is a signal time chart according to the present invention.

(1)、データ転送の起動 プロセッサはDMAコントローラに対してデータ転送の
スタート指示を行なう。プロセッサから信号5ET−B
P−CNTOが発せられ、信号BF−3TR−FLGが
オンとなりデータ転送を開始する。
(1) Starting data transfer The processor instructs the DMA controller to start data transfer. Signal 5ET-B from processor
P-CNTO is issued, and signal BF-3TR-FLG is turned on to start data transfer.

(2)、データ転送の開始 I/OデータバスからのAデータの転送要求信号(RE
口)により、AバッファおよびFAフラグがセットされ
る。そして、転送要求に対する応答信号(ACK)を返
送する。これらの動作は、次のBデータの転送要求に対
しても同様に行なわれる。
(2) Start data transfer A data transfer request signal (RE) from the I/O data bus
) sets the A buffer and FA flag. Then, a response signal (ACK) to the transfer request is returned. These operations are similarly performed for the next B data transfer request.

(3)、  データ転送の中断 複数のI/Oデータバスを1つのDMAコントローラで
行なう関係上、時分割でデータ転送を行なう必要がある
。そのため、プロセッサは、(2)の動作において、一
定時間内にデータ転送が終結しないとき、DMAコント
ローラに対して転送の中断指示を行なう。この場合、プ
ロセッサから信号5ET−BP−CNTIが発生し、信
号BP−STP−FLGがオンとなる。
(3) Interruption of data transfer Since multiple I/O data buses are handled by one DMA controller, it is necessary to transfer data in a time-sharing manner. Therefore, in operation (2), when the data transfer is not completed within a certain period of time, the processor instructs the DMA controller to interrupt the transfer. In this case, the signal 5ET-BP-CNTI is generated from the processor and the signal BP-STP-FLG is turned on.

(4)、転送中断後のりカバリ−処理 プロセンサはフラグ情報をDMAコントローラから読み
出し、次転送のためのりカバリ−処理を行なう。
(4) Recovery processing after transfer interruption The processor reads flag information from the DMA controller and performs recovery processing for the next transfer.

(5)、  データバッファ内のデータのメモリへの強
制送信指示 プロセッサはりカバリ−処理後バッファ内部データをメ
モリへ転送するため、信号BP−5TR−FLGをオフ
する。
(5) Instructing the processor to forcefully transmit data in the data buffer to the memory After the recovery process, the signal BP-5TR-FLG is turned off in order to transfer the buffer internal data to the memory.

(6)、  データバッファへのダミーデータセット及
びメモリへのデータ転送 メモリアドレスへのバウンダリ制御を行なう必要がある
ため、信号BP−5TR−FLGがオフで、信号BP−
5TP−FLGがオンの条件と、バッファフルでない条
件とを合せることによって信号5TP−BP−5ET−
1iFがオンし、ダミーのデータ/フラグがセットされ
る。
(6) Since it is necessary to set dummy data to the data buffer and transfer data to the memory, it is necessary to perform boundary control to the memory address, so the signal BP-5TR-FLG is off and the signal BP-5TR-FLG is off.
By combining the condition that 5TP-FLG is on and the condition that the buffer is not full, the signal 5TP-BP-5ET-
1iF is turned on and dummy data/flag is set.

尚、繰返し実行後バッファがフルになるとメモリにデー
タが送出され一連の処理を終了する。
Note that when the buffer becomes full after repeated execution, the data is sent to the memory and the series of processing ends.

[発明の効果〕 以上説明したように、本発明によればアダプタ内のマイ
クロプロセッサでのデータ送出処理、即ち、データバッ
ファ内のデータのメモリへの強制送信及びデータバッフ
ァへのダミーデータセットとメモリへのデータ転送等の
処理、を行なう時間が大幅に削減され、有効なりMAコ
ントロール及びバッファ使用が可能となり、処理効率の
向上した複数I/Oデータ制御アダプタが実現できる。
[Effects of the Invention] As described above, according to the present invention, the microprocessor in the adapter performs data transmission processing, that is, forced transmission of data in the data buffer to memory, and setting of dummy data to the data buffer and memory. The time required to perform processing such as data transfer to is significantly reduced, effective MA control and buffer use become possible, and a multiple I/O data control adapter with improved processing efficiency can be realized.

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

第1図は本発明の原理構成図、 第2図は本発明に係るDMAコントローラの要部構成図
、 第3図は本発明の信号タイミングチャート、および、 第4図はアダプタを含むシステム構成図である。 (符号の説明) cpu・・・中央処理装置 MEM・・・メモリ SR・・・システムバス ADP・・・アダプタ MPU・・・マイクロプロセッサ DMA−CNT・・・DMA コントローラDBU・・
・データバッファ 18・・・内部バス Ilo・・・入出力装置 本発明の原理構成図 第1図
FIG. 1 is a diagram showing the principle of the present invention; FIG. 2 is a diagram showing the main parts of a DMA controller according to the present invention; FIG. 3 is a signal timing chart of the present invention; and FIG. 4 is a system diagram including an adapter. It is. (Explanation of symbols) cpu...Central processing unit MEM...Memory SR...System bus ADP...Adapter MPU...Microprocessor DMA-CNT...DMA Controller DBU...
・Data buffer 18...Internal bus Ilo...Input/output device Fig. 1: Principle configuration diagram of the present invention

Claims (1)

【特許請求の範囲】 1、中央処理装置(CPU)の配下にシステムバス(S
B)を介してメモリ(MEM)、アダプタ(ADP)等
が接続され、アダプタを介して複数の入出力装置(I/
O)が接続されるデータ処理システムにおける前記アダ
プタ内のデータバッファ(DBU)のデータ転送を制御
するバッファ制御方式において、前記アダプタ内のDM
Aコントローラ(DMA−CNT)に、前記メモリへの
データ転送を強制的に一時中断させる制御手段(A)と
、 前記データバッファ内のデータを前記メモリのバウンダ
リ条件に合せて補正し、ダミーデータをセットした後、
前記メモリへ強制的にデータの送出を行なう指示手段(
B)とを備え、 前記データバッファを複数のI/Oデータバスが共用す
る構成において、他のI/Oデータバスに一定時間後に
強制的に処理を移すようにしたことを特徴とするバッフ
ァ制御方式。
[Claims] 1. A system bus (S) under the central processing unit (CPU)
Memory (MEM), adapter (ADP), etc. are connected through B), and multiple input/output devices (I/O) are connected through the adapter.
O) in a buffer control method for controlling data transfer of a data buffer (DBU) in the adapter in a data processing system to which a DM in the adapter is connected.
A control means (A) for forcing the A controller (DMA-CNT) to temporarily suspend data transfer to the memory; After setting,
instruction means for forcibly sending data to the memory (
B), in a configuration in which the data buffer is shared by a plurality of I/O data buses, the buffer control is characterized in that processing is forcibly transferred to another I/O data bus after a certain period of time. method.
JP4412788A 1988-02-29 1988-02-29 Buffer control system Granted JPH01219942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4412788A JPH01219942A (en) 1988-02-29 1988-02-29 Buffer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4412788A JPH01219942A (en) 1988-02-29 1988-02-29 Buffer control system

Publications (2)

Publication Number Publication Date
JPH01219942A true JPH01219942A (en) 1989-09-01
JPH0474747B2 JPH0474747B2 (en) 1992-11-27

Family

ID=12682946

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4412788A Granted JPH01219942A (en) 1988-02-29 1988-02-29 Buffer control system

Country Status (1)

Country Link
JP (1) JPH01219942A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5901291A (en) * 1996-10-21 1999-05-04 International Business Machines Corporation Method and apparatus for maintaining message order in multi-user FIFO stacks

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5901291A (en) * 1996-10-21 1999-05-04 International Business Machines Corporation Method and apparatus for maintaining message order in multi-user FIFO stacks

Also Published As

Publication number Publication date
JPH0474747B2 (en) 1992-11-27

Similar Documents

Publication Publication Date Title
US20070240011A1 (en) FIFO memory data pipelining system and method for increasing I²C bus speed
JPH01237864A (en) Dma transfer controller
JPS623362A (en) Data reception system
JPH01219942A (en) Buffer control system
JPH04323755A (en) Dma device
JP2718690B2 (en) Communication control system
JP2001014266A (en) Dma transfer circuit and dma transfer method
JPS61251252A (en) Processing method for data transfer
JPS61250758A (en) Communication controller
JPH06332848A (en) Data transfer system
JPH03262063A (en) Bus control circuit for dma transfer
JPH0426744B2 (en)
JP2513037B2 (en) Micro computer
JP2581041B2 (en) Data processing device
JPH02210932A (en) Controller
JP2002222161A (en) Semiconductor device, and method of transferring data
JPS63153635A (en) Specification system for data transfer speed
JPS5923659A (en) Data transmission controller
JPS60136853A (en) Data transfer system
JP2002024160A (en) Dma transfer device
JPS61260743A (en) Communication control equipment
JPH02214960A (en) Input/output system
JPS63300346A (en) Dma control system
JPH0227405A (en) Programmable controller
JPS61117654A (en) Information transfer synchronizing system between processors