JP5710543B2 - Semiconductor integrated circuit - Google Patents

Semiconductor integrated circuit Download PDF

Info

Publication number
JP5710543B2
JP5710543B2 JP2012101093A JP2012101093A JP5710543B2 JP 5710543 B2 JP5710543 B2 JP 5710543B2 JP 2012101093 A JP2012101093 A JP 2012101093A JP 2012101093 A JP2012101093 A JP 2012101093A JP 5710543 B2 JP5710543 B2 JP 5710543B2
Authority
JP
Japan
Prior art keywords
interrupt
event information
integrated circuit
semiconductor integrated
cpu
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.)
Expired - Fee Related
Application number
JP2012101093A
Other languages
Japanese (ja)
Other versions
JP2013228924A (en
Inventor
正隆 竹村
正隆 竹村
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2012101093A priority Critical patent/JP5710543B2/en
Publication of JP2013228924A publication Critical patent/JP2013228924A/en
Application granted granted Critical
Publication of JP5710543B2 publication Critical patent/JP5710543B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Description

本発明は、複写機やプリンタ等の画像形成装置の動作を制御する半導体集積回路(ASIC:Application Specific Integrated Circuit)に関し、特にCPU(Central Processing Unit)を内蔵するSoC(System On Chip)と称される半導体集積回路に関する。   The present invention relates to a semiconductor integrated circuit (ASIC: Application Specific Integrated Circuit) that controls the operation of an image forming apparatus such as a copying machine or a printer, and is particularly referred to as a SoC (System On Chip) incorporating a CPU (Central Processing Unit). The present invention relates to a semiconductor integrated circuit.

近年、プリンタ等の画像形成装置の動作を制御する半導体集積回路は、コストやパフォーマンスの視点より、CPUを内蔵するSoCとして開発されることが多くなっている。内蔵するCPUの選定には、アーキテクチャレベル、動作周波数、キャッシュサイズといった様々なパラメータを検討しなければならず、半導体集積回路の開発段階ではCPUの使用率を正確に見積ることが困難である。従って、安全を見て、オーバースペックのCPUが選定されることが多く、性能とコスト、消費電力といった視点で最適なCPUが選択されていなかった場合、何れかに無駄が生じることになる。   In recent years, a semiconductor integrated circuit that controls the operation of an image forming apparatus such as a printer is often developed as a SoC with a built-in CPU from the viewpoint of cost and performance. In selecting a built-in CPU, various parameters such as architecture level, operating frequency, and cache size must be considered, and it is difficult to accurately estimate the CPU usage rate in the development stage of a semiconductor integrated circuit. Therefore, in view of safety, an over-spec CPU is often selected, and if an optimum CPU is not selected from the viewpoint of performance, cost, and power consumption, waste occurs in any one of them.

そこで、半導体集積回路に内蔵されたCPUの動作率を実際に測定し、測定結果を次回の開発時に反映させ、オーバースペックにならない適切なCPUの選定に役立てることが考えられている。半導体集積回路に内蔵されたCPUの動作率の測定方法としては、動作クロックや供給される電源により計測する方法(例えば、特許文献1参照)や、アイドルスレッド等の各プログラム(タスク/スレッド)の動作状態により計測する方法が存在する。   Therefore, it is considered that the operation rate of the CPU built in the semiconductor integrated circuit is actually measured, and the measurement result is reflected in the next development, which is useful for selecting an appropriate CPU that does not become over-spec. As a method for measuring the operation rate of the CPU built in the semiconductor integrated circuit, there is a method of measuring with an operation clock or a supplied power supply (for example, see Patent Document 1), and each program (task / thread) such as an idle thread. There is a method of measuring depending on the operating state.

特開2008−262370号公報JP 2008-262370 A

しかしながら、動作クロックや供給される電源により計測する方法は、半導体集積回路の外部から間接的にCPUの動作率を推定するものであり、CPUの実際の動作率を詳細なレベルで計測することができない。また、アイドルスレッド等の各プログラム(タスク/スレッド)の動作状態により計測する方法は、OSに依存するものであり、非対応なOSでは測定不可となると共に、ソフトウェアが満足に動作していない開発初期においては、動作率を計測することは不可能である。   However, the method of measuring by the operation clock or the supplied power supply estimates the CPU operation rate indirectly from the outside of the semiconductor integrated circuit, and the actual operation rate of the CPU can be measured at a detailed level. Can not. In addition, the method of measuring depending on the operating state of each program (task / thread) such as an idle thread is dependent on the OS, and cannot be measured on an unsupported OS, and the software does not operate satisfactorily. In the initial stage, it is impossible to measure the operation rate.

本発明は、かかる点に鑑みてなされたものであり、その目的とするところは、ソフトウェアに依存することなく、内属されたCPUの実際の動作率を詳細なレベル記録することができる半導体集積回路を提供することにある。   The present invention has been made in view of such a point, and an object of the present invention is to provide a semiconductor integrated circuit capable of recording an actual operation rate of an internal CPU in a detailed level without depending on software. It is to provide a circuit.

本発明の半導体集積回路は、CPUを内蔵した半導体集積回路であって、割り込み処理に関連する前記CPUのバストランザクションを検出することで、前記割り込み処理に要する時間と割り込み要因とを記録したイベント情報を生成するイベント情報生成手段と、該イベント情報生成手段によって生成された前記イベント情報をログ情報として記憶する結果読み出し用記憶手段とを具備し、前記イベント情報生成手段は、割り込みベクタへのアクセスを前記バストランザクションとして検出することを特微とする。
さらに、本発明の半導体集積回路において、前記イベント情報生成手段は、割り込み要因が保持されている割り込み要因保持レジスタへのアクセスを前記バストランザクションとして検出しても良い。
さらに、本発明の半導体集積回路において、前記イベント情報生成手段は、割り込み要因を取得するための前記割り込み要因保持レジスタへのアクセスと、割り込み要因をクリアするための前記割り込み要因保持レジスタへのアクセスとを前記バストランザクションとして検出しても良い
The semiconductor integrated circuit according to the present invention is a semiconductor integrated circuit having a built-in CPU, and event information in which a time required for the interrupt processing and an interrupt factor are recorded by detecting a bus transaction of the CPU related to the interrupt processing. Event information generating means, and a result reading storage means for storing the event information generated by the event information generating means as log information. The event information generating means provides access to the interrupt vector. The feature is that the bus transaction is detected .
Furthermore, in the semiconductor integrated circuit of the present invention, the event information generation means may detect an access to an interrupt factor holding register holding an interrupt factor as the bus transaction.
Further, in the semiconductor integrated circuit of the present invention, the event information generation means includes an access to the interrupt factor holding register for acquiring an interrupt factor, and an access to the interrupt factor holding register for clearing the interrupt factor. May be detected as the bus transaction .

本発明によれば、ソフトウェアに依存することなく、CPUのバストランザクションレベルでの動作状態を把握することで、内属されたCPUの実際の動作率を詳細なレベルでイベント情報として記録することができ、得られたイベント情報を次回の半導体集積回路の開発に展開することで、オーバースペックにならない必要十分なCPUを選定することが可能にるという効果を奏する。   According to the present invention, it is possible to record the actual operation rate of an internal CPU as event information at a detailed level by grasping the operation state of the CPU at the bus transaction level without depending on software. The obtained event information can be expanded to the next development of the semiconductor integrated circuit, so that it is possible to select a necessary and sufficient CPU that does not become over-specification.

本発明に係る半導体集積回路の実施の形態の概略構成を示すブロック図である。1 is a block diagram showing a schematic configuration of an embodiment of a semiconductor integrated circuit according to the present invention. 図1に示す結果読み出し用レジスタに記憶されるイベント情報例を示す図である。It is a figure which shows the example of event information memorize | stored in the register for a result reading shown in FIG. 本発明に係る半導体集積回路の実施の形態における動作率計測動作を説明するための説明図である。It is explanatory drawing for demonstrating the operation rate measurement operation | movement in embodiment of the semiconductor integrated circuit which concerns on this invention.

次に、本発明の実施の形態を、図面を参照して具体的に説明する。
本実施の形態の半導体集積回路1は、複写機やプリンタ等の画像形成装置の動作を制御するASICであり、図1を参照すると、CPU2と、ROM(Read Only Memory)3と、RAM(Random Access Memory)4と、モジュール51、52〜5nと、割り込みコントローラー6と、動作率測定回路7とがバス8で接続されている。また、モジュール51、52〜5nと割り込みコントローラー6とは、それぞれ割り込み信号線91、92〜9nによって接続され、割り込みコントローラー6とCPU2とが割り込み信号線10によって接続されている。
Next, embodiments of the present invention will be specifically described with reference to the drawings.
A semiconductor integrated circuit 1 of the present embodiment is an ASIC that controls the operation of an image forming apparatus such as a copying machine or a printer. Referring to FIG. 1, a CPU 2, a ROM (Read Only Memory) 3, a RAM (Random) Access Memory) 4, modules 51, 52 to 5 n, interrupt controller 6, and operation rate measurement circuit 7 are connected by a bus 8. The modules 51, 52 to 5n and the interrupt controller 6 are connected by interrupt signal lines 91 and 92 to 9n, respectively, and the interrupt controller 6 and the CPU 2 are connected by an interrupt signal line 10.

ROM3には、CPU2が動作するための制御プログラムが記憶されている。CPU2は、ROM3に記憶されている制御プログラムを読み出してRAM4に展開させ、RAM4に展開された制御プログラムに基づいて動作を実行する。また、RAM4に展開された制御プログラムには、割り込み処理に対応するためのプログラムとして、割り込みベクタと、割り込みベクタによって、その開始アドレスが指定された割り込み処理ルーチンとが存在している。   The ROM 3 stores a control program for operating the CPU 2. The CPU 2 reads the control program stored in the ROM 3 and develops it in the RAM 4, and executes an operation based on the control program developed in the RAM 4. In addition, the control program developed in the RAM 4 includes an interrupt vector and an interrupt processing routine whose start address is designated by the interrupt vector as a program for handling interrupt processing.

モジュール51、52〜5nは、HDDコントローラー等の各種機能ブロックであり、モジュール51、52〜5nにおいて割り込み要因が発生すると、割り込み信号線91、92〜9nを介してモジュール51、52〜5nから割り込みコントローラー6への割り込み信号がアサートされる。   The modules 51 and 52 to 5n are various functional blocks such as an HDD controller. When an interrupt factor is generated in the modules 51 and 52 to 5n, the modules 51 and 52 to 5n are interrupted via the interrupt signal lines 91 and 92 to 9n. An interrupt signal to the controller 6 is asserted.

割り込みコントローラー6は、割り込み優先度の制御や、モジュール51、52〜5nからの割り込みの禁止/許可を制御し、割り込みが許可されているモジュール51、52〜5nからの割り込み信号がアサートされると、割り込み信号線10を介してCPU2への割り込み信号をアサートする。また、割り込みコントローラー6には、割り込み信号がアサートされたモジュール51、52〜5nを割り込み要因として保持する割り込み要因保持レジスタ61が設けられている。   The interrupt controller 6 controls interrupt priority and prohibits / permits interrupts from the modules 51 and 52 to 5n. When the interrupt signal from the modules 51 and 52 to 5n to which the interrupt is permitted is asserted, Then, an interrupt signal to the CPU 2 is asserted via the interrupt signal line 10. The interrupt controller 6 is provided with an interrupt factor holding register 61 for holding the modules 51, 52 to 5n for which the interrupt signal is asserted as interrupt factors.

動作率測定回路7は、CPU2の動作率を計測するための回路であり、アドレス情報格納レジスタ71と、比較回路72と、時刻をカウントするタイマー73と、結果読み出し用レジスタ74とを備えている。   The operation rate measurement circuit 7 is a circuit for measuring the operation rate of the CPU 2 and includes an address information storage register 71, a comparison circuit 72, a timer 73 for counting time, and a result reading register 74. .

アドレス情報格納レジスタ71は、アドレス情報を記憶する記憶手段であり、RAM4に展開されている割り込みベクタのアドレスと、割り込みコントローラー6に設けられた割り込み要因保持レジスタ61のアドレスとが記憶されている。   The address information storage register 71 is a storage means for storing address information, and stores the address of the interrupt vector developed in the RAM 4 and the address of the interrupt factor holding register 61 provided in the interrupt controller 6.

比較回路72は、バス8に接続されており、バス8上のバストランザクションを監視し、アドレス情報格納レジスタ71に記憶されている割り込みベクタのアドレスに一致するアドレス情報を有するバストランザクションの発生と、アドレス情報格納レジスタ71に記憶されている割り込み要因保持レジスタ61のアドレスに一致するアドレス情報を有するバストランザクションの発生とを検出する。また、比較回路72は、イベント情報生成手段として機能し、一連の割り込み処理に要する時間を記録したイベント情報を生成し、生成したイベント情報を結果読み出し用レジスタ74に記憶させる。   The comparison circuit 72 is connected to the bus 8, monitors a bus transaction on the bus 8, and generates a bus transaction having address information matching the address of the interrupt vector stored in the address information storage register 71. The occurrence of a bus transaction having address information matching the address of the interrupt factor holding register 61 stored in the address information storage register 71 is detected. The comparison circuit 72 functions as event information generation means, generates event information that records the time required for a series of interrupt processing, and stores the generated event information in the result reading register 74.

結果読み出し用レジスタ74は、イベント情報を記憶する記憶手段であり、結果読み出し用レジスタ74に記憶されたイベント情報は、図示しない外部端子やプログラムにより半導体集積回路1外に読み出し可能に構成されている。また、比較回路72によって生成され、結果読み出し用レジスタ74に記憶されるイベント情報は、図2(a)に示すように、割り込み要因(要因A)が記入される割り込み要因欄81と、割り込みベクタへのアクセス時刻(時刻B)がベクタアクセス時刻としてタイムスタンプされるベクタアクセス時刻欄82と、割り込み要因を取得するために行われる1回目の割り込み要因保持レジスタ61へのアクセス時刻(時刻C)が第1レジスタアクセス時刻としてタイムスタンプされる第1レジスタアクセス時刻欄83と、割り込み要因をクリアするために行われる2回目の割り込み要因保持レジスタ61へのアクセス時刻(時刻D)が第2レジスタアクセス時刻としてタイムスタンプされる第2レジスタアクセス時刻欄84とからなり、1回の割り込み処理に対して、1つのイベント情報が生成される。   The result reading register 74 is storage means for storing event information, and the event information stored in the result reading register 74 is configured to be read out of the semiconductor integrated circuit 1 by an external terminal or a program (not shown). . The event information generated by the comparison circuit 72 and stored in the result reading register 74 includes an interrupt factor column 81 in which an interrupt factor (factor A) is written, an interrupt vector, as shown in FIG. The access time (time C) to the interrupt factor holding register 61 for the first time and the vector access time column 82 in which the access time (time B) is time stamped as the vector access time and the interrupt factor is obtained. The first register access time column 83 that is time stamped as the first register access time and the second access time (time D) to the interrupt factor holding register 61 that is performed to clear the interrupt factor are the second register access time. As the second register access time field 84 which is time stamped as The interrupt processing, one event information is generated.

次に、本実施の形態の半導体集積回路1における動作率計測動作について図3を参照して詳細に説明する。   Next, the operation rate measurement operation in the semiconductor integrated circuit 1 of the present embodiment will be described in detail with reference to FIG.

割り込みコントローラー6は、割り込みが許可されているモジュール51、52〜5nからの割り込み信号がアサートされると、割り込み信号線10を介してCPU2への割り込み信号をアサートする(S1)。   The interrupt controller 6 asserts an interrupt signal to the CPU 2 via the interrupt signal line 10 when an interrupt signal from the modules 51, 52 to 5n to which the interrupt is permitted is asserted (S1).

CPU2は、割り込み信号がアサートされると、割り込みを認識し、バス8を介してRAM4に展開された制御プログラムの割り込みベクタにアクセスを行う(S2)。比較回路72は、(S2)の割り込みベクタにアクセスするバストランザクション、すなわち割り込みベクタのアドレスに一致するアドレス情報を有するバストランザクションを検出する。比較回路72は、(S2)のバストランザクションの発生を検出すると、タイマー73から時刻を取得し、取得した時刻をCPU2が割り込みを認識した割り込み認識タイミングとして、ベクタアクセス時刻欄82にタイムスタンプしたイベント情報を生成し、生成したイベント情報を結果読み出し用レジスタ74に記憶させる。   When the interrupt signal is asserted, the CPU 2 recognizes the interrupt and accesses the interrupt vector of the control program developed in the RAM 4 via the bus 8 (S2). The comparison circuit 72 detects a bus transaction that accesses the interrupt vector of (S2), that is, a bus transaction having address information that matches the address of the interrupt vector. When the comparison circuit 72 detects the occurrence of the bus transaction (S2), the comparison circuit 72 acquires the time from the timer 73, and uses the acquired time as the interrupt recognition timing when the CPU 2 recognizes the interrupt, and the event time stamped in the vector access time column 82 Information is generated, and the generated event information is stored in the result reading register 74.

次に、CPU2は、割り込みベクタによりその開始アドレスが指定された割り込み処理ルーチンを起動させ(S3)、割り込み処理ルーチンにより、割り込み要因保持レジスタ61に割り込み要因を取得するためのアクセスを行い(S4)、割り込み要因を取得する(S5)。比較回路72は、(S4)の割り込み要因保持レジスタ61にアクセスするバストランザクション、すなわち割り込み要因保持レジスタ61のアドレスに一致するアドレス情報を有するバストランザクションを検出する。比較回路72は、(S4)のバストランザクションの発生を検出すると、タイマー73から時刻を取得し、取得した時刻をCPU2が割り込み処理を開始した処理開始タイミングとして、結果読み出し用レジスタ74に記憶されたイベント情報の第1レジスタアクセス時刻欄83にタイムスタンプする。また、比較回路72は、(S5)のバストランザクションにより割り込み要因を取得し、取得した割り込み要因を結果読み出し用レジスタ74に記憶されたイベント情報の割り込み要因欄81に記録する。   Next, the CPU 2 activates an interrupt processing routine whose start address is specified by the interrupt vector (S3), and accesses the interrupt factor holding register 61 for acquiring the interrupt factor by the interrupt processing routine (S4). The interrupt factor is acquired (S5). The comparison circuit 72 detects a bus transaction that accesses the interrupt factor holding register 61 (S4), that is, a bus transaction having address information that matches the address of the interrupt factor holding register 61. When the comparison circuit 72 detects the occurrence of the bus transaction (S4), the comparison circuit 72 acquires the time from the timer 73, and the acquired time is stored in the result reading register 74 as the processing start timing when the CPU 2 starts the interrupt processing. Time stamps the first register access time field 83 of the event information. Further, the comparison circuit 72 acquires an interrupt factor by the bus transaction of (S5), and records the acquired interrupt factor in the interrupt factor column 81 of event information stored in the result reading register 74.

次に、CPU2は、取得した割り込み要因の処理を実行し、当該処理が終了すると、割り込み要因保持レジスタ61に割り込み要因をクリアするためのアクセスを行う(S6)。比較回路72は、(S6)の割り込み要因保持レジスタ61にアクセスするバストランザクション、すなわち割り込み要因保持レジスタ61のアドレスに一致するアドレス情報を有するバストランザクションを検出する。比較回路72は、(S6)のバストランザクションの発生を検出すると、タイマー73から時刻を取得し、取得した時刻をCPU2が割り込み処理を終了した処理終了タイミングとして、結果読み出し用レジスタ74に記憶されたイベント情報の第2レジスタアクセス時刻欄84にタイムスタンプする。   Next, the CPU 2 executes the processing of the acquired interrupt factor, and when the processing is completed, the CPU 2 accesses the interrupt factor holding register 61 for clearing the interrupt factor (S6). The comparison circuit 72 detects a bus transaction that accesses the interrupt factor holding register 61 (S6), that is, a bus transaction having address information that matches the address of the interrupt factor holding register 61. When the comparison circuit 72 detects the occurrence of the bus transaction (S6), the comparison circuit 72 acquires the time from the timer 73, and the acquired time is stored in the result reading register 74 as the processing end timing when the CPU 2 ends the interrupt processing. Time stamp the second register access time column 84 of the event information.

以上の割り込み処理に伴う一連の動作により、割り込み要因欄81に(S5)のバストランザクションで取得された割り込み要因が記入され、ベクタアクセス時刻欄82に(S2)のバストランザクションの時刻がタイムスタンプされ、第1レジスタアクセス時刻欄83に(S4)のバストランザクションの時刻がタイムスタンプされ、さらに第2レジスタアクセス時刻欄84に(S6)のバストランザクションの時刻がタイムスタンプされた1つのイベント情報が生成される。このようにして、割り込み処理が行われる毎に、1つのイベント情報が生成され、ログ情報として結果読み出し用レジスタ74に記憶されていく。   Through the series of operations associated with the above interrupt processing, the interrupt factor acquired in the bus transaction (S5) is entered in the interrupt factor column 81, and the time of the bus transaction (S2) is time stamped in the vector access time column 82. Then, one event information is generated in which the time of the bus transaction (S4) is time stamped in the first register access time column 83, and the time of the bus transaction (S6) is time stamped in the second register access time column 84. Is done. In this way, each time an interrupt process is performed, one event information is generated and stored in the result reading register 74 as log information.

結果読み出し用レジスタ74にログ情報として記憶されたイベント情報を、図示しない外部端子やプログラムにより半導体集積回路1外に読み出して解析することで、割り込み処理に要する時間を検証することができ、CPU2の動作状況を知ることが可能となる。   The event information stored as log information in the result reading register 74 is read out from the semiconductor integrated circuit 1 by an external terminal or program (not shown) and analyzed, so that the time required for interrupt processing can be verified. It becomes possible to know the operating status.

なお、本実施の形態では、割り込み処理に伴うバストランザクションが発生した3つの時刻(割り込み認識タイミング、処理開始タイミング及び処理終了タイミング)をイベント情報として記録するように構成したが、割り込み認識タイミング、処理開始タイミング及び処理終了タイミングの内のいずれか2つをイベント情報として記憶するように構成しても一定の効果を得ることができる。   In this embodiment, the three times (interrupt recognition timing, processing start timing and processing end timing) at which a bus transaction associated with interrupt processing occurs are recorded as event information. Even if any two of the start timing and the process end timing are stored as event information, a certain effect can be obtained.

なお、本実施の形態では、割り込み処理に伴うバストランザクションが発生した複数の時刻をイベント情報として記録するように構成したが、各時刻間の時間が応答時間として重要であり、時刻自体の情報は必ずしも必要としない。従って、図2(b)に示すように、割り込み認識タイミングである(S2)の割り込みベクタにアクセスするバストランザクション(時刻B)から、処理開始タイミングである(S4)の割り込み要因保持レジスタ61にアクセスするバストランザクション(時刻C)までの応答時間Xを第1応答時間として記録する第1応答時間欄85と、割り込み認識タイミングである(S2)の割り込みベクタにアクセスするバストランザクション(時刻B)から、処理終了タイミングである(S6)の割り込み要因保持レジスタ61にアクセスするバストランザクション(時刻D)までの応答時間Yを第2応答時間として記録する第2応答時間欄86とを備えたイベント情報を生成するようにしても良い。   In this embodiment, it is configured to record a plurality of times when a bus transaction accompanied by an interrupt process occurs as event information, but the time between each time is important as a response time, and information on the time itself is Not necessarily required. Therefore, as shown in FIG. 2B, the interrupt factor holding register 61 at the processing start timing (S4) is accessed from the bus transaction (time B) that accesses the interrupt vector at the interrupt recognition timing (S2). From the first response time column 85 that records the response time X until the bus transaction (time C) to be performed as the first response time and the bus transaction (time B) that accesses the interrupt vector of (S2) that is the interrupt recognition timing. Event information including a second response time column 86 for recording the response time Y up to the bus transaction (time D) for accessing the interrupt factor holding register 61 (S6), which is the processing end timing, as the second response time is generated. You may make it do.

以上説明したように、本実施の形態によれば、比較回路72は、割り込み処理に関連するCPU2のバストランザクションを検出することで、割り込み処理に要する時間と割り込み要因とを記録したイベント情報を生成し、生成したイベント情報をログ情報として結果読み出しレジスタ74に記憶させる。これにより、ソフトウェアに依存することなく、CPUのバストランザクションレベルでの動作状態を把握することで、内属されたCPUの実際の動作率を詳細なレベルでイベント情報として記録することができる。この結果読み出しレジスタ74にログ情報として記憶されたイベント情報を読み出して、次回の半導体集積回路の開発に展開することで、オーバースペックにならない必要十分なCPUを選定することが可能になると   As described above, according to the present embodiment, the comparison circuit 72 generates event information that records the time required for interrupt processing and the interrupt factor by detecting the bus transaction of the CPU 2 related to the interrupt processing. Then, the generated event information is stored in the result read register 74 as log information. As a result, by grasping the operation state of the CPU at the bus transaction level without depending on software, the actual operation rate of the CPU to which it belongs can be recorded as event information at a detailed level. As a result, by reading the event information stored as log information in the read register 74 and developing it for the next development of the semiconductor integrated circuit, it becomes possible to select a necessary and sufficient CPU that does not become overspec.

さらに、本実施の形態によれば、比較回路72は、割り込み要因を取得するための割り込み要因保持レジスタ61へのアクセスと、割り込み要因をクリアするための割り込み要因保持レジスタ61へのアクセスと、割り込みベクタへのアクセスとをバストランザクションとして検出するように構成されている。これにより、割り込みベクタへのアクセス、割り込みコントローラー6(割り込み要因保持レジスタ61)へのアクセスといった、内部バスアクセスレベルでCPU2の動作状況を記録することができる。   Furthermore, according to the present embodiment, the comparison circuit 72 accesses the interrupt factor holding register 61 for acquiring the interrupt factor, accesses the interrupt factor holding register 61 for clearing the interrupt factor, The access to the vector is detected as a bus transaction. As a result, the operation status of the CPU 2 can be recorded at the internal bus access level such as access to the interrupt vector and access to the interrupt controller 6 (interrupt factor holding register 61).

なお、本発明が上記各実施の形態に限定されず、本発明の技術思想の範囲内において、各実施の形態は適宜変更され得ることは明らかである。   Note that the present invention is not limited to the above-described embodiments, and it is obvious that the embodiments can be appropriately changed within the scope of the technical idea of the present invention.

1 半導体集積回路
2 CPU
3 ROM
4 RAM
6 割り込みコントローラー
7 動作率測定回路
8 バス
10 割り込み信号線
51、52〜5n モジュール
61 割り込み要因保持レジスタ
71 アドレス情報格納レジスタ
72 比較回路
73 タイマー
74 結果読み出し用レジスタ
81 割り込み要因欄
82 ベクタアクセス時刻欄
83 第1レジスタアクセス時刻欄
84 第2レジスタアクセス時刻欄
85 第1応答時間欄
86 第2応答時間欄
91、92〜9n 割り込み信号線
1 Semiconductor integrated circuit 2 CPU
3 ROM
4 RAM
6 Interrupt controller 7 Operation rate measurement circuit 8 Bus 10 Interrupt signal line 51, 52-5n Module 61 Interrupt factor holding register 71 Address information storage register 72 Comparison circuit 73 Timer 74 Result reading register 81 Interrupt factor column 82 Vector access time column 83 First register access time field 84 Second register access time field 85 First response time field 86 Second response time field 91, 92-9n Interrupt signal line

Claims (3)

CPUを内蔵した半導体集積回路であって、
割り込み処理に関連する前記CPUのバストランザクションを検出することで、前記割り込み処理に要する時間と割り込み要因とを記録したイベント情報を生成するイベント情報生成手段と、
該イベント情報生成手段によって生成された前記イベント情報をログ情報として記憶する結果読み出し用記憶手段とを具備し、
前記イベント情報生成手段は、割り込みベクタへのアクセスを前記バストランザクションとして検出することを特微とする半導体集積回路。
A semiconductor integrated circuit incorporating a CPU,
Event information generating means for generating event information that records a time required for the interrupt processing and an interrupt factor by detecting the CPU bus transaction related to the interrupt processing;
A result reading storage means for storing the event information generated by the event information generation means as log information ;
A semiconductor integrated circuit characterized in that the event information generating means detects an access to an interrupt vector as the bus transaction .
前記イベント情報生成手段は、割り込み要因が保持されている割り込み要因保持レジスタへのアクセスを前記バストランザクションとして検出することを特微とする請求項1記載の半導体集積回路。   2. The semiconductor integrated circuit according to claim 1, wherein the event information generation means detects an access to an interrupt factor holding register holding an interrupt factor as the bus transaction. 前記イベント情報生成手段は、割り込み要因を取得するための前記割り込み要因保持レジスタへのアクセスと、割り込み要因をクリアするための前記割り込み要因保持レジスタへのアクセスとを前記バストランザクションとして検出することを特微とする請求項2記載の半導体集積回路。   The event information generating means detects, as the bus transaction, an access to the interrupt factor holding register for acquiring an interrupt factor and an access to the interrupt factor holding register for clearing the interrupt factor. 3. The semiconductor integrated circuit according to claim 2, wherein the semiconductor integrated circuit is fine.
JP2012101093A 2012-04-26 2012-04-26 Semiconductor integrated circuit Expired - Fee Related JP5710543B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012101093A JP5710543B2 (en) 2012-04-26 2012-04-26 Semiconductor integrated circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012101093A JP5710543B2 (en) 2012-04-26 2012-04-26 Semiconductor integrated circuit

Publications (2)

Publication Number Publication Date
JP2013228924A JP2013228924A (en) 2013-11-07
JP5710543B2 true JP5710543B2 (en) 2015-04-30

Family

ID=49676477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012101093A Expired - Fee Related JP5710543B2 (en) 2012-04-26 2012-04-26 Semiconductor integrated circuit

Country Status (1)

Country Link
JP (1) JP5710543B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10254738A (en) * 1997-03-12 1998-09-25 Mitsubishi Electric Corp Emulator device and emulation method
US6154857A (en) * 1997-04-08 2000-11-28 Advanced Micro Devices, Inc. Microprocessor-based device incorporating a cache for capturing software performance profiling data
JP3512603B2 (en) * 1997-09-11 2004-03-31 富士通株式会社 Data processing device
JP2001331343A (en) * 2000-05-18 2001-11-30 Toyota Motor Corp Electronic controller for travelling object, and method for evaluating the electronic controller
US8141044B2 (en) * 2007-11-14 2012-03-20 International Business Machines Corporation Method and system for identifying sources of operating system jitter

Also Published As

Publication number Publication date
JP2013228924A (en) 2013-11-07

Similar Documents

Publication Publication Date Title
JP2012038305A (en) Data processing system having error detection of set information of peripheral device
JP6068879B2 (en) MEMORY SYSTEM, MEMORY DEVICE, INFORMATION PROCESSING DEVICE, AND MEMORY SYSTEM OPERATION METHOD
JP6068878B2 (en) MEMORY SYSTEM, MEMORY DEVICE, INFORMATION PROCESSING DEVICE, MEMORY SYSTEM OPERATION METHOD, AND COMPARISON COMPUTER
JP2008287319A (en) Semiconductor device, electronic device and access log acquisition method
JP4362126B2 (en) Fingerprint data generator, program
JP5710543B2 (en) Semiconductor integrated circuit
WO2012108020A1 (en) Log recording apparatus
US20110107072A1 (en) Method for self-diagnosing system management interrupt handler
JP5982845B2 (en) Trace control apparatus and trace control method
JP2015005124A (en) Device for electronic apparatus, and electronic apparatus mounting the device therein
JP4806577B2 (en) Trace data recording device
JP2003271414A (en) Input/output control device and computer system
TW201117009A (en) Testing method for System Management Bus
JP2017167615A (en) Log acquisition device, computation device, processor, processing method, and program
JP2017199180A (en) Image processing device
JP6090057B2 (en) Status information recording apparatus and program
JP2008234358A (en) Storage device, information processor, and unauthorized writing detection method
JP2006227668A (en) Memory model, program and logic circuit verification method
JP4116414B2 (en) Fingerprint data generator, program
Ikodinovic Methodology for Cycle-Accurate DRAM Performance Analysis
TW410300B (en) Detection method for the storage capacity of high speed cache
JP6202625B2 (en) MPU protection device
JP2007080197A (en) Memory controller
JP2013137832A (en) Log recording device
JP2013105388A (en) Interruption circuit and interruption method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140319

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141125

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150119

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150203

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150304

R150 Certificate of patent or registration of utility model

Ref document number: 5710543

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees