JPH06175888A - Abnormal access detection circuit - Google Patents

Abnormal access detection circuit

Info

Publication number
JPH06175888A
JPH06175888A JP4329552A JP32955292A JPH06175888A JP H06175888 A JPH06175888 A JP H06175888A JP 4329552 A JP4329552 A JP 4329552A JP 32955292 A JP32955292 A JP 32955292A JP H06175888 A JPH06175888 A JP H06175888A
Authority
JP
Japan
Prior art keywords
address
circuit
abnormal
bus
detection circuit
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
JP4329552A
Other languages
Japanese (ja)
Inventor
Sachiyo Mochizuki
幸代 望月
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.)
Toshiba Corp
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics 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 Toshiba Corp, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP4329552A priority Critical patent/JPH06175888A/en
Publication of JPH06175888A publication Critical patent/JPH06175888A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To reduce cost by shortening a term required for developing and design a system to easily make an abnormal access detection circuit to cope with correspond to a change of an address area by detecting at the time of access abnormality to the specific address having a fear with the normal operations not guaranteed in a microcomputer system. CONSTITUTION:The system using a microcomputer is provided with an address decoder circuit 5 to input the specific address from an address bus 1 and at the same time to assert an abnormality detecting address setting signal WS when a prescribed control signal is inputted from a control bus 3, and abnormal address detecting circuit 6 set data imparted on a data bus 2 as an abnormality detecting address when the abnormality detecting address setting signal is asserted and thereafter to detect the time when the address on the address bus 1 is coincident with the abnormality detecting address.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マイクロコンピュータ
を用いたシステムに係り、特にアクセス異常時を検出し
て対処する機能を有する異常アクセス検出回路に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system using a microcomputer, and more particularly to an abnormal access detection circuit having a function of detecting and handling an abnormal access.

【0002】[0002]

【従来の技術】一般に、マイクロコンピュータを用いた
システム(以下、マイコンシステムと記す)において
は、特定アドレスへのアクセスによりプログラムの暴走
が懸念されるような場合とか、動作上不自然なアドレス
からのアクセスが発生したような場合のようなアクセス
異常時を検出して以後の動作を禁止したり例外処理を行
うようなハードウェアを設けている。
2. Description of the Related Art Generally, in a system using a microcomputer (hereinafter referred to as a microcomputer system), there is a possibility that a program may run out of control due to access to a specific address, or an address that is unnatural in operation may be used. There is provided hardware for detecting an abnormal access such as a case where an access occurs and for prohibiting subsequent operations and performing exception processing.

【0003】図12は、従来のアクセス異常検出回路を
示しており、アドレスデコーダ回路100に検出すべき
異常アドレスを設定しておき、異常アドレスのアクセス
時をアドレスデコーダ回路100により検出し、エラー
フラグを発生するように構成されている。
FIG. 12 shows a conventional access abnormality detecting circuit, in which an abnormal address to be detected is set in the address decoder circuit 100, the address decoder circuit 100 detects the access time of the abnormal address, and an error flag is detected. Is configured to generate.

【0004】しかし、このようなハードウェア的な対策
では、アドレスエリアの変更を行う場合にアドレスデコ
ーダ回路100の再設計が必要になり、場合によって
は、回路全体の設計の見直しが必要となった。
However, such a hardware measure requires redesign of the address decoder circuit 100 when the address area is changed, and in some cases, the design of the entire circuit needs to be reviewed. .

【0005】そこで、ソフトウェア的な対策として、前
記したようなアドレスをソフトウェア的に検出し、禁止
処理あるいは割込み処理を行うことが考えられるが、こ
れに伴うプログラムのステップ数が膨大なものとなる。
Therefore, as a software measure, it is conceivable to detect the above-mentioned address by software and perform prohibition processing or interrupt processing, but the number of steps of the program accompanying this is enormous.

【0006】[0006]

【発明が解決しようとする課題】上記したように従来の
マイコンシステムにおいては、正常動作が保証されなく
なるおそれがある特定アドレスに対するアクセス異常時
を検出して対処するための回路が、アドレスエリアの変
更に容易に対処できないという問題があった。
As described above, in the conventional microcomputer system, the circuit for detecting and coping with the abnormal access to a specific address, which may not guarantee the normal operation, changes the address area. There was a problem that could not be easily dealt with.

【0007】本発明は、上記問題点を解決すべくなされ
たもので、正常動作が保証されなくなるおそれがある特
定アドレスに対するアクセス異常時を検出して対処する
ための回路をアドレスエリアの変更に容易に対処させる
ことが可能になる異常アクセス検出回路を提供すること
を目的とする。
The present invention has been made to solve the above problems, and a circuit for detecting and coping with an abnormal access to a specific address, which may prevent normal operation, can be easily changed in the address area. It is an object of the present invention to provide an abnormal access detection circuit that can deal with the above.

【0008】[0008]

【課題を解決するための手段】本発明は、マイクロコン
ピュータを用いたシステムにおいて、異常検出アドレス
設定信号がアサートされた時にアドレス設定用バスある
いはデータバス上に与えられているデータを異常検出ア
ドレスとして設定するレジスタ回路と、アドレスバス上
のアドレスが上記レジスタ回路に設定されている異常検
出アドレスと一致したか否かを比較し、一致判定時にエ
ラーフラグを発生する比較検出回路とを具備することを
特徴とする。
According to the present invention, in a system using a microcomputer, data provided on an address setting bus or a data bus when an abnormality detection address setting signal is asserted is used as an abnormality detection address. A register circuit to be set and a comparison detection circuit for comparing whether or not an address on the address bus matches an abnormality detection address set in the register circuit and generating an error flag at the time of matching judgment are provided. Characterize.

【0009】[0009]

【作用】アドレス設定用バスあるいはデータバスを介し
て異常検出アドレス設定用のレジスタ回路に検出アドレ
スを設定することにより、正常動作が保証されなくなる
おそれがある特定アドレスに対するアクセス異常時を検
出し、その検出出力を用いて以後の動作を禁止したり例
外処理を行うように対処することが可能になる。これに
より、検出すべきアドレスエリアの変更を行う場合に、
アドレスデコーダ回路などの再設計が不要になり、マイ
コンシステムの変更設計が容易になる。
By setting the detection address in the register circuit for setting the abnormality detection address via the address setting bus or the data bus, it is possible to detect an abnormal access to a specific address that may not guarantee normal operation. By using the detection output, it becomes possible to take measures such as prohibiting the subsequent operation or performing exception processing. As a result, when changing the address area to be detected,
Redesign of the address decoder circuit etc. is not required, and the change design of the microcomputer system becomes easy.

【0010】[0010]

【実施例】以下、図面を参照して本発明の一実施例を詳
細に説明する。図1乃至図3は、本発明の一実施例に係
るマイコンシステムの一部について複数の具体例を示し
ている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. 1 to 3 show a plurality of specific examples of a part of a microcomputer system according to an embodiment of the present invention.

【0011】図1に示すマイコンシステムにおいて、1
はアドレスバス(例えば8ビット)、2はデータバス
(例えば8ビット)、3は制御信号バス、4は上記各バ
スに接続されているCPU(中央処理装置)、5はアド
レスデコーダ回路、6は異常アドレス検出回路、7はア
ドレス設定用バス、8は制御信号線である。
In the microcomputer system shown in FIG. 1, 1
Is an address bus (for example, 8 bits), 2 is a data bus (for example, 8 bits), 3 is a control signal bus, 4 is a CPU (central processing unit) connected to each bus, 5 is an address decoder circuit, and 6 is An abnormal address detection circuit, 7 is an address setting bus, and 8 is a control signal line.

【0012】上記異常アドレス検出回路6は、前記アド
レスバス1およびアドレス設定用バス7に接続されてお
り、異常検出アドレス設定信号WSがアサートされた時
に上記アドレス設定用バス7上に与えられているデータ
を異常検出アドレスとして設定するレジスタ回路と、こ
の後に前記アドレスバス2上のアドレスが上記レジスタ
回路に設定されている異常検出アドレスに一致したか否
かを比較し、一致判定時にエラーフラグEFを発生する
比較検出回路とを具備している。
The abnormal address detection circuit 6 is connected to the address bus 1 and the address setting bus 7 and is supplied to the address setting bus 7 when the abnormality detection address setting signal WS is asserted. The register circuit that sets data as an abnormality detection address is compared with whether or not the address on the address bus 2 subsequently matches the abnormality detection address set in the register circuit, and the error flag EF is set at the time of determination of a match. And a comparison and detection circuit for generating.

【0013】上記構成によれば、アドレス設定用バス7
を介して異常アドレス検出回路6の検出アドレスを設定
することにより、正常動作が保証されなくなるおそれが
ある特定アドレスに対するアクセス異常時を検出し、そ
の検出出力を用いて以後の動作を禁止したり例外処理を
行うように対処することが可能になる。これにより、ア
ドレスエリアの変更を行う場合に前記アドレスデコーダ
回路5の再設計が不要になり、マイコンシステムの変更
設計が容易になる。
According to the above configuration, the address setting bus 7
By setting the detection address of the abnormal address detection circuit 6 via the, the abnormal operation of the access to the specific address that may not guarantee the normal operation is detected, and the detection output is used to prohibit the subsequent operation or to make an exception. It becomes possible to deal with the processing. This eliminates the need to redesign the address decoder circuit 5 when changing the address area, and facilitates the change design of the microcomputer system.

【0014】なお、上記異常アドレス検出回路6を前記
CPU4と同じ半導体チップ上に設けるようにすれば、
異常アドレス検出回路を付加することに伴うコストアッ
プは殆んど無視できる。
If the abnormal address detection circuit 6 is provided on the same semiconductor chip as the CPU 4,
The cost increase due to the addition of the abnormal address detection circuit can be almost ignored.

【0015】図2に示すマイコンシステムは、図1に示
したマイコンシステムと比べて、異常検出アドレス設定
信号WSがアサートされた時に、データバス2上に与え
られているデータを異常検出アドレスとして異常アドレ
ス検出回路6に設定する点が異なり、その他は同じであ
るので図1中と同一符号を付している。
The microcomputer system shown in FIG. 2 is different from the microcomputer system shown in FIG. 1 in that when the abnormality detection address setting signal WS is asserted, the data provided on the data bus 2 is used as an abnormality detection address. The difference is that it is set in the address detection circuit 6, and the other parts are the same, so the same reference numerals as in FIG.

【0016】このマイコンシステムは、図1に示したマ
イコンシステムと比べて、基本的に同じ動作を行うが、
異常検出アドレスを設定するするためのアドレス設定用
バス(図1中の7)を必要としない。
This microcomputer system basically performs the same operation as the microcomputer system shown in FIG.
The address setting bus (7 in FIG. 1) for setting the abnormality detection address is not required.

【0017】図3に示すマイコンシステムは、図1に示
したマイコンシステムと比べて、アドレスデコーダ回路
5により異常検出アドレス設定信号WSがアサートされ
る点が異なり、その他は同じであるので図1中と同一符
号を付している。
The microcomputer system shown in FIG. 3 is different from the microcomputer system shown in FIG. 1 in that the abnormality detection address setting signal WS is asserted by the address decoder circuit 5, and the other points are the same, so that the microcomputer system in FIG. The same reference numerals are given.

【0018】即ち、上記アドレスデコーダ回路5は、前
記アドレスバス1および制御バス3に接続されており、
アドレスバス1から特定のアドレスが入力すると共に制
御バス3から所定の制御信号が入力した時に異常検出ア
ドレス設定信号WSをアサートするように構成されてい
る。
That is, the address decoder circuit 5 is connected to the address bus 1 and the control bus 3,
The abnormality detection address setting signal WS is asserted when a specific address is input from the address bus 1 and a predetermined control signal is input from the control bus 3.

【0019】上記構成によれば、アドレスバス1、デー
タバス2、制御バス3を介して異常アドレス検出回路6
の検出アドレスを変更設定することにより、正常動作が
保証されなくなるおそれがある特定アドレスに対するア
クセス異常時を検出し、その検出出力を用いて以後の動
作を禁止したり例外処理を行うように対処することが可
能になる。これにより、アドレスエリアの変更を行う場
合に前記アドレスデコーダ回路5の再設計が不要にな
り、マイコンシステムの変更設計が容易になる。
According to the above configuration, the abnormal address detection circuit 6 is provided via the address bus 1, the data bus 2 and the control bus 3.
By changing and setting the detection address of, detect the abnormal access to the specific address that may not guarantee the normal operation, and use the detection output to prohibit the subsequent operation or take exception processing. It will be possible. This eliminates the need to redesign the address decoder circuit 5 when changing the address area, and facilitates the change design of the microcomputer system.

【0020】また、プログラム中に異常アドレス検出エ
リアを設定することにより、プログラムの途中でアドレ
スエリアの変更を行うことが可能になるなど、マイコン
システムの自由度が向上する。図4乃至図11は、前記
異常アドレス検出回路6の複数の具体例を示す回路図で
ある。
Further, by setting the abnormal address detection area in the program, it is possible to change the address area in the middle of the program, and the degree of freedom of the microcomputer system is improved. 4 to 11 are circuit diagrams showing a plurality of specific examples of the abnormal address detection circuit 6.

【0021】図4に示す異常アドレス検出回路おいて、
8個のラッチ回路71〜78は、レジスタ回路を形成し
ており、前記データバス2上に与えられているアドレス
がデータ入力として与えられ、前記異常検出アドレス設
定信号WSがラッチ制御信号として入力する。これによ
り、異常検出アドレス設定信号WSがアサートされた時
に前記データバス2上に与えられているデータを異常検
出アドレスデータとしてラッチする。
In the abnormal address detection circuit shown in FIG.
The eight latch circuits 71 to 78 form a register circuit, an address given on the data bus 2 is given as a data input, and the abnormality detection address setting signal WS is inputted as a latch control signal. . Thus, when the abnormality detection address setting signal WS is asserted, the data provided on the data bus 2 is latched as the abnormality detection address data.

【0022】8個の排他的ノア回路81〜88、2個の
4入力アンド回路91および92、1個の2入力アンド
回路93は比較検出回路を形成している。上記排他的ノ
ア回路81〜88には、前記アドレスバス2上のアドレ
スおよび上記ラッチ回路71〜78のラッチ出力(異常
検出アドレスデータ)が入力する。
The eight exclusive NOR circuits 81 to 88, the two 4-input AND circuits 91 and 92, and the one 2-input AND circuit 93 form a comparison detection circuit. The addresses on the address bus 2 and the latch outputs (abnormality detection address data) of the latch circuits 71 to 78 are input to the exclusive NOR circuits 81 to 88.

【0023】一方の4入力アンド回路91には、4個分
の排他的ノア回路81〜84の出力が入力し、他方の4
入力アンド回路92には、残りの4個分の排他的ノア回
路85〜88の出力が入力する。2入力アンド回路93
には、上記2個の4入力アンド回路91および92の出
力が入力する。これにより前記アドレスバス1上のアド
レスデータが上記異常検出アドレスに一致したか否かを
比較し、一致判定時にエラーフラグEFを発生する。
The outputs of the four exclusive NOR circuits 81 to 84 are input to one of the four-input AND circuit 91 and the other four-input AND circuit 91 is input.
The outputs of the remaining four exclusive NOR circuits 85 to 88 are input to the input AND circuit 92. 2-input AND circuit 93
The outputs of the two four-input AND circuits 91 and 92 are input to. Thereby, it is compared whether or not the address data on the address bus 1 matches the abnormality detection address, and an error flag EF is generated at the time of matching judgment.

【0024】図5に示す異常アドレス検出回路は、図4
に示した異常アドレス検出回路と比べて、比較検出回路
の2入力アンド回路93を3入力アンド回路94に変更
し、その1つの入力として読み出しサイクル指定信号R
EADを与える点が異なり、その他は同じであるので図
4中と同一符号を付している。
The abnormal address detection circuit shown in FIG.
Compared to the abnormal address detection circuit shown in FIG. 2, the 2-input AND circuit 93 of the comparison detection circuit is changed to a 3-input AND circuit 94, and the read cycle designating signal R is used as one input.
Since the point that EAD is given is different and the others are the same, the same reference numerals as in FIG. 4 are given.

【0025】この異常アドレス検出回路の動作は、図4
に示した異常アドレス検出回路の動作と比べて、基本的
に同じであるが、データ読み出しサイクルにおける異常
アドレス検出時にのみエラーフラグEFが発生する点が
異なる。
The operation of this abnormal address detection circuit is shown in FIG.
The operation is basically the same as the operation of the abnormal address detection circuit shown in, except that the error flag EF is generated only when the abnormal address is detected in the data read cycle.

【0026】図6に示す異常アドレス検出回路は、図5
に示した異常アドレス検出回路と比べて、読み出しサイ
クル指定信号を書込みサイクル指定信号WRITEに変
更したものであり、図5中と同一部分には同一符号を付
している。この異常アドレス検出回路の動作は、データ
書込みサイクルにおける異常アドレス検出時にのみエラ
ーフラグEFが発生する点に特徴がある。
The abnormal address detection circuit shown in FIG.
The read cycle designating signal is changed to the write cycle designating signal WRITE as compared with the abnormal address detecting circuit shown in FIG. 5, and the same parts as those in FIG. The operation of the abnormal address detection circuit is characterized in that the error flag EF is generated only when the abnormal address is detected in the data write cycle.

【0027】図7に示す異常アドレス検出回路は、図4
に示した異常アドレス検出回路と比べて、ラッチ回路7
1a〜78aがリセット端子CLを備えており、各リセ
ット端子CLに共通にリセット信号RESETが所定の
タイミングで与えられる点が異なり、その他は同じであ
るので図4中と同一符号を付している。
The abnormal address detection circuit shown in FIG.
Compared with the abnormal address detection circuit shown in FIG.
1a to 78a are provided with a reset terminal CL, and a reset signal RESET is applied to each reset terminal CL in common at a predetermined timing. .

【0028】この異常アドレス検出回路の動作は、図4
に示した異常アドレス検出回路の動作と比べて、基本的
に同じであるが、リセット信号RESETが与えられる
ことにより、異常検出アドレスの各ビットの初期値が
“0”設定される(0番地に設定される)点に特徴があ
る。
The operation of this abnormal address detection circuit is shown in FIG.
Although the operation is basically the same as the operation of the abnormal address detection circuit shown in, the initial value of each bit of the abnormal detection address is set to "0" by the reset signal RESET (at address 0). It is characterized in that it is set).

【0029】図8に示す異常アドレス検出回路は、図7
に示した異常アドレス検出回路と比べて、ラッチ回路7
1b〜78bがプリセット端子PRを備えており、各プ
リセット端子PRに共通にリセット信号RESETが所
定のタイミングで与えられる点が異なり、その他は同じ
であるので図4中と同一符号を付している。
The abnormal address detection circuit shown in FIG.
Compared with the abnormal address detection circuit shown in FIG.
1b to 78b are provided with a preset terminal PR, the reset signal RESET is commonly given to each preset terminal PR at a predetermined timing, and the other points are the same, and therefore, the same reference numerals as those in FIG. 4 are given. .

【0030】この異常アドレス検出回路の動作は、図4
に示した異常アドレス検出回路の動作と比べて、基本的
に同じであるが、リセット信号RESETが与えられる
ことにより、異常検出アドレスの各ビットの初期値が
“1”に設定される(最大番地に設定される)点に特徴
がある。
The operation of this abnormal address detection circuit is shown in FIG.
Although the operation is basically the same as the operation of the abnormal address detection circuit shown in, the initial value of each bit of the abnormal detection address is set to "1" by the reset signal RESET (maximum address). Is set)) is characteristic.

【0031】図9に示す異常アドレス検出回路は、図4
に示した異常アドレス検出回路と比べて、リセット端子
付きのラッチ回路71a、73a、75a、77aとプ
リセット端子付きのラッチ回路72b、74b、76
b、78bとを用いており、所定のタイミングで各リセ
ット端子、プリセット端子に共通にリセット信号RES
ETが与えられる点が異なり、その他は同じであるので
図4中と同一符号を付している。
The abnormal address detection circuit shown in FIG.
Compared with the abnormal address detection circuit shown in FIG. 1, the latch circuits 71a, 73a, 75a, 77a with reset terminals and the latch circuits 72b, 74b, 76 with preset terminals are provided.
b and 78b are used, and the reset signal RES is commonly used for each reset terminal and the preset terminal at a predetermined timing.
The difference is that ET is given, and the others are the same, so the same reference numerals as in FIG. 4 are given.

【0032】この異常アドレス検出回路の動作は、リセ
ット信号およびプリセット信号が与えられることによ
り、異常検出アドレスの各ビットの初期値が特定値に設
定される(特定番地に設定される)点に特徴がある。
The operation of this abnormal address detection circuit is characterized in that the initial value of each bit of the abnormal detection address is set to a specific value (set to a specific address) by being supplied with a reset signal and a preset signal. There is.

【0033】図10に示す異常アドレス検出回路は、図
4に示した異常アドレス検出回路と比べて、例えば、図
4に示した異常アドレス検出回路において、アドレスの
下位4ビットが入力される4入力アンド回路92に対し
て、4ビット目の入力以外を“1”レベル入力に固定す
る(“1”レベルのノードに接続する)ように変更した
ものであり、図5中と同一部分には同一符号を付してい
る。
The abnormal address detection circuit shown in FIG. 10 has four inputs compared with the abnormal address detection circuit shown in FIG. 4, for example, in the abnormal address detection circuit shown in FIG. The AND circuit 92 is modified so that the inputs other than the fourth bit input are fixed to the "1" level inputs (connected to the "1" level nodes), and the same portions as those in FIG. 5 are the same. The code is attached.

【0034】この異常アドレス検出回路の動作は、比較
検出回路がアドレスの下位の数ビットの値に関係なく、
アドレスの上位のビットで決まるあるアドレスエリアに
対して異常アドレス検出を行う点に特徴がある。
The operation of this abnormal address detection circuit is performed regardless of the value of the lower several bits of the address by the comparison detection circuit.
It is characterized in that an abnormal address is detected in a certain address area determined by the upper bits of the address.

【0035】図11に示す異常アドレス検出回路は、図
5あるいは図6に示した異常アドレス検出回路と比べ
て、読み出しサイクル指定信号あるいは書込みサイクル
指定信号をフラグ制御信号FLAGCTRLに変更した
ものであり、図5中と同一部分には同一符号を付してい
る。
The abnormal address detecting circuit shown in FIG. 11 is different from the abnormal address detecting circuit shown in FIG. 5 or 6 in that the read cycle designating signal or the write cycle designating signal is changed to a flag control signal FLAGCTRL. The same parts as those in FIG. 5 are designated by the same reference numerals.

【0036】この異常アドレス検出回路の動作は、フラ
グ制御信号FLAGCTRLによりエラーフラグEFを
制御できる点に特徴がある。例えば、異常検出すべきア
ドレスが設定されていない状態の場合とか、マイコンシ
ステムにおいて本発明の回路の機能をディセーブル状態
に設定したい場合に、フラグ制御信号FLAGCTRL
を非活性状態にすることによりエラーフラグEFの発生
を禁止できる。
The operation of this abnormal address detection circuit is characterized in that the error flag EF can be controlled by the flag control signal FLAGCTRL. For example, the flag control signal FLAGCTRL is set when the address to be detected as an abnormality is not set, or when the function of the circuit of the present invention is to be disabled in the microcomputer system.
The generation of the error flag EF can be prohibited by deactivating the flag.

【0037】なお、本発明は、上記実施例に限らず、マ
イコンシステムに一般的に適用可能であり、例えば自動
車内部の通信に使用されるローカル・エリア・ネットワ
ーク(LAN;Local Area Network)のノードに接続さ
れる制御装置(LANコントローラ)などにも適用でき
る。
The present invention is not limited to the above-mentioned embodiment but is generally applicable to a microcomputer system, for example, a node of a local area network (LAN) used for communication inside a car. It is also applicable to a control device (LAN controller) connected to the.

【0038】[0038]

【発明の効果】上述したように本発明の異常アクセス検
出回路によれば、正常動作が保証されなくなる恐れがあ
る特定アドレスに対するアクセス異常時を検出して対処
するための回路をアドレスエリアの変更に容易に対処さ
せることが可能になる。従って、マイクロコンピュータ
を用いたシステムの開発、設計期間を短縮でき、システ
ムのコストダウンを図ることができる。
As described above, according to the abnormal access detection circuit of the present invention, a circuit for detecting and handling an abnormal access to a specific address, which may cause a failure in normal operation, is provided for changing the address area. It becomes possible to deal with it easily. Therefore, the development and design period of the system using the microcomputer can be shortened, and the cost of the system can be reduced.

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

【図1】本発明の一実施例に係る異常アクセス検出回路
を示すブロック図。
FIG. 1 is a block diagram showing an abnormal access detection circuit according to an embodiment of the present invention.

【図2】図1の異常アクセス検出回路の変形例を示すブ
ロック図。
FIG. 2 is a block diagram showing a modified example of the abnormal access detection circuit of FIG.

【図3】図1の異常アクセス検出回路の他の変形例を示
すブロック図。
FIG. 3 is a block diagram showing another modification of the abnormal access detection circuit of FIG.

【図4】図1中の異常アドレス検出回路の一具体例を示
す回路図。
FIG. 4 is a circuit diagram showing a specific example of an abnormal address detection circuit in FIG.

【図5】図1中の異常アドレス検出回路の他の具体例を
示す回路図。
5 is a circuit diagram showing another specific example of the abnormal address detection circuit in FIG.

【図6】図1中の異常アドレス検出回路のさらに他の具
体例を示す回路図。
6 is a circuit diagram showing still another specific example of the abnormal address detection circuit in FIG.

【図7】図1中の異常アドレス検出回路のさらに他の具
体例を示す回路図。
7 is a circuit diagram showing still another specific example of the abnormal address detection circuit in FIG.

【図8】図1中の異常アドレス検出回路のさらに他の具
体例を示す回路図。
8 is a circuit diagram showing still another specific example of the abnormal address detection circuit in FIG.

【図9】図1中の異常アドレス検出回路のさらに他の具
体例を示す回路図。
9 is a circuit diagram showing still another specific example of the abnormal address detection circuit in FIG.

【図10】図1中の異常アドレス検出回路のさらに他の
具体例を示す回路図。
10 is a circuit diagram showing still another specific example of the abnormal address detection circuit in FIG.

【図11】図1中の異常アドレス検出回路のさらに他の
具体例を示す回路図。
FIG. 11 is a circuit diagram showing still another specific example of the abnormal address detection circuit in FIG.

【図12】従来のマイコンシステに用いられる異常アク
セス検出回路を示すブロック図。
FIG. 12 is a block diagram showing an abnormal access detection circuit used in a conventional microcomputer system.

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

1…アドレスバス、2…データバス、3…制御信号バ
ス、4…CPU、5…アドレスデコーダ回路、6…異常
アドレス検出回路、7…アドレス設定用バス、71〜7
8…ラッチ回路、71a〜78a…リセット端子付きラ
ッチ回路、71b〜78b…プリセット端子付きラッチ
回路、81〜88…排他的ノア回路、91、92…4入
力アンド回路、93…2入力アンド回路、94…3入力
アンド回路。
1 ... Address bus, 2 ... Data bus, 3 ... Control signal bus, 4 ... CPU, 5 ... Address decoder circuit, 6 ... Abnormal address detection circuit, 7 ... Address setting bus, 71 to 7
8 ... Latch circuit, 71a-78a ... Latch circuit with reset terminal, 71b-78b ... Latch circuit with preset terminal, 81-88 ... Exclusive NOR circuit, 91, 92 ... 4-input AND circuit, 93 ... 2-input AND circuit, 94 ... 3-input AND circuit.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 マイクロコンピュータを用いたシステム
において、 異常検出アドレス設定信号がアサートされた時にアドレ
ス設定用バスあるいはデータバス上に与えられているデ
ータを異常検出アドレスとして設定するレジスタ回路
と、 アドレスバス上のアドレスが上記レジスタ回路に設定さ
れている異常検出アドレスと一致したか否かを比較し、
一致判定時にエラーフラグを発生する比較検出回路とを
具備することを特徴とする異常アクセス検出回路。
1. In a system using a microcomputer, a register circuit for setting data provided on an address setting bus or a data bus as an abnormality detection address when an abnormality detection address setting signal is asserted, and an address bus. Compare whether the above address matches the error detection address set in the register circuit above,
An abnormal access detection circuit, comprising: a comparison detection circuit that generates an error flag when a match is determined.
【請求項2】 請求項1記載の異常アクセス検出回路に
おいて、 さらに、前記アドレスバスから特定のアドレスが入力す
ると共に制御バスから所定の制御信号が入力した時に異
常検出アドレス設定信号をアサートするアドレスデコー
ダ回路を具備し、 前記レジスタ回路は、上記アドレスデコーダ回路の異常
検出アドレス設定信号がアサートされた時にデータバス
上に与えられているアドレスを異常検出アドレスとして
設定するとを具備することを特徴とする異常アクセス検
出回路。
2. The abnormal access detection circuit according to claim 1, further comprising an address decoder which asserts an abnormality detection address setting signal when a specific address is input from the address bus and a predetermined control signal is input from the control bus. A circuit is provided, wherein the register circuit sets an address given on the data bus as an error detection address when the error detection address setting signal of the address decoder circuit is asserted. Access detection circuit.
JP4329552A 1992-12-09 1992-12-09 Abnormal access detection circuit Pending JPH06175888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4329552A JPH06175888A (en) 1992-12-09 1992-12-09 Abnormal access detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4329552A JPH06175888A (en) 1992-12-09 1992-12-09 Abnormal access detection circuit

Publications (1)

Publication Number Publication Date
JPH06175888A true JPH06175888A (en) 1994-06-24

Family

ID=18222636

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4329552A Pending JPH06175888A (en) 1992-12-09 1992-12-09 Abnormal access detection circuit

Country Status (1)

Country Link
JP (1) JPH06175888A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6919707B2 (en) * 2002-01-10 2005-07-19 Panasonic Ev Energy Co., Ltd. Battery power source device, method for controlling the same, and method for providing address
JP2006079180A (en) * 2004-09-07 2006-03-23 Nec Electronics Corp Microcomputer
US11543451B2 (en) 2019-02-26 2023-01-03 Seiko Epson Corporation Real-time clock module, electronic device and vehicle

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6919707B2 (en) * 2002-01-10 2005-07-19 Panasonic Ev Energy Co., Ltd. Battery power source device, method for controlling the same, and method for providing address
JP2006079180A (en) * 2004-09-07 2006-03-23 Nec Electronics Corp Microcomputer
US11543451B2 (en) 2019-02-26 2023-01-03 Seiko Epson Corporation Real-time clock module, electronic device and vehicle

Similar Documents

Publication Publication Date Title
US5717851A (en) Breakpoint detection circuit in a data processor and method therefor
JPH10513589A (en) Apparatus for inputting and executing test mode operation for memory
JPH11272560A (en) Integrated circuit
US5767694A (en) Information processing apparatus with a mode setting circuit
JPH06175888A (en) Abnormal access detection circuit
JPH06282495A (en) Semiconductor integrated circuit
JPH1078920A (en) Microcomputer
KR960003096B1 (en) Error detecting circuit
JPS63250753A (en) Memory access checking system
JP2847741B2 (en) Microcomputer
JPS59149424A (en) Semiconductor integrated circuit device
JPS6362776B2 (en)
JPH0612292A (en) Microcomputer
JPS6318442A (en) Output protecting circuit
JPS5816487B2 (en) Multiple selection detection device in computer system
JPH0573360A (en) Watchdog timer
JPS61134846A (en) Electronic computer system
JPH10143462A (en) Microcomputer
JPH02163839A (en) Output protecting circuit
JPH07104999A (en) Microcomputer
JPS61228534A (en) Action control system for parity check circuit
JPH02302855A (en) Memory control system
JPH02196340A (en) Output protecting circuit
JPS61292756A (en) Program debug auxiliary circuit
JPH0512458A (en) One-chip microcomputer

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010410