JPH02162435A - Microprocessor and in-circuit emulator - Google Patents

Microprocessor and in-circuit emulator

Info

Publication number
JPH02162435A
JPH02162435A JP63316993A JP31699388A JPH02162435A JP H02162435 A JPH02162435 A JP H02162435A JP 63316993 A JP63316993 A JP 63316993A JP 31699388 A JP31699388 A JP 31699388A JP H02162435 A JPH02162435 A JP H02162435A
Authority
JP
Japan
Prior art keywords
instruction
machine cycle
breakpoint
user program
address
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
JP63316993A
Other languages
Japanese (ja)
Inventor
Shingo Tsujimichi
辻道 信吾
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63316993A priority Critical patent/JPH02162435A/en
Publication of JPH02162435A publication Critical patent/JPH02162435A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accurately decide the final machine cycle of the final instruction of a user program as well as a break point by outputting a DEC signal to show whether the instruction fetched by an instruction address outputted by a target CPU in a machine cycle preceding by one cycle should be decoded in the present machine cycle or not. CONSTITUTION:A microprocessor (target CPU) 9 outputs a DEC signal to show whether an instruction address is valid or not. A breakpoint detecting circuit 8 compares the instruction address with a breakpoint address and then checks the DEC signal when the coincidence is obtained between both addresses to decide the presence or absence of a breakpoint. A user program end detecting circuit 5 continues the monitor of the DEC signal after the change of a non- maskable interruption NMI signal and decides the end timing of a user program. Thus it is possible to detect a breakpoint and to accurately detect the final cycle of the final instruction of the user program.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、ユーザプログラムの実行とモニタプログラ
ムの実行を切替えるためのインサーキットエミュレータ
と、そのインサーキットエミュレータに使用されるマイ
クロプロセッサに関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an in-circuit emulator for switching between execution of a user program and execution of a monitor program, and a microprocessor used in the in-circuit emulator. .

〔従来の技術〕[Conventional technology]

従来、この種のインサーキットエミュレータとしては丸
山隆“インサーキットエミュレータ入門“インターフェ
ース1982年9月Nα64PP138〜14Fに示さ
れたようなものがあった。
Conventionally, as this type of in-circuit emulator, there has been one as shown in Takashi Maruyama's "Introduction to In-Circuit Emulator" Interface, September 1982, Nα64PP138-14F.

第2図はこのような従来のインサーキットエミュレータ
のシステムの構成図であり1図において111はインサ
ーキットエミュレータがデバッグの対象としているター
ゲットCPLIA、12+はターゲラ)CPUAIII
の出力する命令アドレスを監視し。
Figure 2 is a configuration diagram of such a conventional in-circuit emulator system. In Figure 1, 111 is the target CPLIA that the in-circuit emulator is debugging, and 12+ is the target CPLIA (Targuera) CPUA III.
monitors the instruction address output by

ブレークポイントを設定したアドレスの命令の実行を検
出するブレークポイント検出回路、(3)はターゲット
CPUAIIIの出力する命令アドレス、(4)はブレ
ークポイント検出回路(2)がターゲットCPUAl1
+にブレークポイントの検出を通知する為のNMI(ノ
ンマスカブル割り込み)信号である。
A breakpoint detection circuit detects the execution of the instruction at the address where a breakpoint has been set, (3) is the instruction address output by the target CPU AIII, and (4) is a breakpoint detection circuit (2) that detects the execution of the instruction at the target CPUAl1.
This is an NMI (non-maskable interrupt) signal for notifying the detection of a breakpoint.

次に動作について説明する。このような構成のシステム
においては、ブレークポイント検出に伴うユーザプログ
ラムからモニタプログラムへの移行は第3図のタイミン
グチャートに示すタイミングで第2図のシステムが動作
して以下のように行なわれる。
Next, the operation will be explained. In a system having such a configuration, the transition from the user program to the monitor program upon detection of a breakpoint is performed as follows by operating the system of FIG. 2 at the timing shown in the timing chart of FIG. 3.

まず、ブレークポイント検出回路(2;にあらかじめブ
レークポイントとしてアドレスNを設定しておく。この
状態でターゲットCP U A 111でユーザプログ
ラムを実行すると命令アドレス(3)がターゲラ)CP
UAIIIから順次出力され、ブレークポイント検出回
路(2)は毎マシンサイクルこの値とあらかじめ設定し
たアドレスNとを比較する。第3図の2番目のマシンサ
イクルで命令アドレス(3)としてアドレスNが出力さ
れるとブレークポイント検出回路(2)は検出に必要な
一定時間が経過した後2番目のマシンサイクルの面半で
N M ! 信号+aミラローベルらハイレベルに変化
させる。アドレスNの命令を実行中にNM+信号(4)
が立ち上がったことを受けてターゲットCPUAn+は
この命令の実行終了後割り込み処理動作を実行し、あら
かじめ決められたアドレス(このCPUの場合はアドレ
ス1)に制御を移す。アドレス1以降にはあらかじめモ
ニタプログラムを格納してお(ので9以上の動作でブレ
ークポイントNでユーザプログラムの実行を停止し直ち
にモニタプログラムの実行を開始することができた。
First, address N is set as a breakpoint in the breakpoint detection circuit (2) in advance. When the user program is executed on the target CPU A 111 in this state, the instruction address (3) is set as the target CPU
The breakpoint detection circuit (2) compares this value with a preset address N every machine cycle. When the address N is output as the instruction address (3) in the second machine cycle in Fig. 3, the breakpoint detection circuit (2) detects the breakpoint at the end of the second machine cycle after a certain period of time necessary for detection has elapsed. NM! Change the signal +a Miralobel to high level. NM+ signal (4) while executing the instruction at address N
In response to this, the target CPU An+ executes an interrupt processing operation after completing execution of this instruction, and transfers control to a predetermined address (address 1 in the case of this CPU). Since the monitor program was stored in advance at address 1 and after, it was possible to stop the execution of the user program at breakpoint N and immediately start executing the monitor program in steps 9 and above.

また、この従来のシステムでは全ての命令が1マシンサ
イクルで終了するので、ブレークポイントのアドレスN
を検出したマシンサイクルがユーザプログラムの最後の
命令の最初のマシンサイクルであると同時に最後のマシ
ンサイクルでもある。
In addition, in this conventional system, all instructions complete in one machine cycle, so the breakpoint address N
The machine cycle in which is detected is the first machine cycle of the last instruction of the user program, and is also the last machine cycle.

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

従来のインサーキットエミュレータ制御装置は以上のよ
うに構成されており、ターゲットCPUAがある命令ア
ドレスを出力すると必ずそのアドレスの命令を実行する
ものと想定していたし、また。
The conventional in-circuit emulator control device is configured as described above, and it is assumed that when the target CPU outputs a certain instruction address, the instruction at that address is always executed.

全ての命令は1マシンサイクルで実行を終了するものと
想定していた。それに対して、この発明が想定している
ターゲットCP U B 19+では・フェッチ、デコ
ード、実行の3段のパイプラインで動作する為、フェッ
チサイクルで出力した命令アドレスが次のデコードサイ
クルで無効とされることがある。その為、実際には実行
されないブレークポイントの命令を実行すると誤って判
断し停止してしまうことがある。
It was assumed that all instructions complete execution in one machine cycle. On the other hand, the target CPU 19+ that this invention assumes operates in a three-stage pipeline of fetch, decode, and execution, so the instruction address output in a fetch cycle is invalidated in the next decode cycle. Sometimes. Therefore, if a breakpoint instruction that is not actually executed is executed, it may be mistakenly determined and the program will stop.

・基本的には3段のパイプラインで動作するが。・Basically, it operates in a three-stage pipeline.

命令によっては1マシンサイクルの実行サイクルが追加
される場合や2マシンサイクル、更にそれ以上の実行サ
イクルが追加されることがある。
Depending on the instruction, an execution cycle of one machine cycle, two machine cycles, or even more execution cycles may be added.

(その場合にデコードサイクルにはNOPサイクルが挿
入される。)その為、ユーザプログラムの最後の命令の
最後のマシンサイクルがどこにあるのかがCPUの外部
からはわからない。
(In that case, a NOP cycle is inserted into the decode cycle.) Therefore, it is not known from outside the CPU where the last machine cycle of the last instruction of the user program is.

などの問題があり従来方式ではブレークポイントの検出
及びユーザプログラムの最後の命令の最後のマシンサイ
クルの検出が正確に行なえないという課題があった。
Due to these problems, the conventional method has had the problem that it is not possible to accurately detect a breakpoint or the last machine cycle of the last instruction of a user program.

この発明は上記のような課題を解消する為になされたも
ので上記のようなターゲットCP U B 191に対
してブレークポイント及びユーザプログラムの最後の命
令の最後のマシンサイクルを正確に決定することを目的
とする。
This invention was made in order to solve the above-mentioned problems, and it is possible to accurately determine the breakpoint and the last machine cycle of the last instruction of the user program for the target CPU 191 as described above. purpose.

〔課題を解決するための手段〕 この発明に係るマイクロプロセッサは、パイプライン動
作をするマイクロプロセッサ即ちターゲラ)CPUS、
6月つ曲のマシンサイクルで出力した命令アドレスによ
りフェッチした命令を現マシンサイクルでデコードする
か否かを示すDEC信号をターゲットCPUBから出力
する機能を備えたものである。また別な発明のインサー
キットエミュレータは上記DEC信号により1つmfの
マシンサイクルで出力された命令アドレスをブレークポ
イントとして認めるか否かを判断する機能を備えたもの
である。さらに他の発明のインサーキットエミュレータ
は、上記DEC信号によりユーザプログラムの最後に実
行する命令の最後のマシンサイクルを決定する機能を備
えたものである。
[Means for Solving the Problems] The microprocessor according to the present invention is a microprocessor that performs pipeline operation, i.e., a Targetera CPUUS,
It has a function of outputting from the target CPUB a DEC signal indicating whether or not the instruction fetched based on the instruction address output in the last machine cycle is to be decoded in the current machine cycle. An in-circuit emulator according to another invention has a function of determining whether or not an instruction address output in one mf machine cycle is recognized as a breakpoint by the DEC signal. An in-circuit emulator according to another aspect of the invention has a function of determining the last machine cycle of the last instruction to be executed in a user program based on the DEC signal.

〔作 用〕[For production]

この発明におけるマイクロプロセッサ(ターゲットCP
UB)は命令アドレスが有効か否かを示すDEC信号を
出力する。
The microprocessor (target CP) in this invention
UB) outputs a DEC signal indicating whether the instruction address is valid or not.

ブレークポイント検出回路Bは命令アドレスとブレーク
ポイントアドレスを比較し、一致した場合には更にDE
C信号をチエツクし、ブレークポイントか否かを判断す
る。
Breakpoint detection circuit B compares the instruction address and breakpoint address, and if they match, further DE
Check the C signal and determine whether it is a breakpoint.

ユーザプログラム終了検出回路はNMI信号の変化i&
DEc信号の監視を続け、ユーザプログラムの終了タイ
ミングを確定する。
The user program end detection circuit detects a change in the NMI signal i&
Continue monitoring the DEc signal to determine the end timing of the user program.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。第1
図において、(9;は7エツチ、デコード。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, (9; means 7 etches and decodes.

実行の3段のパイプラインで動作するターゲットCPL
JB、[31はターゲットCP IJ B +9+の出
力する命令アドレス、(5)はユーザプログラムの最後
に実行される命令の最後のマシンサイクルを決定するユ
ーザプログラム終了検出回路、(6)はターゲットCP
 LJ B 191が1つ而のマシンサイクルで出力し
た命令アドレス(3)によりフェッチした命令を現マシ
ンサイクルでデコードするか否かを示す為にターゲット
CP U B +9+が出力するDEC信号、(7)は
ユーザプログラム終了検知回路(5)がニーザブフグラ
ムの終了タイミングを示す為に出力する信号、(8)は
ターゲットCP U B +91の出力する命令アドレ
ス(31と予め内部にもつレジスタに設定したブレーク
ポイントアドレスを比較し、更にDEC信号(6)をチ
エツクしてブレークポイントを設定したアドレスの命令
を実行したか否かを決定する機能を持ったブレークポイ
ント検出回路B、t41はこのブレークポイント検出回
路B(8)が出力し、上記ターゲットCP U B +
9+にブレークポイントの検出を通知する為のNMI 
 (ノンマスカブル割り込み)信号である。
Target CPL that operates on a three-stage pipeline of execution
JB, [31 is the instruction address output by the target CP IJ B +9+, (5) is the user program end detection circuit that determines the last machine cycle of the last instruction to be executed in the user program, and (6) is the target CP
A DEC signal (7) output by the target CPU B +9+ to indicate whether or not the instruction fetched by the instruction address (3) output by the LJ B 191 in one machine cycle is to be decoded in the current machine cycle. is the signal output by the user program end detection circuit (5) to indicate the end timing of the knee program, and (8) is the instruction address output by the target CPU B+91 (31 and the breakpoint address previously set in the internal register). The breakpoint detection circuit B, t41, has the function of comparing the DEC signal (6) and determining whether or not the instruction at the address where the breakpoint has been set has been executed. 8) outputs the target CPU U B +
NMI to notify 9+ of breakpoint detection
(non-maskable interrupt) signal.

次に動作について説明する。Next, the operation will be explained.

まず、ターゲットCP U B +91に出力させるD
EC(f 号+61について説明する。この信号は毎マ
シンサイクルの開始直後に変化して1つ曲のマシンサイ
クルでターゲットCP U B +91の出力した命令
アドレス(3)によりフェッチした命令を現マシンサイ
クルでデコードするか否かを示す信号であり、ターゲッ
トCP U B +9+内部のデコーダ制圓信号より生
成する。
First, D to be output to the target CPU B +91
EC (f No. +61 will be explained. This signal changes immediately after the start of every machine cycle, and in one machine cycle, the instruction fetched by the instruction address (3) output by the target CPU B +91 is transferred to the current machine cycle. This is a signal indicating whether or not decoding is to be performed in the target CPU B+9+, and is generated from the decoder control signal inside the target CPU B+9+.

この信号の機能をターゲットCP U B 191のパ
イプライン動作を示すタイミングチャートである第4図
でさらに説明する。第4図において、最初のマシンサイ
クルでターゲットCP LJ B +9+の出力する命
令アドレス(3)のN−1によりフェッチされた命令は
2番目のマシンサイクルでデコードされ。
The function of this signal is further explained in FIG. 4, which is a timing chart showing the pipeline operation of target CPU B 191. In FIG. 4, the instruction fetched by N-1 of the instruction address (3) output by the target CP LJ B +9+ in the first machine cycle is decoded in the second machine cycle.

3番目のマシンサイクルで実行される有効な命令である
。この有効性を示す為にDEC信号(6)を2番目のマ
シンサイクル、即ちアドレスN−1によりフェッチされ
た命令のデコードサイクルでハイレベルにする。次に2
番目のマシンサイクルで出力される命令アドレス(3)
のNによりフェッチされた命令はN−1番地の分岐命令
の成立によりX番地に分岐する為に無効な命令となるこ
とが2番目のマシンサイクルの終了時にわかるため3番
目のマシンサイクルでこの命令のデコードを行なわない
。この無効性を示す為に[)EC信号(6)を3番目の
マシンサイクル、即ちアドレスNによりフェッチされた
命令のデコードサイクルでローレベルにする。同様の理
由で4番目、5番目のマシンサイクルでDEC信号はハ
イレベルになる。
This is a valid instruction executed in the third machine cycle. To indicate this validity, the DEC signal (6) is brought to a high level in the second machine cycle, ie, the decode cycle of the instruction fetched by address N-1. Next 2
Instruction address output in the th machine cycle (3)
Since it is known at the end of the second machine cycle that the instruction fetched by N is an invalid instruction because it branches to address X due to the establishment of the branch instruction at address N-1, this instruction is executed in the third machine cycle. is not decoded. To indicate this invalidity, the EC signal (6) is brought to a low level in the third machine cycle, that is, the decode cycle of the instruction fetched by address N. For the same reason, the DEC signal goes high in the fourth and fifth machine cycles.

次にDEC信号(6)を用いてブレークポイント検出回
路B(8)がブレークポイントを検出する動作を第4図
、第5図により説明する。まず予めブレークポイント検
出回路B(8)にブレークポイントアドレスを設定して
おいた状態でユーザプログラムの実行を開始する。ユー
ザプログラムの実行中ブレークポイント検出回路B(8
)は毎マシンサイクル命令アドレス(3)とブレークポ
インドア・ドレスを比較し、一致した場合にはブレーク
ポイントの可能性があるので1次のマシンサイクルでo
Ecft号ts+のチエツクを行ないこの命令アドレス
(3)が有効なものかどうかを調べる。ここで第5図の
3番目のマシンサイクルの場合のようにDEC信号がハ
イレベルならば命令アドレス(3)は有効であり、実際
にブレークポイントアドレスの命令をデコードし実行す
ることになるので、ブレークポイント検出回路B +8
11;i N M l +41t−ローレベルからハイ
レベルに変化させてターゲットCP U B 191に
ノンマスカブル割り込みをかけユーザプログラムの停止
とモニタプログラムの開始を命じる。この場合の全体と
してのブレークポイント検出時間及びそのうちのデコー
ド信号チエツク時間を第5図に示す。また第4図の3番
目のマシンサイクルの場合のようにDEC信号(6)が
図に示すチエツクポイントでローレベルならば、ブレー
クポイントアドレスと一致したことが図のブレークポイ
ント仮検出でわかった命令アドレス(3)によりフェッ
チした命令は無効となり、デコードも実行されないので
N M l 141を変化させない。
Next, the operation of the breakpoint detection circuit B (8) detecting a breakpoint using the DEC signal (6) will be explained with reference to FIGS. 4 and 5. First, execution of the user program is started with a breakpoint address set in the breakpoint detection circuit B (8) in advance. Breakpoint detection circuit B (8) during user program execution
) compares the instruction address (3) and the breakpoint address every machine cycle, and if they match, there is a possibility of a breakpoint, so o is omitted in the first machine cycle.
Ecft number ts+ is checked to see if this instruction address (3) is valid. Here, if the DEC signal is at a high level as in the case of the third machine cycle in Figure 5, the instruction address (3) is valid and the instruction at the breakpoint address will actually be decoded and executed. Breakpoint detection circuit B +8
11; i N M l +41t-changes from low level to high level to issue a non-maskable interrupt to the target CPU 191 and command to stop the user program and start the monitor program. FIG. 5 shows the overall breakpoint detection time and decode signal check time in this case. Also, as in the case of the third machine cycle in Figure 4, if the DEC signal (6) is at a low level at the checkpoint shown in the figure, then the instruction found by temporary breakpoint detection in the figure to match the breakpoint address. The instruction fetched by address (3) becomes invalid and is not decoded, so N M l 141 is not changed.

最後に、NMI(4)とDEC信号(6)を用いてユー
ザプログラム終了検出回路(5)がユーザプログラムの
最後の命令の最後のマシンサイクルを検出する方法を説
明する。
Finally, a method for the user program end detection circuit (5) to detect the last machine cycle of the last instruction of the user program using the NMI (4) and DEC signal (6) will be explained.

第5図の例では、ブレークポイントを命令アドレスNに
設定し、アドレスNの命令の実行終了後にノンマスカブ
ル割り込みによりアドレス1からのモニタプログラムに
移行しているが、このアドレスNの命令は2マシンサイ
クル分の余分の実mイクルが追加される命令であり、命
令の実行終了がその分だけ後にずれている。また実行サ
イクルの追加に対応してデコードサイクルにはNOPサ
イクルが挿入される。ユーザプログラム終了検出回路(
5)は毎マシンサイクルN M I +41をチエツク
して。
In the example shown in Fig. 5, a breakpoint is set at instruction address N, and after the execution of the instruction at address N is completed, a non-maskable interrupt is used to transition to the monitor program from address 1, but this instruction at address N takes two machine cycles. This is an instruction to which an extra actual cycle is added, and the end of execution of the instruction is delayed by that amount. Furthermore, in response to the addition of an execution cycle, a NOP cycle is inserted into the decode cycle. User program end detection circuit (
5) Check NMI +41 every machine cycle.

この信号がハイレベルになるのを待つ。第5図では3@
目のマシンサイクルでN M I 14+がハイレベル
に変化したことを検出してこのマシンサイクルがユーザ
プログラムの最後の命令のデコードサイクルであること
を知る。その後ユーザプログラム終了検出回路+5)は
次のマシンサイクル(この例では4番目のマシンサイク
ル)からDEC信号(6)のチエツクを開始し、ユーザ
プログラムの最後の命令の最後のマシンサイクル(この
例では6番目のマシンサイクル)の検出を行う。まず4
番目のマシンサイクルでDEC信号(6)をチエツクす
るとローレベルなのでこのマシンサイクルは最後のマシ
ンサイクルでないことがわかる。次に5番目のマシンサ
イクルも同様にDEC信号+61がローレベルなので6
番目のマシンサイクルに移る。6番目のマシンサイクル
でDEC信号(6)をチエツクするとハイレベルなので
、ユーザプログラム終了検出回路(釧よ次の命令のデコ
ードサイクルが開始されたと判断し、それによりこの6
番目のマシンサイクルをユーザプログラムの最後の命令
の最後のマシンサイクル(実行サイクル)であると判断
して。
Wait for this signal to go high. In Figure 5, 3@
It is detected that N M I 14+ changes to high level in the second machine cycle, and it is known that this machine cycle is the decoding cycle of the last instruction of the user program. After that, the user program end detection circuit +5) starts checking the DEC signal (6) from the next machine cycle (the fourth machine cycle in this example), and starts checking the DEC signal (6) in the last machine cycle of the last instruction of the user program (in this example, the fourth machine cycle). 6th machine cycle) is detected. First 4
When the DEC signal (6) is checked in the second machine cycle, it is at a low level, which indicates that this machine cycle is not the last machine cycle. Next, in the fifth machine cycle, the DEC signal +61 is at low level, so 6
Move to the second machine cycle. When the DEC signal (6) is checked in the 6th machine cycle, it is at a high level, so the user program end detection circuit (Kuji) determines that the decoding cycle for the next instruction has started, and this 6th
The second machine cycle is determined to be the last machine cycle (execution cycle) of the last instruction of the user program.

ユーザプログラム終了信号(7)を変化させる。このよ
うにすることにより、最後の命令に対し何個のNOPサ
イクルが挿入されても、最後のマシンサイクルの位置を
正しく判断することができる。第5図の場合はインサー
キットエミユ・レータ制御装置は図に示したように6番
目のマシンサイクルの終了時までをユーザプログラム、
それ以降をモニタプログラムと判断する。
Change the user program end signal (7). By doing so, the position of the last machine cycle can be correctly determined no matter how many NOP cycles are inserted for the last instruction. In the case of Fig. 5, the in-circuit emulator control device uses the user program until the end of the 6th machine cycle as shown in the figure.
The program after that is determined to be a monitor program.

なお、上記実施例ではユーザプログラムの最後の命令の
最後のマシンサイクルとして実行サイクルの最後のサイ
クルを検出したが、この点を基準とすることで、その面
後のマシンサイクル、例えば最後のデコードサイクルな
どを検出することもできる。
Note that in the above embodiment, the last cycle of the execution cycle is detected as the last machine cycle of the last instruction of the user program, but by using this point as a reference, the machine cycle after that point, for example, the last decode cycle, is detected. It is also possible to detect.

〔発明の効果〕 以上のようにこの発明によればターゲットCPUBがD
EC信号を出力するようにし、このDEC信号を利用し
てブレークポイントの検出およびユーザプログラムの最
後の命令の最後のマシンサイクルの検出を出うように構
成したので、パイプライン動作をするターゲットCPu
B用のインサーキットエミュレータにおいても上記検出
が正確に行えるという効果がある。
[Effect of the invention] As described above, according to this invention, the target CPUB is
Since the configuration is configured to output the EC signal and use this DEC signal to detect breakpoints and detect the last machine cycle of the last instruction of the user program, the target CPU that performs pipeline operation
The B in-circuit emulator also has the advantage that the above detection can be performed accurately.

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

第1図はこの発明の一実施例によるインサーキットエミ
ュレータのシステム構成図、第2図は従来のインサーキ
ットエミュレータのシステム構成図、第3図は従来のイ
ンサーキットエミュレータの動作を示すタイミングチャ
ート、第4図、第5図は何れもこの発明の一実施例の動
作を示すタイミングチャートである。 図中符号、(3)は命令アドレス、(4)はNMI信号
。 (5)はユーザプログラム終了検出回路、(6)はデコ
ード信号、 t81はブレークポイント検出回路B、1
91はターゲットcpus。 なお1図中同一行号は同−又は相当部分を示す。
FIG. 1 is a system configuration diagram of an in-circuit emulator according to an embodiment of the present invention, FIG. 2 is a system configuration diagram of a conventional in-circuit emulator, FIG. 3 is a timing chart showing the operation of a conventional in-circuit emulator, and FIG. 4 and 5 are timing charts showing the operation of one embodiment of the present invention. In the figure, (3) is an instruction address, and (4) is an NMI signal. (5) is the user program end detection circuit, (6) is the decode signal, t81 is the breakpoint detection circuit B, 1
91 is the target CPU. Note that the same line numbers in Figure 1 indicate the same or equivalent parts.

Claims (3)

【特許請求の範囲】[Claims] (1)パイプライン動作をするマイクロプロセッサにお
いて、1つ前のマシンサイクルで出力した命令アドレス
によりフェッチした命令を現マシンサイクルでデコード
するか否かを示すDEC信号を出力することを特徴とす
るマイクロプロセッサ。
(1) A microprocessor that performs pipeline operation, which outputs a DEC signal indicating whether or not an instruction fetched based on an instruction address output in the previous machine cycle is to be decoded in the current machine cycle. processor.
(2)命令アドレスが予め指定した値に一致したときに
ユーザプログラムの実行を停止するブレークポイント機
能を備えたインサーキツトエミユレータにおいて、特許
請求の範囲請求項1に記載のDEC信号により1つ前の
マシンサイクルで出力された命令アドレスをブレークポ
イントとして認めるか否かの判断機能を備えたことを特
徴とするインサーキツトエミユレータ。
(2) In an in-circuit emulator equipped with a breakpoint function that stops execution of a user program when an instruction address matches a predetermined value, one An in-circuit emulator characterized by having a function for determining whether or not to accept an instruction address output in a previous machine cycle as a breakpoint.
(3)ユーザプログラムの実行を停止した後、直ちにモ
ニタプログラムの実行を開始するインサーキツトエミユ
レータにおいて、特許請求の範囲請求項1に記載のDE
C信号によりユーザプログラムの最後に実行する命令の
最後のマシンサイクルを認識する機能を備えたことを特
徴とするインサーキツトエミユレータ。
(3) In an in-circuit emulator that starts executing a monitor program immediately after stopping execution of a user program, the DE according to claim 1
An in-circuit emulator comprising a function of recognizing the last machine cycle of an instruction to be executed at the end of a user program using a C signal.
JP63316993A 1988-12-15 1988-12-15 Microprocessor and in-circuit emulator Pending JPH02162435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63316993A JPH02162435A (en) 1988-12-15 1988-12-15 Microprocessor and in-circuit emulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63316993A JPH02162435A (en) 1988-12-15 1988-12-15 Microprocessor and in-circuit emulator

Publications (1)

Publication Number Publication Date
JPH02162435A true JPH02162435A (en) 1990-06-22

Family

ID=18083219

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63316993A Pending JPH02162435A (en) 1988-12-15 1988-12-15 Microprocessor and in-circuit emulator

Country Status (1)

Country Link
JP (1) JPH02162435A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0477933A (en) * 1990-07-19 1992-03-12 Nec Corp Microprocessor for evaluation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0477933A (en) * 1990-07-19 1992-03-12 Nec Corp Microprocessor for evaluation

Similar Documents

Publication Publication Date Title
JPS63111545A (en) Microprocessor for debug
US4839895A (en) Early failure detection system for multiprocessor system
JP2513417B2 (en) Information processing device
JP2002342114A (en) Processor capable of collecting trace data
JPH02162435A (en) Microprocessor and in-circuit emulator
EP0525672A2 (en) Microprocessor with program tracing
JPH03113648A (en) Program debug system
JP2808757B2 (en) Microprocessor for debugging
US7240185B2 (en) Computer system with two debug watch modes for controlling execution of guarded instructions upon breakpoint detection
KR920003909B1 (en) Debugging supporting circuit
JPS6029840A (en) Interruption system for execution program
JPS58158747A (en) Programable controller
JPH0814779B2 (en) Initialization method for arithmetic and control unit
JPH0682323B2 (en) Debug microprocessor
JPS632922Y2 (en)
JPH0210442A (en) Break point instruction control system
JPS6148181B2 (en)
JPH04306743A (en) Debug support system for integrated circuit microprocessor
JPH061441B2 (en) Preliminary confirmation device
JPS62100843A (en) Test method for information processor
JPH0328938A (en) Microcomputer device
JPS63214856A (en) Data protection control system for data processing unit
JPH0311430A (en) Abnormality processing method at time of fetch access
JPS62100844A (en) Test system for information processor
JP2000347880A (en) Interruption controller and microcomputer