JPS6378267A - Run away detecting circuit for multiprocessor - Google Patents

Run away detecting circuit for multiprocessor

Info

Publication number
JPS6378267A
JPS6378267A JP61220886A JP22088686A JPS6378267A JP S6378267 A JPS6378267 A JP S6378267A JP 61220886 A JP61220886 A JP 61220886A JP 22088686 A JP22088686 A JP 22088686A JP S6378267 A JPS6378267 A JP S6378267A
Authority
JP
Japan
Prior art keywords
processor
control signal
sub
master processor
reset
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.)
Granted
Application number
JP61220886A
Other languages
Japanese (ja)
Other versions
JPH0417541B2 (en
Inventor
Eiji Iitaka
飯高 永次
Junichi Koike
純一 小池
Shingo Tanaka
信吾 田中
Kazuo Horiuchi
和夫 堀内
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.)
HASEGAWA DENKI SEISAKUSHO KK
Fujitsu Ltd
Original Assignee
HASEGAWA DENKI SEISAKUSHO KK
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 HASEGAWA DENKI SEISAKUSHO KK, Fujitsu Ltd filed Critical HASEGAWA DENKI SEISAKUSHO KK
Priority to JP61220886A priority Critical patent/JPS6378267A/en
Publication of JPS6378267A publication Critical patent/JPS6378267A/en
Publication of JPH0417541B2 publication Critical patent/JPH0417541B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To detect run away by simple constitution by resetting an FF according to a control signal from the last processor and if resetting is not made within a specified time, judging it as the state of run away. CONSTITUTION:Plural subprocessors 1-1-1-n are connected to transfer control signals successively. When a control signal is applied to the processor 1-1 that makes give and take of data first between a master processor 2, an FF 3 is set by the control signal. When the control signal transferred successively by completion of processing is outputted from the processor 1-n that makes transfer of data last, the FF 3 is reset by the control signal. When it is discriminated by a processor 2 that FF 3 is not reset after setting of FF 3, sending of the control signal is stopped. Thereby, a counter section 4 is not cleared, and accordingly, the content of count becomes large, and when it exceeds a specified value, a run away detection signal is outputted.

Description

【発明の詳細な説明】 〔概要〕 マスタプロセッサからの制御信号によりフリップフロッ
プをセットし、この制御信号を順次複数のサブプロセフ
すに転送して、最後のサブプロセッサからの制御信号に
よりフリップフロップをリセットし、所定期間内にリセ
ットされない時は暴走状態と判断するものであり、簡単
な構成でマルチプロセッサの暴走を検出できるものであ
る。
[Detailed Description of the Invention] [Summary] A flip-flop is set by a control signal from a master processor, this control signal is sequentially transferred to a plurality of sub-processors, and the flip-flop is reset by a control signal from the last sub-processor. However, if it is not reset within a predetermined period, it is determined that a runaway state has occurred, and runaway of a multiprocessor can be detected with a simple configuration.

〔産業上の利用分野〕[Industrial application field]

本発明は、マスタプロセッサと複数のサブプロセッサと
からなるマルチプロセッサの暴走検出回路に関するもの
である。
The present invention relates to a runaway detection circuit for a multiprocessor including a master processor and a plurality of subprocessors.

複数のサブプロセッサによりそれぞれ複数の装置を制御
し、それらのサブプロセッサをマスタプロセッサにより
制御するマルチプロセッサに於いて、簡単な構成で暴走
検出を可能とすることが要望されている。
In a multiprocessor in which a plurality of subprocessors each control a plurality of devices, and the subprocessors are controlled by a master processor, it is desired to be able to detect runaway with a simple configuration.

〔従来の技術〕[Conventional technology]

プロセッサによる制御状態が正常であるか否かを監視す
る方式として、従来は、例えば、プログラムメモリの予
め定められた範囲内のアクセスアドレスではないことを
検出した時に、プログラム暴走と判断してアラーム信号
を出力する方式や、ハードクロツタによりマイクロプロ
セッサに割込要求を行い、割込処理により発生されるソ
フトクロックと、ハードクロックとを比較して、ハード
クロックに対してソフトクロックが発生しない場合に、
異常と判断してアラーム信号を出力する方式等がある。
Conventionally, as a method for monitoring whether the control state by the processor is normal or not, for example, when it is detected that the access address is not within a predetermined range of the program memory, it is determined that the program has runaway and an alarm signal is sent. If the soft clock generated by the interrupt processing is compared with the hard clock, and the soft clock is not generated for the hard clock,
There are methods such as determining that there is an abnormality and outputting an alarm signal.

従って、マルチプロセッサに於いても、各プロセッサ対
応に前述の監視手段を設けて、暴走検出を行うことがで
きる。
Therefore, even in a multiprocessor, runaway detection can be performed by providing the above-mentioned monitoring means for each processor.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

マルチプロセッサの暴走検出手段として、前述のように
、プロセッサ対応に暴走検出手段を設けた場合は、何れ
のプロセッサに暴走が発生したかを検出することが可能
となるが、マルチプロセッサを構成するプロセッサ数が
多くなると、それに対応して暴走検出手段を多く設ける
ことになり、装置規模が大きくなって高価となる欠点が
ある。
As a runaway detection means for a multiprocessor, if a runaway detection means is provided for a processor as described above, it will be possible to detect which processor has runaway. If the number increases, a correspondingly large number of runaway detection means must be provided, which has the drawback of increasing the size and cost of the device.

本発明は、マスタプロセッサと複数のサブプロセッサと
からなるマルチプロセッサに於いて、簡単な構成で暴走
検出を可能とすることを目的とするものである。
An object of the present invention is to enable runaway detection with a simple configuration in a multiprocessor consisting of a master processor and a plurality of subprocessors.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のマルチプロセッサの暴走検出回路は、マスタプ
ロセッサからの制御信号を順次サブプロセッサに転送し
て、データの授受を行うことを利用したものであり、第
1図を参照して説明する。
The multiprocessor runaway detection circuit of the present invention utilizes the fact that control signals from a master processor are sequentially transferred to subprocessors to exchange data, and will be explained with reference to FIG.

それぞれ複数の装置(図示を省略)の制御を行う複数の
サブプロセッサ1−1〜1−nと、これらのサブプロセ
ッサ1−1〜1−nの共通の情報の処理を行って、これ
らのサブプロセッサ1−1〜1−nのそれぞれを順次制
御するマスタプロセッサ2とを備えたマルチプロセッサ
に於いて、マスタプロセッサ2との間で最初にデータの
受け渡しを行うサブプロセッサ1−1への制御信号によ
ってセットされ、最後にデータの受け渡しを行うサブプ
ロセッサ1−nからの制御信号によってリセットされる
フリップフロップ3と、タイマ部5等からの所定周期の
信号をカウントし、マスタプロセッサ2からの制御信号
によってクリアされるカウンタ部4とを備えている。
A plurality of sub-processors 1-1 to 1-n each control a plurality of devices (not shown), and process information common to these sub-processors 1-1 to 1-n. In a multiprocessor including a master processor 2 that sequentially controls each of the processors 1-1 to 1-n, a control signal to the sub-processor 1-1 that first exchanges data with the master processor 2. The flip-flop 3 is set by the control signal from the sub-processor 1-n which finally receives and receives data, and the flip-flop 3 counts signals of a predetermined period from the timer section 5 and the like, and receives the control signal from the master processor 2. The counter section 4 is cleared by the counter section 4.

フリップフロップ3がセットされた後、所定期間内にリ
セットされないことをマスタプロセッサ2が識別すると
、制御信号の送出を停止する。それによってカウンタ部
4のクリアが行われないので、カウント内容が所定値以
上となり、暴走検出信号が出力され、その暴走検出信号
によって例えばフリップフロップ6がリセットされ、そ
のd端子出力信号が“1”となって、マスタプロセッサ
2に暴走検出の割込信号として加えられる。なお、カウ
ンタ部4の暴走検出信号をマスタプロセッサ2へ暴走検
出の割込信号として加えることもできる。
When the master processor 2 identifies that the flip-flop 3 is not reset within a predetermined period after being set, it stops sending out the control signal. As a result, the counter section 4 is not cleared, so the count becomes equal to or greater than a predetermined value, and a runaway detection signal is output.The runaway detection signal resets, for example, the flip-flop 6, and its d terminal output signal becomes "1". This is applied to the master processor 2 as an interrupt signal for detection of runaway. Note that the runaway detection signal from the counter section 4 can also be applied to the master processor 2 as an interrupt signal for detecting runaway.

〔作用〕[Effect]

複数のサブプロセッサ1−1〜l−nは制御信号を順次
転送するように接続されており、マスタプロセッサ2と
の間で最初にデータの受け渡しを行うサブプロセッサ1
−1に制御信号が加えられると、その制御信号によりフ
リップフロップ3はセットされ、処理終了により順次転
送される制御信号が最後にデータの受け渡しを行うサブ
プロセッサ1−nから出力されると、その制御信号によ
りフリップフロップ3はリセットされる。
The plurality of sub-processors 1-1 to l-n are connected to sequentially transfer control signals, and the sub-processor 1 first exchanges data with the master processor 2.
-1, when a control signal is applied to the flip-flop 3, the flip-flop 3 is set by the control signal, and when the control signal that is sequentially transferred upon completion of processing is finally output from the subprocessor 1-n that transfers data, the flip-flop 3 is set by the control signal. The flip-flop 3 is reset by the control signal.

フリップフロップ3がセットされた後、所定期間経過後
にリセ、フトされることをマスタプロセッサ2が識別す
ると、次の制御信号を送出するが、所定期間経過後もリ
セットされないことを識別すると、次の制御信号の送出
を停止する。それによって、カウンタ部4はクリアされ
ないので、カウント内容が大きくなり、所定値以上とな
ると、暴走検出信号が出力される。それに伴ってマスタ
プロセッサ2に割込信号が加えられ、例えば、システム
リセットが行われる。
If the master processor 2 identifies that the flip-flop 3 will be reset and then cleared after a predetermined period of time has elapsed after being set, it will send out the next control signal, but if it determines that it will not be reset even after the predetermined period of time has elapsed, the next control signal will be sent. Stop sending control signals. As a result, the counter section 4 is not cleared, and when the count increases and exceeds a predetermined value, a runaway detection signal is output. Accordingly, an interrupt signal is applied to the master processor 2, and, for example, a system reset is performed.

〔実施例〕〔Example〕

以下図面を参照して本発明の実施例について詳′細に説
明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第2図は本発明の実施例のブロック図であり、111〜
1l−nはサブプロセッサ(S P U)、12はマス
タプロセッサ(MPU)13はフリップフロップ、14
はデコーダ(DEC) 、15はウォッチドッグタイマ
回路(WDT) 、16はメインメモリ (MM) 、
17はランダムアクセスメモリ(RAM) 、18はメ
インバス、19はサブバス、20はインバータ、21〜
24はゲート回路、25はドライバ、26は発光ダイオ
ード、27は電流制限用抵抗、■は電源電圧である。
FIG. 2 is a block diagram of an embodiment of the present invention.
1l-n is a sub-processor (SPU), 12 is a master processor (MPU), 13 is a flip-flop, 14
is the decoder (DEC), 15 is the watchdog timer circuit (WDT), 16 is the main memory (MM),
17 is a random access memory (RAM), 18 is a main bus, 19 is a sub-bus, 20 is an inverter, 21-
24 is a gate circuit, 25 is a driver, 26 is a light emitting diode, 27 is a current limiting resistor, and ■ is a power supply voltage.

サブプロセッサ11−1〜11−nは、第1図に於ける
サブプロセッサ1−1〜1−nに相当し、マスタプロセ
ッサ12は第1図に於けるマスタプロセッサ2に相当し
、フリッブフロフブ13は第1図に於けるフリップフロ
ップ3に相当し、デコーダ14及びマスタプロセッサ1
2が、第1図に於けるタイマ部5に相当し、ウォッチド
ッグタイマ回路15とマスタプロセッサ12とにより第
1図に於けるカウンタ部4とフリップフロップ6との機
能を実現している。
The sub-processors 11-1 to 11-n correspond to the sub-processors 1-1 to 1-n in FIG. 1, the master processor 12 corresponds to the master processor 2 in FIG. It corresponds to the flip-flop 3 in FIG.
2 corresponds to the timer section 5 in FIG. 1, and the watchdog timer circuit 15 and master processor 12 realize the functions of the counter section 4 and flip-flop 6 in FIG.

サブプロセッサ11−1〜11−nは、図示を省略した
複数の装置の制御及び監視を行うものであり、監視情報
に基づいてそれぞれの装置を制御し、又は監視情報をマ
スタプロセッサ12に転送し、マスタプロセッサ12か
らの制御情報に従って各装置の制御を行うものである。
The sub-processors 11-1 to 11-n control and monitor a plurality of devices (not shown), and control each device based on monitoring information, or transfer monitoring information to the master processor 12. , and controls each device according to control information from the master processor 12.

サブプロセッサ11−1〜11−nとマスタプロセッサ
12との間は、ランダムアクセスメモリ17を介して各
種の情報の転送が行われる。
Various information is transferred between the sub-processors 11-1 to 11-n and the master processor 12 via the random access memory 17.

マスタプロセッサ12は、一定周期で制御信号を形成す
る為の特定アドレスをメインバス18に出力し、その特
定アドレスはデコーダ14によりデコードされ、デコー
ド出力が“1”の時は、ゲート回路21.22が開かれ
、又その立上りをマスタプロセッサ12の割込信号とす
る。又デコード出力が“O”の時は、インバータ20を
介して最初のサブプロセッサ11−1に対する制御信号
となり、又ゲート回路23.24が開かれる。
The master processor 12 outputs a specific address for forming a control signal to the main bus 18 at regular intervals, and the specific address is decoded by the decoder 14. When the decoded output is "1", the gate circuit 21.22 is opened, and its rising edge is used as an interrupt signal for the master processor 12. When the decode output is "O", it becomes a control signal to the first sub-processor 11-1 via the inverter 20, and the gate circuits 23 and 24 are opened.

サブプロセッサ11−1は、この制御信号の立上りを割
込信号として動作し、マスタプロセッサ12からランダ
ムアクセスメモリ17の所定領域に書込まれた制御情報
を、ゲート回路24からサブバス19を介して読取り、
又監視情報等をサブバス19からゲート回路23を介し
てランダムアクセスメモリ170所定領域に書込み、そ
の処理が終了した時に、制御信号を次のサブプロセッサ
11−2へ割込信号として転送する。
The sub-processor 11-1 operates using the rise of this control signal as an interrupt signal, and reads the control information written from the master processor 12 into a predetermined area of the random access memory 17 from the gate circuit 24 via the sub-bus 19. ,
Also, monitoring information and the like are written from the sub-bus 19 to a predetermined area of the random access memory 170 via the gate circuit 23, and when the processing is completed, a control signal is transferred to the next sub-processor 11-2 as an interrupt signal.

このサブプロセッサ11−2は、前述の場合と同様に、
ランダムアクセスメモリ17の所定領域に書込まれた制
御情報を読取り、又監視情報等を書込み、その処理の終
了により制御信号を次のサブプロセッサ11−3へ転送
する。
This sub-processor 11-2, as in the above case,
It reads control information written in a predetermined area of the random access memory 17, writes monitoring information, etc., and upon completion of the processing, transfers the control signal to the next sub-processor 11-3.

制御信号が順次サブプロセッサに転送されて、マスタプ
ロセッサ12との間の情報の授受が行われ、最後のサブ
プロセッサ11−nがマスタプロセッサ12との間の情
報の授受を終了すると、制御信号がフリップフロップ1
3のリセット端子Rに加えられる。従って、サブプロセ
ッサを多数設けて分散制御を行わせる場合でも、マスタ
プロセッサ12との間でランダムアクセスメモリ17を
介して所望の情報を円滑に受け渡しできることになる。
The control signal is sequentially transferred to the sub-processors, and information is exchanged with the master processor 12. When the last sub-processor 11-n finishes exchanging information with the master processor 12, the control signal is transferred to the sub-processors. flip flop 1
It is applied to the reset terminal R of No. 3. Therefore, even when a large number of sub-processors are provided to perform distributed control, desired information can be smoothly exchanged with the master processor 12 via the random access memory 17.

又フリップフロップ13は、最初に情報の授受を行うサ
ブプロセッサ11−1に対する制御信号がセット端子S
に加えられてセットされ、最後に情報の授受を行う一サ
ブプロセッサ1f−nからの制御信号がリセット端子R
に加えられてリセットされ、その出力端子Qの状態は、
メインバス18を介してマスタプロセッサ12に読取ら
れる。
In addition, the flip-flop 13 receives a control signal from the set terminal S for the sub-processor 11-1 which initially sends and receives information.
A control signal from one sub-processor 1f-n that sends and receives information is added to the reset terminal R.
is added to and reset, and the state of its output terminal Q is
It is read by the master processor 12 via the main bus 18.

この場合、正常であれば、所定期間内にサブプロセフサ
11−1〜11−nに於ける情報の授受が順次行われる
ので、フリップフロップ13はリセットされるが、サブ
プロセッサ11−1〜11−nの何れか一つでも暴走状
態であると、それ以降のサブプロセッサに制御信号が加
えられな(なるので、最後のサブプロセッサ11−nか
ら制御信号が出力されないことになり、フリップフロッ
プ13はリセットされない。従って、セットされたフリ
ップフロップ13が所定期間経過してちり。
In this case, if it is normal, the sub-processors 11-1 to 11-n would sequentially exchange information within a predetermined period, so the flip-flop 13 would be reset, but the sub-processors 11-1 to 11-n would If any one of them is in a runaway state, the control signal will not be applied to the subsequent sub-processors (therefore, the last sub-processor 11-n will not output the control signal, and the flip-flop 13 will be reset. Therefore, the set flip-flop 13 becomes dusty after a predetermined period of time.

セットされない場合は、サブプロセッサ11−1〜11
−nの何れかが暴走したと判断することができる。
If not set, subprocessors 11-1 to 11
It can be determined that one of -n has gone out of control.

又フリップフロップ13の出力端子Qに、インバータ2
5を介して発光ダイオード26が接続されており、出力
端子Qが“1”となると、+■の電圧により発光ダイオ
ード26に電流が流れて発光する。サブプロセッサ11
−1〜11−nが正常の場合は、一定周期でフリップフ
ロップ13の出力端子Qは“1”と“0”とになり、又
異常の場合は、“1″が継続される。又マスタプロセッ
サ12が異常の場合は、制御’B (fi号が送出され
ないので、“0”のm続となるから、発光ダイオード2
6により正常か否かの表示が可能となる。
In addition, the inverter 2 is connected to the output terminal Q of the flip-flop 13.
A light emitting diode 26 is connected to the light emitting diode 26 through a terminal 5, and when the output terminal Q becomes "1", a current flows through the light emitting diode 26 due to the voltage of +■, and it emits light. Sub processor 11
When -1 to 11-n are normal, the output terminal Q of the flip-flop 13 becomes "1" and "0" at a constant cycle, and when abnormal, it continues to be "1". In addition, if the master processor 12 is abnormal, the control 'B (fi signal is not sent out, so the light emitting diode 2
6 makes it possible to display whether or not it is normal.

又ウォッチドッグタイマ回路15は、サブプロセッサ1
1−1〜11−nが総て正常に動作している時に、デコ
ーダ14の出力信号の立上りを基に、マスタプロセッサ
12からメインバス18を介してリセットされ、このリ
セットが行われない場合は、所定の期間が経過した後、
マスタプロセッサ12に暴走検出として割込信号を加え
ることになり、第1図に於けるカウンタ部4とフリップ
フロップ6とからなる構成に対応した動作を行うもので
ある。
Also, the watchdog timer circuit 15 is connected to the sub-processor 1.
When all 1-1 to 11-n are operating normally, the master processor 12 resets it via the main bus 18 based on the rise of the output signal of the decoder 14. If this reset is not performed, , after a predetermined period of time has elapsed,
An interrupt signal is applied to the master processor 12 as a runaway detection, and the operation corresponds to the configuration consisting of the counter section 4 and flip-flop 6 in FIG. 1.

第3図は本発明の実施例の動作説明図であり、(a)は
デコーダ14のデコード出力の制御信号、(b)はマス
タプロセッサ12の動作期間、(C1〜(e)はサブプ
ロセッサ11−1.11−2.11−Hの動作期間、(
f)〜(h)はフリップフロップ13の出力端子Qの状
態を示し、(f)は正常時、(g)はサブプロセッサ1
1−1〜11−nの何れかが異常の場合、(h)はマス
タプロセッサ12が異常の場合を示す。
FIG. 3 is an explanatory diagram of the operation of the embodiment of the present invention, in which (a) shows the control signal for the decoded output of the decoder 14, (b) shows the operating period of the master processor 12, and (C1 to (e) shows the sub-processor 11). -1.11-2.11-H operation period, (
f) to (h) show the states of the output terminal Q of the flip-flop 13, (f) is normal, and (g) is the state of the sub-processor 1.
When any one of 1-1 to 11-n is abnormal, (h) indicates a case where the master processor 12 is abnormal.

制御信号は、(alに示すように、マスタプロセッサ1
2からの特定アドレスにより、“1”の期間T1と“O
”の期間T2との切替えが行われるものであり、デコー
ダ14に例えばランチ機能を設け、期間TI、T2の切
替えを行う特定アドレスを用いることにより、容易に制
御信号を形成することができる。この期間TIに於いて
は、ゲート回路21.22が開かれ、又その立上りがマ
スタプロセッサ12への割込信号となるので、マスタプ
ロセッサ12は、各サブプロセッサ11−1〜11−n
への制御情報を、ゲート回路21を介してランダムアク
セスメモリ17のサブプロセッサ11−1〜11−n対
応頭載に書込み、又各サブプロセッサ11−1〜11−
nからの情報をランダムアクセスメモリ17から読取る
。このようなマスタプロセッサ12の動作期間Tmより
、制御信号の期間T1は少し長く設定されている。
The control signal is the master processor 1 as shown in (al).
Depending on the specific address from 2, the period T1 of “1” and “O
The control signal can be easily generated by providing the decoder 14 with, for example, a launch function and using a specific address for switching between the periods TI and T2. During the period TI, the gate circuits 21 and 22 are opened, and the rise of the gate circuits serves as an interrupt signal to the master processor 12, so the master processor 12 interrupts each of the sub-processors 11-1 to 11-n.
The control information for the sub-processors 11-1 to 11-n is written to the corresponding sub-processors 11-1 to 11-n of the random access memory 17 via the gate circuit 21.
Read information from n from random access memory 17. The period T1 of the control signal is set to be slightly longer than the operating period Tm of the master processor 12.

次の期間T2に於いては、“0°の制御信号がインバー
タ20により反転されて“1“となり、その立上りが最
初のサブプロセッサ11−1への割込信号となる。又ゲ
ート回路23.24が開かれ、フリップフロップ13が
セットされる。そして、サブプロセッサ11−1は、マ
スタプロセッサ12からの制御情報をランダムアクセス
メモリ17から読取り、監視情報等をランダムアクセス
メモリ17に書込み、その処理の終了により制御信号を
次のサブプロセッサ11−2に転送する。
In the next period T2, the "0° control signal" is inverted by the inverter 20 and becomes "1", and its rising edge becomes an interrupt signal to the first sub-processor 11-1. 24 is opened and the flip-flop 13 is set.Then, the sub-processor 11-1 reads control information from the master processor 12 from the random access memory 17, writes monitoring information, etc. to the random access memory 17, and executes the processing. Upon completion of the subprocessor 11-2, the control signal is transferred to the next subprocessor 11-2.

従って、サブプロセッサ11−1〜11−nは、(C1
〜(Qlに示すように順次動作し、ランダムアクセスメ
モリ17対するアクセス動作が総て完了できるように、
期間T2が設定されている。
Therefore, the sub-processors 11-1 to 11-n (C1
~ (operates sequentially as shown in Ql, so that all access operations to the random access memory 17 can be completed,
A period T2 is set.

フリップフロップ13は、最初のサブプロセッサ11−
1に加えられる制御信号の立上りでセットされ、正常時
は、最後のサブプロセッサ11−nの動作終了によりリ
セットされるので、その出力端子Qは(flのように、
セットされた後、所定期間内にリセットされることを繰
り返す。又マスタプロセッサ12は、この出力端子Qの
状態を読取り、正常と判断した時は、次の制御信号の為
の特定アドレスを出力し、デコーダ14でデコードされ
て制御信号となり、そのデコード出力の立上りのタイミ
ングで、マスタプロセッサ12からメインバス18を介
して、ウォッチドッグタイマ回路15がリセットされる
The flip-flop 13 is connected to the first sub-processor 11-
1 is set at the rising edge of the control signal applied to the subprocessor 11-n, and during normal operation, it is reset when the last sub-processor 11-n completes its operation, so its output terminal Q (like fl,
After being set, it is repeatedly reset within a predetermined period of time. In addition, the master processor 12 reads the state of this output terminal Q, and when it determines that it is normal, outputs a specific address for the next control signal, which is decoded by the decoder 14 and becomes a control signal, and the rising edge of the decoded output At this timing, the watchdog timer circuit 15 is reset from the master processor 12 via the main bus 18.

フリップフロップ13がセットされた後、(g)に示す
ように、所定期間経過後もリセットされない場合、マス
タプロセッサ12は、サブプロセッサ11−1〜11−
nの何れかが暴走していると判断し、期間T1から期間
T2への切替えを行う為の特定アドレスを出力しない。
After the flip-flop 13 is set, if it is not reset after a predetermined period of time as shown in (g), the master processor 12 sets the sub-processors 11-1 to 11-.
It is determined that any one of n is out of control, and a specific address for switching from period T1 to period T2 is not output.

即ち、制御信号の送出を停止する。従って、制御信号の
立上りのタイミングがな(なり、マスタプロセッサ12
によりウォッチドッグタイマ回路15はリセットされな
いことになる。
In other words, sending out the control signal is stopped. Therefore, the timing of the rise of the control signal is
As a result, the watchdog timer circuit 15 will not be reset.

ウォッチドッグタイマ回路15は、マスタプロセッサ1
2によりリセットされない場合に、T3>T1+T2の
期間T3経過すると、マスタプロセッサ12に割込信号
を加えて、システムリセットを行わせるものである。
The watchdog timer circuit 15 is connected to the master processor 1.
2, when the period T3 (T3>T1+T2) has elapsed, an interrupt signal is applied to the master processor 12 to cause the system to be reset.

又マスタプロセッサ12が暴走した場合は、一定周期の
制御信号が出力されないので、フリップフロップ13は
リセット状態をm続するから、その出力端子Qは(h)
に示すように“0”が継続することになる。この場合も
、T3>T1+T2の期間T3経過後に、ウオッチドッ
クタイマ回路15からマスタプロセッサ12に割込信号
を加えて、システムリセットを行わせるものである。
In addition, if the master processor 12 goes out of control, the control signal with a constant period is not output, so the flip-flop 13 remains in the reset state for m consecutive times, so its output terminal Q becomes (h).
“0” continues as shown in FIG. In this case as well, after the period T3 (T3>T1+T2) has elapsed, an interrupt signal is applied from the watchdog timer circuit 15 to the master processor 12 to cause the system to be reset.

前述のように、サブプロセッサ11−1〜11−nの何
れかが暴走した場合と、マスタプロセッサ12が暴走し
た場合とを区別して検出することできる。
As described above, it is possible to distinguish between a case where any of the sub-processors 11-1 to 11-n goes out of control and a case where the master processor 12 goes out of control.

第4図は本発明の交換機に適用した実施例のブロック図
であり、第2図と同一符号は同一部分を示し、31.3
2はゲート回路、33は通話路制御回路(SPC)、3
4は通話路ネットワーク(NW) 、35は加入者回路
(1,、C,) 、36は各種のトランク(’T’RK
) 、37は暴走検出回路である。
FIG. 4 is a block diagram of an embodiment applied to an exchange according to the present invention, in which the same reference numerals as in FIG. 2 indicate the same parts, and 31.3
2 is a gate circuit, 33 is a speech path control circuit (SPC), 3
4 is the communication network (NW), 35 is the subscriber circuit (1, C,), and 36 is the various trunks ('T'RK).
), 37 is a runaway detection circuit.

サブプロセッサ11−1〜11−1によりそれぞれ複数
の加入者回路35の制御及び監視が行われ、加入者の発
呼、応答等を検出した情報は、その収容位置情報を含め
て、順次加えられる制御信号に従って、サブバス19.
ゲート回路32を介してランダムアクセスメモリ17の
所定領域に書込まれる。又ランダムアクセスメモリ17
から読取った制御情報に従って加入者回路35の制御が
行われる。
Each of the sub-processors 11-1 to 11-1 controls and monitors a plurality of subscriber circuits 35, and information on detecting calls, responses, etc. from subscribers is sequentially added, including information on their accommodation locations. According to the control signal, sub-bus 19.
The data is written into a predetermined area of the random access memory 17 via the gate circuit 32. Also random access memory 17
The subscriber circuit 35 is controlled according to the control information read from the subscriber circuit 35.

又サブプロセッサ11−j〜11−nによりそれぞれ複
数のトランク36の制御及び監視が行われ、被呼者応答
情報や着呼情報等が、制御信号に従って、サブバス19
.ゲート回路32を介してランダムアクセスメモリ17
の所定領域に書込まれ、そのランダムアクセスメモリ1
7から読取った制御情報に従ってトランク36の制御が
行われる。
Further, each of the sub-processors 11-j to 11-n controls and monitors a plurality of trunks 36, and the called party response information, incoming call information, etc. are sent to the sub-bus 19 according to control signals.
.. Random access memory 17 via gate circuit 32
is written in a predetermined area of the random access memory 1.
The trunk 36 is controlled according to the control information read from the trunk 36.

マスタプロセッサ12は、ゲート回路31.メインバス
18を介して、ランダムアクセスメモリ17から順次サ
ブプロセッサ11−1〜11−n対応領域の情報を読取
り、それに従って制御情報を書込む。又マスタプロセッ
サ12は、発呼情報、被呼者情報等を基に通話路制御装
置33に通話路設定や通話路開放等の制御情報を加え、
通話路制御装置33はその制御情報に従って通話路ネッ
トワーク34を制御し、加入者回路35とトランク36
との間の通話路の設定或いは開放を行わせる。
Master processor 12 includes gate circuits 31 . Information in the areas corresponding to sub-processors 11-1 to 11-n is sequentially read from the random access memory 17 via the main bus 18, and control information is written accordingly. The master processor 12 also adds control information such as setting a communication path and opening a communication path to the communication path control device 33 based on the calling information, called party information, etc.
The channel control device 33 controls the channel network 34 according to the control information, and controls the subscriber circuit 35 and the trunk 36.
Set up or open a communication path between the two parties.

前述のマスタプロセッサ12の動作とサブプロセッサの
動作を切替える為の制御信号がデコーダ14から出力さ
れ、最初のサブプロセッサ11−1に1″の制御信号が
加えられると、その制御信号がゲート回路32と暴走検
出回路37とに加えられ、最後のサブプロセッサ11−
nからの制御信号が暴走検出回路37のリセット端子R
(第1図又は第2図のフリップフロップ3.13のリセ
ット端子Rに相当)に加えられる。
A control signal for switching between the operation of the master processor 12 and the operation of the sub-processor is output from the decoder 14, and when a 1'' control signal is applied to the first sub-processor 11-1, the control signal is sent to the gate circuit 32. and the runaway detection circuit 37, and the last sub-processor 11-
The control signal from n is sent to the reset terminal R of the runaway detection circuit 37.
(corresponding to the reset terminal R of the flip-flop 3.13 in FIG. 1 or 2).

従って、暴走検出回路37は、第2図について説明した
ように、最初のサブプロセッサ11−1に制御信号が加
えられた後、所定期間内に最後のサブプロセッサ11−
nから制御信号が出力されない時、又は所定期間以上、
最初のサブプロセッサ11−1への制御信号が加えられ
ない時に、暴走検出信号を出力し、メインバス19を介
してマスタプロセッサ12に割込信号を加えて、システ
ムリセットを行わせることになる。
Therefore, as explained with reference to FIG.
When no control signal is output from n, or for a predetermined period or more,
When no control signal is applied to the first sub-processor 11-1, a runaway detection signal is output, and an interrupt signal is applied to the master processor 12 via the main bus 19 to cause the system to be reset.

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

以上説明したように、本発明は、複数のサブプロセッサ
1−1〜l−nが順次制御信号を転送して、制御信号を
受信したサブプロセッサがマスタプロセッサ2との間で
データの受け渡しを行うマルチプロセッサに於いて、最
初にデータの受け渡しを行うサブプロセッサ1−1に加
える制御信号によってセットされ、最後にデータの受け
渡しを行うサブプロセッサ1−nからの制御信号によっ
てリセットされるフリップフロップ3を設け、このフリ
ップフロップ3がセットされた後に所定期間経過しても
リセットされないことをマスタプロ・セッサ2が識別す
ると、制御信号の送出を停止するので、この制御信号に
よってリセットされるウォッチドッグタイマ回路15等
のカウント部4のカウント内容が所定値以上となって、
暴走検出信号が出力される。従って、簡単な構成で複数
のサブプロセッサ1−1〜1−nの暴走を検出すること
ができる。又マスタプロセッサ2が暴走した場合も、フ
リップフロップ3のリセット状態が継続することにより
、容易に検出することができる利点がある。
As described above, in the present invention, a plurality of sub-processors 1-1 to l-n sequentially transfer control signals, and the sub-processors that have received the control signals exchange data with the master processor 2. In a multiprocessor, a flip-flop 3 is first set by a control signal applied to the subprocessor 1-1 that transfers data, and is finally reset by a control signal from the subprocessor 1-n that transfers data. When the master processor 2 determines that the flip-flop 3 is not reset even after a predetermined period of time has passed after being set, it stops sending out the control signal, so the watchdog timer circuit 15 is reset by this control signal. etc., the count content of the counting unit 4 exceeds a predetermined value,
A runaway detection signal is output. Therefore, runaway in the plurality of subprocessors 1-1 to 1-n can be detected with a simple configuration. Further, even if the master processor 2 goes out of control, the reset state of the flip-flop 3 continues, so there is an advantage that it can be easily detected.

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

第1図は本発明の原理ブロック図、第2図は本発明の実
施例のブロック図、第3図は本発明の実施例の動作説明
図、第4図は本発明の交換機に適用した実施例のブロッ
ク図である。 1−1〜1−n、11−1〜11−nはサブプロセッサ
(SPU) 、2.12はマスタプロセッサ(MPU)
 、3.13はフリップフロップ、4はカウンタ部、5
はタイマ部、6はフリップフロップ、14はデコーダ(
DEC) 、15はウォッチドッグタイマ回路(WDT
) 、16はメインメモリ (MM) 、17はランダ
ムアクセスメモリ (RAM)、18はメインバス、1
9はサブバス、20はインバータ、21−24はゲート
回路である。
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a block diagram of an embodiment of the invention, Fig. 3 is an explanatory diagram of the operation of the embodiment of the invention, and Fig. 4 is an implementation applied to an exchange of the invention. FIG. 2 is an example block diagram. 1-1 to 1-n, 11-1 to 11-n are sub processors (SPU), 2.12 is master processor (MPU)
, 3.13 is a flip-flop, 4 is a counter section, 5
is a timer section, 6 is a flip-flop, and 14 is a decoder (
DEC), 15 is a watchdog timer circuit (WDT).
), 16 is main memory (MM), 17 is random access memory (RAM), 18 is main bus, 1
9 is a sub-bus, 20 is an inverter, and 21-24 are gate circuits.

Claims (1)

【特許請求の範囲】 それぞれが複数の装置の制御を行う複数のサブプロセッ
サ(1−1〜1−n)と、該複数のサブプロセッサ(1
−1〜1−n)の共通の情報の処理を行って該複数のサ
ブプロセッサ(1−1〜1−n)のそれぞれを順次制御
するマスタプロセッサ(2)とを備えたマルチプロセッ
サに於いて、前記マスタプロセッサ(2)との間で最初
にデータの受け渡しを行うサブプロセッサ(1−1)に
加える制御信号によりセットされ、最後にデータの受け
渡しを行うサブプロセッサ(1−n)からの制御信号に
よってリセットされるフリップフロップ(3)と、 所定周期の信号をカウントし、前記マスタプロセッサ(
2)との間で最初にデータの受け渡しを行うサブプロセ
ッサ(1−1)に加える前記制御信号によりクリアされ
るカウンタ部(4)とを備え、 前記フリップフロップ(3)のセット、リセット状態を
前記マスタプロセッサ(2)が読取り、セットされた後
所定期間経過後もリセットされないこと識別した時に、
前記制御信号の送出を停止し、該制御信号の送出停止に
より前記カウント部(4)がクリアされず、カウント内
容が所定値以上となって暴走検出信号を出力する構成と
したことを特徴とするマルチプロセッサの暴走検出回路
[Claims] A plurality of sub-processors (1-1 to 1-n) each controlling a plurality of devices;
- a master processor (2) that processes common information of the subprocessors (1 to 1-n) and sequentially controls each of the plurality of subprocessors (1-1 to 1-n); , is set by a control signal applied to the sub-processor (1-1) that first transfers data to and from the master processor (2), and is controlled by the sub-processor (1-n) that transfers data last. A flip-flop (3) that is reset by a signal, and a flip-flop (3) that counts signals of a predetermined period and is connected to the master processor (3).
2) and a counter section (4) that is cleared by the control signal applied to the sub-processor (1-1) that first transfers data to and from the sub-processor (1-1); When the master processor (2) identifies that it is not reset after a predetermined period of time after being read and set;
The present invention is characterized in that the transmission of the control signal is stopped, and when the count section (4) is not cleared due to the stoppage of the transmission of the control signal, and the content of the count exceeds a predetermined value, a runaway detection signal is output. Multiprocessor runaway detection circuit.
JP61220886A 1986-09-20 1986-09-20 Run away detecting circuit for multiprocessor Granted JPS6378267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61220886A JPS6378267A (en) 1986-09-20 1986-09-20 Run away detecting circuit for multiprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61220886A JPS6378267A (en) 1986-09-20 1986-09-20 Run away detecting circuit for multiprocessor

Publications (2)

Publication Number Publication Date
JPS6378267A true JPS6378267A (en) 1988-04-08
JPH0417541B2 JPH0417541B2 (en) 1992-03-26

Family

ID=16758076

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61220886A Granted JPS6378267A (en) 1986-09-20 1986-09-20 Run away detecting circuit for multiprocessor

Country Status (1)

Country Link
JP (1) JPS6378267A (en)

Also Published As

Publication number Publication date
JPH0417541B2 (en) 1992-03-26

Similar Documents

Publication Publication Date Title
CA1153120A (en) Multiprocessor information processing system having fault detection function based on periodic supervision of updated fault supervising codes
US6070219A (en) Hierarchical interrupt structure for event notification on multi-virtual circuit network interface controller
SE429692B (en) MULTIPLE-PROCESSOR COMPUTER WITH A COMMON COMPUTER
US5388261A (en) Apparatus and method for handling frame overruns in a digital signal processing system
JPS6378267A (en) Run away detecting circuit for multiprocessor
US6178177B1 (en) Data-processing network having non-deterministic access, but having deterministic access time
US5125079A (en) Method for controlling the data transmission of a central unit interfacing control circuit and circuit arrangement for the implementation of the method
JPH05282244A (en) Information processor
SU1291999A1 (en) Microprocessor data processing system
JP2659994B2 (en) Modem monitoring method
JPH11338712A (en) Interruption sequence saving circuit
JPH07168723A (en) External event detecting method for computer system
SU1084795A1 (en) Interruption device
SU1464162A1 (en) Arrangement for checking and restarting an electronic computer
JPH08249213A (en) Multiplex timer
JPH0387962A (en) Inter-processor communication control method
JPS6228837A (en) Interruption signal control system
JPH0458340A (en) Processor monitor circuit
JPH0271357A (en) Processor circuit
JPH0573484A (en) Information processing system
JPH04271448A (en) Bus monitoring device
JPS62162155A (en) Information processing system
JPH06334653A (en) Output message control circuit
JPS63293656A (en) Switch system for task of communication control adaptor
JPH06131211A (en) Method for testing input/output interruption in multiprocessor system