JPH02105228A - Microprocessor operation confirming system - Google Patents

Microprocessor operation confirming system

Info

Publication number
JPH02105228A
JPH02105228A JP63258255A JP25825588A JPH02105228A JP H02105228 A JPH02105228 A JP H02105228A JP 63258255 A JP63258255 A JP 63258255A JP 25825588 A JP25825588 A JP 25825588A JP H02105228 A JPH02105228 A JP H02105228A
Authority
JP
Japan
Prior art keywords
microprocessor
area
program
signal
rom
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
JP63258255A
Other languages
Japanese (ja)
Inventor
Yasuhiro Aso
麻生 泰弘
Yuzo Okuyama
奥山 裕蔵
Naoyuki Izawa
井沢 直行
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63258255A priority Critical patent/JPH02105228A/en
Publication of JPH02105228A publication Critical patent/JPH02105228A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To surely detect the operation abnormality of a microprocessor by outputting a signal representing abnormality when the microprocessor makes access to a program ROM area and also, outputs the readout signal of a RAM. CONSTITUTION:A program area detection circuit 13 judges whether an address outputted from the microprocessor 1 makes access to, for example, the area of a program ROM 11 or the area other than that. In such a case, since access only to the area of the ROM 11 is performed when the processor 1 performs an ordinary operation, and also, a control signal is a program data readout signal PSN, a case where the control signal is the readout signal RD of RAM data is detected as the operation abnormality of the processor 1. In other words, the circuit 13 outputs 0 when the access to the area of the ROM 11 is performed, and the output of a NOR gate 14 goes to a level 1 when the signal RD is set at a level 0, then, the abnormality of the processor 1 is outputted. In such a manner, it is possible to surely detect the operation abnormality of the processor 1.

Description

【発明の詳細な説明】 [概要] マイクロプロセッサの動作確認に関するマイクロプロセ
ッサの動作確認方式に関し、 マイクロプロセッサの動作異常を確実に検出することを
目的とし、 マイクロプロセッサがプログラムROMからプログラム
データを読出す時に、マイクロプロセッサから出力され
るアドレスを受けて、当該プログラム以外の領域をアク
セスしたことを検出するプログラムエリア検出回路を設
け、該プログラムエリア検出回路の出力とマイクロプロ
セッサがRAMからのデータを読出すリード信号とのノ
ア出力をマイクロプロセッサの異常通知信号として用い
るように構成する。
[Detailed Description of the Invention] [Summary] Regarding a microprocessor operation confirmation method related to microprocessor operation confirmation, the microprocessor reads program data from a program ROM, with the aim of reliably detecting abnormalities in the microprocessor operation. Sometimes, a program area detection circuit is provided that receives an address output from a microprocessor and detects that an area other than the program has been accessed, and the output of the program area detection circuit and the microprocessor read data from the RAM. The NOR output with the read signal is configured to be used as an abnormality notification signal for the microprocessor.

[産業上の利用分野] 本発明はマイクロプロセッサの動作確認に関するマイク
ロプロセッサの動作確認方式に関し、更に詳しくは動作
プログラムが格納されているROMからプログラムを読
込む時におけるマイクロプロセッサの動作確認に関する
[Industrial Field of Application] The present invention relates to a microprocessor operation check method for checking the operation of a microprocessor, and more particularly to checking the operation of a microprocessor when reading a program from a ROM in which the operation program is stored.

[従来の技術] 従来のマイクロプロセッサの動作異常の検出は、プログ
ラムが定期的に外部ハードウェアのパルス監視回路に対
してパルスを送出する構成をとり、外部パルス監視回路
にパルスがこなくなったら異常と判断し、障害を通知す
る方法を採っていた。
[Prior Art] Conventionally, abnormal operation of a microprocessor is detected by using a configuration in which a program periodically sends pulses to a pulse monitoring circuit of external hardware, and when pulses no longer come to the external pulse monitoring circuit, an abnormality is detected. The company determined that this was the case, and adopted a method of notifying the company of the problem.

第4図は従来回路例を示す図である。図において、マイ
クロプロセッサ1はアドレス選択回路2に所定のアドレ
スを送り、該アドレス選択回路2は予め定められた領域
のアドレスであった場合に、その出力を“0”にする。
FIG. 4 is a diagram showing an example of a conventional circuit. In the figure, a microprocessor 1 sends a predetermined address to an address selection circuit 2, and the address selection circuit 2 sets its output to "0" if the address is in a predetermined area.

第5図はマイクロプロセッサ1で用いるアドレス空間の
割振りを示す図である。AはROM領域、BはRAM領
域、Cはここで用いるレジスタ割振り領域である。つま
り、マイクロプロセッサ1が動作正常の時には試験のた
めに定期的に送るアドレスは図の領域Cに対応するアド
レスを出力する。
FIG. 5 is a diagram showing the allocation of address space used in the microprocessor 1. A is a ROM area, B is a RAM area, and C is a register allocation area used here. That is, when the microprocessor 1 is operating normally, the address periodically sent for testing outputs an address corresponding to area C in the figure.

アドレス選択回路2は領域C内のアドレスが来た場合に
のみ、“0°を出力する。このアドレス選択回路2と書
込信号(ライト信号)WRとのノアが続くゲート3でと
られ、レジスタ4に与えられる。ノアゲート3は両方の
入力が“0”の時だけ“1”となる信号を出力する。一
方、レジスタ4にはマイクロプロセッサ1からデータも
出力されており、該レジスタ4はこのデータの“1”レ
ベルを前記ノアゲート3の出力でラッチして“1”デー
タを出力する。パルス監視回路5はこの“1”レベル信
号がきたら、マイクロプロセッサ1の動作は正常と判断
する。異常の場合には、レジスタ4から“1°レベル信
号が来ないことで判断することができる。
The address selection circuit 2 outputs "0°" only when an address within the area C arrives. A NOR between the address selection circuit 2 and the write signal (write signal) WR is taken at the subsequent gate 3, and the register The NOR gate 3 outputs a signal that becomes "1" only when both inputs are "0".On the other hand, data is also output from the microprocessor 1 to the register 4, and the register 4 outputs a signal that becomes "1" only when both inputs are "0". The "1" level of data is latched by the output of the NOR gate 3 and "1" data is output. When the pulse monitoring circuit 5 receives this "1" level signal, it determines that the operation of the microprocessor 1 is normal. Abnormality In this case, the determination can be made based on the fact that the 1° level signal does not come from the register 4.

[発明が解決しようとする課題] 上述したような従来の方式では、マイクロプロセッサ1
の異常が暴走に基づくものであった場合に、正常か異常
かの判断がつかないという不具合がある。つまり、マイ
クロプロセッサ1が暴走して、たまたま第5図の領域C
に相当するアドレスとデータを出した場合には、第4図
の回路は見掛は上正常と判断してしまう。つまり、パル
ス監視回路5に“1゛レベルの信号が入る結果、該パル
ス監視回路5は正常と判断してしまうのである。
[Problem to be solved by the invention] In the conventional system as described above, the microprocessor 1
There is a problem in that if the abnormality is due to runaway, it is difficult to determine whether it is normal or abnormal. In other words, the microprocessor 1 goes out of control and happens to be in the area C in Figure 5.
If the address and data corresponding to , are output, the circuit of FIG. 4 is judged to be apparently normal. In other words, as a result of a "1" level signal being input to the pulse monitoring circuit 5, the pulse monitoring circuit 5 is determined to be normal.

本発明はこのような課題に鑑みてなされたものであって
、マイクロプロセッサの動作異常を確実に検出すること
ができるマイクロプロセッサの動作確認方式を提供する
ことを目的としている。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a microprocessor operation confirmation method that can reliably detect malfunctions in the microprocessor.

[課題を解決するための手段] 第1図は本発明の原理ブロック図である。第4図と同一
のものは、同一の符号を付して示す。図において、11
はマイクロプロセッサ1を動作させるためのプログラム
が格納されているプログラムROM、12はデータの書
込みと読出しが可能なRAM、13はマイクロプロセッ
サ1から出力されるアドレスが所定の領域内にあるかど
うかを検出し、所定の領域内である場合にのみ“1°信
号を出力するプログラムエリア検出回路、14は該プロ
グラムエリア検出回路13とマイクロプロセッサ1から
出力されるRAMデータ読出し信号(リード信号)RD
とを受けるノアゲートである。
[Means for Solving the Problems] FIG. 1 is a block diagram of the principle of the present invention. Components that are the same as those in FIG. 4 are designated by the same reference numerals. In the figure, 11
1 is a program ROM in which a program for operating the microprocessor 1 is stored; 12 is a RAM in which data can be written and read; 14 is a RAM data read signal (read signal) RD output from the program area detection circuit 13 and the microprocessor 1;
It is the Noah Gate that receives this.

ここでは、RD倍信号、図に示すように“0”レベルで
あるものとする。図において、PSNはプログラムRO
MIIからのプログラムデータを読出す読出し信号であ
る。
Here, it is assumed that the RD multiplied signal is at the "0" level as shown in the figure. In the figure, PSN is the program RO
This is a read signal for reading program data from the MII.

〔作用〕[Effect]

プログラムエリア検出回路13は、マイクロプロセッサ
1から出力されるアドレスが例えば第5図の領域Aのよ
うにROMIIをアクセスするものか、それ以外の領域
をアクセ、スするものであるかどうかを判定する。マイ
クロプロセッサ1が正常動作をしている時には、領域A
(第5図参照)のみをアクセスしていてしかも制御信号
はPSN信号の筈である。つまり、プログラムROMI
Iに対してはプログラムデータの読出ししかありえない
。本発明は、以上の点に鑑みてマイクロプロセッサ1が
領域Aをアクセスしていて、しかも制御信号がRAMデ
ータの読出し信号(リード信号)RDである場合をマイ
クロプロセッサ1の動作異常として検出するものである
The program area detection circuit 13 determines whether the address output from the microprocessor 1 is for accessing ROMII, such as area A in FIG. 5, or for accessing another area. . When microprocessor 1 is operating normally, area A
(See FIG. 5), and the control signal is supposed to be the PSN signal. In other words, the program ROMI
For I, only program data can be read. In view of the above points, the present invention detects the case where the microprocessor 1 is accessing the area A and the control signal is the RAM data read signal (read signal) RD as an abnormal operation of the microprocessor 1. It is.

領域Aをアクセスしている時には、プログラムエリア検
出回路13は“0”を出力する。一方、マイクロプロセ
ッサ1のRAMデータ読出し信号RDがθレベルである
場合には、ノアゲート14の出力は“1”レベルとなる
。従って、この場合にはノアゲート14は図に示すよう
に“1”レベルの信号(マイクロプロセッサ異常)を出
力する。
When accessing area A, the program area detection circuit 13 outputs "0". On the other hand, when the RAM data read signal RD of the microprocessor 1 is at the .theta. level, the output of the NOR gate 14 is at the "1" level. Therefore, in this case, the NOR gate 14 outputs a "1" level signal (microprocessor abnormality) as shown in the figure.

また、マイクロプロセッサ1が領域A以外をアクセスし
ている時には、プログラムエリア検出回路13の出力は
“1″レベルとなるので、ノアゲト14の出力は常時“
0”となり、異常とみなさない。若し、マイクロプロセ
ッサ1が動作ストップした時には、ノアゲート14の出
力は“1”レベルか“0ルベルに固定されたままとなる
ので、マイクロプロセッサ1の異常を検出することもで
きる。
Furthermore, when the microprocessor 1 is accessing areas other than area A, the output of the program area detection circuit 13 is at the "1" level, so the output of the NOAGET 14 is always "1" level.
0" and is not considered abnormal. If the microprocessor 1 stops operating, the output of the NOR gate 14 remains fixed at the "1" level or "0 level", so an abnormality in the microprocessor 1 is detected. You can also.

[実施例] 以下、図面を参照して本発明の実施例を詳細に説明する
[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第2図はプログラムエリア検出回路13(第1図参照)
の具体的構成例を示す図である。図に示す実施例はアド
レスバスが8ビツトである場合を示している。この場合
には、ROMのアクセス領域が第5図に示すように#0
0〜#IF(#は16進を示す)であるものとすると、
420以上のアドレスはROM領域用ではないことにな
る。そこで、図に示すようにMSBからそれに続く3本
のビットのオアをとれば、目的にかなうことになる。
Figure 2 shows the program area detection circuit 13 (see Figure 1).
FIG. 2 is a diagram illustrating a specific configuration example. The embodiment shown in the figure shows a case where the address bus is 8 bits. In this case, the ROM access area is #0 as shown in FIG.
Assuming that it is 0 to #IF (# indicates hexadecimal),
Addresses above 420 are not for the ROM area. Therefore, as shown in the figure, ORing the three bits following the MSB will serve the purpose.

例えば、ROM領域領域アクセスしている時には、上位
3ビツトはいずれも“0°であるので、オアゲート20
の出力は“0”になる。これに対して、ROM領域以外
をアクセスしている時には、上位3ビツトの少なくとも
1つが“1#になるので、オアゲート20の出力は“1
°になる。
For example, when accessing the ROM area, the upper 3 bits are all “0°, so the OR gate 20
The output of becomes "0". On the other hand, when an area other than the ROM area is being accessed, at least one of the upper three bits becomes "1#", so the output of the OR gate 20 is "1".
It becomes °.

上述の説明では、マイクロプロセッサがROMからのデ
ータ読出しとRAMからのデータ読出しとで読出し信号
をそれぞれPSNとRDというふうに変えていた場合に
ついて説明したが、1ビツトの読出し/書込み信号(R
/W)信号として共通化することもできる。つまり、R
/W信号が1“レベルの時にリード信号、“0”レベル
の時にライト信号として用いるのである。
In the above explanation, the microprocessor changed the read signals PSN and RD when reading data from the ROM and from the RAM, respectively, but the 1-bit read/write signal (R
/W) It can also be shared as a signal. In other words, R
When the /W signal is at 1" level, it is used as a read signal, and when it is at "0" level, it is used as a write signal.

第3図は本発明の他の実施例を示す構成ブロック図であ
る。第1図と同一のものは、同一の符号を付して示す。
FIG. 3 is a block diagram showing another embodiment of the present invention. Components that are the same as those in FIG. 1 are designated by the same reference numerals.

図に示す実施例では、マイクロプロセッサ1のR/W信
号とプログラムエリア検出回路13のノア出力を異常通
知信号としている。
In the embodiment shown in the figure, the R/W signal of the microprocessor 1 and the NOR output of the program area detection circuit 13 are used as abnormality notification signals.

この例ではマイクロプロセッサ1がROM領域をアクセ
スしていて、しかもライト信号の時にノアゲート14の
出力は“1“レベルとなりマイクロプロセッサ異常を通
知することができる。
In this example, when the microprocessor 1 is accessing the ROM area and there is a write signal, the output of the NOR gate 14 becomes "1" level, which can notify that the microprocessor is abnormal.

[発明の効果] 以上、詳細に説明したように、本発明によればマイクロ
プロセッサがプログラムROM領域をアクセスし、しか
もRAMの読出し信号を出力した時に異常を示す信号を
出力することにより、マイクロプロセッサの動作異常を
確実に検出することができるマイクロプロセッサの動作
確認方式を提供することができる。
[Effects of the Invention] As described in detail above, according to the present invention, when the microprocessor accesses the program ROM area and outputs a RAM read signal, the microprocessor It is possible to provide a microprocessor operation confirmation method that can reliably detect malfunctions in the microprocessor.

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

第1図は本発明の原理ブロック図、 第2図はプログラムエリア検出回路の具体的構成例を示
す図、 第3図は本発明の他の実施例を示す構成ブロック図、 第4図は従来回路例を示す図、 第5図はアドレス空間の割振りを示す図である。 第1図において、 1はマイクロプロセッサ、 11はプログラムROM。 12はRAM。 13はプログラムエリア検出回路、 14はノアゲートである。
FIG. 1 is a block diagram of the principle of the present invention. FIG. 2 is a diagram showing a specific configuration example of a program area detection circuit. FIG. 3 is a configuration block diagram showing another embodiment of the present invention. FIG. 4 is a conventional block diagram. FIG. 5 is a diagram showing an example of a circuit, and FIG. 5 is a diagram showing address space allocation. In FIG. 1, 1 is a microprocessor, and 11 is a program ROM. 12 is RAM. 13 is a program area detection circuit, and 14 is a NOR gate.

Claims (1)

【特許請求の範囲】 マイクロプロセッサ(1)がプログラムROM(11)
からプログラムデータを読出す時に、マイクロプロセッ
サ(1)から出力されるアドレスを受けて、当該プログ
ラム以外の領域をアクセスしたことを検出するプログラ
ムエリア検出回路(13)を設け、 該プログラムエリア検出回路(13)の出力とマイクロ
プロセッサ(1)がRAM(12)からのデータを読出
すリード信号とのノア出力をマイクロプロセッサ(1)
の異常通知信号として用いるように構成したことを特徴
とするマイクロプロセッサの動作確認方式。
[Claims] The microprocessor (1) is a program ROM (11).
A program area detection circuit (13) is provided which receives an address output from the microprocessor (1) and detects access to an area other than the program when reading program data from the program area detection circuit (13). 13) and a read signal for microprocessor (1) to read data from RAM (12).
1. A method for checking the operation of a microprocessor, characterized in that it is configured to be used as an abnormality notification signal.
JP63258255A 1988-10-13 1988-10-13 Microprocessor operation confirming system Pending JPH02105228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63258255A JPH02105228A (en) 1988-10-13 1988-10-13 Microprocessor operation confirming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63258255A JPH02105228A (en) 1988-10-13 1988-10-13 Microprocessor operation confirming system

Publications (1)

Publication Number Publication Date
JPH02105228A true JPH02105228A (en) 1990-04-17

Family

ID=17317688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63258255A Pending JPH02105228A (en) 1988-10-13 1988-10-13 Microprocessor operation confirming system

Country Status (1)

Country Link
JP (1) JPH02105228A (en)

Similar Documents

Publication Publication Date Title
JPS6280733A (en) Information processor
JPH02105228A (en) Microprocessor operation confirming system
JPH0354652A (en) Trouble locating method for input/output port
JPH0239814B2 (en)
JPH02157952A (en) Storage device
JP2725680B2 (en) Bus error detection circuit
JP2685289B2 (en) Write enable signal check method
JPH02297650A (en) Receiver
JPH07302226A (en) Memory illegal access detection circuit
JPH0528006A (en) Microprocessor monitoring circuit
JPH0230060B2 (en)
JPH08263394A (en) Bus test system
JPS621037A (en) Access detecting system for memory undefined area
JPH0415737A (en) Memory device
JPS61279943A (en) Access detecting system for memory undefined area
JPH03126149A (en) Bus system diagnostic system
JPH02242452A (en) Memory card
JPH04182835A (en) Bus monitor device for multiprocessor system
JPH11161548A (en) Computer with runaway detection function
JPH08305637A (en) Storage
JPH0223446A (en) Access abnormal completion response system
JPH01287758A (en) Extension slot control system
JPH0520131A (en) Address monitoring system
JPH0467659B2 (en)
JPS6386053A (en) Information processor