JPH0474747B2 - - Google Patents

Info

Publication number
JPH0474747B2
JPH0474747B2 JP4412788A JP4412788A JPH0474747B2 JP H0474747 B2 JPH0474747 B2 JP H0474747B2 JP 4412788 A JP4412788 A JP 4412788A JP 4412788 A JP4412788 A JP 4412788A JP H0474747 B2 JPH0474747 B2 JP H0474747B2
Authority
JP
Japan
Prior art keywords
data
dma controller
memory
buffer
data 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.)
Expired
Application number
JP4412788A
Other languages
Japanese (ja)
Other versions
JPH01219942A (en
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 filed Critical
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)

Description

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

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

本発明は、データ処理システムにおいて中央処
理装置にシステムバスを介して接続されるアダプ
タ内のデータバツフアのデータ転送を強制する
DMAコントローラ装置に関し、特に、アダプタ
内において、DMAコントローラを含むデータバ
ツフアを、複数の入出力データバスにより共用す
る場合のデータバツフアの切り換え制御に有効な
DMAコントローラ装置に関する。
The present invention forces data transfer in a data buffer in an adapter connected to a central processing unit via a system bus in a data processing system.
Regarding DMA controller devices, this is particularly effective for data buffer switching control when a data buffer including a DMA controller is shared by multiple input/output data buses within an adapter.
Relating to a DMA controller device.

〔従来の技術および発明が解決しようとする課題〕[Problems to be solved by conventional technology and invention]

第4図はアダプタを含むデータ処理システム構
成図である。図に示す如く、中央処理装置
(CPU)の配下にシステムバスSBを介してメモ
リMEM、アダプタADPが接続されアダプタを介
して入出力装置I/Oが接続される。アダプタは
CPUとI/O間のデータ転送、メモリとI/O
間のDMA転送を円滑に行なうための制御機能を
有する。アダプタの内部は、通常、マイクロプロ
セツサMPUと、内部バスIBを介して接続される
DMAコントローラDMA−CNTと、データを一
時格納するデータバツフアDBUと、各I/Oに
接続される複数のI/O制御部I/O−CNTに
より構成される。
FIG. 4 is a configuration diagram of a data processing system including an adapter. As shown in the figure, a memory MEM and an adapter ADP are connected under a central processing unit (CPU) via a system bus SB, and an input/output device I/O is connected via the adapter. The adapter is
Data transfer between CPU and I/O, memory and I/O
It has a control function to smoothly perform DMA transfer between The internals of the adapter are usually connected to the microprocessor MPU via the internal bus IB.
It is composed of a DMA controller DMA-CNT, a data buffer DBU for temporarily storing data, and a plurality of I/O control units I/O-CNT connected to each I/O.

このような構成において、DMAコントローラ
はデータバツフアの小領域A,B,C,Dのデー
タ格納状態を監視するためレジスタ内にバツフア
監視フラグFA,FB,FC,FDを設け、内部バス
を介してプロセツサはこれらのフラグの状態を監
視する。通常、データバツフアのA,B,C,D
が充足されるとデータ転送が行なわれるが、何ら
かの要因で充足していないときはダミーデータ
“0”を入力して見かけ上充足してデータ転送を
行なう。一方、複数のI/OデータバスDB1
DBoを時分割で使用する場合に、ある1つのI/
Oデータバスが長時間専有するとプロセツサから
の指令により強制的にバス使用を停止させてい
た。また、例えば、メモリバウンダリと合わない
ために転送されずデータバツフア内に残つたデー
タをメモリに転送す場合には、前述の如く、プロ
セツサがダミーデータをデータバツフア内の空い
ている領域、例えばC,Dにデータ数をカウント
してセツトし、データバツフアを充足して転送す
る。この場合に、残つたデータが少なければダミ
ーデータの量が多くなりその分プロセツサの処理
に時間を要することになる。従つて、他のI/O
データバスに処理を移すまで多くの時間を必要と
し、複数のI/Oデータバスを接続するに際して
処理の遅延を来すという問題を生じていた。
In such a configuration, the DMA controller provides buffer monitoring flags FA, FB, FC, and FD in the registers to monitor the data storage status of small areas A, B, C, and D of the data buffer, and communicates with the processor via the internal bus. monitors the state of these flags. Usually, data buffer A, B, C, D
If it is satisfied, data transfer is performed, but if it is not satisfied for some reason, dummy data "0" is input and data transfer is performed with the data being apparently satisfied. On the other hand, multiple I/O data buses DB 1 ~
When using DB o in time division, one I/O
When the O data bus is occupied for a long time, bus use is forcibly stopped by a command from the processor. Also, for example, when transferring data that was not transferred and remained in the data buffer because it does not match the memory boundary to the memory, the processor transfers dummy data to an empty area in the data buffer, such as C, D, as described above. The number of data is counted and set, the data buffer is filled, and the data is transferred. In this case, if the remaining data is small, the amount of dummy data will increase, and the processor will take more time to process it. Therefore, other I/O
It takes a lot of time to transfer the processing to the 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 DMA controller with a data transfer temporary stop function and a dummy sending function for forced data transfer, so that other I/O
The object of the present invention is to make it possible to quickly transfer processing to the O data bus and to improve the efficiency of data transfer processing.

〔課題を解決するための手段および作用〕[Means and actions for solving the problem]

第1図は本発明の原理構成図である。図に示す
ように、本発明によれば、中央処理装置CPUの
配下にシステムバスSBを介してメモリMEM及
びアダプタADPを接続し、該アダプタはDMAコ
ントローラ装置とデータバツフアを有し、該デー
タバツフアを複数の入出力装置I/Oが共用して
なるデータ処理システムにおいて、前記DMAコ
ントローラ装置は、前記データバツフア内の小領
域A,B,C,D毎のデータ格納状態を監視する
対応した小領域毎のフラグFA,FB,FC,FDを
保持するレジスタと、前記小領域の何れかに空き
があるために、前記データバツフアから前記メモ
リへのデータ転送が一定時間内に終了しないとき
に、前記データ転送を強制的に一時中断させる制
御手段Aと、前記レジスタに保持されている前記
フラグを読出して、空いている小領域にダミーデ
ータをセツトして前記中断を解除し、かつ前記デ
ータバツフアから前記メモリへデータの強制的な
再転送を指示する指示手段Bとを具備することを
特徴とする。
FIG. 1 is a diagram showing the principle configuration of the present invention. As shown in the figure, according to the present invention, a memory MEM and an adapter ADP are connected under a central processing unit CPU via a system bus SB, and the adapter has a DMA controller device and a data buffer, and a plurality of data buffers are connected to each other. In a data processing system in which input/output devices I/O are shared, the DMA controller device monitors the data storage state of each of the small areas A, B, C, and D in the data buffer. When data transfer from the data buffer to the memory is not completed within a certain period of time because there is free space in either the register holding the flags FA, FB, FC, or FD, or in the small area, the data transfer is stopped. A control means A forcibly suspends the operation, reads the flag held in the register, sets dummy data in a small vacant area, cancels the suspension, and transfers data from the data buffer to the memory. and an instruction means B for instructing forced retransfer of the information.

〔実施例〕〔Example〕

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

このような構成において、各フリツプフロツプ
への入出力信号は次の如き機能を有する。尚、*
印は反転信号であることを示す。即ち、 *WRK−MS−STR;メモリにデータ転送中 BF−WRK;DMAコントローラがデータバ
ツフアに一連のデータを転送中、 STP−BF−SET−FF;データバツフアへ
のダミーをセツト *BF−FL;データバツフアの格納状態 BF−STR−FLG;データ転送の起動フラグ BF−STP−FLG;データ転送の停止指示フ
ラグ を示している。尚、信号BF−WRKは停止指示
完了後オフとなり、信号BF−STR−FLGは信号
BF−STP−FFがオンの場合は、オフ指示により
強制データ取込み起動フラグとなる。また、
SET−BF−CNTはバツフア・コントロール・レ
ジスタのセツトパルスである。AND回路へは
FF1の出力信号*BF−STR−FLG,FF2の出力
信号BF−STP−FLG、FF3の出力信号*STP−
BF−SET−FF等が入力され、さらにバツフア監
視レジスタから信号*BF−FLが入力される。
AND回路はこれらの信号が一致したときのみダ
ミーデータをセツトする起動をFF3に対して行な
い、FF3はデータバツフアへダミセツト信号*
STP−BF−SET−FFを出力する。
In such a configuration, the input/output signals to each flip-flop have the following functions. still,*
The mark indicates an inverted signal. That is, *WRK-MS-STR; Transferring data to memory BF-WRK; DMA controller transferring a series of data to data buffer STP-BF-SET-FF; Setting dummy to data buffer *BF-FL; Data buffer storage state BF-STR-FLG; data transfer start flag BF-STP-FLG; indicates a data transfer stop instruction flag. Note that the signal BF-WRK turns off after the stop instruction is completed, and the signal BF-STR-FLG turns off.
When BF-STP-FF is on, it becomes a forced data capture start flag due to an off instruction. Also,
SET-BF-CNT is the buffer control register set pulse. To the AND circuit
FF 1 output signal *BF-STR-FLG, FF 2 output signal BF-STP-FLG, FF 3 output signal *STP-
BF-SET-FF, etc. are input, and a signal *BF-FL is input from the buffer monitoring register.
The AND circuit activates FF 3 to set dummy data only when these signals match, and FF 3 sends the dummy set signal* to the data buffer.
Outputs STP-BF-SET-FF.

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

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

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

(3) データ転送中の中断 複数のI/Oデータバスを1つのDMAコント
ローラで行なう関係上、時分割でデータ転送を行
なう必要がある。そのため、プロセツサは、(2)の
動作において、一定時間内にデータ転送が終結し
ないとき、DMAコントローラに対して転送の中
断指示を行なう。この場合、プロセツサから信号
SET−BF−CNT1が発生し、信号BF−STP−
FLGがオンとなる。
(3) Interruption during data transfer Because multiple I/O data buses are handled by one DMA controller, data must be transferred in a time-sharing manner. Therefore, in operation (2), if 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 from the processor
SET−BF−CNT1 is generated, and the signal BF−STP−
FLG turns on.

(4) 転送中断後のリカバリー処理 プロセツサはフラグ情報をDMAコントローラ
から読み出し、次転送のための即ち、中断したデ
ータ転送を解除しデータバツフアからメモリへ再
転送を行う再転送処理、を行なう。
(4) Recovery processing after transfer interruption The processor reads flag information from the DMA controller and performs retransfer processing for the next transfer, that is, cancels the interrupted data transfer and retransfers from the data buffer to memory.

(5) データバツフア内のデータのメモリへの強制
送信指示 プロセツサはリカバリー処理後バツフア内部デ
ータをメモリへ転送するため、信号BF−STR−
FLGをオフする。
(5) Instructions for forced transmission of data in the data buffer to memory In order to transfer the buffer internal data to memory after recovery processing, the processor sends a signal BF-STR-
Turn off FLG.

(6) データバツフアへのダミーデータセツト及び
メモリへのデータ転送 メモリアドレスへのバウンダリ制御を行なう必
要があるため、信号BF−STR−FLGがオフで、
信号BF−STP−FLGがオンの条件と、バツフア
フルでない条件とを合せることによつて信号
STP−BF−SET−FFがオンし、ダミーのデー
タ/フラグがセツトされる。尚、繰返し実行後バ
ツフアがフルになるとメモリにデータが送出され
一連の処理を終了する。
(6) Setting dummy data to the data buffer and transferring data to the memory Since it is necessary to perform boundary control to the memory address, the signals BF-STR-FLG are off.
The signal BF-STP-FLG is
STP-BF-SET-FF is turned on and dummy data/flags are set. Note that when the buffer becomes full after repeated execution, the data is sent to the memory and the series of processing ends.

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

以上説明したように、本発明によればアダプタ
内のマイクロプロセツサでのデータ送出処理、即
ち、データバツフア内のデータのメモリへの強制
送信及びデータバツフアへのダミーデータセツト
とメモリへのデータ転送等の処理、を行なう時間
が大幅に削減され、有効なDMAコントロール及
びバツフア使用が可能となり、処理効率の向上し
た複数I/Oデータ制御アダプタが実現できる。
As explained 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, setting of dummy data to the data buffer, and data transfer to memory. The time required for processing is significantly reduced, effective DMA 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…メ
モリ、SB…システムバス、ADP…アダプタ、
MPU…マイクロプロセツサ、DMA−CNT…
DMAコントローラ、DBU…データバツフア、
IB…内部バス、I/O…入出力装置。
FIG. 1 is a diagram showing the principle configuration 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 configuration diagram including an adapter. It is. Explanation of symbols, CPU...central processing unit, MEM...memory, SB...system bus, ADP...adapter,
MPU...Microprocessor, DMA-CNT...
DMA controller, DBU...data buffer,
IB...internal bus, I/O...input/output device.

Claims (1)

【特許請求の範囲】 1 中央処理装置CPUの配下にシステムバスSB
を介してメモリMEM及びアダプタADPを接続
し、該アダプタはDMAコントーラ装置とデータ
バツフアを有し、該データバツフアを複数の入出
力装置I/Oが共用してなるデータ処理システム
において、 前記DMAコントローラ装置は、 前記データバツフア内の小領域A,B,C,D
毎のデータ格納状態を監視する対応した小領域毎
のフラグFA,FB,FC,FDを保持するレジスタ
と、 前記小領域の何れかに空きがあるために、前記
データバツフアから前記メモリへのデータ転送が
一定時間内に終了しないときに、前記データ転送
を強制的に一時中断させる制御手段Aと、 前記レジスタに保持されている前記フラグを読
出して、空いている小領域にダミーデータをセツ
トして前記中断を解除し、かつ前記データバツフ
アから前記メモリへデータの強制的な再転送を指
示する指示手段Bとを具備することを特徴とする
DMAコントローラ装置。
[Claims] 1. A system bus SB under the central processing unit CPU.
A data processing system in which a memory MEM and an adapter ADP are connected via a DMA controller device, the adapter has a DMA controller device and a data buffer, and the data buffer is shared by a plurality of input/output devices I/O, wherein the DMA controller device is , small areas A, B, C, D in the data buffer
registers that hold flags FA, FB, FC, and FD for each corresponding small area to monitor the data storage status of each area, and data transfer from the data buffer to the memory because there is free space in any of the small areas. control means A forcibly suspending the data transfer when the data transfer is not completed within a certain period of time; and a control means A that reads the flag held in the register and sets dummy data in a vacant small area. The present invention is characterized by comprising instruction means B for canceling the interruption and instructing forced retransfer of data from the data buffer to the memory.
DMA controller device.
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 JPH01219942A (en) 1989-09-01
JPH0474747B2 true 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)

Families Citing this family (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
JPH01219942A (en) 1989-09-01

Similar Documents

Publication Publication Date Title
KR970001919B1 (en) System and method for transfering information between multiple buses
JPH0474747B2 (en)
JPH04323755A (en) Dma device
JPS60136853A (en) Data transfer system
JPH05314061A (en) Bus interface control system
JPS5920128B2 (en) input/output control device
JP2000285087A (en) Method for data communication between nodes
JPS62145345A (en) Control system for direct memory access interval
JPH05210617A (en) Bus extending device
JPH0120459B2 (en)
JPH11238035A (en) Method and device for input and output control
JPH03262063A (en) Bus control circuit for dma transfer
JPH05233525A (en) Input/otuput processor
JPS61166669A (en) Processor control system
JPH02120961A (en) Inter-memory data transfer system
JPH0227405A (en) Programmable controller
JPH04367059A (en) Data transfer system
JPH02224048A (en) Information processor
JPS60147866A (en) Control system of bus
JPS63228255A (en) Bus relay device
JPS63245712A (en) Data transfer control system between external storage devices
JPH0362249A (en) Data processor
JPH04192028A (en) Control system for data sent to printer
JPH064462A (en) Bus coupling system
JPH08101810A (en) Bus control method