JPH0343837A - Debugging device - Google Patents

Debugging device

Info

Publication number
JPH0343837A
JPH0343837A JP1179639A JP17963989A JPH0343837A JP H0343837 A JPH0343837 A JP H0343837A JP 1179639 A JP1179639 A JP 1179639A JP 17963989 A JP17963989 A JP 17963989A JP H0343837 A JPH0343837 A JP H0343837A
Authority
JP
Japan
Prior art keywords
user system
signal
erm
emulator
memory
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
JP1179639A
Other languages
Japanese (ja)
Inventor
Hiroshi Terada
博 寺田
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.)
Hitachi Microcomputer System Ltd
Original Assignee
Hitachi Microcomputer Engineering 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 Hitachi Microcomputer Engineering Ltd filed Critical Hitachi Microcomputer Engineering Ltd
Priority to JP1179639A priority Critical patent/JPH0343837A/en
Publication of JPH0343837A publication Critical patent/JPH0343837A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To smoothly carry out a debugging operation via an emulator even if the hardware of a user system includes a defective area by outputting the logical result of the signal extracted from an optional area of the user system via a leased memory contained in an emulator. CONSTITUTION:A rewritable memory ERM is added into an emulator and a sampling means HMPU is connected to an address input terminal and a data input/output terminal of the ERM via the signal switch circuits ACG and DCG. At the same time, such data that is set in a desired output state in a prescribed address input state is previously written into the ERM. Then the signal sampled out of a user system is inputted to the address input/output terminal of the ERM, and the data signal read out of the ERM is sent back to a prescribed area of the user system as a logical output signal. As a result, the ERM can be used as a substitute circuit for a logic circuit in the user system. Thus the emulation can be carried out even if the user system includes a defective area.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、デバッグ技術さらにはデバッグ対象とされる
マイクロコンピュータ・システムを評価する技術に関し
、例えばインサーキット・エミュレータに適用して有効
な技術に関するものである。
Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a debugging technique and a technique for evaluating a microcomputer system to be debugged, and relates to a technique that is effective when applied to an in-circuit emulator, for example. It is something.

[従来の技術] マイクロコンピュータ応用機器の開発において。[Conventional technology] In the development of microcomputer application equipment.

その応用システムのデバッグやそのシステムの詳細な評
価を行なうため、インサーキット・エミュレータが使用
されている。インサーキット・エミュレータは、ソフト
ウェア開発用の親計算機(ホストコンピュータ)やコン
ソールなどからなるシステム開発装置と開発中の応用機
器との間に接続され、その応用機器に含まれるマイクロ
プロセッサ(以下ターゲットプロセッサと称する)の機
能を代行する一方でデバッガ−1とじての機能を持つ。
In-circuit emulators are used to debug the application system and perform detailed evaluation of the system. An in-circuit emulator is connected between a system development device such as a parent computer (host computer) or console for software development and an application device under development, and is connected to a microprocessor (hereinafter referred to as a target processor) included in the application device. It has the same functions as the debugger 1 while acting on behalf of the functions of the debugger 1.

斯るインサーキット・エミュレータは、その本体から延
長されたケーブルの先端のプラグが、応用機器に設けら
れたターゲットマイクロプロセッサ用ソケッ1−に結合
されることにより、工゛ミュレーション用マイクロプロ
セッサがターゲットマイクロプロセッサの機能を代行す
るようなエミュレーション機能を備える。更に、エミュ
レーション尖行中に各種データやステータス信Zなどを
実時間でサンプリングし、それをトレースメモリ部など
に格納する実時間1−レース機能や、エミュレーション
用マイグロプロセッサによる応用機器の制御動作を実質
的に停止させるブレーク機能等各種デバッグ機能を備え
ている(昭和56年11月30日オーム社発行、「LS
IハンドブックJ P 562〜P563参照)。
In such an in-circuit emulator, the plug at the end of a cable extended from the main body is connected to the target microprocessor socket 1 provided in the application equipment, so that the emulation microprocessor can be connected to the target microprocessor. It has an emulation function that takes over the functions of a microprocessor. Furthermore, there is a real-time 1-race function that samples various data and status signals Z in real time during emulation and stores them in the trace memory section, and controls operation of applied equipment using the emulation microprocessor. Equipped with various debugging functions such as a break function that effectively stops the
(See I Handbook JP 562-563).

また、従来のエミュレータは、ユーザシステムが未完成
の状態でもデバッグを行なえるようにするため、貸出し
メモリ、■/○貸出し等と称し、サポートするマイクロ
プロセッサの機能をエミュレータ内部の機能で代行させ
るサービス機能が設けられている。このような貸出し機
能により、マスクROM部分のプログラムの開発や■/
○に関連するハードウェアのデバッグ効率が向上する。
In addition, in order to enable debugging even when the user system is unfinished, conventional emulators provide services called lent memory, ■/○ lent, etc., in which the functions of the supported microprocessor are substituted by the emulator's internal functions. Functions are provided. With this lending function, you can develop programs for the mask ROM part and
The debugging efficiency of hardware related to ○ will be improved.

[発明が解決しようとする課題] しかしながら、従来のエミュレータは、エミュレーショ
ン対象となるマイクロプロセッサそのものの機能に関連
するROMやIloについて、エミュレータ内部にその
ハードウェアを準備し、それを必要に応じてユーザが使
用できるようになっているにすぎなかった。
[Problems to be Solved by the Invention] However, in conventional emulators, the hardware for ROM and Ilo related to the functions of the microprocessor itself to be emulated is prepared inside the emulator, and the hardware is transferred to the user as needed. It was simply made available for use.

しかし、現実にエミュレータを使用する場合。But when using the emulator in reality.

ユーザシステムのハードウェア(例えばマイクロプロセ
ッサに外付けされた論理回路等)が未完成であったり、
不具合を含んでいることがある。そのようむ場合、従来
のエミュレータでは、ハードウェアを完1戊させるか、
あるいはハードウェアを修正しないとエミュレーション
が行なえないという不都合があった。
The hardware of the user system (for example, a logic circuit attached externally to a microprocessor) is incomplete, or
May contain defects. In such cases, with conventional emulators, you have to completely remove the hardware, or
Another problem was that emulation could not be performed without modifying the hardware.

本発明の目的は、ユーザシステムのハードウェアが未完
成部分または不具合箇所を含んでいても何ら支障なくエ
ミュレータによるデバッグが行なえるようにして、シス
テムの開発期間を短縮することにある。
An object of the present invention is to shorten the system development period by enabling debugging using an emulator without any problem even if the hardware of a user system includes unfinished parts or defective parts.

この発明の前妃ならびにそのほかの目的と新規な特徴に
ついては、本明細書の記述および添附図面から明らかに
なるであろう。
The features of this invention as well as other objects and novel features will become apparent from the description of this specification and the accompanying drawings.

[51題を解決するためのf段] 本願において開示される発明のうち代表的なものの概要
を説明すれば、下記のとおりである。
[Step F for Solving 51 Problems] Representative inventions disclosed in this application will be summarized as follows.

すなわち、エミュレータ内部にRAMのような書換え可
能なメモリを設けるとともに、このメモリのアドレス入
力端子およびデータ入出力端子にはマルチプレクサのよ
うな信号切換回路を介してホス1−マイクロプロセッサ
またはプローブのようなサンプリング手段を接続可能に
し、上記メモリにはホス1〜マイクロプロセツサにより
所定のアドレス入力状態のときに所望の出力状態となる
ようなデータを予め書き込んでおいて、そのメモリのア
ドレス入出力端子にプローブによってユーザシステムか
らサンプリングした信シ)を人力して、メモリから読み
出されたデータ(8号を論理出力信冷としてプローブを
介してユーザシステムの所定の部位に戻してやるように
するものである。
That is, a rewritable memory such as a RAM is provided inside the emulator, and the address input terminal and data input/output terminal of this memory are connected to a host 1 to a microprocessor or a probe through a signal switching circuit such as a multiplexer. A sampling means can be connected, data is written in advance into the memory by the host 1 to the microprocessor so that a desired output state will be obtained in a predetermined address input state, and the data is connected to the address input/output terminal of the memory. The signal sampled from the user system by the probe is manually read out from the memory (No. 8 is used as a logic output signal) to be returned to a predetermined part of the user system via the probe. .

[作用] 上記した手段によれば、ユーザシステム上の任意の部位
から抽出した信号の論理結果を、エミュレータ内部の貸
出しメモリから出力させることができるとともに、上記
貸出しメモリが書換え可能なメモリであるため、入力に
対して任意の論理演算結果を出力させることができ、貸
出しメモリが擬似論理回路として動作し、ユーザシステ
l、内の所望の論理回路の代替回路として使用すること
ができるようになり、これによってユーザシステムが未
完成であったり、設計上のミスを含んでいてもエミュレ
ーションを実行することができる。
[Operation] According to the above-described means, the logical result of the signal extracted from any part on the user system can be output from the rental memory inside the emulator, and since the rental memory is a rewritable memory. , it is possible to output any logical operation result for the input, and the loaned memory operates as a pseudo logic circuit, and can be used as a substitute circuit for a desired logic circuit in the user system. This allows emulation to be executed even if the user system is incomplete or contains design errors.

[実施例コ 以下、本発明をエミュレータに適用した場合の一実施例
を図面を用いて説明する。
[Embodiment 1] An embodiment in which the present invention is applied to an emulator will be described below with reference to the drawings.

先ず、本発明が適用されたエミュレータ全体の構成を第
2図に示すブロック図に従い説明する。
First, the overall configuration of an emulator to which the present invention is applied will be explained with reference to the block diagram shown in FIG.

すなわちこの実施例のエミュレータは、ターゲットマイ
クロプロセッサの機能を代行するエミユレーション用の
スレーブマイクロプロセッサ11と、エミュレーション
や各種デバッグ機能を実行するためのエミュレーション
制御部12、プロゲラ11の実行やトレースの停止条件
を設定し1条件が成立したときにプログラムもしくはト
レースを停止させるブレーク制御部13、エミュレーシ
ョン実行中のバス上の信号を逐次記憶するトレースメモ
リ部14、応用唯器(ユーザシステム)のメモリが用意
されていない場合に貸し出されろ代行メモリ部15.親
計算機やコンソール10との1mでデータ通信を行なう
ためのシリアルインタフェース16及びそれらの制御を
司るためのホストマイクロプロセッサ17などからなる
That is, the emulator of this embodiment includes a slave microprocessor 11 for emulation that performs the functions of the target microprocessor, an emulation control unit 12 that executes emulation and various debugging functions, and a processor that executes the progera 11 and stops tracing. A break control unit 13 that sets conditions and stops the program or trace when one condition is met, a trace memory unit 14 that sequentially stores signals on the bus during emulation execution, and memory for the application device (user system) are prepared. If not, the proxy memory unit 15. It consists of a serial interface 16 for data communication over 1 m with the parent computer and console 10, and a host microprocessor 17 for controlling them.

そして、上記エミュレータは、その本体から延長された
ケーブルの先端が、応用機器に設けられたマイクロプロ
セッサ用ソケットに結合されることにより、上記スレー
ブマイクロプロセッサ11がターゲットマイクロプロセ
ッサの機能を代行する。スレーブマイクロプロセッサ1
1がユーザ実機を代行制御(エミュレーション)すると
き、スレーブマイクロプロセッサ11はマスクマイクロ
プロセッサ17の制御から切り離されまた、スレーブマ
イクロプロセッサ11の制御動作状態が予め定められて
いる状態に到達してブレークされるとき、マスタマイク
ロプロセッサの制御を受けるようにされる。更に、エミ
ュレーション実行中に各種データやステータス信号など
をサンプリングし、それをトレース用メモリ15などに
格納する1〜レ一ス機能や、スレーブマイクロプロセッ
サ11による応用機器の制W動作を停止させるブレーク
機能などの各種デバッグ機能が備えられている。
In the emulator, the tip of a cable extended from the main body of the emulator is connected to a microprocessor socket provided in an application device, so that the slave microprocessor 11 acts as a target microprocessor. slave microprocessor 1
1 performs proxy control (emulation) of the user's actual device, the slave microprocessor 11 is separated from the control of the mask microprocessor 17, and is broken when the control operation state of the slave microprocessor 11 reaches a predetermined state. When the microprocessor is activated, it is placed under the control of the master microprocessor. Furthermore, there is a 1-to-receive function that samples various data and status signals during emulation execution and stores them in the trace memory 15, etc., and a break function that stops the slave microprocessor 11 from controlling the application equipment. It has various debugging functions such as.

これらの機能は、コンソール10からの指令に従って実
行される。
These functions are executed according to commands from the console 10.

第1図には、本発明に係るエミュレータの主要部たるエ
ミュレーション制御部の実施例が示されている。
FIG. 1 shows an embodiment of an emulation control section which is a main part of an emulator according to the present invention.

この実施例では、上記代行メモリ15とは別個に、貸出
し論理回路となるRAM (ランダム・アクセス・メモ
リ)のような書換え可能なメモリERMが、信号切換回
路DCGおよびACGを介してホストデータバスHD 
TおよびホストアドレスバスHA 13に接続されてい
る。
In this embodiment, separately from the proxy memory 15, a rewritable memory ERM such as a RAM (random access memory) serving as a lending logic circuit is connected to the host data bus HD via signal switching circuits DCG and ACG.
T and host address bus HA 13.

そして、データバス側の信号切換回路DCGの第2人出
力端子には、プローブPi(B lが接続されており、
上記貸出し論理用のメモリERMの出力データ信号をプ
ローブPRBIを介してユーザ実(層上の任意の部位に
印加できるようにされている。また、アドレスバス側の
信号切換回路A CGの第2の入力端子には、ターゲッ
トバスTDT、’1’ A BもしくはプローブFRB
2が接続され、ユーザシステム上の任意の信号を貸出し
論理用メモリERMのアドレス入力端子に入力できるよ
うにされている。
A probe Pi (Bl) is connected to the second output terminal of the signal switching circuit DCG on the data bus side.
The output data signal of the memory ERM for lending logic can be applied to any part of the user real layer (layer) via the probe PRBI. Input terminals include target bus TDT, '1' A B or probe FRB.
2 is connected so that any signal on the user system can be input to the address input terminal of the lending logic memory ERM.

上記信号切換回路ACGとしてはマルチプレクサのよう
な回路を、また信号切換17′M路DCGとしてはトラ
ンスファゲートからなるセレクタのような回路を用いる
ことができる。
As the signal switching circuit ACG, a circuit such as a multiplexer can be used, and as the signal switching circuit 17'M path DCG, a circuit such as a selector consisting of a transfer gate can be used.

なお、エミュレーション中に上記貸出し論理用メモリE
RMを選択状態にするチップセレクト信号C8や読出し
状態にするライトイネーブル信号WEはホストマイクロ
プロセッサII M P Uから出力されるエミュレー
ション切換m3により外付は回路(図示省略)で形成す
るようになっている。
Note that during emulation, the above loaned logic memory E
The chip select signal C8 that puts the RM in the selected state and the write enable signal WE that puts the RM in the read state are formed by external circuits (not shown) by the emulation switching m3 output from the host microprocessor II MPU. There is.

次に、上記実施例のエミュレータの動作について説明す
る。
Next, the operation of the emulator of the above embodiment will be explained.

先ず、ホストマイクロプロセッサII M P Uから
出力される信号(図中のデコーダDECの出力信号を用
いてもよい)によって信号切換IrIJ路DCGおよび
ACGをホストバス側に切り換える。このとき、貸出し
論理用メモリERMのアドレス入力端子にはホストマイ
クロプロセッサ)−I M P UのアドレスバスHA
Bが、C8入力端子にはデコーダDECのデコード信号
が、WE入力端子にはホストマイクロプロセッサII 
M P Uからのリードライト信号R/Wが、DATA
入出力端子にはホストマイクロプロセッサHMPUのデ
ータバス)IDTが接続される。これによりホストマイ
クロプロセッサII M P Uは、貸出し論理用メモ
リERMを自由にアクセス可能となる。この状態で、貸
出し論運用メモリERMの所定の番地に、ユーザシステ
ムの所定の部位に印加したい論理信号に相当するデータ
を書き込んでおく。
First, the signal switching IrIJ paths DCG and ACG are switched to the host bus side by a signal output from the host microprocessor II MPU (the output signal of the decoder DEC in the figure may also be used). At this time, the address input terminal of the rental logic memory ERM is connected to the address bus HA of the host microprocessor)-IMPU.
B, the C8 input terminal receives the decoded signal of the decoder DEC, and the WE input terminal receives the decoded signal of the host microprocessor II.
The read/write signal R/W from MPU is DATA
A data bus (IDT) of the host microprocessor HMPU is connected to the input/output terminal. This allows the host microprocessor II MPU to freely access the lending logic memory ERM. In this state, data corresponding to a logic signal to be applied to a predetermined part of the user system is written into a predetermined address of the rental logic operational memory ERM.

なお、この場合、ユーザシステム上からサンプリングし
ようとする入力論理信号のビット数がアドレス信8・の
ビット数よりも少ないときは、上記入力論理信号・をア
ドレス入力端子の下位側(上位側でも可)に印加して、
それに相当する全ての番地に所望の論理出力データを書
き込んでおけばよい。
In this case, if the number of bits of the input logic signal to be sampled from the user system is smaller than the number of bits of the address signal 8, the input logic signal is input to the lower side (or upper side is also possible) of the address input terminal. ),
Desired logical output data may be written in all addresses corresponding to the desired logical output data.

上記貸出し論理用メモリERMの設定が終了したなら信
号切換回路ACGに接続されたプローブP RB 2を
、ユーザシステム上の未完成の論理回路部もしくは設計
上のミスがあると予想される回路の入力端子側に接触さ
せ、そこへ入力されるべき信猜を、貸出し論理用メモリ
ERMのアドレス入力端子へ入力可能にする。また、プ
ローブPRB1を未完成もしくは不具合のある回路の出
力端子側に接続する。
Once the setting of the rental logic memory ERM is completed, connect the probe PRB 2 connected to the signal switching circuit ACG to the input of an unfinished logic circuit section on the user system or a circuit that is expected to have a design error. It is brought into contact with the terminal side, and the credentials to be input there can be input to the address input terminal of the lending logic memory ERM. Further, the probe PRB1 is connected to the output terminal side of the unfinished or defective circuit.

こうした準備が整ってからエミュレーションを開始させ
る。
Start emulation after these preparations are complete.

なお、エミュレーション中は信号切換回路DCGおよび
A CGをプローブ側に切り換えておく。
Note that during emulation, the signal switching circuits DCG and ACG are switched to the probe side.

すると、ユーザシステム上からサンプリングされた入力
論理信号によって貸出し論理用メモリERMがアクセス
され、ANDやORあるいはイクスクルーシブORその
他予め設定した所望の論理演算結果に相当する論理信隆
が出力され、ユーザシステムの所定の部位に供給される
。したがって。
Then, the lending logic memory ERM is accessed by the input logic signal sampled from the user system, and a logic logic corresponding to the result of AND, OR, exclusive OR, or other preset desired logic operation is output, and the logic signal is output to the user system. is supplied to a predetermined part of the body. therefore.

ユーザシステムの論理回路が未完r&であったり1設計
ミスによる不具合を有していても、エミュレーションを
実行することができ、デバッグ効率が向上する。また、
ユーザシステムの一部を変更したい場合にも、ハードウ
ェアを変更することなく、変更したのと同じエミュレー
ション結果を91)ることかでき、システムの開発期間
を短縮することができる。
Even if the logic circuit of the user system is incomplete or has a defect due to a single design error, emulation can be executed and debugging efficiency is improved. Also,
Even when it is desired to change a part of the user system, the same emulation result can be obtained 91) without changing the hardware, and the system development period can be shortened.

さらに、上記実施例のエミュレータにおいては。Furthermore, in the emulator of the above embodiment.

信号切換回路ACGを介してユーザシステムに接続され
るターゲットバス上の信号を貸出し論理用メモリERM
に入力させることができるため、例えばユーザシステム
のアドレスデコーダに欠陥があると予想されるような場
合、ターゲットアドレスバスTAB上の信号をメモリE
RMに人力させて、その出力をデコード信号としてユー
ザシステムに戻してやれば容易にアドレスデコーダのチ
エツクを行なうことができる。
Logic memory ERM lends signals on the target bus connected to the user system via the signal switching circuit ACG.
For example, if the address decoder of the user system is expected to be defective, the signal on the target address bus TAB can be input to the memory E.
If the RM is operated manually and its output is returned to the user system as a decoded signal, the address decoder can be easily checked.

なお、上記実施例では、貸出し論理用メモリERMとし
てRAMを使用するとしたが、RAMの代わりに書換え
可能なEP ROMやEEPROMを使用することもで
きる。その場合、データのa込み1まホストマイクロプ
ロセッサによってエミュレータ七において行なってもよ
いし、別のF R0Mライタを用いて書込みを行なった
ものをエミュレータのボードに差し込むようにしてもよ
い。
In the above embodiment, a RAM is used as the rental logic memory ERM, but a rewritable EP ROM or EEPROM may be used instead of the RAM. In that case, the data may be written in the emulator 7 by the host microprocessor, or it may be written using another FROM writer and then inserted into the emulator board.

また、上記実施例では貸出し論理回路としてメモリを使
用しているが1例えばEPROMやEEPROMを構成
するMNOSのような記憶素子をROMの目とするよう
?、CPLA(プログラマブル・ロジック・アレイ)を
用いることも可能である。
Also, in the above embodiments, a memory is used as a lending logic circuit, but for example, how about using a memory element such as MNOS that constitutes an EPROM or an EEPROM as the memory of the ROM? , it is also possible to use a CPLA (programmable logic array).

以上説明したように上記実施例は、エミュレータ内部に
RAMのような書換え可能なメモリを設けるとともに、
このメモリのアドレス入力端子およびデータ人出力端子
にはマルチプレクサのような信号切換回路を介してホス
トマイクロプロセッサまたはプローブのようなサンプリ
ング手段を接続可能にし、上記メモリにはホストマイク
ロプロセッサにより所定のアドレス入力状態のときに所
望の出力状態となるようなデータを予め書き込んでおい
て、そのメモリのアドレス入出力端子にプローブによっ
てユーザシステムからサンプリングした信号を入力して
、メモリから読み出されたデータ信号を論理出力信号と
してプローブを介してユーザシステムの所定の部位に戻
してやるようにしたので、貸出しメモリが入力に対しく
+意の論理演算結果を出力する擬似論理回路として動作
し。
As explained above, in the above embodiment, a rewritable memory such as a RAM is provided inside the emulator, and
A host microprocessor or sampling means such as a probe can be connected to the address input terminal and data output terminal of this memory through a signal switching circuit such as a multiplexer, and a predetermined address input terminal is input to the memory by the host microprocessor. Write data in advance that will result in a desired output state when the current state is active, input the signal sampled from the user system using a probe to the address input/output terminal of that memory, and read the data signal from the memory. Since the logic output signal is returned to a predetermined part of the user system via the probe, the rental memory operates as a pseudo-logic circuit that outputs the logical operation result for the input.

ユーザシステム内の所望の論理回路の代替回路として使
用することができ、これによってユーザシステムが未完
成であったり、設計上のミスを含んでいてもエミュレー
ションを行なうことができるという効果がある。
It can be used as a replacement circuit for a desired logic circuit in the user system, and this has the effect that emulation can be performed even if the user system is unfinished or contains design errors.

以上本発明者によってなされた発明を実施例に基づき具
体的に説明したが、本発明は上記実施例に限定されるも
のではなく、その要旨を逸脱しない範囲で種々変更可能
であることはいうまでもない。例えば実施例では、貸出
し論理用メモリが。
Although the invention made by the present inventor has been specifically explained above based on Examples, it goes without saying that the present invention is not limited to the above Examples and can be modified in various ways without departing from the gist thereof. Nor. For example, in the embodiment, the loan logic memory.

1組の入力信号に対して1組の出力信号が決定される組
み合わせ論理回路の代替回路として動作するようにした
場合について説明したが、複数のRAMをカスケードに
、つまり前段のメモリの出力を次段のメモリのアドレス
入力端子に伏給させるように接続してやることにより、
シーケンシャルな信号を出力する論理回路として動作す
るように構成することも可能である。
Although we have described the case where the circuit operates as an alternative to a combinational logic circuit in which one set of output signals is determined for one set of input signals, multiple RAMs are cascaded, that is, the output of the previous memory is By connecting it to the address input terminal of the memory in the second stage,
It is also possible to configure it to operate as a logic circuit that outputs sequential signals.

また、上記実施例では、ニーザブミグラムを実行するタ
ーゲットプロセッサとシステム全体を制御するホストプ
ロセッサからなる2CPU方式のエミュレータに本発明
を適用したが、ターゲットプロセッサのみで全ての制御
を行なうIC:PU方式のエミュレータについても同様
に本発明を適用することができる。さらに、エミュレー
ションの対象がマイクロプロセッサのみならずシングル
チップマイコンである場合にも適用できる。
Furthermore, in the above embodiment, the present invention is applied to a 2-CPU type emulator consisting of a target processor that executes the kneezabumigram and a host processor that controls the entire system, but an IC:PU type emulator that performs all controls only by the target processor The present invention can be similarly applied to. Furthermore, the present invention can be applied not only to microprocessors but also to single-chip microcomputers.

以上の説明では主として本発明者によってむされた発明
をその背景となった利用分野であるインサーキットエミ
ュレータに適用したものについて説明したが、この発明
はそれに限定されるものでなく、ロジックアナライザの
ようなデバッグツールやシミュレータその他エミュレー
ション機能を有するデータ処理システムに利用すること
ができる。
In the above explanation, the invention devised by the present inventor was mainly applied to an in-circuit emulator, which is the background field of application. It can be used in debugging tools, simulators, and other data processing systems with emulation functions.

[発明の効果] 本願において開示される発明のうち代表的なものによっ
て得られる効果を簡単に説明すれば下記のとおりである
[Effects of the Invention] The effects obtained by typical inventions disclosed in this application are briefly explained below.

すなわち、ユーザシステムのハードウェアが未完成部分
または不具合箇所を含んでいても何ら支障なくエミュレ
ータによるデバッグが行なえるようになって、システム
の開発期間を短縮することができる。
That is, even if the hardware of the user system includes unfinished parts or defective parts, debugging can be performed by the emulator without any problem, and the system development period can be shortened.

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

第1図は本発明に係るエミュレータの要部の一実施例を
示すブロック図。 第2図は本発明が適用されるエミュレータ全体の概略構
成例を示すブロック図である。 HM P U・・・・ホストマイクロプロセッサ、TM
PU・・・・ターゲットマイクロプロセッサ、ERM・
・・・貸出し論理用メモリ、ACG、I)CG・・・・
信号切換回路、DEC・・・・デコーダ、PRBl、P
RB2・・・・プローブ((3砂採取手段)。 第 図
FIG. 1 is a block diagram showing an embodiment of essential parts of an emulator according to the present invention. FIG. 2 is a block diagram showing a schematic configuration example of the entire emulator to which the present invention is applied. HMPU...Host microprocessor, TM
PU...Target microprocessor, ERM...
...Loaned logic memory, ACG, I)CG...
Signal switching circuit, DEC...decoder, PRBL, P
RB2... Probe ((3 sand sampling means). Figure

Claims (1)

【特許請求の範囲】 1、エミュレーション対象となるシステムの機能を代行
する第1のマイクロコンピュータおよびデバッグのため
の制御を司る第2のマイクロコンピュータを有するデバ
ッグ装置において、予め設定された値を、上記第1マイ
クロコンピュータから出力される信号もしくは装置外部
から供給される信号に応じて出力する書換え可能な論理
手段を有することを特徴とするデバッグ装置。 2、外部装置の任意の部位から信号を抽出する信号採取
手段と、上記論理手段から出力される値を外部装置に供
給する信号供給手段とが設けられていることを特徴とす
る請求項1記載のデバッグ装置。 3、上記論理手段はランダム・アクセス・メモリであっ
て、上記第1マイクロコンピュータによって予め所定の
値が書き込まれるようにされていることを特徴とする請
求項1もしくは2記載のデバッグ装置。
[Claims] 1. In a debugging device having a first microcomputer that performs functions of a system to be emulated and a second microcomputer that controls debugging, the preset values are set as described above. A debugging device characterized by having a rewritable logic means that outputs an output according to a signal output from a first microcomputer or a signal supplied from outside the device. 2. The device according to claim 1, further comprising a signal sampling means for extracting a signal from an arbitrary part of the external device, and a signal supplying means for supplying the value outputted from the logic means to the external device. debug equipment. 3. The debugging device according to claim 1 or 2, wherein said logic means is a random access memory, and a predetermined value is written in advance by said first microcomputer.
JP1179639A 1989-07-11 1989-07-11 Debugging device Pending JPH0343837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1179639A JPH0343837A (en) 1989-07-11 1989-07-11 Debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1179639A JPH0343837A (en) 1989-07-11 1989-07-11 Debugging device

Publications (1)

Publication Number Publication Date
JPH0343837A true JPH0343837A (en) 1991-02-25

Family

ID=16069286

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1179639A Pending JPH0343837A (en) 1989-07-11 1989-07-11 Debugging device

Country Status (1)

Country Link
JP (1) JPH0343837A (en)

Similar Documents

Publication Publication Date Title
US5228039A (en) Source-level in-circuit software code debugging instrument
US6289300B1 (en) Integrated circuit with embedded emulator and emulation system for use with such an integrated circuit
US6668339B1 (en) Microprocessor having a debug interruption function
US8180620B2 (en) Apparatus and method for performing hardware and software co-verification testing
EP0911735B1 (en) Microprocessor test system
US6957180B1 (en) System and a method for communication between an ICE and a production microcontroller while in a halt state
EP1205848A1 (en) Embedded microcontroller bound-out chip as preprocessor for a logic analyser
IES990080A2 (en) Integrated circuit with embedded emulator and emulation system for use with such an integrated circuit
JP2001154875A (en) Microcomputer debug architecture and method
US7313729B2 (en) Low-cost debugging system with a ROM or RAM emulator
WO2008024701A2 (en) System and method for testing software code for use on a target processor
WO2006008721A2 (en) Emulation and debug interfaces for testing an integrated circuit with an asynchronous microcontroller
JPH0343837A (en) Debugging device
CN207946806U (en) A kind of debugger and debugging apparatus
US7451074B2 (en) Embedded microprocessor emulation method
JPH0727472B2 (en) Integrated circuit with debug environment
JPH11282671A (en) Computer system
JP2004094451A (en) On-chip JTAG interface circuit and system LSI
JPS61112247A (en) Data processor
JP2004038464A (en) Microcomputer with built-in debugging function
JP4600134B2 (en) Multiprocessor system
JPH05342377A (en) Microcomputer
KR100658485B1 (en) Microprocessor Development System
JP2002268911A (en) Development support equipment for electronic computers
US20030220782A1 (en) Configuration for in-circuit emulation of a program-controlled unit