JP2008134838A - Bus device - Google Patents

Bus device Download PDF

Info

Publication number
JP2008134838A
JP2008134838A JP2006320667A JP2006320667A JP2008134838A JP 2008134838 A JP2008134838 A JP 2008134838A JP 2006320667 A JP2006320667 A JP 2006320667A JP 2006320667 A JP2006320667 A JP 2006320667A JP 2008134838 A JP2008134838 A JP 2008134838A
Authority
JP
Japan
Prior art keywords
bus
data
control unit
history
tracer
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
JP2006320667A
Other languages
Japanese (ja)
Inventor
Hiroshi Nakatani
博司 中谷
Koichi Takene
浩一 竹根
Hiroyuki Nishikawa
浩行 西川
Toshikazu Kawamura
敏和 川村
Akira Sawada
彰 澤田
Yoshitomi Sameda
芳富 鮫田
Motohiko Okabe
基彦 岡部
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2006320667A priority Critical patent/JP2008134838A/en
Publication of JP2008134838A publication Critical patent/JP2008134838A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To facilitate accurate fault analysis on the occurrence of a fault in a bus device or an external bus. <P>SOLUTION: A bus device 10a, connected to both an internal bus 30 and an external bus 20, includes a local register 14 for storing first data, an internal bus controller 11, a bus configuration register 15 for storing second data, a bus interface controller 13, and a data transfer controller 12. The bus device also includes a data collector 16 for collecting from the internal bus controller at least one of the access history of the internal bus controller to the internal bus, the input/output history of the first data to the local register and the input/output history of the second data to the bus configuration register, collecting from the bus interface controller the access history of the bus interface controller to the external bus and the input/output history of the second data to the bus configuration register, and then extracting the history data and outputting it to an external memory unit through the internal bus. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、外部バスの障害原因として当該バスデバイスへの入出力が関与している場合の障害解析を容易に行うバスデバイスに関する。   The present invention relates to a bus device that facilitates failure analysis when input / output to the bus device is involved as a cause of a failure of an external bus.

PCIバスを始めとする外部バスを含むシステムにおいて、バスデバイスやバスに何らかの障害が生じた事が明らかになり、その原因を追究する必要が生じた場合、一般にはバスアナライザやロジックアナライザなどの外部機器を外部バスに接続するか、バスデバイスのコントローラICに解析用の外部回路を接続することにより、障害原因の解析が行われる。しかし、これらのアナライザは高価である。また解析用の外部回路を使用する場合、基板上に取り付けスペースが必要となる。さらに重要な問題として、現場環境で発生した障害が、システム周辺環境の差異により、解析用の実験室環境では再現されない事が往々にして発生する。このような場合、上記のアナライザによる事後解析が困難なケースは、数多く存在する。  In a system that includes an external bus such as a PCI bus, it becomes clear that some trouble has occurred in the bus device or bus, and when it is necessary to investigate the cause, it is generally necessary to use an external device such as a bus analyzer or logic analyzer. The cause of the failure is analyzed by connecting the device to an external bus or by connecting an external circuit for analysis to the controller IC of the bus device. However, these analyzers are expensive. In addition, when an external circuit for analysis is used, a mounting space is required on the substrate. More importantly, failures that occur in the field environment often do not reproduce in the laboratory environment for analysis due to differences in the environment surrounding the system. In such a case, there are many cases where post-analysis using the analyzer is difficult.

上述した課題(アナライザが高価、外部回路の取り付けが困難、事後解析での障害再現困難性)への対策として、様々な方法が提案されている。  Various methods have been proposed as countermeasures against the above-described problems (analyzer is expensive, it is difficult to attach an external circuit, and it is difficult to reproduce a failure in post-mortem analysis).

特許文献1において、特別な測定機器を必要とせずPCIバスの観測を行うPCIバストレース回路が提案されている。このPCIバストレース回路は、PCIバス解析回路を備え、バス上の全てのトランザクションを解析して、PCIバスのエラー要因を観測する。検出されたバスのエラー要因は、PCIデバイス中のRAMに書き込まれる。このPCIバストレース回路によれば、外部回路やアナライザ無しでバス情報をトレースすることができる。また実運用するデバイスに本回路を搭載することにより、現場環境で即座に障害情報を取得することができる。  In Patent Document 1, a PCI bus trace circuit for observing a PCI bus without requiring a special measuring device is proposed. The PCI bus trace circuit includes a PCI bus analysis circuit, analyzes all transactions on the bus, and observes an error factor of the PCI bus. The detected error factor of the bus is written in the RAM in the PCI device. According to this PCI bus trace circuit, bus information can be traced without an external circuit or analyzer. In addition, by installing this circuit in a device that is actually used, fault information can be acquired immediately in the field environment.

また、特許文献2には、FPGA(フィールドプログラマブルゲートアレイ)を用いてPCIコントローラ回路を構成しているPCIデバイスにおいて、FPGAの論理回路構成を記憶している不揮発性メモリにPCIバスのエラー情報を記録する情報処理装置が提案されている。この情報処理装置によっても、上述した課題の解決は可能である。  Patent Document 2 discloses PCI bus error information in a non-volatile memory that stores a logic circuit configuration of an FPGA in a PCI device that configures a PCI controller circuit using an FPGA (field programmable gate array). An information processing apparatus for recording has been proposed. This information processing apparatus can also solve the above-described problems.

また、特許文献3には、データ収集指示に基づいてPCIデバイス内部でデータを収集してPCIバス上に送出するPCIデバイスが記載されている。このPCIデバイスによれば、PCIデバイス内に障害が検出されてPCIバス関連の設定情報が失われたり正しく設定されていない場合においても、PCIデバイス内のデータ収集を確実に行うことができる。
特開平11−149421号公報 特許3553006号公報 特許3584977号公報
Patent Document 3 describes a PCI device that collects data inside a PCI device based on a data collection instruction and transmits the collected data on a PCI bus. According to this PCI device, even when a failure is detected in the PCI device and setting information related to the PCI bus is lost or not set correctly, data collection in the PCI device can be reliably performed.
JP-A-11-149421 Japanese Patent No. 3553006 Japanese Patent No. 3584977

しかしながら、実際のトラブル解析時には、外部バス情報だけで外部バスの障害原因を解明する事が困難なケースが多く存在する。例えば、外部バスの障害直前まで問題無くシステムが稼動しており、突然何らかのバス異常が発生した場合、バスデバイスにより外部バス上にエラー発生を示す外部バス信号が伝送される。この外部バス信号は、エラーの種類のみを示す情報であり、何故そのエラーが発生したかなどの障害の背景、原因を示す情報ではない。したがって、この外部バス信号のみに基づいてエラーの解析を行うのは困難である。   However, in actual trouble analysis, there are many cases in which it is difficult to elucidate the cause of the failure of the external bus using only the external bus information. For example, when the system is operating without any problem until just before the failure of the external bus and a certain bus abnormality occurs suddenly, an external bus signal indicating the occurrence of an error is transmitted on the external bus by the bus device. This external bus signal is information indicating only the type of error, and is not information indicating the background and cause of the failure such as why the error has occurred. Therefore, it is difficult to analyze an error based only on the external bus signal.

上述した従来のバストレース技術によれば、PCIバスを始めとする外部バス側の動作状況を詳細に把握する事ができるが、障害が外部バス側以外の要因で発生する場合には、解析は困難である。例えば、内部バス経由でCPU命令がバスデバイス内のレジスタに書き込まれるタイミングと外部バス側の信号受信のタイミングが特定条件を満たす場合にのみバスデバイスエラーが発生すると仮定する。従来の技術では、単に結果として発生したバスデバイスエラー情報のみが保存されるに過ぎない。障害の真の発生条件は内部バス側の書き込み動作のタイミングに依存するものであるため、エラーの発生時における内部バス側の情報を確実に記録し保存する必要がある。   According to the conventional bus trace technology described above, it is possible to grasp in detail the operation status on the external bus side including the PCI bus, but if the failure occurs due to a factor other than the external bus side, the analysis is Have difficulty. For example, it is assumed that a bus device error occurs only when a CPU instruction is written to a register in the bus device via the internal bus and a signal reception timing on the external bus side satisfies a specific condition. In the prior art, only the bus device error information generated as a result is stored. Since the true occurrence condition of the failure depends on the timing of the write operation on the internal bus side, it is necessary to reliably record and save the information on the internal bus side when the error occurs.

また、内部バスのみならず、電源や割り込み信号が障害発生要因にも成り得るため、それらの情報を確保する必要もある。   Moreover, since not only the internal bus but also a power supply and an interrupt signal can be a cause of failure, it is necessary to secure such information.

本発明は上述した従来技術の問題点を解決するもので、バスデバイス又は外部バスの障害発生時に、障害解析を的確且つ容易に行うことができるバスデバイスを提供することを課題とする。   The present invention solves the above-described problems of the prior art, and an object of the present invention is to provide a bus device that can perform failure analysis accurately and easily when a failure occurs in a bus device or an external bus.

本発明に係るバスデバイスは、上記課題を解決するために、請求項1記載の発明は、内部バスと外部バスとに接続されたバスデバイスであって、第1データを記憶する第1記憶手段と、前記内部バスに対するアクセスを制御するとともに、前記内部バスの前記第1記憶手段に対する前記第1データの入出力を制御する内部バス制御部と、第2データを記憶する第2記憶手段と、前記外部バスに対するアクセスを制御するとともに、前記外部バス又は前記内部バスの前記第2記憶手段に対する第2データの入出力を制御するバスインターフェース制御部と、前記内部バス制御部と前記バスインターフェース制御部とを中継して前記第2データの転送処理を制御するデータ転送制御部と、前記内部バスに対する前記内部バス制御部のアクセス履歴、前記第1記憶手段に対する第1データの入出力履歴、及び前記第2記憶手段に対する第2データの入出力履歴の少なくとも一つを前記内部バス制御部から収集するとともに、前記外部バスに対する前記バスインターフェース制御部のアクセス履歴と前記第2記憶手段に対する第2データの入出力履歴を前記バスインターフェース制御部から収集して、収集された各履歴に基づく履歴データを抽出して前記内部バスを介して外部記憶装置に出力するデータ収集部とを備えることを特徴とする。   In order to solve the above problems, the bus device according to the present invention is a bus device connected to an internal bus and an external bus, and is a first storage means for storing first data. An internal bus control unit for controlling access to the internal bus and controlling input / output of the first data to / from the first storage unit of the internal bus; and a second storage unit for storing second data; A bus interface control unit that controls access to the external bus and controls input / output of second data to / from the second storage unit of the external bus or the internal bus; the internal bus control unit; and the bus interface control unit A data transfer control unit that controls the transfer process of the second data by relaying, and an access history of the internal bus control unit with respect to the internal bus Collecting at least one of the input / output history of the first data to the first storage means and the input / output history of the second data to the second storage means from the internal bus control unit, and the bus interface to the external bus The access history of the control unit and the input / output history of the second data with respect to the second storage means are collected from the bus interface control unit, and the history data based on each collected history is extracted and externally transmitted via the internal bus. And a data collection unit for outputting to the storage device.

請求項2記載の発明は、請求項1において、前記データ収集部は、前記外部バスに接続され、前記外部バスの情報を収集するための第1インターフェースと、前記内部バスに接続され、前記内部バスの情報を収集するための第2インターフェースとを備えることを特徴とする。   According to a second aspect of the present invention, in the first aspect, the data collection unit is connected to the external bus, is connected to the first bus for collecting information on the external bus, and is connected to the internal bus. And a second interface for collecting bus information.

請求項3記載の発明は、請求項1又は請求項2において、前記バスインターフェース制御部は、前記外部バスとの通信時に前記外部バスの仕様に規定されるエラー信号を検出した場合にエラーの種類及びエラー発生のタイミングに関する情報を示す第1警告信号を前記データ収集部に対して出力し、前記データ収集部は、前記第1警告信号に基づき収集された各履歴の中から前記エラー発生のタイミングにおける履歴データを抽出することを特徴とする。   According to a third aspect of the present invention, in the first or second aspect, when the bus interface control unit detects an error signal defined in the specification of the external bus during communication with the external bus, the type of error And a first warning signal indicating information relating to the timing of error occurrence to the data collection unit, and the data collection unit outputs the error occurrence timing from each history collected based on the first warning signal. The historical data is extracted.

請求項4記載の発明は、内部バスと外部バスとに接続されたバスデバイスであって、第1データを記憶する第1記憶手段と、前記内部バスに対するアクセスを制御するとともに、前記内部バスの前記第1記憶手段に対する前記第1データの入出力を制御する内部バス制御部と、第2データを記憶する第2記憶手段と、前記外部バスに対するアクセスを制御するとともに、前記外部バス又は前記内部バスの前記第2記憶手段に対する第2データの入出力を制御するバスインターフェース制御部と、前記内部バス制御部と前記バスインターフェース制御部とを中継して前記第2データの転送処理を制御するデータ転送制御部と、前記内部バスに対する前記内部バス制御部のアクセス履歴、前記第1記憶手段に対する第1データの入出力履歴、及び前記第2記憶手段に対する第2データの入出力履歴の少なくとも一つを前記内部バス制御部から収集して保持するコントローラトレーサと、前記外部バスに対する前記バスインターフェース制御部のアクセス履歴と前記第2記憶手段に対する第2データの入出力履歴を前記バスインターフェース制御部から収集して保持するバストレーサと、前記コントローラトレーサ及び前記バストレーサにより保持された各履歴に基づく履歴データを抽出して収集するデータ収集制御部とを備えることを特徴とする。   According to a fourth aspect of the present invention, there is provided a bus device connected to the internal bus and the external bus, the first storage means for storing the first data, access to the internal bus, and control of the internal bus. An internal bus control unit that controls input / output of the first data to / from the first storage unit; a second storage unit that stores second data; and an access to the external bus, and the external bus or the internal Data for controlling a transfer process of the second data by relaying a bus interface control unit that controls input / output of second data to / from the second storage unit of the bus, and the internal bus control unit and the bus interface control unit A transfer control unit, an access history of the internal bus control unit with respect to the internal bus, an input / output history of first data with respect to the first storage unit, and A controller tracer that collects and holds at least one of input / output histories of second data for the second storage means from the internal bus control unit, an access history of the bus interface control unit for the external bus, and the second storage Data collection for extracting and collecting history data based on each history held by the controller tracer and the bus tracer, and a bus tracer for collecting and holding the input / output history of the second data for the means from the bus interface control unit And a control unit.

請求項5記載の発明は、請求項4において、前記コントローラトレーサと前記バストレーサとの少なくとも一方は、前記各履歴の収集を行うトレース部と、特定の順番のアクセスパターンを示す要注意パターンを保持する要注意パターン保持部と、前記トレース部により収集された前記各履歴を前記要注意パターンと照合するパターン照合部とを備え、前記パターン照合部は、前記トレース部により収集された前記各履歴と前記要注意パターンとが適合した場合に第2警告信号を前記データ収集制御部に対して出力することを特徴とする。   According to a fifth aspect of the present invention, in the fourth aspect, at least one of the controller tracer and the bus tracer holds a trace unit that collects the histories and a caution pattern that indicates an access pattern in a specific order. And a pattern matching unit that matches the history collected by the trace unit with the pattern requiring attention. The pattern matching unit includes the history collected by the trace unit and A second warning signal is output to the data collection control unit when the caution pattern is matched.

請求項6記載の発明は、請求項4又は請求項5において、前記バスインターフェース制御部は、前記外部バスとの通信時に前記外部バスの仕様に規定されるエラー信号を検出した場合にエラーの種類及びエラー発生のタイミングに関する情報を示す第3警告信号を前記バストレーサを介して前記データ収集制御部に対して出力することを特徴とする。   According to a sixth aspect of the present invention, in the fourth or fifth aspect, when the bus interface control unit detects an error signal defined in the specifications of the external bus during communication with the external bus, the type of error And a third warning signal indicating information relating to the timing of error occurrence is output to the data collection control unit via the bus tracer.

請求項7記載の発明は、請求項4乃至請求項6のいずれか1項において、前記バストレーサは、前記外部バスに接続され前記外部バスの情報を収集するためのバストレーサ専用インターフェースを備えることを特徴とする。   A seventh aspect of the present invention provides the bus tracer according to any one of the fourth to sixth aspects, wherein the bus tracer includes a bus tracer-dedicated interface connected to the external bus and collecting information on the external bus. It is characterized by.

請求項8記載の発明は、請求項4乃至請求項7のいずれか1項において、前記コントローラトレーサは、前記内部バスに接続され前記内部バスの情報を収集するためのコントローラトレーサ専用インターフェースを備えることを特徴とする。   According to an eighth aspect of the present invention, in any one of the fourth to seventh aspects, the controller tracer includes a controller tracer dedicated interface connected to the internal bus and collecting information of the internal bus. It is characterized by.

請求項9記載の発明は、請求項4乃至請求項8のいずれか1項において、当該バスデバイスを搭載するシステムの電源部から当該バスデバイスへの電源供給状態を収集して保持する電源トレーサをさらに備え、前記データ収集制御部は、さらに前記電源トレーサにより保持された電源供給状態に基づく電源データを抽出して収集することを特徴とする。   The invention according to claim 9 is the power tracer according to any one of claims 4 to 8, wherein the power tracer that collects and holds the power supply state from the power supply unit of the system on which the bus device is mounted to the bus device. Further, the data collection control unit further extracts and collects power data based on a power supply state held by the power tracer.

請求項10記載の発明は、請求項4乃至請求項9のいずれか1項において、当該バスデバイスを搭載するシステム内の割り込み信号を収集して保持するI/Oトレーサをさらに備え、前記データ収集制御部は、さらに前記I/Oトレーサにより保持された割り込み信号に基づく割り込み信号データを抽出して収集することを特徴とする。   A tenth aspect of the present invention is the data collection method according to any one of the fourth to ninth aspects, further comprising an I / O tracer that collects and holds an interrupt signal in a system in which the bus device is mounted. The control unit further extracts and collects interrupt signal data based on the interrupt signal held by the I / O tracer.

請求項11記載の発明は、請求項6乃至請求項10のいずれか1項において、前記データ収集制御部は、前記履歴データ、前記電源データ、及び前記割り込み信号データの少なくとも一つを抽出して収集する際に、前記第2警告信号と前記第3警告信号との少なくとも一方に基づきデータを抽出することを特徴とする。   The invention according to claim 11 is the data acquisition control unit according to any one of claims 6 to 10, wherein the data collection control unit extracts at least one of the history data, the power supply data, and the interrupt signal data. When collecting, data is extracted based on at least one of the second warning signal and the third warning signal.

請求項12記載の発明は、請求項4乃至請求項11のいずれか1項において、前記データ収集制御部は、収集した前記履歴データ、前記電源データ、及び前記割り込み信号データの少なくとも一つを前記内部バスを介して外部記憶装置に出力することを特徴とする。   According to a twelfth aspect of the present invention, in any one of the fourth to eleventh aspects, the data collection control unit receives at least one of the collected history data, the power supply data, and the interrupt signal data. The data is output to an external storage device via an internal bus.

請求項13記載の発明は、請求項4乃至請求項11のいずれか1項において、前記データ収集制御部により収集された前記履歴データ、前記電源データ、及び前記割り込み信号データの少なくとも一つを保存する内部メモリ回路をさらに備えることを特徴とする。   A thirteenth aspect of the present invention is the storage medium according to any one of the fourth to eleventh aspects, wherein at least one of the history data, the power supply data, and the interrupt signal data collected by the data collection control unit is stored. An internal memory circuit is further provided.

請求項14記載の発明は、請求項4乃至請求項11のいずれか1項において、前記データ収集制御部は、収集した前記履歴データ、前記電源データ、及び前記割り込み信号データの少なくとも一つを周辺モジュール用内部バスを介して外部メモリ回路に出力することを特徴とする。   A fourteenth aspect of the present invention provides the data collection control unit according to any one of the fourth to eleventh aspects, wherein the data collection control unit surrounds at least one of the collected history data, the power supply data, and the interrupt signal data. It outputs to an external memory circuit via the module internal bus.

本発明の請求項1記載の発明によれば、データ収集部が内部バスに対する内部バス制御部のアクセス履歴、第1記憶手段に対する第1データの入出力履歴、及び第2記憶手段に対する第2データの入出力履歴の少なくとも一つを内部バス制御部から収集するとともに、外部バスに対するバスインターフェース制御部のアクセス履歴と第2記憶手段に対する第2データの入出力履歴をバスインターフェース制御部から収集するので、外部バス信号にエラー信号が発見された場合等のイベント発生時に様々な障害発生要因に対する解析を行うことが容易になる。また、システムの実稼動環境でしか障害を再現できない場合においても、容易にデータの収集が可能である。   According to the first aspect of the present invention, the data collection unit has an access history of the internal bus control unit with respect to the internal bus, an input / output history of the first data with respect to the first storage unit, and a second data with respect to the second storage unit. Since at least one of the input / output histories is collected from the internal bus control unit, the access history of the bus interface control unit for the external bus and the second data input / output history for the second storage means are collected from the bus interface control unit. It becomes easy to analyze various causes of failure when an event occurs, such as when an error signal is found in the external bus signal. Even when the failure can be reproduced only in the actual operating environment of the system, data can be easily collected.

本発明の請求項2記載の発明によれば、データ収集部が第1インターフェース及び第2インターフェースを備えているので、外部バス及び内部バスから直接情報を収集することができる。したがって、仮にバスインターフェース制御部や内部バス制御部に障害が発生したとしても、問題無く外部バス及び内部バスから情報を収集することができる。   According to the second aspect of the present invention, since the data collection unit includes the first interface and the second interface, information can be collected directly from the external bus and the internal bus. Therefore, even if a failure occurs in the bus interface control unit or the internal bus control unit, information can be collected from the external bus and the internal bus without any problem.

本発明の請求項3記載の発明によれば、バスインターフェース制御部は、外部バスとの通信時に外部バスの仕様に規定されるエラー信号を検出した場合にエラーの種類及びエラー発生のタイミングに関する情報を示す第1警告信号をデータ収集部に対して出力するので、データ収集部は、第1警告信号に基づき、エラー信号検出時の履歴データを抽出することができる。   According to the third aspect of the present invention, when the bus interface control unit detects an error signal defined in the specification of the external bus at the time of communication with the external bus, the information on the type of error and the timing of occurrence of the error Is output to the data collecting unit, the data collecting unit can extract the history data when the error signal is detected based on the first warning signal.

本発明の請求項4記載の発明によれば、内部バス側の情報を収集して保持するコントローラトレーサと、外部バス側の情報を収集して保持するバストレーサと、コントローラトレーサ及びバストレーサにより保持された各履歴に基づく履歴データを抽出して収集するデータ収集制御部とを備えるので、イベント発生時に様々な障害発生要因に対する解析を行うことが容易になる。また、システムの実稼動環境でしか障害を再現できない場合においても、容易にデータの収集が可能である。   According to the fourth aspect of the present invention, the controller tracer that collects and holds the information on the internal bus side, the bus tracer that collects and holds the information on the external bus side, and is held by the controller tracer and the bus tracer. Since it includes a data collection control unit that extracts and collects history data based on each recorded history, it becomes easy to analyze various causes of failure when an event occurs. Even when the failure can be reproduced only in the actual operating environment of the system, data can be easily collected.

本発明の請求項5記載の発明によれば、特定の順番のアクセスパターンを示す要注意パターンと収集された各履歴とを照合するので、障害を起こしやすいアクセスパターン時の各履歴を収集することができる。   According to the invention described in claim 5 of the present invention, the caution pattern indicating the access pattern in a specific order and the collected histories are collated, so that the histories at the time of the access pattern that is likely to cause a failure are collected. Can do.

本発明の請求項6記載の発明によれば、バスインターフェース制御部は、外部バスとの通信時に外部バスの仕様に規定されるエラー信号を検出した場合にエラーの種類及びエラー発生のタイミングに関する情報を示す第3警告信号をバストレーサを介してデータ収集制御部に対して出力するので、データ収集制御部は、エラーの種類及びエラー信号を検出したタイミングを知ることができる。   According to the sixth aspect of the present invention, when the bus interface control unit detects an error signal defined in the specification of the external bus at the time of communication with the external bus, the information on the type of error and the timing of occurrence of the error Is output to the data collection control unit via the bus tracer, the data collection control unit can know the error type and the timing at which the error signal is detected.

本発明の請求項7記載の発明によれば、バストレーサは、バストレーサ専用インターフェースを備えるので、外部バスから直接情報を収集することができる。したがって、仮にバスインターフェース制御部に障害が発生したとしても、問題無く外部バスから情報を収集することができる。   According to the seventh aspect of the present invention, since the bus tracer includes the bus tracer dedicated interface, information can be collected directly from the external bus. Therefore, even if a failure occurs in the bus interface control unit, information can be collected from the external bus without any problem.

本発明の請求項8記載の発明によれば、コントローラトレーサは、コントローラトレーサ専用インターフェースを備えるので、内部バスから直接情報を収集することができる。したがって、仮に内部バス制御部に障害が発生したとしても、問題無く内部バスから情報を収集することができる。   According to the eighth aspect of the present invention, the controller tracer includes the controller tracer-dedicated interface, so that information can be collected directly from the internal bus. Therefore, even if a failure occurs in the internal bus control unit, information can be collected from the internal bus without any problem.

本発明の請求項9記載の発明によれば、データ収集制御部は、電源トレーサから電源供給状態に基づく電源データを収集するので、電源が障害発生の要因となっている場合に、容易に解析を行うことができる。   According to the ninth aspect of the present invention, the data collection control unit collects power supply data based on the power supply state from the power supply tracer, so that it is easily analyzed when the power supply is a cause of the failure. It can be performed.

本発明の請求項10記載の発明によれば、データ収集制御部は、I/Oトレーサから割り込み信号データを収集するので、割り込み信号が障害発生の要因となっている場合に、容易に解析を行うことができる。   According to the tenth aspect of the present invention, the data collection control unit collects the interrupt signal data from the I / O tracer. Therefore, when the interrupt signal causes a failure, the data collection control unit can easily analyze the data. It can be carried out.

本発明の請求項11記載の発明によれば、データ収集制御部は、第2警告信号又は第3警告信号に基づき、イベント発生時の各データを抽出することができるので、イベント発生時の動作解析を容易に行うことができる。   According to the eleventh aspect of the present invention, since the data collection control unit can extract each data at the time of event occurrence based on the second warning signal or the third warning signal, the operation at the time of event occurrence is possible. Analysis can be performed easily.

本発明の請求項12記載の発明によれば、データ収集制御部は、収集したデータを内部バスを介して外部記憶装置に出力するので、必要なデータを適切に外部記憶装置に保存することができる。   According to the twelfth aspect of the present invention, the data collection control unit outputs the collected data to the external storage device via the internal bus, so that necessary data can be appropriately stored in the external storage device. it can.

本発明の請求項13記載の発明によれば、データを保存するための内部メモリ回路を備えているので、内部バスを介して外部記憶装置に保存する必要がなく、内部バスに障害が発生している場合であっても、安全確実にデータを保存することができる。   According to the thirteenth aspect of the present invention, since the internal memory circuit for storing data is provided, it is not necessary to store the data in the external storage device via the internal bus, and a failure occurs in the internal bus. Data can be stored safely and securely.

本発明の請求項14記載の発明によれば、データ収集制御部は、収集したデータを周辺モジュール用内部バスを介して外部メモリ回路に出力するので、内部バスを介して外部記憶装置に保存する必要がなく、内部バスに障害が発生している場合であっても、安全確実にデータを保存することができる。また、バスデバイスの実装上の制約により、十分な容量の内部メモリ回路をバスデバイス内に備えることができない場合であっても、十分な記憶容量を外部メモリ回路に確保することができる。   According to the fourteenth aspect of the present invention, the data collection control unit outputs the collected data to the external memory circuit via the peripheral module internal bus, and therefore saves it in the external storage device via the internal bus. This is unnecessary, and even when a failure occurs in the internal bus, data can be stored safely and reliably. Even when the internal memory circuit having a sufficient capacity cannot be provided in the bus device due to restrictions on mounting of the bus device, a sufficient storage capacity can be secured in the external memory circuit.

以下、本発明のバスデバイスの実施の形態を、図面に基づいて詳細に説明する。   DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments of a bus device of the present invention will be described in detail with reference to the drawings.

以下、本発明の実施例について図面を参照しながら説明する。図1は、本発明の実施例1のバスデバイス10a及びその周辺の構成を示すブロック図である。   Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the bus device 10a and its periphery according to the first embodiment of the present invention.

まず、本実施の形態の構成を説明する。図1に示すように、バスデバイス10aは、外部バス20と内部バス30とに接続され、内部バス制御部11、データ転送制御部12、バスインターフェース制御部13、ローカルレジスタ14、バスコンフィグレーションレジスタ15、及びデータ収集部16を有する。   First, the configuration of the present embodiment will be described. As shown in FIG. 1, a bus device 10a is connected to an external bus 20 and an internal bus 30, and has an internal bus control unit 11, a data transfer control unit 12, a bus interface control unit 13, a local register 14, and a bus configuration register. 15 and a data collection unit 16.

またバスデバイス10a、CPU32、主メモリ34、及び外部記憶装置36は、内部バス30を介して互いに接続されている。   In addition, the bus device 10 a, the CPU 32, the main memory 34, and the external storage device 36 are connected to each other via the internal bus 30.

上述した主メモリ34、CPU32、外部記憶装置36と内部バス30との接続形態は、1つの例である。例えば内部バス30上に接続された図示されないハブ・インターフェースを介して内部バス30に接続される構成も採り得る。いずれにしても、バスデバイス10aから主メモリ34、CPU32、及び外部記憶装置36にアクセスするためには、内部バス30を経由する必要がある。   The connection form of the main memory 34, the CPU 32, the external storage device 36, and the internal bus 30 described above is one example. For example, the structure connected to the internal bus 30 via the hub interface not shown connected on the internal bus 30 can also be taken. In any case, in order to access the main memory 34, the CPU 32, and the external storage device 36 from the bus device 10a, it is necessary to go through the internal bus 30.

内部バス制御部11は、内部バス30に対するバスデバイス10aのアクセスを制御し、内部バス30側からバスデバイス10aに対して行われる操作を受け付ける。バスデバイス10aと内部バス30との間でデータ転送が行われる場合は、以下の3つが挙げられる。1つ目は、CPU32がプログラムにより外部バス20上の他のバスデバイスとのデータ転送を実行する場合である。2つ目は、バスデバイス10aがバスマスタとして外部バス20を制御し、直接主メモリ34にアクセスする場合である。3つ目は、他のバスデバイスがバスマスタになり、バスデバイス10aは、ターゲットデバイスとしてデータ転送を実行する場合である。   The internal bus control unit 11 controls access of the bus device 10a to the internal bus 30 and accepts operations performed on the bus device 10a from the internal bus 30 side. When data transfer is performed between the bus device 10a and the internal bus 30, the following three can be cited. The first is a case where the CPU 32 executes data transfer with other bus devices on the external bus 20 by a program. The second case is when the bus device 10 a controls the external bus 20 as a bus master and directly accesses the main memory 34. The third is a case where another bus device becomes a bus master and the bus device 10a executes data transfer as a target device.

また内部バス制御部11は、内部バス30へのアクセスに対し、内部バス仕様に規定されるエラーの確認を行う。さらに内部バス制御部11は、内部バス30のローカルレジスタ14に対する第1データの入出力を制御する。第1データについては、後述する。   Further, the internal bus control unit 11 confirms an error defined in the internal bus specification for access to the internal bus 30. Further, the internal bus control unit 11 controls input / output of the first data to / from the local register 14 of the internal bus 30. The first data will be described later.

バスインターフェース制御部13は、外部バス20に対するバスデバイス10aのアクセスを制御する。すなわちバスインターフェース制御部13は、内部バス制御部11と同様に、CPU32によるデータ転送の際や、バスマスタ転送時、ターゲット動作時の3つの場合に、バスデバイス10aと外部バス20との間でデータ転送が行われる際のインターフェースとなる。   The bus interface control unit 13 controls access of the bus device 10 a to the external bus 20. That is, like the internal bus control unit 11, the bus interface control unit 13 performs data transfer between the bus device 10a and the external bus 20 in the three cases of data transfer by the CPU 32, bus master transfer, and target operation. It becomes an interface when transfer is performed.

またバスインターフェース制御部13は、外部バス20との通信時に外部バス20の仕様に規定されるエラー信号を検出する。バスインターフェース制御部13は、エラー信号を検出した場合、エラーの種類及びエラー発生のタイミングに関する情報を示す第1警告信号をデータ収集部16に対して出力する。   The bus interface control unit 13 detects an error signal defined in the specification of the external bus 20 when communicating with the external bus 20. When detecting an error signal, the bus interface control unit 13 outputs a first warning signal indicating information regarding the type of error and the timing of occurrence of the error to the data collection unit 16.

さらにバスインターフェース制御部13は、外部バス20又は内部バス30のバスコンフィグレーションレジスタ15に対する第2データの入出力を制御する。第2データについては後述する。   Further, the bus interface control unit 13 controls input / output of second data to / from the bus configuration register 15 of the external bus 20 or the internal bus 30. The second data will be described later.

データ転送制御部12は、内部バス制御部11とバスインターフェース制御部13とを中継して、バスデバイス10aの機能として必要なデータ(第2データを含む)の転送処理を制御する。バスデバイス10aの基本的な機能は、内部バス制御部11、データ転送制御部12、及びバスインターフェース制御部13の構成により実行される。   The data transfer control unit 12 relays the internal bus control unit 11 and the bus interface control unit 13 to control transfer processing of data (including second data) necessary as a function of the bus device 10a. The basic functions of the bus device 10a are executed by the configuration of the internal bus control unit 11, the data transfer control unit 12, and the bus interface control unit 13.

ローカルレジスタ14は、本発明の第1記憶手段に対応し、第1データを記憶する。ここで第1データは、バスデバイス10aの外部バス20側機能、内部バス30側機能の基本的な動作を制御する設定であり、例えば、外部バスデバイスとしての動作モード設定(ホスト動作可能か、ターゲット動作専用なのか等)、内部バス30から見たメモリアドレス設定、外部バスクロック設定、パワーマネジメント設定、割り込み設定(割り込み信号の有無)等、多種存在する。   The local register 14 corresponds to the first storage means of the present invention and stores the first data. Here, the first data is a setting for controlling basic operations of the external bus 20 side function and the internal bus 30 side function of the bus device 10a. For example, the operation mode setting as the external bus device (whether host operation is possible, There are various types such as memory address setting, external bus clock setting, power management setting, interrupt setting (presence / absence of interrupt signal) as seen from the internal bus 30.

またローカルレジスタ14は、内部バス制御部11に接続され、内部バス制御部11を介して内部バス30との間でデータの入出力が行われる。また、ローカルレジスタ14は、外部バス20側から設定を書き込まれることは無い。   The local register 14 is connected to the internal bus control unit 11, and data is input / output to / from the internal bus 30 via the internal bus control unit 11. In the local register 14, the setting is not written from the external bus 20 side.

バスコンフィグレーションレジスタ15は、本発明の第2記憶手段に対応し、第2データを記憶する。ここで第2データは、バスデバイス10aの外部バス20側機能の詳細な設定であり、例えば、外部バスデバイスとしてのID、ベンダID、外部バス20から見たメモリアドレス設定、レイテンシ設定、デバイス状態、占有メモリ空間設定、割り込み設定、機能の有効無効設定等、多種存在する。   The bus configuration register 15 corresponds to the second storage means of the present invention and stores second data. Here, the second data is a detailed setting of the function on the external bus 20 side of the bus device 10a. For example, the ID as the external bus device, the vendor ID, the memory address setting viewed from the external bus 20, the latency setting, and the device state There are various types such as dedicated memory space setting, interrupt setting, and function enable / disable setting.

またバスコンフィグレーションレジスタ15は、バスインターフェース制御部13に接続され、バスインターフェース制御部13を介して外部バス20又は内部バス30との間でデータの入出力が行われる。   The bus configuration register 15 is connected to the bus interface control unit 13, and data is input / output to / from the external bus 20 or the internal bus 30 via the bus interface control unit 13.

データ収集部16は、内部バス30に対する内部バス制御部11のアクセス履歴、ローカルレジスタ14に対する第1データの入出力履歴、及びバスコンフィグレーション15に対する第2データの入出力履歴を内部バス制御部11から収集する。本実施例においては、データ収集部16は、全ての履歴を収集するが、必ずしも全ての履歴を収集する必要は無く、いずれか一つであってもよい。ここでバスコンフィグレーションレジスタ15に対する第2データの入出力履歴とは、内部バス制御部11を介して内部バス30との間で行われたものを指す。   The data collection unit 16 displays the access history of the internal bus control unit 11 with respect to the internal bus 30, the input / output history of the first data with respect to the local register 14, and the input / output history of the second data with respect to the bus configuration 15. Collect from. In the present embodiment, the data collection unit 16 collects all histories, but it is not always necessary to collect all histories, and any one of them may be used. Here, the input / output history of the second data with respect to the bus configuration register 15 refers to that performed with the internal bus 30 via the internal bus control unit 11.

またデータ収集部16は、外部バス20に対するバスインターフェース制御部13のアクセス履歴とバスコンフィグレーションレジスタ15に対する第2データの入出力履歴をバスインターフェース制御部13から収集する。ここでバスコンフィグレーションレジスタ15に対する第2データの入出力履歴とは、バスインターフェース制御部13を介して外部バス20との間で行われたものを指す。   The data collection unit 16 collects the access history of the bus interface control unit 13 for the external bus 20 and the input / output history of the second data for the bus configuration register 15 from the bus interface control unit 13. Here, the input / output history of the second data with respect to the bus configuration register 15 indicates that performed between the bus configuration register 15 and the external bus 20 via the bus interface control unit 13.

データ収集部16は、収集した各履歴を所定の容量だけ記憶する。容量の制限まで各履歴を記憶した後、データ収集部16は、最新の履歴を記憶する度に最古の履歴を削除する。   The data collection unit 16 stores each collected history by a predetermined capacity. After storing each history up to the capacity limit, the data collection unit 16 deletes the oldest history every time the latest history is stored.

またデータ収集部16は、収集された各履歴に基づく履歴データを抽出する。データ収集部16は、履歴データを抽出する際に、第1警告信号に基づき、収集された各履歴の中からエラー発生のタイミングにおける履歴データを抽出する。   The data collection unit 16 extracts history data based on each collected history. When the history data is extracted, the data collection unit 16 extracts history data at the timing of occurrence of an error from each collected history based on the first warning signal.

さらにデータ収集部16は、外部バス20に接続され外部バス20の情報を収集するための第1インターフェース16aと、内部バス30に接続され内部バス30の情報を収集するための第2インターフェース16bとを備える。これら2つのインターフェースは、必須ではない。仮にこれら2つのインターフェースが無い場合、データ収集部16は、内部バス制御部11を介して内部バス30の情報を、またバスインターフェース制御部13を介して外部バス20の情報を、それぞれ収集する。   Further, the data collection unit 16 is connected to the external bus 20 and collects information on the external bus 20, and the second interface 16 b is connected to the internal bus 30 and collects information on the internal bus 30. Is provided. These two interfaces are not essential. If these two interfaces do not exist, the data collection unit 16 collects information on the internal bus 30 via the internal bus control unit 11 and information on the external bus 20 via the bus interface control unit 13.

またデータ収集部16は、抽出した障害原因解析のための履歴データを内部バス30を介して、バスデバイス10a外の外部記憶装置36に出力する。   The data collection unit 16 outputs the extracted history data for failure cause analysis to the external storage device 36 outside the bus device 10 a via the internal bus 30.

次に実施例1に係るバスデバイス10aの動作を説明する。通常の通信時において、バスデバイス10aは、一般的なバスデバイスとして動作する。バスデバイス10aのパワーオンリセット後、CPU32によりローカルレジスタ14とバスコンフィグレーションレジスタ15との値が初期化される。   Next, the operation of the bus device 10a according to the first embodiment will be described. During normal communication, the bus device 10a operates as a general bus device. After power-on reset of the bus device 10a, the CPU 32 initializes the values of the local register 14 and the bus configuration register 15.

バスデバイス10aは、これら両レジスタの設定内容に基づき、通常のバスデバイスとしての通信動作を行う。ここで述べる通常の通信動作とは、外部バスデバイスのアービトレーション機能(バスデバイス10aが外部バスのホストとして動作する場合に、各外部バスデバイスからのバス権要求に従い外部バスの制御権を与える機能)、バスマスタ動作、バスターゲット動作時のメモリリード機能、メモリライト機能、I/Oリード機能、I/Oライト機能等を示す。   The bus device 10a performs a communication operation as a normal bus device based on the setting contents of both registers. The normal communication operation described here is an arbitration function of an external bus device (a function that gives an external bus control right in accordance with a bus right request from each external bus device when the bus device 10a operates as a host of the external bus) The memory read function, the memory write function, the I / O read function, the I / O write function, etc. during the bus master operation and the bus target operation are shown.

上述した通常の通信に関する用語及び動作は、一般的なPCIバス仕様のものと同じである。各動作において、データ転送制御部12は、バスデバイス10aの通常の通信全体を制御する。内部バス制御部11及びバスインターフェース制御部13は、それぞれ内部バス30とバスデバイス10aとの間及び外部バス20とバスデバイス10aとの間のインターフェースとなり、外部バス20と内部バス30との間の通信を仲介する。   Terms and operations related to normal communication described above are the same as those in the general PCI bus specification. In each operation, the data transfer control unit 12 controls the entire normal communication of the bus device 10a. The internal bus control unit 11 and the bus interface control unit 13 are interfaces between the internal bus 30 and the bus device 10a and between the external bus 20 and the bus device 10a, respectively, and between the external bus 20 and the internal bus 30. Mediate communication.

本発明に特徴的な作用は、以下に説明する外部バス20の障害発生時、または外部バス20の障害発生が疑われる場合の動作である。上述したように、データ収集部16は、内部バス30に対する内部バス制御部11のアクセス履歴や外部バス20に対するバスインターフェース制御部13のアクセス履歴等を収集する。   The characteristic operation of the present invention is the operation when the failure of the external bus 20 described below is suspected or when the failure of the external bus 20 is suspected. As described above, the data collection unit 16 collects the access history of the internal bus control unit 11 for the internal bus 30 and the access history of the bus interface control unit 13 for the external bus 20.

その後、データ収集部16は、収集された各履歴に基づく履歴データを抽出する。データ収集部16が履歴データを抽出するタイミングは色々考えられるが、例えば、バスインターフェース制御部13が外部バス20との通信時に外部バス信号に外部バス仕様に規定されるエラー信号を検出した場合である。例として、PCIバス信号におけるPERR#信号(パリティエラー信号)等が該当する。この場合、バスインターフェース制御部13は、エラーの種類及びエラー発生のタイミングに関する情報を示す第1警告信号をデータ収集部16に対して出力する。   Thereafter, the data collection unit 16 extracts history data based on each collected history. There are various timings when the data collection unit 16 extracts the history data. For example, when the bus interface control unit 13 detects an error signal defined in the external bus specification in the external bus signal when communicating with the external bus 20. is there. For example, a PERR # signal (parity error signal) in a PCI bus signal is applicable. In this case, the bus interface control unit 13 outputs a first warning signal indicating information regarding the type of error and the timing of occurrence of the error to the data collection unit 16.

第1警告信号を入力されたデータ収集部16は、収集した各履歴に基づく履歴データを抽出する。その際、データ収集部16は、第1警告信号に基づきエラー発生のタイミングと同タイミングの履歴データを、内部バス30に対する内部バス制御部11のアクセス履歴、ローカルレジスタ14とバスコンフィグレーションレジスタ15に対する第1データ及び第2データの入出力履歴、外部バス20に対するバスインターフェース制御部13のアクセス履歴の各履歴から抽出する。   The data collection unit 16 to which the first warning signal is input extracts history data based on each collected history. At that time, the data collection unit 16 obtains the history data at the same timing as the error occurrence timing based on the first warning signal, the access history of the internal bus control unit 11 for the internal bus 30, the local register 14 and the bus configuration register 15. The data is extracted from the input / output history of the first data and the second data and the history of the access history of the bus interface control unit 13 for the external bus 20.

さらにデータ収集部16は、抽出した履歴データ、エラーの種類、及びエラー発生のタイミングに関する情報を内部バス30を介して外部記録装置36に出力し、データの保存を行う。   Further, the data collection unit 16 outputs information regarding the extracted history data, error type, and error occurrence timing to the external recording device 36 via the internal bus 30, and stores the data.

エラー発生のタイミングと履歴の同期をとるための方法は色々あるが、例えばデータ収集部16は、時刻情報を得ることができる時計を有しており、収集した履歴には常に時刻情報を付加しているものとすることができる。   There are various methods for synchronizing the timing of error occurrence and history. For example, the data collection unit 16 has a clock capable of obtaining time information, and time information is always added to the collected history. Can be.

上述のとおり、本発明の実施例1の形態に係るバスデバイス10aによれば、データ収集部16が内部バス30に対する内部バス制御部11のアクセス履歴、ローカルレジスタ14に対する第1データの入出力履歴、及びバスコンフィグレーションレジスタ15に対する第2データの入出力履歴を内部バス制御部11から収集するとともに、外部バス20に対するバスインターフェース制御部13のアクセス履歴とバスコンフィグレーションレジスタ15に対する第2データの入出力履歴をバスインターフェース制御部13から収集するので、外部バス信号にエラー信号が発見された場合等のイベント発生時に様々な障害発生要因に対する解析を行うことが容易になる。  As described above, according to the bus device 10a according to the first embodiment of the present invention, the data collection unit 16 has the access history of the internal bus control unit 11 with respect to the internal bus 30, and the input / output history of the first data with respect to the local register 14. In addition, the input / output history of the second data for the bus configuration register 15 is collected from the internal bus control unit 11, and the access history of the bus interface control unit 13 for the external bus 20 and the second data input to the bus configuration register 15 are entered. Since the output history is collected from the bus interface controller 13, it becomes easy to analyze various causes of failure when an event occurs, such as when an error signal is found in the external bus signal.

従来の技術では、外部バス20側の情報のみが保存されていたのに対し、本実施例においては、外部バス20側の情報だけでなく、障害の真の原因が内包されている可能性のある、内部バス30側の情報が内部バス制御部11を介してデータ収集部16により保存される。したがって、外部バス20側の情報だけでは原因を解明することが困難な障害や、内部バス30側の動作が障害発生条件として関与している場合の障害の解析を容易に行うことができる。  In the prior art, only the information on the external bus 20 side is stored. In the present embodiment, not only the information on the external bus 20 side but also the true cause of the failure may be included. Certain information on the internal bus 30 side is stored by the data collection unit 16 via the internal bus control unit 11. Therefore, it is possible to easily analyze a failure whose cause is difficult to elucidate only by the information on the external bus 20 side or a failure when the operation on the internal bus 30 side is involved as a failure occurrence condition.

またシステムの実稼動環境でしか障害が起こらず、実験室環境では障害が再現されないようなケースにおいても、データ収集環境の整備された実験室で障害を再現した場合と同様に、様々なデータから障害原因を解析する事が可能となる。  Even in the case where a failure occurs only in the actual operating environment of the system, and the failure cannot be reproduced in the laboratory environment, various data can be used in the same way as when the failure is reproduced in the laboratory where the data collection environment is maintained. It becomes possible to analyze the cause of failure.

さらに、データ収集部16が第1インターフェース16a及び第2インターフェース16bを備えているので、外部バス20及び内部バス30から直接情報を収集することができる。したがって、仮にバスインターフェース制御部13や内部バス制御部11に障害が発生したとしても、問題無く外部バス20及び内部バス30から情報を収集することができる。   Furthermore, since the data collection unit 16 includes the first interface 16a and the second interface 16b, information can be collected directly from the external bus 20 and the internal bus 30. Therefore, even if a failure occurs in the bus interface control unit 13 or the internal bus control unit 11, information can be collected from the external bus 20 and the internal bus 30 without any problem.

また、バスインターフェース制御部13は、外部バス20との通信時に外部バス20の仕様に規定されるエラー信号を検出した場合に、エラーの種類及びエラー発生のタイミングに関する情報を示す第1警告信号をデータ収集部16に対して出力するので、データ収集部16は、第1警告信号に基づき、収集された各履歴の中からエラー信号検出時の履歴データを抽出することができる。   When the bus interface control unit 13 detects an error signal defined in the specification of the external bus 20 during communication with the external bus 20, the bus interface control unit 13 outputs a first warning signal indicating information on the type of error and the timing of occurrence of the error. Since it outputs to the data collection part 16, the data collection part 16 can extract the log | history data at the time of error signal detection from each collected log | history based on a 1st warning signal.

図2は、本発明の実施例2のバスデバイス10b及びその周辺の構成を示すブロック図である。実施例1の構成と異なる点としては、バスデバイス10bは、データ収集部16の代わりにバストレーサ18、コントローラトレーサ19、及びデータ収集制御部17を備えている点である。   FIG. 2 is a block diagram showing the configuration of the bus device 10b and its peripherals according to the second embodiment of the present invention. The difference from the configuration of the first embodiment is that the bus device 10 b includes a bus tracer 18, a controller tracer 19, and a data collection control unit 17 instead of the data collection unit 16.

バストレーサ18は、バスインターフェース制御部13とデータ収集制御部17とに接続され、外部バス20に対するバスインターフェース制御部13のアクセス履歴とバスコンフィグレーションレジスタ15に対する第2データの入出力履歴をバスインターフェース制御部13から収集して保持する。ここでバスコンフィグレーションレジスタ15に対する第2データの入出力履歴とは、バスインターフェース制御部13を介して外部バス20との間で行われたものを指す。   The bus tracer 18 is connected to the bus interface control unit 13 and the data collection control unit 17, and the bus interface shows the access history of the bus interface control unit 13 for the external bus 20 and the input / output history of the second data to the bus configuration register 15. Collected from the control unit 13 and held. Here, the input / output history of the second data with respect to the bus configuration register 15 indicates that performed between the bus configuration register 15 and the external bus 20 via the bus interface control unit 13.

コントローラトレーサ19は、内部バス制御部11とデータ収集制御部17とに接続され、内部バス30に対する内部バス制御部11のアクセス履歴、ローカルレジスタ14に対する第1データの入出力履歴、及びバスコンフィグレーションレジスタ15に対する第2データの入出力履歴の少なくとも一つを内部バス制御部11から収集して保持する。ここでバスコンフィグレーションレジスタ15に対する第2データの入出力履歴とは、内部バス制御部11を介して内部バス30との間で行われたものを指す。   The controller tracer 19 is connected to the internal bus control unit 11 and the data collection control unit 17, and the access history of the internal bus control unit 11 with respect to the internal bus 30, the input / output history of the first data with respect to the local register 14, and the bus configuration. At least one input / output history of the second data for the register 15 is collected from the internal bus control unit 11 and held. Here, the input / output history of the second data with respect to the bus configuration register 15 refers to that performed with the internal bus 30 via the internal bus control unit 11.

データ収集制御部17は、バストレーサ18、コントローラトレーサ19、及び内部バス30に接続され、コントローラトレーサ19及びバストレーサ18により保持された各履歴に基づく履歴データを抽出して収集する。   The data collection control unit 17 is connected to the bus tracer 18, the controller tracer 19, and the internal bus 30, and extracts and collects history data based on each history held by the controller tracer 19 and the bus tracer 18.

またバスインターフェース制御部13は、外部バス20との通信時に外部バス20の仕様に規定されるエラー信号を検出する。バスインターフェース制御部13は、エラー信号を検出した場合、エラーの種類及びエラー発生のタイミングに関する情報を示す第3警告信号をバストレーサ18を介してデータ収集制御部17に対して出力する。   The bus interface control unit 13 detects an error signal defined in the specification of the external bus 20 when communicating with the external bus 20. When detecting an error signal, the bus interface control unit 13 outputs a third warning signal indicating information on the type of error and the timing of occurrence of the error to the data collection control unit 17 via the bus tracer 18.

次にコントローラトレーサ19及びバストレーサ18の構成について、さらに詳しく説明する。図3は、本発明の実施例2のコントローラトレーサ19の構成を示すブロック図である。また図4は、本発明の実施例2のバストレーサ18の構成を示すブロック図である。図3に示すように、コントローラトレーサ19は、トレース部42a、パターン照合部44a、要注意パターン保持部46a、バス履歴保持バッファ47a、及びレジスタ履歴保持バッファ48aを備えている。   Next, the configuration of the controller tracer 19 and the bus tracer 18 will be described in more detail. FIG. 3 is a block diagram illustrating the configuration of the controller tracer 19 according to the second embodiment of the present invention. FIG. 4 is a block diagram showing the configuration of the bus tracer 18 according to the second embodiment of the present invention. As shown in FIG. 3, the controller tracer 19 includes a trace unit 42a, a pattern matching unit 44a, a cautionary pattern holding unit 46a, a bus history holding buffer 47a, and a register history holding buffer 48a.

トレース部42aは、パターン照合部44a、バス履歴保持バッファ47a、レジスタ履歴保持バッファ48a、さらにデータ収集制御部17、及び内部バス制御部11に接続され、各履歴の収集を行う。   The trace unit 42a is connected to the pattern matching unit 44a, the bus history holding buffer 47a, the register history holding buffer 48a, the data collection control unit 17, and the internal bus control unit 11, and collects each history.

トレース部42aは、内部バス30に対する内部バス制御部11のアクセス履歴を内部バス制御部11から収集して、バス履歴保持バッファ47aに出力する。バス履歴保持バッファ47aは、入力されたアクセス履歴を保持する。   The trace unit 42a collects the access history of the internal bus control unit 11 with respect to the internal bus 30 from the internal bus control unit 11, and outputs it to the bus history holding buffer 47a. The bus history holding buffer 47a holds the input access history.

またトレース部42aは、ローカルレジスタ14に対する第1データの入出力履歴、及びバスコンフィグレーションレジスタ15に対する第2データの入出力履歴を内部バス制御部11から収集して、レジスタ履歴保持バッファ48aに出力する。レジスタ履歴保持バッファ48aは、入力された各履歴を保持する。   The trace unit 42a collects the input / output history of the first data for the local register 14 and the input / output history of the second data for the bus configuration register 15 from the internal bus control unit 11 and outputs them to the register history holding buffer 48a. To do. The register history holding buffer 48a holds each input history.

要注意パターン保持部46aは、パターン照合部44aに接続され、予め設定された特定の順番のアクセスパターンを示す要注意パターンを保持する。本実施例において、要注意パターン保持部46aは、コントローラトレーサ19内に設けられているが、コントローラトレーサ19の外部に設けてもよい。   The caution pattern holding unit 46a is connected to the pattern matching unit 44a and holds a caution pattern indicating an access pattern in a specific order set in advance. In the present embodiment, the caution pattern holding unit 46 a is provided in the controller tracer 19, but may be provided outside the controller tracer 19.

パターン照合部44aは、トレース部42a及び要注意パターン保持部46aに接続され、トレース部42aが履歴情報を収集する都度、トレース部42aにより収集された各履歴を要注意パターンと照合する。さらにパターン照合部44aは、トレース部42aにより収集された各履歴と要注意パターンとが適合した場合に第2警告信号をトレース部42aを介してデータ収集制御部17に対して出力する。   The pattern matching unit 44a is connected to the trace unit 42a and the caution pattern holding unit 46a, and collates each history collected by the trace unit 42a with a caution pattern every time the trace unit 42a collects history information. Furthermore, the pattern matching unit 44a outputs a second warning signal to the data collection control unit 17 via the trace unit 42a when each history collected by the trace unit 42a matches the caution pattern.

また図4に示すように、バストレーサ18もコントローラトレーサ19の構成と同じであり、重複した説明を省略する。ただし、必ずしもコントローラトレーサ19とバストレーサ18とを同じ構成にする必要は無く、例えばバストレーサ18は、トレース部42bとバス履歴保持バッファ47bとレジスタ履歴保持バッファ48bのみの構成にすることも可能である。
トレース部42a、パターン照合部44aは、半導体論理回路とレジスタ(揮発性RAMメモリ)として実装される。また、要注意パターン保持部46aは、フラッシュROM等の不揮発性ROMメモリとして実装される。
As shown in FIG. 4, the bus tracer 18 has the same configuration as the controller tracer 19 and will not be described again. However, the controller tracer 19 and the bus tracer 18 do not necessarily have the same configuration. For example, the bus tracer 18 can be configured by only the trace unit 42b, the bus history holding buffer 47b, and the register history holding buffer 48b. is there.
The trace unit 42a and the pattern matching unit 44a are mounted as a semiconductor logic circuit and a register (volatile RAM memory). The caution pattern holding unit 46a is mounted as a nonvolatile ROM memory such as a flash ROM.

またバス履歴保持バッファ47a及びレジスタ履歴保持バッファ48aは、容量制限があり、履歴データの溢れを防ぐため、最新の履歴を保持する度に最古の履歴を削除する。またバス履歴保持バッファ47a及びレジスタ履歴保持バッファ48aは、コントローラトレーサ19の外部に設けることもできる。   In addition, the bus history holding buffer 47a and the register history holding buffer 48a have capacity limitations, and the oldest history is deleted each time the latest history is held in order to prevent overflow of history data. The bus history holding buffer 47 a and the register history holding buffer 48 a can be provided outside the controller tracer 19.

図4に示すバストレーサ18内のトレース部42bは、図3に示すトレース部42aと異なる点があるため、トレース部42bについて説明する。   Since the trace part 42b in the bus tracer 18 shown in FIG. 4 is different from the trace part 42a shown in FIG. 3, the trace part 42b will be described.

トレース部42bは、パターン照合部44b、バス履歴保持バッファ47b、レジスタ履歴保持バッファ48b、さらにデータ収集制御部17、及びバスインターフェース制御部13に接続され、各履歴の収集を行う。   The trace unit 42b is connected to the pattern matching unit 44b, the bus history holding buffer 47b, the register history holding buffer 48b, the data collection control unit 17, and the bus interface control unit 13, and collects each history.

トレース部42bは、外部バス20に対するバスインターフェース制御部13のアクセス履歴をバスインターフェース制御部13から収集して、バス履歴保持バッファ47bに出力する。バス履歴保持バッファ47bは、入力されたアクセス履歴を保持する。   The trace unit 42b collects the access history of the bus interface control unit 13 with respect to the external bus 20 from the bus interface control unit 13 and outputs it to the bus history holding buffer 47b. The bus history holding buffer 47b holds the input access history.

またトレース部42bは、バスコンフィグレーションレジスタ15に対する第2データの入出力履歴をバスインターフェース制御部13から収集して、レジスタ履歴保持バッファ48bに出力する。ここでバスコンフィグレーションレジスタ15に対する第2データの入出力履歴とは、バスインターフェース制御部13を介して外部バス20との間で行われたものを指す。レジスタ履歴保持バッファ48bは、入力された入出力履歴を保持する。   The trace unit 42b collects the input / output history of the second data with respect to the bus configuration register 15 from the bus interface control unit 13 and outputs it to the register history holding buffer 48b. Here, the input / output history of the second data with respect to the bus configuration register 15 indicates that performed between the bus configuration register 15 and the external bus 20 via the bus interface control unit 13. The register history holding buffer 48b holds an input / output history that has been input.

次に実施例2に係るバスデバイス10bの動作を説明する。実施例1と同様の動作については、重複した説明を省略する。本発明に特徴的な作用は、以下に説明する外部バス20の障害発生時、または外部バス20の障害発生が疑われる場合の動作である。上述したように、コントローラトレーサ19とバストレーサ18は、それぞれ内部バス30に対する内部バス制御部11のアクセス履歴等と外部バス20に対するバスインターフェース制御部13のアクセス履歴等を保持する。   Next, the operation of the bus device 10b according to the second embodiment will be described. About the operation | movement similar to Example 1, the overlapping description is abbreviate | omitted. The characteristic operation of the present invention is the operation when the failure of the external bus 20 described below is suspected or when the failure of the external bus 20 is suspected. As described above, the controller tracer 19 and the bus tracer 18 hold the access history of the internal bus control unit 11 for the internal bus 30 and the access history of the bus interface control unit 13 for the external bus 20, respectively.

その後、データ収集制御部17は、以下に示すような3つの場合に収集された各履歴に基づく履歴データを抽出する。   Thereafter, the data collection control unit 17 extracts history data based on each history collected in the following three cases.

1つ目の場合は、バスインターフェース制御部13が外部バス20との通信時に外部バス信号に外部バス仕様に規定されるエラー信号を検出した場合である。この場合、バスインターフェース制御部13は、エラーの種類及びエラー発生のタイミングに関する情報を示す第3警告信号をバストレーサ18を介してデータ収集制御部17に対して出力する。その後の動作は、実施例1における第1警告信号を出力した場合の動作と同様なので、重複した説明を省略する。   The first case is when the bus interface control unit 13 detects an error signal defined in the external bus specification as an external bus signal during communication with the external bus 20. In this case, the bus interface control unit 13 outputs a third warning signal indicating information regarding the type of error and the timing of occurrence of the error to the data collection control unit 17 via the bus tracer 18. Since the subsequent operation is the same as the operation when the first warning signal is output in the first embodiment, the duplicated description is omitted.

エラー発生のタイミングと履歴の同期をとるための方法は色々あるが、例えばデータ収集制御部17は、時刻情報を得ることができる時計を有しており、コントローラトレーサ19及びバストレーサ18は、データ収集制御部17の有する時計を参照して、収集した履歴には常に時刻情報を付加しているものとすることができる。   There are various methods for synchronizing the timing of error occurrence and history. For example, the data collection control unit 17 has a clock capable of obtaining time information. The controller tracer 19 and the bus tracer 18 With reference to the clock possessed by the collection control unit 17, it is assumed that time information is always added to the collected history.

2つ目の場合は、バストレーサ18内のパターン照合部44bが、トレース部42bにより収集された各履歴と要注意パターンとを照合して、適合した場合である。バストレーサ18内のパターン照合部44bは、トレース部42bを介してデータ収集制御部17に対し第2警告信号を出力する。   The second case is a case where the pattern collation unit 44b in the bus tracer 18 collates each history collected by the trace unit 42b with a caution pattern and matches. The pattern matching unit 44b in the bus tracer 18 outputs a second warning signal to the data collection control unit 17 via the trace unit 42b.

ここで、第2警告信号は、適合した履歴の種類と、適合した要注意パターンの種類、及び適合の度合いに関する情報を含む。適合の度合いを示すものとして、2種類の適合が存在する。1つは、「厳密適合」であり、履歴と要注意パターンとが完全一致する部分が存在する。もう1つは、「順番適合」であり、完全一致するわけではないが履歴中に要注意パターンと同じの信号の順番が現れる。すなわち、「順番適合」においては、全体として信号の順番が同じであれば足り、個々の信号間に要注意パターンとは異なるパターンの信号が入ることもあり得る。「厳密適合」は、「順番適合」よりも適合の度合いが上である。   Here, the second warning signal includes information regarding the type of history that has been matched, the type of pattern that needs attention, and the degree of matching. There are two types of adaptations that indicate the degree of adaptation. One is “strict matching”, and there is a portion where the history and the pattern requiring attention completely match. The other is “order matching”, which does not completely match, but the same signal order as the pattern requiring attention appears in the history. That is, in “order matching”, it is sufficient that the order of signals is the same as a whole, and signals of a pattern different from the pattern requiring attention may be inserted between individual signals. “Strict matching” has a higher degree of matching than “order matching”.

また、バストレーサ18内のパターン照合部44bは、適合チェックの仕組みとして外部バス20側からのバスコンフィグレーションレジスタ15に対する入出力履歴のみならず、内部バス30側からバスインターフェース制御部13を介して行うバスコンフィグレーションレジスタ15に対する入出力履歴を含む全アクセス履歴を対象として照合を行う。   In addition, the pattern matching unit 44b in the bus tracer 18 is not only an input / output history for the bus configuration register 15 from the external bus 20 side, but also from the internal bus 30 side via the bus interface control unit 13 as a conformity check mechanism. Verification is performed for all access histories including the input / output history for the bus configuration register 15 to be performed.

第2警告信号を入力されたデータ収集制御部17は、コントローラトレーサ19とバストレーサ18とに収集され保持された各履歴に基づく履歴データを抽出して収集する。   The data collection controller 17 to which the second warning signal is input extracts and collects history data based on each history collected and held in the controller tracer 19 and the bus tracer 18.

具体的には、データ収集制御部17は、第2警告信号に基づき要注意パターン発生のタイミングと同タイミングの履歴データを、コントローラトレーサ19の保持している、内部バス30に対する内部バス制御部11のアクセス履歴、内部バス30とローカルレジスタ14との間のデータの入出力履歴、及び内部バス30とバスコンフィグレーションレジスタ15との間のデータの入出力履歴の各履歴から抽出して収集する。   Specifically, the data collection control unit 17 stores the historical data at the same timing as the required pattern generation timing based on the second warning signal, and the internal bus control unit 11 for the internal bus 30 held in the controller tracer 19. The access history, the data input / output history between the internal bus 30 and the local register 14, and the data input / output history between the internal bus 30 and the bus configuration register 15 are extracted and collected.

さらにデータ収集制御部17は、第2警告信号に基づき要注意パターン発生のタイミングと同タイミングの履歴データを、バストレーサ18の保持している、外部バス20に対するバスインターフェース制御部13のアクセス履歴、内部バス30とバスコンフィグレーションレジスタ15との間のデータの入出力履歴、及び外部バス20とバスコンフィグレーションレジスタ15との間のデータの入出力履歴の各履歴から抽出して収集する。   Further, the data collection control unit 17 stores history data at the same timing as the occurrence of the caution pattern based on the second warning signal, the access history of the bus interface control unit 13 with respect to the external bus 20 held in the bus tracer 18, The data is extracted and collected from the data input / output history between the internal bus 30 and the bus configuration register 15 and the data input / output history between the external bus 20 and the bus configuration register 15.

またデータ収集制御部17は、第2警告信号に基づきバストレーサ18にて照合された要注意パターンの種類情報を得る。   Further, the data collection control unit 17 obtains the type information of the caution pattern checked by the bus tracer 18 based on the second warning signal.

さらにデータ収集制御部17は、抽出した履歴データ、要注意パターンの種類、及び要注意パターン発生のタイミングに関する情報を内部バス30を介して外部記録装置36に出力し、データの保存を行う。   Further, the data collection control unit 17 outputs the extracted history data, the type of caution pattern type, and the information regarding the timing of the caution pattern generation to the external recording device 36 via the internal bus 30 and stores the data.

3つ目の場合は、コントローラトレーサ19内のパターン照合部44aが、トレース部42aにより収集された各履歴と要注意パターンとを照合して、適合した場合である。コントローラトレーサ19内のパターン照合部44aは、トレース部42aを介してデータ収集制御部17に対し第2警告信号を出力する。   The third case is a case where the pattern collation unit 44a in the controller tracer 19 collates each history collected by the trace unit 42a with the caution pattern and matches. The pattern matching unit 44a in the controller tracer 19 outputs a second warning signal to the data collection control unit 17 via the trace unit 42a.

第2警告信号を入力されたデータ収集制御部17の動作は、2つ目の場合と同様であるので、重複した説明を省略する。   Since the operation of the data collection control unit 17 to which the second warning signal is input is the same as that in the second case, a duplicate description is omitted.

上述のとおり、本発明の実施例2の形態に係るバスデバイス10bによれば、実施例1と同様の効果に加え、内部バス30側の情報を収集して保持するコントローラトレーサ19と、外部バス20側の情報を収集して保持するバストレーサ18と、コントローラトレーサ19及びバストレーサ18により保持された各履歴に基づく履歴データを抽出して収集するデータ収集制御部17とを備えるので、イベント発生時に様々な障害発生要因に対する解析を行うことが容易になる。   As described above, according to the bus device 10b according to the second embodiment of the present invention, in addition to the same effects as the first embodiment, the controller tracer 19 that collects and holds information on the internal bus 30 side, and the external bus 20 is provided with a bus tracer 18 that collects and holds information on the 20 side, and a data collection control unit 17 that extracts and collects history data based on each history held by the controller tracer 19 and the bus tracer 18. Sometimes it becomes easy to analyze various causes of failure.

また、パターン照合部44a及び44bが特定の順番のアクセスパターンを示す要注意パターンと収集された各履歴とを照合するので、障害を起こしやすいアクセスパターン時の外部バス20側及び内部バス30側の情報を収集することができる。すなわち、バスデバイス10bは、外部バス20と内部バス30の仕様に規定されたエラーだけではなく、経験的に得られた障害の起き易いバス信号やローカルレジスタ14、バスコンフィグレーションレジスタ15に対する入出力履歴のパターンの出現を条件として、外部バス20側及び内部バス30側の情報を収集し、解析することができる。   Further, since the pattern matching units 44a and 44b collate the caution pattern indicating the access pattern in a specific order with the collected histories, the external bus 20 side and the internal bus 30 side at the time of the access pattern that is likely to cause a failure. Information can be collected. In other words, the bus device 10b is not limited to the errors defined in the specifications of the external bus 20 and the internal bus 30, but is also empirically obtained bus signals that are prone to failure, input / output to the local register 14 and the bus configuration register 15. Information on the external bus 20 side and the internal bus 30 side can be collected and analyzed on the condition that the history pattern appears.

さらに、バスインターフェース制御部13は、外部バス20との通信時に外部バスの仕様に規定されるエラー信号を検出した場合にエラーの種類及びエラー発生のタイミングに関する情報を示す第3警告信号をバストレーサ18を介してデータ収集制御部17に対して出力するので、データ収集制御部17は、エラー信号を検出したタイミングを知ることができ、外部バス20側の情報のみならず、内部バス30側の情報を保存することができる。   Further, the bus interface control unit 13 sends a third warning signal indicating information regarding the type of error and the timing of occurrence of an error when detecting an error signal defined in the specifications of the external bus during communication with the external bus 20 to the bus tracer. 18, the data collection control unit 17 can know the timing at which the error signal is detected, and not only the information on the external bus 20 side but also the information on the internal bus 30 side. Information can be saved.

次に、図5は、本発明の実施例3のバスデバイス10cの構成を示すブロック図である。なお図5乃至図11の図面において、CPU32、主メモリ34、及び外部記憶装置36は記載されていないが、単に省略されているものとする。実施例2の構成と異なる点としては、バストレーサ18aが外部バス20に接続されたバストレーサ専用インターフェース52を備え、外部バス20の情報を収集することができる点である。   Next, FIG. 5 is a block diagram showing a configuration of the bus device 10c according to the third embodiment of the present invention. 5 to 11, the CPU 32, the main memory 34, and the external storage device 36 are not shown, but are simply omitted. The difference from the configuration of the second embodiment is that the bus tracer 18 a includes a bus tracer dedicated interface 52 connected to the external bus 20 and can collect information on the external bus 20.

したがって、バストレーサ18aは、バスインターフェース制御部13を介さずに、外部バス20の情報を収集することができる。   Therefore, the bus tracer 18a can collect information on the external bus 20 without going through the bus interface control unit 13.

バスインターフェース制御部13とは異なり、バストレーサ18aは、バスデバイス10cの通常の通信には関与する必要が無い。そのため、バストレーサ専用インターフェース52は、外部バス20への書き込み機能は必要なく、外部バス20の情報を読み出す機能のみでよい。   Unlike the bus interface control unit 13, the bus tracer 18a does not need to be involved in normal communication of the bus device 10c. Therefore, the bus tracer-dedicated interface 52 does not need a function of writing to the external bus 20 and only needs to read information of the external bus 20.

またバストレーサ18aは、外部バス20に対するバスインターフェース制御部13のアクセス履歴とバスコンフィグレーションレジスタ15に対する第2データの入出力履歴をバスインターフェース制御部13から収集して保持する点は実施例2と同様である。   The bus tracer 18a collects and holds the access history of the bus interface control unit 13 for the external bus 20 and the input / output history of the second data for the bus configuration register 15 from the bus interface control unit 13 as in the second embodiment. It is the same.

したがって、バストレーサ18aは、外部バス20に対するバスインターフェース制御部13のアクセス履歴と、バストレーサ専用インターフェース52を介した外部バス20の情報とを比較することができる。これにより、外部バス20に対するバスインターフェース制御部13の通信機能の動作が正常であるか否かを確認することができる。この場合、バストレーサ18aは、バストレーサ専用インターフェース52を介して収集した外部バス20の情報のみをバス履歴保持バッファ47bに保持し、バスインターフェース制御部13から収集した外部バス20に対するアクセス履歴は保持しない。外部バス20に対するバスインターフェース制御部13のアクセス履歴は、正常動作の確認にのみ用いられる。   Therefore, the bus tracer 18 a can compare the access history of the bus interface control unit 13 with respect to the external bus 20 and the information of the external bus 20 via the bus tracer dedicated interface 52. Thereby, it is possible to confirm whether or not the operation of the communication function of the bus interface control unit 13 with respect to the external bus 20 is normal. In this case, the bus tracer 18a holds only the information of the external bus 20 collected via the bus tracer dedicated interface 52 in the bus history holding buffer 47b, and holds the access history for the external bus 20 collected from the bus interface control unit 13. do not do. The access history of the bus interface control unit 13 with respect to the external bus 20 is used only for confirmation of normal operation.

次に実施例3に係るバスデバイス10cの動作を説明する。バスデバイス10c内の各構成要素が正常に動作している場合、バストレーサ18aは、外部バス20の情報をバスインターフェース制御部13を経由せず、バストレーサ専用インターフェース52から直接収集する。その他の動作は、実施例2と同様である。   Next, the operation of the bus device 10c according to the third embodiment will be described. When each component in the bus device 10c is operating normally, the bus tracer 18a directly collects information on the external bus 20 from the bus tracer dedicated interface 52 without going through the bus interface control unit 13. Other operations are the same as those in the second embodiment.

バストレーサ18は、障害原因解明のために必要な障害発生時の外部バス20に対するアクセス履歴をバスインターフェース制御部13から収集する必要がある。しかしながら、実施例2の構成では、バスインターフェース制御部13に障害が発生した場合、バストレーサ18は、外部バス20に対するバスインターフェース制御部13のアクセス履歴を収集できなくなる。   The bus tracer 18 needs to collect from the bus interface control unit 13 the access history for the external bus 20 when a failure occurs, which is necessary for elucidating the cause of the failure. However, in the configuration of the second embodiment, when a failure occurs in the bus interface control unit 13, the bus tracer 18 cannot collect the access history of the bus interface control unit 13 for the external bus 20.

これに対し、本実施例の構成では、バストレーサ18aは、外部バス20の情報の収集経路であるバストレーサ専用インターフェース52を自ら備えているので、バスインターフェース制御部13の動作の如何に関らず、外部バス20の情報を収集し続ける事が出来る。   On the other hand, in the configuration of the present embodiment, the bus tracer 18a is provided with the bus tracer dedicated interface 52 that is the information collection path of the external bus 20, so that the operation of the bus interface control unit 13 is not affected. Therefore, it is possible to continue collecting information on the external bus 20.

上述のとおり、本発明の実施例3の形態に係るバスデバイス10cによれば、バスインターフェース制御部13に障害が発生した場合でも、バスデバイス10cは、外部バス20の情報を取得する事が出来る。これにより、バスインターフェース制御部13に起因するバスデバイス障害(外部バス20の通信障害といった形で障害が表面化する)においても、障害の原因解明に役立つ外部バス20側のバスアクセス履歴を収集する事ができ、障害の解析を容易に行う事が出来る。  As described above, according to the bus device 10c according to the third embodiment of the present invention, even when a failure occurs in the bus interface control unit 13, the bus device 10c can acquire information on the external bus 20. . As a result, the bus access history on the side of the external bus 20 useful for elucidating the cause of the failure can be collected even in the case of a bus device failure caused by the bus interface control unit 13 (the failure surfaced in the form of a communication failure of the external bus 20). It is possible to analyze the failure easily.

その他の効果は実施例2と同様である。  Other effects are the same as those of the second embodiment.

次に、図6は、本発明の実施例4のバスデバイス10dの構成を示すブロック図である。実施例2の構成と異なる点としては、コントローラトレーサ19aが内部バス30に接続されたコントローラトレーサ専用インターフェース54を備え、内部バス30の情報を収集することができる点である。   Next, FIG. 6 is a block diagram illustrating a configuration of the bus device 10d according to the fourth embodiment of the present invention. The difference from the configuration of the second embodiment is that the controller tracer 19 a includes a controller tracer dedicated interface 54 connected to the internal bus 30 and can collect information on the internal bus 30.

したがって、コントローラトレーサ19aは、内部バス制御部11を介さずに、内部バス30の情報を収集することができる。   Therefore, the controller tracer 19a can collect information on the internal bus 30 without going through the internal bus control unit 11.

また実施例3の場合と同様、コントローラトレーサ19aは、バスデバイス10dの通常の通信には関与する必要が無い。そのため、コントローラトレーサ専用インターフェース54は、内部バス30への書き込み機能は必要なく、内部バス30の情報を読み出す機能のみでよい。   Similarly to the case of the third embodiment, the controller tracer 19a does not need to be involved in normal communication of the bus device 10d. Therefore, the controller tracer dedicated interface 54 does not need a function of writing to the internal bus 30 and only needs to read information of the internal bus 30.

またコントローラトレーサ19aは、内部バス30に対する内部バス制御部11のアクセス履歴、内部バス制御部11を介するローカルレジスタ14に対する第1データの入出力履歴、及び内部バス制御部11を介するバスコンフィグレーションレジスタ15に対する第2データの入出力履歴の少なくとも一つを内部バス制御部11から収集して保持する点は実施例2と同様である。   The controller tracer 19a also includes an access history of the internal bus control unit 11 with respect to the internal bus 30, an input / output history of the first data with respect to the local register 14 via the internal bus control unit 11, and a bus configuration register via the internal bus control unit 11. As in the second embodiment, at least one of the input / output histories of the second data for 15 is collected from the internal bus control unit 11 and held.

したがって、コントローラトレーサ19aは、内部バス30に対する内部バス制御部11のアクセス履歴と、コントローラトレーサ専用インターフェース54を介した内部バス30の情報とを比較することができる。これにより、内部バス30に対する内部バス制御部11の通信機能の動作が正常であるか否かを確認することができる。この場合、コントローラトレーサ19aは、コントローラトレーサ専用インターフェース54を介して収集した内部バス30の情報のみをバス履歴保持バッファ47aに保持し、内部バス制御部11から収集した内部バス30に対するアクセス履歴は保持しない。内部バス30に対する内部バス制御部11のアクセス履歴は、正常動作の確認にのみ用いられる。   Therefore, the controller tracer 19 a can compare the access history of the internal bus control unit 11 with respect to the internal bus 30 and the information of the internal bus 30 via the controller tracer dedicated interface 54. Thereby, it is possible to confirm whether or not the operation of the communication function of the internal bus control unit 11 for the internal bus 30 is normal. In this case, the controller tracer 19a holds only the information of the internal bus 30 collected via the controller tracer dedicated interface 54 in the bus history holding buffer 47a, and holds the access history for the internal bus 30 collected from the internal bus control unit 11. do not do. The access history of the internal bus control unit 11 with respect to the internal bus 30 is used only for confirmation of normal operation.

次に実施例4に係るバスデバイス10dの動作を説明する。バスデバイス10d内の各構成要素が正常に動作している場合、コントローラトレーサ19aは、内部バス制御部11を経由せず、コントローラトレーサ専用インターフェース54から直接内部バス30の情報を収集する。その他の動作は、実施例2と同様である。   Next, the operation of the bus device 10d according to the fourth embodiment will be described. When each component in the bus device 10d is operating normally, the controller tracer 19a collects information on the internal bus 30 directly from the controller tracer dedicated interface 54 without going through the internal bus control unit 11. Other operations are the same as those in the second embodiment.

実施例2の構成では、コントローラトレーサ19aは、内部バス制御部11に障害が発生した場合、内部バス30に対する内部バス制御部11のアクセス履歴を収集できなくなる。   In the configuration of the second embodiment, the controller tracer 19 a cannot collect the access history of the internal bus control unit 11 for the internal bus 30 when a failure occurs in the internal bus control unit 11.

これに対し、本実施例の構成では、コントローラトレーサ19aは、内部バス30の情報の収集経路であるコントローラトレーサ専用インターフェース54を自ら備えているので、内部バス制御部11の動作の如何に関らず、内部バス30の情報を収集し続ける事が出来る。   On the other hand, in the configuration of the present embodiment, the controller tracer 19a includes the controller tracer-dedicated interface 54, which is the information collection path of the internal bus 30, so that the operation of the internal bus control unit 11 is not affected. Therefore, it is possible to continue collecting information on the internal bus 30.

上述のとおり、本発明の実施例4の形態に係るバスデバイス10dによれば、内部バス制御部11に障害が発生した場合でも、バスデバイス10dは、内部バス30の情報を取得する事が出来る。これにより、内部バス制御部11に起因するバスデバイス障害においても、障害の原因解明に役立つ内部バス30側のバスアクセス履歴を収集する事ができ、障害の解析を容易に行う事が出来る。  As described above, according to the bus device 10d according to the fourth embodiment of the present invention, even when a failure occurs in the internal bus control unit 11, the bus device 10d can acquire information on the internal bus 30. . As a result, even in the case of a bus device failure caused by the internal bus control unit 11, it is possible to collect the bus access history on the side of the internal bus 30 that is useful for elucidating the cause of the failure, and it is possible to easily analyze the failure.

その他の効果は実施例2と同様である。   Other effects are the same as those of the second embodiment.

次に、図7は、本発明の実施例5のバスデバイス10eの構成を示すブロック図である。実施例2の構成と異なる点としては、バスデバイス10eは、コントローラトレーサ19の代わりに、電源トレーサ60を備えている点である。   Next, FIG. 7 is a block diagram showing the configuration of the bus device 10e according to the fifth embodiment of the present invention. The difference from the configuration of the second embodiment is that the bus device 10 e includes a power supply tracer 60 instead of the controller tracer 19.

電源トレーサ60は、バスデバイス10eを搭載するシステムの電源部からバスデバイス10eへの電源供給状態を収集して保持する。   The power tracer 60 collects and holds the power supply state from the power supply unit of the system on which the bus device 10e is mounted to the bus device 10e.

電源トレーサ60は、バスデバイス10eを搭載するシステムの電源部であるシステム電源部70からバスデバイス10eの電源ラインへのインターフェース部に位置し、システム電源部70及びデータ収集制御部17aに接続されている。   The power supply tracer 60 is located at an interface unit from the system power supply unit 70 which is a power supply unit of the system on which the bus device 10e is mounted to the power supply line of the bus device 10e, and is connected to the system power supply unit 70 and the data collection control unit 17a. Yes.

電源トレーサ60は、バスデバイス10eへの電源供給状態(供給される電力の電流値、電圧値の時系列データ)を、図示されない電源履歴バッファに保持する。電源履歴バッファは、実施例2のバス履歴保持バッファ47aと同様の動作を行う。   The power supply tracer 60 holds a power supply state (current value of supplied power and time-series data of voltage values) to the bus device 10e in a power supply history buffer (not shown). The power supply history buffer performs the same operation as the bus history holding buffer 47a of the second embodiment.

データ収集制御部17aは、実施例2で説明したように各履歴データを抽出して収集し、さらに電源トレーサ60により保持された電源供給状態に基づく電源データを抽出して収集する。   The data collection controller 17a extracts and collects each history data as described in the second embodiment, and further extracts and collects power data based on the power supply state held by the power tracer 60.

次に実施例5に係るバスデバイス10eの動作を説明する。データ収集制御部17aは、第2警告信号又は第3警告信号が入力された場合に、バストレーサ18からの履歴データを抽出して収集するのは、実施例2と同様である。その際、さらに電源トレーサ60からエラー又は要注意パターンが発生したタイミングと同タイミングの電源データを抽出して収集する。   Next, the operation of the bus device 10e according to the fifth embodiment will be described. The data collection control unit 17a extracts and collects history data from the bus tracer 18 when the second warning signal or the third warning signal is input, as in the second embodiment. At that time, power source data at the same timing as the timing at which an error or a caution pattern occurs is further extracted and collected from the power source tracer 60.

またデータ収集制御部17aは、収集した履歴データと電源データとを内部バス30を介して外部記憶装置36に出力する。これにより、外部バス20のバス情報に加え、バスデバイス10eへの電源状態に関するデータを保存することができる。   In addition, the data collection control unit 17 a outputs the collected history data and power supply data to the external storage device 36 via the internal bus 30. Thereby, in addition to the bus information of the external bus 20, data related to the power supply state to the bus device 10e can be stored.

上述のとおり、本発明の実施例5の形態に係るバスデバイス10eによれば、障害の原因がバスデバイス10eに対する電源状態(例えば供給電圧の異常変動や瞬間的な停電など)にあった場合の障害の原因解明をスムーズに行うことができる。   As described above, according to the bus device 10e according to the fifth embodiment of the present invention, the cause of the failure is a power supply state to the bus device 10e (for example, abnormal fluctuation in supply voltage or instantaneous power failure). The cause of the failure can be clarified smoothly.

従来の技術では、デバイスの電源状態を収集して保持する手段を持たなかったため、実験室環境で測定器を用いて電源状態のデータを収集する必要があった。しかしながら、本発明の実施例5の構成により、データ収集制御部は、電源トレーサから電源供給状態に基づく電源データを収集するので、バスデバイス10e側で電源状態のデータを収集することが可能となり、外部バス20に対するアクセス履歴に基づく履歴データと組み合わせて電源データが収集できる。したがって、バスデバイス10eの通信処理と電源状態の同期データを元に、電源が障害発生の要因となっている場合に、容易に解析を行うことができる。   In the prior art, since there was no means for collecting and holding the power state of the device, it was necessary to collect power state data using a measuring instrument in a laboratory environment. However, according to the configuration of the fifth embodiment of the present invention, the data collection control unit collects power supply data based on the power supply state from the power supply tracer, so that it is possible to collect power state data on the bus device 10e side. Power supply data can be collected in combination with history data based on the access history to the external bus 20. Therefore, based on the communication processing of the bus device 10e and the synchronization data of the power supply state, the analysis can be easily performed when the power supply is a cause of the failure.

次に、図8は、本発明の実施例6のバスデバイス10fの構成を示すブロック図である。実施例5の構成と異なる点としては、バスデバイス10fは、さらにコントローラトレーサ19を備えている点である。   Next, FIG. 8 is a block diagram showing the configuration of the bus device 10f according to the sixth embodiment of the present invention. The difference from the configuration of the fifth embodiment is that the bus device 10 f further includes a controller tracer 19.

電源トレーサ60及びコントローラトレーサ19の動作は、それぞれ実施例5及び実施例2と同様であるので、重複した説明を省略する。   Since the operations of the power supply tracer 60 and the controller tracer 19 are the same as those in the fifth embodiment and the second embodiment, respectively, duplicate description is omitted.

次に実施例6に係るバスデバイス10fの動作を説明する。データ収集制御部17aは、第2警告信号又は第3警告信号が入力された場合に、バストレーサ18及びコントローラトレーサ19からの履歴データを抽出して収集するのは、実施例2と同様である。その際、さらに電源トレーサ60からエラー又は要注意パターンが発生したタイミングと同タイミングの電源データを抽出して収集する。   Next, the operation of the bus device 10f according to the sixth embodiment will be described. The data collection controller 17a extracts and collects historical data from the bus tracer 18 and the controller tracer 19 when the second warning signal or the third warning signal is input, as in the second embodiment. . At that time, power source data at the same timing as the timing at which an error or a caution pattern occurs is further extracted and collected from the power source tracer 60.

またデータ収集制御部17aは、収集した履歴データと電源データとを内部バス30を介して外部記憶装置36に出力する。これにより、外部バス20及び内部バス30のバス情報に加え、バスデバイス10eへの電源状態に関するデータを保存することができる。   In addition, the data collection control unit 17 a outputs the collected history data and power supply data to the external storage device 36 via the internal bus 30. Thereby, in addition to the bus information of the external bus 20 and the internal bus 30, data regarding the power supply state to the bus device 10e can be stored.

上述のとおり、本発明の実施例6の形態に係るバスデバイス10fによれば、実施例5の効果に加え、内部バス30に対するアクセス履歴に基づく履歴データも収集できる。したがって、バスデバイス10fの内部バス30及び外部バス20の通信処理と電源状態の同期データを元に、障害原因解明のための解析を容易に行うことができる。   As described above, according to the bus device 10f according to the sixth embodiment of the present invention, history data based on the access history to the internal bus 30 can be collected in addition to the effects of the fifth embodiment. Therefore, analysis for elucidating the cause of the failure can be easily performed based on the communication processing of the internal bus 30 and the external bus 20 of the bus device 10f and the synchronization data of the power supply state.

次に、図9は、本発明の実施例7のバスデバイス10gの構成を示すブロック図である。実施例2の構成と異なる点としては、バスデバイス10gは、さらに内部メモリ回路62を備えている点である。   Next, FIG. 9 is a block diagram showing the configuration of the bus device 10g according to the seventh embodiment of the present invention. The difference from the configuration of the second embodiment is that the bus device 10 g further includes an internal memory circuit 62.

内部メモリ回路62は、データ収集制御部17cにより収集された履歴データを保存する。なお、内部メモリ回路62は、履歴データのみならず、電源データや後述する割り込み信号データを保存することもできる。  The internal memory circuit 62 stores the history data collected by the data collection control unit 17c. The internal memory circuit 62 can store not only history data but also power data and interrupt signal data described later.

また内部メモリ回路62は、フラッシュROM等の書き込み可能な不揮発性ROMメモリとしてバスデバイス10g内に実装され、バスデバイス10gの電源が切れた後もデータを保持できる。  The internal memory circuit 62 is mounted in the bus device 10g as a writable non-volatile ROM memory such as a flash ROM, and can retain data even after the bus device 10g is powered off.

データ収集制御部17cは、バストレーサ18及びコントローラトレーサ19から収集した履歴データを内部メモリ回路62に出力する。そのため、データ収集制御部17cは、外部記憶装置36に履歴データを出力しないので、内部バス30に接続される必要がない。  The data collection control unit 17 c outputs history data collected from the bus tracer 18 and the controller tracer 19 to the internal memory circuit 62. For this reason, the data collection control unit 17 c does not output history data to the external storage device 36, and therefore does not need to be connected to the internal bus 30.

次に実施例7に係るバスデバイス10gの動作を説明する。データ収集制御部17cが、バストレーサ18及びコントローラトレーサ19から履歴データを収集するまでは、実施例2と同様である。データ収集制御部17cは、収集した履歴データを内部メモリ回路62に出力する。  Next, the operation of the bus device 10g according to the seventh embodiment will be described. The process until the data collection control unit 17c collects history data from the bus tracer 18 and the controller tracer 19 is the same as in the second embodiment. The data collection control unit 17 c outputs the collected history data to the internal memory circuit 62.

上述のとおり、本発明の実施例7の形態に係るバスデバイス10gによれば、内部バス30経由で外部記憶装置36に保存する必要が無いので、仮に内部バス30に障害が起きたとしても、バスデバイス10gは、障害要因解析用の履歴データを安全確実に保存することができる。  As described above, according to the bus device 10g according to the embodiment 7 of the present invention, since it is not necessary to store the data in the external storage device 36 via the internal bus 30, even if a failure occurs in the internal bus 30, The bus device 10g can safely and reliably store history data for failure factor analysis.

次に、図10は、本発明の実施例8のバスデバイス10hの構成を示すブロック図である。実施例2の構成と異なる点としては、バスデバイス10h内のデータ収集制御部17dは、周辺モジュール用内部バス66を介して外部メモリ回路64に接続されている点である。この周辺モジュール用内部バス66は、内部バス30とは異なる。周辺モジュール用内部バス66は、内部バス30及び外部バス20とは独立して動作するシステム内バスである。   Next, FIG. 10 is a block diagram showing the configuration of the bus device 10h according to the eighth embodiment of the present invention. The difference from the configuration of the second embodiment is that the data collection control unit 17d in the bus device 10h is connected to the external memory circuit 64 via the peripheral module internal bus 66. The peripheral module internal bus 66 is different from the internal bus 30. The peripheral module internal bus 66 is an in-system bus that operates independently of the internal bus 30 and the external bus 20.

外部メモリ回路64は、バスデバイス10hの外部に設けられ、データ収集制御部17dの収集した履歴データを保存する。なお、外部メモリ回路64は、履歴データのみならず、電源データや後述する割り込み信号データを保存することもできる。  The external memory circuit 64 is provided outside the bus device 10h and stores history data collected by the data collection control unit 17d. The external memory circuit 64 can store not only history data but also power data and interrupt signal data described later.

データ収集制御部17dは、バストレーサ18及びコントローラトレーサ19から収集した履歴データを周辺モジュール用内部バス66を介して外部メモリ回路64に出力する。そのため、データ収集制御部17dは、外部記憶装置36に履歴データを出力しないので、内部バス30に接続される必要がない。  The data collection control unit 17d outputs the history data collected from the bus tracer 18 and the controller tracer 19 to the external memory circuit 64 via the peripheral module internal bus 66. Therefore, the data collection control unit 17d does not need to be connected to the internal bus 30 because it does not output history data to the external storage device 36.

次に実施例8に係るバスデバイス10hの動作を説明する。データ収集制御部17dが、バストレーサ18及びコントローラトレーサ19から履歴データを収集するまでは、実施例2と同様である。データ収集制御部17dは、収集した履歴データを外部メモリ回路64に出力する。  Next, the operation of the bus device 10h according to the eighth embodiment will be described. The process until the data collection control unit 17d collects history data from the bus tracer 18 and the controller tracer 19 is the same as in the second embodiment. The data collection control unit 17d outputs the collected history data to the external memory circuit 64.

上述のとおり、本発明の実施例8の形態に係るバスデバイス10hによれば、内部バス30経由で外部記憶装置36に保存する必要が無く、仮に内部バス30に障害が起きたとしても、モジュール用内部バス66は、内部バス30とは独立しているため、バスデバイス10hは、障害要因解析用の履歴データを安全確実に外部メモリ回路64に保存することができる。   As described above, according to the bus device 10h according to the eighth embodiment of the present invention, it is not necessary to store the data in the external storage device 36 via the internal bus 30, and even if a failure occurs in the internal bus 30, the module Since the internal bus 66 is independent of the internal bus 30, the bus device 10 h can store the history data for failure factor analysis in the external memory circuit 64 safely and reliably.

また、実施例7におけるバスデバイス10gは、実装上の制約により、内部メモリ回路62用に十分な記憶容量を確保できない場合が多いのに対し、本実施例におけるバスデバイス10hは、内部に内部メモリ回路62を有する必要が無く、外部に十分な記憶容量を有する外部メモリ回路64が存在するため、実装上の余裕を確保できる。  Further, the bus device 10g in the seventh embodiment cannot secure a sufficient storage capacity for the internal memory circuit 62 due to mounting restrictions in many cases. On the other hand, the bus device 10h in the seventh embodiment has an internal memory. It is not necessary to have the circuit 62, and the external memory circuit 64 having a sufficient storage capacity exists outside, so that a margin in mounting can be secured.

したがって、バスデバイス10hは、実装上の制約に左右されずに、バスデバイス10h外部に障害解析用データの記録装置として十分な記憶容量を有する外部メモリ回路64を確保でき、かつ内部バス30の障害時にも安全に障害解析用の履歴データを外部メモリ回路64に保存できる。  Therefore, the bus device 10h can secure an external memory circuit 64 having a sufficient storage capacity as a recording device for failure analysis data outside the bus device 10h without being affected by mounting restrictions, and a failure of the internal bus 30. The history data for failure analysis can be stored in the external memory circuit 64 safely at times.

次に、図11は、本発明の実施例9のバスデバイス10iの構成を示すブロック図である。実施例2の構成と異なる点としては、バスデバイス10iは、コントローラトレーサ19の代わりに、I/Oトレーサ68を備えている点である。   Next, FIG. 11 is a block diagram showing the configuration of the bus device 10i according to the ninth embodiment of the present invention. The difference from the configuration of the second embodiment is that the bus device 10 i includes an I / O tracer 68 instead of the controller tracer 19.

I/Oトレーサ68は、バスデバイス10iを搭載するシステム内の割り込み信号を収集して保持する。ここで、割り込み信号とは、例えば、NMI(ノンマスカブル)割り込み、WDT(ウォッチドッグ・タイマ)信号、DMAC(ダイレクト・メモリ・アクセス・コントローラ)割り込み、UBC(ユーザ・ブレーク・コントローラ)等である。   The I / O tracer 68 collects and holds interrupt signals in the system in which the bus device 10i is mounted. Here, the interrupt signal is, for example, an NMI (non-maskable) interrupt, a WDT (watchdog timer) signal, a DMAC (direct memory access controller) interrupt, a UBC (user break controller), or the like.

I/Oトレーサ68は、バスデバイス10iを搭載するシステムからバスデバイス10iへの各信号ライン(内部バス30、外部バス20、電源ラインを除く)のインターフェース部に位置し、データ収集制御部17eに接続されている。   The I / O tracer 68 is located at the interface unit of each signal line (excluding the internal bus 30, the external bus 20, and the power supply line) from the system on which the bus device 10i is mounted to the bus device 10i, and is connected to the data collection control unit 17e. It is connected.

I/Oトレーサ68は、バスデバイス10iを搭載するシステム内の割り込み信号を、図示されないI/O履歴バッファに保持する。I/O履歴バッファは、実施例2のバス履歴保持バッファ47aと同様の動作を行う。   The I / O tracer 68 holds an interrupt signal in the system in which the bus device 10i is mounted in an I / O history buffer (not shown). The I / O history buffer performs the same operation as the bus history holding buffer 47a of the second embodiment.

データ収集制御部17eは、実施例2で説明したように各履歴データを抽出して収集し、さらにI/Oトレーサ68により保持された割り込み信号に基づく割り込み信号データを抽出して収集する。   The data collection control unit 17e extracts and collects each history data as described in the second embodiment, and further extracts and collects interrupt signal data based on the interrupt signal held by the I / O tracer 68.

次に実施例9に係るバスデバイス10iの動作を説明する。データ収集制御部17eは、第2警告信号又は第3警告信号が入力された場合に、バストレーサ18からの履歴データを抽出して収集するのは、実施例2と同様である。その際、さらにI/Oトレーサ68からエラー又は要注意パターンが発生したタイミングと同タイミングの割り込み信号データを抽出して収集する。   Next, the operation of the bus device 10i according to the ninth embodiment will be described. The data collection controller 17e extracts and collects history data from the bus tracer 18 when the second warning signal or the third warning signal is input, as in the second embodiment. At this time, interrupt signal data at the same timing as the timing at which an error or a caution pattern has occurred is further extracted from the I / O tracer 68 and collected.

またデータ収集制御部17eは、収集した履歴データと割り込み信号データとを内部バス30を介して外部記憶装置36に出力する。これにより、外部バス20のバス情報に加え、バスデバイス10iへの入出力信号(割り込み、WDT信号)に関するデータを保存することができる。   The data collection control unit 17e outputs the collected history data and interrupt signal data to the external storage device 36 via the internal bus 30. As a result, in addition to the bus information of the external bus 20, data related to input / output signals (interrupts, WDT signals) to the bus device 10i can be stored.

また、さらにコントローラトレーサ19を備えている場合には、内部バス30のバス情報も収集できることは言うまでもない。   Further, when the controller tracer 19 is further provided, it goes without saying that the bus information of the internal bus 30 can also be collected.

上述のとおり、本発明の実施例9の形態に係るバスデバイス10iによれば、障害の原因がシステム内の他のデバイスからの入出力信号(例えば予期せぬタイミングでのNMI割込み)にあった場合の障害の原因解明を行うことが容易となる。   As described above, according to the bus device 10i according to the ninth embodiment of the present invention, the cause of the failure is an input / output signal (for example, an NMI interrupt at an unexpected timing) from another device in the system. It becomes easy to elucidate the cause of failure in case.

従来の技術でこれらの入出力信号(割り込み、WDT等)に関するログを取るには、予めCPU32側のプログラムに入出力信号の取得用プログラムを組む必要があった。しかしながら、本実施例の構成により、割り込み信号を収集することが容易となる。  In order to obtain logs related to these input / output signals (interrupt, WDT, etc.) with the prior art, it is necessary to assemble a program for acquiring input / output signals in advance in the program on the CPU 32 side. However, the configuration of this embodiment makes it easy to collect interrupt signals.

さらに、従来技術では、CPU32側で信号の履歴を記録する事が可能でも、バスデバイス10i側のバス動作履歴と正確に時間を同期させて記録する事が難しく、障害原因の解析が困難であった。しかしながら、本実施例の構成により、データ収集制御部17eで履歴データと組み合わせて割り込み信号データが収集できるため、バスデバイス10iの通信処理と割り込み信号の同期データを元に、障害原因の解明を容易に行う事が出来る。  Furthermore, in the prior art, even if it is possible to record the signal history on the CPU 32 side, it is difficult to record the time in synchronism with the bus operation history on the bus device 10i side, and it is difficult to analyze the cause of the failure. It was. However, since the interrupt signal data can be collected in combination with the history data by the data collection control unit 17e by the configuration of the present embodiment, the cause of the failure can be easily clarified based on the communication processing of the bus device 10i and the synchronization data of the interrupt signal. Can be done.

本発明に係るバスデバイスは、PCIバスを始めとする外部バス及び内部バスに接続されたバスデバイスに利用可能である。   The bus device according to the present invention can be used for an external bus including a PCI bus and a bus device connected to an internal bus.

本発明の実施例1の形態のバスデバイス及びその周辺の構成を示すブロック図である。It is a block diagram which shows the structure of the bus device of the form of Example 1 of this invention, and its periphery. 本発明の実施例2の形態のバスデバイス及びその周辺の構成を示すブロック図である。It is a block diagram which shows the structure of the bus device of the form of Example 2 of this invention, and its periphery. 本発明の実施例2の形態のバスデバイス内のコントローラトレーサの構成を示すブロック図である。It is a block diagram which shows the structure of the controller tracer in the bus device of the form of Example 2 of this invention. 本発明の実施例2の形態のバスデバイス内のバストレーサの構成を示すブロック図である。It is a block diagram which shows the structure of the bus tracer in the bus device of the form of Example 2 of this invention. 本発明の実施例3の形態のバスデバイスの構成を示すブロック図である。It is a block diagram which shows the structure of the bus device of the form of Example 3 of this invention. 本発明の実施例4の形態のバスデバイスの構成を示すブロック図である。It is a block diagram which shows the structure of the bus device of the form of Example 4 of this invention. 本発明の実施例5の形態のバスデバイスの構成を示すブロック図である。It is a block diagram which shows the structure of the bus device of the form of Example 5 of this invention. 本発明の実施例6の形態のバスデバイスの構成を示すブロック図である。It is a block diagram which shows the structure of the bus device of the form of Example 6 of this invention. 本発明の実施例7の形態のバスデバイスの構成を示すブロック図である。It is a block diagram which shows the structure of the bus device of the form of Example 7 of this invention. 本発明の実施例8の形態のバスデバイスの構成を示すブロック図である。It is a block diagram which shows the structure of the bus device of the form of Example 8 of this invention. 本発明の実施例9の形態のバスデバイスの構成を示すブロック図である。It is a block diagram which shows the structure of the bus device of the form of Example 9 of this invention.

符号の説明Explanation of symbols

10a、10b、10c、10d、10e、10f、10g、10h、10i バスデバイス
11 内部バス制御部
12 データ転送制御部
13 バスインターフェース制御部
14 ローカルレジスタ
15 バスコンフィグレーションレジスタ
16 データ収集部
16a 第1インターフェース
16b 第2インターフェース
17、17a、17b、17c、17d、17e データ収集制御部
18、18a バストレーサ
19、19a コントローラトレーサ
20 外部バス
30 内部バス
32 CPU
34 主メモリ
36 外部記憶装置
42a、42b トレース部
44a、44b パターン照合部
46a、46b 要注意パターン保持部
47a、47b バス履歴保持バッファ
48a、48b レジスタ履歴保持バッファ
52 バストレーサ専用インターフェース
54 コントローラトレーサ専用インターフェース
60 電源トレーサ
62 内部メモリ回路
64 外部メモリ回路
66 周辺モジュール用内部バス
68 I/Oトレーサ
70 システム電源部
10a, 10b, 10c, 10d, 10e, 10f, 10g, 10h, 10i Bus device 11 Internal bus control unit 12 Data transfer control unit 13 Bus interface control unit 14 Local register 15 Bus configuration register 16 Data collection unit 16a First interface 16b Second interface 17, 17a, 17b, 17c, 17d, 17e Data collection control unit 18, 18a Bus tracer 19, 19a Controller tracer 20 External bus 30 Internal bus 32 CPU
34 Main memory 36 External storage devices 42a and 42b Trace units 44a and 44b Pattern matching units 46a and 46b Caution pattern holding units 47a and 47b Bus history holding buffers 48a and 48b Register history holding buffer 52 Bus tracer dedicated interface 54 Controller tracer dedicated interface 60 Power Tracer 62 Internal Memory Circuit 64 External Memory Circuit 66 Peripheral Module Internal Bus 68 I / O Tracer 70 System Power Supply

Claims (14)

内部バスと外部バスとに接続されたバスデバイスであって、
第1データを記憶する第1記憶手段と、
前記内部バスに対するアクセスを制御するとともに、前記内部バスの前記第1記憶手段に対する前記第1データの入出力を制御する内部バス制御部と、
第2データを記憶する第2記憶手段と、
前記外部バスに対するアクセスを制御するとともに、前記外部バス又は前記内部バスの前記第2記憶手段に対する第2データの入出力を制御するバスインターフェース制御部と、
前記内部バス制御部と前記バスインターフェース制御部とを中継して前記第2データの転送処理を制御するデータ転送制御部と、
前記内部バスに対する前記内部バス制御部のアクセス履歴、前記第1記憶手段に対する第1データの入出力履歴、及び前記第2記憶手段に対する第2データの入出力履歴の少なくとも一つを前記内部バス制御部から収集するとともに、前記外部バスに対する前記バスインターフェース制御部のアクセス履歴と前記第2記憶手段に対する第2データの入出力履歴を前記バスインターフェース制御部から収集して、収集された各履歴に基づく履歴データを抽出して前記内部バスを介して外部記憶装置に出力するデータ収集部と、
を備えることを特徴とするバスデバイス。
A bus device connected to an internal bus and an external bus,
First storage means for storing first data;
An internal bus control unit that controls access to the internal bus and controls input / output of the first data to and from the first storage unit of the internal bus;
Second storage means for storing second data;
A bus interface controller for controlling access to the external bus and controlling input / output of second data to / from the second storage means of the external bus or the internal bus;
A data transfer control unit that controls a transfer process of the second data by relaying between the internal bus control unit and the bus interface control unit;
At least one of the access history of the internal bus control unit for the internal bus, the input / output history of the first data to the first storage means, and the input / output history of the second data to the second storage means is the internal bus control. And collecting the access history of the bus interface controller with respect to the external bus and the input / output history of the second data with respect to the second storage means from the bus interface controller, and based on each collected history A data collection unit that extracts history data and outputs it to an external storage device via the internal bus;
A bus device comprising:
前記データ収集部は、
前記外部バスに接続され、前記外部バスの情報を収集するための第1インターフェースと、
前記内部バスに接続され、前記内部バスの情報を収集するための第2インターフェースと、
を備えることを特徴とする請求項1記載のバスデバイス。
The data collection unit
A first interface connected to the external bus for collecting information on the external bus;
A second interface connected to the internal bus for collecting information of the internal bus;
The bus device according to claim 1, further comprising:
前記バスインターフェース制御部は、前記外部バスとの通信時に前記外部バスの仕様に規定されるエラー信号を検出した場合にエラーの種類及びエラー発生のタイミングに関する情報を示す第1警告信号を前記データ収集部に対して出力し、
前記データ収集部は、前記第1警告信号に基づき収集された各履歴の中から前記エラー発生のタイミングにおける履歴データを抽出することを特徴とする請求項1又は請求項2記載のバスデバイス。
The bus interface control unit collects a first warning signal indicating information on an error type and an error occurrence timing when an error signal defined in the specification of the external bus is detected during communication with the external bus. Output to the
3. The bus device according to claim 1, wherein the data collection unit extracts history data at the timing of occurrence of the error from each history collected based on the first warning signal. 4.
内部バスと外部バスとに接続されたバスデバイスであって、
第1データを記憶する第1記憶手段と、
前記内部バスに対するアクセスを制御するとともに、前記内部バスの前記第1記憶手段に対する前記第1データの入出力を制御する内部バス制御部と、
第2データを記憶する第2記憶手段と、
前記外部バスに対するアクセスを制御するとともに、前記外部バス又は前記内部バスの前記第2記憶手段に対する第2データの入出力を制御するバスインターフェース制御部と、
前記内部バス制御部と前記バスインターフェース制御部とを中継して前記第2データの転送処理を制御するデータ転送制御部と、
前記内部バスに対する前記内部バス制御部のアクセス履歴、前記第1記憶手段に対する第1データの入出力履歴、及び前記第2記憶手段に対する第2データの入出力履歴の少なくとも一つを前記内部バス制御部から収集して保持するコントローラトレーサと、
前記外部バスに対する前記バスインターフェース制御部のアクセス履歴と前記第2記憶手段に対する第2データの入出力履歴を前記バスインターフェース制御部から収集して保持するバストレーサと、
前記コントローラトレーサ及び前記バストレーサにより保持された各履歴に基づく履歴データを抽出して収集するデータ収集制御部と、
を備えることを特徴とするバスデバイス。
A bus device connected to an internal bus and an external bus,
First storage means for storing first data;
An internal bus control unit that controls access to the internal bus and controls input / output of the first data to and from the first storage unit of the internal bus;
Second storage means for storing second data;
A bus interface controller for controlling access to the external bus and controlling input / output of second data to / from the second storage means of the external bus or the internal bus;
A data transfer control unit that controls a transfer process of the second data by relaying between the internal bus control unit and the bus interface control unit;
At least one of the access history of the internal bus control unit for the internal bus, the input / output history of the first data to the first storage means, and the input / output history of the second data to the second storage means is the internal bus control. A controller tracer to collect and hold from the department,
A bus tracer that collects and holds an access history of the bus interface control unit to the external bus and an input / output history of second data to the second storage unit from the bus interface control unit;
A data collection control unit for extracting and collecting history data based on each history held by the controller tracer and the bus tracer;
A bus device comprising:
前記コントローラトレーサと前記バストレーサとの少なくとも一方は、
前記各履歴の収集を行うトレース部と、
特定の順番のアクセスパターンを示す要注意パターンを保持する要注意パターン保持部と、
前記トレース部により収集された前記各履歴を前記要注意パターンと照合するパターン照合部とを備え、
前記パターン照合部は、前記トレース部により収集された前記各履歴と前記要注意パターンとが適合した場合に第2警告信号を前記データ収集制御部に対して出力することを特徴とする請求項4記載のバスデバイス。
At least one of the controller tracer and the bus tracer is
A trace unit for collecting each history;
A caution pattern holding unit that holds a caution pattern indicating an access pattern in a specific order;
A pattern matching unit that matches each history collected by the trace unit with the pattern requiring attention;
5. The pattern matching unit outputs a second warning signal to the data collection control unit when each of the histories collected by the trace unit matches the caution pattern. The described bus device.
前記バスインターフェース制御部は、前記外部バスとの通信時に前記外部バスの仕様に規定されるエラー信号を検出した場合にエラーの種類及びエラー発生のタイミングに関する情報を示す第3警告信号を前記バストレーサを介して前記データ収集制御部に対して出力することを特徴とする請求項4又は請求項5記載のバスデバイス。   The bus interface control unit outputs a third warning signal indicating information on an error type and an error occurrence timing when an error signal defined in the specification of the external bus is detected during communication with the external bus. 6. The bus device according to claim 4, wherein the data is output to the data collection control unit via a bus. 前記バストレーサは、前記外部バスに接続され前記外部バスの情報を収集するためのバストレーサ専用インターフェースを備えることを特徴とする請求項4乃至請求項6のいずれか1項記載のバスデバイス。   The bus device according to claim 4, wherein the bus tracer includes a bus tracer-dedicated interface that is connected to the external bus and collects information of the external bus. 前記コントローラトレーサは、前記内部バスに接続され前記内部バスの情報を収集するためのコントローラトレーサ専用インターフェースを備えることを特徴とする請求項4乃至請求項7のいずれか1項記載のバスデバイス。   8. The bus device according to claim 4, wherein the controller tracer includes a controller tracer-dedicated interface connected to the internal bus and collecting information on the internal bus. 9. 当該バスデバイスを搭載するシステムの電源部から当該バスデバイスへの電源供給状態を収集して保持する電源トレーサをさらに備え、
前記データ収集制御部は、さらに前記電源トレーサにより保持された電源供給状態に基づく電源データを抽出して収集することを特徴とする請求項4乃至請求項8のいずれか1項記載のバスデバイス。
A power tracer that collects and holds a power supply state from the power supply unit of the system on which the bus device is mounted to the bus device;
The bus device according to any one of claims 4 to 8, wherein the data collection control unit further extracts and collects power data based on a power supply state held by the power tracer.
当該バスデバイスを搭載するシステム内の割り込み信号を収集して保持するI/Oトレーサをさらに備え、
前記データ収集制御部は、さらに前記I/Oトレーサにより保持された割り込み信号に基づく割り込み信号データを抽出して収集することを特徴とする請求項4乃至請求項9のいずれか1項記載のバスデバイス。
An I / O tracer that collects and holds interrupt signals in a system including the bus device;
10. The bus according to claim 4, wherein the data collection control unit further extracts and collects interrupt signal data based on the interrupt signal held by the I / O tracer. device.
前記データ収集制御部は、前記履歴データ、前記電源データ、及び前記割り込み信号データの少なくとも一つを抽出して収集する際に、前記第2警告信号と前記第3警告信号との少なくとも一方に基づきデータを抽出することを特徴とする請求項6乃至請求項10のいずれか1項記載のバスデバイス。   The data collection control unit extracts and collects at least one of the history data, the power supply data, and the interrupt signal data based on at least one of the second warning signal and the third warning signal. The bus device according to any one of claims 6 to 10, wherein data is extracted. 前記データ収集制御部は、収集した前記履歴データ、前記電源データ、及び前記割り込み信号データの少なくとも一つを前記内部バスを介して外部記憶装置に出力することを特徴とする請求項4乃至請求項11のいずれか1項記載のバスデバイス。   5. The data collection control unit outputs at least one of the collected history data, the power supply data, and the interrupt signal data to an external storage device via the internal bus. 12. The bus device according to any one of 11 above. 前記データ収集制御部により収集された前記履歴データ、前記電源データ、及び前記割り込み信号データの少なくとも一つを保存する内部メモリ回路をさらに備えることを特徴とする請求項4乃至請求項11のいずれか1項記載のバスデバイス。   12. The internal memory circuit for storing at least one of the history data, the power supply data, and the interrupt signal data collected by the data collection control unit. The bus device according to item 1. 前記データ収集制御部は、収集した前記履歴データ、前記電源データ、及び前記割り込み信号データの少なくとも一つを周辺モジュール用内部バスを介して外部メモリ回路に出力することを特徴とする請求項4乃至請求項11のいずれか1項記載のバスデバイス。  The data collection control unit outputs at least one of the collected history data, the power supply data, and the interrupt signal data to an external memory circuit through a peripheral module internal bus. The bus device according to claim 11.
JP2006320667A 2006-11-28 2006-11-28 Bus device Pending JP2008134838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006320667A JP2008134838A (en) 2006-11-28 2006-11-28 Bus device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006320667A JP2008134838A (en) 2006-11-28 2006-11-28 Bus device

Publications (1)

Publication Number Publication Date
JP2008134838A true JP2008134838A (en) 2008-06-12

Family

ID=39559654

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006320667A Pending JP2008134838A (en) 2006-11-28 2006-11-28 Bus device

Country Status (1)

Country Link
JP (1) JP2008134838A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014021908A (en) * 2012-07-23 2014-02-03 Nec Commun Syst Ltd Processor access history monitor circuit and processor access history monitoring method
JP2016504692A (en) * 2013-01-09 2016-02-12 ノルディック セミコンダクタ アーエスアーNordic Semiconductor ASA Microcontroller analysis tool
JPWO2015111176A1 (en) * 2014-01-24 2017-03-23 株式会社日立製作所 Programmable device, error holding system, and electronic system apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014021908A (en) * 2012-07-23 2014-02-03 Nec Commun Syst Ltd Processor access history monitor circuit and processor access history monitoring method
JP2016504692A (en) * 2013-01-09 2016-02-12 ノルディック セミコンダクタ アーエスアーNordic Semiconductor ASA Microcontroller analysis tool
JPWO2015111176A1 (en) * 2014-01-24 2017-03-23 株式会社日立製作所 Programmable device, error holding system, and electronic system apparatus
US10095570B2 (en) 2014-01-24 2018-10-09 Hitachi, Ltd. Programmable device, error storage system, and electronic system device

Similar Documents

Publication Publication Date Title
US9088433B2 (en) Device and method for recording protocol events in an advanced communication system
WO2021169260A1 (en) System board card power supply test method, apparatus and device, and storage medium
US6615374B1 (en) First and next error identification for integrated circuit devices
CN104320308B (en) A kind of method and device of server exception detection
JPH0850557A (en) Fault recorder of microprocessor
CN111078492B (en) State monitoring system and method for SoC internal bus
CN108549591A (en) A kind of black box device and its implementation of embedded system
EP3167371B1 (en) A method for diagnosing power supply failure in a wireless communication device
CN111274059B (en) Software exception handling method and device of slave device
CN103593271A (en) Method and device for chip tracking debugging of system on chip
US11023335B2 (en) Computer and control method thereof for diagnosing abnormality
JP2008134838A (en) Bus device
JP6880961B2 (en) Information processing device and log recording method
US20150242266A1 (en) Information processing apparatus, controller, and method for collecting log data
CN110825547B (en) PCIE card exception recovery device and method based on SMBUS
EP3629176B1 (en) Fault detection circuit with progress register and status register
US7228457B2 (en) Performing diagnostic operations upon a data processing apparatus with power down support
JP4299634B2 (en) Information processing apparatus and clock abnormality detection program for information processing apparatus
TWI802951B (en) Method, computer system and computer program product for storing state data of finite state machine
KR101735166B1 (en) Apparatus and method of recording of satellite status
US11726853B2 (en) Electronic control device
CN113032177B (en) Soft error monitoring method and equipment
JP5011159B2 (en) Computer with system monitoring circuit
JP2013225291A (en) Device for electronic apparatus
JP3953467B2 (en) System for detecting and reporting defects in chips