JP6264662B2 - Integrated circuit - Google Patents
Integrated circuit Download PDFInfo
- Publication number
- JP6264662B2 JP6264662B2 JP2015002055A JP2015002055A JP6264662B2 JP 6264662 B2 JP6264662 B2 JP 6264662B2 JP 2015002055 A JP2015002055 A JP 2015002055A JP 2015002055 A JP2015002055 A JP 2015002055A JP 6264662 B2 JP6264662 B2 JP 6264662B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit block
- circuit
- signal
- debug
- output
- 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.)
- Active
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、集積回路に関するものである。 The present invention relates to integrated circuits.
実際の集積回路をデバッグする際には、その集積回路にデバッガーを接続し、集積回路から出力されるデバッグ信号に基づいてデバッガーが、トレースなどを行うことがある。 When debugging an actual integrated circuit, a debugger may be connected to the integrated circuit, and the debugger may perform tracing or the like based on a debug signal output from the integrated circuit.
他方、半導体集積回路の設計の際に、半導体集積回路を模擬するエミュレーターまたはFPGA(Field-Programmable Gate Array)では、セレクターで、模擬すべき論理回路の出力をマスク論理回路の出力に切り替えることで、マスク論理回路の出力で論理回路の電源オフ時の出力状態(ハイインピーダンス状態)を表現するものがある(つまり、論理回路の電源オフ時の状態を模擬している)(例えば特許文献1参照)。 On the other hand, when designing an semiconductor integrated circuit, in an emulator or FPGA (Field-Programmable Gate Array) that simulates the semiconductor integrated circuit, the output of the logic circuit to be simulated is switched to the output of the mask logic circuit by a selector. Some output of the logic circuit expresses the output state (high impedance state) of the logic circuit when the power is turned off (that is, simulates the state of the logic circuit when the power is turned off). .
省電力機能を有するある1つの集積回路は、所定の条件で電源オフされる第1回路ブロックと、その際に電源オフされない第2回路ブロックとを内蔵している。例えば通常モードでは、第1回路ブロックと第2回路ブロックの両方に電源電力が供給され、スリープモードでは、第1回路ブロックへの電源電力の供給が停止され、第2回路ブロックへの電源電力は継続される。 One integrated circuit having a power saving function includes a first circuit block that is powered off under a predetermined condition and a second circuit block that is not powered off at that time. For example, in normal mode, power is supplied to both the first circuit block and the second circuit block. In sleep mode, supply of power to the first circuit block is stopped, and power to the second circuit block is Will continue.
通常、電子機器におけるスリープモードでは、必要最低限の機能のみが動作するため、システム全体を制御するCPU(Central Processing Unit)などのプロセッサーは、第1回路ブロック内に含まれており、デバッグ時に外部のデバッガーとの通信は、第1回路ブロック内のプロセッサーがソフトウェアに従って行う。 Normally, only the minimum necessary functions operate in the sleep mode of an electronic device. Therefore, a processor such as a CPU (Central Processing Unit) that controls the entire system is included in the first circuit block and is externally used during debugging. Communication with the debugger is performed by the processor in the first circuit block according to software.
このように、デバッグ時のデバッガーとの通信は第1回路ブロックによって行われるため、第1回路ブロックを電源オフ状態とした際の動作を外部のデバッガーでデバッグすることは困難である。 As described above, since communication with the debugger at the time of debugging is performed by the first circuit block, it is difficult to debug the operation when the first circuit block is turned off with an external debugger.
また、上述の半導体集積回路の設計では、エミュレーターまたはFPGAという設計環境下での回路構成を示しており、エミュレーターまたはFPGAによって、回路内の所望の位置の信号もトレースすることができるが、実際の集積回路のデバッグでは、そのようなトレースを行うことは困難である。 The above-described semiconductor integrated circuit design shows a circuit configuration in an emulator or FPGA design environment, and a signal at a desired position in the circuit can be traced by the emulator or FPGA. Such traces are difficult to debug in integrated circuit debugging.
本発明は、上記の問題に鑑みてなされたものであり、デバッガーとの通信を行う第1回路ブロックに対する電源電力の供給が所定の動作モードで停止される集積回路の、その動作モードでの動作を、外部のデバッガーでデバックすることを可能にする集積回路を得ることを目的とする。 The present invention has been made in view of the above problems, and an operation in an operation mode of an integrated circuit in which the supply of power to the first circuit block that communicates with the debugger is stopped in a predetermined operation mode. An object of the present invention is to obtain an integrated circuit that can be debugged with an external debugger.
本発明に係る集積回路は、所定の動作モードで電源電力の供給を停止される第1回路ブロックと、前記所定の動作モードで電源電力の供給を停止されずに動作する第2回路ブロックと、前記第1回路ブロックから前記第2回路ブロックへ出力される信号を伝送する第1信号線と、前記第2回路ブロックから前記第1回路ブロックへ出力される信号を伝送する第2信号線と、前記第1信号線上に設けられ、デバッグ時に、出力値を、(a)前記所定の動作モードでの前記第1回路ブロックから前記第2回路ブロックへ入力される信号を模擬した値、および(b)前記第1回路ブロックから出力される信号の値のうちの一方から他方へ切り換えるクランプ回路とを備える。前記第1回路ブロックは、デバッグ時に外部のデバッガーとの通信を行うデバッグ処理部を備える。そして、前記デバッグ処理部は、前記第2信号線で前記第2回路ブロックから伝送されてくる前記信号に基づいて前記第2回路ブロックの状態を示すデバッグ信号を前記デバッガーに送信する。 An integrated circuit according to the present invention includes a first circuit block that stops supply of power in a predetermined operation mode, a second circuit block that operates without stopping supply of power in the predetermined operation mode, A first signal line for transmitting a signal output from the first circuit block to the second circuit block; a second signal line for transmitting a signal output from the second circuit block to the first circuit block; An output value provided on the first signal line at the time of debugging; (a) a value simulating a signal input from the first circuit block to the second circuit block in the predetermined operation mode; and (b And a clamp circuit for switching from one of signal values output from the first circuit block to the other. The first circuit block includes a debug processing unit that communicates with an external debugger during debugging. The debug processing unit transmits a debug signal indicating the state of the second circuit block to the debugger based on the signal transmitted from the second circuit block through the second signal line.
本発明によれば、デバッガーとの通信を行う第1回路ブロックに対する電源電力の供給が所定の動作モードで停止される集積回路の、その動作モードでの動作を、外部のデバッガーでデバックすることを可能にする集積回路を得ることができる。 According to the present invention, the operation in the operation mode of the integrated circuit in which the supply of power to the first circuit block that communicates with the debugger is stopped in the predetermined operation mode is debugged by the external debugger. An integrated circuit that enables it can be obtained.
以下、図に基づいて本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の実施の形態に係る集積回路の構成を示すブロック図である。図1に示す集積回路は、ASIC(Application Specific Integrated Circuit)1である。例えば、ASIC1は、画像形成装置(例えば複合機)などの電子機器に内蔵される。 FIG. 1 is a block diagram showing a configuration of an integrated circuit according to an embodiment of the present invention. The integrated circuit shown in FIG. 1 is an ASIC (Application Specific Integrated Circuit) 1. For example, the ASIC 1 is built in an electronic device such as an image forming apparatus (for example, a multifunction machine).
ASIC1は、ASIC1のデバッグを行う際に、ICE(In-Circuit Emulator)などのデバッガー2を接続される。
The ASIC 1 is connected to a
ASIC1は、第1回路ブロック11および第2回路ブロック12を備えるICチップである。第1回路ブロック11および第2回路ブロック12は、それぞれ、電子機器の各種機能を実現する回路を含んでいる。
The ASIC 1 is an IC chip including a
第1回路ブロック11は、所定の動作モード(例えばスリープモード)で電源電力の供給を停止される。第2回路ブロック12は、その所定の動作モード(例えばスリープモード)で電源電力の供給を停止されずに動作する。
The
例えば、第1回路ブロック11は、ASIC1およびASIC1を内蔵する電子機器の内部デバイスを制御するコントローラー機能、データ処理機能などの回路を含んでいる。
For example, the
また、例えば、第2回路ブロック12は、ユーザー操作、データ通信などの待ち受けが必要な機能の回路(ネットワークインターフェイス、操作パネルの制御回路など)を含んでおり、第1回路ブロック11は、そのような機能の回路を含んでいない。
In addition, for example, the
第1回路ブロック11と第2回路ブロック1との間の通信は、信号線13,14で行われる。信号線13は、第1回路ブロック11から第2回路ブロック12へ出力される信号を伝送する。信号線14は、第2回路ブロック12から第1回路ブロック11へ出力される信号を伝送する。
Communication between the
各信号線13上にはクランプ回路15が設けられている。クランプ回路15は、デバッグ時に、そのクランプ回路15の出力値を、(a)上述の所定の動作モードでの第1回路ブロック11から第2回路ブロック12へ入力される信号を模擬した値、および(b)第1回路ブロック11から出力される信号の値のうちの一方から他方へ切り換える。つまり、クランプ回路15は、第1回路ブロック11の電源オフを模擬する期間において、上述の所定の動作モードでの第1回路ブロック11から第2回路ブロック12へ入力される信号を模擬した値を、第1回路ブロック11の出力信号の値の代わりにする。
A
なお、非デバッグ時(つまり、ASIC1の通常動作時)においては、クランプ回路15は、常に、第1回路ブロック11から出力される信号の値をそのまま出力する。
Note that, during non-debugging (that is, during normal operation of the ASIC 1), the
そして、第1回路ブロック11は、デバッグ時に外部のデバッガー2との通信を行うデバッグ処理部31を備える。この実施の形態では、第1回路ブロック11は、CPU21およびインターフェイス22を備え、CPU21は、所定のプログラムに従ってデバッグ処理部31として動作し、デバッグ処理部31は、インターフェイス22を使用して端子16に接続されているデバッガー2と通信する。なお、クランプ回路17は、非デバッグ時に、第1回路ブロック11から端子16への出力を遮断する。
The
デバッグ処理部31は、信号線14で第2回路ブロック12から伝送されてくる信号を検出し、検出した信号に基づいて第2回路ブロック12の状態を示すデバッグ信号をデバッガー2に送信する。
The
制御回路18は、クランプ回路15,17を制御する。制御回路18は、デバッグ時に、所定のタイミングでクランプ回路15の出力値を、(a)所定の動作モードでの第1回路ブロック11から第2回路ブロック12へ入力される信号を模擬した値、および(b)第1回路ブロック11から出力される信号の値のうちの一方から他方へ切り換える。そして、デバッグ処理部31は、そのクランプ回路15の出力値の切換後に信号線14で第2回路ブロック12から伝送されてくる信号に基づいて第2回路ブロック12の状態を示すデバッグ信号をデバッガー2に送信する。
The
なお、第2回路ブロック12にはデバッグ信号を出力する機能はない。
Note that the
次に、デバッグ時のASIC1の動作について説明する。図2は、図1に示すASIC1のデバッグ時の動作について説明するフローチャートである。
Next, the operation of the
ASIC1のデバッグ時には、デバッガー2が、ASIC1の端子16に接続され、制御回路18は、クランプ回路17を制御して、第1回路ブロック11がデバッグ信号を端子16から出力可能にする。
When debugging the
そして、制御回路18は、例えばデバッグ処理部31またはデバッガー2により指示されたタイミングで、クランプ回路15の出力値を、第1回路ブロック11から出力される信号の値から、電源オフ時の信号を模擬した値へ切り換える。これにより、第1回路ブロック11の電源オン状態から電源オフ状態への状態遷移がシミュレートされる(ステップS1)。つまり、第1回路ブロック11は、電源電力の供給を停止されていないにも拘わらず、第2回路ブロック12から見て、第1回路ブロック11は電源オフの状態となる。
Then, for example, at the timing instructed by the
そして、デバッグ処理部31は、そのクランプ回路15の出力値の切換後に信号線14で第2回路ブロック12から伝送されてくる信号を受信し(ステップS2)、受信した信号に基づくデバッグ信号をデバッガー2に送信する(ステップS3)。このデバッグ信号は、その信号の値、またはその信号の値から得られる第2回路ブロック12の状態を示す。
The
このとき、第1回路ブロック11の電源オン状態から電源オフ状態への状態遷移に起因して第2回路ブロック12において誤動作が発生すると、信号線14で第2回路ブロック12から出力される信号の値が、正しい値ではなくなる。そのため、デバッグ信号に基づいてその誤動作がデバッガー2によって検出される。
At this time, if a malfunction occurs in the
その後、制御回路18は、例えばデバッグ処理部31またはデバッガー2により指示されたタイミングで、クランプ回路15の出力値を、電源オフ時の信号を模擬した値から、第1回路ブロック11から出力される信号の値へ切り換える。これにより、第1回路ブロック11の電源オフ状態から電源オン状態への状態遷移がシミュレートされる(ステップS4)。つまり、第2回路ブロック12から見て、第1回路ブロック11は電源オンの状態となる。
Thereafter, the
そして、デバッグ処理部31は、クランプ回路15の出力値の切換後に信号線14で第2回路ブロック12から伝送されてくる信号を受信し(ステップS5)、受信した信号に基づくデバッグ信号をデバッガー2に送信する(ステップS6)。このデバッグ信号は、その信号の値、またはその信号の値から得られる第2回路ブロック12の状態を示す。
The
このとき、第1回路ブロック11の電源オフ状態から電源オン状態への状態遷移に起因して第2回路ブロック12において誤動作が発生すると、信号線14で第2回路ブロック12から出力される信号の値が、正しい値ではなくなる。そのため、デバッグ信号に基づいてその誤動作がデバッガー2によって検出される。
At this time, if a malfunction occurs in the
以上のように、上記実施の形態によれば、ASIC1は、所定の動作モードで電源電力の供給を停止される第1回路ブロック11と、所定の動作モードで電源電力の供給を停止されずに動作する第2回路ブロック12とを備える。さらに、クランプ回路15が、信号線13上に設けられ、デバッグ時に、その出力値を、(a)所定の動作モードでの第1回路ブロック11から第2回路ブロック12へ入力される信号を模擬した値、および(b)第1回路ブロック11から出力される信号の値のうちの一方から他方へ切り換える。そして、第1回路ブロック11が備えるデバッグ処理部31は、信号線14で第2回路ブロック12から伝送されてくる信号に基づいて第2回路ブロック12の状態を示すデバッグ信号をデバッガー2に送信する。
As described above, according to the above embodiment, the
これにより、デバッガー2との通信を行う第1回路ブロック11に対する電源電力の供給が所定の動作モードで停止されるASIC1において、クランプ回路15によって第2回路ブロック12から見た第1回路ブロック11の状態を電源オフ状態にシミュレートすることで、そのような動作モードでの第2回路ブロック12の動作を、外部のデバッガー2でデバックすることが可能になる。
As a result, in the
なお、上述の実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。 The above-described embodiments are preferred examples of the present invention, but the present invention is not limited to these, and various modifications and changes can be made without departing from the scope of the present invention. is there.
本発明は、例えば、省電力機能を有する電子機器内の集積回路に適用可能である。 The present invention is applicable to, for example, an integrated circuit in an electronic device having a power saving function.
1 ASIC(集積回路の一例)
2 デバッガー
11 第1回路ブロック
12 第2回路ブロック
13 信号線(第1信号線の一例)
14 信号線(第2信号線の一例)
15 クランプ回路
18 制御回路
21 CPU(プロセッサーの一例)
1 ASIC (an example of an integrated circuit)
2
14 signal line (example of second signal line)
15
Claims (3)
前記所定の動作モードで電源電力の供給を停止されずに動作する第2回路ブロックと、
前記第1回路ブロックから前記第2回路ブロックへ出力される信号を伝送する第1信号線と、
前記第2回路ブロックから前記第1回路ブロックへ出力される信号を伝送する第2信号線と、
前記第1信号線上に設けられ、デバッグ時に、出力値を、(a)前記所定の動作モードでの前記第1回路ブロックから前記第2回路ブロックへ入力される信号を模擬した値、および(b)前記第1回路ブロックから出力される信号の値のうちの一方から他方へ切り換えるクランプ回路とを備え、
前記第1回路ブロックは、デバッグ時に外部のデバッガーとの通信を行うデバッグ処理部を備え、
前記デバッグ処理部は、前記第2信号線で前記第2回路ブロックから伝送されてくる前記信号に基づいて前記第2回路ブロックの状態を示すデバッグ信号を前記デバッガーに送信すること、
を特徴とする集積回路。 A first circuit block that stops supply of power in a predetermined operation mode;
A second circuit block that operates without stopping supply of power in the predetermined operation mode;
A first signal line for transmitting a signal output from the first circuit block to the second circuit block;
A second signal line for transmitting a signal output from the second circuit block to the first circuit block;
An output value provided on the first signal line at the time of debugging; (a) a value simulating a signal input from the first circuit block to the second circuit block in the predetermined operation mode; and (b A clamp circuit for switching from one of the signal values output from the first circuit block to the other;
The first circuit block includes a debug processing unit that communicates with an external debugger during debugging,
The debug processing unit transmits a debug signal indicating a state of the second circuit block to the debugger based on the signal transmitted from the second circuit block via the second signal line;
An integrated circuit characterized by.
前記プロセッサーが、所定のプログラムに従って前記デバッグ処理部として動作すること、
を特徴とする請求項1記載の集積回路。 The first circuit block includes a processor,
The processor operates as the debug processing unit according to a predetermined program;
The integrated circuit according to claim 1.
前記制御回路は、デバッグ時に、所定のタイミングで前記クランプ回路の出力値を、(a)前記所定の動作モードでの前記第1回路ブロックから前記第2回路ブロックへ入力される信号を模擬した値、および(b)前記第1回路ブロックから出力される信号の値のうちの一方から他方へ切り換え、
前記デバッグ処理部は、前記クランプ回路の出力値の切換後に前記第2信号線で前記第2回路ブロックから伝送されてくる前記信号に基づいて前記第2回路ブロックの状態を示すデバッグ信号を前記デバッガーに送信すること、
を特徴とする請求項1または請求項2記載の集積回路。 A control circuit for controlling the clamp circuit;
The control circuit simulates the output value of the clamp circuit at a predetermined timing during debugging, and (a) a signal input from the first circuit block to the second circuit block in the predetermined operation mode. And (b) switching from one of the signal values output from the first circuit block to the other,
The debug processing unit outputs a debug signal indicating the state of the second circuit block based on the signal transmitted from the second circuit block through the second signal line after switching the output value of the clamp circuit. Sending to
The integrated circuit according to claim 1, wherein:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015002055A JP6264662B2 (en) | 2015-01-08 | 2015-01-08 | Integrated circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015002055A JP6264662B2 (en) | 2015-01-08 | 2015-01-08 | Integrated circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016126684A JP2016126684A (en) | 2016-07-11 |
JP6264662B2 true JP6264662B2 (en) | 2018-01-24 |
Family
ID=56358020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015002055A Active JP6264662B2 (en) | 2015-01-08 | 2015-01-08 | Integrated circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6264662B2 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4226108B2 (en) * | 1998-06-19 | 2009-02-18 | 日本テキサス・インスツルメンツ株式会社 | Digital signal processor and processor self-test method |
JP2005235047A (en) * | 2004-02-23 | 2005-09-02 | Matsushita Electric Ind Co Ltd | Power source intermittent disconnection debugging device and recording medium with program for realizing the method recorded thereon |
JP2011145972A (en) * | 2010-01-18 | 2011-07-28 | Renesas Electronics Corp | Semiconductor integrated circuit and method for controlling power supply |
JP2011243110A (en) * | 2010-05-20 | 2011-12-01 | Renesas Electronics Corp | Information processor |
JP5310819B2 (en) * | 2010-11-29 | 2013-10-09 | 株式会社デンソー | Microcomputer |
-
2015
- 2015-01-08 JP JP2015002055A patent/JP6264662B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016126684A (en) | 2016-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR20110121357A (en) | Target device providing debugging functionality and test system comprising the same | |
US9222976B1 (en) | Methods and circuits for debugging multiple IC packages | |
JP2009524159A (en) | Method and apparatus for debugging a multi-core system | |
CN107305526B (en) | Debugger for microcontroller | |
JP6264662B2 (en) | Integrated circuit | |
JP2007199055A (en) | Diagnostic mode switching device and method therefor | |
JP6338114B2 (en) | IC chip | |
TWI590552B (en) | Discharge circuit and motherboard applying the same | |
JP6070600B2 (en) | Microcomputer | |
CN107783915B (en) | Port multiplexing method and device for MCU | |
CN109408151B (en) | Automatic switching device and switching method for configuration mode of field programmable gate array | |
US10460772B2 (en) | Semiconductor device | |
TWI492047B (en) | Testing apparatus | |
TW201436503A (en) | Controlling system and method for server | |
JP4479002B2 (en) | Debugging system and method for equipment having CPU power saving function | |
CN111262558A (en) | Method and system for realizing rapid glitch-free clock switching circuit | |
JP2021105597A (en) | Inspection device and inspection method | |
US20140173370A1 (en) | Debug system, apparatus and method thereof for providing graphical pin interface | |
TW201642542A (en) | Electronic device and motherboard thereof | |
TWI530782B (en) | Server system | |
JP2009276985A (en) | Semiconductor integrated circuit device | |
US20030145245A1 (en) | Microcontroller | |
JP2012129862A (en) | Communication module | |
TWM556046U (en) | Network switching control system | |
JP6906369B2 (en) | Computer systems, their control methods, and programs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20161226 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20171031 |
|
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: 20171124 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6264662 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |