JP2001101090A - Inputting and outputting device for computer system - Google Patents

Inputting and outputting device for computer system

Info

Publication number
JP2001101090A
JP2001101090A JP27329299A JP27329299A JP2001101090A JP 2001101090 A JP2001101090 A JP 2001101090A JP 27329299 A JP27329299 A JP 27329299A JP 27329299 A JP27329299 A JP 27329299A JP 2001101090 A JP2001101090 A JP 2001101090A
Authority
JP
Japan
Prior art keywords
control circuit
input
data
data transfer
output device
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
JP27329299A
Other languages
Japanese (ja)
Other versions
JP3451995B2 (en
Inventor
Katsuyuki Otsuka
克之 大塚
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.)
NEC Ibaraki Ltd
Original Assignee
NEC Ibaraki 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 NEC Ibaraki Ltd filed Critical NEC Ibaraki Ltd
Priority to JP27329299A priority Critical patent/JP3451995B2/en
Publication of JP2001101090A publication Critical patent/JP2001101090A/en
Application granted granted Critical
Publication of JP3451995B2 publication Critical patent/JP3451995B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an inputting and outputting device which can be suitably used at the time of operating data transfer with a host device by using an SCSI interface as an I/O interface. SOLUTION: In the inputting and outputting device of a computer system for operating data transfer through an interface with a host device, a data transfer control circuit counts the number of data designated from the host device and the number of data to be transferred to the host device, and when the number of data to be transferred is smaller than the number of data designated from the host device, the data transfer control circuit checks the number of REQ pulses and ACK pulses counted in a prescribed time by an REQ/ACK pulse monitoring circuit, and when the number of pulses are the same, data transfer processing in an interface control circuit is forcedly ended, and when the number of pulses is different, the data transfer processing in the interface control circuit is error-ended.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータシス
テムの入出力装置に関し、特に、SCSIインターフェ
ースをI/Oインターフェースとして用いて上位装置と
のデータ転送を行う場合に好適に利用できる入出力装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an input / output device of a computer system, and more particularly to an input / output device which can be suitably used when data is transferred to a higher-level device using a SCSI interface as an I / O interface.

【0002】[0002]

【従来の技術】ホストコンピュータやワークステーショ
ンなどの小型コンピュータと、ハードディスクや光ディ
スク装置等の周辺機器とを接続するI/Oインターフェ
ースとしてSCSIインターフェースが知られている。
このSCSIインターフェースは、複数の周辺機器を混
在させて使用することができるため、コンピュータ装置
と周辺機器との接続に広く利用されている。
2. Description of the Related Art A SCSI interface is known as an I / O interface for connecting a small computer such as a host computer or a workstation to peripheral devices such as a hard disk and an optical disk device.
Since the SCSI interface can use a plurality of peripheral devices in a mixed manner, it is widely used for connection between computer devices and peripheral devices.

【0003】このようなSCSIインターフェースを用
いたデータ転送処理において、データ転送の信頼性を向
上させるために、例えばターゲットからイニシエータ方
向へのデータ転送を行うに際して、データ転送のREQ
(リクエスト)パルスと同期させた転送データをターゲ
ットがイニシエータ側に送出し、イニシエータ側はデー
タを正常に受信した場合に、ターゲット側にACK(ア
クノウレッジ)パルスを送出するといった方法が採られ
ている。
In data transfer processing using such a SCSI interface, in order to improve the reliability of data transfer, for example, when performing data transfer from the target to the initiator, the REQ of the data transfer is used.
(Request) The target sends out transfer data synchronized with the pulse to the initiator, and the initiator sends an ACK (acknowledge) pulse to the target when the initiator normally receives the data. .

【0004】[0004]

【発明が解決しようとする課題】しかしながら、SCS
Iインターフェースでは複数の機器を接続しているため
入出力装置(ターゲット)と上位装置(イニシエータ)
間のデータ転送処理において、各機器の伝送特性の変化
に起因してインターフェースエラーが発生することが往
々にしてある。
SUMMARY OF THE INVENTION However, SCS
In the I interface, a plurality of devices are connected, so an input / output device (target) and a host device (initiator)
In data transfer processing between the devices, an interface error often occurs due to a change in transmission characteristics of each device.

【0005】このような伝送エラーの一つに、下位終了
による強制終了が行われる場合のインターフェースエラ
ーがある。すなわち、ターゲットからイニシエータ方向
へデータを転送する際に、イニシエータ側が指定したデ
ータ数よりもターゲット側から転送するデータ数が少な
く、転送データが尽きてしまういわゆる下位終了が発生
した場合に、ターゲットはREQパルス送出後、一定の
時間が経過するとデータ転送が正常に行われたか否かに
関わらず、自動的にデータ転送強制終了処理を実行して
しまう。
[0005] One of such transmission errors is an interface error when forced termination is performed due to lower-order termination. That is, when transferring data from the target to the initiator, when the number of data to be transferred from the target side is smaller than the number of data specified by the initiator side, and a so-called lower end in which transfer data runs out occurs, the target sets REQ. After a certain time elapses after the pulse is transmitted, the data transfer forced termination process is automatically executed regardless of whether the data transfer is normally performed.

