JPH04178840A - Performance measuring system - Google Patents

Performance measuring system

Info

Publication number
JPH04178840A
JPH04178840A JP2307743A JP30774390A JPH04178840A JP H04178840 A JPH04178840 A JP H04178840A JP 2307743 A JP2307743 A JP 2307743A JP 30774390 A JP30774390 A JP 30774390A JP H04178840 A JPH04178840 A JP H04178840A
Authority
JP
Japan
Prior art keywords
address
port
signal
measurement
storage section
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
JP2307743A
Other languages
Japanese (ja)
Inventor
Mikio Inmaki
印牧 幹雄
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 Solution Innovators Ltd
Original Assignee
NEC Software Chubu 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 Software Chubu Ltd filed Critical NEC Software Chubu Ltd
Priority to JP2307743A priority Critical patent/JPH04178840A/en
Publication of JPH04178840A publication Critical patent/JPH04178840A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To attain real time measurement by an external monitor by reflecting the execution of a measurement start address of a program to be measured and the execution of its measurement end address to a signal change on an I/O port. CONSTITUTION:This performance measuring system is provided with a start address storing part 10, an end address storing part 11, an address comparing means 30, an I/O port setting part 50, an I/O port resetting part 51, an I/O port 60, and an I/O port address storing part 20. When a CPU 40 executes the instruction of the measurement start address, the I/O port 60 is set up, and at the time of executing the measurement end address instruction, the I/O port 60 is reset. Consequently, a time elapsed between the set and reset of the port 60 can be monitored by the external monitor connected to the port 60 and performance between the start and end addresses of the program to be driven by a CPU 40 can be obtained.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明はマイクロプロセッサを用いたソフトウェアの実
行時間性能の測定を支援する性能測定方式に関し、特に
マイクロプロセッサ機器の外部に実時間測定用モニタ機
器を接続してマイクロプロセッサ機器内のソフトウェア
性能を正確に計測する性能測定方式。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a performance measurement method that supports the measurement of execution time performance of software using a microprocessor. A performance measurement method that connects a microprocessor to accurately measure software performance within a microprocessor device.

〔従来の技術〕[Conventional technology]

従来、この種の性能計測方式ては、マイクロプロセッサ
機器か内蔵するタイマ(リアルタイマ又はインタバルタ
イマ)を用いて測定終了点と開始点の差分を読取る方式
か、あるいはマイクロプロセッサ機器のバスに専用機器
(ロジックアナライサ、インサーキットエミュレータ等
)を接続し時量測定する方式が一般的であった。
Conventionally, this type of performance measurement method uses a timer (real timer or interval timer) built into the microprocessor device to read the difference between the measurement end point and the start point, or a dedicated device is installed on the bus of the microprocessor device. The most common method was to connect a device (logic analyzer, in-circuit emulator, etc.) to measure time.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の性能測定方式は、前者のタイマ差分読取
方式だとタイマの精度に依存した時間差しか読取れない
という欠点がある。更にこの種のタイマ値はソフトウェ
アにて読出すため被測定ソフトウェアの実行時間の正確
な取得が困難である。一方、後者の専用ハードウェアを
用いた方式では装置が大がかりで操作性が悪いという欠
点を有していた。
The conventional performance measurement method described above has a drawback in that the former timer difference reading method can only read time differences that depend on the accuracy of the timer. Furthermore, since this type of timer value is read by software, it is difficult to accurately obtain the execution time of the software under test. On the other hand, the latter method using dedicated hardware has the disadvantage that the device is large-scale and has poor operability.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の性能測定方式は、性能測定の開始アドレスを記
憶する開始アドレス記憶部と、性能測定の終了アドレス
を記憶する終了アドレス記憶部と、CPUが出力するプ
ログラムカウンタ信号(以下PCという)と前言己開始
アドレス記憶部と終了アドレス記憶部との内容を比較し
一致した時アドレス一致信号を出力するアドレス比較手
段と、外部より容易に出力信号の変化が観測可能なI/
Oボートと、前記I/Oボートのアドレスを記憶するI
/Oボートアドレス記憶部と、前記アドレス比較手段が
出力する前記開始アドレスと、前記PCとのアドレス一
致信号をトリガにして前記I/Oボートにセラ)・信号
を出力する工/Oポートセット部と、同時に前記アドレ
ス比較手段が出力する前記終了アドレスと前記PCとの
アドレス一致信号をトリガにして前記■/Oポートにリ
セット信号を出力する■/Oポートリセット部とから構
成される。
The performance measurement method of the present invention includes a start address storage section that stores the start address of performance measurement, an end address storage section that stores the end address of performance measurement, and a program counter signal (hereinafter referred to as PC) output by the CPU. An address comparison means that compares the contents of its own start address storage section and end address storage section and outputs an address match signal when they match, and an I/O device that allows changes in the output signal to be easily observed from the outside.
O boat and an I/O boat that stores the address of the I/O boat.
an /O port address storage unit; an /O port setting unit that outputs a signal to the I/O boat using the start address outputted by the address comparing means and an address matching signal with the PC as a trigger; and (2)/O port reset section which outputs a reset signal to the (1)/O port using an address coincidence signal between the end address and the PC simultaneously outputted by the address comparing means as a trigger.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る。開始アドレス記憶部/Oと終了アドレス記憶部11
とは各々性能測定プログラムの測定開始/終了アドレス
をあらかじめ設定しておくレジスタで、アドレス比較手
段30はCPU40の出力するPC信号と前記開始アド
レス記憶部/O及び終了アドレス記憶部11の内容を比
較し一致した場合そのトリガ信号ADEI/ADE2信
号を出力する手段、I/Oポートセット部50はA’D
 E L信号をトリガとしてI/Oポートアドレス記憶
部20の指すI/Oボート60ヘセツト信号を出力する
手段、1/○ボ一トリセツト部51は同時に前記ADE
2信号をトリガとしてI/Oボート60ヘリセット信号
を出力する手段である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. Start address storage section /O and end address storage section 11
are registers in which the measurement start/end addresses of each performance measurement program are set in advance, and the address comparison means 30 compares the PC signal output from the CPU 40 with the contents of the start address storage section /O and the end address storage section 11. A'D
The means for outputting a reset signal to the I/O port 60 pointed to by the I/O port address storage section 20 using the E L signal as a trigger, the 1/○ port reset section 51 simultaneously
This means outputs an I/O boat 60 heliset signal using the 2 signal as a trigger.

次に、本実施例の動作を説明する。CPU40を用いて
動作するプログラムで測定を開始するアドレスと終了す
るアドレスとをあらかしめ調べてそれぞれを開始アドレ
ス記憶部/Oと終了アドレス記憶部11とに先ず格納し
ておく。
Next, the operation of this embodiment will be explained. A program running using the CPU 40 roughly checks the measurement start address and end address, and first stores them in the start address storage section /O and the end address storage section 11.

この準備の下に、CPU40上て被測定ブロクラムを走
行させると、そのPC情報は測定ブロクラムの実行順序
に従い変化して行く。ここてCPU 4. Oが開始ア
ドレス記憶部/Oに格納したアドレスと一致したPCを
出力した時点てアドレス比較手段30がADEI信号を
出力する。この時点であらかじめ■/○ポートアドレス
20で指定されたI/Oポート60に対しセット信号(
S)か■/Oボートセット部50より出力されることと
なる。■/′0ボートアドレス20に本マイクロプロセ
ッサ使用機器の外部より容易に信号変化を観測し易いI
/Oボートを指定しておくことにより、このセット信号
(S)は外部モニタ機器により観測可能となる。この様
なJ/Oポート例としては通常のマイクロプロセッサ使
用汎用コンピュータでは一般的に実装される。例えはR
3232Cのインタフェースポートか上けられる。
When the block to be measured is run on the CPU 40 under this preparation, the PC information changes according to the execution order of the block to be measured. Here is the CPU 4. When O outputs a PC that matches the address stored in the start address storage section /O, the address comparing means 30 outputs an ADEI signal. At this point, a set signal (
S) or ■/O will be output from the boat set section 50. ■/'0 port address 20 is I, where signal changes can be easily observed from outside the device using this microprocessor.
By specifying the /O boat, this set signal (S) can be observed by an external monitor device. An example of such a J/O port is commonly implemented in a general-purpose computer using an ordinary microprocessor. For example, R
The 3232C interface port can be upgraded.

次にCPU40上終了アドレス記憶部11に格納したア
ドレスと一致したPCを出力した時点て、ADH2信号
かアドレス比較手段30より生成され、この信号により
I/Oボートリセッ1〜部51かI/Oボート60/\
リセット信号(R)を出力する。
Next, when the PC outputs the address that matches the address stored in the end address storage section 11 on the CPU 40, the ADH2 signal is generated by the address comparison means 30, and this signal causes the I/O boat reset 1 to 51 or the I/O boat 60/\
Outputs a reset signal (R).

以上の説明より判るとおり、1/○ボ一トアドレス記憶
部20が示す1/Oポート60の出力値に着目すると、
CPU、40が測定開始アドレスの命令を実行した時■
/Oポート60かセットされ、CPU40か測定終了ア
ドレスの命令を実行した時I/Oボート60がリセット
されることになる。
As can be seen from the above explanation, focusing on the output value of the 1/O port 60 indicated by the 1/○ port address storage section 20,
When the CPU 40 executes the instruction at the measurement start address ■
The /O port 60 is set, and when the CPU 40 executes the instruction for the measurement end address, the I/O port 60 is reset.

従ってI/Oボート60に接続した外部モニタでセット
〜リセット間の経過時間を測定することによりCPU4
0上で動作するプログラムの開始〜終了アドレス間の性
能を得ることができる。
Therefore, by measuring the elapsed time between set and reset using an external monitor connected to the I/O boat 60, the CPU 4
It is possible to obtain the performance between the start and end addresses of a program running on 0.

以上の説明は最も基本的な本発明の応用例を述べたもの
であるが、他に開始/終了アドレス記憶部の対を複数組
設けてCPU40上の複数ポインI・の測定を同時に可
能とする方式、あるいはCPU40上で動作するプログ
ラムの計測に条件を付けである一定の条件を満たす場合
、例えばプログラムをO8部とAP部に別けAP部のみ
の測定を可能とする測定方式等の応用例に適用可能であ
る。
The above description describes the most basic application example of the present invention, but it is also possible to provide multiple pairs of start/end address storage units to simultaneously measure multiple points I on the CPU 40. For example, if a certain condition is met by attaching conditions to the measurement of a program running on the CPU 40, for example, an application example such as a measurement method that separates the program into an O8 part and an AP part and makes it possible to measure only the AP part. Applicable.

更に本実施例のアドレス一致信号は、命令アドレス一致
信号を例に説明したが、オペランドアドレス一致信号に
置換える方式も本発明の一応用例である。
Furthermore, although the address match signal in this embodiment has been explained using the instruction address match signal as an example, a system in which it is replaced with an operand address match signal is also an example of application of the present invention.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、被測定プロクラムの測定
開始アトしスの実行と測定終了アドレスの実行を工、/
Oポートの信号変化に反映させこれを外部モニタにより
実時間測定できるという効果かある。
As explained above, the present invention executes the execution of the measurement start address and the measurement end address of the program under test.
This has the advantage that it can be reflected in the signal change of the O port and measured in real time by an external monitor.

従来技術が有していた測定時間の精度が低いとか、正確
な時間測定には専用ハードウェアを必要とするといった
欠点は本方式を採用することにより全て解決てきるとい
う効果かある。
Adopting this method has the advantage that all of the disadvantages of the conventional technology, such as low precision in measurement time and the need for dedicated hardware for accurate time measurement, can be overcome.

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

第1図は本発明の一実施例の構成を示すフロック図。 /O・11・・・測定開始2/終了アドレス記憶部、2
0・・・■7′0ボートアトしス部、30・・・アドレ
ス比較手段、40・・cpu、50・・I、/Oボート
セット部、51・・・■/Oポートリセット部、6゜・
・・I/Oボート。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. /O・11...Measurement start 2/end address storage section, 2
0...■7'0 boat address section, 30...address comparison means, 40...cpu, 50...I, /O port set section, 51...■/O port reset section, 6°・
...I/O boat.

Claims (1)

【特許請求の範囲】[Claims]  性能測定の開始アドレスを記憶する開始アドレス記憶
部と、性能測定の終了アドレスを記憶する終了アドレス
記憶部と、CPUが出力するプログラムカウンタ信号(
以下PCという)と前記開始アドレス記憶部と終了アド
レス記憶部との内容を比較し一致した時アドレス一致信
号を出力するアドレス比較手段と、外部より容易に出力
信号の変化が観測可能なI/Oポートと、前記I/Oポ
ートのアドレスを記憶するI/Oポートアドレス記憶部
と、前記アドレス比較手段が出力する前記開始アドレス
と、前記PCとのアドレス一致信号をトリガにして前記
I/Oポートにセット信号を出力するI/Oポートセッ
ト部と、同時に前記アドレス比較手段が出力する前記終
了アドレスと前記PCとのアドレス一致信号をトリガに
して前記I/Oポートにリセット信号を出力するI/O
ポートリセット部とを備えて成ることを特徴とする性能
測定方式。
A start address storage section that stores the start address of performance measurement, an end address storage section that stores the end address of performance measurement, and a program counter signal (
(hereinafter referred to as a PC), an address comparing means that compares the contents of the start address storage section and the end address storage section and outputs an address match signal when they match, and an I/O device that allows changes in the output signal to be easily observed from the outside. an I/O port address storage unit that stores the address of the I/O port, the start address output by the address comparison means, and an address match signal between the PC and the I/O port. an I/O port setting unit that outputs a set signal to the I/O port; and an I/O port setting unit that outputs a reset signal to the I/O port using an address coincidence signal between the end address and the PC that is simultaneously output from the address comparing means as a trigger. O
A performance measurement method characterized by comprising a port reset section.
JP2307743A 1990-11-14 1990-11-14 Performance measuring system Pending JPH04178840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2307743A JPH04178840A (en) 1990-11-14 1990-11-14 Performance measuring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2307743A JPH04178840A (en) 1990-11-14 1990-11-14 Performance measuring system

Publications (1)

Publication Number Publication Date
JPH04178840A true JPH04178840A (en) 1992-06-25

Family

ID=17972733

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2307743A Pending JPH04178840A (en) 1990-11-14 1990-11-14 Performance measuring system

Country Status (1)

Country Link
JP (1) JPH04178840A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08292903A (en) * 1995-04-21 1996-11-05 Nec Corp Information processor
US6922795B2 (en) 1998-03-31 2005-07-26 Seiko Epson Corporation Microcomputer, electronic equipment, and debugging system
JP2013065148A (en) * 2011-09-16 2013-04-11 Lapis Semiconductor Co Ltd Measuring method for program performance

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08292903A (en) * 1995-04-21 1996-11-05 Nec Corp Information processor
US6922795B2 (en) 1998-03-31 2005-07-26 Seiko Epson Corporation Microcomputer, electronic equipment, and debugging system
US7065678B2 (en) 1998-03-31 2006-06-20 Seiko Epson Corporation Microcomputer, electronic equipment, and debugging system
JP2013065148A (en) * 2011-09-16 2013-04-11 Lapis Semiconductor Co Ltd Measuring method for program performance

Similar Documents

Publication Publication Date Title
EP0528585A1 (en) Processing system with internal instruction cache
WO2023151339A1 (en) Method and system for high-accuracy measurement of interrupt duration of embedded system, and medium
US6023561A (en) System for processing traceable cache trace information
JPH04178840A (en) Performance measuring system
CN100426234C (en) Method for self turn-on test time for measuring basic input and output system
JP2760228B2 (en) Microprocessor with built-in cache memory and its trace analyzer
JP2761306B2 (en) Test method of interval timer
JPH11102306A (en) Emulator
JP2002073379A (en) Program performance measuring device and performance measuring method
JPH0296848A (en) Method for measuring execution time of instruction
JPH1165897A (en) Microprocessor with debugger built-in
JPH0836505A (en) Development support system for microcomputer
JPS58105359A (en) Measuring system of program processing time
JP2513888B2 (en) Microprocessor
JPH0619752A (en) Microcomputer
JPH10171678A (en) Emulator
JPH0357970A (en) Pulse input apparatus
JPS6248866B2 (en)
JP2000148536A (en) Method and circuit for interruption
JPH0573347A (en) Emulation device
JPS607554A (en) Measuring system for performance of computer system
JPH0354645A (en) Program execution time measuring instrument
JPH05224985A (en) Microprogram controller
JPS62109139A (en) Method and device for analyzing working of microprocessor
JPS63111550A (en) Processing measurement system for computer system