JPH04220746A - Bus diagnostic circuit - Google Patents

Bus diagnostic circuit

Info

Publication number
JPH04220746A
JPH04220746A JP2412396A JP41239690A JPH04220746A JP H04220746 A JPH04220746 A JP H04220746A JP 2412396 A JP2412396 A JP 2412396A JP 41239690 A JP41239690 A JP 41239690A JP H04220746 A JPH04220746 A JP H04220746A
Authority
JP
Japan
Prior art keywords
bus
circuit
short
diagnostic
data
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.)
Pending
Application number
JP2412396A
Other languages
Japanese (ja)
Inventor
Masafumi Okamoto
岡本 政文
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 Computertechno Ltd
Original Assignee
NEC Computertechno 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 Computertechno Ltd filed Critical NEC Computertechno Ltd
Priority to JP2412396A priority Critical patent/JPH04220746A/en
Publication of JPH04220746A publication Critical patent/JPH04220746A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accurately and quickly detect the abnormality of a data transmission bus and to facilitate the locating of the abnormality of a system. CONSTITUTION:In resonce to a bus abnormality diagnostic request, bus diagnostic data '0' and '1' are consecutively and selectively outputted by a selective circuit 9 and supplied to respective bit lines. The OR of the output of the respective bit lines when the bus diagnostic data '0' is supplied is taken and outputted in a bus open detection circuit 10 by an OR circuit. The NAND of the output of the respective bit lines when the bus diagnostic data '1' is supplied is taken and outputted in a bus short-circuit detection circuit 11 by a NAND circuit. The open/short-circuit state of the bus can be detected by means of the output states of these detection circuits 10 and 11.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【技術分野】本発明はバス診断回路に関し、特に複数の
データ転送モジュールが同一のバスに接続されたバス構
造のバス異常を検出するバス診断回路に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bus diagnostic circuit, and more particularly to a bus diagnostic circuit for detecting bus abnormalities in a bus structure in which a plurality of data transfer modules are connected to the same bus.

【0002】0002

【従来技術】複数のデータ転送モジュール相互間でデー
タを転送するための構成としては図4に示すような構成
が採用されている。バス17に接続されたn(2以上の
整数)台のデータ転送モジュール#1〜#nにおいて、
各モジュール内部でハードウェア異常(故障)が発生し
た場合、各モジュール内部に夫々設けられたパリティ検
出回路6によりそのハードウェア異常モジュールが検出
されるように構成されている。
2. Description of the Related Art As a structure for transferring data between a plurality of data transfer modules, a structure as shown in FIG. 4 is adopted. In n (an integer of 2 or more) data transfer modules #1 to #n connected to the bus 17,
When a hardware abnormality (failure) occurs inside each module, the parity detection circuit 6 provided inside each module is configured to detect the hardware abnormal module.

【0003】しかしながら、バス17の異常を検出する
ための検出手段は設けられていないので、バス17上(
バスドライバ4及びバスレシーバ5を含む)に異常が発
生した場合には、どのモジュールに異常が発生したかを
特定することが困難であり、よって全てのモジュールが
交換単位となる可能性がある。
However, since there is no detection means for detecting an abnormality on the bus 17,
(including the bus driver 4 and the bus receiver 5), it is difficult to specify which module the abnormality has occurred in, and there is a possibility that all modules will be replaced as a unit.

【0004】尚、バス制御部7はモジュールの1つにバ
ス使用権を許可したり、バス解放等の制御をなすための
回路であり、各モジュールからのバス使用要求REQ 
1〜nに対して所定規則に従って1つのバス使用許可A
CK i(iは1〜nの所定整数)を与える。
[0004] The bus control unit 7 is a circuit for granting the right to use the bus to one of the modules, controlling bus release, etc., and receives bus use requests REQ from each module.
One bus use permit A for 1 to n according to prescribed rules
CK i (i is a predetermined integer from 1 to n) is given.

【0005】レジスタ2はデータ転送用のレジスタであ
り、レジスタ3はデータ受信用のレジスタである。
Register 2 is a register for data transfer, and register 3 is a register for data reception.

【0006】上述した従来のバス構成では、バス異常時
の検出手段が無いので、バス上での故障なのか、モジュ
ール内での故障なのかの判定が困難である。故障特定の
ためには、モジュール1つ1つを順次チェックして故障
モジュールを特定し、全モジュールに異常が見つからな
い場合に始めてバス異常であることが判明することにな
り、よって故障特定が極めて煩雑である。
[0006] In the conventional bus configuration described above, since there is no means for detecting a bus abnormality, it is difficult to determine whether the failure is on the bus or within the module. In order to identify a fault, each module is checked one by one to identify the faulty module, and only when no abnormalities are found in any of the modules is the bus abnormality identified. Therefore, fault identification is extremely easy. It's complicated.

【0007】[0007]

【発明の目的】そこで、本発明はこの様な従来のものの
欠点を解決すべくなされたものであって、その目的とす
るところは、バス上での異常を簡単かつ速やかに検出す
ることができるようにしたバス診断回路を提供すること
にある。
[Object of the Invention] Therefore, the present invention has been made to solve the drawbacks of the conventional ones, and its purpose is to easily and quickly detect abnormalities on the bus. It is an object of the present invention to provide a bus diagnostic circuit that achieves this.

【0008】[0008]

【発明の構成】本発明によれば、データ転送用のバスと
、前記バスを介して相互にデータ転送をなす複数のモジ
ュールと、前記モジュールの1つにバス使用権を許可す
るバス制御部とを含むデータ転送システムにおけるバス
診断回路であって、バス診断要求に応答して、バス診断
のためのデータとしての論理“0”及び論理“1”を択
一的に前記バスを構成する各ビット線へ供給する手段と
、論理“0”及び論理“1”が夫々供給されているとき
に前記バスの各ビット線の出力状態を夫々検出する検出
手段とを含み、この検出手段の検出結果に応じて前記バ
スのオープン,ショート状態を検出するようにしたこと
を特徴とするバス診断回路が得られる。
According to the present invention, there is provided a data transfer bus, a plurality of modules that mutually transfer data via the bus, and a bus control unit that grants one of the modules the right to use the bus. A bus diagnostic circuit in a data transfer system comprising: a bus diagnostic circuit that selectively selects logic "0" and logic "1" as data for bus diagnosis in response to a bus diagnostic request, and each bit constituting the bus; and detection means for detecting the output state of each bit line of the bus when logic "0" and logic "1" are respectively supplied, and the detection result of the detection means is Accordingly, there is obtained a bus diagnostic circuit characterized in that the open and short states of the bus are detected.

【0009】[0009]

【実施例】以下に、本発明の実施例について図面を参照
しつつ詳細に説明する。
Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

【0010】図1は本発明の一実施例の回路図であり、
図4と同等部分は同一符号により示している。本実施例
によるバス診断回路は、バス診断データとして論理“0
”及び論理“1”を選択する選択回路9と、この選択回
路9の出力をバス上に出力するトライステート回路8と
を有する。これ等選択回路9及びトライステート回路8
はバス17のビット幅に等しい数だけ設けられており、
トライステート回路8から夫々対応するバスビット線へ
バス診断データが供給されるようになっている。更に、
バス上のショート状態を検出するショート検出回路11
と、オープン状態を検出するオープン検出回路10と、
バス診断状態であることを示す診断フラグ14と、オー
プン及びショート検出回路10,11の各出力をバス診
断状態で異常表示レジスタ(EIF)16に取込むため
のアンドゲート12,13、インバータ15よりなるタ
イミング回路とを有している。
FIG. 1 is a circuit diagram of an embodiment of the present invention.
Portions equivalent to those in FIG. 4 are indicated by the same reference numerals. The bus diagnostic circuit according to this embodiment has a logic “0” as bus diagnostic data.
” and logic “1”, and a tri-state circuit 8 that outputs the output of the select circuit 9 onto the bus.
are provided in a number equal to the bit width of the bus 17,
Bus diagnostic data is supplied from the tri-state circuit 8 to the corresponding bus bit lines. Furthermore,
Short-circuit detection circuit 11 that detects short-circuit conditions on the bus
and an open detection circuit 10 that detects an open state.
From a diagnostic flag 14 indicating that the bus is in the diagnostic state, AND gates 12 and 13, and an inverter 15 for taking in each output of the open and short detection circuits 10 and 11 into the error display register (EIF) 16 in the bus diagnostic state. It has a timing circuit.

【0011】オープン検出回路10はバス17の各ビッ
ト線からの出力を入力とするオアゲートであり、その出
力はタイミング回路12によりレジスタ16に取込まれ
る。ショート検出回路11はバス17の各ビット線から
の出力を入力とするナンドゲートであり、その出力はタ
イミング回路13によりレジスタ16に取込まれる。
The open detection circuit 10 is an OR gate that receives outputs from each bit line of the bus 17, and its output is taken into the register 16 by the timing circuit 12. The short detection circuit 11 is a NAND gate that receives outputs from each bit line of the bus 17, and its output is taken into the register 16 by the timing circuit 13.

【0012】かかる構成おいて、#1モジュールから#
2モジュールにデータ転送が行われているとき、#1モ
ジュール内でハードウェア故障(20)が発生したとす
ると、不正データがバス17上に送出されて不正データ
が#2モジュールの受信レジスタ3にセットされる。よ
って、#2モジュールのパリティ検出回路6でデータ不
正が検出されるから#1モジュールを交換単位とするこ
とができる。以上は従来例と同一である。
In such a configuration, from #1 module to #
If a hardware failure (20) occurs in the #1 module while data is being transferred to the #2 module, invalid data is sent onto the bus 17 and is transferred to the receive register 3 of the #2 module. Set. Therefore, since data fraud is detected by the parity detection circuit 6 of the #2 module, the #1 module can be used as a replacement unit. The above is the same as the conventional example.

【0013】次に、モジュール#1のバス部(ドライバ
/レシーバ4,5を含む)にてバス故障(21)が発生
した場合の検出は次のとおりである。電源立上げ直後、
ファームウェアによって診断フラグ(TF0 ,TF1
 )14を診断状態にセットする。
Next, detection when a bus failure (21) occurs in the bus section of module #1 (including drivers/receivers 4 and 5) is as follows. Immediately after turning on the power,
Diagnostic flags (TF0, TF1
) 14 to the diagnostic state.

【0014】バスのオープン状態を先ず検出するために
、この診断フラグ14に“10”をセットする。これに
より、各トライステート回路8がオンとなり、各選択回
路9からの診断データ“0”がバス17の各ビット線へ
供給されると共に、タイミング回路12がインバータ1
5の出力によりオンとなり、オープン検出回路10の出
力がレジスタ16へ取込み可能状態になる。
In order to first detect the open state of the bus, the diagnostic flag 14 is set to "10". As a result, each tristate circuit 8 is turned on, diagnostic data "0" from each selection circuit 9 is supplied to each bit line of the bus 17, and the timing circuit 12 is
5 is turned on, and the output of the open detection circuit 10 becomes ready to be taken into the register 16.

【0015】ここで、バスのビット線のうち1本でもオ
ープン状態になっていれば、そのオープン状態のビット
線出力(オアゲート10への入力)が“1”となり、他
の正常ビット線出力は全て“0”を示すことになる。よ
って、このときオープン検出回路であるオアゲート10
の出力は“1”となり、これがタイミングゲート12に
より取込まれて表示レジスタ16へセットされ、バスオ
ープン状態が検出されるのである次に、バスのショート
状態を検出するには、診断フラグ14に“11”をセッ
トする。これにより、各トライステート回路8がオンと
なり、選択回路9から診断データ“1”がバス17の各
ビット線へ供給されると共に、タイミング回路13がオ
ンとなって、ショート検出回路11の出力がレジスタ1
6へ取込み可能状態になる。
Here, if even one of the bit lines of the bus is in an open state, the bit line output of that open state (input to the OR gate 10) becomes "1", and the other normal bit line outputs become "1". All will show "0". Therefore, at this time, the OR gate 10 which is an open detection circuit
The output becomes "1", which is taken in by the timing gate 12 and set in the display register 16, and the bus open state is detected.Next, to detect the bus short state, the diagnostic flag 14 is set. Set “11”. As a result, each tri-state circuit 8 is turned on, diagnostic data "1" is supplied from the selection circuit 9 to each bit line of the bus 17, and the timing circuit 13 is turned on, so that the output of the short detection circuit 11 is turned on. register 1
6 becomes ready for import.

【0016】ここで、バスのビット線のうち1本でもシ
ョート状態になっていれば、そのショート状態のビット
線出力(ナンドゲート11への入力)が“0”となり、
他の正常ビット線出力は全て“1”を示すことになる。 よって、このときショート検出回路であるナンドゲート
11の出力は“1”となり、これがタイミングゲート1
3により取込まれて表示レジスタ16へセットされ、バ
スショート状態が検出されるのである。
[0016] Here, if even one of the bit lines of the bus is in a short-circuit state, the bit line output (input to the NAND gate 11) of the short-circuit state becomes "0",
All other normal bit line outputs will show "1". Therefore, at this time, the output of the NAND gate 11, which is a short circuit detection circuit, becomes "1", which is the timing gate 1.
3 and set in the display register 16, and a bus short condition is detected.

【0017】図2は本発明の他の実施例の回路図であり
、図1と同等部分は同一符号で示している。図1の実施
例では、バス診断を電源立上げ直後に行う場合であるが
、本実施例では、バス診断を通常動作の合間に行うもの
である。そのために、バス制御部7からのバス未使用状
態を示すバス未使用信号NACKの発生タイミングに応
答してバスオープン,ショート検出を行うようにしたも
のである。
FIG. 2 is a circuit diagram of another embodiment of the present invention, in which parts equivalent to those in FIG. 1 are designated by the same reference numerals. In the embodiment shown in FIG. 1, the bus diagnosis is performed immediately after the power is turned on, but in this embodiment, the bus diagnosis is performed between normal operations. To this end, bus open and short circuits are detected in response to the timing of generation of a bus unused signal NACK from the bus control unit 7 indicating the bus unused state.

【0018】このバス未使用信号NACKによりトライ
ステート回路8を夫々オンとし、この信号NACKをF
F(フリップフロップ)30にセットする。このFF3
0の反転出力と信号NACKとをタイミングゲート12
へ入力し、その逆相出力をタイミングゲート13へ入力
すると共に選択回路9の選択信号としている。他の構成
は図1のそれと同一となっている。
The tri-state circuits 8 are turned on by this bus unused signal NACK, and this signal NACK is turned on by F.
Set F (flip-flop) to 30. This FF3
The inverted output of 0 and the signal NACK are connected to the timing gate 12.
The reverse phase output thereof is input to the timing gate 13 and is used as a selection signal for the selection circuit 9. The other configurations are the same as those in FIG.

【0019】バス故障(21)が発生した場合、バス未
使用状態において、FF30,ナンドゲート31による
微分回路によって最初の1T(クロックサイクル)間、
バス上に診断データ“0”が送出され、オープン検出回
路10とその検出タイミング回路12とにより、バスオ
ープン状態が検出されることは図1の例と同様である。 次に1Tでは、バス上に診断データ“1”が送出され、
ショート検出回路11とその検出タイミング回路13と
によりバスショート状態が検出される。
When a bus failure (21) occurs, the differential circuit consisting of the FF 30 and the NAND gate 31 operates for the first 1T (clock cycle) while the bus is not in use.
As in the example of FIG. 1, diagnostic data "0" is sent onto the bus, and the open detection circuit 10 and its detection timing circuit 12 detect the bus open state. Next, at 1T, diagnostic data “1” is sent onto the bus,
A bus short state is detected by the short detection circuit 11 and its detection timing circuit 13.

【0020】図3は図1,2に示したバス制御部7をさ
らに詳細に示すブロック図である。このバス制御部7は
、各モジュール#1〜#nからのバス要求信号REQ1
〜REQnを保持するバス要求保持レジスタ(REQR
) 40と、各モジュール#1〜#nからのバス要求の
優先度を決定するバスリクエスト優先回路41と、各モ
ジュール#1〜#nへのバス使用許可信号ACK1〜A
CKnを保持するバス使用許可保持レジスタ(ACKR
)42と、全てのモジュール#1〜#nがバス未使用状
態であることを示すバス未使用信号NACKを出力する
ORゲート43と、データ転送終了時にバス使用許可信
号ACK1〜ACKnを不活性化するためのオアゲート
でなるリセット回路45とから構成されている。このリ
セット回路45の入力は各モジュール#1〜#nにおい
てデータ転送が終了したことを表すデータ転送終了信号
END1〜ENDnである。
FIG. 3 is a block diagram showing the bus control section 7 shown in FIGS. 1 and 2 in more detail. This bus control unit 7 receives a bus request signal REQ1 from each module #1 to #n.
A bus request holding register (REQR) that holds ~REQn.
) 40, a bus request priority circuit 41 that determines the priority of bus requests from each module #1 to #n, and bus use permission signals ACK1 to A to each module #1 to #n.
The bus use permission holding register (ACKR) holds CKn.
) 42, an OR gate 43 that outputs a bus unused signal NACK indicating that all modules #1 to #n are in a bus unused state, and inactivates bus use permission signals ACK1 to ACKn at the end of data transfer. The reset circuit 45 is composed of an OR gate. Inputs to this reset circuit 45 are data transfer end signals END1 to ENDn indicating that data transfer has been completed in each module #1 to #n.

【0021】[0021]

【発明の効果】叙上の如く、本発明によれば、バスオー
プン,ショート状態を検出するバス異常検出回路を設け
ることにより、バス上の異常が直ちに検出可能となるの
で、異常箇所の特定が容易にかつ速やかに行われ、シス
テムダウン時の復旧時間が短縮できるという効果がある
[Effects of the Invention] As described above, according to the present invention, by providing a bus abnormality detection circuit that detects bus open and short circuit states, abnormalities on the bus can be detected immediately, so the location of the abnormality can be identified. This can be done easily and quickly, and has the effect of shortening the recovery time when a system goes down.

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

【図1】本発明の実施例の回路図である。FIG. 1 is a circuit diagram of an embodiment of the present invention.

【図2】本発明の他の実施例の回路図である。FIG. 2 is a circuit diagram of another embodiment of the present invention.

【図3】バス制御部の具体例を示すブロック図である。FIG. 3 is a block diagram showing a specific example of a bus control section.

【図4】従来の故障診断方法を説明するためのブロック
図である。
FIG. 4 is a block diagram for explaining a conventional failure diagnosis method.

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

8  バスドライバ 9  選択回路 10  オープン検出回路 11  ショート検出回路 12  オープン検出タイミング回路 13  ショート検出タイミング回路 16  異常表示レジスタ 17  バス 8 Bus driver 9 Selection circuit 10 Open detection circuit 11 Short circuit detection circuit 12 Open detection timing circuit 13 Short circuit detection timing circuit 16 Abnormality display register 17 Bus

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  データ転送用のバスと、前記バスを介
して相互にデータ転送をなす複数のモジュールと、前記
モジュールの1つにバス使用権を許可するバス制御部と
を含むデータ転送システムにおけるバス診断回路であっ
て、バス診断要求に応答して、バス診断のためのデータ
としての論理“0”及び論理“1”を択一的に前記バス
を構成する各ビット線へ供給する手段と、論理“0”及
び論理“1”が夫々供給されているときに前記バスの各
ビット線の出力状態を夫々検出する検出手段とを含み、
この検出手段の検出結果に応じて前記バスのオープン,
ショート状態を検出するようにしたことを特徴とするバ
ス診断回路。
1. A data transfer system including a bus for data transfer, a plurality of modules that mutually transfer data via the bus, and a bus control unit that grants one of the modules the right to use the bus. a bus diagnostic circuit, comprising means for selectively supplying logic "0" and logic "1" as data for bus diagnosis to each bit line constituting the bus in response to a bus diagnosis request; , detection means for detecting the output state of each bit line of the bus when logic "0" and logic "1" are respectively supplied,
Depending on the detection result of this detection means, the bus is opened or
A bus diagnostic circuit characterized by detecting a short-circuit condition.
JP2412396A 1990-12-20 1990-12-20 Bus diagnostic circuit Pending JPH04220746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2412396A JPH04220746A (en) 1990-12-20 1990-12-20 Bus diagnostic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2412396A JPH04220746A (en) 1990-12-20 1990-12-20 Bus diagnostic circuit

Publications (1)

Publication Number Publication Date
JPH04220746A true JPH04220746A (en) 1992-08-11

Family

ID=18521240

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2412396A Pending JPH04220746A (en) 1990-12-20 1990-12-20 Bus diagnostic circuit

Country Status (1)

Country Link
JP (1) JPH04220746A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5215241A (en) * 1975-07-25 1977-02-04 Fujitsu Ltd Bus test control system for data processing system
JPH01302454A (en) * 1988-05-31 1989-12-06 Fuji Electric Co Ltd Bus checking system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5215241A (en) * 1975-07-25 1977-02-04 Fujitsu Ltd Bus test control system for data processing system
JPH01302454A (en) * 1988-05-31 1989-12-06 Fuji Electric Co Ltd Bus checking system

Similar Documents

Publication Publication Date Title
US4438494A (en) Apparatus of fault-handling in a multiprocessing system
EP0201356A2 (en) High level self-checking intelligent I/O controller
JPH0223891B2 (en)
US5978938A (en) Fault isolation feature for an I/O or system bus
US7711885B2 (en) Bus control apparatus and bus control method
US6636921B1 (en) SCSI repeater circuit with SCSI address translation and enable
CN119402310A (en) Data transmission method, device, controller and data transmission system
JPH04220746A (en) Bus diagnostic circuit
JPH03132829A (en) Parity inspection system
JPS621051A (en) Bus controller
JPS6128146B2 (en)
JPS63164550A (en) Bus diagnosing circuit
JPH087442Y2 (en) Input / output device of programmable controller
JP2806799B2 (en) Information processing system
JP2578186B2 (en) Diagnosis method of failure detection circuit
JPS62200444A (en) Bus diagnosing circuit
JPH07114521A (en) Multi-microcomputer system
JPH0313798Y2 (en)
JPS5816362A (en) Duplex shared memory control device
JPS642972B2 (en)
JPS60173647A (en) Detecting system of error generating part of information processing unit
JPS63281539A (en) Error data generating circuit
JPH01102651A (en) Diagnosing system
JPS6029983B2 (en) Failure diagnosis method for computer systems
JPS624746B2 (en)