JPH0477933A - Microprocessor for evaluation - Google Patents

Microprocessor for evaluation

Info

Publication number
JPH0477933A
JPH0477933A JP2191726A JP19172690A JPH0477933A JP H0477933 A JPH0477933 A JP H0477933A JP 2191726 A JP2191726 A JP 2191726A JP 19172690 A JP19172690 A JP 19172690A JP H0477933 A JPH0477933 A JP H0477933A
Authority
JP
Japan
Prior art keywords
instruction
microprocessor
signal
program
address
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
JP2191726A
Other languages
Japanese (ja)
Inventor
Satoshi Ikei
池井 聡
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 JP2191726A priority Critical patent/JPH0477933A/en
Publication of JPH0477933A publication Critical patent/JPH0477933A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To measure the coverage of an instruction which does not include invalid fetch and which is actually executed by connecting the value of a pro gram counter holding the address value of the instruction which is to be execut ed next and an instruction fetch signal showing the executing timing of the executed instruction to a coverage measurement circuit. CONSTITUTION:A control circuit 5 outputting the value of the program counter 6, which exists in an execution unit 2 in a microprocessor which holds the execution address of the next instruction, and the instruction fetch signal from an instruction queue buffer 3 in the microprocessor to the execution unit 2 to the coverage measurement circuit is provided. The value of the program counter 6 at the time of the output timing of a negative logic instruction fetch signal (QRD signal) 7 for one system clock shows the address value of the instruction which the microprocessor for evaluation 1 actually executes. Thus, the coverage measurement of the program which does not include invalid fetch and which is actually executed can be executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はインサーキットエミュレータで使用する評価用
マイクロプロセッサに関し、特に命令先取り機能を有す
る評価用マイクロプロセッサに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an evaluation microprocessor used in an in-circuit emulator, and more particularly to an evaluation microprocessor having an instruction prefetch function.

〔従来の技術〕[Conventional technology]

一般的に、マイクロプロセッサを使用した応用機器の開
発時、ハードウェア、ソフトウェアのデバッグ装置とし
て、インサーキットエミュレータが広く用いられている
In general, in-circuit emulators are widely used as hardware and software debugging devices when developing applied devices using microprocessors.

インサーキットエミューレータは対象とするマイクロプ
ロセッサと等価な動作を行う評価用マイクロプロセッサ
を用いて、ターゲットとなるマイクロプロセッサ応用機
器のマイクロプロセッサの代りにプログラムを実行、停
止し、またメモリ内容の参照、変更、レジスタ内容の参
照、変更機能等を有している。
An in-circuit emulator uses an evaluation microprocessor that performs operations equivalent to the target microprocessor to execute and stop programs in place of the microprocessor in the target microprocessor application device, and to reference memory contents. It has functions such as changing, referencing and modifying register contents.

近年、この種のインサーキットエミュレータにおいて、
プログラムのカバレッジ測定ができる物が増えつつある
。カバレッジとは、プログラム中の全ての命令のうち、
1回以上実行した命令が全プログラムの何%であるかを
示す指標として、そのプラグラムのテストの達成度を測
る基準の1つとなっている。インサーキットエミュレー
タで上記カバレッジを行う方法としては、プログラムメ
モリと一対一に対応したカバレッジ測定用メモリを持ち
、プログラムフェッチ時に、カバレッジ測定用メモリに
そのプラグラムがフェッチされたという情報を書き込む
のが一般的である。
In recent years, in this type of in-circuit emulator,
The number of tools that can measure program coverage is increasing. Coverage is the coverage of all instructions in a program.
It is an index that shows what percentage of the entire program has instructions that have been executed at least once, and is one of the criteria for measuring the degree of achievement of the program's test. The general method for performing the above coverage with an in-circuit emulator is to have a coverage measurement memory that corresponds one-to-one with the program memory, and when a program is fetched, write information that the program has been fetched to the coverage measurement memory. It is.

上述した従来の技術について図面を用いて説明する。第
5図はインサーキットエミュレータのカバレッジ測定回
路を示す図である。評価用マイクロプロセッサ(C)3
0はターゲットとなるマイクロプロセッサ応用機器に搭
載されるマイクロプロセッサと等価な働きをする。スー
パバイザ(CPU)31はインサーキットエミュレータ
全体の制御を行っている。評価用マイクロプロセッサ3
0とスーパバイザ31のアドレスは、それぞれバッファ
33.バッファ34を通して、カバレッジ測定用メモリ
35のアドレス入力(A)へ接続されている。評価用マ
イクロプロセッサ30のプログラムフェッチ信号(FE
TCH)39とスーパバイザ31のライト信号(WR)
40はセレクタ36を通してカバレッジ測定用メモリ3
5のWR大入力、スーパバイザ3]のリード信号(RD
)’41はセレクタ36を通してカバレッジ測定用メモ
リのアウトプットイネーブル(OE)へ、かつデータバ
スは双方向性バッファ38を通してデータ入出力(D)
に接続されている。
The above-mentioned conventional technology will be explained using the drawings. FIG. 5 is a diagram showing a coverage measurement circuit of an in-circuit emulator. Evaluation microprocessor (C) 3
0 functions equivalent to the microprocessor installed in the target microprocessor application equipment. A supervisor (CPU) 31 controls the entire in-circuit emulator. Evaluation microprocessor 3
0 and supervisor 31 are stored in buffer 33.0 and supervisor 31, respectively. It is connected through a buffer 34 to an address input (A) of a coverage measurement memory 35. Program fetch signal (FE) of the evaluation microprocessor 30
TCH) 39 and supervisor 31 write signal (WR)
40 is the coverage measurement memory 3 through the selector 36.
5 WR large input, supervisor 3] read signal (RD
)'41 is connected to the output enable (OE) of the coverage measurement memory through the selector 36, and the data bus is connected to the data input/output (D) through the bidirectional buffer 38.
It is connected to the.

次に、本カバレッジ測定回路の動作について説明する。Next, the operation of this coverage measurement circuit will be explained.

評価用マイクロプロセッサ30かターゲットとなるマイ
クロプロセッサ応用機器のプログラムを実行していない
状態くブレーク状態)では、BREAK/RUN信号3
2が“1′となる。この時、バッファ33及びバッファ
37はハイインピーダンス、バッファ34及び双方向性
バッファ38はアクティブ状態、またセレクタ36はI
B、2Bの入力が選択される。つまり、ブレーク状態で
は、スーパバイザ31のすべての信号がカバレッジ測定
用メモリ35に接続されており、この状態であらかじめ
カバレッジ測定用メモリ35にすべて“0′を書き込ん
でおく。
When the program of the evaluation microprocessor 30 or the target microprocessor application device is not running (in the break state), the BREAK/RUN signal 3
2 becomes "1". At this time, the buffer 33 and the buffer 37 are in a high impedance state, the buffer 34 and the bidirectional buffer 38 are in an active state, and the selector 36 is in an I state.
B, 2B input is selected. That is, in the break state, all signals of the supervisor 31 are connected to the coverage measurement memory 35, and in this state, all "0's" are written in the coverage measurement memory 35 in advance.

次に、評価用マイクロプロセッサ30がターゲットとな
るマイクロプロセッサ応用機器のプログラムの実行を開
始すると(ラン状態)、BREAK/RUN信号32が
0°となり、バッファ34及び双方向性バッファ38は
ハイインピーダンス、またバッファ33.37はアクテ
ィブ状態、またセレクタ36はLA、2Aの入力が選択
される。つまり、ラン状態では、評価用マイクロプロセ
ッサ30のアドレス出力が、カバレッジ測定用メモリ3
5のアドレス入力へ、プログラムフェッチ信号(FET
CH)39がライト(WR)へ接続される為、プログラ
ムフェッチを行ったアドレスと同一アドレスのカバレッ
ジ測定用メモリ35に1′が書き込まれる。
Next, when the evaluation microprocessor 30 starts executing the program of the target microprocessor application device (run state), the BREAK/RUN signal 32 becomes 0°, and the buffer 34 and bidirectional buffer 38 become high impedance. Further, the buffers 33 and 37 are in the active state, and the selector 36 selects the LA and 2A inputs. In other words, in the run state, the address output of the evaluation microprocessor 30 is
Program fetch signal (FET
Since CH) 39 is connected to write (WR), 1' is written to the coverage measurement memory 35 at the same address as the address where the program was fetched.

従って、評価用マイクロプロセッサ30によるターゲッ
トプログラムの実行停止後、ブレーク状態でカバレッジ
測定用メモリ35の内容をスーパバイザ31が読み出す
ことにより、プログラムをフェッチした部分とフェッチ
しなかった部分を判別することができる。
Therefore, after the evaluation microprocessor 30 stops executing the target program, the supervisor 31 reads the contents of the coverage measurement memory 35 in the break state, thereby making it possible to determine which parts of the program have been fetched and which parts have not been fetched. .

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

上述した従来のインサーキットエミュレータのカバレッ
ジ測定回路は、評価用マイクロプロセッサのターゲット
プログラムフェッチ動作を測定する回路となっている。
The coverage measurement circuit of the conventional in-circuit emulator described above is a circuit that measures the target program fetch operation of the evaluation microprocessor.

従って、命令先取り機能を有したマイクロプロセッサ(
評価用マイクロプロセッサ)では、分岐命令の実行によ
り、命令キューに先行フェッチされた後、実行されずに
無効とされてしまう無効フェッチ動作も測定してしまう
。この為、従来技術で述べた様に、実行されたプログラ
ムが全プログラムの何%に相当するかというカバレッジ
測定において、特に分岐命令を多用したプログラムでか
つ命令キューバッファのバッファ段数が多い場合、10
〜20%程度の誤差が生じるという欠点がある。
Therefore, a microprocessor with an instruction prefetch function (
The evaluation microprocessor also measures invalid fetch operations that are pre-fetched into the instruction queue and then invalidated without being executed due to the execution of a branch instruction. For this reason, as described in the prior art, when measuring coverage to determine what percentage of the total program the executed program corresponds to, if the program uses many branch instructions and the number of buffer stages in the instruction queue buffer is large,
There is a drawback that an error of about 20% occurs.

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

本発明は命令先取り機能を有するマイクロプロセッサの
インサーキットエミュレータで使用される評価用マイク
ロプロセッサにおいて、次命令の実行アドレスを保持す
るマイクロプロセッサ内実行ユニットに存在するプログ
ラムカウンタの値とマイクロプロセッサ内命令キューバ
ッファから前記実行ユニットへの命令取り込み信号とを
外部に出力する制御回路を備える。
In an evaluation microprocessor used in an in-circuit emulator of a microprocessor having an instruction prefetch function, the present invention relates to the value of a program counter existing in an execution unit within the microprocessor that holds the execution address of the next instruction, and the instruction queue within the microprocessor. The control circuit includes a control circuit that outputs an instruction fetch signal from the buffer to the execution unit to the outside.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

本発明の第1の実施例を示す第1図を参照すると、ここ
には命令先取り機能を有する評価用マイクロプロセッサ
<A)1の一般的な内部ハードウェア構成が示されてい
る。バス制御ユニット4は命令コードの先行フェッチ、
データアクセス等のバスサイクルを生成する外部記憶装
置とのインタフェースユニットである。命令キューバッ
ファ3はバス制御ユニット4で先行フェッチした命令を
一時的に保持しておくFIFOメモリである。実行ユニ
ット2は命令キューバッファ3に保持された命令を取り
込み実際に処理する。実行ユニット2は主として各命令
ごとのオペレーションを記述したマイクロコードを記憶
しておくマイクロROMと、命令のデコード及びマイク
ロコードの実行を行うマイクロシーケンサと、常に次命
令の実行アドレスを保持しておくプログラムカウンタ6
とで構成されている。制御回路(A)5は出カバ°ツフ
ァ14、プログラムカウンタ出力端子11、QRD信号
出力端子12で構成されている。命令取り込み信号7 
(QRD信号)は命令キューバッファ3から実行ユニッ
ト2への命令取り込みタイミングを示す1システムクロ
ツクの負論理信号である。命令書き込み信号8 (QW
R信号)はバス制御ユニット4で先行フェッチした命令
を命令キューバッファ3へ書き込むタイミングを示す1
システムクロツクの負論理信号である。命令キュースト
ップ信号9 (QSTP信号)は命令キューバッファ3
が一杯であることを示す負論理のタイミング信号である
。命令キューフラッシュ信号1゜(QFL信号)は分岐
命令の実行により不要になる命令キューバッファ3に保
持された命令を無効とする(フラッシュする)タイミン
グを示す1システムクロツクの負論理信号である。
Referring to FIG. 1, which shows a first embodiment of the present invention, there is shown a general internal hardware configuration of an evaluation microprocessor <A) 1 having an instruction prefetch function. The bus control unit 4 fetches the instruction code in advance,
This is an interface unit with an external storage device that generates bus cycles such as data access. The instruction queue buffer 3 is a FIFO memory that temporarily holds instructions fetched in advance by the bus control unit 4. The execution unit 2 takes in the instructions held in the instruction queue buffer 3 and actually processes them. The execution unit 2 mainly includes a micro ROM that stores microcode that describes operations for each instruction, a microsequencer that decodes instructions and executes the microcode, and a program that always holds the execution address of the next instruction. counter 6
It is made up of. The control circuit (A) 5 is composed of an output buffer 14, a program counter output terminal 11, and a QRD signal output terminal 12. Command capture signal 7
(QRD signal) is a negative logic signal of one system clock indicating the timing of fetching an instruction from the instruction queue buffer 3 to the execution unit 2. Command write signal 8 (QW
R signal) indicates the timing at which the instruction previously fetched by the bus control unit 4 is written to the instruction queue buffer 3.
This is the negative logic signal of the system clock. Instruction queue stop signal 9 (QSTP signal) is sent to instruction queue buffer 3
This is a negative logic timing signal indicating that the The instruction queue flush signal 1° (QFL signal) is a negative logic signal of one system clock indicating the timing to invalidate (flush) instructions held in the instruction queue buffer 3 that are no longer needed due to execution of a branch instruction.

次に、上述した各信号の動作タイミングとプログラムカ
ウンタ6の値を第2図に示す各信号線の動作タイミング
図を参照して説明する。尚、第2図は特に無効フェッチ
動作とプログラムカウンタ6、QRD信号7の関係を説
明する為に命令キューバッファ3の容量が3ワードの評
価用マイクオプロセッサ1が3ワードの命令コードで構
成される分岐命令(分岐命令の格納アドレスはN、N+
1、N+2>を先行フェッチし、実際に実行した場合の
動作タイミングの一例について説明している。プログラ
ムカウンタ6は最初次に実行する命令(この場合分岐命
令)の先頭アドレスNを示している。この状態でバス制
御ユニット4は、バスが前命令の処理に専有されていな
い為、3システムクロツクで構成される先行フェッチバ
スサイクル■、■、■を生成する。一方、バスサイクル
■、■、■により、バス制御ユニット4に先行フェッチ
された命令は、QWR信号8、■′。
Next, the operation timing of each signal mentioned above and the value of the program counter 6 will be explained with reference to the operation timing chart of each signal line shown in FIG. In order to specifically explain the relationship between invalid fetch operations, the program counter 6, and the QRD signal 7, FIG. branch instruction (the storage address of the branch instruction is N, N+
1, N+2> is fetched in advance and is actually executed. The program counter 6 initially indicates the start address N of the next instruction to be executed (branch instruction in this case). In this state, the bus control unit 4 generates advance fetch bus cycles ①, ②, ② consisting of three system clocks since the bus is not exclusively used for processing the previous instruction. On the other hand, the instructions fetched in advance by the bus control unit 4 by the bus cycles ■, ■, ■ are the QWR signals 8, ■′.

■′、■′のタイミングで命令キューバッファ3へ次々
に書き込まれる。この時、■′の書き込みにより、命令
キューバッファ3は一杯となり、QSTP信号9の■を
出力し、次の先行フェッチバスサイクル■を中断する。
The commands are written to the instruction queue buffer 3 one after another at the timings ■' and ■'. At this time, by writing ■', the instruction queue buffer 3 becomes full, and the QSTP signal 9 (■) is output, and the next preceding fetch bus cycle (■) is interrupted.

同時に、このタイミングで前命令の処理が終了し、次に
命令を実行する為、QRD信号7の■′″、■°′、■
“がアクティブとなり、命令キューバッファ3がら分岐
命令(N)、(N+1>、(N+2>が実行ユニット2
へ取り込まれる。一方、QSTP信号9の■は実行ユニ
ット2への命令取り込みにより、再び命令キューバッフ
ァ3に空ができる為、インアクティブ状態となり、先行
フェッチバスサイクル■が再び続行され、■′のタイミ
ングで命令キューバッファに次々と命令か書き込まれる
。プログラムカウンタ6の値は実行ユニット2への命令
取り込み信号7の取り込みタイミング■゛′、■′″、
■”″に応じてN+1.N+2.N−1−3とインクリ
メントされる。次に、実行ユニット2へ取り込まれた分
岐命令の実行により、分岐先アドレスKをプログラムカ
ウンタ6ヘセツトすると同時に、命令キューバッファ3
のフラッシュ動作タイミングを示すQFL信号10の■
を出力し、先行フェッチバスサイクル■、つまりQWR
信号8により命令キューバッファ3に書き込んだ命令(
N −1−3)を無効として、分岐命令実行処理を終了
する。バス制御ユニッ1〜4は分岐命令の実行処理に応
じて分岐先アドレスKからの先行フェッチバスサイクル
■を生成し、以降再び次の分岐命令が実行されるまでに
+1.に+2.に+2・・・と先行フェッチ動作を続行
する。
At the same time, the processing of the previous instruction is completed at this timing, and the next instruction is executed, so the QRD signal 7 is
" becomes active, and branch instructions (N), (N+1>, (N+2>) are transferred from the instruction queue buffer 3 to the execution unit 2.
be taken into. On the other hand, the QSTP signal 9 ■ becomes inactive because the instruction queue buffer 3 becomes empty again due to the fetching of the instruction into the execution unit 2, and the preceding fetch bus cycle ■ continues again, and the instruction queue is queued at the timing of ■'. Instructions are written to the buffer one after another. The value of the program counter 6 is the capture timing of the instruction capture signal 7 to the execution unit 2.
■N+1 according to “”. N+2. It is incremented as N-1-3. Next, by executing the branch instruction taken into the execution unit 2, the branch destination address K is set in the program counter 6, and at the same time, the instruction queue buffer 3 is set.
■ of QFL signal 10 indicating the flash operation timing of
and outputs the preceding fetch bus cycle■, that is, QWR
The instruction written to the instruction queue buffer 3 by signal 8 (
N-1-3) is invalidated, and the branch instruction execution process ends. The bus control units 1 to 4 generate a preceding fetch bus cycle (■) from the branch destination address K in accordance with the execution processing of the branch instruction, and from then on until the next branch instruction is executed again, +1. +2. +2... and the advance fetch operation continues.

以上説明した様に、1システムクロツクの負論理の命令
取り込み信号(QRD信号)7の出力タイミング時のプ
ログラムカウンタ6の値が実際に評価用マイクロプロセ
ッサ1が実行した命令のアドレス値を示しており、この
プログラムカウンタ6の値とQRD信号7とは、バッフ
ァ14、プログラムカウンタ出力端子11.QRD信号
出力端子12で構成される制御回路5により外部に導出
されている。
As explained above, the value of the program counter 6 at the output timing of the negative logic instruction capture signal (QRD signal) 7 of one system clock indicates the address value of the instruction actually executed by the evaluation microprocessor 1. The value of the program counter 6 and the QRD signal 7 are sent to the buffer 14, the program counter output terminal 11. A control circuit 5 configured with a QRD signal output terminal 12 outputs the signal to the outside.

次に、本発明の第2の実施例の評価用マイクロプロセッ
サ(B)20の内部ハードウェア構成を示す第3図を参
照すると、このマイクロプロセッサ20において、実行
ユニット2、命令キューバッファ3、バス制御ユニット
4及びブロクすべて第1の実施例の評価用マイクロプロ
セッサ(A)1と同一のため説明を省略する。制御回路
(B)21はセレクタ22、出力バッファ14及びQR
D信号出力端子12から構成されている。
Next, referring to FIG. 3 showing the internal hardware configuration of the evaluation microprocessor (B) 20 according to the second embodiment of the present invention, this microprocessor 20 includes an execution unit 2, an instruction queue buffer 3, a bus The control unit 4 and the blocks are all the same as the evaluation microprocessor (A) 1 of the first embodiment, so the explanation will be omitted. The control circuit (B) 21 includes a selector 22, an output buffer 14 and a QR
It is composed of a D signal output terminal 12.

この実施例では、プログラムカウンタ6の値を外部に導
出する方法として第]−の実施例の様に、専用のプログ
ラムカウンタ出力端子11を設けず、既存のアドレスバ
ス出力端子15を利用している。この結果、評価用マイ
クロプロセッサ20の端子数をマイクロプロセッサ1に
比較して16〜24本程度減少することが可能となり、
使用するパッケージ等のコストを低減できる。
In this embodiment, as a method for deriving the value of the program counter 6 to the outside, the existing address bus output terminal 15 is used instead of providing a dedicated program counter output terminal 11 as in the second embodiment. . As a result, the number of terminals of the evaluation microprocessor 20 can be reduced by about 16 to 24 compared to the microprocessor 1.
The cost of the packages used can be reduced.

続いて、上述したアドレスバス出力端子15の動作につ
いて第3図及び第4図を参照して説明する。バス制御ユ
ニット4から出力されるアドレスバス13及びプログラ
ムカウンタ6から出力されるプログラムカウンタ出力バ
ス23はセレクタ22の端子B、A入力に接続されてお
り、その出力は出力バッファを通してアドレスバス出力
端子15に接続されている。QRD信号7はバス制御ユ
ニット4のWAIT入力及びセレクタ22のセレクタ2
2のセレクタ人力Sに接続されるとともに、出力バッフ
ァ14を通してQRD信号出力端子12に接続されてい
る。QRD信号7がインアクティブ状態の時(正論理)
、セレクタ22のB入力が選択され、アドレスバス13
がアドレスバス出力端子15に接続される。また、QR
D信スフがアクティブ状態(負論理)になると、バス制
御ユニット4のWA I Tが有効となり、現在生成中
のバスサイクルを中断する。一方、セレクタ22のA入
力が選択され、プログラムカウンタ出力バス23がアド
レスバス出力端子15に接続され、プログラムカウンタ
6の値が出力される。
Next, the operation of the address bus output terminal 15 mentioned above will be explained with reference to FIGS. 3 and 4. The address bus 13 outputted from the bus control unit 4 and the program counter output bus 23 outputted from the program counter 6 are connected to the terminals B and A inputs of the selector 22, and the output is passed through an output buffer to the address bus output terminal 15. It is connected to the. The QRD signal 7 is connected to the WAIT input of the bus control unit 4 and the selector 2 of the selector 22.
It is connected to the selector S of No. 2, and is also connected to the QRD signal output terminal 12 through the output buffer 14. When QRD signal 7 is inactive (positive logic)
, the B input of the selector 22 is selected, and the address bus 13
is connected to the address bus output terminal 15. Also, QR
When the D signal switch becomes active (negative logic), WAIT of the bus control unit 4 becomes valid and interrupts the currently generated bus cycle. On the other hand, the A input of the selector 22 is selected, the program counter output bus 23 is connected to the address bus output terminal 15, and the value of the program counter 6 is output.

QRD信号7が再びインアクティブ状態となると、WA
ITは無効となり、中断中のバスサイクルが再開される
とともに、セレクタ22が切り替わり、アドレスバス1
3かアドレスバス出力端子15に接続される。第4図は
以上述べた動作を第1の実施例で説明した動作シーケン
ス(先行フェッチ、分岐命令の実行)でタイミングを説
明している。QRD信号7の■′°、■”′、■″のタ
イミングでプログラムカウンタ6のN、N+1.N+2
がアドレスバス出力端子15に出力される。
When QRD signal 7 becomes inactive again, WA
IT is disabled, the interrupted bus cycle is resumed, and selector 22 is switched to address bus 1.
3 is connected to the address bus output terminal 15. FIG. 4 explains the timing of the above-mentioned operation using the operation sequence (pre-fetch, branch instruction execution) explained in the first embodiment. N, N+1 . N+2
is output to the address bus output terminal 15.

QRD信号7のWA I T入力は◎のタイミングで有
効となり、先行フェッチバスサイクル■は一時中断とす
る。尚、この場合、中断時間が3システムクロツクと長
い為、■の無効フェッチバスサイクルが終了する前に実
行ユニット2での分岐命令実行処理が終了し、QFL信
号10の出力とともに次の分岐先アドレスにの先行フェ
ッチバスサイクルが生成される。
The WAIT input of the QRD signal 7 becomes valid at the timing ◎, and the preceding fetch bus cycle ■ is temporarily suspended. In this case, since the interruption time is as long as 3 system clocks, the branch instruction execution processing in the execution unit 2 is completed before the invalid fetch bus cycle (2) is completed, and the next branch destination is output with the output of the QFL signal 10. A prefetch bus cycle is generated for the address.

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

以上説明した様に、本発明の評価用マイクロプロセッサ
が出力する次に実行する命令のアドレス値を保持するプ
ログラムカウンタの値と、上記実行する命令の実行タイ
ミングを示す命令取り込み信号(Q R,D信号)とを
、従来技術で示したカバレッジ測定回路のカバレッジ測
定メモリアドレス入力及びWR大入力それぞれ接続する
ことにより、無効フェッチを含まない実際に実行された
命令のみのカバレッジ測定が実現できる。
As explained above, the value of the program counter that holds the address value of the next instruction to be executed outputted by the evaluation microprocessor of the present invention, and the instruction capture signal (Q R, D By connecting the coverage measurement memory address input and WR large input of the coverage measurement circuit shown in the prior art to the coverage measurement circuit shown in the prior art, coverage measurement of only actually executed instructions without including invalid fetches can be realized.

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

第1図は本発明の第1の実施例の評価用マイクロプロセ
ッサの内部ハードフェア構成を示す図、第2図は第1図
に示すマイクロプロセッサの動作タイミング図、第3図
は本発明の第2の実施例の評価用マイクロプロセッサの
内部ハードウェア構成を示す図、第4図は第3図に示す
マイクロプロセッサの動作タイミング図、第5図は従来
のインサーキットエミュレータのカバレッジ測定回路を
示す図である。
FIG. 1 is a diagram showing the internal hardware configuration of the evaluation microprocessor according to the first embodiment of the present invention, FIG. 2 is an operation timing diagram of the microprocessor shown in FIG. 1, and FIG. FIG. 4 is an operation timing diagram of the microprocessor shown in FIG. 3, and FIG. 5 is a diagram showing a coverage measurement circuit of a conventional in-circuit emulator. It is.

Claims (1)

【特許請求の範囲】[Claims] 命令先取り機能を有するマイクロプロセッサのインサー
キットエミュレータで使用される評価用マイクロプロセ
ッサにおいて、次命令の実行アドレスを保持するマイク
ロプロセッサ内実行ユニットに存在するプログラムカウ
ンタの値とマイクロプロセッサ内命令キューバッファか
ら前記実行ユニットへの命令取り込み信号とを外部に出
力する制御回路を備えることを特徴とする評価用マイク
ロプロセッサ。
In an evaluation microprocessor used in an in-circuit emulator of a microprocessor having an instruction prefetch function, the program counter value existing in the execution unit in the microprocessor that holds the execution address of the next instruction and the above value from the instruction queue buffer in the microprocessor are used. An evaluation microprocessor characterized by comprising a control circuit that outputs an instruction capture signal to an execution unit to the outside.
JP2191726A 1990-07-19 1990-07-19 Microprocessor for evaluation Pending JPH0477933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2191726A JPH0477933A (en) 1990-07-19 1990-07-19 Microprocessor for evaluation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2191726A JPH0477933A (en) 1990-07-19 1990-07-19 Microprocessor for evaluation

Publications (1)

Publication Number Publication Date
JPH0477933A true JPH0477933A (en) 1992-03-12

Family

ID=16279471

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2191726A Pending JPH0477933A (en) 1990-07-19 1990-07-19 Microprocessor for evaluation

Country Status (1)

Country Link
JP (1) JPH0477933A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63121934A (en) * 1986-11-10 1988-05-26 Oki Electric Ind Co Ltd One-chip microcomputer for evaluation
JPH02162435A (en) * 1988-12-15 1990-06-22 Mitsubishi Electric Corp Microprocessor and in-circuit emulator

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63121934A (en) * 1986-11-10 1988-05-26 Oki Electric Ind Co Ltd One-chip microcomputer for evaluation
JPH02162435A (en) * 1988-12-15 1990-06-22 Mitsubishi Electric Corp Microprocessor and in-circuit emulator

Similar Documents

Publication Publication Date Title
JP3846939B2 (en) Data processor
KR0168656B1 (en) Data processing system
US5737516A (en) Data processing system for performing a debug function and method therefor
US5964893A (en) Data processing system for performing a trace function and method therefor
KR100394897B1 (en) Data processing apparatus and method for providing data processing apparatus
US4879646A (en) Data processing system with a pipelined structure for editing trace memory contents and tracing operations during system debugging
EP0942373B1 (en) Adapter device with a local memory and method for processor emulation
US7428661B2 (en) Test and debug processor and method
EP0762278A1 (en) Data processor with built-in emulation circuit
CN100474266C (en) Debugging system used for digital signal processor and debug method thereof
US5287522A (en) External procedure invocation apparatus utilizing internal branch vector interrupts and vector address generation, in a RISC chip
JPH0477933A (en) Microprocessor for evaluation
JPS62197831A (en) Data processor
CN114580329B (en) Real-time debugging method for digital signal processor chip
JP2808757B2 (en) Microprocessor for debugging
JPH0261731A (en) Microprocessor
JPH04162146A (en) In-circuit emulator and its coverage measuring method
TW432277B (en) Pre-boot debugging device and method of computer system
JPH01193943A (en) Micro computer
JPH03252731A (en) Microprocessor
JPH1011290A (en) Microprocessor
JPH0752402B2 (en) Data processing device
JPH0333940A (en) Microprocessor for evaluation
JPS6255738A (en) Data processor having program counter tracing mechanism
JPH0659934A (en) Program evaluating microcomputer