JPH089792Y2 - SCSI adapter circuit for host-to-host communication - Google Patents

SCSI adapter circuit for host-to-host communication

Info

Publication number
JPH089792Y2
JPH089792Y2 JP10190490U JP10190490U JPH089792Y2 JP H089792 Y2 JPH089792 Y2 JP H089792Y2 JP 10190490 U JP10190490 U JP 10190490U JP 10190490 U JP10190490 U JP 10190490U JP H089792 Y2 JPH089792 Y2 JP H089792Y2
Authority
JP
Japan
Prior art keywords
host
command
data
adapter
scsi
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 - Lifetime
Application number
JP10190490U
Other languages
Japanese (ja)
Other versions
JPH0458767U (en
Inventor
永志樹 小川
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 JP10190490U priority Critical patent/JPH089792Y2/en
Publication of JPH0458767U publication Critical patent/JPH0458767U/ja
Application granted granted Critical
Publication of JPH089792Y2 publication Critical patent/JPH089792Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Description

【考案の詳細な説明】 (産業上の利用分野) 本考案はターゲット機能を持たないSCSIホストアダプ
タ間の通信を可能にする、ホスト間通信用SCSIホストア
ダプタ回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial field of application) The present invention relates to a SCSI host adapter circuit for inter-host communication, which enables communication between SCSI host adapters without a target function.

(従来の技術) 従来、SCSIバスを介して2つのホストコンピュータ間
で通信を行う際には、それぞれのホストコンピュータに
接続されるホストアダプタにイニシエータ機能とターゲ
ット機能の両方を持たせる必要があった。
(Prior Art) Conventionally, when performing communication between two host computers via a SCSI bus, it was necessary to give a host adapter connected to each host computer both an initiator function and a target function. .

すなわち、第11図に示されるように、ホストコンピュ
ータ6aからホストコンピュータ6bへデータを送信する場
合、ホストアダプタ5aはホストアダプタ5bに対してSEND
コマンドを送信し(イニシエータ機能)、それを受けた
ホストアダプタ5bはコマンド解釈を行い、ホストアダプ
タ5aからのデータを受信する(ターゲット機能)という
手順で行われていた。イニシエータ機能とは、コマンド
をターゲットに発行し、ターゲットからのステータスを
受信する機能であり、ターゲット機能とは、イニシエー
タからのコマンドを受信,解釈,実行し、ステータスを
返す機能である。
That is, as shown in FIG. 11, when transmitting data from the host computer 6a to the host computer 6b, the host adapter 5a sends a SEND to the host adapter 5b.
The procedure is such that a command is transmitted (initiator function), the host adapter 5b which receives the command interprets the command, and receives data from the host adapter 5a (target function). The initiator function is a function of issuing a command to the target and receiving the status from the target, and the target function is a function of receiving, interpreting, executing the command from the initiator and returning the status.

(考案が解決しようとする課題) 一般に、ホストアダプタ回路はディスク装置等の入出
力デバイスと接続されることを想定して構成されている
ため、コマンドを受信し、解釈,実行するターゲット機
能を持っていないことが多い。このような場合には、ホ
ストコンピュータ間での通信を行うことが不可能であっ
た。
(Problems to be solved by the invention) Generally, since the host adapter circuit is configured assuming that it is connected to an input / output device such as a disk device, it has a target function of receiving, interpreting, and executing commands. Often not. In such a case, it has been impossible to perform communication between host computers.

本考案はこのような従来技術の問題点に鑑みてなされ
たものであり、その目的は、SCSIホストアダプタがター
ゲット機能を持たない場合でも、ホストコンピュータ間
の通信を可能にする、簡単な構成のSCSIアダプタ回路を
提供することにある。
The present invention has been made in view of the above problems of the conventional technology, and an object thereof is to provide a simple configuration that enables communication between host computers even when the SCSI host adapter does not have a target function. To provide a SCSI adapter circuit.

(課題を解決するための手段) 本考案は、ターゲット機能を持たないSCSIホストアダ
プタ間の通信に使用されるホスト間通信用SCSIアダプタ
回路であって、SCSIバスに接続された送信元ホストアダ
プタから転送コマンド(SEND)により送信されてくるデ
ータを送信先ホストアダプタに転送するまでの間、一時
的に格納しておくためのバッファメモリと、送信元ホス
トアダプタから送られてくる転送コマンド(SEND)およ
び送信先ホストアダプタから送られてくる受信コマンド
(RECEIVE)を受信して解釈するコマンドデコード手段
と、受信したコマンドが転送コマンド(SEND)であれ
ば、送信元から送られてくるデータを前記バッファメモ
リに格納し、受信コマンド(RECEIVE)であれば、該受
信コマンドに応じて送信すべきデータが前記バッファメ
モリに格納されているかを調べ、その結果に応じてデー
タを送信するか、またはデータの到着を待つかを判断
し、その処理を実行するコマンド処理手段とを有するこ
とを特徴とする。
(Means for Solving the Problems) The present invention is a SCSI adapter circuit for host-to-host communication used for communication between SCSI host adapters that do not have a target function, and which is a source host adapter connected to a SCSI bus. A buffer memory for temporarily storing the data sent by the transfer command (SEND) until it is transferred to the destination host adapter, and a transfer command (SEND) sent from the source host adapter. And a command decoding means for receiving and interpreting a reception command (RECEIVE) sent from the destination host adapter, and if the received command is a transfer command (SEND), the data sent from the transmission source is stored in the buffer. If it is a receive command (RECEIVE) stored in the memory, the data to be transmitted according to the receive command is stored in the buffer memory. They determine have been paid, to determine its or transmits the data according to the result, or waits for the arrival of data, and having a command processing unit for executing the processing.

(作用) 通信を行おうとするホストアダプタは、SENDおよびRE
CEIVEコマンドを、同一SCSIバス上に接続されたホスト
間通信用アダプタ回路に対して発行することにより、双
方向のデータ通信が可能となる。
(Operation) The host adapter that is trying to communicate is SEND and RE
By issuing the CEIVE command to the adapter circuit for inter-host communication connected on the same SCSI bus, bidirectional data communication becomes possible.

(実施例) 次に、本考案の実施例について図面を参照して説明す
る。
(Example) Next, the Example of this invention is described with reference to drawings.

(1)構成 第1図は本考案のホスト間通信用アダプタ回路の一実
施例の構成を示す図である。
(1) Configuration FIG. 1 is a diagram showing the configuration of an embodiment of an inter-host communication adapter circuit of the present invention.

このホスト間通信用アダプタ回路1は、送信元から送
られてくるデータを一時的に格納するバッファメモリ4,
5(4はホストアダプタAが送信元となる場合のデータ
バッファであり、5はホストアダプタBが送信元となる
場合のデータバッファである)を有し、さらに、機能ブ
ロック(ハードウエアがソフトウエアに従って動作する
ことにより構築される、所定機能を実現する手段)とし
て、送られてくるコマンドを受信して解釈するコマンド
デコード手段2と、バッファメモリ4,5の状態を考慮し
つつ、コマンドにより指定される動作を実行するコマン
ド処理手段3とを有している。
The host-to-host communication adapter circuit 1 includes a buffer memory 4 for temporarily storing data sent from a transmission source,
5 (4 is a data buffer when the host adapter A is the transmission source, and 5 is a data buffer when the host adapter B is the transmission source), and further has a functional block (hardware is software). Command decoding means 2 for receiving and interpreting a command sent thereto and means for realizing a predetermined function constructed by operating in accordance with Command processing means 3 for executing the specified operation.

実際にはこれらの機能ブロックは、第2図に示すよう
に、SCSIバス制御部10と、DMA制御部12と、RAM13と、CP
U11とが所定の動作を実行することによって実現され
る。
Actually, these functional blocks are, as shown in FIG. 2, a SCSI bus control unit 10, a DMA control unit 12, a RAM 13, and a CP.
It is realized by executing a predetermined operation with U11.

SCSI制御部10は、SCSIプロトコルを制御するものであ
り、CPU11からの指令によってSCSIバス上のホストアダ
プタとのデータ送受信を、SCSIプロトコルに従った形で
実行する。
The SCSI control unit 10 controls the SCSI protocol, and executes the data transmission / reception with the host adapter on the SCSI bus in accordance with the SCSI protocol in response to a command from the CPU 11.

バッファメモリ13は、半導体RAMを用いて構成され、S
CSIバスに接続された送信元ホストアダプタから、SEND
コマンドを受け、このSENDコマンドに引き続いて送信さ
れてきたデータが一時的に格納される。このバッファメ
モリ13の内部は2つのバンクに分割されており、各バン
クは通信を行う2つのホストアダプタにそれぞれ割当て
られており、これにより、第1図の各ホストアダプタ用
のバッファ4,5が実質的に実現される。
The buffer memory 13 is configured by using semiconductor RAM, and
From the source host adapter connected to the CSI bus, SEND
Upon receiving the command, the data transmitted following this SEND command is temporarily stored. The inside of this buffer memory 13 is divided into two banks, and each bank is assigned to two host adapters for communication, respectively, whereby the buffers 4 and 5 for each host adapter in FIG. 1 are allocated. Substantially realized.

DMA制御部12は、SCSIバスとバッファメモリ13との間
のDMAを、制御線a,bをハンドシェイク信号として使用し
て制御するものである。
The DMA control unit 12 controls DMA between the SCSI bus and the buffer memory 13 by using the control lines a and b as handshake signals.

(2)動作 次に、第3図を用いてホスト間通信用アダプタ回路1
の動作の概要を説明する。
(2) Operation Next, referring to FIG. 3, the host-to-host communication adapter circuit 1
The outline of the operation of will be described.

初期化処理が行われたホストアダプタ回路(ステップ
20)は、ホストアダプタからセレクトされると(ステッ
プ21)、コマンド受信処理を実行して(ステップ22)コ
マンドを受信する。
Initialized host adapter circuit (step
20), when selected by the host adapter (step 21), executes the command receiving process (step 22) to receive the command.

受信したコマンドがSENDコマンドであれば(ステップ
23)、データを格納すべきバッファメモリ領域が使用さ
れていないことを確認し(ステップ24)、使用中であれ
ばエラー処理を行い(ステップ33)、使用中でなけれ
ば、SEND Data処理を開始し、SCSIバスからバッファへ
のDMAを実行して受信したデータをバッファに格納する
(ステップ25)。この後、ステータスを送信してステー
タス処理を行い、バスを解放する(ステップ26)。この
とき、送信先のホストアダプタからのRECEIVEコマンド
を受信していなければ、処理を終了してRECEIVEコマン
ドが来るのを待ち、すでにRECEIVEコマンドを受信して
いれば(ステップ27)、RESELECT処理を行い(ステップ
28)、送信先ホストアダプタを再結合し、先に格納した
データを転送し、続いて、ステータスを送信する(ステ
ップ30,32)。
If the received command is a SEND command (step
23), confirm that the buffer memory area for storing data is not used (step 24), perform error processing if it is in use (step 33), and start SEND Data processing if it is not in use. Then, the DMA from the SCSI bus to the buffer is executed to store the received data in the buffer (step 25). After this, the status is transmitted to perform status processing, and the bus is released (step 26). At this time, if the RECEIVE command from the destination host adapter is not received, the process is terminated and waits for the RECEIVE command to come. If the RECEIVE command has already been received (step 27), the RESELECT process is performed. (Step
28), the destination host adapter is recombined, the previously stored data is transferred, and then the status is transmitted (steps 30 and 32).

上述のステップ23において、受信したコマンドがRECE
IVEコマンドである場合は、データ転送コマンドを発行
したホストアダプタに対応したバッファの状態を見て
(ステップ29)、そのバッファ内にすでにデータが格納
されていれば、バッファからSCSIバスへのDMAを起動し
てデータを転送し(ステップ30)、その後、ステータス
処理を実行する(ステップ32)。また、データがバッフ
ァ内に格納されていない場合は、一旦、そのホストアダ
プタをDISCONNECTして処理を終了し、データが送信元か
ら送られてくるのを待つ(ステップ31)。
In step 23 above, the received command is RECE
If it is an IVE command, look at the status of the buffer corresponding to the host adapter that issued the data transfer command (step 29), and if data is already stored in that buffer, execute DMA from the buffer to the SCSI bus. It is activated to transfer data (step 30), and then status processing is executed (step 32). If the data is not stored in the buffer, the host adapter is temporarily DISCONNECTed to end the process and wait for the data to be sent from the transmission source (step 31).

次に、第3図の各処理の詳細を個別に説明する。 Next, details of each processing in FIG. 3 will be individually described.

コマンド受信処理(第4図) まず、バスフェーズ(Bus phase)をメッセージアウ
ト(Message Out)に設定し(ステップ40)、Identify
メッセージを受信する(ステップ41)。この後、バスフ
ェーズをコマンドフェーズ(Comm and phase)に設定し
(ステップ42)、コマンドの受信を行う(ステップ4
3)。
Command reception process (Fig. 4) First, the bus phase (Bus phase) is set to message out (Message Out) (step 40), and Identify
The message is received (step 41). After that, the bus phase is set to the command phase (Comm and phase) (step 42), and the command is received (step 4).
3).

ステータス処理(第5図) まず、バスフェーズをステータスフェーズに設定し
(ステップ50)、ステータス送信を行う(ステップ5
1)。次に、バスフェーズをメッセージインフェーズ(M
essage In Phase)に設定し(ステップ52)、終了メッ
セージを送信し(ステップ53)てSCSIバスを解放する
(ステップ54)。
Status processing (Fig. 5) First, the bus phase is set to the status phase (step 50) and the status is transmitted (step 5).
1). Next, the bus phase is changed to the message in phase (M
essage In Phase) (step 52), send an end message (step 53) and release the SCSI bus (step 54).

ディスコネクト(Disconnect)処理(第6図) まず、バスフェーズをメッセージインフェーズ(Mess
age In phase)に設定し(ステップ60)、Disconnectメ
ッセージを送信した後(ステップ61)、SCSIバスを解放
する(ステップ62)。
Disconnect processing (Fig. 6) First, the bus phase is changed to the message in phase (Mess
age In phase) (step 60), after sending the Disconnect message (step 61), the SCSI bus is released (step 62).

リセレクト(Reselect)処理(第7図) まず、該当ホストアダプタをReselctし(ステップ7
0)、次に、バスフェーズをメッセージインフェーズに
設定し(ステップ71)、Identifyメッセージを送信する
(ステップ72)。
Reselect Processing (Fig. 7) First, the target host adapter is reselcted (step 7).
0) Next, the bus phase is set to the message-in phase (step 71), and the Identify message is transmitted (step 72).

エラー処理(第8図) まず、バスフェーズをステータスフェーズに設定し
(ステップ80)、エラーステータスを送信する(ステッ
プ81)。次に、バスフェーズをメッセージインフェイズ
に設定し(ステップ82)、終了メッセージを送信し(ス
テップ83)、SCSIバスを解放する(ステップ84)。
Error Processing (FIG. 8) First, the bus phase is set to the status phase (step 80) and the error status is transmitted (step 81). Next, the bus phase is set to the message in phase (step 82), the end message is transmitted (step 83), and the SCSI bus is released (step 84).

センドデータ(SEND DATA)処理(第9図) まず、バスフェーズをデータアウト(Data Out)に設
定して送信元のイニシエータにデータ送信を要求し(ス
テップ90)、SCSIバスから該当バッファへのDMAを起動
してデータを取り込み(ステップ91)、終了判定を行う
(ステップ92)。
Send data (SEND DATA) processing (Fig. 9) First, set the bus phase to data out (Data Out), request the data transmission from the initiator of the transmission source (step 90), and DMA from the SCSI bus to the corresponding buffer. Is activated to take in the data (step 91) and determine the end (step 92).

レシーブデータ(RECEIVE DATA)処理(第10図) まず、バスフェーズをデータインフェーズに設定し
(ステップ100)、バッファよりSCSIバスへのDMAを起動
し(ステップ101)、終了判定を行う(ステップ102)。
Receive data (RECEIVE DATA) processing (Fig. 10) First, the bus phase is set to the data-in phase (step 100), DMA from the buffer to the SCSI bus is activated (step 101), and the end judgment is made (step 102). ).

(考案の効果) 以上説明したように本考案は、コマンドデコード機
能,コマンド処理機能、バッファメモリを有する簡単な
構成のホスト間通信用のアダプタ回路を実現し、通信を
行おうとするホストアダプタは、このアダプタ回路に対
してコマンドを発行することで双方向のデータの授受を
行うことができる。この結果、ターゲット機能を持って
いないホストアダプタ間での双方向通信が可能となる。
(Effect of the Invention) As described above, the present invention realizes an adapter circuit for host-to-host communication having a simple structure having a command decoding function, a command processing function, and a buffer memory, and a host adapter which attempts to perform communication is By issuing a command to this adapter circuit, bidirectional data exchange can be performed. As a result, bidirectional communication is possible between host adapters that do not have the target function.

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

第1図は本考案のホスト間通信用のアダプタ回路の構成
を機能ブロックで示す図、 第2図は第1図のホスト間通信用のアダプタ回路の実際
の構成の一例を示す図、 第3図はホスト間通信用のアダプタ回路の一連の動作の
概要を示すフローチャート、 第4図はコマンド受信処理の動作を示すフローチャー
ト、 第5図はステータス処理の動作を示すフローチャート、 第6図はディスコネクト処理の動作を示すフローチャー
ト、 第7図はリセレクト処理の動作を示すフローチャート、 第8図はエラー処理の動作を示すフローチャート、 第9図はセンドデータ処理の動作を示すフローチャー
ト、 第10図はレシーブデータ処理の動作を示すフローチャー
ト、 第11図は従来のホスト間通信を行うシステムの構成例を
示す図である。 1…ホスト間通信用アダプタ回路 2…コマンドデコード手段 3…コマンド処理手段 4,5…バッファ(RAM) 10…SCSIバス制御部 11…CPU 12…DMA制御部 a,b…制御線
FIG. 1 is a functional block diagram showing the configuration of an adapter circuit for host-to-host communication of the present invention, FIG. 2 is a diagram showing an example of an actual configuration of the adapter circuit for inter-host communication of FIG. 1, and FIG. FIG. 4 is a flowchart showing an outline of a series of operations of the adapter circuit for host-to-host communication, FIG. 4 is a flowchart showing an operation of command reception processing, FIG. 5 is a flowchart showing an operation of status processing, and FIG. FIG. 7 is a flowchart showing the operation of reselection processing, FIG. 8 is a flowchart showing the operation of error processing, FIG. 9 is a flowchart showing the operation of send data processing, and FIG. 10 is a receive operation. FIG. 11 is a flowchart showing the operation of data processing, and FIG. 11 is a diagram showing an example of the configuration of a conventional system for performing inter-host communication. 1 ... Adapter circuit for communication between hosts 2 ... Command decoding means 3 ... Command processing means 4,5 ... Buffer (RAM) 10 ... SCSI bus control section 11 ... CPU 12 ... DMA control section a, b ... Control lines

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】ターゲット機能を持たないSCSIホストアダ
プタ間の通信に使用されるホスト間通信用SCSIアダプタ
回路であって、 SCSIバスに接続された送信元ホストアダプタから転送コ
マンド(SEND)により送信されてくるデータを送信先ホ
ストアダプタに転送するまでの間、一時的に格納してお
くためのバッファメモリ(4,5)と、 送信元ホストアダプタから送られてくる転送コマンド
(SEND)および送信先ホストアダプタから送られてくる
受信コマンド(RECEIVE)を受信して解釈するコマンド
デコード手段(2)と、 受信したコマンドが転送コマンド(SEND)であれば、送
信元から送られてくるデータを前記バッファメモリ(4,
5)に格納し、受信コマンド(RECIVE)であれば、該受
信コマンドに応じて送信すべきデータが前記バッファメ
モリ(4,5)に格納されているかを調べ、その結果に応
じてデータを送信するか、またはデータの到着を待つか
を判断し、その処理を実行するコマンド処理手段(3)
とを有することを特徴とするホスト間通信用SCSIアダプ
タ回路。
1. A SCSI adapter circuit for host-to-host communication used for communication between SCSI host adapters without a target function, which is transmitted by a transfer command (SEND) from a source host adapter connected to a SCSI bus. Buffer memory (4,5) for temporarily storing incoming data until it is transferred to the destination host adapter, and the transfer command (SEND) and destination sent from the source host adapter A command decoding means (2) for receiving and interpreting a received command (RECEIVE) sent from the host adapter, and if the received command is a transfer command (SEND), the data sent from the sender is stored in the buffer. Memory (4,
5) and if it is a receive command (RECIVE), check whether the data to be sent according to the receive command is stored in the buffer memory (4,5), and send the data according to the result. Command processing means (3) for determining whether to wait for the arrival of data
And a SCSI adapter circuit for inter-host communication.
JP10190490U 1990-09-28 1990-09-28 SCSI adapter circuit for host-to-host communication Expired - Lifetime JPH089792Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10190490U JPH089792Y2 (en) 1990-09-28 1990-09-28 SCSI adapter circuit for host-to-host communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10190490U JPH089792Y2 (en) 1990-09-28 1990-09-28 SCSI adapter circuit for host-to-host communication

Publications (2)

Publication Number Publication Date
JPH0458767U JPH0458767U (en) 1992-05-20
JPH089792Y2 true JPH089792Y2 (en) 1996-03-21

Family

ID=31845722

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10190490U Expired - Lifetime JPH089792Y2 (en) 1990-09-28 1990-09-28 SCSI adapter circuit for host-to-host communication

Country Status (1)

Country Link
JP (1) JPH089792Y2 (en)

Also Published As

Publication number Publication date
JPH0458767U (en) 1992-05-20

Similar Documents

Publication Publication Date Title
JPH0629993A (en) Access control method and network server
JPS63204350A (en) Data processing system
EP0336547B1 (en) Computer network and method for operating it
JPH089792Y2 (en) SCSI adapter circuit for host-to-host communication
JPH054040Y2 (en)
JP2522847B2 (en) Programmable controller system
JP2948380B2 (en) Data communication device
JPH0518145B2 (en)
JPH07281994A (en) Bus relay device
JP2925049B2 (en) Input buffer control method
JP2564499B2 (en) Transmission data flow control method
JP2752456B2 (en) Channel device
JPH01131945A (en) Communication control equipment
JPH06197110A (en) Buffer control method
JPH0236016B2 (en)
JPH0458768U (en)
JPS63234649A (en) Communication control system
JPH0374749A (en) Scsi host adaptor
JPH05282225A (en) Intra-terminal data communication equipment
JP2001256171A (en) Data transfer method and module
JPH01311350A (en) Channel interface circuit
JPS62165452A (en) Data transfer adaptor
JPH0785232B2 (en) DMA control processor
JPH0810444B2 (en) Multi-channel function test equipment
JPH0612418A (en) System and method for registering external character data in document creation device