JP2000305802A - In-circuit emulator - Google Patents

In-circuit emulator

Info

Publication number
JP2000305802A
JP2000305802A JP11109383A JP10938399A JP2000305802A JP 2000305802 A JP2000305802 A JP 2000305802A JP 11109383 A JP11109383 A JP 11109383A JP 10938399 A JP10938399 A JP 10938399A JP 2000305802 A JP2000305802 A JP 2000305802A
Authority
JP
Japan
Prior art keywords
signal
user
circuit
reset
mask
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
JP11109383A
Other languages
Japanese (ja)
Inventor
Takayuki Nomiyama
隆行 野見山
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 IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems Co 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 IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP11109383A priority Critical patent/JP2000305802A/en
Publication of JP2000305802A publication Critical patent/JP2000305802A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent an emulation CPU from running away in the clock switching by integrating a user reset mask signal and a user power supply mask signal and resetting a simulation CPU. SOLUTION: A user reset signal URESET from a user is masked by a 1st mask circuit 8 according to a supervisor state signal SVMOD indicating that the in-circuit simulator 1 is in a supervisor state and outputs a user reset mask signal MURESET. A user power supply detection reset circuit 3, detects whether or not there is a user source voltage USRVDD from the user and outputs the user power supply mask signal MPRESET which is masked according to the signal SVMOD. Then a 2nd mask circuit 9 automatically resets the emulation CPU 7 with a reset signal RESET generated by integrating a forcible reset signal CRESET and the mask signals MURESET and the MPRESET.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、インサーキットエ
ミュレータに関し、特にCPUを有するICカードのよ
うに頻繁にユーザシステム(ICカードの場合はカード
リーダ)に着脱されるシステムのエミュレーションに用
いて好適なインサーキットエミュレータに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an in-circuit emulator, and more particularly to an in-circuit emulator suitable for emulating a system frequently attached to and detached from a user system (in the case of an IC card, a card reader) such as an IC card having a CPU. Related to in-circuit emulators.

【0002】[0002]

【従来の技術】まず、インサーキットエミュレータで用
いる用語について簡単に説明する。
2. Description of the Related Art First, terms used in an in-circuit emulator will be briefly described.

【0003】ターゲットCPU:インサーキットエミュ
レータのエミュレーション対象となるユーザシステムの
CPU。
Target CPU: CPU of a user system to be emulated by an in-circuit emulator.

【0004】エミュレーションCPU:インサーキット
エミュレータに内蔵されるターゲットCPUの代替CP
U。命令実行時はターゲットCPUと同様に動作する。
Emulation CPU: Alternative CP to target CPU built in in-circuit emulator
U. At the time of instruction execution, it operates similarly to the target CPU.

【0005】制御CPU:インサーキットエミュレータ
本体を制御するCPU。インサーキットエミュレータは
複雑な装置であるためエミュレーションCPUとは別に
CPUを内蔵している。制御CPUは主に操作者との情
報のやり取りやインサーキットエミュレータの内部回路
の制御を行う。また、ブレーク状態にあるエミュレーシ
ョンCPUからデバッグに必要な情報を取り出す処理も
行う。
Control CPU: CPU for controlling the main body of the in-circuit emulator. Since the in-circuit emulator is a complicated device, it incorporates a CPU separately from the emulation CPU. The control CPU mainly exchanges information with the operator and controls the internal circuit of the in-circuit emulator. Further, a process of extracting information necessary for debugging from the emulation CPU in the break state is also performed.

【0006】制御プログラム:制御CPUが実行するプ
ログラム。制御プログラムはインサーキットエミュレー
タの開発時点で作り込まれ、インサーキットエミュレー
タの電源投入時から処理を開始し、インサーキットエミ
ュレータの全ての制御を統括する。
Control program: A program executed by the control CPU. The control program is created at the time of development of the in-circuit emulator, starts processing when the power of the in-circuit emulator is turned on, and controls all the controls of the in-circuit emulator.

【0007】ユーザプログラム:ターゲットCPUが実
行するユーザが開発したプログラム。インサーキットエ
ミュレータのデバッグ対象である。
User program: A user-developed program executed by the target CPU. This is the debug target of the in-circuit emulator.

【0008】ユーザシステム:ターゲットCPUを組み
込んだユーザの開発対象であるシステム。
[0008] User system: A system to be developed by a user incorporating a target CPU.

【0009】エミュレーションプローブ:インサーキッ
トエミュレータとユーザシステムを接続する専用ケーブ
ル。コネクタ部をユーザシステムのターゲットCPUの
実装部位に接続する。但し、ICカード用のエミュレー
ションプローブのコネクタ部は、ターゲットCPUが組
み込まれるICカードの形状をしており、ユーザシステ
ムはICカードと接続して情報のやり取りを行うカード
リーダとなる。
Emulation probe: A dedicated cable for connecting an in-circuit emulator and a user system. The connector is connected to a mounting part of the target CPU of the user system. However, the connector part of the emulation probe for the IC card has the shape of an IC card in which the target CPU is incorporated, and the user system is a card reader connected to the IC card and exchanging information.

【0010】ユーザ状態:エミュレーションCPUがユ
ーザプログラムを実行している状態。
User state: A state in which the emulation CPU is executing a user program.

【0011】ブレーク状態:エミュレーションCPUが
ユーザプログラムを実行していない状態。
Break state: A state in which the emulation CPU is not executing a user program.

【0012】オルタネートプログラム:ブレーク状態で
エミュレーションCPUが実行するプログラム。制御C
PUからの要求によってユーザプログラムで使用してい
るレジスタやメモリ内の情報を制御CPUに渡す処理等
を実行させる。
Alternate program: A program executed by the emulation CPU in a break state. Control C
In response to a request from the PU, a process for transferring information in a register or a memory used by the user program to the control CPU is executed.

【0013】スーパーバイザ状態:エミュレーションC
PUがオルタネートプログラムを実行し、制御CPUが
ユーザプログラムで使用しているレジスタやメモリ内か
ら各種情報の取り出し、操作者と交信を行っている状
態。一般的に、操作者はスーパーバイザ状態の間にユー
ザプログラムの動作確認を行う。
Supervisor state: emulation C
A state in which the PU executes the alternate program, the control CPU retrieves various information from registers and memories used in the user program, and communicates with the operator. Generally, the operator checks the operation of the user program during the supervisor state.

【0014】コマンド:操作者から制御CPUへ与える
各種命令。制御CPUは与えられたコマンドを解釈して
操作者の意図した通りにインサーキットエミュレータを
制御する。典型的なコマンドとしては、「実行再開命
令」や「実行中断命令」のように動作を指定するコマン
ドや、ブレークポイント設定コマンドのように命令の実
行中断条件を設定する命令がある。
Commands: Various commands given from the operator to the control CPU. The control CPU interprets the given command and controls the in-circuit emulator as intended by the operator. Typical commands include commands for specifying an operation such as an “execution resuming command” and “execution suspending command”, and commands for setting an execution suspending condition of the command such as a breakpoint setting command.

【0015】上述したエミュレーションCPUは、エミ
ュレーションプローブを用いてユーザシステムがインサ
ーキットエミュレータに接続されている状態(以下、ユ
ーザシステム接続と称す)では、ユーザシステムから供
給されるクロック(以下、ユーザクロックと称す)でユ
ーザプログラムを実行し、ユーザシステムと接続されて
いない状態(以下、ユーザシステム非接続と称す)で
は、インサーキットエミュレータの内部のクロック(以
下、内部クロックと称す)でユーザプログラムを実行す
る。
When the user system is connected to an in-circuit emulator using an emulation probe (hereinafter referred to as a user system connection), the emulation CPU described above uses a clock supplied from the user system (hereinafter referred to as a user clock). ), And executes the user program with a clock (hereinafter, referred to as an internal clock) inside the in-circuit emulator in a state where the user program is not connected to the user system (hereinafter, referred to as a user system non-connection). .

【0016】従来のインサーキットエミュレータは、ク
ロック切り替え時のエミュレーションCPUの誤動作を
防止するため、エミュレーションプローブの取り付け
時、あるいはエミュレーションプローブ取り外し時に、
手動でエミュレーションCPUをリセットしている。
[0016] The conventional in-circuit emulator is designed to prevent the malfunction of the emulation CPU at the time of clock switching, when attaching the emulation probe or removing the emulation probe.
The emulation CPU has been manually reset.

【0017】図9は従来のインサーキットエミュレータ
の構成を示す回路図である。
FIG. 9 is a circuit diagram showing a configuration of a conventional in-circuit emulator.

【0018】図9に示すように、従来のインサーキット
エミュレータ201は、エミュレーションCPU207
をリセットするためのリセット信号RESETを出力す
るリセット回路202を有している。
As shown in FIG. 9, a conventional in-circuit emulator 201 includes an emulation CPU 207.
Has a reset circuit 202 that outputs a reset signal RESET for resetting.

【0019】リセット回路202は、ユーザシステムか
ら供給されるリセット信号であるユーザリセット信号U
RESETを反転する第1のインバータ203と、第1
のインバータ203の出力信号、及びインサーキットエ
ミュレータ201がスーパーバイザ状態であるか否かを
示すスーパーバイザ状態信号SVMODの論理積結果で
あるユーザリセットマスク信号MURESETを出力す
る第1のNANDゲート204と、ユーザリセットマス
ク信号MURESET、及び制御ソフトウェアの命令に
よってエミュレーションCPU204に対して発せられ
る強制リセット信号CRESETの論理積結果を出力す
る第2のNANDゲート205と、第2のNANDゲー
ト205の出力信号を反転し、エミュレーションCPU
207に対するリセット信号RESETを出力する第2
のインバータ206とによって構成されている。
The reset circuit 202 has a user reset signal U which is a reset signal supplied from the user system.
A first inverter 203 for inverting RESET;
A first NAND gate 204 which outputs a user reset mask signal MURESET which is a logical product of an output signal of the inverter 203 and a supervisory state signal SVMOD indicating whether or not the in-circuit emulator 201 is in a supervisory state; A second NAND gate 205 for outputting a logical product of the mask signal MURESET and a forced reset signal CRESET issued to the emulation CPU 204 by an instruction of the control software; and an output signal of the second NAND gate 205 for inversion and emulation. CPU
207 that outputs a reset signal RESET to the
And the inverter 206.

【0020】このような構成において、エミュレーショ
ンCPU207は、基本的にユーザリセット信号URE
SETあるいは強制リセット信号CRESETによって
リセットされる。上述したエミュレーションプローブの
取り付け時、あるいはエミュレーションプローブ取り外
し時は、通常、ユーザリセット信号URESETによっ
てエミュレーションCPU207がリセットされる。な
お、エミュレーションCPU207がブレーク状態にあ
るときはスーパーバイザ状態信号SVMODによってユ
ーザリセット信号URESETがマスクされる。
In such a configuration, the emulation CPU 207 basically transmits the user reset signal URE
It is reset by SET or forced reset signal CRESET. When the above-described emulation probe is attached or the emulation probe is detached, the emulation CPU 207 is normally reset by the user reset signal URESET. When the emulation CPU 207 is in the break state, the user reset signal URESET is masked by the supervisor state signal SVMOD.

【0021】[0021]

【発明が解決しようとする課題】上記したような従来の
インサーキットエミュレータでは、ユーザシステム非接
続の状態で、エミュレーションCPUがブレーク状態か
らユーザ状態に切り替わると、エミュレーションCPU
はインサーキットエミュレータの内部クロックでユーザ
プログラムを実行する。
In the conventional in-circuit emulator as described above, when the emulation CPU switches from the break state to the user state in a state where the user system is not connected, the emulation CPU is not used.
Executes the user program with the internal clock of the in-circuit emulator.

【0022】このとき、ユーザシステムを接続してエミ
ュレーションCPUの動作クロックをユーザクロックに
切り替えると、エミュレーションCPUはクロック切り
替え時のクロック波形の乱れによって暴走するおそれが
あった。
At this time, if the user system is connected and the operation clock of the emulation CPU is switched to the user clock, the emulation CPU may run away due to the disturbance of the clock waveform at the time of switching the clock.

【0023】また、ユーザシステム接続の状態でエミュ
レーションCPUがユーザ状態にあるとき、ユーザシス
テムとの接続が外れると、ユーザクロックが供給されな
くなるためエミュレーションCPUの動作クロックは内
部クロックに切り換わる。このときも、エミュレーショ
ンCPUはクロック切り替え時のクロック波形の乱れに
よって暴走するおそれがあった。
When the emulation CPU is in the user state while the user system is connected, if the connection to the user system is disconnected, no user clock is supplied and the operation clock of the emulation CPU is switched to the internal clock. Also at this time, the emulation CPU may run away due to the disturbance of the clock waveform at the time of clock switching.

【0024】本発明は上記したような従来の技術が有す
る問題点を解決するためになされたものであり、クロッ
ク切り替え時に発生するエミュレーションCPUの暴走
を防止したインサーキットエミュレータを提供すること
を目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems of the prior art, and has as its object to provide an in-circuit emulator that prevents an emulation CPU from running away when a clock is switched. I do.

【0025】[0025]

【課題を解決するための手段】上記目的を達成するため
本発明のインサーキットエミュレータは、エミュレーシ
ョン対象であるユーザシステムが有するCPUの代替C
PUとして動作するエミュレーションCPUを内蔵する
インサーキットエミュレータであって、前記ユーザシス
テムから供給される前記エミュレーションCPUに対す
るリセット信号であるユーザリセット信号を、前記イン
サーキットエミュレータがスーパーバイザ状態であるか
否かを示すスーパーバイザ状態信号にしたがってマスク
するための第1のマスク回路と、前記ユーザシステムか
ら供給されるユーザ電源の有無を検出すると共に、該検
出結果を前記スーパーバイザ状態信号にしたがってマス
クするためのユーザ電源検出リセット回路と、前記第1
のマスク回路の出力信号であるユーザリセットマスク信
号、及び前記ユーザ電源検出リセット回路の出力信号で
あるユーザ電源マスク信号を統合し、前記エミュレーシ
ョンCPUをリセットするためのリセット信号を出力す
る第2のマスク回路と、を有する構成である。
In order to achieve the above object, an in-circuit emulator according to the present invention is a C-type substitute for a CPU of a user system to be emulated.
An in-circuit emulator including an emulation CPU that operates as a PU, and a user reset signal supplied from the user system, the reset signal for the emulation CPU indicating whether the in-circuit emulator is in a supervisor state. A first mask circuit for masking according to a supervisor status signal, and a user power detection reset for detecting presence / absence of user power supplied from the user system and masking the detection result according to the supervisor status signal A circuit;
A second mask for integrating a user reset mask signal as an output signal of the mask circuit and a user power mask signal as an output signal of the user power detection reset circuit, and outputting a reset signal for resetting the emulation CPU. And a circuit.

【0026】このとき、前記ユーザ電源検出リセット回
路は、前記ユーザ電源の有無を検出するユーザ電源検出
回路と、前記スーパーバイザ状態への切り替えを要求す
るスーパーバイザ割り込み要求信号及び前記スーパーバ
イザ状態信号から前記ユーザ電源検出回路の出力信号で
あるユーザ電源検出信号をマスクするためのスーパーバ
イザマスク信号を生成するスーパーバイザマスク信号生
成回路と、前記スーパーバイザマスク信号にしたがって
前記ユーザ電源検出信号をマスクするリセット信号・マ
スク信号統合回路と、を有する構成であってもよく、前
記ユーザ電源検出リセット回路は、前記ユーザシステム
から供給されるユーザ電源の有無を検出するユーザ電源
検出回路と、前記スーパーバイザ状態への切り替えを要
求するスーパーバイザ割り込み要求信号スーパーバイザ
割り込み要求信号及び前記スーパーバイザ状態信号から
前記ユーザ電源検出回路の出力信号であるユーザ電源検
出信号をマスクするためのスーパーバイザマスク信号を
生成するスーパーバイザマスク信号生成回路と、前記ユ
ーザシステムの接続状態または非接続状態に応じたステ
ータス信号であり、前記ユーザ電源検出信号をマスクす
るための信号を出力するユーザシステム接続切り替え信
号生成回路と、前記ユーザシステム接続切り替え信号生
成回路の出力信号、及び前記スーパーバイザマスク信号
にしたがって前記ユーザ電源検出信号をマスクするリセ
ット信号・マスク信号統合回路と、を有する構成であっ
てもよい。
At this time, the user power supply detection reset circuit includes a user power supply detection circuit for detecting the presence or absence of the user power supply, a supervisor interrupt request signal for requesting switching to the supervisor state, and the user power supply signal based on the supervisor state signal. A supervisor mask signal generation circuit for generating a supervisor mask signal for masking a user power detection signal which is an output signal of the detection circuit, and a reset signal / mask signal integration circuit for masking the user power detection signal according to the supervisor mask signal The user power detection reset circuit may include a user power detection circuit that detects the presence or absence of user power supplied from the user system, and a supervisor that requests switching to the supervisor state. A supervisor mask signal generation circuit for generating a supervisor mask signal for masking a user power detection signal which is an output signal of the user power detection circuit from the supervisor interrupt request signal and the supervisor state signal; A user system connection switching signal generation circuit that outputs a signal for masking the user power detection signal, which is a status signal according to a connection state or a non-connection state, and an output signal of the user system connection switching signal generation circuit, A reset signal / mask signal integration circuit for masking the user power supply detection signal in accordance with the supervisor mask signal.

【0027】また、前記ユーザ電源検出回路は、前記ユ
ーザ電源の電圧と所定の基準電圧とを比較し、前記基準
電圧に対する前記ユーザ電源の電圧の大小関係に応じた
ステータス信号を出力するコンパレータを有していても
よく、前記スーパーバイザマスク信号生成回路は、前記
スーパーバイザ割り込み要求信号、及び前記スーパーバ
イザ状態信号の論理積を出力する論理積ゲートであって
もよい。
Further, the user power supply detection circuit has a comparator for comparing the voltage of the user power supply with a predetermined reference voltage and outputting a status signal according to a magnitude relation of the voltage of the user power supply with respect to the reference voltage. The supervisor mask signal generation circuit may be an AND gate that outputs an AND of the supervisor interrupt request signal and the supervisor state signal.

【0028】さらに、前記ユーザシステム接続切り替え
信号生成回路は、前記ユーザシステムの接続状態または
非接続状態に応じて、ハイレベルまたはロウレベルを出
力するスイッチを有していてもよい。
Further, the user system connection switching signal generation circuit may include a switch for outputting a high level or a low level according to a connection state or a non-connection state of the user system.

【0029】上記のように構成されたインサーキットエ
ミュレータは、ユーザリセット信号をスーパーバイザ状
態信号にしたがってマスクするための第1のマスク回路
と、ユーザ電源の有無を検出すると共に、該検出結果を
スーパーバイザ状態信号にしたがってマスクするための
ユーザ電源検出リセット回路と、第1のマスク回路の出
力信号であるユーザリセットマスク信号、及びユーザ電
源検出リセット回路の出力信号であるユーザ電源マスク
信号を統合し、エミュレーションCPUをリセットする
ためのリセット信号を出力する第2のマスク回路とを有
することで、エミュレーションCPUがスーパーバイザ
状態にないとき、すなわちユーザ状態にあるときにユー
ザ電源の供給が途絶えると、ユーザ電源検出リセット回
路からエミュレーションCPUをリセットするための信
号が出力され、エミュレーションCPUは自動的にリセ
ットされる。
The in-circuit emulator configured as described above detects a first mask circuit for masking a user reset signal in accordance with a supervisor state signal, detects the presence or absence of a user power supply, and converts the detection result to a supervisor state. Emulating a user power detection reset circuit for masking according to a signal, a user reset mask signal as an output signal of the first mask circuit, and a user power mask signal as an output signal of the user power detection reset circuit; And a second mask circuit for outputting a reset signal for resetting the power supply. When the supply of user power is interrupted when the emulation CPU is not in the supervisor state, that is, in the user state, the user power detection reset circuit Emulation from ® is output signal to reset the down CPU, emulation CPU is automatically reset.

【0030】また、ユーザシステム接続切り替え信号
を、ユーザ電源検出信号をマスクするレベルに設定して
おけば、ユーザシステムが接続されていない状態であっ
ても、エミュレーションCPUがユーザ状態のときには
ユーザ電源検出リセット回路からエミュレーションCP
Uをリセットするための信号が出力されない。
If the user system connection switching signal is set to a level at which the user power supply detection signal is masked, the user power supply detection signal can be detected when the emulation CPU is in the user state even when the user system is not connected. Emulation CP from reset circuit
No signal for resetting U is output.

【0031】[0031]

【発明の実施の形態】次に本発明について図面を参照し
て説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0032】(第1の実施の形態)図1は本発明のイン
サーキットエミュレータの第1の実施の形態の構成を示
す回路図である。また、図2は図1に示したユーザ電源
検出回路の一構成例を示す回路図であり、図3は図1に
示したスーパーバイザマスク信号生成回路の一構成例を
示す回路図であり、図4は図1に示したリセット信号・
マスク信号統合回路の一構成例を示す回路図である。
(First Embodiment) FIG. 1 is a circuit diagram showing a configuration of an in-circuit emulator according to a first embodiment of the present invention. FIG. 2 is a circuit diagram showing a configuration example of the user power supply detection circuit shown in FIG. 1, and FIG. 3 is a circuit diagram showing a configuration example of a supervisor mask signal generation circuit shown in FIG. 4 is a reset signal shown in FIG.
FIG. 3 is a circuit diagram illustrating a configuration example of a mask signal integration circuit.

【0033】図1において、本実施の形態のインサーキ
ットエミュレータ1は、エミュレーションCPU7をリ
セットするためのリセット信号RESETを出力するリ
セット回路2を有している。
In FIG. 1, the in-circuit emulator 1 of the present embodiment has a reset circuit 2 for outputting a reset signal RESET for resetting the emulation CPU 7.

【0034】リセット回路2は、ユーザシステムから供
給されるエミュレーションCPU7に対するリセット信
号であるユーザリセット信号URESETを、インサー
キットエミュレータがスーパーバイザ状態であるか否か
を示すスーパーバイザ状態信号SVMODにしたがって
マスクするための第1のマスク回路8と、ユーザシステ
ムから供給されるユーザ電源電圧USRVDDからユー
ザ電源の有無を検出し、その検出結果をスーパーバイザ
状態信号SVMODにしたがってマスクするためのユー
ザ電源検出リセット回路3と、第1のマスク回路8の出
力信号であるユーザリセットマスク信号MURESET
、ユーザ電源検出リセット回路3の出力信号であるユ
ーザ電源マスク信号MPRESET、及び制御ソフトウ
ェアの命令によってエミュレーションCPU7に対して
発せられる強制リセット信号CRESETを統合し、エ
ミュレーションCPUをリセットするためのリセット信
号を出力する第2のマスク回路9とによって構成されて
いる。
The reset circuit 2 masks a user reset signal URESET, which is a reset signal for the emulation CPU 7 supplied from the user system, according to a supervisor state signal SVMOD indicating whether the in-circuit emulator is in a supervisor state. A first mask circuit 8, a user power supply detection reset circuit 3 for detecting the presence or absence of a user power supply from a user power supply voltage USRVDD supplied from a user system, and masking the detection result in accordance with a supervisor state signal SVMOD; User reset mask signal MURESET which is an output signal of the first mask circuit 8
A reset signal for resetting the emulation CPU by integrating a user power supply mask signal MPRESET which is an output signal of the user power supply detection reset circuit 3 and a forced reset signal CRESET which is issued to the emulation CPU 7 by a command of control software. And a second mask circuit 9.

【0035】第1のマスク回路8は、ユーザリセット信
号URESETを反転する第1のインバータ81と、第
1のインバータ81の出力信号、及びスーパーバイザ状
態信号SVMODの論理積結果であるユーザリセットマ
スク信号MURESETを出力する第1のNANDゲー
ト82とによって構成されている。
The first mask circuit 8 has a user reset mask signal MURESET which is a logical product of a first inverter 81 for inverting the user reset signal URESET, an output signal of the first inverter 81, and the supervisor state signal SVMOD. , And a first NAND gate 82 that outputs the same.

【0036】また、第2のマスク回路9は、ユーザリセ
ットマスク信号MURESET、ユーザ電源マスク信号
MPRESET、及び強制リセット信号CRESETの
論理積結果を出力する第2のNANDゲート91と、第
2のNANDゲート91の出力信号を反転し、リセット
信号RESETを出力する第2のインバータ92とによ
って構成されている。
The second mask circuit 9 comprises a second NAND gate 91 for outputting a logical product of the user reset mask signal MURESET, the user power supply mask signal MPRESET, and the forced reset signal CRESET, and a second NAND gate 91. A second inverter 92 inverts the output signal of the inverter 91 and outputs a reset signal RESET.

【0037】ユーザ電源検出リセット回路3は、ユーザ
システムからインサーキットエミュレータに供給される
ユーザ電源電圧USRVDDの有無を検出し、その検出
結果であるユーザ電源検出信号PRESETを出力する
ユーザ電源検出回路4と、スーパーバイザ状態への切り
替えを要求する制御CPUからのスーパーバイザ割り込
み要求信号SVI及びスーパーバイザ状態信号SVMO
Dにしたがってユーザ電源検出信号PRESETをマス
クするためのスーパーバイザマスク信号SVMASKを
出力するスーパーバイザマスク信号生成回路5と、ユー
ザ電源検出信号PRESET及びスーパーバイザマスク
信号SVMASKからユーザ電源マスク信号MPRES
ETを生成するリセット信号・マスク信号統合回路6と
によって構成されている。
The user power supply detection reset circuit 3 detects the presence or absence of the user power supply voltage USRVDD supplied from the user system to the in-circuit emulator, and outputs a user power supply detection signal PRESET as a detection result. , A supervisor interrupt request signal SVI and a supervisor state signal SVMO from the control CPU requesting switching to the supervisor state.
D, a supervisor mask signal generation circuit 5 for outputting a supervisor mask signal SVMASK for masking the user power detection signal PRESET, and a user power mask signal MPRES from the user power detection signal PRESET and the supervisor mask signal SVMASK.
And a reset signal / mask signal integration circuit 6 for generating ET.

【0038】図2に示すように、ユーザ電源検出回路4
は、コンパレータ41を有し、例えば、ユーザ電源電圧
USRVDDの電圧が所定の基準電位VREFよりも高
い場合はHiレベルを出力し、ユーザ電源電圧USRV
DDが基準電圧VREFよりも低い場合はLowレベル
を出力する。
As shown in FIG. 2, the user power supply detection circuit 4
Has a comparator 41, and outputs a Hi level when the voltage of the user power supply voltage USRVDD is higher than a predetermined reference potential VREF, for example.
When DD is lower than the reference voltage VREF, a low level is output.

【0039】図3に示すように、スーパーバイザマスク
信号生成回路5は、ANDゲート51を有し、例えば、
スーパーバイザ状態信号SVMOD及びスーパーバイザ
割り込み要求信号SVIが共にHiレベルのときはスー
パーバイザマスク信号SVMASKとしてHiレベルを
出力し、スーパーバイザ状態信号SVMODまたはスー
パーバイザ割り込み要求信号SVIのいずれかがLow
レベルのときはスーパーバイザマスク信号SVMASK
としてLowレベルを出力する。
As shown in FIG. 3, the supervisor mask signal generation circuit 5 has an AND gate 51.
When both the supervisor state signal SVMOD and the supervisor interrupt request signal SVI are at the Hi level, a high level is output as the supervisor mask signal SVMASK, and either the supervisor state signal SVMOD or the supervisor interrupt request signal SVI is Low.
At the level, the supervisor mask signal SVMASK
To output a low level.

【0040】図4に示すように、リセット信号・マスク
信号統合回路6は、ユーザ電源検出信号PRESETを
反転するインバータ61と、インバータ61の出力信号
及びスーパーバイザ状態信号SVMASKの論理積を出
力するNANDゲート62とを有している。リセット信
号・マスク信号統合回路6は、ユーザ電源マスク信号M
PRESETとして、スーパーバイザマスク信号SVM
ASKがLowレベルのときは常にHiレベルを出力
し、スーパーバイザマスク信号SVMASKがHiレベ
ルのときはユーザ電源検出信号PRESETと同じレベ
ルを出力する。
As shown in FIG. 4, the reset signal / mask signal integration circuit 6 includes an inverter 61 for inverting the user power supply detection signal PRESET, and a NAND gate for outputting the logical product of the output signal of the inverter 61 and the supervisor state signal SVMASK. 62. The reset signal / mask signal integration circuit 6 outputs the user power supply mask signal M
As the PRESET, the supervisor mask signal SVM
When the ASK is at the low level, it always outputs the Hi level, and when the supervisor mask signal SVMASK is at the Hi level, it outputs the same level as the user power supply detection signal PRESET.

【0041】次に、図1に示したインサーキットエミュ
レータの動作について図5を参照して説明する。
Next, the operation of the in-circuit emulator shown in FIG. 1 will be described with reference to FIG.

【0042】図5は図1に示したインサーキットエミュ
レータの動作の様子を示すタイミングチャートである。
なお、以下では、制御ソフトから強制リセット信号CR
ESETが供給されずにHiレベルで固定され、ユーザ
システムが常にインサーキットエミュレータに接続され
ているものとして説明する。
FIG. 5 is a timing chart showing the operation of the in-circuit emulator shown in FIG.
In the following, the forced reset signal CR is sent from the control software.
It is assumed that ESET is not supplied and is fixed at the Hi level, and the user system is always connected to the in-circuit emulator.

【0043】図5において、インサーキットエミュレー
タがスーパーバイザ状態で、かつユーザシステムが非接
続状態であるとき(時刻T0以前)、インサーキットエ
ミュレータ1にユーザ電源電圧USRVDDが供給され
ていないため、ユーザ電源検出信号PRESETはLo
wレベルになる。
In FIG. 5, when the in-circuit emulator is in the supervisor state and the user system is in the non-connected state (before time T0), the user power supply voltage USRVDD is not supplied to the in-circuit emulator 1; The signal PRESET is Lo
It becomes w level.

【0044】また、このときインサーキットエミュレー
タはスーパーバイザ状態であるため、スーパーバイザ状
態信号SVMODがLowレベル、スーパーバイザ割り
込み要求信号SVIがHiレベルであり、スーパーバイ
ザマスク信号SVMASKはLowレベルになる。した
がって、ユーザ電源検出信号PRESETはマスクさ
れ、ユーザ電源マスク信号MPRESETはHiレベル
になる。
At this time, since the in-circuit emulator is in the supervisor state, the supervisor state signal SVMOD is at the low level, the supervisor interrupt request signal SVI is at the high level, and the supervisor mask signal SVMASK is at the low level. Therefore, the user power supply detection signal PRESET is masked, and the user power supply mask signal MPRESET becomes Hi level.

【0045】また、図1に示すように第1のインバータ
81の入力がプルアップされているため、ユーザシステ
ム非接続状態のとき、ユーザリセット信号URESET
はHiレベルとなる。ユーザリセット信号URESRE
Tはスーパーバイザ状態信号SMVODがLowレベル
であるためにマスクされ、ユーザリセットマスク信号M
URESETはHiレベルになる。
Since the input of the first inverter 81 is pulled up as shown in FIG. 1, the user reset signal RESET is set when the user system is not connected.
Becomes Hi level. User reset signal URESRE
T is masked because the supervisor state signal SMVOD is at the low level, and the user reset mask signal M
URESET goes to Hi level.

【0046】したがって、エミュレーションCPU7に
対するRESET信号は、ユーザリセットマスク信号M
RESET及びユーザ電源マスク信号MPRESETが
それぞれHiレベルであるためにHiレベルとなり、エ
ミュレーションCPU7はりセット解除の状態にある。
Therefore, the RESET signal to the emulation CPU 7 is the user reset mask signal M
Since the RESET and the user power supply mask signal MPRESET are at the Hi level, respectively, they are set to the Hi level, and the emulation CPU 7 is in the reset release state.

【0047】続いて、時刻T0においてユーザプログラ
ムが実行されると、エミュレーションCPU7はユーザ
状態となり、スーパーバイザ状態信号SVMODがHi
レベルに切り替わるため、スーパーバイザマスク信号S
VMASKがHiレベルになり、ユーザ電源検出信号P
RESETに対するマスクが解除される。
Subsequently, when the user program is executed at time T0, the emulation CPU 7 enters the user state, and the supervisor state signal SVMOD becomes Hi.
Level, the supervisor mask signal S
VMASK becomes Hi level and the user power supply detection signal P
The mask for RESET is released.

【0048】このとき、ユーザ電源検出信号PRESE
TがLowレベルであるため、ユーザ電源マスク信号M
PRESETはLowレベルになり、リセット信号RE
SETがLowレベルに切り替わってエミュレーション
CPU7がリセットされる。
At this time, the user power supply detection signal PRESE
Since T is at the low level, the user power supply mask signal M
PRESET goes low, and the reset signal RE
SET switches to the low level, and the emulation CPU 7 is reset.

【0049】このような状態でエミュレーションCPU
7の動作クロックを内部クロックからユーザクロックに
切り替えようとしても、ユーザシステムが非接続状態で
あるためエミュレーションCPU7にはクロックが供給
されない。しかしながらエミュレーションCPU7はリ
セット状態にあるため問題は発生しない。
In such a state, the emulation CPU
Even if the operation clock of 7 is switched from the internal clock to the user clock, no clock is supplied to the emulation CPU 7 because the user system is not connected. However, no problem occurs because the emulation CPU 7 is in the reset state.

【0050】次に、時刻T1においてエミュレーション
プローブを用いてインサーキットエミュレータにユーザ
システムを接続すると(以下、単に「ユーザシステムを
接続する」と称す)、ユーザシステムからインサーキッ
トエミュレータ1にユーザ電源及びユーザクロックがそ
れぞれ供給される。ユーザ電源電圧USRVDDが供給
されると、ユーザ電源検出回路4はユーザ電源検出信号
PRESETをHiレベルに切り替える。
Next, when the user system is connected to the in-circuit emulator using the emulation probe at time T1 (hereinafter simply referred to as "connecting the user system"), the user power is supplied from the user system to the in-circuit emulator 1 and the user is connected to the in-circuit emulator 1. Clocks are supplied respectively. When the user power supply voltage USRVDD is supplied, the user power supply detection circuit 4 switches the user power supply detection signal PRESET to the Hi level.

【0051】このとき、スーパーバイザマスク信号SV
MASKは変化せずにHiレベルで維持され、ユーザ電
源検出信号PRESET信号がマスクされていないた
め、ユーザ電源マスク信号MPRESETがHiレベル
に切り替わり、エミュレーションCPU7のリセットが
解除される。
At this time, the supervisor mask signal SV
MASK is maintained at the Hi level without change, and the user power supply detection signal PRESET signal is not masked, so that the user power supply mask signal MPRESET is switched to the Hi level, and the reset of the emulation CPU 7 is released.

【0052】一般に、時刻T1で供給されたユーザクロ
ックの発振が安定する時刻T2まで、ユーザシステムは
ユーザリセット信号URESETをLowレベルにドラ
イブする。このとき、スーパーバイザ状態信号SVMO
Dは変化せずにHiレベルで維持されているため、ユー
ザリセットマスク信号MURESETはLowレベルに
切り替わる。
Generally, the user system drives the user reset signal URESET to a low level until time T2 when the oscillation of the user clock supplied at time T1 is stabilized. At this time, the supervisor state signal SVMO
Since D remains unchanged and remains at the Hi level, the user reset mask signal MURESET switches to the Low level.

【0053】よって、時刻T1ではユーザリセットマス
ク信号MURESETがLowレベル、ユーザ電源マス
ク信号MPRESETがHiレベルとなり、リセット信
号RESETがLowレベルで維持されるため、エミュ
レーションCPU7はリセット状態で維持される。
Therefore, at time T1, the user reset mask signal MURESET goes low, the user power supply mask signal MPRESET goes high, and the reset signal RESET is kept low, so that the emulation CPU 7 is kept in the reset state.

【0054】次に、時刻T2においてユーザクロックの
発振が安定すると、ユーザシステムはユーザリセット信
号URESETをHiレベルにドライブしてリセットを
解除する。このとき、スーパーバイザ状態信号SVMA
SKはHiレベルで維持され、ユーザリセット信号UR
ESETがマスクされていないため、ユーザリセットマ
スク信号MURESETはHiレベルに切り替わる。
Next, when the oscillation of the user clock is stabilized at time T2, the user system drives the user reset signal URESET to the Hi level to release the reset. At this time, the supervisor state signal SVMA
SK is maintained at the Hi level, and the user reset signal UR
Since the ESET is not masked, the user reset mask signal MURESET switches to the Hi level.

【0055】一方、ユーザ電源検出信号PRESETは
Hiレベルで維持され、ユーザ電源マスク信号MPRE
SETはHiレベルで維持されているため、リセット信
号RESETはHiレベルに切り替わり、エミュレーシ
ョンCPU7はリセットが解除されてユーザプログラム
にしたがって処理を実行する。
On the other hand, the user power supply detection signal PRESET is maintained at the Hi level, and the user power supply mask signal MPRE is maintained.
Since SET is maintained at the Hi level, the reset signal RESET is switched to the Hi level, and the emulation CPU 7 is released from the reset and executes processing according to the user program.

【0056】次に、時刻T3においてユーザシステムを
インサーキットエミュレータから外すと(以下、単に
「ユーザシステムを外す」と称す)、ユーザシステムか
らユーザ電源及びユーザクロックが供給されなくなる。
Next, when the user system is disconnected from the in-circuit emulator at time T3 (hereinafter, simply referred to as "disconnecting the user system"), the user power supply and the user clock are not supplied from the user system.

【0057】このとき、ユーザ電源検出信号PRESE
TはLowレベルに切り替わり、スーパーバイザマスク
信号SVMASKはHiレベルで維持されているため、
ユーザ電源マスク信号MPRESETはLowレベルに
切り替わる。
At this time, the user power supply detection signal PRESE
T switches to the low level, and the supervisor mask signal SVMASK is maintained at the high level.
The user power supply mask signal MPRESET is switched to a low level.

【0058】また、ユーザシステムが外されると、第1
のインバータ81の入力がプルアップされているために
ユーザリセット信号URESETがHiレベルになる。
このとき、スーパーバイザ状態信号SVMASKはHi
レベルで維持されているため、ユーザリセットマスク信
号MURESETはHiレベルで維持される。
When the user system is disconnected, the first
Of the inverter 81 is pulled up, the user reset signal URESET becomes Hi level.
At this time, the supervisor state signal SVMASK becomes Hi.
Therefore, the user reset mask signal MURESET is maintained at the Hi level.

【0059】したがって、ユーザ電源マスク信号MPR
ESETがLowレベル、ユーザリセットマスク信号M
URESETがHiレベルであるため、リセット信号R
ESETはLowレベルに切り替わり、エミュレーショ
ンCPU7は再びリセット状態になる。
Therefore, user power supply mask signal MPR
ESET is low level, user reset mask signal M
Since RESET is at the Hi level, the reset signal R
ESET is switched to the low level, and the emulation CPU 7 is reset again.

【0060】すなわち、本実施の形態のインサーキット
エミュレータでは、エミュレーションCPU7がユーザ
状態のときにユーザ電源及びユーザクロックの供給が途
絶えてもエミュレーションCPU7が自動的にリセット
される。このような状態で動作クロックをユーザクロッ
クから内部クロックに切り替えてもエミュレーションC
PU7が暴走することはない。
That is, in the in-circuit emulator of the present embodiment, the emulation CPU 7 is automatically reset even when the supply of the user power supply and the user clock is interrupted when the emulation CPU 7 is in the user state. In such a state, even if the operation clock is switched from the user clock to the internal clock, the emulation C
PU7 does not run away.

【0061】次に、時刻T4においてエミュレーション
CPU7がブレーク状態に移行すると、スーパーバイザ
割り込み要求信号SVIがLowレベルになるため、ス
ーパーバイザマスク信号SVMASKがLowレベルと
なり、ユーザ電源検出信号PRESETはスーパーバイ
ザマスク信号SVMASK信号によってマスクされる。
このとき、ユーザ電源検出信号PRESETはLowレ
ベルであるが、スーパーバイザマスク信号SVMASK
によってマスクされているため、ユーザ電源マスク信号
MPRESETはHiレベルになる。
Next, when the emulation CPU 7 shifts to the break state at time T4, the supervisor interrupt request signal SVI goes low, the supervisor mask signal SVMASK goes low, and the user power supply detection signal PRESET becomes the supervisor mask signal SVMASK signal. Masked by
At this time, the user power supply detection signal PRESET is at the low level, but the supervisor mask signal SVMASK
, The user power supply mask signal MPRESET becomes Hi level.

【0062】一方、ユーザリセット信号URESETは
プルアップされているためHiレベルで維持され、スー
パーバイザ状態信号SVMODがHiレベルであるた
め、ユーザリセットマスク信号MURESETはHiレ
ベルで維持される。
On the other hand, since the user reset signal URESET is pulled up, it is maintained at the Hi level. Since the supervisor state signal SVMOD is at the Hi level, the user reset mask signal MURESET is maintained at the Hi level.

【0063】したがって、ユーザ電源マスク信号MPR
ESET、及びユーザリセットマスク信号MURESE
TがそれぞれHiレベルであるため、リセット信号RE
SETはHiレベルとなり、エミュレーションCPU7
はリセット状態が解除されて動作を再開する。
Therefore, user power supply mask signal MPR
ESET and user reset mask signal MURESE
Since T is at the Hi level, the reset signal RE
SET becomes Hi level, and the emulation CPU 7
Is reset and the operation resumes.

【0064】次に、時刻T5においてエミュレーション
CPU7がスーパーバイザ割り込み要求信号SVIを受
け付け、インサーキットエミュレータ1がスーザーバイ
ザ状態に移行すると、スーパーバイザ状態信号SVMO
DがLowレベルとなり、スーパーバイザ割り込み要求
信号SVIがHiレベルにクリアされる。
Next, at time T5, when the emulation CPU 7 receives the supervisor interrupt request signal SVI and the in-circuit emulator 1 shifts to the supervisor state, the supervisor state signal SVMO
D becomes Low level, and the supervisor interrupt request signal SVI is cleared to Hi level.

【0065】このとき、スーパーバイザマスク信号SV
MASKSはLowレベルで維持され、ユーザ電源検出
信号PRESETがマスクされるため、ユーザ電源マス
ク信号MPRESETはHiレベルで維持される。
At this time, the supervisor mask signal SV
Since MASKS is maintained at the low level and the user power supply detection signal PRESET is masked, the user power supply mask signal MPRESET is maintained at the Hi level.

【0066】一方、ユーザリセット信号URESET信
号はHiレベルで維持されているため、ユーザリセット
マスク信号MUPRESET信号はHiレベルで維持さ
れる。
On the other hand, since the user reset signal URESET is maintained at the Hi level, the user reset mask signal MUPRESET is maintained at the Hi level.

【0067】よって、ユーザ電源マスク信号MPRES
ET及びユーザリセットマスク信号MURESETがそ
れぞれHiレベルであるため、リセット信号RESET
がHiレベルで維持され、エミュレーションCPU7は
リセット解除の状態で維持される。
Therefore, user power supply mask signal MPRES
Since the ET and the user reset mask signal MURESET are at the Hi level, the reset signal RESET is
Are maintained at the Hi level, and the emulation CPU 7 is maintained in the reset release state.

【0068】以上説明したように、本実施の形態のイン
サーキットエミュレータは、ユーザシステム非接続状態
のときに、エミュレーションCPUがブレーク状態から
ユーザ状態になると(図5のT0〜T1間、T3〜T4
間)、エミュレーションCPU7が自動的にリセットさ
れるため、クロック切り替え時のクロック波形の乱れに
よるエミュレーションCPU7の暴走を回避することが
できる。
As described above, the in-circuit emulator of the present embodiment operates when the emulation CPU changes from the break state to the user state when the user system is not connected (between T0 and T1 in FIG. 5, T3 and T4 in FIG. 5).
In the meantime, since the emulation CPU 7 is automatically reset, runaway of the emulation CPU 7 due to the disturbance of the clock waveform at the time of clock switching can be avoided.

【0069】(第2の実施の形態)次に本発明のインサ
ーキットエミュレータの第2の実施の形態について説明
する。
(Second Embodiment) Next, a description will be given of a second embodiment of the in-circuit emulator according to the present invention.

【0070】図6は本発明のインサーキットエミュレー
タの第2の実施の形態の構成を示す回路図である。ま
た、図7は図6に示したリセット信号・マスク信号統合
回路の一構成例を示す回路図であり、図8は図6に示し
たユーザシステム接続切り替え信号生成回路の一構成例
を示す回路図である。
FIG. 6 is a circuit diagram showing the configuration of a second embodiment of the in-circuit emulator of the present invention. FIG. 7 is a circuit diagram showing an example of the configuration of the reset signal / mask signal integration circuit shown in FIG. 6, and FIG. 8 is a circuit showing an example of the configuration of the user system connection switching signal generation circuit shown in FIG. FIG.

【0071】図6において、第2の実施の形態のインサ
ーキットエミュレータは、第1の実施の形態のユーザ電
源検出リセット回路に、ユーザシステムの接続状態また
は非接続状態に応じたステータス信号であり、ユーザ電
源検出信号をマスクするためのユーザシステム接続切り
替え信号EMDMASKを出力するユーザシステム接続
切り替え信号生成回路11を追加し、リセット信号・マ
スク信号統合回路10にユーザシステム接続切り替え信
号生成回路11から出力されるユーザシステム接続切り
替え信号EMDMASKが入力される構成である。その
他の構成は第1の実施の形態と同様であるため、その説
明は省略する。
In FIG. 6, the in-circuit emulator according to the second embodiment provides a status signal according to the connection state or non-connection state of the user system to the user power detection reset circuit of the first embodiment. A user system connection switching signal generation circuit 11 for outputting a user system connection switching signal EMDMASK for masking a user power supply detection signal is added. In this configuration, a user system connection switching signal EMDMASK is input. The other configuration is the same as that of the first embodiment, and the description is omitted.

【0072】本実施の形態のリセット信号・マスク信号
統合回路10は、スーパーバイザマスク信号SVMAS
Kだけでなくユーザシステム接続切り替え信号EMDM
ASKもユーザ電源検出信号PRESETをマスクする
働きを有している。
The reset signal / mask signal integration circuit 10 according to the present embodiment includes a supervisor mask signal SVMAS.
Not only K but also user system connection switching signal EMDM
ASK also has a function of masking the user power supply detection signal PRESET.

【0073】図7に示すように、リセット信号・マスク
信号統合回路10は、ユーザ電源検出信号PRESET
を反転するインバータ101と、インバータ101の出
力信号、ユーザシステム接続切り替え信号EMDMAS
K、及びスーパーバイザ状態信号SVMASKの論理積
を出力する3入力のNANDゲート102とを有してい
る。
As shown in FIG. 7, the reset signal / mask signal integration circuit 10 outputs a user power supply detection signal PRESET.
101, an output signal of the inverter 101, a user system connection switching signal EMDMAS
K, and a three-input NAND gate 102 that outputs the logical product of K and the supervisor state signal SVMASK.

【0074】本実施の形態のリセット信号・マスク信号
統合回路10は、例えば、ユーザ電源マスク信号MPR
ESETとして、スーパーバイザマスク信号SVMAS
K、ユーザシステム接続切り替え信号EMDMASKの
いずれかがLowレベルのときは常にHiレベルを出力
し、スーパーバイザマスク信号SVMASK及びユーザ
システム接続切り替え信号EMDMASK共にHiレベ
ルのときはユーザ電源検出信号PRESETと同じレベ
ルを出力する。
The reset signal / mask signal integration circuit 10 according to the present embodiment includes, for example, a user power supply mask signal MPR
As the ESET, the supervisor mask signal SVMAS
K, when any one of the user system connection switching signal EMDMASK is at a low level, a high level is output. When both the supervisor mask signal SVMASK and the user system connection switching signal EMDMASK are at a high level, the same level as the user power supply detection signal PRESET is set. Output.

【0075】図8に示すように、ユーザシステム接続切
り替え信号生成回路11は、ユーザシステム接続切り替
え信号EMDASKとしてHiレベル(電源電圧VC
C)またはLowレベル(接地電位)のいずれかを出力
するためのスイッチ111を有している。なお、図8に
示したスイッチ111は手動で出力電圧を切り替える構
成である。
As shown in FIG. 8, the user system connection switching signal generation circuit 11 outputs the user system connection switching signal EMDASK as Hi level (power supply voltage VC
C) or a switch 111 for outputting either a low level (ground potential). Note that the switch 111 shown in FIG. 8 is configured to manually switch the output voltage.

【0076】ユーザシステム接続切り替え信号ENDM
ASKは、エミュレーション時にユーザシステム接続の
場合はHiレベルに設定し、ユーザシステム非接続の場
合はLowレベルに設定する。なお、ユーザシステム接
続切り替え信号生成回路11は、図8に示したスイッチ
111の他にコマンド入力によってユーザシステム接続
切り替え信号EMDMASKのレベルを切り替える構成
であってもよい。
User system connection switching signal ENDM
The ASK is set to the Hi level when the user system is connected during the emulation, and is set to the Low level when the user system is not connected. Note that the user system connection switching signal generation circuit 11 may be configured to switch the level of the user system connection switching signal EMDMASK by a command input in addition to the switch 111 shown in FIG.

【0077】このような構成において、第1の実施の形
態のインサーキットエミュレータでは、エミュレーショ
ンCPUがブレーク状態の期間(図5の時刻T0以前、
時刻T4以後の期間)で、ユーザ電源検出信号PRES
ETがスーパーバイザマスク信号SVMASKによって
マスクされていた。また、エミュレーションCPUがユ
ーザ状態の期間では(図5の時刻T0〜T4の期間)、
ユーザ電源検出信号PRESETがスーパーバイザマス
ク信号SVMASKによってマスクされないため、ユー
ザシステム非接続ではユーザ電源マスク信号MPRES
ETがLowレベルとなり、エミュレーションCPUは
リセットされていた。
In such a configuration, in the in-circuit emulator according to the first embodiment, the emulation CPU is in the break state (before time T0 in FIG. 5).
(Period after time T4), the user power detection signal PRES
ET was masked by the supervisor mask signal SVMASK. Also, during the period when the emulation CPU is in the user state (period T0 to T4 in FIG. 5),
Since the user power supply detection signal PRESET is not masked by the supervisor mask signal SVMASK, the user power supply mask signal MPRES is output when the user system is not connected.
ET goes to the low level, and the emulation CPU has been reset.

【0078】一方、第2の実施の形態のインサーキット
エミュレータでは、ユーザシステム接続切り替え信号E
MDMASKをLowレベルにしておくことにより、ユ
ーザ状態のときにユーザ電源検出信号PRESETがマ
スクされ、ユーザシステム非接続でユーザ電源検出信号
PRESETがLowレベルであっても、ユーザ電源マ
スク信号MPRESETは常にHiレベルで維持され
る。また、ユーザシステム非接続では、第1のインバー
タの入力がプルアップされているため、ユーザリセット
信号URESETはHiレベルで維持される。
On the other hand, in the in-circuit emulator according to the second embodiment, the user system connection switching signal E
By setting MDMASK to Low level, the user power supply detection signal PRESET is masked in the user state, and even when the user system is not connected and the user power supply detection signal PRESET is at Low level, the user power supply mask signal MPRESET is always Hi. Maintained at the level. When the user system is not connected, the input of the first inverter is pulled up, so that the user reset signal URESET is maintained at the Hi level.

【0079】よって、ユーザシステム接続切り替え信号
EMDMASKをLowレベルにしておけば、ユーザシ
ステム非接続状態であっても、ユーザ状態のときにはユ
ーザ電源マスク信号MPRESET及びユーザリセット
マスク信号MURESETが常にHiレベルで維持さ
れ、エミュレーションCPUはリセットされない。
Therefore, if the user system connection switching signal EMDMASK is set to the low level, the user power supply mask signal MPRESET and the user reset mask signal MURESET are always maintained at the high level in the user state even when the user system is not connected. And the emulation CPU is not reset.

【0080】したがって、ユーザシステムを接続しない
状態でも、ユーザプログラムを実行することができ、ユ
ーザシステムがなくてもユーザプログラムのデバッグが
可能になる。なお、ユーザシステム接続切り替え信号E
MDMASKをLowレベルに設定した場合は第1の実
施の形態と同様に動作する。
Therefore, the user program can be executed even when the user system is not connected, and the user program can be debugged without the user system. The user system connection switching signal E
When MDMASK is set to Low level, the operation is the same as in the first embodiment.

【0081】[0081]

【発明の効果】本発明は以上説明したように構成されて
いるので、以下に記載する効果を奏する。
Since the present invention is configured as described above, the following effects can be obtained.

【0082】ユーザリセット信号をスーパーバイザ状態
信号にしたがってマスクするための第1のマスク回路
と、ユーザ電源の有無を検出すると共に、該検出結果を
スーパーバイザ状態信号にしたがってマスクするための
ユーザ電源検出リセット回路と、第1のマスク回路の出
力信号であるユーザリセットマスク信号、及びユーザ電
源検出リセット回路の出力信号であるユーザ電源マスク
信号を統合し、エミュレーションCPUをリセットする
ためのリセット信号を出力する第2のマスク回路とを有
することで、エミュレーションCPUがスーパーバイザ
状態にないとき、すなわちユーザ状態にあるときにユー
ザ電源の供給が途絶えると、ユーザ電源検出リセット回
路からエミュレーションCPUをリセットするための信
号が出力され、エミュレーションCPUは自動的にリセ
ットされる。したがって、クロック切り替え時のクロッ
ク波形の乱れによるエミュレーションCPUの暴走を回
避することができる。
A first mask circuit for masking a user reset signal according to a supervisor state signal, and a user power supply detection reset circuit for detecting presence or absence of a user power supply and masking the detection result according to a supervisor state signal A user reset mask signal that is an output signal of the first mask circuit and a user power mask signal that is an output signal of the user power detection reset circuit, and outputs a reset signal for resetting the emulation CPU. When the supply of user power is interrupted when the emulation CPU is not in the supervisor state, that is, in the user state, a signal for resetting the emulation CPU is output from the user power detection reset circuit. , Emi Configuration CPU is automatically reset. Therefore, runaway of the emulation CPU due to the disturbance of the clock waveform at the time of clock switching can be avoided.

【0083】また、ユーザシステム接続切り替え信号
を、ユーザ電源検出信号をマスクするレベルに設定して
おけば、ユーザシステムが接続されていない状態であっ
ても、エミュレーションCPUがユーザ状態のときには
ユーザ電源検出リセット回路からエミュレーションCP
Uをリセットするための信号が出力されない。したがっ
て、ユーザシステムを接続しない状態でもユーザプログ
ラムを実行することができるため、ユーザシステムがな
くてもユーザプログラムのデバッグが可能になる。
If the user system connection switching signal is set to a level at which the user power supply detection signal is masked, even when the user system is not connected, when the emulation CPU is in the user state, the user power supply detection signal is detected. Emulation CP from reset circuit
No signal for resetting U is output. Therefore, since the user program can be executed even when the user system is not connected, the user program can be debugged without the user system.

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

【図1】本発明のインサーキットエミュレータの第1の
実施の形態の構成を示す回路図である。
FIG. 1 is a circuit diagram showing a configuration of a first embodiment of an in-circuit emulator of the present invention.

【図2】図1に示したユーザ電源検出回路の一構成例を
示す回路図である。
FIG. 2 is a circuit diagram illustrating a configuration example of a user power supply detection circuit illustrated in FIG. 1;

【図3】図1に示したスーパーバイザマスク信号生成回
路の一構成例を示す回路図である。
FIG. 3 is a circuit diagram illustrating a configuration example of a supervisor mask signal generation circuit illustrated in FIG. 1;

【図4】図1に示したリセット信号・マスク信号統合回
路の一構成例を示す回路図である。
FIG. 4 is a circuit diagram showing a configuration example of a reset signal / mask signal integration circuit shown in FIG. 1;

【図5】図1に示したインサーキットエミュレータの動
作の様子を示すタイミングチャートである。
FIG. 5 is a timing chart showing an operation of the in-circuit emulator shown in FIG. 1;

【図6】本発明のインサーキットエミュレータの第2の
実施の形態の構成を示す回路図である。
FIG. 6 is a circuit diagram showing a configuration of a second embodiment of the in-circuit emulator of the present invention.

【図7】図6に示したリセット信号・マスク信号統合回
路の一構成例を示す回路図である。
FIG. 7 is a circuit diagram showing a configuration example of a reset signal / mask signal integration circuit shown in FIG. 6;

【図8】図6に示したユーザシステム接続切り替え信号
生成回路の一構成例を示す回路図である。
8 is a circuit diagram illustrating a configuration example of a user system connection switching signal generation circuit illustrated in FIG. 6;

【図9】従来のインサーキットエミュレータの構成を示
す回路図である。
FIG. 9 is a circuit diagram showing a configuration of a conventional in-circuit emulator.

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

1 インサーキットエミュレータ 2 リセット回路 3 ユーザ電源検出リセット回路 4 ユーザ電源検出回路 5 スーパーバイザマスク信号生成回路 6、10 リセット信号・マスク信号統合回路 7 エミュレーションCPU 8 第1のマスク回路 9 第2のマスク回路 11 ユーザシステム接続切替え信号生成回路 81 第1のインバータ 82 第1のNANDゲート 91 第2のNANDゲート 92 第2のインバータ 41 コンパレータ 51 ANDゲート 61、101 インバータ 62、102 NANDゲート 111 スイッチ REFERENCE SIGNS LIST 1 In-circuit emulator 2 Reset circuit 3 User power detection reset circuit 4 User power detection circuit 5 Supervisor mask signal generation circuit 6, 10 Reset signal / mask signal integration circuit 7 Emulation CPU 8 First mask circuit 9 Second mask circuit 11 User system connection switching signal generation circuit 81 First inverter 82 First NAND gate 91 Second NAND gate 92 Second inverter 41 Comparator 51 AND gate 61, 101 Inverter 62, 102 NAND gate 111 Switch

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 エミュレーション対象であるユーザシス
テムが有するCPUの代替CPUとして動作するエミュ
レーションCPUを内蔵するインサーキットエミュレー
タであって、 前記ユーザシステムから供給される前記エミュレーショ
ンCPUに対するリセット信号であるユーザリセット信
号を、前記インサーキットエミュレータがスーパーバイ
ザ状態であるか否かを示すスーパーバイザ状態信号にし
たがってマスクするための第1のマスク回路と、 前記ユーザシステムから供給されるユーザ電源の有無を
検出すると共に、該検出結果を前記スーパーバイザ状態
信号にしたがってマスクするためのユーザ電源検出リセ
ット回路と、 前記第1のマスク回路の出力信号であるユーザリセット
マスク信号、及び前記ユーザ電源検出リセット回路の出
力信号であるユーザ電源マスク信号を統合し、前記エミ
ュレーションCPUをリセットするためのリセット信号
を出力する第2のマスク回路と、を有するインサーキッ
トエミュレータ。
1. An in-circuit emulator incorporating an emulation CPU that operates as a substitute CPU for a CPU of a user system to be emulated, wherein the user reset signal is a reset signal supplied from the user system to the emulation CPU. A first mask circuit for masking the in-circuit emulator in accordance with a supervisory state signal indicating whether or not the in-circuit emulator is in a supervisory state. A user power detection reset circuit for masking a result according to the supervisor state signal, a user reset mask signal which is an output signal of the first mask circuit, and a user power detection reset circuit. A second mask circuit that integrates a user power supply mask signal as an output signal and outputs a reset signal for resetting the emulation CPU.
【請求項2】 前記ユーザ電源検出リセット回路は、 前記ユーザ電源の有無を検出するユーザ電源検出回路
と、 前記スーパーバイザ状態への切り替えを要求するスーパ
ーバイザ割り込み要求信号及び前記スーパーバイザ状態
信号から前記ユーザ電源検出回路の出力信号であるユー
ザ電源検出信号をマスクするためのスーパーバイザマス
ク信号を生成するスーパーバイザマスク信号生成回路
と、 前記スーパーバイザマスク信号にしたがって前記ユーザ
電源検出信号をマスクするリセット信号・マスク信号統
合回路と、を有する請求項1記載のインサーキットエミ
ュレータ。
2. The user power supply detection reset circuit, comprising: a user power supply detection circuit for detecting presence / absence of the user power supply; A supervisor mask signal generation circuit that generates a supervisor mask signal for masking a user power detection signal that is an output signal of the circuit; and a reset signal / mask signal integration circuit that masks the user power detection signal according to the supervisor mask signal. The in-circuit emulator according to claim 1, comprising:
【請求項3】 前記ユーザ電源検出リセット回路は、 前記ユーザシステムから供給されるユーザ電源の有無を
検出するユーザ電源検出回路と、 前記スーパーバイザ状態への切り替えを要求するスーパ
ーバイザ割り込み要求信号スーパーバイザ割り込み要求
信号及び前記スーパーバイザ状態信号から前記ユーザ電
源検出回路の出力信号であるユーザ電源検出信号をマス
クするためのスーパーバイザマスク信号を生成するスー
パーバイザマスク信号生成回路と、 前記ユーザシステムの接続状態または非接続状態に応じ
たステータス信号であり、前記ユーザ電源検出信号をマ
スクするための信号を出力するユーザシステム接続切り
替え信号生成回路と、 前記ユーザシステム接続切り替え信号生成回路の出力信
号、及び前記スーパーバイザマスク信号にしたがって前
記ユーザ電源検出信号をマスクするリセット信号・マス
ク信号統合回路と、を有する請求項1記載のインサーキ
ットエミュレータ。
3. The user power supply detection reset circuit, comprising: a user power supply detection circuit for detecting presence / absence of user power supplied from the user system; and a supervisory interrupt request signal for requesting switching to the supervisory state. And a supervisor mask signal generation circuit for generating a supervisor mask signal for masking a user power detection signal, which is an output signal of the user power detection circuit, from the supervisor status signal, according to a connection state or a non-connection state of the user system. A user system connection switching signal generation circuit that outputs a signal for masking the user power supply detection signal, an output signal of the user system connection switching signal generation circuit, and the supervisor mask signal. In-circuit emulator according to claim 1 having a, a reset signal, mask signal integration circuit for masking the user power detection signal in accordance with.
【請求項4】 前記ユーザ電源検出回路は、 前記ユーザ電源の電圧と所定の基準電圧とを比較し、前
記基準電圧に対する前記ユーザ電源の電圧の大小関係に
応じたステータス信号を出力するコンパレータを有する
請求項2または3記載のインサーキットエミュレータ。
4. The user power supply detection circuit has a comparator that compares a voltage of the user power supply with a predetermined reference voltage and outputs a status signal according to a magnitude relationship between the voltage of the user power supply and the reference voltage. The in-circuit emulator according to claim 2.
【請求項5】 前記スーパーバイザマスク信号生成回路
は、 前記スーパーバイザ割り込み要求信号、及び前記スーパ
ーバイザ状態信号の論理積を出力する論理積ゲートであ
る請求項2または3記載のインサーキットエミュレー
タ。
5. The in-circuit emulator according to claim 2, wherein the supervisor mask signal generation circuit is an AND gate that outputs an AND of the supervisor interrupt request signal and the supervisor state signal.
【請求項6】 前記ユーザシステム接続切り替え信号生
成回路は、 前記ユーザシステムの接続状態または非接続状態に応じ
て、ハイレベルまたはロウレベルを出力するスイッチを
有する請求項3記載のインサーキットエミュレータ。
6. The in-circuit emulator according to claim 3, wherein the user system connection switching signal generation circuit has a switch that outputs a high level or a low level according to a connection state or a non-connection state of the user system.
JP11109383A 1999-04-16 1999-04-16 In-circuit emulator Pending JP2000305802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11109383A JP2000305802A (en) 1999-04-16 1999-04-16 In-circuit emulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11109383A JP2000305802A (en) 1999-04-16 1999-04-16 In-circuit emulator

Publications (1)

Publication Number Publication Date
JP2000305802A true JP2000305802A (en) 2000-11-02

Family

ID=14508859

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11109383A Pending JP2000305802A (en) 1999-04-16 1999-04-16 In-circuit emulator

Country Status (1)

Country Link
JP (1) JP2000305802A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115237700A (en) * 2022-07-29 2022-10-25 苏州浪潮智能科技有限公司 A kind of CPU installation detection method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115237700A (en) * 2022-07-29 2022-10-25 苏州浪潮智能科技有限公司 A kind of CPU installation detection method and system

Similar Documents

Publication Publication Date Title
US7236921B1 (en) In-circuit emulator with gatekeeper based halt control
JPH06314213A (en) Debugging device
EP0313848A2 (en) Data processor with development support features
JP2002358212A (en) Microcomputer with debug support function
US6584573B1 (en) Placing a computer system into a sleeping state
US7437283B2 (en) System for evaluating target board by using evaluation microcomputer in which storage of environment data are powered by evaluation tool
JP2001209556A (en) Verification support system
US20100332905A1 (en) Program execution device and method for controlling the same
JPH0477833A (en) Integrated circuit provided with debugging environment
JPH0550016B2 (en)
KR20050038467A (en) Mcu circuit and mcu control method
JP3209144B2 (en) Microprocessor
JPH0565894B2 (en)
JPS60245052A (en) Data processing system
JPS61112250A (en) Data processing system
JP3449812B2 (en) Control electronics
JPS59202548A (en) Debugging device
JP2632891B2 (en) System development equipment
JP3110418B2 (en) In-circuit emulator and control method
JPS634348A (en) Data processor
JP3087481B2 (en) In-circuit emulator
JPH04123235A (en) Debugging method and system for microprogram
JPS61166640A (en) Program action analyzer
CN120752622A (en) Architecture to prevent deadlock between controllers
JPH021032A (en) Emulation chip

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060119