JP2000207235A - Information processor - Google Patents

Information processor

Info

Publication number
JP2000207235A
JP2000207235A JP11007372A JP737299A JP2000207235A JP 2000207235 A JP2000207235 A JP 2000207235A JP 11007372 A JP11007372 A JP 11007372A JP 737299 A JP737299 A JP 737299A JP 2000207235 A JP2000207235 A JP 2000207235A
Authority
JP
Japan
Prior art keywords
cpu
signal
circuit
outputs
information processing
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
JP11007372A
Other languages
Japanese (ja)
Inventor
Hideo Namiki
秀夫 並木
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 JP11007372A priority Critical patent/JP2000207235A/en
Publication of JP2000207235A publication Critical patent/JP2000207235A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent the storage contents of a memory from being destroyed by speedily resetting a CPU, when the CPU operates abnormally. SOLUTION: This processor 101 is equipped with a CPU 102 and memories 103 to 106 that the CPU 102 accesses, and a runaway write detecting circuit block 111 decides whether or not the CPU 102 is accessing an unused area in an accessible memory space according to chip select signals CS1 to CS7 outputted by an address decoder circuit block 108 and outputs a reset signal to the CPU 102, when the decision result is true to reset the CPU. The runway writing detecting circuit block 111 outputs the reset signal to the CPU 102, if the CPU attempts illegal writing to an EPROM 103 and a flash ROM 104.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は情報処理装置に関
し、特にCPU暴走時にCPUをリセットする機能を備
えた情報処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus, and more particularly to an information processing apparatus having a function of resetting a CPU when the CPU goes out of control.

【0002】[0002]

【従来の技術】情報処理装置を構成するCPU(中央処
理装置)が暴走し、予期せぬ動作をした場合の対策とし
て、従来よりウォッチドッグタイマーリセット回路(W
DT回路)が用いられている。WDT回路は、一定時間
でタイムアップするタイマー動作を行い、CPUが正常
に動作している場合には、WDT回路がタイムアップす
る前にCPUがWDT回路をリセットして、タイマー動
作を再スタートさせる。しかし、CPUが暴走して、W
DT回路がタイムアップする前にリセットさせることが
できなかった場合は、WDT回路はタイムアップし、C
PUに対してリセット信号を出力する。これにより、C
PUはリセットされ、CPUの暴走が解消される。
2. Description of the Related Art As a countermeasure for a case where a CPU (Central Processing Unit) constituting an information processing device runs away and performs an unexpected operation, a watchdog timer reset circuit (W
DT circuit). The WDT circuit performs a timer operation for time-up at a fixed time. If the CPU is operating normally, the CPU resets the WDT circuit before the WDT circuit times-up and restarts the timer operation. . However, the CPU went out of control and W
If the DT circuit cannot be reset before the time expires, the WDT circuit times out and C
A reset signal is output to the PU. Thereby, C
The PU is reset, and the runaway of the CPU is eliminated.

【0003】[0003]

【発明が解決しようとする課題】しかし、このようなW
DT回路を用いた方式では、CPUが暴走してもWDT
回路がタイムアップするまでは、CPUはリセットされ
ないため、その間にCPUが例えばメモリを不正にアク
セスし、メモリの記憶内容が破壊されるといったことが
起こる。記憶内容が破壊されるメモリがRAMやG/A
(Gate−Array)のレジスタ等の揮発性のメモ
リで、CPUリセット後に復帰可能のもの(すなわちリ
セット値に戻るか、あるいはCPUによって初期化され
るもの)であれば問題はないが、EEPROM(Ele
ctrical erasable programm
able ROM)やFLASH(フラッシュ)ROM
などの不揮発性のメモリで、通常、初期化を行わないよ
うなメモリの記憶内容が破壊されてしまった場合には、
暴走後、手動でCPUをリセットしても、破壊された記
憶内容の修復は困難である。
However, such a W
In the method using the DT circuit, even if the CPU runs away, the WDT
Until the circuit times out, the CPU is not reset, and during that time, the CPU illegally accesses the memory, for example, and the stored contents of the memory are destroyed. Memory whose contents are destroyed is RAM or G / A
There is no problem as long as the memory is a volatile memory such as a register of (Gate-Array) and can be restored after resetting the CPU (that is, reset to a reset value or initialized by the CPU).
critical erasable program
Able ROM) and FLASH (flash) ROM
In the case of non-volatile memory such as, if the storage content of the memory that is not normally initialized is destroyed,
Even if the CPU is manually reset after the runaway, it is difficult to repair the destroyed stored contents.

【0004】本発明はこのような問題を解決するために
なされたもので、その目的は、CPUが異常動作をした
際に素早くCPUをリセットしてメモリの記憶内容が破
壊されることを防止した情報処理装置を提供することに
ある。
SUMMARY OF THE INVENTION The present invention has been made to solve such a problem, and an object of the present invention is to prevent the memory contents from being destroyed by quickly resetting the CPU when the CPU operates abnormally. An information processing device is provided.

【0005】[0005]

【課題を解決するための手段】本発明は、上記目的を達
成するため、CPUと、前記CPUがアクセスするメモ
リとを備えた情報処理装置において、前記CPUがアク
セス可能なメモリ空間のうち未使用の領域を前記CPU
がアクセスしているか否かを、前記CPUが出力するア
ドレス信号にもとづいて判定するアクセス領域判定手段
と、前記アクセス領域判定手段が、前記CPUは前記未
使用の領域をアクセスしていると判定したとき、リセッ
ト信号を前記CPUに出力して前記CPUをリセットす
るCPU制御手段とを備えたことを特徴とする。本発明
の情報処理装置では、アクセス領域判定手段は、CPU
がアクセス可能なメモリ空間のうち未使用の領域をCP
Uがアクセスしているか否かを、CPUが出力するアド
レス信号にもとづいて判定する。そして、CPU制御手
段は、アクセス領域判定手段が、CPUは前記未使用の
領域をアクセスしていると判定したとき、リセット信号
をCPUに出力してCPUをリセットする。すなわち、
CPUが暴走して未使用のアドレス領域をアクセスする
と、そのことによってCPUの暴走が検知され、CPU
はただちにリセットされる。したがって、CPUが異常
動作をした場合には、従来のようにタイマー動作におけ
るタイムアップを待つことなく素早くCPUをリセット
し正常動作に復帰させてメモリの記憶内容が破壊される
ことを防止できる。
In order to achieve the above object, the present invention provides an information processing apparatus having a CPU and a memory accessed by the CPU. Area of the CPU
Access area determining means for determining whether or not the CPU is accessing based on an address signal output by the CPU, and the access area determining means determines that the CPU is accessing the unused area. And a CPU control means for outputting a reset signal to the CPU to reset the CPU. In the information processing apparatus according to the present invention, the access area determination unit includes a CPU
Unused areas in the memory space accessible by
It is determined whether or not U is accessing based on an address signal output by the CPU. When the access area determination means determines that the CPU is accessing the unused area, the CPU control means outputs a reset signal to the CPU to reset the CPU. That is,
When the CPU runs away and accesses an unused address area, the runaway of the CPU is detected thereby,
Is reset immediately. Therefore, when the CPU performs an abnormal operation, the CPU can be quickly reset and returned to the normal operation without waiting for the time-up in the timer operation as in the related art, thereby preventing the storage contents of the memory from being destroyed.

【0006】また、本発明は、CPUと、前記CPUが
アクセスするROMとを備えた情報処理装置において、
前記CPUが前記ROMをアクセスするためのアドレス
信号を出力しメモリに対する書き込みを行うことを表す
制御信号を出力しているとき、リセット信号を前記CP
Uに出力して前記CPUをリセットするCPU制御手段
を備えたことを特徴とする。すなわち、本発明の情報処
理装置では、CPUが暴走してROMに書き込みを行う
という不正動作を行った場合、CPU制御手段は、その
ことを検知してCPUをただちにリセットする。したが
って、CPUが異常動作をした場合には、従来のように
タイマー動作におけるタイムアップを待つことなく素早
くCPUをリセットし正常動作に復帰させてメモリの記
憶内容が破壊されることを防止できる。
According to the present invention, there is provided an information processing apparatus including a CPU and a ROM accessed by the CPU.
When the CPU outputs an address signal for accessing the ROM and outputs a control signal indicating that writing to the memory is performed, the CPU outputs a reset signal to the CP.
U is provided with CPU control means for outputting to U and resetting the CPU. That is, in the information processing apparatus according to the present invention, when the CPU runs out of control and performs an illegal operation of writing data into the ROM, the CPU control means detects this and immediately resets the CPU. Therefore, when the CPU performs an abnormal operation, the CPU can be quickly reset and returned to the normal operation without waiting for the time-up in the timer operation as in the related art, thereby preventing the storage contents of the memory from being destroyed.

【0007】[0007]

【発明の実施の形態】次に本発明の実施の形態例につい
て図面を参照して説明する。図1は本発明による情報処
理装置の一例を示す要部ブロック図、図2は図1の情報
処理装置を構成する暴走書き込み検出回路ブロックを詳
しく示す回路図である。図1に示したように、本実施の
形態例の情報処理装置101を構成するCPU102
は、CPUバス102A(データ、アドレス、制御信号
を伝送する)を介して、103のEPROM(Elec
trical programmableROM)、1
04のFLASH−ROM、105のRAM、106の
EEPROM、ならびに107のG/Aと接続されてい
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a main block diagram showing an example of an information processing apparatus according to the present invention, and FIG. 2 is a circuit diagram showing in detail a runaway write detection circuit block constituting the information processing apparatus of FIG. As shown in FIG. 1, a CPU 102 constituting an information processing apparatus 101 according to the present embodiment
Is connected to the EPROM (Elect) of 103 via the CPU bus 102A (for transmitting data, addresses, and control signals).
triprogrammableROM), 1
04 FLASH-ROM, 105 RAM, 106 EEPROM, and 107 G / A.

【0008】EPROM103およびFLASH−RO
M104は、CPU102が動作するために必要なプロ
グラムデータ(単にプログラムともいう)を保持してい
る。また、RAM105およびEEPROM106はC
PU102が、その動作に必要なデータを保持するため
に用いられる。揮発性のデータ、すなわち情報処理装置
101の電源が遮断されたときに保持しなくてもかまわ
ないデータはRAM105に、不揮発性のデータ、すな
わち電源が遮断されたときにも保持しておく必要のある
データはEEPROM106に格納される。
EPROM 103 and FLASH-RO
M104 holds program data (also simply called a program) necessary for the operation of the CPU 102. The RAM 105 and the EEPROM 106 are C
The PU 102 is used to hold data required for the operation. Volatile data, that is, data that does not need to be held when the power of the information processing apparatus 101 is turned off, needs to be held in the RAM 105 as nonvolatile data, that is, data that is held even when the power is turned off. Certain data is stored in the EEPROM 106.

【0009】G/A107の内部には、ADEC108
(アドレスデコーダ回路ブロック)、IPL109(F
LASH−ROM104のプログラム書き込みインタフ
ェース回路ブロック)、WDT110(ウォッチドッグ
タイマーリセット回路ブロック)、WRDET111
(暴走書き込み検出回路ブロック)を有している。な
お、G/A107はこれらの構成要素以外にも、情報処
理装置101の各種の機能を実現するための不図示の回
路ブロックを備えている。図1には特に本発明に係わる
構成要素のみが示されている。
The G / A 107 has an ADEC 108 inside.
(Address decoder circuit block), IPL109 (F
A program writing interface circuit block of the LASH-ROM 104), a WDT 110 (watchdog timer reset circuit block), and a WRDET 111
(Runaway write detection circuit block). The G / A 107 includes circuit blocks (not shown) for realizing various functions of the information processing apparatus 101, in addition to these components. FIG. 1 shows, in particular, only the components according to the invention.

【0010】ADEC108はCPUバス102Aを通
じて供給される信号より、各外部デバイスのチップセレ
クト信号CS1からCS7、ライト信号(書き込み信
号)WRBおよびリード信号(読み出し信号)RDBを
生成する。チップセレクト信号CS1はCPU102が
EPROM103にアクセスする時に”L”(ローレベ
ル)となる信号であり、チップセレクト信号CS2はF
LASH−ROM104、チップセレクト信号CS3は
RAM105、チップセレクト信号CS4はEEPRO
M106、チップセレクト信号CS5はIPL109、
チップセレクト信号CS6はWDT110をそれぞれア
クセスするときに”L”となる信号である。また、チッ
プセレクト信号CS7はG/A107中のADEC10
8、IPL109、WDT110、ならびにWRDET
111以外の不図示のブロックに対してアクセスする時
に”L”となる信号である。
The ADEC 108 generates chip select signals CS1 to CS7 of each external device, a write signal (write signal) WRB, and a read signal (read signal) RDB from signals supplied through the CPU bus 102A. The chip select signal CS1 is a signal which becomes “L” (low level) when the CPU 102 accesses the EPROM 103, and the chip select signal CS2 is F
LASH-ROM 104, chip select signal CS3 is RAM 105, chip select signal CS4 is EEPRO
M106, chip select signal CS5 is IPL109,
The chip select signal CS6 is a signal that becomes “L” when each of the WDTs 110 is accessed. Further, the chip select signal CS7 is set to ADEC10 in the G / A 107.
8, IPL109, WDT110, and WRDET
This signal is “L” when accessing a block (not shown) other than 111.

【0011】IPL109は、FLASH−ROM10
4への書き込みを制御する。FLASH−ROM104
には通常プログラムが書き込まれているが、プログラム
のアップデートを行う場合のみ、FLASH−ROM1
04に対して書き込みが行われる。このとき、ADEC
108はFLASH−ROM104に対して”L”のラ
イト信号WRB2を出力し、また、IPL109は書き
込み許可の状態になった時”L”の書き込み許可信号I
PLBを出力する。つまり、プログラムのアップデート
時以外は、書き込み許可信号IPLBおよびライト信号
WRB2はともに”H”(ハイレベル)となる。
The IPL 109 is a FLASH-ROM 10
4 is controlled. FLASH-ROM104
A normal program is written in the FLASH-ROM 1 only when the program is updated.
04 is written. At this time, ADEC
108 outputs an “L” write signal WRB2 to the FLASH-ROM 104, and the IPL 109 outputs an “L” write enable signal I when the write is enabled.
Output PLB. That is, except when the program is updated, both the write enable signal IPLB and the write signal WRB2 become “H” (high level).

【0012】WDT110は、CPU102の暴走を検
出するための回路であり、一定時間でタイムアップする
タイマー動作を行い、通常は、タイムアップするまでの
間にCPU102がWDT110をリセットし、タイマ
ー動作を再スタートさせる。すなわち、CPU102が
正常に動作している場合にはWDT110がタイムアッ
プすることはない。しかしCPU102が暴走して一定
時間内にWDT110をリセットできなかった場合、W
DT回路は”L”のリセット信号RST1を出力し、C
PU102はリセットされる。
The WDT 110 is a circuit for detecting runaway of the CPU 102. The WDT 110 performs a timer operation for time-up in a fixed time. Usually, the CPU 102 resets the WDT 110 until the time-up, and restarts the timer operation. Start. That is, when the CPU 102 is operating normally, the WDT 110 does not time out. However, if the CPU 102 fails to reset the WDT 110 within a predetermined time due to runaway,
The DT circuit outputs an “L” reset signal RST1,
PU 102 is reset.

【0013】WRDET111は、CPU102の誤書
き込みの検出を行う。もし誤った書き込みが行われた場
合は、CPUが暴走状態にあると判断して、”L”のリ
セット信号RST2を出力する。リセット信号RST
1、RST2はAND回路112を通して、CPU10
2のRST信号入力端子に供給され、WDT110ある
いはWRDET111から”L”のリセット信号が出力
されると、CPU102に”L”のリセット信号が供給
され、CPU102はリセットされる。
The WRDET 111 detects an erroneous write of the CPU 102. If an erroneous write is performed, the CPU determines that the CPU is in a runaway state and outputs an “L” reset signal RST2. Reset signal RST
1 and RST2 are transmitted to the CPU 10 through the AND circuit 112.
When an “L” reset signal is output from the WDT 110 or the WRDET 111 to the RST signal input terminal 2, the “L” reset signal is supplied to the CPU 102 and the CPU 102 is reset.

