JPH07121402A - Tracing device for program - Google Patents

Tracing device for program

Info

Publication number
JPH07121402A
JPH07121402A JP5287375A JP28737593A JPH07121402A JP H07121402 A JPH07121402 A JP H07121402A JP 5287375 A JP5287375 A JP 5287375A JP 28737593 A JP28737593 A JP 28737593A JP H07121402 A JPH07121402 A JP H07121402A
Authority
JP
Japan
Prior art keywords
signal
data
buffer
trace
basic timing
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
JP5287375A
Other languages
Japanese (ja)
Inventor
Makoto Hanawa
誠 花輪
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP5287375A priority Critical patent/JPH07121402A/en
Publication of JPH07121402A publication Critical patent/JPH07121402A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To provide a program tracing device which can deal even with the cases where the operating ferquencies of a microcomputer and the like are different. CONSTITUTION:The tracing device 1 is provided with a first buffer 11 and a second buffer 12, which store data, a tracing memory 2 storing data stored in the selected buffer, a counter 3 indicating an address and a signal control part 4 generating a selection signal, a write signal and a count control signal based on a basic timing signal 10. The signal control part 4 is provided with a delay circuit 41 generating plural delay signals with the input of one basic timing signal 10 as a trigger and a control circuit 42 generating the selection signal, the write signal and the count control signal by using the delay signals.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マイクロコンピュータ
に組み込まれるプログラムの実行状態を追跡調査するた
めのプログラムのトレース装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program trace device for tracing and checking the execution state of a program incorporated in a microcomputer.

【0002】[0002]

【従来の技術】マイクロコンピュータ等に組み込まれる
プログラムが正確に実行するかどうかを検証するデバッ
グ装置には、メモリの内容を表示/変更したりする機能
やプログラムの実行時の履歴を追跡するいわゆるトレー
ス機能などが備えられている。このうちのトレース機能
を行うためのトレース装置は、図3のブロック図に示す
ような構成となっている。
2. Description of the Related Art A debugging device for verifying whether a program incorporated in a microcomputer or the like is executed correctly includes a function for displaying / changing the contents of memory and a so-called trace for tracing the history of execution of the program. Functions are provided. Of these, the trace device for performing the trace function has a configuration as shown in the block diagram of FIG.

【0003】すなわち、このトレース装置1は、主とし
てプログラムを実行するマイクロコンピュータからのデ
ータ(例えば、データIとデータII)を記憶するための
トレースメモリ2と、データをトレースメモリ2のどの
番地に記憶させるかを指定するためのカウンタ3と、デ
ータを格納するためのバッファ(図では第1バッファ1
1と第2バッファ12の2つのバッファ)と、これらを
制御するための信号制御部4とから構成されている。こ
のようなトレース装置1を用い、プログラムの実行中に
1命令毎のデータをトレースメモリ2の指定番地へ書き
込み、プログラムの実行後、このトレースメモリ2の内
容を参照することで実行履歴を追跡している。
That is, the trace device 1 mainly stores a trace memory 2 for storing data (for example, data I and data II) from a microcomputer that executes a program, and an address of the trace memory 2 for storing the data. A counter 3 for designating whether or not to execute, and a buffer for storing data (first buffer 1 in the figure)
1 buffer and a second buffer 12) and a signal controller 4 for controlling these. By using the trace device 1 as described above, the data of each instruction is written to the designated address of the trace memory 2 during the execution of the program, and the execution history is traced by referring to the contents of the trace memory 2 after the execution of the program. ing.

【0004】トレース装置1は、マイクロコンピュータ
から出力される複数の基本タイミング信号10によりデ
ータIおよびデータIIの記憶タイミングが制御されてい
る。つまり、基本タイミング信号10aと10bとのO
R信号4aはトレースメモリ2と第2バッファ12に接
続されており、またその反転信号が第1バッファ11に
接続されている。
In the trace device 1, the storage timing of data I and data II is controlled by a plurality of basic timing signals 10 output from a microcomputer. That is, O of the basic timing signals 10a and 10b
The R signal 4a is connected to the trace memory 2 and the second buffer 12, and its inverted signal is connected to the first buffer 11.

【0005】これにより、第1バッファ11に格納され
たデータIを記憶させるか、第2バッファ12に格納さ
れたデータIIを記憶させるかの切り換えと、トレースメ
モリ2の上位空間と下位空間(上位と下位との2つに分
けた際のそれぞれの空間で、トレースメモリ2の番地
を、例えば0H〜0FFFHまでの下位の番地と100
0H〜1FFFHまでの上位の番地とに分けた際のそれ
ぞれの空間)の選択が成される。
As a result, when the data I stored in the first buffer 11 or the data II stored in the second buffer 12 is switched, the upper space and the lower space (upper space) of the trace memory 2 are stored. In each space when divided into two areas, that is, a lower address and a lower address, for example, 0H to 0FFFH and 100.
Selection of each space when divided into high-order addresses from 0H to 1FFFH) is made.

【0006】また、基本タイミング信号10eと10f
とのOR信号4bに基づいて、データIおよびデータII
のトレースメモリ2への書き込みが制御される。図4
は、このトレース装置1におけるタイミングチャートで
あり、これに基づいてトレースメモリ2へのデータIお
よびデータIIの書き込みとカウンタ3のカウントアップ
が制御される。
Also, the basic timing signals 10e and 10f
Data I and data II based on the OR signal 4b with
Writing to the trace memory 2 is controlled. Figure 4
3 is a timing chart in the trace device 1, based on which the writing of data I and data II into the trace memory 2 and the count-up of the counter 3 are controlled.

【0007】すなわち、基本タイミング信号10aまた
は10bが出力されているときにトレースメモリ2への
信号4aがHigh Level(以下、「H」とす
る)となりトレースメモリ2の上位空間が選択される。
また、同時に第1バッファ11へLow Level
(以下、「L」とする)信号が入力されるため、第1バ
ッファ11が選択され、ここに格納されたデータIがト
レースメモリ2側に出力される。そして、この出力の際
に信号4bが「L」となっている場合(図4のA参
照)、データIがトレースメモリ2に書き込まれること
になる。
That is, when the basic timing signal 10a or 10b is being output, the signal 4a to the trace memory 2 becomes High Level (hereinafter referred to as "H"), and the upper space of the trace memory 2 is selected.
At the same time, the Low Level is sent to the first buffer 11.
Since the signal (hereinafter, referred to as “L”) is input, the first buffer 11 is selected and the data I stored therein is output to the trace memory 2 side. Then, when the signal 4b is "L" at the time of this output (see A in FIG. 4), the data I is written in the trace memory 2.

【0008】一方、基本タイミング信号10cまたは1
0dが出力されているときにはトレースメモリ2への信
号4aが「L」となっているためトレースメモリ2の下
位空間が選択されている。この際、第2バッファ12へ
「H」の信号が入力されるため第2バッファ12が選択
され、ここに格納されたデータIIがトレースメモリ2側
へ出力されることになる。そして、この出力の際に信号
4bが「L」となっている場合(図4のB参照)、デー
タIIがトレースメモリ2に書き込まれることになる。
On the other hand, the basic timing signal 10c or 1
When 0d is output, the signal 4a to the trace memory 2 is "L", so the lower space of the trace memory 2 is selected. At this time, since the "H" signal is input to the second buffer 12, the second buffer 12 is selected and the data II stored therein is output to the trace memory 2 side. When the signal 4b is "L" at the time of this output (see B in FIG. 4), the data II is written in the trace memory 2.

【0009】2つのデータIおよびデータIIの書き込み
が終了して基本タイミング信号10dの「L」となった
際に信号10d/が「H」となり、カウンタ3がカウン
トアップされることになる。これを繰り返すことによ
り、1つのトレースメモリ2に2つのデータIおよびデ
ータIIを時分割で記憶させることができる。
When the writing of the two data I and data II is completed and the basic timing signal 10d becomes "L", the signal 10d / becomes "H" and the counter 3 is counted up. By repeating this, two data I and data II can be stored in one trace memory 2 in a time division manner.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、このよ
うなプログラムのトレース装置には次のような問題があ
る。すなわち、このトレース装置では複数の基本タイミ
ング信号に基づいてデータの記憶を制御しているため、
マイクロコンピュータの動作が高速化され基本タイミン
グ信号の信号幅の減少や信号出力の減少が起こった場合
にはこれに対応するために複雑な回路を用いる必要があ
る。また、マイクロコンピュータの種類によって基本タ
イミング信号を生成する回路が異なるため、トレース装
置の回路を統一するのは困難である。よって、本発明は
マイクロコンピュータの動作周波数等が異なる場合であ
っても対応できるプログラムのトレース装置を提供する
ことを目的とする。
However, such a program tracing device has the following problems. That is, since the trace device controls the storage of data based on a plurality of basic timing signals,
When the operation of the microcomputer is speeded up and the signal width of the basic timing signal is reduced or the signal output is reduced, it is necessary to use a complicated circuit to cope with this. Further, since the circuit for generating the basic timing signal differs depending on the type of microcomputer, it is difficult to unify the circuits of the trace device. Therefore, it is an object of the present invention to provide a program trace device capable of coping with the case where the operating frequency of the microcomputer is different.

【0011】[0011]

【課題を解決するための手段】本発明は、このような課
題を解決するために成されたプログラムのトレース装置
である。すなわち、このトレース装置は、プログラムの
実行によりマイクロコンピュータから出力される複数の
データをそれぞれ順次格納するための複数のバッファ
と、これらのバッファのうち選択された一つに格納され
たデータを所定の番地に記憶するトレースメモリと、ト
レースメモリに対してデータが記憶される番地を指示す
るためのカウンタと、基本タイミング信号に基づいて複
数のバッファのうち一つを選択するための選択信号およ
びトレースメモリに対してデータの書き込みを指示する
書き込み信号およびカウンタに対するカウント制御信号
を発生させる信号制御部とを備えており、この信号制御
部を、一つの基本タイミング信号の入力をトリガとして
遅延時間がそれぞれ異なる複数の遅延信号を発生させる
遅延回路と、この複数の遅延信号を用いて選択信号、書
き込み信号およびカウント制御信号をそれぞれ発生させ
る制御回路とから構成するものである。
SUMMARY OF THE INVENTION The present invention is a program tracing device that is designed to solve such problems. That is, the trace device has a plurality of buffers for sequentially storing a plurality of data output from the microcomputer when the program is executed, and a predetermined amount of data stored in a selected one of the buffers. A trace memory to be stored at an address, a counter for instructing the address at which data is stored to the trace memory, a selection signal for selecting one of a plurality of buffers based on a basic timing signal, and a trace memory And a signal control section for generating a count control signal for the counter, and the signal control section has different delay times triggered by the input of one basic timing signal. A delay circuit that generates a plurality of delay signals and the plurality of delays And it constitutes a control circuit for generating respective select signals, the write signals and count control signals using a No..

【0012】[0012]

【作用】信号制御部に設けられた遅延回路により、一つ
の基本タイミング信号の入力をトリガとして遅延時間が
それぞれ異なる複数の遅延信号を得ることができため、
マイクロコンピュータの動作速度や基本タイミング信号
の出力数等に依存しない制御用の信号を得ることができ
る。また、信号制御部に設けられた制御回路により、遅
延回路からの複数の遅延信号のうちの一つを用いたり、
また複数を組合せたりして選択信号や書き込み信号およ
びカウント制御信号を発生させてデータをトレースメモ
リに時分割して記憶することができるようになる。
With the delay circuit provided in the signal control unit, a plurality of delay signals having different delay times can be obtained by using one basic timing signal input as a trigger.
It is possible to obtain a control signal that does not depend on the operation speed of the microcomputer or the number of outputs of the basic timing signal. In addition, the control circuit provided in the signal control unit uses one of the plurality of delay signals from the delay circuit,
Further, it becomes possible to generate a selection signal, a write signal, and a count control signal by combining a plurality of them to store data in a trace memory in a time division manner.

【0013】[0013]

【実施例】以下に、本発明のプログラムのトレース装置
の実施例を図に基づいて説明する。図1は本発明のトレ
ース装置を説明するブロック図、図2は本発明のトレー
ス装置におけるタイミングチャートである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a program trace device of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram illustrating a trace device of the present invention, and FIG. 2 is a timing chart of the trace device of the present invention.

【0014】図1に示すように、このトレース装置1は
マイクロコンピュータでのプログラムの実行により出力
されるデータをメモリに記憶し、プログラムの終了後に
そのメモリ内のデータを参照することで動作の履歴を追
跡するものであり、主な構成として、例えばデータIお
よびデータIIの2種類のデータを順次格納する第1バッ
ファ11および第2バッファ12と、これらのデータI
およびデータIIを記憶するためのトレースメモリ2と、
記憶する番地を指示するカウンタ3と、各種信号の制御
を行うための信号制御部4とから成るものである。
As shown in FIG. 1, the trace device 1 stores the data output by the execution of a program in a microcomputer in a memory, and refers to the data in the memory after the end of the program to record the operation history. The main configuration is, for example, a first buffer 11 and a second buffer 12 that sequentially store two types of data, data I and data II, and these data I.
And a trace memory 2 for storing data II,
It is composed of a counter 3 for instructing an address to be stored and a signal controller 4 for controlling various signals.

【0015】しかもこの信号制御部4は、例えばマイク
ロコンピュータから出力される一つの基本タイミング信
号10をトリガとして信号Aを発生させ、さらに発生時
点が一定間隔ずつ遅延する信号B〜Jを出力する遅延回
路41と、これらの信号A〜Jを用いて各種の制御信号
を発生させる制御回路42とから構成されている。
Further, the signal control section 4 generates a signal A by using, for example, one basic timing signal 10 output from a microcomputer as a trigger, and further outputs signals B to J whose generation points are delayed by a constant interval. It is composed of a circuit 41 and a control circuit 42 which generates various control signals by using these signals A to J.

【0016】遅延回路41は遅延素子43と所定のフリ
ップフロップ44とから構成されており、一つの基本タ
イミング信号10をフリップフロップ44に入力して信
号Aを出力し、その信号Aを遅延素子43に入力するこ
とで信号Aに基づく遅延信号B〜Jを出力している。
The delay circuit 41 is composed of a delay element 43 and a predetermined flip-flop 44. One basic timing signal 10 is input to the flip-flop 44 to output a signal A, and the signal A is delayed by the delay element 43. To the delay signals B to J based on the signal A.

【0017】次に、このトレース装置1の信号制御を図
2に基づいて説明する。この基本タイミング信号10
は、一定間隔で一定幅のパルス信号から成るものであ
り、例えばマイクロコンピュータから出力されるものの
うちの一つである。この基本タイミング信号10が図1
に示す遅延回路41のフリップフロップ44に入力され
ると、その立ち上がりをトリガとして信号Aが「L」と
なり、この信号Aが遅延素子43に入力される。すなわ
ち、基本タイミング信号10の信号幅に関係なくその立
ち上がりに基づいて信号Aが出力されることになる。
Next, the signal control of the trace device 1 will be described with reference to FIG. This basic timing signal 10
Is a pulse signal having a constant width at a constant interval and is one of those output from a microcomputer, for example. This basic timing signal 10 is shown in FIG.
When the signal is input to the flip-flop 44 of the delay circuit 41 shown in (4), the signal A becomes “L” with its rising as a trigger, and this signal A is input to the delay element 43. That is, the signal A is output based on the rising edge of the basic timing signal 10 regardless of the signal width thereof.

【0018】遅延素子43はこの信号Aを受けることで
一定の遅延間隔で「L」となる信号B〜Jを順次出力す
る。また、フリップフロップ44は、遅延素子43から
の信号CとFとのAND信号である信号CFが「L」と
なることでリセットされるようになっており、これによ
り信号Aが「H」となって遅延素子43に入力され、順
次信号B〜Jが「H」となる。つまり、信号A〜Jの信
号幅は基本タイミング信号10の信号幅や信号速度に関
係なく遅延素子43からの遅延信号の組合せにより決定
されることになる。
Upon receiving the signal A, the delay element 43 sequentially outputs the signals B to J which become "L" at a constant delay interval. Further, the flip-flop 44 is adapted to be reset when the signal CF, which is the AND signal of the signals C and F from the delay element 43, becomes “L”, which causes the signal A to be “H”. Is input to the delay element 43, and the signals B to J sequentially become “H”. That is, the signal widths of the signals A to J are determined by the combination of the delay signals from the delay element 43 regardless of the signal width of the basic timing signal 10 and the signal speed.

【0019】遅延回路41からはこの信号A〜Jが出力
され、そのうちの信号A、G、H、Iが制御回路42に
入力されることになる。制御回路42は2つのORゲー
トから構成されており、そのうちの一方のORゲートへ
信号Gと信号Iとが入力されている。また、他方のOR
ゲートへは信号Aと信号Hとが入力されている。
The signals A to J are output from the delay circuit 41, and the signals A, G, H, and I among them are input to the control circuit 42. The control circuit 42 is composed of two OR gates, and the signal G and the signal I are input to one of the OR gates. Also, the other OR
The signal A and the signal H are input to the gate.

【0020】一方のORゲートからの出力信号42aは
第1バッファ11および第2バッファ12へ入力されて
おり、例えば、出力信号42aが「H」となっている場
合には第1バッファ11に「L」の入力されてこれが選
択されることになる。また、出力信号42aが「L」と
なっている場合には第2バッファ12に「L」が入力さ
れてこれが選択されることになる。つまり、この出力信
号42aによって第1バッファ11を選択するか、また
は第2バッファ12を選択するかの制御を行う。
The output signal 42a from one OR gate is input to the first buffer 11 and the second buffer 12, and, for example, when the output signal 42a is "H", "1" is output to the first buffer 11. "L" is input and this is selected. When the output signal 42a is "L", "L" is input to the second buffer 12 and is selected. That is, the output signal 42a controls whether the first buffer 11 or the second buffer 12 is selected.

【0021】さらに、制御回路42の他方のORゲート
からの出力信号42bはトレースメモリ2に入力されて
おり、出力信号42bが「L」となった場合に書き込み
が成されることになる。すなわち、信号Aが「L」の場
合(図2中○印部分)または信号Hが「L」の場合(図
2中△印部分)に出力信号42bが「L」となり、それ
ぞれの時点で選択されているバッファ(第1バッファ1
1または第2バッファ12)に格納されたデータIまた
はデータIIがトレースメモリ2の所定番地へ書き込まれ
ることになる。
Further, the output signal 42b from the other OR gate of the control circuit 42 is input to the trace memory 2, and when the output signal 42b becomes "L", writing is performed. That is, when the signal A is "L" (marked with a circle in FIG. 2) or when the signal H is "L" (marked with a triangle in FIG. 2), the output signal 42b becomes "L" and is selected at each time point. Buffers (first buffer 1
The data I or the data II stored in the first or second buffer 12) is written to a predetermined address of the trace memory 2.

【0022】つまり、信号Aが「L」となっている場合
には第1バッファ11が選択されており、これと出力信
号42bとが「L」なっている場合(図2中A部分)に
第1バッファ11のデータIがトレースメモリ2へ書き
込まれる。一方、信号Hが「L」となっている場合には
第2バッファ12が選択されており、これと出力信号4
2bとが「L」となっている場合(図2中B部分)に第
2バッファ12のデータIIがトレースメモリ2へ書き込
まれることになる。
That is, when the signal A is "L", the first buffer 11 is selected, and when this and the output signal 42b are "L" (portion A in FIG. 2). The data I in the first buffer 11 is written in the trace memory 2. On the other hand, when the signal H is “L”, the second buffer 12 is selected, and this and the output signal 4
2B and "L" (B portion in FIG. 2), the data II of the second buffer 12 is written to the trace memory 2.

【0023】また、第1バッファ11と第2バッファ1
2との選択を行うための出力信号42aはトレースメモ
リ2の最上位ビットに入力されており、上位空間または
下位空間を選択するようになっている。すなわち、出力
信号42aが「H」となっている場合には第1バッファ
11が選択され、またトレースメモリ2の最上位ビット
へ「L」へは入力され下位空間が選択され、トレースメ
モリ2の下位空間の番地へデータIが書き込まれる。一
方、出力信号42aが「L」となっている場合には第2
バッファ12が選択され、またトレースメモリ2の最上
位ビットへは「H」が入力され上位空間が選択され、ト
レースメモリ2の上位空間の番地へデータIIが書き込ま
れる。
Further, the first buffer 11 and the second buffer 1
The output signal 42a for selecting 2 is input to the most significant bit of the trace memory 2 and selects the upper space or the lower space. That is, when the output signal 42 a is “H”, the first buffer 11 is selected, and the most significant bit of the trace memory 2 is input to “L” to select the lower space and the trace memory 2 is selected. The data I is written in the address of the lower space. On the other hand, when the output signal 42a is "L", the second
The buffer 12 is selected, "H" is input to the most significant bit of the trace memory 2, the upper space is selected, and the data II is written to the address of the upper space of the trace memory 2.

【0024】また、このトレースメモリ2へ番地を指示
するためのカウンタ3には遅延素子43からの信号Jが
入力されている。信号Jは遅延信号のうち最後に立ち上
がるものであり、これが図2中矢印に示すように「H」
となった際にカウンタ3がカウントアップされることに
なる。すなわち、データIおよびデータIIをトレースメ
モリ2へ一回書き込む毎にカウンタ3がカウントアップ
し、次の書き込みの際には次の番地を指示することにな
る。
The signal J from the delay element 43 is input to the counter 3 for instructing the address to the trace memory 2. The signal J is the signal that rises at the end of the delayed signal, and this is "H" as shown by the arrow in FIG.
Then, the counter 3 is incremented. That is, every time the data I and the data II are written in the trace memory 2, the counter 3 counts up, and the next address is designated at the time of the next writing.

【0025】ここまでの一連の動作を繰り返すことによ
り、一つの基本タイミング信号に基づいてデータIおよ
びデータIIを順次トレースメモリ2へ書き込むことがで
き、プログラムの実行終了後にこの書き込まれた内容を
参照することでプログラムの追跡調査を行うことができ
るようになる。
By repeating the series of operations up to this point, the data I and the data II can be sequentially written into the trace memory 2 based on one basic timing signal, and the written contents are referred to after the execution of the program is completed. By doing so, you will be able to track the program.

【0026】なお、本実施例においてマイクロコンピュ
ータから出力されるデータをデータIとデータIIの2種
類を例とし、また、それぞれのデータを格納するための
バッファを第1バッファ11と第2バッファ12として
説明したが本発明はこれに限定されることはない。ま
た、一つの基本タイミング信号10の入力をトリガとし
て各種の信号を発生させているため、マイクロコンピュ
ータから出力される基本タイミング信号10以外の信号
であってもマイクロコンピュータとリンクするものであ
ればそれを基本タイミング信号10として用いることも
可能である。
In this embodiment, two types of data output from the microcomputer, i.e., data I and data II, are used, and buffers for storing the respective data are first buffer 11 and second buffer 12. However, the present invention is not limited to this. Further, since various signals are generated by using the input of one basic timing signal 10 as a trigger, any signal other than the basic timing signal 10 output from the microcomputer may be used as long as it is linked to the microcomputer. Can also be used as the basic timing signal 10.

【0027】[0027]

【発明の効果】以上説明したように、本発明のプログラ
ムのトレース装置によれば次のような効果がある。すな
わち、一つの基本タイミング信号の入力をトリガとして
遅延信号を発生させ、この遅延信号を用いて各種の信号
を制御しているため、マイクロコンピュータの動作が高
速化されて基本タイミング信号の信号幅が減少したり、
信号出力の減少が起きても確実にデータをトレースメモ
リへ書き込むことが可能となる。また、一つの基本タイ
ミング信号を入力すれば足りるため特別なタイミングを
必要とせず、動作周波数や出力タイミング等の異なるマ
イクロコンピュータであっても対応が可能となり、トレ
ース装置の回路を統一化を図ることが可能となる。
As described above, the program tracing device of the present invention has the following effects. That is, since a delay signal is generated by using one basic timing signal input as a trigger and various signals are controlled using this delay signal, the operation of the microcomputer is speeded up and the signal width of the basic timing signal is increased. Decrease,
Even if the signal output decreases, the data can be surely written in the trace memory. Also, since it is sufficient to input one basic timing signal, no special timing is required, and it is possible to support even microcomputers with different operating frequencies, output timings, etc., and to unify the circuits of the trace device. Is possible.

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

【図1】本発明のトレース装置を説明するブロック図で
ある。
FIG. 1 is a block diagram illustrating a trace device of the present invention.

【図2】本発明のトレース装置におけるタイミングチャ
ートである。
FIG. 2 is a timing chart in the trace device of the present invention.

【図3】従来のトレース装置を説明するブロック図であ
る。
FIG. 3 is a block diagram illustrating a conventional trace device.

【図4】従来のトレース装置におけるタイミングチャー
トである。
FIG. 4 is a timing chart in a conventional trace device.

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

1 トレース装置 2 トレースメモリ 3 カウンタ 4 信号制御部 10 基本タイミング信号 11 第1バッファ 12 第2バッファ 41 遅延回路 42 制御回路 43 遅延素子 44 フリップフロップ 1 Trace Device 2 Trace Memory 3 Counter 4 Signal Control Unit 10 Basic Timing Signal 11 First Buffer 12 Second Buffer 41 Delay Circuit 42 Control Circuit 43 Delay Element 44 Flip Flop

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 プログラムの実行によりマイクロコンピ
ュータから出力される複数のデータをそれぞれ順次格納
するための複数のバッファと、該複数のバッファのうち
選択された一つに格納されたデータを所定の番地に記憶
するトレースメモリと、該トレースメモリに対して該番
地を指示するためのカウンタと、基本タイミング信号に
基づいて該複数のバッファのうち一つを選択するための
選択信号および該トレースメモリに対して該データの書
き込みを指示する書き込み信号および該カウンタに対す
るカウント制御信号を発生させる信号制御部とから成る
プログラムのトレース装置において、 前記信号制御部は、一つの基本タイミング信号の入力を
トリガとして遅延時間がそれぞれ異なる複数の遅延信号
を発生させる遅延回路と、 前記複数の遅延信号を用いて前記選択信号、前記書き込
み信号および前記カウント制御信号をそれぞれ発生させ
る制御回路とから成ることを特徴とするプログラムのト
レース装置。
1. A plurality of buffers for sequentially storing a plurality of data output from a microcomputer by executing a program, and data stored in a selected one of the plurality of buffers at a predetermined address. To the trace memory, a counter for indicating the address to the trace memory, a selection signal for selecting one of the plurality of buffers based on a basic timing signal, and the trace memory In a tracing device of a program, which comprises a write signal for instructing writing of the data and a signal control unit for generating a count control signal for the counter, the signal control unit uses the input of one basic timing signal as a trigger for delay time. A delay circuit for generating a plurality of different delay signals, The selection signal, the trace device program characterized by comprising the write signal and said count control signal from a control circuit for generating respectively, using a delay signal.
JP5287375A 1993-10-22 1993-10-22 Tracing device for program Pending JPH07121402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5287375A JPH07121402A (en) 1993-10-22 1993-10-22 Tracing device for program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5287375A JPH07121402A (en) 1993-10-22 1993-10-22 Tracing device for program

Publications (1)

Publication Number Publication Date
JPH07121402A true JPH07121402A (en) 1995-05-12

Family

ID=17716551

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5287375A Pending JPH07121402A (en) 1993-10-22 1993-10-22 Tracing device for program

Country Status (1)

Country Link
JP (1) JPH07121402A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6813732B2 (en) 2001-04-25 2004-11-02 Renesas Technology Corp. Trace circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6813732B2 (en) 2001-04-25 2004-11-02 Renesas Technology Corp. Trace circuit

Similar Documents

Publication Publication Date Title
US4024510A (en) Function multiplexer
JPH07121402A (en) Tracing device for program
JPS59111533A (en) Digital data calculation circuit
JP4253715B2 (en) Processor
JPH04106793A (en) Memory interface circuit
JPH0310129B2 (en)
JP3100013B2 (en) Program debug device
JPH05313824A (en) Control method of disk built-in trace device
JPS6319027B2 (en)
JPS6153579A (en) Tester for function of logical circuit
KR19980052133A (en) FAIL information storage circuit of memory device
JP2572735B2 (en) Pattern generator
JP2581214B2 (en) Logic simulator
JP2553113B2 (en) Dynamic RAM timing control method
JPS62156741A (en) Action history storage device
JPH03196339A (en) Real time tracer
JPH05298144A (en) Data trace system
JPS6214245A (en) One-chip microcomputer
JPS5849960B2 (en) Information check method
JPH0375838A (en) Address trace device
JPS63298452A (en) Tracer circuit
JPH05241911A (en) Hardware control instruction tracing circuit
JPS6243275B2 (en)
JPH06103179A (en) Bus tracer device
JPH01258151A (en) Interface circuit