JPH06175883A - Program debugger - Google Patents

Program debugger

Info

Publication number
JPH06175883A
JPH06175883A JP4325650A JP32565092A JPH06175883A JP H06175883 A JPH06175883 A JP H06175883A JP 4325650 A JP4325650 A JP 4325650A JP 32565092 A JP32565092 A JP 32565092A JP H06175883 A JPH06175883 A JP H06175883A
Authority
JP
Japan
Prior art keywords
instruction
memory
trace
loop
address
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.)
Granted
Application number
JP4325650A
Other languages
Japanese (ja)
Other versions
JP3100013B2 (en
Inventor
Katsuhiko Terasaki
崎 克 彦 寺
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
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics 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, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP04325650A priority Critical patent/JP3100013B2/en
Publication of JPH06175883A publication Critical patent/JPH06175883A/en
Application granted granted Critical
Publication of JP3100013B2 publication Critical patent/JP3100013B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To provide the program debugger which can improve exactness or efficiency for debugging a program and does not require any large capacity trace memory. CONSTITUTION:This device is provided with a mapping memory 12 for storing a program to perform debugging, flag memory 13 for storing information showing which of a loop starting instruction, loop repeating instruction, loop ending instruction and other instruction a certain instruction is corresponding to the respective instructions of the program stored in this mapping memory 12, CPU 11 for outputting trace information by executing the program stored in the mapping memory 12, address control circuit 15 for deciding an address to store the trace information based on the information stored in the flag memory 13, and trace memory 14 for storing the trace information at the address decided by the address control circuit 15.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、CPU(Central Proc
essing Unit )で実行されるプログラムのデバッグを行
うためのプログラムデバッグ装置に関するものである。
The present invention relates to a CPU (Central Proc
The present invention relates to a program debug device for debugging a program executed by an essing unit).

【0002】[0002]

【従来の技術】従来のプログラムデバッグ装置として
は、例えば、実行アドレスやステータス情報、リード/
ライトデ−タなどの実行状態を表す情報(以下、「トレ
ース情報」と記す)をトレースメモリに順次格納し、格
納されたトレース情報をディスプレイで表示させてCP
Uの実行状態をチェックすることによってデバッグ作業
を行う形式のものが知られている。
2. Description of the Related Art As a conventional program debug device, for example, execution address, status information, read / write
Information indicating the execution state of write data (hereinafter referred to as “trace information”) is sequentially stored in the trace memory, and the stored trace information is displayed on the display to display the CP.
There is known a format in which debugging work is performed by checking the execution state of U.

【0003】このような従来のデバッグ装置では、CP
Uが実行した命令についてのトレース情報をすべてトレ
ースメモリに格納することができる。また、CPUが実
行した命令についてのトレース情報のうち、ユーザが指
定したアドレス範囲のもののみをトレースメモリに格納
することができるプログラムデバッグ装置や、特定の命
令のみをトレースメモリに格納し或いは格納しないプロ
グラムデバッグ装置も知られている。
In such a conventional debug device, the CP
All trace information about the instructions executed by U can be stored in trace memory. Further, of the trace information about the instructions executed by the CPU, only a program debug device capable of storing only the address range specified by the user in the trace memory, or storing only a specific instruction in the trace memory Program debug devices are also known.

【0004】[0004]

【発明が解決しようとする課題】このようなデバッグ装
置を用いてトレースを行う場合、例えばソフトウエアタ
イマなど、CPUがループルーチンやループモジュール
で同じ内容の処理を何回も繰り返して実行するときに
は、トレースメモリ内に同じ内容のトレース情報が繰り
返して格納されてしまう。
When tracing is performed using such a debug device, when the CPU repeatedly executes the same processing in a loop routine or a loop module, such as a software timer, many times, The same trace information is repeatedly stored in the trace memory.

【0005】このため、実行されるループルーチンやル
ープモジュールの命令数が多い場合や繰り返し回数が多
い場合には、トレースメモリがループルーチンやループ
モジュールだけで満たされてしまうことがあった。この
ような場合には、CPUが実行した命令についてのトレ
ース情報のすべてを1回のトレースでトレースメモリに
格納することができなくなってしまうので、プログラム
全体の処理の流れが判断しにくくなる場合がある。ま
た、ループルーチンやループモジュールがサブルーチン
や関数として呼び出されるようなプログラムの場合に
は、ループルーチン等の命令数や繰り返し回数が多い
と、ループ終了後の処理や現在の処理状況等のトレース
情報がトレースメモリに格納できなくなってしまい、こ
れらのチェックができなくなるおそれがある。
Therefore, when the number of instructions of the loop routine or loop module to be executed is large or the number of repetitions is large, the trace memory may be filled with only the loop routine or loop module. In such a case, since it becomes impossible to store all the trace information about the instructions executed by the CPU in the trace memory in one trace, it may be difficult to judge the flow of processing of the entire program. is there. Also, in the case of a program in which a loop routine or a loop module is called as a subroutine or a function, if the number of instructions or the number of repetitions of the loop routine is large, the trace information such as the processing after the end of the loop and the current processing status will be displayed. There is a risk that it will not be possible to store them in the trace memory, making these checks impossible.

【0006】これらの欠点は、プログラムのデバッグ作
業の正確さや効率を低下させる要因となっていた。
These drawbacks have been factors that reduce the accuracy and efficiency of the program debugging work.

【0007】このような欠点を解消するためには、トレ
ースメモリの容量を大きくすればよい。しかしながら、
かかる容量を極端に大きくすることはコスト等の面から
事実上困難である。
In order to eliminate such a drawback, the capacity of the trace memory should be increased. However,
It is practically difficult to make such a capacity extremely large in terms of cost and the like.

【0008】本発明は、このような従来技術の欠点に鑑
みてなされたものであり、プログラムのデバッグ作業の
正確さや効率を向上させることができ且つ大容量のトレ
ースメモリを必要としないプログラムデバッグ装置を提
供することを目的とする。
The present invention has been made in view of the above-mentioned drawbacks of the prior art, and is capable of improving the accuracy and efficiency of the program debugging work and does not require a large-capacity trace memory. The purpose is to provide.

【0009】[0009]

【課題を解決するための手段】本発明に係わるプログラ
ムデバッグ装置は、デバッグを行うプログラムを格納す
るマッピングメモリと、このマッピングメモリに格納さ
れた前記プログラムの各命令に対応させて、当該命令が
ループ開始命令、ループ繰り返し命令、ループ終了命令
または他の命令のいずれに該当するかの情報を格納する
命令情報格納メモリと、前記マッピングメモリに格納さ
れた前記プログラムを実行し、トレース情報を出力する
CPUと、前記命令情報格納メモリに格納された前記情
報に基づいて前記トレース情報を格納するアドレスを決
定するアドレス制御回路と、前記アドレス制御回路が決
定したアドレスに前記トレース情報を格納するトレース
メモリと、を備えたことを特徴とする。
A program debugging apparatus according to the present invention is a mapping memory for storing a program to be debugged and a loop of the instruction corresponding to each instruction of the program stored in the mapping memory. An instruction information storage memory that stores information as to which of a start instruction, a loop repeat instruction, a loop end instruction, or another instruction, and a CPU that executes the program stored in the mapping memory and outputs trace information An address control circuit for determining an address for storing the trace information based on the information stored in the instruction information storage memory; and a trace memory for storing the trace information at the address determined by the address control circuit, It is characterized by having.

【0010】[0010]

【作用】命令の種類を示す情報を格納した命令情報格納
メモリを設け、この情報に基づいてトレースメモリへの
格納アドレスを決定することにより、まったく同じ内容
のトレース情報が繰り返してトレースメモリ内に格納さ
れることがないようにすることができる。これにより、
トレースメモリの容量を増やすことなしに、このトレー
スメモリに格納されるトレース情報の実質的な情報量を
増大させることができる。
By providing an instruction information storage memory that stores information indicating the type of instruction, and determining the storage address in the trace memory based on this information, the trace information of exactly the same content is repeatedly stored in the trace memory. You can prevent it from being done. This allows
The substantial amount of trace information stored in the trace memory can be increased without increasing the capacity of the trace memory.

【0011】[0011]

【実施例】本発明に係わるプログラムデバッグ装置の一
実施例について説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the program debug device according to the present invention will be described.

【0012】図1は、本実施例に係わるプログラムデバ
ッグ装置におけるトレース回路10の回路構成を概略的
に示すブロック図である。
FIG. 1 is a block diagram schematically showing a circuit configuration of a trace circuit 10 in a program debug device according to this embodiment.

【0013】同図において、評価用CPU11は、デバ
ッグを行うべきプログラムを実行する。マッピングメモ
リ12には、評価用CPU11で実行するプログラムが
格納されている。
In FIG. 1, the evaluation CPU 11 executes a program to be debugged. A program executed by the evaluation CPU 11 is stored in the mapping memory 12.

【0014】フラグメモリ(本発明の命令情報格納メモ
リ)13には、マッピングメモリ12に格納されたプロ
グラムの各命令に対応させて、当該命令の種類を表す情
報が格納される。ここで、命令の種類は、ループを開始
させる命令(以下、ループ開始命令)、ループの繰り返
しを行わせる命令(以下、ループ繰り返し命令)、ルー
プから抜け出す命令(以下、ループ終了命令)、通常実
行命令(以上の3種類の命令のいずれにも該当しない命
令)の4種類である。また、このフラグメモリ13は、
マッピングメモリ12から評価用CPU11に命令が読
み出された際に、この命令に対応する情報の内容に応じ
て、ループ開始信号、ループ繰り返し信号或いはループ
終了信号を出力する。
The flag memory (instruction information storage memory of the present invention) 13 stores information indicating the type of the instruction in association with each instruction of the program stored in the mapping memory 12. Here, the type of instruction includes an instruction to start a loop (hereinafter, loop start instruction), an instruction to repeat a loop (hereinafter, loop repeat instruction), an instruction to exit from a loop (hereinafter, loop end instruction), and a normal execution. There are four types of instructions (instructions that do not correspond to any of the above three types of instructions). Further, this flag memory 13 is
When a command is read from the mapping memory 12 to the evaluation CPU 11, a loop start signal, a loop repeat signal or a loop end signal is output according to the content of information corresponding to this command.

【0015】トレースメモリ14には、評価用CPU1
1で実行されたプログラムのトレース情報が格納され
る。また、アドレス制御回路15は、フラグメモリ13
が出力した上記信号を受けとって、トレースメモリ14
へトレース情報を格納する際の格納アドレスを出力す
る。
The trace memory 14 includes the evaluation CPU 1
The trace information of the program executed in 1 is stored. Further, the address control circuit 15 uses the flag memory 13
The trace memory 14 receives the signal output by the
Outputs the storage address when storing trace information.

【0016】次に、アドレス制御回路15の回路構成に
ついて、図2を用いて説明する。
Next, the circuit configuration of the address control circuit 15 will be described with reference to FIG.

【0017】同図において、カウンタ21は、トレース
メモリ14へトレース情報を格納する際の格納アドレス
31を生成する。このカウンタ21の出力する格納アド
レス31は、書込信号32が入力される度に「1」ずつ
加算される。また、後述するように、各バッファ22,
23または24が出力している格納アドレス31をロー
ドする。
In the figure, the counter 21 generates a storage address 31 for storing the trace information in the trace memory 14. The storage address 31 output from the counter 21 is incremented by "1" each time the write signal 32 is input. Also, as will be described later, each buffer 22,
The storage address 31 output by 23 or 24 is loaded.

【0018】初期値設定バッファ22は、制御用CPU
(図示せず)から初期値制御信号35を入力すると、こ
の制御用CPUから格納アドレスの初期値34を取り込
み、カウンタ21に対して出力する。
The initial value setting buffer 22 is a control CPU.
When the initial value control signal 35 is input from (not shown), the initial value 34 of the storage address is fetched from this control CPU and output to the counter 21.

【0019】開始アドレスバッファ23は、フラグメモ
リ13からループ開始信号36を入力すると、カウンタ
21の出力した格納アドレス31を取り込む。また、後
述するバッファ制御回路26から出力制御信号37を入
力すると、カウンタ21に対して格納アドレス31を出
力する。
When the loop start signal 36 is input from the flag memory 13, the start address buffer 23 fetches the storage address 31 output from the counter 21. Further, when the output control signal 37 is input from the buffer control circuit 26 described later, the storage address 31 is output to the counter 21.

【0020】繰り返しアドレスバッファ24は、フラグ
メモリ13からループ繰り返し信号38を入力すると、
カウンタ21の出力した格納アドレス31を取り込む。
また、フラグメモリ13からループ終了信号39を入力
すると、カウンタ21に対して格納アドレス31を出力
する。
The repeat address buffer 24 receives the loop repeat signal 38 from the flag memory 13,
The storage address 31 output from the counter 21 is fetched.
When the loop end signal 39 is input from the flag memory 13, the storage address 31 is output to the counter 21.

【0021】フリップフロップ25は、フラグメモリ1
3からループ繰り返し信号38を入力し且つ書込信号3
2を入力したときにロード信号33を出力する。
The flip-flop 25 is a flag memory 1
3 from the loop repeat signal 38 and write signal 3
When 2 is input, the load signal 33 is output.

【0022】バッファ制御回路26は、ループ終了情報
39を入力していないときは出力制御信号37を出力
し、ループ終了情報39を入力したときは出力制御信号
37の出力を停止する。
The buffer control circuit 26 outputs the output control signal 37 when the loop end information 39 is not input, and stops the output of the output control signal 37 when the loop end information 39 is input.

【0023】次に、本実施例に係わるプログラムデバッ
グ装置におけるトレース回路10の動作について説明す
る。
Next, the operation of the trace circuit 10 in the program debug device according to this embodiment will be described.

【0024】まず、アドレス制御回路15内の初期値設
定バッファ22は、制御用CPU(図示せず)から格納
アドレスの初期値34を取り込み、カウンタ21に対し
て出力する。カウンタ21は、この格納アドレスの初期
値34をロードし、格納アドレス31として出力する。
First, the initial value setting buffer 22 in the address control circuit 15 fetches the initial value 34 of the storage address from the control CPU (not shown) and outputs it to the counter 21. The counter 21 loads the initial value 34 of this storage address and outputs it as the storage address 31.

【0025】また、評価用CPU11は、マッピングメ
モリ12に格納されたプログラムから最初の命令を読み
出す。このとき、フラグメモリ13からは、この命令に
対応する情報が読み出される。そして、読み出された情
報がループ開始命令、ループ繰り返し命令またはループ
終了命令であれば、これに応じて、ループ開始信号、ル
ープ繰り返し信号或いはループ終了信号を出力する。一
方、読み出された情報が通常実行命令であるときは信号
を出力しない。
The evaluation CPU 11 also reads the first instruction from the program stored in the mapping memory 12. At this time, the information corresponding to this instruction is read from the flag memory 13. If the read information is a loop start instruction, a loop repeat instruction or a loop end instruction, a loop start signal, a loop repeat signal or a loop end signal is output accordingly. On the other hand, when the read information is a normal execution instruction, no signal is output.

【0026】トレースメモリ14は、アドレス制御回路
15から格納アドレス31を入力するとともに評価用C
PU11からトレース情報を入力し、書込制御信号32
のタイミングにしたがって、このトレース情報を格納ア
ドレス31が示すアドレスに格納する。
The trace memory 14 receives the storage address 31 from the address control circuit 15 and receives the evaluation C data.
The trace information is input from the PU 11, and the write control signal 32 is input.
This trace information is stored in the address indicated by the storage address 31 in accordance with the timing of.

【0027】この書込制御信号32はアドレス制御回路
15内のカウンタ21にも入力される。そして、このカ
ウンタ21は、書込制御信号32の入力タイミングにし
たがって、出力する格納アドレス21の値を「1」だけ
加算する。
The write control signal 32 is also input to the counter 21 in the address control circuit 15. Then, the counter 21 increments the value of the storage address 21 to be output by “1” according to the input timing of the write control signal 32.

【0028】これにより、次に評価用CPU11がマッ
ピングメモリ12から読み出した命令がループ開始命
令、ループ繰り返し命令およびループ終了命令でない場
合は、トレース情報は、前回にトレース情報が格納され
た格納領域の次のアドレスの格納領域に格納される。
As a result, when the next instruction read from the mapping memory 12 by the evaluation CPU 11 is not the loop start instruction, loop repeat instruction or loop end instruction, the trace information is stored in the storage area in which the trace information was previously stored. It is stored in the storage area of the next address.

【0029】一方、評価用CPU11によってマッピン
グメモリ12から読み出された命令がループ開始命令で
あるときは、上述したように、開始アドレスバッファ2
3がカウンタ21の出力した格納アドレス31を取り込
む。このとき、フラグメモリ13はループ終了信号を出
力しないので、バッファ制御回路26は出力制御信号3
7を出力し、これにより、開始アドレスバッファ23は
取り込んだ格納アドレス31をそのまま出力する。ただ
し、繰り返し命令38もフラグメモリ13から出力され
ないので、フリップフロップ25はロード信号33を出
力せず、したがって、開始アドレスバッファ23が出力
する格納アドレス31はカウンタ21にはロードされな
い。
On the other hand, when the instruction read from the mapping memory 12 by the evaluation CPU 11 is the loop start instruction, as described above, the start address buffer 2
3 fetches the storage address 31 output from the counter 21. At this time, since the flag memory 13 does not output the loop end signal, the buffer control circuit 26 outputs the output control signal 3
7, the start address buffer 23 outputs the fetched storage address 31 as it is. However, since the repeat instruction 38 is also not output from the flag memory 13, the flip-flop 25 does not output the load signal 33, and therefore the storage address 31 output by the start address buffer 23 is not loaded in the counter 21.

【0030】その後、書込制御信号32がトレースメモ
リ14およびカウンタ21に入力されると、上述と同
様、トレースメモリ14は格納アドレス31が示す格納
領域にトレース情報を格納し、カウンタ21は出力する
格納アドレス31の値を「1」だけ加算する。
After that, when the write control signal 32 is input to the trace memory 14 and the counter 21, the trace memory 14 stores the trace information in the storage area indicated by the storage address 31, and the counter 21 outputs the same, as described above. The value of the storage address 31 is incremented by "1".

【0031】次に、評価用CPU11によってマッピン
グメモリ12から読み出された命令がループ繰り返し命
令であるときは、上述したように、繰り返しアドレスバ
ッファ23がカウンタ21の出力した格納アドレス31
を取り込む。
Next, when the instruction read from the mapping memory 12 by the evaluation CPU 11 is a loop repeat instruction, the repeat address buffer 23 outputs the storage address 31 output from the counter 21 as described above.
Take in.

【0032】その後、書込制御信号32がトレースメモ
リ14に入力されるとトレース情報が格納される。ま
た、このときフリップフロップ25はロード信号33を
出力するので、開始アドレスバッファ23が出力する格
納アドレス31がカウンタ21にロードされ、この格納
アドレスがカウンタ21から出力される。したがって、
その次の回にトレースメモリ14に格納されるトレース
情報は、上述したループ開始命令に係るトレース情報を
前回格納した領域に格納されることになる。このとき、
このループ開始命令に係るトレース情報は消去される。
Thereafter, when the write control signal 32 is input to the trace memory 14, the trace information is stored. At this time, the flip-flop 25 outputs the load signal 33, so that the storage address 31 output from the start address buffer 23 is loaded into the counter 21, and the storage address is output from the counter 21. Therefore,
The trace information to be stored in the trace memory 14 the next time will be stored in the area where the trace information related to the loop start instruction described above was previously stored. At this time,
The trace information related to this loop start instruction is erased.

【0033】このようにして、ループを構成する各命令
は、トレースメモリ14内の同じ格納領域に繰り返し格
納される。
In this way, each instruction forming the loop is repeatedly stored in the same storage area in the trace memory 14.

【0034】そして、ループを終了する際(すなわち、
ループ終了命令が実行されたとき)には、ループ終了信
号がフラグメモリ13から出力される。これにより、バ
ッファ制御回路26が出力制御信号37の出力を停止す
るので、開始アドレスバッファ23は格納アドレス31
を出力しなくなり、繰り返しアドレスバッファ24が格
納アドレス31を出力する。そして、カウンタ21は、
この繰り返しアドレスバッファ24が出力した格納アド
レス31をロードし、格納アドレス31として出力す
る。これにより、ループ終了命令の次の命令に係わるト
レース情報を前回の繰り返し命令に係わるトレース情報
の次のアドレスの格納領域に格納することができる。
Then, at the end of the loop (ie,
When the loop end instruction is executed), the loop end signal is output from the flag memory 13. As a result, the buffer control circuit 26 stops outputting the output control signal 37, so that the start address buffer 23 stores the storage address 31.
Is no longer output, and the address buffer 24 repeatedly outputs the storage address 31. Then, the counter 21
The storage address 31 output from the repeat address buffer 24 is loaded and output as the storage address 31. Thus, the trace information related to the instruction next to the loop end instruction can be stored in the storage area of the address next to the trace information related to the previous repeat instruction.

【0035】このように、本実施例のプログラムデバッ
グ装置では、ループを構成する各命令がトレースメモリ
14内の同じ格納領域に繰り返し格納されるので、最終
的には、ループを1回実行した分のトレース情報のみが
トレースメモリ14内に格納されることとなる。
As described above, in the program debug device of this embodiment, since each instruction forming the loop is repeatedly stored in the same storage area in the trace memory 14, finally, the loop is executed once. Only the trace information of will be stored in the trace memory 14.

【0036】したがって、ループを実行した際に、これ
に係わるトレース情報がトレースメモリ14で占める格
納領域を少なくすることができる。
Therefore, when the loop is executed, the storage area occupied by the trace information in the trace memory 14 can be reduced.

【0037】なお、本実施例では、最後に実行したルー
プについてのトレース情報をトレースメモリに残すこと
としたが、1回目に実行したループについてのトレース
情報のみをトレースメモリに残すこととしてもよい。ま
た、ループの繰り返し数をカウントするカウンタを新た
に付加することにより、予め設定された回数のループに
ついてのトレース情報をトレースメモリに残すことも可
能である。
In this embodiment, the trace information about the last executed loop is left in the trace memory, but only the trace information about the first executed loop may be left in the trace memory. It is also possible to leave trace information for a preset number of loops in the trace memory by newly adding a counter that counts the number of loop repetitions.

【0038】[0038]

【発明の効果】以上詳細に説明したように、本発明のプ
ログラムデバッグ装置によれば、ループを実行した際の
トレース情報がトレースメモリ内に占める格納領域を少
なくすることができる。
As described in detail above, according to the program debugging apparatus of the present invention, the storage area occupied by the trace information when the loop is executed in the trace memory can be reduced.

【0039】したがって、トレースメモリの容量を増大
させることなく、プログラムのデバッグ作業の正確さや
効率を向上させることができる。
Therefore, the accuracy and efficiency of the program debugging work can be improved without increasing the capacity of the trace memory.

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

【図1】本発明の一実施例に係わるプログラムデバッグ
装置におけるトレース回路の構成を概略的に示すブロッ
ク図である。
FIG. 1 is a block diagram schematically showing a configuration of a trace circuit in a program debug device according to an embodiment of the present invention.

【図2】図1に示したアドレス制御回路の構成を概略的
に示すブロック図である。
FIG. 2 is a block diagram schematically showing a configuration of an address control circuit shown in FIG.

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

11 評価用CPU 12 マッピングメモリ 13 フラグメモリ 14 トレースメモリ 15 アドレス制御回路 21 カウンタ 22 初期値設定バッファ 23 開始アドレスバッファ 24 繰り返しアドレスバッファ 25 フリップフロップ 26 バッファ制御回路 31 格納アドレス 32 書込信号 33 ロード信号 34 格納アドレスの初期値 35 初期値制御信号 36 ループ開始信号 37 出力制御信号 38 ループ繰り返し信号 39 ループ終了信号 11 evaluation CPU 12 mapping memory 13 flag memory 14 trace memory 15 address control circuit 21 counter 22 initial value setting buffer 23 start address buffer 24 repeat address buffer 25 flip-flop 26 buffer control circuit 31 storage address 32 write signal 33 load signal 34 Initial value of storage address 35 Initial value control signal 36 Loop start signal 37 Output control signal 38 Loop repeat signal 39 Loop end signal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】デバッグを行うプログラムを格納するマッ
ピングメモリと、 このマッピングメモリに格納された前記プログラムの各
命令に対応させて、当該命令がループ開始命令、ループ
繰り返し命令、ループ終了命令または他の命令のいずれ
に該当するかの情報を格納する命令情報格納メモリと、 前記マッピングメモリに格納された前記プログラムを実
行し、トレース情報を出力するCPUと、 前記命令情報格納メモリに格納された前記情報に基づい
て前記トレース情報を格納するアドレスを決定するアド
レス制御回路と、 前記アドレス制御回路が決定したアドレスに前記トレー
ス情報を格納するトレースメモリと、 を備えたことを特徴とするプログラムデバッグ装置。
1. A mapping memory for storing a program to be debugged, and the instruction corresponding to each instruction of the program stored in the mapping memory is a loop start instruction, a loop repeat instruction, a loop end instruction, or another instruction. An instruction information storage memory that stores information on which of the instructions is applicable, a CPU that executes the program stored in the mapping memory and outputs trace information, and the information stored in the instruction information storage memory A program debug device, comprising: an address control circuit that determines an address for storing the trace information based on the above; and a trace memory that stores the trace information at the address determined by the address control circuit.
【請求項2】前記CPUが前記ループ開始命令から前記
ループ繰り返し命令までの各命令を複数回繰り返して実
行した場合に、これらの各命令についてのトレース情報
が前記トレースメモリ内の同一の格納領域に繰り返し格
納されるように、前記アドレス制御回路がアドレスの決
定を行うことを特徴とする請求項1記載のプログラムデ
バッグ装置。
2. When the CPU repeatedly executes each instruction from the loop start instruction to the loop repeat instruction a plurality of times, the trace information for each instruction is stored in the same storage area in the trace memory. 2. The program debug device according to claim 1, wherein the address control circuit determines an address so that the address is repeatedly stored.
JP04325650A 1992-12-04 1992-12-04 Program debug device Expired - Fee Related JP3100013B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04325650A JP3100013B2 (en) 1992-12-04 1992-12-04 Program debug device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04325650A JP3100013B2 (en) 1992-12-04 1992-12-04 Program debug device

Publications (2)

Publication Number Publication Date
JPH06175883A true JPH06175883A (en) 1994-06-24
JP3100013B2 JP3100013B2 (en) 2000-10-16

Family

ID=18179195

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04325650A Expired - Fee Related JP3100013B2 (en) 1992-12-04 1992-12-04 Program debug device

Country Status (1)

Country Link
JP (1) JP3100013B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010079343A (en) * 2008-09-24 2010-04-08 Nec Corp Device, program and method for trace information acquisition

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010079343A (en) * 2008-09-24 2010-04-08 Nec Corp Device, program and method for trace information acquisition

Also Published As

Publication number Publication date
JP3100013B2 (en) 2000-10-16

Similar Documents

Publication Publication Date Title
JPH03204737A (en) Debug circuit of signal processing processor
JPH0447856B2 (en)
JPH06175883A (en) Program debugger
JP2878264B1 (en) Tracer device, trace data compression method, and compressed trace data reading method
JP2731047B2 (en) Program operand check method
JPH0222413B2 (en)
KR100542699B1 (en) Apparatus for supplying rom dump mode in microcontroller
JPH0530225B2 (en)
JP4253715B2 (en) Processor
JPS5936853A (en) Operation processor
JPH0716189Y2 (en) Break circuit
JP2604203B2 (en) Debug device for one-chip digital signal processor
JPH0683986A (en) Single chip microcomputer
JPH05342378A (en) Evaluation chip
JPH01166144A (en) Debugging system for firmware program
JPS62119642A (en) Trace system
JPS61217833A (en) Arithmetic processor
JPS6230392B2 (en)
JPS60193046A (en) Detecting system for instruction exception
JPS63131238A (en) Logic simulator
JPS59167760A (en) Information processing device
JPH0264828A (en) Address trace circuit
JPH0474242A (en) Ram test circuit
JPH03121550A (en) Microprocessor
JPH0287227A (en) Data processor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000728

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070818

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080818

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090818

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees