JPH0594328A - Debugger and emulator - Google Patents
Debugger and emulatorInfo
- Publication number
- JPH0594328A JPH0594328A JP3282182A JP28218291A JPH0594328A JP H0594328 A JPH0594328 A JP H0594328A JP 3282182 A JP3282182 A JP 3282182A JP 28218291 A JP28218291 A JP 28218291A JP H0594328 A JPH0594328 A JP H0594328A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- port
- microprocessor
- emulation
- input
- 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.)
- Withdrawn
Links
- 230000004044 response Effects 0.000 claims description 4
- 239000000872 buffer Substances 0.000 description 11
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000033772 system development Effects 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 239000000758 substrate Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 229910052710 silicon Inorganic materials 0.000 description 1
- 239000010703 silicon Substances 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、複数のマイクロプロセ
ッサにてバスを共有するシステム上の資源を使用するよ
うにしたデバッグ装置におけるハードウェアの小型化に
関し、例えばエミュレータに適用して有効な技術に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to miniaturization of hardware in a debug device in which resources on a system sharing a bus among a plurality of microprocessors are used, and a technique effective when applied to an emulator, for example. Regarding
【0002】[0002]
【従来の技術】マイクロプロセッサ応用機器の開発で
は、エミュレータを使用することがある。エミュレータ
はデバッグ対象マイクロプロセッサあるいはそれと同機
能のマイクロプロセッサを有し、このマイクロプロセッ
サにてユーザプログラムを実行、停止させながらユーザ
システム(ターゲットシステム)を制御することによ
り、ハードウェア及びソフトウェアのデバッグを可能に
するものである。2. Description of the Related Art Emulators are sometimes used in the development of microprocessor application equipment. The emulator has a debug target microprocessor or a microprocessor with the same function as the debug target. This microprocessor controls the user system (target system) while executing and stopping the user program, enabling hardware and software debugging. It is something to do.
【0003】一般にエミュレータでは、エミュレーショ
ンを実行するためのマイクロプロセッサ(エミュレーシ
ョン用マイクロプロセッサ)の他にエミュレータの制御
を行うマイクロプロセッサを有しており、エミュレーシ
ョン実行中には、制御用マイクロプロセッサ(コントロ
ールプロセッサ)がエミュレーション用マイクロプロセ
ッサの実行状態を監視する。例えば、エミュレーション
実行中のアドレスバスの情報やデータバスの情報を取り
込んでリアルタイムにコンソールに表示させたりして監
視可能にする。尚、このような技術について記載された
文献の例としては、電波新聞社「マイコン開発のすべ
て」1989.6.20における第78頁乃至第82頁
がある。Generally, an emulator has a microprocessor for controlling the emulator in addition to a microprocessor for executing emulation (emulation microprocessor). During execution of the emulation, a control microprocessor (control processor) is provided. ) Monitors the execution status of the emulation microprocessor. For example, the information of the address bus and the information of the data bus during the execution of emulation can be fetched and displayed on the console in real time to enable monitoring. Incidentally, as an example of a document describing such a technique, there are pages 78 to 82 in "All About Microcomputer Development" 1989.6.20 by Denpa Shimbun.
【0004】本発明者は前記エミュレーション用マイク
ロプロセッサとコントロールプロセッサとを、ターゲッ
トシステムに接続されるバスに共通接続し、同バスにト
レース回路やブレーク回路を接続してエミュレータの小
型化を図ることについて検討した。このときコントロー
ルプロセッサはブレーク回路にブレーク条件を設定した
りトレース回路にトレース開始アドレスを設定したりし
てエミュレーションのための条件設定を行う。前記エミ
ュレーション用マイクロプロセッサとコントロールプロ
セッサはバスを共有しているため、セレクタ若しくはバ
ッファなどを双方のマイクロプロセッサとバスの間に介
在させてバス権制御を行う必要がある。また、エミュレ
ーション実行時のバスの情報をリアルタイムに監視可能
にするには、エミュレーション用マイクロプロセッサが
バス権を取得しているときにバスをバッファあるいはラ
ッチを介してコントロールプロセッサのデータ入力端子
に接続し、そのバッファ又はラッチをコントロールプロ
セッサの外部メモリ空間上のレジスタとして読み込み可
能にする必要がある。The present inventor intends to downsize the emulator by commonly connecting the emulation microprocessor and the control processor to a bus connected to the target system and connecting a trace circuit and a break circuit to the bus. investigated. At this time, the control processor sets a break condition in the break circuit and a trace start address in the trace circuit to set conditions for emulation. Since the emulation microprocessor and the control processor share a bus, it is necessary to interpose a selector or a buffer between both microprocessors and the bus to control the bus right. To enable real-time monitoring of bus information during emulation, connect the bus to the data input pin of the control processor via a buffer or latch when the emulation microprocessor has acquired the bus right. , The buffer or latch must be readable as a register on the external memory space of the control processor.
【0005】[0005]
【発明が解決しようとする課題】しかしなが、コントロ
ールプロセッサとエミュレーション用マイクロプロセッ
サとにバスを共有させても、バス権制御やエミュレーシ
ョンのリアルタイム監視のためにバッファ回路やラッチ
回路が種々必要であるならば、それらの回路によってエ
ミュレータの回路規模縮小を充分に達成することができ
ないということを本発明者は見い出した。特に、マイク
ロプロセッサの高集積化が進に従って、マイクロプロセ
ッサ応用システムのエミュレーションのための回路規模
も必然的に大きくなってきており、これを小型化するた
めの対策はエミュレータの使い勝手を向上させる上で必
要である。However, even if the control processor and the emulation microprocessor share the bus, various buffer circuits and latch circuits are required for bus right control and real-time monitoring of emulation. Then, the present inventor has found that the circuit scale of the emulator cannot be sufficiently achieved by those circuits. In particular, as microprocessors become more highly integrated, the circuit scale for emulation of microprocessor-applied systems is inevitably increasing, and measures to reduce the size of these circuits are needed to improve the usability of emulators. is necessary.
【0006】本発明の目的は、複数マイクロプロセッサ
システムにおいて、特別な専用回路を設けることなく、
他のマイクロプロセッサの実行状態を共有バスを介して
監視することができるデバッグ装置を提供することにあ
る。本発明の別の目的は、エミュレーション用マイクロ
プロセッサとコントロールプロセッサがバスを共有する
形式のエミュレータの小型化を達成することである。An object of the present invention is to provide a multi-microprocessor system without providing a special dedicated circuit.
It is an object of the present invention to provide a debug device capable of monitoring the execution states of other microprocessors via a shared bus. Another object of the present invention is to achieve miniaturization of an emulator in which the emulation microprocessor and the control processor share a bus.
【0007】本発明の前記並びにその他の目的と新規な
特徴は本明細書の記述及び添付図面から明らかになるで
あろう。The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.
【0008】[0008]
【課題を解決するための手段】本願において開示される
発明のうち代表的なものの概要を簡単に説明すれば下記
の通りである。The outline of a typical one of the inventions disclosed in the present application will be briefly described as follows.
【0009】すなわち、複数個のマイクロプロセッサが
バスを共有するシステムにおいて、少なくとも1個の前
記マイクロプロセッサは、入出力兼用ポートと、該ポー
トからの入力を出力する出力ポートとを有し、前記入出
力ポートを前記バスに直接結合し、他のマイクロプロセ
ッサがバス権を有するときの前記バス情報を前記入出力
兼用ポートから取り込み、取り込んだ情報を前記出力ポ
ートを介して外部で監視可能にするものである。That is, in a system in which a plurality of microprocessors share a bus, at least one of the microprocessors has an I / O port and an output port for outputting an input from the port. An output port is directly coupled to the bus, the bus information when another microprocessor has the bus right is fetched from the I / O port, and the fetched information can be externally monitored via the output port. Is.
【0010】前記入出力兼用ポートを有するマイクロプ
ロセッサは、バス権取得に呼応して前記入出力兼用ポー
トをバス信号出力ポートとし、バス権放棄に呼応してそ
の入出力兼用ポートをバス信号入力ポートとする動作モ
ードを有する。In the microprocessor having the I / O port, the I / O port is used as a bus signal output port in response to the acquisition of the bus right, and the I / O port is used as the bus signal input port in response to the abandonment of the bus right. Has an operation mode of
【0011】上記システムをエミュレータに適用する場
合、ターゲットシステムとインタフェースされるバス
を、ターゲットシステムを代行制御するためのエミュレ
ーション用マイクロプロセッサと、エミュレーション制
御のための制御用マイクロプロセッサとに共有させ、同
バスに、トレース回路及びブレーク回路などを結合す
る。前記制御用マイクロプロセッサは、前記バスに直接
接続される入出力兼用ポートと、該ポートからの入力を
出力する出力ポートとを有し、前記エミュレーション用
マイクロプロセッサがバス権を有するときの前記バス情
報を前記入出力兼用ポートから取り込み、取り込んだ情
報を前記出力ポートを介して外部で監視可能にする。When the above system is applied to an emulator, the bus interfaced with the target system is shared by an emulation microprocessor for acting control of the target system and a control microprocessor for emulation control. A trace circuit and a break circuit are coupled to the bus. The control microprocessor has an I / O port directly connected to the bus and an output port for outputting an input from the port, and the bus information when the emulation microprocessor has a bus right. Is taken in from the I / O port, and the taken information can be externally monitored via the output port.
【0012】[0012]
【作用】上記した手段によれば、バスに直接接続された
入出力兼用ポートを出力ポートとして機能させることに
より、当該入出力兼用ポートを備えるマイクロプロセッ
サがバス権を獲得してバスアクセスを行う。このマイク
ロプロセッサがバス権を放棄するときに、前記入出力兼
用ポートを入力ポートとして機能させることにより、そ
の他のマイクロプロセッサによるバスアクセス情報を当
該入力ポートとして機能する入出力兼用ポートから取り
込んで、これを別の出力ポートから外部に出力する。こ
れによりバス情報をリアルタイムに監視する。このよう
に入出力兼用ポートを複数マイクロプロセッサによる共
有バスに直結し、監視すべきバス情報を入出力兼用ポー
トの機能選択によって取り込むことは、特別回路を要す
ることなく、共有バスの状態監視を可能にし、システム
の小形化を達成する。According to the above means, the I / O port directly connected to the bus functions as an output port, so that the microprocessor having the I / O port acquires the bus right and performs the bus access. When the microprocessor relinquishes the bus right, the I / O port is made to function as an input port so that the bus access information from other microprocessors is taken in from the I / O port functioning as the input port. Is output to the outside from another output port. This allows bus information to be monitored in real time. In this way, by directly connecting the I / O port to the shared bus of multiple microprocessors and fetching the bus information to be monitored by selecting the function of the I / O port, the state of the shared bus can be monitored without requiring a special circuit. To achieve downsizing of the system.
【0013】[0013]
【実施例】図1には本発明の一実施例に係るエミュレー
タ1のブロック図が示される。同図においてEMPUは
ユーザインタフェース回路10を介して接続される図示
しないターゲットシステムを代行制御するためのエミュ
レーション用マイクロプロセッサである。同図において
SMPUは、エミュレータを制御するためのコントロー
ルプロセッサである。双方のマイクロプロセッサSMP
U,EMPUはアドレスバスABUS及びデータバスD
BUSを共有する。コントロールプロセッサSMPU
は、ROM、RAM、及びコミュニケーションインタフ
ェースなどの周辺回路を搭載し、アドレスバスABUS
及びデータバスDBUSに接続されるポート並びに入出
力兼用ポート端子を有している。本実施例に従えば、コ
ントロールプロセッサSMPUのアドレスのうち上位ア
ドレスA19〜A8は当該コントロールプロセッサSM
PU内のレジスタ設定により入出力ポートとしても使用
可能な入出力兼用ポートに割り当てられている。図1に
おいてこのポートはPA11−0/A19−8として図
示されている。したがって当該コントロールプロセッサ
SMPUのポートPA11−0/A19−8は、アドレ
スバスABUSに対してアドレス出力を行うと共に、ポ
ートの制御レジスタの書換によりアドレスバスABUS
の内容を取り込むことができる。エミュレーション用マ
イクロプロセッサEMPUがバス権を取得してエミュレ
ーションを行っているとき、コントロールプロセッサS
MPUが当該ポートPA11−0/A19−8から取り
込んだアドレス情報はコミュニケーションインタフェー
ス及び出力ポートを介してシステム開発装置2の表示装
置に送られて、エミュレーション時のアドレスバスの情
報をリアルタイムでディスプレイ装置に表示しながら監
視可能にする。1 is a block diagram of an emulator 1 according to an embodiment of the present invention. In the figure, EMPU is an emulation microprocessor for acting on behalf of a target system (not shown) connected via the user interface circuit 10. In the figure, SMPU is a control processor for controlling the emulator. Both microprocessor SMP
U and EMPU are address bus ABUS and data bus D
Share the BUS. Control processor SMPU
Are equipped with peripheral circuits such as ROM, RAM, and communication interface, and address bus ABUS
And a port connected to the data bus DBUS and an input / output port terminal. According to this embodiment, among the addresses of the control processor SMPU, the upper addresses A19 to A8 are the control processor SM.
It is assigned to an I / O port that can also be used as an I / O port by register setting in the PU. In FIG. 1, this port is shown as PA11-0 / A19-8. Therefore, the port PA11-0 / A19-8 of the control processor SMPU outputs an address to the address bus ABUS and rewrites the control register of the port to generate the address bus ABUS.
The contents of can be captured. When the emulation microprocessor EMPU has acquired the bus right and is performing emulation, the control processor S
The address information taken in by the MPU from the port PA11-0 / A19-8 is sent to the display device of the system development device 2 via the communication interface and the output port, and the information of the address bus at the time of emulation is displayed in real time on the display device. Enable monitoring while displaying.
【0014】エミュレータの小形化を図るために、前記
アドレスバスABUS及びデータバスDBUSは双方の
マイクロプロセッサSMPU,EMPUの共有バスとさ
れる。コントロールプロセッサSMPUのアドレスA1
9〜A8は直接アドレスバスABUSの対応信号線に結
合され、アドレスA7〜A0はバッファ3を介してアド
レスバスABUSの対応信号線に結合される。エミュレ
ーション用マイクロプロセッサEMPUのアドレスA1
9〜A0はバッファ4を介してアドレスバスABUSに
接続されている。データバスDBUSは双方のマイクロ
プロセッサSMPU及びEMPUともにデーバスDBU
Sに直接接続されている。In order to reduce the size of the emulator, the address bus ABUS and the data bus DBUS are shared by the microprocessors SMPU and EMPU. Address A1 of control processor SMPU
9 to A8 are directly coupled to corresponding signal lines of address bus ABUS, and addresses A7 to A0 are coupled to corresponding signal lines of address bus ABUS via buffer 3. Address A1 of the emulation microprocessor EMPU
9 to A0 are connected to the address bus ABUS via the buffer 4. The data bus DBUS is a data bus DBU for both microprocessors SMPU and EMPU.
It is directly connected to S.
【0015】前記アドレスバスABUS及びデータバス
DBUSには、エミュレータ固有の回路として、エミュ
レーション制御回路5、エミュレーションRAM6、ブ
レーク回路7、トレース回路8、RAM9及びユーザイ
ンタフェース回路10が接続されている。前記ブレーク
回路7はデータバスDBUSやアドレスバスABUSな
どの状態を監視して、その状態が与め設定された状態に
達したときにエミュレーション動作をブレークする。ト
レース回路8はデータバスDBUSやアドレスバスAB
USなどの情報を例えばバスサイクル単位で逐次トレー
スして蓄える。エミュレーションRAM6は図示しない
ターゲットシステムに含まれるべきデータメモリやプロ
グラムメモリを代行するためのメモリである。前記RA
M9はその他データの一次記憶領域などとしてコントロ
ールプロセッサSMPUが利用する。前記エミュレーシ
ョン制御回路5は、エミュレーションの状態を監視して
コントロールプロセッサSMPUとの間で制御情報など
をやりとりする。An emulation control circuit 5, an emulation RAM 6, a break circuit 7, a trace circuit 8, a RAM 9 and a user interface circuit 10 are connected to the address bus ABUS and the data bus DBUS as circuits unique to the emulator. The break circuit 7 monitors the states of the data bus DBUS and the address bus ABUS, and breaks the emulation operation when the state reaches the preset state. The trace circuit 8 has a data bus DBUS and an address bus AB.
Information such as US is sequentially traced and stored for each bus cycle. The emulation RAM 6 is a memory for substituting for a data memory or a program memory that should be included in a target system (not shown). RA
M9 is used by the control processor SMPU as a primary storage area for other data. The emulation control circuit 5 monitors the emulation state and exchanges control information and the like with the control processor SMPU.
【0016】アドレスバスABUS及びデータバスDB
USに対するバス権は、コントロールプロセッサSMP
Uが制御し、外部に対してはそのポートPC0端子の状
態により切り替え制御するようになっている。即ち、ポ
ートPC0端子はプルアップされ、該ポート端子PC0
の出力状態に応じて決定される信号をバッファ3が受
け、その反転信号をバッファ4が受ける。これにより、
バッファ3,4はポート端子PC0の出力状態に応じて
その何れか一方が活性化される。Address bus ABUS and data bus DB
Bus right to US is control processor SMP
U controls the switching to the outside depending on the state of the port PC0 terminal. That is, the port PC0 terminal is pulled up and the port terminal PC0
The buffer 3 receives a signal determined according to the output state of the buffer, and the buffer 4 receives the inverted signal. This allows
One of the buffers 3 and 4 is activated according to the output state of the port terminal PC0.
【0017】コントロールプロセッサSMPUにおいて
ポートPC1端子はリセット端子として機能され、プル
アップされている。エミュレーション用マイクロプロセ
ッサEMPUはそのプルアップされた信号と外部リセッ
ト信号RESを2入力するノアゲート11の出力をリセ
ット端子/RES受ける。In the control processor SMPU, the port PC1 terminal functions as a reset terminal and is pulled up. The emulation microprocessor EMPU receives the output of the NOR gate 11 which receives the pull-up signal and the external reset signal RES as two reset terminals / RES.
【0018】図2にはコントロールプロセッサSMPU
の一例ブロック図が示される。同図に示されるマイクロ
プロセッサSMPUは、公知の半導体集積回路製造技術
によってシリコン基板のような1個の半導体基板に形成
される。このマイクロプロセッサSMPUは、特に制限
されないが、全体の制御を司る中央処理装置(CPU)
20、外部からのウェイト要求信号などに従ってウェイ
トステートの挿入制御を行うウェイトコントローラ2
1、データの一次記憶領域若しくは前記中央処理装置2
0の作業領域などとされるRAM22、前記中央処理装
置20の動作プログラムなどが格納されるROM23、
内外からの割り込み要求を制御する割り込みコントロー
ラ24、データのシリアル転送を制御するシリアルコミ
ュニケーションインタフェース25、8ビットタイマ2
6、パルスワイズモジュレーションタイマ27、16ビ
ットフリーランニングタイマ28、A/D変換器29、
ウォッチドッグタイマ30などを含み、それら回路ブロ
ックはアドレスバスIAB、上位データバスUDB、及
び下位データバスLDBの所定のものに接続されてい
る。外部とのインタフェースは第1ポート41乃至第9
ポート49を介して行われる。FIG. 2 shows the control processor SMPU.
An example block diagram is shown. The microprocessor SMPU shown in the figure is formed on one semiconductor substrate such as a silicon substrate by a known semiconductor integrated circuit manufacturing technique. The microprocessor SMPU is not particularly limited, but a central processing unit (CPU) that controls the entire control.
20, a wait controller 2 that controls insertion of wait states according to a wait request signal from the outside
1. Data primary storage area or the central processing unit 2
RAM 22 used as a work area of 0, ROM 23 in which operation programs of the central processing unit 20 are stored,
Interrupt controller 24 for controlling interrupt requests from inside and outside, serial communication interface 25 for controlling serial transfer of data, 8-bit timer 2
6, pulse-wise modulation timer 27, 16-bit free running timer 28, A / D converter 29,
The circuit block including the watchdog timer 30 and the like is connected to predetermined ones of the address bus IAB, the upper data bus UDB, and the lower data bus LDB. The interface with the outside is from the first port 41 to the ninth
This is done via port 49.
【0019】ここで、プログラムアドレス空間として外
部メモリ空間も利用する拡張モードにおいて、第5ポー
ト45及び第6ポート46は、図1の入出力兼用ポート
PA11−0/A19−8に割り当てられ、第4ポート
44はアドレスA7〜A0に割り当てられた出力ポート
とされる。この動作モードにおいてシリアルコミュニケ
ーションインタフェース25は第9ポート49を介して
外部とインタフェースされる。また、図1のデータ入出
力ポートD7−0は第3ポート43に割り当てられ、図
1のポートPC0端子、ポートPC1端子、及びポート
PB端子は第2ポート42に割り当てられる。尚、その
他のポートはリードライト信号などの各種アクセス制御
信号や割り込み信号などの入出力ポートとして機能され
る。In the extended mode in which the external memory space is also used as the program address space, the fifth port 45 and the sixth port 46 are assigned to the I / O port PA11-0 / A19-8 shown in FIG. The 4-port 44 is an output port assigned to the addresses A7 to A0. In this operation mode, the serial communication interface 25 interfaces with the outside through the ninth port 49. The data input / output port D7-0 of FIG. 1 is assigned to the third port 43, and the port PC0 terminal, port PC1 terminal, and port PB terminal of FIG. 1 are assigned to the second port 42. The other ports function as input / output ports for various access control signals such as read / write signals and interrupt signals.
【0020】次に図1のエミュレータ1の動作を説明す
る。前記ユーザインタフェース回路10はインタフェー
スケーブルなどを介してターゲットシステムのマイクロ
プロセッサ搭載領域などに結合され、更にコントロール
プロセッサSMPUはそれに内蔵される第9ポート49
を介してシステム開発装置2に結合される。Next, the operation of the emulator 1 shown in FIG. 1 will be described. The user interface circuit 10 is coupled to a microprocessor mounting area of the target system via an interface cable or the like, and the control processor SMPU is incorporated in the ninth port 49.
Is connected to the system development device 2 via.
【0021】システム起動時には、コントロールプロセ
ッサSMPUにはポートPC1端子によりリセット信号
が強制入力されており、コントロールプロセッサSMP
Uがシステムバス使用可能状態にある。この状態でコン
トロールプロセッサSMPUはポートPA11−0/A
19−8をアドレス信号A19〜A8の出力ポートとし
て内部設定し、各種エミュレーション実行条件をブレー
ク回路やトレース回路に設定すると共に、エミュレーシ
ョン用マイクロプロセッサEMPUの実行プログラムを
エミュレーションRAM6にロードしたりする。その
後、ポートPA11−0/A19−8を入力ポート端子
に内部設定して、ポートPC0端子をローレベルにして
バスの使用権をエミュレーション用マイクロプロセッサ
EMPUに切り替え、さらにポートPC1端子をローレ
ベルにしてエミュレーション用マイクロプロセッサEM
PUによるエミュレーションを開始させる。When the system is started, the reset signal is forcibly input to the control processor SMPU by the port PC1 terminal.
U is in the system bus available state. In this state, the control processor SMPU has the port PA11-0 / A.
19-8 is internally set as an output port of the address signals A19 to A8, various emulation execution conditions are set in the break circuit and the trace circuit, and the execution program of the emulation microprocessor EMPU is loaded into the emulation RAM 6. After that, the ports PA11-0 / A19-8 are internally set as input port terminals, the port PC0 terminal is set to low level, the bus use right is switched to the emulation microprocessor EMPU, and the port PC1 terminal is set to low level. Emulation Microprocessor EM
Start emulation by PU.
【0022】エミュレーション実行時にはコントロール
プロセッサSMPUは入出力ポート端子PBを介してエ
ミュレーションの実行制御及び実行状態の監視を行うと
同時に、入力ポートとして機能されるポートPA11−
0/A19−8を介してエミュレーション用マイクロプ
ロセッサEMPUの実行プログラムアドレスA19〜A
8を取り込む。取り込んだプログラムアドレスはシリア
ルコミュニケーションインタフェースを介してシステム
開発装置2に転送し、その表示装置に表示させてプログ
ラムの実行状態をリアルタイムで監視可能にする。During execution of emulation, the control processor SMPU controls execution of emulation and monitors the execution state through the input / output port terminal PB, and at the same time, the port PA11-functioning as an input port.
0 / A19-8 to execute program addresses A19-A of the microprocessor EMPU for emulation
Take in 8. The fetched program address is transferred to the system development device 2 via the serial communication interface and displayed on the display device so that the execution state of the program can be monitored in real time.
【0023】その後ブレークが発生すると、エミュレー
ションマイクロプロセッサEMPUは例えばRAM9上
に設定されているSLEEP命令を実行して動作を停止
する。これにより、その後コントロールプロセッサSM
PUがバス権を獲得し、トレース回路8に蓄積した情報
をシステム開発装置2側に転送制御したりする。When a break occurs thereafter, the emulation microprocessor EMPU executes the SLEEP instruction set in the RAM 9, for example, and stops the operation. As a result, the control processor SM
The PU acquires the bus right and controls the transfer of the information accumulated in the trace circuit 8 to the system development device 2 side.
【0024】上記実施例によれば以下の作用効果があ
る。According to the above embodiment, there are the following effects.
【0025】(1)エミュレーション用マイクロプロセ
ッサEMPUがバス権を獲得してエミュレーションを行
っているとき、入力ポートとして機能選択されているコ
ントロールプロセッサSMPUの入出力兼用ポートPA
11−0/A19−8は、エミュレーション用マイクロ
プロセッサEMPUの実行プログラムアドレスA19〜
A8を取り込む。取り込んだプログラムアドレスはシリ
アルコミュニケーションインタフェースを介してシステ
ム開発装置2に転送され、その表示装置に表示させてプ
ログラムの実行状態をリアルタイムで監視することがで
きる。(1) Input / output port PA of the control processor SMPU whose function is selected as an input port when the emulation microprocessor EMPU has acquired the bus right and is performing emulation.
11-0 / A19-8 is an execution program address A19- of the emulation microprocessor EMPU.
Take in A8. The fetched program address is transferred to the system development device 2 via the serial communication interface and displayed on the display device so that the execution state of the program can be monitored in real time.
【0026】(2)したがって、アドレスバスの情報を
保持するラッチ回路をコントロールプロセッサの外部ア
ドレス空間上で定義して配置するような専用回路を設け
ることなく、バスを共有する他のマイクロプロセッサの
実行状態を共有バスを介して監視する事ができる。(2) Therefore, the execution of another microprocessor sharing the bus without providing a dedicated circuit for defining and arranging the latch circuit holding the information of the address bus in the external address space of the control processor. The status can be monitored via the shared bus.
【0027】(3)上記(2)によりエミュレーション
用マイクロプロセッサとコントロールプロセッサがバス
を共有する形式のエミュレータの小型化を達成すること
ができる。(3) By the above (2), it is possible to reduce the size of the emulator in which the emulation microprocessor and the control processor share the bus.
【0028】以上本発明者によってなされた発明を実施
例に基づいて具体的に説明したが、本発明はそれに限定
されるものではなく、その要旨を逸脱しない範囲におい
て種々変更可能であることは言うまでもない。例えば、
上記実施例のマイクロプロセッサSMPUにおいてアド
レスA7〜A0の出力ポートは出力専用ポートとして説
明したが、本発明はこれに限定されず、当該アドレスに
ついても入出力兼用ポートを割り当ててもよい。また、
入出力兼用ポートを介してモニタすべき情報はターゲッ
トプログラム若しくはユーザプログラムに限定されず、
データバスの情報であってもよい。モニタすべき情報が
転送されるバスを入出力兼用ポートに接続すればよい。
また、モニタすべき情報が伝達されるバスをアクセスす
る必要がない場合には当該信号伝達のためのバスは入力
専用ポートに接続してもよい。Although the invention made by the present inventor has been specifically described based on the embodiments, the present invention is not limited to the embodiments and various modifications can be made without departing from the scope of the invention. Yes. For example,
In the microprocessor SMPU of the above embodiment, the output ports of the addresses A7 to A0 have been described as output-only ports, but the present invention is not limited to this, and input / output ports may also be assigned to the addresses. Also,
The information to be monitored via the I / O port is not limited to the target program or user program,
It may be data bus information. A bus to which information to be monitored is transferred may be connected to the I / O port.
If it is not necessary to access the bus for transmitting the information to be monitored, the bus for transmitting the signal may be connected to the input-only port.
【0029】以上の説明では主として本発明者によって
なされた発明をその背景となった利用分野であるエミュ
レータに適用したものについて説明したが、この発明は
それに限定されるものではなく、各種ボード製品などの
マイクロプロセッサ応用装置のデバッグのために広く利
用することができる。In the above description, the invention mainly made by the present inventor was applied to an emulator which is a field of application which is the background of the invention. However, the present invention is not limited thereto, and various board products and the like. It can be widely used for debugging of microprocessor application devices.
【0030】本発明は、少なくともバスを共有する複数
プロセッサシステムにおいて一部のマイクロプロセッサ
の動作状態を他のマイクロプロセッサを介してモニタ可
能にする条件のものに適用することができる。The present invention can be applied to a multiprocessor system that shares at least a bus under the condition that the operating states of some microprocessors can be monitored through other microprocessors.
【0031】[0031]
【発明の効果】本願において開示される発明のうち代表
的なものによって得られる効果を簡単に説明すれば下記
の通りである。The effects obtained by the typical ones of the inventions disclosed in the present application will be briefly described as follows.
【0032】すなわち、バス情報を保持するラッチ回路
などをコントロールプロセッサの外部アドレス空間上で
定義して配置するような専用回路を設けることなく、バ
スを共有する他のマイクロプロセッサの実行状態を共有
バスを介して簡単に監視することができるという効果が
ある。さらに、本発明をエミュレータに適用した場合に
は、エミュレーション用マイクロプロセッサとコントロ
ールプロセッサがバスを共有する形式のエミュレータの
小型化を達成することができるという効果がある。That is, without providing a dedicated circuit for defining and arranging a latch circuit or the like for holding bus information in the external address space of the control processor, the execution states of other microprocessors sharing the bus can be shared. There is an effect that it can be easily monitored via. Furthermore, when the present invention is applied to an emulator, there is an effect that it is possible to achieve miniaturization of an emulator in which the emulation microprocessor and the control processor share a bus.
【図1】図1は本発明の一実施例に係るエミュレータの
ブロック図である。FIG. 1 is a block diagram of an emulator according to an embodiment of the present invention.
【図2】図2は図1のエミュレータに含まれるコントロ
ールプロセッサの一例ブロック図である。2 is a block diagram of an example of a control processor included in the emulator of FIG.
1 エミュレータ 2 システム開発装置 3,4 バッファ 5 エミュレーション制御回路 6 エミュレーションRAM 7 ブレーク回路 8 トレース回路 9 RAM 10 ユーザインタフェース回路 SMPU コントロールプロセッサ(制御用マイクロプ
ロセッサ) EMPU エミュレーション用マイクロプロセッサ ABUS アドレスバス DBUS データバス PA11−0/A19−8 入出力兼用ポート A7−0 アドレス出力専用ポート D7−0 データ入出力ポート 20 中央処理装置 41乃至49 ポート1 Emulator 2 System Development Device 3, 4 Buffer 5 Emulation Control Circuit 6 Emulation RAM 7 Break Circuit 8 Trace Circuit 9 RAM 10 User Interface Circuit SMPU Control Processor (Control Microprocessor) EMPU Emulation Microprocessor ABUS Address Bus DBUS Data Bus PA11 -0 / A19-8 Input / output port A7-0 Address output dedicated port D7-0 Data input / output port 20 Central processing unit 41 to 49 ports
Claims (3)
有するシステムであって、少なくとも1個の前記マイク
ロプロセッサは、入出力兼用ポートと、該ポートからの
入力を出力する出力ポートとを有し、前記入出力ポート
を前記バスに直接結合し、他のマイクロプロセッサがバ
ス権を有するときの前記バス情報を前記入出力兼用ポー
トから取り込み、取り込んだ情報を前記出力ポートを介
して外部で監視可能にしたデバッグ装置。1. A system in which a plurality of microprocessors share a bus, wherein at least one of the microprocessors has an input / output port and an output port for outputting an input from the port. The I / O port is directly coupled to the bus, the bus information when another microprocessor has the bus right is taken in from the I / O port, and the taken information can be externally monitored through the output port. Debug device.
プロセッサは、バス権取得に呼応して前記入出力兼用ポ
ートをバス信号出力ポートとし、バス権放棄に呼応して
その入出力兼用ポートをバス信号入力ポートとする動作
モードを有するものである請求項1記載のデバッグ装
置。2. The microprocessor having the I / O port uses the I / O port as a bus signal output port in response to the acquisition of the bus right, and the I / O port uses the bus signal in response to the bus right abandonment. 2. The debugging device according to claim 1, which has an operation mode of being an input port.
のエミュレーション用マイクロプロセッサと、エミュレ
ーション制御のための制御用マイクロプロセッサと、双
方のプロセッサが共通接続されるバスと、同バスに夫々
接続されたトレース回路及びブレーク回路と、前記バス
をターゲットシステムに接続するためのインタフェース
回路とを含み、 前記制御用マイクロプロセッサは、前記バスに直接接続
される入出力兼用ポートと、該ポートからの入力を出力
する出力ポートとを有し、前記エミュレーション用マイ
クロプロセッサがバス権を有するときの前記バス情報を
前記入出力兼用ポートから取り込み、取り込んだ情報を
前記出力ポートを介して外部で監視可能にしたエミュレ
ータ。3. An emulation microprocessor for proxy control of a target system, a control microprocessor for emulation control, a bus to which both processors are commonly connected, and a trace circuit respectively connected to the bus. And a break circuit, and an interface circuit for connecting the bus to a target system, wherein the control microprocessor has an input / output port directly connected to the bus and an output for outputting an input from the port. An emulator that has a port and takes in the bus information from the I / O port when the emulation microprocessor has a bus right, and can externally monitor the taken information through the output port.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3282182A JPH0594328A (en) | 1991-10-02 | 1991-10-02 | Debugger and emulator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3282182A JPH0594328A (en) | 1991-10-02 | 1991-10-02 | Debugger and emulator |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0594328A true JPH0594328A (en) | 1993-04-16 |
Family
ID=17649150
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3282182A Withdrawn JPH0594328A (en) | 1991-10-02 | 1991-10-02 | Debugger and emulator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0594328A (en) |
-
1991
- 1991-10-02 JP JP3282182A patent/JPH0594328A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2002202898A (en) | System LSI | |
| KR970076251A (en) | Data processor and data processing system | |
| US5524211A (en) | System for employing select, pause, and identification registers to control communication among plural processors | |
| JP3380827B2 (en) | Emulator device | |
| JPH0594328A (en) | Debugger and emulator | |
| JP2001350648A (en) | Microcomputer | |
| JP3394834B2 (en) | Debugging method for devices that make up a multiprocessor system | |
| JP3087481B2 (en) | In-circuit emulator | |
| JP2558902B2 (en) | Semiconductor integrated circuit device | |
| JPS63106840A (en) | data processing equipment | |
| KR100477138B1 (en) | Personal computer systems | |
| JPH086920A (en) | Information processing device | |
| JPH03134783A (en) | Single chip microcomputer | |
| JP3187117B2 (en) | One-chip microcomputer with built-in multiprocessor | |
| JPH01217524A (en) | Data processing system | |
| JP2514334B2 (en) | Control device | |
| JPH01309138A (en) | In-circuit emulator | |
| JPH04114241A (en) | Debugging device | |
| JPH03278133A (en) | Central processing unit | |
| JPH0816490A (en) | Computer equipment | |
| JPH0635760A (en) | Buffer device with trace function | |
| JPH04125740A (en) | Microcomputer and emulator | |
| JPS63310035A (en) | Microcomputer | |
| JPH0721053A (en) | Information processing equipment | |
| JPH02207340A (en) | Emulation system and emulator |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19990107 |