JP2698431B2 - Timeout detection device - Google Patents

Timeout detection device

Info

Publication number
JP2698431B2
JP2698431B2 JP1148506A JP14850689A JP2698431B2 JP 2698431 B2 JP2698431 B2 JP 2698431B2 JP 1148506 A JP1148506 A JP 1148506A JP 14850689 A JP14850689 A JP 14850689A JP 2698431 B2 JP2698431 B2 JP 2698431B2
Authority
JP
Japan
Prior art keywords
timeout
time
register
event
instruction
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 - Fee Related
Application number
JP1148506A
Other languages
Japanese (ja)
Other versions
JPH0314140A (en
Inventor
達己 中田
哲也 荻原
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 JP1148506A priority Critical patent/JP2698431B2/en
Publication of JPH0314140A publication Critical patent/JPH0314140A/en
Application granted granted Critical
Publication of JP2698431B2 publication Critical patent/JP2698431B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 [概 要] CPUの一時休止を伴う命令の時間監視のためのタイム
アウト検出装置に関し、 従来、各事象毎の最適なタイムアウト時間の設定が困
難であり、またシステムの作動中に該タイムアウト時間
の設定を行うのが困難であった問題の解決を目的とし、 外部からのタイムアウト時間の設定値をシステム動作
とは非同期で受け入れる第1のレジスタと、該第1のレ
ジスタの値を受け取るシステムと同期して作動する第2
のレジスタと、第1のレジスタの内容を第2のレジスタ
へシステムに同期して移行指示する回路と、タイムアウ
トカウンタと、上記設定値の特定の値についてはタイム
アウトを検出せず、それ以外の設定値について上記カウ
ンタの計数値によりタイムアウトを検出する手段を設け
て構成する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] Regarding a timeout detection device for monitoring the time of an instruction accompanied by a temporary suspension of a CPU, it has conventionally been difficult to set an optimal timeout time for each event, and to operate the system. A first register for accepting an external time-out time setting value asynchronously with a system operation; and a first register for receiving the time-out time setting value from outside. A second operating in synchronization with the system that receives the value
, A circuit for instructing the contents of the first register to be transferred to the second register in synchronization with the system, a timeout counter, a timeout value is not detected for a specific value of the set value, and other settings are not performed. Means for detecting a timeout based on the count value of the counter is provided.

[産業上の利用分野] 情報処理システム中に設けられる、中央処理装置(以
下、単に「CPU」ともいう)の一時休止を伴う命令の時
間監視のためタイムアウト検出装置に関する。
[Industrial Application Field] The present invention relates to a timeout detection device provided in an information processing system for monitoring the time of an instruction accompanied by a temporary suspension of a central processing unit (hereinafter, also simply referred to as a “CPU”).

[従来の技術] タイムアウト検出装置は、I/O(入出力)命令、およ
びDIAGNOSE(診断)命令などのCPUの一時休止を伴うよ
うな命令の時間監視のために、少なくとも1つのタイム
アウトカウンタを持つ。このタイムアウトについてI/O
命令を例にとって説明する。CPUがI/O命令を実行する
と、I/O装置などが命令を受取り、応答を返すまでの
間、CPUは一時休止する。正常にI/O装置などが命令の応
答を返した場合はCPUの休止が解除され、再び次の命令
から処理を続行する。しかしI/O装置が何らかの原因に
より、応答しなかった場合は、CPUはいつまでも休止状
態のままになり、ひいてはシステムの停止につながって
しまう。この問題を回避するために、CPUの一時休止を
伴うような命令では、命令起動後、各命令によって定ま
るある一定時間は命令の終了を待つが、その一定時間を
越えた場合には、何らかの原因により命令が終結しなか
ったものとして、タイムアウト割込みを発生させ、タイ
ムアウト処理を行う。
2. Description of the Related Art A timeout detection device has at least one timeout counter for monitoring the time of an instruction such as an I / O (input / output) instruction and a DIAGNOSE (diagnosis) instruction that involves a pause of a CPU. . I / O for this timeout
This will be described using an instruction as an example. When the CPU executes the I / O command, the CPU temporarily suspends until the I / O device receives the command and returns a response. If the I / O device or the like normally returns a response to the instruction, the pause of the CPU is released, and the processing is resumed from the next instruction. However, if the I / O device does not respond for some reason, the CPU will remain in a dormant state forever, and eventually the system will stop. In order to avoid this problem, in the case of instructions that involve a temporary suspension of the CPU, after the instruction is started, a certain period of time determined by each instruction waits for the end of the instruction. As a result, a time-out interrupt is generated, and a time-out process is performed.

以下、具体的な例を上げて説明する。第2図は従来の
タイムアウト検出回路の構成例を示す図であり、同図
(a)は構成図を、同図(b)は構成図中のタイムアウ
トカウンタの計数状態を示している。
Hereinafter, a specific example will be described. FIG. 2 is a diagram showing a configuration example of a conventional timeout detection circuit. FIG. 2A shows a configuration diagram, and FIG. 2B shows a count state of a timeout counter in the configuration diagram.

図の例では、タイムアウト時間を計測すべき事象がA
−1〜A−3の3種類の場合の例であり、51、52はノア
回路(NOR)、53はタイムアウトカウンタ、54〜56はア
ンド回路(AND)、57はオア回路(OR)を表わし、 また、英字符の信号は下記の如きものである。
In the example of the figure, the event for which the timeout time is to be measured is A
5-1 to A-3 are examples of three types, where 51 and 52 are NOR circuits (NOR), 53 is a timeout counter, 54 to 56 are AND circuits (AND), and 57 is an OR circuit (OR). The signals of the alphabetic characters are as follows.

+OPSR_COUNT_DISABLE……タイムアウト検出回路の動
作制御信号であり、該信号が“1"の場合はタイムアウト
カウンタ53へのインクリメント信号(+INC)が入力さ
れなくなる。
+ OPSR_COUNT_DISABLE... This is an operation control signal of the timeout detection circuit. When this signal is “1”, the increment signal (+ INC) to the timeout counter 53 is not input.

−0.25_PULSE……タイムアウトカウンタの計数用の0.
25秒間隔のパルス、 +TIME_OUT_A……事象A−1〜A−3のいずれかでタ
イムアウトが検出された場合に“1"になる信号、 +INC……タイムアウトカウンタのインクリメント(I
ncrement)パルス、 +CLEAR……タイムアウトカウンタ53の計数内容のク
リア(Clear)信号、 +TIME_OUT_A−1〜A−3……各事象(A−1〜A−
3)のタイムアウトが検出された場合に“1"になる信号
である。
−0.25_PULSE …… 0 for counting of the timeout counter.
Pulse at 25-second intervals, + TIME_OUT_A: signal that becomes "1" when a timeout is detected in any of events A-1 to A-3, + INC: timeout counter increment (I
ncrement) pulse, + CLEAR .... Clear signal for clearing the count of the timeout counter 53, + TIME_OUT_A-1 to A-3 ..... each event (A-1 to A-)
This signal is set to “1” when the timeout of 3) is detected.

すなわち、本例では、事象A−1〜A−3中の任意の
事象A−n(例えばI/O命令終了待ち)が起こった場合
には、数百ミリ秒から数秒の一定周期を持ったカウント
パルス、例えば第2図(b)に示す0.25秒間隔のカウン
トパルス(−0.25SEC−PULSE)により、タイムアウトカ
ウンタ53が“+1"づつ更進されて行く。
That is, in this example, when an arbitrary event An (for example, waiting for completion of an I / O instruction) among the events A-1 to A-3 occurs, the fixed period is several hundred milliseconds to several seconds. The time-out counter 53 is incremented by "+1" by a count pulse, for example, a count pulse (-0.25SEC-PULSE) at intervals of 0.25 seconds shown in FIG. 2 (b).

該タイムアウトカウンタ53の計数内容が所定の値にな
ると(第2図の事象A−1の場合では3秒)、+TIME_O
UT_A−nなる信号によりタイムアウトを検出し、オア回
路(OR)57により+TIME_OUT_Aを発生し、該信号+TIME
_OUT_Aはノア回路(NOR)52に戻され、タイムアウトカ
ウンタ53のインクリメント信号(+INC)を停止し、カ
ウントアップしないよう構成されており、一旦タイムア
ウト信号が発生すると、当該事象A−nが落ちるまで、
タイムアウト信号+TIME_OUT_Aを発生し続ける。
When the count value of the timeout counter 53 reaches a predetermined value (3 seconds in the case of the event A-1 in FIG. 2), + TIME_O
Timeout is detected by the signal UT_A-n, and + TIME_OUT_A is generated by the OR circuit (OR) 57, and the signal + TIME_OUT_A is generated.
_OUT_A is returned to the NOR circuit (NOR) 52 to stop the increment signal (+ INC) of the timeout counter 53 and not to count up. Once the timeout signal is generated, until the event An falls,
Continue to generate timeout signal + TIME_OUT_A.

事象A−nが起こったもののタイムアウト発生前に該
事象が落ちた場合は、タイムアウトカウンタ53の計数内
容にクリアがかかるようになっている。
If the event An occurs but the event falls before the timeout occurs, the count of the timeout counter 53 is cleared.

また、第2図で示されるように監視事象を複数設け、
複数のタイムアウトを検出することが可能である。この
場合には、I/O命令終了待ちと、DIAGNOSE命令終了待ち
の事象のように同時に起こることが不可能な事象である
ことが必要である。
Also, a plurality of monitoring events are provided as shown in FIG.
It is possible to detect multiple timeouts. In this case, it is necessary that the event cannot occur at the same time, such as an I / O instruction completion waiting event and a DIAGNOSE instruction completion waiting event.

[発明が解決しようとする課題] 以上説明した従来例では、命令の種類により数百ミリ
秒から十数秒のタイムアウト時間が予め決められてお
り、これはI/O装置が高速化しても変化するものではな
かった。しかしながら、I/O装置が高速化すればI/O命令
に必要な時間は短縮され、よってタイムアウト時間は短
縮されるべきである。
[Problem to be Solved by the Invention] In the conventional example described above, the timeout period of several hundred milliseconds to ten and several seconds is predetermined according to the type of instruction, and this time-out time changes even if the speed of the I / O device increases. It was not something. However, if the speed of the I / O device increases, the time required for the I / O instruction should be reduced, and the timeout time should be reduced.

またDIAGNOSE命令を実行するSVP(サービスプロセッ
サ)が高速化されることによって、DIAGNOSE命令のタイ
ムアウト時間も短縮されるべきである。
In addition, as the speed of the SVP (service processor) for executing the DIAGNOSE instruction increases, the timeout time of the DIAGNOSE instruction should also be reduced.

特にオンラインシステムを構築するに当たっては、タ
イムアウト待ちによる数秒のCPUの停止でさえも、他のC
PUや他のシステムからハングアップ(Hung up)と見な
されてシステム停止してしまうことがあり、CPU停止時
間の短縮化が強く望まれている。
Especially when building an online system, even if the CPU is stopped for several seconds due to timeout waiting, other C
There is a case where the system is stopped due to being regarded as a hang-up (Hung up) by the PU or another system, and it is strongly desired to reduce the CPU stop time.

ここで、従来の一つの方法として、予め決められたタ
イムアウト時間を変更する方法があるが、これには、I/
O装置や、SVPを一度に高速化しなくてはならないが、し
かし一度にこれらの装置を高速化することは難しい。
Here, as one conventional method, there is a method of changing a predetermined timeout time.
O devices and SVP must be accelerated at once, but it is difficult to accelerate these devices at once.

また、新たに作るI/O装置などのタイムアウト時間を
実際動作させる前に、正確に予想することは非常に難し
い。よって、どうしても長めのタイムアウト時間を設定
せざるをえない。
In addition, it is very difficult to accurately estimate the timeout time of a newly created I / O device before actually operating it. Therefore, a longer timeout period must be set.

また、試験などにおいては、タイムアウトをあえて検
出させたくない場合が生ずる。たとえば、DIAGNOSE命令
のSVP側の処理を命令ごとのステップ単位(INSTRUCTION
−STEP)で確認する場合、CPUはSVPからの応答を待った
状態で停止していなければ、SVPからの応答処理の確認
ができない。このため従来はタイムアウト検出回路の操
作信号なるOPSRにタイムアウト検出禁止ビットを設け、
このビットが活性化した場合はタイムアウト検出を無効
化していた。しかし、この方法では、タイムアウト要因
の一つを活性化して、他の一つを無効化するようなこと
はできないため、I/O命令がタイムアウトした時の処理
を行うDIAGNOSE命令の確認ができない。これは、DIAGNO
SE命令をステップ単位で確認するためにタイムアウトの
検出を無効化すると、そのDIAGNOSE命令を起動するきっ
かけとなるI/O命令のタイムアウトが生じない為であ
る。
Further, in a test or the like, there is a case where a timeout is not desired to be detected. For example, the processing on the SVP side of the DIAGNOSE instruction is performed in steps (INSTRUCTION
In the case of confirming in (STEP), the CPU cannot confirm the response process from the SVP unless it is stopped in a state of waiting for a response from the SVP. For this reason, conventionally, a timeout detection inhibition bit is provided in the OPSR which is the operation signal of the timeout detection circuit,
When this bit is activated, timeout detection has been disabled. However, in this method, it is not possible to activate one of the timeout factors and invalidate the other, so that it is not possible to confirm the DIAGNOSE instruction that performs processing when the I / O instruction times out. This is DIAGNO
This is because if the detection of the timeout is invalidated in order to confirm the SE instruction in steps, the timeout of the I / O instruction that triggers the activation of the DIAGNOSE instruction does not occur.

また、一般にOPSRは動作中に変化しないレベル信号と
して設計されるので、OPSRを変更してタイムアウトを有
効/無効にしようとした場合、必ずCPUを停止させなけ
ればならなかった。
In addition, since the OPSR is generally designed as a level signal that does not change during operation, if the OPSR is changed to enable / disable the timeout, the CPU must always be stopped.

本発明は上記問題点に鑑みなされたものであり、各事
象毎に最適なタイムアウト時間の設定を可能とする効果
的なタイムアウト検出装置を提供することを目的とす
る。
The present invention has been made in view of the above problems, and has as its object to provide an effective timeout detection device that can set an optimal timeout period for each event.

[課題を解決するための手段] 本発明によれば、上述の目的は前記特許請求の範囲に
記載した手段により達成される。
[Means for Solving the Problems] According to the present invention, the above-mentioned object is achieved by the means described in the claims.

すなわち、本発明は、少くとも1つの事象のタイムア
ウトを検出するタイムアウト検出装置を有する情報処理
システムにおいて、外部からの少くとも1つの事象のタ
イムアウト時間の設定値を、システムの動作クロック信
号とは非同期で受け入れ一時的に保持する第1のレジス
タと、少くとも1つの事象のタイムアウト時間の設定値
を保持し、システムの動作クロック信号と同期して作動
する第2のレジスタと、上記第1のレジスタの内容を、
上記第2のレジスタへ移行する指示をシステムの動作ク
ロック信号と同期して行う回路と、タイムアウトの待ち
時間を計測するタイムアウトカウンタと、上記設定され
たタイムアウト時間の特定の値についてはタイムアウト
を検出することなく、該特定の値以外の場合には、上記
タイムアウトカウンタで計測した時間が上記設定された
タイムアウト時間に等しいか又は越えた場合にはタイム
アウト信号を発生する手段とを設けたことを特徴とする
タイムアウト検出装置である。
That is, the present invention relates to an information processing system having a timeout detecting device for detecting a timeout of at least one event, wherein the set value of the timeout time of at least one event from the outside is asynchronous with the operation clock signal of the system. A first register for receiving and temporarily storing a set value of a time-out period of at least one event and operating in synchronization with an operation clock signal of the system; The contents of
A circuit for issuing an instruction to shift to the second register in synchronization with an operation clock signal of the system, a timeout counter for measuring a timeout waiting time, and detecting a timeout for a specific value of the set timeout time Means for generating a timeout signal when the time measured by the timeout counter is equal to or greater than the set timeout time when the value is other than the specific value. This is a time-out detection device.

[作 用] 本発明では、タイムアウト時間の変更および無効化を
CPUの動作中に設定可能とすることによって、I/O装置、
SVPなどに最適なタイムアウト時間を設定可能とすると
ともに、その有効/無効を要因ごとに制御可能としてい
る。またタイムアウト時間の設定を可変化することによ
り、従来では大きめにタイムアウト時間を設定していた
ものが、実際に繰り返し動作させながら設定値を最大値
から順に小さくしていくことにより、最適なタイムアウ
ト時間を決定することが可能となる。
[Operation] In the present invention, the timeout period is changed and invalidated.
By making it configurable while the CPU is running, I / O devices,
Optimum timeout time can be set for SVP, etc., and its validity / invalidity can be controlled for each factor. In addition, by changing the setting of the timeout time, the conventional setting of the timeout time was rather large, but by actually reducing the setting value sequentially from the maximum value while operating repeatedly, the optimum timeout time was set. Can be determined.

これによりより短い時間でI/O装置などの異常を検出
することが可能となり、システム全体の性能向上にもつ
ながる。とくに非停止(NON−STOP)のシステムを構築
するためには非常に効果がある。
This makes it possible to detect an abnormality in an I / O device or the like in a shorter time, which leads to an improvement in the performance of the entire system. Particularly, it is very effective to construct a non-stop (NON-STOP) system.

より具体的には、第1図に従い、タイムアウト時間を
可変にするために、例えばタイムアウトレジスタを持た
せる。このタイムアウトレジスタには、通常システムが
動作する前にSVPに保存されている最適なタイムアウト
時間が設定される。
More specifically, according to FIG. 1, for example, a timeout register is provided to make the timeout time variable. This timeout register is set with the optimal timeout time stored in the SVP before the normal operation of the system.

ここで、タイムアウト時間は十数ビットのデータとし
て与えることも考えられるが、一般に数百ミリ〜数秒の
タイムアウト時間を設定するために数マイクロ秒の時間
まで設定できる必要はない。よって各タイムアウト時間
に対して1から4ビット程度のビット幅を持つレジスタ
を用意すれば十分である。
Here, it is conceivable that the timeout time is given as data of several tens of bits, but generally it is not necessary to be able to set a time of several microseconds in order to set a timeout time of several hundred milliseconds to several seconds. Therefore, it is sufficient to prepare a register having a bit width of about 1 to 4 bits for each timeout time.

このタイムアウトレジスタのとる少なくとも一つの
値、たとえばゼロをタイムアウト検出無効と定義し、こ
の時はタイムアウトを検出しない。その他の値について
はその要因で待たされる可能性のある最大時間から最小
時間の値を適当な時間間隔となるように割付る。タイム
アウトレジスタの設定は、例えば、SVPとのインタフェ
ースレジスタであるコンソールデータレジスタを介して
行われる。
At least one value of this timeout register, for example, zero is defined as timeout detection invalidity, and no timeout is detected at this time. With respect to other values, values from the maximum time to the minimum time that may be waited due to the cause are assigned so as to have an appropriate time interval. The setting of the timeout register is performed, for example, via a console data register that is an interface register with the SVP.

コンソールデータレジスタはSVPからの非同期信号に
よって書き込まれ、その内容が、SVPからのタイムアウ
トレジスタ書き込み指示をシステムクロックに同期化し
た信号によって、タイムアウトレジスタに書き込まれ
る。この時、同時にタイムアウトカウンタもクリアされ
る。このようにレジスタ書き込みをシステムクロックに
同期化させることにより、試験時などにCPUの動作中に
もタイムアウト設定値の変更を行うことが可能となる。
The console data register is written by an asynchronous signal from the SVP, and its contents are written to the timeout register by a signal that synchronizes the timeout register write instruction from the SVP with the system clock. At this time, the timeout counter is also cleared at the same time. By synchronizing the register writing with the system clock in this way, it is possible to change the timeout setting value even during the operation of the CPU during a test or the like.

[実施例] 第1図は本発明の一実施例を示す図であり、同図
(a)は実施例構成図、同図(b9はタイムアウトカウン
タの計数状態を示す図、同図(c)はタイムアウト時間
の設定について説明する図である。
Embodiment FIG. 1 is a diagram showing an embodiment of the present invention. FIG. 1A is a diagram showing the configuration of the embodiment, FIG. 1B is a diagram showing the counting state of a timeout counter, and FIG. FIG. 5 is a diagram for describing setting of a timeout time.

第1図において、1は事象A−1〜A−3が入力され
るノア回路(NOR)、2はカウントパルス等が入力され
るノア回路(NOR)、3は時間計測用のタイムアウトカ
ウンタ、4は事象A−1用のタイムアウト検出部、4aは
事象A−1用の2TO4デコーダ、4b〜4dは事象A−1用の
アンド回路(AND)、4eは事象A−1用のオア回路(O
R)、5は事象A−2用のタイムアウト検出部、6は事
象A−3用のタイムアウト検出部、7は各事象A−1〜
A−3のタイムアウト信号の論理和を得るためのオア回
路(OR)、8はサービスプロセッサ(SVP)からのタイ
ムアウト時間の設定値を受け取るコンソールデータレジ
スタ、9はタイムアウト時間の設定値をシステムクロッ
ク信号に同期してコンソールデータレジスタから導入す
るタイムアウトレジスタ、10はコンソールデータレジス
タからタイムアウトレジスタにタイムアウト時間の設定
値を導入するロード信号(LOAD)を発生する同期化回
路、11はオア回路(OR)を表わしている。
In FIG. 1, 1 is a NOR circuit (NOR) to which events A-1 to A-3 are input, 2 is a NOR circuit (NOR) to which a count pulse or the like is input, 3 is a time-out counter for measuring time, Is a timeout detector for event A-1, 4a is a 2TO4 decoder for event A-1, 4b to 4d are AND circuits (AND) for event A-1, and 4e is an OR circuit (O for event A-1)
R), 5 is a timeout detector for event A-2, 6 is a timeout detector for event A-3, and 7 is each of events A-1 to A-1.
A-3 is an OR circuit (OR) for obtaining a logical sum of the timeout signal, 8 is a console data register for receiving a set value of the timeout time from the service processor (SVP), and 9 is a system clock signal for setting the timeout value. A time-out register is introduced from the console data register in synchronism with the control signal. A synchronization circuit 10 generates a load signal (LOAD) for introducing the set value of the time-out time from the console data register to the time-out register. 11 is an OR circuit (OR). It represents.

また英字符で示される信号は、信号「LOAD」はタイム
アウトレジスタ9にタイムアウト時間の設定値をシステ
ムクロックに同期して導入するための信号であり、他の
信号については、第2図と同様である。
A signal indicated by alphabetic characters is a signal "LOAD" for introducing a set value of the timeout time into the timeout register 9 in synchronization with the system clock. Other signals are the same as those in FIG. is there.

以下図に基づき本発明の実施例の動作説明を行う。 The operation of the embodiment of the present invention will be described below with reference to the drawings.

ここでタイムアウトレジスタ9の事象A−1の設定値
は2ビット、カウントパルスは、第1図(b)に示す0.
25秒の周期を持つものとする。タイムアウトレジスタ9
の内容が値ゼロの時は、事象A−1のタイムアウト検出
が無効化され、レジスタ値1、2、3の時はそれぞれ、
1、2、3秒でタイムアウトとする。タイムアウトレジ
スタ9への設定値の書き込みは、まず、SVPから図示し
ない非同期バスによりコンソールデータレジスタ8に非
同期に書き込まれ、次にSVPからのタイムアウトレジス
タ9へのロード指示(LOAD)を同期化回路10で発生さ
せ、システムクロックで同期化した信号によりコンソー
ルデータレジスタ8の値をタイムアウトレジスタ9にシ
ステムクロックでロードする。この時、同時にタイムア
ウトカウンタ3の内容をクリア(Clear)する。これら
のことから、CPU動作中にタイムアウトレジスタ9の内
容を変更することが可能になる。タイムアウトレジスタ
9の値は2TO4のデコーダ4aによりデコードされ、設定値
1〜3の出力がそれぞれタイムアウトカウンタ3の所望
の出力および事象A−1を示す信号とでアンド回路4b〜
4dで論理積をとられ、それらの出力の論理和がオア回路
4eで取られ事象A−1のタイムアウトを示す信号+TIME
_OUT_A−1となる。同様に、事象A−2、A−3につい
ても対応するタイムアウトレジスタ9のビットが割り当
てられ、それぞれ固有のタイムアウト値が割り当てられ
る。
Here, the set value of the event A-1 of the time-out register 9 is 2 bits, and the count pulse is 0.0 shown in FIG.
It has a period of 25 seconds. Timeout register 9
Is zero, the timeout detection of event A-1 is disabled, and when the register values are 1, 2, and 3,
A timeout occurs in 1, 2, and 3 seconds. The writing of the set value to the timeout register 9 is first performed asynchronously from the SVP to the console data register 8 by an asynchronous bus (not shown), and then a load instruction (LOAD) from the SVP to the timeout register 9 is transmitted to the synchronization circuit 10. The value of the console data register 8 is loaded into the timeout register 9 by the system clock using the signal synchronized with the system clock. At this time, the contents of the timeout counter 3 are simultaneously cleared. For these reasons, the contents of the timeout register 9 can be changed during the operation of the CPU. The value of the time-out register 9 is decoded by the decoder 4a of 2TO4, and the outputs of the set values 1 to 3 are combined with the desired output of the time-out counter 3 and the signal indicating the event A-1, respectively.
The logical product is taken at 4d, and the logical sum of those outputs is ORed.
Signal + TIME indicating the timeout of event A-1 taken at 4e
_OUT_A-1. Similarly, for the events A-2 and A-3, the corresponding bits of the timeout register 9 are assigned, and unique timeout values are respectively assigned.

第1図(C)は上記タイムアウトレジスタ9の設定値
とタイムアウト時間の対応関係を示している。
FIG. 1C shows the correspondence between the set value of the timeout register 9 and the timeout time.

[発明の効果] 以上説明した如く、本発明のタイムアウト検出装置に
よれば、CPUの一時休止を伴う各事象毎に、タイムアウ
ト時間の変更および無効化をCPU動作中に設定可能に
し、I/O装置、SVPなどに最適なタイムアウト時間を設定
可能とするとともに、その有効/無効を要因ごとに制御
可能とする。
[Effects of the Invention] As described above, according to the timeout detection device of the present invention, it is possible to set the change and invalidation of the timeout period during the operation of the CPU for each event accompanied by the temporary suspension of the CPU, An optimal timeout period can be set for a device, an SVP, and the like, and its validity / invalidity can be controlled for each factor.

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

第1図は本発明の一実施例を示す図、第2図は従来のタ
イムアウト検出回路の構成例を示す図である。 1……事象A1〜A3が入力されるノア回路(NOR)、2…
…カウントパルス等が入力されるノア回路(NOR)、3
……時間計測用のタイムアウトカウンタ、4……事象A
−1用のタイムアウト検出部、4a……事象A−1用の2T
O4デコーダ、4b〜4d……事象A−1用のアンド回路(AN
D)、4e……事象A−1用のオア回路(OR)、5……事
象A−2用のタイムアウト検出部、6……事象A−3用
のタイムアウト検出部、7……各事象A−1〜A−3の
タイムアウト信号の論理和を得るためのオア回路(O
R)、8……コンソールデータレジスタ、9……タイム
アウトレジスタ、10……同期化回路、11……オア回路
(OR)
FIG. 1 is a diagram showing one embodiment of the present invention, and FIG. 2 is a diagram showing a configuration example of a conventional timeout detection circuit. 1 ... NOR circuit (NOR) to which events A1 to A3 are input, 2 ...
... NOR circuit (NOR) to which count pulse etc. is input, 3
...... Time-out counter for time measurement, 4 ... Event A
-1 timeout detector, 4a ... 2T for event A-1
O4 decoder, 4b to 4d ... AND circuit for event A-1 (AN
D), 4e: OR circuit (OR) for event A-1, 5: timeout detector for event A-2, 6: timeout detector for event A-3, 7: each event A OR circuit (O) for obtaining the logical sum of the timeout signals of -1 to A-3
R), 8: Console data register, 9: Timeout register, 10: Synchronization circuit, 11: OR circuit (OR)

フロントページの続き (56)参考文献 特開 昭63−118955(JP,A) 特開 昭63−73443(JP,A) 特開 昭63−73442(JP,A) 特開 昭62−172442(JP,A) 特開 昭60−235205(JP,A)Continuation of the front page (56) References JP-A-63-118955 (JP, A) JP-A-63-73443 (JP, A) JP-A-63-73442 (JP, A) JP-A-62-172442 (JP, A) , A) JP-A-60-235205 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】少くとも1つの事象のタイムアウトを検出
するタイムアウト検出装置を有する情報処理システムに
おいて、 外部からの少くとも1つの事象のタイムアウト時間の設
定値を、システムの動作クロック信号とは非同期で受け
入れ一時的に保持する第1のレジスタと、 上記少くとも1つの事象のタイムアウト時間の設定値を
保持し、システムの動作クロック信号と同期して作動す
る第2のレジスタと、 上記第1のレジスタの内容を、上記第2のレジスタへ移
行する指示をシステムの動作クロック信号と同期して行
う回路と、 タイムアウトの待ち時間を計測するタイムアウトカウン
タと、 上記設定されたタイムアウト時間の特定の値については
タイムアウトを検出することなく、該特定の値以外の場
合には、上記タイムアウトカウンタで計測した時間が上
記設定されたタイムアウト時間に等しいか又は越えた場
合にはタイムアウト信号を発生する手段とを、 設けたことを特徴とするタイムアウト検出装置。
An information processing system having a timeout detecting device for detecting a timeout of at least one event, wherein a set value of a timeout period of at least one event from outside is asynchronously set with an operation clock signal of the system. A first register for receiving and temporarily holding, a second register for holding a set value of the time-out time of the at least one event, and operating in synchronization with an operation clock signal of a system; A circuit that issues an instruction to shift the contents of the second register to the second register in synchronization with the operation clock signal of the system, a timeout counter that measures a waiting time for timeout, and a specific value of the set timeout time If a timeout is not detected and the value is other than the specific value, the timeout In the means for generating a time-out signal when the measured time exceeds or equals the set timeout period, a timeout detecting apparatus is characterized by providing.
JP1148506A 1989-06-13 1989-06-13 Timeout detection device Expired - Fee Related JP2698431B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1148506A JP2698431B2 (en) 1989-06-13 1989-06-13 Timeout detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1148506A JP2698431B2 (en) 1989-06-13 1989-06-13 Timeout detection device

Publications (2)

Publication Number Publication Date
JPH0314140A JPH0314140A (en) 1991-01-22
JP2698431B2 true JP2698431B2 (en) 1998-01-19

Family

ID=15454286

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1148506A Expired - Fee Related JP2698431B2 (en) 1989-06-13 1989-06-13 Timeout detection device

Country Status (1)

Country Link
JP (1) JP2698431B2 (en)

Also Published As

Publication number Publication date
JPH0314140A (en) 1991-01-22

Similar Documents

Publication Publication Date Title
US5353436A (en) Method and apparatus for synchronizing a plurality of processors
JPH05128080A (en) Information processor
JP2001318807A (en) Method and device for controlling task switching
JP2698431B2 (en) Timeout detection device
US5307488A (en) System interruption apparatus
JPH064301A (en) Time division interruption control system
JP2587881B2 (en) Image forming device
JP3331695B2 (en) Time synchronization method
JPH0426738B2 (en)
JPH09198280A (en) Method for generating pulse for system monitoring and real time operating system provided with pulse generation function for monitoring
JPH0667755A (en) Circuit board mounting/dismounting detecting system
JPH0149975B2 (en)
JPS6128146B2 (en)
JPH0668015A (en) Assign information holding circuit
JPH06350677A (en) Interrupt request type switching request signal monitoring system
JPH0637741A (en) Synchronization transmitter
JPS63193241A (en) Information processor
JPH04106637A (en) Stall detection circuit
JPS63241622A (en) Data processor
JPH04247531A (en) Fault detecting system
JPH05143379A (en) Program monitoring device
JPH0776934B2 (en) Microcomputer-based abnormality detection device
JPH01223521A (en) Large scale integrated circuit
JPS61107444A (en) Error trace system
JPH07231488A (en) State change detection system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees