JP2008288984A - Failure detection method and device - Google Patents

Failure detection method and device Download PDF

Info

Publication number
JP2008288984A
JP2008288984A JP2007133043A JP2007133043A JP2008288984A JP 2008288984 A JP2008288984 A JP 2008288984A JP 2007133043 A JP2007133043 A JP 2007133043A JP 2007133043 A JP2007133043 A JP 2007133043A JP 2008288984 A JP2008288984 A JP 2008288984A
Authority
JP
Japan
Prior art keywords
bit
data
parity
failure
normal
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.)
Withdrawn
Application number
JP2007133043A
Other languages
Japanese (ja)
Inventor
Kosuke Tomiyasu
晃輔 冨安
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2007133043A priority Critical patent/JP2008288984A/en
Publication of JP2008288984A publication Critical patent/JP2008288984A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To autonomously specify a failure bit between a transmitter and a receiver in generation of a parity error while holding advantages of a normal parity check method, to avoid the failure bit to continue operations. <P>SOLUTION: When the parity error is detected by the receiver 200 with respect to normal data from the transmitter 100, switching to a debug mode is performed in both of the transmitter and the receiver 100, 200 in accordance with detection. With this, pattern data to which parities are added by every bit is transmitted from the transmitter 100 and parity check is performed to the pattern data on the side of the receiver 200. Thus, the parity check is performed by every bit to specify the failure bit. Thus, the transmitter 100 recognizes, for example, which of a high order or lower order there is the failure bit, or what is the failure bit and the operations are continued by normal one either of the high order or low order bit strings of the normal data by transmitting a certain predetermined piece of data from the receiver 200 to the transmitter 100 after specifying the failure bit. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、障害検出方法及び装置に関し、特に一般的な電気回路に多用されているパリティビットを含むバス接続に適用される障害ビットの検出方法及び装置に関するものである。   The present invention relates to a failure detection method and apparatus, and more particularly to a failure bit detection method and apparatus applied to a bus connection including parity bits frequently used in general electric circuits.

パリティチェックビットを用いた一般的なパリティチェック方式は、データバスの正常性を診断するものであるが、一般的なパリティチェック方式では障害ビットが特定できない為に、パリティエラー発生時には、調査者自身が測定器などを用いて障害ビットを特定しなければならないといった面倒な手間が発生していた。   The general parity check method using the parity check bit diagnoses the normality of the data bus. However, since the failure bit cannot be specified by the general parity check method, the investigator himself / herself is informed when a parity error occurs. However, the troublesome trouble of having to specify the failure bit using a measuring instrument or the like has occurred.

そこで、パリティエラーが発生したときのデータを送受信側で保持し、これらのデータを調査者が比較するというデータ保持方式が提案されている(例えば、特許文献1参照。)。   Therefore, a data holding method has been proposed in which data when a parity error occurs is held on the transmission / reception side, and an investigator compares these data (see, for example, Patent Document 1).

すなわち、この従来技術では、データバスにパリティビットを付加して、データ受信側ノードにおいてパリティチェックを行う。その際、受信側ノードにおいてパリティエラーを検出した場合には、データ・エラーを示す信号線を有効にすることによって、データ送信側ノードにデータにパリティエラーが検出されたことを通知するとともに、受信したデータを保持する。データ送信側ノードは、常に送信したデータを一時退避しておく。データ・エラー発生の際には、データ送受信側の保持データを読み出し、両者を比較することによって、エラー・ビットを特定可能にしている。   That is, in this prior art, a parity bit is added to the data bus and a parity check is performed at the data receiving side node. At that time, if a parity error is detected at the receiving side node, by enabling the signal line indicating the data error, the data transmitting side node is notified that the parity error has been detected in the data and received. Hold the data. The data transmission side node always saves the transmitted data temporarily. When a data error occurs, the error bit can be specified by reading the data held on the data transmission / reception side and comparing them.

なお、下記の参考文献によるデータ比較回路がある(例えば、特許文献2参照。)。
すなわち、デ−タA(A0〜A7)及びデ−タB(B0〜B7)とデ−タA, BのパリティビットAP, BPが夫々2入力排他的論理和回路に入力され、夫々入力対が一致した時、その出力は0、不一致の時は1となって9入力論理和回路に入力される。9入力論理和回路は入力信号が全て0の時、0を出力し、1つでも1の時は1を出力する。更に2入力排他的論理和回路の出力がパリティチェック回路に入力され、その入力信号の論理1の数が奇数個の時は1を出力し、偶数個の時は0を出力する。これにより出力信号の論理値が1か否かによりエラ−の有無を判断し、エラ−処理回路に入力して主制御回路にエラ−の有無を報告する。
特開平11-85551号公報 特開昭55-066031号公報
Note that there is a data comparison circuit according to the following reference (for example, see Patent Document 2).
That is, data A (A0 to A7) and data B (B0 to B7) and parity bits AP and BP of data A and B are input to the 2-input exclusive OR circuit, respectively, When they match, the output is 0, and when they do not match, it is 1 and is input to the 9-input OR circuit. The 9-input OR circuit outputs 0 when all input signals are 0, and outputs 1 when any one is 1. Further, the output of the 2-input exclusive OR circuit is input to the parity check circuit, and when the number of logic 1s of the input signal is an odd number, 1 is output, and when the number is an even number, 0 is output. Thus, the presence / absence of an error is determined based on whether the logical value of the output signal is 1, and the error signal is input to the error processing circuit to report the presence / absence of the error to the main control circuit.
Japanese Patent Laid-Open No. 11-85551 JP 55-066031

上記の特許文献1では、パリティエラーが検出されたときに、送受信側で保持しているデータ同士を比較するだけであり、送受信装置間で自律的に障害ビットを特定していない為、そのままでは送受信装置間で運用継続させる事ができないという課題があった。   In the above Patent Document 1, when a parity error is detected, only the data held on the transmission / reception side is compared, and the failure bit is not identified autonomously between the transmission / reception devices. There was a problem that the operation could not be continued between the transmitting and receiving devices.

従って、本発明は、通常のパリティチェック方式の利点を保持しつつ、パリティエラー発生時には、送受信装置間で自律的に障害ビットを特定し、そのビットを回避して運用を継続できる障害検出方法及び装置を提供することを目的とする。   Accordingly, the present invention provides a failure detection method capable of continuing to operate while avoiding the bit by autonomously identifying a failure bit between transmission / reception devices when a parity error occurs while retaining the advantages of the normal parity check method An object is to provide an apparatus.

上記の目的を達成するため、本発明に係る障害検出方法(又は装置)は、送信装置として、送信した通常データに対するパリティエラーの発生通知を受信したとき、ビット毎にパリティチェックを行うためのパターンデータを送信する第1手段(又は手段)と、該パターンデータの送信に応答して障害ビットを特定したデータを受信したとき、該障害ビットを検出する第2ステップ(又は手段)とを備え、該第1及び第2ステップ(又は手段)が、該通常データのアクセスモードからデバッグモードに切り替えて実行されることを特徴としている。   In order to achieve the above object, the failure detection method (or apparatus) according to the present invention is a pattern for performing a parity check for each bit when a transmission apparatus receives a parity error occurrence notification for transmitted normal data. A first means (or means) for transmitting data, and a second step (or means) for detecting the failure bit when data specifying the failure bit is received in response to the transmission of the pattern data, The first and second steps (or means) are executed by switching from the normal data access mode to the debug mode.

また、本発明では、受信装置として、受信した通常データに対して行ったパリティチェックによりパリティエラーを検出したとき、該パリティエラーの発生通知を行う第1ステップ(又は手段)と、該発生通知に応答してビット毎にパリティチェックを行うためのパターンデータを受信したとき、該パターンデータから障害ビットを特定したデータを生成して送信する第2ステップ(又は手段)とを備え、該第1及び第2ステップ(又は手段)が、該通常データのアクセスモードからデバッグモードに切り替えて実行されることも可能である。   Further, in the present invention, as a receiving device, when a parity error is detected by a parity check performed on received normal data, the first step (or means) for notifying the occurrence of the parity error and the occurrence notification A second step (or means) for generating and transmitting data specifying a faulty bit from the pattern data when pattern data for performing a parity check for each bit in response is received; and The second step (or means) may be executed by switching from the normal data access mode to the debug mode.

そして、本発明では、送受信装置共通に、該デバッグモードを解除した後、該通常データのアクセスモードにおいて該障害ビットを含まないビット列で通信を行うステップ(又は手段)をさらに備えることができる。   The present invention can further include a step (or means) for performing communication using a bit string that does not include the failure bit in the normal data access mode after canceling the debug mode, in common with the transmission / reception apparatus.

すなわち、本発明では、送信装置からの通常データに対してパリティエラーを受信装置で検出すると、これに伴って送受信装置双方においてデバッグモードへの切替を行うと共に、送信装置からビット毎にパリティを付加したパターンデータを送信し、これを受信装置側でパリティチェックする。これにより、ビット毎にパリティチェックを実施する為、障害ビットの特定が可能となる。このように障害ビットを特定した後、或る決められたデータを受信装置から送信装置へ転送する事で、送信装置は、例えば上位又は下位のどちらに障害ビットがあるのか、或いは障害ビットはどれかを認識し、通常データの上位又は下位のビット列どちらか正常な方で運用を継続させることが可能となる。   In other words, in the present invention, when a parity error is detected in the receiving device with respect to the normal data from the transmitting device, the transmission mode is switched to the debug mode in both the transmitting and receiving devices, and a parity is added for each bit from the transmitting device. The transmitted pattern data is transmitted, and the parity check is performed on the receiving apparatus side. As a result, since a parity check is performed for each bit, it is possible to identify a faulty bit. After the failure bit is identified in this way, by transferring certain data from the reception device to the transmission device, the transmission device can determine whether the failure bit is in the upper or lower order, for example, or which failure bit is present. It is possible to continue the operation with the normal one of the upper and lower bit strings of the normal data.

このように、送受信装置間でステータス信号を追加し、障害ビット探索方式を決めておくだけで容易に障害ビットのシステム自律検出を実現させる。   As described above, the system autonomous detection of the failure bit can be easily realized only by adding the status signal between the transmitting and receiving apparatuses and determining the failure bit search method.

ここで、上記のパリティエラーの発生通知及びデバッグモードの切替・解除は、該通常データのバスとは別の線路を経由して行われ、該パターンデータ及び該障害特定データが該通常バスを経由して送信され得る。
また、上記のパターンデータは、各ビット毎に“1”及び“0”を交互に設定したビット列にそれぞれ1ビットのパリティを付加して構成され得る。
Here, the occurrence notification of the parity error and the switching / cancellation of the debug mode are performed via a line different from the normal data bus, and the pattern data and the failure specifying data are transmitted via the normal bus. And can be sent.
The pattern data may be configured by adding 1-bit parity to a bit string in which “1” and “0” are alternately set for each bit.

さらに、上記の障害ビット特定データは、上記の通常データにおいて該障害ビットを含む上位又は下位のビット列のみを所定値に設定したデータか、または該障害ビットのみを所定値に設定したデータであればよい。   Further, the failure bit specifying data is data in which only the upper or lower bit string including the failure bit is set to a predetermined value in the normal data or data in which only the failure bit is set to a predetermined value. Good.

なお、上記の処理は、ハードのみで実現させてもソフトを介在させても構わない。   Note that the above processing may be realized only by hardware or software.

本発明の優位性は送受信装置間で自律的に障害ビットを検出できる事にある。よって、以下の効果が挙げられる。   The advantage of the present invention is that a failure bit can be detected autonomously between transmitting and receiving apparatuses. Therefore, the following effects are mentioned.

1)障害ビットの調査作業そのものが必要なくなる。  1) The trouble bit investigation work itself becomes unnecessary.

2)パリティエラー発生時、即時に障害ビットを特定できる為、そのビットを避けてデータバス動作を継続させることが可能となる。  2) When a parity error occurs, the faulty bit can be identified immediately, so that the data bus operation can be continued while avoiding that bit.

3)パリティチェック方式を用いた全てのデータバスに適用可能である。この場合、パリティビットの本数及びデータの本数に制約はなく、送受信装置間でステータスを渡し合えば、1:n接続のデータバスにも容易に適用可能である。更に片方向、双方向、クロック同期、及びクロック非同期も問わない。  3) Applicable to all data buses using the parity check method. In this case, the number of parity bits and the number of data are not limited, and can be easily applied to a 1: n-connected data bus if statuses are exchanged between transmitting and receiving apparatuses. In addition, one-way, two-way, clock synchronization, and clock asynchrony may be used.

装置構成例:図1
図1は、本発明に係る障害検出方法を実現する装置の構成例を示す。この構成例は、端的に言えば、送信装置100−受信装置200間において、通常データバスBUS及びパリティビット線路PLに加えて、デバッグ用の付加線路Lが設けられ、この付加線路Lによって送信装置100及び受信装置200内にそれぞれに設けられたデバッグ機能部130及び230が相互に接続されている点が従来技術と異なっている。この付加線路Lは、パリティエラー(Perr)線路L1と、デバッグ(Dbg)線路L2と、応答(Ack)線路L3の3本のハード線から成っている。
Device configuration example: Fig. 1
FIG. 1 shows an example of the configuration of an apparatus for realizing the fault detection method according to the present invention. In short, in this configuration example, in addition to the normal data bus BUS and the parity bit line PL, an additional line L for debugging is provided between the transmission device 100 and the reception device 200, and the transmission device is provided by this additional line L. This is different from the prior art in that debug function units 130 and 230 provided in 100 and receiving apparatus 200 are connected to each other. The additional line L includes three hard lines including a parity error (Perr) line L1, a debug (Dbg) line L2, and a response (Ack) line L3.

より具体的には、送信装置100は、通常制御部110とパリティ生成部120とデバッグ機能部130とデータ送受信部140とパリティ送信部150とデータ受信部160とで構成されている。また、受信装置200は、通常制御部210とパリティチェック部220とデバッグ機能部230とデータ受信部240とパリティ受信部250とデータ送信部260とで構成されている。   More specifically, the transmission apparatus 100 includes a normal control unit 110, a parity generation unit 120, a debug function unit 130, a data transmission / reception unit 140, a parity transmission unit 150, and a data reception unit 160. The receiving apparatus 200 includes a normal control unit 210, a parity check unit 220, a debug function unit 230, a data reception unit 240, a parity reception unit 250, and a data transmission unit 260.

送信装置100の通常制御部110と受信装置200の通常制御部210は、通常データバスBUSアクセス時にデータ送信部140及びデータ受信部240を介して機能する。パリティビットは、送信装置100の通常制御部110の制御により、パリティ生成部120で生成され、パリティ送信部150からパリティビット線路PLを介して受信装置200のパリティ受信部250に送られ、パリティチェック部220でパリティチェックされた後、そのチェック結果が通常制御部210に送られる。   The normal control unit 110 of the transmission device 100 and the normal control unit 210 of the reception device 200 function via the data transmission unit 140 and the data reception unit 240 during normal data bus BUS access. Parity bits are generated by the parity generation unit 120 under the control of the normal control unit 110 of the transmission device 100, and sent from the parity transmission unit 150 to the parity reception unit 250 of the reception device 200 via the parity bit line PL, and parity check After the parity check in the unit 220, the check result is sent to the normal control unit 210.

パリティエラー発生時は、デバッグ機能部130及び230がそれぞれ通常制御部110及び210の代わりに機能する。デバッグ機能部130及び230は、一連の障害ビット特定シーケンスを監視しており、応答信号Ackが返って来ないなどの異常を検出した場合は、デバッグ機能そのものの異常をレジスタなどで通知し、障害ビット特定シーケンスを中断させる。中断した後、通常機能に戻し、パリティエラーが発生したアクセスをリトライさせる事も可能であるし、通常データバスBUSの動作そのものを停止させる事も可能である。   When a parity error occurs, the debug function units 130 and 230 function instead of the normal control units 110 and 210, respectively. The debug function units 130 and 230 monitor a series of failure bit specific sequences, and when an abnormality such as the response signal Ack not being returned is detected, the abnormality of the debug function itself is notified by a register or the like. Interrupt a bit specific sequence. After the interruption, it is possible to return to the normal function and retry the access in which the parity error has occurred, or to stop the operation of the normal data bus BUS itself.

以下に、通常データバスBUSを8ビットa〜hのデータバス(上位4ビットをa, b,c, d、下位4ビットをe, f, g, h)と定義し、ビットfが故障していた場合の動作例を説明する。   The normal data bus BUS is defined as an 8-bit a to h data bus (the upper 4 bits are a, b, c, d, and the lower 4 bits are e, f, g, h), and the bit f fails. An example of the operation in the case of the above will be described.

動作例[1]:図2及び図3
まず、初期状態として、送信装置100のデータ送信部140はイネーブル状態、データ受信部160はディセーブル状態とし、受信装置200のデータ受信部240はイネーブル状態、データ送信部260はディセーブル状態とする。
Operation example [1]: Fig. 2 and Fig. 3
First, as an initial state, the data transmission unit 140 of the transmission device 100 is enabled, the data reception unit 160 is disabled, the data reception unit 240 of the reception device 200 is enabled, and the data transmission unit 260 is disabled. .

ステップS1:
送信装置100の通常制御部110はデータ送信部140から通常データバスBUSを介して受信装置200のデータ受信部240及び通常制御部210へ通常データを送る(通常データバスアクセスモード)と共に、この通常データに基づいてパリティ生成部120で生成されたパリティビットは、パリティ送信部150からパリティビット線路PLを介してパリティ受信部250に送られる。
Step S1:
The normal control unit 110 of the transmission device 100 sends normal data from the data transmission unit 140 to the data reception unit 240 and the normal control unit 210 of the reception device 200 via the normal data bus BUS (normal data bus access mode). The parity bits generated by the parity generation unit 120 based on the data are sent from the parity transmission unit 150 to the parity reception unit 250 via the parity bit line PL.

ステップS2:
パリティ受信部250からパリティビットを受けたパリティチェック部220は、パリティエラーを検出すると、通常制御部210とデバッグ機能部230へパリティエラー発生(検出)通知を行う。ここで、デバッグ機能を有効とするかどうかを予めユーザー側で設定できるようレジスタ(図示せず)などを設けることができる。
Step S2:
Receiving the parity bit from the parity receiving unit 250, the parity check unit 220, when detecting a parity error, notifies the normal control unit 210 and the debug function unit 230 of the occurrence (detection) of the parity error. Here, a register (not shown) or the like can be provided so that the user can set in advance whether or not to enable the debug function.

ステップS3:
デバッグ機能が、有効設定されている場合、デバッグ機能部230は、送信装置100のデバッグ機能部130へパリティエラー線路L1を介してパリティエラー信号Perrによりパリティエラー発生通知を行い、通常制御部210はパリティエラー発生通知レジスタ(図示せず)などでログとして保持する。無効設定の場合は、デバッグ機能部230はパリティエラー発生通知を無視する。
Step S3:
When the debug function is enabled, the debug function unit 230 notifies the debug function unit 130 of the transmission device 100 of the occurrence of a parity error using the parity error signal Perr via the parity error line L1, and the normal control unit 210 It is stored as a log in a parity error occurrence notification register (not shown). In the case of invalid setting, the debug function unit 230 ignores the parity error occurrence notification.

ステップS4:
送信装置100のデバッグ機能部130はパリティエラー信号Perr信号を受信すると、デバッグモードへの切替のため通常制御部110のバス制御を停止させる。
Step S4:
When receiving the parity error signal Perr signal, the debug function unit 130 of the transmission device 100 stops the bus control of the normal control unit 110 for switching to the debug mode.

ステップS5:
デバッグ機能部130は、受信装置200のデバッグ機能部230へデバッグ線路L2を介してデバッグ信号Dbgにより受信装置200もデバッグモードへ切り替るように要求する。
Step S5:
The debug function unit 130 requests the debug function unit 230 of the reception device 200 to switch the reception device 200 to the debug mode by the debug signal Dbg via the debug line L2.

ステップS6:
受信装置200のデバッグ機能部230は、デバッグ機能を有効とするか否かを予めユーザー側で設定できるようレジスタ(図示せず)などを設けることができる。デバッグモード要求を有効とする場合には通常制御部210の制御を停止すると同時に、パリティチェック部220を図2に示す障害ビット探索シーケンスに則った手順で各ビットのパリティチェックを行うよう制御する(デバッグモードへの切替)。デバッグモード要求を無効とする場合は、デバッグ機能部230はデバッグ信号Dbgを無視する。この場合、受信装置200は、パリティエラー信号Perrを送信装置100に中継するだけの構造としている為、デバッグ信号Dbgが返って来なくても問題はない。
Step S6:
The debug function unit 230 of the receiving apparatus 200 can be provided with a register (not shown) or the like so that the user can set in advance whether or not to enable the debug function. When enabling the debug mode request, the control of the normal control unit 210 is stopped, and at the same time, the parity check unit 220 is controlled to perform a parity check of each bit according to a procedure according to the failure bit search sequence shown in FIG. Switch to debug mode). When invalidating the debug mode request, the debug function unit 230 ignores the debug signal Dbg. In this case, since the receiving apparatus 200 has a structure that merely relays the parity error signal Perr to the transmitting apparatus 100, there is no problem even if the debug signal Dbg is not returned.

ステップS7:
送信装置100のデバッグ機能部130へ受信装置200もデバッグモードへ切り替った事を通知する為に応答信号Ackを応答線路L3を介して返す。この場合、受信装置200はあくまでもスレーブであり、マスタである送信装置100がデバッグモードへ切り替らない限り、受信装置200はデバッグモードに切り替えてはならない。
Step S7:
In order to notify the debug function unit 130 of the transmission device 100 that the reception device 200 has also switched to the debug mode, the response signal Ack is returned via the response line L3. In this case, the receiving device 200 is merely a slave, and the receiving device 200 should not be switched to the debug mode unless the master transmitting device 100 is switched to the debug mode.

ステップS8:
送信装置100のデバッグ機能部130は、応答信号Ackを受信すると、パリティ生成部120とデータ送信部140とに対して、図示の障害ビット探索シーケンスに則った手順でパターン化されたデータを送信する。
Step S8:
When receiving the response signal Ack, the debug function unit 130 of the transmission device 100 transmits the patterned data to the parity generation unit 120 and the data transmission unit 140 in a procedure according to the illustrated failure bit search sequence. .

この時のパターンデータ例が図3に示されており、障害によって、“L”レベル又は“H”レベルに張り付いた状態を検出する為に各ビットを“1”及び“0”の2種類で交互にアクセスさせる。パリティ付加対象のビット以外はドントケア(Don't care)であり“1”又は“0”のどちらを送信しても構わない。   An example of pattern data at this time is shown in Fig. 3. In order to detect the state stuck to "L" level or "H" level due to failure, each bit is set to "1" and "0" Alternate access with. Bits other than the parity addition target are don't care, and either “1” or “0” may be transmitted.

すなわち、例えば、ビットaの場合、1ビット目を“1”とし、残りの7ビットをドントケアとした8ビットデータにパリティビットPを付加した9ビットデータ(a(0)+Ptg)を送る。次に、1ビット目を“0”とし、残りの7ビットをドントケアとした8ビットデータにパリティビットPを付加した9ビットデータ(a(1)+Ptg)を送る。このようにして、図示のように8ビット×2=16のパターンデータが送信されることになる。   That is, for example, in the case of bit a, 9-bit data (a (0) + Ptg) in which parity bit P is added to 8-bit data in which the first bit is “1” and the remaining 7 bits are don't care is transmitted. Next, 9-bit data (a (1) + Ptg) in which parity bit P is added to 8-bit data with the first bit set to “0” and the remaining 7 bits as don't cares is sent. In this way, pattern data of 8 bits × 2 = 16 is transmitted as shown.

パターンデータ送信後、デバッグ機能部130は、速やかにデータ送信部140をディセーブル状態、データ受信部160をイネーブル状態に制御する。   After transmitting the pattern data, the debug function unit 130 immediately controls the data transmission unit 140 to the disabled state and the data reception unit 160 to the enabled state.

また、受信装置200のデバッグ機能部230は、図3に示す如く8ビットバス+1ビットパリティのバス構成の場合、デバッグモード切替直後に16回連続アクセスされる事と、どのビットに対応したアクセスなのか(順番)が予め判っている為、パリティチェック部220がパリティエラーを検出した際は障害ビットを特定できる。ここは、図2に示すようにビットfの障害を検出したとする。   Further, the debug function unit 230 of the receiving device 200, when configured as an 8-bit bus + 1-bit parity bus as shown in FIG. Since the parity check unit 220 detects a parity error, the failure bit can be specified. Here, it is assumed that a failure of the bit f is detected as shown in FIG.

ステップS9:
デバッグ機能部230は障害ビットをログとしてレジスタ(図示せず)などで保持すると共に、データ受信部240をディセーブル状態、データ送信部260をイネーブル状態に制御し、ビット列(a,b, c, d)=(1, 1, 1, 1)を送信する。この時、障害ビットのfを含むビット列(e, f, g, h)はドントケアで構わない。逆に上位ビットである、例えばビットaが故障していた場合はビット列(e, f, g, h)=(1, 1, 1, 1)を送信する。
Step S9:
The debug function unit 230 stores the failure bit as a log in a register (not shown) or the like, and controls the data reception unit 240 to be in a disabled state and the data transmission unit 260 to be in an enabled state so that a bit string (a, b, c, d) = (1, 1, 1, 1) is transmitted. At this time, the bit string (e, f, g, h) including the failure bit f may be don't care. On the other hand, if the upper bit, for example, bit a has failed, a bit string (e, f, g, h) = (1, 1, 1, 1) is transmitted.

ステップS10:
送信装置100のデバッグ機能部130は(a,b, c, d)=(1, 1, 1, 1)を受信し、下位4ビットの障害を認識する。
Step S10:
The debug function unit 130 of the transmission device 100 receives (a, b, c, d) = (1, 1, 1, 1) and recognizes the failure of the lower 4 bits.

ステップS11:
ビット障害の認識と同時に、速やかに線路L2のデバッグ信号Dbgをネゲートしてデバッグモード解除要求を行う。
Step S11:
Simultaneously with the recognition of the bit failure, the debug signal Dbg of the line L2 is promptly negated and a debug mode release request is made.

ステップS12:
受信装置200のデバッグ機能部230は、デバッグ信号Dbgによりデバッグモード解除要求された事を知ると、データ受信部240をイネーブル状態、データ送信部260をディセーブル状態に制御してデバッグモードを解除する。
Step S12:
When the debug function unit 230 of the receiving device 200 knows that the debug mode cancellation request is made by the debug signal Dbg, the debug function unit 230 controls the data reception unit 240 to be enabled and the data transmission unit 260 to be disabled to cancel the debug mode. .

ステップS13:
デバッグ機能部230は、送信装置100へ応答信号Ackを線路L3により返信してデバッグモード解除応答を行うのと同時に通常制御部210へ制御権を与える。
Step S13:
The debug function unit 230 gives a control right to the normal control unit 210 at the same time as sending back the response signal Ack to the transmission device 100 via the line L3 and performing a debug mode release response.

ステップS14:
送信装置100のデバッグ機能部130は、応答信号Ackの受信により受信装置200がデバッグモードを解除したのを知ると、データ送信部140をイネーブル状態、データ受信部160をディセーブル状態に制御し(デバッグモード解除)、通常制御部110へ上位4ビットモードとして制御権を与える。
Step S14:
When the debug function unit 130 of the transmission device 100 knows that the reception device 200 has released the debug mode by receiving the response signal Ack, the debug function unit 130 controls the data transmission unit 140 to the enabled state and the data reception unit 160 to the disabled state ( Debug mode is released) and the control right is given to the normal control unit 110 as the upper 4 bit mode.

ステップS15:
送信装置100の通常制御部110は、デバッグ機能部130から下位4ビット側の障害である事を通知されている為、上位4ビットだけを使用して通常バスアクセスモードを再開する。
Step S15:
Since the normal control unit 110 of the transmitting device 100 is notified of the failure on the lower 4 bits side from the debug function unit 130, the normal bus access mode is resumed using only the upper 4 bits.

動作例[2]:図3及び図4
図2に示した動作例[1]の場合には、受信装置200において障害ビット通知(ステップS9)を行う際、障害ビットfを含まない上位ビット列又は下位ビット列を“1”にして(その他はドントケア)送信装置100へ送っているが、この動作例[2]の場合は、図4のステップS9’に示すように、障害ビットfのみを“0”とし、その他を“1”にすることによって、送信装置100ではビットfで障害があったことを検出し(ステップS10’)、この障害ビットfが属する下位ビット列e〜hを除いた上位4ビットa〜dで動作例[1]と同様に通常データバスアクセス(ステップS15)を行っている点が異なっている。
Operation example [2]: Fig. 3 and Fig. 4
In the case of the operation example [1] shown in FIG. 2, when the failure bit notification (step S9) is performed in the receiving apparatus 200, the upper bit string or the lower bit string not including the failure bit f is set to “1” (others Don't care) is sent to the transmitting device 100. In this operation example [2], only the failure bit f is set to “0” and the others are set to “1” as shown in step S9 ′ of FIG. Thus, the transmitting device 100 detects that there is a failure in the bit f (step S10 ′), and the operation example [1] in the upper 4 bits a to d excluding the lower bit string e to h to which the failure bit f belongs. Similarly, normal data bus access (step S15) is performed.

なお、本発明は、上記実施例によって限定されるものではなく、特許請求の範囲の記載に基づき、当業者によって種々の変更が可能なことは明らかである。   It should be noted that the present invention is not limited to the above-described embodiments, and it is apparent that various modifications can be made by those skilled in the art based on the description of the scope of claims.

例えば、障害ビット探索シーケンスにて障害ビットが検出されない場合や、シーケンス通りに動作しない障害も考えられる。この場合は、デバッグモードを途中解除して、デバッグ機能部エラーをレジスタなどでログとして表示しても良いし、リトライ動作も容易に実現できる。   For example, a failure bit is not detected in the failure bit search sequence, or a failure that does not operate according to the sequence is conceivable. In this case, the debug mode may be canceled halfway, and the debug function unit error may be displayed as a log in a register or the like, and a retry operation can be easily realized.

本発明に係る障害検出方法を実現する装置(送信装置及び受信装置)の実施例を示したブロック図である。It is the block diagram which showed the Example of the apparatus (transmitter and receiver) which implement | achieves the failure detection method which concerns on this invention. 本発明に用いる障害検出方法及び装置の動作例[1]を示したシーケンス図である。FIG. 5 is a sequence diagram showing an operation example [1] of the failure detection method and apparatus used in the present invention. 本発明に用いる障害ビット特定シーケンスに用いられるパターンデータ例を示した図である。It is the figure which showed the example of pattern data used for the failure bit specific sequence used for this invention. 本発明に用いる障害検出方法及び装置の動作例[2]を示したシーケンス図である。FIG. 6 is a sequence diagram showing an operation example [2] of the failure detection method and apparatus used in the present invention.

符号の説明Explanation of symbols

100 送信装置
200 受信装置
110, 210 通常制御部
120, 220 パリティ生成部
130, 230 デバッグ機能部
140, 240 データ送信部
150, 250 パリティ送信部
160, 260 データ受信部
BUS 通常データバス
PL パリティビット線路
L 付加線路
L1 パリティエラー(Perr)線路
L2 デバッグ(Dbg)線路
L3 応答(Ack)線路
図中、同一符号は同一又は相当部分を示す。
100 Transmitter
200 Receiver
110, 210 Normal control unit
120, 220 Parity generator
130, 230 Debug function
140, 240 Data transmitter
150, 250 Parity transmitter
160, 260 Data receiver
BUS Normal data bus
PL Parity bit line
L Additional line
L1 Parity error (Perr) line
L2 debug (Dbg) track
L3 response (Ack) line In the figure, the same reference numerals indicate the same or corresponding parts.

Claims (6)

送信した通常データに対するパリティエラーの発生通知を受信したとき、ビット毎にパリティチェックを行うためのパターンデータを送信する第1ステップと、
該パターンデータの送信に応答して障害ビットを特定したデータを受信したとき、該障害ビットを検出する第2ステップと、
を備え、該第1及び第2ステップが、該通常データのアクセスモードからデバッグモードに切り替えて実行されることを特徴とした障害検出方法。
A first step of transmitting pattern data for performing a parity check for each bit when a notification of occurrence of a parity error with respect to the transmitted normal data is received;
A second step of detecting the failure bit when data specifying the failure bit is received in response to the transmission of the pattern data;
The failure detection method is characterized in that the first and second steps are executed by switching from the normal data access mode to the debug mode.
受信した通常データに対して行ったパリティチェックによりパリティエラーを検出したとき、該パリティエラーの発生通知を行う第1ステップと、
該発生通知に応答してビット毎にパリティチェックを行うためのパターンデータを受信したとき、該パターンデータから障害ビットを特定したデータを生成して送信する第2ステップと、
を備え、該第1及び第2ステップが、該通常データのアクセスモードからデバッグモードに切り替えて実行されることを特徴とした障害検出方法。
A first step of notifying the occurrence of a parity error when a parity error is detected by a parity check performed on the received normal data;
A second step of generating and transmitting data specifying a faulty bit from the pattern data when receiving pattern data for performing a parity check for each bit in response to the occurrence notification;
The failure detection method is characterized in that the first and second steps are executed by switching from the normal data access mode to the debug mode.
請求項1又は2において、
該デバッグモードを解除した後、該通常データのアクセスモードにおいて該障害ビットを含まないビット列で通信を行うステップをさらに備えたことを特徴とする障害検出方法。
In claim 1 or 2,
A failure detection method further comprising the step of performing communication using a bit string not including the failure bit in the normal data access mode after canceling the debug mode.
請求項1又は2において、
該パリティエラーの発生通知及び該デバッグモードの切替・解除が、該通常データのバスとは別の線路を経由して行われ、該パターンデータ及び該障害特定データが該通常バスを経由して送信されることを特徴とした障害検出方法。
In claim 1 or 2,
Notification of occurrence of the parity error and switching / canceling of the debug mode are performed via a line different from the normal data bus, and the pattern data and the fault identification data are transmitted via the normal bus. Fault detection method characterized by being performed.
送信した通常データに対するパリティエラーの発生通知を受信したとき、ビット毎にパリティチェックを行うためのパターンデータを送信する第1手段と、
該パターンデータの送信に応答して障害ビットを特定したデータを受信したとき、該障害ビットを検出する第2手段と、
を備え、該第1及び第2手段が、該通常データのアクセスモードからデバッグモードに切り替えて実行されることを特徴とした障害検出装置。
A first means for transmitting pattern data for performing a parity check for each bit when a notification of occurrence of a parity error with respect to the transmitted normal data is received;
A second means for detecting the failure bit when data specifying the failure bit is received in response to the transmission of the pattern data;
A fault detection apparatus, wherein the first and second means are executed by switching from the normal data access mode to the debug mode.
受信した通常データに対して行ったパリティチェックによりパリティエラーを検出したとき、該パリティエラーの発生通知を行う第1手段と、
該発生通知に応答してビット毎にパリティチェックを行うためのパターンデータを受信したとき、該パターンデータから障害ビットを特定したデータを生成して送信する第2手段と、
を備え、該第1及び第2手段が、該通常データのアクセスモードからデバッグモードに切り替えて実行されることを特徴とした障害検出装置。
A first means for notifying the occurrence of a parity error when a parity error is detected by a parity check performed on the received normal data;
A second means for generating and transmitting data specifying a faulty bit from the pattern data when pattern data for performing a parity check for each bit is received in response to the occurrence notification;
A fault detection apparatus, wherein the first and second means are executed by switching from the normal data access mode to the debug mode.
JP2007133043A 2007-05-18 2007-05-18 Failure detection method and device Withdrawn JP2008288984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007133043A JP2008288984A (en) 2007-05-18 2007-05-18 Failure detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007133043A JP2008288984A (en) 2007-05-18 2007-05-18 Failure detection method and device

Publications (1)

Publication Number Publication Date
JP2008288984A true JP2008288984A (en) 2008-11-27

Family

ID=40148269

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007133043A Withdrawn JP2008288984A (en) 2007-05-18 2007-05-18 Failure detection method and device

Country Status (1)

Country Link
JP (1) JP2008288984A (en)

Similar Documents

Publication Publication Date Title
US5915082A (en) Error detection and fault isolation for lockstep processor systems
JP4330547B2 (en) Information processing system control method, information processing system, information processing system control program, and redundant configuration control device
JP4054509B2 (en) Field device control system and computer-readable storage medium
JP2019219894A (en) Switching scheme of plc dual system, switching method of plc dual system
JP5966181B2 (en) Redundant device and power supply stopping method
KR101594453B1 (en) An apparatus for diagnosing a failure of a channel and method thereof
JP2008288984A (en) Failure detection method and device
JP4954249B2 (en) Electronic terminal device and electronic interlocking device
JP2009075719A (en) Redundancy configuration device and self-diagnostic method thereof
JP2007293678A (en) Apparatus for diagnosing common bus connection
JP2006172050A (en) Duplexing system of hot standby type
JP6288609B2 (en) Redundant controller
JP5875475B2 (en) Security equipment
KR20150144203A (en) Method for failure check and recovery of Protective relay
JPH04305748A (en) Highly reliable bus
KR100606888B1 (en) Apparatus and Method to Duplicate Controlling Digital Tranceiver Board in Mobile Communication System
JP2003216451A (en) Duplex system device
JP6234388B2 (en) Dual system controller
JP2006344023A (en) Control unit
JP2009003613A (en) Bus fault detecting method and bus system
JP2606160B2 (en) Failure detection method for parity check circuit
JP5449906B2 (en) Diagnostic method of signal for abnormal processing and duplex computer system
KR100660058B1 (en) This circuit is capable of selection an activated bus of double bus in switching system
JP2008097391A (en) Common bus access arbitration system
JP2008134782A (en) Failure detection method, failure detection device and data transmitting device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100803