JPH04147350A - Microprogram step appearance frequency counting method - Google Patents
Microprogram step appearance frequency counting methodInfo
- Publication number
- JPH04147350A JPH04147350A JP2271858A JP27185890A JPH04147350A JP H04147350 A JPH04147350 A JP H04147350A JP 2271858 A JP2271858 A JP 2271858A JP 27185890 A JP27185890 A JP 27185890A JP H04147350 A JPH04147350 A JP H04147350A
- Authority
- JP
- Japan
- Prior art keywords
- address
- comparison
- microprogram
- register
- coincidence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 7
- 238000001514 detection method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はマイクロプロクラムステップ出現回数計数方式
に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for counting the number of occurrences of microprogram steps.
従来、マイクロプログラムステップの出現回数は、計数
するマイクロプログラムステップの前後に計数用のマイ
クロプログラム・ルーチンを追加して計数している。Conventionally, the number of appearances of a microprogram step is counted by adding a counting microprogram routine before and after the microprogram step to be counted.
上述した従来のマイクロプロクラムステップ出現回数計
数方式ては、マイクロプロクラノ\中の計数を行うステ
ップことに計数用のマイクロプログラム・ルーチンの追
加が必要であるため、制御記憶容量の増加および計数を
行うステップを経過するパスの性能低下を招くので、任
意にマイクロプログラムステップの出現回数を計数する
ことが困難であるという欠点がある。In the conventional microprogram step appearance counting method described above, it is necessary to add a microprogram routine for counting to the counting step in the microprogram, so it is necessary to increase the control memory capacity and perform counting. This method has a drawback in that it is difficult to arbitrarily count the number of times a microprogram step appears, since this will result in a decrease in the performance of the path passing through the steps.
本発明のマイクロプログラムステップ出現回数計数方式
は、マイクロプロクラムの実行アドレスと比較すべき比
較アドレスか設定されている比較アドレスレジスタと、
前記実行アドレスと前記比較アドレスとを比較し、一致
したときに比較一致信号を出力する比較一致検出部と、
前記実行アドレスと前記比較アドレスの比較一致回数を
保持する比較一致回数レジスタと、前記比較一致信号を
受けて前記比較一致回数レジスタを更新する一致回数更
新部とを有することを特徴とする。The microprogram step appearance count method of the present invention compares the execution address and the comparison address with a comparison address register in which a comparison address to be compared with the execution address of the microprogram is set, and when they match, the comparison is performed. a comparison match detection unit that outputs a match signal; a comparison match count register that holds the number of comparison matches between the execution address and the comparison address; and a match count update unit that updates the comparison match count register in response to the comparison match signal. It is characterized by having the following.
次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明のマイクロプログラムステップ出現回数
計数方式の一実施例を示すブロック図であり、制御記憶
装置に記憶されたマイクロプログラムを構成する命令語
を順次取り出して実行する情報処理装置の一部分である
。FIG. 1 is a block diagram showing an embodiment of the microprogram step appearance counting method of the present invention, which is a part of an information processing device that sequentially retrieves and executes instruction words constituting a microprogram stored in a control storage device. It is.
第1図において、比較アドレスレジスタ1は実行アドレ
ス信号10と比較すべき比較アドレスを保持している。In FIG. 1, a comparison address register 1 holds a comparison address to be compared with an execution address signal 10.
また、比較一致検出部はマイクロプログラムの実行アド
レス信号]0と比較アドレレジスタ1の保持内容とを比
較し、一致したときに比較一致信号11を出力する。以
上の動作はマイクロプログラムの1命令実行毎に繰り返
し行なわれる。Further, the comparison match detection section compares the execution address signal [0] of the microprogram with the content held in the comparison address register 1, and outputs a comparison match signal 11 when they match. The above operations are repeated every time one instruction of the microprogram is executed.
一方、比較一致回数レジスタ3は初期値として0が設定
されており、比較一致信号11を受ける毎に、一致回数
更新部4で1を加算して更新することにより、比較一致
信号11が出力された一致回数を計数している。On the other hand, the comparison match count register 3 is set to 0 as an initial value, and each time the comparison match signal 11 is received, the match count update section 4 adds 1 to update the match count, thereby outputting the comparison match signal 11. The number of matches is counted.
次に本実施例の動作を説明する。Next, the operation of this embodiment will be explained.
出現回数を計数したいマイクロプロセッサプログラムの
アドレスを比較アドレスレジスタ1に設定しておき計数
の対象とするプログラムを実行する。マイクロプログラ
ムの命令語が順次取り出される毎にその実行アドレス信
号10と比較アドレスレジスタ1に保持された比較アド
レスとが比較一致検出部2で比較され、一致する毎に比
較−致信号11により比較一致回数レジスタ3の内容は
一致回数更新部により1つつ加算される。そして計数の
対象とするプログラムの実行が終了した時には計数した
いマイクロプログラムステップの出現回数か比較一致レ
ジスタ3に保持されている。The address of the microprocessor program whose number of appearances is to be counted is set in the comparison address register 1, and the program to be counted is executed. Every time the instruction words of the microprogram are taken out sequentially, the execution address signal 10 and the comparison address held in the comparison address register 1 are compared in the comparison match detection section 2, and each time there is a match, a comparison match signal 11 is used to indicate a comparison match. The contents of the number of times register 3 are incremented by one by the matching number updating section. When the execution of the program to be counted is completed, the number of occurrences of the microprogram step to be counted is held in the comparison match register 3.
以上説明したように、本発明はマイクロプログラムを変
更することなく計数することができることから、任意の
マイクロプログラムステップの出現回数を計数すること
が容易であり、またマイクロプログラム中の複数のパス
の通過頻度を測定する手段として極めて有効であるとい
う効果を有している。As explained above, since the present invention can be counted without changing the microprogram, it is easy to count the number of occurrences of an arbitrary microprogram step, and the number of occurrences of an arbitrary microprogram step can be easily counted. It has the effect of being extremely effective as a means of measuring frequency.
第1図は本発明の一実施例を示すブロック図である。
1・・・比較アドレスレジスタ、2・・・比較一致検出
部、3・・・比較一致回数レジスタ、4・・・一致回数
更新部、10・・・実行アドレス信号、11・・・比較
一致信号。FIG. 1 is a block diagram showing one embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... Comparison address register, 2... Comparison match detection unit, 3... Comparison match count register, 4... Match count update unit, 10... Execution address signal, 11... Comparison match signal .
Claims (1)
ドレスが設定されている比較アドレスレジスタと、 前記実行アドレスと前記比較アドレスとを比較し、一致
したときに比較一致信号を出力する比較一致検出部と、 前記実行アドレスと前記比較アドレスの比較一致回数を
保持する比較一致回数レジスタと、前記比較一致信号を
受けて前記比較一致回数レジスタを更新する一致回数更
新部とを有することを特徴とするマイクロプログラムス
テップ出現回数計数方式。[Claims] A comparison address register in which a comparison address to be compared with an execution address of a microprogram is set, and a comparison that compares the execution address and the comparison address and outputs a comparison match signal when they match. A match detecting unit, a comparison match count register that holds a comparison match count between the execution address and the comparison address, and a match count update unit that updates the comparison match count register in response to the comparison match signal. A method for counting the number of microprogram step appearances.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2271858A JPH04147350A (en) | 1990-10-09 | 1990-10-09 | Microprogram step appearance frequency counting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2271858A JPH04147350A (en) | 1990-10-09 | 1990-10-09 | Microprogram step appearance frequency counting method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04147350A true JPH04147350A (en) | 1992-05-20 |
Family
ID=17505870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2271858A Pending JPH04147350A (en) | 1990-10-09 | 1990-10-09 | Microprogram step appearance frequency counting method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04147350A (en) |
-
1990
- 1990-10-09 JP JP2271858A patent/JPH04147350A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS59146345A (en) | Control flow parallel computer system | |
JPH04147350A (en) | Microprogram step appearance frequency counting method | |
JPS6242301B2 (en) | ||
JPS62156738A (en) | Program controller | |
JP3068317B2 (en) | Microcomputer | |
JPS599936B2 (en) | data monitoring device | |
JPH0716189Y2 (en) | Break circuit | |
JPH01229340A (en) | System for detecting execution address | |
JPH01133150A (en) | Hardware test system | |
JPH05333956A (en) | Timer circuit | |
JPH0264828A (en) | Address trace circuit | |
JPH02284238A (en) | Program debugging device | |
JPS62180436A (en) | Memory device for history information | |
JPH0540654A (en) | Optional instruction tracing system | |
JPS61255422A (en) | Timer controlling circuit | |
JPS61110255A (en) | Program calculator | |
JPH03282625A (en) | Data processor | |
JPH028942A (en) | Method for measuring frequency of occurrence of instruction | |
JPS6238748B2 (en) | ||
JPH02244235A (en) | Tracer device | |
JPH0580691B2 (en) | ||
JPH0358244A (en) | Information processor | |
JPH04363723A (en) | Arithmetic processing unit | |
JPS58195961A (en) | Microprogram controlling system | |
JPH04225432A (en) | Interruption processing time control system for one-chip microcomputer |