JP2834194B2 - Hardware monitor - Google Patents

Hardware monitor

Info

Publication number
JP2834194B2
JP2834194B2 JP1180317A JP18031789A JP2834194B2 JP 2834194 B2 JP2834194 B2 JP 2834194B2 JP 1180317 A JP1180317 A JP 1180317A JP 18031789 A JP18031789 A JP 18031789A JP 2834194 B2 JP2834194 B2 JP 2834194B2
Authority
JP
Japan
Prior art keywords
event
value
time
duration
measurement
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 - Fee Related
Application number
JP1180317A
Other languages
Japanese (ja)
Other versions
JPH0346040A (en
Inventor
黒川  洋
和則 栗山
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1180317A priority Critical patent/JP2834194B2/en
Publication of JPH0346040A publication Critical patent/JPH0346040A/en
Application granted granted Critical
Publication of JP2834194B2 publication Critical patent/JP2834194B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ処理システムの性能特性に関する計測
データを収集するためのハードウエアモニタに関する。
Description: TECHNICAL FIELD The present invention relates to a hardware monitor for collecting measurement data relating to performance characteristics of a data processing system.

〔従来の技術〕[Conventional technology]

〔ハードウエアモニタとは〕 プロセツサの性能を監視するため一つの手段としてハ
ードウエアモニタがある。ハードウエアモニタは被監視
プロセツサの内部信号を取り出して意味ある情報を得る
もので、被監視プロセツサの動作を乱さないという特徴
をもつ。ハードウエアモニタはプロセツサの性能を計測
するとともに、プロセツサのオーバヘツド要因を解析す
るのに必要な情報を得るために用いられる。
[What is a hardware monitor?] There is a hardware monitor as one means for monitoring the performance of a processor. The hardware monitor obtains meaningful information by extracting internal signals of the monitored processor, and has a feature that the operation of the monitored processor is not disturbed. The hardware monitor is used to measure the performance of the processor and to obtain information necessary for analyzing the processor's overhead factor.

ハードウエアモニタを計測機能の面からみると、計数
方式と記録方式に分類できる。計数方式はある事象が生
起した回数や生起していた時間を計数する方式である。
計数方式は総回数や総時間など計数値そのものが意味あ
る情報となる場合に用いられる。一方記録方式はある事
象が生起した時にその事象に関するデータを集めて記録
媒体に記録する方式で、記録されたデータを意味ある情
報に編集する処理は、記録媒体に記録したあとで行われ
る。記録方式は解析したい事象が複雑であるため、計数
方式では意味ある情報が得られない場合に用いられる。
例としてプログラムの動作履歴の解析などがある。
From the viewpoint of the measurement function, the hardware monitor can be classified into a counting method and a recording method. The counting method is a method of counting the number of times an event has occurred and the time during which the event has occurred.
The counting method is used when the counted value itself, such as the total number of times or the total time, becomes meaningful information. On the other hand, the recording method is a method in which when an event occurs, data relating to the event is collected and recorded on a recording medium. The process of editing the recorded data into meaningful information is performed after recording on the recording medium. The recording method is used when meaningful information cannot be obtained by the counting method because an event to be analyzed is complicated.
An example is analysis of the operation history of a program.

〔プロセツサ性能低下要因解析を必要とする事象の例〕[Examples of events that require analysis of processor performance degradation factors]

プロセツサの性能を落とす要因の1つの例として資源
の競合に起因するオーバヘツドがある。例として、複数
のプロセスに共有されたデータや複数のプロセツサに共
有された記憶装置など、排他制御を必要とする資源があ
げられる。資源の競合が起きると、資源の要求元はその
資源が獲得できるまで待たねばならず、これがオーバヘ
ツドとなる。複数のプロセスやプロセツサが並列に動作
するシステムにおいては、このオーバヘツドを極力排除
することが必要で、その解析は重要である。
One example of a factor that degrades processor performance is overhead due to resource contention. Examples include resources that require exclusive control, such as data shared by multiple processes and storage devices shared by multiple processors. When a resource conflict occurs, the requestor of the resource must wait until the resource can be acquired, which is overhead. In a system in which a plurality of processes and processors operate in parallel, it is necessary to eliminate this overhead as much as possible, and its analysis is important.

〔排他制御にともなうオーバヘツドの解析と対策例〕[Analysis of overhead associated with exclusive control and examples of countermeasures]

このような排他制御にともなうオーバヘツドを解析す
るためには、待ちを生じた総回数や総時間、さらには持
ち時間の分布や資源を獲得していた時間の分布などの情
報が必要となる。
In order to analyze the overhead associated with such exclusive control, information such as the total number of times of waiting and the total time, as well as the distribution of the time allotted and the distribution of the time during which resources have been acquired, are required.

まず待ちの生じた総回数や総時間を用いて、注目した
事象のオーバヘツドが全オーバヘツドに占める割合を調
べ、対策すべきオーバヘツドか否かを判断する。対策す
べきと判断したら、次に時間の分布を調べる。例えば待
ち時間の分布を調べ、資源の獲得要求を送るタイミング
パタンを変えるなどの対策を施すことが出来る。また資
源を獲得していた時間の分布を用いて、排他制御部分の
分割や統合など排他制御部を変えるなどの対策を施すこ
とが出来る。
First, the ratio of the overhead of the event of interest to the total overhead is examined by using the total number of times and the total time during which waiting has occurred, and it is determined whether or not the overhead is a countermeasure to be taken. If you decide that you need to take action, then examine the time distribution. For example, it is possible to check the distribution of the waiting time and take measures such as changing a timing pattern for sending a resource acquisition request. Also, by using the distribution of the time during which the resources have been acquired, it is possible to take measures such as changing the exclusive control unit such as dividing or integrating the exclusive control part.

このように回数や時間分布といつた情報を用いてオー
バヘツド要因を解析し、その対策を練ることができる。
As described above, the overhead factor can be analyzed using the information such as the number of times and the time distribution, and countermeasures can be taken.

〔時間分布の計測例〕[Example of time distribution measurement]

これまで回数や時間分布といつた情報の有用性につい
て述べた。次にハードウエアモニタを用いて被監視プロ
セツサの動作を乱すことなく時間分布を計測する従来の
方式について説明する。なお回数の計測は先に分類した
計数方式により容易に計測できるので回数計測方式の説
明は省略する。
The usefulness of the information, such as the number and time distribution, has been described. Next, a conventional method for measuring a time distribution without disturbing the operation of the monitored processor using a hardware monitor will be described. Since the number of times can be easily measured by the counting method classified above, the description of the number of times measurement method is omitted.

時間分布はある事象が生起していた時間をその事象が
生起するたびに計測してその計測値を記録媒体に記録
し、計測終了後、記録媒体に記録されたデータを読み出
して時間別に分類することにより求められる。すなわち
先に説明した記録方式により求めることができる。
The time distribution measures the time when an event has occurred each time the event occurs, records the measured value on a recording medium, and after the measurement is completed, reads out the data recorded on the recording medium and classifies the data according to time. It is required by That is, it can be obtained by the recording method described above.

例えば第3図(A)に示すように、1回目に16サイク
ル、2回目に12サイクルという順で計20個の事象が生起
したとする。記録方式では事象が生起するたびに、これ
らの事象の生起時間を求め、記録媒体に順次生起時間を
記録してゆき、第3図(B)に示すような形式で格納さ
れる。なお第3図(B)において、Seq(n)はn番目
に生起した事象の生起時間を示す。計測が終わると、こ
れらのデータを1つ1つ読み出して、第3図(C)に示
すように時間別に分類することにより求められる。なお
第3図(C)において、Time(n)はnサイクル生起し
た事象の生起回数を示す。
For example, as shown in FIG. 3A, it is assumed that a total of 20 events have occurred in the order of 16 cycles at the first time and 12 cycles at the second time. In the recording method, each time an event occurs, the occurrence times of these events are obtained, and the occurrence times are sequentially recorded on a recording medium and stored in a format as shown in FIG. 3 (B). In FIG. 3 (B), Seq (n) indicates the occurrence time of the n-th occurring event. When the measurement is completed, these data are read out one by one and are obtained by classifying them by time as shown in FIG. 3 (C). In FIG. 3 (C), Time (n) indicates the number of occurrences of an event that has occurred in n cycles.

ここで記録媒体は計測する事象の総数や生起する間隔
に応じて適宜選択されハードウエアモニタに接続され
る。たとえば短間隔で生起する事象を計測する場合は記
録体として高速メモリなどが用いられ、数多く生起する
事象を計測する場合は磁気記録媒体などが用いられる。
Here, the recording medium is appropriately selected in accordance with the total number of events to be measured and the intervals at which it occurs, and is connected to a hardware monitor. For example, when events occurring at short intervals are measured, a high-speed memory or the like is used as a recording medium, and when a number of occurring events are measured, a magnetic recording medium or the like is used.

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

時間分布の計測を従来の記録方式で行う場合、次の問
題がある。
When measuring the time distribution by the conventional recording method, there is the following problem.

(1)記録方式は記録媒体を必要とすることから、計測
できる事象の総数の上限は記録媒体の容量で決まる。ま
た記録方式は計測値の転送処理を必要とするため、計測
できる事象の生起間隔の下限は転送速度で決まる。この
ため短間隔でかつ数多く生起する事象を計測するために
は、書き込み速度が高速でかつ大容量の記録媒体を接続
しなくてはならない。つまり計測する事象の総数に比例
して記録媒体の物量が増えるという問題がある。
(1) Since the recording method requires a recording medium, the upper limit of the total number of events that can be measured is determined by the capacity of the recording medium. Further, since the recording method requires transfer processing of measured values, the lower limit of the interval between occurrences of measurable events is determined by the transfer speed. For this reason, in order to measure a large number of events occurring at short intervals, a recording medium having a high writing speed and a large capacity must be connected. That is, there is a problem that the physical quantity of the recording medium increases in proportion to the total number of events to be measured.

(2)さらに記録方式は計測が終わるたびに、記録媒体
からデータを読み出して時間別に分類する作業が必要に
なる。すなわち後処理に手間がかかるという問題があ
る。
(2) Further, in the recording method, every time measurement is completed, data must be read from the recording medium and classified according to time. That is, there is a problem in that post-processing takes time.

本発明の目的は、短間隔でかつ数多く生起する事象の
生起時間分布を記録することができるハードウエアモニ
タを提供することにある。先の例でいえば第3図(A)
に示すような順に事象が生起した場合に、第3図(C)
に示すような生起時間別分類が一度に測定できるハード
ウエアモニタを提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a hardware monitor capable of recording an occurrence time distribution of a large number of occurring events at short intervals. In the previous example, Fig. 3 (A)
When the events occur in the order shown in Fig. 3 (C)
An object of the present invention is to provide a hardware monitor capable of measuring the classification by occurrence time as shown in FIG.

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

上記目的達成のため、本発明のハードウエアモニタで
は、事象の生起していた時間の計測値を入力として、加
算指令を作用せしめる値の格納アドレスとを生成する計
測値変換装置を具備する。
In order to achieve the above object, the hardware monitor of the present invention includes a measurement value conversion device that receives a measurement value of a time when an event has occurred and generates a storage address of a value at which an addition command is applied.

〔作用〕[Action]

計測値変換装置により計測値が変換されて記録される
ため、記録媒体の物量を減らすことができ、従来必要で
あつた計測終了後の分類作業が不要になる。先の例でい
えば、第3図(B)に示す形式で計測値を記録するため
の記録媒体が不要になり、さらに第3図(B)に示す形
式から第3図(C)に示す形式に分類する作業が不要に
なる。
Since the measurement value is converted and recorded by the measurement value conversion device, the physical quantity of the recording medium can be reduced, and the classification work after the end of measurement, which is conventionally required, is not required. In the previous example, a recording medium for recording the measurement values in the format shown in FIG. 3 (B) becomes unnecessary, and the format shown in FIG. 3 (B) is changed to the format shown in FIG. 3 (C). Eliminates the need to classify by format.

〔実施例〕〔Example〕

〔本発明の全体構成例〕 第1図は、本発明に従うハードウエアモニタ(2)
と、被監視プロセツサ(1)と、計測値編集装置(3)
の接続例を示す。第1図において、被監視プロセツサ
(1)は1台で構成されるように記載されているが、被
監視プロセツサ(1)は複数台で構成されてもよい。こ
の場合プロセツサ内部信号群はプロセツサの台数分増え
る。また第1図において監視プロセツサ(1)と計測値
編集装置(3)は別個の装置として記載されているが、
被監視プロセツサ(1)と計測値編集装置(3)は同一
であつてもよい。以下では説明を簡単にするために監視
プロセツサ(1)と計測値編集装置(3)は各々1台ず
つ構成される場合について説明する。
FIG. 1 shows a hardware monitor (2) according to the present invention.
, Monitored processor (1), and measurement value editing device (3)
An example of connection is shown. In FIG. 1, the monitored processor (1) is described as being constituted by one unit, but the monitored processor (1) may be constituted by a plurality of units. In this case, the processor internal signal group increases by the number of processors. In FIG. 1, the monitoring processor (1) and the measurement value editing device (3) are described as separate devices.
The monitored processor (1) and the measurement value editing device (3) may be the same. In the following, for simplicity of description, a case will be described in which each of the monitoring processor (1) and the measurement value editing device (3) is constituted by one.

第1図に示すようにハードウエアモニタ(2)は次の
4種の装置から構成される。次にこれらの装置の機能を
第1図を参照しながら番号順に説明する。なお以下の説
明では、ハードウエアモニタをHMと略記する。
As shown in FIG. 1, the hardware monitor (2) is composed of the following four types of devices. Next, the functions of these devices will be described in numerical order with reference to FIG. In the following description, the hardware monitor is abbreviated as HM.

HM制御装置(21) 計測値編集装置(3)から送られるHM制御指令に応じ
て次に示す6種の制御を行い、HM制御指令の応答を返
す。(1)計測方式の設定、(2)計測値変換方式の設
定、(3)計測の開始と終了の制御、(4)事象生起時
間分布記憶装置に格納された値の読み出し、(5)事象
生起時間計測装置の計測値のクリア、(6)事象生起時
間分布記憶装置の初期化。
HM control device (21) The following six types of control are performed according to the HM control command sent from the measurement value editing device (3), and a response to the HM control command is returned. (1) setting of measurement method, (2) setting of measurement value conversion method, (3) control of start and end of measurement, (4) reading of value stored in event occurrence time distribution storage device, (5) event Clear the measurement value of the occurrence time measuring device, (6) Initialize the event occurrence time distribution storage device.

事象生起時間計測装置(22) 監視事象指定装置(21)により指定された計測方式に
基づき、計測する事象を被監視プロセツサ(1)から送
られるプロセツサ内部信号群の中から選別し、事象生起
信号を生成する。さらに事象生起信号が論理的に1であ
る時間を計数し、計測値を生成する。なおこれらの機能
は監視事象指定装置(21)から送られる計測開始終了制
御信号(第1図では省略)が論理的に1である間有効で
ある。またHM制御装置(21)から送られる時間計測値ク
リア指令(第1図では省略)に応答して計測値をクリア
する機能を併せ持つ。
Event occurrence time measurement device (22) Based on the measurement method specified by the monitoring event designation device (21), an event to be measured is selected from a processor internal signal group sent from the monitored processor (1), and an event occurrence signal is generated. Generate Further, the time when the event occurrence signal is logically 1 is counted, and a measurement value is generated. These functions are valid as long as the measurement start / end control signal (omitted in FIG. 1) sent from the monitoring event specifying device (21) is logically 1. Further, it has a function of clearing the measured value in response to a time measured value clear command (omitted in FIG. 1) sent from the HM control device (21).

本装置の構成例については、後述する本発明の実施例
1で詳しく説明する。
A configuration example of the present apparatus will be described in detail in a first embodiment of the present invention described later.

計測値変換装置(23) 監視事象指定装置(21)により指定された計測値変換
方式に基づき、事象生起時間計測装置(22)から送られ
る計測値からアドレス信号と、アドレスで指定された場
所に格納された値を増分することを意味する加算指令と
を生成する。
Measurement value conversion device (23) Based on the measurement value conversion method specified by the monitoring event specification device (21), an address signal is sent to the location specified by the address from the measurement value sent from the event occurrence time measurement device (22). And an addition command which means to increment the stored value.

本装置の構成例については、後述する本発明の実施例
1で詳しく説明する。
A configuration example of the present apparatus will be described in detail in a first embodiment of the present invention described later.

事象生起時間分布記憶装置(24) 計測値変換装置(23)から送られるアドレス信号と加
算指令に応答して、アドレス信号により指定された場所
に格納された値を増分する。また第1図において省略さ
れているが、HM制御装置(21)から送られる初期化指令
に応答してメモリに格納された値をクリアする機能を併
せ持つ。さらにHM制御装置(21)から送られる計測値の
読み出し指令と読み出しアドレスに応答して、指定され
たアドレスに格納された値とその値の有意性を示す信号
(たとえばオーバフロー信号)を返す機能も併せ持つ。
Event occurrence time distribution storage device (24) In response to the address signal and the addition command sent from the measured value conversion device (23), the value stored in the location specified by the address signal is incremented. Although not shown in FIG. 1, it also has a function of clearing the value stored in the memory in response to the initialization command sent from the HM control device (21). Furthermore, in response to a read command and a read address of a measurement value sent from the HM control device (21), a function of returning a value stored at a specified address and a signal indicating the significance of the value (eg, an overflow signal) is also provided. Have both.

第2図は従来の技術を用いて、本発明に相当する機能
を実現する例を示す。従来の技術においては、HM制御信
号(21)により指定された計測方式に基づき、事象生起
時間計測装置(22)内部の事象選択装置(100)が、計
測する事象を被監視プロセツサ(1)から送られるプロ
セツサ内部信号群の中から選別して事象生起信号を生成
する。さらに事象生起信号が論理的に1である時間を生
起時間計測装置(200)が計数し、計測値を生成する。
こうして求めた計測値を計測値編集装置(3)内部の記
録媒体(31)に順次記録してゆく。計測終了後、記録媒
体(31)に記録されたデータを読み出して時間別に分類
することにより、時間分布を求めていた。
FIG. 2 shows an example of realizing a function corresponding to the present invention using a conventional technique. In the prior art, based on a measurement method specified by an HM control signal (21), an event selection device (100) in an event occurrence time measurement device (22) transmits an event to be measured from a monitored processor (1). An event occurrence signal is generated by selecting from a group of processor internal signals to be sent. Further, the occurrence time measuring device (200) counts the time when the event occurrence signal is logically 1 and generates a measured value.
The measured values thus obtained are sequentially recorded on the recording medium (31) inside the measured value editing device (3). After the measurement, the data recorded on the recording medium (31) is read out and classified by time to obtain a time distribution.

第1図に示す実施例の動作を簡単に説明する。先に述
べたように、計測する事象をプロセツサ内部信号群の中
から選別し、事象生起信号を生成し、事象生起信号が論
理的に1である時間を計数し、計測値を生成する点は従
来と同じである。本発明においては、計測値からアドレ
ス生成装置(300)がアドレス信号を、また加算指令生
成装置(400)が加算指令を生成し、事象生起時間分布
記憶装置(24)において、アドレス信号により指定され
た場所に格納された値を増分する点が従来と異なる。従
来は計測する事象の生起した順に計測値を格納していた
のに対し、本発明においては、計測値に対応して指定さ
れた場所に格納された値を増分する。すなわち計測値が
ある値を持つたときの回数(度数分布)を測定する。こ
のように本発明においては、従来計測終了後に行つてい
た計測値の分類を、計測と並行して行うことができる。
The operation of the embodiment shown in FIG. 1 will be briefly described. As described above, the event to be measured is selected from the processor internal signal group, the event occurrence signal is generated, the time when the event occurrence signal is logically 1 is counted, and the point of generating the measurement value is as follows. Same as before. In the present invention, the address generation device (300) generates an address signal from the measured value, and the addition command generation device (400) generates an addition command. The event occurrence time distribution storage device (24) specifies the address signal by the address signal. Is different from the conventional method in that the value stored in the stored location is incremented. Conventionally, the measured values are stored in the order in which the events to be measured have occurred, but in the present invention, the value stored in a designated location corresponding to the measured value is incremented. That is, the number of times (frequency distribution) when the measured value has a certain value is measured. As described above, in the present invention, the classification of the measured values, which has been performed after the end of the conventional measurement, can be performed in parallel with the measurement.

〔本発明の第1の実施例〕 まず第1図,第4〜8図を用いて本発明の第1の実施
例を説明する。
[First Embodiment of the Present Invention] First, a first embodiment of the present invention will be described with reference to FIGS. 1 and 4 to 8.

第4図は第1図に示す事象生起時間計測装置(22)の
構成例を示す。同図において、=は2つの入力が等しい
時に論理的に1の値を、2つの入力が異なる時に論理的
に0の値を出力する。Lはラツチを、Aはアンドゲート
を、Oはオアゲートを意味する。またAの入力信号の1
つに付けられた丸印はインバータを意味する。本構成例
において事象生起時間計測装置(22)は、指定された事
象を選別する事象選別装置(100)と選別された事象の
生起時間を計測する生起時間計測装置(200)で構成さ
れる。
FIG. 4 shows a configuration example of the event occurrence time measuring device (22) shown in FIG. In the figure, = outputs a logical value of 1 when the two inputs are equal, and outputs a logical value of 0 when the two inputs are different. L indicates a latch, A indicates an AND gate, and O indicates an OR gate. Also, one of the input signals of A
A circle attached to one means an inverter. In the present configuration example, the event occurrence time measurement device (22) includes an event selection device (100) that selects a specified event and an occurrence time measurement device (200) that measures the occurrence time of the selected event.

事象選択装置(100)は、Start Adr.Reg.により指定
されたアドレスに格納された命令を実行してから、Stop
Adr.Reg.により指定されたアドレスに格納された命令
を実行するまでの時間を計測する。これらのレジスタの
値はHM制御装置(21)から送られる計測方式指定信号で
指定される。例えば先に説明した排他制御部の実行時間
分布を測定するときは、排他制御部の開始アドレスと終
了アドレスをそれぞれ指定する。同装置は、事象開始信
号,事象終了信号,事象生起信号を内部で生成し、HM制
御装置(21)から送られる計測開始終了制御信号が論理
的に1であるとき、事象生起信号と事象終了信号を送出
する。
The event selection device (100) executes the instruction stored at the address specified by Start Adr.
Measures the time until the instruction stored at the address specified by Adr.Reg. Is executed. The values of these registers are specified by the measurement method specifying signal sent from the HM control device (21). For example, when measuring the execution time distribution of the exclusive control unit described above, the start address and the end address of the exclusive control unit are specified. The device internally generates an event start signal, an event end signal, and an event occurrence signal. When the measurement start / end control signal sent from the HM control device (21) is logically 1, the event occurrence signal and the event end signal are generated. Send a signal.

生起時間計測装置(200)は、事象選別装置(100)か
ら送られる事象生起信号が有効(論理的に1)である時
間を計数する。計数は1クロツクピツチで行われ、1ク
ロツク後に計測値を出力する。計測値の表現形式はnビ
ツトからなる2進データである。事象選別装置(100)
から事象終了信号が入力されると加算器の入力は‘0'に
切り替えられる。またHM制御装置(21)から送られる時
間計測値クリア信号が論理的に1になると、計測値はク
リアされる。
The occurrence time measuring device (200) counts the time during which the event occurrence signal sent from the event selection device (100) is valid (logically 1). The counting is performed in one clock pitch, and the measured value is output after one clock. The expression form of the measured value is binary data consisting of n bits. Event sorting device (100)
When the event end signal is input from, the input of the adder is switched to '0'. When the time measurement value clear signal sent from the HM control device (21) logically becomes 1, the measurement value is cleared.

第5図は第1図に示す計測値変換装置(23)の構成例
を示す。計測値変換装置(23)は、事象生起時間計測装
置(22)の生成する計測値を入力として指定された方式
に従いアドレスを生成するアドレス生成装置(300)
と、事象生起信号もしくは事象終了信号を入力とし加算
指令を生成する加算指令生成装置(400)で構成され
る。
FIG. 5 shows an example of the configuration of the measurement value conversion device (23) shown in FIG. The measurement value conversion device (23) receives the measurement value generated by the event occurrence time measurement device (22) as an input and generates an address according to a designated method (300).
And an addition command generation device (400) that receives an event occurrence signal or an event end signal and generates an addition command.

アドレス生成装置(300)は、HM制御装置(21)から
送られる減数値指定信号やシフト値指定信号の指定に従
つて、事象生起時間計測装置(22)の生成する計測値を
変換し、アドレスを出力する。減算器(301)は計測値
から計測値から減数値として指定された値を減じた値を
出力する。シフタ(302)は減算器の出力を入力とし
て、シフト値として指定された値だけ算術右シフトした
結果を出力する。減算器(301)はシフタ(302)は、測
定時間の範囲を拡大するために用いられる。ラツチ(30
3)は加算指令との出力タイミングを合わせるために用
いられる。アドレス上限判定用比較器(304)は生起時
間分布記憶装置(24)内の記憶領域の上限を超えたこと
を検出し、アドレス上限オーバ検出信号をHM制御装置
(21)に送出する。アドレス上限判定用比較器(304)
の詳細は後述する。
The address generation device (300) converts the measurement value generated by the event occurrence time measurement device (22) according to the designation of the decrement value designation signal and the shift value designation signal sent from the HM control device (21), and Is output. A subtractor (301) outputs a value obtained by subtracting a value designated as a subtracted value from the measured value from the measured value. The shifter (302) receives the output of the subtractor as input, and outputs the result of arithmetic right shift by the value specified as the shift value. The subtracter (301) and the shifter (302) are used to extend the range of the measurement time. Ratchi (30
3) is used to match the output timing with the addition command. The address upper limit determination comparator (304) detects that the upper limit of the storage area in the occurrence time distribution storage device (24) has been exceeded, and sends an address upper limit over detection signal to the HM controller (21). Address upper limit comparator (304)
Will be described later.

加算指令生成装置(400)は、事象生起時間計測装置
(22)の生成する事象終了信号をもとに、加算指令を生
成する。アンドゲート(401)は減算器(301)において
ボローが生じていない(減算器の出力が負でない)とき
のみ、加算指令を生成するよう作用する。ラツチ(40
2)はアドレスとの出力タイミングを合わせるために用
いられる。アンドゲート(403)は、アドレス生起時間
分布記憶装置(24)内の記憶領域の上限を超えていない
ときのみ、加算指令を生成するよう作用する。アンドゲ
ート(404)は減算器(301)においてボローが生じてい
たために、計測できなかつた事象があることを検出し、
アドレス下限オーバ検出信号をHM制御装置(21)に送出
する。
The addition command generation device (400) generates an addition command based on the event end signal generated by the event occurrence time measurement device (22). The AND gate (401) acts to generate an addition command only when no borrow occurs in the subtractor (301) (the output of the subtractor is not negative). Ratchi (40
2) is used to match the output timing with the address. The AND gate (403) operates to generate an addition command only when the upper limit of the storage area in the address occurrence time distribution storage device (24) is not exceeded. The AND gate (404) detects that there is an event that cannot be measured because a borrow has occurred in the subtractor (301),
An address lower limit over detection signal is sent to the HM controller (21).

第1図に示す事象生起時間分布記憶装置(24)は、計
測値変換装置(23)の出力するアドレスと加算指令に応
答して、アドレスで指定された場所に格納された値を1
増分する。アドレス信号はmビツト、加算は1クロツク
ピツチで行われるとする。メモリのアクセス時間や加算
時間が不足する場合は、多重バンク構成にするなどし
て、事象生起時間分布記憶装置(24)は見かけ上、加算
指令の最小送出間隔内にアドレスで指定された場所に格
納された値を増分できるよう構成する。事象生起時間分
布記憶装置(24)は同業者であれば容易に構成できると
思われるので構成例を省略する。
The event occurrence time distribution storage device (24) shown in FIG. 1 responds to the address output by the measurement value conversion device (23) and the addition command to store the value stored in the location specified by the address as one.
Increment. It is assumed that the address signal is performed in m bits and the addition is performed in one clock pitch. If the memory access time or the addition time is insufficient, the event occurrence time distribution storage device (24) is apparently placed in the location specified by the address within the minimum transmission interval of the addition command by making a multi-bank configuration or the like. Configure the stored value to increment. Since the event occurrence time distribution storage device (24) seems to be easily configured by those skilled in the art, a configuration example is omitted.

第6図はアドレス上限判定用比較器(304)の構成例
を示す。本構成例ではボローが生じておらず、かつmビ
ツトからなる計測値の信号線が全て1になつたとき、生
起時間分布記憶装置(24)内の記憶領域の上限を超えた
と判定し、アドレス上限オーバ検出信号を生成する。な
お事象終了信号は次の事象についてアドレス上限オーバ
を検出するために、検出信号をクリアする。
FIG. 6 shows an example of the configuration of the address upper limit determination comparator (304). In this configuration example, when no borrow has occurred and all the signal lines of the measurement value consisting of m bits have become 1, it is determined that the upper limit of the storage area in the occurrence time distribution storage device (24) has been exceeded, and the address is determined. Generate an upper limit over detection signal. The event end signal clears the detection signal in order to detect an address upper limit over for the next event.

以上説明した回路構成のもとで、本発明の第1の実施
例に従うハードウエアモニタの動作を第7図に示すタイ
ムチヤートを用いて説明する。例として計測する事象が
1回目に2クロツク、2回目に3クロツク、1回目に1
クロツクの時間幅をもつて生起した時に、計測値が事象
生起時間分布記憶装置(24)にどのように格納されるか
を説明する。第7図において、DATA(i)はi番地に格
納されたデータを意味する。また生起時間計測装置(20
0)の出力値たる計測値の初期値は0、事象生起時間分
布記憶装置(24)内のデータは初期値として全て0格納
されているとする。減数値指定信号の値は0、シフト値
指定信号の値も0とする。
The operation of the hardware monitor according to the first embodiment of the present invention based on the circuit configuration described above will be described with reference to a time chart shown in FIG. For example, the event to be measured is 2 clocks for the first time, 3 clocks for the second time, and 1 clock for the first time.
How the measured value is stored in the event occurrence time distribution storage device (24) when it occurs with a clock time width will be described. In FIG. 7, DATA (i) means data stored at address i. Occurrence time measurement device (20
It is assumed that the initial value of the measured value which is the output value of (0) is 0, and that the data in the event occurrence time distribution storage device (24) is all stored as 0 as the initial value. The value of the decrement value designation signal is 0, and the value of the shift value designation signal is also 0.

まず1回目の事象が始まると、生起時間計測装置(20
0)は事象の生起している時間の計測を始め、計測値が
2すなわちアドレスが2になつた所で事象終了信号が有
効になる。すると加算指令が計測値記憶装置に送られ、
アドレスが2の場所すなわちDATA(2)に格納された値
に1が加算される。また事象終了信号により計測値はク
リアされ、次の計測にそなえ初期化される。以上の動作
は、生起時間が2サイクルであつた事象が1回生起した
事を記録することに対応する。次に、2回目の事象が生
起するとDATA(3)に格納された値に1が加算され、3
回目の事象が終了するとDATA(1)に格納された値に1
が加算される。これらは生起時間が2サイクルおよび3
サイクルであつた事象がそれぞれ1回づつ生起した事を
記録することに対応する。
First, when the first event starts, the occurrence time measurement device (20
0) starts measurement of the time when the event occurs, and the event end signal becomes valid when the measured value is 2, that is, when the address becomes 2. Then, the addition command is sent to the measured value storage device,
1 is added to the location where the address is 2, that is, the value stored in DATA (2). The measured value is cleared by the event end signal and is initialized for the next measurement. The above operation corresponds to recording that an event having an occurrence time of two cycles has occurred once. Next, when the second event occurs, 1 is added to the value stored in DATA (3), and 3
When the first event is completed, 1 is added to the value stored in DATA (1).
Is added. These have an onset time of 2 cycles and 3
This corresponds to recording that each of the events in the cycle has occurred once.

最終的にDATA(1)に1、DATA(2)に1、DATA
(3)に1が格納され、これは生起時間が1サイクル,2
サイクル,3サイクルであつた事象がそれぞれ1回生起し
た事を示す。事象生起時間分布記憶装置(24)のメモリ
アドレスを事象生起時間とし、メモリデータを度数とす
ると、事象生起時間分布記憶装置(24)にはまさに計測
した事象の生起時間分布が格納されている。
Finally, DATA (1) is 1, DATA (2) is 1, DATA
1 is stored in (3), which means that the occurrence time is 1 cycle, 2
This indicates that the event that occurred in one cycle and three cycles occurred once. Assuming that the memory address of the event occurrence time distribution storage device (24) is the event occurrence time and the memory data is the frequency, the event occurrence time distribution storage device (24) stores the occurrence time distribution of the event just measured.

次に、減数値指定信号の値が2、シフト値指定信号の
値が1の場合の動作を、第8図に示すタイムチヤートを
用いて説明する。
Next, the operation when the value of the decrement value designation signal is 2 and the value of the shift value designation signal is 1 will be described using the time chart shown in FIG.

まず1回目の事象が始まると、計測値が2すなわちア
ドレスが2になつた所で事象終了信号が有効になる。こ
のときボロー信号は有効でないため、加算指令が計測値
記憶装置に送られ、DATA(0)に格納された値に1が加
算される。2回目の事象が生起すると1回目と同様にDA
TA(0)に格納された値に1が加算される。3回目の事
象はボロー信号が有効であるため、加算指令は抑止され
る。
First, when the first event starts, the event end signal becomes valid when the measured value becomes 2, that is, the address becomes 2. At this time, since the borrow signal is not valid, an addition command is sent to the measured value storage device, and 1 is added to the value stored in DATA (0). When the second event occurs, the DA is the same as the first event
1 is added to the value stored in TA (0). Since the borrow signal is valid for the third event, the addition command is suppressed.

減数値指定信号の値が2、シフト値指定信号の値が1
の条件のもとでは、アドレス=(計数値−2)/21(小
数点以下切捨て)で与えられることから、DATA(i)に
は計測する事象が2×i+2サイクルないし2×i+3
サイクル生起していた回数が計数される。本例において
は生起時間が2〜3サイクルであつた事象が2回生起し
たことが、記録されている。
The value of the decrement value designation signal is 2 and the value of the shift value designation signal is 1
Under the condition (2), the address = (count value−2) / 2 1 (rounded down after the decimal point), so that the event to be measured is stored in DATA (i) in 2 × i + 2 cycles to 2 × i + 3.
The number of times a cycle has occurred is counted. In this example, it is recorded that an event having an occurrence time of 2 to 3 cycles has occurred twice.

なお本発明の第1の実施例において、減数値を0に固
定して用いる場合は減算器(301)は省略でき、シフト
値を0に固定して用いる場合はシフタ(302)は省略で
きる。もちろん減数値を0に固定して用いかつシフト値
を0に固定して用いる場合は減算器(301)とシフト(3
02)を省略できる。この場合は計測値をそのままアドレ
スに使うことに相当する。
In the first embodiment of the present invention, the subtracter (301) can be omitted when the decrement value is fixed at 0, and the shifter (302) can be omitted when the shift value is fixed at 0. Of course, when the decrement value is fixed at 0 and the shift value is fixed at 0, the subtracter (301) and the shift (3
02) can be omitted. In this case, the measured value is used as it is for the address.

さらに本実施例において、アドレス生成装置(300)
を減算器(301)とシフタ(302)で構成していたが、あ
る計測値に対しアドレスを一意に変換できるように構成
してもよい。計測値をインデクスにアドレスを生成する
変換テーブルを用いるのも1つの方法である。
Further, in the present embodiment, the address generation device (300)
Is constituted by the subtractor (301) and the shifter (302), but may be constituted so that an address can be uniquely converted for a certain measured value. One method is to use a conversion table that generates an address using a measured value as an index.

また事象終了信号を事象生起時間計測装置(22)から
送られる事象終了信号から、加算指令を生成していた
が、計測値から生成することができる。計測値は事象が
終了すると0にクリアされる。このため計測値が0以外
のある値からその値と同じもしくは小さくなつたことを
検出すれば事象が終了したことを判定できる。
Further, the event end signal is generated from the event end signal sent from the event occurrence time measuring device (22), but can be generated from the measured value. The measured value is cleared to 0 when the event ends. Therefore, the end of the event can be determined by detecting that the measured value is equal to or smaller than a certain value other than 0.

指定された事象の生起時間の分布について、メモリの
アドレス信号をmビツト、減数値をj、シフト値kとし
た値、生起時間分布の測定範囲はjサイクルから2kサイ
クル刻みで2k+m+j−1サイクルまでになる。計数値が
メモリアドレスの上限をこえると、アドレス上限判定用
比較器により、アドレス上限オーバ検出信号が送出され
る。またボローが発生しメモリアドレスの下限を下回る
と、アドレス下限オーバー検出信号が送出される。これ
らにより、計測もれ(時間分布を測定できない事象があ
つたこと)を検出する。
With respect to the distribution of the occurrence time of the specified event, the memory address signal is m bits, the decrement value is j, the shift value is k, and the measurement range of the occurrence time distribution is 2 k + m at intervals of j cycles to 2 k cycles. + J-1 cycles. When the counted value exceeds the upper limit of the memory address, the address upper limit judging comparator sends an address upper limit over detection signal. When a borrow occurs and falls below the lower limit of the memory address, an address lower limit over detection signal is transmitted. With these, the measurement leakage (the event that the time distribution cannot be measured) is detected.

〔本発明の第2の実施例〕 次に第9〜10図を用いて本発明の第2の実施例を説明
する。本実施例は第1の実施例と加算指令生成装置(40
0)の構成が異なる。そこで、事象生起時間計測値(2
2)と、計測値編集装置(23)内部のアドレス生成装置
(300)と、事象生起時間分布記憶装置(24)の構成に
関する説明は省略する。本実施例では、計測途中の計測
値についても、計測値に対応するアドレスに生起回数を
記録する点が第1の実施例と異なる。
[Second Embodiment of the Present Invention] Next, a second embodiment of the present invention will be described with reference to FIGS. This embodiment is different from the first embodiment in that an addition command generation device (40
0) is different. Therefore, the event occurrence time measurement value (2
2), the description of the configuration of the address generation device (300) inside the measurement value editing device (23), and the configuration of the event occurrence time distribution storage device (24) will be omitted. This embodiment is different from the first embodiment in that the number of occurrences is also recorded at an address corresponding to the measured value during the measurement.

第9図はアドレス生成装置(300)と加算指令生成装
置(400)の構成例を示す。同図において、≠は2つの
入力が等しくなかつたときに論理的に1の値を出力し、
等しいときは論理的に0の値を出力する。ラツチ(41
0)は事象生起信号の入力タイミングを合わせるために
用いられる。アンドゲート(411)は、事象が生起中で
あり、かつアドレス生成装置(300)の出力するアドレ
スが切り替わるときに加算指令を生成する。アドレス切
り替えの判定は、アドレス生成装置(300)の内部アド
レスと事象生起時間分布記憶装置(24)に送出されるア
ドレスとを比較し、等しくないときにアドレスが切り替
わつたと判定する。事象生起信号が入力されているの
は、事象が終了して計測値がクリアされたことによりア
ドレスが切り替わる場合を抑止するためである。またア
ンドゲート(411)にはボロー信号が入力されている
が、この信号は減算器(301)の出力が負でないときの
み加算指令を生成するよう作用する。ラツチ(412)は
アドレスとの出力タイミングを合わせるために用いられ
る。アンドゲート(413)はアドレスが事象生起時間分
布記憶装置(24)内の記憶領域の上限を越えていないと
きのみ、加算指令を生成するよう作用する。アンドゲー
ト(414)は減算器(301)においてボローが生じていた
ために、計測できなかつた事象があることを検出し、ア
ドレス下限オーバ検出信号をHM制御装置(21)に送出す
る。
FIG. 9 shows a configuration example of the address generation device (300) and the addition command generation device (400). In the figure, ≠ logically outputs a value of 1 when two inputs are equal and
If they are equal, a logical value of 0 is output. Ratsch (41
0) is used to match the input timing of the event occurrence signal. The AND gate (411) generates an addition command when an event is occurring and the address output from the address generation device (300) is switched. The address switching is determined by comparing the internal address of the address generation device (300) with the address sent to the event occurrence time distribution storage device (24), and determining that the address has been switched when they are not equal. The reason why the event occurrence signal is input is to suppress the case where the address is switched due to the end of the event and the clearing of the measured value. A borrow signal is input to the AND gate (411). This signal acts to generate an addition command only when the output of the subtractor (301) is not negative. The latch (412) is used to match the output timing with the address. The AND gate (413) operates to generate an addition command only when the address does not exceed the upper limit of the storage area in the event occurrence time distribution storage device (24). The AND gate (414) detects that there is an event that cannot be measured because a borrow has occurred in the subtractor (301), and sends an address lower limit over detection signal to the HM controller (21).

以上説明した回路構成のもとで、本発明に従うハード
ウエアモニタの動作を第10図に示すタイムチヤートを用
いて説明する。先の説明と同様に、生起時間計測装置
(200)の出力値たる計測値の初期値は0、事象生起時
間分布記憶装置(24)内のデータは初期値として全て0
が格納されているとする。また減数値指定信号の値は
0、シフト値指定信号の値も0とする。
The operation of the hardware monitor according to the present invention based on the circuit configuration described above will be described with reference to the time chart shown in FIG. As in the above description, the initial value of the measured value as the output value of the occurrence time measuring device (200) is 0, and the data in the event occurrence time distribution storage device (24) are all 0 as the initial value.
Is stored. The value of the decrement value designation signal is 0, and the value of the shift value designation signal is also 0.

まず1回目の事象が始まると、生起時間計測装置(20
0)は事象の生起している時間の計測を始める。事象生
起信号が論理的に1であり、またアドレスが0から1、
1から2と変化するために、DATA(1)とDATA(2)に
格納された値が順に1ずつ加算される。事象が終了する
と事象終了信号により計測値はクリアされ、次の計測に
そなえ初期化される。同時に計測値が2から0に変化し
たことが検出されるが、事象生起信号が論理的に0であ
るために加算指令は抑止される。以上の動作は生起時間
が1サイクル以上であつた事象が1回、2サイクル以上
であつた事象が1回あつた事を記録することに対応す
る。次に3サイクル幅の2回目の事象が生起するとDATA
(1)とDATA(2)とDATA(3)に格納された値が順に
1ずつ加算され、1サイクル幅の3回目の事象が生起す
るとDATA(1)に格納された値が1加算される。
First, when the first event starts, the occurrence time measurement device (20
0) starts measuring the time when the event occurs. The event occurrence signal is logically 1 and the address is from 0 to 1,
In order to change from 1 to 2, the values stored in DATA (1) and DATA (2) are sequentially added by one. When the event ends, the measured value is cleared by the event end signal, and is initialized for the next measurement. At the same time, it is detected that the measured value has changed from 2 to 0, but the addition command is suppressed because the event occurrence signal is logically 0. The above operation corresponds to recording that an event having an occurrence time of one cycle or more is recorded once and an event having an occurrence time of two cycles or more is recorded once. Next, when the second event of 3 cycle width occurs, DATA
The values stored in (1), DATA (2), and DATA (3) are sequentially added by one, and when the third event of one cycle width occurs, the value stored in DATA (1) is incremented by one. .

最終的にDATA(1)に3、DATA(2)に2、DATA
(3)に1が格納されている。DATA(i)には計測する
事象が少なくともiサイクル以上生起していた回数が計
数されることから、iサイクル生起していた事象の度数
はDATA(i)とDATA(i+1)の差で与えられる。つま
り生起時間が1サイクルであつた事象が1回(=DATA
(1)−DATA(2)=3−2)、同様に、生起時間が2
サイクルであつた事象が1回、生起時間が3サイクルで
あつた事象が1回であつたことが、事象生起時間分布記
憶装置(24)に記録されている。
Finally, 3 for DATA (1), 2 for DATA (2), DATA
1 is stored in (3). Since the number of times that the event to be measured has occurred at least i cycles or more is counted in DATA (i), the frequency of the event having occurred i cycles is given by the difference between DATA (i) and DATA (i + 1). . In other words, an event whose occurrence time is one cycle occurs once (= DATA
(1) -DATA (2) = 3-2) Similarly, the occurrence time is 2
It is recorded in the event occurrence time distribution storage device (24) that the event having a cycle is once and the event having an occurrence time of three cycles is once.

本例においては、事象の生起回数はDATA(1)に格納
された値に相当する。第1の実施例においては、事象の
生起回数はDATA(1)〜DATA(2m−1)の総和で与えら
れるため、メモリから2m回読み出さなくてはならなかつ
た。ところが本例においては、DATA(1)に格納された
値を読み出すだけでよい。さらにDATA(i)とDATA(i
+j)が等しい場合、生起時間がiサイクル〜(i+j
−1)サイクルであつた事象は無いことに意味する。こ
れを利用して無駄なメモリ読み出しを無くすことができ
る。
In this example, the number of occurrences of the event corresponds to the value stored in DATA (1). In the first embodiment, since the number of occurrences of an event is given by the sum of DATA (1) to DATA (2 m -1), it must be read from the memory 2 m times. However, in this example, it is only necessary to read the value stored in DATA (1). Furthermore, DATA (i) and DATA (i
+ J) are equal, the occurrence time is i cycle to (i + j)
-1) It means that there is no event in the cycle. By utilizing this, unnecessary memory reading can be eliminated.

また本例では、アドレス上限オーバ検出フラグを無視
することができる。これはDATA(2m−1)には生起時間
が2m−1サイクル以上であつた事象の度数が計数される
ためである。
In this example, the address upper limit over detection flag can be ignored. This is because the frequency of an event whose occurrence time is equal to or longer than 2 m -1 cycles is counted in DATA (2 m -1).

以上、減数値指定信号の値が0、シフト値指定信号の
値も0の場合について測定範囲を説明した。これを一般
化すると次のようになる。本例においては、メモリのア
ドレス信号をmビツト、減数値をj、シフト値kとした
時、生起時間分布の測定範囲はjサイクルから2k×(2m
−1)+j−1サイクルまで2kサイクル刻みで分類で
き、2k×(2m−1)+jサイクル以上生起した事象の回
数が測定できる。
In the above, the measurement range has been described in the case where the value of the decrement value designation signal is 0 and the value of the shift value designation signal is also 0. This can be generalized as follows. In this example, when the memory address signal is m bits, the decrement value is j, and the shift value is k, the measurement range of the occurrence time distribution is 2 k × (2 m
-1) Classification can be performed at intervals of 2 k cycles up to + j-1 cycles, and the number of events occurring 2 k × (2 m -1) + j cycles or more can be measured.

〔本発明の第3の実施例〕 さらに第11図を用いて本発明の第3の実施例を説明す
る。本実施例では、第1の実施例に基づくHMと従来の記
録方式のHMとを測定モードを切り替えて実現する例を説
明する。本実施例は第1の実施例と事象発生時間分布記
憶装置(24)の構成が一部異なる。そこでその他の構成
に関する説明は省略する。
Third Embodiment of the Present Invention A third embodiment of the present invention will be described with reference to FIG. In this embodiment, an example will be described in which the HM based on the first embodiment and the HM of the conventional recording method are realized by switching the measurement mode. This embodiment is partially different from the first embodiment in the configuration of the event occurrence time distribution storage device (24). Therefore, description of the other components is omitted.

第11図に示すように本実施例では、HM制御装置(21)
から送られる測定モード信号により、事象生起時間分布
記憶装置(24)のメモリのアドレス入力と、データ入力
が切り替わる。測定モード信号が0の場合、本発明に従
うHMの構成になる。また測定モード信号が1の場合、従
来の記録方式のHMとして動作が可能となる。以下では測
定モード信号が1の場合の動作を説明する。
As shown in FIG. 11, in the present embodiment, the HM control device (21)
The input of the address of the memory of the event occurrence time distribution storage device (24) and the input of the data are switched by the measurement mode signal transmitted from. When the measurement mode signal is 0, the configuration of the HM according to the present invention is obtained. When the measurement mode signal is 1, it is possible to operate as the HM of the conventional recording method. The operation when the measurement mode signal is 1 will be described below.

本実施例において、HM制御装置(21)から送られる変
換方式指令信号は、計測値をそのままアドレスとし、ま
た事象終了信号をもつて加算指令とすることを指定す
る。第1の実施例でいえば、減数値指定信号の値を0、
シフト値指定信号の値を0と指定する。また事象生起時
間分布記憶装置(24)内のカウンタの初期値は0である
とする。
In the present embodiment, the conversion method command signal sent from the HM control device (21) specifies that the measured value is used as an address as it is, and that an event end signal is used as an addition command. In the first embodiment, the value of the decrement value designation signal is 0,
The value of the shift value designation signal is designated as 0. It is also assumed that the initial value of the counter in the event occurrence time distribution storage device (24) is 0.

カウンタの構成は、第4図の生起時間計測装置(20
0)と同様に構成すればよい。すなわち、事象生起信号
入力を加算指令入力に、また計測値出力をカウンタの出
力とすればよい。時間計測値クリア信号はHM制御装置
(21)から送られるカウンタ初期化指令を入力する。
The configuration of the counter is shown in FIG.
The configuration may be the same as in (0). That is, the event occurrence signal input may be used as the addition command input, and the measured value output may be used as the output of the counter. As the time measurement value clear signal, a counter initialization command sent from the HM control device (21) is input.

事象が生起すると生起時間の計測がされ、事象の終了
により、加算指令と生起時間の計測値が事象生起時間分
布記憶装置(24)に送られる。すると、計測値がDATA
(0)に格納され、カウンタの値が1増分され1にな
る。次の事象が生起すると、計測値がDATA(1)に格納
され、カウンタの値がさらに1増分される。このよう
に、事象が生起する度に順次生起時間が格納されてゆ
く。
When the event occurs, the occurrence time is measured, and when the event ends, the addition command and the measured value of the occurrence time are sent to the event occurrence time distribution storage device (24). Then, the measured value is DATA
It is stored in (0), and the value of the counter is incremented by one and becomes one. When the next event occurs, the measured value is stored in DATA (1), and the value of the counter is further incremented by one. In this way, the occurrence time is stored sequentially each time an event occurs.

計測終了後、計測値編集装置(3)がHM制御装置(2
1)に事象生起時間分布記憶装置(24)内のメモリに格
納された値の読みだし指令を送る。HM制御装置(21)が
応答して、メモリに格納された値を読み出しHM制御装置
(21)に返すことにより、計測値編集装置(3)は計測
値を目的に応じて編集することができる。このように測
定モード信号が1の場合、記録方式のHMとして動作でき
る。
After the measurement is completed, the measurement value editing device (3)
To 1), a command to read a value stored in the memory of the event occurrence time distribution storage device (24) is sent. By reading the value stored in the memory and returning it to the HM control device (21) in response to the HM control device (21), the measurement value editing device (3) can edit the measurement value according to the purpose. . Thus, when the measurement mode signal is 1, it can operate as the HM of the recording method.

