JP2824890B2 - SCSI protocol controller - Google Patents

SCSI protocol controller

Info

Publication number
JP2824890B2
JP2824890B2 JP5173809A JP17380993A JP2824890B2 JP 2824890 B2 JP2824890 B2 JP 2824890B2 JP 5173809 A JP5173809 A JP 5173809A JP 17380993 A JP17380993 A JP 17380993A JP 2824890 B2 JP2824890 B2 JP 2824890B2
Authority
JP
Japan
Prior art keywords
initiator
flag
response
state
signal
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 - Fee Related
Application number
JP5173809A
Other languages
Japanese (ja)
Other versions
JPH0713914A (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.)
Rohm Co Ltd
Original Assignee
Rohm Co 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 Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP5173809A priority Critical patent/JP2824890B2/en
Publication of JPH0713914A publication Critical patent/JPH0713914A/en
Application granted granted Critical
Publication of JP2824890B2 publication Critical patent/JP2824890B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、SCSIプロトコル
制御装置に関し、詳しくは、ECA(Extended Conting
ent Allegiance)機能をもサポートするSCSIプロト
コル制御装置の改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a SCSI protocol controller, and more particularly, to an ECA (Extended Conting
The present invention relates to an improvement of a SCSI protocol control device that also supports an ent Allegiance) function.

【0002】[0002]

【従来の技術】SCSIプロトコルは、複数の装置をバ
ス結合するためのバス及びこのバスを用いた装置間通信
に関する規約の1つである。図3に、バス(SCSI−
BUS)10を介してコントローラ1,2,FDD3,
HDD4,CD−ROM5等の装置が結合したシステム
例を示す。これらの装置は、それぞれバス10側にSC
SIプロトコル制御回路(PC)11,12,13,1
4,15等を有し、これらの回路にSCSIプロトコル
対応の処理を委ねている。この明細書におけるSCSI
プロトコル制御装置とは、このようなSCSIプロトコ
ル制御回路を有してSCSIプロトコル対応の通信等を
行う装置をいう。
2. Description of the Related Art The SCSI protocol is one of the rules concerning a bus for connecting a plurality of devices by a bus and communication between devices using the bus. FIG. 3 shows a bus (SCSI-
BUS) 10 through the controllers 1, 2, FDD 3,
1 shows an example of a system in which devices such as an HDD 4 and a CD-ROM 5 are combined. These devices are provided on the bus 10 side, respectively.
SI protocol control circuit (PC) 11, 12, 13, 1
4, 15 and so on, and entrusts these circuits with processing corresponding to the SCSI protocol. SCSI in this specification
The protocol control device refers to a device having such a SCSI protocol control circuit and performing communication or the like compatible with the SCSI protocol.

【0003】このプロトコルの下では、バスラインの使
用権を確保した装置がその権利を放棄するまでの間だけ
イニシエータとなり、このイニシエータによって通信相
手として選択された装置がターゲットとなる。例えば、
あるタイミングでは、コントローラ1がイニシエータと
なりFDD3がターゲットとなってこれらが交信し、他
のタイミングでは、コントローラ2がイニシエータとな
りHDD4がターゲットとなってこれらが交信する。つ
まり、時分割によりバス10を共用する。装置の特性に
も依るが、この例では、コントローラ1,2はイニシエ
ータにもターゲットにもなるのに対し、FDD3,HD
D4,CD−ROM5はターゲットにだけなる。
[0003] Under this protocol, a device that has secured the right to use a bus line becomes an initiator only until the device relinquishes the right, and a device selected as a communication partner by this initiator becomes a target. For example,
At a certain timing, the controller 1 becomes the initiator and the FDD 3 becomes the target and they communicate with each other. At another timing, the controller 2 becomes the initiator and the HDD 4 becomes the target and they communicate with each other. That is, the bus 10 is shared by time sharing. In this example, the controllers 1 and 2 can be both initiators and targets, whereas FDDs 3 and HDs, depending on the characteristics of the device.
D4 and CD-ROM 5 are only targets.

【0004】図4に、SCSIプロトコル制御装置であ
るHDD4についてSCSIプロトコル制御回路14を
中心としたブロック図を示す。イニシエータとなったコ
ントローラ1によってHDD4がターゲットとして選択
されると、この回路14では、このことがバスインター
フェイス10aを介してセレクション検出回路16によ
って検出され、セレクション検出信号Aが出力される。
すると、そのときのコントローラ1のIDがイニシエー
タIDラッチ17にラッチされ、セレクション検出信号
Aがセレクテッドフラグ18に保持され、これらがマイ
クロコンピュータ19に入力される。
FIG. 4 is a block diagram of the HDD 4 which is a SCSI protocol control device, focusing on the SCSI protocol control circuit 14. When the HDD 4 is selected as a target by the controller 1 serving as the initiator, this is detected in the circuit 14 by the selection detection circuit 16 via the bus interface 10a, and the selection detection signal A is output.
Then, the ID of the controller 1 at that time is latched in the initiator ID latch 17, the selection detection signal A is held in the selected flag 18, and these are input to the microcomputer 19.

【0005】そして、マイクロコンピュータ19で、通
信プログラム19cが、コントローラ1からのコマンド
を受け取り、このコマンドの内容に応じた処理を行う。
例えば、通信プログラム19cがコマンドに応じて制御
プログラム19に指示を与え、制御プログラム19がH
DD本体4aを制御してデータのリードライト処理等を
行う。この処理が終了すると、処理結果等のデータを含
む転送データが通信プログラム19cによってバッファ
ー19aにセットされ、これがバス10を介してラッチ
17の示すイニシエータに送信される。これにより、タ
ーゲットとなったHDD4は、イニシエータとなったコ
ントローラ1からのコマンドに対し、そのコマンドに応
じた処理を行い、処理結果等を含むレスポンスで応じ
る。
[0005] Then, in the microcomputer 19, the communication program 19c receives a command from the controller 1 and performs processing according to the content of the command.
For example, the communication program 19c gives an instruction to the control program 19 in response to a command, and the control program 19
The read / write processing of data is performed by controlling the DD main body 4a. When this process is completed, transfer data including data such as a process result is set in the buffer 19a by the communication program 19c and transmitted to the initiator indicated by the latch 17 via the bus 10. Thus, the target HDD 4 performs a process according to the command from the controller 1 as the initiator, and responds with a response including a processing result and the like.

【0006】[0006]

【発明が解決しようとする課題】このような従来のSC
SIプロトコル制御装置では、イニシエータやターゲッ
トがダイナミックに入れ替わり、1つの装置が時間を変
えて複数の装置からの制御を受けることも多い。例えば
HDD4が、コントローラ1から最初のアクセスを受
け、次いでコントローラ2から2番目のアクセスを受
け、さらにコントローラ1から3番目のアクセスを受け
るという具合である。このような場合に、最初のアクセ
スの結果を同一コントローラの3番目のアクセスまで保
存して置きたいことがある。具体的には、最初のアクセ
スでエラーが発生したときには、回復処理等のために3
番目のアクセスでエラー情報をリターンする必要があ
る。
SUMMARY OF THE INVENTION Such a conventional SC
In an SI protocol control device, an initiator and a target are dynamically replaced, and one device is often controlled by a plurality of devices at different times. For example, the HDD 4 receives the first access from the controller 1, then the second access from the controller 2, and the third access from the controller 1. In such a case, it may be desired to save the result of the first access until the third access of the same controller. Specifically, when an error occurs in the first access, three times for recovery processing or the like.
Error information must be returned on the second access.

【0007】この場合の通信ダイヤグラムと通信プログ
ラム19cの処理とを図5に示す。HDD4のSCSI
プロトコル制御回路14は、エラーが発生すると、その
ときのイニシエータであるコントローラ1に対し、チェ
ックコンディションとイニシエイトリカバーのレスポン
スで応じる。そして、エラー発生時のコントローラ1と
異なるコントローラ2からの2番目のアクセスに対して
は、実処理を行うとエラーからの回復処理が不能となる
ので、ビジーステータスのレスポンスで応じ実処理は行
わない。一方、エラー発生時のコントローラ1からの3
番目のアクセスに対しては、そのコマンドに応じてエラ
ーのセンスデータを含むレスポンス等で応じ実処理を行
う。この機能が、SCSIプロトコルにおけるECA機
能である。
FIG. 5 shows a communication diagram and a process of the communication program 19c in this case. HDD4 SCSI
When an error occurs, the protocol control circuit 14 responds to the controller 1, which is the initiator at that time, with a check condition and a response of the initiator cover. Then, for the second access from the controller 2 different from the controller 1 at the time of occurrence of the error, if the actual processing is performed, the recovery processing from the error becomes impossible. . On the other hand, 3
For the third access, actual processing is performed according to a response including error sense data in response to the command. This function is the ECA function in the SCSI protocol.

【0008】ところで、イニシエータがバスの使用権を
確保してコマンドとレスポンスとの応酬の後に使用権を
放棄するまでは、そのイニシエータによってバスが占有
される。この間、その他の装置はバスを使用する処理を
行うことができない。しかし、SCSIプロトコル制御
装置がECA機能をサポートするためには、エラー発生
時のイニシエータにエラーステータスのレスポンスで応
じるばかりでなく、それ以外のイニシエータに対しても
ビジーステータスのレスポンスで応じる必要がある。
The bus is occupied by the initiator until the initiator secures the right to use the bus and relinquishes the right to use after exchanging commands and responses. During this time, other devices cannot perform processing using the bus. However, in order for the SCSI protocol controller to support the ECA function, it is necessary to respond not only to the initiator at the time of occurrence of an error with an error status response but also to other initiators with a busy status response.

【0009】このため、かかるレスポンスを発する処理
に長い時間がかかると、実効の薄い又は何等実処理を伴
わない交信のために長時間にわたってバスが占有される
こととなる(図5における二重破線部分10a,10
b,10c参照)。これでは、見掛けの使用効率の割に
は、実処理の効率が良くないので不都合である。この発
明の目的は、このような従来技術の問題点を解決するも
のであって、SCSIプロトコルにおけるECA機能を
効率よくサポートするSCSIプロトコル制御装置を実
現することにある。
For this reason, if it takes a long time to process such a response, the bus is occupied for a long time for communication that is ineffective or does not involve any actual processing (double broken line in FIG. 5). Parts 10a, 10
b, 10c). This is inconvenient because the efficiency of actual processing is not good for the apparent use efficiency. An object of the present invention is to solve such a problem of the related art, and to realize a SCSI protocol control device that efficiently supports an ECA function in a SCSI protocol.

【0010】[0010]

【課題を解決するための手段】この目的を達成するため
のこの発明のSCSIプロトコル制御装置の構成は、S
CSI(Small Computer System Interface )プロトコ
ルに従ってバス制御を行うSCSIプロトコル制御装置
において、RAM領域の送信バッファーと前記SCSI
プロトコル対応の通信プログラムとを有するマイクロコ
ンピュータと、ターゲットとして選択されたことを検出
してセレクション検出信号を発生するセレクション検出
回路と、前記通信プログラムの制御によってECA状態
(第1の状態)と非ECA状態(第2の状態)の何れか
1つの状態にセットされるフリップフロップ等のフラグ
と、前記通信プログラムによって制御されそのときのイ
ニシエータである第1のイニシエータのID(Identifi
cation)を保持するラッチと、起動信号を受けるとSC
SIプロトコルに従う固定形式のビジーステータスのレ
スポンスを発するビジーステータスリターン回路と、前
記第1のイニシエータと異なる第2のイニシエータから
アクセスされると不一致信号を発生する不一致検出回路
と、前記セレクション検出信号と前記不一致信号と前記
フラグの状態値とを受け前記フラグが非ECA状態(第
2の状態)のときには前記不一致信号の有無に拘らず前
記セレクション検出信号を前記マイクロコンピュータに
送出し前記フラグがECA状態(第1の状態)のときに
前記不一致信号を受けると前記セレクション検出信号の
前記マイクロコンピュータへの送出を抑制し且つ前記起
動信号を発して前記ビジーステータスリターン回路を起
動し前記フラグがECA状態(第1の状態)であって前
記不一致信号が発生していないときには前記セレクショ
ン検出信号を前記マイクロコンピュータに送出する論理
回路と、を備え、前記通信プログラムが、第3のイニシ
エータからの第1のコマンドに応じた処理中にエラーが
発生すると前記第1のコマンドに対しチェックコンディ
ションとイニシエイトリカバーのレスポンスで応じ前記
エラーのセンスデータを含んだ転送データを前記送信バ
ッファーにセットし前記フラグをECA状態(第1の状
態)にし前記ラッチを制御して前記第3のイニシエータ
を前記第1のイニシエータとしてそのIDを前記ラッチ
にラッチさせ、前記第3のイニシエータからリクエスト
センスの第2のコマンドを受けると前記送信バッファー
の前記転送データに基づき前記エラーのセンスデータを
含むレスポンスで応じ、前記第3のイニシエータからリ
リーズリカバリの第3のコマンドを受けると前記フラグ
を非ECA状態(第2の状態)にするものである。
In order to achieve this object, the configuration of the SCSI protocol control device of the present invention is as follows.
In a SCSI protocol controller for performing bus control according to a CSI (Small Computer System Interface) protocol, a transmission buffer in a RAM area and the SCSI
A microcomputer having a protocol-compatible communication program, a selection detection circuit for detecting selection as a target and generating a selection detection signal, and an ECA state (first state) and a non-ECA state controlled by the communication program. A flag such as a flip-flop that is set to any one of the states (second states), and an ID (Identifi) of a first initiator that is controlled by the communication program and is an initiator at that time.
cation) and SC when receiving a start signal
A busy status return circuit for issuing a fixed format busy status response according to the SI protocol; a mismatch detection circuit for generating a mismatch signal when accessed from a second initiator different from the first initiator; Upon receiving the mismatch signal and the state value of the flag, when the flag is in the non-ECA state (second state), the selection detection signal is sent to the microcomputer regardless of the presence or absence of the mismatch signal, and the flag is set in the ECA state ( When the mismatch signal is received in the (first state), the transmission of the selection detection signal to the microcomputer is suppressed, the start signal is issued to activate the busy status return circuit, and the flag is set in the ECA state (the first state). 1) and the mismatch signal is generated. A logic circuit for sending the selection detection signal to the microcomputer when the communication program is not executing the first command when the communication program generates an error during processing in response to the first command from the third initiator. The transfer data including the error sense data is set in the transmission buffer in response to the check condition and the response of the initiator cover in response to the above command, the flag is set to the ECA state (first state), and the latch is controlled by controlling the latch. The third initiator is used as the first initiator, and its ID is latched by the latch. When the second command of the request sense is received from the third initiator, the error sense data is transmitted based on the transfer data of the transmission buffer. Depending on the response, including the third From Initiator and receiving a third command Lillies recover the flag is to the non-ECA state (second state).

【0011】[0011]

【作用】このような構成のこの発明のSCSIプロトコ
ル制御装置にあっては、ECA機能のうちエラー発生時
のイニシエータ以外のイニシエータに対する処理は、起
動信号を受けたビジーステータスリターン回路によって
行われ、処理速度の遅い通信プログラムの介在を要しな
い。そこで、ビジーステータスのレスポンスで応じるこ
の処理は、直ちに短時間のうちに終えることができる。
また、ECA機能のうちエラー発生時のイニシエータに
対する処理は通信プログラムの介在を要するが、通信プ
ログラムはその特定のイニシエータに対してだけ応じれ
ば良い。
In the SCSI protocol control device according to the present invention having such a configuration, the processing of the ECA function for the initiator other than the initiator at the time of occurrence of the error is performed by the busy status return circuit which has received the start signal. There is no need for slow communication programs. Therefore, this processing in response to the busy status response can be immediately completed in a short time.
In the ECA function, the processing for the initiator when an error occurs requires the intervention of a communication program, but the communication program only needs to respond to the specific initiator.

【0012】この場合、送信バッファーが他の交信に用
いられることがないので、送信バッファーに転送データ
をセットするという時間の掛かる準備作業を予め済ませ
ておくことができる。これにより、エラー発生時のイニ
シエータにエラーステータスのレスポンスで応じる処理
も、直ちに短時間のうちに終えることができる。したが
って、実効の薄い又は何等実処理を伴わない交信のため
にバスが占有される時間が短くて済み、SCSIプロト
コルにおけるECA機能が効率よくサポートされる。
In this case, since the transmission buffer is not used for other communications, a time-consuming preparation operation of setting transfer data in the transmission buffer can be completed in advance. As a result, the process of responding to the initiator at the time of occurrence of the error with the response of the error status can be immediately completed in a short time. Therefore, the bus is occupied for a short period of time for communication with little effect or without any actual processing, and the ECA function in the SCSI protocol is efficiently supported.

【0013】[0013]

【実施例】以下、この発明の一実施例について図面を参
照して詳細に説明する。図1に、SCSIプロトコル制
御装置としてのHDD4について、SCSIプロトコル
制御回路140を中心としたブロック図を示す。従来例
におけるSCSIプロトコル制御回路14との相違点
は、ECA専用回路141が追加されたことと、通信プ
ログラム19dが一部改造されていることである。そこ
で、従来と同様の構成部分には従来例と同一の符号を付
し、従来との相違点を中心に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram of the HDD 4 as a SCSI protocol control device, focusing on the SCSI protocol control circuit 140. The difference from the SCSI protocol control circuit 14 in the conventional example is that an ECA dedicated circuit 141 is added and the communication program 19d is partially modified. Therefore, the same components as those of the conventional example are denoted by the same reference numerals as those of the conventional example, and the description will focus on differences from the conventional example.

【0014】ECA専用回路141は、ラッチとしての
ECA−IDラッチ142と、フラグとしてのECAフ
ラグ143と、不一致検出回路144と、ビジーステー
タスリターン回路146と、ゲート145とゲート14
7とを有する論理回路とからなる。フラグ143は、R
Sフリップフロップ等からなり、マイクロコンピュータ
19の通信プログラム19dの制御に応じてセット又は
リセットされる。これにより、ECA状態(第1の状
態)と非ECA状態(第2の状態)の何れか1つの状態
にセットされる
The ECA dedicated circuit 141 includes an ECA-ID latch 142 as a latch, an ECA flag 143 as a flag, a mismatch detection circuit 144, a busy status return circuit 146, a gate 145, and a gate 14
7 and a logic circuit having The flag 143 is
It is composed of an S flip-flop and the like, and is set or reset under the control of the communication program 19d of the microcomputer 19. As a result, one of the ECA state (first state) and the non-ECA state (second state) is set.

【0015】ECA−IDラッチ142は、イニシエー
タIDラッチ17の保持するイニシエータのIDをデー
タ入力として受け、マイクロコンピュータ19から制御
信号を受けるラッチである。そして、通信プログラム1
9dの制御によって制御されて、そのときのイニシエー
タのIDを保持する。なお、通信プログラム19dのこ
の制御はエラー発生時になされるので、このIDのイニ
シエータすなわち第1のイニシエータは、エラー発生時
のイニシエータである。
The ECA-ID latch 142 is a latch that receives, as a data input, the ID of the initiator held by the initiator ID latch 17 and receives a control signal from the microcomputer 19. And communication program 1
It is controlled by the control of 9d, and holds the ID of the initiator at that time. Since this control of the communication program 19d is performed when an error occurs, the initiator of this ID, that is, the first initiator, is the initiator when an error occurs.

【0016】ビジーステータスリターン回路146は、
ROMと読出し回路等を主体として構成される。このR
OMは、SCSIプロトコルに従う固定形式のビジース
テータスの転送データを記憶したものであり、読出し回
路は、ROMからこの転送データを順に読出してバスイ
ンターフェイス10aを介してバス10側へ送出するも
のである。これは、起動信号Bを受けるとその処理を行
う。これにより、通信プログラム19dの介在なしで、
ビジーステータスのレスポンスを発する。つまり、EC
A機能のうちエラー発生時のイニシエータ以外のイニシ
エータに対する処理がなされる。
The busy status return circuit 146
It is composed mainly of a ROM and a readout circuit. This R
The OM stores transfer data of a fixed format busy status according to the SCSI protocol, and a read circuit sequentially reads out the transfer data from the ROM and sends it to the bus 10 via the bus interface 10a. This performs the processing when receiving the start signal B. Thereby, without the intervention of the communication program 19d,
Issues a busy status response. In other words, EC
In the function A, processing is performed on initiators other than the initiator at the time of occurrence of an error.

【0017】不一致検出回路144は、EORゲート等
を主体として構成され、イニシエータIDラッチ17
と、ECA−IDラッチ142との出力をデータ入力と
して受ける。そして、これらからのイニシエータのID
を比較し、これらのIDが不一致であるか否かを検出し
て、不一致であれば不一致信号を発生する。すなわち、
イニシエータIDラッチ17が保持する現在のイニシエ
ータを第2のイニシエータとして、エラー発生時の第1
のイニシエータと異なる第2のイニシエータからアクセ
スされると不一致信号を発生する。
The mismatch detecting circuit 144 is mainly composed of an EOR gate and the like, and is provided with an initiator ID latch 17.
And the output of the ECA-ID latch 142 as a data input. And the initiator ID from these
Are compared to detect whether these IDs do not match. If they do not match, a mismatch signal is generated. That is,
The current initiator held by the initiator ID latch 17 is used as a second initiator, and the first
A mismatch signal is generated when accessed from a second initiator different from the one of the first initiator.

【0018】ゲート145は、この例の論理ではAND
ゲートでよく、フラグ143の値と不一致検出回路14
4からの不一致信号とを受け、これらの論理積を採って
起動信号Bを発生する。この起動信号Bが上述のビジー
ステータスリターン回路146に送出される。これによ
り、フラグ143がECA状態のときに不一致信号を受
けると、起動信号Bを発してビジーステータスリターン
回路146を起動する。
Gate 145 is AND in the logic of this example.
The value of the flag 143 and the mismatch detection circuit 14 may be used.
4 and receives the disagreement signal, and calculates a logical product of them to generate a start signal B. This start signal B is sent to the busy status return circuit 146 described above. Thus, when a mismatch signal is received when the flag 143 is in the ECA state, the activation signal B is issued to activate the busy status return circuit 146.

【0019】ゲート147は、セレクション検出回路1
6からのセレクション検出信号Aを正転入力に受け起動
信号Bを反転入力に受ける変形のANDゲートである。
なお、これは、ANDゲートとNOTゲートの組み合わ
せで構成してもよい。このゲート147の出力が従来の
セレクション検出信号Aに代わってセレクテッドフラグ
18に送出される。これにより、フラグ143が非EC
A状態のときには不一致信号Bの有無に拘らずに、さら
にフラグ143がECA状態であっても不一致信号が発
生していないときには、セレクション検出信号Aがマイ
クロコンピュータ19に送出される。また、フラグ14
3がECA状態のときに不一致信号が発生していると、
セレクション検出信号Aがマイクロコンピュータ19に
送出されない。
The gate 147 is connected to the selection detection circuit 1
6 is a modified AND gate which receives the selection detection signal A from 6 at its non-inverting input and receives the activation signal B at its inverting input.
Note that this may be configured by a combination of an AND gate and a NOT gate. The output of the gate 147 is sent to the selected flag 18 instead of the conventional selection detection signal A. As a result, the flag 143 becomes non-EC
In the state A, regardless of the presence or absence of the mismatch signal B, the selection detection signal A is sent to the microcomputer 19 when the flag 143 is in the ECA state and no mismatch signal is generated. The flag 14
If the mismatch signal is generated when 3 is in the ECA state,
The selection detection signal A is not sent to the microcomputer 19.

【0020】通信プログラム19dは、何等かの処理を
行うためにHDD4をターゲットとして選択した装置す
なわち第3のイニシエータから第1のコマンドを受ける
と、この第1のコマンドに応じた処理を制御プログラム
19b等に行わせる。そして、この処理中にエラーが発
生すると、ECA機能のうちエラー発生時のイニシエー
タに対する処理を担う。ただし、他のイニシエータに対
してはECA専用回路141が対応してくれるので、エ
ラー発生時のイニシエータに対する処理だけを効率よく
行うように改良されている。
When the communication program 19d receives a first command from a device selected as a target of the HDD 4 in order to perform some processing, that is, a third initiator, the communication program 19d executes processing corresponding to the first command. And so on. Then, if an error occurs during this processing, the ECA function is responsible for processing the initiator when an error occurs. However, since the ECA dedicated circuit 141 responds to other initiators, it is improved so that only the processing for the initiator when an error occurs is performed efficiently.

【0021】具体的には、第1のコマンドに対しては、
チェックコンディションとイニシエイトリカバーのレス
ポンスで応じる。これに加えて、エラーのセンスデータ
を含んだ転送データを送信バッファー19aにセット
し、フラグ143をECA状態にセットする。さらに、
ラッチ142を制御してそのときのイニシエータのID
をラッチさせる。すなわち、第3のイニシエータを第1
のイニシエータとしてそのIDをラッチ142にラッチ
させる。これにより、他のイニシエータである第2のイ
ニシエータに対してはECA専用回路141が対応して
くれる。
Specifically, for the first command,
It responds with the check condition and the response of the initiator cover. In addition, transfer data including error sense data is set in the transmission buffer 19a, and the flag 143 is set to the ECA state. further,
Controls the latch 142 and the ID of the initiator at that time
Latch. That is, the third initiator is connected to the first
The ID is latched by the latch 142 as the initiator of the. As a result, the ECA dedicated circuit 141 responds to the second initiator, which is another initiator.

【0022】また、第3のイニシエータからリクエスト
センスの第2のコマンドを受けると、送信バッファー1
9aの転送データに基づき、エラーのセンスデータを含
むレスポンスで応じる。第1のイニシエータとされた第
3のイニシエータからのアクセスについては、ECA専
用回路141の論理回路の働きによってセレクション検
出信号Aがマイクロコンピュータ19に伝えられるの
で、かかる処理が可能である。第3のイニシエータから
リリーズリカバリの第3のコマンドを受けると、フラグ
143をECA状態から非ECA状態にリセットする。
これにより、通常の処理状態に戻る。
When receiving a second command of request sense from the third initiator, the transmission buffer 1
Based on the transfer data 9a, a response including error sense data is responded. The access from the third initiator, which is the first initiator, is possible because the selection detection signal A is transmitted to the microcomputer 19 by the function of the logic circuit of the ECA dedicated circuit 141. Upon receiving a release recovery third command from the third initiator, the flag 143 is reset from the ECA state to the non-ECA state.
This returns to the normal processing state.

【0023】このような構成のHDD4すなわちSCS
Iプロトコル制御装置の動作を説明する。図2に、通信
ダイヤグラムと通信プログラム19dの処理との対応図
を示す。通常の状態で、コントローラ1がイニシエータ
となってHDD4がターゲットとされる場合を想定す
る。HDD4の通信プログラム19は、コントローラ1
からのコマンドを受けて、イニシエータ判定をし、制御
プログラム19bにHDD制御を行わせる。このときに
エラーが発生すると、そのときのイニシエータであるコ
ントローラ1に対し、チェックコンディションとイニシ
エイトリカバーのレスポンスで応じる。さらに、エラー
情報を予めバッファー19aに準備しておく。
The HDD 4 having such a configuration, that is, the SCS
The operation of the I protocol control device will be described. FIG. 2 shows a correspondence diagram between the communication diagram and the processing of the communication program 19d. It is assumed that the controller 1 is an initiator and the HDD 4 is a target in a normal state. The communication program 19 of the HDD 4 includes the controller 1
In response to the command from the control unit 19, an initiator determination is made, and the control program 19b controls the HDD. If an error occurs at this time, the controller responds to the controller 1 as the initiator at that time with a check condition and a response of the initiator cover. Further, error information is prepared in the buffer 19a in advance.

【0024】その後は、エラー発生時のコントローラ1
と異なるコントローラ2からの2番目のアクセスがある
と、これに対しては、通信プログラム19dに代わって
ビジーステータスリターン回路141が直ちにビジース
テータスのレスポンスで応じる。これにより、従来通信
プログラムによって行われていたイニシエータ判定や転
送データのセット等の処理が不要となり、この間のバス
占有時間が短くて済む(二重破線10b’参照)。ま
た、送信バッファー19aのデータが壊されることがな
い。
Thereafter, when the error occurs, the controller 1
When there is a second access from the controller 2 different from the above, the busy status return circuit 141 immediately responds to this with a busy status response instead of the communication program 19d. As a result, processes such as initiator determination and transfer data setting, which are conventionally performed by the communication program, become unnecessary, and the bus occupation time during this period can be reduced (see the double broken line 10b '). Further, the data in the transmission buffer 19a is not destroyed.

【0025】そして、エラー発生時のコントローラ1か
らの3番目のアクセスがあると、通常これはリクエスト
センスのコマンドであるので、送信バッファー19aに
準備されている転送データに基づいて直ちに、エラーの
センスデータを含むレスポンスで応じることができる
(二重破線10c’参照)。このように、このHDD4
は、SCSIプロトコルにおけるECA機能を効率よく
サポートすることができる。
Then, when there is a third access from the controller 1 at the time of occurrence of an error, since this is normally a request sense command, the error sense is immediately performed based on the transfer data prepared in the transmission buffer 19a. It can respond with a response including data (see double dashed line 10c '). Thus, this HDD 4
Can efficiently support the ECA function in the SCSI protocol.

【0026】以上、ターゲットにだけなる装置を例に説
明してきたが、この発明は、イニシエータとターゲット
の双方になり得る装置に対しても有効である。その場合
は、そのターゲットとしての機能を担う回路とプログラ
ムに対し、同様の改良を施せばよい。これにより、ター
ゲットとして選択されたときに、同様の作用効果を発揮
することができる。
Although the above description has been made with reference to an example of an apparatus serving only as a target, the present invention is also effective for an apparatus that can serve as both an initiator and a target. In such a case, similar improvements may be made to the circuit and the program serving as the target. Thereby, when the target is selected, the same operation and effect can be exhibited.

【0027】[0027]

【発明の効果】以上の説明から理解できるように、この
発明のSCSIプロトコル制御装置にあっては、SCS
IプロトコルのECA機能に関しては、ECA機能のう
ちエラー発生時のイニシエータ以外のイニシエータに対
してビジーステータスのレスポンスで応じるECA専用
回路を追加し、通信プログラムはECA機能のうちエラ
ー発生時のイニシエータに対する処理だけを担う。これ
により、ECA機能を効率よくサポートするSCSIプ
ロトコル制御装置を実現することができるという効果が
ある。
As can be understood from the above description, in the SCSI protocol control device of the present invention, the SCS
Regarding the ECA function of the I protocol, an ECA dedicated circuit that responds with a busy status response to an initiator other than the initiator in the event of an error in the ECA function is added, and the communication program processes the initiator in the ECA function when an error occurs. Only carry. Thereby, there is an effect that a SCSI protocol control device that efficiently supports the ECA function can be realized.

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

【図1】図1は、この発明の構成のSCSIプロトコル
制御装置の一実施例について、そのプロトコル制御回路
を中心とするブロック図である。
FIG. 1 is a block diagram of an embodiment of a SCSI protocol control device according to the present invention, focusing on its protocol control circuit.

【図2】図2は、その動作を説明するための通信ダイヤ
グラムである。
FIG. 2 is a communication diagram for explaining the operation.

【図3】図3は、SCSIバスを介して複数の装置が結
合したシステムの例である。
FIG. 3 is an example of a system in which a plurality of devices are connected via a SCSI bus.

【図4】図4は、従来のSCSIプロトコル制御装置に
ついて、そのプロトコル制御回路を中心とするブロック
図である。
FIG. 4 is a block diagram mainly showing a protocol control circuit of a conventional SCSI protocol control device.

【図5】図5は、その動作を説明するための通信ダイヤ
グラムである。
FIG. 5 is a communication diagram for explaining the operation.

【符号の説明】[Explanation of symbols]

1,2 コントローラ 3 FDD 4 HDD 4a HDD本体 5 CD−ROM 10 バス(SCSI−BUS) 11,12,13,14,15 SCSIプロトコル制
御回路(PC) 10a バスインターフェイス 16 セレクション検出回路 17 イニシエータIDラッチ17 18 セレクテッドフラグ18 19 マイクロコンピュータ 19a 送信バッファー 19b 制御プログラム 19c 通信プログラム 19d 通信プログラム 141 ECA専用回路 142 ECA−IDラッチ 143 ECAフラグ 144 不一致検出回路 145 ANDゲート 146 ビジーステータスリターン回路 147 ANDゲート
1, 2 controller 3 FDD 4 HDD 4a HDD main body 5 CD-ROM 10 bus (SCSI-BUS) 11, 12, 13, 14, 15 SCSI protocol control circuit (PC) 10a bus interface 16 selection detection circuit 17 initiator ID latch 17 18 Selected flag 18 19 Microcomputer 19a Transmission buffer 19b Control program 19c Communication program 19d Communication program 141 ECA dedicated circuit 142 ECA-ID latch 143 ECA flag 144 Mismatch detection circuit 145 AND gate 146 Busy status return circuit 147 AND gate

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】SCSI(Small Computer System Interf
ace )プロトコルに従ってバス制御を行うSCSIプロ
トコル制御装置において、 RAM領域の送信バッファーと前記SCSIプロトコル
対応の通信プログラムとを有するマイクロコンピュータ
と、ターゲットとして選択されたことを検出してセレク
ション検出信号を発生するセレクション検出回路と、前
記通信プログラムの制御によって第1の状態と第2の状
態の何れか1つの状態にセットされるフリップフロップ
等のフラグと、前記通信プログラムによって制御されそ
のときのイニシエータである第1のイニシエータのID
(Identification)を保持するラッチと、起動信号を受
けるとSCSIプロトコルに従う固定形式のビジーステ
ータスのレスポンスを発するビジーステータスリターン
回路と、前記第1のイニシエータと異なる第2のイニシ
エータからアクセスされると不一致信号を発生する不一
致検出回路と、前記セレクション検出信号と前記不一致
信号と前記フラグの状態値とを受け前記フラグが第2の
状態のときには前記不一致信号の有無に拘らず前記セレ
クション検出信号を前記マイクロコンピュータに送出し
前記フラグが第1の状態のときに前記不一致信号を受け
ると前記セレクション検出信号の前記マイクロコンピュ
ータへの送出を抑制し且つ前記起動信号を発して前記ビ
ジーステータスリターン回路を起動し前記フラグが第1
の状態であって前記不一致信号が発生していないときに
は前記セレクション検出信号を前記マイクロコンピュー
タに送出する論理回路と、を備え、前記通信プログラム
が、第3のイニシエータからの第1のコマンドに応じた
処理中にエラーが発生すると前記第1のコマンドに対し
チェックコンディションとイニシエイトリカバーのレス
ポンスで応じ前記エラーのセンスデータを含んだ転送デ
ータを前記送信バッファーにセットし前記フラグを第1
の状態にし前記ラッチを制御して前記第3のイニシエー
タを前記第1のイニシエータとしてそのIDを前記ラッ
チにラッチさせ、前記第3のイニシエータからリクエス
トセンスの第2のコマンドを受けると前記送信バッファ
ーの前記転送データに基づき前記エラーのセンスデータ
を含むレスポンスで応じ、前記第3のイニシエータから
リリーズリカバリの第3のコマンドを受けると前記フラ
グを第2の状態にすることを特徴とするSCSIプロト
コル制御装置。
(1) SCSI (Small Computer System Interface)
ace) In a SCSI protocol control device that performs bus control according to a protocol, a microcomputer having a transmission buffer in a RAM area and a communication program compatible with the SCSI protocol, and detecting selection as a target to generate a selection detection signal A selection detection circuit, a flag such as a flip-flop that is set to one of a first state and a second state by control of the communication program, and a second control unit that is controlled by the communication program and is an initiator at that time. Initiator ID of 1
(Identification), a busy status return circuit that issues a fixed format busy status response according to the SCSI protocol when receiving a start signal, and a mismatch signal when accessed from a second initiator different from the first initiator. Receiving the selection detection signal, the non-coincidence signal, and the state value of the flag, and when the flag is in the second state, outputs the selection detection signal to the microcomputer regardless of the presence or absence of the non-coincidence signal. When the flag is in the first state and the non-coincidence signal is received, the transmission of the selection detection signal to the microcomputer is suppressed, and the start signal is issued to start the busy status return circuit. Is the first
And a logic circuit for transmitting the selection detection signal to the microcomputer when the mismatch signal is not generated, wherein the communication program responds to a first command from a third initiator. When an error occurs during processing, the transfer data including the error sense data is set in the transmission buffer in response to the check condition and the response of the initiator cover in response to the first command, and the flag is set to the first command.
And controls the latch to cause the latch to latch the ID of the third initiator as the first initiator and to receive the second command of request sense from the third initiator. A SCSI protocol control apparatus, wherein the flag is set to a second state when a third command for release recovery is received from the third initiator in response to a response including the error sense data based on the transfer data. .
JP5173809A 1993-06-21 1993-06-21 SCSI protocol controller Expired - Fee Related JP2824890B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5173809A JP2824890B2 (en) 1993-06-21 1993-06-21 SCSI protocol controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5173809A JP2824890B2 (en) 1993-06-21 1993-06-21 SCSI protocol controller

Publications (2)

Publication Number Publication Date
JPH0713914A JPH0713914A (en) 1995-01-17
JP2824890B2 true JP2824890B2 (en) 1998-11-18

Family

ID=15967564

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5173809A Expired - Fee Related JP2824890B2 (en) 1993-06-21 1993-06-21 SCSI protocol controller

Country Status (1)

Country Link
JP (1) JP2824890B2 (en)

Also Published As

Publication number Publication date
JPH0713914A (en) 1995-01-17

Similar Documents

Publication Publication Date Title
JPS63255759A (en) Control system
EP0929866B1 (en) Bus interface control circuit
US5566345A (en) SCSI bus capacity expansion controller using gating circuits to arbitrate DMA requests from a plurality of disk drives
JPH06139207A (en) System bus control system
JP2824890B2 (en) SCSI protocol controller
JPS63175962A (en) Direct memory access controller
JP2988443B2 (en) Data transfer method
JP3345102B2 (en) Method of resetting a combined module and system using this method
JP2000155738A (en) Data processor
JP2705955B2 (en) Parallel information processing device
JPS593775B2 (en) Bus request processing unit
JPH10289120A (en) Information processor
RU2018944C1 (en) Device for interfacing computer with external objects
JPH02291039A (en) Memory control system
JP2573790B2 (en) Transfer control device
KR970009750B1 (en) Control method of state machine of interrupt requester
JP2667285B2 (en) Interrupt control device
JPH02730B2 (en)
JPH01147652A (en) Bus controller
JPH07234850A (en) Device and method for multiprocessor system
JPH09106383A (en) Bus switching device
JPS6260052A (en) Phase control system
JPH08320842A (en) Data transfer control system
JPH01133444A (en) System bus controller
JP2000035939A (en) Intelligent type pc add-in board

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees