JP2008134838A - Bus device - Google Patents
Bus device Download PDFInfo
- 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
Links
Images
Abstract
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デバイス内のデータ収集を確実に行うことができる。
しかしながら、実際のトラブル解析時には、外部バス情報だけで外部バスの障害原因を解明する事が困難なケースが多く存在する。例えば、外部バスの障害直前まで問題無くシステムが稼動しており、突然何らかのバス異常が発生した場合、バスデバイスにより外部バス上にエラー発生を示す外部バス信号が伝送される。この外部バス信号は、エラーの種類のみを示す情報であり、何故そのエラーが発生したかなどの障害の背景、原因を示す情報ではない。したがって、この外部バス信号のみに基づいてエラーの解析を行うのは困難である。 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
請求項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
またバスデバイス10a、CPU32、主メモリ34、及び外部記憶装置36は、内部バス30を介して互いに接続されている。
In addition, the bus device 10 a, the
上述した主メモリ34、CPU32、外部記憶装置36と内部バス30との接続形態は、1つの例である。例えば内部バス30上に接続された図示されないハブ・インターフェースを介して内部バス30に接続される構成も採り得る。いずれにしても、バスデバイス10aから主メモリ34、CPU32、及び外部記憶装置36にアクセスするためには、内部バス30を経由する必要がある。
The connection form of the
内部バス制御部11は、内部バス30に対するバスデバイス10aのアクセスを制御し、内部バス30側からバスデバイス10aに対して行われる操作を受け付ける。バスデバイス10aと内部バス30との間でデータ転送が行われる場合は、以下の3つが挙げられる。1つ目は、CPU32がプログラムにより外部バス20上の他のバスデバイスとのデータ転送を実行する場合である。2つ目は、バスデバイス10aがバスマスタとして外部バス20を制御し、直接主メモリ34にアクセスする場合である。3つ目は、他のバスデバイスがバスマスタになり、バスデバイス10aは、ターゲットデバイスとしてデータ転送を実行する場合である。
The internal
また内部バス制御部11は、内部バス30へのアクセスに対し、内部バス仕様に規定されるエラーの確認を行う。さらに内部バス制御部11は、内部バス30のローカルレジスタ14に対する第1データの入出力を制御する。第1データについては、後述する。
Further, the internal
バスインターフェース制御部13は、外部バス20に対するバスデバイス10aのアクセスを制御する。すなわちバスインターフェース制御部13は、内部バス制御部11と同様に、CPU32によるデータ転送の際や、バスマスタ転送時、ターゲット動作時の3つの場合に、バスデバイス10aと外部バス20との間でデータ転送が行われる際のインターフェースとなる。
The bus
またバスインターフェース制御部13は、外部バス20との通信時に外部バス20の仕様に規定されるエラー信号を検出する。バスインターフェース制御部13は、エラー信号を検出した場合、エラーの種類及びエラー発生のタイミングに関する情報を示す第1警告信号をデータ収集部16に対して出力する。
The bus
さらにバスインターフェース制御部13は、外部バス20又は内部バス30のバスコンフィグレーションレジスタ15に対する第2データの入出力を制御する。第2データについては後述する。
Further, the bus
データ転送制御部12は、内部バス制御部11とバスインターフェース制御部13とを中継して、バスデバイス10aの機能として必要なデータ(第2データを含む)の転送処理を制御する。バスデバイス10aの基本的な機能は、内部バス制御部11、データ転送制御部12、及びバスインターフェース制御部13の構成により実行される。
The data
ローカルレジスタ14は、本発明の第1記憶手段に対応し、第1データを記憶する。ここで第1データは、バスデバイス10aの外部バス20側機能、内部バス30側機能の基本的な動作を制御する設定であり、例えば、外部バスデバイスとしての動作モード設定(ホスト動作可能か、ターゲット動作専用なのか等)、内部バス30から見たメモリアドレス設定、外部バスクロック設定、パワーマネジメント設定、割り込み設定(割り込み信号の有無)等、多種存在する。
The
またローカルレジスタ14は、内部バス制御部11に接続され、内部バス制御部11を介して内部バス30との間でデータの入出力が行われる。また、ローカルレジスタ14は、外部バス20側から設定を書き込まれることは無い。
The
バスコンフィグレーションレジスタ15は、本発明の第2記憶手段に対応し、第2データを記憶する。ここで第2データは、バスデバイス10aの外部バス20側機能の詳細な設定であり、例えば、外部バスデバイスとしてのID、ベンダID、外部バス20から見たメモリアドレス設定、レイテンシ設定、デバイス状態、占有メモリ空間設定、割り込み設定、機能の有効無効設定等、多種存在する。
The
またバスコンフィグレーションレジスタ15は、バスインターフェース制御部13に接続され、バスインターフェース制御部13を介して外部バス20又は内部バス30との間でデータの入出力が行われる。
The
データ収集部16は、内部バス30に対する内部バス制御部11のアクセス履歴、ローカルレジスタ14に対する第1データの入出力履歴、及びバスコンフィグレーション15に対する第2データの入出力履歴を内部バス制御部11から収集する。本実施例においては、データ収集部16は、全ての履歴を収集するが、必ずしも全ての履歴を収集する必要は無く、いずれか一つであってもよい。ここでバスコンフィグレーションレジスタ15に対する第2データの入出力履歴とは、内部バス制御部11を介して内部バス30との間で行われたものを指す。
The
またデータ収集部16は、外部バス20に対するバスインターフェース制御部13のアクセス履歴とバスコンフィグレーションレジスタ15に対する第2データの入出力履歴をバスインターフェース制御部13から収集する。ここでバスコンフィグレーションレジスタ15に対する第2データの入出力履歴とは、バスインターフェース制御部13を介して外部バス20との間で行われたものを指す。
The
データ収集部16は、収集した各履歴を所定の容量だけ記憶する。容量の制限まで各履歴を記憶した後、データ収集部16は、最新の履歴を記憶する度に最古の履歴を削除する。
The
またデータ収集部16は、収集された各履歴に基づく履歴データを抽出する。データ収集部16は、履歴データを抽出する際に、第1警告信号に基づき、収集された各履歴の中からエラー発生のタイミングにおける履歴データを抽出する。
The
さらにデータ収集部16は、外部バス20に接続され外部バス20の情報を収集するための第1インターフェース16aと、内部バス30に接続され内部バス30の情報を収集するための第2インターフェース16bとを備える。これら2つのインターフェースは、必須ではない。仮にこれら2つのインターフェースが無い場合、データ収集部16は、内部バス制御部11を介して内部バス30の情報を、またバスインターフェース制御部13を介して外部バス20の情報を、それぞれ収集する。
Further, the
またデータ収集部16は、抽出した障害原因解析のための履歴データを内部バス30を介して、バスデバイス10a外の外部記憶装置36に出力する。
The
次に実施例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
バスデバイス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
本発明に特徴的な作用は、以下に説明する外部バス20の障害発生時、または外部バス20の障害発生が疑われる場合の動作である。上述したように、データ収集部16は、内部バス30に対する内部バス制御部11のアクセス履歴や外部バス20に対するバスインターフェース制御部13のアクセス履歴等を収集する。
The characteristic operation of the present invention is the operation when the failure of the
その後、データ収集部16は、収集された各履歴に基づく履歴データを抽出する。データ収集部16が履歴データを抽出するタイミングは色々考えられるが、例えば、バスインターフェース制御部13が外部バス20との通信時に外部バス信号に外部バス仕様に規定されるエラー信号を検出した場合である。例として、PCIバス信号におけるPERR#信号(パリティエラー信号)等が該当する。この場合、バスインターフェース制御部13は、エラーの種類及びエラー発生のタイミングに関する情報を示す第1警告信号をデータ収集部16に対して出力する。
Thereafter, the
第1警告信号を入力されたデータ収集部16は、収集した各履歴に基づく履歴データを抽出する。その際、データ収集部16は、第1警告信号に基づきエラー発生のタイミングと同タイミングの履歴データを、内部バス30に対する内部バス制御部11のアクセス履歴、ローカルレジスタ14とバスコンフィグレーションレジスタ15に対する第1データ及び第2データの入出力履歴、外部バス20に対するバスインターフェース制御部13のアクセス履歴の各履歴から抽出する。
The
さらにデータ収集部16は、抽出した履歴データ、エラーの種類、及びエラー発生のタイミングに関する情報を内部バス30を介して外部記録装置36に出力し、データの保存を行う。
Further, the
エラー発生のタイミングと履歴の同期をとるための方法は色々あるが、例えばデータ収集部16は、時刻情報を得ることができる時計を有しており、収集した履歴には常に時刻情報を付加しているものとすることができる。
There are various methods for synchronizing the timing of error occurrence and history. For example, the
上述のとおり、本発明の実施例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
従来の技術では、外部バス20側の情報のみが保存されていたのに対し、本実施例においては、外部バス20側の情報だけでなく、障害の真の原因が内包されている可能性のある、内部バス30側の情報が内部バス制御部11を介してデータ収集部16により保存される。したがって、外部バス20側の情報だけでは原因を解明することが困難な障害や、内部バス30側の動作が障害発生条件として関与している場合の障害の解析を容易に行うことができる。
In the prior art, only the information on the
またシステムの実稼動環境でしか障害が起こらず、実験室環境では障害が再現されないようなケースにおいても、データ収集環境の整備された実験室で障害を再現した場合と同様に、様々なデータから障害原因を解析する事が可能となる。 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
また、バスインターフェース制御部13は、外部バス20との通信時に外部バス20の仕様に規定されるエラー信号を検出した場合に、エラーの種類及びエラー発生のタイミングに関する情報を示す第1警告信号をデータ収集部16に対して出力するので、データ収集部16は、第1警告信号に基づき、収集された各履歴の中からエラー信号検出時の履歴データを抽出することができる。
When the bus
図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
バストレーサ18は、バスインターフェース制御部13とデータ収集制御部17とに接続され、外部バス20に対するバスインターフェース制御部13のアクセス履歴とバスコンフィグレーションレジスタ15に対する第2データの入出力履歴をバスインターフェース制御部13から収集して保持する。ここでバスコンフィグレーションレジスタ15に対する第2データの入出力履歴とは、バスインターフェース制御部13を介して外部バス20との間で行われたものを指す。
The
コントローラトレーサ19は、内部バス制御部11とデータ収集制御部17とに接続され、内部バス30に対する内部バス制御部11のアクセス履歴、ローカルレジスタ14に対する第1データの入出力履歴、及びバスコンフィグレーションレジスタ15に対する第2データの入出力履歴の少なくとも一つを内部バス制御部11から収集して保持する。ここでバスコンフィグレーションレジスタ15に対する第2データの入出力履歴とは、内部バス制御部11を介して内部バス30との間で行われたものを指す。
The
データ収集制御部17は、バストレーサ18、コントローラトレーサ19、及び内部バス30に接続され、コントローラトレーサ19及びバストレーサ18により保持された各履歴に基づく履歴データを抽出して収集する。
The data
またバスインターフェース制御部13は、外部バス20との通信時に外部バス20の仕様に規定されるエラー信号を検出する。バスインターフェース制御部13は、エラー信号を検出した場合、エラーの種類及びエラー発生のタイミングに関する情報を示す第3警告信号をバストレーサ18を介してデータ収集制御部17に対して出力する。
The bus
次にコントローラトレーサ19及びバストレーサ18の構成について、さらに詳しく説明する。図3は、本発明の実施例2のコントローラトレーサ19の構成を示すブロック図である。また図4は、本発明の実施例2のバストレーサ18の構成を示すブロック図である。図3に示すように、コントローラトレーサ19は、トレース部42a、パターン照合部44a、要注意パターン保持部46a、バス履歴保持バッファ47a、及びレジスタ履歴保持バッファ48aを備えている。
Next, the configuration of the
トレース部42aは、パターン照合部44a、バス履歴保持バッファ47a、レジスタ履歴保持バッファ48a、さらにデータ収集制御部17、及び内部バス制御部11に接続され、各履歴の収集を行う。
The
トレース部42aは、内部バス30に対する内部バス制御部11のアクセス履歴を内部バス制御部11から収集して、バス履歴保持バッファ47aに出力する。バス履歴保持バッファ47aは、入力されたアクセス履歴を保持する。
The
またトレース部42aは、ローカルレジスタ14に対する第1データの入出力履歴、及びバスコンフィグレーションレジスタ15に対する第2データの入出力履歴を内部バス制御部11から収集して、レジスタ履歴保持バッファ48aに出力する。レジスタ履歴保持バッファ48aは、入力された各履歴を保持する。
The
要注意パターン保持部46aは、パターン照合部44aに接続され、予め設定された特定の順番のアクセスパターンを示す要注意パターンを保持する。本実施例において、要注意パターン保持部46aは、コントローラトレーサ19内に設けられているが、コントローラトレーサ19の外部に設けてもよい。
The caution
パターン照合部44aは、トレース部42a及び要注意パターン保持部46aに接続され、トレース部42aが履歴情報を収集する都度、トレース部42aにより収集された各履歴を要注意パターンと照合する。さらにパターン照合部44aは、トレース部42aにより収集された各履歴と要注意パターンとが適合した場合に第2警告信号をトレース部42aを介してデータ収集制御部17に対して出力する。
The
また図4に示すように、バストレーサ18もコントローラトレーサ19の構成と同じであり、重複した説明を省略する。ただし、必ずしもコントローラトレーサ19とバストレーサ18とを同じ構成にする必要は無く、例えばバストレーサ18は、トレース部42bとバス履歴保持バッファ47bとレジスタ履歴保持バッファ48bのみの構成にすることも可能である。
トレース部42a、パターン照合部44aは、半導体論理回路とレジスタ(揮発性RAMメモリ)として実装される。また、要注意パターン保持部46aは、フラッシュROM等の不揮発性ROMメモリとして実装される。
As shown in FIG. 4, the
The
またバス履歴保持バッファ47a及びレジスタ履歴保持バッファ48aは、容量制限があり、履歴データの溢れを防ぐため、最新の履歴を保持する度に最古の履歴を削除する。またバス履歴保持バッファ47a及びレジスタ履歴保持バッファ48aは、コントローラトレーサ19の外部に設けることもできる。
In addition, the bus
図4に示すバストレーサ18内のトレース部42bは、図3に示すトレース部42aと異なる点があるため、トレース部42bについて説明する。
Since the
トレース部42bは、パターン照合部44b、バス履歴保持バッファ47b、レジスタ履歴保持バッファ48b、さらにデータ収集制御部17、及びバスインターフェース制御部13に接続され、各履歴の収集を行う。
The
トレース部42bは、外部バス20に対するバスインターフェース制御部13のアクセス履歴をバスインターフェース制御部13から収集して、バス履歴保持バッファ47bに出力する。バス履歴保持バッファ47bは、入力されたアクセス履歴を保持する。
The
またトレース部42bは、バスコンフィグレーションレジスタ15に対する第2データの入出力履歴をバスインターフェース制御部13から収集して、レジスタ履歴保持バッファ48bに出力する。ここでバスコンフィグレーションレジスタ15に対する第2データの入出力履歴とは、バスインターフェース制御部13を介して外部バス20との間で行われたものを指す。レジスタ履歴保持バッファ48bは、入力された入出力履歴を保持する。
The
次に実施例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
その後、データ収集制御部17は、以下に示すような3つの場合に収集された各履歴に基づく履歴データを抽出する。
Thereafter, the data
1つ目の場合は、バスインターフェース制御部13が外部バス20との通信時に外部バス信号に外部バス仕様に規定されるエラー信号を検出した場合である。この場合、バスインターフェース制御部13は、エラーの種類及びエラー発生のタイミングに関する情報を示す第3警告信号をバストレーサ18を介してデータ収集制御部17に対して出力する。その後の動作は、実施例1における第1警告信号を出力した場合の動作と同様なので、重複した説明を省略する。
The first case is when the bus
エラー発生のタイミングと履歴の同期をとるための方法は色々あるが、例えばデータ収集制御部17は、時刻情報を得ることができる時計を有しており、コントローラトレーサ19及びバストレーサ18は、データ収集制御部17の有する時計を参照して、収集した履歴には常に時刻情報を付加しているものとすることができる。
There are various methods for synchronizing the timing of error occurrence and history. For example, the data
2つ目の場合は、バストレーサ18内のパターン照合部44bが、トレース部42bにより収集された各履歴と要注意パターンとを照合して、適合した場合である。バストレーサ18内のパターン照合部44bは、トレース部42bを介してデータ収集制御部17に対し第2警告信号を出力する。
The second case is a case where the
ここで、第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
第2警告信号を入力されたデータ収集制御部17は、コントローラトレーサ19とバストレーサ18とに収集され保持された各履歴に基づく履歴データを抽出して収集する。
The
具体的には、データ収集制御部17は、第2警告信号に基づき要注意パターン発生のタイミングと同タイミングの履歴データを、コントローラトレーサ19の保持している、内部バス30に対する内部バス制御部11のアクセス履歴、内部バス30とローカルレジスタ14との間のデータの入出力履歴、及び内部バス30とバスコンフィグレーションレジスタ15との間のデータの入出力履歴の各履歴から抽出して収集する。
Specifically, the data
さらにデータ収集制御部17は、第2警告信号に基づき要注意パターン発生のタイミングと同タイミングの履歴データを、バストレーサ18の保持している、外部バス20に対するバスインターフェース制御部13のアクセス履歴、内部バス30とバスコンフィグレーションレジスタ15との間のデータの入出力履歴、及び外部バス20とバスコンフィグレーションレジスタ15との間のデータの入出力履歴の各履歴から抽出して収集する。
Further, the data
またデータ収集制御部17は、第2警告信号に基づきバストレーサ18にて照合された要注意パターンの種類情報を得る。
Further, the data
さらにデータ収集制御部17は、抽出した履歴データ、要注意パターンの種類、及び要注意パターン発生のタイミングに関する情報を内部バス30を介して外部記録装置36に出力し、データの保存を行う。
Further, the data
3つ目の場合は、コントローラトレーサ19内のパターン照合部44aが、トレース部42aにより収集された各履歴と要注意パターンとを照合して、適合した場合である。コントローラトレーサ19内のパターン照合部44aは、トレース部42aを介してデータ収集制御部17に対し第2警告信号を出力する。
The third case is a case where the
第2警告信号を入力されたデータ収集制御部17の動作は、2つ目の場合と同様であるので、重複した説明を省略する。
Since the operation of the data
上述のとおり、本発明の実施例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
また、パターン照合部44a及び44bが特定の順番のアクセスパターンを示す要注意パターンと収集された各履歴とを照合するので、障害を起こしやすいアクセスパターン時の外部バス20側及び内部バス30側の情報を収集することができる。すなわち、バスデバイス10bは、外部バス20と内部バス30の仕様に規定されたエラーだけではなく、経験的に得られた障害の起き易いバス信号やローカルレジスタ14、バスコンフィグレーションレジスタ15に対する入出力履歴のパターンの出現を条件として、外部バス20側及び内部バス30側の情報を収集し、解析することができる。
Further, since the
さらに、バスインターフェース制御部13は、外部バス20との通信時に外部バスの仕様に規定されるエラー信号を検出した場合にエラーの種類及びエラー発生のタイミングに関する情報を示す第3警告信号をバストレーサ18を介してデータ収集制御部17に対して出力するので、データ収集制御部17は、エラー信号を検出したタイミングを知ることができ、外部バス20側の情報のみならず、内部バス30側の情報を保存することができる。
Further, the bus
次に、図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
したがって、バストレーサ18aは、バスインターフェース制御部13を介さずに、外部バス20の情報を収集することができる。
Therefore, the
バスインターフェース制御部13とは異なり、バストレーサ18aは、バスデバイス10cの通常の通信には関与する必要が無い。そのため、バストレーサ専用インターフェース52は、外部バス20への書き込み機能は必要なく、外部バス20の情報を読み出す機能のみでよい。
Unlike the bus
またバストレーサ18aは、外部バス20に対するバスインターフェース制御部13のアクセス履歴とバスコンフィグレーションレジスタ15に対する第2データの入出力履歴をバスインターフェース制御部13から収集して保持する点は実施例2と同様である。
The
したがって、バストレーサ18aは、外部バス20に対するバスインターフェース制御部13のアクセス履歴と、バストレーサ専用インターフェース52を介した外部バス20の情報とを比較することができる。これにより、外部バス20に対するバスインターフェース制御部13の通信機能の動作が正常であるか否かを確認することができる。この場合、バストレーサ18aは、バストレーサ専用インターフェース52を介して収集した外部バス20の情報のみをバス履歴保持バッファ47bに保持し、バスインターフェース制御部13から収集した外部バス20に対するアクセス履歴は保持しない。外部バス20に対するバスインターフェース制御部13のアクセス履歴は、正常動作の確認にのみ用いられる。
Therefore, the
次に実施例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
バストレーサ18は、障害原因解明のために必要な障害発生時の外部バス20に対するアクセス履歴をバスインターフェース制御部13から収集する必要がある。しかしながら、実施例2の構成では、バスインターフェース制御部13に障害が発生した場合、バストレーサ18は、外部バス20に対するバスインターフェース制御部13のアクセス履歴を収集できなくなる。
The
これに対し、本実施例の構成では、バストレーサ18aは、外部バス20の情報の収集経路であるバストレーサ専用インターフェース52を自ら備えているので、バスインターフェース制御部13の動作の如何に関らず、外部バス20の情報を収集し続ける事が出来る。
On the other hand, in the configuration of the present embodiment, the
上述のとおり、本発明の実施例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
その他の効果は実施例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
したがって、コントローラトレーサ19aは、内部バス制御部11を介さずに、内部バス30の情報を収集することができる。
Therefore, the
また実施例3の場合と同様、コントローラトレーサ19aは、バスデバイス10dの通常の通信には関与する必要が無い。そのため、コントローラトレーサ専用インターフェース54は、内部バス30への書き込み機能は必要なく、内部バス30の情報を読み出す機能のみでよい。
Similarly to the case of the third embodiment, the
またコントローラトレーサ19aは、内部バス30に対する内部バス制御部11のアクセス履歴、内部バス制御部11を介するローカルレジスタ14に対する第1データの入出力履歴、及び内部バス制御部11を介するバスコンフィグレーションレジスタ15に対する第2データの入出力履歴の少なくとも一つを内部バス制御部11から収集して保持する点は実施例2と同様である。
The
したがって、コントローラトレーサ19aは、内部バス30に対する内部バス制御部11のアクセス履歴と、コントローラトレーサ専用インターフェース54を介した内部バス30の情報とを比較することができる。これにより、内部バス30に対する内部バス制御部11の通信機能の動作が正常であるか否かを確認することができる。この場合、コントローラトレーサ19aは、コントローラトレーサ専用インターフェース54を介して収集した内部バス30の情報のみをバス履歴保持バッファ47aに保持し、内部バス制御部11から収集した内部バス30に対するアクセス履歴は保持しない。内部バス30に対する内部バス制御部11のアクセス履歴は、正常動作の確認にのみ用いられる。
Therefore, the
次に実施例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
実施例2の構成では、コントローラトレーサ19aは、内部バス制御部11に障害が発生した場合、内部バス30に対する内部バス制御部11のアクセス履歴を収集できなくなる。
In the configuration of the second embodiment, the
これに対し、本実施例の構成では、コントローラトレーサ19aは、内部バス30の情報の収集経路であるコントローラトレーサ専用インターフェース54を自ら備えているので、内部バス制御部11の動作の如何に関らず、内部バス30の情報を収集し続ける事が出来る。
On the other hand, in the configuration of the present embodiment, the
上述のとおり、本発明の実施例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
その他の効果は実施例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
電源トレーサ60は、バスデバイス10eを搭載するシステムの電源部からバスデバイス10eへの電源供給状態を収集して保持する。
The
電源トレーサ60は、バスデバイス10eを搭載するシステムの電源部であるシステム電源部70からバスデバイス10eの電源ラインへのインターフェース部に位置し、システム電源部70及びデータ収集制御部17aに接続されている。
The
電源トレーサ60は、バスデバイス10eへの電源供給状態(供給される電力の電流値、電圧値の時系列データ)を、図示されない電源履歴バッファに保持する。電源履歴バッファは、実施例2のバス履歴保持バッファ47aと同様の動作を行う。
The
データ収集制御部17aは、実施例2で説明したように各履歴データを抽出して収集し、さらに電源トレーサ60により保持された電源供給状態に基づく電源データを抽出して収集する。
The
次に実施例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
またデータ収集制御部17aは、収集した履歴データと電源データとを内部バス30を介して外部記憶装置36に出力する。これにより、外部バス20のバス情報に加え、バスデバイス10eへの電源状態に関するデータを保存することができる。
In addition, the data
上述のとおり、本発明の実施例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
次に、図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
電源トレーサ60及びコントローラトレーサ19の動作は、それぞれ実施例5及び実施例2と同様であるので、重複した説明を省略する。
Since the operations of the
次に実施例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
またデータ収集制御部17aは、収集した履歴データと電源データとを内部バス30を介して外部記憶装置36に出力する。これにより、外部バス20及び内部バス30のバス情報に加え、バスデバイス10eへの電源状態に関するデータを保存することができる。
In addition, the data
上述のとおり、本発明の実施例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
次に、図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
内部メモリ回路62は、データ収集制御部17cにより収集された履歴データを保存する。なお、内部メモリ回路62は、履歴データのみならず、電源データや後述する割り込み信号データを保存することもできる。
The
また内部メモリ回路62は、フラッシュROM等の書き込み可能な不揮発性ROMメモリとしてバスデバイス10g内に実装され、バスデバイス10gの電源が切れた後もデータを保持できる。
The
データ収集制御部17cは、バストレーサ18及びコントローラトレーサ19から収集した履歴データを内部メモリ回路62に出力する。そのため、データ収集制御部17cは、外部記憶装置36に履歴データを出力しないので、内部バス30に接続される必要がない。
The data
次に実施例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
上述のとおり、本発明の実施例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
次に、図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
外部メモリ回路64は、バスデバイス10hの外部に設けられ、データ収集制御部17dの収集した履歴データを保存する。なお、外部メモリ回路64は、履歴データのみならず、電源データや後述する割り込み信号データを保存することもできる。
The
データ収集制御部17dは、バストレーサ18及びコントローラトレーサ19から収集した履歴データを周辺モジュール用内部バス66を介して外部メモリ回路64に出力する。そのため、データ収集制御部17dは、外部記憶装置36に履歴データを出力しないので、内部バス30に接続される必要がない。
The data
次に実施例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
上述のとおり、本発明の実施例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
また、実施例7におけるバスデバイス10gは、実装上の制約により、内部メモリ回路62用に十分な記憶容量を確保できない場合が多いのに対し、本実施例におけるバスデバイス10hは、内部に内部メモリ回路62を有する必要が無く、外部に十分な記憶容量を有する外部メモリ回路64が存在するため、実装上の余裕を確保できる。
Further, the bus device 10g in the seventh embodiment cannot secure a sufficient storage capacity for the
したがって、バスデバイス10hは、実装上の制約に左右されずに、バスデバイス10h外部に障害解析用データの記録装置として十分な記憶容量を有する外部メモリ回路64を確保でき、かつ内部バス30の障害時にも安全に障害解析用の履歴データを外部メモリ回路64に保存できる。
Therefore, the bus device 10h can secure an
次に、図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 /
I/Oトレーサ68は、バスデバイス10iを搭載するシステム内の割り込み信号を収集して保持する。ここで、割り込み信号とは、例えば、NMI(ノンマスカブル)割り込み、WDT(ウォッチドッグ・タイマ)信号、DMAC(ダイレクト・メモリ・アクセス・コントローラ)割り込み、UBC(ユーザ・ブレーク・コントローラ)等である。
The I /
I/Oトレーサ68は、バスデバイス10iを搭載するシステムからバスデバイス10iへの各信号ライン(内部バス30、外部バス20、電源ラインを除く)のインターフェース部に位置し、データ収集制御部17eに接続されている。
The I /
I/Oトレーサ68は、バスデバイス10iを搭載するシステム内の割り込み信号を、図示されないI/O履歴バッファに保持する。I/O履歴バッファは、実施例2のバス履歴保持バッファ47aと同様の動作を行う。
The I /
データ収集制御部17eは、実施例2で説明したように各履歴データを抽出して収集し、さらにI/Oトレーサ68により保持された割り込み信号に基づく割り込み信号データを抽出して収集する。
The data
次に実施例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
またデータ収集制御部17eは、収集した履歴データと割り込み信号データとを内部バス30を介して外部記憶装置36に出力する。これにより、外部バス20のバス情報に加え、バスデバイス10iへの入出力信号(割り込み、WDT信号)に関するデータを保存することができる。
The data
また、さらにコントローラトレーサ19を備えている場合には、内部バス30のバス情報も収集できることは言うまでもない。
Further, when the
上述のとおり、本発明の実施例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
さらに、従来技術では、CPU32側で信号の履歴を記録する事が可能でも、バスデバイス10i側のバス動作履歴と正確に時間を同期させて記録する事が難しく、障害原因の解析が困難であった。しかしながら、本実施例の構成により、データ収集制御部17eで履歴データと組み合わせて割り込み信号データが収集できるため、バスデバイス10iの通信処理と割り込み信号の同期データを元に、障害原因の解明を容易に行う事が出来る。
Furthermore, in the prior art, even if it is possible to record the signal history on the
本発明に係るバスデバイスは、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.
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,
34
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又は請求項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.
前記データ収集制御部は、さらに前記電源トレーサにより保持された電源供給状態に基づく電源データを抽出して収集することを特徴とする請求項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トレーサにより保持された割り込み信号に基づく割り込み信号データを抽出して収集することを特徴とする請求項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.
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)
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 |
-
2006
- 2006-11-28 JP JP2006320667A patent/JP2008134838A/en active Pending
Cited By (4)
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 |