JP2001249823A - Microcomputer development assisting device - Google Patents

Microcomputer development assisting device

Info

Publication number
JP2001249823A
JP2001249823A JP2000058207A JP2000058207A JP2001249823A JP 2001249823 A JP2001249823 A JP 2001249823A JP 2000058207 A JP2000058207 A JP 2000058207A JP 2000058207 A JP2000058207 A JP 2000058207A JP 2001249823 A JP2001249823 A JP 2001249823A
Authority
JP
Japan
Prior art keywords
memory
trace
data
trace memory
external
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
JP2000058207A
Other languages
Japanese (ja)
Inventor
Masanobu Fukushima
正展 福島
Keiji Nakamura
圭治 中村
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 JP2000058207A priority Critical patent/JP2001249823A/en
Publication of JP2001249823A publication Critical patent/JP2001249823A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a microcomputer development assisting device at low cost, with high debugging efficiency, with a real time trace function and capable of checking whether or not a program exactly runs. SOLUTION: A trace memory 18 capable of tracing all bus cycles and a FIFO buffer memory 19 for external trace memory are embedded in an emulation chip 1 with a processor 11, data to be stored in an external trace memory 7 is stored in the buffer memory 19 due to an asynchronously generated event. The data written as trace data is stored in the external trace memory 7 at intervals of the asynchronously generated events.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、インサーキットエミ
ュレータ(ICE)等のデバッグ機能を有するマイクロ
プロセッサの開発支援装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for supporting development of a microprocessor having a debugging function such as an in-circuit emulator (ICE).

【0002】[0002]

【従来の技術】マイクロコンピュータ開発支援装置にお
いて、マイクロコンピュータ内のプログラムの実行結果
を検証するためには、マイクロコンピュータと同等の機
能を持ち、且つ内部RAM、I/Oなどにアクセスする
際の内部状態を外部から確認できるエミュレータが用い
られている。
2. Description of the Related Art In a microcomputer development support apparatus, in order to verify the execution result of a program in a microcomputer, the apparatus has a function equivalent to that of the microcomputer and has a function of accessing an internal RAM, I / O and the like. An emulator that can check the status from outside is used.

【0003】このエミュレータは、ユーザが開発しよう
とするシステム上で動作し、演算・周辺回路へのアクセ
スなどを行い、その実行結果をトレースメモリに保存し
ておくことで、ユーザのデバックをサポートするもので
ある。
This emulator operates on a system to be developed by a user, accesses an operation / peripheral circuit, and saves the execution result in a trace memory to support user debugging. Things.

【0004】バスの状態をリアルタイムでメモリに格納
するリアルタイムトレース機能を持つICE(インサー
キットエミュレータ)を用いたマイクロコンピュータの
開発支援装置においては、MPUの高速化に伴い、バス
も高速化するため、MPUを備える半導体装置の外部の
ボード上にトレースメモリを持つことでは間に合わなく
なり、トレースメモリを半導体装置内に内蔵する場合が
ある。
In a microcomputer development support device using an ICE (In-Circuit Emulator) having a real-time trace function for storing the state of the bus in a memory in real time, the bus speed increases with the speed of the MPU. Having a trace memory on a board external to a semiconductor device provided with an MPU is not enough, and the trace memory may be built in the semiconductor device.

【0005】しかしながら、内蔵するためには、製造上
の問題やコストの問題のため、トレースメモリ容量に限
界があり、デバッグシステムに要求されているトレース
メモリ容量は内蔵できずに、結果的にデバッグ効率が悪
いという問題がある。
However, in order to incorporate the trace memory, the trace memory capacity is limited due to manufacturing problems and cost problems, and the trace memory capacity required for the debug system cannot be incorporated. There is a problem of inefficiency.

【0006】ところで、特開平8−161191号公報
には、高速のMPUがターゲットである場合でも、十分
なデバッグを行うことができるようにするために、ター
ゲット装置内にある組み込みチップ内に、ステート解析
用のトレース機能、リアルタイムなオンチップデバッグ
リソースをターゲットMPUの走行を止めることなく全
ステートで行うノンブレークデバッグ機能及びオフチッ
プのモニタメモリアクセスインターフェイス機能を持つ
デバッグユニットを設けたインサーキットエミュレータ
が提案されている。
Japanese Unexamined Patent Publication No. Hei 8-161191 discloses that, even when a high-speed MPU is the target, a state is embedded in an embedded chip in the target device so that sufficient debugging can be performed. Proposed in-circuit emulator with a debug unit that has a trace function for analysis, a non-break debug function that performs real-time on-chip debug resources in all states without stopping the target MPU, and an off-chip monitor memory access interface function Have been.

【0007】上記の構成により、ある程度の高速化は可
能であるが、トレースメモリがオフチップにあるため、
上記公報にも記載されているように、100MHz程度
までしか高速化対応できないという問題があった。
With the above configuration, a certain speed-up is possible, but since the trace memory is off-chip,
As described in the above-mentioned publication, there is a problem that the speed can be increased only up to about 100 MHz.

【0008】また、特開平8−63368号公報には、
高速なマイクロコンピュータのリアルタイムエミュレー
ション、リアルタイムトレースを、エミュレータ側の信
号はユーザーシステムの動作に不要な構成とすること
で、高速化対応を可能とするエミュレータを提案されて
いる。すなわち、この公報では、エミュレーションはユ
ーザーシステム上のマイクロコンピュータが行い、トレ
ースデータは外部のシミュレーション手段で作成するこ
とで高速化対応を可能とすることができるエミュレータ
およびマイクロコンピュータが提案されている。
Japanese Patent Application Laid-Open No. 8-63368 discloses that
An emulator has been proposed which enables high-speed response by realizing high-speed microcomputer real-time emulation and real-time tracing by using a signal on the emulator side that is not required for the operation of the user system. That is, this publication proposes an emulator and a microcomputer that can emulate by a microcomputer on a user system and create trace data by an external simulation means to enable high-speed operation.

【0009】上記した方法では、トレースデータは、ト
レースデータをシミュレーション手段で生成するため、
マイクロプロセッサがプログラムを実行する上で、プロ
グラムの問題は発見することは可能であるが、実際の半
導体装置のハードウエア障害を正確には診断することが
できないという問題があった。
In the above method, since the trace data is generated by the simulation means,
When a microprocessor executes a program, it is possible to find a problem in the program, but there is a problem that it is not possible to accurately diagnose a hardware failure of an actual semiconductor device.

【0010】[0010]

【発明が解決しようとする課題】この発明は、上述した
従来の問題点に鑑みなされたものにして、低コストでデ
バッグ効率の高い、リアルタイムトレース機能を持ち、
プログラムが正しく走行しているかをチェックすること
ができるマイクロコンピュータ開発支援装置を提供する
ことを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned conventional problems, and has a real-time tracing function with low cost and high debugging efficiency.
An object of the present invention is to provide a microcomputer development support device capable of checking whether a program is running correctly.

【0011】[0011]

【課題を解決するための手段】この発明は、プロセッサ
を備える半導体装置内に、外部トレースメモリ用バッフ
ァメモリを内蔵し、非同期的に発生するイベントによ
り、前記外部トレースメモリへ格納するデータを前記バ
ッファメモリに対して格納し、トレースデータとして書
き込まれた前記データが、非同期的に発生するイベント
間隔で外部トレースメモリに格納されることを特徴とす
る。
According to the present invention, an external trace memory buffer memory is incorporated in a semiconductor device having a processor, and data to be stored in the external trace memory is stored in the buffer using an asynchronously generated event. The data stored in the memory and written as trace data is stored in an external trace memory at an event interval that occurs asynchronously.

【0012】上記したように、この発明は、プログラム
が正しく走行しているかをチェックするために、プログ
ラムデータのアドレス、プログラムのデータ及び各種ス
テータス信号を格納するためのトレースメモリを内蔵す
るのとは別に、非同期的に発生するイベントにより、ト
レースメモリへ格納するデータをトレースするための小
容量の外部トレースメモリ用バッファメモリを持つ。そ
して、非同期的に発生するイベント間隔の時間を利用し
て、半導体装置外部に構成された、大容量トレースメモ
リに逐次格納していく機能を持たせることで、低コスト
でデバッグ効率の高い、リアルタイムトレース機能を持
つマイクロコンピュータ開発支援装置が提供できる。
As described above, the present invention incorporates a trace memory for storing program data addresses, program data and various status signals in order to check whether the program is running correctly. Separately, it has a small-capacity external trace memory buffer memory for tracing data stored in the trace memory in response to an event that occurs asynchronously. By using the time of an event interval that occurs asynchronously and providing a function of sequentially storing in a large-capacity trace memory configured outside the semiconductor device, real-time processing with low cost and high debugging efficiency is realized. A microcomputer development support device having a trace function can be provided.

【0013】また、この発明は、前記外部トレースメモ
リ用バッファメモリの格納データをパラレル・シリアル
変換回路を介して、シリアルデータとして外部に出力す
るように構成することができる。
Further, the present invention can be configured such that data stored in the buffer memory for the external trace memory is output to the outside as serial data via a parallel / serial conversion circuit.

【0014】また、この発明は、前記外部トレースメモ
リ用バッファメモリがフルになり、バッファメモリが間
に合わない場合には、そのステータス信号を出力し、通
知するように構成することができる。
Further, according to the present invention, when the buffer memory for the external trace memory becomes full and the buffer memory cannot be made in time, the status signal is outputted and notified.

【0015】上記した構成によれば、外部トレースメモ
リ用バッファメモリへの格納データのスループットの平
均値が大きく、外部への出力が間に合わなかった場合に
は、オーバーラン等の障害が起きたことを知らせる、ス
テータス信号が出力することで、トレースを実施した情
報が有効か無効かを知ることができる。
According to the above configuration, if the average value of the throughput of the data stored in the buffer memory for the external trace memory is large and the output to the outside cannot be made in time, it is considered that a fault such as overrun has occurred. By outputting a status signal to notify the user, it is possible to know whether the information on which the trace is performed is valid or invalid.

【0016】さらに、この発明は、プロセッサを備える
半導体装置内に、全バスサイクルをトレース可能なトレ
ースメモリをさらに備えるとよい。
Further, according to the present invention, a trace memory capable of tracing all bus cycles may be further provided in a semiconductor device having a processor.

【0017】上記したように、大容量の外部トレースメ
モリと全バスサイクルをトレース可能な、内蔵トレース
メモリの2つのトレースメモリを使用することで、非同
期データの不具合と、プログラムの詳細なトレースを、
対応づけて、同時に解析することができ、デバッグ効率
を高くできる。
As described above, the use of two trace memories, a large-capacity external trace memory and a built-in trace memory capable of tracing all bus cycles, makes it possible to eliminate asynchronous data defects and detailed program traces.
Correspondence and simultaneous analysis are possible, and debugging efficiency can be increased.

【0018】[0018]

【発明の実施の形態】以下、この発明の実施の形態につ
き図面を参照して説明する。図1は、この発明の実施の
形態を示すブロック回路図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block circuit diagram showing an embodiment of the present invention.

【0019】図1におけるエバチップ(ターゲット)1
は、マイクロプロセッサ開発支援装置のプロセッサ1
1、メモリ12、周辺回路13を含むデバッグしたい対
象となるものである。
Eva chip (target) 1 in FIG.
Is the processor 1 of the microprocessor development support device.
1, a memory 12 and a peripheral circuit 13 which are targets to be debugged.

【0020】このエバチップ1の特徴としては、デバッ
グ対象となる装置とは別に、トレース・イベント・ラン
制御回路17、トレースメモリ18、外部トレースメモ
リ用FIFOバッファメモリ19やエバチップ1外部と
インターフェイスするためのパラレル/シリアル(P/
S)変換回路20、21を内蔵している。このトレース
メモリ18には、プログラムデータのアドレス、プログ
ラムのデータ及び各種ステータス信号が格納され、バッ
ファメモリ19は、非同期的に発生するイベントによ
り、外部に設けられる大容量のトレースメモリ7へ格納
するデータを一旦格納するために用いられる。
The feature of the evaluation chip 1 is that, apart from the device to be debugged, the trace event run control circuit 17, the trace memory 18, the FIFO buffer memory 19 for the external trace memory, and the interface for interfacing with the outside of the evaluation chip 1 are provided. Parallel / Serial (P /
S) Conversion circuits 20 and 21 are built in. The trace memory 18 stores program data addresses, program data, and various status signals. The buffer memory 19 stores data stored in an external large-capacity trace memory 7 in response to an asynchronous event. Is used to temporarily store

【0021】次に、各ブロックの機能を説明すると、プ
ロセッサ11はデバッグ対象となるCPUやDSP等の
プロセッサであり、メモリ12とアドレスバス14、デ
ータバス15、ステータスバス16等で接続されてい
る。
Next, the function of each block will be described. The processor 11 is a processor such as a CPU or a DSP to be debugged, and is connected to the memory 12 via an address bus 14, a data bus 15, a status bus 16, and the like. .

【0022】また、周辺回路13もデバッグ対象となる
ユーザーシステムで、ユーザーが回路を構成して、エバ
チップ1に内蔵され、プロセッサ1とバス14,15,
16で接続されている。
The peripheral circuit 13 is also a user system to be debugged. The user configures a circuit and is built in the evaluation chip 1, and the processor 1 and the buses 14, 15 and
16 are connected.

【0023】トレース・イベント・ラン制御回路17
は、プロセッサ11がプログラムを走行、停止するため
の制御並びに、トレースメモリ18へのアドレス出力と
書き込み読み出し制御をコントロールバスa1を通じて
制御するものである。
Trace event run control circuit 17
Is for controlling the processor 11 to run and stop the program and for controlling the address output to the trace memory 18 and the writing / reading via the control bus a1.

【0024】さらに、トレース・イベント・ラン制御回
路17は、コントロールバスa2を通じて外部トレース
メモリ用のFIFOバッファメモリ19への書き込み制
御を行う。
Further, the trace event run control circuit 17 controls writing to the FIFO buffer memory 19 for the external trace memory through the control bus a2.

【0025】そして、ホストコンピュター4には、マイ
クロコンピュター開発支援用のデバッガソフトが走り、
主としてコントロールバスf1を通じて、エミュレータ
制御回路3に、デバッグ動作のための指示を出力すると
共に、バスf1を通じて、デバッグ対象システムのレジ
スタ、メモリの各種データや、トレースメモリ18や外
部トレースメモリ7から、トレースデータを取得すると
共に、トレースデータの逆アセンブル表示、解析等を行
う機能を持っている。
Then, debugger software for microcomputer development support runs on the host computer 4, and
An instruction for a debugging operation is output to the emulator control circuit 3 mainly through the control bus f1, and various data of registers and memories of the system to be debugged and trace data from the trace memory 18 and the external trace memory 7 are transmitted through the bus f1. It has a function of acquiring data and performing disassembly display and analysis of trace data.

【0026】ホストコンピュター4上のデバッガソフト
からデバッグ動作の指示は、エミュレータ制御回路3を
通じて、エバチップ1のパラレル・シリアル変換回路2
0に入り、コントロールデータバスc1を通じてトレー
ス・イベント・ラン制御回路17に入る。そして、プロ
セッサのプログラムラン、ストップ制御することと、ト
レースメモリ18へ格納するための条件となるトレース
制御や、外部トレースメモリ用FIFOバッファメモリ
19へ格納するための条件となるトレース制御を行う。
An instruction for a debugging operation from the debugger software on the host computer 4 is sent to the parallel / serial conversion circuit 2 of the evaluation chip 1 through the emulator control circuit 3.
0, and enters the trace event run control circuit 17 through the control data bus c1. Then, a program run and stop control of the processor and a trace control as a condition for storing in the trace memory 18 and a trace control as a condition for storing in the FIFO buffer memory 19 for the external trace memory are performed.

【0027】データバスb1は、ホストコンピュター4
からの要求でトレースメモリ18の内容を読み出す際に
このバスb1とバスc1、バスd1、f1を通じてデー
タを受け渡しすることになる。
The data bus b1 is connected to the host computer 4
When the contents of the trace memory 18 are read in response to a request from the CPU, data is transferred via the bus b1, the bus c1, the bus d1, and the f1.

【0028】また、ステータスバスb2は、トレースメ
モリ用のFIFOバッファメモリ19が間に合わない場
合等に、異常を知らせるステータス用の出力信号にな
る。
The status bus b2 is a status output signal for notifying an abnormality when the FIFO buffer memory 19 for the trace memory cannot keep up.

【0029】そして、データバスg1は、トレースメモ
リ用FIFOバッファメモリ19に書き込みが起こるた
びに、書き込みデータがパラレル・シリアル変換回路2
1を通じて、エバチップ1外部に出力され、バスh1か
ら更にシリアル・パラレル変換回路5や外部トレースメ
モリ制御回路6にデータがi1,j1バスを通じて出力
され、大容量の外部トレースメモリ7に逐次格納される
ことになる。
Each time data is written to the trace buffer FIFO buffer memory 19, the data bus g1 outputs the write data to the parallel / serial conversion circuit 2.
1, the data is output to the outside of the evaluation chip 1, the data is further output from the bus h1 to the serial / parallel conversion circuit 5 and the external trace memory control circuit 6 through the i1 and j1 buses, and is sequentially stored in the large-capacity external trace memory 7. Will be.

【0030】また、バスj1は、外部トレースメモリ7
のアドレスも出力し、更にリード、ライトの制御も行う
信号である。
The bus j1 is connected to the external trace memory 7
And a signal for controlling read and write operations.

【0031】ホストコンピュータ4から、外部トレース
メモリ7のデータを読み出したい場合には、エミュレー
タ制御回路3を通じて、バスk1からのコントロール信
号にて、バスj1に外部トレースメモリ7を読み出すた
めの、アドレス、リード信号を出力し、外部トレースメ
モリ7からバスe1を通じてデータを読み出すことにな
る。
When it is desired to read the data of the external trace memory 7 from the host computer 4, an address and a signal for reading the external trace memory 7 to the bus j1 by the control signal from the bus k1 through the emulator control circuit 3. A read signal is output, and data is read from the external trace memory 7 via the bus e1.

【0032】さて、上記したこの実施形態の特徴は、エ
バチップ1内に小容量の外部トレースメモリ用FIFO
バッファメモリ19を内蔵し、トレースデータとして書
き込まれたデータが、プログラムを走行中、すなわちト
レース実行中に、大容量の外部トレースメモリ7に移さ
れることにある。
The feature of this embodiment described above is that a small-capacity FIFO for external trace memory is provided in the evaluation chip 1.
The buffer memory 19 is built in, and data written as trace data is transferred to the large-capacity external trace memory 7 while running a program, that is, during trace execution.

【0033】その他の特徴としては、エバチップ1にト
レースメモリ18を内蔵し、通常のリアルタイムトレー
スすなわち全てのバスサイクルをトレースメモリ18に
格納できる機能を持つことである。
As another feature, the trace memory 18 is built in the evaluation chip 1 and has a function of storing a normal real-time trace, that is, all bus cycles in the trace memory 18.

【0034】この発明の動作例を、図2のプログラムの
流れを用いて説明する。図2はプログラムの実行の時間
的な流れを簡単に示したものである。
An operation example of the present invention will be described with reference to the flow of a program shown in FIG. FIG. 2 simply shows the time flow of program execution.

【0035】プログラムはメインを実行している時に、
割込みやDMA等の非同期イベントAにより、サブルー
チンAに入り、割込みやDMA等の非同期イベントBに
よりサブルーチンBに入るものとする。
When the program is executing main,
The subroutine A is entered by an asynchronous event A such as an interrupt or DMA, and the subroutine B is entered by an asynchronous event B such as an interrupt or DMA.

【0036】従来のリアルタイムトレースメモリであれ
ば、半導体装置に内蔵されているトレースメモリに格納
するデータとしては、例えば、次の使い方がある。
In a conventional real-time trace memory, the data stored in the trace memory built in the semiconductor device has, for example, the following uses.

【0037】a)ある時点でのプログラムアドレス情報
をトリガ条件として、その前後の全てのバスサイクルを
トレースメモリに格納する。 b)特定アドレスのデータアクセスのみをトレースメモ
リに格納する。
A) With the program address information at a certain point as a trigger condition, all bus cycles before and after that are stored in the trace memory. b) Only the data access at the specific address is stored in the trace memory.

【0038】例えば、いまデバッグしようとしているプ
ロセッサのバスサイクルタイムが5nsec(200M
Hz)、図2のT1を1msec、T2を9msecで
かつ内蔵されているトレースメモリが1kアドレスある
と仮定すると、上記したa)の場合には、5μsecの
プログラム分しかトレースメモリに入らないことにな
る。また、b)の場合には、非同期イベントA,Bによ
るサブルーチンA,B内の特定のデータアクセスのみを
トレースメモリに格納しても、非同期イベントが平均1
0msec毎に起こると仮定すれば、1000回の非同
期イベントすなわち10secのデータアクセス分しか
トレースメモリに格納できないことになる。
For example, if the bus cycle time of the processor to be debugged is 5 nsec (200M
Hz), T1 of FIG. 2 is 1 msec, T2 is 9 msec, and it is assumed that the built-in trace memory has 1 k addresses. Become. In the case of b), even if only specific data accesses in the subroutines A and B by the asynchronous events A and B are stored in the trace memory, the average number of asynchronous events is one.
Assuming that it occurs every 0 msec, only 1000 asynchronous events, that is, 10 sec of data access, can be stored in the trace memory.

【0039】例えば、5分に1回位の割合で、不具合が
生じている場合等は、トレースメモリは時間的に不足し
ており、デバッグが困難である。
For example, when a problem occurs at a rate of about once every 5 minutes, the trace memory is insufficient in time, and debugging is difficult.

【0040】さらに、b)の場合に関しては、5sec
のデータはトレースでき、仮に不具合のデータを見つけ
たとしても、プログラムを解析して詳細にデバッグを進
めるためには、全てのバスサイクルがある方がデバッグ
効率はよく、その場合にはエラーの非同期イベントをト
リガ条件として、その非同期イベントに対してa)の全
バスサイクルをトレースするモードでトレースメモリへ
取り込みを実施する。
Further, regarding the case b), 5 seconds
Data can be traced, and even if you find faulty data, in order to analyze the program and proceed with detailed debugging, it is more efficient to have all bus cycles, in which case the asynchronous error Using the event as a trigger condition, the asynchronous event is fetched into the trace memory in the mode of tracing all the bus cycles of a).

【0041】その際、a)のモードでは、非同期イベン
トは入ったとしても1回しか期待できないため、非同期
イベントA,Bの組み合わせの状況で不具合が生じてい
る場合は、デバッグは非常に困難である。
At this time, in the mode a), since the asynchronous event can be expected only once even if it enters, if the malfunction occurs in the situation of the combination of the asynchronous events A and B, it is very difficult to debug. is there.

【0042】これに対して、この発明の実施形態である
図1の例では、図2に示す非同期イベントA,Bは、外
部トレースメモリFIFOバッファメモリ19、パラシ
リ変換I/F21を経由して、最終的に大容量の外部ト
レースメモリ7に格納される。
On the other hand, in the example of FIG. 1 which is the embodiment of the present invention, the asynchronous events A and B shown in FIG. 2 are transmitted via the external trace memory FIFO buffer memory 19 and the parallel / serial conversion I / F 21. Finally, it is stored in a large-capacity external trace memory 7.

【0043】そして、非同期イベントが、A,Bの2種
類有って、イベントが生じる度に外部トレースメモリ用
FIFOバッファメモリ19に格納され、データが、格
納されるとパラレル・シリアル変換回路21に出力さ
れ、エバチップ1外部に出力され、外部トレースメモリ
7に格納される。
There are two types of asynchronous events, A and B. Each time an event occurs, it is stored in the FIFO buffer memory 19 for the external trace memory. The output is output to the outside of the evaluation chip 1 and stored in the external trace memory 7.

【0044】この出力されるデータは、非同期イベント
間隔の時間を利用して外部に出力するものとする。
This output data is output to the outside using the time of the asynchronous event interval.

【0045】複数の非同期イベントが連続的にに起きる
場合でも、FIFOバッファメモリ19にある程度の容
量を持たせることで、問題なくシリアル出力することが
できる。
Even when a plurality of asynchronous events occur consecutively, serial output can be performed without any problem by providing the FIFO buffer memory 19 with a certain capacity.

【0046】また、外部トレースメモリ7への、ライト
信号、データの生成、アドレスの生成は、シリアル・パ
ラレル変換回路5、外部トレースメモリ制御回路6によ
って生成される。
The write signal, data generation, and address generation to the external trace memory 7 are generated by the serial / parallel conversion circuit 5 and the external trace memory control circuit 6.

【0047】一方、内蔵のトレースメモリ18は、全て
のサイクルのプログラムを解析して詳細にデバッグを進
めるための機能で、エラーの生じている非同期イベント
と、プログラムの詳細トレースが、一度のプログラム走
行で同時にトレースできるため、エラーの見つけやすさ
が向上し、デバッグ効率が高くなる。
On the other hand, the built-in trace memory 18 is a function for analyzing programs in all cycles and performing detailed debugging. The asynchronous event in which an error has occurred and the detailed trace of the program are executed once. Can be traced at the same time, so that errors can be easily found and debugging efficiency is improved.

【0048】そして、プログラム走行にて、トレースデ
ータを取得した後は、ホストコンピュター4上で走るデ
バッガプログラムからの指示で、エミュレータ制御回路
3を通じて、プロセッサ11の内部レジスタの情報、メ
モリ12の情報、周辺回路13の情報を取得すると共
に、トレースメモリ18、外部トレースメモリ7から、
トレース情報を吸い上げ、更にホストコンピュター4上
で、解析、逆アセンブル等の解読を行い、ホストコンピ
ュター上に表示することで、デバッグを行うことができ
る。
After the trace data is acquired during the program running, the information of the internal register of the processor 11, the information of the memory 12, and the information of the memory 12 are transmitted through the emulator control circuit 3 by the instruction from the debugger program running on the host computer 4. The information of the peripheral circuit 13 is obtained and the trace memory 18 and the external trace memory 7
Debugging can be performed by collecting trace information, further analyzing and disassembling analysis, disassembly, and the like on the host computer 4 and displaying the information on the host computer.

【0049】トレース情報の例を図3、図4に示す。FIGS. 3 and 4 show examples of the trace information.

【0050】外部トレースメモリ7の格納データは、非
同期イベントが生じてサブルーチンで処理される前のデ
ータや処理された後のデータ等を、メモリのアドレスと
共に格納するのが効果的であると考えられる。
It is considered effective to store the data stored in the external trace memory 7 together with the address of the memory before the data is processed in the subroutine due to the occurrence of the asynchronous event, the data after the processing, and the like. .

【0051】例えば、信号処理プログラム等で良く使用
される、周辺回路の機能の一部であるA/Dコンバータ
からDSPプロセッサへの、入力データであるアドレス
およびデータ、信号処理後のDSPプロセッサからD/
Aコンバータへの出力データであるアドレスおよびデー
タ情報などがある。
For example, the address and data as input data from the A / D converter which is a part of the function of the peripheral circuit to the DSP processor, which is often used in the signal processing program, etc. /
There are address and data information that are output data to the A converter.

【0052】外部トレースメモリ7を大容量メモリで構
成し、そのメモリが1Mアドレス有ったとすると、非同
期イベントが平均10msec毎に起こると仮定すれ
ば、1000000回の非同期イベント、すなわち、1
0000sec(約166分)のデータアクセス分の情
報が外部トレースメモリ7に格納でき、5分に1回位の
割合で、不具合が生じている場合でも、非同期イベント
の不具合箇所を特定することができる。
If the external trace memory 7 is composed of a large-capacity memory and the memory has 1M addresses, assuming that asynchronous events occur every 10 msec on average, 100,000 asynchronous events, ie, 1
Information for data access of 0000 sec (about 166 minutes) can be stored in the external trace memory 7, and the faulty portion of the asynchronous event can be specified at a rate of about once every five minutes even if a fault occurs. .

【0053】更に、不具合が生じるデータやアドレスを
トリガ条件にし、内部トレースメモリ18へ、プログラ
ムを再度走行し、図4に示したように、プログラムアド
レス、プログラムデータ、データアドレス、各種デー
タ、リードライト、時間情報等の各種ステータスをトレ
ースメモリへ格納すれば、非同期データの不具合と、プ
ログラムの詳細なトレースを、対応づけて、同時に解析
することができる。
Further, the program is re-run to the internal trace memory 18 with the data or address at which a defect occurs as a trigger condition, and as shown in FIG. 4, the program address, program data, data address, various data, read / write By storing various statuses such as time information and the like in the trace memory, it is possible to simultaneously analyze the malfunction of asynchronous data and the detailed trace of the program in association with each other.

【0054】[0054]

【発明の効果】上記したように、この発明によれば、外
部トレースメモリ用FIFOバッファメモリを内蔵する
ため、高速なバスサイクルをもつ、高速MPUがデバッ
グの対象の場合でも、問題なくリアルタイムトレース機
能を使用してデバッグを行うことができる。
As described above, according to the present invention, since the FIFO buffer memory for the external trace memory is built-in, even if a high-speed MPU having a high-speed bus cycle is to be debugged, the real-time trace function can be performed without any problem. Can be used for debugging.

【0055】また、トレースメモリ内蔵の容量の限界す
なわち、製造上の問題やコストの問題のため、デバッグ
システムに要求されているトレースメモリ容量は内蔵で
きずに、結果的にデバッグ効率が悪いという問題に対し
ては、外部トレースメモリ用FIFOバッファメモリに
格納できるインターバルの制約時間(トレースメモリへ
の格納データのスループットの平均値 < シリアルI
/Fのスループット)があるものの、大容量の外付けト
レースメモリを用意することで、デバッグ効率が高くな
る。
Also, due to the limitation of the capacity of the built-in trace memory, that is, due to manufacturing problems and cost problems, the trace memory capacity required for the debug system cannot be built in, resulting in poor debugging efficiency. , The constraint time of the interval that can be stored in the FIFO buffer memory for the external trace memory (the average value of the throughput of the data stored in the trace memory <the serial I
/ F throughput), but by providing a large-capacity external trace memory, debugging efficiency is improved.

【0056】さらに、上記外部トレースメモリ用FIF
Oバッファメモリトレースメモリへの格納データのスル
ープットの平均値が大きく、外部への出力が間に合わな
かった場合には、トレースメモリブロックからオーバー
ラン等の障害が起きたことを知らせるステータス信号が
でるため、トレースを実施した情報が有効か無効かを知
ることができる。
Further, the external trace memory FIF
If the average value of the throughput of the data stored in the O buffer memory trace memory is large and the output to the outside cannot be made in time, a status signal is output from the trace memory block to notify that a failure such as overrun has occurred. It is possible to know whether the traced information is valid or invalid.

【0057】また、比較的小容量の外部トレースメモリ
用FIFOバッファメモリですむため、エバチップの製
造コストが安い。
Further, since a relatively small capacity FIFO buffer memory for external trace memory is sufficient, the manufacturing cost of the evaluation chip is low.

【0058】さらに、外部の大容量トレースメモリと全
バスサイクルをトレース可能な、内蔵トレースメモリの
2つのトレースメモリを使用することで、非同期データ
の不具合と、プログラムの詳細なトレースを、対応づけ
て、同時に解析することができデバッグ効率を高くでき
る。
Further, by using two trace memories of an external large-capacity trace memory and a built-in trace memory capable of tracing all bus cycles, a defect of asynchronous data and a detailed trace of a program can be associated with each other. In addition, analysis can be performed simultaneously, and debugging efficiency can be increased.

【図面の簡単な説明】[Brief description of the drawings]

【図1】この発明の実施の形態を示すブロック回路図で
ある。
FIG. 1 is a block circuit diagram showing an embodiment of the present invention.

【図2】プログラムの実行の時間的な流れを示した説明
図である。
FIG. 2 is an explanatory diagram showing a temporal flow of program execution.

【図3】トレース情報の例を示す模式図である。FIG. 3 is a schematic diagram illustrating an example of trace information.

【図4】トレース情報の例を示す模式図である。FIG. 4 is a schematic diagram illustrating an example of trace information.

【符号の説明】[Explanation of symbols]

1 エバチップ 3 エミュレータ制御回路 4 ホストコンピュータ 7 外部トレースメモリ 11 プロセッサ 12 メモリ 13 周辺回路 18 トレースメモリ 19 外部トレース用FIFOバッファメモリ REFERENCE SIGNS LIST 1 evaluation chip 3 emulator control circuit 4 host computer 7 external trace memory 11 processor 12 memory 13 peripheral circuit 18 trace memory 19 FIFO buffer memory for external trace

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B042 GA13 GA33 GC03 HH30 LA18 MA04 MA08 MC03 MC07 MC08 MC09 MC31 5B048 AA12 BB02 DD04 DD10 5B062 AA08 CC02 EE05 EE09 JJ07 JJ08  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5B042 GA13 GA33 GC03 HH30 LA18 MA04 MA08 MC03 MC07 MC08 MC09 MC31 5B048 AA12 BB02 DD04 DD10 5B062 AA08 CC02 EE05 EE09 JJ07 JJ08

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 プロセッサを備える半導体装置内に、外
部トレースメモリ用バッファメモリを内蔵し、非同期的
に発生するイベントにより、前記外部トレースメモリへ
格納するデータを前記バッファメモリに対して格納し、
トレースデータとして書き込まれた前記データが、非同
期的に発生するイベント間隔で外部トレースメモリに格
納されることを特徴とするマイクロコンピュータ開発支
援装置。
An external trace memory buffer memory built in a semiconductor device having a processor, wherein data to be stored in the external trace memory is stored in the buffer memory by an event that occurs asynchronously;
A microcomputer development support apparatus, wherein the data written as trace data is stored in an external trace memory at an event interval that occurs asynchronously.
【請求項2】 前記外部トレースメモリ用バッファメモ
リの格納データをパラレル・シリアル変換回路を介し
て、シリアルデータとして外部に出力することを特徴と
する請求項1に記載のマイクロコンピュータ開発支援装
置。
2. The microcomputer development support apparatus according to claim 1, wherein data stored in the buffer memory for external trace memory is output to the outside as serial data via a parallel / serial conversion circuit.
【請求項3】 前記外部トレースメモリ用バッファメモ
リがフルになり、バッファメモリが間に合わない場合に
は、そのステータス信号を出力し、通知することを特徴
とする請求項1又は2に記載のマイクロコンピュータ開
発支援装置。
3. The microcomputer according to claim 1, wherein when the buffer memory for the external trace memory becomes full and the buffer memory cannot keep up, a status signal is output and notified. Development support equipment.
【請求項4】 プロセッサを備える半導体装置内に、全
バスサイクルをトレース可能なトレースメモリをさらに
備えことを特徴とする請求項1ないし3のいずれかに記
載のマイクロコンピュータ開発支援装置。
4. The microcomputer development supporting apparatus according to claim 1, further comprising a trace memory capable of tracing all bus cycles in a semiconductor device having a processor.
JP2000058207A 2000-03-03 2000-03-03 Microcomputer development assisting device Pending JP2001249823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000058207A JP2001249823A (en) 2000-03-03 2000-03-03 Microcomputer development assisting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000058207A JP2001249823A (en) 2000-03-03 2000-03-03 Microcomputer development assisting device

Publications (1)

Publication Number Publication Date
JP2001249823A true JP2001249823A (en) 2001-09-14

Family

ID=18578838

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000058207A Pending JP2001249823A (en) 2000-03-03 2000-03-03 Microcomputer development assisting device

Country Status (1)

Country Link
JP (1) JP2001249823A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7185248B2 (en) 2002-09-04 2007-02-27 Oki Electric Industry Co., Ltd. Failure analysis system and failure analysis method of logic LSI
CN1310300C (en) * 2003-07-09 2007-04-11 华为技术有限公司 Method for testing chips of wideband data communicatioin and chip
JP2008293260A (en) * 2007-05-24 2008-12-04 Renesas Technology Corp Trace device
JP2008310702A (en) * 2007-06-15 2008-12-25 Nec Electronics Corp Monitoring device and monitoring method
JP2009259289A (en) * 2009-08-07 2009-11-05 Stmicroelectronics Sa Temporal correlation of message transmitted by monitor circuit of microprocessor
CN103595513A (en) * 2012-08-15 2014-02-19 重庆重邮信科通信技术有限公司 Method and device for HARQ (hybrid automatic repeat request) data access
US9606890B2 (en) 2014-09-26 2017-03-28 International Business Machines Corporation Analysis system, analysis method and program
JP7396067B2 (en) 2020-01-20 2023-12-12 株式会社リコー Information processing device, log management method, and program

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7185248B2 (en) 2002-09-04 2007-02-27 Oki Electric Industry Co., Ltd. Failure analysis system and failure analysis method of logic LSI
CN1310300C (en) * 2003-07-09 2007-04-11 华为技术有限公司 Method for testing chips of wideband data communicatioin and chip
JP2008293260A (en) * 2007-05-24 2008-12-04 Renesas Technology Corp Trace device
JP2008310702A (en) * 2007-06-15 2008-12-25 Nec Electronics Corp Monitoring device and monitoring method
JP2009259289A (en) * 2009-08-07 2009-11-05 Stmicroelectronics Sa Temporal correlation of message transmitted by monitor circuit of microprocessor
CN103595513A (en) * 2012-08-15 2014-02-19 重庆重邮信科通信技术有限公司 Method and device for HARQ (hybrid automatic repeat request) data access
US9606890B2 (en) 2014-09-26 2017-03-28 International Business Machines Corporation Analysis system, analysis method and program
US9710351B2 (en) 2014-09-26 2017-07-18 International Business Machines Corporation Analysis system, analysis method and program
US10360384B2 (en) 2014-09-26 2019-07-23 International Business Machines Corporation Analysis systems, analysis method and program
US10963364B2 (en) 2014-09-26 2021-03-30 International Business Machines Corporation Analysis system, analysis method and program
JP7396067B2 (en) 2020-01-20 2023-12-12 株式会社リコー Information processing device, log management method, and program

Similar Documents

Publication Publication Date Title
US6598178B1 (en) Peripheral breakpoint signaler
KR0168656B1 (en) Data processing system
US7689867B2 (en) Multiprocessor breakpoint
JP2752592B2 (en) Microprocessor, signal transmission method between microprocessor and debug tool, and tracing method
US6557119B1 (en) Microcomputer debug architecture and method
CN108351907B (en) Method and circuit for debugging a circuit design
JP5905911B2 (en) Diagnostic code using single-step execution
US20060253842A1 (en) Modelling of programmable devices
US6487683B1 (en) Microcomputer debug architecture and method
US6463553B1 (en) Microcomputer debug architecture and method
EP0869434A2 (en) Method for outputting trace information of a microprocessor
JP2008507025A (en) Emulation and debug interface for integrated circuit testing
JP2001249823A (en) Microcomputer development assisting device
US20060179380A1 (en) On-chip electronic hardware debug support units having execution halting capabilities
JP3003782B2 (en) Development support equipment
US7418631B2 (en) Program-controlled unit
US7992049B2 (en) Monitoring of memory and external events
US7051237B2 (en) Program-controlled unit
US20050114742A1 (en) System debugging device and system debugging method
CN100533401C (en) Emulation and debug interfaces for testing an integrated circuit with an asynchronous microcontroller
JP2902861B2 (en) Buffer device with trace function
JP4084912B2 (en) Microprocessor system
JPH01131934A (en) Dynamic single clock tracing system
JPH05346870A (en) Digital computer system
JP2005267349A (en) Processing module and control method thereof