JPH04148244A - Software evaluating device - Google Patents

Software evaluating device

Info

Publication number
JPH04148244A
JPH04148244A JP2269843A JP26984390A JPH04148244A JP H04148244 A JPH04148244 A JP H04148244A JP 2269843 A JP2269843 A JP 2269843A JP 26984390 A JP26984390 A JP 26984390A JP H04148244 A JPH04148244 A JP H04148244A
Authority
JP
Japan
Prior art keywords
chip
evaluation
rom
program
emulation chip
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
JP2269843A
Other languages
Japanese (ja)
Inventor
Tetsuya Kawasaki
哲哉 川崎
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 JP2269843A priority Critical patent/JPH04148244A/en
Publication of JPH04148244A publication Critical patent/JPH04148244A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To monitor the state of the inside of an emulation chip in real time by providing an internal bus interface to output emulation chip internal data to the outside at the time of the execution of an evaluating program by the emulation chip. CONSTITUTION:The execution of the evaluating program is realized by synchronizing the emulation chip 7, a monitor ROM 8 and a ROM 9 with one another by a reset signal for a peripheral circuit 11, and executing the evaluating program from the head address of the evaluating program in the ROM 9 by the emulation chip 7. At that time, a write signal to a RAM and a register in the emulation chip 7 and the values of a data bus, an address bus, and a program counter, etc., are outputted through the internal bus interface 10. Thus, even during the execution of the evaluating program by the emulation chip 7, the internal data of the emulation chip 7 can be monitored.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はソフトウェア評価装置に関し、特に、シングル
チップ・マイクロコンピュータの内部バスを、実時間に
て監視するために使用されるソフトウェア評価装置に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a software evaluation device, and more particularly to a software evaluation device used for monitoring an internal bus of a single-chip microcomputer in real time.

〔従来の技術〕[Conventional technology]

従来のシングルチップ・マクロコンピュータのソフトウ
ェア評価装置は、第3図に示されるように、当該シング
ルチップ・マクロコンピュータをエミュレートするエバ
チップ21と、エバチップ12を制御するモニタROM
 13と、評価用プログラムを格納するRAM14と、
ホストマシンに対応するインタフェース回路15と、周
辺回路16とを備えて構成される。
As shown in FIG. 3, a conventional single-chip macrocomputer software evaluation device includes an evaluation chip 21 that emulates the single-chip macrocomputer, and a monitor ROM that controls the evaluation chip 12.
13, and a RAM 14 for storing an evaluation program.
It is configured to include an interface circuit 15 corresponding to a host machine and a peripheral circuit 16.

このような構成のソフトウェア評価装置においては、評
価用のプログラムは、ホストマシンからインタフェース
回路15を介して、RAM14に格納される。また、評
価用プログラムの実行は、ホストマシンからのコマンド
を、インタフェース回路15を介してモニタROM 1
3に入力し、モニタROM13の制御下において、RA
M14に格納された評価用10グラムを、エバチップ1
2により実行することによって実現される。また、エバ
チップ12の内部データをホストマシンに転送する時に
は、RA M 14に格納されている評価用プログラム
の実行を一旦中止して、エバチップ12内のデータをイ
ンタフェース回路15を介してホストマシンに転送する
In the software evaluation apparatus having such a configuration, an evaluation program is stored in the RAM 14 from the host machine via the interface circuit 15. Furthermore, the evaluation program is executed by sending commands from the host machine to the monitor ROM 1 via the interface circuit 15.
3, and under the control of the monitor ROM 13, the RA
10 grams for evaluation stored in M14 is transferred to Evachip 1
This is realized by executing 2. Furthermore, when transferring the internal data of the Evachip 12 to the host machine, execution of the evaluation program stored in the RAM 14 is temporarily stopped, and the data in the Evachip 12 is transferred to the host machine via the interface circuit 15. do.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のソフトウェア評価装置においては、エバ
チップ内のデータ、例えば、エバチップ内のRAMまた
はレジスタの値をホストマシンに転送しようとする場合
には、−旦評価プログラムの実行を中止し、エバチップ
内のデータの転送に専念しなければならないシステムに
なっている。
In the above-mentioned conventional software evaluation device, when attempting to transfer data in the Eva chip, for example, RAM or register values in the Eva chip, to the host machine, the execution of the evaluation program is stopped first, and the data in the Eva chip is transferred to the host machine. The system has become a system that must concentrate on transferring data.

このため、評価用プログラムを実行しながら、エバチッ
プ内のデータを随時に見ようとすると、エバチップとし
ては、評価プログラムの実行とデータの転送とを断続的
に繰返すことになるため、当該チップの動作と、エバチ
ップによるエミュレーションとの間に、動作上のタイミ
ング等に大きな差異が生じるという欠点がある。
Therefore, if you try to view the data in the Eva-chip at any time while running the evaluation program, the Eva-chip will intermittently repeat the execution of the evaluation program and the data transfer. , there is a drawback that there is a large difference in operational timing, etc. between emulation using an Eva chip.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のソフトウェア評価装置は、一つのチップ内に、
少なくともROMまたはRAM等を内蔵するシングルチ
ップ・マイクロコンピュータのエミュレーションを行う
エバチップを有するソフトウェア評価装置において、所
定の評価用プログラムを格納するRAMまたはROMと
、前記エバチップによる前記評価用プログラムの実行動
作を制御するモニタROMと、前記エバチップによる前
記評価用プログラムの実行時に、当該エバチップから出
力されるエバチップ内部データを外部に出力する内部バ
ス・インタフェースと、を備えて構成される。
The software evaluation device of the present invention includes, in one chip,
In a software evaluation device having an evaluation chip that emulates a single-chip microcomputer that has at least a built-in ROM or RAM, the RAM or ROM stores a predetermined evaluation program, and the execution operation of the evaluation program by the evaluation chip is controlled. and an internal bus interface that outputs internal data of the Eva-chip to the outside when the Eva-chip executes the evaluation program.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。第1図
は、本発明の第1の実施例を示すブロック図である。第
1図に示されるように、本実施例は、エバチップ1と、
モニタROM2と、RAM3と、インタフェース回路4
と、内部バス・インタフェース5と、周辺回路6とを備
えて構成される。
Next, the present invention will be explained with reference to the drawings. FIG. 1 is a block diagram showing a first embodiment of the present invention. As shown in FIG. 1, this embodiment includes an Eva chip 1,
Monitor ROM2, RAM3, and interface circuit 4
, an internal bus interface 5 , and a peripheral circuit 6 .

評価用フログラムは、従来例の場合と同様に、ホストマ
シンから、インタフェース回路4を介してRAM3に格
納される。この評価用プログラムを実行する時には、ホ
ストマシンからの実行コマンドを、インタフェース回路
4を介してモニタROM2に入力する。そして、モニタ
ROM2の制御下において、エバチップ1により、RA
M3に格納されている評価用プログラムが実行される。
The evaluation program is stored in the RAM 3 from the host machine via the interface circuit 4, as in the conventional example. When executing this evaluation program, an execution command from the host machine is input to the monitor ROM 2 via the interface circuit 4. Then, under the control of the monitor ROM 2, the RA
The evaluation program stored in M3 is executed.

その際、エバチップ1からは、エバチップ1内のRAM
またはレジスタに対する書込み信号、およびデータ・バ
ス、アドレス・バスおよびプログラム・カウンタ値等が
出力される。
At that time, from the Eva chip 1, the RAM in the Eva chip 1 is
Alternatively, write signals to registers, data buses, address buses, program counter values, etc. are output.

また、ホストマシンからのコマンドにより、モニタRO
M2かあ、内部バス・インタフェース5にイネーブル信
号が出力されると、内部バス・インタフェース5を介し
て、エバチップ1内のRAMまたはレジスタに対する書
込み信号、およびデータ・バス、アドレス・バスおよび
プログラム値等が外部に出力される。
In addition, the monitor RO can be controlled by commands from the host machine.
M2: When an enable signal is output to the internal bus interface 5, write signals to the RAM or registers in the EV chip 1, as well as data buses, address buses, program values, etc. are sent via the internal bus interface 5. is output to the outside.

上述したように、内部バス・インタフェース5を介して
出力されるエバチップ1の内部データ等を、書込み信号
にトリガをかけたロジック・アナライザ等によって測定
することにより、エバチップ1のエミュレーション動作
を中止することなしに、実時間ベースにて監視すること
ができる。また、モニタROM2に対して、RAMB内
の特定のアドレスのプログラムを実行する時、またはエ
バチップ1内の特定のアドレスのRAMまたはレジスタ
にアクセスする時に、モニタROM2から内部バス・イ
ンタフェース5に、前記イネーブル信号が出力されるよ
うに設定すると、必要な時にのみ、エバチップ1内のデ
ータを監視することができる。
As mentioned above, the emulation operation of the Eva-chip 1 can be stopped by measuring the internal data of the Eva-chip 1 output via the internal bus interface 5 using a logic analyzer or the like triggered by the write signal. can be monitored on a real-time basis. Also, when executing a program at a specific address in RAMB for monitor ROM 2, or when accessing RAM or registers at a specific address in Evachip 1, the enable signal is sent from monitor ROM 2 to internal bus interface 5. By setting the signal so that it is output, the data in the EV chip 1 can be monitored only when necessary.

次に、本発明の第2の実施例について、第2図を参照し
て説明する。第2図に示されるように、本実施例は、エ
バチップ7と、モニタROM 8と、ROM9と、内部
バス・インタフェースlOと、周辺回路llとを備えて
構成される。
Next, a second embodiment of the present invention will be described with reference to FIG. As shown in FIG. 2, this embodiment includes an evaluation chip 7, a monitor ROM 8, a ROM 9, an internal bus interface 1O, and a peripheral circuit 11.

第2図において、評価用プログラムの実行は、周辺回路
11からのリセット信号により、エバチップ7、モニタ
ROM8およびROM9の同期を取り、エバチップ7に
より、ROMQ内の評価用プログラムの先頭番地から実
行することによって、実現される。その際、エバチップ
7内のRAMおよびレジスタに対する書込み信号および
データ・バス、アドレス・バス、プログラム−カウンタ
値等は、内部バス・インタフェース10を介して出力さ
れる。従って、エバチップ7による評価用プログラムの
実行中においても、エバチップ7の内部データを監視す
ることが可能である。なお、この場合においては、ホス
トマシンからのコマンドは必要とされない。以上、説明
したように、第2の実施例の場合には、ホストマシンを
使用することなしに、評価用プログラムの実行およびエ
バチップ7内のモニタを、実時間ベースにて行うことが
できる。
In FIG. 2, the evaluation program is executed by synchronizing the evaluation program 7, monitor ROM 8, and ROM 9 with a reset signal from the peripheral circuit 11, and executing the evaluation program from the first address in ROMQ by the evaluation chip 7. This is realized by At this time, write signals, data buses, address buses, program counter values, etc. to the RAM and registers in the evaluation chip 7 are outputted via the internal bus interface 10. Therefore, even while the evaluation program is being executed by the Eva-chip 7, it is possible to monitor the internal data of the Eva-chip 7. Note that in this case, no command from the host machine is required. As described above, in the case of the second embodiment, the evaluation program can be executed and the inside of the evaluation chip 7 can be monitored on a real-time basis without using a host machine.

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

以上、詳細に説明したように、本発明は、シングルチッ
プ・マイクロコンピュータのソフトウェア評価装置に含
まれるエバチップ内部の状態を、実時間ベースにて行う
ことができるため、評価用プログラムの動きをダイナミ
ックに把握することが可能となり、デイバグ等の作業効
率を著しく向上させることができるという効果がある。
As described above in detail, the present invention is capable of checking the internal state of an evaluation chip included in a software evaluation device for a single-chip microcomputer on a real-time basis, thereby dynamically controlling the operation of an evaluation program. This has the effect of significantly improving the work efficiency of daybugs and the like.

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

第1図および第2図は、それぞれ本発明の第1および第
2の実施例を示すブロック図である。第3図は従来例の
ブロック図である。 図において、1,7.12・−・・・・エバチップ、2
゜8.13・・・・・・モニタROM、3,14・・・
・・・RAM、4゜15・・−・・・インタフェース回
路、5,10・・・・・・内部インタフェース、6.1
1.16・・・・・・周辺回路、9・・・・・・ROM
FIGS. 1 and 2 are block diagrams showing first and second embodiments of the present invention, respectively. FIG. 3 is a block diagram of a conventional example. In the figure, 1, 7.12 --- Eva chip, 2
゜8.13...Monitor ROM, 3,14...
...RAM, 4゜15...Interface circuit, 5,10...Internal interface, 6.1
1.16...Peripheral circuit, 9...ROM
.

Claims (1)

【特許請求の範囲】 一つのチップ内に、少なくともROMまたはRAM等を
内蔵するシングルチップ・マイクロコンピュータのエミ
ュレーションを行うエバチップを有するソフトウェア評
価装置において、 所定の評価用プログラムを格納するRAMまたはROM
と、 前記エバチップによる前記評価用プログラムの実行動作
を制御するモニタROMと、 前記エバチップによる前記評価用プログラムの実行時に
、当該エバチップから出力されるエバチップ内部データ
を外部に出力する内部バス・インタフェースと、 を備えることを特徴とするソフトウェア評価装置。
[Scope of Claims] In a software evaluation device having an evaluation chip that emulates a single-chip microcomputer that has at least a ROM or RAM built-in in one chip, the RAM or ROM stores a predetermined evaluation program.
a monitor ROM that controls the execution operation of the evaluation program by the evaluation chip; an internal bus interface that outputs internal data of the evaluation chip from the evaluation chip to the outside when the evaluation program is executed by the evaluation chip; A software evaluation device comprising:
JP2269843A 1990-10-08 1990-10-08 Software evaluating device Pending JPH04148244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2269843A JPH04148244A (en) 1990-10-08 1990-10-08 Software evaluating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2269843A JPH04148244A (en) 1990-10-08 1990-10-08 Software evaluating device

Publications (1)

Publication Number Publication Date
JPH04148244A true JPH04148244A (en) 1992-05-21

Family

ID=17477964

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2269843A Pending JPH04148244A (en) 1990-10-08 1990-10-08 Software evaluating device

Country Status (1)

Country Link
JP (1) JPH04148244A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6442668B2 (en) 1997-11-28 2002-08-27 Nec Corporation Bus control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6442668B2 (en) 1997-11-28 2002-08-27 Nec Corporation Bus control system

Similar Documents

Publication Publication Date Title
US7089170B2 (en) System and method for testing an embedded microprocessor system containing physical and/or simulated hardware
JPH04257932A (en) Chip for emulation for digital signal processor
JPH04148244A (en) Software evaluating device
JP2001350648A (en) Microcomputer
JPH08328898A (en) User space access method and emulator
JP3087481B2 (en) In-circuit emulator
JP2575025B2 (en) In-circuit emulator
JPH01309138A (en) In-circuit emulator
JPH0373011B2 (en)
JPS61177552A (en) Program evaluating device of microprocessor
JPH0477883A (en) Single chip microcomputer
JPH0635760A (en) Buffer device with tracing function
JPH01137339A (en) Microprocessor
JPH0496832A (en) Fault information gathering device
JPH03201151A (en) Input/output controller
JPH11167500A (en) Event circuit and debug system for emulator device
JPH04264932A (en) In-circuit emulator
JPH02108154U (en)
JPS63214862A (en) Microprocessor
JPH0232154U (en)
JPH01310450A (en) I/o emulator
JPH01135554U (en)
JPH03252830A (en) Debugging mechanism for information processor
JPH1083316A (en) Multi cpu system
JPH0682348B2 (en) I / O control method