JPS63196954A - Information processor - Google Patents

Information processor

Info

Publication number
JPS63196954A
JPS63196954A JP62029215A JP2921587A JPS63196954A JP S63196954 A JPS63196954 A JP S63196954A JP 62029215 A JP62029215 A JP 62029215A JP 2921587 A JP2921587 A JP 2921587A JP S63196954 A JPS63196954 A JP S63196954A
Authority
JP
Japan
Prior art keywords
instruction
register
address
execution
executed
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
JP62029215A
Other languages
Japanese (ja)
Inventor
Kiyoshi Senba
仙波 清
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
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP62029215A priority Critical patent/JPS63196954A/en
Publication of JPS63196954A publication Critical patent/JPS63196954A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To measure without an error the number of times of execution of a part (instruction code, etc.) of an instruction word by providing an inserting instruction register, an address subordinate register, an insertion timing control circuit, an instruction buffer and an executing instruction register, etc. CONSTITUTION:An instruction code, etc., for reading out the contents of an operand address, adding '1' and storing them in the same operand address are set to an inserting instruction register 1. Also, a part (an instruction code and an addressing mode part) of an executed instruction word on a program is set to an address subordinate register 4. Moreover, an insertion timing control circuit 5 executes a timing control so as to set alternately an instruction word from an instruction buffer 10 and instruction words from the register 1 and the register 4, to an executing instruction register 20. Accordingly, when a selecting and designating register 2 designates an instruction code, and sets a start address of an area for counting the number of times of execution of each separate instruction with respect to an address upper digit of the inside of the register 1, the number of times of execution is counted on a memory, and the number of times of execution can be measured without an error through the memory.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は情報処理袋WtK関し、4?に実行される命令
語の種類別の実行回数の計測【関する。
[Detailed Description of the Invention] (Industrial Application Field) The present invention relates to an information processing bag WtK. Measurement of the number of executions of each type of instruction word that is executed [Related].

(従来の技術) 各種プログラムで実行される命令に関して、命令コード
別の実行回数やアドレス修飾タイプ別の実行回数は、計
算機の性能評価に重要なデータであるので、従来、この
種の実行回数はハードウェアモニタによって計測してい
る。ノ1−ドウエアモニタによる上記実行回数の計測は
、実行命令語を表わす信号をノ1−ドウエアモニタに入
力し、命令語の種類別に実行回数を計数することによっ
て行っている。
(Prior art) Regarding instructions executed in various programs, the number of executions for each instruction code and the number of executions for each address modification type are important data for evaluating computer performance. Measured using a hardware monitor. The number of executions is measured by the hardware monitor by inputting a signal representing an executed command to the hardware monitor and counting the number of executions for each type of command.

(発明が解決しようとする間@a) 上述した従来技術においてノ・−ドウエアモニタによる
計測は、命令語を表わす信号を計算機の外部に引出し、
ハードウェアモニタに接続して行う必要がある。しかし
、最近の半導体素子の高集積化や高速化により、計算機
の内部信号を装置の外部へ引出すことは困雅である。
(While the invention is trying to solve the problem @a) In the above-mentioned prior art, measurement using a computer hardware monitor involves drawing out a signal representing a command word to the outside of the computer,
It is necessary to connect to a hardware monitor. However, with the recent increase in the degree of integration and speed of semiconductor devices, it is difficult to extract the internal signals of a computer to the outside of the device.

また、ハードウェアモニタで命令コード別の実行回数を
計数する際には、被測定計算機とノ・−ドラエアモニタ
の処理速度とによって実行回数?求めることができる。
Also, when counting the number of executions for each instruction code using the hardware monitor, the number of executions depends on the processing speed of the computer under test and the controller air monitor. You can ask for it.

しかし、この場合には、通常、数百命令に1@のサンプ
リングによる計数しか得られないという欠点がある。さ
らに、サンプリングによる計測では、実行回数の少ない
命令の実行回数の頻度は、誤差が大きくなるという欠点
がある。
However, in this case, there is a drawback that normally only a count of 1 @ sampling can be obtained for several hundred instructions. Furthermore, measurement by sampling has the disadvantage that the frequency of execution of an instruction that is executed less often has a larger error.

本発明の目的は、プログラム上の一命令を実行するごと
にメモリアドレスに1を加算する命令を挿入し、直前に
実行されたプログラム上の命令語で上記挿入された命令
のオペランドアドレスを修飾することによって上記欠点
を除去し、誤差なく実行回数を計測できるように構成し
た情報処理装置を提供することにある。
The purpose of the present invention is to insert an instruction that adds 1 to a memory address every time one instruction on a program is executed, and to decorate the operand address of the inserted instruction with the instruction word on the program that was executed immediately before. It is therefore an object of the present invention to provide an information processing apparatus configured to eliminate the above drawbacks and measure the number of executions without error.

(問題点を解決する虎めの手段) 本発明による情報処理装置は挿入命令レジスタ手段と、
アドレス修飾手段とを具備してプログラムを実行できる
ように構成したものである。
(Top Means for Solving Problems) An information processing device according to the present invention includes insertion instruction register means,
The computer is equipped with address modification means and is configured to be able to execute a program.

挿入命令レジスタ手段は、プログラム上の一命令を実行
するととeこメモリアドレスに1を加Xする挿入命令を
挿入するためのものである。
The insertion instruction register means is for inserting an insertion instruction that adds 1 to a memory address when one instruction on the program is executed.

アドレス修飾手段は、挿入命令のオペランドアドレスを
直前に実行されたプログラム上の命令語で修飾するため
のものである。
The address modification means is for modifying the operand address of the insertion instruction with an instruction word on the program executed immediately before.

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

111図は、本発明による情報処理装置の一実施例を示
すブロック図である。
FIG. 111 is a block diagram showing an embodiment of an information processing device according to the present invention.

81図において、10は命令バッファ、2Gは実行命令
レジスタ、1は挿入命令レジスタ、−2は選択指定レジ
スタ、3は選択回路、4はアドレス下位レジスタ、Sは
挿入タイミング制御回路である。
81, 10 is an instruction buffer, 2G is an execution instruction register, 1 is an insertion instruction register, -2 is a selection designation register, 3 is a selection circuit, 4 is an address lower register, and S is an insertion timing control circuit.

第1図において、プログラム上の命令のみが実行される
場合には、命令バッファ1oの命令が順次、実行命令レ
ジスタ2oにセットされて実行される。第1図において
、挿入命令レジスタ1にはAO8(Add  one 
 to  storage  )命令コート、および同
命令オペランドアドレスの上位桁がセットされる。AO
8命令は、オペランドアドレスの内容を読出し、1を加
算して同オペランドアドレスに格納する命令である。A
O8命令のオペランドアドレスの下位桁は、第1図にお
けるアドレス下位レジスタ4より供給される。
In FIG. 1, when only instructions on a program are executed, the instructions in the instruction buffer 1o are sequentially set in the execution instruction register 2o and executed. In FIG. 1, insert command register 1 contains AO8 (Add one
(to storage) instruction code and the upper digits of the instruction operand address are set. A.O.
The 8-instruction is an instruction that reads the contents of an operand address, adds 1, and stores the result at the same operand address. A
The lower digits of the operand address of the O8 instruction are supplied from address lower register 4 in FIG.

アドレス下位レジスタ4には、プログラム上の実行され
た命令語の一部(命令コードおよびアドレシングモード
部)が次のようにしてセットされる。選択指定レジスタ
2は、命令語のなかの選択すべきピットを表わしている
。選択回路3は、実行命令レジスタ20から読出され九
命令語から選択指定レジスタ2により指定されるピット
を取出し、アドレス下位レジスタ4にセットする。挿入
タイミング制御回路Sは、命令バッファ1oからの命令
語と挿入命令レジスタ1およびアドレス下位レジスタ4
からの命令語とを交互に実行命令レジスタ20にセット
するようにタイミング制御を実施する。
A part of the executed instruction word (instruction code and addressing mode part) on the program is set in the address lower register 4 as follows. Selection designation register 2 represents the pit to be selected in the instruction word. The selection circuit 3 extracts the pit designated by the selection designation register 2 from the nine command words read from the execution command register 20, and sets it in the address lower register 4. The insertion timing control circuit S receives the instruction word from the instruction buffer 1o, the insertion instruction register 1, and the address lower register 4.
Timing control is carried out so that the instruction words from and to the execution instruction register 20 are set alternately.

選択指定レジスタ2が命令コードを指定し、挿入命令レ
ジスタ1の内部のアドレス上位桁(対して命令別の実行
回数を計数するエリアの開始アドレスをセットすると、
実行中のプログラムの各命令コードの実行回数は(開始
アドレス)+(命令コード)としてメモリ上で計数され
る。プログラムの実行終了後、上記メモリtみることに
より上記プログラムで実行された命令コード別の実行回
数が得られる。
When the selection specification register 2 specifies the instruction code and the upper digit of the internal address of the insertion instruction register 1 (for which the start address of the area that counts the number of executions of each instruction is set),
The number of executions of each instruction code of the program being executed is counted on the memory as (start address)+(instruction code). After the execution of the program is completed, the number of executions of each instruction code executed in the program can be obtained by looking at the memory t.

(発明の効果) 以上説明したように本発明は、実行された命令語の一部
で修飾されたオペランドアドレスを有スるメモリアドレ
スに1を加算する命令を、プログラム上の一命令が実行
されるごとに挿入して実行することにより、命令語の一
部(命令コードなど)のコード別の実行回数を計数でき
るという効果がある。
(Effects of the Invention) As explained above, the present invention is capable of adding 1 to a memory address having an operand address modified by a part of the executed instruction word when one instruction on a program is executed. By inserting and executing each instruction word, it is possible to count the number of times a part of an instruction word (instruction code, etc.) is executed for each code.

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

第1図は、本発明による情報処理*gtの一実施例を示
すブロック図である。 1・・−挿入命令レジスタ 2・・−選択指定レジスタ 3・・・選択回路 4・・嗜アドレス下位レジスタ S・・・挿入タイミング制御回路 10・愉・命令バッファ 20・・拳実行命令レジスタ
FIG. 1 is a block diagram showing an embodiment of information processing *gt according to the present invention. 1...-Insertion instruction register 2...-Selection specification register 3...Selection circuit 4...Address lower register S...Insertion timing control circuit 10...Instruction buffer 20...Fist execution instruction register

Claims (1)

【特許請求の範囲】[Claims] プログラム上の一命令を実行するごとにメモリアドレス
に1を加算する挿入命令を挿入するための挿入命令レジ
スタ手段と、前記挿入命令のオペランドアドレスを直前
に実行されたプログラム上の命令語で修飾するためのア
ドレス修飾手段とを具備してプログラムを実行できるよ
うに構成したことを特徴とする情報処理装置。
an insertion instruction register means for inserting an insertion instruction that adds 1 to a memory address each time one instruction on the program is executed; and an operand address of the insertion instruction is modified with an instruction word on the program executed immediately before. What is claimed is: 1. An information processing device configured to include address modification means for executing a program.
JP62029215A 1987-02-10 1987-02-10 Information processor Pending JPS63196954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62029215A JPS63196954A (en) 1987-02-10 1987-02-10 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62029215A JPS63196954A (en) 1987-02-10 1987-02-10 Information processor

Publications (1)

Publication Number Publication Date
JPS63196954A true JPS63196954A (en) 1988-08-15

Family

ID=12269974

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62029215A Pending JPS63196954A (en) 1987-02-10 1987-02-10 Information processor

Country Status (1)

Country Link
JP (1) JPS63196954A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128963A (en) * 2008-11-28 2010-06-10 Toshiba Corp Information processing apparatus and fault symptom decision method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128963A (en) * 2008-11-28 2010-06-10 Toshiba Corp Information processing apparatus and fault symptom decision method
JP4496265B2 (en) * 2008-11-28 2010-07-07 株式会社東芝 Information processing apparatus and failure sign determination method

Similar Documents

Publication Publication Date Title
JPS63196954A (en) Information processor
JP2715993B2 (en) Simulation method and apparatus
JPH0330917Y2 (en)
JPH0743647B2 (en) Instruction loop catching mechanism in data processor
JPS61267858A (en) Microcomputer
JPS62279438A (en) Tracking circuit
JPS60262251A (en) Backup device for development of microprocessor
JPH0283749A (en) Internal interruption control system for microprocessor
JP3633747B2 (en) Microprocessor program debugging device
SU849218A1 (en) Device for debugging programs
JPS6042968B2 (en) information processing equipment
JP2990099B2 (en) Trace buffer control method
JPS63188230A (en) Information processor
JPS63181045A (en) Data processor
JPS6247752A (en) Counter circuit for number of instruction executions of information processor
JPH0667896A (en) Single chip microcomputer
JPS60105058A (en) Information processor
JPS62109139A (en) Method and device for analyzing working of microprocessor
JPH05342378A (en) Evaluation chip
JPH0679278B2 (en) Microcomputer development equipment
JPH0772875B2 (en) Micro program evaluation method
JPS5852760A (en) Analyzing device for program dynamic characteristics
JPS6226546A (en) Execution bus cycle tracing circuit
JPH01320547A (en) Program execution information collecting system
JPS61168055A (en) Information processor