【0014】WRDET111は詳しくは、図2に示し
たような構成となっている。図2の202から210は
それぞれ、WRDET111を構成する論理回路であ
る。CPU102がFLASH−ROM104にアクセ
スするとき、チップセレクト信号CS2は”L”とな
る。またこのときのアクセスが書き込みの場合には、ラ
イト信号WRBは”L”となり、したがってCPU10
2がFLASH−ROM104に書き込みを行う場合に
はOR回路203の出力は”L”、それ以外の場合は”
H”となる。
The WRDET 111 has a detailed configuration as shown in FIG. Reference numerals 202 to 210 in FIG. 2 denote logic circuits constituting the WRDET 111, respectively. When the CPU 102 accesses the FLASH-ROM 104, the chip select signal CS2 becomes "L". If the access at this time is a write, the write signal WRB becomes "L",
2 writes to the FLASH-ROM 104, the output of the OR circuit 203 is “L”;
H ”.

【0015】また、このときCPU102がプログラム
のアップデート中の場合は書き込み許可信号IPLB
は”L”となり、書き込み許可信号IPLBが反転回路
202を通じてOR回路204に入力される結果、OR
回路204の出力が”H”となり、AND回路209の
出力RST2は”H”となる。プログラムのアップデー
ト中以外の場合は書き込み許可信号IPLBは”H”と
なり、このときCPU102がFLASH−ROM10
4に書き込みを行うと、OR回路203の出力は”L”
となり、OR回路204の出力が”L”となって、AN
D回路209が出力するリセット信号RST2は”L”
となる。
At this time, if the CPU 102 is updating the program, the write enable signal IPLB
Becomes “L”, and the write enable signal IPLB is input to the OR circuit 204 through the inverting circuit 202.
The output of the circuit 204 becomes “H”, and the output RST2 of the AND circuit 209 becomes “H”. When the program is not being updated, the write permission signal IPLB becomes “H”, and at this time, the CPU 102
4, the output of the OR circuit 203 becomes “L”.
And the output of the OR circuit 204 becomes “L”, and AN
The reset signal RST2 output from the D circuit 209 is “L”
Becomes

【0016】同様に、CPU102がEPROM103
にアクセスするとき、チップセレクト信号CS1は”
L”となる。CPU102はEPROM103に対して
は読み出しを行うだけで、書き込みを行わないので、通
常はチップセレクト信号CS1が”L”の場合、ライト
信号WRBは”H”となり、OR回路205の出力は”
H”となってAND回路209の出力RST2は”H”
となる。
Similarly, the CPU 102
, The chip select signal CS1 changes to “
Since the CPU 102 only reads data from the EPROM 103 but does not perform writing, the write signal WRB is normally "H" when the chip select signal CS1 is "L" and the OR circuit 205 The output is "
H ”and the output RST2 of the AND circuit 209 becomes“ H ”.
Becomes

【0017】しかしCPU102がEPROM103に
書き込みを行おうとするとチップセレクト信号CS1
は”L”、ライト信号WRBは”L”の状態になり、こ
の場合、OR回路205の出力は”L”となるのでAN
D回路209の出力RST2は”L”となる。
However, if the CPU 102 attempts to write to the EPROM 103, the chip select signal CS1
Is at "L" and the write signal WRB is at "L". In this case, the output of the OR circuit 205 is at "L".
The output RST2 of the D circuit 209 becomes "L".

【0018】さらに、チップセレクト信号CS1からC
S7はCPU102のメモリ空間に割り当てられた各デ
バイスに対するチップセレクト信号になるので、AND
回路206の出力に接続された反転回路207の出力
は、CPUメモリ空間上で未使用の領域にCPU102
がアクセスしようとした時に”L”となる。また、AN
D回路210はCPU102が書き込みもしくは読み出
し動作を行った場合に”L”となるので、OR回路20
8はCPU102がメモリ空間上の未使用領域に書き込
みもしくは読み出し動作を行った場合に”L”となり、
このときAND回路209の出力信号、すなわちリセッ
ト信号RST2は”L”となる。
Further, the chip select signals CS1 to CS
Since S7 is a chip select signal for each device allocated to the memory space of the CPU 102, AND
The output of the inversion circuit 207 connected to the output of the circuit 206 is stored in an unused area in the CPU memory space.
Becomes "L" when trying to access. Also, AN
Since the D circuit 210 becomes “L” when the CPU 102 performs a write or read operation, the OR circuit 20
8 becomes “L” when the CPU 102 performs a write or read operation on an unused area in the memory space,
At this time, the output signal of the AND circuit 209, that is, the reset signal RST2 becomes "L".

【0019】次に、このように構成され情報処理装置1
01の動作について説明する。本発明の特徴は、図1に
示したWRDET111の動作にある。すなわち、この
WRDET111により、CPU102が通常の動作を
行っている場合はあり得ない動作が検出され、CPU1
02に対してリセットが掛けられる。CPU102が通
常の動作を行っている場合、CPU102はEEPRO
M106に対して書き込みを行うことはあり得ない。し
かしCPU102が例えば暴走して、このような異常書
き込み動作を行った場合、図2のライト信号WRBは”
L”、チップセレクト信号CS1は”L”となる。この
ときOR回路205(本発明に係わるリセット信号生成
回路)の出力は”L”となり(正常動作時には常に”
H”)、CPU102の異常動作を検出する。異常動作
を検出すると、AND回路209が出力するリセット信
号RST2は”L”となる。リセット信号RST2が”
L”となると、図1のAND回路112が出力するリセ
ット信号RSTは”L”となり、CPU102へリセッ
トが掛かり、CPU102は異常動作を停止する。
Next, the information processing apparatus 1 thus configured
01 will be described. A feature of the present invention lies in the operation of the WRDET 111 shown in FIG. That is, the WRDET 111 detects an operation that cannot be performed when the CPU 102 is performing a normal operation.
02 is reset. When the CPU 102 is performing a normal operation, the CPU 102
Writing to M106 is impossible. However, when the CPU 102 performs such an abnormal write operation by, for example, running out of control, the write signal WRB in FIG.
L ", and the chip select signal CS1 becomes" L. "At this time, the output of the OR circuit 205 (the reset signal generation circuit according to the present invention) becomes" L "(always in normal operation).
H "), an abnormal operation of the CPU 102 is detected. When the abnormal operation is detected, the reset signal RST2 output from the AND circuit 209 becomes" L ".
When the signal becomes "L", the reset signal RST output from the AND circuit 112 in FIG. 1 becomes "L", the CPU 102 is reset, and the CPU 102 stops the abnormal operation.

【0020】次に、CPU102がFLASH−ROM
104への書き込みを行った場合の動作について説明す
る。図1に示したIPL109(本発明に係わるROM
制御回路)は、FLASH−ROM104のプログラム
アップデート中は”L”の書き込み許可信号IPLBを
出力するが、通常動作中は”H”の書き込み許可信号I
PLBを出力する。本来FLASH−ROMに書き込み
を行わない状態の時に、CPU102がFLASH−R
OM104に対して書き込み動作を行った場合、図2に
おいて、書き込み許可信号IPLBは”H”、ライト信
号WRBは”L”、チップセレクト信号CS2は”L”
となる。このとき、OR回路203の出力は”L”とな
り、OR回路204の出力も”L”となって、AND回
路209が出力するリセット信号RST2は”L”とな
る。リセット信号RST2が”L”となると、図1のA
ND回路112が出力するリセット信号RSTは”L”
となり、CPU102へリセットが掛かり、CPU10
2は異常動作を停止する。ここで、OR回路203、反
転回路202、ならびにOR回路204は本発明に係わ
るリセット信号生成回路として機能している。
Next, the CPU 102 operates as a flash-ROM.
The operation in the case where data is written to the memory 104 will be described. The IPL 109 (the ROM according to the present invention) shown in FIG.
The control circuit outputs the write enable signal IPLB of “L” during the program update of the FLASH-ROM 104, but during normal operation, the write enable signal I of “H” is output.
Output PLB. When writing to the FLASH-ROM is not originally performed, the CPU 102 sets the FLASH-R
When a write operation is performed on the OM 104, the write enable signal IPLB is “H”, the write signal WRB is “L”, and the chip select signal CS2 is “L” in FIG.
Becomes At this time, the output of the OR circuit 203 becomes “L”, the output of the OR circuit 204 also becomes “L”, and the reset signal RST2 output from the AND circuit 209 becomes “L”. When the reset signal RST2 becomes "L", A in FIG.
The reset signal RST output from the ND circuit 112 is “L”
And the CPU 102 is reset, and the CPU 10
2 stops the abnormal operation. Here, the OR circuit 203, the inverting circuit 202, and the OR circuit 204 function as a reset signal generating circuit according to the present invention.

【0021】さらに、CPU102がCPU102のメ
モリ空間上に割付られたいずれかのメモリにアクセスす
る場合、図2のチップセレクト信号CS1からCS7ま
でのいずれか一つは必ず”L”となる。このとき図2の
AND回路206の出力は”L”、OR回路208の出
力は”H”となり、AND回路209が出力するリセッ
ト信号RST2は”H”となる。
Further, when the CPU 102 accesses any of the memories allocated in the memory space of the CPU 102, one of the chip select signals CS1 to CS7 in FIG. 2 always becomes "L". At this time, the output of the AND circuit 206 in FIG. 2 is “L”, the output of the OR circuit 208 is “H”, and the reset signal RST2 output from the AND circuit 209 is “H”.

【0022】一方、CPU102がメモリ空間に割り付
けられたメモリにアクセスしていない場合には、すべて
のチップセレクト信号CS1からCS7が”H”となる
ので、このとき図2のAND回路206の出力は”H”
になる。CPU102が正常動作を行っている場合は、
図2のAND回路206の出力が”H”の状態で、ライ
ト信号WRBは”L”もしくはリード信号RDBが”
L”になることは無いが、CPU102が異常動作を行
い、メモリ空間に割り付けられていない未使用領域に書
き込み動作もしくは読み出し動作を行うと、図2のAN
D回路206の出力は”H”で反転回路207の出力
は”L”となり、AND回路210の出力は、ライト信
号WRBまたはリードRDBが”L”であるため”L”
となる。このとき、図2のOR回路208の出力は”
L”となり、AND回路209が出力するリセット信号
RST2は”L”となる。その結果、図1のAND回路
112が出力するリセット信号RSTは”L”となり、
CPU102へリセットが掛かり、CPU102は異常
動作を停止する。ここで、AND回路206と反転回路
207は本発明に係わる第1の論理回路、AND回路2
10は本発明にかかわる第2の論理回路として機能し、
OR回路208は本発明に係わるリセット信号生成回路
として機能している。
On the other hand, when the CPU 102 does not access the memory allocated to the memory space, all the chip select signals CS1 to CS7 become "H". At this time, the output of the AND circuit 206 in FIG. "H"
become. When the CPU 102 is operating normally,
When the output of the AND circuit 206 in FIG. 2 is “H”, the write signal WRB is “L” or the read signal RDB is “H”.
L ”, but when the CPU 102 performs an abnormal operation and performs a write operation or a read operation on an unused area not allocated to the memory space, the AN of FIG.
The output of the D circuit 206 is “H”, the output of the inversion circuit 207 is “L”, and the output of the AND circuit 210 is “L” because the write signal WRB or the read RDB is “L”.
Becomes At this time, the output of the OR circuit 208 in FIG.
L, and the reset signal RST2 output from the AND circuit 209 becomes "L." As a result, the reset signal RST output from the AND circuit 112 in FIG.
A reset is applied to the CPU 102, and the CPU 102 stops the abnormal operation. Here, the AND circuit 206 and the inversion circuit 207 are the first logic circuit according to the present invention, the AND circuit 2
10 functions as a second logic circuit according to the present invention,
The OR circuit 208 functions as a reset signal generation circuit according to the present invention.

【0023】なお、本実施の形態例はあくまでも一例で
あり、例えばメモリの構成は本例に限ったものではな
い。たとえば、EPROM103を含まず、FLASH
−ROM104だけの場合や、EEPROM106を含
まない構成の場合にも本発明は無論有効である。また、
図1のIPL109における書き込み許可信号IPLB
の様に、EEPROM106に対しても書き込み許可状
態を表す信号を生成し、EEPROM106が書き込み
許可状態でないときCPU102がEEPROM106
に書き込みを行おうとしたときはCPU102へリセッ
トを掛けるといった構成とすることも可能である。
The present embodiment is merely an example, and the configuration of the memory is not limited to this example. For example, without including EPROM 103, FLASH
The present invention is of course also effective in the case of only the ROM 104 or the case of not including the EEPROM 106. Also,
Write permission signal IPLB in IPL 109 of FIG.
, A signal indicating a write permission state is also generated for the EEPROM 106, and when the EEPROM 106 is not in the write permission state, the CPU 102
It is also possible to adopt a configuration in which a reset is applied to the CPU 102 when writing is to be performed.

【0024】[0024]

【発明の効果】以上説明したように本発明は、CPU
と、前記CPUがアクセスするメモリとを備えた情報処
理装置において、前記CPUがアクセス可能なメモリ空
間のうち未使用の領域を前記CPUがアクセスしている
か否かを、前記CPUが出力するアドレス信号にもとづ
いて判定するアクセス領域判定手段と、前記アクセス領
域判定手段が、前記CPUは前記未使用の領域をアクセ
スしていると判定したとき、リセット信号を前記CPU
に出力して前記CPUをリセットするCPU制御手段と
を備えたことを特徴とする。本発明の情報処理装置で
は、アクセス領域判定手段は、CPUがアクセス可能な
メモリ空間のうち未使用の領域をCPUがアクセスして
いるか否かを、CPUが出力するアドレス信号にもとづ
いて判定する。そして、CPU制御手段は、アクセス領
域判定手段が、CPUは前記未使用の領域をアクセスし
ていると判定したとき、リセット信号をCPUに出力し
てCPUをリセットする。すなわち、CPUが暴走して
未使用のアドレス領域をアクセスすると、そのことによ
ってCPUの暴走が検知され、CPUはただちにリセッ
トされる。したがって、CPUが異常動作をした場合に
は、従来のようにタイマー動作におけるタイムアップを
待つことなく素早くCPUをリセットし正常動作に復帰
させてメモリの記憶内容が破壊されることを防止でき
る。
As described above, the present invention provides a CPU
An address signal output by the CPU as to whether or not the CPU is accessing an unused area in a memory space accessible by the CPU. Access area determining means for determining based on the access area determining means, and when the access area determining means determines that the CPU is accessing the unused area, the CPU outputs a reset signal to the CPU.
And a CPU control means for outputting to the CPU and resetting the CPU. In the information processing apparatus according to the present invention, the access area determination means determines whether or not the CPU is accessing an unused area in the memory space accessible by the CPU based on an address signal output from the CPU. When the access area determination means determines that the CPU is accessing the unused area, the CPU control means outputs a reset signal to the CPU to reset the CPU. That is, when the CPU goes out of control and accesses an unused address area, the runaway of the CPU is detected thereby, and the CPU is immediately reset. Therefore, when the CPU performs an abnormal operation, the CPU can be quickly reset and returned to the normal operation without waiting for the time-up in the timer operation as in the related art, thereby preventing the storage contents of the memory from being destroyed.

【0025】また、本発明は、CPUと、前記CPUが
アクセスするROMとを備えた情報処理装置において、
前記CPUが前記ROMをアクセスするためのアドレス
信号を出力しメモリに対する書き込みを行うことを表す
制御信号を出力しているとき、リセット信号を前記CP
Uに出力して前記CPUをリセットするCPU制御手段
を備えたことを特徴とする。すなわち、本発明の情報処
理装置では、CPUが暴走してROMに書き込みを行う
という不正動作を行った場合、CPU制御手段は、その
ことを検知してCPUをただちにリセットする。したが
って、CPUが異常動作をした場合には、従来のように
タイマー動作におけるタイムアップを待つことなく素早
くCPUをリセットし正常動作に復帰させてメモリの記
憶内容が破壊されることを防止できる。
According to the present invention, there is provided an information processing apparatus comprising a CPU and a ROM accessed by the CPU.
When the CPU outputs an address signal for accessing the ROM and outputs a control signal indicating that writing to the memory is performed, the CPU outputs a reset signal to the CP.
U is provided with CPU control means for outputting to U and resetting the CPU. That is, in the information processing apparatus according to the present invention, when the CPU runs out of control and performs an illegal operation of writing data into the ROM, the CPU control means detects this and immediately resets the CPU. Therefore, when the CPU performs an abnormal operation, the CPU can be quickly reset and returned to the normal operation without waiting for the time-up in the timer operation as in the related art, thereby preventing the storage contents of the memory from being destroyed.

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

【図1】本発明による情報処理装置の一例を示す要部ブ
ロック図である。
FIG. 1 is a main block diagram showing an example of an information processing apparatus according to the present invention.

【図2】図1の情報処理装置を構成する暴走書き込み検
出回路ブロックを詳しく示す回路図である。
FIG. 2 is a circuit diagram showing in detail a runaway write detection circuit block constituting the information processing apparatus of FIG. 1;

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

101……情報処理装置、102……CPU、103…
…EPROM、104……FLASH−ROM、105
……RAM、106……EEPROM、107……G/
A、108……ADEC(アドレスデコーダ回路ブロッ
ク)、109……IPL(プログラム書き込みインタフ
ェース回路ブロック)、110……WDT(ウォッチド
ッグタイマーリセット回路ブロック)、111……WR
DET(暴走書き込み検出回路ブロック)、112、2
06、209、210……AND回路、203、20
5、204、208……OR回路、202、207……
反転回路。
101 ... information processing device, 102 ... CPU, 103 ...
… EPROM, 104… FLASH-ROM, 105
…… RAM, 106 …… EEPROM, 107 …… G /
A, 108 ADEC (address decoder circuit block), 109 IPL (program write interface circuit block), 110 WDT (watchdog timer reset circuit block), 111 WR
DET (runaway write detection circuit block), 112, 2
06, 209, 210 ... AND circuit, 203, 20
5, 204, 208 ... OR circuit, 202, 207 ...
Inverting circuit.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 CPUと、前記CPUがアクセスするメ
モリとを備えた情報処理装置において、 前記CPUがアクセス可能なメモリ空間のうち未使用の
領域を前記CPUがアクセスしているか否かを、前記C
PUが出力するアドレス信号にもとづいて判定するアク
セス領域判定手段と、 前記アクセス領域判定手段が、前記CPUは前記未使用
の領域をアクセスしていると判定したとき、リセット信
号を前記CPUに出力して前記CPUをリセットするC
PU制御手段とを備えたことを特徴とする情報処理装
置。
1. An information processing apparatus comprising a CPU and a memory accessed by the CPU, wherein the CPU determines whether an unused area in a memory space accessible by the CPU is accessed by the CPU. C
An access area judging means for judging based on an address signal output by the PU; and the access area judging means outputs a reset signal to the CPU when the CPU judges that the unused area is being accessed. C to reset the CPU
An information processing apparatus comprising: a PU control unit.
【請求項2】 前記メモリは複数のメモリ回路から成
り、 前記CPUが出力するアドレス信号にもとづき前記メモ
リ回路にチップセレクト信号を出力するとともに、前記
CPUが出力する制御信号にもとづき書き込み信号また
は読み出し信号を前記メモリ回路に出力するアドレスデ
コーダ回路を含み、 前記アクセス領域判定手段は、 前記アドレスデコーダ回路が出力する前記チップセレク
ト信号を入力とし、前記アドレスレコード回路がいずれ
の前記チップセレクト信号も出力しないとき特定論理レ
ベルの論理信号を出力する第1の論理回路と、 前記アドレスデコーダ回路が出力する前記書き込み信号
および読み出し信号を入力とし、アドレスデコーダ回路
が前記書き込み信号または読み出し信号を出力したとき
特定論理レベルの論理信号を出力する第2の論理回路と
を含み、 前記CPU制御手段は、前記第1および第2の論理回路
がともに前記特定論理レベルの論理信号を出力したとき
前記リセット信号を前記CPUに出力するリセット信号
生成回路とを含むことを特徴とする請求項1記載の情報
処理装置。
2. The memory comprises a plurality of memory circuits, and outputs a chip select signal to the memory circuit based on an address signal output by the CPU, and a write signal or a read signal based on a control signal output by the CPU. The access area determining means receives the chip select signal output from the address decoder circuit as an input, and the address record circuit does not output any of the chip select signals. A first logic circuit that outputs a logic signal of a specific logic level; a write signal and a read signal output by the address decoder circuit; and a specific logic level when the address decoder circuit outputs the write signal or the read signal. Logical signal A second logic circuit that outputs the reset signal to the CPU when the first and second logic circuits both output the logic signal of the specific logic level. The information processing apparatus according to claim 1, further comprising a generation circuit.
【請求項3】 前記メモリ回路は、RAM、EPRO
M、EEPROM、ゲートアレー、ならびにフラッシュ
ROMのうちのいずれか1つまたは複数であることを特
徴とする請求項2記載の情報処理装置。
3. The memory circuit according to claim 2, wherein the memory circuit is a RAM, an EPRO.
3. The information processing apparatus according to claim 2, wherein the information processing apparatus is one or more of an M, an EEPROM, a gate array, and a flash ROM.
【請求項4】 CPUと、前記CPUがアクセスするR
OMとを備えた情報処理装置において、 前記CPUが前記ROMをアクセスするためのアドレス
信号を出力しメモリに対する書き込みを行うことを表す
制御信号を出力しているとき、リセット信号を前記CP
Uに出力して前記CPUをリセットするCPU制御手段
を備えたことを特徴とする情報処理装置。
4. A CPU and an R accessed by the CPU.
An information processing device including the OM, when the CPU outputs an address signal for accessing the ROM and outputs a control signal indicating that writing to a memory is performed, resets the reset signal to the CP.
An information processing apparatus comprising: CPU control means for outputting to U and resetting the CPU.
【請求項5】 前記CPUが出力するアドレス信号にも
とづいて前記ROMにチップセレクト信号を出力し、前
記CPUが出力する前記制御信号にもとづいてメモリに
対する書き込み信号を出力するアドレスデコーダ回路を
含み、 前記CPU制御手段は、前記アドレスデコーダ回路が出
力する前記チップセレクト信号と前記書き込み信号とを
入力とし、前記アドレスデコーダ回路が前記チップセレ
クト信号と前記書き込み信号とを同時に出力したとき前
記リセット信号を出力するリセット信号生成回路を含む
ことを特徴とする請求項4記載の情報処理装置。
5. An address decoder circuit that outputs a chip select signal to the ROM based on an address signal output by the CPU and outputs a write signal to a memory based on the control signal output by the CPU. CPU control means receives the chip select signal and the write signal output from the address decoder circuit as inputs, and outputs the reset signal when the address decoder circuit outputs the chip select signal and the write signal simultaneously. The information processing apparatus according to claim 4, further comprising a reset signal generation circuit.
【請求項6】 前記ROMはEPROMであることを特
徴とする請求項5記載の情報処理装置。
6. The information processing apparatus according to claim 5, wherein said ROM is an EPROM.
【請求項7】 前記ROMはフラッシュROMまたはE
EPROMであり、 前記フラッシュROMまたは前記EEPROMにデータ
の書き込みを行う場合に書き込み許可信号を出力するR
OM制御回路を含み、 前記リセット信号生成回路は、前記ROM制御回路が書
き込み許可信号を出力していない状態で、前記アドレス
デコーダ回路が前記チップセレクト信号と前記書き込み
信号とを同時に出力したとき前記リセット信号を出力す
ることを特徴とする請求項5記載の情報処理装置。
7. The ROM is a flash ROM or an E-ROM.
An EPROM for outputting a write enable signal when writing data to the flash ROM or the EEPROM;
An OM control circuit, wherein the reset signal generation circuit resets when the address decoder circuit simultaneously outputs the chip select signal and the write signal while the ROM control circuit is not outputting a write enable signal. The information processing device according to claim 5, wherein the information processing device outputs a signal.
JP11007372A 1999-01-14 1999-01-14 Information processor Pending JP2000207235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11007372A JP2000207235A (en) 1999-01-14 1999-01-14 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11007372A JP2000207235A (en) 1999-01-14 1999-01-14 Information processor

Publications (1)

Publication Number Publication Date
JP2000207235A true JP2000207235A (en) 2000-07-28

Family

ID=11664150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11007372A Pending JP2000207235A (en) 1999-01-14 1999-01-14 Information processor

Country Status (1)

Country Link
JP (1) JP2000207235A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006085450A (en) * 2004-09-16 2006-03-30 Yamaha Corp Erroneous writing prevention circuit
JP2018149430A (en) * 2014-01-07 2018-09-27 株式会社藤商事 Game machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006085450A (en) * 2004-09-16 2006-03-30 Yamaha Corp Erroneous writing prevention circuit
JP2018149430A (en) * 2014-01-07 2018-09-27 株式会社藤商事 Game machine

Similar Documents

Publication Publication Date Title
US8397042B2 (en) Secure memory interface
CN114721493B (en) Chip starting method, computer equipment and readable storage medium
US10725845B2 (en) Methods of operating memory system
JPS6340925A (en) Memory initializing system
JP2000207235A (en) Information processor
KR100525537B1 (en) Applied Program Bungle Detection Apparatus and Method by Interrupt
JPS6074059A (en) Access control system for storage device
JPH0316655B2 (en)
JPS6329859A (en) Memory protection circuit
JPS6250863B2 (en)
JP2897687B2 (en) Flash memory data eraser
JPH08185354A (en) Memory managing device
KR920002829B1 (en) Memory access control system
JPS63250753A (en) Memory access checking system
JPH01261760A (en) Computer system
JPS6227423B2 (en)
JPH0336650A (en) Memory protecting system
JPH07244610A (en) Information processor
JPH02302855A (en) Memory control system
JPH064469A (en) Input/output device control system
JP2002304329A (en) Semiconductor device
JPS62229457A (en) Data transfer controller
US20080091889A1 (en) Memory control apparatus
JPH11176165A (en) Sequential-access semiconductor memory device
JPS61143852A (en) Protecting method of interruption vector