JPH0659909A - Interrupting emulator - Google Patents

Interrupting emulator

Info

Publication number
JPH0659909A
JPH0659909A JP4209881A JP20988192A JPH0659909A JP H0659909 A JPH0659909 A JP H0659909A JP 4209881 A JP4209881 A JP 4209881A JP 20988192 A JP20988192 A JP 20988192A JP H0659909 A JPH0659909 A JP H0659909A
Authority
JP
Japan
Prior art keywords
interrupt
priority
flag
data bus
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.)
Granted
Application number
JP4209881A
Other languages
Japanese (ja)
Other versions
JP2876909B2 (en
Inventor
Hatsuhiro Nagaishi
初弘 永石
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 JP4209881A priority Critical patent/JP2876909B2/en
Publication of JPH0659909A publication Critical patent/JPH0659909A/en
Application granted granted Critical
Publication of JP2876909B2 publication Critical patent/JP2876909B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To simplify an interface between an LSI chip for substituting the functions of a CPU and a chip for substituting peripheral functions in the case of emulating a microcomputer by both the chips. CONSTITUTION:The value of a priority flag (P2i, P1i or P0i) 30 corresponding to an interruption request selected as the result of multiple interruption control is outputted to a data bus 17 by an output buffer 23 synchronously with a vector aknowledge signal 19 and address information stored in a vector ROM 22 is also simultaneously outputted to the data bus 17. Priority information and address information on the data bus are transmitted to a CPU 10 through the data bus 17. The CPU 10 stores only the priority information out of the priority information and the address information on the data bus 17 in a priority order status flag 11.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はICE(In−Circ
uit−Emulater:イン・サーキット・エミュ
レータ)を構成する際のエミュレータに関し、特にその
割込み機能のエミュレートを行う割込みエミュレータに
関する。
The present invention relates to ICE (In-Circ).
unit-emulator: an emulator for configuring an in-circuit emulator), and more particularly to an interrupt emulator that emulates its interrupt function.

【0002】[0002]

【従来の技術】マイクロコンピュータのソフトウェア開
発においては、ソフトウェア開発を効率よく行うよう
に、開発支援装置としてICE(イン・サーキット・エ
ミュレータ)がよく用いられている。このICEの最も
基本的な機能としては、リアルタイムエミュレーション
機能がある。このリアルタイムエミュレーション機能と
しては、ユーザのターゲットシステム(ユーザが開発し
ようとしているシステム)にマイクロコンピュータ(以
下、「マイコン」という)が組込まれたときのマイコン
の動作とターゲットシステムに接続されたICEの動作
が全く同じであることが要求される。また、被デバッブ
プログラムの実行過程をメモリに記憶し記憶した内容を
解析してユーザに対し実行過程を分り易く表示する機能
などのデバッグ機能をICEは有している。
2. Description of the Related Art In software development of a microcomputer, an ICE (In-Circuit Emulator) is often used as a development support device so as to efficiently perform software development. The most basic function of this ICE is a real-time emulation function. As the real-time emulation function, the operation of the microcomputer when the microcomputer (hereinafter referred to as "microcomputer") is incorporated in the target system of the user (the system that the user is trying to develop) and the operation of the ICE connected to the target system. Are required to be exactly the same. Further, the ICE has a debug function such as a function of storing the execution process of the program to be debugged in a memory, analyzing the stored contents, and displaying the execution process so that the user can easily understand the execution process.

【0003】一般に、マイコン入力はユーザが自分のシ
ステムに有ったマイコンを選択できる様に、中央処理装
置(以下CPUという)の機能が同一で周辺装置(例え
ばタイマ・カウンタやシリアルインターフェースあるい
な割込み機能など)やROM,RAM容量が異なるマイ
コンを用意しファミリー展開を行なっている場合が多
い。
Generally, the microcomputer input has the same central processing unit (hereinafter referred to as CPU) function so that a user can select a microcomputer in his system, and peripheral devices (for example, timer / counter, serial interface or interrupt). In many cases, a microcomputer with different functions, ROM, and RAM capacities is prepared to expand the family.

【0004】従って、このICEに要求される機能のう
ちリアルタイムエミュレーション機能を実現するため
に、ICEはファミリー展開の場合を考慮してユーザシ
ステムに組み込まれるマイコン(以下本チップという)
の固定機能部分であるCPUの機能を代行するチップ
(以下エバチップという)と本チップが内蔵する周辺装
置の機能を代行するチップ(以下周辺チップという)と
を少なくとも内蔵する。
Therefore, in order to realize the real-time emulation function of the functions required for this ICE, the ICE is a microcomputer (hereinafter referred to as this chip) incorporated in a user system in consideration of the case of family development.
At least a chip (hereinafter referred to as an "evaluation chip") that substitutes the function of the CPU, which is a fixed function part, and a chip (hereinafter referred to as the "peripheral chip") that substitutes the functions of peripheral devices included in this chip are incorporated.

【0005】周辺装置の機能を代行する周辺チップはゲ
ートアレイで構成される場合もあるが、この場合ゲート
アレイで周辺チップを製作する為の開発費を伴うのは勿
論、ゲートアレイで構成しているため、本チップがもつ
規格(例えば、スピード・入出力レベルなど)あるいは
周辺装置の動作が完全に本チップと同一になるとは保証
しがたい。そのため本チップに内蔵されている周辺装置
を外部から直接アクセス可能とするテストモードを本チ
ップに設け、本チップを周辺チップとして用いる工夫が
行なわれている。
The peripheral chip acting as a peripheral device may be composed of a gate array. In this case, of course, the peripheral chip requires a development cost for manufacturing the peripheral chip, and the peripheral chip is composed of the gate array. Therefore, it is difficult to guarantee that the standard (for example, speed, input / output level, etc.) of this chip or the operation of peripheral devices will be completely the same as this chip. For this reason, a test mode is provided in which the peripheral device built in the chip can be directly accessed from the outside, and the chip is used as the peripheral chip.

【0006】この様にエバチップと周辺チップとしての
本チップ(以下周辺エミュレータという)とのセットで
本来の本チップが持つ機能を代行させようとした構成に
おいては、エバチップと周辺エミュレータとの間でイン
ターフェースを取る為の端子が必要になる。このインタ
ーフェースを取る為に使用される周辺エミュレータ端子
は、本来の端子機能として働くことができないので、そ
の端子機能をエバチップに持たせることになる。ところ
がエバチップに取込んだ端子機能は容易に変更すること
ができないため、その端子の機能が固定されてしまい製
品のバリエーションができにくくなる。
In such a configuration in which the set of the evaluation chip and the main chip (hereinafter referred to as the peripheral emulator) as the peripheral chip is intended to substitute the original function of the main chip, an interface is provided between the evaluation chip and the peripheral emulator. You need a terminal to take. The peripheral emulator terminal used for taking this interface cannot function as the original terminal function, so the evaluation chip is given the terminal function. However, since the terminal function incorporated in the evaluation chip cannot be easily changed, the function of the terminal is fixed, which makes it difficult to make product variations.

【0007】例えば、汎用の入出力ポート機能をエバチ
ップに取込んだ場合において、本チップに汎用の入出力
ポート機能だけでなく別の機能を付加しようとしてもで
きない。従って、製品の展開を容易にする為には、イン
ターフェースの為の端子は極力少ない方が望ましい。
For example, when the general-purpose input / output port function is incorporated in the evaluation chip, it is impossible to add not only the general-purpose input / output port function but also another function to this chip. Therefore, in order to facilitate product development, it is desirable that the number of terminals for the interface is as small as possible.

【0008】従来例の割込み機能のエミュレータのブロ
ック図を図3に示す。以下、この従来例の構成及び動作
について説明する。
FIG. 3 shows a block diagram of a conventional emulator having an interrupt function. The configuration and operation of this conventional example will be described below.

【0009】周辺エミュレータに内蔵されている周辺装
置、例えばタイマ、カウンタやシリアルインターフェー
スなどの割込み発生源(図3中に図示していない)から
出力される割込み要求信号INTi(例えばi=0〜1
5とし割込み本数を16本とする)25の内の少なくと
も一つが発生すると、対応する割込み要求フラグIFi
(i=0〜15)28がセットされる。そして、割込み
要求フラグIFi28の各々に対応して、割込みマスク
フラグMKi29とプライオリティフラグP2i,P1
i,P0i30が存在する。割込みマスクフラグMKi
29は各割込み要求フラグICi28に記憶されている
割込み要求の発生を無効とするか有効とするかを指定す
るフラグである。また、プライオリティフラグP2i,
P1i,P0i30は対応する割込み要求の優先度を指
定するフラグで、1本の割込み要求に対しプライオリテ
ィフラグはP2i,P1i,P0iの3ビット持ってい
るので、優先度は0〜7の8レベルを指定することが可
能である。
An interrupt request signal INTi (for example, i = 0 to 1) output from an interrupt source (not shown in FIG. 3) such as a peripheral device built in the peripheral emulator, such as a timer, a counter or a serial interface.
5 and the number of interrupts is 16) When at least one of 25 occurs, the corresponding interrupt request flag IFi
(I = 0 to 15) 28 is set. The interrupt mask flag MKi29 and the priority flags P2i and P1 are associated with each of the interrupt request flags IFi28.
i, P0i30 exists. Interrupt mask flag MKi
Reference numeral 29 is a flag that designates whether the generation of an interrupt request stored in each interrupt request flag ICi 28 is invalid or valid. In addition, the priority flag P2i,
P1i and P0i30 are flags that specify the priority of the corresponding interrupt request, and the priority flag has 3 bits of P2i, P1i, and P0i for one interrupt request, so the priority is 8 levels from 0 to 7. It is possible to specify.

【0010】なお、図3中では、割込み要求に対する1
組の割込み要求フラグIFi28,割込みマスクフラグ
MKi29,プライオリティフラグP2i,P1i,P
0i30のみを図示しているが、実際は全ての割込み要
求に対して存在する。これらのフラグは、エバチップ内
のCPU10から、アドレスバスADRS8,データバ
スDATA17,リード信号RD15,ライト信号WR
16によりアクセス可能である。
It should be noted that in FIG. 3, 1 for an interrupt request is issued.
A set of interrupt request flag IFi28, interrupt mask flag MKi29, priority flags P2i, P1i, P
Although only 0i30 is shown, it is actually present for all interrupt requests. These flags are transmitted from the CPU 10 in the evaluation chip by the address bus ADRS8, the data bus DATA17, the read signal RD15, and the write signal WR.
It is accessible by 16.

【0011】これらの割込み要求フラグIFi28,割
込みマスクフラグMKi29,プライオリティフラグP
2i,P1i,P0i30の出力は、エバチップのCP
U内の割込み優先順位ステータスフラグISP11から
出力される優先順位ステータス信号ISP2,ISP
1,ISP0(14)と共に制御回路CTL21に入力
される。割込み優先順位ステータスフラグISP11は
現在CPUが実行中の割込み処理プログラムの優先度を
保持している3ビットのフラグの集合体である。
These interrupt request flag IFi28, interrupt mask flag MKi29, and priority flag P
The outputs of 2i, P1i, and P0i30 are CP of the evaluation chip.
Priority status signals ISP2 and ISP output from the interrupt priority status flag ISP11 in U
1, and ISP0 (14) are input to the control circuit CTL21. The interrupt priority status flag ISP11 is a set of 3-bit flags holding the priority of the interrupt processing program currently being executed by the CPU.

【0012】この制御回路21は、割込みマスクフラグ
MKi29で割込み要求の発生を有効と指定され割込み
(以下マスク解除の割込みという)を検出し、検出した
マスクの解除の割込みに対応したプライオリティフラグ
P2i,P1i,P0i30による優先度指定が、優先
順位ステータス信号ISP2,ISP1,ISP0(1
4)で表わされるCPUが実行中のプログラムの優先度
よりも高い割込みが1つでも存在する時、エバチップ内
のCPUに対しベクタ割込みの起動信号INTRQ13
を発生する。この時、制御回路21では、またベクタ割
込みの起動信号INTRQ13の発生条件を満たす全て
の割込み要求の仲から最も優先度指定の高い割込みのた
だ1つを選択してベクタROM22のアドレスであるR
Ai26を決定する。
The control circuit 21 detects an interrupt (hereinafter referred to as a mask release interrupt) whose interrupt request is designated as valid by the interrupt mask flag MKi29, and detects the priority flag P2i, which corresponds to the detected mask release interrupt. The priority designation by P1i and P0i30 indicates that the priority status signals ISP2, ISP1, and ISP0 (1
When there is at least one interrupt having a higher priority than the program being executed by the CPU, which is represented by 4), the vector interrupt activation signal INTRQ13 is sent to the CPU in the evaluation chip.
To occur. At this time, the control circuit 21 selects only one of the interrupts with the highest priority from the middle of all the interrupt requests that satisfy the generation condition of the vector interrupt activation signal INTRQ13, and selects R as the address of the vector ROM 22.
Determine Ai26.

【0013】一般に割込み処理プログラムは、割込みに
対応したベクタROM22に記憶されるアドレス情報で
指定されるユーザーROM上のテーブル(これをベクタ
テーブルという)から所定の割込み処理プログラムの先
頭番地を読み出してプログラムカウンタにセットして実
行される。
Generally, an interrupt processing program reads a start address of a predetermined interrupt processing program from a table on the user ROM (this is called a vector table) designated by address information stored in the vector ROM 22 corresponding to the interrupt, and executes the program. It is set in the counter and executed.

【0014】一方、ベクタ割込みの起動信号INTRO
13を受けたエバチップ内のCPU10は、今まで実行
していたプログラムのステータス情報(例えば、プログ
ラム・カウンタの値など)をスタック領域に退避して、
周辺エミュレータに対しアクノリッジ信号VACK19
を出力する。
On the other hand, a vector interrupt activation signal INTRO
Upon receiving 13, the CPU 10 in the evaluation chip saves the status information (for example, the value of the program counter) of the program that has been executed up to now in the stack area,
Acknowledge signal VACK19 to peripheral emulator
Is output.

【0015】アクノリッジ信号VACK19を受けた周
辺エミュレータ内のベクタROM22は、ベクタROM
アドレスRAi20に従って所定の割込み要求に対応し
たベクタテーブルアドレスをデータバスDATA17に
出力し、エバチップ内のCPU10へ伝達する。CPU
10は、このベクタテーブルアドレスをプログラムカウ
ンタにセットし、ベクタ割込み処理プログラムの先頭番
地をフェッチする動作を行なう。
The vector ROM 22 in the peripheral emulator which receives the acknowledge signal VACK19 is a vector ROM.
A vector table address corresponding to a predetermined interrupt request is output to the data bus DATA17 according to the address RAi20 and transmitted to the CPU 10 in the evaluation chip. CPU
Reference numeral 10 sets this vector table address in the program counter and fetches the head address of the vector interrupt processing program.

【0016】また、ベクタ割込みの起動信号INTRQ
13の発生と同時に、周辺エミュレータからは選択され
た割込み要求に対応するプライオリティフラグP2i,
P1i,P0i(30)の内容が、優先度信号DPR
2,DPR1,DPR0(27)としてエバチップ内の
CPUに伝達される。CPU10では優先度信号DPR
2,DPR1,DPR0上のプライオリティフラグP2
i,P1i,P0i(30)の内容を優先度順位ステー
タスフラグISP11に格納し、優先度順位ステータス
信号ISP2,ISP1,ISP0(14)を更新す
る。
Further, a vector interrupt activation signal INTRQ
13 at the same time, the priority flag P2i, which corresponds to the interrupt request selected from the peripheral emulator,
The contents of P1i and P0i (30) are the priority signal DPR.
2, DPR1 and DPR0 (27) are transmitted to the CPU in the evaluation chip. CPU 10 has priority signal DPR
2, priority flag P2 on DPR1, DPR0
The contents of i, P1i, P0i (30) are stored in the priority order status flag ISP11, and the priority order status signals ISP2, ISP1, ISP0 (14) are updated.

【0017】[0017]

【発明が解決しようとする課題】上述した従来の割込み
機能のエミュレータでは、本チップに内蔵する周辺装置
をチップ外部から直接アクセス可能とするテストモード
を設けて周辺チップとして使用し、この周辺チップとエ
バチップICEを構成する。その際、周辺チップはエバ
チップとデータアクセスを行なう為にアドレスADRS
18,リード信号RD15,ライト信号WR16用の入
力端子と、データバス17用の入出力端子を必要とし、
また割込み機能を実現する為にベクタ割込みの起動信号
INTRQ13,アクノリッジ信号VACK19,優先
順位ステータス信号ISP2,ISP1,ISP0(1
4),優先度信号DPR2,DPR1,DPR0(2
7)の為の端子を必要とする。
In the above-mentioned conventional interrupt function emulator, the peripheral device built in this chip is provided with a test mode that enables direct access from the outside of the chip and is used as the peripheral chip. Configure ICE. At that time, the peripheral chip uses the address ADRS in order to perform data access with the evaluation chip.
18, an input terminal for the read signal RD15, the write signal WR16, and an input / output terminal for the data bus 17 are required,
In order to realize the interrupt function, a vector interrupt activation signal INTRQ13, an acknowledge signal VACK19, priority order status signals ISP2, ISP1, ISP0 (1
4), priority signals DPR2, DPR1, DPR0 (2
Requires a terminal for 7).

【0018】その結果、エバチップとのインターフェー
スの為の端子は本来の端子機能として働くことができな
くなるので、その端子機能を代替する為にエバチップに
搭載することになる。ところが、エバチップに搭載した
端子機能は変更することができないため、端子機能が固
定されてしまい製品展開を行なうことが困難になってし
まうという欠点がある。
As a result, the terminal for interfacing with the evaluation chip cannot function as the original terminal function, so that the terminal is mounted on the evaluation chip to replace the terminal function. However, since the terminal function mounted on the evaluation chip cannot be changed, there is a drawback that the terminal function is fixed and it becomes difficult to develop the product.

【0019】本発明の目的は、これらの欠点を除き、エ
ミュレータ用端子数を削減し、製品展開を容易にした割
込みエミュレータを提供することにある。
An object of the present invention is to eliminate these drawbacks and to provide an interrupt emulator in which the number of emulator terminals is reduced and product development is facilitated.

【0020】[0020]

【課題を解決するための手段】本発明の構成は、中央処
理装置と、この中央処理装置が実行中のプログラムの優
先度を指定する第1のフラグを記憶する第1のフラグ記
憶手段とを少なくとも含む第1のLSIチップと、割込
み要求に対応する優先度を指定する第2のフラグで指定
され前記第1のフラグよりも優先度の高い割込み要求を
検出して前記中央処理装置に対してベクタ割込み起動信
号を発生する制御回路と、割込み処理プログラムの先頭
番地を格納したメモリのアドレス情報を記憶する記憶手
段と、前記第1のLSIチップとのデータ転送を行なう
データバスとを少なくとも含む第2のLSIチップとで
割込み機能をエミュレートする割込みエミュレータにお
いて、前記制御回路で検出された割込み要求に対応する
前記第2のフラグの優先度と前記記憶手段とアドレス情
報とを同時に前記データバス上に出力する出力手段と、
前記データバス上の優先度信号を前記第1のフラグ記憶
手段に格納する第2の手段とを備えたこを特徴とする。
The structure of the present invention comprises a central processing unit and a first flag storing means for storing a first flag designating the priority of a program being executed by the central processing unit. A first LSI chip that includes at least the first LSI chip and an interrupt request that has a higher priority than the first flag and that is specified by a second flag that specifies the priority corresponding to the interrupt request, and detects the interrupt request to the central processing unit. A control circuit for generating a vector interrupt activation signal; a storage unit for storing address information of a memory storing a start address of an interrupt processing program; and a data bus for transferring data to and from the first LSI chip. In the interrupt emulator that emulates the interrupt function with the second LSI chip, the second flag corresponding to the interrupt request detected by the control circuit. And output means for outputting the priority and with said memory means and the address information at the same time on the data bus,
A second means for storing the priority signal on the data bus in the first flag storage means.

【0021】[0021]

【実施例】図1は本発明の一実施例のブロック図であ
る。本実施例は、実行中のプログラムの優先度を保持す
る優先順位ステータスフラグ14と、周辺エミュレータ
とのデータのやり取りする為のデータバス17と、中央
処理装置10と、各割込み要求に対応した優先度を指定
するプライオリティフラグ30と、優先順位ステータス
フラグ14で指定される優先度よりも割込み要求フラグ
28に対応したプライオリティフラグ30で指定される
優先度の高い割込みを検出し最も高い割込み要求を選択
する制御回路21と、割込み処理プログラムの先頭番地
を格納するメモリのアドレス情報を記憶する記憶回路
と、制御回路21で選択された割込み要求に対応したプ
ライオリティフラグの優先度情報と記憶回路に記憶され
ているアドレス情報を同時にデータバスに出力する出力
バッファ23と、データバス17上に出力されているア
ドレス情報と優先度情報から優先度情報を選択的に優先
順位ステータスフラグに格納する手段とを有している。
FIG. 1 is a block diagram of an embodiment of the present invention. In this embodiment, a priority order status flag 14 holding the priority of the program being executed, a data bus 17 for exchanging data with the peripheral emulator, the central processing unit 10, and a priority corresponding to each interrupt request. Priority flag 30 that specifies the priority, and the interrupt with a higher priority specified by the priority flag 30 corresponding to the interrupt request flag 28 than the priority specified by the priority status flag 14 is detected and the highest interrupt request is selected. Control circuit 21, a memory circuit that stores address information of a memory that stores the start address of the interrupt processing program, priority information of a priority flag corresponding to the interrupt request selected by the control circuit 21, and the memory circuit. The output buffer 23 that simultaneously outputs the address information stored in the data bus, From the address information and the priority information output on the scan 17 and a means for storing the selectively priority status flag priority information.

【0022】まず、周辺エミュレータに内蔵されている
周辺装置、例えばタイマ,カウンタやシリアルインター
フェースなどの割込み発生源(図中には図示していな
い)から出力される割込み要求信号INTi(例えばi
=0〜15とし、割込み本数を16本とする)25の内
の少なくとも一つが発生すると、その割込み要求に対応
した割込み要求フラグIFi(i=0〜15)28がセ
ットされる。この割込み要求フラグIFi28と、割込
みマスクフラグMKi29、プライオリティフラグP2
i,P1i,P0i(30)の出力は、エバチップ内の
割込み優先順位ステータスフラグISP11から出力さ
れている優先順位ステータス信号ISP2,ISP1,
ISP0(14)と共に制御回路21に入力される。
First, an interrupt request signal INTi (for example, i) output from an interrupt source (not shown in the drawing) such as a peripheral device built in the peripheral emulator, for example, a timer, a counter, or a serial interface.
= 0 to 15 and the number of interrupts is 16), at least one of the 25 occurs, and the interrupt request flag IFi (i = 0 to 15) 28 corresponding to the interrupt request is set. The interrupt request flag IFi28, the interrupt mask flag MKi29, and the priority flag P2
The outputs of i, P1i, P0i (30) are the priority order status signals ISP2, ISP1, output from the interrupt priority order status flag ISP11 in the evaluation chip.
It is input to the control circuit 21 together with ISP0 (14).

【0023】制御回路21は、割込みマスクフラグMK
i29で割込み要求の発生が有効であると指定された割
込み(マスク解除の割込み)を検出し、検出したマスク
解除の割込みに対応したプライオリティフラグP2i,
P1i,P0i(30)による優先度指定が優先順位ス
テータス信号ISP2,ISP1,ISP0(14)で
表わされるCPUが実行中のプログラムの優先度よりも
高い割込みが1つでこ存在するときに、エバチップ内の
CPUに対しベクタ割込みの起動信号INTRQ13を
発生する。このとき、制御回路21では、またベクタ割
込みの起動信号INTRQ13の発生条件を満たす全て
の割込み要求の中から最も高位の割込みをただ一つだけ
選択し、ベクタROM22のアドレスであるベクタRO
MアドレスRAi26を決定する。
The control circuit 21 controls the interrupt mask flag MK.
An interrupt (mask release interrupt) designated as valid in i29 is generated, and the priority flag P2i corresponding to the detected mask release interrupt is detected.
When the priority designation by P1i, P0i (30) is represented by the priority order status signals ISP2, ISP1, ISP0 (14), there is one interrupt higher than the priority of the program being executed by the CPU, the evaluation chip A vector interrupt activation signal INTRQ13 is generated for the internal CPU. At this time, the control circuit 21 selects only the highest interrupt from all the interrupt requests that satisfy the generation condition of the vector interrupt activation signal INTRQ13, and selects the vector RO that is the address of the vector ROM 22.
The M address RAi26 is determined.

【0024】一方、ベクタ割込みの起動信号INTRQ
13を受けたエバチップ内のCPU10は、今まで実行
していたプログラムのステータス情報(例えば、ウログ
ラム・カウンタの値)をスタッフ領域に退避して周辺エ
ミュレータに対しアクノリッジ信号VACK19を出力
する。
On the other hand, the vector interrupt activation signal INTRQ
Upon receiving 13, the CPU 10 in the evaluation chip saves the status information (for example, the value of the program counter) of the program that has been executed up to now in the stuff area and outputs an acknowledge signal VACK 19 to the peripheral emulator.

【0025】このアクノリッジ信号19が出力されたと
きの周辺エミュレータ側での動作と、それに対するCP
U側での動作を、図2のタイミング図を用いて説明す
る。アクノリッジ信号19を受けた周辺エミュレータ側
では、ベクタROMアドレスRAi26に従って、所定
の割込み要求に対応したベクタテーブルのアドレス情報
を必要なビット数分だけデータバス17にアクノリッジ
信号19に同期して出力する。
The operation on the peripheral emulator side when this acknowledge signal 19 is output and the CP for it
The operation on the U side will be described with reference to the timing chart of FIG. The peripheral emulator receiving the acknowledge signal 19 outputs the address information of the vector table corresponding to the predetermined interrupt request by the required number of bits to the data bus 17 in synchronization with the acknowledge signal 19 according to the vector ROM address RAi26.

【0026】例えば、この場合割込みの本数を16本で
考えているのでベクタテーブルのアドレス情報としては
4ビットあれば十分であり、図2ではベクタテーブルの
アドレス情報はデータバス上の上位5ビットに出力され
ている。そして、ベクタテーブルのアドレス情報をデー
タバス上に出力すると同時に、選択された割込み要求に
対応した優先度情報のプライオリティフラグP2i,P
1i,P0iの内容が優先度信号DPR2,DPR1,
DPR027の上に乗っており、これを出力バッファ2
3を通してデータバス17上に出力する(図では、デー
タバス17上の下位3ビットに出力されている)。
For example, since the number of interrupts is 16 in this case, 4 bits are sufficient as the address information of the vector table. In FIG. 2, the address information of the vector table is the upper 5 bits on the data bus. It is being output. Then, the address information of the vector table is output onto the data bus, and at the same time, the priority flags P2i, P of the priority information corresponding to the selected interrupt request are output.
The contents of 1i and P0i are priority signals DPR2, DPR1,
It is on top of DPR027, and this is output buffer 2
It outputs to the data bus 17 through 3 (in the figure, it outputs to the lower 3 bits on the data bus 17).

【0027】データバス17上のベクタテーブルのアド
レス情報と優先度情報は、エバチップ内のCPU10に
伝達されて、それぞれアドレス情報はプログラムカウン
タに、優先度情報は優先順位ステータスフラグに格納さ
れる。
The address information and the priority information of the vector table on the data bus 17 are transmitted to the CPU 10 in the evaluation chip, and the address information is stored in the program counter and the priority information is stored in the priority order status flag.

【0028】[0028]

【発明の効果】以上説明した様に本発明は。周辺エミュ
レータ側で選択された割込み要求にた対応する優先度指
定をエバチップ内のCPUに伝達する手段として、ベク
タテーブルアドレスと共に選択された割込み要求の優先
度指定をデータバスを介して行なっているため、割込み
機能のエミュレートを実現する端子を削減できる。これ
によりエバチップ内に取りこむ端子機能の数を減少させ
ることができ、その分だけ製品の展開を容易にできると
いう効果がある。
The present invention is as described above. Since the priority designation of the interrupt request selected together with the vector table address is performed via the data bus as a means for transmitting the priority designation corresponding to the interrupt request selected on the peripheral emulator side to the CPU in the evaluation chip. The number of terminals that emulate the interrupt function can be reduced. As a result, the number of terminal functions incorporated in the evaluation chip can be reduced, and the product can be easily developed correspondingly.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】図1の動作を説明するタイミング図。FIG. 2 is a timing diagram illustrating the operation of FIG.

【図3】従来例のエミュレータのブロック図。FIG. 3 is a block diagram of a conventional emulator.

【符号の説明】[Explanation of symbols]

10 CPU 11 ISP(優先順位ステータスフラグ) 13 INTRQ(ベクタ割込み起動信号) 14 ISPj(優先順位ステータス信号) 15 リード信号(RD) 16 ライト信号(WR) 17 データバス(DATA) 18 アドレスバス(ADRS) 19 アクノレッジ信号(VACK) 20 割込み制御回路(INT) 21 制御回路(CNT) 22 ベクタROM(VCK) 23 出力バッファ(BUF) 25 割込要求信号(INTi) 26 ベクタROMアドレス(INTi) 26 ベクタROMアドレス(RAi) 27 優先度信号(DRPi) 28 割込要求フラグ(IFi) 29 割込マスクフラグ(MKi) 30 プライオリティフラグ(P0〜P2i) 10 CPU 11 ISP (priority status flag) 13 INTRQ (vector interrupt start signal) 14 ISPj (priority status signal) 15 read signal (RD) 16 write signal (WR) 17 data bus (DATA) 18 address bus (ADRS) 19 Acknowledge signal (VACK) 20 Interrupt control circuit (INT) 21 Control circuit (CNT) 22 Vector ROM (VCK) 23 Output buffer (BUF) 25 Interrupt request signal (INTi) 26 Vector ROM address (INTi) 26 Vector ROM address (RAi) 27 Priority signal (DRPi) 28 Interrupt request flag (IFi) 29 Interrupt mask flag (MKi) 30 Priority flag (P0 to P2i)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置と、この中央処理装置が実
行中のプログラムの優先度を指定する第1のフラグを記
憶する第1のフラグ記憶手段とを少なくとも含む第1の
LSIチップと、割込み要求に対応する優先度を指定す
る第2のフラグで指定され前記第1のフラグよりも優先
度の高い割込み要求を検出して前記中央処理装置に対し
てベクタ割込み起動信号を発生する制御回路と、割込み
処理プログラムの先頭番地を格納したメモリのアドレス
情報を記憶する記憶手段と、前記第1のLSIチップと
のデータ転送を行なうデータバスとを少なくとも含む第
2のLSIチップとで割込み機能をエミュレートする割
込みエミュレータにおいて、前記制御回路で検出された
割込み要求に対応する前記第2のフラグの優先度と前記
記憶手段とアドレス情報とを同時に前記データバス上に
出力する出力手段と、前記データバス上の優先度信号を
前記第1のフラグ記憶手段に格納する第2の手段とを備
えたこを特徴とする割込みエミュレータ。
1. A first LSI chip including at least a central processing unit, a first flag storing means for storing a first flag designating a priority of a program being executed by the central processing unit, and an interrupt. A control circuit for detecting an interrupt request designated by a second flag designating a priority corresponding to the request and having a higher priority than the first flag, and generating a vector interrupt activation signal to the central processing unit; An interrupt function is emulated by a second LSI chip including at least storage means for storing address information of a memory storing a start address of an interrupt processing program and a data bus for transferring data to and from the first LSI chip. In a rate interrupt emulator, the priority of the second flag corresponding to the interrupt request detected by the control circuit, the storage means and the address An interrupt emulator comprising: output means for simultaneously outputting information and information on the data bus; and second means for storing a priority signal on the data bus in the first flag storage means.
JP4209881A 1992-08-06 1992-08-06 Interrupt emulator Expired - Fee Related JP2876909B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4209881A JP2876909B2 (en) 1992-08-06 1992-08-06 Interrupt emulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4209881A JP2876909B2 (en) 1992-08-06 1992-08-06 Interrupt emulator

Publications (2)

Publication Number Publication Date
JPH0659909A true JPH0659909A (en) 1994-03-04
JP2876909B2 JP2876909B2 (en) 1999-03-31

Family

ID=16580196

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4209881A Expired - Fee Related JP2876909B2 (en) 1992-08-06 1992-08-06 Interrupt emulator

Country Status (1)

Country Link
JP (1) JP2876909B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0836506A (en) * 1994-07-25 1996-02-06 Nec Corp Information processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0836506A (en) * 1994-07-25 1996-02-06 Nec Corp Information processor

Also Published As

Publication number Publication date
JP2876909B2 (en) 1999-03-31

Similar Documents

Publication Publication Date Title
JP2651916B2 (en) In-circuit emulator
US5594890A (en) Emulation system for emulating CPU core, CPU core with provision for emulation and ASIC having the CPU core
US5325512A (en) Circuit emulator
JP2845155B2 (en) Emulation chip for single-chip microcomputer
JPH02224140A (en) Interruption testing device
JP3202700B2 (en) Signal processing device
JP3380827B2 (en) Emulator device
JPH0659909A (en) Interrupting emulator
JPS6025624Y2 (en) Equipment for information processing equipment development
JPS6356569B2 (en)
JP3323341B2 (en) Emulation processor and emulator equipped with it
JPS62164140A (en) Testing of data processing system
JP2558902B2 (en) Semiconductor integrated circuit device
JPS59202547A (en) Debugging device
JP3018361B2 (en) Piggyback tip
JPH08328898A (en) User space access method and emulator
JP2765318B2 (en) In-circuit emulator
JPH071500B2 (en) Single chip microcomputer
JP2001209555A (en) Device for input/output emulation, method for emulating input/output device and storage medium which stores input/output emulation program
JP2001297012A (en) Processor and emulator
JPH04369739A (en) Program debug device
JP2002175196A (en) In-circuit emulator
JPS645342B2 (en)
JPS648381B2 (en)
JPH0760401B2 (en) Single-chip microcomputer for evaluation

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19981222

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080122

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090122

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100122

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110122

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110122

Year of fee payment: 12

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110122

Year of fee payment: 12

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110122

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120122

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees