JPH03157739A - Performance measuring system for epu - Google Patents
Performance measuring system for epuInfo
- Publication number
- JPH03157739A JPH03157739A JP1298072A JP29807289A JPH03157739A JP H03157739 A JPH03157739 A JP H03157739A JP 1298072 A JP1298072 A JP 1298072A JP 29807289 A JP29807289 A JP 29807289A JP H03157739 A JPH03157739 A JP H03157739A
- Authority
- JP
- Japan
- Prior art keywords
- epu
- address
- performance
- microprogram
- micro
- 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
Links
- 238000000691 measurement method Methods 0.000 claims description 7
- 238000000034 method Methods 0.000 claims description 3
- 238000005259 measurement Methods 0.000 abstract description 19
- 238000001514 detection method Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000010365 information processing Effects 0.000 description 2
- 238000000053 physical method Methods 0.000 description 1
- 239000000700 radioactive tracer Substances 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はEPUの性能測定方式に関し、特にマイクロプ
ログラムの実行回数を測定するEPUの性能測定方式に
関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an EPU performance measurement method, and more particularly to an EPU performance measurement method for measuring the number of times a microprogram is executed.
従来、この種の演算処理装置の性能測定方式には、ソフ
トウェアによりソフトビジプルな汎用レジスタを使用し
各種性能を測定する方法と、システム以外の専用の測定
装置を使いハードウェア的に測定するのが通常である。Conventionally, the performance measurement methods for this type of processing unit include methods that measure various performances using soft-visible general-purpose registers using software, and methods that measure various performances using dedicated measurement equipment other than the system. is normal.
上述した従来のソフトウェアによる性能測定は、そのた
めの専用のプログラムを組む必要がある。また、ここで
測定された性能は、測定環境としては最適化されたある
一部の状態によるものであるため、当該情報処理装置が
通常動作中の性能とは異なる可能性がある。またソフト
ウェアでは、ある命令の実行回数は測定可能であるが、
特定の割込みの発生回数等のようにソフトウェアで見る
ことのできない要因がある。それにソフトウェアによっ
ては、性能測定に使用可能な汎用しジスタを全て使用し
ているために性能測定できない場合もある。Performance measurement using the conventional software described above requires the creation of a dedicated program. Furthermore, since the performance measured here is based on a certain optimized state of the measurement environment, there is a possibility that the performance is different from the performance when the information processing apparatus is normally operating. In addition, in software, the number of executions of a certain instruction can be measured;
There are factors that cannot be seen by software, such as the number of times a particular interrupt occurs. In addition, depending on the software, performance may not be measured because it uses all the general-purpose registers that can be used for performance measurement.
このような場合に、システム以外の専用の測定装置、例
えばロジックトレーサ等を用いて性能測定を行なう。こ
の場合物理的な測定環境の設定や5測定結果の解析に多
くの時間を必要とする欠点がある。In such cases, performance is measured using a dedicated measuring device other than the system, such as a logic tracer. In this case, there is a drawback that it takes a lot of time to set up the physical measurement environment and analyze the five measurement results.
本発明の目的は、上述の点に鑑み、性能測定専用のハー
ドウェアをシステムに組込むことにより、EPUの通常
動作に影響することなくEPUの性能を測定することに
ある。In view of the above, an object of the present invention is to measure the performance of an EPU without affecting the normal operation of the EPU by incorporating hardware dedicated to performance measurement into the system.
本発明のEPUの性能測定方式は、マイクロプログラム
により動作する演算処理装置(以下EPUと略す)の性
能測定方式において、マイクロプログラムの特定アドレ
スをセット可能なレジスタと、該アドレスと現在走行中
のアドレスとの一致を検出する回路と、前記一致の回数
をカウントするカウンタとを備えて構成される。The EPU performance measurement method of the present invention is a performance measurement method for an arithmetic processing unit (hereinafter abbreviated as EPU) that operates by a microprogram, and includes a register in which a specific address of the microprogram can be set, and a register that can set a specific address of the microprogram, and a register that can set a specific address of the microprogram and an address that is currently running. and a counter that counts the number of matches.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明のEPUの性能測定方式の第1の実施例
を示すブロック図である。FIG. 1 is a block diagram showing a first embodiment of the EPU performance measurement system of the present invention.
第1の実施例の性能測定装置は、マイクロアドレス指定
レジスタ1と、−数枚出回路3と、AND回路5と、カ
ウンタ7とで構成されており、マイクロアドレス指定レ
ジスタ1とカレントアドレス2が一致したときに、測定
モード信号4が測定モード状態であればマイクロアドレ
ス一致検出パルス6が発生しカウンタ7に入力される。The performance measuring device of the first embodiment is composed of a microaddressing register 1, a -number output circuit 3, an AND circuit 5, and a counter 7, and the microaddressing register 1 and current address 2 are When they match, if the measurement mode signal 4 is in the measurement mode, a microaddress coincidence detection pulse 6 is generated and input to the counter 7.
マイクロアドレス指定レジスタ1は、カウントしたいマ
イクロプログラムの特定処理ルーチンのエントリアドレ
スをセットするレジスタであり、カレントアドレス2は
、現在走行中のマイクロプログラムのアドレスであり、
−数枚出回路3によりマイクロアドレス指定レジスタ1
の出力信号と比較を行なう。測定モード信号4は性能測
定中に“ハイ”レベルになり、このとき−数枚出回路3
がマイクロアドレスの一致を検出すれば、一致した1ク
ロックサイクル間マイクロアドレス一致検出パルス6が
カウンタ7の入力端子に入り、カウントアツプされる。Microaddress designation register 1 is a register for setting the entry address of a specific processing routine of the microprogram to be counted, and current address 2 is the address of the currently running microprogram.
-Micro address designation register 1 by several output circuit 3
Compare with the output signal of The measurement mode signal 4 becomes "high" level during performance measurement, and at this time - several sheet output circuit 3
When detecting a match between the micro addresses, the micro address match detection pulse 6 for one clock cycle of the match is input to the input terminal of the counter 7, and is counted up.
次に本装置の動作を説明する。Next, the operation of this device will be explained.
はじめに、例えばエントリアドレスが××××である特
定処理ルーチンAの実行回数をカウントするとする。ま
ずエントリアドレス××××をマイクロアドレス指定レ
ジスタ1にセットし測定を終えるまでホールドする。こ
のレジスタの出力が、現在走行中のマイクロプログラム
のアドレスであるカレントアドレス2と一致すると一致
検出回路3から1クロックサイクル間パルスが発生する
。このパルスは、測定モード信号4とANDされ測定モ
ード時のみカウンタ7に伝えられる。First, it is assumed that the number of executions of a specific processing routine A whose entry address is XXXX, for example, is counted. First, the entry address XXXX is set in the microaddress designation register 1 and held until the measurement is completed. When the output of this register matches current address 2, which is the address of the currently running microprogram, the match detection circuit 3 generates a pulse for one clock cycle. This pulse is ANDed with the measurement mode signal 4 and transmitted to the counter 7 only in the measurement mode.
よって本装置は、測定モード中にエントリアドレス××
××を通る毎にカウントアツプされることから、特定処
理ルーチンAの実行回数をカウントすることになる。Therefore, this device uses the entry address ×× during measurement mode.
Since the count is incremented each time XX is passed, the number of executions of the specific processing routine A is counted.
第2図は、本発明の第2の実施例の構成を示したもので
、第1図中のカレントアドレス2と測定モード信号4と
を共通とする複数のカウンタを設けた性能測定装置のブ
ロック図である。第2図に示す第2の実施例は複数のマ
イクロアドレス指定レジスタ10と一致検出回路11と
AND回路12とカウンタ13とで構成され基本的動作
は第1図のそれと全く同じである。しかし、複数の特定
処理ルーチンのエントリアドレスをセットできることか
ら、EPUの一連の動作中に複数の特定処理ルーチンの
実行回数を同時に測定できるという特徴がある。FIG. 2 shows the configuration of a second embodiment of the present invention, and is a block diagram of a performance measuring device provided with a plurality of counters that share the current address 2 and measurement mode signal 4 in FIG. 1. It is a diagram. The second embodiment shown in FIG. 2 is composed of a plurality of microaddress registers 10, a coincidence detection circuit 11, an AND circuit 12, and a counter 13, and its basic operation is exactly the same as that shown in FIG. However, since the entry addresses of a plurality of specific processing routines can be set, it is possible to simultaneously measure the number of executions of a plurality of specific processing routines during a series of operations of the EPU.
以上説明したように本発明は、特定のアドレスのマイク
ロプログラムの実行回数を測定できるので、特定の割込
みの発生回数をカウントし、その割込み発生の統計デー
タの計測が可能であるという効果がある。As explained above, the present invention has the advantage of being able to measure the number of executions of a microprogram at a specific address, and thus making it possible to count the number of occurrences of a specific interrupt and to measure statistical data on the occurrence of that interrupt.
又、上記アドレスを特定の命令の実行マイクロプログラ
ムアドレスに指定したときには、命令の実行回数が測定
でき、命令の実行時間を同時に計測したときには、その
情報処理装置の平均命令実行時間も計測できるという効
果がある。Furthermore, when the above address is designated as the execution microprogram address of a specific instruction, the number of times the instruction is executed can be measured, and when the instruction execution time is measured at the same time, the average instruction execution time of the information processing device can also be measured. There is.
第1図は本発明の第1の実施例の構成を示すブロック図
、第2図は本発明の第2の実施例の構成を示すブロック
図である。
1・10・・・マイクロアドレス指定レジスタ、2・・
カレントアドレス、3・13・・・−数構出回路、4・
・・測定モード信号、5・15・・・AND回路、6・
・・マイクロアドレス−数枚出パルス、7・17・・・
カウンタ。FIG. 1 is a block diagram showing the structure of a first embodiment of the invention, and FIG. 2 is a block diagram showing the structure of a second embodiment of the invention. 1・10...Micro address specification register, 2...
Current address, 3.13...-number output circuit, 4.
・・Measurement mode signal, 5・15・AND circuit, 6・
・・Micro address - several output pulses, 7・17...
counter.
Claims (1)
以下EPUと略す)の性能測定方式において、マイクロ
プログラムの特定アドレスをセット可能なレジスタと、
該アドレスと現在走行中のアドレスとの一致を検出する
回路と、前記一致の回数をカウントするカウンタとを備
えて成ることを特徴とするEPUの性能測定方式。 2、前記レジスタと、前記一致を検出する回路と、前記
カウンタとをそれぞれ複数個備え、それぞれが独立して
接続されて成ることを特徴とする請求項1記載のEPU
の性能測定方式。[Claims] 1. An arithmetic processing device (
In the performance measurement method of EPU (hereinafter abbreviated as EPU), a register that can set a specific address of a microprogram,
A method for measuring the performance of an EPU, comprising: a circuit for detecting a match between the address and a currently running address; and a counter for counting the number of matches. 2. The EPU according to claim 1, wherein the EPU comprises a plurality of the registers, a plurality of the match detecting circuits, and a plurality of the counters, each of which is independently connected.
performance measurement method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1298072A JPH03157739A (en) | 1989-11-15 | 1989-11-15 | Performance measuring system for epu |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1298072A JPH03157739A (en) | 1989-11-15 | 1989-11-15 | Performance measuring system for epu |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03157739A true JPH03157739A (en) | 1991-07-05 |
Family
ID=17854782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1298072A Pending JPH03157739A (en) | 1989-11-15 | 1989-11-15 | Performance measuring system for epu |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03157739A (en) |
-
1989
- 1989-11-15 JP JP1298072A patent/JPH03157739A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5717851A (en) | Breakpoint detection circuit in a data processor and method therefor | |
EP0530816A2 (en) | Microprocessor with cache memory and trace analyzer therefor | |
US7096395B2 (en) | Efficient word recognizer for a logic analyzer | |
JPH03157739A (en) | Performance measuring system for epu | |
JPH05113903A (en) | Address coincidence detecting circuit | |
SU1387000A1 (en) | Device for generating instruction flag | |
RU2050588C1 (en) | Method for control and debug of real-time programs and device for its implementation | |
JPH04106637A (en) | Stall detection circuit | |
SU934474A1 (en) | Programme-interrupting device | |
JPH01304369A (en) | Capture device | |
JPH02284238A (en) | Program debugging device | |
JP3068317B2 (en) | Microcomputer | |
SU1636847A2 (en) | Data exchange device | |
SU1709321A2 (en) | Device for checking stability of program performance | |
JP3001526B1 (en) | Interrupt processing circuit and interrupt debugging method | |
JPH06195245A (en) | Monitor timer device | |
JPS6349946A (en) | Arithmetic processing unit | |
JPH0231247A (en) | Data processor | |
JPH01175046A (en) | Operation history storage device | |
JPH01177647A (en) | Information processor | |
JPS63241622A (en) | Data processor | |
JPS62200439A (en) | Instruction execution frequency analyzing system | |
JPS6375813A (en) | Semiconductor integrated circuit device | |
JPH01243141A (en) | Information processor | |
JPH01177648A (en) | Information processing device |