JPH0379737B2 - - Google Patents

Info

Publication number
JPH0379737B2
JPH0379737B2 JP60164744A JP16474485A JPH0379737B2 JP H0379737 B2 JPH0379737 B2 JP H0379737B2 JP 60164744 A JP60164744 A JP 60164744A JP 16474485 A JP16474485 A JP 16474485A JP H0379737 B2 JPH0379737 B2 JP H0379737B2
Authority
JP
Japan
Prior art keywords
bus
instruction
memory
emulation
microprocessor
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.)
Expired - Lifetime
Application number
JP60164744A
Other languages
Japanese (ja)
Other versions
JPS6225339A (en
Inventor
Kazuaki Sakurai
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP60164744A priority Critical patent/JPS6225339A/en
Publication of JPS6225339A publication Critical patent/JPS6225339A/en
Publication of JPH0379737B2 publication Critical patent/JPH0379737B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はインサーキツト・エミユレータに関
し、特にエミユレーシヨン・サンプルトレース機
能の改善に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to in-circuit emulators, and more particularly to improvements in emulation sample trace functionality.

(従来の技術) 従来より、マイクロプロセツサ(以下μPとい
う)を応用した機器や製品が多数出現している。
このような機器や製品は、機能の多様化、設計の
簡易化、製造価格の低減が可能になつたのに対し
て、検査、保守、トラブルシユーテイング等では
困難さが増大している。これは、ソフトウエアの
介在や回路のLSI化、さらにはソフトウエアとハ
ードウエアとが複雑に絡みあつて動作しているた
めに、故障の原因箇所の検出が困難になつてきて
いるからに他ならない。
(Prior Art) Many devices and products that utilize microprocessors (hereinafter referred to as μP) have been appearing.
Although it has become possible for such devices and products to have diversified functions, simplified designs, and reduced manufacturing costs, inspection, maintenance, troubleshooting, etc. have become increasingly difficult. This is because it is becoming difficult to detect the cause of a failure due to the intervention of software, the use of LSI circuits, and the complicated interaction between software and hardware. No.

最近このようなμP応用機器の動作解析に好適
な装置の一つとしてインサーキツト・エミユレー
タが出現している。インサーキツト・エミユレー
タは被試験ボード上のICソケツトから対象のマ
イクロプロセツサLSIを取り去り、その後にプロ
ーブを接続してそのマイクロプロセツサをエミユ
レートできるように構成されている。
Recently, an in-circuit emulator has emerged as one of the suitable devices for analyzing the operation of such μP applied equipment. The in-circuit emulator is configured so that it can emulate the microprocessor by removing the target microprocessor LSI from the IC socket on the board under test and then connecting a probe.

このようなインサーキツト・エミユレータのう
ち、プリフエツチ(命令コードの先取り)を行つ
ているマイクロプロセツサをサポートするものに
ついては、従来バス・トレース・データとキユ
ー・トレース・データとを分離し、別々にデータ
ラツチをもつてサンプルした後、トレースメモリ
に書込む方式をとつていた。第3図はその様なイ
ンサーキツト・エミユレータにおけるサンプルト
レース機能を有する回路部分の一例を示す構成図
である。図において、10はターゲツト・マイク
ロプロセツサに応じて作成されたパーソナルモジ
ユールで、ここにはターゲツト・マイクロプロセ
ツサと接続されるバス11上の命令コードをプリ
フエツチするための命令先取追跡回路12を有す
る。
Among these in-circuit emulators, those that support microprocessors that perform prefetching (prefetching instruction codes) have conventionally separated bus trace data and queue trace data and separately latch the data. The method used was to write the sample into the trace memory after sampling it. FIG. 3 is a block diagram showing an example of a circuit portion having a sample trace function in such an in-circuit emulator. In the figure, 10 is a personal module created according to the target microprocessor, which includes an instruction prefetch tracking circuit 12 for prefetching instruction codes on a bus 11 connected to the target microprocessor. have

20はターゲツト・マイクロプロセツサをエミ
ユレーシヨンするために必要な情報を記憶してお
くためのエミユレーシヨンメモリである。
Reference numeral 20 denotes an emulation memory for storing information necessary for emulating the target microprocessor.

21,22はそれぞれバスである。 21 and 22 are buses, respectively.

30はトレースモジユールで、バス・トレー
ス・データとキユー・トレース・データとをそれ
ぞれラツチするデータラツチ31,32と、デー
タラツチに取込んだバス・トレース・データとキ
ユー・トレース・データを格納するサンプルメモ
リ33を有する。
30 is a trace module, which includes data latches 31 and 32 for latching bus trace data and queue trace data, respectively, and a sample memory for storing the bus trace data and queue trace data taken into the data latches. It has 33.

(発明が解決しようとする問題点) このような従来のエミユレータでは、バス・ト
レース用とキユー・トレース用とのバス21,2
2をそれぞれ別個に独立して設けており、不経済
であつた。
(Problems to be Solved by the Invention) In such a conventional emulator, buses 21 and 2 for bus trace and queue trace
2 were provided separately and independently, which was uneconomical.

本発明の目的は、この様な点に鑑み、独立のバ
スを2つ設けることなく、1つのバスでプリフエ
ツチ対応トレースが可能なサンプル・トレース機
能を有するインサーキツト・エミユレータを提供
することにある。
SUMMARY OF THE INVENTION In view of the above, an object of the present invention is to provide an in-circuit emulator having a sample trace function that allows prefetch-compatible tracing to be performed using one bus without providing two independent buses.

(問題点を解決するための手段) この様な目的を達成するために本発明では、命
令をプリフエツチしその命令が実行されたか否か
を判断し、その結果をエミユレーシヨン用バスに
出力するように構成された命令先取追跡回路と、 エミユレーシヨン用バスに接続されたエミユレ
ーシヨンメモリと、 エミユレーシヨン用バスに接続され、キユーフ
エツチ情報をサンプルして記憶しておくためのサ
ンプルメモリと、 を具備し、エミユレーシヨン用バスをバスフエツ
チ動作の非能動タイミングで時分割にキユーフエ
ツチ情報の転送バスとして使用し、トレースメモ
リにキユーフエツチ情報をサンプルさせるように
構成したこと特徴とする。
(Means for Solving the Problem) In order to achieve such an object, the present invention prefetches an instruction, determines whether or not the instruction has been executed, and outputs the result to the emulation bus. an instruction prefetch tracking circuit configured, an emulation memory connected to an emulation bus, and a sample memory connected to the emulation bus for sampling and storing queue fetch information, The present invention is characterized in that the emulation bus is used as a transfer bus for queue fetch information in a time-division manner at the inactive timing of the bus fetch operation, and the queue fetch information is sampled in the trace memory.

(実施例) 以下図面を用いて本発明を詳しく説明する。第
1図は本発明に係るインサーキツト・エミユレー
タの要部構成図である。第3図と同等部分には同
一符号を付す。パーソナル・モジユール10にお
いて、13はバツフア、14は双方向性のバツフ
アである。双方向性のバツフア14の制御(方向
性の制御)は図示しない中央処理装置(ホスト
CPU)からの制御信号によつて制御される。バ
ツフア13の出力は双方向性のバツフア側とオア
結合され1つのバス23に接続されている。この
バス23はトレースモジユール30のデータラツ
チ31に接続されている。
(Example) The present invention will be explained in detail below using the drawings. FIG. 1 is a block diagram of the main parts of an in-circuit emulator according to the present invention. Parts equivalent to those in Figure 3 are given the same symbols. In the personal module 10, 13 is a buffer, and 14 is a bidirectional buffer. Control of the bidirectional buffer 14 (directional control) is performed by a central processing unit (host) (not shown).
Controlled by control signals from CPU). The output of the buffer 13 is OR-combined with the bidirectional buffer side and connected to one bus 23. This bus 23 is connected to a data latch 31 of a trace module 30.

このような構成における動作を次に説明する。
マイクロプロセツサとして例えば日立製作所製造
の8ビツトマイクロコンピユータ6303系
(ROM,RAM入りのCMOS型ワンチツプ・マイ
クロコンピユータで、モトローラ社製の6803マイ
クロプロセツサとアセンブル・レベルのプログラ
ム互換性を有する。)のマイクロプロセツサを例
にとる。
The operation in such a configuration will be explained next.
An example of a microprocessor is the 8-bit microcomputer 6303 series manufactured by Hitachi (a CMOS one-chip microcomputer with ROM and RAM, which has program compatibility at the assembly level with the 6803 microprocessor manufactured by Motorola). Take a microprocessor as an example.

第2図はこのマイクロプロセツサのバスの動作
を示すものである。区間Aでは、実際にマイクロ
プロセツサがメモリからバス経由でデータを取込
んでいるタイミングである。インサーキツト・エ
ミユレータは、メモリ空間がエミユレーシヨンメ
モリに割付けられているときにこの区間Aにエミ
ユレーシヨンメモリ20からバス11経由でマイ
クロプロセツサにデータを送り出し、かつラツチ
31経由でサンプルメモリ32にこのデータを記
憶する。
FIG. 2 shows the operation of this microprocessor bus. In section A, the microprocessor is actually taking in data from the memory via the bus. The in-circuit emulator sends data from the emulation memory 20 to the microprocessor via the bus 11 during this interval A when the memory space is allocated to the emulation memory, and also sends data to the sample memory via the latch 31. This data is stored in 32.

本発明では、更に区間Bのタイミングを利用
し、パーソナルモジユール10内の命令先取追跡
回路12′で生成したキユーフエツチ情報(プリ
フエツチド・インストラクシヨンが実行されたか
否かを判断する論理回路出力)をサンプルメモリ
32へ転送しサンプルさせている。
In the present invention, the timing of section B is further utilized to obtain queue fetch information (logic circuit output for determining whether or not a prefetched instruction has been executed) generated by the instruction prefetch tracking circuit 12' in the personal module 10. The data is transferred to the sample memory 32 and sampled.

(発明の効果) 以上説明したように、本発明によれば、従来の
ように独立バスを2組用意してプリフエツチドデ
ータのトレースを行つていた方式から、1バス方
式に係り、バス接続線の数が減少でき、経済的な
システムを実現することができる。
(Effects of the Invention) As explained above, according to the present invention, the conventional method in which two sets of independent buses are prepared to trace prefetched data is changed to a one-bus method. The number of bus connection lines can be reduced and an economical system can be realized.

なお、本発明のインサーキツト・エミユレータ
は、対象を6303系のマイクロプロセツサに限るこ
となく、同期式プリフエツチ型のマイクロプロセ
ツサも対象とすることができる。
The in-circuit emulator of the present invention is not limited to the 6303 series microprocessor, but can also be applied to a synchronous prefetch type microprocessor.

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

第1図は本発明に係るインサーキツト・エミユ
レータの一実施例を示す要部構成図、第2図は動
作を説明する為のタイムチヤート、第3図は従来
のインサーキツト・エミユレータの要部の一例を
示す構成図である。 10……パーソナルモジユール、11,23…
…バス、12,12′……命令先取…追跡回路、
20……エミユレーシヨンメモリ、30……トレ
ースモジユール、31…データラツチ、32……
サンプルメモリ。
Fig. 1 is a block diagram of the main parts of an embodiment of the in-circuit emulator according to the present invention, Fig. 2 is a time chart for explaining the operation, and Fig. 3 is an example of the main parts of a conventional in-circuit emulator. FIG. 10...Personal module, 11, 23...
...Bus, 12,12'...Instruction preemption...Tracking circuit,
20... Emulation memory, 30... Trace module, 31... Data latch, 32...
sample memory.

Claims (1)

【特許請求の範囲】 1 ターゲツト・マイクロプロセツサからの命令
をプリフエツチしその命令が実行されたか否かを
判断し、その結果を出力するように構成してなる
命令先取追跡回路と、 前記ターゲツト・マイクロプロセツサをエミユ
レーシヨンするために必要な情報を記憶しておく
ためのエミユレーシヨンメモリと、 キユーフエツチ情報をサンプルして記憶してお
くためのサンプルメモリと、 前記ターゲツト・マイクロプロセツサに接続す
るバスに設けられた双方向性のバツフアとオア結
合する前記命令先取追跡回路後段に設けられたバ
ツフアの出力側に接続されると共に、前記サンプ
ルメモリの前段に設けられたデータラツチおよび
前記エミユレーシヨンメモリに接続され、バスフ
エツチ動作の非能動タイミングでキユーフエツチ
情報の転送バスとして時分割的に使用されるよう
に構成されたエミユレーシヨン用バス を具備したことを特徴とするインサーキツト・エ
ミユレータ。
[Scope of Claims] 1. An instruction prefetch tracking circuit configured to prefetch an instruction from a target microprocessor, determine whether the instruction has been executed, and output the result; an emulation memory for storing information necessary for emulating the microprocessor; a sample memory for sampling and storing queue fetch information; and a sample memory connected to the target microprocessor. It is connected to the output side of the buffer provided at the rear stage of the instruction preemption tracking circuit which performs an OR connection with a bidirectional buffer provided at the bus, and also connects to the data latch and the emulation circuit provided at the front stage of the sample memory. An in-circuit emulator comprising an emulation bus connected to a memory and configured to be used as a transfer bus for queue fetch information in a time-sharing manner during inactive timings of bus fetch operations.
JP60164744A 1985-07-25 1985-07-25 In-circuit emulator Granted JPS6225339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60164744A JPS6225339A (en) 1985-07-25 1985-07-25 In-circuit emulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60164744A JPS6225339A (en) 1985-07-25 1985-07-25 In-circuit emulator

Publications (2)

Publication Number Publication Date
JPS6225339A JPS6225339A (en) 1987-02-03
JPH0379737B2 true JPH0379737B2 (en) 1991-12-19

Family

ID=15799082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60164744A Granted JPS6225339A (en) 1985-07-25 1985-07-25 In-circuit emulator

Country Status (1)

Country Link
JP (1) JPS6225339A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2535984B2 (en) * 1987-12-03 1996-09-18 横河電機株式会社 Instruction execution detector

Also Published As

Publication number Publication date
JPS6225339A (en) 1987-02-03

Similar Documents

Publication Publication Date Title
KR100281901B1 (en) Dual Instruction Set Architecture
US6289300B1 (en) Integrated circuit with embedded emulator and emulation system for use with such an integrated circuit
US4674089A (en) In-circuit emulator
JP3715456B2 (en) System and method for testing an embedded microprocessor system that includes physical and / or simulated hardware
US5440751A (en) Burst data transfer to single cycle data transfer conversion and strobe signal conversion
EP0423036B1 (en) CPU-bus controller
EP0862116A3 (en) A smart debug interface circuit
US6263305B1 (en) Software development supporting system and ROM emulation apparatus
JPH0379737B2 (en)
JP2001184212A (en) Trace control circuit
US5335340A (en) Byte-swap hardware simulator for a sixteen bit microprocessor coupled to an eight bit peripheral unit
US7451074B2 (en) Embedded microprocessor emulation method
JPH0399334A (en) Program down loading type emulator
EP0378242A2 (en) Integrated circuit with a debug environment
US5796987A (en) Emulation device with microprocessor-based probe in which time-critical functional units are located
Melear Emulation techniques for microcontrollers
KR900002497Y1 (en) Firmware action analysis devices
JPH0863368A (en) Emulator and microcomputer
JP3087481B2 (en) In-circuit emulator
KR100768436B1 (en) Emulating assistant board
JPH0373011B2 (en)
JPS61859A (en) Clinical inspection data processor
JPS63175940A (en) Microcomputer system development supporting tool
JPS6177933A (en) Data processing system
JPH0635760A (en) Buffer device with tracing function