JPS63167939A - Emulator for microcomputer with built-in plural processors - Google Patents

Emulator for microcomputer with built-in plural processors

Info

Publication number
JPS63167939A
JPS63167939A JP62000671A JP67187A JPS63167939A JP S63167939 A JPS63167939 A JP S63167939A JP 62000671 A JP62000671 A JP 62000671A JP 67187 A JP67187 A JP 67187A JP S63167939 A JPS63167939 A JP S63167939A
Authority
JP
Japan
Prior art keywords
emulator
emulation
processor
mode
circuit
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.)
Granted
Application number
JP62000671A
Other languages
Japanese (ja)
Other versions
JPH0650473B2 (en
Inventor
Kazuyoshi Kuwabara
桑原 一悦
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 Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP62000671A priority Critical patent/JPH0650473B2/en
Publication of JPS63167939A publication Critical patent/JPS63167939A/en
Publication of JPH0650473B2 publication Critical patent/JPH0650473B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To take a synchronization between each mode, and to switch the mode in the relation of master/slave, by providing a circuit for arbitrating a state detecting signal of each processor emulator, and switching an emulation mode to a debug mode by its output. CONSTITUTION:Processor emulators 1, 3 for a plural processor built-in type microcomputer are connected through an emulator control part 2 and an arbitrating circuit 16. Outputs of state detecting circuits 5a, 5b are inputted to the circuit 16, and its outputs 18a, 18b are inputted to the respective emulation control parts 7a, 7b. The circuit 16 takes AND of state detecting signals 17a, 17b and outputs it to the control parts 7a, 7b. Only in case when emulation parts 6a, 6b have become equal to a condition which has been set in advance to the circuits 5a, 5b, each emulator 1, 3 shifts to a debug mode. The emulator 3 can be switched singly to the debug mode in its own emulation state.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、1チップ上に複数プロセッサを集積している
マイクロコンピュータのプログラム開発用エミュレータ
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an emulator for program development of a microcomputer in which a plurality of processors are integrated on one chip.

〔従来の技術〕[Conventional technology]

従来の複数マイクロプロセッサを内蔵したマイクロコン
ピユー°夕用エミュレータの例を第4図に示す、この図
の例ではプロセッサを2個内蔵して、いるマイクロコン
ピュータの場合の例であり、それぞれのプロセッサ(図
示せず)ごとにブロセッサエミュレータ1.3を有して
いる。さらにこれらプロセッサエミュレータ1,3を制
御するものとしてエミュレータコントロール部2が存在
している。このエミュレータの動作について説明する。
Figure 4 shows an example of a conventional emulator for a microcomputer with multiple built-in microprocessors.The example in this figure is an example of a microcomputer with two built-in processors. (not shown) has a processor emulator 1.3. Furthermore, an emulator control section 2 is provided to control these processor emulators 1 and 3. The operation of this emulator will be explained.

1のプロセッサエミュレータについてのみ説明するが3
についても同様な説明になる。
I will only explain processor emulator 1, but 3
The same explanation applies to .

まず対象となるプロセッサのエミュレーションはエミュ
レーション部6aで行なう、このエミュレーション部6
aから実行するプログラムを格納しているメモリ4aに
対してそのメモリアドレスがアドレスバス12aを通じ
て出力される。メモリ4aは入力したアドレスに従って
データを13aバスを通じてエミュレーション制御部7
aに出力する。このエミュレーション制御部は、このプ
ロセッサエミュレータがエミュレーションモードである
ならば13aバスからのデータをそのまま14aのバス
を介してエミュレーション部6aに出力する。このメモ
リに格納するデータはエミュレータコントロール部2よ
りバス9aを通じてあらかじめ書き込まれている。この
プロセッサエミュレータ1をエミュレーションモードか
らエミュレーション部6aの内部状態を確認変更できる
デバグモードに移行させる手段について次に示す。
First, emulation of the target processor is performed by the emulation unit 6a.
The memory address is outputted from address bus 12a to memory 4a storing the program to be executed from a. The memory 4a sends data to the emulation control unit 7 via the bus 13a according to the input address.
Output to a. If this processor emulator is in emulation mode, this emulation control section outputs the data from the bus 13a as it is to the emulation section 6a via the bus 14a. The data to be stored in this memory is written in advance by the emulator control unit 2 via the bus 9a. The means for shifting the processor emulator 1 from the emulation mode to the debug mode in which the internal state of the emulation section 6a can be checked and changed will be described below.

なお、エミュレーションモードではこのような確認変更
は行えない。ここでモードを移行させる条件としてエミ
ュレーション部6aから出力される前記したアドレスが
ある値になった時に移行する場合について考える。まず
、移行する条件となるデータをエミュレータコントロー
ル部2より10aのバスを通じて状態検出回路5aにセ
ットしておく。この状態検出回路5aはエミュレーショ
ン中にアドレスバス12aから出力されるアドレスがあ
らかじめセットされた値かどうか判定し、一致した場合
にはその旨の信号をllaを通じてエミュレーション制
御部7aに出力する。エミュレーション制御部7aはこ
の信号によりモードを移行すると判別したならばメモリ
4aから入力されエミュレーション部6aに出力するの
を停止して、代わりにエミュレータコントロール部2よ
りバス8aを通じて送り込まれるデバッグ用データを出
力する。なおこのデータ(プログラム)は内部の状態を
確認するものである。このデバッグ用データによりエミ
ュレーション部6aは内部状態をバス15aを通じてエ
ミュレータコントロール部2に送り、エミュレータコン
トロール部2がエミュレーション部6aの内部状態を確
認できるようになる。デバッグモードからエミュレーシ
ョンモードへの移行は状態検出回路7aより直接エミュ
レーション制御部を制御して行なう、メモリ4aに格納
されたプログラムの評価は通常このエミュレーションモ
ードとデバッグモードとを切りかえして内部状態を確認
しながら行なっていく。
Note that such confirmation changes cannot be made in emulation mode. Here, we will consider a case where the mode is shifted when the above-mentioned address outputted from the emulation section 6a reaches a certain value as a condition for shifting the mode. First, data that is a condition for migration is set in the state detection circuit 5a from the emulator control section 2 through the bus 10a. The state detection circuit 5a determines whether the address output from the address bus 12a during emulation is a preset value, and if they match, outputs a signal to that effect to the emulation control section 7a through lla. If the emulation control unit 7a determines that the mode should be changed based on this signal, it stops inputting data from the memory 4a and outputting it to the emulation unit 6a, and instead outputs debugging data sent from the emulator control unit 2 through the bus 8a. do. Note that this data (program) is for checking the internal state. With this debugging data, the emulation section 6a sends the internal state to the emulator control section 2 via the bus 15a, and the emulator control section 2 can confirm the internal state of the emulation section 6a. Transition from debug mode to emulation mode is performed by directly controlling the emulation control unit from the status detection circuit 7a.Evaluation of the program stored in the memory 4a is normally performed by switching between emulation mode and debug mode to check the internal state. I will do it while doing it.

これらのことは3のプロセッサ、エミュレータでもこの
例では同様である。このように従来技術では各々のプロ
セッサエミュレータのモードを移行させる条件は各々の
プロセッサエミュレータ自身の条件に限っていた。
These things are the same for the 3rd processor and emulator in this example. In this way, in the prior art, the conditions for changing the mode of each processor emulator are limited to the conditions of each processor emulator itself.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

以上説明した従来技術では、各々のプロセッサエミュレ
ータをエミュレーションモードからデバッグモードに切
換る条件は各々のプロセッサのエミュレーション状態だ
けに限定されていた。このため複数のプロセッサエミュ
レータ間で同期をとって切換えることができない欠点が
あった。たとえば、第4図の従来技術の例ではプロセッ
サエミュレータ1がある条件になり次にプロセッサエミ
ュレータ3もある条件になった時にともに状態が切換わ
るというようなことが行なえなかった9〔問題点を解決
するための手段〕 従来技術の問題点を解決するため、従来技術例における
状態検出回路3からの信号を直接エミュレーション制御
部に入力せずに、代わりに各々のプロセッサエミュレー
タの状態検出回路からの信号を調停する調停回路を有し
ている。
In the conventional technology described above, the conditions for switching each processor emulator from emulation mode to debug mode are limited to the emulation state of each processor. For this reason, there is a drawback that synchronized switching between multiple processor emulators is not possible. For example, in the example of the prior art shown in FIG. 4, it was not possible to switch the states of processor emulator 1 and processor emulator 3 when a certain condition was reached. In order to solve the problems of the prior art, the signal from the state detection circuit 3 in the prior art example is not directly input to the emulation control unit, but instead the signal from the state detection circuit of each processor emulator is input. It has an arbitration circuit that arbitrates.

前述した従来の複数プロセッサ内蔵型マイクロコンピュ
ータ用エミュレータに対して本発明は、それぞれのプロ
セッサエミュレータの状態検出信号を調停する回路を設
け、この回路の出力信号でそれぞれのプロセッサエミュ
レータのモードを切換えることを可能ならしめた独創的
内容を有する。
In contrast to the conventional emulator for a microcomputer with built-in multiple processors, the present invention provides a circuit that mediates the state detection signals of each processor emulator, and switches the mode of each processor emulator using the output signal of this circuit. It has original content that makes it possible.

〔実施例〕〔Example〕

本発明について図面を用いて説明する。第1図は本発明
による複数プロセッサ内蔵型マイクロコンピュータ用エ
ミュレータの構成図である。第4図の従来技術とは基本
的には同一であるが状態検出回路5aからの信号がエミ
ュレーション制御部7aに直接入力されず、信号線17
aを通じて調停回路16に入力され調停回路16からの
出力信号18aがエミュレーション制御部7aに入力さ
れる点が異なっているだけでエミュレーション部6a、
状態検出回路5a、メモリ4a、エミュレーション制御
部7aの機能自体は従来技術の例と変わりない、これは
プロセッサエミュレータ3についても同様である。調停
回路16はプロセッサエミュレータの1,3の状態検出
回路5a、5bからの状態検出信号17a、17bを入
力としてこれら信号を調停してそれぞれのエミュレーシ
ョン制御部7a、7bに出力している。
The present invention will be explained using the drawings. FIG. 1 is a block diagram of an emulator for a microcomputer with built-in multiple processors according to the present invention. Although it is basically the same as the prior art shown in FIG. 4, the signal from the state detection circuit 5a is not directly input to the emulation control section 7a,
The only difference is that the output signal 18a from the arbitration circuit 16 is input to the arbitration circuit 16 through the emulation section 6a, and the output signal 18a from the arbitration circuit 16 is input to the emulation control section 7a.
The functions of the state detection circuit 5a, memory 4a, and emulation control unit 7a are the same as those in the prior art, and the same applies to the processor emulator 3. The arbitration circuit 16 receives state detection signals 17a and 17b from the state detection circuits 5a and 5b of the processor emulators 1 and 3, arbitrates these signals, and outputs the results to the respective emulation control sections 7a and 7b.

次にこの調停回路の例について示す、第2図、第3図が
調停回路の例を示す図である。第2図は調停回路の中の
実施例を示す回路図である。17a、17bから送られ
てくるそれぞれのプロセッサエミュレータの状態検出信
号を単純にANDゲートで論理積をとりこの出力を18
a、18bを通じてそれぞれのエミュレーション制御部
7a。
Next, an example of this arbitration circuit will be shown, and FIGS. 2 and 3 are diagrams showing examples of the arbitration circuit. FIG. 2 is a circuit diagram showing an embodiment of the arbitration circuit. The state detection signals of the respective processor emulators sent from 17a and 17b are simply ANDed using an AND gate, and this output is sent to 18.
a, 18b through the respective emulation control units 7a.

7bに出力する。この実施例ではあらかじめそれぞれの
状態検出回路5a、5bに設定しておいた条件にプロセ
ッサエミュレータのエミュレーション部6a、6bが共
になった場合にのみそれぞれのプロセッサエミュレータ
がエミュレーションモードからデバッグモードに移行す
ることになる。
Output to 7b. In this embodiment, each processor emulator shifts from the emulation mode to the debug mode only when the emulation units 6a and 6b of the processor emulator meet the conditions set in advance in the respective state detection circuits 5a and 5b. become.

第3図は調停回路の第2の例の実施例を示す回路図であ
る。ここでは信号線18aを通じて1のプロセッサエミ
ュレータに出力される信号は第2図の場合と同様にそれ
ぞれのプロセッサエミュレータからの状態検出回路から
の出力の論理積の信号である。18bを通じて3のプロ
セッサエミュレータ1に出力される信号は17bの状態
検出信号をそのまま送りかえしている。しかし、3のプ
ロセッサエミュレータは自身のエミュレーション状態で
エミュレーションモードからデバッグモードに切換わる
ことが可能である。1のプロセッサエミュレータは1と
3のプロセッサエミュレータがともにあらかじめ設定し
ておいた条件になった時にのみモードが切換わることに
なる。
FIG. 3 is a circuit diagram showing a second example embodiment of the arbitration circuit. Here, the signal outputted to one processor emulator through the signal line 18a is the AND signal of the outputs from the state detection circuits from the respective processor emulators, as in the case of FIG. The signal output to the processor emulator 1 of 3 through 18b is the state detection signal of 17b sent back as is. However, the processor emulator No. 3 can switch from emulation mode to debug mode in its own emulation state. The mode of processor emulator No. 1 is switched only when the preset conditions for both processor emulators No. 1 and No. 3 are met.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、複数プロセッサを集積したマイク
ロコンピュータのエミュレータを構成しているプロセッ
サエミュレータのエミュレーションモードを切換えるた
めに、各々のプロセッサエミュレータの状態検出信号を
調停する調停回路を設けこの調停回路の出力でエミュレ
ーションモードをデバッグモードに切換える事を可能に
した事により次の効果がある。まず、従来はそれぞれの
プロセッサエミュレータのエミュレーション部の状態で
のみそれぞれのプロセッサエミュレータのモードが切換
えられたが本発明によりプロセッサエミュレータ間で同
期をとったりマスタ/スレーブの関係でそれぞれのプロ
セッサエミュレータのモードを切換えることが可能にな
る。
As explained above, in order to switch the emulation mode of the processor emulators constituting the emulator of a microcomputer that integrates multiple processors, an arbitration circuit is provided to arbitrate the state detection signals of each processor emulator, and the output of this arbitration circuit is By making it possible to switch emulation mode to debug mode, the following effects can be achieved. First, conventionally, the mode of each processor emulator was switched only depending on the state of the emulation section of each processor emulator, but with the present invention, the mode of each processor emulator can be switched based on the synchronization between processor emulators and the master/slave relationship. becomes possible.

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

第1図は本発明の複数プロセッサ内蔵型マイクロコンピ
ュータ用エミュレータの構成図、第2図および第3図は
調停回路の実施例を示す図、第4図は従来のエミュレー
タの構成図である。 図において、 1はプロセッサエミュレータ、2はエミュレータコント
ロール部、3はプロセッサエミュレー4a、4bはプロ
グラム格納用メモリ、5a。 5bは状態検出回路、6a、6bはエミュレーション部
、7a、7bはエミュレーション制御部、16は調停回
路、20.21はANDゲート。
FIG. 1 is a block diagram of an emulator for a microcomputer with built-in multiple processors according to the present invention, FIGS. 2 and 3 are diagrams showing embodiments of an arbitration circuit, and FIG. 4 is a block diagram of a conventional emulator. In the figure, 1 is a processor emulator, 2 is an emulator control unit, 3 is a processor emulator 4a, 4b is a program storage memory, and 5a. 5b is a state detection circuit, 6a and 6b are emulation sections, 7a and 7b are emulation control sections, 16 is an arbitration circuit, and 20.21 is an AND gate.

Claims (1)

【特許請求の範囲】[Claims] 複数のプロセッサを1チップ上に集積したマイクロコン
ピュータ用エミュレータにおいて、該エミュレータは集
積されているプロセッサごとに各々エミュレーションを
行なうプロセッサエミュレータと、これら複数のプロセ
ッサエミュレータを制御するエミュレータコントロール
部と、前記各々のプロセッサエミュレータからエミュレ
ーション状態を示す状態検出信号を受け、前記各々のプ
ロセッサエミュレータへ調停信号を出力する調停回路と
を含み構成され、前記各々のプロセッサエミュレータに
は該プロセッサのエミュレーション状態を前記エミュレ
ータコントロール部からの情報に従って検出し、状態検
出信号を出力する状態検出回路と、前記各々の状態検出
信号を入力としこれら信号を調停して各々のプロセッサ
エミュレータに出力する調停回路が具備され、前記調停
信号に従ってプロセッサエミュレータをエミュレーショ
ンモードからデバグモードに切換える手段を有するエミ
ュレーション制御信号とを含むことを特徴とする複数プ
ロセッサ内蔵型マイクロコンピュータ用エミュレータ。
In a microcomputer emulator in which a plurality of processors are integrated on one chip, the emulator includes a processor emulator that performs emulation for each of the integrated processors, an emulator control section that controls the plurality of processor emulators, and each of the above-mentioned processors. an arbitration circuit that receives a state detection signal indicating an emulation state from a processor emulator and outputs an arbitration signal to each of the processor emulators, and each processor emulator receives the emulation state of the processor from the emulator control unit. and an arbitration circuit that receives the respective state detection signals as input, arbitrates these signals, and outputs the signals to each processor emulator. An emulator for a microcomputer with a built-in multiple processors, comprising: an emulation control signal having means for switching the emulator from emulation mode to debug mode.
JP62000671A 1987-01-05 1987-01-05 Emulator for multiple computers with built-in multiple processors Expired - Lifetime JPH0650473B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62000671A JPH0650473B2 (en) 1987-01-05 1987-01-05 Emulator for multiple computers with built-in multiple processors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62000671A JPH0650473B2 (en) 1987-01-05 1987-01-05 Emulator for multiple computers with built-in multiple processors

Publications (2)

Publication Number Publication Date
JPS63167939A true JPS63167939A (en) 1988-07-12
JPH0650473B2 JPH0650473B2 (en) 1994-06-29

Family

ID=11480207

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62000671A Expired - Lifetime JPH0650473B2 (en) 1987-01-05 1987-01-05 Emulator for multiple computers with built-in multiple processors

Country Status (1)

Country Link
JP (1) JPH0650473B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5051888A (en) * 1988-12-30 1991-09-24 Hewlett Packard Company Data processing systems for coordinating measurement activity upon a plurality of emulators
JP2014099099A (en) * 2012-11-15 2014-05-29 Denso Corp Control system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61241841A (en) * 1985-04-16 1986-10-28 インテル・コ−ポレ−シヨン Emulator

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61241841A (en) * 1985-04-16 1986-10-28 インテル・コ−ポレ−シヨン Emulator

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5051888A (en) * 1988-12-30 1991-09-24 Hewlett Packard Company Data processing systems for coordinating measurement activity upon a plurality of emulators
JP2014099099A (en) * 2012-11-15 2014-05-29 Denso Corp Control system

Also Published As

Publication number Publication date
JPH0650473B2 (en) 1994-06-29

Similar Documents

Publication Publication Date Title
US5832251A (en) Emulation device
JPS60124744A (en) Error testing and diagnosing apparatus
JPS63167939A (en) Emulator for microcomputer with built-in plural processors
JP2774675B2 (en) Bus controller
JP2628311B2 (en) Microcomputer
US7058842B2 (en) Microcontroller with multiple function blocks and clock signal control
CN110462603B (en) Microcomputer
JPS59229662A (en) Common memory control circuit
JPH0346351A (en) Semiconductor integrated circuit device
JP2558902B2 (en) Semiconductor integrated circuit device
JP2861001B2 (en) I / O circuit
JPS6041140A (en) Debugging device of read-only memory built in semiconductor integrated circuit
JPH06223046A (en) Bus tracing execution method
JPH01266651A (en) Semiconductor memory device
JPH032988A (en) Microcomputer
KR940001631A (en) Main Processing Module Control Circuit of Electronic Switch
JPH0346350A (en) Semiconductor integrated circuit device
JPS59128653A (en) Controlling device of status history memory
JPH05274169A (en) Computer
JPH0433133A (en) Microcomputer
JPS62251829A (en) Symbolic processing system and method
JP2001022710A (en) System with plural bus controllers
JPH03111945A (en) Programmable controller
JPH1011102A (en) Duplex system
JPH0744490A (en) Bus control circuit of multi-processor configuration

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term