JPS6363930B2 - - Google Patents
Info
- Publication number
- JPS6363930B2 JPS6363930B2 JP57234068A JP23406882A JPS6363930B2 JP S6363930 B2 JPS6363930 B2 JP S6363930B2 JP 57234068 A JP57234068 A JP 57234068A JP 23406882 A JP23406882 A JP 23406882A JP S6363930 B2 JPS6363930 B2 JP S6363930B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- flip
- flop
- clock
- tod
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
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)
Description
【発明の詳細な説明】
〔発明の技術分野〕
本発明は、TOD(Time Of Day)時計とイン
ターバル・タイマとを用いたタイムアウト検出方
式に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a timeout detection method using a TOD (Time Of Day) clock and an interval timer.
機械語命令はマイクロプログラムで実行されて
おり、機械語命令を実行する時間はマイクロプロ
グラムのステツプ数で定まる。しかし、マイクロ
プログラムの実行中に間違つた番地にジヤンプし
たり、割込み処理中に異常が発生すると、いつま
でたつても次の機械語命令を実行することが出来
ず、計算機がハングしてしまう。このような事態
の発生を防止するため、機械語命令の実行時間を
ハードウエアで監視し、監視時間を越えると、マ
シンチエツク割込みを起したり、エラー発生を保
守者に通告したりするためのタイムアウト検出回
路が設けられている。従来のタイムアウト検出回
路は自身でカウンタを有しているが、カウンタは
割合に大きな物量を必要とする。例えば、マシ
ン・クロツクが120nsのものとすると、1msをカ
ウントするためにはカウンタは8ビツトないし10
ビツトのフリツプ・フロツプを必要とする。
Machine language instructions are executed by a microprogram, and the time it takes to execute a machine language instruction is determined by the number of steps in the microprogram. However, if a microprogram jumps to the wrong address during execution or an error occurs during interrupt processing, the computer will be unable to execute the next machine language instruction no matter how long it takes, and the computer will hang. To prevent such situations from occurring, the execution time of machine language instructions is monitored by hardware, and when the monitoring time is exceeded, a machine check interrupt is generated or a system is installed to notify maintenance personnel of the occurrence of an error. A timeout detection circuit is provided. Conventional timeout detection circuits have their own counters, but the counters require a relatively large amount of material. For example, if the machine clock is 120 ns, the counter needs 8 bits or 10 bits to count 1 ms.
Requires a bit flip-flop.
本発明は、上記の考察に基づくものであつて、
計算機の本来有しているハードウエアを使用し、
しかも常に確実にタイムアウト検出を行い得るよ
うになつたタイムアウト検出方式を提供すること
を目的としている。
The present invention is based on the above considerations, and includes:
Using the computer's inherent hardware,
Moreover, it is an object of the present invention to provide a timeout detection method that can always perform timeout detection reliably.
そしてそのため、本発明のタイムアウト検出方
式は、タイムアウトの検出をTOD時計およびイ
ンターバル・タイマのいずれか一方を用いて行う
タイムアウト検出方式であつて、上記TOD時計
がストツプしていないときは上記TOD時計を用
いてタイムアウト検出を行い、上記TOD時計が
ストツプしているときには上記インターバル・タ
イマを用いてタイムアウト検出を行うことを特徴
とするものである。
Therefore, the timeout detection method of the present invention is a timeout detection method in which timeout is detected using either a TOD clock or an interval timer, and when the TOD clock is not stopped, the TOD clock is When the TOD clock is stopped, the timeout is detected using the interval timer.
以下、本発明を図面を参照しつつ説明する。 Hereinafter, the present invention will be explained with reference to the drawings.
図は本発明の1実施例のブロツク図である。図
において、1はTOD時計、2はインターバル・
タイマ、3はTODストツプ指示フリツプ・フロ
ツプ、4ないし7はAND回路、8はOR回路、9
はNOT回路、10と11はフリツプ・フロツプ
をそれぞれ示している。また、SEL0ないしSEL
2は選択信号を示している。 The figure is a block diagram of one embodiment of the invention. In the figure, 1 is the TOD clock and 2 is the interval clock.
Timer, 3 is TOD stop instruction flip-flop, 4 to 7 are AND circuit, 8 is OR circuit, 9
indicates a NOT circuit, and 10 and 11 indicate flip-flops, respectively. Also, SEL0 to SEL
2 indicates a selection signal.
TOD時計1およびインターバル・タイマ2は、
計算機が通常有しているものである。TOD時計
1の内容を更新するためには、セツト・クロツク
命令が発行される。そうすると、TOD時計1は
一旦ストツプし、その内容が所望の値に更新さ
れ、しかる後に起動される。TODストツプ指示
フリツプ・フロツプ3はTOD時計1をストツプ
させる信号を出力するものであり、論理「1」で
ストツプを、論理「0」でスタートを示す。
TOD時計1から1ms毎の繰返しパルス信号、
16ms毎の繰返しパルス信号および256ms毎の
繰返しパルス信号が取出される。インターバル・
タイマ2は、3.3ms毎に繰返しパルス信号を出
力する。1ms毎の繰返しパルス信号はAND回
路4の一方の入力に供給され、16ms毎の繰返し
パルス信号はAND回路5の一方の入力に供給さ
れ、256ms毎の繰返しパルス信号はAND回路6
の一方の入力に供給され、インターバル・タイマ
からの3.3ms毎の繰返しパルス信号はAND回路
7の一方の入力に供給される。AND回路4の他
方の入力には選択信号SEL0が供給され、AND
回路5の他方の入力には選択信号SEL1が供給さ
れ、AND回路6の他方の入力には選択信号SEL
2が供給され、AND回路7の他方の入力には
TOD時計ストツプ指示フリツプ・フロツプ3の
出力が供給される。1個の機械語命令に対応する
マイクロプログラムが実行されるとき、最初に
BOP(Beginning of operation)信号が生成さ
れ、最後にEOP(End of operation)信号が生成
される。OR回路8にはAND回路4ないし7の出
力信号およびBOP信号が入力される。OR回路8
の出力はフリツプ・フロツプ10,11のクロツ
ク端子に供給される。フリツプ・フロツプ9の上
側入力にはBOP信号を反転したものが印加され、
フリツプ・フロツプ9の下側入力にはBOP信号
が印加される。フリツプ・フロツプ10の上側出
力はフリツプ・フロツプ11の上側入力に印加さ
れる。 TOD clock 1 and interval timer 2 are
This is something that computers usually have. To update the contents of TOD clock 1, a set clock command is issued. Then, the TOD clock 1 is temporarily stopped, its contents are updated to the desired value, and then started. The TOD stop instruction flip-flop 3 outputs a signal to stop the TOD clock 1, and a logic "1" indicates a stop, and a logic "0" indicates a start.
Repeated pulse signal every 1ms from TOD clock 1,
A repetitive pulse signal every 16 ms and a repetitive pulse signal every 256 ms are taken out. interval·
Timer 2 repeatedly outputs a pulse signal every 3.3ms. The repetitive pulse signal every 1 ms is supplied to one input of the AND circuit 4, the repetitive pulse signal every 16 ms is supplied to one input of the AND circuit 5, and the repetitive pulse signal every 256 ms is supplied to one input of the AND circuit 6.
A repeating pulse signal every 3.3 ms from the interval timer is supplied to one input of the AND circuit 7. The selection signal SEL0 is supplied to the other input of the AND circuit 4, and
The selection signal SEL1 is supplied to the other input of the circuit 5, and the selection signal SEL is supplied to the other input of the AND circuit 6.
2 is supplied to the other input of the AND circuit 7.
The output of TOD clock stop instruction flip-flop 3 is supplied. When a microprogram corresponding to one machine language instruction is executed, first
A BOP (Beginning of operation) signal is generated, and finally an EOP (End of operation) signal is generated. The output signals of the AND circuits 4 to 7 and the BOP signal are input to the OR circuit 8. OR circuit 8
The output of is applied to the clock terminals of flip-flops 10 and 11. An inverted version of the BOP signal is applied to the upper input of flip-flop 9,
A BOP signal is applied to the lower input of flip-flop 9. The upper output of flip-flop 10 is applied to the upper input of flip-flop 11.
いま、選択信号SEL0が論理「1」で他の選択
信号が論理「0」であり、且つTOD時計1がス
トツプしていないものとする。このような状態の
下では、1ms毎の繰返しパルス信号がOR回路
8から出力される。BOP信号は論理「0」のま
まとすると、第1番目のパルス信号でフリツプ・
フロツプ10が論理「1」を出力し、第2番目の
パルス信号でフリツプ・フロツプ11は論理
「1」を出力する。フリツプ・フロツプ11の論
理「1」出力は、タイムアウト・エラーが発生し
たことを示す。機械語命令が正常に実行され、
BOP信号が1ms未満の時間間隔で生成される
とすると、フリツプ・フロツプ11の出力は論理
「1」になることはない。 Now, it is assumed that the selection signal SEL0 is logic "1", the other selection signals are logic "0", and the TOD clock 1 is not stopped. Under such conditions, a pulse signal repeating every 1 ms is output from the OR circuit 8. If the BOP signal is left at logic "0", the first pulse signal causes a flip.
Flop 10 outputs a logic "1" and on the second pulse signal flip-flop 11 outputs a logic "1". A logic "1" output of flip-flop 11 indicates that a timeout error has occurred. The machine language instruction is executed successfully,
If the BOP signal is generated at time intervals of less than 1 ms, the output of flip-flop 11 will never be a logic "1".
TOD時計1がストツプすると、OR回路8はイ
ンターバル・タイマ2からの3.3ms毎の繰返し
パルス信号を出力する。このような条件の下で
は、BOP信号が3.3ms未満の時間間隔で生成さ
れていると、フリツプ・フロツプ11が論理
「1」を出力することはない。なお、TOD時計ス
トツプ指示フリツプ・フロツプ3はTOD時計1
がエラー等で停止しているときも論理「1」を出
力するものである。 When the TOD clock 1 stops, the OR circuit 8 outputs a repetitive pulse signal from the interval timer 2 every 3.3 ms. Under these conditions, flip-flop 11 will never output a logic "1" if the BOP signal is generated at a time interval of less than 3.3 ms. Furthermore, TOD clock stop instruction flip/flop 3 is TOD clock 1.
It outputs logic ``1'' even when it is stopped due to an error or the like.
以上の説明から明らかなように、本発明のタイ
ムアウト検出方式は、物量が少なくて済むこと及
びセツト・クロツク命令実行時における計算機の
ハング状態をも検出できるという効果を有してい
る。
As is clear from the above description, the timeout detection method of the present invention has the advantage that it requires only a small amount of equipment and can also detect a hang state of the computer when executing a set clock instruction.
図は本発明の1実施例のブロツク図である。
1……TOD時計、2……インターバル・タイ
マ、3……TODストツプ指示フリツプ・フロツ
プ、4ないし7……AND回路、8……OR回路、
9……NOT回路、10と11……フリツプ・フ
ロツプ。
The figure is a block diagram of one embodiment of the invention. 1...TOD clock, 2...Interval timer, 3...TOD stop instruction flip-flop, 4 to 7...AND circuit, 8...OR circuit,
9...NOT circuit, 10 and 11...flip-flop.
Claims (1)
ターバル・タイマのいずれか一方を用いて行うタ
イムアウト検出方式であつて、上記TOD時計が
ストツプしていないときは上記TOD時計を用い
てタイムアウト検出を行い、上記TOD時計がス
トツプしているときには上記インターバル・タイ
マを用いてタイムアウト検出を行うことを特徴と
するタイムアウト検出方式。1 A timeout detection method in which timeout is detected using either the TOD clock or an interval timer, and when the TOD clock has not stopped, timeout is detected using the TOD clock, and the TOD clock A timeout detection method characterized in that when the timeout is stopped, timeout detection is performed using the interval timer.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57234068A JPS59125459A (en) | 1982-12-30 | 1982-12-30 | Time-out detection system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57234068A JPS59125459A (en) | 1982-12-30 | 1982-12-30 | Time-out detection system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS59125459A JPS59125459A (en) | 1984-07-19 |
| JPS6363930B2 true JPS6363930B2 (en) | 1988-12-09 |
Family
ID=16965082
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57234068A Granted JPS59125459A (en) | 1982-12-30 | 1982-12-30 | Time-out detection system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS59125459A (en) |
-
1982
- 1982-12-30 JP JP57234068A patent/JPS59125459A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS59125459A (en) | 1984-07-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4586180A (en) | Microprocessor fault-monitoring circuit | |
| GB1462690A (en) | Computer comprising three data processors | |
| JPS6152496B2 (en) | ||
| EP0190370B1 (en) | Device for improving the detection of non-operational states in a non-attended interrupt-driven processor | |
| DE3369015D1 (en) | Arrangement in the command circuit of a pipe-line processor for instruction interrupt and report | |
| EP0130432B1 (en) | Apparatus for suspending a system clock when an initial error occurs | |
| JPS6363930B2 (en) | ||
| US4710928A (en) | Method and apparatus for detecting the uncontrollable operation of a control system | |
| JPS62262165A (en) | Information processor | |
| JPH04148246A (en) | Watchdog timer | |
| JPS5916054A (en) | Microprocessor | |
| JPS6051141B2 (en) | Program runaway detection method | |
| SU1168949A1 (en) | Device for detecting and eliminating faults in object control block | |
| SU881753A1 (en) | Processor testing device | |
| JPH053016B2 (en) | ||
| JPS6213697B2 (en) | ||
| JPS5911424A (en) | Processing circuit of interruption signal | |
| JPH053017B2 (en) | ||
| JPH01290041A (en) | Interruption control circuit | |
| JPS60262252A (en) | Monitor system for runaway of microprocessor | |
| JPS59148961A (en) | Monitoring system of operation of processor | |
| JPS62279430A (en) | Information processor | |
| JPH01162945A (en) | Information processor | |
| JPS62296246A (en) | Processor system | |
| JPS61107286A (en) | Testing system of crt display control circuit |