JPS59139462A - Error detecting device - Google Patents

Error detecting device

Info

Publication number
JPS59139462A
JPS59139462A JP58012821A JP1282183A JPS59139462A JP S59139462 A JPS59139462 A JP S59139462A JP 58012821 A JP58012821 A JP 58012821A JP 1282183 A JP1282183 A JP 1282183A JP S59139462 A JPS59139462 A JP S59139462A
Authority
JP
Japan
Prior art keywords
task
counter
memory
value
state
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
JP58012821A
Other languages
Japanese (ja)
Inventor
Tetsuya Kawakami
河上 哲也
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.)
Hitachi Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Engineering Co Ltd
Hitachi 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 Hitachi Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Engineering Co Ltd
Priority to JP58012821A priority Critical patent/JPS59139462A/en
Publication of JPS59139462A publication Critical patent/JPS59139462A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0715Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a system implementing multitasking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To enable limitation of a task that generated an error and enable time out check in a state of waiting in addition to acting state by providing a counter for each task and setting a value to the counter at the time of starting the task. CONSTITUTION:When each task starts processing, an operation system OS sets (1x-)2 to the counter of corresponding task. After completion of processing (F20) of the task, (00...)2 is set to the counter of corresponding task, i.e. it is cleared. By such a counter, it becomes possible to check time out in a waiting state in addition to the state of action. When a select signal 51 is supposed as 1, as selectors (SEL) 11, 12 select 1 side, a memory 10 can be accessed making the number (TN) 52 of started or completed task an address. When write pulse is put in the memory 10, set value 53 is set to the memory 10 as write data.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はプログラムの工2−検出装置に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a program process detection device.

〔従来技術〕[Prior art]

プログラムのエラーを検出し誤動作や他プログラムの破
壊を防ぐ方法としては、グロテクションチェック、イン
バリッド命令チェック等の色々なものがあるが、その中
の一つにウオッチドグタイマ−によるチェックがある。
There are various methods for detecting program errors and preventing malfunctions and destruction of other programs, such as protection checks and invalid instruction checks, and one of them is a check using a watchdog timer.

このチェックは、プログラムのループ等の一見計算機が
正常動作を行っている様に見えるエラー全検出するもの
で、一般的には以下の様に行われている。
This check is to detect all errors, such as program loops, that at first glance seem to indicate that the computer is operating normally, and is generally performed as follows.

まず計算機内にウオッチドグタイマ−用カウンタを持ち
、ハードでこのカウンタを一定周期で減算し、このカウ
ンタの値がある値、例えば胃0”になった時エラーを出
方する。エラーとならない様にするためには、このカラ
/りにプログラムで一定時間以内に値を再設定してやる
必要があシ、この処理は通常、最も優先レベルが低く、
周期起動されるタスク(以下WDTタスクと略す)とし
て構成される。従ってそれよシ優先レベルの高いタスク
のプログラムがループして動いたままの状態になると、
その間WDTタスクの処理、すなわちカウンタへの値の
再設定が行えず、一定時間後にエラーが出力される。
First, the computer has a counter for the watchdog timer, and the hardware subtracts this counter at regular intervals. When the value of this counter reaches a certain value, for example, 0", an error is generated. To avoid errors, In order to do this, it is necessary to programmatically reset the value within a certain period of time, and this process usually has the lowest priority level.
It is configured as a task (hereinafter abbreviated as WDT task) that is activated periodically. Therefore, if the program of a task with a high priority level continues to run in a loop,
During this time, the WDT task cannot be processed, that is, the value cannot be reset to the counter, and an error is output after a certain period of time.

しかし、このチェック方法には次の様な問題がある。However, this checking method has the following problems.

(1)  どのタスクがエラーを起こしたかは、計算機
を止めて分析しないと分からない。
(1) You cannot know which task caused the error unless you stop the computer and analyze it.

(理由)あるタスクのプログラムがループ状態になって
いても、そのタスクより優先、レベルの高いタスクは動
作可能である。従って、エラー発生時点に動作していた
タスクがエラーの原因とは限らない。
(Reason) Even if the program of a certain task is in a loop state, tasks with higher priority and level than that task can operate. Therefore, the task that was running at the time the error occurred is not necessarily the cause of the error.

(2)、タスクが事象待ち状態になり、その事象が発生
しないといったエラーを検出出来ない。
(2) It is not possible to detect an error in which a task enters an event waiting state and the event does not occur.

(理由)同期を取るために、タスクがある事象の発生金
持つ状態(以下WA I T状態と略す)になり、その
事象が何らかの原因が発生しないために、WAIT状態
の′!まで次の処理に移れないといったエラーの場合が
ある。しかし、そのタスクはWAIT状態であっても動
作している訳ではないので、WDTタスクは動作出来、
それゆえこのエラーは検出できない。
(Reason) In order to achieve synchronization, a task enters a state in which it has received the occurrence of a certain event (hereinafter referred to as WAIT state), and since the event does not occur for some reason, the task is in the WAIT state. There may be errors such as not being able to move on to the next process until the next step. However, even if the task is in the WAIT state, it is not running, so the WDT task cannot run.
Therefore this error cannot be detected.

〔発明の目的〕[Purpose of the invention]

従って、本発明の目的は上記の問題を解決するエラー検
出装置を提供することにある。
SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide an error detection device that solves the above problems.

〔発明の概要〕[Summary of the invention]

本発明の特徴は、タスクごとにカウンタを設け、タスク
開始時にそのカウンタに値を設定し、そしてそのカウン
タの値をハードで一定周期で更新し、カウンタの値が特
定の値となった時に、そのタスクを工2−とすることに
ある。
A feature of the present invention is that a counter is provided for each task, a value is set in the counter at the start of the task, and the value of the counter is updated by hardware at a fixed period. When the value of the counter reaches a specific value, The task is to designate it as work 2-.

〔発明の実施例〕[Embodiments of the invention]

以下本発明の一実施例を図面を用いて説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例のハード構成図である。FIG. 1 is a hardware configuration diagram of an embodiment of the present invention.

ここではタスクごとのカウンタをメモリ10で実現して
いる。各タスクごとにメモリ1oの一語が割当てられ、
その構成全第2図に示す。この−語は16 bitから
なシ、ビット0はそのタスクが動作中、待ち状態(値が
“1″の時)か、起動されてない状態(値が0”の時)
かを示し、残シ1s bitで2進のカララメを構成す
る。第3図は各タスクの動きを示した図である。各タス
クが処理(F20)を開始するに尚ってO8は該当タス
クのカウンタに(1厚  ・旧・・X)z kセットす
る(FIO)。(K・・・・・・xLO値は、少なくと
も正常動作時の該尚タスクの処理時間(カウンタが更新
される周期で換算したもの)よシ大きい値とする。そし
てタスクの処理(F20)が終了した後、該当タスクの
カフ/りに(OO・・・・・・0)zをセット、すなわ
ちクリアする。この様なカウンタにより動作中に加えて
待ち状態にある時のタイムアウトもチェック可能になる
Here, a counter for each task is realized by the memory 10. One word of memory 1o is allocated for each task,
The entire configuration is shown in Figure 2. This word consists of 16 bits. Bit 0 indicates whether the task is running, waiting (when the value is "1"), or not activated (when the value is "0").
The remaining 1s bit constitutes a binary color scheme. FIG. 3 is a diagram showing the movement of each task. When each task starts processing (F20), O8 sets the counter of the corresponding task to (1 thick, old, . . . X)z k (FIO). (K...xLO value is at least a value larger than the processing time of the task in question during normal operation (converted to the cycle at which the counter is updated).Then, the task processing (F20) After finishing, set (OO...0)z in the corresponding task's counter, that is, clear it.With such a counter, it is possible to check the timeout while in the waiting state as well as during the operation. Become.

以下、第1図に戻ってハードの動作を説明する。Hereinafter, referring back to FIG. 1, the operation of the hardware will be explained.

まず、メモリ10によるカウンタに償金セットする動作
を説明する。
First, the operation of setting the redemption amount in the counter by the memory 10 will be explained.

セレクト信号51e”l”とすると、各セレクタ(SE
L)11.12は11”側を選択するので、開始あるい
は終了するタスク番号(TN)52全アドレスとしてメ
モリ10をアクセス出来、ライトハルス全メモリ10に
入れると7、設定値53がライトデータとしメモリ10
にセットされる。
When the select signal 51e is "l", each selector (SE
L) Since 11.12 selects the 11" side, the memory 10 can be accessed as the entire address of the task number (TN) 52 to be started or ended, and if it is stored in the entire Reithals memory 10, 7 and the set value 53 will be the write data. memory 10
is set to

次にメモリ10によるカウンタ全一定周期で更新する際
の動作を説明する。
Next, an explanation will be given of the operation when the counter is updated at a constant period by the memory 10.

セレクト信号51全′″0″とすると、各8EI。If the select signal 51 is all ``0'', each 8EI.

11.12は“O”側音選択するので、タスク番号(T
N)54でメモリ10をアクセス出来る。
11.12 selects the “O” sidetone, so the task number (T
N) 54 can access the memory 10.

なお同−TN54でのメモリ10のアクセス間隔は一定
周期とし、全タスク番号で順番にアクセスする。メモリ
1oから続出されたカウンタ1直は、減算器13に入力
され、値が“0”の時はそのまま、また”0”以外の時
は”−1”されて出方される。これらの切換えを行うの
が“0”チェック回路14とセレクタ(SEL)15で
ある。そして減算されたカウンタ値はS ELI 2=
i経由して一定時間後にメモリ10内の前記のカラ/り
値の所に書込まれ、この様にしてカウンタの値は更新さ
れる。
Note that the access interval of the memory 10 in the same TN54 is a constant cycle, and all task numbers are accessed in order. The counter 1 value successively outputted from the memory 1o is inputted to the subtracter 13, and when the value is "0", it is output as is, and when the value is other than "0", it is output after being subtracted by "1". The "0" check circuit 14 and the selector (SEL) 15 perform these switches. And the subtracted counter value is S ELI 2=
After a certain period of time, the color value is written into the memory 10 via i, and the counter value is updated in this way.

最後にエラー出力される場合の動作について説明する。The operation when an error is output at the end will be explained.

メモリ10によるカウンタ全タスク番号(T N)54
で更新中に、減算器13の出方上“0”チェック回路工
5でチェックし、o#でがっカウンタのビット0が”1
”(タスク動作中あるいは待ち状態)ならばエラー信号
55を出力する。従ってエラー信号55が出力された時
点でメモリl。
Counter total task number (T N) 54 by memory 10
During the update, the output of the subtracter 13 is checked by the circuit engineer 5 to check that it is "0", and the bit 0 of the counter is "1" in o#.
” (task is in operation or waiting state), an error signal 55 is output. Therefore, at the time the error signal 55 is output, the memory l.

全アクセスしているタスク番号(TN)54のタスクで
エラーが発生していることが分かる。
It can be seen that an error has occurred in the task with task number (TN) 54 that is being accessed completely.

〔発明の効果〕〔Effect of the invention〕

以上の様に本発明によれば、エラーを発生させたタスク
を限定出来、また動作中に加えて待ち状態にある時のタ
イムアウトチェックも可能となる効果がある。
As described above, according to the present invention, it is possible to limit the task that caused the error, and it is also possible to perform a timeout check while in the waiting state as well as during operation.

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

第1図は本発明の一実施例のハード構成図、第2図はメ
モリによシカウンタの構成図、第3図は各タスクの動き
金示した図である。 10・・・メモ1ハ 13・・・減算器、16・・・”
0“チェック回路。 弔1図 ERRσR
FIG. 1 is a hardware configuration diagram of an embodiment of the present invention, FIG. 2 is a configuration diagram of a memory counter, and FIG. 3 is a diagram showing the movement amount of each task. 10...Memo 1c 13...Subtractor, 16..."
0" check circuit. Funeral 1 diagram ERRσR

Claims (1)

【特許請求の範囲】[Claims] 1、計算機システムにおいて、タスクごとのカウンタと
、該カウンタに値セットする機構と、該カウンタを一定
周期で更新する機構を有し、該カウンタが特定の値にな
った時に該タスクをエラーとすることを特徴とするエラ
ー検出装置。
1. In a computer system, each task has a counter, a mechanism for setting a value in the counter, and a mechanism for updating the counter at a constant cycle, and when the counter reaches a specific value, the task is marked as an error. An error detection device characterized by:
JP58012821A 1983-01-31 1983-01-31 Error detecting device Pending JPS59139462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58012821A JPS59139462A (en) 1983-01-31 1983-01-31 Error detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58012821A JPS59139462A (en) 1983-01-31 1983-01-31 Error detecting device

Publications (1)

Publication Number Publication Date
JPS59139462A true JPS59139462A (en) 1984-08-10

Family

ID=11816045

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58012821A Pending JPS59139462A (en) 1983-01-31 1983-01-31 Error detecting device

Country Status (1)

Country Link
JP (1) JPS59139462A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60175156A (en) * 1984-02-20 1985-09-09 Meidensha Electric Mfg Co Ltd Abnormality monitoring system of computer
JPS63163932A (en) * 1986-12-26 1988-07-07 Fuji Electric Co Ltd System monitoring system for control computer
JPH03288942A (en) * 1990-04-05 1991-12-19 Zexel Corp Program run-away detecting method for microcomputer

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60175156A (en) * 1984-02-20 1985-09-09 Meidensha Electric Mfg Co Ltd Abnormality monitoring system of computer
JPS63163932A (en) * 1986-12-26 1988-07-07 Fuji Electric Co Ltd System monitoring system for control computer
JPH03288942A (en) * 1990-04-05 1991-12-19 Zexel Corp Program run-away detecting method for microcomputer

Similar Documents

Publication Publication Date Title
US7340574B2 (en) Method and apparatus for synchronizing an industrial controller with a redundant controller
RU2437144C2 (en) Method to eliminate exception condition in one of nuclei of multinuclear system
JPS58121457A (en) Information processing device
JPS59139462A (en) Error detecting device
US5261084A (en) Error judgment method
JP2988518B2 (en) Multiprocessor control method
JPH04125753A (en) On-lined diagnostic system for memory
JPS62278642A (en) Retrial control system
CN114461280A (en) BMC double-mirror image flash writing method and related device
CN116089164A (en) Method and device for recovering fault point forward scrolling and storage medium
JPS60222944A (en) Memory parity error processing system
JPH06149765A (en) Automatic resetting system for common memory exclusive control
JPH0149975B2 (en)
JPS5827538B2 (en) Mutual monitoring method
JPS59231798A (en) Data processor
JPS63155330A (en) Microprogram controller
JPS6130296B2 (en)
JPS6074052A (en) History memory control system
JPH06324941A (en) Restart processing method
JPS6029843A (en) Microprogram controller
JPS6145345A (en) Swapping control system
JPS63156251A (en) Diagnosing method for check circuit
JPS60169953A (en) Abnormality detecting method of computer
JPH01243153A (en) System for controlling error
JPS6132701B2 (en)