【0006】ここで、従来の入出力装置には、REQパ
ルスに対するACKパルスの応答が確実に行われたこと
を確認する手段が設けられていないため、ターゲットか
らのREQパルスに対して、イニシエータからのACK
パルスによる応答が一定時間以上遅れた場合に、ターゲ
ット側がACKパルスを受信する前に誤ってSCSIフ
ェーズを遷移してしまい、SCSIインターフェースエ
ラーが生じる。
Here, the conventional input / output device is not provided with a means for confirming that the response of the ACK pulse to the REQ pulse has been reliably performed, so that the initiator responds to the REQ pulse from the target from the initiator. ACK
If the response by the pulse is delayed for a certain period or more, the SCSI phase is erroneously transited before the target receives the ACK pulse, and a SCSI interface error occurs.

【0007】また、従来の装置はターゲットが転送デー
タの正当性の確認を行う機能を持っていないため、下位
終了によりターゲットがデータ転送の強制終了処理を実
行した場合に、転送データが正常なものかどうかを判断
することができず、データ転送の信頼性に欠けるという
問題点もある。
Further, since the conventional device does not have a function for the target to check the validity of the transfer data, when the target executes the forced termination process of the data transfer due to the lower end, the transfer data is not normally transmitted. There is also a problem that it is not possible to judge whether or not the data transfer is performed, and the reliability of data transfer is lacking.

【0008】本発明は上記課題を解決すべくなされたも
のであり、上述したSCSIインターフェースエラーの
発生を防止し、転送データが正常であるか否かを判断す
ることによってSCSIインターフェースを介して行わ
れるデータ転送の信頼性を向上させるようにしたコンピ
ュータシステムの入出力装置を提供することを目的とす
る。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and is performed through a SCSI interface by preventing the above-described SCSI interface error from occurring and determining whether or not transfer data is normal. It is an object of the present invention to provide an input / output device of a computer system that improves the reliability of data transfer.

【0009】[0009]

【課題を解決するための手段】上記課題を解決するため
に、本発明の入出力装置は、インターフェースを介して
上位装置とデータ転送を行うコンピュータシステムの入
出力装置において、前記上位装置とのインターフェース
を制御する上位インターフェース制御回路と、前記上位
インターフェース制御回路で行うデータ転送を制御する
データ転送制御回路と、前記上位装置に送られるリクエ
ストパルス(REQパルス)と、当該REQパルスに応
じて前記上位装置から送られてくる応答パルス(ACK
パルス)とのパルス数をカウントするREQ/ACKパ
ルス監視回路と、前記上位インターフェース制御回路の
動作を制御する入出力装置制御回路とを具え、前記デー
タ転送制御回路が前記上位装置から指定されたデータ数
と前記上位装置へ転送するデータのデータ数とをカウン
トして、上位装置から指定されたデータ数よりも転送デ
ータのデータ数が少ない場合に前記REQ/ACKパル
ス監視回路で所定の時間内にカウントしたREQパルス
とACKパルスのパルス数をチェックして、当該パルス
数が同じである場合に前記インターフェース制御回路に
おけるデータ転送処理を強制終了させ、前記パルス数が
異なる場合に前記インターフェース制御回路におけるデ
ータ転送処理をエラー終了させるようにしたことを特徴
とする。
In order to solve the above-mentioned problems, an input / output device according to the present invention is an input / output device of a computer system which performs data transfer with an upper device via an interface. Interface control circuit for controlling data transfer, a data transfer control circuit for controlling data transfer performed by the upper interface control circuit, a request pulse (REQ pulse) sent to the upper device, and the upper device in response to the REQ pulse. Response pulse (ACK) sent from
A REQ / ACK pulse monitoring circuit that counts the number of pulses with an input / output device, and an input / output device control circuit that controls the operation of the higher-level interface control circuit. And counting the number of data to be transferred to the higher-level device, and when the number of data to be transferred is smaller than the number of data specified by the higher-level device, the REQ / ACK pulse monitoring circuit within a predetermined time period. The number of counted REQ and ACK pulses is checked, and if the number of pulses is the same, the data transfer process in the interface control circuit is forcibly terminated. If the number of pulses is different, the data in the interface control circuit is deleted. The transfer process is terminated with an error.

【0010】このように構成することによって、下位終
了によりデータ転送の強制終了を実行する場合に、入出
力装置がREQパルスを送出した後、上位装置からのA
CKパルスによる応答を確実に待って行うことができ
る。このため、上位装置がACKパルスを送出する前の
不定なタイミングでSCSIフェーズが誤って遷移する
ことによるSCSIインターフェースエラーの発生を防
止することができる。
[0010] With this configuration, when the data transfer is forcibly terminated by the lower end, after the input / output device sends out the REQ pulse, the A / A
The response by the CK pulse can be reliably performed after waiting. For this reason, it is possible to prevent the occurrence of a SCSI interface error due to the erroneous transition of the SCSI phase at an undefined timing before the host device transmits the ACK pulse.

【0011】また、本発明の入出力装置は更に、前記上
位装置へ転送するデータの状態をチェックするデータチ
ェック回路を具え、前記インターフェース制御回路にお
けるデータ転送処理を強制終了させる場合に、更に前記
転送したデータの正当性をチェックして転送したデータ
の状態が正当なものであれば、前記上位インターフェー
ス制御回路におけるデータ転送処理を強制終了させ、前
記データ転送処理によって転送したデータの状態が正当
でない場合には前記上位インターフェース制御回路にお
けるデータ転送処理をエラー終了させることを特徴とす
る。
Further, the input / output device of the present invention further comprises a data check circuit for checking a state of data to be transferred to the higher-level device. If the transferred data is checked for validity and the state of the transferred data is valid, the data transfer processing in the upper interface control circuit is forcibly terminated, and the state of the data transferred by the data transfer processing is not valid. Is characterized in that the data transfer processing in the upper interface control circuit is terminated with an error.

【0012】このように構成することによって、データ
転送を下位終了により強制終了する場合に、データが正
当であるか否かを確認して行うことができ、転送データ
の信頼性を向上させることができる。
With this configuration, when data transfer is forcibly terminated by lower-order termination, it is possible to confirm whether or not the data is valid, thereby improving the reliability of the transferred data. it can.

【0013】また、本発明の入出力装置は更に、前記R
EQ/ACKパルス監視回路において一定時間内に前記
ACKパルスの応答がない場合にパルス監視時間のタイ
ムアウトを検出するタイマ手段を具え、当該タイマ手段
にてタイムアウトが検出された場合に、前記上位インタ
ーフェース制御回路におけるデータ転送処理をエラー終
了させることを特徴とする。
Further, the input / output device of the present invention further comprises the above R
A timer means for detecting a timeout of a pulse monitoring time when the ACK pulse is not responded within a predetermined time in the EQ / ACK pulse monitoring circuit, and controlling the upper interface control when a timeout is detected by the timer means; The data transfer processing in the circuit is terminated with an error.

【0014】このように構成することによって、一定時
間内にACKパルスの応答がない場合には、エラー処理
が行われることになり、入出力装置全体における処理の
迅速化、およびデータ転送の信頼性の向上を図ることと
ができる。
With this configuration, if there is no response to the ACK pulse within a certain period of time, error processing is performed, which speeds up processing in the entire input / output device and reliability of data transfer. Can be improved.

【0015】また、本発明の入出力装置は更に、前記入
出力装置制御回路がメモリ手段を具え、前記パルス監視
タイマ手段がタイムアウトを検出したときの事象を前記
メモリ手段に記憶させることを特徴とする。
Further, the input / output device of the present invention is further characterized in that the input / output device control circuit includes a memory means, and stores an event when the pulse monitoring timer means detects a timeout in the memory means. I do.

【0016】このように構成することによって、メモリ
上の記録を後ほど読み出すことで、どのような場合にA
CKパルスの応答が遅れるのかを検証し、データ転送性
能が低下する場合の事象を的確に把握することができ
る。
With such a configuration, by reading the record on the memory later, the A
By verifying whether the response of the CK pulse is delayed, it is possible to accurately grasp an event when the data transfer performance is reduced.

【0017】また、本発明の入出力装置は、前記入出力
装置が下位インターフェースを介して下位装置に接続さ
れていると共に、当該下位インターフェースを制御する
下位インターフェース制御回路を具え、前記データ転送
制御回路が前記下位インターフェース制御回路と前記上
位インターフェース制御回路間のデータ転送を制御する
ように構成されていてもよい。
Further, the input / output device of the present invention includes a lower interface control circuit for controlling the lower interface while the input / output device is connected to the lower device via a lower interface. May be configured to control data transfer between the lower interface control circuit and the upper interface control circuit.

【0018】また、本発明の入出力装置は、前記上位イ
ンターフェースがSCSIインターフェースである場合
に好適に利用できる。
Also, the input / output device of the present invention can be suitably used when the upper interface is a SCSI interface.

【0019】[0019]

【発明の実施の形態】本発明の実施の形態を添付の図面
を参照して詳細に説明する。図1は、本発明に係る入出
力装置の第1の実施形態の構成を示す図であり、図2
は、図1の装置におけるデータ転送動作を説明するため
のフローチャートである。図1に示すとおり、入出力装
置1は、インターフェース21を介して上位装置(図示
せず)と、またインターフェース22を介して下位装置
(図示せず)と接続されている。本例では、上位装置
(図示せず)との間のデータ転送にSCSIインターフ
ェース21をI/Oインターフェースとして使用してい
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 is a diagram showing a configuration of a first embodiment of an input / output device according to the present invention.
5 is a flowchart for explaining a data transfer operation in the device of FIG. As shown in FIG. 1, the input / output device 1 is connected to a higher-level device (not shown) via an interface 21 and to a lower-level device (not shown) via an interface 22. In this example, the SCSI interface 21 is used as an I / O interface for data transfer with a higher-level device (not shown).

【0020】入出力装置1はSCSIインターフェース
21を制御するSCSIインターフェース制御回路11
と、下位装置とのデータ転送を行うインターフェース2
2を制御する下位インターフェース制御回路12と、S
CSIインターフェース制御回路11と下位インターフ
ェース回路12間でのデータ転送を制御するダイレクト
転送制御回路13と、SCSIインターフェース制御回
路11の動作を制御する入出力装置制御回路14と、割
り込みが発生した場合に割り込み発生信号を前記入出力
制御回路14に送る割り込み制御回路15とを具える。
The input / output device 1 is a SCSI interface control circuit 11 for controlling a SCSI interface 21.
And interface 2 for data transfer with lower-level devices
2, a lower interface control circuit 12 for controlling
A direct transfer control circuit 13 for controlling data transfer between the CSI interface control circuit 11 and the lower interface circuit 12, an input / output device control circuit 14 for controlling the operation of the SCSI interface control circuit 11, and an interrupt when an interrupt occurs And an interrupt control circuit 15 for sending a generated signal to the input / output control circuit 14.

【0021】更に、入出力装置1は、SCSIインター
フェース21とSCSIインターフェース制御回路11
との間に設けられデータ転送の状態を監視するREQ/
ACKパルス監視回路16と、やはり、SCSIインタ
ーフェース21とSCSIインターフェース制御回路1
1との間に設けられデータ転送終了時にデータエラーの
有無をチェックするデータチェック回路17を具える。
なお、入出力制御回路14は、REQ/ACKパルス監
視回路16と、データチェック回路17にも接続されて
いる。
Further, the input / output device 1 includes a SCSI interface 21 and a SCSI interface control circuit 11.
REQ / monitoring the status of data transfer provided between
ACK pulse monitoring circuit 16, also SCSI interface 21 and SCSI interface control circuit 1
1 and a data check circuit 17 for checking the presence or absence of a data error at the end of data transfer.
The input / output control circuit 14 is also connected to the REQ / ACK pulse monitoring circuit 16 and the data check circuit 17.

【0022】ダイレクト転送制御回路13は、SCSI
インターフェース制御回路11と下位インターフェース
制御回路12間のデータ転送の制御を行う。また、ダイ
レクト転送制御回路13は、転送するデータ数をカウン
トするカウンタを具え、転送データ数をカウントして上
位装置から指定されたデータ数より入出力装置1から上
位装置へ転送したデータ数が少ない場合に、下位終了を
検出して割り込み制御回路15へ“DATA SHOR
T信号”出力する。
The direct transfer control circuit 13 has a SCSI
It controls data transfer between the interface control circuit 11 and the lower interface control circuit 12. Further, the direct transfer control circuit 13 includes a counter for counting the number of data to be transferred, and counts the number of data to be transferred, and the number of data transferred from the input / output device 1 to the upper device is smaller than the number of data specified by the higher device. In this case, the lower end is detected and the interrupt control circuit 15 sends a “DATA SHOR
T signal is output.

【0023】割り込み制御回路15では、この”DAT
A SHORT信号”を受けて“DATA SHORT
割り込み信号”を入出力装置制御回路14に送る。
In the interrupt control circuit 15, this "DAT
"A SHORT signal" and "DATA SHORT
To the input / output device control circuit 14.

【0024】REQ/ACKパルス監視回路16では入
出力装置1から上位装置へ送られるREQパルス数と上
位装置から入出力装置1へ送られてくるACKパルス数
とをカウントして、両者のパルス数が等しい場合にその
旨を表示すると共に、REQパルスとACKパルスの各
々のパルス数を表示する。
The REQ / ACK pulse monitoring circuit 16 counts the number of REQ pulses sent from the input / output device 1 to the host device and the number of ACK pulses sent from the host device to the input / output device 1, and counts the number of both pulses. Are equal to each other, the number of each of the REQ pulse and the ACK pulse is displayed.

【0025】データチェック回路17は、データ転送が
終了したときにデータエラーの有無をチェックしてそれ
を表示すると共に、データエラーが生じている場合はそ
のエラー内容を表示する。
When the data transfer is completed, the data check circuit 17 checks for the presence or absence of a data error and displays it, and if a data error has occurred, displays the content of the error.

【0026】入出力装置制御回路14は、割り込み制御
回路15から”DATA SHORT割り込み信号”を
受け取ると、パルス監視回路16に対してREQパルス
とACKパルスの両者のパルス数が等しいか否かの確認
を行って、等しければSCSIインターフェース制御回
路11にデータ転送強制終了を指示し、等しくない場合
にはエラー終了を指示する。また、REQパルスとAC
Kパルスのパルス数が等しくデータ転送強制終了を指示
した場合は、データチェック回路17に対してデータ転
送にエラーがあったか否かを確認し、エラーがなく正当
にデータ転送処理が行われた場合にはSCSIインター
フェース制御回路11をリセットし、エラーが生じた場
合はエラー終了処理を指示する。
When the input / output device control circuit 14 receives the "DATA SHORT interrupt signal" from the interrupt control circuit 15, the input / output device control circuit 14 checks with the pulse monitoring circuit 16 whether the number of both the REQ pulse and the ACK pulse is equal. Is performed, and if they are equal, the SCSI interface control circuit 11 is instructed to forcibly end data transfer, and if they are not equal, an error end is instructed. REQ pulse and AC
If the number of K pulses is equal and the data transfer forced termination is instructed, the data check circuit 17 is checked whether there is an error in the data transfer, and if there is no error and the data transfer processing is properly performed, Resets the SCSI interface control circuit 11 and instructs error termination processing if an error occurs.

【0027】次に、図2を参照して、本発明の第1の実
施形態の入出力装置1におけるデータ転送動作を説明す
る。まず、SCSIインターフェース21においてター
ゲットからイニシエータ方向へのデータ転送が起動され
る(ステップ201)。このデータ転送処理実行中にイ
ニシエータが指定したデータ数よりも先に転送データが
尽きてしまい、いわゆる下位終了が発生すると、ダイレ
クト転送制御回路13がこの下位終了を検出し、割り込
み制御回路15に”DATA SHORT信号”を通知
する。この信号を受けた割り込み制御回路15は、”D
ATA SHORT割り込み信号”を入出力装置制御回
路14に通知する(ステップ202)。
Next, a data transfer operation in the input / output device 1 according to the first embodiment of the present invention will be described with reference to FIG. First, data transfer from the target to the initiator is started in the SCSI interface 21 (step 201). When the transfer data runs out before the number of data designated by the initiator during the execution of the data transfer processing, and a so-called lower end occurs, the direct transfer control circuit 13 detects this lower end, and the interrupt control circuit 15 A DATA SHORT signal "is notified. Upon receiving this signal, the interrupt control circuit 15 outputs “D
An ATA SHORT interrupt signal "is notified to the input / output device control circuit 14 (step 202).

【0028】この通知を受けた入出力装置制御回路14
は、REQ/ACKパルス監視回路16に対して、所定
の時間内におけるREQパルスとACKパルスの両パル
ス数が同じであるか否かを確認する(ステップ20
3)。ここでREQパルスとACKパルスが同数であれ
ば(ステップ203、YES)、入出力装置制御回路1
4は、SCSIインターフェース制御回路11にデータ
転送の強制終了を指示する(ステップ204)。また、
REQパルスとACKパルスが異なる場合(ステップ2
03、NO)は、所定時間の経過を待って(ステップ2
07)、エラー終了を指示する。
The input / output device control circuit 14 receiving this notification
Checks with the REQ / ACK pulse monitoring circuit 16 whether the number of both the REQ pulse and the ACK pulse within the predetermined time is the same (step 20).
3). If the number of REQ pulses and the number of ACK pulses are the same (step 203, YES), the input / output device control circuit 1
4 instructs the SCSI interface control circuit 11 to forcibly end the data transfer (step 204). Also,
When the REQ pulse and the ACK pulse are different (step 2
03, NO) waits for the elapse of a predetermined time (step 2).
07), error termination is instructed.

【0029】データ転送強制終了が正常に終了したら、
入出力装置制御回路14はデータチェック回路17から
転送したデータが正当であるかどうかの確認を行い、エ
ラーがなければ(ステップ205、NO)、更にダイレ
クト転送制御回路13のカウンタから表示されるデータ
転送数と、REQ/ACKパルス監視回路16のカウン
タに表示されるデータ転送数の比較を行い、データ転送
数が等しいことを確認して、SCSIインターフェース
制御回路11にSCSIインターフェース制御回路11
内部のデータ転送回路のリセット指示を行い(ステップ
206)、ターゲットからイニシエータ方向へのデータ
転送処理における下位終了によるデータ転送の強制終了
処理を終了する。また、ステップ205において、デー
タチェック回路17が転送データにエラーを検出した場
合は(ステップ205、YES)、データ転送強制終了
処理をエラー終了させる。
When the forced termination of the data transfer ends normally,
The input / output device control circuit 14 checks whether the data transferred from the data check circuit 17 is valid. If there is no error (step 205, NO), the data displayed from the counter of the direct transfer control circuit 13 The number of data transfers is compared with the number of data transfers displayed on the counter of the REQ / ACK pulse monitoring circuit 16 to confirm that the number of data transfers is equal, and the SCSI interface control circuit 11
A reset instruction of the internal data transfer circuit is issued (step 206), and the forced termination process of the data transfer due to the lower end in the data transfer process from the target to the initiator ends. If the data check circuit 17 detects an error in the transfer data in step 205 (step 205, YES), the data transfer forcible termination process is terminated with an error.

【0030】図3は、本発明に係る入出力装置の第2の
実施形態の構成を示す図である。図3に示すように、第
2の実施形態の入出力装置30は、REQ/ACKパル
ス監視回路16と割り込み制御回路15との間にREQ
/ACKパルス監視タイマ31を設けて、入出力装置か
ら出されたREQパルスに対して一定時間以上ACKパ
ルスの応答がない場合に割り込み制御回路15にタイム
アウトを報告するようにしている。
FIG. 3 is a diagram showing the configuration of a second embodiment of the input / output device according to the present invention. As shown in FIG. 3, the input / output device 30 according to the second embodiment includes a REQ / ACK pulse monitoring circuit 16 and an REQ
A / ACK pulse monitoring timer 31 is provided so that a timeout is reported to the interrupt control circuit 15 when there is no response of the ACK pulse to the REQ pulse output from the input / output device for a certain period of time.

【0031】このREQ/ACKパルス監視タイマ31
には、比較的小さなタイマ値が設定されており、設定し
た時間内にREQパルスに対するACKパルスの応答が
なかった場合にタイムアウトを検出して、割り込み制御
回路14にタイムアウト信号を送る。割り込み制御回路
15は、このタイムアウト信号を受けると、入出力装置
制御回路14に割り込みを通知し、この割り込みを受け
た入出力制御回路14は、SCSIインターフェース制
御回路11にエラー信号を送り、インターフェース制御
回路11ではエラー終了を実行する。したがって、何ら
かの原因でAKCパルスの応答がなされなかった場合
に、装置全体の処理が促進される。
This REQ / ACK pulse monitoring timer 31
Has a relatively small timer value. When no ACK pulse response to the REQ pulse is received within the set time, a timeout is detected and a timeout signal is sent to the interrupt control circuit 14. Upon receiving the timeout signal, the interrupt control circuit 15 notifies the input / output device control circuit 14 of an interrupt. The input / output control circuit 14 having received the interrupt sends an error signal to the SCSI interface control circuit 11, The circuit 11 executes error termination. Therefore, when the AKC pulse is not responded for some reason, the processing of the entire apparatus is promoted.

【0032】また、本実施形態では、入出力装置制御回
路14にメモリ32を接続して、上記タイムアウトが生
じた時の事象をメモリ32上に記録するようにしてい
る。メモリ32上の記録を後ほど読み出すことで、どの
ような場合にACKパルスの応答が遅れるのかを検証す
ることが可能となり、データ転送性能が低下する場合の
事象を常に監視することができる。この性能低下は例え
ば、データ転送中ということで多重処理を行い、その時
の処理に問題があり、ファームウェアによるデータ転送
終了の確認が遅れ、最後のACKパルスのネゲートが遅
れてしまう場合に発生する性能低下をさす。尚、REQ
/ACKパルス監視タイマ31とメモリ32以外の構成
は第1の実施形態の構成と同様であるので、図1に使用
した符号と同じ符号を付してその説明はここでは省略す
る。
Further, in the present embodiment, the memory 32 is connected to the input / output device control circuit 14 so that the event when the above-mentioned timeout occurs is recorded on the memory 32. By reading the record on the memory 32 later, it is possible to verify when the response of the ACK pulse is delayed, and it is possible to always monitor the event when the data transfer performance is reduced. For example, performance degradation occurs when data is being transferred and multiplex processing is performed, and there is a problem in the processing at that time. The performance that occurs when the confirmation of data transfer completion by the firmware is delayed and the negation of the last ACK pulse is delayed. Refers to a decline. In addition, REQ
Since the configuration other than the / ACK pulse monitoring timer 31 and the memory 32 is the same as the configuration of the first embodiment, the same reference numerals as those used in FIG. 1 are used and the description is omitted here.

【0033】図4は、図3に示す第2実施形態の入出力
装置における動作処理のフローチャートである。パルス
監視回路16にてACKパルスの応答がなく(ステップ
208、NO)、応答のない状態が監視タイマ31に設
定したタイマ値を越えて、REQ/ACKパルス監視タ
イマ31がタイムアウトを検出した場合(ステップ20
9、YES)、入出力装置制御回路14は、割り込み制
御回路15からのタイムアウト割り込み信号を受けてS
CSIインターフェース制御回路11にエラー終了信号
を出力する。一方、設定したタイマ値内に、ACKパル
スの応答があった場合(ステップ208、YES)、R
EQ/ACKパルス監視回路16がパルス数の監視を続
けて、図2で説明したステップ203以降の処理を行
う。なお、ステップ201〜207までの処理は、第1
実施形態における処理と同様であるのでここではその説
明は省略する。
FIG. 4 is a flowchart of an operation process in the input / output device of the second embodiment shown in FIG. When there is no response to the ACK pulse in the pulse monitoring circuit 16 (step 208, NO), the state of no response exceeds the timer value set in the monitoring timer 31, and the REQ / ACK pulse monitoring timer 31 detects a timeout ( Step 20
9, YES), the input / output device control circuit 14 receives the timeout interrupt signal from the interrupt control circuit 15, and
An error end signal is output to the CSI interface control circuit 11. On the other hand, if there is an ACK pulse response within the set timer value (step 208, YES), R
The EQ / ACK pulse monitoring circuit 16 continues to monitor the number of pulses, and performs the processing after step 203 described in FIG. The processing of steps 201 to 207 is performed in the first
Since the processing is the same as that in the embodiment, the description is omitted here.

【0034】[0034]

【発明の効果】上述のように、本発明の入出力装置によ
れば、SCSIインターフェースを介して行うターゲッ
トからイニシエータ方向へのデータ転送を下位終了によ
り強制終了させる場合に、ACKパルスの応答が確実に
行われたか否かを確認することができる。従って、AC
Kパルス送出前の不定なタイミングでのSCSIインタ
ーフェースの遷移によるSCSIインターフェースエラ
ーの発生を効果的に防止することができる。
As described above, according to the input / output device of the present invention, when the data transfer from the target to the initiator via the SCSI interface is forcibly terminated by lower-order termination, the response of the ACK pulse is ensured. Can be confirmed whether or not. Therefore, AC
It is possible to effectively prevent occurrence of a SCSI interface error due to transition of the SCSI interface at an undefined timing before K pulse transmission.

【0035】また、下位終了によりデータ転送強制終了
を実行した場合に、転送データが正当であるか否かの確
認することが可能となるため、転送データの信頼性を向
上させることができる。
Further, when the data transfer is forcibly terminated by the lower end, it is possible to confirm whether the transferred data is valid or not, so that the reliability of the transferred data can be improved.

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

【図1】図1は、本発明に係る入出力装置の第1の実施
形態の構成を示す図である。
FIG. 1 is a diagram showing a configuration of a first embodiment of an input / output device according to the present invention.

【図2】図2は、図1の装置におけるデータ転送動作を
説明するためのフローチャートである。
FIG. 2 is a flowchart for explaining a data transfer operation in the device of FIG. 1;

【図3】図3は、本発明に係る入出力装置の第1の実施
形態の構成を示す図である。
FIG. 3 is a diagram showing a configuration of a first embodiment of an input / output device according to the present invention.

【図4】図4は、図3の装置におけるデータ転送動作を
説明するためのフローチャートである。
FIG. 4 is a flowchart for explaining a data transfer operation in the device of FIG. 3;

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

1、30 入出力装置 11 SCSIインターフェース制御回路 12 下位インターフェース制御回路 13 ダイレクト転送制御回路 14 入出力装置制御回路 15 割り込み制御回路 16 REQ/ACKパルス監視回路 17 データチェック回路 21 SCSIインターフェース 22 下位インターフェース 31 REQ/ACKパルス監視タイマ 32 メモリ 1, 30 I / O device 11 SCSI interface control circuit 12 Lower interface control circuit 13 Direct transfer control circuit 14 I / O device control circuit 15 Interrupt control circuit 16 REQ / ACK pulse monitoring circuit 17 Data check circuit 21 SCSI interface 22 Lower interface 31 REQ / ACK pulse monitoring timer 32 memory

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 インターフェースを介して上位装置とデ
ータ転送を行うコンピュータシステムの入出力装置にお
いて、前記上位装置とのインターフェースを制御する上
位インターフェース制御回路と、前記上位インターフェ
ース制御回路で行うデータ転送を制御するデータ転送制
御回路と、前記上位装置に送られるリクエストパルス
(REQパルス)と、当該REQパルスに応じて前記上
位装置から送られてくる応答パルス(ACKパルス)と
のパルス数をカウントするREQ/ACKパルス監視回
路と、前記上位インターフェース制御回路の動作を制御
する入出力装置制御回路とを具え、前記データ転送制御
回路が前記上位装置から指定されたデータ数と前記上位
装置へ転送するデータのデータ数とをカウントして、上
位装置から指定されたデータ数よりも転送データのデー
タ数が少ない場合に前記REQ/ACKパルス監視回路
で所定の時間内にカウントしたREQパルスとACKパ
ルスのパルス数をチェックして、当該パルス数が同じで
ある場合に前記インターフェース制御回路におけるデー
タ転送処理を強制終了させ、前記パルス数が異なる場合
に前記インターフェース制御回路におけるデータ転送処
理をエラー終了させるようにしたことを特徴とするコン
ピュータシステムの入出力装置。
An input / output device of a computer system for performing data transfer with a higher-level device via an interface, wherein the higher-level interface control circuit controls an interface with the higher-level device, and controls data transfer performed by the higher-level interface control circuit. A data transfer control circuit for counting the number of pulses of a request pulse (REQ pulse) sent to the host device and a response pulse (ACK pulse) sent from the host device in response to the REQ pulse. An ACK pulse monitoring circuit and an input / output device control circuit for controlling the operation of the higher-level interface control circuit, wherein the data transfer control circuit specifies the number of data specified by the higher-level device and the data to be transferred to the higher-level device. And counts the number specified by the host device. When the number of transfer data is smaller than the number of data, the REQ / ACK pulse monitoring circuit checks the number of REQ pulses and ACK pulses counted within a predetermined time, and determines that the number of pulses is the same. An input / output device for a computer system, wherein the data transfer processing in the interface control circuit is forcibly terminated, and when the number of pulses is different, the data transfer processing in the interface control circuit is terminated with an error.
【請求項2】 請求項1に記載の入出力装置において、
前記入出力装置が更に、前記上位装置へ転送するデータ
の状態をチェックするデータチェック回路を具え、前記
インターフェース制御回路におけるデータ転送処理を強
制終了させる場合に、更に前記転送したデータの正当性
をチェックして転送したデータの状態が正当なものであ
れば、前記上位インターフェース制御回路におけるデー
タ転送処理を強制終了させ、前記データ転送処理によっ
て転送したデータの状態が正当でない場合には前記上位
インターフェース制御回路におけるデータ転送処理をエ
ラー終了させることを特徴とするコンピュータシステム
の入出力回路。
2. The input / output device according to claim 1, wherein
The input / output device further includes a data check circuit for checking a state of data to be transferred to the higher-level device, and when the data transfer process in the interface control circuit is forcibly terminated, further checks the validity of the transferred data. If the state of the transferred data is valid, the data transfer processing in the upper interface control circuit is forcibly terminated. If the state of the data transferred by the data transfer processing is not valid, the upper interface control circuit An input / output circuit of a computer system, wherein the data transfer process in the computer is terminated with an error.
【請求項3】 請求項1又は2に記載の入出力装置にお
いて、前記入出力装置が更に、前記REQ/ACKパル
ス監視回路において一定時間内に前記ACKパルスの応
答がない場合にパルス監視時間のタイムアウトを検出す
るタイマ手段を具え、当該タイマ手段にてタイムアウト
が検出された場合に、前記上位インターフェース制御回
路におけるデータ転送処理をエラー終了させることを特
徴とするコンピュータシステムの入出力装置。
3. The input / output device according to claim 1, wherein the input / output device further includes a pulse monitoring time when the REQ / ACK pulse monitoring circuit does not respond to the ACK pulse within a predetermined time. An input / output device for a computer system, comprising: timer means for detecting a time-out, wherein when the time-out is detected by the timer means, the data transfer processing in the higher-level interface control circuit is terminated with an error.
【請求項4】 請求項3に記載の入出力装置において、
前記入出力装置制御回路がメモリ手段を具え、前記パル
ス監視タイマ手段がタイムアウトを検出したときの事象
を前記メモリ手段に記憶させることを特徴とするコンピ
ュータシステムの入出力装置。
4. The input / output device according to claim 3, wherein
The input / output device of a computer system, wherein the input / output device control circuit includes a memory unit, and stores an event when the pulse monitoring timer unit detects a timeout in the memory unit.
【請求項5】 請求項1ないし4のいずれかに記載の入
出力装置において、前記入出力装置が下位インターフェ
ースを介して下位装置に接続されていると共に、当該下
位インターフェースを制御する下位インターフェース制
御回路を具え、前記データ転送制御回路が前記下位イン
ターフェース制御回路と前記上位インターフェース制御
回路間のデータ転送を制御することを特徴とするコンピ
ュータ装置の入出力装置。
5. An input / output device according to claim 1, wherein said input / output device is connected to a lower device via a lower interface and controls said lower interface. An input / output device for a computer device, wherein the data transfer control circuit controls data transfer between the lower interface control circuit and the upper interface control circuit.
【請求項6】 請求項1ないし5のいずれかに記載の入
出力装置において、前記上位インターフェースがSCS
Iインターフェースであることを特徴とするコンピュー
タシステムの入出力装置。
6. The input / output device according to claim 1, wherein the upper interface is an SCS.
An input / output device for a computer system, which is an I interface.
JP27329299A 1999-09-27 1999-09-27 Computer system input / output devices Expired - Fee Related JP3451995B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27329299A JP3451995B2 (en) 1999-09-27 1999-09-27 Computer system input / output devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27329299A JP3451995B2 (en) 1999-09-27 1999-09-27 Computer system input / output devices

Publications (2)

Publication Number Publication Date
JP2001101090A true JP2001101090A (en) 2001-04-13
JP3451995B2 JP3451995B2 (en) 2003-09-29

Family

ID=17525830

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27329299A Expired - Fee Related JP3451995B2 (en) 1999-09-27 1999-09-27 Computer system input / output devices

Country Status (1)

Country Link
JP (1) JP3451995B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100429267B1 (en) * 2001-11-27 2004-04-29 엘지전자 주식회사 Apparatus and method for detecting dtack fail of external device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100429267B1 (en) * 2001-11-27 2004-04-29 엘지전자 주식회사 Apparatus and method for detecting dtack fail of external device

Also Published As

Publication number Publication date
JP3451995B2 (en) 2003-09-29

Similar Documents

Publication Publication Date Title
US6256695B1 (en) Disk drive method of determining SCSI bus state information after a SCSI bus reset condition
US7853831B2 (en) Methods and structure for detection and handling of catastrophic SCSI errors
US7386760B2 (en) Method, system, and program for error handling in a dual adaptor system where one adaptor is a master
US6904479B2 (en) Method for transmitting data over a data bus with minimized digital inter-symbol interference
US10565043B2 (en) Method and apparatus for disconnecting link between PCIE device and host
US6625761B1 (en) Fault tolerant USB method and apparatus
JPH0247143B2 (en)
US6948025B2 (en) System and method for transferring data between an IEEE 1394 device and a SCSI device
US6389568B1 (en) Method and apparatus for detecting handshaking protocol errors on an asynchronous data bus
JP2001101090A (en) Inputting and outputting device for computer system
US6957361B2 (en) Method, system, and program for error handling in a dual adaptor system
CN113672537B (en) SATA (Serial advanced technology attachment) equipment hot plug management method and device
JP3313667B2 (en) Failure detection method and method for redundant system
JP3266841B2 (en) Communication control device
JP2001356881A (en) Multiplex storage controller
JP2002182993A (en) Bus interface circuit and initiator target system using the same
JP2910264B2 (en) Abnormal reception response detection device
JP2001290759A (en) Bus bridge and bus bridge system
JPH01232453A (en) Control system for information on overrun
JPH0863407A (en) Information transfer controller
JPH06161667A (en) Disk device
JPH03237540A (en) Time out detection system
JP2002082843A (en) Circuit and method for controlling burst transfer
JPH10133979A (en) Communication method and communication system
JPH0154730B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070718

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080718

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090718

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100718

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110718

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees