JPH03185527A - Microprocessor - Google Patents
MicroprocessorInfo
- Publication number
- JPH03185527A JPH03185527A JP1325099A JP32509989A JPH03185527A JP H03185527 A JPH03185527 A JP H03185527A JP 1325099 A JP1325099 A JP 1325099A JP 32509989 A JP32509989 A JP 32509989A JP H03185527 A JPH03185527 A JP H03185527A
- Authority
- JP
- Japan
- Prior art keywords
- register
- external bus
- microprocessor
- address
- bus master
- 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
Links
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000012905 input function Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はマイクロ・プロセッサに関し、特に複数のバス
マスタ構成時のメモリ内容の書き換えを行なうマイクロ
・プロセッサに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprocessor, and more particularly to a microprocessor that rewrites memory contents when configured as a plurality of bus masters.
従来、この種のマイクロ・プロセッサは、外部バスマス
タ、すなわちメモリやIloに対してアクセスできるプ
ロセッサでDMAコントローラ等を用いる場合、外部バ
スマスタによるメモリへの書き込みから生じるメモリ内
容の変化を認識できない構造になっている。Conventionally, when this type of microprocessor uses an external bus master, that is, a processor that can access memory or Ilo, and uses a DMA controller, etc., it has a structure that makes it impossible to recognize changes in memory contents caused by writing to memory by the external bus master. ing.
上述した従来のマイクロ・プロセッサは、外部バス・マ
スクによりメモリ内容を書き換えられても、それを認識
する手段がない。従って、スタック領域などを書き換え
られた場合、プログラム暴走の可能性があるという欠点
がある。The above-mentioned conventional microprocessor has no means to recognize even if the memory contents are rewritten using an external bus mask. Therefore, there is a drawback that if the stack area or the like is rewritten, there is a possibility that the program will run out of control.
また、このためプログラマはマイクロ・プロセッサを含
く複数のバスマスタ間で相互の動作領域を制御しなけれ
ばならず、ソフトウェア設計者の負担が大きいという欠
点がある。Furthermore, this requires the programmer to control mutual operation areas among a plurality of bus masters including microprocessors, which has the drawback of placing a heavy burden on the software designer.
本発明の目的は、かかるメモリの特定領域の内容を変更
した際のプログラムの暴走を防ぐとともに、ソフトウェ
ア設計の負担を軽減することできるマイクロ・プロセッ
サを提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a microprocessor that can prevent a program from running out of control when the contents of a specific memory area are changed, and can reduce the burden of software design.
本発明のマイクロ・プロセッサは、外部記憶装置の特定
アドレス情報を格納するレジスタと、前記レジスタおよ
びアドレスバスに接続され各種の制御を行なうプロセッ
サ部と、前記アドレスバスから入力した任意のアドレス
情報および前記レジスタに格納されている情報を比較し
且つ一致しているときにメモリライト信号の制御に基づ
き割り込み要求信号を前記プロセッサ部に対して送出す
る比較回路とを有して構成される。The microprocessor of the present invention includes a register that stores specific address information of an external storage device, a processor unit that is connected to the register and the address bus and performs various controls, and any address information input from the address bus and the and a comparison circuit that compares information stored in the registers and, when they match, sends an interrupt request signal to the processor section based on control of a memory write signal.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の第一の実施例を示すマイクロ・プロセ
ッサのブロック図である。FIG. 1 is a block diagram of a microprocessor showing a first embodiment of the present invention.
第1図に示すように、本実施例は従来のマイクロ・プロ
セッサに担当するマイクロ・プロセッサ部lと、外部記
憶装置(図示省略〉やマイクロプロセッサ部1に接続さ
れたアドレスバス2と、外部記憶装置の特定アドレス情
報を格納するレジスタ3と、アドレスバス2から入力し
た任意のアドレス情報およびレジスタ3に格納されてい
る情報を比較する比較回路4と外部バスマスタ(図示省
略〉から送出されるメモリライト信号およびマイクロ・
プロセッサ部1からのバス使用許可信号のアンドをとる
アンド回路7とを有している。As shown in FIG. 1, this embodiment includes a microprocessor section 1 that is in charge of a conventional microprocessor, an external storage device (not shown), an address bus 2 connected to the microprocessor section 1, and an external storage device (not shown). A register 3 that stores specific address information of the device, a comparison circuit 4 that compares arbitrary address information input from the address bus 2 and information stored in the register 3, and a memory write sent from an external bus master (not shown). signal and micro
It has an AND circuit 7 that ANDs the bus use permission signal from the processor section 1.
かかるマイクロ・プロセッサにおいて、マイクロ・プロ
セッサ部よりアドレスを出力するアドレスバス2は外部
バスマスタからの入力機能も有しており、外部バスマス
タよりの入力は比較回路4に転送される。この比較回路
4には、特定のアドレス情報を記憶するレジスタ3の値
も入力されており、外部バスマスタによるメモリライト
信号5とマイクロ・プロセッサ部1から外部バスマスタ
に対するバス使用許可信号6の両者がアクティブになっ
た時のみ動作するようになっている。この外部バスマス
タによるアドレスとレジスタ3の値とが一致した場合、
比較回路4の出力としてマイクロ・プロセッサ部1へ割
込信号8が出力される。すなわち、本実施例においては
、外部バスマスタがメモリに対し書き込みを行う際にそ
のアドレスと予めレジスタ3に設定しておいた値を比較
することにより、割込信号8を発生する。従って、プロ
グラムの暴走も起ることなく、しかも外部バスマスタ間
で相互の動作領域を制御することもないので、ソフトウ
ェア設計の負担も少なくて済む。In such a microprocessor, an address bus 2 for outputting addresses from the microprocessor section also has an input function from an external bus master, and inputs from the external bus master are transferred to a comparator circuit 4. The value of the register 3 that stores specific address information is also input to this comparison circuit 4, and both the memory write signal 5 from the external bus master and the bus use permission signal 6 from the microprocessor section 1 to the external bus master are active. It is designed to work only when If the address by this external bus master and the value of register 3 match,
An interrupt signal 8 is outputted to the microprocessor section 1 as an output of the comparison circuit 4. That is, in this embodiment, when the external bus master writes to the memory, the interrupt signal 8 is generated by comparing the address with a value set in the register 3 in advance. Therefore, program runaway does not occur, and since the external bus masters do not control each other's operating areas, the burden of software design can be reduced.
第2図は本発明の第二の実施例を示すマイクロ・プロセ
ッサのブロック図である。FIG. 2 is a block diagram of a microprocessor showing a second embodiment of the invention.
第2図に示すように、本実施例は外部バスマスタがメモ
リに書み込みを行う際、メモリライト信号5がアクティ
ブとなり、予め設定しておいた一つ以上のレジスタ9の
値とアドレスバス2からアドレス値とし比較回路4で比
較し、一致するものが一つでもある場合は、割り込み信
号を発生させ、割り込みタイプとしてレジスタ10に予
じめ設定しておいた割り込みタイプの割り込みを発生さ
せるものである。As shown in FIG. 2, in this embodiment, when the external bus master writes to the memory, the memory write signal 5 becomes active, and the value of one or more registers 9 set in advance and the address bus 2 are activated. The address value is compared by the comparison circuit 4, and if there is even one match, an interrupt signal is generated, and an interrupt of the interrupt type set in advance in the register 10 is generated. It is.
本実施例によれば、各レジスタに割り込みタイプをもつ
ため、書き込みアドレスに応じて割り込み処理を換える
ことができるという利点がある。According to this embodiment, since each register has an interrupt type, there is an advantage that interrupt processing can be changed depending on the write address.
以上説明したように、本発明のマイクロ・プロセッサは
、外部バスマスタからソフトウェアによって自由に設定
できるメモリの特定領域の内容を変更した際に割込みを
生じることにより、わずかなハードウェアの追加でプロ
グラムの暴走を防ぐことができ、しかも、ソフトウェハ
設計者の負担を軽減することができるという効果がある
。As explained above, the microprocessor of the present invention generates an interrupt when the contents of a specific area of memory that can be freely set by software from an external bus master is changed, thereby preventing program runaway with the addition of a small amount of hardware. This has the effect of being able to prevent this and, moreover, reducing the burden on the software designer.
第1図は本発明の第一の実施例を示すマイクロ・プロセ
ッサのブロック図、第2図は本発明の第二の実施例を示
すマイクロ・プロセッサのブロック図である。
1・・・マイクロプロセッサ部、2・・・アドレスバス
、3・・・レジスタ、4・・・比較回路、5・・・メモ
リライト信号、6・・・バス使用許可信号、7・・・ア
ンド回路、
8・・・割込信号、
9・・・レジスタ
(アドレス
部)
O・・・レジスタ
(割込タイプ部〉FIG. 1 is a block diagram of a microprocessor showing a first embodiment of the invention, and FIG. 2 is a block diagram of a microprocessor showing a second embodiment of the invention. DESCRIPTION OF SYMBOLS 1... Microprocessor section, 2... Address bus, 3... Register, 4... Comparison circuit, 5... Memory write signal, 6... Bus use permission signal, 7... AND Circuit, 8...Interrupt signal, 9...Register (address part) O...Register (interrupt type part)
Claims (1)
、前記レジスタおよびアドレスバスに接続され各種の制
御を行なうプロセッサ部と、前記アドレスバスから入力
した任意のアドレス情報および前記レジスタに格納され
ている情報を比較し且つ一致しているときにメモリライ
ト信号の制御に基づき割り込み要求信号を前記プロセッ
サ部に対して送出する比較回路とを有することを特徴と
するマイクロ・プロセッサ。A register that stores specific address information of an external storage device, a processor unit that is connected to the register and the address bus and performs various controls, and a processor that stores arbitrary address information input from the address bus and information stored in the register. A microprocessor comprising: a comparison circuit that compares and sends an interrupt request signal to the processor section based on control of a memory write signal when they match.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1325099A JPH03185527A (en) | 1989-12-14 | 1989-12-14 | Microprocessor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1325099A JPH03185527A (en) | 1989-12-14 | 1989-12-14 | Microprocessor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03185527A true JPH03185527A (en) | 1991-08-13 |
Family
ID=18173127
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1325099A Pending JPH03185527A (en) | 1989-12-14 | 1989-12-14 | Microprocessor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03185527A (en) |
-
1989
- 1989-12-14 JP JP1325099A patent/JPH03185527A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100344132B1 (en) | A device for a computer memory interface, a portable mobile computer and a method for fetching program instructions and performing a data write / read request on the computer | |
| EP0443557B1 (en) | Interrupt controller capable of realizing interrupt nesting function | |
| JPH03185527A (en) | Microprocessor | |
| JP2797760B2 (en) | Parallel processing computer system | |
| US5561818A (en) | Microprocessor and data processing system for data transfer using a register file | |
| JP3205992B2 (en) | Direct memory access transfer controller | |
| JP3206013B2 (en) | Direct memory access transfer controller | |
| JPH01201751A (en) | Memory protecting device | |
| JPS63184848A (en) | Microprocessor | |
| JP2869658B2 (en) | Logical operation method | |
| JPH03113548A (en) | Extension memory controller | |
| JPH0333934A (en) | Register saving/recovering system | |
| JPH06231072A (en) | Microcomputer | |
| JPS6341962A (en) | Program control device | |
| EP0503390A1 (en) | Microcomputer having direct memory access mode | |
| JPH03127126A (en) | Information processor | |
| JPH039431A (en) | Interruption processing system | |
| JPH0322073A (en) | Data transfer controller | |
| JPH0782447B2 (en) | DMA data transfer control device | |
| JPS6126091B2 (en) | ||
| JPH02135554A (en) | memory access control device | |
| JPH0337750A (en) | Function device peripheral of processor | |
| Mouri et al. | The design and implementation of the lavender micro kernel | |
| JPH01287762A (en) | Shared data memory protecting method | |
| JPH03273349A (en) | Access control system |