JPH0120778B2 - - Google Patents

Info

Publication number
JPH0120778B2
JPH0120778B2 JP59086363A JP8636384A JPH0120778B2 JP H0120778 B2 JPH0120778 B2 JP H0120778B2 JP 59086363 A JP59086363 A JP 59086363A JP 8636384 A JP8636384 A JP 8636384A JP H0120778 B2 JPH0120778 B2 JP H0120778B2
Authority
JP
Japan
Prior art keywords
keyword
reset
signal
power
microprocessor
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.)
Expired
Application number
JP59086363A
Other languages
Japanese (ja)
Other versions
JPS60230242A (en
Inventor
Junichi Kihara
Takashi Kosaka
Kenji Kikuchi
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
Original Assignee
Tokyo Shibaura Electric Co 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP59086363A priority Critical patent/JPS60230242A/en
Publication of JPS60230242A publication Critical patent/JPS60230242A/en
Publication of JPH0120778B2 publication Critical patent/JPH0120778B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)

Description

【発明の詳細な説明】 [発明の技術分野] この発明は、揮発性メモリを備えたプロセツサ
のリセツト要因を判別するリセツト要因判別方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a reset factor determination method for determining a reset factor of a processor equipped with a volatile memory.

[発明の技術的背景とその問題点] 一般に、この種のプロセツサでは、主として次
の3つの場合にリセツト(初期化)動作が行なわ
れる。
[Technical Background of the Invention and Problems Therewith] Generally, in this type of processor, a reset (initialization) operation is performed mainly in the following three cases.

電源投入時 オペレータパネルからのリセツト指示があつ
た場合 プロセツサの暴走検出回路が働いた場合
((ウオツチドタイマの検出時) 上記の場合には、システムとしてのリセツト
が必要であるため、プロセツサが有している揮発
性メモリのエリアは全てクリアされる。一方、上
記、の場合には、RAS機能のため、エラー
状態情報や実行情報を揮発性メモリ内のトレース
エリアにトレースし、揮発性メモリ内のワークエ
リア等をクリアする動作が行なわれる。
When the power is turned on When a reset instruction is received from the operator panel When the processor's runaway detection circuit is activated ((when the watch timer is detected) In the above cases, a system reset is required, so the processor has On the other hand, in the above case, because of the RAS function, error status information and execution information are traced to the trace area in volatile memory, and the work area in volatile memory is cleared. An operation to clear the area, etc. is performed.

このように、プロセツサにおけるリセツト動作
は、そのリセツト要因が上記であるか否かによ
つて異なる。そこで、従来のプロセツサでは、リ
セツト要因判定のために、(電源断→)電源投入
を記憶する専用のハードウエアフリツプフロツプ
を設け、リセツト信号入力時に当該フリツプフロ
ツプの内容を読込んで要因判定を行なう方式が採
用されていた。
In this way, the reset operation in the processor differs depending on whether the reset factor is one of the above. Therefore, in conventional processors, in order to determine the cause of a reset, a dedicated hardware flip-flop is provided to memorize the power-on (power-off → power-on), and when a reset signal is input, the contents of the flip-flop are read and the cause is determined. method was adopted.

このような従来方式では、リセツト要因に応じ
た正しいリセツト動作が行なわれるものの、リセ
ツト要因記憶用の専用のハードウエアフリツプフ
ロツプを必要とする欠点があつた。
Although such a conventional system performs a correct reset operation depending on the reset factor, it has the disadvantage of requiring a dedicated hardware flip-flop for storing the reset factor.

[発明の目的] この発明は上記事情に鑑みてなされたものでそ
の目的は、プロセツサのリセツト要因がハードウ
エアフリツプフロツプを用いることなく判別でき
るリセツト要因判別方式を提供することにある。
[Object of the Invention] The present invention has been made in view of the above-mentioned circumstances, and its object is to provide a reset factor determination method that can determine the reset factor of a processor without using a hardware flip-flop.

[発明の概要] この発明では、プロセツサが有する揮発性メモ
リ内に、キーワード設定用のキーワードエリアが
設けられる。上記プロセツサは、当該プロセツサ
へのリセツト信号入力時に、上記キーワードエリ
ア内のキーワードの読出しを行ない、読出しエラ
ー発生、または期待するキーワードと異なる場合
には電源断(電源断→電源投入)によるリセツト
と判定し、読出しエラーがなく且つ期待するキー
ワードと一致する場合には電源断以外のリセツト
と判定する。即ち、この発明は、揮発性メモリの
内容が電源断状態において不定となることを積極
的に利用したものである。
[Summary of the Invention] In the present invention, a keyword area for setting keywords is provided in a volatile memory of a processor. When a reset signal is input to the processor, the processor reads the keyword in the keyword area, and if a read error occurs or the keyword is different from the expected keyword, it determines that the reset is due to a power-off (power-off → power-on). However, if there is no read error and the keyword matches the expected keyword, it is determined that the reset is other than power-off. That is, the present invention actively utilizes the fact that the contents of volatile memory become undefined in a power-off state.

[発明の実施例] 第1図はこの発明の一実施例に係るプロセツサ
(データ処理装置)の構成を示す。図中、11は
全体の中心を成すマイクロプロセツサ、12はマ
イクロプロセツサ11の動作を規定する各種プロ
グラムが予め格納されているROM(プログラム
ROM)、13はRAM(揮発性メモリ)である。
RAM13の記憶領域には、トレースエリア1
4、およびワークエリア15など周知のエリアの
他に、所定の(規則性のある)キーワードが設定
されるキーワードエリア16が割当てられる。1
7はマイクロプロセツサ11から出力されるクロ
ツク信号18が供給される単安定マルチバイブレ
ータ(以下、モノマルチと称する)である。モノ
マルチ17は、上記クロツク信号18(周期T)
の例えば立上がりに応じて一定期間(T′、但し
T′>T)“H”(HIGH)レベルとなる信号を出力
する。19はマイクロプロセツサ11の暴走を検
出する暴走検出フリツプフロツプ(F/F)であ
る。暴走検出F/F19は、モノマルチ17から
の出力信号が供給されるプリセツト端子PR、シ
ステムの電源投入/断(オン/オフ)状態を示す
電源オン/オフ信号20が供給されるクリア端子
CLR、および出力端子Qを有している。この電
源オン/オフ信号20は、システム電源の投入に
応じて“L”(LOW)レベルから“H”(HIGH)
レベルに状態遷移し、電源断に先立つて“H”レ
ベルから“L”レベルに状態遷移する。暴走検出
F/F19の出力端子Qからの出力信号は、マイ
クロプロセツサ11の暴走を示す暴走検出信号
(ウオツチドグタイマ検出信号)21として、オ
アゲート22に供給される。このオアゲート22
には、上記電源オン/オフ信号20、更には図示
せぬオペレータパネルからのリセツト指示信号2
3も供給される。オアゲート22からの出力信号
は、リセツト信号24としてマイクロプロセツサ
11に供給される。
[Embodiment of the Invention] FIG. 1 shows the configuration of a processor (data processing device) according to an embodiment of the invention. In the figure, numeral 11 is a microprocessor that forms the center of the whole, and numeral 12 is a ROM (program
ROM), 13 is RAM (volatile memory).
The memory area of RAM13 includes trace area 1.
In addition to well-known areas such as 4 and work area 15, a keyword area 16 in which predetermined (regular) keywords are set is allocated. 1
Reference numeral 7 denotes a monostable multivibrator (hereinafter referred to as a monomulti) to which a clock signal 18 output from the microprocessor 11 is supplied. The monomulti 17 receives the clock signal 18 (period T).
For example, depending on the rise of
T'>T) Outputs a signal at "H" (HIGH) level. 19 is a runaway detection flip-flop (F/F) for detecting runaway of the microprocessor 11; The runaway detection F/F 19 includes a preset terminal PR to which an output signal from the monomulti 17 is supplied, and a clear terminal to which a power on/off signal 20 indicating the power on/off state of the system is supplied.
CLR, and an output terminal Q. This power on/off signal 20 changes from the "L" (LOW) level to the "H" (HIGH) level in response to the system power being turned on.
The state changes from the "H" level to the "L" level before the power is turned off. An output signal from the output terminal Q of the runaway detection F/F 19 is supplied to the OR gate 22 as a runaway detection signal (watchdog timer detection signal) 21 indicating that the microprocessor 11 has runaway. This or gate 22
In addition to the power on/off signal 20, a reset instruction signal 2 is sent from an operator panel (not shown).
3 is also supplied. The output signal from OR gate 22 is supplied to microprocessor 11 as a reset signal 24.

次に、この発明の一実施例の動作を第2図のフ
ローチヤートを参照して説明する。今、オアゲー
ト22に供給される電源オン/オフ信号20、暴
走検出信号21、またはリセツト指示信号23の
いずれかが“L”(LOW)レベルから“H”
(HIGH)レベルに状態遷移したものとする。こ
れにより、オアゲート22は、マイクロプロセツ
サ11(の所定の入力端子)に有効なリセツト信
号24を出力する。しかして、マイクロプロセツ
サ11がオアゲート22からのリセツト信号24
を検出すると、マイクロプロセツサ11の実行番
地はROM12の所定番地(一般には、プログラ
ムエリアの先頭番地、または最終番地)に移り、
当該番地から始まるプログラム(第2図のフロー
チヤート参照)が実行される。
Next, the operation of one embodiment of the present invention will be explained with reference to the flowchart of FIG. Now, any of the power on/off signal 20, runaway detection signal 21, or reset instruction signal 23 supplied to the OR gate 22 changes from the "L" (LOW) level to the "H" level.
It is assumed that the state has transitioned to the (HIGH) level. As a result, the OR gate 22 outputs a valid reset signal 24 to (a predetermined input terminal of) the microprocessor 11. Therefore, the microprocessor 11 receives the reset signal 24 from the OR gate 22.
When the execution address of the microprocessor 11 is detected, the execution address of the microprocessor 11 is moved to a predetermined address of the ROM 12 (generally the first address or the last address of the program area).
The program starting from the address (see the flowchart in FIG. 2) is executed.

まず、マイクロプロセツサ11は、RAM13
のキーワードエリア16の内容(キーワード)を
読出す(ステツプS11)。そして、マイクロプロ
セツサ11は、上記読出しにおいて読出しエラー
(パリテイエラー、ECCエラーなど)が発生した
か否かの判定を行ない(ステツプS12)、読出し
エラーの場合(YES判定の場合)には、電源断
(電源断→電源投入)によるリセツトであるもの
と判断する。この場合、マイクロプロセツサ11
は、後述するステツプS16、17を実行する。一
方、読出しエラーでない場合(ステツプS12での
判定がNO判定の場合)、マイクロプロセツサ1
1はキーワードエリア16からの読出しデータが
所定値(所定のキーワード)に一致するか否かの
判定を行なう(ステツプS13)。
First, the microprocessor 11 uses the RAM 13
The contents (keywords) of the keyword area 16 are read out (step S11). Then, the microprocessor 11 determines whether or not a read error (parity error, ECC error, etc.) has occurred during the above reading (step S12), and in the case of a read error (in the case of YES determination), It is determined that the reset was caused by a power outage (power off → power on). In this case, the microprocessor 11
executes steps S16 and 17, which will be described later. On the other hand, if there is no read error (if the determination in step S12 is NO), the microprocessor 1
1, it is determined whether the data read from the keyword area 16 matches a predetermined value (predetermined keyword) (step S13).

ステツプS13での判定がYES判定の場合、マイ
クロプロセツサ11は電源断以外の要因によるリ
セツトであると判断し、まずRAM13のトレー
スエリア14に、エラー状態情報や実行情報など
必要な情報を格納する(ステツプS14)。次にマ
イクロプロセツサ11は、ワークエリア15をク
リア(“0”書込み)する(ステツプS15)。
If the determination in step S13 is YES, the microprocessor 11 determines that the reset was caused by a factor other than a power outage, and first stores necessary information such as error status information and execution information in the trace area 14 of the RAM 13. (Step S14). Next, the microprocessor 11 clears the work area 15 (writes "0") (step S15).

これに対し、ステツプS13での判定がNO判定
の場合(即ち、キーワードエリア16からの読出
しデータが所定のキーワードに一致しなかつた場
合)マイクロプロセツサ11は(ステツプS12で
の判定がYES判定である場合と同様に)電源断
(電源断→電源投入)によるリセツトであるもの
と判断する。これは、一旦電源が遮断され、しか
る後電源が再投入された時点では、RAM13の
キーワードエリア16の内容は不定であり(即ち
データがランダムにセツト/リセツトの状態にあ
り)、したがつて読出しエラー或は所定のキーワ
ードとの不一致の必然性があることによる。マイ
クロプロセツサ11は、リセツト要因が電源断に
よるものであると判断すると、まずRAM13の
全領域をクリアする初期化動作(オール“0”書
込み)を行なう(ステツプS16)。次に、マイク
ロプロセツサ11は、RAM13のキーワードエ
リア16に所定のキーワードを書込む(ステツプ
S17)。
On the other hand, if the determination at step S13 is NO (that is, if the data read from the keyword area 16 does not match the predetermined keyword), the microprocessor 11 (if the determination at step S12 is YES) It is determined that the reset was caused by a power outage (power off → power on). This is because when the power is turned off and then turned on again, the contents of the keyword area 16 of the RAM 13 are undefined (that is, the data is randomly set/reset), and therefore cannot be read. This is due to the necessity of an error or a mismatch with a predetermined keyword. When the microprocessor 11 determines that the reset factor is due to a power outage, it first performs an initialization operation (writing all "0") to clear the entire area of the RAM 13 (step S16). Next, the microprocessor 11 writes a predetermined keyword into the keyword area 16 of the RAM 13 (step
S17).

[発明の効果] 以上詳述したようにこの発明によれば、プロセ
ツサのリセツト要因がハードウエアフリツプフロ
ツプを用いることなく判別できる。
[Effects of the Invention] As described in detail above, according to the present invention, the cause of a processor reset can be determined without using a hardware flip-flop.

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

第1図はこの発明の一実施例に係るプロセツサ
の構成を示す図、第2図は動作を説明するための
フローチヤートである。 11……マイクロプロセツサ、12……
ROM、13……RAM(揮発性メモリ)、16…
…キーワードエリア、22……オアゲート。
FIG. 1 is a diagram showing the configuration of a processor according to an embodiment of the present invention, and FIG. 2 is a flowchart for explaining the operation. 11...Microprocessor, 12...
ROM, 13...RAM (volatile memory), 16...
...Keyword Area, 22...Or Gate.

Claims (1)

【特許請求の範囲】 1 所定のキーワードが格納されたキーワードエ
リアを持つ揮発性メモリと、 リセツト要因となる電源断を示す第1の信号ま
たは電源断以外でリセツト要因となるものを示す
第2の信号が生じたときに、リセツト信号を出力
するリセツト信号出力手段と、 前記リセツト信号出力手段からのリセツト信号
を入力し、このリセツト信号入力時に前記揮発性
メモリの前記キーワードエリアからキーワードを
読出すプロセツサとを具備し、 前記プロセツサは、前記キーワードの読出しに
おいて読出しエラーが発生した場合、または前記
読出されたキーワードが期待するキーワードと異
なる場合には前記リセツト信号が前記電源断に起
因して発生されたものと判定し、前記キーワード
の読出しにおいて読出しエラーが発生せず、且つ
前記読出されたキーワードが期待するキーワード
と一致する場合には前記リセツト信号が前記電源
断以外のリセツト要因で発生されたものと判定す
ることを特徴とするリセツト要因判別方式。
[Scope of Claims] 1. A volatile memory having a keyword area in which a predetermined keyword is stored, and a first signal indicating a power outage that is a reset factor or a second signal indicating a reset factor other than a power outage. Reset signal output means for outputting a reset signal when a signal is generated; and a processor for inputting the reset signal from the reset signal output means and reading a keyword from the keyword area of the volatile memory when the reset signal is input. The processor is configured to generate the reset signal when a read error occurs in reading the keyword or when the read keyword is different from an expected keyword. If it is determined that the reset signal is generated due to a reset factor other than the power interruption, if no read error occurs in reading the keyword and the read keyword matches the expected keyword. A reset factor determination method characterized by determining.
JP59086363A 1984-04-28 1984-04-28 Reset factor discriminating system Granted JPS60230242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59086363A JPS60230242A (en) 1984-04-28 1984-04-28 Reset factor discriminating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59086363A JPS60230242A (en) 1984-04-28 1984-04-28 Reset factor discriminating system

Publications (2)

Publication Number Publication Date
JPS60230242A JPS60230242A (en) 1985-11-15
JPH0120778B2 true JPH0120778B2 (en) 1989-04-18

Family

ID=13884798

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59086363A Granted JPS60230242A (en) 1984-04-28 1984-04-28 Reset factor discriminating system

Country Status (1)

Country Link
JP (1) JPS60230242A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04103684U (en) * 1991-02-14 1992-09-07 松下電器産業株式会社 rainproof casing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53119637A (en) * 1977-03-28 1978-10-19 Nissin Electric Co Ltd Data checking system
JPS556608A (en) * 1978-06-29 1980-01-18 Toshiba Corp Computer restart system
JPS58121456A (en) * 1982-01-13 1983-07-19 Fujitsu Ltd Data annihilation preventing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53119637A (en) * 1977-03-28 1978-10-19 Nissin Electric Co Ltd Data checking system
JPS556608A (en) * 1978-06-29 1980-01-18 Toshiba Corp Computer restart system
JPS58121456A (en) * 1982-01-13 1983-07-19 Fujitsu Ltd Data annihilation preventing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04103684U (en) * 1991-02-14 1992-09-07 松下電器産業株式会社 rainproof casing

Also Published As

Publication number Publication date
JPS60230242A (en) 1985-11-15

Similar Documents

Publication Publication Date Title
US7246257B2 (en) Computer system and memory control method thereof
JPH0120778B2 (en)
JP2751822B2 (en) Memory control method for FIFO memory device
JP2729121B2 (en) Arithmetic processing unit
JP2600376B2 (en) Memory controller
JP2870202B2 (en) Method and apparatus for mutual monitoring between processors
US5007056A (en) Processing circuit having an error detecting and correcting circuit therein
US5497481A (en) Microcomputer computer system having plural programmable timers and preventing memory access operations from interfering with timer start requests
JPS60233743A (en) Fault detecting circuit of computer system
JP3172981B2 (en) Unused memory space access error detection circuit
JPS6072044A (en) Inspecting system of backup memory
JPS61160146A (en) Control system of address stack pointer device
JPH0444766B2 (en)
JPH1027153A (en) Bus transfer device
JPS60193046A (en) Detecting system for instruction exception
JPH0454534A (en) Tracer memory control circuit
JPH04291646A (en) Write monitoring device
JPH0540701A (en) Computer device
JPH06231002A (en) Microcomputer
JPS61196337A (en) Detecting system for unused area access of memory
JPH064412A (en) Local memory inspecting/correcting circuit
JPS59148200A (en) Detector of unfair writing
JPS5856126A (en) Data transfer device
JPH01284946A (en) Error correction system
JPH01166144A (en) Debugging system for firmware program