JPS63104151A - Microprocessor containing tracing function - Google Patents

Microprocessor containing tracing function

Info

Publication number
JPS63104151A
JPS63104151A JP61250565A JP25056586A JPS63104151A JP S63104151 A JPS63104151 A JP S63104151A JP 61250565 A JP61250565 A JP 61250565A JP 25056586 A JP25056586 A JP 25056586A JP S63104151 A JPS63104151 A JP S63104151A
Authority
JP
Japan
Prior art keywords
unit
address
microprogram
control unit
prefetch
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
JP61250565A
Other languages
Japanese (ja)
Inventor
Hiromi Oishi
博見 大石
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 JP61250565A priority Critical patent/JPS63104151A/en
Publication of JPS63104151A publication Critical patent/JPS63104151A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To obtain a unified tracing function by using a prefetch unit, a memory control unit, a bus control unit, a micro ROM, a microsequencer and an executing unit. CONSTITUTION:A prefetch unit 1 prefetches an instruction to be carried out from a main memory and decoded. Then the unit 1 produces an effective operand address and sends it to a memory control unit 2. The unit 2 contains a TLB for execution of conversion at a high speed. A bus control unit 3 puts a real address sent from the unit 2 on an external bus and gives accesses to the memory and an I/O. A microsequencer 4 produces the address of a microprogram based on the instruction decoding information received from the unit 1 and also accepts various interruptions to reflect them onto the program address. A micro ROM stores the microprogram. Thus it is possible to improve the software evaluation efficiency and to carry out a tracing job without using any additional device.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はアドレストラップの機能を有するマイクロプロ
セサに関し、特にそのアドレストラップのトレースに関
する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a microprocessor having an address trap function, and particularly to tracing of the address trap.

(従来の技術) 従来、この種のマイクロプロセサにはアドレストラップ
のトレース機能を備えていないようである。斯かるマイ
クロプロセサでは、代替え手段としてインサーキットエ
ミュレータ等の外付は装置によシ外付は装置の・トレー
ス機能を使用している。
(Prior Art) Conventionally, this type of microprocessor does not seem to be equipped with an address trap trace function. In such a microprocessor, as an alternative means, an external device such as an in-circuit emulator is used, and a trace function of the device is used.

(発明が解決しようとする問題点) 上述した従来のマイクロプロセサでは、トレース機能を
実現するために外付は装置を使用しなければならない。
(Problems to be Solved by the Invention) In the conventional microprocessor described above, an external device must be used to realize the trace function.

そのため、マイクロプロセサのソケット部に装置アダプ
タ等を取付ける必要があるので、障害処理の解析などで
、ユーザ先に装置を持込まなければならないという欠点
がある。
Therefore, since it is necessary to attach a device adapter or the like to the socket of the microprocessor, there is a drawback that the device must be brought to the user's site for troubleshooting analysis and the like.

本発明の目的は、メモリアクセス時のアドレスと、あら
かじめ設定されたアドレスとの一致を検出し、上記一致
をマイクロプログラムにアドレス比較トラップ発生の割
込みとして通知し、トレースのオン/オフを制御するこ
とによシ上記欠点を除去し、トレース機卵を一体化でき
るように構成したトレース機能付きマイクロプロセサを
提供することにある。
An object of the present invention is to detect a match between an address at the time of memory access and a preset address, notify the microprogram of the match as an interrupt for generation of an address comparison trap, and control trace on/off. Another object of the present invention is to provide a microprocessor with a trace function that eliminates the above-mentioned drawbacks and is configured so that a trace machine can be integrated therein.

(問題点を解決するための手段) 本発明によるトレース機能付きマイクロプロセサはプリ
フェッチユニットと、メモリ管理ユニットと、ハス制御
ユニットと、マイクロROMと、マイクロシーケンサと
、実行ユニットとを具備して構成したものである。
(Means for Solving the Problems) A microprocessor with a trace function according to the present invention includes a prefetch unit, a memory management unit, a hash control unit, a micro ROM, a micro sequencer, and an execution unit. It is something.

プリフェッチユニットは、実行する命令を先取りして解
読し、実効オペランドアドレスを生成するためのもので
ある。
The prefetch unit is for preemptively decoding an instruction to be executed and generating an effective operand address.

メモリ管理ユニットは、プリフェッチユニットから送ら
れてきた実効オペランドアドレスを受取るとともに、仮
想アドレスを実アドレス憂こ変換するためのものである
The memory management unit receives the effective operand address sent from the prefetch unit and also converts the virtual address into a real address.

バス制御ユニットは、メモリ管理ユニットから送られて
きた実アドレスをプリフェッチユニットから送られてき
た実効オペランドアドレスと比較し、両者が一致してい
るときには実アドレスを外部バスニ乗せ、デバイスへの
アクセスを実行するためのものである。
The bus control unit compares the real address sent from the memory management unit with the effective operand address sent from the prefetch unit, and if the two match, puts the real address on the external bus and executes access to the device. It is for the purpose of

マイクロROMは、マイクロプログラムを格納するため
のものである。
Micro ROM is for storing micro programs.

マイクロシーケンサは、プリフェッチユニットからの命
令デコード情報によシマイクロプログラムのアドレスを
生成し、アドレス比較のトラップによる割込みもトレー
ス上必要があれば受付けて、マイクロプログラムのアド
レスへ反映させるためのものである。
The microsequencer generates microprogram addresses based on instruction decode information from the prefetch unit, accepts interrupts due to address comparison traps if necessary for tracing, and reflects them in the microprogram addresses. .

実行ユニットは、実際に命令を実行するためのものでお
る。
The execution unit is for actually executing instructions.

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

第1図は、本発明によるトレース機能付きマイクロプロ
セサの一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a microprocessor with a trace function according to the present invention.

第1図において、】はプリ7エツチユニツと、2はメモ
リ管理ユニッと、3はバス制御ユニッと、4はマイクロ
シーケンサ、5はマイクロROM、6は実行ユニットで
ある。
In FIG. 1, 2 is a memory management unit, 3 is a bus control unit, 4 is a micro sequencer, 5 is a micro ROM, and 6 is an execution unit.

第1図において、プリフェッチユニット1は実行する命
令をメインメモリ(図示していない。)から先取りして
解読し、実効オペランドアドレスを生成してメモリ管理
ユニット2へ送出する。メモリ管理ユニット2は、各ユ
ニットより送られてくる仮想アドレスを実アドレスへ変
換スるユニットである。メモリ管理ユニット2の内部に
はTLBを有し、高速な変換が実現されている。バス制
御ユニット3はメモリ管理ユニット2から送られてきた
実アドレスを外部バスへ乗せ、メモリや工10へのアク
セスを行う。マイクロシーケンサ4はプリフェッチユニ
ット1からの命令デコード情報によυマイクロプログラ
ムのアドレスを生成し。
In FIG. 1, a prefetch unit 1 prefetches an instruction to be executed from a main memory (not shown), decodes it, generates an effective operand address, and sends it to a memory management unit 2. The memory management unit 2 is a unit that converts virtual addresses sent from each unit into real addresses. The memory management unit 2 has a TLB inside to realize high-speed conversion. The bus control unit 3 puts the real address sent from the memory management unit 2 onto the external bus, and accesses the memory and the device 10. The microsequencer 4 generates the address of the υ microprogram based on the instruction decode information from the prefetch unit 1.

各種の割込みも受付けてマイクロプログラムのアドレス
へ反映させる。マイクロROM5は、マイクロプログラ
ムを格納する。実行ユニット6は実際に命令を実行する
ユニットであり、内部構成はvジy、p、ALU、ある
いはバレルシフタなどにより構成されている。
It also accepts various interrupts and reflects them on the microprogram address. The micro ROM 5 stores micro programs. The execution unit 6 is a unit that actually executes instructions, and its internal configuration is made up of a VJ, P, ALU, a barrel shifter, and the like.

なお、バス制御ユニット3は命令7エツチやオペランド
のリード/ライトなどのメモリアクセス時のアドレスと
、あらかじめ設定されたアドレスとを比較し、一致を検
出する機能をもっている。
The bus control unit 3 has a function of comparing an address during memory access such as instruction 7 etch or operand read/write with a preset address and detecting a match.

この機能fこよシアドレスの一致を検出した場合、アド
レス比較トラップを発生しなければならない。
This function must generate an address comparison trap when it detects a match between addresses.

そこで、アドレス比較トラップ発生割込みとして割込み
信号線7を介してマイクロシーケンサ4へ通知する。
Therefore, a notification is sent to the microsequencer 4 via the interrupt signal line 7 as an address comparison trap generation interrupt.

マイクロプログラムではアドレス比較トラップの割込み
が入ると、アドレス比較トラップを発生すへくトラップ
番号を設定し、トラップ処理ルーチンへエントリする。
When an address comparison trap interrupt occurs, the microprogram generates an address comparison trap, sets a trap number, and enters the trap processing routine.

第1図に示すトレース機能付きマイクロプロセサはアド
レス比較トラップのトレース機能を有するため、第2図
に示すような処理を行う。第2図1こ示すように、まず
トレースを実行するか否かのトレースオン/オフ制御フ
リップフロップをチェックする。もしトレースオンであ
れば、プログラムカウンタや一致したアドレスなどの必
要な情報を、あらかじめ定められたメモリ領域へ書込む
Since the microprocessor with trace function shown in FIG. 1 has the trace function of the address comparison trap, it performs the processing shown in FIG. 2. As shown in FIG. 2, first, the trace on/off control flip-flop is checked to determine whether or not tracing is to be executed. If trace is on, necessary information such as the program counter and matching address is written to a predetermined memory area.

その後、トレースオフと同様にしてアドレス比較トラッ
プの番号を設定し、トラップ処理ヘエ7)すする。トラ
ップ処理では、トラップ情報を定められたメモリ領域へ
格納し、トラップ番号普こよシトラップハンドラと呼ば
れるトラップ処理用ソフトウェアプロ7ジヤを走らせる
Thereafter, the address comparison trap number is set in the same way as for trace-off, and the trap processing is performed (7). In trap processing, trap information is stored in a predetermined memory area, and a trap processing software program called a trap handler is run.

(発明の効果) 以上説明したように本発明は、メモリアクセス時のアド
レスと、あらかじめ設定されたアドレスとの一致を検出
し、一致をマイクロプログラムにアドレス比較トラップ
の割込みとして通知してトレースのオン/オフを制御す
ることによシ、アドレス比較トラップの発生を付加装置
なくオンチップでトレースできるとともに、アドレス比
較ロジックの改善によシ同時ζこ複数箇所のアドレス比
較を行うことも可能であるという効果がある。
(Effects of the Invention) As explained above, the present invention detects a match between an address during memory access and a preset address, notifies the microprogram of the match as an address comparison trap interrupt, and turns on tracing. By controlling /off, it is possible to trace the occurrence of address comparison traps on-chip without any additional equipment, and by improving the address comparison logic, it is also possible to compare addresses at multiple locations simultaneously. effective.

また、アドレスをことットマスクを行い、範囲をもった
アドレスへの比較も実現できるという効果がある。
Another advantage is that addresses can be completely masked and comparisons can be made with addresses that have a range.

このようなアドレス比較トラップをトレースすることに
より、ソフトウェア評価の効率改善や、付加装置の存在
なくトレースを実行できるため。
By tracing such address comparison traps, the efficiency of software evaluation can be improved and tracing can be performed without the presence of additional equipment.

障害原因を容易に解析できるという効果がある。This has the effect that the cause of the failure can be easily analyzed.

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

第1図は、本発明によるトレース機能付きマイクロプロ
セサの一実施例を示すブロック図である。 第2図は、アドレス比較トラップの割込み処理用マイク
ロプログラムの実行を示す70−チャートである。 1・・・プリ7エツチユニツト 2・・φメモリ管理ユニット 3・・・バス制御ユニット 4・・働マイクロシーケンサ 5・・・マイクロROM 6・・・実行ユニット 7・・・信号線
FIG. 1 is a block diagram showing an embodiment of a microprocessor with a trace function according to the present invention. FIG. 2 is a 70-chart showing the execution of the address comparison trap interrupt processing microprogram. 1... Pre-7 etching unit 2... φ memory management unit 3... Bus control unit 4... Working micro sequencer 5... Micro ROM 6... Execution unit 7... Signal line

Claims (1)

【特許請求の範囲】[Claims] 実行する命令を先取りして解読し、実効オペランドアド
レスを生成するためのプリフェッチユニットと、前記プ
リフェッチユニットから送られてきた前記実効オペラン
ドアドレスを受取るとともに仮想アドレスを実アドレス
に変換するためのメモリ管理ユニットと、前記メモリ管
理ユニットから送られてきた実アドレスを前記プリフェ
ッチユニットから送られてきた実効オペランドアドレス
と比較し、前記両者が一致しているときには前記実アド
レスを外部バスに乗せ、デバイスへのアクセスを実行す
るためのバス制御ユニットと、マイクロプログラムを格
納するためのマイクロROMと、前記プリフェッチユニ
ットからの命令デコード情報により前記マイクロプログ
ラムのアドレスを生成し、アドレス比較のトラップによ
る割込みもトレース上必要があれば受付けて前記マイク
ロプログラムのアドレスへ反映させるためのマイクロシ
ーケンサと、実際に命令を実行するための実行ユニット
とを具備して構成したことを特徴とするトレース機能付
きマイクロプロセサ。
a prefetch unit that preemptively decodes an instruction to be executed and generates an effective operand address; and a memory management unit that receives the effective operand address sent from the prefetch unit and converts a virtual address into a real address. Then, the real address sent from the memory management unit is compared with the effective operand address sent from the prefetch unit, and if the two match, the real address is placed on the external bus and access to the device is performed. A bus control unit for executing the microprogram, a microROM for storing the microprogram, and an address for the microprogram is generated based on instruction decode information from the prefetch unit, and interrupts due to address comparison traps are also necessary for tracing. 1. A microprocessor with a trace function, comprising: a micro sequencer for accepting instructions, if any, and reflecting them in the address of the microprogram; and an execution unit for actually executing instructions.
JP61250565A 1986-10-21 1986-10-21 Microprocessor containing tracing function Pending JPS63104151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61250565A JPS63104151A (en) 1986-10-21 1986-10-21 Microprocessor containing tracing function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61250565A JPS63104151A (en) 1986-10-21 1986-10-21 Microprocessor containing tracing function

Publications (1)

Publication Number Publication Date
JPS63104151A true JPS63104151A (en) 1988-05-09

Family

ID=17209782

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61250565A Pending JPS63104151A (en) 1986-10-21 1986-10-21 Microprocessor containing tracing function

Country Status (1)

Country Link
JP (1) JPS63104151A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02297225A (en) * 1989-05-11 1990-12-07 Mitsubishi Electric Corp Microprocessor
JPH05100905A (en) * 1991-05-13 1993-04-23 Internatl Business Mach Corp <Ibm> System having hardware support break-point function and method of providing said function

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02297225A (en) * 1989-05-11 1990-12-07 Mitsubishi Electric Corp Microprocessor
JPH05100905A (en) * 1991-05-13 1993-04-23 Internatl Business Mach Corp <Ibm> System having hardware support break-point function and method of providing said function

Similar Documents

Publication Publication Date Title
US5659679A (en) Method and apparatus for providing breakpoints on taken jumps and for providing software profiling in a computer system
JP3105223B2 (en) Debug peripherals for microcomputers, microprocessors and core processor integrated circuits
US20150033227A1 (en) Automatically bridging the semantic gap in machine introspection
US20040030870A1 (en) Software breakpoints with tailoring for multiple processor shared memory or multiple thread systems
EP0702297B1 (en) A data processor with breakpoint circuit
US6175913B1 (en) Data processing unit with debug capabilities using a memory protection unit
JP2004501407A (en) Secure software SMI dispatching using caller addresses
EP0523758B1 (en) A method and apparatus for coordinating execution of an instruction by a coprocessor
US4758950A (en) Method and apparatus for selectively delaying an interrupt of a coprocessor
WO2001018651A1 (en) Thread-oriented debugging
JPS63104151A (en) Microprocessor containing tracing function
Knaggs Practical and Theoretical Aspects of Forth Software Development
JPH06103109A (en) Data processor and debug device using the same
Chiueh Fast bounds checking using debug register
JP2555912B2 (en) Microprocessor
KR920003909B1 (en) Debugging supporting circuit
Efimov et al. Features of the deterministic replay in the case of a minimum device set
JPS6382525A (en) Microprocessor with tracing function
JP2000250779A (en) Programmable controller
JPH11167500A (en) Event circuit and debug system for emulator device
JPH03201135A (en) Microprocessor
JPH0795288B2 (en) Microcomputer
JPH04199336A (en) microcomputer
JPS6325742A (en) Microprocessor with tracing function
JPS6349846A (en) Arithmetic processor