JPH05101203A - Microprocessor - Google Patents
MicroprocessorInfo
- Publication number
- JPH05101203A JPH05101203A JP3259962A JP25996291A JPH05101203A JP H05101203 A JPH05101203 A JP H05101203A JP 3259962 A JP3259962 A JP 3259962A JP 25996291 A JP25996291 A JP 25996291A JP H05101203 A JPH05101203 A JP H05101203A
- Authority
- JP
- Japan
- Prior art keywords
- address
- built
- signal
- access
- registers
- 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
- 230000002093 peripheral effect Effects 0.000 claims abstract description 11
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims description 7
- 230000005764 inhibitory process Effects 0.000 abstract 2
- 238000010586 diagram Methods 0.000 description 8
- 230000007257 malfunction Effects 0.000 description 1
Landscapes
- Microcomputers (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はマイクロ・プロセッサに
関し、特にチップ内部にペリフェラル(以下I/Oとい
う)を有し、このI/Oをアクセスするためのデコーダを
内部に有するマイクロ・プロセッサのアーキテクチャに
関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor, and more particularly to a microprocessor architecture having a peripheral (hereinafter referred to as I / O) in a chip and a decoder for accessing this I / O. Regarding
【0002】[0002]
【従来の技術】従来、この種のマイクロ・プロセッサで
は図3に示すようにチップ内部に作り込まれた内蔵I/O
14a,14bをアクセスする場合に、予め内蔵I/O選
択アドレス・レジスタ10a,10bに内蔵I/O14
a,14bをアクセスするアドレスを図4の状態図に示
すように記憶させ、中央演算装置1からアドレス比較制
御信号4を受けるとこのアドレスとアドレス・バス2か
ら出力するアドレスが一致した場合に比較回路5a,5
bから内蔵I/Oアクセス信号20を出力してI/O14a,
14bのアクセスを実行する。2. Description of the Related Art Conventionally, in this type of microprocessor, a built-in I / O built in a chip as shown in FIG.
When accessing 14a, 14b, the built-in I / O selection address registers 10a, 10b have built-in I / O 14 in advance.
Addresses for accessing a and 14b are stored as shown in the state diagram of FIG. 4, and when the address comparison control signal 4 is received from the central processing unit 1, this address is compared with the address output from the address bus 2 when they match. Circuits 5a, 5
b to output the built-in I / O access signal 20 to output the I / O 14a,
14b is executed.
【0003】[0003]
【発明が解決しようとする課題】ところが、上述の従来
のマイクロ・プロセッサにおいては、予め定義しておく
I/Oアドレスを記憶するアドレス・レジスタへの書き込
みが自由に行なえるため、例えば汎用オペレーテイング
・システム上の実行プログラムでの不注意で誤った書き
換えが実行されてしまうことがあった。このため、不在
のI/Oアドレスに対してアクセスを行ない、システムと
して期待の動作が実行できなくなるという問題があっ
た。However, in the above-described conventional microprocessor, it is defined in advance.
Since writing to the address register that stores the I / O address can be performed freely, for example, there is a case where an erroneous rewriting is inadvertently executed by an execution program on a general-purpose operating system. For this reason, there is a problem that an expected operation cannot be performed as a system by accessing an absent I / O address.
【0004】本発明の目的は、内蔵I/Oアクセス用アド
レス保持レジスタの誤書き込みのリカバリーを可能とす
るマイクロ・プロセッサを提供することにある。It is an object of the present invention to provide a microprocessor capable of recovering an erroneous write in an internal I / O access address holding register.
【0005】[0005]
【課題を解決するための手段】本発明のマイクロ・プロ
セッサは、内蔵ペリフェラル・アクセス信号を出力する
ためのアドレス信号を保持するアドレス・レジスタと、
中央演算装置から制御信号を入力して前記アドレス・レ
ジスタの出力するアドレス信号と内蔵ペリフェラルをア
クセスする際にアドレス・バスから出力されるアドレス
信号とを比較して一致している場合に前記内蔵ペリフェ
ラル・アクセス信号を出力する比較器と、前記アドレス
・レジスタの書き換えのための禁止フラグと、該禁止フ
ラグが禁止状態になっているときに前記内蔵ペリフェラ
ルのアクセスを実行した場合に割り込み要求信号を発生
する割り込み信号発生回路とを有して構成されている。A microprocessor of the present invention comprises an address register for holding an address signal for outputting an internal peripheral access signal,
When the control signal is input from the central processing unit and the address signal output from the address register is compared with the address signal output from the address bus when the internal peripheral is accessed, the internal peripheral is compared with the internal peripheral. -A comparator that outputs an access signal, a prohibition flag for rewriting the address register, and an interrupt request signal when the internal peripheral is accessed while the prohibition flag is in the prohibition state And an interrupt signal generation circuit for
【0006】[0006]
【実施例】次に本発明について図を参照して説明する。
図1は本発明の第1の実施例のブロック図である。本実
施例のマイクロ・プロセッサでは、内蔵I/O14a,1
4bをアクセスするための内蔵I/O選択アドレス・レジ
スタ10a,10bと、アドレス比較制御信号4を入力
してI/Oアクセスの際にアドレス・バス2から出力され
るアドレスとレジスタ10a,10bの出力信号とを比
較して一致している場合に内蔵I/Oアクセス信号20を
出力する比較器5a,5bと、レジスタ10a,10b
の書き換えのための禁止フラグ9a,9bと、このフラ
グ9a,9bが禁止となっているときに、内蔵I/Oアク
セスを実行した場合に割り込み要求信号12を発生する
割り込み信号発生回路16とを有している。The present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram of the first embodiment of the present invention. In the microprocessor of this embodiment, the built-in I / O 14a, 1
4b for accessing the built-in I / O selection address registers 10a, 10b and the address output from the address bus 2 at the time of I / O access by inputting the address comparison control signal 4 and the registers 10a, 10b. Comparators 5a and 5b that output the built-in I / O access signal 20 when the output signals are compared with each other, and registers 10a and 10b
And the interrupt signal generation circuit 16 for generating the interrupt request signal 12 when the internal I / O access is executed when the flags 9a and 9b are prohibited. Have
【0007】本実施例のマイクロ・プロセッサは中央演
算装置1と、20ビットのアドレスバス2と、8ビット
のデータ・バス13と、2つの内蔵I/O14a,14b
とを有する。アドレス・バスの下位8ビット・アドレス
のデコード用アドレス3はライト信号デコーダ7へ入力
される。中央演算装置1から出力されるアドレス比較制
御信号4によって比較器5a,5bは、内蔵I/O選択ア
ドレス・レジスタ10a,10bの内容と命令実行中に
出力されるI/Oアドレスとを比較し、一致していればこ
のアドレスに相当する内蔵I/O14a,14bにアクセ
ス信号20を出力する。内蔵I/O14a,14bをアク
セスするためのアドレス保持レジスタ共通ライト信号6
は、ライト信号デコーダ7によってレジスタ・ライト信
号8a,8bに変換され、書き込み禁止フラグ9a、9
b,フラグ出力11a、11bが割込み信号発生回路1
6に入力され、このフラグ9a,9bが設定されている
場合にアドレス・レジスタ10a、10bへの書き込み
が実行された場合、割り込み要求信号12がイネーブル
となり、中央演算装置1に割り込みが発生する。The microprocessor of this embodiment comprises a central processing unit 1, a 20-bit address bus 2, an 8-bit data bus 13 and two built-in I / Os 14a and 14b.
Have and. The decoding address 3 of the lower 8-bit address of the address bus is input to the write signal decoder 7. The address comparison control signal 4 output from the central processing unit 1 causes the comparators 5a and 5b to compare the contents of the built-in I / O selection address registers 10a and 10b with the I / O address output during instruction execution. If they match, the access signal 20 is output to the built-in I / Os 14a and 14b corresponding to this address. Address holding register common write signal 6 for accessing the built-in I / Os 14a and 14b
Are converted into register write signals 8a and 8b by the write signal decoder 7, and write inhibit flags 9a and 9b.
b and flag outputs 11a and 11b are interrupt signal generation circuits 1
If the address registers 10a and 10b are written to the address registers 10a and 10b when the flags 9a and 9b are set, the interrupt request signal 12 is enabled and the central processing unit 1 is interrupted.
【0008】本実施例では、このフラグ9a,9bは本
システムへの外部リセット信号15によってクリアさ
れ、つぎに実行されるアドレス・レジスタ10a、10
bへの書き込みでのみセットされる。これは一般的なR
/Sフリップ・フロップで構成できる。本実施例では誤
ったI/Oアクセスを行なってしまった場合に、その要因
を発生した割り込みハンドラ内で判断できる。In this embodiment, the flags 9a and 9b are cleared by an external reset signal 15 to the system, and the address registers 10a and 10 to be executed next are executed.
Only set by writing to b. This is a general R
/ S flip-flop. In the present embodiment, when an incorrect I / O access is made, the cause can be determined in the interrupt handler that generated it.
【0009】図2に本発明の第2の実施例のブロック図
を示す。フラグ・リセット信号生成回路18は、特定の
割り込みハンドラ・ルーチン中のフラグアクセス信号1
7と、外部リセット信号15とを入力して特定の割り込
みハンドラ・ルーチン中のフラグへのアクセス信号によ
ってフラグ・リセット信号19を生成する。FIG. 2 shows a block diagram of the second embodiment of the present invention. The flag reset signal generation circuit 18 uses the flag access signal 1 in a specific interrupt handler routine.
7 and an external reset signal 15 are input to generate a flag reset signal 19 by a flag access signal in a specific interrupt handler routine.
【0010】本実施例では、禁止フラグ9a,9bのリ
セットを外部リセット信号に加えて、特定の割り込みハ
ンドラ・ルーチン中のフラグへのアクセスとする。この
特定の割り込みハンドラ・ルーチン中のフラグへのアク
セス信号は、割り込みベクタの保持とI/Oアクセス信号
で他のI/O信号と識別できる。In this embodiment, the reset of the prohibition flags 9a and 9b is added to the external reset signal to access the flag in a specific interrupt handler routine. The access signal to the flag in this particular interrupt handler routine can be distinguished from other I / O signals by holding the interrupt vector and the I / O access signal.
【0011】[0011]
【発明の効果】以上のように本発明のマイクロ・プロセ
ッサは、誤ったI/Oアクセスを行なってしまった場合、
その要因を発生した割り込みハンドラ内で判断でき、か
つその修正を行なう事が可能となり、システムの暴走/
誤動作等を防ぐことが可能となる。As described above, in the microprocessor of the present invention, when an incorrect I / O access is made,
It is possible to determine the cause in the interrupt handler that generated it, and to correct it.
It is possible to prevent malfunctions and the like.
【図1】本発明の第1の実施例のブロック図である。FIG. 1 is a block diagram of a first embodiment of the present invention.
【図2】本発明の第2の実施例のブロック図である。FIG. 2 is a block diagram of a second embodiment of the present invention.
【図3】従来のマイクロ・プロセッサの一例のブロック
図である。FIG. 3 is a block diagram of an example of a conventional microprocessor.
【図4】図3のブロックの動作を説明するために示すレ
ジスタの状態図である。FIG. 4 is a state diagram of a register shown to explain the operation of the block of FIG.
【図5】(a)〜(e)はそれぞれ図3のブロックの動
作を説明するために示すレジスタの状態図である。5A to 5E are state diagrams of registers shown for explaining the operation of the block of FIG. 3 respectively.
1 中央演算装置 2 アドレス・バス 3 デコード用アドレス 4 アドレス比較制御信号 5a,5b 比較器 6 アドレス保持レジスタ 7 ライト信号デコーダ 8 レジスタ・ライト信号 9a,9b 書き込み禁止フラグ 10a,10b 内蔵I/O選択アドレス・レジスタ 11a,11b フラグ出力信号 12 割り込み要求信号 13 データ・バス 14a,14b 内蔵I/O 15 外部リセット信号 16 割り込み信号発生回路 17 フラグアクセス信号 18 フラグ・リセット信号生成回路 19 フラグ・リセット信号 20 内蔵I/Oアクセス信号 1 central processing unit 2 address bus 3 decoding address 4 address comparison control signal 5a, 5b comparator 6 address holding register 7 write signal decoder 8 register write signal 9a, 9b write inhibit flag 10a, 10b built-in I / O selection address・ Registers 11a, 11b Flag output signal 12 Interrupt request signal 13 Data bus 14a, 14b Built-in I / O 15 External reset signal 16 Interrupt signal generation circuit 17 Flag access signal 18 Flag reset signal generation circuit 19 Flag reset signal 20 Built-in I / O access signal
Claims (1)
するためのアドレス信号を保持するアドレス・レジスタ
と、中央演算装置から制御信号を入力して前記アドレス
・レジスタの出力するアドレス信号と内蔵ペリフェラル
をアクセスする際にアドレス・バスから出力されるアド
レス信号とを比較して一致している場合に前記内蔵ペリ
フェラル・アクセス信号を出力する比較器と、前記アド
レス・レジスタの書き換えのための禁止フラグと、該禁
止フラグが禁止状態になっているときに前記内蔵ペリフ
ェラルのアクセスを実行した場合に割り込み要求信号を
発生する割り込み信号発生回路とを有することを特徴と
するマイクロ・プロセッサ。1. An address register for holding an address signal for outputting a built-in peripheral access signal, and a control signal input from a central processing unit to access the address signal output from the address register and the built-in peripheral. At this time, the comparator outputs the built-in peripheral access signal when the address signals output from the address bus are compared with each other, a prohibit flag for rewriting the address register, and the prohibit flag. A microprocessor, comprising: an interrupt signal generation circuit that generates an interrupt request signal when the access to the built-in peripheral is executed while the flag is in a disabled state.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3259962A JPH05101203A (en) | 1991-10-08 | 1991-10-08 | Microprocessor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3259962A JPH05101203A (en) | 1991-10-08 | 1991-10-08 | Microprocessor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05101203A true JPH05101203A (en) | 1993-04-23 |
Family
ID=17341347
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3259962A Pending JPH05101203A (en) | 1991-10-08 | 1991-10-08 | Microprocessor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05101203A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6938107B2 (en) | 2002-04-26 | 2005-08-30 | Renesas Technology Corp. | Microprocessor preventing erroneous writing to control register |
-
1991
- 1991-10-08 JP JP3259962A patent/JPH05101203A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6938107B2 (en) | 2002-04-26 | 2005-08-30 | Renesas Technology Corp. | Microprocessor preventing erroneous writing to control register |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5680581A (en) | Microcomputer having a read protection circuit to secure the contents of an internal memory | |
| US5717851A (en) | Breakpoint detection circuit in a data processor and method therefor | |
| JPH0877075A (en) | Information processor | |
| JPS58197553A (en) | Program monitor | |
| JPS5938677B2 (en) | Control word transfer control device | |
| JPH05101203A (en) | Microprocessor | |
| JPH08235073A (en) | Microcomputer | |
| JPH0337897A (en) | Microcomputer | |
| JPS61500992A (en) | Improvements in or relating to computer systems | |
| US20020112145A1 (en) | Method and apparatus for providing software compatibility in a processor architecture | |
| JPS6074059A (en) | Access control system for storage device | |
| JP3616588B2 (en) | Micro program check system | |
| JPH03149621A (en) | Microprocessor | |
| JPS5814000B2 (en) | register set circuit | |
| JP2531112B2 (en) | Information processing device | |
| JP2847729B2 (en) | Information processing device | |
| JPH0344751A (en) | Memory protection system | |
| JPH0520205A (en) | Detecting circuit for memory error address | |
| JPS6146857B2 (en) | ||
| JP2005292899A (en) | Microprocessor | |
| JPS62248043A (en) | Memory switching circuit for fetching microcomputer instruction | |
| JP2003044458A (en) | Microcomputer | |
| JPH0424836A (en) | Microprocessor | |
| JPH09319616A (en) | Breaking method and break circuit of microcomputer for emulation | |
| JPS6284353A (en) | Memory reading system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20000118 |