JPS58105359A - Measuring system of program processing time - Google Patents

Measuring system of program processing time

Info

Publication number
JPS58105359A
JPS58105359A JP56204204A JP20420481A JPS58105359A JP S58105359 A JPS58105359 A JP S58105359A JP 56204204 A JP56204204 A JP 56204204A JP 20420481 A JP20420481 A JP 20420481A JP S58105359 A JPS58105359 A JP S58105359A
Authority
JP
Japan
Prior art keywords
address
instruction
data
register
branch
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
JP56204204A
Other languages
Japanese (ja)
Inventor
Kiyoshi Kubomura
清 久保村
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP56204204A priority Critical patent/JPS58105359A/en
Publication of JPS58105359A publication Critical patent/JPS58105359A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment

Abstract

PURPOSE:To measure processing time of a program, by adding a small quantity of a software to a data processor containing an address coincidence detecting mechanism. CONSTITUTION:A CPU1 fetches an instruction or data within a memory 2. An address coincidence detecting mechanism 4 includes an address data setting circuit 5, a data comparator 6 and a data coincidence signal output circuit 7. The comparator 6 compares the address data set at the circuit 5 with an address data on an address bus and then informs a coincidence signal to the circuit 7 when the coincidence is obtained between both data. Thus the circuit 7 delivers a pulse signal, and this signal is displayed on a synchroscope 8.

Description

【発明の詳細な説明】 (1)発明の技術分野 本発明は、アドレス−散積出回路を有するデータ処理装
置において、ソフトウェア的な処理によりてプ四グ2ム
の処理時間音測定できるようにしたものである0 (2)従来技術と問題点 プログラムの処理時間を知る方法としては、プログラム
のステップ数を求め、ステップ数から計算する方法など
が知られているが、プ日グラムを処理する際にはモニタ
などが介在するのでプログラム・ステップ数から処理時
間を求めるためには複雑な計算を必要とする。また、ア
ドレス−散積出機構によりてアドレス・バス上のアドレ
ス・データ全監視し1例えばアドレス学バス上にアドレ
ス中データAIが現われた時点T1からアドレス・デー
タA!が現われた時点T嘗までの時間を測定する方法も
考えられるがこのような方法では複数のアドレス設定器
を必要とするという欠点がある。
DETAILED DESCRIPTION OF THE INVENTION (1) Technical Field of the Invention The present invention is directed to a data processing device having an address-dispersion output circuit, in which the processing time of four programs can be measured by software processing. 0 (2) Prior art and problems A known method of determining the processing time of a program is to find the number of steps in the program and calculate it from the number of steps. In some cases, a monitor or the like is involved, so complex calculations are required to determine the processing time from the number of program steps. In addition, the address scattering mechanism monitors all the address data on the address bus. For example, from time T1 when address data AI appears on the addressing bus, the address data A! It is also possible to consider a method of measuring the time until the time point T when T appears, but such a method has the disadvantage of requiring a plurality of address setters.

(3)発明の目的 本発明は、上記のより−な欠点金除去するものでめりて
、アドレス−散積出機構を有するデータ処理装置に僅か
なソフトウェアを付加するだけでプログラムの処理時間
全測定できるプログラム処理時間測定方式を提供するこ
とt目゛的としている。
(3) Purpose of the Invention The present invention eliminates the above-mentioned disadvantages, and by simply adding a small amount of software to a data processing device having an address-distribution mechanism, the program processing time can be completely reduced. The objective is to provide a method for measuring program processing time that can be measured.

(4)  発明の構成 そしてそのため、本発明のプログラム処理時間測定方式
は、中央処理装置と、メモリと、アドレス−散積出機構
とを具備し、該アドレス一致検出機構がアドレス・バス
上のアドレス・データと設定アドレス・データとが一致
したとき一致信号を出力するように構成されているシス
テムにおいて、アドレス■からアドレス■までのプロゲ
ラ′ム部分の処理時間を測定するとき。
(4) Structure of the invention and therefore, the program processing time measuring method of the present invention includes a central processing unit, a memory, and an address-distribution mechanism, and the address coincidence detection mechanism detects addresses on an address bus. - When measuring the processing time of the program program part from address ■ to address ■ in a system configured to output a match signal when data and set address data match.

アドレス■の本来の命令管アドレスTESTIに分岐す
ると共に次の命令のアドレスをレジスタに保存する九め
命令と置き換え、アドレスCHECKに分岐すると共に
次の命令のアドレスをレジスタに保存するための命令、
アドレス■の本来の命令、およびレジスタの内容で示さ
れるアドレス罠分岐するための命令を含む命令列をアド
レスTESTIに書込み、非操作命令およびレジスタの
内容で示されるアドレスに分岐するための命令管アドレ
スCHECKに書込み。
An instruction for branching to the original instruction tube address TESTI at address ■ and saving the address of the next instruction in a register, replacing it with a ninth instruction, branching to address CHECK and saving the address of the next instruction in the register,
Write an instruction string containing the original instruction at address ■ and an instruction for address trap branching indicated by the contents of the register to address TESTI, and the instruction tube address for branching to the address indicated by the non-operation instruction and the contents of the register. Write to CHECK.

アドレス■の本来の命令をアドレスTEST2に分岐す
ると共に次の命令のアドレス全レジスタに保存するため
の命令と置き換え、アドレスCHECKに分岐すると共
に次の命令のアドレスをレジスタに保存する九めの命令
、アドレス■の本来の命令およびレジスタで示されるア
ドレスに分岐するための命令を含む命令利金アドレスT
EST2に書込み、且つ上記アドレス−散積出機構の設
定アドレスをアドレスCHECKとすることt−特徴と
するものである。
Replace the original instruction at address ■ with an instruction to branch to address TEST2 and save the address of the next instruction in all registers, and a ninth instruction to branch to address CHECK and save the address of the next instruction in the registers, Instruction interest address T containing the original instruction at address ■ and an instruction to branch to the address indicated by the register
It is characterized by writing to EST2 and setting the address CHECK to the setting address of the address scattering mechanism.

(5)発明の実施例 以下1本発明を図面を参照しつつ説明する。(5) Examples of the invention The present invention will be explained below with reference to the drawings.

第1図は本発明におけるハードウェア構成の1実施例を
示す図、第2図はシンクロスコープ上のパルス波形を示
す図、第3図は本発明におけるソフトウェア構成の1実
施例を示す図である。
FIG. 1 is a diagram showing an embodiment of the hardware configuration according to the present invention, FIG. 2 is a diagram showing a pulse waveform on a synchroscope, and FIG. 3 is a diagram showing an embodiment of the software configuration according to the present invention. .

第1図において、it;i中央処理装置、2はメモリ、
3はアドレス・パス、4tlアドレス−散積出機構、5
はアドレス・データ設定回路、6はデータ比較回路、7
はアドレス一致信号出力回路、8はシンクロスコープ金
それぞれ示している。
In FIG. 1, it; i central processing unit; 2, memory;
3 is an address path, 4 is a tl address-scattering mechanism, 5 is
is an address/data setting circuit, 6 is a data comparison circuit, and 7 is an address/data setting circuit.
Reference numeral 8 indicates an address match signal output circuit, and 8 indicates a synchroscope.

中央処理装置lはメモリ2内の命令やデータをフェッチ
して命令を実行する。アドレス−散積出機構4は、アド
レス・データ設定回路5゜データ比較回路6およびデー
タ一致信号出力回路7を有している。データ比較回路6
は、アドレス・データ設定回路5で設定されたアドレス
・データとアドレス・バス上のアドレス・データとを比
較し、両者が一致したときに一致をデータ一致信号出力
回路7へ通知する。データー一致信号出力回路7は、一
致が通知されるとパルス信号管出力し、このパルス信号
がシンクロスコープ8上に表示される。第2図はシンク
ロスコープ8上のパルス波形を示すものである。
The central processing unit l fetches instructions and data in the memory 2 and executes the instructions. The address/scattering output mechanism 4 has an address/data setting circuit 5, a data comparison circuit 6, and a data coincidence signal output circuit 7. Data comparison circuit 6
compares the address data set by the address/data setting circuit 5 with the address data on the address bus, and when the two match, notifies the data match signal output circuit 7 of the match. When the data match signal output circuit 7 is notified of the match, it outputs a pulse signal tube, and this pulse signal is displayed on the synchroscope 8. FIG. 2 shows the pulse waveform on the synchroscope 8.

第3図、は本発明における27トウエア構成の1実施例
管示すものである0第3図において、処理時間全測定し
たいポイントは■から[F]までである。先ず0のアド
レスの命令管 BAL   TESTI に変換する。この命令は1次の命令のアドレス全レジス
タにセットし、TESTIに分岐するための命令である
。TESTIは、メモリの空エリアeζ以下の命令をセ
ットしたアドレスである0 TESTI   BAL   CHECK■′ RET こ\で■/#iωのところに入りていた命令を実行させ
るための命令であり、RETはレジスタの内容で指定さ
れ次アドレスに無条件分岐するための命令であ!J、C
HECKはメモリ上の空エリアに以下の命令をセットし
たアドレスである。
FIG. 3 shows an embodiment of the 27-toe configuration according to the present invention. In FIG. 3, the points at which it is desired to measure the entire processing time are from ■ to [F]. First, it is converted to the instruction tube BAL TESTI of address 0. This instruction sets all address registers of the primary instruction and branches to TESTI. TESTI is the address where the instruction below the empty area eζ of the memory is set. 0 TESTI BAL CHECK This is an instruction for unconditionally branching to the next address specified by the contents of ! J.C.
HECK is an address where the following instructions are set in an empty area on the memory.

CHECK   NOP RET こ\で、NOPは無操作を示す命令であるOlた。■の
アドレスの命令を BAL   T′EST2 に変更する。こ\で、TEST2はメモリの空エリアに
以下の命令をセットしたアドレスである0 TEST2   BAL   CHECK[F]′ RET ωは■のところに入っていた命令を実行させるための命
令である。
CHECK NOP RET Here, NOP is a command indicating no operation. Change the instruction at address (2) to BAL T'EST2. Here, TEST2 is the address where the following instruction is set in the empty area of the memory. 0 TEST2 BAL CHECK [F]' RET ω is the instruction to execute the instruction placed in the part 2.

第3図のプログラムの実行が開始され、アドレス0の命
令が実行されると、TE)STIに分岐し、次にCHE
CKに分岐し、次に■′の命令が実行され、次に王ルー
チン忙リターンする。
When the program in Figure 3 starts executing and the instruction at address 0 is executed, it branches to TE)STI, then CHE
The program branches to CK, then the instruction ``■'' is executed, and then the routine returns.

主ルーチンが実行されて、アドレス■の命令が実行され
ると、TEST2に分岐し、CHECKに分岐し、αの
命令が実行され、主ルーチンにリターンする。アドレス
CHECKを第1図のアドレス・データ設定回路5で設
定しておけば1点ωから点■までのプログラム部分を実
行するに要した時間を測定することが出来る。
When the main routine is executed and the instruction at address ■ is executed, the program branches to TEST2, branches to CHECK, executes the instruction at α, and returns to the main routine. By setting the address CHECK in the address/data setting circuit 5 shown in FIG. 1, it is possible to measure the time required to execute the program portion from point ω to point ■.

(6)  発明の効果 以上の説明から明らかなようK、本発明は。(6) Effects of the invention As is clear from the above description, the present invention has the following features.

必要とするハードウェア構成が簡単なことおよび追加す
べきソフトウェア構成も僅かであること等の利点を有し
ている。前述の説明では、■〜のまでの2点間であった
が■部TEST3を同様に追加すれば@−■−■の3点
間の側足が可能となる。さらに1本発明によれば、チェ
ックポイントでチェックアドレス分岐条件を簡単に追加
することによりより詳細な測定が行える。
It has advantages such as requiring a simple hardware configuration and requiring only a small amount of additional software configuration. In the above explanation, it was between the two points from ■ to ■, but if the ■ part TEST3 is added in the same way, the side leg between the three points @-■-■ becomes possible. Furthermore, according to the present invention, more detailed measurements can be performed by simply adding a check address branch condition at a checkpoint.

たとえば、前述のチェックポイント0部が共通サブルー
チン部であった場合0点は何回も通過することになる。
For example, if the aforementioned checkpoint 0 is in a common subroutine, the 0 point will be passed many times.

その場合プログラム■(タスクのが本サブルーチンを使
用した時のみチェックアドレスに分岐する様なプログラ
ムをTESTI部に追加する拳によりプログラム■が0
部を通過した時のみ、チェックアドレスに分岐する事に
なる。
In that case, by adding a program to the TESTI section that branches to the check address only when the task uses this subroutine, program ■ becomes 0.
It will branch to the check address only when it passes through the section.

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

#!1図は本発明におけるハードウェア構成の1実施例
を示す図、第2図はシンクレスジープ上のパルス波形を
示す図、第3図は本発明におけ′るソフトウェア構成の
1実施例を示す図である。 1・・・中央処理装置、2・・・メモリ、3・・・アド
レス・バス、4・・・アドレス−散積出機構、5・・・
アドレス・データ設定回路、6・・・データ比較回路、
7・・・アドレス一致信号出力回路、8・・・シンクロ
スコープ。 特軒出願人 富士通株式会社 代理人弁理士  京 谷 四 部
#! Fig. 1 shows an embodiment of the hardware configuration according to the present invention, Fig. 2 shows a pulse waveform on a synchless jeep, and Fig. 3 shows an embodiment of the software configuration according to the present invention. It is a diagram. DESCRIPTION OF SYMBOLS 1...Central processing unit, 2...Memory, 3...Address bus, 4...Address-distribution mechanism, 5...
Address/data setting circuit, 6... data comparison circuit,
7...Address match signal output circuit, 8...Synchroscope. Tokken Applicant Fujitsu Limited Representative Patent Attorney Yotsubu Kyotani

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置と、メモリと、アドレス−散積出機構とを
具備し、該アドレス一致検出機構がアドレス・パス上の
アドレス−データと設定アドレス・データとが一致した
とき一致信号を出力するように構成されているシステム
において、アドレスωからアドレス0までのプログラム
部分の処理時間を測定するとき、アドレスωの本来の命
令をアドレスTESTIに分岐すると共に次の命令のア
ドレスをレジスタに保存するための命令と置き換え、ア
ドレスCHECKに分岐すると共に次の命令のアドレス
をレジスタに保存するための命令、アドレス■の本来の
命令、およびレジスタの内容で示されるアドレスに分岐
するための命令管含む命令列をアドレスTESTIに書
込み、非操作命令およびレジスタの内容で示されるアト
°レスに分岐するための命令tアドレスCHECKに書
込み、アドレス■の本来の命令管アドレスTEST2に
分岐すると共に次の命令のアドレスをレジスタに保存す
るための命令と置き換え、アドレスCHECKに分岐す
ると共に次の命令のアドレス金レジスタに保存するため
の命令、アドレス■の本来の命令およびレジスタで示さ
れるアドレスに分岐するための命令管含む命令列管アド
レスTEST2に書込み、且つ上記アドレス−歇検出機
構の設定アドレスをアドレスCHECKとすることt−
特徴とするプログラム処理時間測定方式
It comprises a central processing unit, a memory, and an address-scattering output mechanism, and the address match detection mechanism outputs a match signal when the address-data on the address path matches the set address data. In the configured system, when measuring the processing time of a program portion from address ω to address 0, an instruction is used to branch the original instruction at address ω to address TESTI and to save the address of the next instruction in a register. Replaced with , an instruction to branch to address CHECK and save the address of the next instruction in a register, the original instruction at address ■, and an instruction string containing an instruction tube to branch to the address indicated by the contents of the register as address. Writes to TESTI, writes to the instruction t address CHECK to branch to the address indicated by the non-operation instruction and the contents of the register, branches to the original instruction tube address TEST2 of address ■, and writes the address of the next instruction to the register. An instruction string that replaces the instruction to save, branches to address CHECK, and saves in the address register of the next instruction, the original instruction at address ■, and an instruction tube to branch to the address indicated by the register. Write to the tube address TEST2, and set the setting address of the above-mentioned address-intermittent detection mechanism to address CHECK.
Featured program processing time measurement method
JP56204204A 1981-12-17 1981-12-17 Measuring system of program processing time Pending JPS58105359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56204204A JPS58105359A (en) 1981-12-17 1981-12-17 Measuring system of program processing time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56204204A JPS58105359A (en) 1981-12-17 1981-12-17 Measuring system of program processing time

Publications (1)

Publication Number Publication Date
JPS58105359A true JPS58105359A (en) 1983-06-23

Family

ID=16486552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56204204A Pending JPS58105359A (en) 1981-12-17 1981-12-17 Measuring system of program processing time

Country Status (1)

Country Link
JP (1) JPS58105359A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013065148A (en) * 2011-09-16 2013-04-11 Lapis Semiconductor Co Ltd Measuring method for program performance

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013065148A (en) * 2011-09-16 2013-04-11 Lapis Semiconductor Co Ltd Measuring method for program performance

Similar Documents

Publication Publication Date Title
US5751942A (en) Trace event detection during trace enable transitions
EP0084431A2 (en) Monitoring computer systems
BRPI0715163B1 (en) DEBUG CIRCUIT COMPARING PROCESSOR INSTRUCTION SET OPERATION MODE
FI87704C (en) FOERFARANDE OCH ANORDNING FOER SJAELVTESTNING AV FLYTTALSACCELERATORPROCESSORER
EP0530816A2 (en) Microprocessor with cache memory and trace analyzer therefor
JPS58105359A (en) Measuring system of program processing time
JPH03118644A (en) Program execution monitor
JPS62197831A (en) Data processor
JPH04178840A (en) Performance measuring system
Denny The Burroughs B1800 microprogrammed measurement system: A hybrid hardware/software approach
JP3100458B2 (en) Coverage tester
JPH11102306A (en) Emulator
JPS62109140A (en) Tracing circuit for program processor
JPH10177505A (en) Emulator device
JPH0314148A (en) Program breakdown detecting device
JPH0357970A (en) Pulse input apparatus
JPS63313244A (en) Data processor
JPH05210541A (en) Time stamp circuit regarding microprocessor
JPS63300333A (en) Measurement system for number of times of instruction execution of program
JPS6158049A (en) Error detection
JPH08241225A (en) Evaluating device
JPH0357033A (en) Real time tracer
JPS59852B2 (en) Microprocessor test equipment
JPS6232509B2 (en)
JPH09237201A (en) Microcomputer analyzer