JPH01163864A - Scsi host adapter - Google Patents

Scsi host adapter

Info

Publication number
JPH01163864A
JPH01163864A JP32335887A JP32335887A JPH01163864A JP H01163864 A JPH01163864 A JP H01163864A JP 32335887 A JP32335887 A JP 32335887A JP 32335887 A JP32335887 A JP 32335887A JP H01163864 A JPH01163864 A JP H01163864A
Authority
JP
Japan
Prior art keywords
data
host adapter
flag
fifo
dma
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
JP32335887A
Other languages
Japanese (ja)
Other versions
JPH073663B2 (en
Inventor
Susumu Nakamura
晋 中村
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP62323358A priority Critical patent/JPH073663B2/en
Publication of JPH01163864A publication Critical patent/JPH01163864A/en
Publication of JPH073663B2 publication Critical patent/JPH073663B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To improve performance efficiently by inputting the disconnecting signal of a microprocessor and a flag from a FIFO storing the data of a constant quantity to an SCSI host adapter, and deciding the execution or interruption of a DMA action. CONSTITUTION:In an SCSI (Small Computer System Interface) host adapter 2 having a First In First Out (FIFO) memory 21 used as a data buffer at the time of a direct memory access (DMA), a DMA action is controlled by a data quantity in the FIFO 21. That is, the SCSI host adapter 2 inputs a disconnecting signal DISCON 'H' of a microprocessor 23 and a flag FLAG from the FIFO 21 storing the data of the constant quantity, and decides the execution or the interruption of the DMA action. Thus, the data to be discarded at the time of disconnection is made smaller, and a performance down at the time of the disconnection can be suppressed to a minimum.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、ホスト計X機と、ディスク装置、テープ装置
等の複数のデバイスとの通信動作に関与し、ダイレクト
・メモリ・アクセス(以下DMAと呼ぶ)の際にデータ
・バッファとして用いられる先入れ先出しメモリ(Fi
rst  In FirstOUtメモリ;以下FIF
Oと呼ぶ)を有するSC8I (Small  Com
puter System Interface)ホス
ト・アダプタの改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to communication operations between a total of X hosts and multiple devices such as disk devices and tape devices, and uses direct memory access (hereinafter referred to as DMA). First-in, first-out memory (Fi
rst In FirstOUT memory; hereafter FIF
SC8I (Small Com
This invention relates to improvements to host adapters (Puter System Interface).

〈従来の技術〉 上記のような5C3Iホスト・アダプタを計算機システ
ムに用いた例を第2図に表わす。
<Prior Art> FIG. 2 shows an example in which the above-mentioned 5C3I host adapter is used in a computer system.

この図のシステムは、プロセッサμpHとメモリRAM
12を有するホスト計算1ilcPUIと、システム・
バスSBを介して接続されるFIFO21を有する5C
3Iホスト・アダプタ2と、入出力バスである5cst
バスBに接続される複数のデバイス即ちディスク装置3
1.テープ装置32とから構成される。
The system in this figure consists of a processor μpH and a memory RAM
The host compute 1ilcPUI with 12 and the system
5C with FIFO21 connected via bus SB
3I host adapter 2 and 5cst input/output bus
A plurality of devices connected to bus B, that is, disk devices 3
1. It is composed of a tape device 32.

5C3Iホスト・アダプタ2は、内部のFIF021を
データ・バッファとして、CPUI内のRAM12とデ
ィスク装置31またはテープ装置32との間でDMA転
送を制御している。
The 5C3I host adapter 2 controls DMA transfer between the RAM 12 in the CPUI and the disk device 31 or tape device 32 using the internal FIF 021 as a data buffer.

〈発明が解決しようとする問題点〉 ここで、5C3Iホスト・アダプタ2がPIF021を
用いてRAM12とテープ装置32との間でデータ転送
している場合を想定する。
<Problems to be Solved by the Invention> Here, it is assumed that the 5C3I host adapter 2 uses the PIF021 to transfer data between the RAM 12 and the tape device 32.

このとき、何等かの理由により、テープ装置t32との
データ転送を中断して、先にディスク装置31ヘデータ
転送を行う要求が発生したとする。
At this time, assume that for some reason a request is generated to interrupt data transfer with the tape device t32 and transfer data to the disk device 31 first.

尚、デバイス(この例ではテープ装置32またはディス
ク装!31)とのデータ転送を中断する機能をディスコ
ネクト機能と呼ぶ。
Note that the function of interrupting data transfer with a device (in this example, the tape device 32 or disk device 31) is called a disconnect function.

この場合、F I FO21内部にテープ装置32へ転
送すべきデータが既に大量に格納されていたとすると、
5C3Iホスト・アダプタ2はディスク装置31へ転送
すべきデータを新たに取り込むため、F I FO21
内のデータを全て捨てなければならず、パフォーマンス
・ダウンにつながるという問題があった。
In this case, assuming that a large amount of data to be transferred to the tape device 32 is already stored inside the FIFO 21,
In order to newly import data to be transferred to the disk device 31, the 5C3I host adapter 2 uses the F I FO21
There was a problem in that all the data inside had to be discarded, which led to a drop in performance.

即ち、ディスコネクト時にFIFO内のデータを捨てる
とすると、このデータをCPU側から取り込むために要
したシステム・バス占有時間が全く無駄となるわけであ
る。
That is, if the data in the FIFO is discarded at the time of disconnection, the system bus occupation time required to fetch this data from the CPU side is completely wasted.

本発明は以上の問題を解決しようとしてなされたもので
あり、システムのパフォーマンスの効率の向上を図るこ
とを目的とする。
The present invention has been made to solve the above problems, and aims to improve the efficiency of system performance.

く問題を解決するための手段〉 本発明は、FIFO内のデータ量によってD MA動作
を制御するものであり、その構成は次の通りである。
Means for Solving Problems> The present invention controls a DMA operation based on the amount of data in a FIFO, and its configuration is as follows.

即ち、本発明は、ホスト計算機と複数のデバイスとの通
信動作に関与し、ダイレクト・メモリ・アクセスの際に
データ・バッファとして用いられる先入れ先出しメモリ
を有する5C3Iホスト・アダプタにおいて、前記先入
れ先出しメモリに一定量のデータが格納されるとフラグ
が出力されるようにし、このフラグとマイクロプロセッ
サから与えられるディスコネクト信号とよりダイレクト
・メモリ・アクセス動作を制御する制御部を設けたこと
を特徴とする5C3Iホスト・アダプタである。
That is, the present invention provides a 5C3I host adapter that is involved in communication operations between a host computer and a plurality of devices and that has a first-in, first-out memory that is used as a data buffer during direct memory access. The 5C3I host computer is characterized in that a flag is output when the data is stored, and a control section is provided for controlling the direct memory access operation based on this flag, a disconnect signal given from a microprocessor, and a disconnect signal given from a microprocessor. It's an adapter.

く作用〉 本発明の5C3Iホスト・アダプタは、マイクロプロセ
ッサのディスコネクト信号と、一定量のデータを格納し
たFIFOからのフラグを入力し−DMA動作の実行ま
たは中断を決定する。
The 5C3I host adapter of the present invention inputs a microprocessor disconnect signal and a flag from a FIFO containing a certain amount of data to determine whether to perform or suspend a DMA operation.

〈実施例〉 第1図に本発明を実施した5C3Iホスト・アダプタの
例を示す。
<Embodiment> FIG. 1 shows an example of a 5C3I host adapter in which the present invention is implemented.

この図において、21はFIFOであり、内部のデータ
量がある一定量に達したら“H”となるフラグFLAG
を送出する9例えば−FIFO21の全容量を32にバ
イトとし、データ量が2にバイト時点でFLAG″H”
を送出するものとする。
In this figure, 21 is a FIFO, and a flag FLAG becomes "H" when the amount of internal data reaches a certain amount.
For example, if the total capacity of FIFO 21 is set to 32 bytes, and the data amount is 2 bytes, FLAG "H" is sent.
shall be sent.

22はダイレクト・メモリ・アクセス・コントローラD
MACであり、F I FO21を経由して行われるデ
ータ転送を制御する。信号REQはDM A C22に
対するリクエスト信号であり、RE万=“L”でDMA
C22はデータ転送を行う。
22 is a direct memory access controller D
It is a MAC and controls data transfer performed via FIFO21. The signal REQ is a request signal for the DMA C22, and when RE = “L”, the DMA
C22 performs data transfer.

23はマイクロプロセッサMPUであり、CPU1から
データ転送に伴う各種のパラメータを受は取りDMAC
22の制御その他を行う、また、MPU23は、ディス
コネクト機能をサポートするデバイスがこの5C3Iホ
スト・アダプタ2に接続された場合、そのデバイスへデ
ータ転送を行う際に常にディスクコネクト信号D I 
5CON“H”を送出する。
23 is a microprocessor MPU, which receives various parameters associated with data transfer from the CPU 1 and sends them to the DMAC.
In addition, when a device that supports the disconnect function is connected to this 5C3I host adapter 2, the MPU 23 always sends the disk connect signal DI when transferring data to that device.
Sends 5CON “H”.

24は制御部であり、第1のゲート回路g1と、第2の
ゲート回路g2よりなる。第1のゲート回路g1は、M
PU23から信号DI 5CONを人力するとともにF
 I FO21からフラグF LAGを入力する。第2
のゲート回路g2は、第1のゲート回路g1の出力とデ
バイス側またはホスト計算機側等で発生するD M A
要求信号REQを入力し、その出力をDMAC22の起
動信号とする。
24 is a control section, which is composed of a first gate circuit g1 and a second gate circuit g2. The first gate circuit g1 is M
Manually input signal DI 5CON from PU23 and F
Input the flag FLAG from IFO21. Second
The gate circuit g2 connects the output of the first gate circuit g1 to the DMA generated on the device side or host computer side, etc.
A request signal REQ is input, and its output is used as an activation signal for the DMAC 22.

このように構成された本発明の5C6Iホスト・アダプ
タ2は次のように動作する。
The 5C6I host adapter 2 of the present invention configured as described above operates as follows.

MPU23は、現在、データ転送に関わるデバイスがデ
ィスコネクトを行うことがある場合には常に信号D I
 5CON″H”を送出している。
Currently, the MPU 23 always sends the signal D I when a device involved in data transfer disconnects.
5CON ``H'' is being sent.

さて、ディスコネクトの可能性のあるデータ転送先デバ
イスが決定し、DMAC22によりFIFO21が制御
されてデータ転送が開始されたとする。
Now, assume that a data transfer destination device with a possibility of disconnection has been determined, and the DMAC 22 controls the FIFO 21 to start data transfer.

そして、デバイス側からディスコネクト信号が与えられ
ず、F I FO21の容量が2にバイトに達すると、
FLAG ’H”となる。
Then, when the disconnect signal is not given from the device side and the capacity of FI FO21 reaches 2 bytes,
FLAG becomes 'H'.

これにより、第1のゲート回NglはDISCON″H
” 、FLAG″H″で出力は“L″となる。更にこの
出力“L”は第2のゲート回路g2に与えられ一第2の
ゲート回路g2はいずれかで発生するD M A要求信
号REQを遮断し、DMAC22にはDMA禁止信号(
“H”)が与えられ、DMAは中断する。
As a result, the first gate circuit Ngl becomes DISCON″H
", FLAG"H", the output becomes "L".Furthermore, this output "L" is given to the second gate circuit g2, and the second gate circuit g2 receives the DMA request signal REQ generated by either one. is blocked, and a DMA prohibition signal (
“H”) is given, and DMA is interrupted.

即ち、F I FO21は本来32にバイトの容量を有
しているが、ディスコネクトする可能性のあるデバイス
とのDMA時には、見かけ上、常に2にバイトの容量の
FIFOとして使用されることになる。これにより、従
来の方式であるとディスコネクト時に最大32にバイト
のデータが捨てられシステムの無駄が発生していたが、
本発明によればディスコネクト時に捨てるデータは最大
2にバイトで済み、ディスコネクト時のパフォーマンス
・ダウンを最小限に押さえることができる。
In other words, FIFO21 originally has a capacity of 32 bytes, but during DMA with a device that may be disconnected, it is apparently always used as a FIFO with a capacity of 2 bytes. . As a result, in the conventional method, up to 32 bytes of data were discarded at the time of disconnection, causing system waste.
According to the present invention, the data to be discarded at the time of disconnection can be reduced to a maximum of 2 bytes, and the performance drop at the time of disconnection can be kept to a minimum.

〈発明の効果〉 本発明の5C3Iホスト・アダプタは、マイクロプロセ
ッサのディスコネクト信号と、一定量のデータを格納し
たFIFOからのフラグを入力し、DMA動作の実行ま
たは中断を決定するので、システムにおける無駄を押さ
えることができ、パフォーマンスの効率の向上を図るこ
とができる。
<Effects of the Invention> The 5C3I host adapter of the present invention inputs the disconnect signal of the microprocessor and the flag from the FIFO that stores a certain amount of data, and determines whether to execute or interrupt the DMA operation, so it is easy to use in the system. It is possible to reduce waste and improve performance efficiency.

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

第1図は本発明を実施した5C3Iホスト・アダプタの
構成ブロック図、第2図は従来のSCSIホスト・アダ
プタを用いた際のシステム図である。 1・・・ホスト計算1ficPU、11・・・プロセッ
サμP、12・・・メモリRAM、 2・・・5C3Iホスト・アダプタ、21・・・FIF
O122・・・ダイレクト・メモリ・アクセス・コント
ローラDMAC1 23・・・マイクロプロセッサMPU、24・・・制御
部、gl・・・第1のゲート回路、 g2・・・第2のゲート回路、 31・・・ディスク装置、32・・・テープ装置、SB
・・・システム・バス、B・・・5C3Iバス。 第1図 第Z図
FIG. 1 is a block diagram of the configuration of a 5C3I host adapter embodying the present invention, and FIG. 2 is a system diagram when a conventional SCSI host adapter is used. 1...Host calculation 1ficPU, 11...Processor μP, 12...Memory RAM, 2...5C3I host adapter, 21...FIF
O122...Direct memory access controller DMAC1 23...Microprocessor MPU, 24...Control unit, gl...First gate circuit, g2...Second gate circuit, 31...・Disk device, 32...Tape device, SB
...System bus, B...5C3I bus. Figure 1 Figure Z

Claims (1)

【特許請求の範囲】[Claims] ホスト計算機と複数のデバイスとの通信動作に関与し、
ダイレクト・メモリ・アクセスの際にデータ・バッファ
として用いられる先入れ先出しメモリを有するSCSI
ホスト・アダプタにおいて、前記先入れ先出しメモリに
一定量のデータが格納されるとフラグが出力されるよう
にし、このフラグとマイクロプロセッサから与えられる
ディスコネクト信号とよりダイレクト・メモリ・アクセ
ス動作を制御する制御部を設けたことを特徴とするSC
SIホスト・アダプタ。
Involved in communication operations between the host computer and multiple devices,
SCSI with first-in, first-out memory used as a data buffer during direct memory access
In the host adapter, a control unit outputs a flag when a certain amount of data is stored in the first-in, first-out memory, and controls direct memory access operation based on the flag and a disconnect signal given from the microprocessor. An SC characterized by providing
SI host adapter.
JP62323358A 1987-12-21 1987-12-21 SCSI host adapter Expired - Lifetime JPH073663B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62323358A JPH073663B2 (en) 1987-12-21 1987-12-21 SCSI host adapter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62323358A JPH073663B2 (en) 1987-12-21 1987-12-21 SCSI host adapter

Publications (2)

Publication Number Publication Date
JPH01163864A true JPH01163864A (en) 1989-06-28
JPH073663B2 JPH073663B2 (en) 1995-01-18

Family

ID=18153888

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62323358A Expired - Lifetime JPH073663B2 (en) 1987-12-21 1987-12-21 SCSI host adapter

Country Status (1)

Country Link
JP (1) JPH073663B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001044957A1 (en) * 1999-12-17 2001-06-21 Sony Corporation Device and method for processing information and recorded medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5488742A (en) * 1977-12-26 1979-07-14 Fujitsu Ltd Data buffer managing and processing system in communication control processor
JPS59121524A (en) * 1982-12-28 1984-07-13 Fujitsu Ltd Information holding system of information processor
JPS60103471A (en) * 1983-11-10 1985-06-07 Hitachi Ltd Record processing system of computer
JPS62125458A (en) * 1985-11-26 1987-06-06 Ricoh Co Ltd Data transfer control circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5488742A (en) * 1977-12-26 1979-07-14 Fujitsu Ltd Data buffer managing and processing system in communication control processor
JPS59121524A (en) * 1982-12-28 1984-07-13 Fujitsu Ltd Information holding system of information processor
JPS60103471A (en) * 1983-11-10 1985-06-07 Hitachi Ltd Record processing system of computer
JPS62125458A (en) * 1985-11-26 1987-06-06 Ricoh Co Ltd Data transfer control circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001044957A1 (en) * 1999-12-17 2001-06-21 Sony Corporation Device and method for processing information and recorded medium
KR100810288B1 (en) * 1999-12-17 2008-03-06 소니 가부시끼 가이샤 Device and method for processing information and recorded medium
US7565460B2 (en) 1999-12-17 2009-07-21 Sony Corporation Information processing apparatus and method for handling packet streams

Also Published As

Publication number Publication date
JPH073663B2 (en) 1995-01-18

Similar Documents

Publication Publication Date Title
US5732223A (en) SCSI host adapter with shared command and data buffer
JP3636157B2 (en) Data transfer control device, electronic device, and data transfer control method
US5819111A (en) System for managing transfer of data by delaying flow controlling of data through the interface controller until the run length encoded data transfer is complete
JPH0827707B2 (en) Control device and control method for FIFO buffer and device for controlling data transfer
JP3726898B2 (en) Data transfer control device, electronic device, and data transfer control method
JPH0752418B2 (en) Data reception system
JP2005122372A (en) Data transfer controller, electronic equipment and data transfer control method
US7359996B2 (en) Data transfer control device, electronic equipment, and data transfer control method
US8032675B2 (en) Dynamic memory buffer allocation method and system
JP3636158B2 (en) Data transfer control device and electronic device
US7428600B2 (en) Data transfer control device, electronic equipment, and data transfer control method
JPH01163864A (en) Scsi host adapter
JP2002176464A (en) Network interface device
JP4127069B2 (en) Data transfer control device, electronic device, and data transfer control method
JP4127071B2 (en) Data transfer control device, electronic device, and data transfer control method
JPH0448368A (en) Inter-processor communication system
JP2604051B2 (en) Data transfer method
JPS6057453A (en) Data processing system
JP2003323391A (en) Data transfer control device, electronic equipment and data transfer control method
JP2003323399A (en) Data transfer control device, electronic equipment and data transfer control method
JP2003316734A (en) Data transfer control device, electronic equipment, and data transfer control method
JPH03262063A (en) Bus control circuit for dma transfer
JPH11316739A (en) Communication interface device, data communication method and recording medium
JPS6229831B2 (en)
JPH01181144A (en) Data input/output device