JPH02156343A - Tracer memory control circuit - Google Patents

Tracer memory control circuit

Info

Publication number
JPH02156343A
JPH02156343A JP63310902A JP31090288A JPH02156343A JP H02156343 A JPH02156343 A JP H02156343A JP 63310902 A JP63310902 A JP 63310902A JP 31090288 A JP31090288 A JP 31090288A JP H02156343 A JPH02156343 A JP H02156343A
Authority
JP
Japan
Prior art keywords
memory
tracer memory
tracer
counter
microinstruction
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
JP63310902A
Other languages
Japanese (ja)
Other versions
JPH0797340B2 (en
Inventor
Atsushi Yamazaki
篤 山崎
Masaya Kakigi
柿木 正也
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
NEC Ibaraki Ltd
Original Assignee
NEC Corp
NEC Ibaraki 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 NEC Corp, NEC Ibaraki Ltd 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)

Abstract

PURPOSE:To store only effective trace data by storing the counted value of a counting means as well together with the trace data to a trace memory. CONSTITUTION:When the condition of an FF 6 is 0, an address counter 7 is made incremental synchronously with a system clock. However, when the condition value is 1 and only when a microinstruction is executed, the count is made incremental and in the other case, the count is in a hold condition. Accordingly, the same address of a tracer memory 10 is still shown and trace data 4 are overwritten to the memory 10. While the condition value of a WATT signal 3 is 1, a counter 9 is made incremental synchronously with the system clock and when the condition value goes to 0, the counter 9 is reset. By adding the counter 9 to the trace information of the memory 10, it can be known of which clock the signal 3 is outputted before the microinstruction is executed. Then, the effective data can be stored to the memory 10.

Description

【発明の詳細な説明】 皮翫立1 本発明はトレーサメモリ制御回路に関し、特にCPUの
動作履歴を記憶するトレーサメモリの制御回路に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a tracer memory control circuit, and more particularly to a tracer memory control circuit that stores the operation history of a CPU.

従m癒 CPUの動作履歴を記憶するトレーサメモリは、通常の
システム動作中においては、システムクロックに同期し
てアドレスカウンタを歩進させつつ毎クロックCPUの
動作履歴を記憶するように制御されている。
The tracer memory that stores the operating history of the CPU is controlled to increment the address counter in synchronization with the system clock and store the operating history of the CPU every clock during normal system operation. .

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

1肌立且皇 そこで、本発明はかかる従来技術の欠点を解決すべくな
されたものであって、その目的とするところは、有効な
トレースデータのみを記憶することができるトレーサメ
モリ制御回路を提供することにある。
1. Therefore, the present invention was made to solve the drawbacks of the prior art, and its purpose is to provide a tracer memory control circuit that can store only valid trace data. It's about doing.

九班点旦眉 本発明によれば、システムクロックに同期してクロック
毎にアドレスカウンタを歩進せしめてトレースデータを
トレーサメモリへ格納するようにしたトレーサメモリ制
御回路であって、予め定められた特定条件成立時にはそ
の成立時のタイミングに同期して前記アドレスカウンタ
を歩進せしめる手段と、この特定条件成立の期間をカウ
ントするカウント手段とを含み、トレースデータと共に
このカウント手段のカウント値をもトレーサメモリへ格
納してなることを特徴とするトレーサメモリ制御回路が
得られる。
According to the present invention, there is provided a tracer memory control circuit which stores trace data in a tracer memory by incrementing an address counter every clock in synchronization with a system clock, The tracer includes means for incrementing the address counter in synchronization with the timing when the specific condition is satisfied when the specific condition is satisfied, and a counting means for counting the period during which the specific condition is satisfied, and the count value of the counting means is also recorded together with the trace data. A tracer memory control circuit is obtained which is characterized in that the tracer memory control circuit is stored in a memory.

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

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

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

フリップフロッグ6はフリップフロップ5の状態値が1
であり、トレーサメモリ10のトレース条件がマイクロ
命令実行時のみデータの格納を行うモードとなっている
時、マイクロ命令の実行が抑止されるときに出力される
WAIT信号3が出力されると状態値1を示す、このフ
リップフロップ6の状態値が1のとき、トレーサメモリ
10のアドレスカウンタ7はカウンタの更新が抑止され
る。つまり、アドレスカウンタ7はフリップフロップ6
の状態値が0であるとき、システムクロックに同期して
インクリメントされるが、状態値が1のときマイクロ命
令が実行されたときのみカウントはインクリメントされ
、それ以外はホールド状態となり、トレーサメモリ10
の同一のアドレスを示したままとなり、トレースデータ
4はトレーサメ−モリ10にうわ書きされる。
Flip-flop 6 has the state value of flip-flop 5 equal to 1.
When the trace condition of the tracer memory 10 is set to a mode in which data is stored only when executing a microinstruction, when the WAIT signal 3, which is output when the execution of a microinstruction is inhibited, is output, the state value changes. When the state value of the flip-flop 6 is 1, the update of the address counter 7 of the tracer memory 10 is inhibited. In other words, the address counter 7 is the flip-flop 6
When the state value is 0, the count is incremented in synchronization with the system clock, but when the state value is 1, the count is incremented only when a microinstruction is executed; otherwise, it is in a hold state, and the tracer memory 10
remains indicating the same address, and the trace data 4 is overwritten in the tracer memory 10.

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

発明の詳細 な説明したように、本発明によれば、通常はトレーサメ
モリのトレース条件をシステムクロックに同期して毎ク
ロツクデータを格納するモードにして使用し、システム
のストール時のデバッグには、マイクロ命令が実行され
た時のみデータを格納するモードに切替えることにより
、マイクロ命令が実行された時のデータのみをトレーサ
メモリに格納し、さらにWA I T信号のカウント数
をトレーサメモリに格納することにより、マイクロ命令
の実行前に何クロック間、WAIT信号が出力されたの
かを知ることが可能となり、トレーサメモリの容量が小
さくても解析に有効なデータをメモリに格納することが
できるという効果がある。
As described in detail, according to the present invention, the trace condition of the tracer memory is normally set to a mode in which data is stored every clock in synchronization with the system clock, and is used for debugging when the system stalls. By switching to a mode in which data is stored only when a microinstruction is executed, only the data when the microinstruction is executed is stored in the tracer memory, and the count number of the WA I T signal is also stored in the tracer memory. This makes it possible to know how many clocks the WAIT signal was output before the microinstruction is executed, and the effect is that even if the capacity of the tracer memory is small, data useful for analysis can be stored in the memory. There is.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例のブロック図である。 主要部分の符号の説明 5.6・・・・・・フリップフロップ 7・・・・・・アドレスカウンタ 9・・・・・・カウンタ 10・・・・・・トレーサメモリ 出願人 日本電気株式会社(外1名) FIG. 1 is a block diagram of an embodiment of the invention. Explanation of symbols of main parts 5.6...Flip-flop 7...Address counter 9...Counter 10... Tracer memory Applicant: NEC Corporation (1 other person)

Claims (1)

【特許請求の範囲】[Claims] (1)システムクロックに同期してクロック毎にアドレ
スカウンタを歩進せしめてトレースデータをトレーサメ
モリへ格納するようにしたトレーサメモリ制御回路であ
って、予め定められた特定条件成立時にはその成立時の
タイミングに同期して前記アドレスカウンタを歩進せし
める手段と、この特定条件成立の期間をカウントするカ
ウント手段とを含み、トレースデータと共にこのカウン
ト手段のカウント値をもトレーサメモリへ格納してなる
ことを特徴とするトレーサメモリ制御回路。
(1) A tracer memory control circuit that stores trace data in a tracer memory by incrementing an address counter every clock in synchronization with a system clock, and when a predetermined specific condition is satisfied, The method includes means for incrementing the address counter in synchronization with timing, and a counting means for counting the period during which this specific condition is satisfied, and the count value of this counting means is also stored in the tracer memory together with the trace data. Features a tracer memory control circuit.
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 true JPH02156343A (en) 1990-06-15
JPH0797340B2 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)

Citations (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

Patent Citations (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
JPH0797340B2 (en) 1995-10-18

Similar Documents

Publication Publication Date Title
US5367550A (en) Break address detecting circuit
US5548794A (en) Data processor and method for providing show cycles on a fast multiplexed bus
US5535376A (en) Data processor having a timer circuit for performing a buffered pulse width modulation function and method therefor
US4318172A (en) Store data buffer control system
JPH0320776B2 (en)
JPH02156343A (en) Tracer memory control circuit
US4566062A (en) Timing control system in data processor
JP2003258628A (en) Counter circuit
JPH0343842A (en) Tracer memory
US4468133A (en) Electronic timepiece
JPS60124746A (en) Data processing unit
JP2001060162A (en) In-circuit emulator
SU1305771A1 (en) Buffer memory driver
SU1608675A1 (en) Device for monitoring running of programs in computer
JPS6118153B2 (en)
SU1005062A1 (en) Failure consequence correction device
JPH0772875B2 (en) Micro program evaluation method
JP2001092692A (en) Circuit and method for measuring time
JP2775830B2 (en) Instruction frequency measurement method
JPH0574154A (en) Microcomputer
SU1278858A1 (en) Device for storing processor states
JPS6131481B2 (en)
JPH01212911A (en) Timing generator
JPH0619752A (en) Microcomputer
JPH0282334A (en) Bus cycle trace circuit

Legal Events

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