JPH0285935A - Data processor and its debugging device - Google Patents

Data processor and its debugging device

Info

Publication number
JPH0285935A
JPH0285935A JP63236448A JP23644888A JPH0285935A JP H0285935 A JPH0285935 A JP H0285935A JP 63236448 A JP63236448 A JP 63236448A JP 23644888 A JP23644888 A JP 23644888A JP H0285935 A JPH0285935 A JP H0285935A
Authority
JP
Japan
Prior art keywords
break
processor
stop
working
emulation
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
JP63236448A
Other languages
Japanese (ja)
Inventor
Masamitsu Watanabe
渡辺 政光
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 JP63236448A priority Critical patent/JPH0285935A/en
Publication of JPH0285935A publication Critical patent/JPH0285935A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To improve the debugging efficiency of the data processor by using a control terminal which stops the working of only a CPU and another control terminal which stops the entire working of the data processor. CONSTITUTION:A single chip microcomputer 20 for emulation contains a processor stop terminal PBRK which stops the working of only an internal processor and a system stop terminal SBRK which stops the entire working of a system. Thus the microcomputer 20 can stop the working of the processor only or the entire system working in accordance with the setting state of a register 26. As a result, it is possible to check the state of the processor with the working of a peripheral logic continued as it is or to stop the entire working of the microcomputer 20 via the system break to check the entire state of the system. In such a constitution, the debugging efficiency is improved for a data processor.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、マイクロコンピュータおよびそのデバッグツ
ールに適用して特に有効な技術に関し、例えばシングル
チップマイコンおよびその評価用のインサーキット・エ
ミュレータに利用して有効な技術に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a technology that is particularly effective when applied to microcomputers and their debugging tools, for example, to single-chip microcomputers and in-circuit emulators for their evaluation. It is about effective techniques.

[従来の技術] マイクロコンピュータ応用機器の開発において、その応
用システムのデバッグやそのシステムの詳細な評価を行
なうため、インサーキット・エミュレータが使用されて
いる。斯るインサーキット・エミュレータ2は、第2図
に示すごとく、ソフトウェア開発用の親計算機(ホスト
コンピュータ)などのシステム開発装置1と、開発中の
応用機器3との間に接続され、その応用機器に含まれる
マイクロプロセッサ(ターゲット・マイクロプロセッサ
)の機能を代行する一方でデバッガ−としての機能を持
ち、詳細なシステムデバッグを支援する。
[Prior Art] In the development of microcomputer application equipment, in-circuit emulators are used to debug the application system and perform detailed evaluation of the system. As shown in FIG. 2, such an in-circuit emulator 2 is connected between a system development device 1 such as a parent computer (host computer) for software development and an application device 3 under development, and is connected to the application device 3 under development. It acts as a debugger while also acting as a debugger to support detailed system debugging.

従来のインサーキット・エミュレータはターゲットマイ
クロプロセッサの機能を代行するエミユレーション用の
スレーブマイクロコンピュータと、エミュレーションや
各種デバッグ機能を実現するためのエミュレーション制
御部、プログラムの実行やトレースの停止条件を設定し
、条件が成立したときにプログラムもしくはトレースを
停止させるブレークポイント制御部、トレースメモ5.
り部、応用機器(ユーザシステム)のメモリが用意され
ていない場合に貸し出される代行メモリ部及びそれらの
制御を司るためのマスタマイクロプロセッサなどが内蔵
されてなる。(昭和59年11月30日オーム社発行の
rLSIハンドブックJp562乃至p563参照)。
Conventional in-circuit emulators include a slave microcomputer for emulation that performs the functions of the target microprocessor, an emulation control unit to implement emulation and various debugging functions, and settings for stopping conditions for program execution and tracing. , breakpoint control unit that stops the program or trace when a condition is met, trace memo 5.
It has a built-in memory section, a substitute memory section that is lent out when the application equipment (user system) has no memory available, and a master microprocessor for controlling these sections. (Refer to rLSI Handbook Jp562 to p563, published by Ohmsha on November 30, 1980).

斯るインサーキット・エミュレータは、その本体から延
長されたケーブル4の先端のプラグが、応用機器に設け
られたターゲットマイクロプロセッサ用ソケット5に結
合されることにより、上記スレーブマイクロコンピュー
タがターゲットマイクロプロセッサの機能を代行するよ
うなエミュレーション機能を備える。更に、エミュレー
ション実行中に各種データやステータス信号などを実時
間でサンプリングし、それをトレースメモリ部に格納す
る実時間トレース機能や、エミユレーション用マイクロ
コンピュータによる応用機器の制御動作を実質的に停止
させるブレーク機能などの各種デバッグ機能が備えられ
ている。
In such an in-circuit emulator, a plug at the end of a cable 4 extending from the main body is connected to a socket 5 for the target microprocessor provided in the application equipment, so that the slave microcomputer can be connected to the target microprocessor. It has an emulation function that performs functions on behalf of the computer. Furthermore, there is a real-time trace function that samples various data and status signals in real time during emulation execution and stores them in the trace memory section, and virtually stops the control operation of applied equipment by the emulation microcomputer. It is equipped with various debugging functions such as a break function.

[発明が解決しようとする課題] 従来のシングチツブマイコン用のエミュレータにおける
ブレーク機能は1次のような問題があった。すなわちブ
レーク条件が、プログラマから見たプログラムに対する
ブレークか、それ意外の論理に対するブレークかがあい
まいであった。そのため、ブレーク機能が中央処理装置
(以下、単にプロセッサと称する)に対してのみの停止
機能であったり、あるいはシングチツブマイコン全体の
停止機能であったりと種々様々に具現化されている。従
って、例えばシングチツブマイコン内部のDMA (ダ
イレクト・メモリ・アクセス)コントローラによってメ
モリーI10間のDMA転送が行なわれている状態での
ブレークを考えると、ブレークがプロセッサのプログラ
ム実行条件による停止機能である場合には、プロセッサ
のみブレークしてDMAコントローラの機能が続行され
る。
[Problems to be Solved by the Invention] The break function in the conventional emulator for single chip microcomputers has the following problems. In other words, it was unclear whether the break condition was a break for the program from the programmer's perspective or a break for other logic. Therefore, the break function has been implemented in various ways, such as a stop function for only a central processing unit (hereinafter simply referred to as a processor), or a stop function for the entire single chip microcomputer. Therefore, for example, if we consider a break when a DMA (direct memory access) controller inside a single chip microcontroller is performing a DMA transfer between memories I10, the break is a stop function based on the processor's program execution conditions. In this case, only the processor breaks and the DMA controller continues functioning.

この場合、使用者がブレーク時点でのシングチツブマイ
コン全体の状態を把握したいと考えても。
In this case, even if the user wants to know the entire status of the single chip microcomputer at the time of the break.

DMAコントローラが機能を停止しないことからそれは
不可能となる。また逆にマイコン全体の停止を実現する
ブレーク機能であれば、ブレーク時点でシングチツブマ
イコン全体の動作が停止するので、メモリー170間で
行なわれていたDMA転送は保証されず、データの破壊
が行なわれ、ユーザは破壊されたデータを再構築する必
要がある。
That would not be possible since the DMA controller would not stop functioning. On the other hand, if the break function is to stop the entire microcontroller, the entire single chip microcontroller will stop operating at the time of the break, so the DMA transfer between the memories 170 will not be guaranteed and data will not be destroyed. and the user needs to reconstruct the corrupted data.

このようにいずれの方式をとっても使用者にとっては制
限のある機能とならざるを得なかった。
In this way, no matter which method is used, the functionality is limited for the user.

本発明は上述した問題点に着目してなされたものであり
、ブレーク機能を、プログラマから見たプログラムに対
するブレーク(以後プロセッサブレークと言う)とそれ
意外の論理に対するブレーク(以後システムブレークと
言う)に分け、シングチツブマイコン使用のシステムの
デバッグ効率を大幅に向上することができるエミュレー
タを提供することを目的とするものである。
The present invention was made by focusing on the above-mentioned problems, and the break function is divided into breaks for programs seen from the programmer (hereinafter referred to as processor breaks) and breaks for other logic (hereinafter referred to as system breaks). The purpose of this invention is to provide an emulator that can greatly improve the debugging efficiency of systems using single chip microcontrollers.

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

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

すなわち、シングルチップマイコンにプロセッサのみ停
止させるための端子とシステム全体を停止させる端子と
を設けるとともにプロセッサブレークまたはシステムブ
レークを設定するレジスタおよびその設定により、シン
グチツブマイコンに対し、プロセッサブレーク信号ある
いはシステムブレーク信号を供給する回路と、エミュレ
ーションパスの状態を検出して、ブレーク条件(例えば
プログラムカウンタの値と設定値との一致)が成り立っ
た時点でブレークソース信号を発生する回路を設けるよ
うにしたものである。
In other words, by providing a single-chip microcontroller with a terminal for stopping only the processor and a terminal for stopping the entire system, a register for setting a processor break or a system break, and its settings can be used to send a processor break signal or system break to a single-chip microcontroller. It has a circuit that supplies a break signal and a circuit that detects the state of the emulation path and generates a break source signal when a break condition (for example, the value of the program counter matches the set value) is met. It is.

[作用] 上記手段によれば、プロセッサブレークとシステムブレ
ークを設定するためのレジスタによりブレークの種類を
区別することができ、ブレーク発生回路から送出された
信号と、上述のレジスタの出力との論理積をとることに
より、プロセッサブレーク信号とシステムブレーク信号
のいずれか一方が選択され1選択された信号がシングチ
ツブマイコンのプロセッサ停止端子あるいはシステム停
止端子に印加される。これによって、シングチツブマイ
コンは、レジスタの設定状態に応じてプロセッサのみ、
あるいは全体が停止されるようになる。
[Operation] According to the above means, the type of break can be distinguished by the register for setting a processor break and a system break, and the logical product of the signal sent from the break generation circuit and the output of the above-mentioned register is used. By taking , either the processor break signal or the system break signal is selected, and the selected signal is applied to the processor stop terminal or the system stop terminal of the single chip microcomputer. This allows the single chip microcontroller to control the processor only, depending on the register settings.
Or the whole thing will be stopped.

[実施例コ 第1図は本発明をインサーキットエミュレータに適用し
た場合の実施例を示すブロック図である。
Embodiment FIG. 1 is a block diagram showing an embodiment in which the present invention is applied to an in-circuit emulator.

同図において、20はデバッグ対象となるユーザシステ
ムに含まれるマイクロコンピュータの機能を代行してユ
ーザシステムの動作制御すなわちエミュレーションを行
うエミユレーション用シングルチップマイコンである。
In the figure, reference numeral 20 denotes an emulation single-chip microcomputer that controls the operation of the user system, that is, emulates it, by substituting the functions of the microcomputer included in the user system to be debugged.

このエミユレーション用シングルチップマイコン2oに
は、内部のプロセッサのみを停止させることができるよ
うにされたプロセッサ停止端子PBRKと、全体の動作
を停止させることができるようにされたシステム停止端
子5BRKとが設けられているとともに、エミュレーシ
ョンバス22を介してバス監視回路23とトレースバッ
ファメモリ24とブレークメモリ25とが接続されてい
る。なお、ユーザシステムはエミユレーション用CPU
20によって制御されるバススイッチ21を介してエミ
ュレーション中はエミュレーションバス22に接続され
、ブレーク中はエミュレーションバス22から切り離さ
れる。ここでエミュレーションバスとは、シングチツブ
マイコンの内部状態を示す信号がのるバスである。
This emulation single-chip microcomputer 2o has a processor stop terminal PBRK that can stop only the internal processor, and a system stop terminal 5BRK that can stop the entire operation. A bus monitoring circuit 23, a trace buffer memory 24, and a break memory 25 are connected via an emulation bus 22. Note that the user system is a CPU for emulation.
20 is connected to the emulation bus 22 during emulation, and is disconnected from the emulation bus 22 during break. Here, the emulation bus is a bus on which signals indicating the internal state of the single chip microcomputer are carried.

エミュレーション中のエミュレーションバスは、バスサ
イクル監視回路23と、トレースバッファメモリ24、
ブレークメモリ25によって監視される。すなわち、こ
けらの監視回路23,24゜25にはそれぞれエミュレ
ーション状態によってブレークするための論理的条件が
設定されている。
The emulation bus during emulation includes a bus cycle monitoring circuit 23, a trace buffer memory 24,
It is monitored by break memory 25. That is, the logical conditions for breaking depending on the emulation state are set in the monitoring circuits 23, 24, and 25, respectively.

ブレークメモリ25はRAMを用いプログラムを停止さ
せたいアドレス位置に「1」を書き込んでおけば、バス
上にそのアドレス信号が出力されたとき「1」が読み出
され、それをブレークソース信号とすることができる。
The break memory 25 uses RAM, and if you write "1" in the address location where you want to stop the program, when that address signal is output on the bus, "1" will be read out, and this will be used as the break source signal. be able to.

バスサイクル監視回路23は、エミュレーションバスの
状態を監視し例えばバスがパリティエラー状態になると
、ブレークソース信号BSIを発生する。また、トレー
スバッファメモリ24は、アドレスカウンタを内蔵し、
トレース内容がメモリの容量を越えたときにブレークソ
ース信号BS2を発生する。さらにブレークメモリ25
は、エミュレーションバスの状態例えばアドレス信号が
ある値を示した時にブレークソース信号BS3を発生す
るようにブレーク条件が設定されている。
The bus cycle monitoring circuit 23 monitors the state of the emulation bus and generates a break source signal BSI when the bus enters a parity error state, for example. Further, the trace buffer memory 24 has a built-in address counter,
A break source signal BS2 is generated when the trace content exceeds the memory capacity. Furthermore, break memory 25
A break condition is set so that a break source signal BS3 is generated when the state of the emulation bus, for example, the address signal indicates a certain value.

また、本実施例のエミュレータには、ホストコンピュー
タによって設定可能なプロセッサブレーク/システムブ
レーク設定レジスタ26と、上記各バス監視回路23,
24.25からブレークソース信号BSI〜BS3が供
給されると、バスサイクルに合った適当なタイミングで
ブレーク信号BRKを発生するブレーク信号発生回路2
7と、発生されたブレーク信号BRKを上記レジスタ2
6の設定状態に応じてエミユレーション用シングルチッ
プマイコン20にこ供給するためのゲート回路28a、
28bとが設けられている。
The emulator of this embodiment also includes a processor break/system break setting register 26 that can be set by the host computer, and each of the bus monitoring circuits 23 and
24. When the break source signals BSI to BS3 are supplied from 25, the break signal generation circuit 2 generates the break signal BRK at an appropriate timing that matches the bus cycle.
7 and the generated break signal BRK to the above register 2.
a gate circuit 28a for supplying a signal to the emulation single-chip microcomputer 20 according to the setting state of 6;
28b is provided.

この実施例では上記レジスタ26が2ビツトで構成され
、その設定状態に応じて例えば#l、QI+ならブレー
ク信号BRKをシステム停止端子5BRKに供給させ、
l(Q、Ql″ならいずれの端子へもブレーク信号BR
Kを入力させないようにゲート28a、28bをコント
ロールするように構成されている。
In this embodiment, the register 26 is composed of 2 bits, and depending on the setting state, for example, if it is #l or QI+, a break signal BRK is supplied to the system stop terminal 5BRK.
l(Q, Ql'', break signal BR to any terminal
It is configured to control the gates 28a and 28b so as not to input K.

本実施例エミュレータにおいては、エミュレーションを
実行させる前に、先ずブレークレジスタ26に、エミュ
レーション中にブレーク条件が成立したときにプロセッ
サを停止させるかあるいはシステム全体を停止させるか
の設定を行なう。すると、エミュレーション実行中、エ
ミュレーションバス22上の信号がブレーク条件に一致
すると、ブレークメモリ25などからブレークソース信
号BS3がブレーク信号発生回路27へ送出される。
In the emulator of this embodiment, before executing emulation, the break register 26 is first set to determine whether the processor is to be stopped or the entire system is to be stopped when a break condition is satisfied during emulation. Then, during execution of emulation, when a signal on the emulation bus 22 matches a break condition, a break source signal BS3 is sent from the break memory 25 or the like to the break signal generation circuit 27.

このブレークソース信号を受けてブレーク信号発生回路
27適当なタイミングのブレーク信号BRπを形成し出
力する。この信号はレジスタ26の設定状態に応じて、
エミユレーション用シングルチップマイコン20のプロ
セッサ停止あるいはシステム停止のいずれかの端子に供
給される。そして、プロセッサブレークの場合は、プロ
セッサのみが停止し、DMAコントローラ等周辺I10
装置の動作は継続される。従って、エミュレータの使用
者はプロセッサの状態をみることができる。
Upon receiving this break source signal, a break signal generating circuit 27 forms and outputs a break signal BRπ at an appropriate timing. This signal depends on the setting state of the register 26.
It is supplied to either the processor stop or system stop terminal of the single-chip microcomputer 20 for emulation. In the case of a processor break, only the processor stops, and the peripheral I10 such as the DMA controller
Operation of the device continues. Therefore, the emulator user can see the state of the processor.

しかも、例えばシングチツブマイコン内部のDMAコン
トローラによってフロッピデイクス装置からデータをロ
ーディングしている最中に、プロセッサブレーク条件が
成立しプロセッサの動作が停止した場合、フロッピディ
スク装置からのデータローディングは継続される。これ
によって、ブレーク発生時のDMAコントローラの停止
によるデータの破壊を防ぐことができ、データ再構築の
必要がなくなりデバッグ効率が向上する。
Furthermore, for example, if a processor break condition is met and the processor stops operating while the DMA controller inside the single chip microcontroller is loading data from the floppy disk device, data loading from the floppy disk device will continue. be done. This prevents data from being destroyed due to the stoppage of the DMA controller when a break occurs, eliminates the need for data reconstruction, and improves debugging efficiency.

またプロセッサが周辺I10装置をプログラムにて制御
している場合において、ブレークした時点でのプロセッ
サの状態と周辺I10装置の状態の両方をみたいときに
は、ブレーク信号BRKがシステム端子に入力されるよ
うにレジスタ26を設定しておけば、シングルチップマ
イコン全体の動作を停止させることができるので、デバ
ッグ効率が向上される。
In addition, when the processor is controlling the peripheral I10 device using a program, if you want to see both the state of the processor and the state of the peripheral I10 device at the time of the break, register the break signal BRK so that it is input to the system terminal. If 26 is set, the operation of the entire single-chip microcomputer can be stopped, thereby improving debugging efficiency.

なお、上記実施例ではプロセッサブレーク/システムブ
レーク設定レジスタ26を2ビツトで構成しているが、
1ビツトのフラグで構成し、その出力信号を一方のゲー
ト28a(または28b)の制御端子にそのまま供給し
、他方のゲート28b(または28a)にはインバータ
を介して反転した信号を制御信号として供給するように
すればよい。
In the above embodiment, the processor break/system break setting register 26 is composed of 2 bits.
It consists of a 1-bit flag, and its output signal is supplied as is to the control terminal of one gate 28a (or 28b), and the inverted signal is supplied as a control signal to the other gate 28b (or 28a) via an inverter. Just do it.

また、実施例ではプロセッサブレーク/システムブレー
ク設定レジスタ26への条件設定をホストCPUが行う
としたが、エミユレーション用CPU20によってレジ
スタ26の設定を行うようにすることもできる。
Further, in the embodiment, the host CPU sets the conditions to the processor break/system break setting register 26, but the register 26 may also be set by the emulation CPU 20.

以上説明したように上記実施例は、シングルチップマイ
コンにプロセッサのみ停止させるための端子と全体を停
止させる端子とを設けるとともにプロセッサブレーク/
システムブレークを設定するレジスタおよびその設定に
より、シングチツブマイコンに対し、プロセッサブレー
ク信号あるいはシステムブレーク信号を供給する回路と
、エミュレーションバスの状態を検出して、プロセッサ
ブレーク条件が成り立った時点でブレークソース信号を
発生する回路を設けるようにしたので、プロセッサブレ
ーク信号とシステムブレーク信号のいずれか一方が選択
され、選択された信号がシングチツブマイコンのプロセ
ッサ停止端子あるいはシステム停止端子に印加される。
As explained above, in the above embodiment, the single-chip microcontroller is provided with a terminal for stopping only the processor and a terminal for stopping the entire processor, and
Depending on the register that sets the system break and its settings, the circuit that supplies the processor break signal or system break signal to the single chip microcontroller and the state of the emulation bus are detected, and the break source is detected when the processor break condition is met. Since a signal generating circuit is provided, either the processor break signal or the system break signal is selected, and the selected signal is applied to the processor stop terminal or the system stop terminal of the single chip microcomputer.

これによって、シングチツブマイコンは、レジスタの設
定状態に応じてプロセッサのみ、あるいは全体が停止さ
れるようになり、シングチツブマイコン使用のシステム
のデバッグ効率を大幅に向上することができるという効
果がある。
As a result, the single chip microcontroller will be able to stop only the processor or the entire processor depending on the register setting state, which has the effect of greatly improving the debugging efficiency of systems using the single chip microcontroller. be.

また、シングルチップマイコンに設けられた2つのブレ
ーク端子を、エミュレーション以外の動作時に所望の回
路部の動作を停止させるために利用することができ、こ
れによってシングルチップマイコンの機能が強化される
という効果もある。
Additionally, the two break terminals provided on the single-chip microcontroller can be used to stop the operation of a desired circuit section during operations other than emulation, which has the effect of strengthening the functionality of the single-chip microcontroller. There is also.

以上本発明者によってなされた発明を実施例に基づき具
体的に説明したが、本発明は上記実施例に限定されるも
のではなく、その要旨を逸脱しない範囲で種々変更可能
であることはいうまでもない。
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.

例えば、実施例のエミユレーション用シングルチップマ
イコンは、2つのブレーク端子を持ち、いずれか一方へ
のブレーク信号の入力によりプロセッサのみを停止させ
たり全体を停止させることができるようになっていると
説明したが1両方の端子にブレーク信号が入ったときは
周辺I10装置のみ停止されるようにシングルチップマ
イコンを構成してもよい。その場合、例えばレジスタ2
6に、”1.1”を設定することで、ブレーク信号発生
回路27で発生されたブレーク信号BRKをシングルチ
ップマイコンの2つのブレーク端子に入力させることが
できる。
For example, the emulation single-chip microcontroller of the embodiment has two break terminals, and by inputting a break signal to either one, it is possible to stop only the processor or stop the entire processor. As described above, the single-chip microcomputer may be configured so that only the peripheral I10 device is stopped when a break signal is input to both terminals. In that case, for example, register 2
By setting "1.1" to 6, the break signal BRK generated by the break signal generation circuit 27 can be input to the two break terminals of the single-chip microcomputer.

以上の説明では主として本発明者によってなされた発明
をその背景となった利用分野であるシングルチップマイ
コンとそのエミュレータに適用した場合について説明し
たが、それに限定されず、プロセッサ以外に独立して動
作する論理回路を有するマイクロコンピュータとそのデ
パックツールに利用することができる。
The above explanation has mainly been about the application of the invention made by the present inventor to a single-chip microcomputer and its emulator, which is the background field of application. It can be used for microcomputers with logic circuits and their depacking tools.

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

すなわち、本発明によれば周辺論理をそのまま継続動作
させてプロセッサの状態をみたり、システムブレークを
用いシングルチップマイコン全体を停止させてシステム
全体の状態をみることにより、デバッグ効率を大幅に向
上させることができる。
In other words, according to the present invention, debugging efficiency can be greatly improved by allowing the peripheral logic to continue operating as it is and checking the status of the processor, or by using a system break to stop the entire single-chip microcontroller and checking the status of the entire system. be able to.

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

第1図は本発明をシングルチップマイコンのインサーキ
ットエミュレータに適用した場合の実施例を示すブロッ
ク図。 第2図は本発明に係るインサーキットエミュレータが適
用されるシステム開発装置の全体の構成を示すブロック
図である。 20・・・・エミユレーション用シングルチップマイコ
ン、26・・・・ブレーク設定レジスタ、27・・・・
ブレーク信号発生回路、23・・・・バスサイクル監視
回路、24・・・・トレースバッファメモリ、25・・
・・ブレークメモリ。
FIG. 1 is a block diagram showing an embodiment in which the present invention is applied to an in-circuit emulator for a single-chip microcomputer. FIG. 2 is a block diagram showing the overall configuration of a system development apparatus to which an in-circuit emulator according to the present invention is applied. 20...Single-chip microcomputer for emulation, 26...Break setting register, 27...
Break signal generation circuit, 23...Bus cycle monitoring circuit, 24...Trace buffer memory, 25...
...Break memory.

Claims (1)

【特許請求の範囲】 1、中央処理装置とその周辺に設けられた論理部とを備
えたデータ処理装置において、上記中央処理装置の動作
のみ停止させるための制御端子と、装置全体の動作を停
止させるための制御端子とを設けたことを特徴とするデ
ータ処理装置。 2、バスの状態を監視してブレーク条件の成立を検出す
るバス監視手段と、ブレーク条件成立時に上記制御端子
に対するブレーク信号を発生するブレーク信号発生手段
と、上記ブレーク信号を上記制御端子のいずれに供給す
るか設定するためのレジスタもしくはフラグを備えてな
ることを特徴とするデバッグ装置。
[Scope of Claims] 1. In a data processing device including a central processing unit and a logic section provided around the central processing unit, a control terminal for stopping only the operation of the central processing unit and stopping the operation of the entire device 1. A data processing device, comprising: a control terminal for controlling the data processing device. 2. bus monitoring means for monitoring the state of the bus and detecting the establishment of a break condition; break signal generation means for generating a break signal to the control terminal when the break condition is satisfied; A debugging device characterized by comprising registers or flags for supplying or setting.
JP63236448A 1988-09-22 1988-09-22 Data processor and its debugging device Pending JPH0285935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63236448A JPH0285935A (en) 1988-09-22 1988-09-22 Data processor and its debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63236448A JPH0285935A (en) 1988-09-22 1988-09-22 Data processor and its debugging device

Publications (1)

Publication Number Publication Date
JPH0285935A true JPH0285935A (en) 1990-03-27

Family

ID=17000898

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63236448A Pending JPH0285935A (en) 1988-09-22 1988-09-22 Data processor and its debugging device

Country Status (1)

Country Link
JP (1) JPH0285935A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007122543A (en) * 2005-10-31 2007-05-17 Nec Electronics Corp Semiconductor integrated circuit device, and debug system and debug method therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007122543A (en) * 2005-10-31 2007-05-17 Nec Electronics Corp Semiconductor integrated circuit device, and debug system and debug method therefor

Similar Documents

Publication Publication Date Title
JP2651916B2 (en) In-circuit emulator
US6598178B1 (en) Peripheral breakpoint signaler
US6877114B2 (en) On-chip instrumentation
US7707395B2 (en) Data processing system with trace co-processor
JPH02287635A (en) Debugging peripheral equipment for microcomputer,microprocessor and core processor integrated circuit
US6175913B1 (en) Data processing unit with debug capabilities using a memory protection unit
CN105550118A (en) Debugging system and debugging method
JPH0285935A (en) Data processor and its debugging device
JPH0477833A (en) Integrated circuit provided with debugging environment
JPS6310456B2 (en)
JPH04199336A (en) Microcomputer
JPH01306933A (en) Debugging device
JPH0836504A (en) Emulator
JPS60245052A (en) Data processing system
JP2742306B2 (en) emulator
JPS59202547A (en) Debugging device
JPH04160650A (en) Microprocessor
JPS61112250A (en) Data processing system
JPH0635760A (en) Buffer device with tracing function
JPS63204327A (en) Control system for detection of undefined instruction
JPH0340037A (en) Debug device
JPH06301569A (en) Emulator for peripheral lsi
Halling CAMAC serial system with programmable crate controller
JPH01234943A (en) Emulator
JPH07219805A (en) In-circuit emulator