JPH0797340B2 - Tracer memory control circuit - Google Patents

Tracer memory control circuit

Info

Publication number
JPH0797340B2
JPH0797340B2 JP63310902A JP31090288A JPH0797340B2 JP H0797340 B2 JPH0797340 B2 JP H0797340B2 JP 63310902 A JP63310902 A JP 63310902A JP 31090288 A JP31090288 A JP 31090288A JP H0797340 B2 JPH0797340 B2 JP H0797340B2
Authority
JP
Japan
Prior art keywords
tracer memory
tracer
control circuit
memory control
flip
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.)
Expired - Fee Related
Application number
JP63310902A
Other languages
Japanese (ja)
Other versions
JPH02156343A (en
Inventor
篤 山崎
正也 柿木
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP63310902A priority Critical patent/JPH0797340B2/en
Publication of JPH02156343A publication Critical patent/JPH02156343A/en
Publication of JPH0797340B2 publication Critical patent/JPH0797340B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 技術分野 本発明はトレーサメモリ制御回路に関し、特にCPUの動
作履歴を記憶するトレーサメモリの制御回路に関するも
のである。
Description: TECHNICAL FIELD The present invention relates to a tracer memory control circuit, and more particularly to a tracer memory control circuit that stores an operation history of a CPU.

従来技術 CPUの動作履歴を記憶するトレーサメモリは、通常のシ
ステム動作中においては、システムクロックに同期して
アドレスカウンタを歩進させつつ毎クロックCPUの動作
履歴を記憶するように制御されている。
2. Description of the Related Art A tracer memory that stores the operation history of a CPU is controlled so as to store the operation history of each clock CPU while advancing the address counter in synchronization with the system clock during normal system operation.

この様なトレーサメモリの制御方式では、システムがス
トール状態あるいはマイクロ命令の実行抑止状態となっ
て、その状態が長い間続いた場合、アドレスカウンタは
その間もクロックにより歩進され続けているので、トレ
ーサメモリに記憶されるトレースデータの内容が同一の
内容となってしまい、トレーサメモリがこの同一の内容
で埋ってしまうことになる。よって、以降の解析に必要
な有効なトレースデータが得られないという欠点があ
る。
In such a tracer memory control method, when the system is in a stalled state or in a state where micro instruction execution is suppressed and this state continues for a long time, the address counter continues to be stepped by the clock during that time. The contents of the trace data stored in the memory become the same contents, and the tracer memory is filled with the same contents. Therefore, there is a drawback that effective trace data required for the subsequent analysis cannot be obtained.

発明の目的 そこで、本発明はかかる従来技術の欠点を解決すべくな
されたものであって、その目的とするところは、有効な
トレースデータのみを記憶することができるトレーサメ
モリ制御回路を提供することにある。
SUMMARY OF THE INVENTION Therefore, the present invention has been made to solve the drawbacks of the prior art, and an object of the present invention is to provide a tracer memory control circuit capable of storing only effective trace data. It is in.

発明の構成 本発明によれば、所定のタイミングでアドレスカウンタ
を歩進せしてトレースデータをトレーサメモリへ格納す
るようにしたトレーサメモリ制御回路であって、前記所
定のタイミングとしてシステムクロックに同期するモー
ドとマイクロ命令の実行に同期するモードとのいずれか
一方を選択する手段と、前記マイクロ命令の実行が抑止
されている間のクロック数をカウントするカウント手段
とを有し、前記トレースデータとともに前記カウント手
段の出力を前記トレーサメモリに記憶することを特徴と
するトレーサメモリ制御回路が得られる。
According to the present invention, there is provided a tracer memory control circuit which increments an address counter at a predetermined timing to store trace data in a tracer memory, which is synchronized with a system clock as the predetermined timing. And a count unit for counting the number of clocks while the execution of the microinstruction is suppressed, and a unit for selecting one of the mode and the mode synchronized with the execution of the microinstruction, A tracer memory control circuit is obtained in which the output of the counting means is stored in the tracer memory.

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

第1図は本発明の実施例のトレーサメモリとトレーサメ
モリの制御回路のブロックを示す。図において、1はフ
リップフロップ5に対するセット条件となるマイクロ命
令のデコード信号、2はフリップフロップ5に対するセ
ット条件とな電子計算機の操作盤による入力信号、3は
マイクロ命令の実行が抑止されるとき出力されるWAIT信
号、4はトレーサメモリに格納されるトレースデータ、
5はマイクロ命令または電子計算機の操作盤からセット
リセットが可能であるフリップフロップ、6はフリップ
フロップ5の状態値が1であり、WAIT信号3が出力され
ている間有効となるフリップフロップ、7はトレーサメ
モリのアドレスカウンタ、8はトレーサメモリに格納す
るトレースデータを格納するレジスタ、9はマイクロ命
令の実行が抑止されるとき出力されるWAIT信号が何クロ
ックの間出力されたのかをカウントするカウンタ、10は
トレーサメモリである。尚、11はオアゲート、12はアン
ドゲートを示す。
FIG. 1 shows a block of a tracer memory and a control circuit of the tracer memory according to an embodiment of the present invention. In the figure, 1 is a decode signal of a microinstruction that is a set condition for the flip-flop 5, 2 is an input signal from the operation panel of the computer that is a set condition for the flip-flop 5, and 3 is an output when the execution of the microinstruction is suppressed. WAIT signal, 4 is trace data stored in the tracer memory,
5 is a flip-flop that can be set / reset from a microinstruction or an operation panel of an electronic computer, 6 is a flip-flop whose state value is 1 and the WAIT signal 3 is valid, and 7 is a flip-flop. Address counter of the tracer memory, 8 is a register for storing trace data to be stored in the tracer memory, 9 is a counter for counting how many clocks the WAIT signal is output when the execution of the micro instruction is suppressed, 10 is a tracer memory. Incidentally, 11 is an OR gate and 12 is an AND gate.

フリップフロップ5はトレーサメモリ10のトレース条件
を示すフリップフロップであり、このフリップフロップ
5の状態値が0のとき、トレーサメモリ10がシステムク
ロックに同期して毎クロックデータを格納することを示
し、状態値が1のとき、トレーサメモリ10がマイクロ命
令実行時のみデータの格納を行うことを示す。このフリ
ップフロップ5はマイクロ命令または電子計算機の操作
盤からのセットリセットが可能である。
The flip-flop 5 is a flip-flop indicating the trace condition of the tracer memory 10. When the state value of the flip-flop 5 is 0, it indicates that the tracer memory 10 stores clock data in synchronization with the system clock. A value of 1 indicates that the tracer memory 10 stores data only when executing a microinstruction. This flip-flop 5 can be set / reset from a micro instruction or an operation panel of an electronic computer.

フリップフロップ6はフリップフロップ5の状態値が1
であり、トレーサメモリ10のトレース条件がマイクロ命
令実行時のみデータの格納を行うモードとなっている
時、マイクロ命令の実行が抑止されるときに出力される
WAIT信号3が出力されると状態値1を示す。このフリッ
プフロップ6の状態値が1のとき、トレーサメモリ10の
アドレスカウンタ7はカウンタの更新が抑止される。つ
まり、アドレスカウンタ7はフリップフロップ6の状態
値が0であるとき、システムクロックに同期してインク
リメントされるが、状態値が1のときマイクロ命令が実
行されたときのみカウントはインクリメントされ、それ
以外はホールド状態となり、トレーサメモリ10の同一の
アドレスを示したままとなり、トレースデータ4はトレ
ーサメモリ10にうわ書きされる。
The state value of the flip-flop 6 is 1
Is output when the trace condition of the tracer memory 10 is set to a mode for storing data only when the micro instruction is executed, and when the execution of the micro instruction is suppressed.
When the WAIT signal 3 is output, the state value 1 is shown. When the state value of the flip-flop 6 is 1, updating of the counter of the address counter 7 of the tracer memory 10 is suppressed. That is, when the state value of the flip-flop 6 is 0, the address counter 7 is incremented in synchronization with the system clock, but when the state value is 1, the count is incremented only when a micro instruction is executed, and other than that. Becomes a hold state, the same address of the tracer memory 10 is still shown, and the trace data 4 is written in the tracer memory 10.

カウンタ9はマイクロ命令の実行が抑止されている間、
出力されるWAIT信号3が何クロック間出力されたかをカ
ウントするカウンタであり、WAIT信号3の状態値が1で
ある間は、システムクロックに同期してインクリメント
され、状態値が0になったときにリセットされる。この
カウンタ9をトレーサメモリ10のトレース情報に加えて
おくことにより、マイクロ命令が実行される以前に何ク
ロックの間WAIT信号3が出力されたのかを知ることが可
能になる。
The counter 9 keeps displaying while the execution of the micro instruction is suppressed.
It is a counter that counts how many clocks the output WAIT signal 3 has been output. When the state value of the WAIT signal 3 is 1, the counter is incremented in synchronization with the system clock and the state value becomes 0. Is reset to. By adding the counter 9 to the trace information of the tracer memory 10, it becomes possible to know how many clocks the WAIT signal 3 has been output before the microinstruction is executed.

発明の効果 以上説明したように、本発明によれば、通常はトレーサ
メモリのトレース条件をシステムクロックに同期して毎
クロックデータを格納するモードにして使用し、システ
ムのストール時のデバッグには、マイクロ命令が実行さ
れた時のみデータを格納するモードに切替えることによ
り、マイクロ命令が実行された時のデータのみをトレー
サメモリに格納し、さらにWAIT信号のカウント数をトレ
ーサメモリに格納することにより、マイクロ命令の実行
前に何クロック間、WAIT信号が出力されたのかを知るこ
とが可能となり、トレーサメモリの容量が小さくても解
析に有効なデータをメモリに格納することができるとい
う効果がある。
EFFECTS OF THE INVENTION As described above, according to the present invention, the trace condition of the tracer memory is normally used in the mode in which each clock data is stored in synchronization with the system clock. By switching to the mode that stores data only when the micro instruction is executed, only the data when the micro instruction is executed is stored in the tracer memory, and by further storing the count number of the WAIT signal in the tracer memory, It becomes possible to know how many clocks the WAIT signal has been output before the execution of the micro instruction, and it is possible to store the data effective for analysis in the memory even if the tracer memory has a small capacity.

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

第1図は本発明の実施例のブロック図である。 主要部分の符号の説明 5,6……フリップフロップ 7……アドレスカウンタ 9……カウンタ 10……トレーサメモリ FIG. 1 is a block diagram of an embodiment of the present invention. Explanation of symbols of main parts 5,6 ...... Flip-flop 7 ...... Address counter 9 ...... Counter 10 ...... Tracer memory

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】所定のタイミングでアドレスカウンタを歩
進せしめてトレースデータをトレーサメモリへ格納する
ようにしたトレーサメモリ制御回路であって、前記所定
のタイミングとしてシステムクロックに同期するモード
とマイクロ命令の実行に同期するモードとのいずれか一
方を選択する手段と、前記マイクロ命令の実行が抑止さ
れている間のクロック数をカウントするカウント手段と
を有し、前記トレースデータとともに前記カウント手段
の出力を前記トレーサメモリに記憶することを特徴とす
るトレーサメモリ制御回路。
1. A tracer memory control circuit in which an address counter is incremented at a predetermined timing to store trace data in a tracer memory, wherein a mode and a micro instruction synchronized with a system clock are used as the predetermined timing. It has a means for selecting one of the modes synchronized with the execution and a counting means for counting the number of clocks while the execution of the microinstruction is suppressed, and outputs the output of the counting means together with the trace data. A tracer memory control circuit for storing in the tracer memory.
JP63310902A 1988-12-08 1988-12-08 Tracer memory control circuit Expired - Fee Related JPH0797340B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63310902A JPH0797340B2 (en) 1988-12-08 1988-12-08 Tracer memory control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63310902A JPH0797340B2 (en) 1988-12-08 1988-12-08 Tracer memory control circuit

Publications (2)

Publication Number Publication Date
JPH02156343A JPH02156343A (en) 1990-06-15
JPH0797340B2 true JPH0797340B2 (en) 1995-10-18

Family

ID=18010758

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63310902A Expired - Fee Related JPH0797340B2 (en) 1988-12-08 1988-12-08 Tracer memory control circuit

Country Status (1)

Country Link
JP (1) JPH0797340B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58222359A (en) * 1982-06-18 1983-12-24 Mitsubishi Electric Corp Processing time measuring device
JPS6315342A (en) * 1986-07-05 1988-01-22 Nec Corp Memory device for state history information

Also Published As

Publication number Publication date
JPH02156343A (en) 1990-06-15

Similar Documents

Publication Publication Date Title
US4780819A (en) Emulator system utilizing a program counter and a latch coupled to an emulator memory for reducing fletch line of instructions stored in the emulator memory
KR840001728A (en) Microprocessor
JPH0320776B2 (en)
JPS61123959A (en) Electronics equipment having attachable/detachable memory module
JPH0797340B2 (en) Tracer memory control circuit
JP2002152020A (en) Pulse signal generator
JP2003258628A (en) Counter circuit
JP2000029508A (en) Programmable controller
JP3001547B1 (en) In-circuit emulator
JPS59189435A (en) Data transfer control device
JPS5917468B2 (en) Program counter trajectory storage device
JP2786033B2 (en) Time measuring device
SU1583884A1 (en) Apparatus for functional check of digital circuits
JPS60193046A (en) Detecting system for instruction exception
KR950007880B1 (en) Fifo circuit interfacing with cpu
SU1151961A1 (en) Microprogram control device
JPS61285556A (en) Memory writing system
JP2001060162A (en) In-circuit emulator
JPH01212911A (en) Timing generator
JPS5815203U (en) programmable controller
JPH0343842A (en) Tracer memory
JPS61269288A (en) Storage element module
JPS59161750A (en) Break control system of debugging device
JPH0421894B2 (en)
JPS58181156A (en) Storage device of state history

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees