JPS6411977B2 - - Google Patents

Info

Publication number
JPS6411977B2
JPS6411977B2 JP58212784A JP21278483A JPS6411977B2 JP S6411977 B2 JPS6411977 B2 JP S6411977B2 JP 58212784 A JP58212784 A JP 58212784A JP 21278483 A JP21278483 A JP 21278483A JP S6411977 B2 JPS6411977 B2 JP S6411977B2
Authority
JP
Japan
Prior art keywords
overflow
counter
counters
trace memory
detection circuit
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.)
Expired
Application number
JP58212784A
Other languages
Japanese (ja)
Other versions
JPS60105058A (en
Inventor
Kozo Yamano
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP58212784A priority Critical patent/JPS60105058A/en
Publication of JPS60105058A publication Critical patent/JPS60105058A/en
Publication of JPS6411977B2 publication Critical patent/JPS6411977B2/ja
Granted 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は情報処理装置に関し、特にハードウエ
ア特性およびソフトウエア特性の性能測定方式の
改良に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to information processing devices, and particularly to improvements in performance measurement methods for hardware characteristics and software characteristics.

(従来技術) 従来、ハードウエア特性およびソフトウエア特
性の性能測定機能を内蔵する情報処理装置におい
ては、測定すべき項目数に応じたカウンタを必要
な精度分のビツト幅で有する方式がとられてい
た。しかし、測定精度を保持するためには、1個
のカウンタに多大なビツト幅が必要である。例え
ば、平均命令実行時間が20nsの場合には、あるプ
ログラムの1分間に実行した命令数を測定しよう
とすると1秒当たり5千万命令が実行されるの
で、1分間では30億命令を実行しうる。これを測
定可能とするためには32ビツトのカウンタが必要
であり、情報処理装置の性能が高くなるにつれ
て、この金物量の増加が著しく大きくなるという
問題点があつた。
(Prior art) Conventionally, in information processing devices that have a built-in performance measurement function for hardware and software characteristics, a system has been adopted in which counters are provided in accordance with the number of items to be measured, with a bit width corresponding to the required accuracy. Ta. However, in order to maintain measurement accuracy, one counter requires a large bit width. For example, if the average instruction execution time is 20 ns, and we are trying to measure the number of instructions executed per minute in a certain program, 50 million instructions are executed per second, so 3 billion instructions are executed per minute. sell. In order to be able to measure this, a 32-bit counter is required, and as the performance of the information processing device becomes higher, the increase in the amount of metal becomes significantly larger.

(発明の目的) 本発明の目的は、性能測定時には情報処理装置
の動作をトレースするための機能を有する内蔵ハ
ードウエアトレーサをトレース機能としてではな
く、カウンタ機能として利用することにより上記
問題点を解決し、性能測定用カウンタのビツト幅
の増加を軽減した情報処理装置を提供することに
ある。
(Objective of the Invention) An object of the present invention is to solve the above-mentioned problems by using a built-in hardware tracer, which has a function to trace the operation of an information processing device, not as a trace function but as a counter function when measuring performance. However, it is an object of the present invention to provide an information processing device in which the increase in bit width of a performance measurement counter is reduced.

(発明の構成) 前記目的を達成するために本発明による情報処
理装置は自体の動作をトレースするためトレース
メモリを内蔵する情報処理装置において、測定制
御情報により被測定信号の被測定信号源に選択的
に接続する第1の選択手段と、前記第1の選択手
段により選択された被測定信号をそれぞれカウン
トする複数のカウンタと、前記複数のカウンタの
オーバフローをそれぞれ検出するオーバフロー検
出回路と、前記測定制御情報によりトレースデー
タから前記オーバフロー検出回路出力に切り換え
る第2の選択手段と、前記オーバフロー検出回路
により前後複数のカウンタのうち、1以上のカウ
ンタにオーバフローを検出したとき、指定された
アドレスにオーバフロー検出ビツトをセツトする
前記トレースメモリと、前記トレースメモリの最
終ワード格納の検出により前記複数のカウンタの
カウンタ値と前記トレースメモリの内容を読出
し、計測結果を収集する測定データ収集手段とを
備えて構成されている。
(Structure of the Invention) In order to achieve the above object, an information processing apparatus according to the present invention includes a built-in trace memory for tracing the operation of the information processing apparatus, and the information processing apparatus selects the source of the signal under measurement based on measurement control information. a plurality of counters each counting the signals under test selected by the first selection means; an overflow detection circuit detecting an overflow of each of the plurality of counters; a second selection means for switching from the trace data to the overflow detection circuit output based on control information; and when the overflow detection circuit detects an overflow in one or more counters among the plurality of counters before and after, the overflow is detected at a specified address; The trace memory for setting a bit, and the measurement data collection means for reading the counter values of the plurality of counters and the contents of the trace memory by detecting the storage of the last word in the trace memory, and collecting measurement results. ing.

(実施例) 次に、本発明について図面を参照して詳細に説
明する。
(Example) Next, the present invention will be described in detail with reference to the drawings.

第1図は、本発明による情報処理装置の一実施
例を示す。第1図において、1は性能測定制御
部、2は被測定信号源、3は測定モードレジス
タ、4は被測定信号レジスタ、5,8,13はそ
れぞれ第1〜第3の選択回路、6はカウンタ群、
7はオーバフロー検出回路、9はトレースメモリ
書込みフリツプフロツプ、10はオーバフローレ
ジスタ、11はトレース信号源、12はトレース
データレジスタ、14はアドレスカウンタ、15
はトレースメモリ、16はトレースメモリ最終ワ
ード格納検出回路、17は測定データ収集制御部
である。
FIG. 1 shows an embodiment of an information processing apparatus according to the present invention. In FIG. 1, 1 is a performance measurement control unit, 2 is a signal source to be measured, 3 is a measurement mode register, 4 is a signal to be measured register, 5, 8, and 13 are first to third selection circuits, and 6 is a signal source to be measured. counter group,
7 is an overflow detection circuit, 9 is a trace memory write flip-flop, 10 is an overflow register, 11 is a trace signal source, 12 is a trace data register, 14 is an address counter, 15
1 is a trace memory, 16 is a trace memory final word storage detection circuit, and 17 is a measurement data collection control section.

第1図において、性能測定制御部1から指定さ
れた測定制御情報がモードレジスタ3に保持さ
れ、保持された測定制御情報は被測定信号レジス
タ4を選択すると共に、トレースメモリ15を性
能測定用メモリとして使用するように宣言するも
のである。被測定信号源2からの被測定信号は、
一時的に被測定信号レジスタ4に保持され、それ
ぞれ測定項目群ごとに分類され、信号線105,
106,107から第1の選択回路5に入力され
る。第1の選択回路5ではモードレジスタ3から
の信号線101により示された被測定信号選択モ
ード信号により、信号線105,106,107
のいずれか一つを選択し、信号線108上に被測
定信号群と1対1に対応づけて入力させる。情報
処理装置のマシンクロツクをサンプリングタイミ
ングとして被測定信号がON状態にある回数をカ
ウントし、カウンタ群6の内容を更新する。オー
バフロー検出回路7はカウンタ群6に接続され、
次に被測定信号がONになつた時にカウンタがオ
ーバフローする状態、すなわち、一般にはカウン
タの内容の全ビツトの論理値が1である状態を検
出する。オーバフロー検出回路7は上記カウンタ
群6のそれぞれのカウンタに対して構成され、そ
の出力は信号線110から送出されてオーバフロ
ーレジスタ10に保持される。いずれかのカウン
タにおけるオーバフロー条件をオーバフロー検出
回路7が検出すると、トレースメモリ15へのオ
ーバフローデータの書込みを指示するため、トレ
ースメモリ書込みフリツプフロツプ9がセツトさ
れる。トレースメモリ書込みフリツプフロツプ9
がセツトされるタイミングと同一のタイミングに
おいて、カウンタ群6のオーバフロー検出情報が
オーバフロー検出回路7からオーバフローレジス
タ10に対して送出され、オーバフローレジスタ
10にセツトされている。したがつて、第3の選
択回路13はオーバフローレジスタ10のデータ
か、あるいはトレース信号源11を保持するため
のトレースデータレジスタ12のデータかをモー
ドレジスタ3から信号線103を介して送出され
る性能測定選択モード信号により選択する。その
出力は、アドレスカウンタ14により指定される
番地のトレースメモリ15へ格納し、アドレスカ
ウンタ14のアドレスを信号線112からの指示
により更新する。
In FIG. 1, measurement control information specified by the performance measurement control unit 1 is held in the mode register 3, and the held measurement control information selects the signal under test register 4 and transfers the trace memory 15 to the performance measurement memory. It is declared to be used as . The signal under test from the signal source 2 under test is
It is temporarily held in the signal under test register 4, classified into each measurement item group, and connected to the signal lines 105,
The signals are input to the first selection circuit 5 from 106 and 107. In the first selection circuit 5, signal lines 105, 106, 107 are
Select one of them and input it onto the signal line 108 in one-to-one correspondence with the signal group to be measured. The number of times the signal under test is in the ON state is counted using the machine clock of the information processing device as a sampling timing, and the contents of the counter group 6 are updated. The overflow detection circuit 7 is connected to the counter group 6,
Next, when the signal under test turns ON, a state in which the counter overflows, that is, a state in which the logic value of all bits of the contents of the counter is generally 1 is detected. An overflow detection circuit 7 is configured for each counter in the counter group 6, and its output is sent out from a signal line 110 and held in an overflow register 10. When overflow detection circuit 7 detects an overflow condition in any counter, trace memory write flip-flop 9 is set to instruct writing of overflow data to trace memory 15. Trace memory write flip-flop 9
At the same timing as when the counter group 6 is set, the overflow detection information of the counter group 6 is sent from the overflow detection circuit 7 to the overflow register 10, and is set in the overflow register 10. Therefore, the third selection circuit 13 determines whether the data in the overflow register 10 or the data in the trace data register 12 for holding the trace signal source 11 is sent from the mode register 3 via the signal line 103. Select by measurement selection mode signal. The output is stored in the trace memory 15 at the address specified by the address counter 14, and the address of the address counter 14 is updated according to an instruction from the signal line 112.

アドレスカウンタ14の内容はカウンタ群6で
オーバフローが検出されるたびに更新され、トレ
ースメモリ15の全ワードへの格納が終了する
と、トレースメモリ最終ワード格納検出回路16
により上記格納の終了が検出される、そこで、信
号線115からカウンタ群6へ上記検出が報告さ
れ、カウンタの更新が抑止される。さらに、測定
データ収集制御部17へ測定データ収集の指示が
行われる。測定データ収集制御部17では上記指
示を受取ると信号線102を介して選択信号を第
2の選択回路8に送出する。そこで、カウンタ群
6からのカウンタ出力線109に接続された第2
の選択回路8によつて収集すべきカウンタが選択
される。これによつて、第2の選択回路8ではカ
ウンタ値を信号線114から読出す。これととも
に、信号線104によりアドレスカウンタ14を
初期設定し(一般にアドレス0)、アドレスカウ
ンタ14の内容を更新しながらトレースメモリ1
5の全ワードを信号線113から読出す。トレー
スメモリ15から読出された全ワードに対するオ
ーバフロービツトの和は、対応するカウンタのオ
ーバフロー回数であり、測定結果は次のようにし
て求めることができる。例えば、カウンタが4ビ
ツトで構成され、トレースメモリ15が256ワー
ドで構成されている場合には、このカウンタのオ
ーバフローは最大256回まで上記トレースメモリ
15に格納することが可能である。したがつて、
このときの測定結果は〔256×2〓〕+カウンタ値に
より算出できる。このとき、カウンタにはみかけ
上12ビツトが存在することになる。
The contents of the address counter 14 are updated every time an overflow is detected in the counter group 6, and when storage into all words of the trace memory 15 is completed, the trace memory final word storage detection circuit 16
The end of the storage is detected, and the detection is reported from the signal line 115 to the counter group 6, and updating of the counter is suppressed. Further, the measurement data collection control unit 17 is instructed to collect measurement data. Upon receiving the above instruction, the measurement data collection control section 17 sends a selection signal to the second selection circuit 8 via the signal line 102. Therefore, the second line connected to the counter output line 109 from the counter group 6
A selection circuit 8 selects a counter to be collected. As a result, the second selection circuit 8 reads the counter value from the signal line 114. At the same time, the address counter 14 is initialized by the signal line 104 (generally address 0), and the trace memory 14 is updated while the contents of the address counter 14 are updated.
5 are read from signal line 113. The sum of overflow bits for all words read from the trace memory 15 is the number of overflows of the corresponding counter, and the measurement result can be obtained as follows. For example, if the counter is made up of 4 bits and the trace memory 15 is made up of 256 words, overflows of this counter can be stored in the trace memory 15 up to 256 times. Therefore,
The measurement result at this time can be calculated by [256×2〓]+counter value. At this time, there appear to be 12 bits in the counter.

(発明の効果) 本発明は以上説明したように、カウンタ群のビ
ツト幅を増加させず、内蔵トレースメモリをカウ
ンタの代わりに利用することにより、金物量を増
加させることなしにカウンタの精度を向上させる
ことができるという効果がある。
(Effects of the Invention) As explained above, the present invention improves the accuracy of the counter without increasing the amount of hardware by using the built-in trace memory instead of the counter without increasing the bit width of the counter group. It has the effect of being able to

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

第1図は、本発明による情報処理装置の一部分
の実施例を示すブロツク図である。 1……性能測定制御部、2,11……信号源、
3,4,10,12……レジスタ、5,8,13
……選択回路、6……カウンタ群、7……オーバ
フロー検出回路、9……フリツプフロツプ、14
……アドレスカウンタ、15……トレースメモ
リ、16……トレースメモリ最終ワード格納検出
回路、17……測定データ収集制御部。
FIG. 1 is a block diagram showing an embodiment of a portion of an information processing apparatus according to the present invention. 1... Performance measurement control unit, 2, 11... Signal source,
3, 4, 10, 12... register, 5, 8, 13
...selection circuit, 6 ... counter group, 7 ... overflow detection circuit, 9 ... flip-flop, 14
. . . address counter, 15 . . . trace memory, 16 . . . trace memory final word storage detection circuit, 17 . . . measurement data collection control section.

Claims (1)

【特許請求の範囲】[Claims] 1 自体の動作をトレースするためトレースメモ
リを内蔵する情報処理装置において、測定制御情
報により被測定信号の被測定信号源に選択的に接
続する第1の選択手段と、前記第1の選択手段に
より選択された被測定信号をそれぞれカウントす
る複数のカウンタと、前記複数のカウンタのオー
バフローをそれぞれ検出するオーバフロー検出回
路と、前記測定制御情報によりトレースデータか
ら前記オーバフロー検出回路出力に切り換える第
2の選択手段と、前記オーバフロー検出回路によ
り前後複数のカウンタのうち、1以上のカウンタ
にオーバフローを検出したとき、指定されたアド
レスにオーバフロー検出ビツトをセツトする前記
トレースメモリと、前記トレースメモリの最終ワ
ード格納の検出により前記複数のカウンタのカウ
ンタ値と前記トレースメモリの内容を読出し、計
測結果を収集する測定データ収集手段とを有する
ことを特徴とする情報処理装置。
1. In an information processing device having a built-in trace memory for tracing its own operation, a first selection means selectively connects to a signal under test source of a signal under test based on measurement control information; a plurality of counters each counting a selected signal under test; an overflow detection circuit detecting an overflow of each of the plurality of counters; and a second selection means switching from trace data to the output of the overflow detection circuit based on the measurement control information. and the trace memory which sets an overflow detection bit at a designated address when the overflow detection circuit detects an overflow in one or more counters among the plurality of counters before and after, and detects storage of the last word of the trace memory. An information processing apparatus comprising: a measurement data collection means for reading counter values of the plurality of counters and contents of the trace memory, and collecting measurement results.
JP58212784A 1983-11-11 1983-11-11 Information processor Granted JPS60105058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58212784A JPS60105058A (en) 1983-11-11 1983-11-11 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58212784A JPS60105058A (en) 1983-11-11 1983-11-11 Information processor

Publications (2)

Publication Number Publication Date
JPS60105058A JPS60105058A (en) 1985-06-10
JPS6411977B2 true JPS6411977B2 (en) 1989-02-28

Family

ID=16628325

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58212784A Granted JPS60105058A (en) 1983-11-11 1983-11-11 Information processor

Country Status (1)

Country Link
JP (1) JPS60105058A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0758242B2 (en) * 1986-10-03 1995-06-21 富士重工業株式会社 Electronic control unit
JPH0553855A (en) * 1991-08-23 1993-03-05 Nec Corp Performance measuring circuit for computer system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6049354B2 (en) * 1976-09-01 1985-11-01 株式会社日立製作所 Event occurrence recording method

Also Published As

Publication number Publication date
JPS60105058A (en) 1985-06-10

Similar Documents

Publication Publication Date Title
US6728906B1 (en) Trace buffer for a configurable system-on-chip
EP0530816A2 (en) Microprocessor with cache memory and trace analyzer therefor
JPS6411977B2 (en)
JP3711884B2 (en) Trace data collection method
JPS55163697A (en) Memory device
JPS6142186Y2 (en)
JP4013445B2 (en) Time counter
JPH02242440A (en) Instruction trace circuit
JPH0217552A (en) Performance data measuring system
JPS63181045A (en) Data processor
JPH0229457Y2 (en)
JPS6010357A (en) Data collecting device for measuring performance of computer
JP2679163B2 (en) Operation exception generation instruction information detection circuit
SU1478210A1 (en) Data sorting unit
JPS6122334B2 (en)
JP2002181857A (en) Signal processing device
JPS6184746A (en) Tracer memory data recording circuit
JPH0231248A (en) Data processor
JPH0358240A (en) Register access recording circuit
JPS6041182A (en) Method for measuring distribution of generation frequency of matter to be measured
JPS63170744A (en) Information processor
JPH02204845A (en) Internal operation history recorder
JP2002091795A (en) Cache controller
JPH01154259A (en) Data trace system
JPH02165350A (en) Information processor