JPH02156343A - Tracer memory control circuit - Google Patents
Tracer memory control circuitInfo
- 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
Links
- 239000000700 radioactive tracer Substances 0.000 title claims abstract description 38
- 238000000034 method Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 2
Landscapes
- Debugging And Monitoring (AREA)
Abstract
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.
第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)
スカウンタを歩進せしめてトレースデータをトレーサメ
モリへ格納するようにしたトレーサメモリ制御回路であ
って、予め定められた特定条件成立時にはその成立時の
タイミングに同期して前記アドレスカウンタを歩進せし
める手段と、この特定条件成立の期間をカウントするカ
ウント手段とを含み、トレースデータと共にこのカウン
ト手段のカウント値をもトレーサメモリへ格納してなる
ことを特徴とするトレーサメモリ制御回路。(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.
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)
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 |
-
1988
- 1988-12-08 JP JP63310902A patent/JPH0797340B2/en not_active Expired - Fee Related
Patent Citations (2)
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 |