JPH0282335A - Bus controller - Google Patents

Bus controller

Info

Publication number
JPH0282335A
JPH0282335A JP63234564A JP23456488A JPH0282335A JP H0282335 A JPH0282335 A JP H0282335A JP 63234564 A JP63234564 A JP 63234564A JP 23456488 A JP23456488 A JP 23456488A JP H0282335 A JPH0282335 A JP H0282335A
Authority
JP
Japan
Prior art keywords
bus
bus master
master
control
timer
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
JP63234564A
Other languages
Japanese (ja)
Inventor
Yoshihiro Kinoshita
喜博 木下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Toshiba Computer Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Computer Engineering Corp
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 Toshiba Corp, Toshiba Computer Engineering Corp filed Critical Toshiba Corp
Priority to JP63234564A priority Critical patent/JPH0282335A/en
Publication of JPH0282335A publication Critical patent/JPH0282335A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform fault recovery by measuring the processing time of a bus master to detect its abnormality and transferring the control to another normal bus master. CONSTITUTION:When a bus master 3 gets the control right of a bus 17 to start the control of the bus 17, a timer 5 starts counting. When the bus master 3 does not terminate the control of the bus 17 after a normal processing time elapses, the timer 5 terminates counting of a preliminarily determined prescribed time to judge the bus master 3 to be abnormal, and a hold signal line 12 is forcibly invalidated through a gate 7 to deprive the bus master 3 of the control right of the bus 17. Further, a main bus master 2 is interrupted through a signal INT line 15. The main bus master 2 gets the control right of the bus 17 instead of the bus master 3 where abnormality occurs. Thus, an interruption handling program for fault recovery is started, and the main bus master 2 discriminates the cause of abnormality to perform a proper processing, and the operation of a system is continued.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、バス制御装置に関し、特にマイクロコンピュ
ータシステムのマルチパスマスタシステムに適用して好
適なバス制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a bus control device, and particularly to a bus control device suitable for application to a multipath master system of a microcomputer system.

(従来の技術) 従来から、マイクロコンピュータシステムにおいては異
常監視のための処理を定期的に実行しているものが多い
。その方式としては、例えばウォッチドッグタイマをマ
イクロプロセッサが定期的にリセットし、一定時間以上
マイクロプロセッサがウォッチドッグタイマをリセット
に行かなかった場合、何らかの異常によってマイクロプ
ロセッサのアクセスが途絶えたものと判断してマイクロ
プロセッサを初期化する等の方法で復帰させるものが知
られている。
(Prior Art) Conventionally, in many microcomputer systems, processing for abnormality monitoring is regularly executed. For example, the microprocessor resets the watchdog timer periodically, and if the microprocessor does not reset the watchdog timer for a certain period of time, it is determined that access to the microprocessor has been interrupted due to some abnormality. There is a known method for recovering the microprocessor by using a method such as initializing the microprocessor.

(発明が解決すべき課題) 従来のマイクロコンピュータシステムは以上のように構
成されているため、異常監視のためにCPU時間を無駄
に使用する必要が有るのは勿論、複数個のバスマスタを
有するようなマルチパスマスタシステムでは異常監視の
ための方法が無いのが実状である。例えば、マイクロプ
ロセッサ以外のバスマスタがバスを制御している時には
、バスマスタに異常が発生してもこれを検出することが
できない。
(Problems to be Solved by the Invention) Since the conventional microcomputer system is configured as described above, it is necessary to waste CPU time for abnormality monitoring, and it is necessary to have multiple bus masters. The reality is that there is no method for monitoring abnormalities in multipath master systems. For example, when a bus master other than a microprocessor controls the bus, even if an abnormality occurs in the bus master, it cannot be detected.

本発明は、上記に鑑みてなされたもので、その目的は、
バスマスタの処理時間を計測することによってその異常
を検出して他の正常なバスマスタに制御を移すことによ
って障害復帰を実現できるバス制御装置を得るにある。
The present invention has been made in view of the above, and its purpose is to:
To obtain a bus control device capable of realizing failure recovery by detecting an abnormality by measuring processing time of a bus master and transferring control to another normal bus master.

〔発明の構成〕[Structure of the invention]

(課題を解決するための手段) 本発明のバス制御装置は、バスの制御を行う少なくとも
1個の第1のバスマスタと:バスの制御、を行うととも
に前記第1のバスマスタの異常復帰の処理を行う第2の
バスマスタと;第1及び第2の各バスマスタを選択的に
バスの制御に割り当てる手段と:第1のバスマスタ毎に
設けられ、対応する第1のバスマスタが正常動作する場
合の最大処理時間よりも長い設定時間が設定され、対応
する第1のバスマスタの処理開始に伴って動作開始する
計時手段と:計時手段の出力に基づいて対応する第1の
バスマスタの動作を規制するとともに、第2のバスマス
タに異常処理の割り込みをかける割り込み制御手段と;
を有するものとして構成される。
(Means for Solving the Problems) A bus control device of the present invention includes at least one first bus master that controls a bus: controls the bus, and also performs abnormality recovery processing of the first bus master. means for selectively assigning each of the first and second bus masters to control the bus; means provided for each first bus master to perform maximum processing when the corresponding first bus master operates normally; a clocking means for which a set time longer than the current bus master is set and starts operating when the corresponding first bus master starts processing; an interrupt control means for issuing an interrupt for abnormal processing to the second bus master;
It is configured as having the following.

(作 用) 第1のバスマスタの動作が正常に行われているか否かを
計時手段によって監視する。第1のバスマスタがバス制
御を開始してから正常な処理時間の範囲を超える設定時
間を経過した場合は、計時手段からの出力に基づき、割
り込み制御手段によって第2のバスマスタの動作を規制
するとともに第2のバスマスタに割り込みをかけ、バス
の制御と異常処理を行わせる。
(Function) The clock means monitors whether the first bus master is operating normally. If a set time exceeding the normal processing time has elapsed since the first bus master started bus control, the operation of the second bus master is regulated by the interrupt control means based on the output from the timer. Interrupts the second bus master to control the bus and handle abnormalities.

(実施例) 以下、図面を参照しながら本発明の詳細な説明する。(Example) Hereinafter, the present invention will be described in detail with reference to the drawings.

図面は本発明の一実施例に係るバス制御装置のブロック
図である。同図において示すように、バスアービタ1は
、データバス、アドレスバス及びコントロールバス等の
バス17を制御するメインバスマスタ2、バスマスタ3
及びバスマスタ4のいずれがバス17の制御を行うかを
調停する機能を有する。ここで、メインバスマスタ2は
、システムの中で中心的な制御を行うと共に、異常復帰
のための処理を行う。タイマ5は、バスマスタ3による
ハス]7の制御時間が予め設定した規定値より長い場合
に、異常と判断してバス17を開放すると共にメインバ
スマスタ2に割り込みを出力する。タイマ6は、バスマ
スタ4によるバス17の制御時間が予め設定した規定値
より長い場合に、異常と判断してバス17を開放すると
共にメインバスマスタ2に割り込みを出力する。なお、
バスアービタ]とメインバスマスタ2の間にはHLDA
信号線9及びHOLD信号線10が接続されている。H
LDA信号線9はメインバスマスタ2がバス17を開放
したことを示す信号をバスアービタ1に送出し、HOL
D信号線10はバスアービタ1からメインバスマスタ2
にバス17の開放を要求する信号を送出する。また、バ
スアービタ1からはHLDA信号線11、HOLD信号
線12、HLDA信号線13及びHOLD信号線14が
導出されている。HLDA信号線11はバスマスタ3に
バス17の制御を許可する信号を送出し、HOLD信号
線12はバスマスタ3がバスアービタ1に対してバス1
7の制御を要求する信号を送出する。また、HLDA信
号線13はバスマスタ4にバス17の制御を許可する信
号を送出し、HOLD信号線14はバスマスタ4がバス
アービタ1に対してバス17の制御を要求する信号を送
出す。さらに、メインバスマスタ2とタイマ5の間には
INT信号線15が設置され、メインバスマスタ2とタ
イマ6の間にはINT信号線16が設置される。INT
信号線15はメインバスマスタ2のCPUに割り込みを
かける信号をタイマ5からメインバスマスタ2に送出し
、障害復帰のためのプログラムをスタートさせる。IN
T信号線16はメインバスマスタ2のCPUに割り込み
をかける信号をタイマ6からメインバスマスタ2に送出
し、障害復帰のためのプログラムをスタートさせる。ゲ
ート7は、バスマスタ3とバスアービタ1の間に介在す
るHOLD信号線12に設けられ、タイマ5によりHO
LD信号線12の信号を無効にするときに作用する。一
方、ゲート8は、バスマスタ4とバスアービタ1の間に
介在するHOLD信号線14に設けられ、タイマ6によ
りHOLD信号線]4の信号を無効にするとき作用する
The drawing is a block diagram of a bus control device according to an embodiment of the present invention. As shown in the figure, the bus arbiter 1 includes a main bus master 2 and a bus master 3 that control buses 17 such as a data bus, an address bus, and a control bus.
It has a function of arbitrating which of the bus masters 4 and 4 controls the bus 17. Here, the main bus master 2 performs central control in the system and also performs processing for recovering from an abnormality. When the control time of the bus 7 by the bus master 3 is longer than a preset specified value, the timer 5 determines that there is an abnormality, releases the bus 17, and outputs an interrupt to the main bus master 2. When the control time of the bus 17 by the bus master 4 is longer than a preset specified value, the timer 6 determines that there is an abnormality, releases the bus 17, and outputs an interrupt to the main bus master 2. In addition,
bus arbiter] and main bus master 2.
A signal line 9 and a HOLD signal line 10 are connected. H
The LDA signal line 9 sends a signal indicating that the main bus master 2 has released the bus 17 to the bus arbiter 1, and the HOL
The D signal line 10 is connected from the bus arbiter 1 to the main bus master 2.
A signal requesting release of the bus 17 is sent to the bus 17. Further, an HLDA signal line 11, a HOLD signal line 12, an HLDA signal line 13, and a HOLD signal line 14 are led out from the bus arbiter 1. The HLDA signal line 11 sends a signal that allows the bus master 3 to control the bus 17, and the HOLD signal line 12 sends a signal that allows the bus master 3 to control the bus 17 to the bus arbiter 1.
A signal requesting control of 7 is sent. Further, the HLDA signal line 13 sends out a signal that allows the bus master 4 to control the bus 17, and the HOLD signal line 14 sends out a signal that the bus master 4 requests the bus arbiter 1 to control the bus 17. Further, an INT signal line 15 is installed between the main bus master 2 and the timer 5, and an INT signal line 16 is installed between the main bus master 2 and the timer 6. INT
The signal line 15 sends a signal from the timer 5 to the main bus master 2 to interrupt the CPU of the main bus master 2, and starts a program for recovery from the failure. IN
The T signal line 16 sends a signal for interrupting the CPU of the main bus master 2 from the timer 6 to the main bus master 2, and starts a program for recovery from the failure. The gate 7 is provided on the HOLD signal line 12 interposed between the bus master 3 and the bus arbiter 1, and is
It acts when invalidating the signal on the LD signal line 12. On the other hand, the gate 8 is provided on the HOLD signal line 14 interposed between the bus master 4 and the bus arbiter 1, and acts when the timer 6 invalidates the signal on the HOLD signal line 4.

以上述べたような構成において次にその作用を説明する
The operation of the configuration as described above will now be explained.

バスマスタ3とバスマスタ4の正常な処理時間は予め分
かっており、これらの時間はタイマ5及びタイマ6にお
ける規定時間の基本となっている。
The normal processing times of bus master 3 and bus master 4 are known in advance, and these times are the basis of the specified times for timers 5 and 6.

つまり、タイマ5及びタイマ6は異常判定のための規定
時間をバスマスタ3及びバスマスタ4の正常な処理時間
よりも僅かに長めの時間に設定されている。
That is, the timer 5 and the timer 6 are set to have a specified time for abnormality determination to be slightly longer than the normal processing time of the bus master 3 and the bus master 4.

今、メインバスマスタ2がバス17の制御を行っている
ものとする。次に、バスマスタ3が、HOLD信号線1
2からバスアービタ1を経由してHOLD信号線10を
経てメインバスマスタ2に対してバス17の明は渡しを
要求すると、メインバスマスタ2は実行中の処理を完了
させた上で、HLDA信号線9からバスアービタ1を経
由してHLDA信号線11を経てバスマスタ3へのバス
17の制御を許可する。このようにして、バスマスタ3
がバス17の制御権を得てバス17を制御しはじめると
同時にタイマ5が計時を始める。バスマスタ3が正常な
処理時間を経過した後もバス17の制御を終了しない場
合は、タイマ5が予め定めた規定時間を計時してしまい
異常と判定してゲート7を通じてHOLD信号線12を
強制的に無効にしてバスマスタ3からバス17の制御権
を奪い、さらにメインバスマスタ2に対してINT信号
線15を通じて割り込みをかける。メインバスマスタ2
は異常を生じたバスマスタ3に代ってバス17の制御権
を得、障害復帰のための割り込み処理プログラムを起動
する。このプログラムによってメインバスマスタ2は異
常の原因を判断し適切な処理を行い、システムの動作を
継続させる。
Assume that the main bus master 2 is currently controlling the bus 17. Next, the bus master 3 holds the HOLD signal line 1
2 requests the main bus master 2 to pass the signal on the bus 17 via the bus arbiter 1 and the HOLD signal line 10, and the main bus master 2 completes the process being executed and transfers the signal from the HLDA signal line 9 to the main bus master 2. Control of the bus 17 is permitted to the bus master 3 via the bus arbiter 1 and the HLDA signal line 11. In this way, bus master 3
At the same time that the bus 17 gains control and starts controlling the bus 17, the timer 5 starts measuring time. If the bus master 3 does not finish controlling the bus 17 even after the normal processing time has elapsed, the timer 5 will count the predetermined time and determine that there is an abnormality, and force the HOLD signal line 12 through the gate 7. The main bus master 2 is invalidated to take control of the bus 17 from the bus master 3, and further interrupts the main bus master 2 through the INT signal line 15. Main bus master 2
takes control of the bus 17 in place of the bus master 3 that has caused the abnormality, and starts an interrupt processing program for recovery from the failure. Using this program, the main bus master 2 determines the cause of the abnormality, performs appropriate processing, and continues the operation of the system.

メインバスマスタ2からバスマスタ4にバス17の制御
権が移った場合も、全く同様にしてタイマ6によってバ
スマスタ4が規定時間以内に処理を終了するか否かが判
定される。異常と判定された場合は、タイマ6からIN
T信号線16を通じてメインバスマスタ2に割り込みが
かかり、メインバスマスタ2による障害復帰のプログラ
ムが起動する。
Even when control of the bus 17 is transferred from the main bus master 2 to the bus master 4, the timer 6 determines whether the bus master 4 completes the processing within a specified time in exactly the same manner. If it is determined to be abnormal, timer 6 outputs an IN signal.
An interrupt is applied to the main bus master 2 through the T signal line 16, and a fault recovery program by the main bus master 2 is activated.

以上のような動作を通じて、バス17の制御権がメイン
バスマスタ2からバスマスタ3またはバスマスタ4に移
った後もタイマ5またはタイマ6によってその動作を監
視し、異常が検出された場合は割り込みによってメイン
バスマスタ2にバス17の制御権を戻すと共に異常復帰
のプログラムを起動させ、異常動作の原因を調査させて
適切な処理を実行させシステムの動作を継続させる。
Through the operations described above, even after control of the bus 17 is transferred from main bus master 2 to bus master 3 or bus master 4, the operation is monitored by timer 5 or timer 6, and if an abnormality is detected, the main bus master is notified by an interrupt. 2 returns control over the bus 17, starts an abnormality recovery program, investigates the cause of the abnormal operation, and executes appropriate processing to continue the operation of the system.

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

本発明によれば、マルチパスマスタシステムでシステム
異常時の自己復帰が可能となり、また異常なバスマスタ
が発生してもこのバスマスタを制御から切り放して残っ
たバスマスタによるバス制御の続行が可能となり、並列
処理システムで異常な動作を行った処理系を検出してこ
れに対処することが可能であり、マルチパスマスタシス
テムにおけるシステムの信頼性を大幅に向上することが
できる。
According to the present invention, it is possible for a multipath master system to self-recover in the event of a system error, and even if an abnormal bus master occurs, it is possible to release this bus master from control and continue bus control by the remaining bus masters, and parallel It is possible to detect and deal with a processing system that has performed an abnormal operation in the processing system, and the reliability of the multipath master system can be greatly improved.

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

第1図は本発明の一実施例に係るバス制御装置のブロッ
ク図である。 1・・・バスアービタ、2・・・メインバスマスタ、3
.4・・・パスタ、5,6・・・タイマ、7.8・・・
ゲート。 出願人代理人  佐  藤  −雄
FIG. 1 is a block diagram of a bus control device according to an embodiment of the present invention. 1... Bus arbiter, 2... Main bus master, 3
.. 4...Pasta, 5,6...Timer, 7.8...
Gate. Applicant's agent Mr. Sato

Claims (1)

【特許請求の範囲】[Claims] バスの制御を行う少なくとも1個の第1のバスマスタと
;バスの制御を行うとともに前記第1のバスマスタの異
常復帰の処理を行う第2のバスマスタと;第1及び第2
の各バスマスタを選択的にバスの制御に割り当てる手段
と;第1のバスマスタ毎に設けられ、対応する第1のバ
スマスタが正常動作する場合の最大処理時間よりも長い
設定時間が設定され、対応する第1のバスマスタの処理
開始に伴って動作開始する計時手段と;計時手段の出力
に基づいて対応する第1のバスマスタの動作を規制する
とともに、第2のバスマスタに異常処理の割り込みをか
ける割り込み制御手段と;を備えることを特徴とするバ
ス制御装置。
at least one first bus master that controls the bus; a second bus master that controls the bus and performs abnormality recovery processing for the first bus master;
means for selectively assigning each bus master to control the bus; provided for each first bus master, a set time longer than the maximum processing time when the corresponding first bus master operates normally; A timer that starts operating when the first bus master starts processing; and an interrupt control that regulates the operation of the corresponding first bus master based on the output of the timer and interrupts the second bus master for abnormal processing. A bus control device comprising means and;
JP63234564A 1988-09-19 1988-09-19 Bus controller Pending JPH0282335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63234564A JPH0282335A (en) 1988-09-19 1988-09-19 Bus controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63234564A JPH0282335A (en) 1988-09-19 1988-09-19 Bus controller

Publications (1)

Publication Number Publication Date
JPH0282335A true JPH0282335A (en) 1990-03-22

Family

ID=16972993

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63234564A Pending JPH0282335A (en) 1988-09-19 1988-09-19 Bus controller

Country Status (1)

Country Link
JP (1) JPH0282335A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08305639A (en) * 1995-04-28 1996-11-22 Nec Corp Bus monitoring circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08305639A (en) * 1995-04-28 1996-11-22 Nec Corp Bus monitoring circuit

Similar Documents

Publication Publication Date Title
JP3392320B2 (en) Bus recovery apparatus and method for multi-master bus system
US20020116670A1 (en) Failure supervising method and apparatus
JPH0282335A (en) Bus controller
JPH02293939A (en) Stack overflow detection time processing system
JPS57137949A (en) Error recovery system of logical device
JP2814587B2 (en) Watchdog timer
JPS6225795Y2 (en)
JPH05257748A (en) Microprocessor device
JPH01166161A (en) Mutual monitoring system for multiprocessor system
JP2592525B2 (en) Error detection circuit of common bus system
JPS6343560Y2 (en)
JPH0240730A (en) Abnormality detecting device for control unit for vehicle
JPH04333963A (en) Fault processing system
JPH0236971B2 (en)
JPS603778A (en) Processor reset system
JP2568535B2 (en) Microprocessor control circuit
JPH0651827A (en) Abnormality monitor system for program controller
JPH04259045A (en) Watchdog timer monitoring system
JPH03224048A (en) Informing method for interruption of transfer
JPS58114141A (en) Fault reporting system for multimicroprocessor
JPS60254338A (en) Abnormality detecting system of multiprocessor
JPH1031656A (en) Bus arbitrating system for multiprocessor system
JPH01116739A (en) Monitor equipment for cpu
JPH02130646A (en) Abnormality detecting system for cpu
JPH0454664A (en) Controller having plural cpus