JPH05100903A - Address tracer - Google Patents

Address tracer

Info

Publication number
JPH05100903A
JPH05100903A JP3287137A JP28713791A JPH05100903A JP H05100903 A JPH05100903 A JP H05100903A JP 3287137 A JP3287137 A JP 3287137A JP 28713791 A JP28713791 A JP 28713791A JP H05100903 A JPH05100903 A JP H05100903A
Authority
JP
Japan
Prior art keywords
address
tracer
memory
branch
instruction
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
JP3287137A
Other languages
Japanese (ja)
Inventor
Yasuhiro Yokozuka
安宏 横塚
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 Ibaraki Ltd
Original Assignee
NEC Ibaraki 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 NEC Ibaraki Ltd filed Critical NEC Ibaraki Ltd
Priority to JP3287137A priority Critical patent/JPH05100903A/en
Publication of JPH05100903A publication Critical patent/JPH05100903A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To execute storage to a tracer memory in the case branch of a program is detected and branch is executed, in the address tracer for storing an outputted address, when a processor reads out an instruction from the memory. CONSTITUTION:The address tracer is provided with a register 5 for inputting an address and holding it temporarily, when a processor 2 reads out an instruction to be executed from a memory 1, a branch detecting circuit 6 in which the processor 2 compares an address of an instruction executed in the next time and the contents of the register 3 and detects whether branch exists or not, a tracer memory 9 for storing the address held in the register 3, in the case the break detecting circuit 6 detects the branch, a counter 8 for showing the address of the tracer memory 9, and a tracer control circuit 7 for executing write control, of the tracer memory 9 and updating the counter 8.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はアドレストレーサに関
し、特にトレーサメモリの省容量化及びトレース時間の
拡大機構に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an address tracer, and more particularly to a tracer memory capacity saving and trace time extending mechanism.

【0002】[0002]

【従来の技術】従来、この種のアドレストレーサでは、
プロセッサが実行する全ての命令のアドレスを実行順に
トレーサメモリに記憶していた。
2. Description of the Related Art Conventionally, in this type of address tracer,
The addresses of all the instructions executed by the processor were stored in the tracer memory in the order of execution.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のアドレ
ストレーサでは、プロセッサが実行する全ての命令のア
ドレスを実行順にトレーサメモリに記憶していたので、
短時間でトレーサのメモリ容量が一杯になってしまい、
トレース時間が非常に短くなってしまうという欠点があ
った。
In the conventional address tracer described above, since the addresses of all the instructions executed by the processor are stored in the tracer memory in the order of execution,
In a short time, the memory capacity of the tracer becomes full,
There is a drawback that the trace time becomes very short.

【0004】本発明の目的は、トレーサメモリの省容量
化及びトレース時間の拡大化を実現したアドレストレー
サを提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an address tracer which realizes saving of tracer memory capacity and extension of trace time.

【0005】[0005]

【課題を解決するための手段】前記目的を達成するた
め、本発明に係るアドレストレーサにおいては、メモリ
と、前記メモリに記憶されたプログラムを実行するプロ
セッサとから構成される情報処理装置であって、前記プ
ロセッサが前記メモリから命令を読み出すと前記命令が
格納されていたアドレスを取り込んで一時保持するレジ
スタと、前記プロセッサが次の命令のアドレスと前記レ
ジスタの内容とを比較して、分岐の有無を検出する分岐
検出回路と、前記分岐検出回路が分岐を検出した場合に
前記レジスタに保持しているアドレスを記憶するトレー
サメモリと、前記トレーサメモリのアドレスを示すカウ
ンタと、前記分岐検出回路が分岐を検出した時に、前記
トレーサメモリの書き込み制御及び前記カウンタの更新
を行うトレーサ制御回路とを有するものである。
In order to achieve the above object, an address tracer according to the present invention is an information processing device comprising a memory and a processor for executing a program stored in the memory. The presence or absence of a branch by comparing the address of the next instruction with the register that takes in the address at which the instruction was stored and temporarily holds it when the processor reads the instruction from the memory A branch detection circuit that detects an address, a tracer memory that stores an address held in the register when the branch detection circuit detects a branch, a counter that indicates the address of the tracer memory, and a branch detection circuit that branches. Tracer control for writing the tracer memory and updating the counter when a Those having a road.

【0006】[0006]

【作用】プロセッサから出力される命令アドレスをトレ
ーサメモリが取込む際、レジスタと分岐検出回路によっ
て分岐を検出し、トレーサメモリには、分岐した時だけ
のアドレスを記憶させる。
When the instruction address output from the processor is fetched by the tracer memory, the branch is detected by the register and the branch detection circuit, and the address only when the branch is made is stored in the tracer memory.

【0007】[0007]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

【0008】図1は、本発明の一実施例を示すブロック
図である。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【0009】図において、メモリ1は、プログラムを格
納している。
In the figure, a memory 1 stores a program.

【0010】プロセッサ2は、メモリ1にアドレス線1
1で命令アドレスを送出し、データ線10でプログラム
を受けて、これを実行する。また、プロセッサ2はメモ
リの書き込み及び読み出しの制御をメモリ制御信号12
により行っている。
The processor 2 uses the address line 1 in the memory 1.
The instruction address is sent out by 1 and the program is received by the data line 10 and executed. Further, the processor 2 controls the writing and reading of the memory by the memory control signal 12
Is done by.

【0011】アドレスレジスタ3は、命令アドレスを1
バイト単位で取り込んで、次の命令アドレスが取り込ま
れるまで保持する。
The address register 3 stores the instruction address as 1
It is fetched in byte units and held until the next instruction address is fetched.

【0012】加算器4は、アドレスレジスタ3から受け
た命令アドレスを次の処理で実行されるべき命令アドレ
スを算出する。比較器5は、取り込んだ命令アドレス
と、加算器4で算出された命令アドレスとを比較し、不
一致の場合のみ通信する。ここに、加算器4及び比較器
5により分岐検出回路6が構成されている。
The adder 4 calculates the instruction address to be executed in the next process from the instruction address received from the address register 3. The comparator 5 compares the fetched instruction address with the instruction address calculated by the adder 4, and communicates only when they do not match. Here, the adder 4 and the comparator 5 constitute a branch detection circuit 6.

【0013】トレーサ制御回路7は、比較器5が通信す
るとメモリ制御信号12を受け、書き込み制御をトレー
サメモリ制御信号14で行う。
The tracer control circuit 7 receives the memory control signal 12 when the comparator 5 communicates, and controls writing by the tracer memory control signal 14.

【0014】トレーサアドレスカウンタ8は、トレーサ
のアドレスを示すカウンタを更新する。15はトレーサ
アドレス線である。
The tracer address counter 8 updates the counter indicating the address of the tracer. Reference numeral 15 is a tracer address line.

【0015】トレーサメモリ9は、トレーサメモリデー
タ線13のアドレスとトレーサメモリ制御信号14を受
けると記憶する。
The tracer memory 9 stores the address of the tracer memory data line 13 and the tracer memory control signal 14.

【0016】次に本発明の動作について説明する。プロ
セッサ2は、アドレス線11,データ線10,制御線1
2を介してメモリ1に格納されているプログラムを実行
順に随時読み出して実行している。
Next, the operation of the present invention will be described. The processor 2 has an address line 11, a data line 10, and a control line 1.
The program stored in the memory 1 is read out and executed at any time in the order of execution via 2.

【0017】プロセッサ2がメモリ1から命令を読み出
すと、アドレスレジスタ3には、読み出した命令のアド
レスが格納される。
When the processor 2 reads an instruction from the memory 1, the address of the read instruction is stored in the address register 3.

【0018】更にプロセッサ2が次の命令を読み出す
と、アドレスレジスタ3の内容も次に読み出した命令の
アドレスに更新される。
When the processor 2 further reads the next instruction, the contents of the address register 3 are also updated to the address of the next read instruction.

【0019】このようにアドレスレジスタ3には、プロ
セッサ2がメモリ1から読み出した命令が随時1バイト
単位で格納され、次の命令の読み出しまで保持される。
As described above, the instruction read from the memory 1 by the processor 2 is stored in the address register 3 in 1-byte units at any time and held until the next instruction is read.

【0020】分岐検出回路6では、常にアドレスレジス
タ3の内容からプログラムの分岐がない場合、アドレス
レジスタ3から取り込んだ1バイト長の命令アドレスを
加算器4により次に実行されるべき命令アドレスを算出
し、比較器5において命令アドレスと加算器4により算
出されたアドレスとを比較し、分岐の有無をトレーサ制
御回路7に通知している。
In the branch detection circuit 6, if there is no branch of the program from the contents of the address register 3, the 1-byte length instruction address fetched from the address register 3 is calculated by the adder 4 as the instruction address to be executed next. Then, the comparator 5 compares the instruction address with the address calculated by the adder 4, and notifies the tracer control circuit 7 of the presence / absence of a branch.

【0021】トレーサ制御回路7は、分岐検出回路6か
らの分岐の有無の通知を監視し、分岐が無い場合は、ト
レーサメモリ9への書き込みは行わない。
The tracer control circuit 7 monitors the notification of the presence or absence of a branch from the branch detection circuit 6 and, if there is no branch, does not write to the tracer memory 9.

【0022】分岐があった場合には、アドレスレジスタ
3に格納されている分岐元のアドレスをトレーサメモリ
9へ書き込み、トレーサのアドレスを示すトレーサアド
レスカウンタ8を更新させる。
When there is a branch, the address of the branch source stored in the address register 3 is written in the tracer memory 9, and the tracer address counter 8 indicating the address of the tracer is updated.

【0023】このように、分岐検出回路6により、分岐
の有無を監視し、分岐があった時だけトレーサメモリ9
に書き込む制御が行われる。
In this way, the branch detection circuit 6 monitors the presence or absence of a branch, and only when there is a branch, the tracer memory 9
Write control is performed.

【0024】[0024]

【発明の効果】以上説明したように本発明は、プロセッ
サから出力される命令アドレスをトレーサメモリが取り
込む際、レジスタと分岐検出回路によって、分岐を検出
し、トレーサメモリには、分岐した時だけのアドレスが
記憶されるので、トレーサメモリの省容量化を図ること
ができ、さらにトレース時間を拡大できるという効果を
有する。
As described above, according to the present invention, when the instruction address output from the processor is fetched by the tracer memory, the branch is detected by the register and the branch detection circuit, and the tracer memory only detects the branch. Since the address is stored, there is an effect that the capacity of the tracer memory can be saved and the trace time can be extended.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 メモリ 2 プロセッサ 3 アドレスレジスタ 4 加算器 5 比較器 6 分岐検出回路 7 トレーサ制御回路 8 トレーサアドレスカウンタ 9 トレーサメモリ 10 データ線 11 アドレス線 12 メモリ制御信号 13 トレーサメモリデータ線 14 トレーサメモリ制御信号 15 トレーサアドレス線 1 Memory 2 Processor 3 Address Register 4 Adder 5 Comparator 6 Branch Detection Circuit 7 Tracer Control Circuit 8 Tracer Address Counter 9 Tracer Memory 10 Data Line 11 Address Line 12 Memory Control Signal 13 Tracer Memory Data Line 14 Tracer Memory Control Signal 15 Tracer Address line

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 メモリと、前記メモリに記憶されたプロ
グラムを実行するプロセッサとから構成される情報処理
装置であって、 前記プロセッサが前記メモリから命令を読み出すと前記
命令が格納されていたアドレスを取り込んで一時保持す
るレジスタと、 前記プロセッサが次の命令のアドレスと前記レジスタの
内容とを比較して、分岐の有無を検出する分岐検出回路
と、 前記分岐検出回路が分岐を検出した場合に前記レジスタ
に保持しているアドレスを記憶するトレーサメモリと、 前記トレーサメモリのアドレスを示すカウンタと、 前記分岐検出回路が分岐を検出した時に、前記トレーサ
メモリの書き込み制御及び前記カウンタの更新を行うト
レーサ制御回路とを有することを特徴とするアドレスト
レーサ。
1. An information processing apparatus comprising a memory and a processor for executing a program stored in the memory, wherein when the processor reads the instruction from the memory, the address at which the instruction is stored is set. A register for fetching and temporarily holding, a branch detection circuit for detecting the presence or absence of a branch by the processor comparing the address of the next instruction with the contents of the register, and the branch detection circuit if the branch detection circuit detects a branch A tracer memory that stores the address held in a register, a counter that indicates the address of the tracer memory, and a tracer control that performs write control of the tracer memory and update of the counter when the branch detection circuit detects a branch. An address tracer having a circuit.
JP3287137A 1991-10-07 1991-10-07 Address tracer Pending JPH05100903A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3287137A JPH05100903A (en) 1991-10-07 1991-10-07 Address tracer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3287137A JPH05100903A (en) 1991-10-07 1991-10-07 Address tracer

Publications (1)

Publication Number Publication Date
JPH05100903A true JPH05100903A (en) 1993-04-23

Family

ID=17713553

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3287137A Pending JPH05100903A (en) 1991-10-07 1991-10-07 Address tracer

Country Status (1)

Country Link
JP (1) JPH05100903A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07200348A (en) * 1993-11-23 1995-08-04 Rockwell Internatl Corp Method and apparatus for compression of program address dataand apparatus for quickening of debugging processing of program
US9448910B2 (en) 2013-03-29 2016-09-20 International Business Machines Corporation Computer-implemented method, program, and tracer node for obtaining trace data relating to particular virtual machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07200348A (en) * 1993-11-23 1995-08-04 Rockwell Internatl Corp Method and apparatus for compression of program address dataand apparatus for quickening of debugging processing of program
US9448910B2 (en) 2013-03-29 2016-09-20 International Business Machines Corporation Computer-implemented method, program, and tracer node for obtaining trace data relating to particular virtual machine

Similar Documents

Publication Publication Date Title
KR930016880A (en) Electronic device and its fixing information
KR860007589A (en) Data processing device
KR930002935A (en) Information processing device
JPS63240650A (en) Cache memory device
JPH05100903A (en) Address tracer
JPH05241827A (en) Command buffer controller
JPS6232508B2 (en)
JP3762597B2 (en) Computer and its control method
JPS63311438A (en) Control circuit for discrepancy of store instruction
JPH0795288B2 (en) Microcomputer
JPH03141444A (en) Data processor
JPH05204637A (en) Program processor
JPH0256650A (en) Memory device
JPS61194535A (en) Instruction rewrite detection system
JPH07141174A (en) Register
JPH03127126A (en) Information processor
JPS62108333A (en) Semiconductor device
JPH01205340A (en) Data processor
JPH0667982A (en) Address conversion system
JPH05265799A (en) Data processor
JPH04184549A (en) Information processor
JPH04112233A (en) Microcomputer
JPH07281892A (en) Information processor
JPS63147231A (en) Data processor for prefetch of instruction
JPH03119425A (en) Information processing system and its device