JPH0754487B2 - Channel interface circuit - Google Patents

Channel interface circuit

Info

Publication number
JPH0754487B2
JPH0754487B2 JP63143339A JP14333988A JPH0754487B2 JP H0754487 B2 JPH0754487 B2 JP H0754487B2 JP 63143339 A JP63143339 A JP 63143339A JP 14333988 A JP14333988 A JP 14333988A JP H0754487 B2 JPH0754487 B2 JP H0754487B2
Authority
JP
Japan
Prior art keywords
bus
interface circuit
channel interface
channel
time
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
JP63143339A
Other languages
Japanese (ja)
Other versions
JPH01311348A (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 JP63143339A priority Critical patent/JPH0754487B2/en
Publication of JPH01311348A publication Critical patent/JPH01311348A/en
Publication of JPH0754487B2 publication Critical patent/JPH0754487B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明は、チャネル・バスを介してホスト計算機に接続
し、入出力バスを介して複数のデバイスを接続するチャ
ネル・インターフェイス回路に関し、不具合を発生した
デバイスを正しく特定する機能を付加するものである。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Field of Application> The present invention relates to a channel interface circuit that connects to a host computer via a channel bus and connects a plurality of devices via an input / output bus. The function to correctly identify the device that occurred is added.

<従来の技術> 複数のデバイスとホスト計算機とを接続するチャネル・
インターフェイス回路を用いたシステム構成を第5図に
表わす。
<Prior art> A channel that connects multiple devices to a host computer.
A system configuration using the interface circuit is shown in FIG.

この図において、1はチャネル・インターフェイス回路
であり、チャネル・バスCBを介してホスト計算機2に接
続され、入出力バスI/OBを介してディスク、テープ装置
等のデバイス31、32に接続され、ホスト計算機2とデバ
イス31,32との間のコマンド、データ授受に関与する。
In this figure, reference numeral 1 is a channel interface circuit, which is connected to a host computer 2 via a channel bus CB and connected to devices 31 and 32 such as disks and tape devices via an input / output bus I / OB. It is involved in the exchange of commands and data between the host computer 2 and the devices 31 and 32.

ここで、入出力バスI/OBとしてSCSI(Smail Computer
System Interface)を用いることを想定している。
Here, SCSI (Smail Computer) is used as the input / output bus I / OB.
System Interface) is assumed.

通常、入出力バスI/OBに接続されたデバイス31,32に不
具合が発生することを考慮してそれぞれのデバイスに対
応してタイマを設け、タイムアウトとなったデバイスを
検出してその不具合を発見している。
Usually, considering that a failure may occur in the devices 31 and 32 connected to the I / O bus I / OB, a timer is provided for each device, and the device that times out is detected and the failure is discovered. is doing.

このとき、動作速度の早いデバイス31については短いタ
イムアウト値、動作速度の遅いデバイス32については長
いタイムアウト値が設定される。
At this time, a short timeout value is set for the device 31 having a high operation speed, and a long timeout value is set for the device 32 having a low operation speed.

<発明が解決しようとする課題> 長いタイムアウト設定値が設定されているデバイス32が
入出力バスI/OBを占有したまま不具合を発生し、他のデ
バイス31が入出力バスI/OBにアクセス不能となったよう
な場合、デバイス32より先にデバイス31からタイムアウ
ト出力がなされることがある。
<Problems to be Solved by the Invention> A problem occurs while the device 32 with a long timeout setting value occupies the I / O bus I / OB, and other devices 31 cannot access the I / OB bus. In such a case, the device 31 may output a timeout before the device 32.

このため、ホスト計算機2ではデバイス32が不具合であ
るにもかかわらず、先にデバイス31のタイムアウトを検
出し、不具合が発生したデバイスを誤認識し、不具合要
因の正しい解析が不可能となる問題があった。
Therefore, although the host computer 2 has a problem with the device 32, there is a problem that the timeout of the device 31 is first detected, the device having the problem is erroneously recognized, and the correct analysis of the cause of the problem is impossible. there were.

本発明はこのような問題を解決するものであり、チャネ
ル・インターフェイス回路のタイムアウト監視機能を向
上させることを目的とする。
The present invention solves such a problem, and an object of the present invention is to improve the timeout monitoring function of the channel interface circuit.

<課題を解決するための手段> 以上の問題を解決した本発明は、チャネル・バスを介し
てホスト計算機に接続し、入出力バスを介して複数のデ
バイスを接続するチャネル・インターフェイス回路にお
いて、各々のデバイスにタイマを設定するとともにその
タイムアウト設定値を設定する設定手段を設け、タイム
アウトを検出した際に当該タイマに対応するデバイスと
現在入出力バスを占有しているデバイスとを比較し、入
出力バスが使用されていない場合は当該デバイスがタイ
ムアウトしたと判定し、一致した場合は当該デバイスが
前記入出力バスを占有した状態でタイムアウトしたと判
定し、一致しない場合は終了待ち処理を行う判定処理手
段を設けたことを特徴とするチャネル・インターフェイ
ス回路である。
<Means for Solving the Problems> The present invention, which has solved the above problems, provides a channel interface circuit that connects to a host computer via a channel bus and connects a plurality of devices via an input / output bus. Setting a timer for each device and setting the time-out setting value, when a time-out is detected, the device corresponding to the timer is compared with the device currently occupying the I / O bus, If the bus is not used, it is determined that the device has timed out.If they match, it is determined that the device has timed out while occupying the I / O bus. If they do not match, the end wait process is performed. It is a channel interface circuit characterized in that means are provided.

<作用> 本発明のチャネル・インターフェイス回路は、タイムア
ウトしたデバイスを検出すると、このときに入出力バス
を占有しているデバイスを検出し、入出力バス占有デバ
イスがないときはこのデバイスをタイムアウトとし、入
出力バス占有デバイスがタイムアウトしたデバイスと一
致した場合は当該デバイスをタイムアウトとし、一致し
なかった場合は終了待ち処理を行う。
<Operation> When the channel interface circuit of the present invention detects a device that has timed out, it detects the device occupying the I / O bus at this time, and if there is no I / O bus occupying device, this device times out. If the device occupied by the I / O bus matches the device that timed out, the device is timed out, and if they do not match, the end wait process is performed.

<実施例> 第1図は本発明を実施した本発明のチャネル・インター
フェイス回路の構成図である。
<Embodiment> FIG. 1 is a block diagram of a channel interface circuit of the present invention in which the present invention is implemented.

この図において、11はこのチャネル・インターフェイス
回路全体の動作を制御するCPU、12は入出力バスI/OBの
プロトコルを制御する入出力バス制御部、13はチャネル
・バスCBのプロトコルを制御するチャネル・バス制御
部、ABはアドレス・バス、DBはデータ・バス、CLは制御
線である。14は常時一定時間間隔でCPU11に割り込みを
かけるタイムベースである。
In this figure, 11 is a CPU that controls the operation of the entire channel interface circuit, 12 is an input / output bus control unit that controls the protocol of the input / output bus I / OB, and 13 is a channel that controls the protocol of the channel bus CB. -Bus controller, AB is an address bus, DB is a data bus, and CL is a control line. 14 is a time base that constantly interrupts the CPU 11 at fixed time intervals.

第2図に本発明のチャネル・インターフェイス回路の動
作を表わすフローチャートを示す。
FIG. 2 is a flow chart showing the operation of the channel interface circuit of the present invention.

また、本発明回路におけるタイムベース14からの割り込
み処理動作を第3図のフローチャートに表わす。
The operation of interrupt processing from the time base 14 in the circuit of the present invention is shown in the flowchart of FIG.

タイムベース14はCPU11に一定間隔で割り込みをかけ、C
PU11はこの割り込み回数をカウントすることで時間経過
を管理し、カウント値がタイムアウト設定値と一致した
時にタイムアウトを認識する。CPU11は、接続されるデ
バイス毎に対応させてタイマ番号0〜n、タイムアウト
設定値、割り込み回数値(カウント)をテーブル形式で
設定する。
Timebase 14 interrupts CPU 11 at regular intervals
The PU 11 manages the passage of time by counting the number of interrupts, and recognizes the timeout when the count value matches the timeout setting value. The CPU 11 sets the timer numbers 0 to n, the timeout setting value, and the interrupt count value (count) in a table format corresponding to each connected device.

第2図に戻り、本発明回路の動作を説明する。Returning to FIG. 2, the operation of the circuit of the present invention will be described.

はじめに、上位のホスト計算機2からデバイス・アクセ
ス要求があると、その要求の受信処理を行い、該当する
デバイスの選択処理を行う。
First, when there is a device access request from the host computer 2 of a higher level, the request reception process is performed and the corresponding device selection process is performed.

この時点で各々のデバイスにタイマを割り付け、タイム
アウト設定値を設定する。
At this point, assign a timer to each device and set the timeout setting value.

次に、選択したデバイスに対しコマンドを送信し、デー
タ転送処理後、このデバイスからステイタスを受信し、
このステイタスをホスト計算機2へ送信して1つの処理
を終了する。この時点でタイマをリセットする。
Next, send a command to the selected device, receive the status from this device after the data transfer process,
This status is transmitted to the host computer 2 and one process is ended. At this point the timer is reset.

以上の処理において、アクセス要求受信処理終了待ち、
コマンド送信処理終了待ち、データ転送処理終了待ち、
ステイタス送信処理終了待ち状態でタイムアウト監視を
行う。タイムアウト監視はタイマのカウント値とタイム
アウト設定値とを比較し、一致したときにタイムアウト
とする処理である。
In the above processing, waiting for the completion of the access request reception processing,
Waiting for command transmission processing completion, data transfer processing completion,
Timeout monitoring is performed while waiting for the status transmission process to end. The time-out monitoring is a process of comparing the count value of the timer with the time-out setting value and setting a time-out when they match.

第4図にこのタイムアウト処理を表わす。This time-out process is shown in FIG.

タイムアウトしたデバイスが発見された場合は、入出力
バスI/OBの使用状況をみる。
If a device that times out is found, check the usage status of the I / O bus I / OB.

(イ)入出力バスI/OBが使用されていなければ、発見し
たデバイスがタイムアウトを発生したと判断し、タイム
アウト・ステイタスをホスト計算機へ送信する。このと
きは、このタイマに対応するデバイスが入出力バスI/OB
をディスコネクト(バス開放)し、再結合しなかった場
合である。
(B) If the I / O bus I / OB is not used, it is determined that the discovered device has timed out, and the time-out status is transmitted to the host computer. In this case, the device corresponding to this timer is the I / O bus I / OB.
This is the case when the bus was disconnected and was not reconnected.

入出力バスI/OBが使用されている場合は、この入出力バ
スI/OBを現在占有しているデバイスを検出してタイムア
ウト検出したデバイスと比較する。
When the I / O bus I / OB is used, the device currently occupying the I / O bus I / OB is detected and compared with the device that detected the timeout.

(ロ)一致すれば、タイムアウト検出したデバイスが入
出力バスI/OBを占有したままでタイムアウトを発生した
と判断する。
(B) If they match, it is determined that the device that has detected the timeout has timed out while occupying the I / OB bus.

(ハ)一致しなかった場合、タイムアウト処理を行わず
リターンする。このときは現在入出力バスI/OBを占有し
ているデバイスの処理終了待ちとなる。そして、現在入
出力バスを占有指定いるデバイスの処理終了後、上記
(イ),(ロ)のいずれかの条件を検出する状態とな
る。
(C) If they do not match, the process returns without performing timeout processing. At this time, the device currently occupying the I / O bus waits for the end of processing. Then, after the processing of the device currently occupying the input / output bus is completed, the condition for detecting one of the conditions (a) and (b) is entered.

このように、本発明は、タイムアウトしたデバイスが入
出力バスを占有しているかどうかをみてホスト計算機へ
タイムアウト・ステイタスを送信するようにしたので、
長いタイムアウト値を持つデバイスに不具合が発生し、
他デバイスにタイムアウトが先に発生したような場合で
も、長いタイムアウト値を持つ不具合発生のデバイスを
特定することができる。
As described above, according to the present invention, the time-out status is transmitted to the host computer by checking whether the time-out device occupies the I / O bus.
A device with a long timeout value has failed,
Even if a timeout occurs in another device first, it is possible to identify the device in which the malfunction has a long timeout value.

<発明の効果> 以上述べたように、本発明によれば、複数のデバイスを
並行動作させるチャネル・インターフェイス回路におい
て不具合を発生したデバイスを特定することができ、不
具合要因の正しい解析が可能となり、チャネル・インタ
ーフェイス回路の機能向上を実現できる。
<Effects of the Invention> As described above, according to the present invention, it is possible to identify a device in which a failure has occurred in a channel interface circuit for operating a plurality of devices in parallel, and it is possible to correctly analyze the failure factor. The function of the channel interface circuit can be improved.

【図面の簡単な説明】 第1図は本発明を実施したチャネル・インターフェイス
回路を表わす構成図、第2図は本発明回路の動作を表わ
すフローチャート、第3図は本発明回路内のCPU11にお
けるタイムベース14割り込み処理を表わす図、第4図は
本発明回路のタイムアウト処理を表わす図、第5図はチ
ャネル・インターフェイス回路を用いたシステムの構成
図である。 1……チャネル・インターフェイス回路、 11……CPU、12……入出力バス制御部、 13……チャネル・バス制御部、 14……タイムベース、AB……アドレス・バス、 CL……制御線、DB……データ・バス、 2……ホスト計算機、31,32……デバイス、 I/OB……入出力バス、CB……チャネル・バス。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a channel interface circuit embodying the present invention, FIG. 2 is a flow chart showing the operation of the circuit of the present invention, and FIG. 3 is a time chart of a CPU 11 in the circuit of the present invention. FIG. 4 is a diagram showing a base 14 interrupt process, FIG. 4 is a diagram showing a time-out process of the circuit of the present invention, and FIG. 5 is a configuration diagram of a system using a channel interface circuit. 1 ... Channel interface circuit, 11 ... CPU, 12 ... Input / output bus control unit, 13 ... Channel bus control unit, 14 ... Time base, AB ... Address bus, CL ... Control line, DB ... Data bus, 2 ... Host computer, 31,32 ... Device, I / OB ... I / O bus, CB ... Channel bus.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】チャネル・バスを介してホスト計算機に接
続し、入出力バスを介して複数のデバイスを接続するチ
ャネル・インターフェイス回路において、各々のデバイ
スのタイマを設定するとともにそのタイムアウト設定値
を設定する設定手段を設け、タイムアウトを検出した際
に当該タイマに対応するデバイスと現在入出力バスを占
有しているデバイスとを比較し、入出力バスが使用され
ていない場合は当該デバイスがタイムアウトしたと判定
し、一致した場合は当該デバイスが前記入出力バスを占
有した状態でタイムアウトしたと判定し、一致しない場
合は終了待ち処理を行う判定処理手段を設けたことを特
徴とするチャネル・インターフェイス回路。
1. A channel interface circuit which connects to a host computer via a channel bus and connects a plurality of devices via an input / output bus, sets a timer for each device and sets a timeout setting value thereof. When a time-out is detected, the device corresponding to the timer is compared with the device currently occupying the I / O bus. If the I / O bus is not used, the device timed out. The channel interface circuit is provided with a determination processing unit that determines that the device has timed out while occupying the input / output bus if the two match, and waits for termination if the devices do not match.
JP63143339A 1988-06-10 1988-06-10 Channel interface circuit Expired - Lifetime JPH0754487B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63143339A JPH0754487B2 (en) 1988-06-10 1988-06-10 Channel interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63143339A JPH0754487B2 (en) 1988-06-10 1988-06-10 Channel interface circuit

Publications (2)

Publication Number Publication Date
JPH01311348A JPH01311348A (en) 1989-12-15
JPH0754487B2 true JPH0754487B2 (en) 1995-06-07

Family

ID=15336488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63143339A Expired - Lifetime JPH0754487B2 (en) 1988-06-10 1988-06-10 Channel interface circuit

Country Status (1)

Country Link
JP (1) JPH0754487B2 (en)

Also Published As

Publication number Publication date
JPH01311348A (en) 1989-12-15

Similar Documents

Publication Publication Date Title
EP0412268B1 (en) Apparatus for interconnecting a control unit having a parallel bus with a channel having a serial link
US11620175B2 (en) Method and apparatus for disconnecting link between PCIe device and host
CN108228492B (en) Multi-channel DDR interleaving control method and device
US3961139A (en) Time division multiplexed loop communication system with dynamic allocation of channels
JPH05502526A (en) Enhanced VMEbus protocol using pseudo-synchronous handshaking and block mode data transfer
CN107066413B (en) Method for processing data of multiple bus devices and bus system thereof
CN114528234B (en) Out-of-band management method and device for multi-path server system
US7996206B2 (en) Serial attached small computer system interface (SAS) connection emulation for direct attached serial advanced technology attachment (SATA)
US6732212B2 (en) Launch raw packet on remote interrupt
CN112749057A (en) Bus monitor for read transactions
WO2023206963A1 (en) Data processing method and system, and related components
US5546550A (en) Method for assuring equal access to all input/output devices coupled to a SCSI bus
JPH0754487B2 (en) Channel interface circuit
US7496717B2 (en) System for sharing storage device among controllers and method thereof
CN107729140B (en) Device and method for realizing command queuing functions of multiple eMMC host interfaces in parallel
CN113672537B (en) SATA (Serial advanced technology attachment) equipment hot plug management method and device
CN116360675B (en) SAS frame routing method and device in wide port scene
US20230169029A1 (en) Method of transmitting Universal Serial Bus (USB) commands and associated electronic device
JPS63228856A (en) Communication controller
JP2809164B2 (en) Two-way data communication system
US7512082B1 (en) Tracking transaction status for a bus system providing legacy bus compatibility
JPS63228855A (en) Communication controller
CN117591378A (en) Temperature control method, system, equipment and storage medium of server
JPS6245575B2 (en)
CN113687619A (en) Design method of controller with double slave machine interfaces