JPH02242440A - Instruction trace circuit - Google Patents

Instruction trace circuit

Info

Publication number
JPH02242440A
JPH02242440A JP1064067A JP6406789A JPH02242440A JP H02242440 A JPH02242440 A JP H02242440A JP 1064067 A JP1064067 A JP 1064067A JP 6406789 A JP6406789 A JP 6406789A JP H02242440 A JPH02242440 A JP H02242440A
Authority
JP
Japan
Prior art keywords
instruction
trace
signal
execution time
processing unit
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
JP1064067A
Other languages
Japanese (ja)
Inventor
Kiyoshi Senba
仙波 清
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 JP1064067A priority Critical patent/JPH02242440A/en
Publication of JPH02242440A publication Critical patent/JPH02242440A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform the analysis of the factor of the execution time of a program to be traced by recording the count value of a clock signal supplied to a central processing unit corresponding to executed instruction word and instruction address. CONSTITUTION:A clock counter 1 counts an inputted clock signal 102 while a busy signal 101 representing the fact that the central processing unit is operating is being inputted, and outputs a clock counter value 109. A trace memory 2 records the instruction address 103 and the instruction word 104 of the executed instruction by making correspond to the clock counter value 109 at every input of the instruction address 103 and a sampling signal 105 outputted at every execution of one instruction at the central processing unit while a trace working display signal 113 from a trace display circuit 5 is being inputted. In such a way, it is possible to calculate the execution time including the disturbance of a pipeline in each instruction, and to perform the analysis of the factor of the execution time such as the execution time classified by every routine of the program to be traced and incremented time due to the disturbance of the pipeline, etc.

Description

【発明の詳細な説明】 技術分野 本発明は命令トレース回路に関し、特に命令1〜レ一ス
機能を備えた情報処理装置における命令トレース方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to an instruction tracing circuit, and more particularly to an instruction tracing method in an information processing apparatus having an instruction 1-receive function.

従来技術 従来、情報処理装置においては、ソフトウェアの動特性
をとって性能評価を行うための方法として、命令1〜レ
ースデータによる方法がある。
BACKGROUND ART Conventionally, in information processing apparatuses, there is a method using instruction 1 to race data as a method for measuring the dynamic characteristics of software and performing performance evaluation.

この方法は被I−レースプログラム上で1命令実行され
る毎に、あるいは一定命令数実行される毎に割込みを行
い、割込み処理ルーチンによって割込み直前に実行され
た命令のアトし・スおよび命令語なとの収集を行った後
に、割込み前の被1〜レースプログラムの実行に戻る。
This method generates an interrupt every time one instruction is executed on the I-race program, or every time a certain number of instructions are executed, and an interrupt processing routine returns the address and instruction word of the instruction executed immediately before the interrupt. After the data is collected, the program returns to the execution of the 1-to-race program before the interrupt.

」二連のようにして、被トレースプログラムのトレース
が終了すると、収集されたデータを集J1シて分析し、
あるいはシミュレータの入力として使用し、これにより
性能評価が行われている。
” When the tracing of the traced program is completed, the collected data is collected and analyzed.
Alternatively, it is used as input to a simulator to evaluate performance.

このような従来の情報処理装置では、命令1〜レースに
より収集されるデータが実行された命令の命令語や命令
アドレス、およびレジスタの内容などたけて、各命令の
実行時間が含まれていなかったので、キャッシュを有す
る装置、あるいはパイプライン方式のように各命令の実
行時間を決めるための要因が多い装置において、各命令
の実行時間を求めて被トレースプ冒グラム実行時間の要
因を分析するのに、大規模なシミュレータを必要とする
という欠点がある。
In such conventional information processing devices, the data collected from instruction 1 to race includes the instruction word, instruction address, and register contents of the executed instruction, but does not include the execution time of each instruction. Therefore, in devices with a cache or devices that have many factors that determine the execution time of each instruction, such as in a pipeline system, it is useful to find the execution time of each instruction and analyze the factors in the execution time of the traced program. , which has the disadvantage of requiring a large-scale simulator.

発明の目的 本発明は上記のような従来のものの欠点を除去すべくな
されたもので、被トレースプログラムのルーチン別実行
時間やパイプラインの乱れによる増加時間などの実行時
間要因の分析を行うことができる命令トレース回路の提
供を目的とする。
Purpose of the Invention The present invention has been made to eliminate the drawbacks of the conventional ones as described above, and is capable of analyzing execution time factors such as the execution time of each routine of a traced program and the increase in time due to pipeline disturbances. The purpose is to provide an instruction trace circuit that can be used.

発明の構成 本発明による命令トレース回路は、中央処理装置に供給
されるクロック信号を計数するクロック計数手段と、前
記中央処理装置において実行された命令語および命令ア
ドレスと、前記命令語および命令アドレスに対応する前
記クロック計数手段の計数値とを記録する記録手段とを
有することを特徴とする。
Composition of the Invention An instruction tracing circuit according to the present invention includes a clock counting means for counting clock signals supplied to a central processing unit, an instruction word and an instruction address executed in the central processing unit, and a clock counting means for counting clock signals supplied to a central processing unit; It is characterized by comprising a recording means for recording the corresponding count value of the clock counting means.

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

第1図は本発明の一実施例の構成を示すブロック図であ
る。図において、クロックカウンタ1は図示せぬ中央処
理装置が動作中であることを示すビジー信号101が入
力されている間、入力されるクロックイ8号102を計
数し、そのりITIツクカウンタ値109をトレースメ
モリ2に出力する。このタロツク信号102は中央処理
装置で便用されるり冒ツク信号である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, a clock counter 1 counts input clock signals 102 while a busy signal 101 indicating that a central processing unit (not shown) is in operation is input, and an ITI counter value 109 is counted. is output to trace memory 2. This tarlock signal 102 is a busy signal used by the central processing unit.

1〜レースメモリ2は1−レース動作中を示す1〜レ一
ス表示回路5からの1〜レ一ス動作中表示信号113が
入力されている間、中央処理装置において1命令実行毎
に出力される命令アドレス103および命令語104の
ザンプルタイミングを示すサンプル信号105が入力さ
れる毎に、実行された命令の命令アドレス103および
命令語104とクロックカウンタ1のクロックカウンタ
値109とが逐次記録される。
The 1-race memory 2 outputs an output every time one instruction is executed in the central processing unit while the 1-race operation display signal 113 from the 1-race display circuit 5 indicating that the 1-race operation is in progress is input. Every time a sample signal 105 indicating the sample timing of the instruction address 103 and instruction word 104 to be executed is input, the instruction address 103 and instruction word 104 of the executed instruction and the clock counter value 109 of the clock counter 1 are sequentially recorded. be done.

命令数カウンタ3はl−レース表示回路5からのトレー
ス動作中表示信号113が入力されている間、サンプル
信号105を計数し、その計数によりオーバフローした
ことを示すオーバフロー信号111をトレース表示回路
5および割込み表示回路6に出力する。すなわち、命令
数カウンタ3は実行された命令数を計数し、予め設定さ
れた命令数を計数したときにオーバフロー信号111を
出力する。
The instruction number counter 3 counts the sample signals 105 while the trace operation display signal 113 from the l-race display circuit 5 is input, and sends an overflow signal 111 indicating an overflow to the trace display circuit 5 and It is output to the interrupt display circuit 6. That is, the instruction number counter 3 counts the number of executed instructions, and outputs an overflow signal 111 when a preset number of instructions is counted.

レジスタ4は割込みを発生する命令数間隔を指定する割
込み間隔指定信号107によりセットされな初期値11
2を命令数カウンタ3に出力する。
Register 4 has an initial value of 11, which is not set by the interrupt interval designation signal 107, which designates the interval for the number of instructions that generate an interrupt.
2 is output to the instruction number counter 3.

トレース表示回路5はトレース動作の開始を指示するト
レース起動信号106が入力されると、トレース動作中
であることを示すトレース動作中表示信号113を発生
してトレースメモリ2および命令数カウンタ3に出力す
る2また、トレース表示回路5は命令数カウンタ3から
のオーバフロー信号111によりリセットされる。
When the trace display circuit 5 receives a trace start signal 106 instructing the start of a trace operation, it generates a trace operation display signal 113 indicating that a trace operation is in progress and outputs it to the trace memory 2 and the instruction number counter 3. In addition, the trace display circuit 5 is reset by the overflow signal 111 from the instruction number counter 3.

割込み表示回路6は命令数カウンタ3からのオーバフロ
ー信号111が入力されると、割込み信号114を発生
して中央処理装置に出力し、リセット信号108の入力
によりリセットされる。
When the interrupt display circuit 6 receives the overflow signal 111 from the instruction number counter 3, it generates an interrupt signal 114 and outputs it to the central processing unit, and is reset by the input of the reset signal 108.

次に、第1図を用いて本発明の一実施例の動作について
説明する9 割込み間隔を指定する割込み間隔指定命令か中央処理装
置において実行されると、割込み間隔指定信号107に
よりその指定値の補数かレジスタ4にセットされる。
Next, the operation of an embodiment of the present invention will be explained with reference to FIG. The complement is set in register 4.

つついて、I−レースを起動するトレース起動命令か実
行されると、トレース起動信号106によりトレース表
示回路5がセラ1〜され、l−レース表示回路5からト
レースメモリ2および命令数カウンタ3に1へレース動
作中表示信号113が出力される。
When a trace start instruction for starting the I-race is executed, the trace display circuit 5 is set to 1 by the trace start signal 106, and the trace memory 2 and the instruction number counter 3 from the I-race display circuit 5 are set to 1. A race operation display signal 113 is output.

この1へレース表示回路5のセット時に、レジスタ4か
らの初期値112か命令数カウンタ3にセラ1〜され、
命令数カウンタ3においてサンプル信号105の計数が
開始される。
When the race display circuit 5 is set to 1, the initial value 112 from the register 4 is set to the instruction number counter 3,
The instruction number counter 3 starts counting the sample signals 105.

また、l・レースメモリ2はトレース表示回路5からめ
1〜レ一ス動作中表示信号113の入力により、サンプ
ル信号105の入力タイミングで命令アドレス103と
命令語104とクロックカウンターからのクロックカウ
ンタ値109との記録を開始する。これらの記録はトレ
ースメモリ2のアドレスが更新されながら行われる。
In addition, the l/race memory 2 receives the instruction address 103, the instruction word 104, and the clock counter value 109 from the clock counter at the input timing of the sample signal 105 by inputting the in-race operation display signal 113 from the trace display circuit 5. Start recording. These recordings are performed while the address of the trace memory 2 is being updated.

サンプル信号105は1命令実行毎に出力されるので、
命令数カウンタ3では実行命令数か計数されることなる
。また、命令数カウンタ3の計数開始時にはレジスタ4
からの初期値112がセットされているため、命令数カ
ウンタ3においては割込み間隔指定命令て指定された命
令数を51数したときにオーバフロー信号111か発生
ずる。
Since the sample signal 105 is output every time one instruction is executed,
The instruction number counter 3 counts the number of executed instructions. Also, when the instruction number counter 3 starts counting, the register 4
Since the initial value 112 is set, the overflow signal 111 is generated in the instruction number counter 3 when the number of instructions specified by the interrupt interval specification instruction is increased by 51.

命令数カウンタ3からのオーバフロー信号111により
割込み表示回路6かセットされるとともに、このオーバ
フロー信号111によりI−レース表示回路5がリセッ
1へされ、1〜レースメモリ2の記録動作および命令数
カウンタ3の計数動作が停止する2割込み表示回路6が
セットされることにより割込み信号114か生成され、
この割込み信号114によって割込みが発生ずる。
The overflow signal 111 from the instruction number counter 3 sets the interrupt display circuit 6, and the overflow signal 111 causes the I-race display circuit 5 to reset to 1, and the recording operation of 1 to race memory 2 and the instruction number counter 3 are set. 2. The interrupt signal 114 is generated by setting the interrupt display circuit 6, which stops the counting operation.
This interrupt signal 114 causes an interrupt to occur.

命令数カウンタ3のオーバフローによる割込み処理ルー
チンでは、トレースメモリ2の内容を主メモリ内のトレ
ースバッファ(図示せず)に移送した後に、トレース起
動命令を実行してから割込み前の処理に制御か渡され、
再びトレースか開始される。尚、1〜レースバツフアが
一杯になると、割込み処理ルーチンによりトレースバッ
ファの内容が記録媒体(図示せず)に出力される。
In the interrupt processing routine caused by the overflow of the instruction counter 3, the contents of the trace memory 2 are transferred to a trace buffer (not shown) in the main memory, a trace start instruction is executed, and control is passed to the processing before the interrupt. is,
Tracing is started again. Note that when the 1 to race buffer becomes full, the contents of the trace buffer are output to a recording medium (not shown) by the interrupt processing routine.

上述の処理により、割込み間隔指定命令で指定された命
令数か実行される毎に、トレースメモリ2の容量分の命
令数の命令アドレス103と命令H?1104とクロッ
クカウンタ値109とが大々対応して実行順に記録され
るので、各命令毎に当該クロックカウンタ値と一つ前の
命令のクロックカウンタ値との差分かち実行時間を求め
ることかできる。
Through the above processing, each time the number of instructions specified by the interrupt interval specification instruction is executed, the instruction address 103 of the number of instructions corresponding to the capacity of the trace memory 2 and the instruction H? Since the clock counter value 1104 and the clock counter value 109 are recorded in the order of execution, the execution time can be calculated by dividing the difference between the clock counter value and the clock counter value of the previous instruction for each instruction.

また、命令語で決まるパイプライン乱れなしの各命令の
実行時間と、上記のようにしてクロックカウンタ値から
求めた各命令の実行時間との差からパイプライン乱れに
よる実行時間の増加策の算出が可能となる。
In addition, measures to increase execution time due to pipeline disturbance can be calculated from the difference between the execution time of each instruction without pipeline disturbance determined by the instruction word and the execution time of each instruction obtained from the clock counter value as described above. It becomes possible.

さらに、トレースデータ中の各命令アドレスを使用して
、被トレースプログラムの各ルーチン毎に命令の実行時
間を集計することにより、被)〜レースプログラム上の
各ルーチンの実行時間を算出することができる。
Furthermore, by summing up the instruction execution time for each routine of the traced program using each instruction address in the trace data, it is possible to calculate the execution time of each routine on the race program. .

このように、中央処理装置のクロック信号102をクロ
ックカウンタ1で計数し、その泪数値を実行された命令
の命令アドレス103および命令語104に対応させて
トレースメモリ2に記録するようにすることによって、
各命令のパイプライン乱れを含む実行時間を算出するこ
とができ、被トレースプ17グラムのルーヂン別実行時
間やパイプライン乱れによる増加時間など実行時間要因
の分析を行うことができる。
In this manner, the clock signal 102 of the central processing unit is counted by the clock counter 1, and the count value is recorded in the trace memory 2 in correspondence with the instruction address 103 and instruction word 104 of the executed instruction. ,
It is possible to calculate the execution time of each instruction including pipeline disturbances, and to analyze execution time factors such as the execution time for each routine of the 17 grams to be traced and the increased time due to pipeline disturbances.

発明の詳細 な説明したように本発明によれば、中央処理装置に供給
されるクロック信号の計数値を、実行された命令語およ
び命令アドレスに対応させて記録するようにすることに
よって、被トレースプロダラムのルーヂン別実行時間や
パイプラインの乱れによる増加時間などの実行時間要因
の分析を行うことができるという効果がある。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, the counted value of the clock signal supplied to the central processing unit is recorded in correspondence with the executed instruction word and instruction address, thereby This method has the advantage that it is possible to analyze execution time factors such as the execution time for each program routine and the increase in time due to pipeline disturbances.

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

第1図は本発明の一実施例の構成を示すブロック図であ
る。 主要部分の符号の説明 1・・・・・・クロックカウンタ 2・・・・・・トレースメモリ 3・・・・・・命令数カウンタ 5・・・・・・トレース表示回路 6・・・・・・割込み表示回路
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. Description of symbols of main parts 1...Clock counter 2...Trace memory 3...Instruction number counter 5...Trace display circuit 6...・Interrupt display circuit

Claims (1)

【特許請求の範囲】[Claims] (1)中央処理装置に供給されるクロック信号を計数す
るクロック計数手段と、前記中央処理装置において実行
された命令語および命令アドレスと、前記命令語および
命令アドレスに対応する前記クロック計数手段の計数値
とを記録する記録手段とを有することを特徴とする命令
トレース回路。
(1) A clock counting means for counting clock signals supplied to a central processing unit, an instruction word and an instruction address executed in the central processing unit, and a count of the clock counting means corresponding to the instruction word and instruction address. An instruction tracing circuit comprising: a numerical value; and a recording means for recording a numerical value.
JP1064067A 1989-03-16 1989-03-16 Instruction trace circuit Pending JPH02242440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1064067A JPH02242440A (en) 1989-03-16 1989-03-16 Instruction trace circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1064067A JPH02242440A (en) 1989-03-16 1989-03-16 Instruction trace circuit

Publications (1)

Publication Number Publication Date
JPH02242440A true JPH02242440A (en) 1990-09-26

Family

ID=13247380

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1064067A Pending JPH02242440A (en) 1989-03-16 1989-03-16 Instruction trace circuit

Country Status (1)

Country Link
JP (1) JPH02242440A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04338860A (en) * 1991-05-15 1992-11-26 Nec Corp Online transaction control system
JPH08161196A (en) * 1994-12-09 1996-06-21 Nec Corp Instruction tracing device
JP2011100388A (en) * 2009-11-09 2011-05-19 Fujitsu Ltd Trace information collection device, trace information processor and trace information collection method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04338860A (en) * 1991-05-15 1992-11-26 Nec Corp Online transaction control system
JPH08161196A (en) * 1994-12-09 1996-06-21 Nec Corp Instruction tracing device
JP2011100388A (en) * 2009-11-09 2011-05-19 Fujitsu Ltd Trace information collection device, trace information processor and trace information collection method
US8819496B2 (en) 2009-11-09 2014-08-26 Fujitsu Limited Apparatus for collecting trace information and processing trace information, and method for collecting and processing trace information

Similar Documents

Publication Publication Date Title
CN1077037A (en) Multi-media computer diagnostic system
JPH02242440A (en) Instruction trace circuit
JPH08328905A (en) Method and device for simulation
JP3389745B2 (en) Apparatus and method for measuring program performance
JPH02195448A (en) Device for tracing instruction
JP2005165825A (en) Trace information recorder
JP2961199B2 (en) Pulse train input processor
JP2775830B2 (en) Instruction frequency measurement method
JPS63156424A (en) Pulse count circuit
JPS607551A (en) Program block tracing system
JPH05173846A (en) Fault analysis information tracing method
JPS6411977B2 (en)
CN105183226A (en) Testing method and device of screen swiping sensitivity
JPH06259245A (en) Instrument and method for measuring performance of program
JPS5833631B2 (en) data processing system
JPH064400Y2 (en) Voice analyzer
JP2530841B2 (en) Program performance measurement method
JPS605018B2 (en) history recording device
SU1499353A1 (en) Device for shaping information on program testing completeness
JPH0281235A (en) Evaluation chip
CN116594750A (en) Function call collection method, device, equipment, storage medium and product
JPH10260872A (en) Computer system and recording medium
JPH02108135A (en) Program tracing control system
JPH02294837A (en) Test system for information processor
JPH0916433A (en) Gathering system for instruction trace information of microprocessor