以上、2つのセレクタと1個のカウンタのみで、第1
の実施例に基づくHMと従来の記録方式のHMとを測定モー
ドを切り替えて実現できる。これにより、事象の生起時
間を生起順に把握することができる。
As described above, only the two selectors and one counter make up the first
The HM based on the embodiment and the HM of the conventional recording method can be realized by switching the measurement mode. Thereby, the occurrence times of the events can be grasped in the order of occurrence.

本実施例は事象の生起時間を順次記録する場合を説明
したが、生起時間とともに生起事象に付随する情報を合
わせて記録してもよい。
In this embodiment, the case where the occurrence times of events are sequentially recorded has been described. However, information accompanying the occurrence events may be recorded together with the occurrence times.

〔発明の効果〕〔The invention's effect〕

本発明では、計測値が時間別に分類されて記録される
ため、高速かつ多量に生起する事象を計測する場合に、
計測値の記録媒体の物量を従来より減らすことができ
る。また従来必要であつた計測終了後の分類作業が不要
になる。
In the present invention, since the measured values are classified and recorded by time, when measuring events that occur quickly and in large quantities,
The physical quantity of the recording medium of the measured value can be reduced as compared with the related art. In addition, the classification work after the end of measurement, which is conventionally required, becomes unnecessary.

計測途中の値も用いて記録してゆく方式においては、
ある2つのアドレスで指定された場所にそれぞれ格納さ
れたデータが等しい場合に、その間の場所に格納された
データの読み出しをなくすことができる。また、事象の
総生起回数は、生起時間が1の時に対応するアドレスの
データであるため、読み出しを1度で済ますことができ
る。
In the method of recording using values during measurement,
When the data stored in the locations specified by two certain addresses are equal, it is possible to eliminate the reading of the data stored in the location between them. In addition, since the total number of occurrences of the event is the data of the address corresponding to the occurrence time of 1, the reading can be performed only once.

2つのセレクタと1つのカウンタを追加することによ
り、従来のハードウエアモニタの機能を、少ない物量で
実現できる。
By adding two selectors and one counter, the function of the conventional hardware monitor can be realized with a small quantity.

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

第1図は本発明に従うハードウエアモニタの構成を示す
ブロツク図、第2図は従来のハードウエアモニタで生起
時間分布を計測する際の構成を示すブロツク図、第3図
は計測する事象の生起時間分布を計測する際の計測値の
格納方法を示す図、第4図,第5図,第6図,第9図は
本発明に従うハードウエアモニタを構成する各部の詳細
を示す図、第7図,第8図,第10図は本発明に従うハー
ドウエアモニタの動作を示すタイミングチヤート、第11
図は本発明に従うハードウエアモニタで従来のハードウ
エアモニタの機能を実現する際の構成を示すブロツク図
である。
FIG. 1 is a block diagram showing a configuration of a hardware monitor according to the present invention, FIG. 2 is a block diagram showing a configuration when the occurrence time distribution is measured by a conventional hardware monitor, and FIG. 3 is an occurrence of an event to be measured. FIG. 4, FIG. 5, FIG. 6, FIG. 9, and FIG. 9 show a method of storing measured values when measuring a time distribution, and FIG. 8, 8 and 10 are timing charts showing the operation of the hardware monitor according to the present invention.
FIG. 1 is a block diagram showing a configuration when a function of a conventional hardware monitor is realized by a hardware monitor according to the present invention.

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】プロセッサ内部で指定された事象が発生す
る毎にその持続時間を計測する装置と、前記事象の持続
時間と所定の持続時間とを比較し、所定の条件を満たす
かを判定する装置と、所定の条件を満たした回数を保持
するメモリと、所定の条件を満たした場合に前記メモリ
に保持された回数を増大する手段とを持つことを特徴と
するハードウェアモニタ。
An apparatus for measuring the duration of a specified event in a processor and comparing the duration of the event with a predetermined duration to determine whether a predetermined condition is satisfied. A hardware monitor, comprising: a memory for storing the number of times a predetermined condition is satisfied; and means for increasing the number of times held in the memory when a predetermined condition is satisfied.
【請求項2】前記メモリは複数の記憶エリアで構成さ
れ、該記憶エリアにはそれぞれ異なる所定の持続時間が
割り当てられ、前記判定装置は、前記事象の持続時間と
個々の記憶エリアに割り当てられた持続時間とをそれぞ
れ比較して判定し、所定の条件を満たした場合に、前記
増大手段は対応する記憶エリアに保持された回数を増大
することを特徴とする請求項1に記載のハードウェアモ
ニタ。
2. The memory comprises a plurality of storage areas, wherein the storage areas are assigned different predetermined durations, and the determining device is assigned the duration of the event and the individual storage areas. 2. The hardware according to claim 1, wherein the increasing unit increases the number of times stored in the corresponding storage area when a predetermined condition is satisfied. monitor.
【請求項3】前記判定装置は、前記事象の持続時間が所
定の時間と同一であった場合に、条件を満たしたと判定
することを特徴とする請求項1または請求項2に記載の
ハードウェアモニタ。
3. The hardware according to claim 1, wherein the determination device determines that the condition is satisfied when the duration of the event is equal to a predetermined time. Wear monitor.
【請求項4】前記判定装置は、前記事象の持続時間が所
定の時間以上であった場合に、条件を満たしたと判定す
ることを特徴とする請求項1または請求項2に記載のハ
ードウェアモニタ。
4. The hardware according to claim 1, wherein the determination device determines that the condition is satisfied when the duration of the event is equal to or longer than a predetermined time. monitor.
【請求項5】前記所定の持続時間は範囲で指定され、前
記判定装置は、前記事象の持続時間が所定の持続時間の
範囲に含まれる場合に、条件を満たしたと判定すること
を特徴とする請求項1または請求項2に記載のハードウ
ェアモニタ。
5. The method according to claim 1, wherein the predetermined duration is specified by a range, and the determination device determines that the condition is satisfied when the duration of the event is included in the range of the predetermined duration. The hardware monitor according to claim 1 or 2, wherein
【請求項6】前記メモリが下記の2つの測定モード (1)プロセッサ内部で指定された事象が発生する毎
に、該事象の持続時間に応じて定まる記憶エリアに格納
された値を増分する生起時間分布測定モード (2)プロセッサ内部で指定された事象が発生する毎に
カウンタを増分し、該カウンタで指定された記憶エリア
に、該事象の持続時間を記憶する生起時間履歴測定モー
ド を切り替えて使用できることを特徴とする請求項2乃至
請求項5のいずれか1つに記載のハードウェアモニタ。
6. The memory has the following two measurement modes: (1) Every time a specified event occurs in the processor, an increment of a value stored in a storage area determined according to a duration of the event occurs. Time distribution measurement mode (2) Every time an event specified in the processor occurs, the counter is incremented, and the occurrence time history measurement mode for storing the duration of the event in the storage area specified by the counter is switched. The hardware monitor according to claim 2, wherein the hardware monitor can be used.
JP1180317A 1989-07-14 1989-07-14 Hardware monitor Expired - Fee Related JP2834194B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1180317A JP2834194B2 (en) 1989-07-14 1989-07-14 Hardware monitor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1180317A JP2834194B2 (en) 1989-07-14 1989-07-14 Hardware monitor

Publications (2)

Publication Number Publication Date
JPH0346040A JPH0346040A (en) 1991-02-27
JP2834194B2 true JP2834194B2 (en) 1998-12-09

Family

ID=16081099

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1180317A Expired - Fee Related JP2834194B2 (en) 1989-07-14 1989-07-14 Hardware monitor

Country Status (1)

Country Link
JP (1) JP2834194B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4504737B2 (en) * 2004-05-26 2010-07-14 ルネサスエレクトロニクス株式会社 Performance monitor circuit
US8495652B2 (en) 2008-02-22 2013-07-23 Nec Corporation IT system behavior measurement and analysis system and method thereof
EP2364866B1 (en) 2008-12-01 2013-08-28 Toyota Jidosha Kabushiki Kaisha Electromagnetic suspension system
JP5310819B2 (en) 2010-11-29 2013-10-09 株式会社デンソー Microcomputer

Also Published As

Publication number Publication date
JPH0346040A (en) 1991-02-27

Similar Documents

Publication Publication Date Title
US5608866A (en) System for measuring and analyzing operation of information processor
EP0067324B1 (en) Software correlating hardware monitor system
US4367525A (en) CPU Channel monitoring system
US6360337B1 (en) System and method to perform histogrammic counting for performance evaluation
US4821178A (en) Internal performance monitoring by event sampling
US6539500B1 (en) System and method for tracing
US4845615A (en) Software performance analyzer
US5727167A (en) Thresholding support in performance monitoring
JP3357621B2 (en) Method and apparatus for analyzing memory usage
US5675729A (en) Method and apparatus for performing on-chip measurement on a component
KR100969497B1 (en) Performance monitor and method therefor
EP0465765A2 (en) Instruction sampling instrumentation
US6741096B2 (en) Structure and methods for measurement of arbitration performance
JPH11327951A (en) Method and device for monitoring performance of program
US7076767B1 (en) Method for controlling and collecting information in a data processing system
KR20180105169A (en) Measurement of wait time for address conversion
US8185772B2 (en) Determining execution times of commands
US7225110B2 (en) Extending width of performance monitor counters
JP2834194B2 (en) Hardware monitor
US8521475B2 (en) Detecting and recording performance events in a data processing system
JPH06100986B2 (en) Storage device management apparatus and method
KR20040043119A (en) Method and apparatus for gathering queue performance data
JP2002288005A (en) Trace data extracting method for debug and performance analysis
WO2002077810A1 (en) An integrated circuit
JP2000010816A (en) Tracing device for debugging

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081002

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees