JP2010176537A - Semiconductor integrated circuit device, debugging device and debugging system - Google Patents

Semiconductor integrated circuit device, debugging device and debugging system Download PDF

Info

Publication number
JP2010176537A
JP2010176537A JP2009020383A JP2009020383A JP2010176537A JP 2010176537 A JP2010176537 A JP 2010176537A JP 2009020383 A JP2009020383 A JP 2009020383A JP 2009020383 A JP2009020383 A JP 2009020383A JP 2010176537 A JP2010176537 A JP 2010176537A
Authority
JP
Japan
Prior art keywords
output
signal
input
integrated circuit
semiconductor integrated
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
JP2009020383A
Other languages
Japanese (ja)
Inventor
Wataru Furuichi
済 古市
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2009020383A priority Critical patent/JP2010176537A/en
Publication of JP2010176537A publication Critical patent/JP2010176537A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a semiconductor integrated circuit device, a debugging device and a debugging system, for performing high-speed real time trace. <P>SOLUTION: In the semiconductor integrated circuit device 1, an input signal separation part 11 separates signals input by the half cycle unit of clock signals CK through a parallel input I/F 120 into normal operation input signals a1 to be input to a processor 110 and a debugging control signals a2 to be input to a trace control part 140, and an output switching part 12 switches normal operation output signals c1 output from the processor 110 and trace information c2 output from the trace control part 140 by a half cycle of the clock signals CK and outputs them through a parallel output I/F 130. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、半導体集積回路装置、デバッグ装置およびデバッグシステムに関する。   The present invention relates to a semiconductor integrated circuit device, a debugging device, and a debugging system.

マイクロコンピュータなどのプログラムにより動作が制御される半導体集積回路装置では、そのプログラムの実行結果を検証するために、デバッグ装置を用いた内部動作の監視が行われる。   In a semiconductor integrated circuit device whose operation is controlled by a program such as a microcomputer, the internal operation is monitored using a debugging device in order to verify the execution result of the program.

そのために、従来、半導体集積回路装置の内部に、プログラムの走行、停止を制御するトレース・イベント・ラン制御回路と、プログラムのデータやそのアドレスおよび各種ステータス信号が格納されるトレースメモリと、を設けたマイクロコンピュータ開発支援装置が提案されている(例えば、特許文献1参照。)。   For this purpose, conventionally, a trace event / run control circuit for controlling the running and stopping of a program and a trace memory for storing program data, its address and various status signals are provided inside the semiconductor integrated circuit device. A microcomputer development support apparatus has been proposed (see, for example, Patent Document 1).

そのようなトレースメモリが設けられた半導体集積回路装置のリアルタイムデバッグを行う場合、トレースメモリに格納されたデータをデバッグ装置へ高速で転送する必要がある。そのため、上述のマイクロコンピュータ開発支援装置では、トレースメモリに格納されたパラレル形式のトレースデータをシリアルデータに変換し、デバッグ専用に設けられたシリアルインタフェースを介してデバッグ装置へ転送することが行われている。   When performing real-time debugging of a semiconductor integrated circuit device provided with such a trace memory, it is necessary to transfer data stored in the trace memory to the debugging device at a high speed. Therefore, in the microcomputer development support apparatus described above, parallel trace data stored in the trace memory is converted into serial data and transferred to the debug apparatus via a serial interface provided exclusively for debugging. Yes.

シリアルデータに変換することにより、デバッグにしか用いられないデバッグ専用端子の増加を抑制することができるが、パラレル転送に比べると単位時間当たりのデータ転送容量が少ないため、半導体集積回路装置の高速化に追随するのが困難、という問題があった。   By converting to serial data, the increase in the number of dedicated debugging pins that can only be used for debugging can be suppressed. However, since the data transfer capacity per unit time is smaller than that of parallel transfer, the speed of the semiconductor integrated circuit device is increased. There was a problem that it was difficult to follow.

特開2001−249823号公報 (第3−4ページ、図1)JP 2001-249823 A (page 3-4, FIG. 1)

そこで、本発明の目的は、高速なリアルタイムトレースを行うことのできる半導体集積回路装置、デバッグ装置およびデバッグシステムを提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to provide a semiconductor integrated circuit device, a debugging device, and a debugging system that can perform high-speed real-time tracing.

本発明の一態様によれば、プロセッサと、パラレル入力インタフェースと、パラレル出力インタフェースと、前記プロセッサで実行されるプログラムの走行、停止を制御するとともに、前記プロセッサから出力される命令実行情報にもとづいてトレース情報を生成するトレース制御手段と、を有する半導体集積回路装置であって、前記パラレル入力インタフェースを介してクロック信号の半周期ごとに交互に入力される通常動作入力信号とデバッグ制御信号を、前記プロセッサへ入力する前記通常動作入力信号と前記トレース制御手段へ入力する前記デバッグ制御信号とに分離する入力信号分離手段と、前記プロセッサから出力される通常動作出力信号と前記トレース制御手段から出力される前記トレース情報とを、前記クロック信号の半周期ごとに切り替えて前記パラレル出力インタフェースを介して出力する出力切り替え手段とを備えることを特徴とする半導体集積回路装置が提供される。   According to one aspect of the present invention, the processor, the parallel input interface, the parallel output interface, the running and stopping of the program executed by the processor are controlled, and based on the instruction execution information output from the processor. A semiconductor integrated circuit device having trace control means for generating trace information, wherein the normal operation input signal and the debug control signal input alternately every half cycle of the clock signal via the parallel input interface, Input signal separation means for separating the normal operation input signal input to the processor and the debug control signal input to the trace control means, normal operation output signal output from the processor, and output from the trace control means The trace information is a half-cycle of the clock signal. The semiconductor integrated circuit device characterized by comprising an output switching means for outputting via the parallel output interface switches each are provided.

また、本発明の別の一態様によれば、半導体集積回路装置のデバッグを制御するデバッグ制御信号を生成するとともに、前記半導体集積回路装置から出力されるトレース情報を解析するデバッグ手段を有するデバッグ装置であって、周辺装置から出力される通常動作入力信号と前記デバッグ手段から出力される前記デバッグ制御信号とを、前記クロック信号の半周期ごとに切り替えて出力する出力切り替え手段と、前記半導体集積回路装置からクロック信号の半周期ごとに交互に入力される通常動作出力信号と前記トレース情報とを前記周辺装置へ出力する前記通常動作出力信号と前記デバッグ手段へ出力する前記トレース情報とに分離する入力信号分離手段とを備えることを特徴とするデバッグ装置が提供される。   According to another aspect of the present invention, a debugging device includes a debugging unit that generates a debug control signal for controlling debugging of a semiconductor integrated circuit device and analyzes trace information output from the semiconductor integrated circuit device. An output switching means for switching and outputting a normal operation input signal output from a peripheral device and the debug control signal output from the debug means every half cycle of the clock signal, and the semiconductor integrated circuit An input that separates the normal operation output signal and the trace information that are alternately input from the device every half cycle of the clock signal into the normal operation output signal that is output to the peripheral device and the trace information that is output to the debug means. There is provided a debugging device comprising a signal separation means.

本発明によれば、高速なリアルタイムトレースを行うことができる。   According to the present invention, high-speed real-time tracing can be performed.

本発明の実施例に係る半導体集積回路装置、デバッグ装置およびデバッグシステムの構成の例を示すブロック図。1 is a block diagram showing an example of the configuration of a semiconductor integrated circuit device, a debugging device, and a debugging system according to an embodiment of the present invention. 本発明の実施例のデバッグシステムのデバッグモード時の動作の例を示す波形図。The wave form diagram which shows the example of operation | movement at the time of debug mode of the debug system of the Example of this invention. 本発明の実施例のデバッグシステムのデバッグモード時の動作の例を示す波形図。The wave form diagram which shows the example of operation | movement at the time of debug mode of the debug system of the Example of this invention. 本発明の実施例の半導体集積回路装置の通常動作時の動作の例を示す波形図。FIG. 4 is a waveform diagram showing an example of operation during normal operation of the semiconductor integrated circuit device according to the embodiment of the present invention.

以下、本発明の実施例について図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の実施例に係る半導体集積回路装置、デバッグ装置およびデバッグシステムの構成の例を示すブロック図である。   FIG. 1 is a block diagram showing an example of the configuration of a semiconductor integrated circuit device, a debugging device, and a debugging system according to an embodiment of the present invention.

本実施例のデバッグシステムは、デバッグ対象の半導体集積回路装置1と、半導体集積回路装置1のデバッグ実行の制御およびトレース情報の解析を行うデバッグ装置2と、を有する。   The debugging system of the present embodiment includes a semiconductor integrated circuit device 1 to be debugged, and a debugging device 2 that controls debugging execution of the semiconductor integrated circuit device 1 and analyzes trace information.

本実施例の半導体集積回路装置1は、例えばマイクロコンピュータであり、プロセッサ110を有し、汎用のインタフェース(I/F)として、パラレル入力I/F120およびパラレル出力I/F130を有している。   The semiconductor integrated circuit device 1 of this embodiment is, for example, a microcomputer, has a processor 110, and has a parallel input I / F 120 and a parallel output I / F 130 as general-purpose interfaces (I / F).

また、この半導体集積回路装置1には、デバッグ実行のためのトレース制御部140が設けられている。トレース制御部140は、プロセッサ110で実行されるプログラムの走行、停止を制御するとともに、プロセッサ110から出力される命令実行情報b1にもとづいてトレース情報c2を生成する。   The semiconductor integrated circuit device 1 is provided with a trace control unit 140 for executing debugging. The trace control unit 140 controls the running and stopping of the program executed by the processor 110 and generates the trace information c2 based on the instruction execution information b1 output from the processor 110.

本実施例では、このような半導体集積回路装置1に対して、デバッグモード時には、プロセッサ110へ入力する通常動作入力信号とトレース制御部140へ入力するデバッグ制御信号とが、パラレル入力I/F120を介して、クロック信号CKの半周期ごとに交互に入力される。   In the present embodiment, in such a semiconductor integrated circuit device 1, in the debug mode, the normal operation input signal input to the processor 110 and the debug control signal input to the trace control unit 140 receive the parallel input I / F 120. Are alternately input every half cycle of the clock signal CK.

そこで半導体集積回路装置1は、パラレル入力I/F120から入力される信号を、プロセッサ110へ入力する通常動作入力信号a1と、トレース制御部140へ入力するデバッグ制御信号a2と、に分離する入力信号分離部11を備える。   Therefore, the semiconductor integrated circuit device 1 separates the signal input from the parallel input I / F 120 into a normal operation input signal a1 input to the processor 110 and a debug control signal a2 input to the trace control unit 140. A separation unit 11 is provided.

この入力信号分離部11は、例えば、クロック信号CKをラッチ信号とするラッチ11Aと、クロック信号CKをインバータIV1で反転させた信号をラッチ信号とするラッチ11Bと、により構成されるものとする。   The input signal separation unit 11 is composed of, for example, a latch 11A that uses the clock signal CK as a latch signal, and a latch 11B that uses a signal obtained by inverting the clock signal CK by the inverter IV1.

このような入力信号分離部11において、ラッチ11Aは、パラレル入力I/F120から入力される信号をクロック信号CKの立ち上りでラッチして、プロセッサ110へ入力する通常動作入力信号a1を出力するものとする。   In such an input signal separation unit 11, the latch 11A latches the signal input from the parallel input I / F 120 at the rising edge of the clock signal CK, and outputs the normal operation input signal a1 input to the processor 110. To do.

また、ラッチ11Bは、パラレル入力I/F120から入力される信号をクロック信号CKの立ち下りでラッチして、トレース制御部140へ入力するデバッグ制御信号a2を出力するものとする。   The latch 11B latches the signal input from the parallel input I / F 120 at the falling edge of the clock signal CK, and outputs the debug control signal a2 input to the trace control unit 140.

このように、本実施例では、デバッグモード時に、パラレル入力I/F120を介して、プロセッサ110への通常動作入力信号a1およびトレース制御部140へのデバッグ制御信号a2が入力され、トレース制御部140による、プロセッサ110のプログラム実行制御およびトレース情報c2の生成が、行われる。   As described above, in this embodiment, in the debug mode, the normal operation input signal a1 to the processor 110 and the debug control signal a2 to the trace control unit 140 are input via the parallel input I / F 120, and the trace control unit 140 is input. Thus, the program execution control of the processor 110 and the generation of the trace information c2 are performed.

本実施例では、このトレース制御部140で生成されたトレース情報c2を、パラレル出力I/F130から出力する。その際、プロセッサ110から出力される通常動作出力信号c1とトレース情報c2とを、クロック信号CKの半周期ごとに、交互に、パラレル出力I/F130から出力するようにする。   In the present embodiment, the trace information c <b> 2 generated by the trace control unit 140 is output from the parallel output I / F 130. At this time, the normal operation output signal c1 and the trace information c2 output from the processor 110 are alternately output from the parallel output I / F 130 every half cycle of the clock signal CK.

そのために、半導体集積回路装置1は、プロセッサ110から出力される通常動作出力信号c1とトレース制御部140から出力されるトレース情報c2とを、クロック信号CKの半周期ごとに切り替えてパラレル出力I/F130を介して出力する出力切り替え部12を備える。   For this purpose, the semiconductor integrated circuit device 1 switches between the normal operation output signal c1 output from the processor 110 and the trace information c2 output from the trace control unit 140 every half cycle of the clock signal CK. An output switching unit 12 for outputting via F130 is provided.

この出力切り替え部12に対する切り替え信号s1は、クロック信号CKを遅延回路D1で遅延させた信号と、デバッグモード時に‘1’となるデバッグモード信号DBMと、を入力とするANDゲートAN1により生成される。   The switching signal s1 for the output switching unit 12 is generated by an AND gate AN1 that receives a signal obtained by delaying the clock signal CK by the delay circuit D1 and a debug mode signal DBM that becomes '1' in the debug mode. .

この切り替え信号s1により、遅延回路D1による遅延を伴って、パラレル出力I/F130から、クロック信号CKが‘0’のとき、通常動作出力信号c1が出力され、クロック信号CKが‘1’のとき、トレース情報c2が出力される。   When the clock signal CK is '0' and the normal operation output signal c1 is output from the parallel output I / F 130 by the switching signal s1 with a delay by the delay circuit D1, the clock signal CK is '1'. Trace information c2 is output.

次に、本実施例のデバッグ装置2は、デバッグを制御するデバッグ制御信号を生成するとともに、半導体集積回路装置から出力されるトレース情報を解析するデバッグ部210を有しており、周辺装置1000から出力される通常動作入力信号d1とデバッグ部210から出力されるデバッグ制御信号d2とを、クロック信号CKの半周期ごとに切り替えて出力する出力切り替え部21と、半導体集積回路装置からクロック信号の半周期ごとに交互に入力される通常動作出力信号とトレース情報とを、周辺装置1000へ出力する通常動作出力信号e1とデバッグ部210へ出力するトレース情報e2とに分離する入力信号分離部22と、を備える。   Next, the debug device 2 according to the present embodiment includes a debug unit 210 that generates a debug control signal for controlling debugging and analyzes trace information output from the semiconductor integrated circuit device. An output switching unit 21 that switches and outputs the normal operation input signal d1 output and the debug control signal d2 output from the debug unit 210 every half cycle of the clock signal CK, and a half of the clock signal from the semiconductor integrated circuit device. An input signal separation unit 22 that separates a normal operation output signal and trace information that are alternately input every period into a normal operation output signal e1 that is output to the peripheral device 1000 and a trace information e2 that is output to the debug unit 210; Is provided.

出力切り替え部21は、クロック信号CKを遅延回路D2で遅延させた信号とデバッグモード信号DBMとを入力とするANDゲートAN1により生成される切り替え信号s2により、遅延回路D2による遅延を伴って、クロック信号CKが‘0’のとき、通常動作入力信号d1を出力し、クロック信号CKが‘1’のとき、デバッグ制御信号d2を出力する。   The output switching unit 21 uses the switching signal s2 generated by the AND gate AN1 that receives the signal obtained by delaying the clock signal CK by the delay circuit D2 and the debug mode signal DBM, with a delay by the delay circuit D2. When the signal CK is “0”, the normal operation input signal d1 is output, and when the clock signal CK is “1”, the debug control signal d2 is output.

入力信号分離部22は、例えば、クロック信号CKをラッチ信号とするラッチ22Aと、クロック信号CKをインバータIV2で反転させた信号をラッチ信号とするラッチ22Bと、により構成されるものとする。   The input signal separation unit 22 includes, for example, a latch 22A that uses the clock signal CK as a latch signal and a latch 22B that uses a signal obtained by inverting the clock signal CK by the inverter IV2 as a latch signal.

このような入力信号分離部22において、ラッチ22Aは、半導体集積回路装置から入力される信号をクロック信号CKの立ち上りでラッチして、周辺装置1000へ出力する通常動作出力信号e1を出力するものとする。   In such an input signal separation unit 22, the latch 22A latches a signal input from the semiconductor integrated circuit device at the rising edge of the clock signal CK and outputs a normal operation output signal e1 output to the peripheral device 1000. To do.

また、ラッチ22Bは、半導体集積回路装置から入力される信号をクロック信号CKの立ち下りでラッチして、デバッグ部210へ出力するトレース情報e2を出力するものとする。   The latch 22B latches a signal input from the semiconductor integrated circuit device at the falling edge of the clock signal CK, and outputs trace information e2 output to the debug unit 210.

このデバッグ装置2を用いて、半導体集積回路装置1のプログラム実行動作のデバッグを行う場合、その相互間で次のような信号の入出力を行う。   When debugging the program execution operation of the semiconductor integrated circuit device 1 using the debug device 2, the following signals are input / output between them.

すなわち、デバッグ装置2の入出力切り替え部21から出力される信号を半導体集積回路装置1のパラレル入力I/F120を介して入力信号分離部11へ入力し、半導体集積回路装置1の出力切り替え部12から出力される信号をパラレル出力I/F130を介してデバッグ装置2の入力信号分離部22へ入力する。   That is, a signal output from the input / output switching unit 21 of the debug device 2 is input to the input signal separation unit 11 via the parallel input I / F 120 of the semiconductor integrated circuit device 1, and the output switching unit 12 of the semiconductor integrated circuit device 1 is input. Is input to the input signal separation unit 22 of the debug device 2 via the parallel output I / F 130.

図2および図3に、このデバッグ装置2と半導体集積回路装置1との間の、信号の入出力の様子を波形図で示す。   2 and 3 are waveform diagrams showing signal input / output states between the debugging device 2 and the semiconductor integrated circuit device 1. FIG.

図2は、デバッグ装置2から半導体集積回路装置1への信号出力の様子を示す。   FIG. 2 shows a state of signal output from the debug device 2 to the semiconductor integrated circuit device 1.

デバッグ装置2の出力切り替え部21は、クロック信号CKを遅延させた切り替え信号s2により、周辺装置1000から出力される通常動作入力信号d1と、デバッグ部210から出力されるデバッグ制御信号d2とを、クロック信号CKの半周期ごとに切り替えて出力する。   The output switching unit 21 of the debugging device 2 uses the switching signal s2 obtained by delaying the clock signal CK to generate a normal operation input signal d1 output from the peripheral device 1000 and a debug control signal d2 output from the debugging unit 210. The clock signal CK is switched and output every half cycle.

これにより、通常動作入力信号d1のデータをD1、D2、D3、D4、・・・とし、デバッグ制御信号d2のデータをDB1、DB2、DB3、DB4、・・・とすると、出力切り替え部21の出力信号d3には、クロック信号CKの半周期単位で、データD1、DB1、D2、DB2、D3、DB3、D4、DB4、・・・が出力される。   As a result, when the data of the normal operation input signal d1 is D1, D2, D3, D4,... And the data of the debug control signal d2 is DB1, DB2, DB3, DB4,. As the output signal d3, data D1, DB1, D2, DB2, D3, DB3, D4, DB4,... Are output in half-cycle units of the clock signal CK.

この出力切り替え部21の出力信号d3は、半導体集積回路装置1のパラレル入力I/F120へ入力される。そこで、この出力信号d3を半導体集積回路装置1にとっての入力信号d3とする。   The output signal d3 of the output switching unit 21 is input to the parallel input I / F 120 of the semiconductor integrated circuit device 1. Therefore, this output signal d3 is set as an input signal d3 for the semiconductor integrated circuit device 1.

半導体集積回路装置1の入力信号分離部11は、内蔵するラッチ11Aとラッチ11Bにより、この入力信号d3を、プロセッサ110へ入力する通常動作入力信号a1と、トレース制御部140へ入力するデバッグ制御信号a2と、に分離する。   The input signal separation unit 11 of the semiconductor integrated circuit device 1 includes a built-in latch 11A and a latch 11B, and a normal operation input signal a1 that is input to the processor 110 and a debug control signal that is input to the trace control unit 140. a2.

このとき、ラッチ11Aはクロック信号CKの立ち上りで入力信号d3をラッチするので、その出力の通常動作入力信号a1は、周辺装置1000から出力される通常動作入力信号d1のデータD1、D2、D3、D4、・・・となる。   At this time, since the latch 11A latches the input signal d3 at the rising edge of the clock signal CK, the normal operation input signal a1 output from the latch 11A is the data D1, D2, D3 of the normal operation input signal d1 output from the peripheral device 1000. D4,...

一方、ラッチ11Bはクロック信号CKの立ち下りで入力信号d3をラッチするので、その出力のデバッグ制御信号a2は、デバッグ制御信号d2のデータDB1、DB2、DB3、DB4、・・・となる。   On the other hand, since the latch 11B latches the input signal d3 at the falling edge of the clock signal CK, the output debug control signal a2 becomes the data DB1, DB2, DB3, DB4,... Of the debug control signal d2.

このようにして、デバッグ動作モード時には、デバッグ装置2のデバッグ部210から出力されるデバッグ制御信号d2が、そのまま、デバッグ制御信号a2として、半導体集積回路装置1のトレース制御部140へ入力される。   Thus, in the debug operation mode, the debug control signal d2 output from the debug unit 210 of the debug device 2 is input as it is to the trace control unit 140 of the semiconductor integrated circuit device 1 as the debug control signal a2.

図3は、半導体集積回路装置1からデバッグ装置2への信号出力の様子を示す。   FIG. 3 shows a state of signal output from the semiconductor integrated circuit device 1 to the debug device 2.

半導体集積回路装置1の出力切り替え部12は、クロック信号CKを遅延させた切り替え信号s1により、プロセッサ110から出力される通常動作出力信号c1とトレース制御部140から出力されるトレース情報c2とを、クロック信号CKの半周期ごとに切り替えて出力する。   The output switching unit 12 of the semiconductor integrated circuit device 1 generates a normal operation output signal c1 output from the processor 110 and trace information c2 output from the trace control unit 140 based on the switching signal s1 obtained by delaying the clock signal CK. The clock signal CK is switched and output every half cycle.

これにより、通常動作出力信号c1のデータをAD1、AD2、AD3、AD4、・・・とし、トレース情報c2のデータをTR1、TR2、TR3、TR4、・・・とすると、をパラレル出力I/F130を介して出力される出力切り替え部12の出力信号c3には、クロック信号CKの半周期単位で、データAD1、TR1、AD2、TR2、AD3、TR3、AD4、TR4、・・・が出力される。   As a result, when the data of the normal operation output signal c1 is AD1, AD2, AD3, AD4,... And the data of the trace information c2 is TR1, TR2, TR3, TR4,. The data AD1, TR1, AD2, TR2, AD3, TR3, AD4, TR4,... Are output in half-cycle units of the clock signal CK to the output signal c3 of the output switching unit 12 output via. .

この出力信号c3はデバッグ装置2にとっての入力信号c3となる。   This output signal c3 becomes the input signal c3 for the debugging device 2.

デバッグ装置2の入力信号分離部22は、内蔵するラッチ22Aとラッチ22Bにより、この入力信号c3を、周辺装置1000へ出力する通常動作出力信号e1と、デバッグ部210へ出力するトレース情報e2と、に分離する。   The input signal separation unit 22 of the debug device 2 includes a normal operation output signal e1 that outputs the input signal c3 to the peripheral device 1000, trace information e2 that is output to the debug unit 210, and latches 22A and 22B built therein. To separate.

このとき、ラッチ22Aはクロック信号CKの立ち上りで入力信号c3をラッチするので、その出力の通常動作出力信号e1は、プロセッサ110から出力される通常動作出力信号c1のデータAD1、AD2、AD3、AD4、・・・となる。   At this time, since the latch 22A latches the input signal c3 at the rising edge of the clock signal CK, the output of the normal operation output signal e1 is the data AD1, AD2, AD3, AD4 of the normal operation output signal c1 output from the processor 110. ..

一方、ラッチ22Bはクロック信号CKの立ち下りで入力信号c3をラッチするので、その出力のトレース情報e2は、トレース情報c2のデータTR1、TR2、TR3、TR4、となる。   On the other hand, since the latch 22B latches the input signal c3 at the falling edge of the clock signal CK, the output trace information e2 becomes data TR1, TR2, TR3, TR4 of the trace information c2.

このようにして、デバッグ動作モード時には、半導体集積回路装置1のトレース制御部140から出力されるトレース情報c2が、そのまま、トレース情報e2として、デバッグ装置2のデバッグ部210へ入力される。   Thus, in the debug operation mode, the trace information c2 output from the trace control unit 140 of the semiconductor integrated circuit device 1 is input as it is to the debug unit 210 of the debug device 2 as the trace information e2.

上述したように、デバッグ時には、半導体集積回路装置1に、デバッグ装置2が接続されて、パラレル入力I/F120を介したデバッグ制御信号a2の入力、およびパラレル出力I/F130を介したトレース情報c2が行われる。   As described above, at the time of debugging, the debug device 2 is connected to the semiconductor integrated circuit device 1, the input of the debug control signal a 2 via the parallel input I / F 120, and the trace information c 2 via the parallel output I / F 130. Is done.

これに対して、通常動作時は、半導体集積回路装置1は、周辺装置1000と直接接続され、パラレル入力I/F120を介した通常動作入力信号a1の入力、およびパラレル出力I/F130を介した通常動作出力信号c1の出力が行われる。   On the other hand, during normal operation, the semiconductor integrated circuit device 1 is directly connected to the peripheral device 1000, receives the normal operation input signal a1 via the parallel input I / F 120, and passes through the parallel output I / F 130. The normal operation output signal c1 is output.

図4に、通常動作モード時(デバッグモード信号DBM=‘0’)の半導体集積回路装置1の入出力の様子を波形図で示す。   FIG. 4 is a waveform diagram showing input / output states of the semiconductor integrated circuit device 1 in the normal operation mode (debug mode signal DBM = “0”).

通常動作モード時、周辺装置1000からパラレル入力I/F120への入力データD1、D2、D3、D4、・・・は、入力信号分離部11のラッチ11Aによりクロック信号CKの立ち上りでラッチされ、通常動作入力信号a1として、プロセッサ110へ入力される。   In the normal operation mode, the input data D1, D2, D3, D4,... From the peripheral device 1000 to the parallel input I / F 120 are latched by the latch 11A of the input signal separation unit 11 at the rising edge of the clock signal CK. The operation input signal a1 is input to the processor 110.

一方、プロセッサ110から出力される通常動作出力信号c1のデータAD1、AD2、AD3、AD4、・・・は、デバッグモード信号DBM=‘0’のときは切り替え信号s1が常に‘0’であるので、出力切り替え部12から常に出力され、パラレル出力I/F130を介して出力信号c3のデータAD1、AD2、AD3、AD4、・・・として出力される。   On the other hand, the data AD1, AD2, AD3, AD4,... Of the normal operation output signal c1 output from the processor 110 is because the switching signal s1 is always “0” when the debug mode signal DBM = “0”. Are always output from the output switching unit 12 and output as data AD1, AD2, AD3, AD4,... Of the output signal c3 via the parallel output I / F 130.

このような本実施例によれば、半導体集積回路装置1の通常の動作を阻害することなく、かつ専用のデバッグ制御信号入力用インタフェースを追加することなく、半導体集積回路装置1内部のトレース制御部140へデバッグ制御信号を入力し、トレース制御部140を制御することができる。   According to the present embodiment, the trace control unit in the semiconductor integrated circuit device 1 is not obstructed by the normal operation of the semiconductor integrated circuit device 1 and without adding a dedicated debug control signal input interface. The trace control unit 140 can be controlled by inputting a debug control signal to 140.

また、半導体集積回路装置1の通常の動作を阻害することなく、かつ専用のトレース情報出力用インタフェースを追加することなく、半導体集積回路装置1内部のトレース制御部140で生成されるトレース情報を外部へ出力することができる。   Further, the trace information generated by the trace control unit 140 inside the semiconductor integrated circuit device 1 is externally transmitted without obstructing the normal operation of the semiconductor integrated circuit device 1 and without adding a dedicated trace information output interface. Can be output.

また、このトレース情報出力のとき、パラレル出力I/F130を用いるので、従来のシリアル信号出力方式に比べて、単位時間当たりのデータ転送容量を増加させることができる。これにより、トレース情報をリアルタイムで出力させることが可能となる。その結果、従来、出力待ちのトレース情報を格納するために必要であった、トレースメモリを不要とすることができる。   Further, since the parallel output I / F 130 is used for outputting the trace information, the data transfer capacity per unit time can be increased as compared with the conventional serial signal output method. As a result, the trace information can be output in real time. As a result, it is possible to eliminate the need for the trace memory, which has been conventionally required for storing the output-waiting trace information.

1 半導体集積回路装置
11 入力信号分離部
11A、11B ラッチ
12 出力切り替え部
2 デバッグ装置
21 出力切り替え部
22 入力信号分離部
22A、22B ラッチ
IV1、IV2 インバータ
AN1、AN2 ANDゲート
D1、D2 遅延回路
DESCRIPTION OF SYMBOLS 1 Semiconductor integrated circuit device 11 Input signal separation part 11A, 11B Latch 12 Output switching part 2 Debugging device 21 Output switching part 22 Input signal separation part 22A, 22B Latch IV1, IV2 Inverter AN1, AN2 AND gate D1, D2 Delay circuit

Claims (5)

プロセッサと、パラレル入力インタフェースと、パラレル出力インタフェースと、前記プロセッサで実行されるプログラムの走行、停止を制御するとともに、前記プロセッサから出力される命令実行情報にもとづいてトレース情報を生成するトレース制御手段と、を有する半導体集積回路装置であって、
前記パラレル入力インタフェースを介してクロック信号の半周期ごとに交互に入力される通常動作入力信号とデバッグ制御信号を、前記プロセッサへ入力する前記通常動作入力信号と前記トレース制御手段へ入力する前記デバッグ制御信号とに分離する入力信号分離手段と、
前記プロセッサから出力される通常動作出力信号と前記トレース制御手段から出力される前記トレース情報とを、前記クロック信号の半周期ごとに切り替えて前記パラレル出力インタフェースを介して出力する出力切り替え手段と
を備えることを特徴とする半導体集積回路装置。
A processor, a parallel input interface, a parallel output interface, trace control means for controlling the running and stopping of a program executed by the processor and generating trace information based on instruction execution information output from the processor; A semiconductor integrated circuit device comprising:
The normal operation input signal and the debug control signal, which are alternately input every half cycle of the clock signal via the parallel input interface, the normal operation input signal input to the processor and the debug control input to the trace control means. Input signal separating means for separating the signal into a signal;
Output switching means for switching the normal operation output signal output from the processor and the trace information output from the trace control means for each half cycle of the clock signal and outputting via the parallel output interface. A semiconductor integrated circuit device.
前記入力信号分離手段が、
前記パラレル入力インタフェースを介して入力される信号をクロックの立ち上りでラッチする第1のラッチと、
前記パラレル入力インタフェースを介して入力される信号をクロックの立ち下りでラッチする第2のラッチと
を備えることを特徴とする請求項1に記載の半導体集積回路装置。
The input signal separating means is
A first latch for latching a signal input via the parallel input interface at a rising edge of a clock;
The semiconductor integrated circuit device according to claim 1, further comprising a second latch that latches a signal input via the parallel input interface at a falling edge of a clock.
半導体集積回路装置のデバッグを制御するデバッグ制御信号を生成するとともに、前記半導体集積回路装置から出力されるトレース情報を解析するデバッグ手段を有するデバッグ装置であって、
周辺装置から出力される通常動作入力信号と前記デバッグ手段から出力される前記デバッグ制御信号とを、前記クロック信号の半周期ごとに切り替えて出力する出力切り替え手段と、
前記半導体集積回路装置からクロック信号の半周期ごとに交互に入力される通常動作出力信号と前記トレース情報とを前記周辺装置へ出力する前記通常動作出力信号と前記デバッグ手段へ出力する前記トレース情報とに分離する入力信号分離手段と
を備えることを特徴とするデバッグ装置。
A debug apparatus that generates a debug control signal for controlling debugging of a semiconductor integrated circuit device and has a debugging unit that analyzes trace information output from the semiconductor integrated circuit device,
An output switching means for switching and outputting a normal operation input signal output from a peripheral device and the debug control signal output from the debug means for each half cycle of the clock signal;
A normal operation output signal that is alternately input from the semiconductor integrated circuit device every half cycle of the clock signal and the trace information; the normal operation output signal that is output to the peripheral device; and the trace information that is output to the debugging means. A debugging device comprising: an input signal separation means for separating the input signal into
前記入力信号分離手段が、
前記半導体集積回路装置から入力される信号をクロックの立ち上りでラッチする第1のラッチと、
前記半導体集積回路装置から入力される信号をクロックの立ち下りでラッチする第2のラッチと
を備えることを特徴とする請求項3に記載のデバッグ装置。
The input signal separating means is
A first latch for latching a signal input from the semiconductor integrated circuit device at a rising edge of a clock;
The debugging apparatus according to claim 3, further comprising a second latch that latches a signal input from the semiconductor integrated circuit device at a falling edge of a clock.
請求項1または2に記載の半導体集積回路装置と、請求項3または4に記載のデバッグ装置とを有するデバッグシステムであって、
前記デバッグ装置の前記出力切り替え手段から出力される信号を前記パラレル入力インタフェースを介して前記半導体集積回路装置へ入力し、
前記半導体集積回路装置の前記出力切り替え手段から出力される信号を前記パラレル出力インタフェースを介して前記デバッグ装置へ出力する
ことを特徴とするデバッグシステム。
A debug system having the semiconductor integrated circuit device according to claim 1 or 2 and the debug device according to claim 3 or 4,
A signal output from the output switching means of the debug device is input to the semiconductor integrated circuit device via the parallel input interface;
A debugging system for outputting a signal output from the output switching means of the semiconductor integrated circuit device to the debugging device via the parallel output interface.
JP2009020383A 2009-01-30 2009-01-30 Semiconductor integrated circuit device, debugging device and debugging system Pending JP2010176537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009020383A JP2010176537A (en) 2009-01-30 2009-01-30 Semiconductor integrated circuit device, debugging device and debugging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009020383A JP2010176537A (en) 2009-01-30 2009-01-30 Semiconductor integrated circuit device, debugging device and debugging system

Publications (1)

Publication Number Publication Date
JP2010176537A true JP2010176537A (en) 2010-08-12

Family

ID=42707422

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009020383A Pending JP2010176537A (en) 2009-01-30 2009-01-30 Semiconductor integrated circuit device, debugging device and debugging system

Country Status (1)

Country Link
JP (1) JP2010176537A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011209828A (en) * 2010-03-29 2011-10-20 Renesas Electronics Corp Trace data control circuit, debugging device and timestamp generation method
JP2012133585A (en) * 2010-12-21 2012-07-12 Fujitsu Ltd Circuit device, monitoring device and monitoring method
GB2489838A (en) * 2011-08-25 2012-10-10 Ultrasoc Technologies Ltd Processor trace circuit, which shares a bus with the processor being monitored
US8826081B2 (en) 2011-08-25 2014-09-02 Ultrasoc Technologies, Ltd. Data processing apparatus and related methods of debugging processing circuitry

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011209828A (en) * 2010-03-29 2011-10-20 Renesas Electronics Corp Trace data control circuit, debugging device and timestamp generation method
JP2012133585A (en) * 2010-12-21 2012-07-12 Fujitsu Ltd Circuit device, monitoring device and monitoring method
GB2489838A (en) * 2011-08-25 2012-10-10 Ultrasoc Technologies Ltd Processor trace circuit, which shares a bus with the processor being monitored
GB2489838B (en) * 2011-08-25 2013-02-27 Ultrasoc Technologies Ltd A data processing apparatus and related methods of debugging processing circuitry
US8826081B2 (en) 2011-08-25 2014-09-02 Ultrasoc Technologies, Ltd. Data processing apparatus and related methods of debugging processing circuitry

Similar Documents

Publication Publication Date Title
JP4747026B2 (en) Microprocessor
JP5231800B2 (en) Semiconductor integrated circuit device and clock control method for semiconductor integrated circuit device
JP2008039784A (en) Pattern generator and pattern generating method for semiconductor test
JP2010176537A (en) Semiconductor integrated circuit device, debugging device and debugging system
TW201333694A (en) Optional logging of debug activities in a real time instruction tracing log
JP2008042367A (en) Semiconductor device
JP5926655B2 (en) Central processing unit and arithmetic unit
JP2003316566A (en) Pipeline processor
WO2018072439A1 (en) Test data generation method and device, and computer storage medium
JP5928272B2 (en) Semiconductor integrated circuit and compiler
JP5871298B2 (en) Information processing apparatus, information processing method, and information processing program
JP2008134926A (en) Synchronization circuit
JP5850732B2 (en) Semiconductor device and control method thereof
US20230305842A1 (en) Configure a Coarse Grained Reconfigurable Array to Execute Instructions of a Program of Data Flows
JP5888177B2 (en) Arithmetic processing device and control method of arithmetic processing device
WO2012151822A1 (en) Loopback structure and data loopback processing method for processor
JP2012064284A (en) Memory tester
JP2008085519A (en) Clock control circuit and semiconductor integrated circuit
JP2006338070A (en) I/o processor
JP2015195066A (en) Memory test circuit and memory test circuit control method
KR930004428B1 (en) Circuit for generating address latch enable signal
JP2008177712A (en) Tri-state bus circuit
JP2010085177A (en) Semiconductor testing device
JP2008026559A (en) Liquid crystal display driver and liquid crystal display device loading the same
JP2004234047A (en) Electronic circuit and assembler

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20111125

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20111205