[go: up one dir, main page]

JP2008287319A - Semiconductor device, electronic apparatus, and access log acquisition method - Google Patents

Semiconductor device, electronic apparatus, and access log acquisition method Download PDF

Info

Publication number
JP2008287319A
JP2008287319A JP2007128999A JP2007128999A JP2008287319A JP 2008287319 A JP2008287319 A JP 2008287319A JP 2007128999 A JP2007128999 A JP 2007128999A JP 2007128999 A JP2007128999 A JP 2007128999A JP 2008287319 A JP2008287319 A JP 2008287319A
Authority
JP
Japan
Prior art keywords
access
log
cpu
module
semiconductor device
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
JP2007128999A
Other languages
Japanese (ja)
Inventor
Taiji Hagita
泰治 萩田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007128999A priority Critical patent/JP2008287319A/en
Publication of JP2008287319A publication Critical patent/JP2008287319A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

【課題】 監視を必要とするアクセスに柔軟に対応してアクセスログを取得できるようにし、不要な動作による処理負担やリソースの無駄使いを無くす。
【解決手段】 半導体デバイスの各モジュール104に対しCPUI/F102を介して行うCPUアクセスを受けるアドレスデコーダ200が、本来有するCS生成部201以外に、アクセスログの取得等のログに係る動作を行うメモリ制御部202を有する。メモリ制御部202は、CPUアクセスのADDRESSデータ、WR信号及びCS信号を監視し、当該アクセスの種類が、定義されたCPUアクセスの種類のどれかを検出し、検出したアクセスがアクセスログの取得を要するアクセスの種類、例えばモジュールの特定のレジスタに対する書込みアクセス、として設定されていれば、このCPUアクセスのみアクセスログを取得する。
【選択図】 図2
PROBLEM TO BE SOLVED: To obtain an access log in a flexible manner corresponding to an access that requires monitoring, and to eliminate a processing load due to an unnecessary operation and a waste of resources.
A memory in which an address decoder 200 that receives CPU access to each module 104 of a semiconductor device via a CPU I / F 102 performs operations related to logs, such as acquisition of an access log, in addition to an inherent CS generation unit 201 A control unit 202 is included. The memory control unit 202 monitors the CPU access ADDRESS data, the WR signal, and the CS signal, detects whether the access type is one of the defined CPU access types, and the detected access acquires the access log. If it is set as the type of access required, for example, write access to a specific register of the module, the access log is acquired only for this CPU access.
[Selection] Figure 2

Description

本発明は、CPU(Central Processing Unit)アクセスが可能なモジュールを持つ半導体デバイスに関し、より詳細には、CPU内蔵の半導体デバイスであっても、モジュールに対するアクセスのログが取得でき、しかもアクセスログの取得を必要なログのみに行えるようにし、不要な動作やリソースの無駄使いを無くすことができる半導体デバイス、当該半導体デバイスを備えた電子装置及びアクセスログ取得方法に関する。   The present invention relates to a semiconductor device having a module capable of accessing a CPU (Central Processing Unit). More specifically, even a semiconductor device with a built-in CPU can obtain a log of access to the module and obtain an access log. The present invention relates to a semiconductor device, an electronic apparatus including the semiconductor device, and an access log acquisition method that can eliminate unnecessary operations and wasteful use of resources.

近年、CPUI/F(インターフェース)を持つ半導体デバイスが様々な電子装置に用いられている。
こうした電子装置に障害が発生したときに、従来行われている一般的な方法は、CPUのアクセス内容をトレースし、その内容を解析することにより、障害の発生原因を究明する方法である。CPUのアクセス内容のトレースは、例えば、障害発生時に、CPUI/Fに計測器を接続し、CPUI/Fを計測器で観測する方法が従来から知られている。
ただ、上記の方法は、観測するまでに、計測器を持ち込み、接続する、といった準備に手間が掛かる上に、得られた観測結果には、全てのCPUからのアクセスが存在するため、障害の発生原因となる箇所を見つける作業は、困難になる。また、CPUを内蔵するデバイスの場合、CPUI/Fに計測器が接続できないので、計測器で観測する方法を採ることは、不可能である。
In recent years, semiconductor devices having a CPU I / F (interface) have been used in various electronic devices.
When a failure occurs in such an electronic device, a general method that has been conventionally performed is a method of tracing the access contents of the CPU and analyzing the contents to investigate the cause of the failure. For tracing the access contents of the CPU, for example, a method of connecting a measuring instrument to the CPU I / F and observing the CPU I / F with the measuring instrument when a failure occurs is conventionally known.
However, the above method takes time to prepare for bringing in and connecting measuring instruments before observation, and the obtained observation results are accessed from all CPUs. The task of finding the location causing the occurrence becomes difficult. In the case of a device incorporating a CPU, a measuring instrument cannot be connected to the CPU I / F, so it is impossible to take a method of observing with a measuring instrument.

このような問題の解決を図ることが可能な方法として、CPUアクセスをアクセスログとして記録しておく方法がある。CPUからのアクセスの場合、ソフトウェアでデバイス内のメモリにCPUアクセスログとして、ログ情報を書き込む方法を採ることができる。
しかしながら、この方法によると、ログ取得処理自体がCPUを使ったメモリ書き込みであるため、本来のシステム動作を遅延させるという問題を生じる。システム動作を遅延させることは、生産性の低下を招くばかりではなく、ログを作成しない場合に発生する障害が発生しなくなったり、逆にログを作成したことで別の障害が発生したり、といった副作用による弊害も起こす。
As a method capable of solving such a problem, there is a method of recording CPU access as an access log. In the case of access from the CPU, a method of writing log information as a CPU access log in the memory in the device by software can be adopted.
However, according to this method, the log acquisition process itself is a memory write using a CPU, which causes a problem of delaying the original system operation. Delaying the system operation not only decreases productivity, but also prevents the failure that occurs when the log is not created or conversely causes another failure by creating the log. It also causes adverse effects due to side effects.

そこで、このような副作用を起こすことなく、アクセスログを作成する方法が、提案された。下記特許文献1は、この従来技術の1例を示すものである。
特許文献1記載のデバイスは、デバイスが用いるデータ保存場所へのCPUアクセスに対する処理と並行して、当該CPUアクセスの入力を受けてログを作成する処理を行い、前記データ保存場所をアクセスログの保存にも用いるように構成した回路とし、この構成により、CPUを内蔵するデバイスで、CPUI/Fに計測器が接続できなくても、CPUのアクセス内容のトレースができるようにしている。
Therefore, a method for creating an access log without causing such side effects has been proposed. The following Patent Document 1 shows an example of this prior art.
In parallel with the processing for CPU access to the data storage location used by the device, the device described in Patent Document 1 performs processing for creating a log in response to input of the CPU access, and stores the data storage location in the access log storage location. The circuit is also configured to be used for this purpose, and with this configuration, the access contents of the CPU can be traced even if a measuring instrument cannot be connected to the CPU I / F with a device incorporating the CPU.

また、特許文献1記載のデバイスでは、ログを作成する処理を行うために設けたアクセス分析回路は、ログの作成機能のほか、保存の対象とするログを選択する機能を持っている。後者の機能は、作成されたログの全てを保存せず、アクセスのあったアドレスのうち、設定されたアドレスだけを保存の対象として選択する機能であり、アドレスの設定を変更できるようになっている。さらに、ソフトウェアによりレジスタの設定を変更可能とすることで、アクセス分析回路を含めたログの処理に用いる回路の動作を停止/可動させるようにしている。
特開2006−11969号公報
In addition, in the device described in Patent Document 1, the access analysis circuit provided for performing the process of creating a log has a function of selecting a log to be stored in addition to a function of creating a log. The latter function is a function that does not save all the created logs, but selects only the set addresses among the accessed addresses as the target of saving, so that the address setting can be changed. Yes. Furthermore, by making it possible to change register settings by software, the operation of the circuits used for log processing including the access analysis circuit is stopped / moved.
JP 2006-11969 A

しかしながら、上記した従来例における、保存対象のログを選択する機能は、作成されたログから保存対象のログを選択するので、ログの保存に用いるリソースの利用効率の向上を図ることが可能になるが、ログを作成する処理の負担は、減らない。また、保存対象のログの選択条件も、アドレスのみであるから、有効性が限られてしまう。
また、上記した従来例では、アクセス分析回路を含めたログの処理に用いる回路の動作を停止/可動させることが、ソフトウェアによるレジスタの設定で変更できるが、不適合となって、設定の変更が必要になっても、ソフトウェアを書き換えるまで、そのまま動作させなければならならず、不要な動作による処理負担やリソースの無駄使い、という問題を生じる場合がある。
本発明は、メモリ、レジスタ等のモジュールに対するアクセスログを作成する回路部を有する半導体デバイスにおける上記した従来例の問題に鑑みてなされもので、解決しようとする課題は、監視を必要とするアクセスに柔軟に対応してアクセスログを取得できるようにし、不要な動作による処理負担やリソースの無駄使いを無くすことにある。
However, since the function for selecting a storage target log in the above-described conventional example selects a storage target log from the created logs, it is possible to improve the utilization efficiency of resources used for storing the log. However, the burden of processing to create a log is not reduced. In addition, since the selection condition of the log to be saved is only the address, the effectiveness is limited.
In the above-described conventional example, it is possible to change the operation of the circuits used for log processing including the access analysis circuit by changing the register setting by software, but it is incompatible and needs to be changed. Even in such a case, the software must be operated as it is until the software is rewritten, which may cause problems such as processing load due to unnecessary operations and wasteful use of resources.
The present invention has been made in view of the problems of the above-described conventional example in a semiconductor device having a circuit unit for creating an access log for modules such as a memory and a register. The problem to be solved is an access that requires monitoring. The purpose is to be able to acquire the access log flexibly, and to eliminate the processing burden and unnecessary use of resources due to unnecessary operations.

請求項1の発明は、CPUによってアクセスされるモジュールと、前記モジュールに対するCPUアクセスをデコードするアドレスデコーダと、前記モジュールに対するアクセスにより生じるアクセスログを記憶するメモリと、前記CPUアクセスの入力を受け、該CPUアクセスのアクセスログを取得するとともに、取得したアクセスログの前記メモリに対するアクセスを制御するメモリ制御部を有する半導体デバイスであって、前記メモリ制御部は、入力されたCPUアクセスの種類を検出し、検出結果によりアクセスログの要/不要を判断し、判断に従って前記アクセスログの取得、前記メモリに対するアクセスの各動作を制御することを特徴とする。
請求項2の発明は、請求項1に記載された半導体デバイスにおいて、前記メモリ制御部は、アクセスログの要/不要を、入力されたCPUアクセスにおける所定のアドレス及びリード/ライト種別の少なくとも一方の検出にもとづいて判断することを特徴とする。
請求項3の発明は、前記モジュールの動作状態を示す内部信号を前記メモリ制御部に入力するようにした請求項1又は2に記載された半導体デバイスにおいて、前記メモリ制御部は、前記モジュールから入力される内部信号の変化を検出し、変化が検出された内部信号を当該モジュールのログとして取得することを特徴とする。
請求項4の発明は、前記メモリ制御部から前記モジュールの内部レジスタのデータを取得可能とした請求項1乃至3のいずれかに記載された半導体デバイスにおいて、前記メモリ制御部は、所定のタイミングで取得した前記モジュールの内部レジスタのデータを当該モジュールのログとして取得することを特徴とする。
請求項5の発明は、請求項1乃至4のいずれかに記載された半導体デバイスにおいて、前記メモリ制御部は、入力されたCPUアクセスにおける特定のレジスタに対するアクセスを検出し、検出結果により前記アクセスログ、前記内部信号のログ、前記内部レジスタのログの少なくとも1ログの取得の開始又は停止を判断し、判断に従って、ログの取得を開始又は停止させることを特徴とする。
請求項6の発明は、請求項3に記載された半導体デバイスにおいて、前記メモリ制御部は、入力された特定の内部信号の変化を検出し、検出結果により前記アクセスログ、前記内部信号のログ、前記内部レジスタのログの少なくとも1ログの取得の開始又は停止を判断し、判断に従って、ログの取得を開始又は停止させることを特徴とする。
請求項7の発明は、請求項4に記載された半導体デバイスにおいて、前記メモリ制御部は、取得した特定の内部レジスタにおけるデータの変化を検出し、検出結果により前記アクセスログ、前記内部信号のログ、前記内部レジスタのログの少なくとも1ログの取得の開始又は停止を判断し、判断に従って、ログの取得を開始又は停止させることを特徴とする。
請求項8の発明は、請求項1乃至7のいずれかに記載された半導体デバイスと、前記半導体デバイスの有する前記モジュールに対しCPUアクセスを行うCPUを備えた電子装置である。
請求項9の発明は、半導体デバイスが有するモジュールに対するアクセスログを取得するアクセスログ取得方法であって、前記半導体デバイスに入力された前記モジュールに対するCPUアクセスの種類を検出する工程と、検出されたCPUアクセスの種類によりアクセスログの要/不要を判断する工程と、アクセスログの要/不要の判断に従って、アクセスログの取得動作を制御する工程を有することを特徴とする。
請求項10の発明は、請求項9に記載されたアクセスログ取得方法において、前記アクセスログの要/不要を判断する工程は、入力されたCPUアクセスにおける所定のアドレス及びリード/ライト種別の少なくとも一方の検出にもとづいて、アクセスログの要/不要を判断することを特徴とする。
請求項11の発明は、請求項9又は10に記載されたアクセスログ取得方法において、前記モジュールの動作状態を示す内部信号を入力する工程と、モジュールから入力される内部信号の変化を検出する工程と、変化が検出された内部信号を当該モジュールのログとして取得する工程を有することを特徴とする。
請求項12の発明は、請求項9乃至11のいずれかに記載されたアクセスログ取得方法において、前記モジュールの内部レジスタのデータを所定のタイミングで取得する工程と、取得した前記モジュールの内部レジスタのデータを当該モジュールのログとして取得する工程を有することを特徴とする。
The invention of claim 1 is a module accessed by a CPU, an address decoder that decodes CPU access to the module, a memory that stores an access log generated by accessing the module, and an input of the CPU access, A semiconductor device having an access log for CPU access and having a memory control unit for controlling access to the memory of the acquired access log, wherein the memory control unit detects the type of CPU access input, Whether the access log is necessary / unnecessary is determined based on the detection result, and the operations of acquiring the access log and accessing the memory are controlled according to the determination.
According to a second aspect of the present invention, in the semiconductor device according to the first aspect, the memory control unit determines whether the access log is necessary / unnecessary for at least one of a predetermined address and a read / write type in the input CPU access. Judgment is based on detection.
According to a third aspect of the present invention, in the semiconductor device according to the first or second aspect, an internal signal indicating an operation state of the module is input to the memory control unit. The memory control unit is input from the module. A change in the internal signal is detected, and the internal signal in which the change is detected is acquired as a log of the module.
According to a fourth aspect of the present invention, in the semiconductor device according to any one of the first to third aspects, the memory control unit can acquire the data of the internal register of the module from the memory control unit at a predetermined timing. The acquired internal register data of the module is acquired as a log of the module.
According to a fifth aspect of the present invention, in the semiconductor device according to any one of the first to fourth aspects, the memory control unit detects an access to a specific register in the input CPU access, and the access log is detected based on a detection result. The start or stop of the acquisition of at least one of the internal signal log and the internal register log is determined, and the acquisition of the log is started or stopped according to the determination.
According to a sixth aspect of the present invention, in the semiconductor device according to the third aspect, the memory control unit detects a change in the input specific internal signal, and the access log, the internal signal log, The start or stop of acquisition of at least one log of the internal register log is determined, and log acquisition is started or stopped according to the determination.
According to a seventh aspect of the present invention, in the semiconductor device according to the fourth aspect, the memory control unit detects a data change in the acquired specific internal register, and the access log and the internal signal log are detected according to a detection result. The start or stop of the acquisition of at least one log of the internal register log is determined, and the acquisition of the log is started or stopped according to the determination.
The invention of claim 8 is an electronic apparatus comprising the semiconductor device according to any one of claims 1 to 7 and a CPU that performs CPU access to the module of the semiconductor device.
The invention of claim 9 is an access log acquisition method for acquiring an access log for a module of a semiconductor device, the step of detecting the type of CPU access to the module input to the semiconductor device, and the detected CPU It is characterized by having a step of determining whether or not an access log is necessary depending on the type of access, and a step of controlling an access log acquisition operation according to the determination of whether or not an access log is necessary.
According to a tenth aspect of the present invention, in the access log acquisition method according to the ninth aspect, the step of determining whether or not the access log is necessary is at least one of a predetermined address and a read / write type in the input CPU access. It is characterized in that the necessity / unnecessity of the access log is determined on the basis of the detection of.
The invention of claim 11 is the access log acquisition method according to claim 9 or 10, wherein the step of inputting an internal signal indicating the operating state of the module and the step of detecting a change in the internal signal input from the module And a step of acquiring an internal signal in which a change is detected as a log of the module.
A twelfth aspect of the invention is the access log acquisition method according to any one of the ninth to eleventh aspects, the step of acquiring the data of the internal register of the module at a predetermined timing, and the acquisition of the internal register of the module It has the process of acquiring data as a log of the module concerned.

本発明により、CPUアクセスのアドレスデコードと並行に、CPUアクセスの入力を受け、CPUアクセスの種類によりアクセスログの要/不要を判断し、この判断に従って、アクセスログを取得し、保存することによって、CPU内蔵のデバイスであっても、通常動作時にシステム動作に影響を与えずに、また、不要なアクセスログの取得による処理負担やリソースの無駄使いをすることなく、アクセスログが取得でき、このようにして取得したアクセスログによりログ解析を行うことで、解析効率を向上することが可能になり、さらに、従来行っていた、計測器を接続してアクセスログを解析する方法により起きる問題([背景技術]の[0002]、参照)が解消できる。
また、CPUアクセスログ以外に、変化が検出された内部信号及びモジュールの内部レジスタのデータをログとして保存することで、より詳細なログ解析ができる。
また、アクセスログ、内部信号のログ、内部レジスタのログの取得の開始又は停止を、特定のレジスタに対するアクセス、特定の内部信号の変化及び特定の内部レジスタにおけるデータの変化の検出によって、制御することで、必要なタイミングを逸することなく、不要な動作による処理負担やリソースの無駄使いをなくすことを可能にする動作を行わせ、パフォーマンスの向上を図ることができる。
According to the present invention, in parallel with the CPU access address decoding, the CPU access input is received, the necessity / unnecessity of the access log is determined according to the type of CPU access, and the access log is acquired and stored according to this determination, Even with a device with a built-in CPU, access logs can be acquired without affecting system operation during normal operation, and without burdening processing and resources due to unnecessary access log acquisition. Analyzing the log using the access log acquired in this way makes it possible to improve the analysis efficiency. In addition, problems that occur with the conventional method of analyzing access logs by connecting instruments ([Background [0002] of [Technology] can be solved.
In addition to the CPU access log, more detailed log analysis can be performed by storing the internal signal in which the change is detected and the data of the internal register of the module as a log.
Also, start or stop acquisition of access log, internal signal log, and internal register log by controlling access to a specific register, change of a specific internal signal, and change of data in a specific internal register. Thus, without losing the necessary timing, it is possible to perform an operation that makes it possible to eliminate the processing burden due to unnecessary operations and the wasteful use of resources, thereby improving the performance.

以下に、本発明に係る半導体デバイス、電子装置及びアクセスログ取得方法の実施形態を説明する。
本実施形態の半導体デバイスは、半導体デバイスの有する各モジュールに対するCPUアクセスに対応するデバイス本来の動作に特徴が無く、この本来の動作に並行し、CPUアクセスの入力を受けて行うアクセスログの取得等のアクセスログに係る動作を特徴とする。従って、以下の実施形態において、アクセスログに係る構成及び動作を中心に説明をする。
Embodiments of a semiconductor device, an electronic apparatus, and an access log acquisition method according to the present invention will be described below.
The semiconductor device according to the present embodiment has no feature in the original operation of the device corresponding to the CPU access to each module of the semiconductor device. In parallel with the original operation, the access log is acquired by receiving the CPU access. The operation related to the access log is characterized. Therefore, in the following embodiment, the configuration and operation related to the access log will be mainly described.

先ず、CPUのアクセスを受ける本実施形態の半導体デバイスの概要について、図1を参照して説明する。
図1に示すターゲット基板112は、図示しない電子装置の回路部を構成する部品として用いられた1基板である。
ターゲット基板112には、CPU101と、CPUアクセスを受ける半導体デバイス100及びその他のデバイス(不図示)が搭載されている。
図1に示す構成例では、CPU101が、半導体デバイス100に対し、外付けになっており、半導体デバイス100内で取得されるアクセスログを記憶する記憶装置(メモリ)がデバイス内蔵になっているが、いずれの要素も、外付け、内蔵のどちらでもよい。
First, an outline of the semiconductor device of the present embodiment that receives access from the CPU will be described with reference to FIG.
A target substrate 112 shown in FIG. 1 is one substrate used as a component constituting a circuit unit of an electronic device (not shown).
On the target substrate 112, the CPU 101, the semiconductor device 100 that receives CPU access, and other devices (not shown) are mounted.
In the configuration example shown in FIG. 1, the CPU 101 is external to the semiconductor device 100, and a storage device (memory) that stores an access log acquired in the semiconductor device 100 is built in the device. Any element can be external or internal.

半導体デバイス100は、このデバイスを搭載する電子装置が、例えば、画像形成装置であれば、プリンタ制御用ASIC(Application Specific Integrated Circuit)といった、CPUI/Fを有するデバイスである。
半導体デバイス100は、図1に示すように、CPUI/F102、アドレスデコーダ103、モジュールA〜E104〜108、内蔵メモリ109、シリアルコントローラ110を内部に有する。
The semiconductor device 100 is a device having a CPU I / F, such as an ASIC (Application Specific Integrated Circuit) for printer control, if the electronic device on which the device is mounted is an image forming apparatus, for example.
As illustrated in FIG. 1, the semiconductor device 100 includes a CPU I / F 102, an address decoder 103, modules A to E 104 to 108, a built-in memory 109, and a serial controller 110.

CPUI/F102は、CPU101にCPUバスを介して接続され、CPUバスを半導体デバイス100の内部バスに変換する。
アドレスデコーダ103は、CPUI/F102を介して入力されたCPUアクセスをデコードし、モジュールA〜E104〜108へのCS(チップセレクト)を生成する。また、アドレスデコーダ103は、本実施形態の特徴構成であるアクセスログに係る動作を行う要素部(後記で詳述)を持つ。
モジュールA〜E104〜108は、デバイス内蔵モジュールで、それぞれCPUアクセス可能なレジスタを有し、アドレスデコーダ103で生成するCSで指示されるモジュールのレジスタに対し、内部バス経由でCPUアクセスが行われる。ここでは、モジュールA〜E104〜108の5モジュールを有する例を示すが、モジュール数は、いくつでも構わない。
The CPU I / F 102 is connected to the CPU 101 via the CPU bus, and converts the CPU bus into an internal bus of the semiconductor device 100.
The address decoder 103 decodes the CPU access input via the CPU I / F 102 and generates CS (chip select) to the modules A to E104 to 108. Further, the address decoder 103 has an element unit (described in detail later) that performs an operation related to an access log, which is a characteristic configuration of the present embodiment.
Modules A to E104 to 108 are device built-in modules, each having a CPU accessible register, and the CPU access is performed via the internal bus to the register of the module designated by CS generated by the address decoder 103. Here, an example having five modules A to E104 to 108 is shown, but the number of modules is not limited.

内蔵メモリ109は、アクセスログを格納するために用いる記憶装置である。内蔵メモリ109に格納されたアクセスログは、CPU101及び後述するターミナルPC111から直接アクセスができる。
シリアルコントローラ110は、ターミナルPC111からアドレスデコーダ103経由で内蔵メモリ109をアクセスするためのシリアルI/Fとして機能する。
ターミナルPC(Personal Computer)111は、シリアル操作・表示用のPCであり、シリアルコントローラ110を介して内蔵メモリ109にアクセスし、格納されたアクセスログのデータを取得することが可能な管理端末機である。
The built-in memory 109 is a storage device used for storing an access log. The access log stored in the built-in memory 109 can be directly accessed from the CPU 101 and the terminal PC 111 described later.
The serial controller 110 functions as a serial I / F for accessing the built-in memory 109 from the terminal PC 111 via the address decoder 103.
A terminal PC (Personal Computer) 111 is a PC for serial operation and display, and is a management terminal capable of accessing the built-in memory 109 via the serial controller 110 and acquiring stored access log data. is there.

ここで、アクセスログに係る動作を行うアドレスデコーダ103をより詳しく説明する。
アドレスデコーダ103は、CPUアクセスをデコードし、モジュールA〜E104〜108へのCSを生成することで、CPU101からモジュールA〜E104〜108へのアクセスを中継する基本動作のほかに、アクセスログに係る動作として、アクセスログの取得、アクセスログを格納する内蔵メモリ109に対するアクセス等の動作を行う。なお、内蔵メモリ109に対するアクセスは、取得したアクセスログの書き込みと、格納されたアクセスログの読み出しである。
Here, the address decoder 103 that performs the operation related to the access log will be described in more detail.
The address decoder 103 decodes the CPU access and generates a CS to the modules A to E104 to 108, thereby related to the access log in addition to the basic operation of relaying the access from the CPU 101 to the modules A to E104 to 108. As operations, operations such as obtaining an access log and accessing the internal memory 109 storing the access log are performed. The access to the built-in memory 109 is writing of the acquired access log and reading of the stored access log.

図2は、アクセスログに係る動作を行うアドレスデコーダの1実施形態を示す図である。
この実施形態では、CPUアクセスの入力を受けて、アクセスログを取得する基本動作を行う実施形態(以下、「実施形態1」という)を示す。
図2に示す構成例では、アドレスデコーダ200は、アドレスデコーダが本来有するCS生成部201以外に、アクセスログに係る動作を行うメモリ制御部202を有する。なお、アドレスデコーダ200は、図1の構成では、アドレスデコーダ103に当たる。
CS生成部201は、CPUI/F102を介して入力されたCPUアクセスのADDRESSデータ、WR(ライト リード)信号及びCS信号をもとに、デコードし、内部モジュールへのCS信号等を生成する。
FIG. 2 is a diagram illustrating an embodiment of an address decoder that performs an operation related to an access log.
In this embodiment, an embodiment (hereinafter referred to as “Embodiment 1”) in which a basic operation of receiving an access log is performed in response to an input of CPU access is shown.
In the configuration example illustrated in FIG. 2, the address decoder 200 includes a memory control unit 202 that performs an operation related to an access log, in addition to the CS generation unit 201 originally included in the address decoder. The address decoder 200 corresponds to the address decoder 103 in the configuration of FIG.
The CS generation unit 201 decodes based on the CPU access ADDRESS data, the WR (write / read) signal, and the CS signal input via the CPU I / F 102, and generates a CS signal and the like to the internal module.

メモリ制御部202は、アクセスログに係る1の動作として、CPUアクセスの入力を受け、アクセスログを所定のフォーマットで取得する動作を行う。また、アクセスログに係る他の動作として、内蔵メモリ109に対するアクセス制御を行う。即ち、取得したアクセスログ等を内蔵メモリ109に記憶させるライト(書込み)アクセスと、内蔵メモリ109に記憶したアクセスログをシリアルコントローラ110を介してターミナルPC111が行うリード(読出し)アクセスを行う。なお、この実施形態では、内蔵メモリ109のアクセスログのデータは、シリアルコントローラ110を介してシリアルからのみ読出せる構成であるが、CPUI/F102を介しても読出せる構成であってもよい。   As one operation related to the access log, the memory control unit 202 receives an input of CPU access and performs an operation of acquiring the access log in a predetermined format. As another operation related to the access log, access control to the built-in memory 109 is performed. That is, a write (write) access for storing the acquired access log or the like in the internal memory 109 and a read (read) access performed by the terminal PC 111 via the serial controller 110 for the access log stored in the internal memory 109 are performed. In this embodiment, the access log data in the built-in memory 109 can be read only from the serial via the serial controller 110, but the data can also be read via the CPU I / F 102.

本実施形態においては、入力されたCPUアクセスのうち、必要なアクセスのみアクセスログを取得する。
アクセスログの取得の要/不要を定めるCPUアクセスのカテゴリは、ここでは、ルールで定めたCPUアクセスの種類とする。なお、CPUアクセスの種類を定めるルールについては、後述する。また、ルールで定めたCPUアクセスの種類に対応して、アクセスログの要/不要が設定できるようにする。
上記した原則に従い、必要なCPUアクセスのみアクセスログを取得するため、メモリ制御部202は、CPUI/F102を介して入力されるCPUアクセスのADDRESSデータ、WR(ライト リード)信号及びCS信号を監視し、当該アクセスの種類が、定義されたCPUアクセスの種類のどれであるかを検出する。また、この検出結果から、アクセスログの取得を要するアクセスの種類であるか、否かを判断し、必要と判断されたCPUアクセスのみアクセスログを取得する。
In this embodiment, an access log is acquired only for necessary access among the input CPU accesses.
Here, the CPU access category that determines the necessity / unnecessity of access log acquisition is the CPU access type defined by the rule. The rules for determining the type of CPU access will be described later. Also, the necessity / unnecessity of the access log can be set in accordance with the type of CPU access determined by the rule.
In accordance with the above principle, in order to obtain an access log for only necessary CPU access, the memory control unit 202 monitors the CPU access ADDRESS data, WR (write read) signal, and CS signal input via the CPU I / F 102. Detecting which of the defined CPU access types is the access type. Also, from this detection result, it is determined whether or not the access type requires access log acquisition, and only the CPU access determined to be necessary acquires the access log.

アクセスログの取得が必要と判断されたCPUアクセスは、データ或いは信号としてメモリ制御部202に取り込まれ、アクセスログを取得するために用いられる。つまり、CPUアクセスは、メモリ制御部202内で一定のフォーマットに変換され、内蔵メモリ109にアクセスログとして記憶される。
図3は、フォーマット化されたアクセスログの1例を示す図である。この例では、1アクセス単位のアクセスログは、9byte(バイト)=72bit(ビット)のログデータで表される。
The CPU access determined to require access log acquisition is taken into the memory control unit 202 as data or a signal and used to acquire the access log. That is, the CPU access is converted into a fixed format in the memory control unit 202 and stored as an access log in the built-in memory 109.
FIG. 3 is a diagram illustrating an example of a formatted access log. In this example, the access log for one access unit is represented by log data of 9 bytes (bytes) = 72 bits (bits).

図3に示すフォーマットのアクセスログの内容は、下記の<データフォーマット>に示す情報量(bit)を持つ属性データ「ログ種別」「R/W種別」「H/L種別」「ADDRESS」「DATA」よりなる。なお、このフォーマットは、後述する実施形態2において、内部信号ログ及び内部レジスタログを付加した場合に適用するもので、CPUアクセスログに係る実施形態1では、下記<データフォーマット>の※にコメントするように、「H/L種別」は、無効である。
<データフォーマット>
ログ種別(2bit)
00:CPUアクセスログ
01:内部信号ログ
10:内部レジスタログ
11:Reserve
R/W種別(1bit)
0:リード
1:ライト
※CPUアクセスログ時のみ有効
H/L種別(1bit)
0:Lに変化
1:Hに変化
※内部信号ログ時のみ有効
ADDRESS(32bit)
CPUアクセスログ時:アクセスアドレスを格納
内部信号ログ時:内部信号ナンバーを格納 ※予め内部信号に割り当てた番号
内部レジスタログ時:内部レジスタのアドレスを格納
DATA(32bit)
CPUアクセスログ時:転送データを格納
内部信号ログ時:無効
内部レジスタログ時:内部レジスタのデータを格納
The contents of the access log in the format shown in FIG. 3 are attribute data “log type”, “R / W type”, “H / L type”, “ADDRESS”, and “DATA” having the information amount (bit) shown in <data format> below. ". Note that this format is applied when an internal signal log and an internal register log are added in the second embodiment to be described later. In the first embodiment related to the CPU access log, a comment is attached to * of <data format> below. As described above, “H / L type” is invalid.
<Data format>
Log type (2 bits)
00: CPU access log
01: Internal signal log
10: Internal register log
11: Reserve
R / W type (1 bit)
0: Lead
1: Write * Valid only during CPU access log
H / L type (1 bit)
0: Change to L
1: Change to H * Effective only when logging internal signals
ADDRESS (32bit)
CPU access log: Stores access address Internal signal log: Stores internal signal number * Number assigned to internal signal in advance Internal register log: Stores internal register address
DATA (32bit)
CPU access log: Transfer data is stored Internal signal log: Invalid Internal register log: Internal register data is stored

また、図2のメモリ制御部202は、シリアルコントローラ110を通して行われる内蔵メモリ109に対するアクセスを中継する。
メモリ制御部202には、CPUアクセスログを内蔵メモリ109に書込むためのパスと、シリアルコントローラ110を通して行われるアクセスログを読出すためのパスとを切替えるセレクタを内蔵する。
内蔵メモリ109が、1ポートRAM(Random Access Memory)の構成では、アクセスログの取得中にシリアルコントローラ110からのアクセスがあると、内蔵メモリ109のアクセス競合が起きて、アクセスログの取得を滞りなく行うことができないので、シリアルコントローラ110からのアクセスは、システム動作終了後に実施する必要がある。
他方、内蔵メモリ109が2ポートRAMの構成(不図示)では、アクセスログの取得中にシリアルコントローラ110からのリードアクセスがあっても、内蔵メモリ109の競合が起きないので、アクセスログの取得中にシリアルコントローラ110からのアクセスを許容できる。何れの構成でも良いが、アクセスログを取りこぼさないようなシステムであることが必要条件である。
Further, the memory control unit 202 in FIG. 2 relays access to the built-in memory 109 performed through the serial controller 110.
The memory control unit 202 includes a selector that switches between a path for writing the CPU access log into the built-in memory 109 and a path for reading the access log performed through the serial controller 110.
If the built-in memory 109 is configured as a 1-port RAM (Random Access Memory), if there is an access from the serial controller 110 during acquisition of the access log, access conflict of the built-in memory 109 occurs, and the access log acquisition is not delayed. Since it cannot be performed, the access from the serial controller 110 needs to be performed after the system operation ends.
On the other hand, when the built-in memory 109 has a 2-port RAM (not shown), even if there is a read access from the serial controller 110 during acquisition of the access log, contention of the built-in memory 109 does not occur. In addition, access from the serial controller 110 can be permitted. Any configuration is possible, but it is a necessary condition that the system does not miss the access log.

ここで、アクセスログの取得の要/不要を設定することで、必要なアクセスログのみを取得するCPUアクセスの種類を定めるルールについて説明する。
本実施形態では、入力されるCPUアクセスのADDRESSデータ、WR(ライト リード)信号及びCS信号によって判断するアクセスの種類であり、下記の例1〜3に示すルールを採用できる。この例では、アクセスログの取得を必要とするアクセスをルールにより定め、その他のアクセスは、アクセスログの取得を不要とする。
例1:「上限ログ取得アドレス」と「下限ログ取得アドレス」の領域内であること。
例2:WR信号のR(リードアクセス)又はW(ライトアクセス)のいずれか一方を定めること。
例3:「アドレスバリッドレジスタ」で1をセットされているビットと対応する「アドレス設定レジスタ」の設定アドレスを持つこと。
なお、上記の例3を解説すると、例えば、
「アドレスバリッドレジスタ」=0x11110000
「アドレス設定レジスタ」 =0x10101100
とレジスタが設定されている場合、入力されたCPUアクセスが0x1010xxxx(なお、xは、Don't Careである)であれば、アクセスログの取得を必要とする。つまり、0x10100011は、アクセスログの取得を必要とするが、0x10111100はアクセスログの取得を必要としない、という判断になる。
Here, a rule for determining the type of CPU access for acquiring only a necessary access log by setting necessity / unnecessity of access log acquisition will be described.
In this embodiment, the type of access is determined based on CPU access ADDRESS data, WR (write / read) signal, and CS signal, and the rules shown in Examples 1 to 3 below can be adopted. In this example, an access that requires acquisition of an access log is determined by a rule, and other access does not require acquisition of an access log.
Example 1: It is in the area of “upper limit log acquisition address” and “lower limit log acquisition address”.
Example 2: To determine either R (read access) or W (write access) of the WR signal.
Example 3: Having a setting address in the “address setting register” corresponding to the bit set to 1 in the “address valid register”.
In addition, when the above example 3 is explained, for example,
`` Address valid register '' = 0x11110000
`` Address setting register '' = 0x10101100
If the input CPU access is 0x1010xxxx (where x is Don't Care), it is necessary to acquire an access log. That is, 0x10100011 requires acquisition of an access log, but 0x10111100 does not require access log acquisition.

上記の例1〜3の定義に従うデータをCS生成部201のレジスタに用意し、いずれかに該当すること、或いは、同時に幾つかに該当することを条件に、アクセスログの取得を必要とするアクセスであると判断し、それぞれの取得動作を行わせる。
従って、内蔵メモリ109には、アクセスログの取得を必要とするアクセスのみのログデータが記憶される。
このようにして、アクセスログの取得を行うことで、記憶装置の容量を低減し、デバイス(システム)のコストを低減する。また、必要なログのみ取得できるので、ログ解析の効率が向上する。
Access that requires acquisition of an access log on the condition that data conforming to the definitions in Examples 1 to 3 above is prepared in the register of the CS generation unit 201 and corresponds to one or several simultaneously And each acquisition operation is performed.
Therefore, the internal memory 109 stores only log data for access that requires access log acquisition.
In this way, by acquiring the access log, the capacity of the storage device is reduced, and the cost of the device (system) is reduced. Further, since only necessary logs can be acquired, the efficiency of log analysis is improved.

上記した例2のルールで、CPUライトアクセスをアクセスログの取得を必要とするアクセスとした場合、このCPUアクセスを受けるメモリ制御部202の動作は、次のようになる。
図4は、CPUライトアクセスのアクセスログ取得動作におけるタイミングチャートを示す。
メモリ制御部202は、クロックCLKの所定のタイミングで、図4の<CPUI/Fからの入力>に示すCS信号:CS=Low、かつWR信号:WR=Lowを条件に、ライトアクセスを検出し、そのタイミングで「ADDRESS」、「DATA_I」、「W/R種別」の各データをラッチする。
次のクロック CLK で、図4中に矢印で示すように、<内蔵メモリへの出力>に移行し、内蔵メモリ109に、「ADDRESS」、「DATA_I」、「W/R種別」の各データをバースト転送でライトする。
When the CPU write access is an access that requires acquisition of an access log in the rule of Example 2 described above, the operation of the memory control unit 202 that receives this CPU access is as follows.
FIG. 4 shows a timing chart in the access log acquisition operation of CPU write access.
The memory control unit 202 detects a write access at a predetermined timing of the clock CLK on the condition that the CS signal: CS = Low and the WR signal: WR = Low shown in <Input from CPU I / F> in FIG. At that timing, the data “ADDRESS”, “DATA_I”, and “W / R type” are latched.
At the next clock CLK, as indicated by an arrow in FIG. 4, the process proceeds to <output to built-in memory>, and each data of “ADDRESS”, “DATA_I”, and “W / R type” is stored in the built-in memory 109. Write by burst transfer.

内蔵メモリ109にライトするデータは、図3に示したデータフォーマットに従うとすると、1アクセス単位のアクセスログは、9byteのデータであるから、例えば、内蔵メモリ109のデータバス幅が、4byteの場合は、3回のバースト転送で、メモリへのライトを済ませることができる。
内蔵メモリ109にライトした後は、メモリ制御部202のアドレスカウンタを9byte分加算し、次のアクセスに備える。
メモリ制御部202のアドレスカウンタの初期値は“0”とするのが一般的であり、アドレスカウンタがメモリ容量を超えた場合の処理については、
・先頭アドレスに戻って上書き
・ログ取得を中止
の2様の動作が考えられるが、ここでは、特に規定しない。
If the data written to the internal memory 109 conforms to the data format shown in FIG. 3, the access log for each access unit is 9 bytes of data. For example, when the data bus width of the internal memory 109 is 4 bytes, Writing to the memory can be completed by three burst transfers.
After writing to the built-in memory 109, the address counter of the memory control unit 202 is incremented by 9 bytes to prepare for the next access.
The initial value of the address counter of the memory control unit 202 is generally set to “0”. For processing when the address counter exceeds the memory capacity,
・ Returning to the top address and overwriting ・ Two types of actions are possible: cancel log acquisition, but it is not specified here.

CPUリードアクセスを受けるメモリ制御部202は、このアクセスのアクセスログ取得動作におけるタイミングチャートを示す図5に示す動作を行う。
CPUリードアクセス時に、メモリ制御部202は、クロックCLKの所定のタイミングで検出するWR信号:WR=Lowが2クロックの期間、続いて検出されないことを条件に、リードアクセスを検出し、そのタイミングで「ADDRESS」、「DATA_I」、「W/R種別」の各データをラッチする。
ラッチしたデータをアクセスログとして内蔵メモリ109へライトする動作は、上記したCPUライトアクセスのアクセスログ取得動作(図4)におけるライト動作と同じである。
The memory control unit 202 that receives the CPU read access performs the operation shown in FIG. 5 showing a timing chart in the access log acquisition operation of this access.
At the time of CPU read access, the memory control unit 202 detects read access on the condition that the WR signal: WR = Low detected at a predetermined timing of the clock CLK is not continuously detected for a period of 2 clocks, and at that timing Each data of “ADDRESS”, “DATA_I”, and “W / R type” is latched.
The operation of writing the latched data to the internal memory 109 as an access log is the same as the write operation in the access log acquisition operation of the CPU write access (FIG. 4).

次に、アクセスログに係る動作を行うアドレスデコーダの他の実施形態を示す。
上記した実施形態1によって、CPUアクセスのうち、必要なアクセスのログのみを取得することができる動作を行う実施形態を示した。ただ、より詳細なログ解析を行うためには、CPUアクセスだけではなく、ハードウェアの動作との関連の解析を可能とする内部信号として、モジュールA〜E104〜108の動作状態を示す信号をログとして、保存しておくことが必要である。
そこで、この実施形態では、モジュールA〜E104〜108の動作状態を示す内部信号の入力を受けて、ログを取得する動作を行う実施形態(以下、「実施形態2」という)を示す。
Next, another embodiment of an address decoder that performs an operation related to an access log will be described.
In the above-described first embodiment, the embodiment in which only the necessary access log is obtained among the CPU accesses is shown. However, in order to perform more detailed log analysis, not only the CPU access but also the signals indicating the operation states of the modules A to E104 to 108 are logged as internal signals that enable analysis related to hardware operations. It is necessary to save as.
Therefore, in this embodiment, an embodiment (hereinafter referred to as “Embodiment 2”) in which an operation of acquiring a log in response to an input of an internal signal indicating the operation state of the modules A to E104 to 108 is shown.

図6は、モジュールの動作状態を示す内部信号のログに係る動作を行うアドレスデコーダの1実施形態を示す図である。
ここでは、メモリ制御部702は、モジュールA〜E104〜108の動作状態を示す内部信号の変化を検出し、変化が検出された内部信号を当該モジュールのログとして、先の実施形態1でアクセスログに適用するデータフォーマットとして示したログ(図3)の一部に加えて保存する。
この動作を行うため、図6に示すように、メモリ制御部702には、モジュールA〜E104〜108からの内部信号が入力されている。
FIG. 6 is a diagram illustrating an embodiment of an address decoder that performs an operation related to a log of an internal signal indicating an operation state of a module.
Here, the memory control unit 702 detects a change in an internal signal indicating an operation state of the modules A to E104 to 108, and uses the internal signal in which the change is detected as a log of the module, in the access log in the first embodiment. In addition to a part of the log shown in FIG.
In order to perform this operation, as shown in FIG. 6, internal signals from modules A to E104 to 108 are input to the memory control unit 702.

なお、図6に示すアドレスデコーダ700は、実施形態1に示したCPUアクセスのアクセスログに係る動作を行うアドレスデコーダ200をベースにしているので、実施形態1のアドレスデコーダ200の機能を持つ。
また、図6のアドレスデコーダ700において、メモリ制御部702とCS生成部701の間にデータや信号を送受するラインが示されているが、これは、後述する実施形態に関係する構成である。
Since the address decoder 700 shown in FIG. 6 is based on the address decoder 200 that performs the operation related to the access log of the CPU access shown in the first embodiment, it has the function of the address decoder 200 of the first embodiment.
In addition, in the address decoder 700 of FIG. 6, a line for transmitting and receiving data and signals is shown between the memory control unit 702 and the CS generation unit 701. This is a configuration related to an embodiment described later.

メモリ制御部702は、モジュールA〜E104〜108の動作状態を示す内部信号の変化を内部信号ごとに検出し、信号が変化したとき、ログ情報に検出された内部信号を内部信号ナンバーにより特定するとともに、信号が L:Low 又は H:high のどちらに変化したかを示し、内蔵メモリ109にログとして書込む。
このログを取得する際に、信号毎にログ取得の有効/無効の設定ができるようにすると、効率化を図ることができる。例えば、CS生成部701に設けた内部レジスタで信号の有効ビットをセットするか否かを設定する方法が考えられる。有効ビットをセットすることにより、無駄なログの取得を避け、パフォーマンスを高めることができる。
The memory control unit 702 detects changes in internal signals indicating the operation states of the modules A to E104 to 108 for each internal signal, and when the signal changes, identifies the internal signal detected in the log information by the internal signal number. At the same time, it indicates whether the signal has changed to L: Low or H: high, and is written in the built-in memory 109 as a log.
When this log is acquired, the log acquisition can be set to be valid / invalid for each signal, so that efficiency can be improved. For example, a method of setting whether or not to set a valid bit of a signal in an internal register provided in the CS generation unit 701 can be considered. By setting the effective bit, it is possible to avoid unnecessary log acquisition and improve performance.

メモリ制御部702は、ログ取得有効と設定された内部信号の状態が変化した際に、先の実施形態1で示したデータフォーマット(図3)に従って、内蔵メモリ109にログ情報を書込む。
図3の<データフォーマット>において、モジュールの動作状態を示す内部信号のログは、下記の属性データのアンダーラインで示すデータが該当する。
<データフォーマット>
ログ種別(2bit)
00:CPUアクセスログ
01:内部信号ログ
10:内部レジスタログ
11:Reserve
R/W種別(1bit)
0:リード
1:ライト
※CPUアクセスログ時のみ有効
H/L種別(1bit)
0:Lに変化
1:Hに変化
※内部信号ログ時のみ有効
ADDRESS(32bit)
CPUアクセスログ時:アクセスアドレスを格納
内部信号ログ時:内部信号ナンバーを格納 ※予め内部信号に割り当てた番号
内部レジスタログ時:内部レジスタのアドレスを格納
DATA(32bit)
CPUアクセスログ時:転送データを格納
内部信号ログ時:無効
内部レジスタログ時:内部レジスタのデータを格納
The memory control unit 702 writes log information in the built-in memory 109 according to the data format (FIG. 3) shown in the first embodiment when the state of the internal signal set to log acquisition valid changes.
In <data format> of FIG. 3, the log of the internal signal indicating the operation state of the module corresponds to the data indicated by the underline of the attribute data below.
<Data format>
Log type (2 bits)
00: CPU access log
01: Internal signal log
10: Internal register log
11: Reserve
R / W type (1 bit)
0: Lead
1: Write * Valid only during CPU access log
H / L type (1 bit)
0: Change to L
1: Change to H * Valid only when logging internal signals
ADDRESS (32bit)
CPU access log: Stores access address
Internal signal logging: Stores internal signal number * Number assigned to internal signal in advance Internal register logging: Stores internal register address
DATA (32bit)
CPU access log: Transfer data is stored Internal signal log: Invalid Internal register log: Internal register data is stored

ところで、実施形態2の動作は、実施形態1の動作に重なり、内部信号のログの書込みと、CPUアクセスログの取得時の内蔵メモリ109のアクセスとで競合が起きることが考えられるので、競合が起きないように、実装上の工夫が必要である。例えば、CPUアクセスは、数マイクロ秒以上の間隔であると分かっているので、CPUアクセスが発生した直後に、内部信号の情報を内蔵メモリにライトする等により、競合を回避することができる。
上記のように、内部信号の状態変化を示すログとCPUアクセスログとを時系列で蓄積することで、ソフトウェアとハードウェアの関連を解析することができるので、より詳細なログ解析ができる。
By the way, the operation of the second embodiment overlaps with the operation of the first embodiment, and it is considered that a conflict occurs between the writing of the log of the internal signal and the access of the internal memory 109 when acquiring the CPU access log. In order to prevent it from happening, it is necessary to devise on implementation. For example, since it is known that the CPU access is an interval of several microseconds or more, contention can be avoided by writing internal signal information to the internal memory immediately after the CPU access occurs.
As described above, since the log indicating the state change of the internal signal and the CPU access log are accumulated in time series, the relation between software and hardware can be analyzed, so that more detailed log analysis can be performed.

次に、アクセスログに係る動作を行うアドレスデコーダのさらに他の実施形態を示す。
より詳細なログ解析を行うためには、上記実施形態1のCPUアクセスのログ及び実施形態2の内部信号の状態変化を示すログだけではなく、デバイスの内部状態との関連の解析を可能とするデータとして、CS生成部内のレジスタの状態等のデバイスの内部状態を示すレジスタのデータをログとして(以下、このログを「内部レジスタログ」という)、保存しておくことが必要である。
そこで、この実施形態では、内部レジスタログを取得する動作を行う実施形態(以下、「実施形態3」という)を示す。
Next, still another embodiment of an address decoder that performs an operation related to an access log will be described.
In order to perform more detailed log analysis, it is possible to analyze not only the CPU access log of the first embodiment and the log indicating the state change of the internal signal of the second embodiment, but also the relationship with the internal state of the device. As data, it is necessary to store register data indicating the internal state of the device such as the register state in the CS generation unit as a log (hereinafter, this log is referred to as “internal register log”).
Therefore, in this embodiment, an embodiment (hereinafter referred to as “Embodiment 3”) that performs an operation of acquiring an internal register log is shown.

内部レジスタログを取得する動作を行う本実施形態のアドレスデコーダの1実施形態について、再び図6を参照して説明する。
図6に示すアドレスデコーダ700のメモリ制御部702には、CS生成部701との間で制御信号、アドレス、データの送受信ができるように、通信ラインで接続されており、この通信手段を用いて、CS生成部701内に設けたレジスタを自動的にポーリングし、レジスタに格納されているデータを取込むことで、レジスタの状態を示すデータをログとして取得し、内蔵メモリ109に記録する。
One embodiment of the address decoder of the present embodiment that performs the operation of acquiring the internal register log will be described again with reference to FIG.
The memory control unit 702 of the address decoder 700 shown in FIG. 6 is connected via a communication line so that control signals, addresses, and data can be transmitted to and received from the CS generation unit 701. Then, the register provided in the CS generation unit 701 is automatically polled, and the data stored in the register is taken in, whereby data indicating the state of the register is acquired as a log and recorded in the built-in memory 109.

CS生成部701内のレジスタのポーリングは、メモリ制御部702に、例えば、ポーリングすべきレジスタアドレスとポーリング周期を設定する方法を採ることで、ログの取得動作を変更することができる。
メモリ制御部702は、ポーリングすべきレジスタアドレスとポーリング周期に従ってレジスタをポーリングし、レジスタの状態を示すデータを取得する。取得したレジスタのデータ及びレジスタのアドレスを当該レジスタのログとして、先の実施形態1でアクセスログに適用するデータフォーマットとして示したログ(図3)の一部に加えて内蔵メモリ19に保存する。
The polling of the register in the CS generation unit 701 can change the log acquisition operation by, for example, setting the register address to be polled and the polling cycle in the memory control unit 702.
The memory control unit 702 polls the register according to the register address to be polled and the polling cycle, and acquires data indicating the register state. The acquired register data and register address are stored in the internal memory 19 in addition to a part of the log (FIG. 3) shown as the data format applied to the access log in the first embodiment.

図3の<データフォーマット>において、CS生成部内のレジスタの状態を示すレジスタのデータのログは、下記の属性データのアンダーラインで示すデータが該当する。
<データフォーマット>
ログ種別(2bit)
00:CPUアクセスログ
01:内部信号ログ
10:内部レジスタログ
11:Reserve
R/W種別(1bit)
0:リード
1:ライト
※CPUアクセスログ時のみ有効
H/L種別(1bit)
0:Lに変化
1:Hに変化
※内部信号ログ時のみ有効
ADDRESS(32bit)
CPUアクセスログ時:アクセスアドレスを格納
内部信号ログ時:内部信号ナンバーを格納 ※予め内部信号に割り当てた番号
内部レジスタログ時:内部レジスタのアドレスを格納
DATA(32bit)
CPUアクセスログ時:転送データを格納
内部信号ログ時:無効
内部レジスタログ時:内部レジスタのデータを格納
In <data format> of FIG. 3, the data indicated by the underline of the attribute data below corresponds to the register data log indicating the state of the register in the CS generation unit.
<Data format>
Log type (2 bits)
00: CPU access log
01: Internal signal log
10: Internal register log
11: Reserve
R / W type (1 bit)
0: Lead
1: Write * Valid only during CPU access log
H / L type (1 bit)
0: Change to L
1: Change to H * Effective only when logging internal signals
ADDRESS (32bit)
CPU access log: Access address is stored Internal signal log: Internal signal number is stored * Number assigned to internal signal in advance
Internal register log: Stores internal register address
DATA (32bit)
CPU access log: Stores transfer data Internal signal log: Invalid
Internal register log: Stores internal register data

ところで、実施形態3の動作は、実施形態1の動作に重なり、内部レジスタログの書込みと、CPUアクセスログの取得時の内蔵メモリ109のアクセスとで競合が起きることが考えられるので、競合が起きないように、実装上の工夫が必要である。例えば、CPUアクセスは、数マイクロ秒以上の間隔であると分かっているので、CPUアクセスが発生した直後に、内部レジスタをポーリングすることで、競合を回避することができる。
上記のように、内部レジスタログとCPUアクセスログとを時系列で蓄積することで、ソフトウェアとハードウェアの関連を解析することができるので、より詳細なログ解析ができる。
By the way, the operation of the third embodiment overlaps with the operation of the first embodiment, and it is considered that a conflict occurs between the writing of the internal register log and the access of the internal memory 109 when acquiring the CPU access log. In order to avoid this, it is necessary to devise on mounting. For example, since CPU access is known to be at intervals of several microseconds or more, contention can be avoided by polling the internal register immediately after CPU access occurs.
As described above, by accumulating the internal register log and the CPU access log in time series, the relationship between software and hardware can be analyzed, so that more detailed log analysis can be performed.

次に、ログの取得動作の開始又は停止制御に関する実施形態を説明する。
CPUアクセスのログ処理回路において、回路動作の停止/可動制御は、従来、ソフトウェアによるレジスタの設定で行っていたため、動作に不適合を感じても、ソフトウェアを書換えるまで、動作を変更できないので、不要な動作による処理負担やリソースの無駄使い、といった点で問題が生じる。
Next, an embodiment relating to the start or stop control of the log acquisition operation will be described.
In the CPU access log processing circuit, circuit operation stop / movable control is conventionally done by register setting by software, so even if you feel incompatibility with the operation, you can't change the operation until the software is rewritten. Problems arise in terms of processing burden due to unnecessary operations and wasteful use of resources.

そこで、必要なタイミングを逸することなく、不要な動作による処理負担やリソースの無駄使いをなくすための制御方法を導入し、上記の問題の解消を図るようにする。
以下には、上記実施形態1〜3に示した、CPUアクセスのログ、内部信号のログ、内部レジスタログの各取得動作に適応した開始/停止制御をそれぞれ、「開始/停止制御(1)」〜「開始/停止制御(3)」として、説明する。
In view of this, a control method for eliminating the processing load due to unnecessary operations and wasteful use of resources without losing necessary timing is introduced to solve the above problems.
The start / stop control adapted to the CPU access log, internal signal log, and internal register log acquisition operations shown in the first to third embodiments will be described below as “start / stop control (1)”. Description will be made as “start / stop control (3)”.

「開始/停止制御(1)」
本実施形態のログの取得動作の開始/停止制御は、CPUアクセスのログの取得動作に適応した形態で、デバイス内の特定のレジスタに対するアクセスの発生をトリガーとして、開始/停止制御を行う方法を採る。
メモリ制御部202,702は、トリガーとする特定のCPUアクセスを検出する手段を持ち、検出結果に従い、アクセスログの取得動作を開始/停止する。
"Start / stop control (1)"
The log acquisition operation start / stop control according to the present embodiment is a form adapted to the CPU access log acquisition operation, and is a method of performing start / stop control triggered by the occurrence of access to a specific register in the device. take.
The memory control units 202 and 702 have means for detecting a specific CPU access as a trigger, and start / stop the access log acquisition operation according to the detection result.

トリガーとする特定のCPUアクセスは、例えば、CS生成部201,701のレジスタに、特定のCPUアクセスのアドレス、及び開始/停止制御の動作種別等の設定データを書込むことにより、設定する。
レジスタの設定は、CPUアクセスの入力時に、入力アクセスが、設定された特定のCPUアクセスに該当するか、否かを判断するために参照される。また、レジスタの設定データを書換えることで、ログの取得動作の開始/停止動作を変更することができる。
The specific CPU access as a trigger is set by, for example, writing setting data such as a specific CPU access address and an operation type of start / stop control in the registers of the CS generation units 201 and 701.
The register setting is referred to at the time of CPU access input to determine whether the input access corresponds to the set specific CPU access. Also, the start / stop operation of the log acquisition operation can be changed by rewriting the register setting data.

また、図6の構成のように、CPUアクセスログ、内部信号のログ、及び内部レジスタのログを取得できる場合には、予めどのログ取得動作に開始/停止制御を適用するかを設定しておくことで、動作を最適化できる。この設定は、CPUアクセスログ、内部信号のログ、及び内部レジスタのログのいずれか、又はこれらのログのうちの複数のログに適用してもよい。
なお、トリガーとなったCPUアクセスは、このアクセスによりログ取得動作の開始/停止制御が行われるが、いずれの場合にも、ログとして取得しておくことが望ましい。
上記の制御によって、必要なタイミングを逸することなく、ログ取得動作の開始/停止を行うことができ、また、不要な動作による処理負担やリソースの無駄使いをなくすことで、パフォーマンスの向上を図ることができる。
Also, as in the arrangement of FIG. 6, when the CPU access log, the internal signals of the log, and the log of the internal registers can be acquired is previously set whether to apply the start / stop control to advance any logging operation Therefore, the operation can be optimized. This setting may be applied to any of the CPU access log, the internal signal log, and the internal register log, or to a plurality of logs among these logs.
The CPU access that is the trigger is controlled to start / stop the log acquisition operation by this access. In any case, it is desirable that the CPU access is acquired as a log.
With the above control, the log acquisition operation can be started / stopped without losing the necessary timing, and the performance can be improved by eliminating the processing load and waste of resources due to unnecessary operations. be able to.

「開始/停止制御(2)」
本実施形態のログの取得動作の開始/停止制御は、内部信号のログの取得動作に適応した形態で、デバイス内の特定の内部信号の変化をトリガーとして、開始/停止制御を行う方法を採る。この方法は、図6に示したデバイスのように、メモリ制御部702に、モジュールA〜E104〜108からの内部信号が入力されている構成に採用できる方法である。
メモリ制御部702は、トリガーとする特定の内部信号の変化を検出する手段を持ち、検出結果に従い、アクセスログの取得動作を開始/停止する。なお、メモリ制御部702は、上記実施形態2に示したように、内部信号の変化を検出する手段を持っているので、ここでは、特定の内部信号であるか、否かを判断する手段を付加して持つ。
"Start / stop control (2)"
The log acquisition operation start / stop control of the present embodiment is a form adapted to the internal signal log acquisition operation, and adopts a method of performing start / stop control using a change in a specific internal signal in the device as a trigger. . This method can be adopted in a configuration in which internal signals from modules A to E104 to 108 are input to the memory control unit 702 as in the device shown in FIG.
The memory control unit 702 has means for detecting a change in a specific internal signal as a trigger, and starts / stops an access log acquisition operation according to the detection result. Since the memory control unit 702 has a means for detecting a change in the internal signal as shown in the second embodiment, here, a means for determining whether or not the signal is a specific internal signal. Add and have.

トリガーとする特定の内部信号の変化は、例えば、CS生成部701のレジスタに、特定の内部信号、及び開始/停止制御の動作種別等の設定データを書込むことにより、設定する。
レジスタの設定は、モジュールA〜E104〜108からの内部信号の入力時に、変化が検出された入力内部信号が、設定された特定の内部信号に該当するか、否かを判断するために参照される。また、レジスタの設定データを書換えることで、ログの取得動作の開始/停止動作を変更することができる。
The change of a specific internal signal used as a trigger is set by writing setting data such as a specific internal signal and an operation type of start / stop control in the register of the CS generation unit 701, for example.
The register setting is referred to in order to determine whether or not the input internal signal whose change is detected corresponds to the set specific internal signal when the internal signals from the modules A to E104 to 108 are input. The Also, the start / stop operation of the log acquisition operation can be changed by rewriting the register setting data.

また、図6の構成のように、CPUアクセスログ、内部信号のログ、及び内部レジスタのログを取得できる場合には、予めどのログ取得動作に開始/停止制御を適用するかを設定しておくことで、動作を最適化できる。この設定は、CPUアクセスログ、内部信号のログ、及び内部レジスタのログのいずれか、又はこれらのログのうちの複数のログに適用してもよい。
なお、トリガーとなった特定の内部信号の変化は、この変化によりログ取得動作の開始/停止制御が行われるが、いずれの場合にも、ログとして取得しておくことが望ましい。
上記の制御によって、必要なタイミングを逸することなく、ログ取得動作の開始/停止を行うことができ、また、不要な動作による処理負担やリソースの無駄使いをなくすことで、パフォーマンスの向上を図ることができる。
Also, as in the arrangement of FIG. 6, when the CPU access log, the internal signals of the log, and the log of the internal registers can be acquired is previously set whether to apply the start / stop control to advance any logging operation Therefore, the operation can be optimized. This setting may be applied to any of the CPU access log, the internal signal log, and the internal register log, or to a plurality of logs among these logs.
Note that the change in the specific internal signal that has been triggered is controlled to start / stop the log acquisition operation by this change. In any case, it is desirable to acquire the change as a log.
With the above control, the log acquisition operation can be started / stopped without losing the necessary timing, and the performance can be improved by eliminating the processing load and waste of resources due to unnecessary operations. be able to.

「開始/停止制御(3)」
本実施形態のログの取得動作の開始/停止制御は、内部レジスタログの取得動作に適応した形態で、デバイス内の特定の内部レジスタにおけるデータの変化をトリガーとして、開始/停止制御を行う方法を採る。この方法は、図6に示したデバイスのように、通信手段を用いて、CS生成部701内に設けたレジスタを自動的にポーリングし、レジスタに格納されているデータをメモリ制御部702に取込むことができる構成に採用できる方法である。
メモリ制御部702は、トリガーとする特定の内部レジスタにおけるデータの変化を検出する手段を持ち、検出結果に従い、アクセスログの取得動作を開始/停止する。なお、メモリ制御部702は、上記実施形態3に示したように、内部レジスタにおけるデータの変化を検出する手段を持っているので、ここでは、特定の内部レジスタであるか、否かを判断する手段を付加して持つ。
"Start / stop control (3)"
The log acquisition operation start / stop control according to the present embodiment is a form adapted to the internal register log acquisition operation, and is a method of performing start / stop control using a data change in a specific internal register in the device as a trigger. take. In this method, as in the device shown in FIG. 6, a register provided in the CS generation unit 701 is automatically polled using communication means, and data stored in the register is transferred to the memory control unit 702. It is a method that can be adopted in a configuration that can be included.
The memory control unit 702 has means for detecting a change in data in a specific internal register serving as a trigger, and starts / stops an access log acquisition operation according to the detection result. Note that, as shown in the third embodiment, the memory control unit 702 has a means for detecting a change in data in the internal register, so here, it is determined whether or not it is a specific internal register. Have additional means.

トリガーとする特定の内部レジスタにおけるデータの変化は、例えば、CS生成部701のレジスタに、特定の内部レジスタのアドレス、及び開始/停止制御の動作種別等の設定データを書込むことにより、設定する。
レジスタの設定は、CS生成部701のレジスタのデータをポーリングする時に、変化が検出されたレジスタが、設定された特定の内部レジスタに該当するか、否かを判断するために参照される。また、レジスタの上記設定データを書換えることで、ログの取得動作の開始/停止動作を変更することができる。
Data change in a specific internal register as a trigger is set by, for example, writing setting data such as the address of the specific internal register and the operation type of start / stop control in the register of the CS generation unit 701 .
The register setting is referred to in order to determine whether or not the register in which the change is detected corresponds to the set specific internal register when polling the register data of the CS generation unit 701. Further, the start / stop operation of the log acquisition operation can be changed by rewriting the setting data of the register.

また、図6の構成のように、CPUアクセスログ、内部信号のログ、及び内部レジスタのログを取得できる場合には、予めどのログ取得動作に開始/停止制御を適用するかを設定しておくことで、動作を最適化できる。この設定は、CPUアクセスログ、内部信号のログ、及び内部レジスタのログのいずれか、又はこれらのログのうちの複数のログに適用してもよい。
なお、トリガーとなった特定の内部レジスタにおけるデータの変化は、この変化によりログ取得動作の開始/停止制御が行われるが、いずれの場合にも、ログとして取得しておくことが望ましい。
上記の制御によって、必要なタイミングを逸することなく、ログ取得動作の開始/停止を行うことができ、また、不要な動作による処理負担やリソースの無駄使いをなくすことで、パフォーマンスの向上を図ることができる。
Also, as in the arrangement of FIG. 6, when the CPU access log, the internal signals of the log, and the log of the internal registers can be acquired is previously set whether to apply the start / stop control to advance any logging operation Therefore, the operation can be optimized. This setting may be applied to any of the CPU access log, the internal signal log, and the internal register log, or to a plurality of logs among these logs.
Note that the change in data in a specific internal register that is a trigger controls the start / stop of the log acquisition operation by this change. In any case, it is desirable to acquire the data as a log.
With the above control, the log acquisition operation can be started / stopped without losing the necessary timing, and the performance can be improved by eliminating the processing load and waste of resources due to unnecessary operations. be able to.

本発明の実施形態に係る半導体デバイスの概略構成を示す図である。It is a figure showing a schematic structure of a semiconductor device concerning an embodiment of the present invention. アクセスログに係る動作を行う半導体デバイス(図1、参照)内のアドレスデコーダの1実施形態を示す図である。It is a figure which shows one Embodiment of the address decoder in the semiconductor device (refer FIG. 1) which performs the operation | movement which concerns on an access log. フォーマット化されたログデータの1例を示す図である。It is a figure which shows an example of the formatted log data. CPUライトアクセスのアクセスログ取得動作におけるタイミングチャートを示す図である。It is a figure which shows the timing chart in the access log acquisition operation | movement of CPU write access. CPUリードアクセスのアクセスログ取得動作におけるタイミングチャートを示す図である。It is a figure which shows the timing chart in the access log acquisition operation | movement of CPU read access. アクセスログに係る動作を行う半導体デバイス(図1、参照)内のアドレスデコーダの他の実施形態を示す図である。It is a figure which shows other embodiment of the address decoder in the semiconductor device (refer FIG. 1) which performs the operation | movement which concerns on an access log.

符号の説明Explanation of symbols

100・・半導体デバイス、101・・CPU(Central Processing Unit)、102・・CPUI/F(インターフェース)、103,200,700・・アドレスデコーダ、104〜108・・モジュールA〜E、109・・内蔵メモリ、110・・シリアルコントローラ、111・・ターミナルPC、201,701・・CS生成部、202,702・・メモリ制御部。 100 .. Semiconductor device, 101... CPU (Central Processing Unit), 102... CPU I / F (interface), 103, 200, 700 .. Address decoder, 104 to 108 .. Modules A to E, 109. Memory 110, serial controller 111, terminal PC 201, 701, CS generation unit 202, 702, memory control unit

Claims (12)

CPUによってアクセスされるモジュールと、前記モジュールに対するCPUアクセスをデコードするアドレスデコーダと、前記モジュールに対するアクセスにより生じるアクセスログを記憶するメモリと、前記CPUアクセスの入力を受け、該CPUアクセスのアクセスログを取得するとともに、取得したアクセスログの前記メモリに対するアクセスを制御するメモリ制御部を有する半導体デバイスであって、
前記メモリ制御部は、入力されたCPUアクセスの種類を検出し、検出結果によりアクセスログの要/不要を判断し、判断に従って前記アクセスログの取得、前記メモリに対するアクセスの各動作を制御することを特徴とする半導体デバイス。
A module accessed by the CPU, an address decoder that decodes the CPU access to the module, a memory that stores an access log generated by accessing the module, and an input log of the CPU access, and obtains an access log of the CPU access And a semiconductor device having a memory control unit for controlling access to the memory of the acquired access log,
The memory control unit detects the type of CPU access input, determines whether the access log is necessary or unnecessary based on the detection result, and controls each operation of acquiring the access log and accessing the memory according to the determination. A featured semiconductor device.
請求項1に記載された半導体デバイスにおいて、
前記メモリ制御部は、アクセスログの要/不要を、入力されたCPUアクセスにおける所定のアドレス及びリード/ライト種別の少なくとも一方の検出にもとづいて判断することを特徴とする半導体デバイス。
The semiconductor device according to claim 1, wherein
The memory control unit determines whether or not an access log is necessary based on detection of at least one of a predetermined address and read / write type in an input CPU access.
前記モジュールの動作状態を示す内部信号を前記メモリ制御部に入力するようにした請求項1又は2に記載された半導体デバイスにおいて、
前記メモリ制御部は、前記モジュールから入力される内部信号の変化を検出し、変化が検出された内部信号を当該モジュールのログとして取得することを特徴とする半導体デバイス。
The semiconductor device according to claim 1, wherein an internal signal indicating an operation state of the module is input to the memory control unit.
The memory control unit detects a change in an internal signal input from the module, and acquires the internal signal in which the change is detected as a log of the module.
前記メモリ制御部から前記モジュールの内部レジスタのデータを取得可能とした請求項1乃至3のいずれかに記載された半導体デバイスにおいて、
前記メモリ制御部は、所定のタイミングで取得した前記モジュールの内部レジスタのデータを当該モジュールのログとして取得することを特徴とする半導体デバイス。
4. The semiconductor device according to claim 1, wherein data of an internal register of the module can be acquired from the memory control unit. 5.
The memory control unit acquires the data of the internal register of the module acquired at a predetermined timing as a log of the module.
請求項1乃至4のいずれかに記載された半導体デバイスにおいて、
前記メモリ制御部は、入力されたCPUアクセスにおける特定のレジスタに対するアクセスを検出し、検出結果により前記アクセスログ、前記内部信号のログ、前記内部レジスタのログの少なくとも1ログの取得の開始又は停止を判断し、判断に従って、ログの取得を開始又は停止させることを特徴とする半導体デバイス。
The semiconductor device according to claim 1,
The memory control unit detects an access to a specific register in the input CPU access, and starts or stops acquisition of at least one log of the access log, the internal signal log, and the internal register log according to a detection result. A semiconductor device characterized by determining and starting or stopping log acquisition according to the determination.
請求項3に記載された半導体デバイスにおいて、
前記メモリ制御部は、入力された特定の内部信号の変化を検出し、検出結果により前記アクセスログ、前記内部信号のログ、前記内部レジスタのログの少なくとも1ログの取得の開始又は停止を判断し、判断に従って、ログの取得を開始又は停止させることを特徴とする半導体デバイス。
The semiconductor device according to claim 3, wherein
The memory control unit detects a change in a specific input internal signal, and determines whether to start or stop acquiring at least one of the access log, the internal signal log, and the internal register log based on a detection result. A semiconductor device characterized in that log acquisition is started or stopped according to the judgment.
請求項4に記載された半導体デバイスにおいて、
前記メモリ制御部は、取得した特定の内部レジスタにおけるデータの変化を検出し、検出結果により前記アクセスログ、前記内部信号のログ、前記内部レジスタのログの少なくとも1ログの取得の開始又は停止を判断し、判断に従って、ログの取得を開始又は停止させることを特徴とする半導体デバイス。
The semiconductor device according to claim 4,
The memory control unit detects a data change in the acquired specific internal register, and determines whether to start or stop acquiring at least one log of the access log, the internal signal log, and the internal register log based on the detection result And starting or stopping log acquisition according to the determination.
請求項1乃至7のいずれかに記載された半導体デバイスと、前記半導体デバイスの有する前記モジュールに対しCPUアクセスを行うCPUを備えた電子装置。   An electronic apparatus comprising: the semiconductor device according to claim 1; and a CPU that performs CPU access to the module included in the semiconductor device. 半導体デバイスが有するモジュールに対するアクセスのアクセスログを取得するアクセスログ取得方法であって、
前記半導体デバイスに入力された前記モジュールに対するCPUアクセスの種類を検出する工程と、
検出されたCPUアクセスの種類によりアクセスログの要/不要を判断する工程と、
アクセスログの要/不要の判断に従って、アクセスログの取得動作を制御する工程を有することを特徴とするアクセスログ取得方法。
An access log acquisition method for acquiring an access log of access to a module of a semiconductor device,
Detecting a type of CPU access to the module input to the semiconductor device;
Determining whether the access log is necessary / unnecessary according to the type of CPU access detected;
An access log acquisition method comprising a step of controlling an access log acquisition operation in accordance with determination of necessity / unnecessity of an access log.
請求項9に記載されたアクセスログ取得方法において、
前記アクセスログの要/不要を判断する工程は、入力されたCPUアクセスにおける所定のアドレス及びリード/ライト種別の少なくとも一方の検出にもとづいて、アクセスログの要/不要を判断することを特徴とするアクセスログ取得方法。
In the access log acquisition method according to claim 9,
The step of determining necessity / unnecessity of the access log is characterized by determining necessity / unnecessity of the access log based on detection of at least one of a predetermined address and read / write type in the input CPU access. Access log acquisition method.
請求項9又は10に記載されたアクセスログ取得方法において、
前記モジュールの動作状態を示す内部信号を入力する工程と、
モジュールから入力される内部信号の変化を検出する工程と、
変化が検出された内部信号を当該モジュールのログとして取得する工程を有することを特徴とするアクセスログ取得方法。
In the access log acquisition method according to claim 9 or 10,
Inputting an internal signal indicating the operating state of the module;
Detecting a change in an internal signal input from the module;
An access log acquisition method comprising: acquiring an internal signal in which a change is detected as a log of the module.
請求項9乃至11のいずれかに記載されたアクセスログ取得方法において、
前記モジュールの内部レジスタのデータを所定のタイミングで取得する工程と、
取得した前記モジュールの内部レジスタのデータを当該モジュールのログとして取得する工程を有することを特徴とするアクセスログ取得方法。
The access log acquisition method according to any one of claims 9 to 11,
Obtaining data of the internal register of the module at a predetermined timing;
An access log acquisition method comprising: acquiring the acquired internal register data of the module as a log of the module.
JP2007128999A 2007-05-15 2007-05-15 Semiconductor device, electronic apparatus, and access log acquisition method Pending JP2008287319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007128999A JP2008287319A (en) 2007-05-15 2007-05-15 Semiconductor device, electronic apparatus, and access log acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007128999A JP2008287319A (en) 2007-05-15 2007-05-15 Semiconductor device, electronic apparatus, and access log acquisition method

Publications (1)

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

Family

ID=40147007

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007128999A Pending JP2008287319A (en) 2007-05-15 2007-05-15 Semiconductor device, electronic apparatus, and access log acquisition method

Country Status (1)

Country Link
JP (1) JP2008287319A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010205194A (en) * 2009-03-06 2010-09-16 Fujitsu Ltd Control circuit, information processing apparatus, and method for controlling information processing apparatus
EP2367112A1 (en) 2010-03-18 2011-09-21 Ricoh Company, Ltd. Information processing apparatus, image forming apparatus, and information processing program
JP2013178638A (en) * 2012-02-28 2013-09-09 Ricoh Co Ltd Image processing circuit, image processing device, and method for controlling image processing circuit
JP2015005124A (en) * 2013-06-20 2015-01-08 株式会社リコー Device for electronic equipment and electronic equipment equipped with said device
JP2017033540A (en) * 2015-07-29 2017-02-09 株式会社リコー Electronic apparatus, log storage method, and image forming apparatus
US9910757B2 (en) 2015-01-23 2018-03-06 Ricoh Company, Ltd. Semiconductor device, log acquisition method and electronic apparatus
JP2018097624A (en) * 2016-12-14 2018-06-21 キャッツ株式会社 Device, management server, information collection system, and information collection method
JP2019164659A (en) * 2018-03-20 2019-09-26 株式会社東芝 Information processing device, information processing method and program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010205194A (en) * 2009-03-06 2010-09-16 Fujitsu Ltd Control circuit, information processing apparatus, and method for controlling information processing apparatus
EP2367112A1 (en) 2010-03-18 2011-09-21 Ricoh Company, Ltd. Information processing apparatus, image forming apparatus, and information processing program
US8874959B2 (en) 2010-03-18 2014-10-28 Ricoh Company, Limited Information processing apparatus, image forming apparatus, and information processing program
JP2013178638A (en) * 2012-02-28 2013-09-09 Ricoh Co Ltd Image processing circuit, image processing device, and method for controlling image processing circuit
JP2015005124A (en) * 2013-06-20 2015-01-08 株式会社リコー Device for electronic equipment and electronic equipment equipped with said device
US9910757B2 (en) 2015-01-23 2018-03-06 Ricoh Company, Ltd. Semiconductor device, log acquisition method and electronic apparatus
JP2017033540A (en) * 2015-07-29 2017-02-09 株式会社リコー Electronic apparatus, log storage method, and image forming apparatus
JP2018097624A (en) * 2016-12-14 2018-06-21 キャッツ株式会社 Device, management server, information collection system, and information collection method
JP2019164659A (en) * 2018-03-20 2019-09-26 株式会社東芝 Information processing device, information processing method and program

Similar Documents

Publication Publication Date Title
JP2008287319A (en) Semiconductor device, electronic apparatus, and access log acquisition method
RU2421782C2 (en) Circuit of bus signals control and circuit of signals processing with circuit of bus signals control
US5862148A (en) Microcontroller with improved debug capability for internal memory
US10911259B1 (en) Server with master-slave architecture and method for reading and writing information thereof
CN116089343A (en) AXI-based data storage method, device, storage medium and equipment
US6484273B1 (en) Integrated EJTAG external bus interface
US20060178804A1 (en) Control device for a motor vehicle and communication method therefor
CN113533941B (en) Chip interface testing method and device, computer equipment and storage medium
JP3202700B2 (en) Signal processing device
US20170103797A1 (en) Calibration method and device for dynamic random access memory
CN110765060B (en) MDIO bus-to-parallel bus conversion method and device, equipment and medium
JPH11282709A (en) In-circuit emulator
JP6127766B2 (en) Device for electronic equipment and electronic equipment equipped with said device
US7689864B2 (en) Processor comprising an integrated debugging interface controlled by the processing unit of the processor
JP2992284B1 (en) Signal processing device
JP7516974B2 (en) DEVICE FOR ELECTRONIC APPLICATION, CONTROL METHOD FOR ELECTRONIC APPLICATION DEVICE, AND CONTROL PROGRAM FOR ELECTRONIC APPLICATION DEVICE
US20070028010A1 (en) Peripheral device utilization monitoring
CN111625411A (en) Semiconductor device and debug system
JP6869823B2 (en) Arithmetic logic unit
US6738853B1 (en) Integrated circuit with built-in processor and internal bus observing method
JP4899620B2 (en) Bus trace method
JPH1040130A (en) Microcomputer
JPH06202715A (en) State change detecting and recording circuit
JP2004348635A (en) Method for developing program
JPH11232134A (en) System evaluation device and emulator