JP3209144B2 - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JP3209144B2
JP3209144B2 JP16533997A JP16533997A JP3209144B2 JP 3209144 B2 JP3209144 B2 JP 3209144B2 JP 16533997 A JP16533997 A JP 16533997A JP 16533997 A JP16533997 A JP 16533997A JP 3209144 B2 JP3209144 B2 JP 3209144B2
Authority
JP
Japan
Prior art keywords
interrupt
svi
circuit
maskable
signal
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 - Fee Related
Application number
JP16533997A
Other languages
Japanese (ja)
Other versions
JPH10340208A (en
Inventor
美穂 平位
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 JP16533997A priority Critical patent/JP3209144B2/en
Publication of JPH10340208A publication Critical patent/JPH10340208A/en
Application granted granted Critical
Publication of JP3209144B2 publication Critical patent/JP3209144B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロプロセッ
サに関し、特に、複数のマスカブル割り込みマスク回路
とSVI(スーパバイザインタラプト)を受け付ける回
路を有するマイクロプロセッサにおいて、SVI中に選
択的にマスカブル割り込みを実行することが可能なハー
ドウェアを有するマイクロプロセッサに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor, and more particularly to a microprocessor having a plurality of maskable interrupt mask circuits and a circuit for receiving an SVI (supervisor interrupt) to selectively execute a maskable interrupt during an SVI. The present invention relates to a microprocessor having hardware capable of operating.

【0002】[0002]

【従来の技術】この種のマイクロプロセッサの従来技術
について、以下では、特開平1−184545号公報に
記載のマイクロプロセッサを例に説明する。図4に、上
記特開平1−184545号公報の記載の割り込み禁止
回路の構成を示す。
2. Description of the Related Art The prior art of this type of microprocessor will be described below with reference to an example of a microprocessor disclosed in Japanese Patent Laid-Open Publication No. 1-184545. FIG. 4 shows the configuration of the interrupt prohibition circuit described in Japanese Patent Application Laid-Open No. 1-184545.

【0003】図4に示すように、SVI中に割り込みを
許可するか否かを設定するレジスタ32と、SVI中に
他割り込みが発生した場合、その割り込みの復帰命令実
行終了までの割込みモード信号発生回路36と、SVI
中は、“1”を出力するSVMODE信号と、レジスタ
32の出力及び割り込みモード信号発生回路36の出力
を受けて、割り込み発生を禁止する割り込み発生禁止回
路31と、を有している。
As shown in FIG. 4, a register 32 for setting whether or not to permit an interrupt during SVI, and when another interrupt occurs during SVI, generation of an interrupt mode signal until completion of execution of a return instruction of the interrupt Circuit 36 and SVI
The circuit includes an SVMODE signal that outputs “1”, an interrupt generation inhibition circuit 31 that receives an output of the register 32 and an output of the interrupt mode signal generation circuit 36, and prohibits the generation of an interrupt.

【0004】次に動作について説明する。まず、レジス
タ32に“1”が設定された場合の動作について説明す
る。
Next, the operation will be described. First, the operation when “1” is set in the register 32 will be described.

【0005】レジスタ32の出力が“1”であるため、
2入力ORゲート33の出力は常に“1”となり、R−
Sフリップフロップ回路35の出力は常に“1”とな
る。SVIが発生していない時点では、SVMODE信
号は“0”であり、2入力ANDゲート36の出力は
“0”となり、割り込み禁止回路31においては、割り
込み禁止が発生しない。従って、一般割り込み許可状態
である。
Since the output of the register 32 is "1",
The output of the two-input OR gate 33 is always "1" and R-
The output of the S flip-flop circuit 35 is always "1". At the time when the SVI does not occur, the SVMODE signal is “0”, the output of the two-input AND gate 36 is “0”, and the interrupt disabling circuit 31 does not disable the interrupt. Therefore, the general interrupt is permitted.

【0006】ここで、SVIが発生すると、SVMOD
E信号が“1”となり、2入力ANDゲート36の出力
は“1”となり、割り込み禁止回路31は、割り込み禁
止状態となる。
Here, when SVI occurs, SVMOD
The E signal becomes "1", the output of the two-input AND gate 36 becomes "1", and the interrupt disabling circuit 31 enters the interrupt disabled state.

【0007】次に、レジスタ32に“0”が設定された
場合の動作について説明する。レジスタ32の出力が
“0”であるため、2入力ANDゲート34の出力は常
に“0”となり、SVMODE信号の他にかかわりな
く、割り込み禁止回路31は、割り込み許可状態とな
る。
Next, the operation when "0" is set in the register 32 will be described. Since the output of the register 32 is "0", the output of the two-input AND gate 34 is always "0", and the interrupt disable circuit 31 enters the interrupt enabled state regardless of the SVMODE signal.

【0008】この時、R−Sフリップフロップ35は、
レジスタ32の出力Qが“1”から“0”となり、2入
力ORゲート33の出力が“0”となっても、出力Qは
“1”を保持している。
At this time, the RS flip-flop 35
Even if the output Q of the register 32 changes from “1” to “0” and the output of the two-input OR gate 33 changes to “0”, the output Q holds “1”.

【0009】SVI中に、割り込み信号INTがR−S
フリップフロップ35に入力されると、R−Sフリップ
フロップ35はリセットされ、その出力Qは“0”とな
り、2入力ANDゲート36の出力、即ち外部端子SV
MODEの出力は“0”となって、SVIが中断された
ことを示す。
During the SVI, the interrupt signal INT becomes RS
When the signal is input to the flip-flop 35, the RS flip-flop 35 is reset, and the output Q thereof becomes "0", ie, the output of the two-input AND gate 36, that is, the external terminal SV.
The output of MODE becomes "0", indicating that the SVI has been interrupted.

【0010】割り込みが終了し、内部RETI信号(割
込みからの復帰信号)が、R−Sフリップフロップ35
に入力されると、出力Qは“1”となり、2入力AND
ゲート36の出力、即ち外部端子SV−MODEの出力
は“1”となって、再び、SVIモードに入ったことを
外部に示す。
When the interrupt is completed, the internal RETI signal (return signal from the interrupt) is output to the RS flip-flop 35.
, The output Q becomes “1” and the two-input AND
The output of the gate 36, that is, the output of the external terminal SV-MODE becomes "1", indicating to the outside that the device has entered the SVI mode again.

【0011】なお、上記公報に記載の実施例2では多重
割り込みも許可している。
In the second embodiment described in the above publication, multiple interrupts are also permitted.

【0012】[0012]

【発明が解決しようとする課題】通常、SVIを受け付
けるマイクロプロセッサにおいては、SVI中は、他の
割り込みは受け付けないように設計されているため、割
り込み依存型のシステム等において、本来のユーザプロ
グラムによるCPUの割り込み処理動作を妨げずに、イ
ンサーキット・エミュレータの目的であるユーザプログ
ラムのデバグやトレースなどを行うことは不可能であっ
た。
Normally, a microprocessor that accepts an SVI is designed not to accept other interrupts during the SVI. Therefore, in an interrupt-dependent system or the like, an original user program is used. It has been impossible to debug or trace a user program, which is the purpose of an in-circuit emulator, without interrupting the interrupt processing operation of the CPU.

【0013】また、割り込みにより短周期DRAM(ダ
イナミックランダムアクセスメモリ)のリフレッシュ等
を行っているシステム等においては、デバグ中には、D
RAMのフレッシュができず、DRAMの値を値を保持
できなくなる等のシステムに対する弊害が生じる可能性
もある。このため、上記した従来技術のような改善が試
みられて来た。
In a system or the like in which a short cycle DRAM (dynamic random access memory) is refreshed by an interrupt, etc.
There is also a possibility that adverse effects on the system, such as the inability to refresh the RAM and the inability to retain the value of the DRAM, may occur. For this reason, improvements as in the above-described prior art have been attempted.

【0014】現在のマイクロプロセッサを使用したシス
テムにおいては、短時間に複数の割り込みが多様な依存
関係で入るシステムが多く存在する。また、組み込み型
マイクロプロセッサを必要とするシステムにおいては、
特にその処理速度、応答性能、実装面積の少なさ(これ
は即ち消費電力のコストの低減につながる)が問われる
ことが多い。このような傾向の中で、リアルタイム制御
を目的としたものや、高い応答性能を要求されるシステ
ム等においては、割り込み応答性能向上などのために割
り込み依存関係をハードウェアで行うように設計された
マイクロプロセッサを使用することも多い。
In many systems using current microprocessors, a plurality of interrupts enter in various dependencies in a short time. In systems requiring embedded microprocessors,
In particular, its processing speed, response performance, and small mounting area (that is, reduction in power consumption cost) are often required. In this trend, in systems intended for real-time control and systems that require high response performance, interrupt dependencies are designed to be performed by hardware in order to improve interrupt response performance. Often a microprocessor is used.

【0015】しかしながら、従来技術においては、マイ
クロプロセッサは、割り込み許可モードにおいては、い
かなる割り込みであろうとも、SVIによる中断を許可
しており、またそれが多重に起こることも容認してい
る。即ち、マスカブル割り込み(マスク可能な割り込
み)は、一本で、割り込み許可/不許可のみが選択でき
るものである。
[0015] However, in the prior art, the microprocessor allows interrupts by SVI in the interrupt enable mode for any interrupt, and also allows multiple interrupts to occur. That is, the number of maskable interrupts (maskable interrupts) is one, and only interrupt enable / disable can be selected.

【0016】このように、ユーザプログラムのデバグ中
に、一律な割り込み許可・不許可の設定しか行えない場
合、前記のような、処理速度・高い応答性能・リアルタ
イム性を要求されるシステムにおいては、従来技術で問
題となったような、必要不可欠な割り込みだけでなく、
不要な割り込みを大量に受け付けることによって、イン
サーキットエミュレータへのメモリダンプ速度低下・多
数の割り込みによりデバグ中にユーザプログラムの状況
が変化することによるシステムの実稼働状態で発生する
バグの忠実な再現の阻害・リアルタイム制御の阻害・割
り込み応答性の低下等が発生する。
As described above, when only uniform setting of interrupt permission / non-permission can be performed during debugging of a user program, in a system requiring processing speed, high response performance, and real-time property as described above, In addition to the indispensable interrupts that were a problem with the prior art,
Accepting a large number of unnecessary interrupts slows down the memory dump speed to the in-circuit emulator, and faithfully reproduces bugs that occur in the actual operating state of the system due to a change in the state of the user program during debugging due to a large number of interrupts. Inhibition, inhibition of real-time control, reduction of interrupt responsiveness, etc. occur.

【0017】これにより、忠実にユーザプログラムをデ
バグするという本来の目的を果たすことが不可能とな
る。
This makes it impossible to fulfill the original purpose of faithfully debugging the user program.

【0018】また、従来技術のような構造のマイクロプ
ロセッサにおいて、前述したような、短時間に複数の割
り込みが割り込み依存で入るシステムを構築しようとす
るならば、(1)従来技術の割り込み回路を複数個内部
に持ち、複数のマスカブル割り込みを受け付けるマイク
ロプロセッサを作成することも、上記従来技術から類推
可能であり、また、(2)ソフトウェアのみで割り込み
依存を制御する、(3)外部ハードウェアで割り込み調
停を行う、等の手段(方式)も存在する。
Further, in a microprocessor having a structure as in the prior art, if it is intended to construct a system in which a plurality of interrupts are interrupt-dependently entered in a short time as described above, (1) the interrupt circuit of the prior art is required. It is also possible to infer from the above-mentioned prior art that a microprocessor having a plurality of insides and accepting a plurality of maskable interrupts can be inferred. Also, (2) interrupt dependency is controlled only by software, and (3) external hardware is used. There is also a means (method) for performing interrupt arbitration.

【0019】この場合、上記(1)の方式では、同じ回
路を複数チップ回路に設けることによる面積の増大・チ
ップの製造コスト上昇・消費電力増大及びシステム毎に
カスタマイズしなければならないことによるコスト・T
AT(ターンアラウンドタイム)の増加する。
In this case, in the method of (1), the same circuit is provided in a plurality of chip circuits to increase the area, increase the manufacturing cost of the chip, increase the power consumption, and reduce the cost due to the need to customize for each system. T
AT (turnaround time) increases.

【0020】上記(2)の方式では、リアルタイム制御
性・応答性能・デバグ性能の低下・ユーザプログラム作
成TAT増加、上記(3)の方式では、実装面積、実装
部品の増加による製品コストの増大、消費電力増大等が
問題となる。
In the above method (2), the real-time controllability, response performance, and debugging performance are degraded and the user program creation TAT is increased. In the method (3), the mounting cost is increased due to an increase in mounting area and mounting components. There is a problem such as an increase in power consumption.

【0021】このように、高い処理性能・応答性能・リ
アルタイム性を損なわない形で複数の割り込み依存シス
テムを構築し、その効率的なデバグを行うことは従来例
では困難であった。
As described above, it has been difficult in the conventional example to construct a plurality of interrupt-dependent systems without deteriorating high processing performance, response performance, and real-time performance, and to efficiently debug them.

【0022】したがって、本発明は、上記問題点に鑑み
てなされたものであって、その目的は、スーパバイザ割
り込み(SVI)を受け付けるマイクロプロセッサにお
いて、SVI処理中も、特定レベルの割り込みを指定し
て選択的に割り込みを受け付けることにより、効率的で
ユーザプログラムの実行環境や応答性能を損なわないデ
バグを可能とするマイクロプロセッサを提供することに
ある。
Therefore, the present invention has been made in view of the above-mentioned problems, and an object of the present invention is to specify a specific-level interrupt even during a SVI process in a microprocessor that accepts a supervisor interrupt (SVI). It is an object of the present invention to provide a microprocessor that enables efficient debugging by selectively accepting interrupts without impairing the execution environment and response performance of a user program.

【0023】[0023]

【課題を解決するための手段】前記目的を達成するた
め、本発明のマイクロプロセッサは、複数のマスカブル
割り込み信号を受け付けることのできる割り込み制御回
路と、インサーキット・エミュレータ等によるデバグを
目的としたスーパバイザ割り込み(「SVI」と略記す
る)を受け付ける回路と、を有するマイクロプロセッサ
において、マスカブル割り込み制御回路の一部に、SV
I実行によるマスカブル割り込み禁止状態においても、
特定レベルの割り込みについてのみ、マスク解除を行う
ことを可能とする回路手段を備え、SVI中の特定レベ
ルのマスカブル割り込みの実行の許可/不許可を制御す
る手段を備える、ことを特徴とする。
In order to achieve the above object, a microprocessor according to the present invention comprises an interrupt control circuit capable of accepting a plurality of maskable interrupt signals, and a supervisor for debugging using an in-circuit emulator or the like. And a circuit for receiving an interrupt (abbreviated as “SVI”).
Even in the maskable interrupt disabled state by I execution,
It is characterized in that it comprises circuit means for enabling unmasking of only a specific level interrupt, and means for controlling permission / non-permission of execution of a specific level maskable interrupt in SVI.

【0024】[0024]

【発明の実施の形態】本発明の実施の形態について以下
に説明する。本発明のマイクロプロセッサは、その好ま
しい実施の形態において、複数のマスカブル割り込み信
号を受け付けることのできる割り込み制御回路と、SV
Iを受け付ける回路とを有するマイクロプロセッサにお
いて、マスカブル割り込み制御回路の一部に、SVI実
行によるマスカブル割り込み禁止状態においても特定レ
ベルの割り込みについてのみマスク解除を行うことを可
能とするハードウェア回路を有し、SVI中の特定レベ
ルのマスカブル割り込みを選択的に実行することを可能
とするマスク解除手段を有する。
Embodiments of the present invention will be described below. In a preferred embodiment, the microprocessor according to the present invention includes an interrupt control circuit capable of receiving a plurality of maskable interrupt signals,
In a microprocessor having a circuit for receiving I, a part of the maskable interrupt control circuit has a hardware circuit capable of performing mask release only for an interrupt of a specific level even in a maskable interrupt disabled state due to execution of SVI. , SVI, and a mask release means for selectively executing a maskable interrupt of a specific level in SVI.

【0025】本発明のマイクロプロセッサは、その好ま
しい実施の形態において、上記ハードウェア回路は、特
定レベルの割り込みについてのマスク解除の実行/非実
行及びその割り込みレベルを設定するシステム・レジス
タ・ユニットと、システム・レジスタで設定された割り
込みレベルをSVI信号でラッチするテンポラリ・レジ
スタ(図1の14)と、外部より入力された割り込み信
号の割り込みレベルをマスカブル割り込み信号でラッチ
するテンポラリ・レジスタ(図1の13)と、両テンポ
ラリ・レジスタを比較し一致信号を出力する比較回路
(図1の16)と、一致信号により内部SVI信号をマ
スクするマスク制御回路から構成される。
In a preferred embodiment of the microprocessor of the present invention, the hardware circuit includes a system register unit for executing / non-executing / non-executing the unmasking of a specific level interrupt and setting the interrupt level; A temporary register (14 in FIG. 1) that latches the interrupt level set in the system register with the SVI signal, and a temporary register (14 in FIG. 1) that latches the interrupt level of the externally input interrupt signal with the maskable interrupt signal. 13), a comparison circuit (16 in FIG. 1) for comparing the two temporary registers and outputting a coincidence signal, and a mask control circuit for masking the internal SVI signal with the coincidence signal.

【0026】[0026]

【実施例】上記した本発明の実施の形態について更に詳
細に説明すべく、本発明の実施例について図面を参照し
て以下に説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention;

【0027】以下では、複数のマスカブル割り込み入力
を持つ既知のマイクロプロセッサuPD70732の割
り込みマスク回路に本発明を適用した実施例について説
明する。
An embodiment in which the present invention is applied to an interrupt mask circuit of a known microprocessor uPD70732 having a plurality of maskable interrupt inputs will be described below.

【0028】図1は、本発明の一実施例における割り込
みマスク回路の概略構成を示す図である。図2は、PS
W(プログラム・ステータス・ワード)、システムレジ
スタICEMRの概要を示す図である、図3は、SVI
マスク回路の状態表を示す図である。
FIG. 1 is a diagram showing a schematic configuration of an interrupt mask circuit according to one embodiment of the present invention. Figure 2 shows the PS
FIG. 3 is a diagram showing an outline of W (program status word) and a system register ICEMR.
FIG. 3 is a diagram illustrating a state table of a mask circuit.

【0029】図1を参照すると、本実施例マイクロプロ
セッサ1は、デバグのために設けられた、ユーザ非公開
なデバグ目的の割り込みであるスーパバイザ割り込み
(特権割り込み、以下「SVI」と略記する)を要求す
る外部入力端子BRKINTと、命令実行の結果やプロ
セッサ自身の状態を示すフラグ群を格納してあるプログ
ラム・ステータス・ワード・レジスタ(「PSW」とい
う)11(以上の構成は既存製品uPD70732に存
在する)を有し、また、新たに設けた割り込み可能レベ
ルフラグMI(Mask Inerrupt Leve
l)とマスク解除モードフラグME(Mask Ena
ble、“0”でマスク解除OFF、“1”でマスク解
除ON)を持つシステム・レジスタICEMR12、そ
のMIビット及びMEビットの値を受けてPSW11の
NP(NMI Pending)ビットからの出力をマ
スクするSVIマスク回路7を内蔵するマスカブル割り
込み許可回路6を有する。
Referring to FIG. 1, the microprocessor 1 of the present embodiment includes a supervisor interrupt (privileged interrupt, hereinafter abbreviated as "SVI") provided for debugging, which is an interrupt for the purpose of debugging that is not disclosed to the user. A request status external input terminal BRKINT and a program status word register (hereinafter referred to as “PSW”) 11 storing a flag group indicating the result of instruction execution and the state of the processor itself (the above configuration is present in the existing product uPD70732). ), And a newly provided interrupt enable level flag MI (Mask Interrupt Level).
l) and the mask release mode flag ME (Mask Ena)
ble, “0” unmasking OFF, “1” unmasking ON), receives the values of the MI and ME bits of the system register ICEM12, and masks the output from the NP (NMI Pending) bit of the PSW 11 It has a maskable interrupt enable circuit 6 having a built-in SVI mask circuit 7.

【0030】SVIマスク回路7内には、リセット後の
初期値が0であるテンポラリ・レジスタ13、リセット
後の初期値がFであるテンポラリ・レジスタ14、テン
ポラリ・レジスタ13、14の値を、n、lと比較し
て、n=lならば、“1”を出力する比較回路16等を
有している。
In the SVI mask circuit 7, the values of the temporary register 13 whose initial value after reset is 0, the temporary register 14 whose initial value after reset is F, and the values of the temporary registers 13 and 14 are represented by n , L, and a comparison circuit 16 that outputs “1” if n = 1.

【0031】ICEMR12等は、既存レジスタの未定
義フィールドを使用してもよい。
The ICEMR 12 and the like may use an undefined field of an existing register.

【0032】まず、ICEMR12のME(Mask
Enable)ビットに、“0”を設定した場合、2入
力NAND17の出力は常に“1”である。
First, ME (Mask) of ICEMR12
When the “Enable” bit is set to “0”, the output of the two-input NAND 17 is always “1”.

【0033】この実施例のマイクロプロセッサ1におい
ては、割り込みは16本まで許可されている。外部入力
端子22より割り込み信号INTが割り込みマスク回路
6に入力されると、システム・レジスタ・ユニット内の
PSW11の割り込み許可レベルフラグI3−I0の値
mと、外部入力端子21から入力された割り込みレベル
信号INTV(3−0)の割り込みレベルnが、比較回
路15で比較され、n≧mであれば、割り込み許可を示
す値“1”が比較回路15より出力される。
In the microprocessor 1 of this embodiment, up to 16 interrupts are permitted. When the interrupt signal INT is input to the interrupt mask circuit 6 from the external input terminal 22, the value m of the interrupt enable level flag I3-I0 of the PSW 11 in the system register unit and the interrupt level input from the external input terminal 21 The comparison circuit 15 compares the interruption level n of the signal INTV (3-0) with the comparison circuit 15. If n ≧ m, the comparison circuit 15 outputs a value “1” indicating interruption permission.

【0034】比較回路15より“1”が出力されている
間に、他の割り込み条件(ステータスフラグNP、E
P、AE、IDがそれぞれ“0”である)が揃えば、割
り込み有効信号INTvalidが“1”(すなわちアクテ
ィブ)となり、マスカブル割り込み処理が開始される。
While the comparison circuit 15 is outputting "1", other interrupt conditions (status flags NP, E
When P, AE, and ID are all "0"), the interrupt valid signal INTvalid becomes "1" (that is, active), and the maskable interrupt process is started.

【0035】ここで、NP(NMI Pending)
は、マスク不可割り込み処理中であることを示すフラ
グ、EP(Exception Pending)は、
例外/トラップ/割り込み処理中であることを示すフラ
グ、AE(Address Trap Enable)
はアドレス・トラップ機能が活性化中であることを示す
フラグ、ID(Interrupt Disable)
は外部からの割り込み要求を受け付けるかどうかを示す
フラグである(図2参照)。
Here, NP (NMI Pending)
Is a flag indicating that non-maskable interrupt processing is in progress, and EP (Exception Pending) is
Flag indicating that exception / trap / interrupt processing is in progress, AE (Address Trap Enable)
Is a flag indicating that the address trap function is being activated, ID (Interrupt Disable)
Is a flag indicating whether or not an external interrupt request is accepted (see FIG. 2).

【0036】これらいずれかのフラグが“1”であれ
ば、割り込みはマスクされ、受け付けられない。
If any of these flags is "1", the interrupt is masked and not accepted.

【0037】外部入力端子23から入力されるBRKI
NT(−)信号がアクティブになり、SVI処理が行わ
れている時は、NPビットは“1”にセットされている
ため、INTvalid信号は、インアクティブとなり、マ
スカブル割り込みは許可されない。
BRKI input from the external input terminal 23
When the NT (-) signal becomes active and SVI processing is being performed, the INTvalid signal becomes inactive because the NP bit is set to "1", and maskable interrupts are not permitted.

【0038】次に、ICEMR12のMEビットに、
“1”を設定した場合について説明する。まず、ICE
MR12中のMIビットにSVI中でも割り込み許可し
たい割り込みレベルの値lを設定する。
Next, in the ME bit of the ICEMR12,
A case where “1” is set will be described. First, ICE
The value l of the interrupt level for which interruption is to be permitted even during SVI is set to the MI bit in MR12.

【0039】比較回路16の初期出力は“0”であるた
め、SVI要求を示す外部入力信号BRKINT(−)
がアクティブになるまでは、2入力NAND17の出力
は必ず“1”である。
Since the initial output of the comparison circuit 16 is "0", the external input signal BRKINT (-) indicating the SVI request
Until is activated, the output of the two-input NAND 17 is always "1".

【0040】従って、EP、ID、AEがそれぞれ
“0”、かつ、割り込みレベルが許可レベル以上であれ
ばマスカブル割り込みは受け付けられる。
Therefore, if EP, ID, and AE are each "0" and the interrupt level is higher than the permission level, the maskable interrupt is accepted.

【0041】SVI要求が発生して、BRKINT
(−)信号がアクティブになるとテンポラリ・レジスタ
14には、ICEMR12のMIビットの値lがセット
されるが、この時点では、比較回路16の出力は“0”
のままである。
When an SVI request occurs and BRKINT
When the (-) signal becomes active, the value l of the MI bit of the ICEMR 12 is set in the temporary register 14, but at this time, the output of the comparison circuit 16 is "0".
Remains.

【0042】SVI処理が終了すると、SVIからの内
部復帰命令BRKRET信号がテンポラリ・レジスタ1
3、14をリセットする。
When the SVI processing is completed, the internal return instruction BRKRET signal from the SVI is sent to the temporary register 1
3 and 14 are reset.

【0043】SVI中に、マスカブル割り込み要求信号
INTがアクティブになると、テンポラリ・レジスタ1
3に割り込み要求レベルの値nがセットされ、比較回路
16において、テンポラリ・レジスタ13の値nとテン
ポラリ・レジスタ14の値lの比較が行われる。
When the maskable interrupt request signal INT becomes active during SVI, the temporary register 1
3, the value n of the interrupt request level is set, and the comparison circuit 16 compares the value n of the temporary register 13 with the value 1 of the temporary register 14.

【0044】n≠lならば比較回路16の出力は“0”
のまま変化せず、マスカブル割り込みは許可されない。
n=lならば比較回路16の出力は、“1”となり、2
入力NAND17の出力は“0”となって、NPフラグ
をマスクし、SVIによる割り込み禁止は解除され、他
の条件が揃えば、INTvalid信号が“1”になり、マ
スカブル割り込みを実行することが可能になる。
If n ≠ 1, the output of the comparison circuit 16 is “0”
The maskable interrupt is not enabled.
If n = 1, the output of the comparison circuit 16 becomes “1” and 2
The output of the input NAND 17 becomes “0”, masks the NP flag, cancels the interrupt inhibition by SVI, and if other conditions are met, the INTvalid signal becomes “1” and a maskable interrupt can be executed. become.

【0045】以上本発明の実施例を説明した。ここでは
1レベルのみについて割り込み可能としたが、MIビッ
トに割り込み許可レベルフラグを複数セットすること等
により、任意レベルの割り込みを任意の本数許可するこ
とが可能となる。
The embodiment of the present invention has been described above. Here, only one level of interrupt is enabled, but an arbitrary number of interrupts of any level can be allowed by setting a plurality of interrupt enable level flags in the MI bit.

【0046】[0046]

【発明の効果】以上説明したように、本発明によれば、
SVI時に特定レベルのマスカブル割り込みをハードウ
ェアで選択的に実行することが可能であるため、特に割
り込み依存のシステムにおいてリアルタイム制御性や応
答性の低下を招くことなく、ユーザ・プログラムの期待
する本来の動作を妨げることを最小限に抑えたシステム
のデバグ等を可能とする、という効果を奏する。
As described above, according to the present invention,
Since a maskable interrupt of a specific level can be selectively executed by hardware at the time of SVI, the original program expected by the user program can be performed without deteriorating real-time controllability and responsiveness particularly in an interrupt-dependent system. This has the effect of enabling the system to be debugged while minimizing the hindrance of operation.

【0047】また、本発明においては、システム構築の
際には、従来方式に比べ、ユーザプログラムや外部ハー
ドウェアに負担をかけることなく、チップ内の少ない面
積において容易かつ確実かつフレキシブルに、処理速度
・高い応答性能・リアルタイム性を損なうことなく多数
の割り込み処理を行う割り込み依存システムを構築でき
るという利点を有する。
According to the present invention, when constructing a system, the processing speed can be easily, reliably and flexibly reduced in a small area of a chip without imposing a burden on a user program or external hardware as compared with the conventional method. -High response performance-Has the advantage that an interrupt-dependent system that performs a large number of interrupt processes without impairing the real-time property can be constructed.

【0048】即ち、チップ及びシステムの面積増大抑
制、コスト、消費電力の低減、ユーザ・プログラム作成
TAT短縮、高い応答性能及び処理速度及びリアルタイ
ム制御性と、システムの稼働状態に忠実な動作の再現・
デバグを同時に実行することができる。
That is, suppression of chip and system area increase, reduction of cost and power consumption, reduction of user program creation TAT, high response performance and processing speed and real-time controllability, and reproduction of operation faithful to the operation state of the system.
Debugging can be performed simultaneously.

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

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

【図2】本発明の一実施例におけるPSW、ICEMR
の概略図である。
FIG. 2 shows PSW and ICEMR in one embodiment of the present invention.
FIG.

【図3】本発明の一実施例を説明する状態表である。FIG. 3 is a state table illustrating an embodiment of the present invention.

【図4】従来技術を説明する概略図である。FIG. 4 is a schematic diagram illustrating a conventional technique.

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

1、2 マイクロプロセッサ 3 システム・レジスタ・ユニット 4 他ユニット 5 割り込みマスク回路 6 SVIマスク回路 11 プログラム・ステータス・レジスタ(PSW) 12 システム・レジスタ(ICEMR) 13、14 テンポラリ・レジスタ 15、16 比較回路 17、18 2入力NAND 31 割り込み禁止回路 32 レジスタ 33 2入力OR 34、36 2入力AND 35 R−Sフリップフロップ 1, 2 Microprocessor 3 System register unit 4 Other unit 5 Interrupt mask circuit 6 SVI mask circuit 11 Program status register (PSW) 12 System register (ICEMR) 13, 14 Temporary register 15, 16 Comparison circuit 17 , 18 2-input NAND 31 interrupt prohibition circuit 32 register 33 2-input OR 34, 36 2-input AND 35 RS flip-flop

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/28 G06F 9/46 311 G06F 11/22 340 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 11/28 G06F 9/46 311 G06F 11/22 340

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のマスカブル割り込み信号を受け付け
るとともに、インサーキット・エミュレータ等によるデ
バグを目的としたスーパバイザ割り込み(「SVI」と
略記する)を受け付けるように構成されてなるマイクロ
プロセッサにおいて、 SVI実行によるマスカブル割り込み禁止状態において
も、特定レベルの割り込みについてはマスク解除を行う
回路手段を備え、 これにより、SVI処理中であっても前記特定レベルの
マスカブル割り込みを選択的に受け付け可能としたこと
を特徴とするマイクロプロセッサ。
A microprocessor configured to receive a plurality of maskable interrupt signals and to receive a supervisor interrupt (abbreviated as "SVI") for debugging by an in-circuit emulator or the like. Even when maskable interrupts are disabled, the mask is released for interrupts of a specific level
A microprocessor comprising circuit means, whereby the maskable interrupt of the specific level can be selectively received even during SVI processing.
【請求項2】複数のマスカブル割り込み信号を受け付け
ることのできる割り込み制御回路と、インサーキット・
エミュレータ等によるデバグを目的としたスーパバイザ
割り込み(「SVI」と略記する)を受け付ける回路
と、を有するマイクロプロセッサにおいて、 マスカブル割り込み制御回路の一部に、SVI実行によ
るマスカブル割り込み禁止状態においても、特定レベル
の割り込みについてのみ、マスク解除を行うことを可能
とする回路手段を備え、 SVI中の特定レベルのマスカブル割り込みの実行の許
可/不許可を制御する手段を備える、ことを特徴とする
マイクロプロセッサ。
An interrupt control circuit for receiving a plurality of maskable interrupt signals;
A circuit that accepts a supervisor interrupt (abbreviated as “SVI”) for the purpose of debugging by an emulator or the like. A part of the maskable interrupt control circuit includes a specific level even when maskable interrupts are disabled by SVI execution. A microprocessor capable of performing mask release only for the interrupt of (i), and a means for controlling permission / non-permission of execution of a maskable interrupt of a specific level in SVI.
【請求項3】前記マスク解除を行う回路手段が、特定レ
ベルの割り込みについてのマスク解除の実行/非実行、
及びその割り込みレベルを設定するシステム・レジスタ
と、 前記システム・レジスタで設定された割り込みレベルを
SVI信号でラッチする第1のテンポラリ・レジスタ
と、 外部より入力された割り込み信号の割り込みレベルをマ
スカブル割り込み信号でラッチする第2のテンポラリ・
レジスタと、 前記第1、第2のテンポラリ・レジスタを比較し、一致
信号を出力する比較回路と、 前記比較回路からの一致信号により内部SVI信号をマ
スクするマスク制御回路と、 を備える、ことを特徴とする請求項1記載のマイクロプ
ロセッサ。
3. The method according to claim 1, wherein the unmasking circuit means executes / non-executes / unexecutes masking for a specific level interrupt.
A system register for setting an interrupt level thereof, a first temporary register for latching the interrupt level set by the system register with an SVI signal, and a maskable interrupt signal for an interrupt level of an externally input interrupt signal. The second temporary latch
A register, a comparison circuit that compares the first and second temporary registers and outputs a match signal, and a mask control circuit that masks an internal SVI signal with the match signal from the comparison circuit. The microprocessor of claim 1, wherein:
JP16533997A 1997-06-06 1997-06-06 Microprocessor Expired - Fee Related JP3209144B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16533997A JP3209144B2 (en) 1997-06-06 1997-06-06 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16533997A JP3209144B2 (en) 1997-06-06 1997-06-06 Microprocessor

Publications (2)

Publication Number Publication Date
JPH10340208A JPH10340208A (en) 1998-12-22
JP3209144B2 true JP3209144B2 (en) 2001-09-17

Family

ID=15810469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16533997A Expired - Fee Related JP3209144B2 (en) 1997-06-06 1997-06-06 Microprocessor

Country Status (1)

Country Link
JP (1) JP3209144B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102013204037A1 (en) 2012-03-13 2013-09-19 Denso Corporation microcomputer
DE102013204045A1 (en) 2012-03-13 2013-09-19 Denso Corporation microcomputer

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102013204037A1 (en) 2012-03-13 2013-09-19 Denso Corporation microcomputer
DE102013204045A1 (en) 2012-03-13 2013-09-19 Denso Corporation microcomputer
DE102013204037B4 (en) 2012-03-13 2019-06-06 Denso Corporation microcomputer
DE102013204045B4 (en) 2012-03-13 2023-04-20 Denso Corporation microcomputer

Also Published As

Publication number Publication date
JPH10340208A (en) 1998-12-22

Similar Documents

Publication Publication Date Title
EP0497380B1 (en) Microcomputer having a watchdog timer
US4573117A (en) Method and apparatus in a data processor for selectively disabling a power-down instruction
US5717851A (en) Breakpoint detection circuit in a data processor and method therefor
JP3678759B2 (en) Apparatus for generating an interrupt and method for generating an interrupt
JP2625402B2 (en) Microprocessor
US6321289B1 (en) Apparatus for automatically notifying operating system level applications of the occurrence of system management events
JP3209144B2 (en) Microprocessor
KR100521110B1 (en) Event handling
JP2677609B2 (en) Microcomputer
JP3001526B1 (en) Interrupt processing circuit and interrupt debugging method
JPH0756774A (en) Watching timer
JPH02186448A (en) Integrated circuit with debugging environment
JP3449812B2 (en) Control electronics
JP3129227B2 (en) Microprocessor
Sievers Hardware additions to microprocessor architecture aid software development
JPS60124734A (en) Interruption processing circuit to cpu
JP2870083B2 (en) Microcomputer with built-in watchdog timer
JP2000330798A (en) Interrupt controller and method for verifying interrupt control
JP2755205B2 (en) Low power consumption method for data processing equipment
JP2001282568A (en) Illegal access detection circuit, in-circuit emulator having the same and illegal access detecting method
JPH08153018A (en) Semiconductor system
JPH0642207B2 (en) Multi-level programming method
JPH087706B2 (en) Single chip microcomputer for evaluation
JPS62290942A (en) Debugger starting system
JPH0531773B2 (en)

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: 20010612

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

Free format text: PAYMENT UNTIL: 20070713

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080713

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090713

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100713

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100713

Year of fee payment: 9

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: 20100713

Year of fee payment: 9

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: 20110713

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110713

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120713

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120713

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130713

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees