JPH03257544A - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JPH03257544A
JPH03257544A JP2057047A JP5704790A JPH03257544A JP H03257544 A JPH03257544 A JP H03257544A JP 2057047 A JP2057047 A JP 2057047A JP 5704790 A JP5704790 A JP 5704790A JP H03257544 A JPH03257544 A JP H03257544A
Authority
JP
Japan
Prior art keywords
instruction
interruption
interrupt
prescribed
register
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
JP2057047A
Other languages
Japanese (ja)
Inventor
Shuichi Amako
尼子 衆一
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 JP2057047A priority Critical patent/JPH03257544A/en
Publication of JPH03257544A publication Critical patent/JPH03257544A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To improve the software developing efficiency by providing a means which compares the contents of a means which stores a prescribed instruction word to be interrupted with an instruction word which is fetched from outside and produces a prescribed interruption when the coincidence is obtained in the preceding comparison. CONSTITUTION:An instruction is set to a trap instruction register 4 to generate a prescribed interruption. At the same time, a prescribed instruction is read into a prefetch queue 3 by an external bus control unit 2. When the instruction is read out of the queue 3 in an execution unit 1, an instruction is also transferred to an interruption generating circuit 5. The circuit 5 compares the received instruction with a bit train that is previously set into the register 4. When the coincidence is secured in this comparison, an interruption signal is produced and sent to the unit 1. Then an interruption request is executed to the unit 1. Thus the software developing efficiency is improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロプロセッサに関し、特にソフトウェア
開発に必要とされるデイバック機能を有するマイクロプ
ロセッサに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprocessor, and particularly to a microprocessor having a dayback function required for software development.

〔従来の技術〕[Conventional technology]

従来、この種のマイクロプロセッサにおいては、ソフト
0エアの開発に当ってのディバ・γり機能として、特定
のアドレスにアクセスを行うことにより、所定の割込み
が発生されるという機能を有しているのが一般である。
Conventionally, this type of microprocessor has had a function that generates a predetermined interrupt by accessing a specific address, as a diversion function in the development of software zero air. This is common.

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

上述した従来のマイクロプロセッサは、ソフト0エアの
開発に当ってデイバックを行う場合、当然の機能として
、既知のアドレスにアクセスを行うことにより所定の割
込みが発生されるという機能を有しているため、近年の
ように、リロケータブル・アセンブラまたはコンパイラ
等のように、ソフトウェア開発技術者がアドレスの管理
を直接に行わず、且つ、成る特定の命令によって割込み
を行うことを必要とする場合には、当該ソフトウェアの
内部を、事前に詳細に調査しておく必要があり、ソフト
ウェア開発の効率を低下させるという欠点がある。
The above-mentioned conventional microprocessor naturally has the function of generating a predetermined interrupt by accessing a known address when performing debugging during the development of software 0 air. Therefore, in recent years, when software development engineers do not directly manage addresses and require interrupts to be made by specific instructions, such as with relocatable assemblers or compilers, It is necessary to investigate the inside of the software in detail in advance, which has the disadvantage of reducing the efficiency of software development.

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

本発明のマイクロプロセッサは、割込みの対象となる所
定の命令語を記憶する手段と、蒋記記憶する手段の内容
と、外部からフェッチされた命令語とを比較して1両者
が一致する場合に所定の割込みを発生する手段と、を備
えて構成される。
The microprocessor of the present invention compares the contents of the means for storing a predetermined instruction word to be an interrupt target, the contents of the means for storing the instruction word, and the instruction word fetched from the outside, and if the two match, and means for generating a predetermined interrupt.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。第1図
は、本発明の第1の実施例のブロック図である。第1図
に示されるように、本実施例は、実行ユニット1と、外
部に対するバスサイクルの制御を行う外部バス制御ユニ
ット2と、ブリフェッチ・キュー3と、割込み発生の命
令を記憶するトラップ命令レジスタ4と、割込み発生回
路5と、を備えて#I成される。
Next, the present invention will be explained with reference to the drawings. FIG. 1 is a block diagram of a first embodiment of the invention. As shown in FIG. 1, this embodiment includes an execution unit 1, an external bus control unit 2 that controls bus cycles to the outside, a briffetch queue 3, and a trap instruction register that stores interrupt generation instructions. 4 and an interrupt generation circuit 5.

第1図において、トラップ命令レジスタ4には、予め所
定の剖込みを発生させる命令が設定される。また、外部
バス制御ユニット2により、所定の命令が1リフイツチ
・キュー3に読込まれる。
In FIG. 1, a trap instruction register 4 is set in advance with an instruction for generating a predetermined trap. Further, the external bus control unit 2 reads a predetermined instruction into the one-reswitch queue 3.

実行ユニットlにおいてアリツイツチ・キュー3より前
記命令を読込む際には、同時に、割込み発生回路5にも
当該命令が転送される。割込み発生回路5は多ビ・ソト
のコンパレータを含んでmcされており、上記の転送さ
れてくる命令と、トラ、γプ命令レジスタ4に予め設定
されているビット列の比較が行われる。これら両者が一
致する場合には、割込み信号が生成されて実行ユニ・ソ
トlに送られ、実行ユニ・ソトYに対する割込み要求が
実行される。
When the execution unit 1 reads the instruction from the switch queue 3, the instruction is also transferred to the interrupt generation circuit 5 at the same time. The interrupt generation circuit 5 includes a multi-bit/soto comparator and compares the above-mentioned transferred instruction with a bit string preset in the trap/γ-p instruction register 4. If both of them match, an interrupt signal is generated and sent to the execution unit Y, and an interrupt request to the execution unit Y is executed.

従って、実行ユニット■を介して転送されてくる命令が
、トラップ命令レジスタ4に予め設定されている命令内
容と一致しない場合には、実行ユニットlに対する割込
み要求は行われない。
Therefore, if the instruction transferred via the execution unit (2) does not match the instruction content preset in the trap instruction register 4, no interrupt request is made to the execution unit (1).

次に、本発明の第2の実施例について説明する。第2図
は、第2の実施例のブロック図である。第2図に示され
るように。本実施例は、実行ユニット6と、外部バス制
御ユニット7と、ブリフェッチ・キュー8と、トラップ
命令レジスタ9と、割込み発生回路10と、割込みタイ
プ・レジスタUと、を備えて構成される。
Next, a second embodiment of the present invention will be described. FIG. 2 is a block diagram of the second embodiment. As shown in FIG. This embodiment includes an execution unit 6, an external bus control unit 7, a brieffetch queue 8, a trap instruction register 9, an interrupt generation circuit 10, and an interrupt type register U.

本実施例おいては1個々のトラップ命令レジスタ9に対
して、それぞれ対応する割込みタイプ・レジスタllが
個別に設けられている。トラップ命令レジスタ9には、
予め割込みを発生させる命令が設定され、また、割込み
タイプ・レジスタ11には、予め割込みベクタが設定さ
れる。
In this embodiment, for each trap instruction register 9, a corresponding interrupt type register 11 is provided. In the trap instruction register 9,
An instruction for generating an interrupt is set in advance, and an interrupt vector is set in the interrupt type register 11 in advance.

外部バス制御ユニット7により、所定の命令がブリツイ
ツチ・キュー8に読込まれると、多ビットのコンパレー
タにより構成されている割込み発生回路10においては
、ブリツイツチ・キュー8の内容とトラップ命令レジス
タ9の内容が比較され、両者が一致する場合には、実行
ユニット6に対する割込み要求が発生される。勿論、一
致しない場合には、割込み要求は出されない、また、こ
の時点において、割込みベクタ・タイプにより、割込み
タイプ・レジスタ11に設定されている値が読出される
When a predetermined instruction is read into the blink queue 8 by the external bus control unit 7, the interrupt generation circuit 10, which is composed of a multi-bit comparator, compares the contents of the blink queue 8 and the contents of the trap instruction register 9. are compared, and if they match, an interrupt request to the execution unit 6 is generated. Of course, if there is no match, no interrupt request is issued, and at this point, the value set in the interrupt type register 11 is read depending on the interrupt vector type.

なお、本実施例においては、トラップを発生する命令ご
とに、割込み処理を変更することが可能である。
Note that in this embodiment, it is possible to change the interrupt processing for each instruction that generates a trap.

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

以上、詳細に説明したように、本発明は、ソフトウェア
の開発に当り、特定の命令コードを実行することにより
所要の割込みを発生させることができるため、上記ソフ
トウェア開発のために要するコンピュータによる支援作
業の効率化を図ることができるという効果がある。
As described above in detail, the present invention enables the generation of a required interrupt by executing a specific instruction code during software development, so that the computer support work required for the software development is This has the effect of increasing efficiency.

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

第1図および第2図は、それぞれ本発明の第1および第
2の実施例のブロック図である。 図において、1.6−・・・・・実行ユニット、2,7
99.・・・外部バス制御ユニット、3,8−・・・・
・ブリフェッチ・キュー、4.9・・・・・・トラップ
命令レジスタ、5.10−・・・・・割込み発生回路、
11・・・・・・割込みタイプ・レジスタ。
1 and 2 are block diagrams of first and second embodiments of the present invention, respectively. In the figure, 1.6--execution unit, 2,7
99. ...External bus control unit, 3,8-...
・Briefetch queue, 4.9...Trap instruction register, 5.10-...Interrupt generation circuit,
11... Interrupt type register.

Claims (1)

【特許請求の範囲】 割込みの対象となる所定の命令語を記憶する手段と、 前記記憶する手段の内容と、外部からフェッチされた命
令語とを比較して、両者が一致する場合に所定の割込み
を発生する手段と、を備えることを特徴とするマイクロ
プロセッサ。
[Claims] A means for storing a predetermined instruction word to be interrupted; and a means for comparing the contents of the storing means with an instruction word fetched from the outside, and if the two match, a predetermined instruction word is stored. A microprocessor comprising means for generating an interrupt.
JP2057047A 1990-03-07 1990-03-07 Microprocessor Pending JPH03257544A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2057047A JPH03257544A (en) 1990-03-07 1990-03-07 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2057047A JPH03257544A (en) 1990-03-07 1990-03-07 Microprocessor

Publications (1)

Publication Number Publication Date
JPH03257544A true JPH03257544A (en) 1991-11-18

Family

ID=13044538

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2057047A Pending JPH03257544A (en) 1990-03-07 1990-03-07 Microprocessor

Country Status (1)

Country Link
JP (1) JPH03257544A (en)

Similar Documents

Publication Publication Date Title
JP2004501407A (en) Secure software SMI dispatching using caller addresses
US5659760A (en) Microprocessor having interrupt vector generation unit and vector fetching command unit to initiate interrupt processing prior to returning interrupt acknowledge information
JPH0810437B2 (en) Guest execution control method for virtual machine system
EP0240606B1 (en) Pipe-line processing system and microprocessor using the system
JPH03257544A (en) Microprocessor
EP1177499B1 (en) Processor and method of executing instructions from several instruction sources
JPH0377137A (en) Information processor
JPH0259829A (en) Microcomputer
JPH01240941A (en) Information processor
JP3414579B2 (en) Programmable controller
JPH036758A (en) microprocessor
JP2513846B2 (en) Vector instruction generation method
JPH0380355A (en) Computer with dma transfer mechanism
JPS63163543A (en) Information processor
JPH03175539A (en) Debugging microprocessor
JPH02103643A (en) Interruption generation circuit for debug
JPH0340075A (en) Microcomputer
JPS5955546A (en) Firmware processor
JPH0219495B2 (en)
JPS61100836A (en) System for processing comparison and instruction of moving instruction logic
JPH02118729A (en) Information processor
JPH04130930A (en) Emulation cpu
JPH01193943A (en) Micro computer
JPS5933542A (en) Display device
JPS6115235A (en) Central processor