JPH07141307A - Synchronization circuit for multiprocessor system - Google Patents

Synchronization circuit for multiprocessor system

Info

Publication number
JPH07141307A
JPH07141307A JP5283546A JP28354693A JPH07141307A JP H07141307 A JPH07141307 A JP H07141307A JP 5283546 A JP5283546 A JP 5283546A JP 28354693 A JP28354693 A JP 28354693A JP H07141307 A JPH07141307 A JP H07141307A
Authority
JP
Japan
Prior art keywords
time
timing
processor
interrupt signal
synchronization
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
JP5283546A
Other languages
Japanese (ja)
Inventor
Satoru Ozaki
覚 尾崎
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP5283546A priority Critical patent/JPH07141307A/en
Publication of JPH07141307A publication Critical patent/JPH07141307A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

(57)【要約】 【目的】 本発明では、他のプロセッサの異常時には特
定のプロセッサに対する割込み信号を自律的に発生させ
ることの可能なマルチプロセッサシステムの同期化回路
を提供する。 【構成】 本発明は、第2のタイマ22の計時終了パル
スPa 、第1のタイマ21の計時終了パルスPs とフリ
ップフロップ23のラッチ出力Fとの論理積、および第
2のタイマ22の計時動作中信号Ca とワイアードオア
された共通バス14を介して入力される他のプロセッサ
12の発生する同期化信号SYNCの否定との論理積の
論理和を、特定のプロセッサ11に対する割込み信号I
NTとして出力する論理和ゲート24と、フリップフロ
ップ23のラッチ出力Fと第2のタイマ22の計時動作
中信号Ca とが共に否である場合に、論理和ゲート24
から出力される割込み信号INTを他のプロセッサ12
に対する同期化信号SYNCとして共通バス14に出力
する論理積ゲート25とを有する。
(57) [Summary] [Object] The present invention provides a synchronization circuit of a multiprocessor system capable of autonomously generating an interrupt signal for a specific processor when another processor is abnormal. According to the present invention, the time counting end pulse Pa of the second timer 22, the logical product of the time counting end pulse Ps of the first timer 21 and the latch output F of the flip-flop 23, and the time counting operation of the second timer 22. The interrupt signal I for the specific processor 11 is obtained by logically adding the logical product of the middle signal Ca and the negation of the synchronization signal SYNC generated by the other processor 12 which is input via the wired or common bus 14.
When the OR gate 24 for outputting as NT, the latch output F of the flip-flop 23, and the clocking operation signal Ca of the second timer 22 are both NO, the OR gate 24
The interrupt signal INT output from the other processor 12
AND gate 25 for outputting to the common bus 14 as a synchronization signal SYNC for the.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マルチプロセッサシス
テムの同期化回路に関し、詳しくは、制御装置が複数の
プロセッサによって構成されるマルチプロセッサ構成の
制御システムにおいて、それぞれのプロセッサが実行す
る処理動作を相互に同期化するための同期化回路に係る
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a synchronizing circuit of a multiprocessor system, and more specifically, in a control system having a multiprocessor structure in which a control device is composed of a plurality of processors, each processor executes processing operations. The present invention relates to a synchronizing circuit for synchronizing with each other.

【0002】[0002]

【従来の技術】例えば、制御装置が複数のプロセッサに
よって構成されるマルチプロセッサ構成の制御システム
において、ある特定のプロセッサによって生成・処理さ
れた情報を他のプロセッサで利用しようとする場合、そ
れら各プロセッサによって起動されるプログラムの構成
などに起因して、その情報の伝達に際していわゆる無駄
時間が生じることがある。以下、この種のマルチプロセ
ッサ構成の制御システムにおいて無駄時間が生じる様子
について、図面を参照しながら説明する。
2. Description of the Related Art For example, in a multiprocessor control system in which a control device is composed of a plurality of processors, when information generated and processed by a particular processor is to be used by another processor, those processors are used. A so-called dead time may occur in transmitting the information due to the configuration of the program activated by the. Hereinafter, how dead time is generated in a control system of this type of multiprocessor will be described with reference to the drawings.

【0003】図12は、制御装置が2つのプロセッサに
よって構成されるマルチプロセッサ構成の制御システム
において無駄時間が生じる様子を説明するための図であ
る。同図に示すように、例えば、プロセッサPAによっ
て一定周期ts ごとに起動されるプログラムAの時間t
1 の経過時点で生成されたデータを、プロセッサPBに
よって同じ一定周期ts ごとに起動されるプログラムB
の時間t2 の経過時点で利用しようとする場合、それら
プロセッサPAおよびPBのそれぞれの起動タイミング
が図のように一致していれば、データの伝達に要する時
間td は、必然的に、td =t2 −t1 で表される。こ
こで、以上のデータの生成および利用に係る時間t1
よびt2 は、プログラムAおよびBのそれぞれの構成に
よってある程度まで任意に設定できることから、無駄時
間td を最小限にしたり一定の値となるように管理する
ことで、その無駄時間td の制御系に対する影響が問題
とならないようにすることは充分に可能である。
FIG. 12 is a diagram for explaining how dead time occurs in a control system having a multiprocessor structure in which a control device is composed of two processors. As shown in the figure, for example, the time t of the program A started by the processor PA at regular intervals ts.
The data generated when 1 has passed is the program B that is started by the processor PB at the same constant period ts.
When trying to use the elapsed time of the time t 2 of, if each of the start timings of the processors PA and PB match as shown in the figure, the time td required for transmission of data is necessarily, td = represented by t 2 -t 1. Here, the times t 1 and t 2 relating to the generation and use of the above data can be arbitrarily set to a certain degree by the respective configurations of the programs A and B, so that the dead time td is minimized or becomes a constant value. It is sufficiently possible to prevent the influence of the dead time td on the control system from becoming a problem by performing such management.

【0004】しかしながら、プログラムAおよびBのそ
れぞれの起動タイミングが一致していなければ、無駄時
間td は、当然、0≦td <ts の範囲で不定となるこ
とに加え、仮に、プロセッサPAおよびPBがそれぞれ
独立した水晶発振子から発生されるクロックに基づいて
プログラムAおよびBのそれぞれの起動タイミングを管
理している場合には、それぞれの水晶発振子の発振周波
数を厳密に一致させることは一般に困難であるため、無
駄時間td は水晶発振子の偏差によって時間的にも変動
することになる。すなわち、この種のマルチプロセッサ
構成の制御システムにおいては、特別な対策を講じない
限りは、情報の伝達に際しての無駄時間td は不定で時
間的にも変動することになり、例えば、ひとつの制御ル
ープを複数のプロセッサで処理しようとする場合、この
無駄時間td の存在がシステムの制御性能の向上を図る
うえで障害となるばかりか、ときとして制御系を不安定
にする原因にもなりうる。
However, if the start timings of the programs A and B do not match, the dead time td is naturally indefinite within the range of 0≤td <ts, and if the processors PA and PB are When the start timings of the programs A and B are managed based on the clocks generated from the independent crystal oscillators, it is generally difficult to make the oscillation frequencies of the crystal oscillators exactly match. Therefore, the dead time td also fluctuates temporally due to the deviation of the crystal oscillator. That is, in a control system of this type of multiprocessor configuration, unless special measures are taken, the dead time td in transmitting information is indefinite and fluctuates with time. For example, one control loop In the case where a plurality of processors are to be processed, the existence of this dead time td not only hinders the improvement of the control performance of the system, but also sometimes causes the control system to become unstable.

【0005】そこで、従来は、こうした不都合を避ける
ため、(a)情報の伝達に際して特定のプロセッサから
他のプロセッサに対してハードウェアによる割込みを発
生させ、この割込みによってデータの送付または受領を
要求することで処理の同期化を図る手法や、(b)特定
のプロセッサで割込み処理を起動するために使用される
ハードウェア信号を他のプロセッサにも供給し、その同
一のハードウェア信号で(すなわち同一のタイミング
で)それぞれのプログラムが起動されるようにそれぞれ
のプロセッサの同期化を図る手法などが用いられてい
る。
Therefore, in order to avoid such inconvenience, (a) a hardware interrupt is generated from a specific processor to another processor when transmitting information, and data transmission or reception is requested by this interrupt. Method to synchronize processing, or (b) supply the hardware signal used to activate interrupt processing in a specific processor to other processors, and use the same hardware signal (that is, the same hardware signal). (At the timing of), a method for synchronizing each processor so that each program is started is used.

【0006】[0006]

【発明が解決しようとする課題】ところが、以上の2つ
の手法のうち、(a)の手法では、情報の伝達を行うた
びごとに、そのためだけの割込みを発生させなければな
らないことから、その割込み処理に伴うソフトウェア処
理上のオーバヘッドがプロセッサにとって多大な負担と
なってスループットが低下する結果となる。また、特定
のプロセッサの動作が他のプロセッサの動作に影響を強
く与えてしまうシステム構成では、その特定のプロセッ
サの障害が他のプロセッサに直接波及してしまうので、
システムの信頼性の点からも決して好ましいものとはい
えない。
However, in the method (a) of the above two methods, an interrupt only for that purpose must be generated each time information is transmitted, and therefore the interrupt is generated. The software processing overhead associated with the processing imposes a heavy burden on the processor, resulting in a decrease in throughput. Also, in a system configuration in which the operation of a specific processor strongly affects the operation of another processor, the failure of that specific processor directly affects other processors,
From the point of view of system reliability, it is never preferable.

【0007】これに対し、(b)の手法では、ハードウ
ェア信号が供給される側の他のプロセッサのハードウェ
アの動作が、それを供給する側の特定のプロセッサのハ
ードウェアの動作に全面的に依存していることから、シ
ステムの自律性が極めて低いものとなってしまう。特
に、ハードウェア信号に異常が生じた場合には、その異
常が他の全てのプロセッサの動作に直接波及してしまう
ので、この手法も、システムの信頼性の点で問題がある
といえる。また、特定のプロセッサの周期に同期してい
ない他のプロセッサの周期を強制的に同期させようとす
れば、他のプロセッサの側の周期を過渡的に大きく変動
させる結果となることから、例えば、その周期が過渡的
に大幅に短縮されてしまった場合には、その周期内に所
定の処理を終了させることができなくなるなどの支障を
きたすおそれがある。
On the other hand, in the method (b), the operation of the hardware of the other processor on the side to which the hardware signal is supplied is completely the same as the operation of the hardware of the specific processor on the side of supplying the hardware signal. , Which results in extremely low system autonomy. Particularly, when an abnormality occurs in the hardware signal, the abnormality directly affects the operation of all the other processors, and thus this method is also problematic in terms of system reliability. In addition, if it is attempted to forcibly synchronize the cycle of another processor that is not synchronized with the cycle of the specific processor, the cycle on the side of the other processor may be transiently greatly changed. If the cycle is transiently greatly shortened, there is a possibility that a predetermined process cannot be completed within the cycle, which causes troubles.

【0008】さらに、これらの問題に加え、例えば、精
度の高い計時動作が要求される制御システムなどでは、
計時動作の基準となる信号を発生する機能が正常に機能
している間は特定のプロセッサまたは専用の信号周期に
他のプロセッサの周期を同期させる必要があるが、仮に
特定のプロセッサの動作や、専用の信号周期に異常が生
じた場合は、その他のプロセッサは、そのプロセッサ自
身で自律的に割込み信号を発生させる必要がある。
In addition to these problems, for example, in a control system requiring a highly accurate timekeeping operation,
While the function that generates the signal that serves as the reference for timing operation is functioning normally, it is necessary to synchronize the cycle of another processor with the cycle of a specific processor or a dedicated signal. When an abnormality occurs in the dedicated signal cycle, the other processors must autonomously generate the interrupt signal by themselves.

【0009】本発明は、以上のような実情に基づいて為
されたものであり、その目的は、ソフトウェア処理に特
別な負担をかけることなく、複数のプロセッサの割込み
処理を相互に同期化するとともに、基準となる割込み信
号の発生機能の異常時には個々のプロセッサに対する割
込み信号を自律的に発生させることの可能なマルチプロ
セッサシステムの同期化回路を提供することにある。
The present invention has been made based on the above-mentioned circumstances, and an object thereof is to synchronize interrupt processing of a plurality of processors with each other without imposing a special burden on software processing. An object of the present invention is to provide a synchronizing circuit of a multiprocessor system capable of autonomously generating an interrupt signal for each processor when the function of generating a reference interrupt signal is abnormal.

【0010】[0010]

【課題を解決するための手段】図1(a) ,(b) は本発明
の原理ブロック図である。本発明は複数のプロセッサが
同期化信号によって同期して動作するマルチプロセッサ
システムにおけるものである。
1 (a) and 1 (b) are block diagrams of the principle of the present invention. The present invention is in a multiprocessor system in which a plurality of processors operate in synchronization with a synchronization signal.

【0011】請求項1に記載の発明は、他のプロセッサ
の発生する同期化すべき定周期割込み信号が例えばワイ
アードオアされた共通バスを介して入力されると同時に
計時動作を開始し、その定周期割込み信号の周期から位
相の進み補償分の最大値の時限を差し引いた時限を計時
する第1の計時手段1と、この第1の計時手段1の計時
動作が終了すると同時に計時動作を開始し、位相の進み
補償分の最大値の時限を計時する第2の計時手段2と、
他のプロセッサの発生すべき同期化信号が、第1および
第2の計時手段1,2の何れの計時動作中にも共通バス
を介して入力されない場合には第2の計時手段2の計時
動作が終了した時刻に、第2の計時手段2の計時動作中
に共通バスを介して入力された場合にはその入力された
時刻に、第1の計時手段1の計時動作中に共通バスを介
して入力された場合には第1の計時手段1の計時動作が
終了した時刻に、割込み信号を生成して当該プロセッサ
に出力する割込み信号出力手段3と、他のプロセッサの
発生すべき同期化信号が第1および第2の計時手段1,
2の何れの計時動作中にも共通バスを介して入力されな
い場合に、割込み信号出力手段3から第2の計時手段2
の計時動作が終了した時刻に出力される割込み信号を、
他のプロセッサに対する同期化信号として共通バスに出
力する同期化信号出力手段4とを有して成ることを特徴
とするものである。
According to a first aspect of the present invention, a fixed-cycle interrupt signal to be synchronized, which is generated by another processor, is input, for example, via a wired or common bus, and at the same time, a clocking operation is started and the fixed cycle is started. A first time measuring means 1 for measuring a time period obtained by subtracting the time limit of the maximum value of the phase advance compensation from the cycle of the interrupt signal, and the time measuring operation is started at the same time when the time measuring operation of the first time measuring means 1 ends. Second time measuring means 2 for measuring the time limit of the maximum value of the phase advance compensation,
If the synchronization signal to be generated by the other processor is not input through the common bus during the timing operation of any of the first and second timing means 1 and 2, the timing operation of the second timing means 2 is performed. If the input is made via the common bus during the timekeeping operation of the second timekeeping means 2 at the time when is finished, at the time of the input, the common bus is sent during the timekeeping operation of the first timekeeping means 1. If the input signal is input as the interrupt signal, the interrupt signal output means 3 for generating an interrupt signal and outputting the interrupt signal to the processor at the time when the clock operation of the first clock means 1 is finished, and a synchronization signal to be generated by another processor. Is the first and second timing means 1,
When no input is made via the common bus during any of the time counting operations of 2, the interrupt signal output means 3 to the second time counting means 2
The interrupt signal output at the time when the timing operation of
It is characterized by comprising a synchronization signal output means 4 for outputting to the common bus as a synchronization signal for another processor.

【0012】請求項2に記載の発明は、第1の計時手段
1と第2の計時手段2と割込み信号出力手段3とよりな
る回路、すなわち前記請求項1記載の発明の同期化信号
出力手段4を除いた一連の回路を前記他のプロセッサに
付加し、複数のプロセッサ間の同期化動作の主従関係を
設定して成ることを特徴とするものである。
According to a second aspect of the present invention, there is provided a circuit comprising a first timing means 1, a second timing means 2 and an interrupt signal output means 3, that is, a synchronization signal output means according to the first aspect of the invention. It is characterized in that a series of circuits except 4 are added to the other processor to establish a master-slave relationship of a synchronizing operation among a plurality of processors.

【0013】また、請求項3に記載の発明は、他のプロ
セッサの発生する同期化すべき定周期割込み信号が共通
バスを介して入力されると同時に計時動作を開始し、そ
の定周期割込み信号の周期のうち位相差を遅れ動作で補
償すべき領域に相当する時限を計時する第1の計時手段
5と、この第1の計時手段5の計時動作が終了すると同
時に計時動作を開始し、定周期割込み信号の周期のうち
位相差を進み動作で補償すべき領域に相当する時限を計
時する第2の計時手段6と、この第2の計時手段6の計
時動作が終了すると同時に計時動作を開始し、定周期割
込み信号の周期から第1の計時手段5によって計時され
る時限と第2の計時手段6によって計時される時限とを
差し引いた位相の進み補償分の最大値の時限を計時する
第3の計時手段7と、この第3の計時手段7の計時動作
が終了すると同時に計時動作を開始し、位相の遅れ補償
分の最大値の時限を計時する第4の計時手段8と、他の
プロセッサの発生すべき同期化信号が、第1、第2およ
び第3の計時手段(5,6,7)の何れの計時動作中に
も共通バスを介して入力されない場合には第3の計時手
段7の計時動作が終了した時刻に、第3および第4の計
時手段(7,8)の何れかの計時動作中に共通バスを介
して入力された場合にはその入力された時刻に、第1の
計時手段5の計時動作中に共通バスを介して入力された
場合には第4の計時手段8の計時動作が終了した時刻
に、第2の計時手段6の計時動作中に共通バスを介して
入力された場合には第2の計時手段6の計時動作が終了
した時刻に、割込み信号を生成して当該プロセッサに出
力する割込み信号出力手段9と、他のプロセッサの発生
すべき同期化信号が第1、第2および第3の計時手段
(5,6,7)の何れの計時動作中にも共通バスを介し
て入力されない場合に、割込み信号出力手段から第3の
計時手段7の計時動作が終了した時刻に出力される割込
み信号を、他のプロセッサに対する同期化信号として共
通バスに出力する同期化信号出力手段10とを有して成
ることを特徴とするものである。
According to the third aspect of the invention, at the same time when the fixed cycle interrupt signal to be synchronized, which is generated by another processor, is input through the common bus, the clocking operation is started and the fixed cycle interrupt signal A first time measuring means 5 for measuring a time period corresponding to a region in which a phase difference should be compensated by a delay operation, and a time measuring operation of the first time measuring means 5 is started at the same time, and the time measuring operation is started at a fixed period. The second timing means 6 for timing the time period corresponding to the region to be compensated by the operation by advancing the phase difference in the period of the interrupt signal, and the timing operation of the second timing means 6 are started at the same time as the timing operation is started. A time period of the maximum value of the phase advance compensation amount obtained by subtracting the time period measured by the first time measuring unit 5 and the time period measured by the second time measuring unit 6 from the period of the fixed cycle interrupt signal; Timekeeping means 7 The fourth timing means 8 for starting the timing operation at the same time as the completion of the timing operation of the third timing means 7 and for timing the maximum value of the phase delay compensation amount and the synchronization to be generated by the other processors. If the activation signal is not input through the common bus during any of the timing operations of the first, second and third timing means (5, 6, 7), the timing operation of the third timing means 7 At the end time, if the input is made via the common bus during the time counting operation of any of the third and fourth time counting means (7, 8), the first time counting means 5 is set at the input time. If the input is made via the common bus during the timekeeping operation of the second timekeeping operation, the input is made via the common bus at the time when the timekeeping operation of the fourth timekeeping means 8 is completed. In this case, an interrupt signal is generated at the time when the time counting operation of the second time counting means 6 ends. The interrupt signal output means 9 for outputting to the processor and the synchronization signal to be generated by the other processor are common bus during the timing operation of any of the first, second and third timing means (5, 6, 7). Synchronization signal for outputting to the common bus an interrupt signal output from the interrupt signal output means at the time when the time counting operation of the third time counting means 7 ends when not input via the common bus The output means 10 is included.

【0014】請求項4に記載の発明は、第1の計時手段
と第2の計時手段と第3の計時手段と第4の計時手段
(5,6,7,8)と割込み信号出力手段9とよりなる
回路、すなわち前記請求項3記載の発明の同期化信号出
力手段10を除いた一連の回路を前記他のプロセッサに
付加し、複数のプロセッサ間の同期化動作の主従関係を
設定して成ることを特徴とするものである。
According to a fourth aspect of the present invention, the first time counting means, the second time counting means, the third time counting means, the fourth time counting means (5, 6, 7, 8) and the interrupt signal output means 9 are provided. And a series of circuits excluding the synchronization signal output means 10 of the invention according to claim 3 is added to the other processor to set the master-slave relationship of the synchronization operation between the plurality of processors. It is characterized by being formed.

【0015】[0015]

【作用】請求項1においては、割込み信号出力手段3に
より、他のプロセッサの発生すべき同期化信号が、第1
および第2の計時手段1,2の何れの計時動作中にも共
通バスを介して入力されない場合には第2の計時手段2
の計時動作が終了した時刻に、第2の計時手段2の計時
動作中に共通バスを介して入力された場合にはその入力
された時刻に、第1の計時手段1の計時動作中に共通バ
スを介して入力された場合には第1の計時手段1の計時
動作が終了した時刻に、割込み信号が生成されて当該プ
ロセッサに出力されるようになり、同期化信号出力手段
4により、他のプロセッサの発生すべき同期化信号が第
1および第2の計時手段1,2の何れの計時動作中にも
共通バスを介して入力されない場合に、割込み信号出力
手段3から第2の計時手段2の計時動作が終了した時刻
に出力される割込み信号が、他のプロセッサに対する同
期化信号として共通バスに出力されるようになる。この
結果、当該プロセッサの発生する同期化すべき定周期割
込み信号が、位相を進ませる方向で他のプロセッサが発
生した同期化信号に同期化されるとともに、他のプロセ
ッサの異常時には当該プロセッサに対する割込み信号が
自律的に発生され、同時に他のプロセッサに代わって同
期化信号を共通バスに供給するようになる。
According to the first aspect of the present invention, the interrupt signal output means 3 sends the synchronization signal to be generated by another processor to the first synchronization signal.
If no input is made via the common bus during any one of the timing operations of the second timing means 1 and 2, the second timing means 2
If the input is made via the common bus during the time counting operation of the second time counting means 2 at the time when the time counting operation of the above is finished, it is common during the time counting operation of the first time counting means 1 at the input time. When input through the bus, an interrupt signal is generated and output to the processor at the time when the time counting operation of the first time counting means 1 ends, and the synchronization signal output means 4 causes another When the synchronization signal to be generated by the processor is not input through the common bus during the timekeeping operation of either the first or second timekeeping means 1 or 2, the interrupt signal output means 3 to the second timekeeping means The interrupt signal output at the time when the timing operation of 2 is finished is output to the common bus as a synchronization signal for other processors. As a result, the fixed-cycle interrupt signal to be synchronized by the processor is synchronized with the synchronization signal generated by another processor in the direction of advancing the phase, and the interrupt signal for the processor is interrupted when the other processor is abnormal. Are generated autonomously, and at the same time, supply a synchronization signal to the common bus on behalf of other processors.

【0016】また、請求項2においては、請求項1記載
の同期化回路を当該プロセッサに割り当て、さらにその
請求項1記載の同期化信号出力手段4を除いた一連の回
路を他のプロセッサに割り当てその間に同期化動作の主
従関係を設定して同期化をはかる。
According to a second aspect of the present invention, the synchronization circuit according to the first aspect is assigned to the processor, and a series of circuits except the synchronization signal output means 4 according to the first aspect is assigned to another processor. In the meantime, the master-slave relationship of the synchronization operation is set to achieve the synchronization.

【0017】また、請求項3においては、割込み信号出
力手段9により、他のプロセッサの発生すべき同期化信
号が、第1、第2および第3の計時手段(5,6,7)
の何れの計時動作中にも共通バスを介して入力されない
場合には第3の計時手段7の計時動作が終了した時刻
に、第3および第4の計時手段(7,8)の何れかの計
時動作中に共通バスを介して入力された場合にはその入
力された時刻に、第1の計時手段5の計時動作中に共通
バスを介して入力された場合には第4の計時手段8の計
時動作が終了した時刻に、第2の計時手段6の計時動作
中に共通バスを介して入力された場合には第2の計時手
段6の計時動作が終了した時刻に、割込み信号が生成さ
れて当該プロセッサに出力されるようになり、他のプロ
セッサの発生すべき同期化信号が第1、第2および第3
の計時手段5,6,7の何れの計時動作中にも共通バス
を介して入力されない場合に、割込み信号出力手段9か
ら第3の計時手段7の計時動作が終了した時刻に同期化
信号出力手段10により出力される割込み信号が、他の
プロセッサに対する同期化信号として共通バスに出力さ
れるようになる。この結果、特定のプロセッサの発生す
る同期化すべき定周期割込み信号が、割込み信号出力手
段から出力される割込み信号によって位相を進ませる方
向または遅らせる方向で同期化されるとともに、他のプ
ロセッサの異常時には当該プロセッサに対する割込み信
号が自律的に発生され、同時に他のプロセッサに代わっ
て同期化信号を共通バスに供給するようになる。
Further, in claim 3, the interrupt signal output means 9 causes the synchronization signals to be generated by the other processors to be the first, second and third timing means (5, 6, 7).
If no input is made via the common bus during any of the time counting operations of the above, at the time when the time counting operation of the third time counting means 7 ends, one of the third and fourth time counting means (7, 8) When input is made via the common bus during the timekeeping operation, at the input time, and when input is made via the common bus during the timekeeping operation of the first timekeeping means 5, the fourth timekeeping means 8 is provided. If an input is made via the common bus during the time counting operation of the second time counting means 6 at the time when the time counting operation of the second time counting means 6 ends, an interrupt signal is generated at the time when the time counting operation of the second time counting means 6 ends. And output to the processor, and the synchronization signals to be generated by the other processors are the first, second and third synchronization signals.
When no input is made through the common bus during any of the time counting operations of the time measuring means 5, 6, and 7, the synchronizing signal is output from the interrupt signal output means 9 at the time when the time measuring operation of the third time measuring means 7 ends. The interrupt signal output by the means 10 will be output on the common bus as a synchronization signal for the other processors. As a result, the fixed-cycle interrupt signal to be synchronized generated by the specific processor is synchronized in the direction of advancing or delaying the phase by the interrupt signal output from the interrupt signal output means, and when another processor is abnormal. An interrupt signal for the processor is autonomously generated, and at the same time, the synchronization signal is supplied to the common bus on behalf of the other processors.

【0018】また、請求項4においては、請求項3記載
の同期化回路を当該プロセッサに割り当て、さらにその
請求項3記載の同期化信号出力手段10を除いた一連の
回路を他のプロセッサに割り当てその間に同期化動作の
主従関係を設定することにより、制御システム全体の同
期化を図りながらも、特定のプロセッサの発生する定周
期割込み信号の周期が固定化されるようになる。
Further, in claim 4, the synchronization circuit according to claim 3 is assigned to the processor, and a series of circuits except the synchronization signal output means 10 according to claim 3 is assigned to another processor. By setting the master-slave relationship of the synchronizing operation in the meantime, the period of the fixed-cycle interrupt signal generated by the specific processor is fixed while the entire control system is synchronized.

【0019】[0019]

【実施例】以下、本発明の実施例について、図面を参照
しながら詳細に説明する。まず、本発明の適用を受ける
制御装置が複数のプロセッサによって構成されるマルチ
プロセッサ構成の制御システムについて説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings. First, a control system having a multiprocessor configuration in which a control device to which the present invention is applied is composed of a plurality of processors will be described.

【0020】図2は、制御装置が2つのプロセッサによ
って構成されるマルチプロセッサ構成の制御システムの
ブロック図である。同図に示すように、この制御システ
ムは、プロセッサ(CPU−b)11と、このプロセッ
サ(CPU−b)11以外のプロセッサ(CPU−a)
12とを具備しており、さらに、これらプロセッサ(C
PU−b)11およびプロセッサ(CPU−b)12
と、本発明のマルチプロセッサシステムの同期化回路1
3とが、ワイアードオア(wired OR)された共通バス1
4で相互に接続された構成である。
FIG. 2 is a block diagram of a control system having a multiprocessor configuration in which the control device is composed of two processors. As shown in the figure, this control system includes a processor (CPU-b) 11 and a processor (CPU-a) other than this processor (CPU-b) 11.
12 and further, these processors (C
PU-b) 11 and processor (CPU-b) 12
And a synchronization circuit 1 for a multiprocessor system according to the present invention
3 and a common bus 1 wired or
4 are mutually connected.

【0021】ここで用いられるマルチプロセッサシステ
ムの同期化回路13は、他のプロセッサ(CPU−a)
12の発生する同期化信号SYNCのアクティブパルス
(ここではローレベルである。以下同じ)が共通バス1
4を介して入力されれば、その同期化信号SYNCの入
力のタイミングに同期した割込み信号INTのみを発生
してこれをプロセッサ(CPU−b)11に供給し、ま
た、その同期化信号SYNCが他のプロセッサ(CPU
−a)12の異常などで入力されなければ、所定のタイ
ミングで自律的に割込み信号INTを発生してこれをプ
ロセッサ(CPU−b)11に供給する。
The synchronizing circuit 13 of the multiprocessor system used here is another processor (CPU-a).
The active pulse of the synchronization signal SYNC generated by 12 (here, it is low level, the same applies hereinafter) is the common bus 1
4 is input, the interrupt signal INT which is synchronized with the input timing of the synchronization signal SYNC is generated and supplied to the processor (CPU-b) 11, and the synchronization signal SYNC is also supplied. Other processor (CPU
-A) If it is not input due to an abnormality in 12 or the like, the interrupt signal INT is autonomously generated at a predetermined timing and supplied to the processor (CPU-b) 11.

【0022】尚、他のプロセッサ(CPU−a)12が
発生する同期化信号SYNCはそのプロセッサ(CPU
−a)12の内部で発生した割込み信号に同期して共通
バス14に出力されたものである。
The synchronization signal SYNC generated by the other processor (CPU-a) 12 is the processor (CPU-CPU).
-A) It is output to the common bus 14 in synchronization with the interrupt signal generated inside 12.

【0023】次に、以上の図2に示したマルチプロセッ
サシステムの同期化回路13を具体化した第1の実施例
について説明する。図3は、第1の実施例に係るマルチ
プロセッサシステムの同期化回路13の具体的な構成を
示す回路図である。また、図4は、第1の実施例に係る
マルチプロセッサシステムの同期化回路13による同期
化を説明するための図である。
Next, a first embodiment embodying the synchronizing circuit 13 of the multiprocessor system shown in FIG. 2 will be described. FIG. 3 is a circuit diagram showing a specific configuration of the synchronization circuit 13 of the multiprocessor system according to the first embodiment. FIG. 4 is a diagram for explaining synchronization by the synchronization circuit 13 of the multiprocessor system according to the first embodiment.

【0024】まず、図3に示すように、このマルチプロ
セッサシステムの同期化回路13は、第1のタイマ21
(第1の計時手段1)、第2のタイマ22(第2の計時
手段2)、フリップフロップ23、論理和ゲート24
(割込み信号出力手段7)、論理積ゲート25(同期化
信号出力手段8)、およびこれらに付随して動作する否
定や論理積などの各種ゲート31〜34を有して構成さ
れている。
First, as shown in FIG. 3, the synchronization circuit 13 of the multiprocessor system includes a first timer 21.
(First time counting means 1), second timer 22 (second time counting means 2), flip-flop 23, OR gate 24
(Interrupt signal output means 7), logical product gate 25 (synchronization signal output means 8), and various gates 31 to 34 such as NOT and logical product which operate in association with them.

【0025】すなわち、図3および図4に示すように、
第1のタイマ21は、プロセッサ(CPU−b)11に
同期化すべき定周期割込み信号が供給されると同時に計
時動作を開始することで、その定周期割込み信号の周期
Ts から位相の進み補償分の最大値の時限Ta を差し引
いた時限Ts-Ta を計時するものであり、目的の時限T
s-Ta の計時終了と同時に計時終了パルスPs を出力す
る。尚、第1のタイマ21は計時終了後ただちに計時を
再スタートする。また、第2のタイマ22は、第1のタ
イマ21の計時動作が終了して計時終了パルスPs が入
力されると同時に計時動作を開始することで、位相の進
み補償分の最大値の時限Ta を計時するものであり、目
的の時限Ta の計時動作中にあっては計時動作中信号C
a を出力し、その計時終了と同時に計時終了パルスPa
を出力する。
That is, as shown in FIGS. 3 and 4,
The first timer 21 starts a timing operation at the same time when the fixed cycle interrupt signal to be synchronized is supplied to the processor (CPU-b) 11, and thereby the phase advance compensation component from the cycle Ts of the fixed cycle interrupt signal. The time period Ts-Ta obtained by subtracting the time period Ta of the maximum value of
At the same time as the timing of s-Ta ends, the timing end pulse Ps is output. The first timer 21 restarts the time measurement immediately after the time measurement ends. In addition, the second timer 22 starts the timing operation at the same time when the timing operation of the first timer 21 ends and the timing end pulse Ps is input, so that the time Ta of the maximum value of the phase advance compensation is Ta. Is used to measure the time, and during the time-measuring operation of the target time Ta, the time-measuring signal C
a is output, and at the same time as the timing ends, the timing end pulse Pa
Is output.

【0026】一方、フリップフロップ23はR−Sフリ
ップフロップであり、第1のタイマ21の計時動作中に
他のプロセッサ(CPU−a)12の発生する同期化信
号SYNCのアクティブパルスが共通バス14を介して
入力されたことを記憶する。そのアクティブパルスをゲ
ート(否定)31で反転させたパルスでセットされ、こ
の状態においてセットされた出力すなわちラッチ出力F
を出力する。
On the other hand, the flip-flop 23 is an RS flip-flop, and the active pulse of the synchronization signal SYNC generated by the other processor (CPU-a) 12 during the time counting operation of the first timer 21 is the common bus 14. It is memorized that it was input via. The active pulse is set by a pulse that is inverted by the gate (negative) 31, and the output set in this state, that is, the latch output F
Is output.

【0027】さらに、論理和ゲート24は、第2のタイ
マ22の計時終了パルスPa 、第1のタイマ21の計時
終了パルスPs とフリップフロップ23のラッチ出力F
とのゲート(論理積)32による論理積、および第2の
タイマ22の計時動作中信号Ca と共通バス14を介し
て入力される他のプロセッサ(CPU−a)12の発生
する同期化信号SYNCのゲート31による否定とのゲ
ート(論理積)33による論理積の論理和を、プロセッ
サ(CPU−b)11に対する割込み信号INTとして
出力するとともに、この割込み信号INTを以って、第
1のタイマ21のリセット・スタート、第2のタイマ2
2のリセット、およびフリップフロップ23のリセット
をそれぞれ行う。
Further, the OR gate 24 outputs the time counting end pulse Pa of the second timer 22, the time counting end pulse Ps of the first timer 21, and the latch output F of the flip-flop 23.
And a synchronization signal SYNC generated by another processor (CPU-a) 12 which is input via the common bus 14 and the clock operation signal Ca of the second timer 22. The logical sum of the logical product by the gate (logical product) 33 and the negative by the gate 31 is output as the interrupt signal INT to the processor (CPU-b) 11, and the first timer is generated by the interrupt signal INT. 21 reset start, second timer 2
2 and the flip-flop 23 are reset.

【0028】そして、論理積ゲート25は、フリップフ
ロップ23のラッチ出力Fと第2のタイマ22の計時動
作中信号Ca とが共に否である(アクティブでない)こ
とがゲート(論理積)34によって検出された場合に、
論理和ゲート24から出力される割込み信号INTを他
のプロセッサ(CPU−a)12に対する同期化信号S
YNCとして共通バス14に出力する。
The logical product gate 25 detects by the gate (logical product) 34 that the latch output F of the flip-flop 23 and the clocking signal Ca of the second timer 22 are both inactive (not active). If
The interrupt signal INT output from the OR gate 24 is used as a synchronization signal S for the other processor (CPU-a) 12.
Output to the common bus 14 as YNC.

【0029】次に、以上のように構成された第1の実施
例に係るマルチプロセッサシステムの同期化回路13の
動作について説明する。まず、時限Ts-Ta を計時する
第1のタイマ21の計時動作中に共通バス14から同期
化信号SYNCが入力されず、かつ、時限Ta を計時す
る第2のタイマ22の計時動作中にも同期化信号SYN
Cが入力されない場合には、少なくとも、プロセッサ
(CPU−b)11の発生する定周期割込み信号の周期
Ts の間に、他のプロセッサ(CPU−a)12の発生
すべき同期化信号SYNCがその異常によって入力され
ないことになるので、このマルチプロセッサシステムの
同期化回路13は、その定周期割込み信号の周期Ts が
満了した瞬間に、自律的に割込み信号INTを発生して
これをプロセッサ(CPU−b)11に供給するととも
に、同期化信号SYNCを発生してこれを共通バス14
を介して他のプロセッサ(CPU−a)12にも供給す
る。すなわち、第1のタイマ21の計時動作中と第2の
タイマ22の計時動作中とに同期化信号SYNCが入力
されなければ、先の定周期割込み信号の周期Ts が満了
した瞬間に第2のタイマ22から計時終了パルスPa が
出力されることになるので、この計時終了パルスPa が
論理和ゲート24の作用で特定のプロセッサ(CPU−
b)11に対する割込み信号INTとして出力されるよ
うになり、また、このときのフリップフロップ23のラ
ッチ出力Fと第2のタイマ22の計時動作中信号Ca と
は必然的に共に否であることから、先の論理和ゲート2
4から出力される割込み信号INTが、ゲート34およ
び論理積ゲート25の作用で他のプロセッサ(CPU−
a)12に対する同期化信号SYNCとして共通バス1
4に出力される。
Next, the operation of the synchronizing circuit 13 of the multiprocessor system according to the first embodiment configured as described above will be described. First, even when the synchronization signal SYNC is not input from the common bus 14 during the time counting operation of the first timer 21 which measures the time period Ts-Ta, and also during the time counting operation of the second timer 22 which measures the time period Ta. Synchronization signal SYN
When C is not input, at least during the period Ts of the fixed-cycle interrupt signal generated by the processor (CPU-b) 11, the synchronization signal SYNC to be generated by another processor (CPU-a) 12 is changed. Since it is not input due to an abnormality, the synchronization circuit 13 of this multiprocessor system autonomously generates the interrupt signal INT at the moment when the period Ts of the fixed-cycle interrupt signal has expired, and the interrupt signal INT is sent to the processor (CPU- b) 11 and supplies the synchronization signal SYNC to the common bus 14
It is also supplied to the other processor (CPU-a) 12 via. That is, if the synchronization signal SYNC is not input during the time counting operation of the first timer 21 and the time counting operation of the second timer 22, the second fixed timer interrupt signal is output at the moment when the cycle Ts of the previous fixed cycle interrupt signal has expired. Since the timer 22 outputs the timing end pulse Pa, this timing end pulse Pa is operated by the logical sum gate 24 so that the specific processor (CPU-
b) The signal is output as the interrupt signal INT to 11 and the latch output F of the flip-flop 23 and the clocking signal Ca of the second timer 22 at this time are both inevitable. , OR gate 2 above
The interrupt signal INT output from the processor 4 is supplied to another processor (CPU-
a) Common bus 1 as synchronization signal SYNC for 12
4 is output.

【0030】一方、時限Ts-Ta を計時する第1のタイ
マ21の計時終了後、時限Ta を計時する第2のタイマ
22の計時動作中に共通バス14から同期化信号SYN
Cが入力された場合には、このマルチプロセッサシステ
ムの同期化回路13は、その同期化信号SYNCの入力
のタイミングに同期した割込み信号INTのみを直ちに
発生してこれをプロセッサ(CPU−b)11に供給す
る。すなわち、第2のタイマ22の計時動作中に同期化
信号SYNCが入力されれば、その第2のタイマ22か
ら計時動作中信号Ca が出力されている最中にゲート3
3の論理積が得られることになるので、この論理積が論
理和ゲート24の作用でプロセッサ(CPU−b)11
に対する割込み信号INTとして直ちに出力されるよう
になる。また、このときフリップフロップ23からはラ
ッチ出力Fが出力されていることから、ゲート34およ
び論理積ゲート25の作用で共通バス14には同期化信
号SYNCが出力されないようになる。この結果、プロ
セッサ(CPU−b)11の発生する定周期割込み信号
と他のプロセッサ(CPU−a)12の発生する同期化
信号SYNCとの位相差が -Ta 〜0の範囲にある場合
には、共通バス14を介して入力される同期化信号SY
NCに対して受動的に動作するようになり、このとき論
理和ゲート24から出力される割込み信号INTによ
り、プロセッサ(CPU−b)11に供給する同期化す
べき定周期割込み信号が、その位相を -Ta 〜0の範囲
で進ませる方向で直ちに同期化される。
On the other hand, after the first timer 21 for measuring the time period Ts-Ta is finished, the synchronization signal SYN is outputted from the common bus 14 during the time measurement operation of the second timer 22 for measuring the time period Ta.
When C is input, the synchronization circuit 13 of the multiprocessor system immediately generates only the interrupt signal INT synchronized with the input timing of the synchronization signal SYNC and outputs it to the processor (CPU-b) 11 Supply to. That is, if the synchronization signal SYNC is input during the time counting operation of the second timer 22, the gate 3 is activated while the second timer 22 outputs the time counting operation signal Ca.
Since the logical product of 3 is obtained, the logical product of the logical product of 3 is obtained by the operation of the logical sum gate 24.
Will be immediately output as an interrupt signal INT to the. At this time, since the flip-flop 23 outputs the latch output F, the gate 34 and the AND gate 25 prevent the synchronization signal SYNC from being output to the common bus 14. As a result, when the phase difference between the fixed-cycle interrupt signal generated by the processor (CPU-b) 11 and the synchronization signal SYNC generated by another processor (CPU-a) 12 is in the range of -Ta to 0, , The synchronization signal SY input via the common bus 14
The operation becomes passive with respect to the NC, and at this time, the interrupt signal INT output from the OR gate 24 causes the fixed-cycle interrupt signal to be synchronized, which is supplied to the processor (CPU-b) 11, to change its phase. -It is synchronized immediately in the direction to advance in the range of Ta to 0.

【0031】そして最後に、時限Ts-Ta を計時する第
1のタイマ21の計時動作中に共通バス14から同期化
信号SYNCが入力された場合には、このマルチプロセ
ッサシステムの同期化回路13は、その時限Ts-Ta が
満了した瞬間に、割込み信号INTのみを発生してこれ
を特定のプロセッサ(CPU−b)11に供給する。す
なわち、第1のタイマ21の計時動作中に同期化信号S
YNCが入力されれば、直ちにフリップフロップ23か
らラッチ出力Fが出力され、この後に、先の時限Ts-T
a が満了して第1のタイマ21から計時終了パルスPs
が出力された瞬間にゲート32の論理積が得られること
になるので、この論理積が論理和ゲート24の作用でプ
ロセッサ(CPU−b)11に対する割込み信号INT
として出力されるようになり、また、先のフリップフロ
ップ23のラッチ出力Fにより、ゲート34および論理
積ゲート25の作用で共通バス14には同期化信号SY
NCが出力されないようになる。この結果、プロセッサ
(CPU−b)11に供給する定周期割込み信号と他の
プロセッサ(CPU−a)12の発生する同期化信号S
YNCとの位相差がTa を越える場合にも、共通バス1
4を介して入力される同期化信号SYNCに対して受動
的に動作するようになり、このとき論理和ゲート24か
ら出力される割込み信号INTにより、プロセッサ(C
PU−b)11の発生する同期化すべき定周期割込み信
号が、その位相を最大で時限Ta だけ進ませる方向で同
期化される。
Finally, when the synchronization signal SYNC is input from the common bus 14 during the timing operation of the first timer 21 for timing the time period Ts-Ta, the synchronization circuit 13 of this multiprocessor system is At the moment when the time period Ts-Ta has expired, only the interrupt signal INT is generated and supplied to the specific processor (CPU-b) 11. That is, the synchronization signal S is generated during the time counting operation of the first timer 21.
When YNC is input, the latch output F is immediately output from the flip-flop 23, and then the previous time period Ts-T
When a has expired, the first timer 21 outputs the timing end pulse Ps.
Since the logical product of the gate 32 is obtained at the moment when is output, the logical product of this logical product is the interrupt signal INT to the processor (CPU-b) 11 by the operation of the logical sum gate 24.
Further, the latch output F of the flip-flop 23 causes the synchronizing signal SY to be output to the common bus 14 by the action of the gate 34 and the AND gate 25.
NC will not be output. As a result, the fixed-cycle interrupt signal supplied to the processor (CPU-b) 11 and the synchronization signal S generated by another processor (CPU-a) 12 are generated.
Even if the phase difference with YNC exceeds Ta, common bus 1
4 becomes to operate passively with respect to the synchronization signal SYNC input via the processor 4, and the interrupt signal INT output from the OR gate 24 causes the processor (C
The fixed-cycle interrupt signal to be synchronized, which is generated by PU-b) 11, is synchronized in such a direction as to advance its phase by the maximum time Ta.

【0032】図5は前述した第1の実施例のプロセッサ
(CPU−b)11がプロセッサ(CPU−a)12の
周期Tsaの同期信号に同期引き込みする際のタイミング
チャートである。プロセッサ(CPU−a)12は周期
Tsaの割込み信号(CPU−a Interrupt)Sa11 〜S
a16 で動作する。また、この割込み信号Sa11 〜Sa1 6
はプロセッサ(CPU−a)12内での信号であり、プ
ロセッサ(CPU−a)12からこの割込み信号Sa11
〜Sa16 はバス14の同期化信号(SYNC;B11〜B
16)として出力される。なお、ここでプロセッサ(CP
U−a)12はマスタCPUである。この同期化信号S
a11 〜Sa16 に対しプロセッサ(CPU−b)11が以
下の如く同期するよう動作する。
FIG. 5 is a timing chart when the processor (CPU-b) 11 of the first embodiment described above synchronously pulls in the synchronization signal of the cycle Tsa of the processor (CPU-a) 12. The processor (CPU-a) 12 has an interrupt signal (CPU-a Interrupt) Sa 11 to S of a cycle Tsa.
Works with a 16 . Further, the interrupt signal Sa 11 -SA 1 6
Is a signal in the processor (CPU-a) 12, and the interrupt signal Sa 11 from the processor (CPU-a) 12
To Sa 16 are synchronization signals (SYNC; B 11 to B) of the bus 14.
16 ) is output. Note that here, the processor (CP
U-a) 12 is a master CPU. This synchronization signal S
a 11 to -SA 16 processor (CPU-b) 11 operates to synchronize as follows.

【0033】割込み信号Sa11 がバスインタラプト信号
としてすなわち同期化信号B11となって共通バス14へ
出力される。ここでプロセッサ(CPU−b)11へイ
ンタラプト信号Sb11 がマルチプロセッサシステムの同
期化回路13より加わったとする。尚、マルチプロセッ
サシステムの同期化回路13からプロセッサ(CPU−
b)11への基本的なインタラプトの周期をTsbとす
る。また、前述した時限Ta をTabとする。この時限T
sb−Tabの間にプロセッサ(CPU−a)12の割込み
信号Sa11 に対応する同期化信号B11が存在するときに
は、プロセッサ(CPU−b)11のマルチプロセッサ
システムの同期化回路13は時限Tsb−Tabの終了時に
割込み信号Sb11 をプロセッサ(CPU−b)11へ出
力する。
The interrupt signal Sa 11 is output as a bus interrupt signal, that is, a synchronization signal B 11 to the common bus 14. Here, it is assumed that the interrupt signal Sb 11 is applied to the processor (CPU-b) 11 from the synchronization circuit 13 of the multiprocessor system. It should be noted that the synchronization circuit 13 of the multiprocessor system can be connected to the processor
b) Let Tsb be the basic interrupt cycle to 11. Further, the above-mentioned time period Ta is set to Tab. This time period T
When the synchronization signal B 11 corresponding to the interrupt signal Sa 11 of the processor (CPU-a) 12 exists between sb and Tab, the synchronization circuit 13 of the multiprocessor system of the processor (CPU-b) 11 has a time period Tsb. At the end of -Tab, the interrupt signal Sb 11 is output to the processor (CPU-b) 11.

【0034】続いて、割込み信号Sb11 の後の時限Tsb
−Tabの間に同期化信号B12が存在するので、同様にマ
ルチプロセッサシステムの同期化回路13は割込み信号
Sb1 2 をプロセッサ(CPU−b)11に出力する。ま
た、次のクロックにおいても同様であり、割込み信号S
b13 をプロセッサ(CPU−b)11に出力する。
Then, the time period Tsb after the interrupt signal Sb 11 is reached.
Since the synchronization signal B 12 is present during −Tab, the synchronization circuit 13 of the multiprocessor system similarly outputs the interrupt signal Sb 1 2 to the processor (CPU-b) 11. The same applies to the next clock, and the interrupt signal S
b 13 is output to the processor (CPU-b) 11.

【0035】一方、プロセッサ(CPU−b)11の割
込み信号Sb13 が出力された後においては時限Tsb−T
a の期間に同期化信号は加わらなくなる。よって、マル
チプロセッサシステムの同期化回路13は時限Tsb−T
abの終了時に割込み信号Sb1 4 ′を出力せず、同期化信
号B14が加わった時、その信号を割込み信号Sb14 とし
てプロセッサ(CPU−b)11に出力する。尚、時限
Tabの間に同期化信号B14が加わらない時には、割込み
信号Sb14 ″が時限Tabの終了時に出力される。図5に
おいては、プロセッサ(CPU−a)12の割込み信号
の同期Tsaはプロセッサ(CPU−b)11の割込み信
号の同期より短いので時限Tab内に同期化信号B14が発
生する。
On the other hand, after the interrupt signal Sb 13 of the processor (CPU-b) 11 is output, the time period Tsb-T
No synchronization signal is added during period a. Therefore, the synchronization circuit 13 of the multiprocessor system has the time limit Tsb-T.
When the ab ends, the interrupt signal Sb 1 4 ′ is not output, and when the synchronization signal B 14 is added, the signal is output as the interrupt signal Sb 14 to the processor (CPU-b) 11. When the synchronization signal B 14 is not applied during the time period Tab, the interrupt signal Sb 14 ″ is output at the end of the time period Tab. In FIG. 5, the interrupt signal synchronization Tsa of the processor (CPU-a) 12 is Tsa. Is shorter than the synchronization of the interrupt signal of the processor (CPU-b) 11, the synchronization signal B 14 is generated within the time period Tab.

【0036】以後、プロセッサ(CPU−a)12への
割込み信号Sa15 ,Sa16 に同期して同期化信号B15
16が出力され、それに対応してマルチプロセッサシス
テムの同期化回路13から割込み信号Sb15 ,Sb16
出力される。
Thereafter, the synchronizing signals B 15 , S 15 are synchronized with the interrupt signals Sa 15 , Sa 16 to the processor (CPU-a) 12.
B 16 is output, and correspondingly, the synchronizing circuit 13 of the multiprocessor system outputs interrupt signals Sb 15 and Sb 16 .

【0037】以上のような動作により、プロセッサ(C
PU−a)12の割込み信号に同期してプロセッサ(C
PU−b)11への割込み信号が同期する。なお、第1
の実施例において、マスタとなるときプロセッサの割込
み信号の周期はTsaはそれに同期するプロセッサ(CP
U−b)11の割込み信号の周期Tsbより小さくなくて
はならない。次に、図2に示したマルチプロセッサシス
テムの同期化回路13を具体化した第2の実施例につい
て説明する。
By the above operation, the processor (C
PU-a) 12 is synchronized with the interrupt signal of the processor (C
The interrupt signal to PU-b) 11 is synchronized. The first
In this embodiment, when the processor becomes the master, the cycle of the interrupt signal of the processor Tsa is the processor (CP
It must be shorter than the period Tsb of the interrupt signal Ub) 11. Next, a second embodiment in which the synchronization circuit 13 of the multiprocessor system shown in FIG. 2 is embodied will be described.

【0038】図6は、第2の実施例に係るマルチプロセ
ッサシステムの同期化回路13の具体的な構成を示す回
路図である。また、図7は、第2の実施例に係るマルチ
プロセッサシステムの同期化回路13による同期化を説
明する図である。
FIG. 6 is a circuit diagram showing a specific structure of the synchronizing circuit 13 of the multiprocessor system according to the second embodiment. FIG. 7 is a diagram for explaining synchronization by the synchronization circuit 13 of the multiprocessor system according to the second embodiment.

【0039】まず、図6に示すように、このマルチプロ
セッサシステムの同期化回路13は、第1のタイマ41
(第1の計時手段5)、第2のタイマ42(第2の計時
手段6)、第3のタイマ43(第3の計時手段7)、第
4のタイマ44(第4の計時手段8)、第1のフリップ
フロップ45、第2のフリップフロップ46、論理和ゲ
ート47(割込み信号出力手段9)、論理積ゲート48
(同期化信号出力手段10)、およびこれらに付随して
動作する否定、論理積、論理和などの各種ゲート51〜
59を有して構成される。
First, as shown in FIG. 6, the synchronization circuit 13 of the multiprocessor system includes a first timer 41.
(First time measuring means 5), second timer 42 (second time measuring means 6), third timer 43 (third time measuring means 7), fourth timer 44 (fourth time measuring means 8) , A first flip-flop 45, a second flip-flop 46, an OR gate 47 (interrupt signal output means 9), an AND gate 48
(Synchronization signal output means 10), and various gates 51, such as NOT, logical product, and logical sum, which operate in association with these
It is configured with 59.

【0040】第1のタイマ41は、プロセッサ(CPU
−b)11に同期化すべき定周期割込み信号が供給され
ると同時に計時動作を開始することで、その定周期割込
み信号の周期Ts のうち位相差を遅れ動作で補償すべき
領域に相当する時限Ts1を計時する。目的の時限Ts1
計時動作中にあっては計時動作中信号Cs1を出力し、そ
の計時終了と同時に計時終了パルスPs1を出力する。
尚、第1のタイマ41は自走形のタイマであり、リセッ
トされない場合には最大時間計時後自動的に再スタート
する。
The first timer 41 is a processor (CPU
-B) By starting the timing operation at the same time when the fixed period interrupt signal to be synchronized with 11 is supplied, the time period corresponding to the region of the period Ts of the fixed period interrupt signal that should be compensated for by the delay action. Time Ts 1 . During the timekeeping operation of the target time period Ts 1, the timekeeping operation signal Cs 1 is output, and simultaneously with the end of the timekeeping, the timekeeping end pulse Ps 1 is output.
The first timer 41 is a self-propelled timer, and if it is not reset, it automatically restarts after the maximum time is counted.

【0041】第2のタイマ42は、第1のタイマ41の
計時動作が終了して計時終了パルスPs1が入力されると
同時に計時動作を開始する。先の定周期割込み信号の周
期のうち位相差を進み動作で補償すべき領域に相当する
時限Ts2を計時するものであり、目的の時限Ts2の計時
動作中にあっては計時動作中信号Cs2を出力し、その計
時終了と同時に計時終了パルスPs2を出力する。
The second timer 42 starts the timing operation at the same time when the timing operation of the first timer 41 ends and the timing end pulse Ps 1 is input. Previous is intended for measuring the time period Ts 2 corresponding to the region to be compensated by proceeds operating a phase difference of the period of the periodic interrupt signal during counting operation In the time counting operation of the time period Ts 2 of the target signal Cs 2 is output, and at the same time as the end of the timing, a timing end pulse Ps 2 is output.

【0042】第3のタイマ43は、第2のタイマ42の
計時動作が終了して計時終了パルスPs2が入力されると
同時に計時動作を開始することで、先の定周期割込み信
号の周期Ts から第1のタイマ41によって計時される
時限Ts1と第2のタイマ42によって計時される時限T
s2とを差し引いた位相の進み補償分の最大値の時限Ta1
を計時する。その動作時には、目的の時限Ta1の計時動
作中にあっては計時動作中信号Ca1を出力し、その計時
終了と同時に計時終了パルスPa1を出力する。
The third timer 43 starts the timing operation at the same time when the timing operation of the second timer 42 is finished and the timing end pulse Ps 2 is inputted, so that the cycle Ts of the previous fixed cycle interrupt signal is started. From the time period Ts 1 measured by the first timer 41 and the time period T measured by the second timer 42
The time limit Ta 1 of the maximum value of the phase advance compensation minus s 2
Time. At the time of the operation, during the timekeeping operation of the target time period Ta 1 , the timekeeping operation signal Ca 1 is output, and simultaneously with the end of the timekeeping, the timekeeping end pulse Pa 1 is output.

【0043】第4のタイマ44は、第3のタイマ43の
計時動作が終了して計時終了パルスPa1が入力されると
同時に計時動作を開始することで、位相の遅れ補償分の
最大値の時限Ta2を計時する。目的の時限Ta2の計時動
作中にあっては計時動作中信号Ca2を出力し、その計時
終了と同時に計時終了パルスPa2を出力する。
The fourth timer 44 starts the timing operation at the same time when the timing operation of the third timer 43 ends and the timing end pulse Pa 1 is input, so that the maximum value of the phase delay compensation component Time Ta 2 is timed. During the timekeeping operation of the target time period Ta 2, the timekeeping operation signal Ca 2 is output, and simultaneously with the end of the timekeeping, the timekeeping end pulse Pa 2 is output.

【0044】第1のフリップフロップ45は、第1のタ
イマ41の計時動作中に他のプロセッサ(CPU−a)
12の発生する同期化信号SYNCのアクティブパルス
が共通バス14を介して入力されたことを記憶する例え
ばR−Sフリップフロップであり、そのアクティブパル
スをゲート(否定)51で反転させたパルスと第1のタ
イマ41の計時動作中信号Cs1とのゲート(論理積)5
2による論理積によってセットすなわちラッチし、この
状態においてラッチ出力F1 を出力する。また、第2の
フリップフロップ46は、第2のタイマ42の計時動作
中に他のプロセッサ(CPU−a)12の発生する同期
化信号SYNCのアクティブパルスが共通バス14を介
して入力されたことを記憶する例えばR−Sフリップフ
ロップであり、そのアクティブパルスをゲート51で反
転させたパルスと第2のタイマ42の計時動作中信号C
s2とのゲート(論理積)53による論理積によってセッ
トすなわちラッチし、この状態においてラッチ出力F2
を出力する。
The first flip-flop 45 is used by another processor (CPU-a) during the time counting operation of the first timer 41.
For example, an RS flip-flop that stores that the active pulse of the synchronization signal SYNC generated by 12 is input through the common bus 14, and the active pulse is inverted by the gate (negative) 51 and the second pulse. Gate (logical product) 5 with signal Cs 1 during timer operation of timer 41 of 1
The logical product of 2 sets or latches the latched output F 1 in this state. Further, the second flip-flop 46 receives the active pulse of the synchronization signal SYNC generated by the other processor (CPU-a) 12 during the time counting operation of the second timer 42 via the common bus 14. For example, an RS flip-flop for storing the pulse, the active pulse of which is inverted by the gate 51 and the signal C during clock operation of the second timer 42.
Set or latch by the logical product of the gate (logical product) 53 with s 2, and in this state, the latch output F 2
Is output.

【0045】さらに、論理和ゲート47は、第4のタイ
マ44の計時終了パルスPa2と第1のフリップフロップ
45のラッチ出力F1 とのゲート(論理積)54による
論理積、第3のタイマ43の計時終了パルスPa1と第1
のフリップフロップ45の否のラッチ出力F1 と第2の
フリップフロップ46の否のラッチ出力F2 とのゲート
(論理積)55による論理積、第2のタイマ42の計時
終了パルスPs2と第2のフリップフロップ46のラッチ
出力F2 とのゲート(論理積)56による論理積、およ
び第3のタイマ43の計時動作中信号Ca1と第4のタイ
マ44の計時動作中信号Ca2とのゲート(論理和)57
による論理和と共通バス14を介して入力される他のプ
ロセッサ(CPU−a)12の発生する同期化信号SY
NCのゲート51による否定とのゲート(論理積)58
による論理積の論理和を、プロセッサ(CPU−b)1
1に対する割込み信号INTとして出力するとともに、
この割込み信号INTを以って、第1のタイマ41のリ
セット・スタート、第2のタイマ42のリセット、第3
のタイマ43のリセット、第4のタイマ44のリセッ
ト、第1のフリップフロップ45のリセット、および第
2のフリップフロップ46のリセットをそれぞれ行う。
Further, the logical sum gate 47 is a logical product of the gate (logical product) 54 of the time counting end pulse Pa 2 of the fourth timer 44 and the latch output F 1 of the first flip-flop 45, and the third timer. 43 timing end pulse Pa 1 and the first
Latch output F 1 whether the flip-flop 45 with the logical product by the gate (logical product) 55 the latch output F 2 of the absence of the second flip-flop 46, the count end pulse Ps 2 of the second timer 42 second the gate of the latch output F 2 of the second flip-flop 46 (logical product) 56 by logical, and the third time counting operation in the signal Ca 1 timer 43 counting operation in the signal Ca 2 of the fourth timer 44 Gate (logical sum) 57
And a synchronization signal SY generated by another processor (CPU-a) 12 input via the common bus 14.
Gate (AND) 58 with negation by gate 51 of NC
The logical sum of the logical product by the processor (CPU-b) 1
While outputting as an interrupt signal INT for 1,
This interrupt signal INT is used to reset / start the first timer 41, reset the second timer 42, and reset the third timer 42.
The timer 43 is reset, the fourth timer 44 is reset, the first flip-flop 45 is reset, and the second flip-flop 46 is reset.

【0046】そして、論理積ゲート48は、第1のフリ
ップフロップ45のラッチ出力F1と第2のフリップフ
ロップ46のラッチ出力F2 とが共に否であり(アクテ
ィブでなく)、かつ、他のプロセッサ(CPU−a)1
2の発生する同期化信号SYNCが共通バス14を介し
て入力されないことがゲート51とゲート(論理積)5
9とによって検出された場合に、論理和ゲート47から
出力される割込み信号INTを他のプロセッサ(CPU
−a)12に対する同期化信号SYNCとして共通バス
14に出力するようになっている。
[0046] Then, AND gate 48 includes a latch output F 1 of the first flip-flop 45 is not both and the latch output F 2 of the second flip-flop 46 (not active), and other Processor (CPU-a) 1
The gate 51 and the gate (logical product) 5 are that the synchronization signal SYNC generated by 2 is not input through the common bus 14.
9 and the interrupt signal INT output from the OR gate 47 is detected by another processor (CPU).
-A) The synchronization signal SYNC for 12 is output to the common bus 14.

【0047】次に、以上のように構成された第2の実施
例に係るマルチプロセッサシステムの同期化回路13の
動作について説明する。まず、時限Ts1および時限Ts2
をそれぞれ計時する第1のタイマ41および第2のタイ
マ42のそれぞれの計時動作中に共通バス14から同期
化信号SYNCが入力されず、かつ、時限Ta1を計時す
る第3のタイマ43の計時動作中にも同期化信号SYN
Cが入力されない場合には、少なくとも、プロセッサ
(CPU−b)11の発生する定周期割込み信号の周期
Ts の間に、他のプロセッサ(CPU−a)12の発生
すべき同期化信号SYNCがその異常によって入力され
ないことになるので、このマルチプロセッサシステムの
同期化回路13は、その定周期割込み信号の周期Ts が
満了した瞬間に、自律的に割込み信号INTを発生して
これをプロセッサ(CPU−b)11に供給するととも
に、同期化信号SYNCを発生してこれを共通バス14
を介して他のプロセッサ(CPU−a)12にも供給す
る。すなわち、第1のタイマ41が計時動作中信号Cs1
を出力している最中に同期化信号SYNCが入力されな
ければ、ゲート52の作用で第1のフリップフロップ4
5のラッチ出力F1 が否となるとともに、第2のタイマ
42が計時動作中信号Cs2を出力している最中に同期化
信号SYNCが入力されなければ、ゲート53の作用で
第2のフリップフロップ46のラッチ出力F2 も否とな
り、この後に、先の定周期割込み信号の周期Ts が満了
して第3のタイマ43から計時終了パルスPa1が出力さ
れた瞬間にゲート55の論理積が得られることになるの
で、この論理積が論理和ゲート47の作用で特定のプロ
セッサ(CPU−b)11に対する割込み信号INTと
して出力される。また、このときの第1のフリップフロ
ップ45のラッチ出力F1 と第2のフリップフロップ4
6のラッチ出力F2 とは上述のように共に否であること
から、先の論理和ゲート47から出力される割込み信号
INTが、ゲート59および論理積ゲート48の作用で
他のプロセッサ(CPU−a)12に対する同期化信号
SYNCとして共通バス14に出力される。
Next, the operation of the synchronizing circuit 13 of the multiprocessor system according to the second embodiment configured as described above will be described. First, time Ts 1 and time Ts 2
The synchronization signal SYNC is not input from the common bus 14 during the time-measuring operation of each of the first timer 41 and the second timer 42 that respectively time the time, and the time of the third timer 43 that times the time period Ta 1 is measured. Synchronization signal SYN during operation
When C is not input, at least during the period Ts of the fixed-cycle interrupt signal generated by the processor (CPU-b) 11, the synchronization signal SYNC to be generated by another processor (CPU-a) 12 is changed. Since it is not input due to an abnormality, the synchronization circuit 13 of this multiprocessor system autonomously generates the interrupt signal INT at the moment when the period Ts of the fixed-cycle interrupt signal has expired, and the interrupt signal INT is sent to the processor (CPU- b) 11 and supplies the synchronization signal SYNC to the common bus 14
It is also supplied to the other processor (CPU-a) 12 via. That is, the first timer 41 outputs the signal Cs 1
If the synchronization signal SYNC is not input during the output of the signal, the action of the gate 52 causes the first flip-flop 4 to operate.
If the latch output F 1 of No. 5 becomes negative and the synchronization signal SYNC is not input while the second timer 42 is outputting the in-time counting signal Cs 2 , the action of the gate 53 causes the second output. The latch output F 2 of the flip-flop 46 also becomes unacceptable, and the logical product of the gate 55 is output at the moment when the period Ts of the previous fixed period interrupt signal has expired and the time counting end pulse Pa 1 has been output from the third timer 43. Therefore, this logical product is output as the interrupt signal INT to the specific processor (CPU-b) 11 by the operation of the logical sum gate 47. Further, at this time, the latch output F 1 of the first flip-flop 45 and the second flip-flop 4
Since both the latch output F 2 and the latch output F 2 of 6 are NO as described above, the interrupt signal INT output from the OR gate 47 is operated by the gate 59 and the AND gate 48 so that another processor (CPU- a) It is output to the common bus 14 as a synchronization signal SYNC for 12.

【0048】一方、時限Ts1および時限Ts2をそれぞれ
計時する第1のタイマ41および第2のタイマ42のそ
れぞれの計時終了後、時限Ta1および時限Ta2をそれぞ
れ計時する第3のタイマ43および第4のタイマ44の
それぞれの計時動作中の何れかに共通バス14から同期
化信号SYNCが入力された場合には、このマルチプロ
セッサシステムの同期化回路13は、その同期化信号S
YNCの入力のタイミングに同期した割込み信号INT
のみを直ちに発生してこれをプロセッサ(CPU−b)
11に供給する。すなわち、第3のタイマ43または第
4のタイマ44の計時動作中に同期化信号SYNCが入
力されれば、その第3のタイマ43または第4のタイマ
44からゲート57を介して計時動作中信号Ca1または
計時動作中信号Ca2が出力されている最中にゲート58
の論理積が得られることになるので、この論理積が論理
和ゲート47の作用でプロセッサ(CPU−b)11に
対する割込み信号INTとして直ちに出力される。ま
た、このときゲート51の出力が否でないことから、ゲ
ート59および論理積ゲート48の作用で共通バス14
には同期化信号SYNCが出力されないようになる。こ
の結果、プロセッサ(CPU−b)11の発生する定周
期割込み信号と他のプロセッサ(CPU−a)12の発
生する同期化信号SYNCとの位相差が -Ta1〜 +Ta2
の範囲にある場合には、共通バス14を介して入力され
る同期化信号SYNCに対して受動的に動作するように
なり、このとき論理和ゲート47から出力される割込み
信号INTにより、プロセッサ(CPU−b)11に供
給される同期化すべき定周期割込み信号が、その位相を
-Ta1〜 +Ta2の範囲で進ませる方向または遅らせる方
向で直ちに同期化される。
On the other hand, after the respective timers of the first timer 41 and the second timer 42 for measuring the time period Ts 1 and the time period Ts 2 respectively have finished, the third timer 43 for measuring the time period Ta 1 and the time period Ta 2 respectively. When the synchronization signal SYNC is input from the common bus 14 to any one of the clocking operations of the fourth timer 44 and the fourth timer 44, the synchronization circuit 13 of the multiprocessor system detects the synchronization signal S.
Interrupt signal INT synchronized with YNC input timing
Only generate immediately and make this a processor (CPU-b)
Supply to 11. That is, if the synchronization signal SYNC is input during the time counting operation of the third timer 43 or the fourth timer 44, the time counting operation signal is output from the third timer 43 or the fourth timer 44 via the gate 57. The gate 58 is activated while Ca 1 or the signal Ca 2 during clock operation is being output.
Therefore, the logical product is immediately output as the interrupt signal INT to the processor (CPU-b) 11 by the operation of the logical sum gate 47. Further, since the output of the gate 51 is not negative at this time, the common bus 14 is operated by the operation of the gate 59 and the AND gate 48.
The synchronization signal SYNC will not be output to. As a result, the phase difference between the fixed-cycle interrupt signal generated by the processor (CPU-b) 11 and the synchronization signal SYNC generated by another processor (CPU-a) 12 is -Ta 1 to + Ta 2
In the range of, the processor operates passively with respect to the synchronization signal SYNC input via the common bus 14, and at this time, the interrupt signal INT output from the OR gate 47 causes the processor ( The fixed-cycle interrupt signal to be synchronized, which is supplied to the CPU-b) 11, changes its phase.
Is immediately synchronized -ta 1 ~ + Ta direction or retard direction to advance in the second range.

【0049】また、時限Ts1を計時する第1のタイマ4
1の計時動作中に共通バス14から同期化信号SYNC
が入力された場合には、このマルチプロセッサシステム
の同期化回路13は、第4のタイマ44によって計時さ
れる時限Ta2が満了した瞬間に、割込み信号INTのみ
を発生してこれをプロセッサ(CPU−b)11に供給
する。すなわち、第1のタイマ41が計時動作中信号C
s1を出力している最中に同期化信号SYNCが入力され
れば、ゲート52の作用で直ちに第1のフリップフロッ
プ45からラッチ出力F1 が出力され、この後に、先の
時限Ta2が満了して第4のタイマ44から計時終了パル
スPa2が出力された瞬間にゲート54の論理積が得られ
ることになるので、この論理積が論理和ゲート47の作
用でプロセッサ(CPU−b)11に対する割込み信号
INTとして出力されるようになり、また、先の第1の
フリップフロップ45のラッチ出力F1 により、ゲート
59および論理積ゲート48の作用で共通バス14には
同期化信号SYNCが出力されない。この結果、プロセ
ッサ(CPU−b)11に供給される定周期割込み信号
と他のプロセッサ(CPU−a)12の発生する同期化
信号SYNCとの進み位相差がTa2を越える場合にも、
共通バス14を介して入力される同期化信号SYNCに
対して受動的に動作し、このとき論理和ゲート47から
出力される割込み信号INTにより、プロセッサ(CP
U−b)11の発生する同期化すべき定周期割込み信号
が、その位相を最大で時限Ta2だけ遅らせる方向で同期
化される。
The first timer 4 for measuring the time period Ts 1
The synchronization signal SYNC from the common bus 14 during the timing operation of 1
, The synchronization circuit 13 of the multiprocessor system generates only the interrupt signal INT at the moment when the time Ta 2 measured by the fourth timer 44 expires and outputs it to the processor (CPU). -B) Supply to 11. That is, the first timer 41 is a signal C during clock operation.
If the synchronization signal SYNC is input while s 1 is being output, the latch output F 1 is immediately output from the first flip-flop 45 by the action of the gate 52, and then the previous time period Ta 2 is output. Since the logical product of the gate 54 is obtained at the moment when the time expires and the fourth timer 44 outputs the timing end pulse Pa 2 , the logical product is obtained by the operation of the logical sum gate 47. 11 is output as the interrupt signal INT, and the latch output F 1 of the first flip-flop 45 causes the synchronization signal SYNC to be output to the common bus 14 by the action of the gate 59 and the AND gate 48. No output. As a result, even when the lead phase difference between the fixed cycle interrupt signal supplied to the processor (CPU-b) 11 and the synchronization signal SYNC generated by another processor (CPU-a) 12 exceeds Ta 2 ,
It operates passively with respect to the synchronization signal SYNC input via the common bus 14, and the interrupt signal INT output from the OR gate 47 at this time causes the processor (CP
The U-b) 11 generated fixed-cycle interrupt signal to be synchronized is synchronized in the direction in which its phase is delayed by a maximum time Ta 2 .

【0050】そして最後に、時限Ts2を計時する第2の
タイマ42の計時動作中に共通バス14から同期化信号
SYNCが入力された場合には、このマルチプロセッサ
システムの同期化回路13は、その時限Ts2が満了した
瞬間に、割込み信号INTのみを発生してこれをプロセ
ッサ(CPU−b)11に供給する。すなわち、第2の
タイマ42が計時動作中信号Cs2を出力している最中に
同期化信号SYNCが入力されれば、ゲート53の作用
で直ちに第2のフリップフロップ46からラッチ出力F
2 が出力され、この後に、先の時限Ts2が満了して第2
のタイマ42から計時終了パルスPs2が出力された瞬間
にゲート56の論理積が得られることになるので、この
論理積が論理和ゲート47の作用でプロセッサ(CPU
−b)11に対する割込み信号INTとして出力され
る。また、先の第2のフリップフロップ46のラッチ出
力F2 により、ゲート59および論理積ゲート48の作
用で共通バス14には同期化信号SYNCは出力されな
い。この結果、プロセッサ(CPU−b)11に供給さ
れる定周期割込み信号と他のプロセッサ(CPU−a)
12の発生する同期化信号SYNCとの遅れ位相差がT
a1を越える場合にも、共通バス14を介して入力される
同期化信号SYNCに対して受動的に動作するようにな
り、このとき論理和ゲート47から出力される割込み信
号INTにより、プロセッサ(CPU−b)11に供給
される同期化すべき定周期割込み信号が、その位相を最
大で時限Ta1だけ進ませる方向で同期化される。
Finally, when the synchronization signal SYNC is input from the common bus 14 during the timing operation of the second timer 42 for timing the time period Ts 2 , the synchronization circuit 13 of this multiprocessor system is At the moment when the time limit Ts 2 expires, only the interrupt signal INT is generated and supplied to the processor (CPU-b) 11. That is, if the synchronization signal SYNC is input while the second timer 42 is outputting the signal Cs 2 during clock operation, the latch output F is immediately output from the second flip-flop 46 by the action of the gate 53.
2 is output, and after this, the second time period Ts 2 expires and the second
Since the logical product of the gate 56 is obtained at the moment when the timer 42 outputs the timing end pulse Ps 2 , this logical product is operated by the logical sum gate 47.
-B) Output as an interrupt signal INT for 11. Further, due to the latch output F 2 of the second flip-flop 46, the synchronizing signal SYNC is not output to the common bus 14 by the action of the gate 59 and the AND gate 48. As a result, the fixed-cycle interrupt signal supplied to the processor (CPU-b) 11 and another processor (CPU-a)
12 has a delay phase difference of T from the synchronization signal SYNC.
Even when a 1 is exceeded, it operates passively with respect to the synchronization signal SYNC input through the common bus 14, and the interrupt signal INT output from the OR gate 47 at this time causes the processor ( The fixed-cycle interrupt signal to be synchronized, which is supplied to the CPU-b) 11, is synchronized in such a direction as to advance its phase by the maximum time Ta 1 .

【0051】図8はマスタCPUへの同期引き込みのタ
イミングチャートである。本発明の第2の実施例におい
ては時限Ts1,Ts2を計時している。プロセッサ(CP
U−b)11に対応するマルチプロセッサシステムの同
期化回路13の前述した時限Ts1,Ts2をTs1b ,Ts2
b とする。また、同様に時限Ta1,Ta2を時限Ta1b,
Ta2b とする。なお、周期Tsb=Ts1b +Ts2b +Ta1
b である。
FIG. 8 is a timing chart of synchronization pull-in to the master CPU. In the second embodiment of the present invention, the time periods Ts 1 and Ts 2 are timed. Processor (CP
U-b) 11 corresponding to the above-mentioned time periods Ts 1 , Ts 2 of the synchronization circuit 13 of the multiprocessor system Ts 1 b, Ts 2
Let b. Similarly, the times Ta 1 and Ta 2 are changed to the times Ta 1 b,
Let Ta 2 b. It should be noted that the cycle Tsb = Ts 1 b + Ts 2 b + Ta 1
b.

【0052】また、マルチプロセッサシステム同期化回
路13において同期化信号への同期引き込みがなされて
おらず、プロセッサ(CPU−b)11に割込み信号S
b21がマルチプロセッサシステム同期化回路13より出
力されたとする。そして、プロセッサ(CPU−a)1
2内で割り込み信号Sa21 〜Sa25 が発生したとする。
Further, the multiprocessor system synchronization circuit 13 does not perform the synchronization pull-in to the synchronization signal, and the processor (CPU-b) 11 receives the interrupt signal S.
It is assumed that b 21 is output from the multiprocessor system synchronization circuit 13. Then, the processor (CPU-a) 1
It is assumed that interrupt signals Sa 21 to Sa 25 are generated within 2.

【0053】マルチプロセッサシステムの同期化回路1
3が同期信号Sb21 を出力してから時限Ts1b 以内に同
期化信号B21がバス14に出力されたとする。このとき
はプロセッサ(CPU−b)11に対する割込み信号を
遅らせるよう動作して、時限Tsb+Ta2b すなわち時限
Ts1b +Ts2b +Ta1b +Ta2b の終了時に割込み信号
Sb22 をプロセッサ(CPU−b)11に出力する。そ
して同様に、同期信号Sb22 を出力してから時限Ts1b
の間に同期化信号B22が出力されるので、時限Tsb=T
s1b +Ts2b +Ta1b の終了時点では割込み信号を発生
せずに遅らせるべく時限Ta2b の計時動作を開始する。
Synchronization circuit 1 of multiprocessor system
It is assumed that the synchronization signal B 21 is output to the bus 14 within the time period Ts 1 b after the output of the synchronization signal Sb 21 by the signal S3. At this time, it operates to delay the interrupt signals to the processor (CPU-b) 11, a timed Tsb + Ta 2 b namely timed Ts 1 b + Ts 2 b + Ta 1 b + Ta 2 b interruption signal Sb 22 at the end of the processor (CPU - b) Output to 11. Similarly, after the synchronization signal Sb 22 is output, the time period Ts 1 b
Since the synchronization signal B 22 is output during the period, the time period Tsb = T
At the end of s 1 b + Ts 2 b + Ta 1 b, the timing operation of the time period Ta 2 b is started in order to delay without generating an interrupt signal.

【0054】一方、続く同期化信号B23はバス14より
時限Ta1b や時限Ta2b の間(図8においては時限Ta2
b の間)に入力するので、マルチプロセッサシステムの
同期化回路13はこの同期化信号B23に同期してプロセ
ッサ(CPU−b)11に割込み信号Sb23 を出力す
る。すなわち同期化信号B23を割込み信号Sb23 として
プロセッサ(CPU−b)11に出力する。
On the other hand, the following synchronizing signal B 23 is sent from the bus 14 during the time period Ta 1 b and time period Ta 2 b (time period Ta 2 in FIG. 8).
(b)), the synchronizing circuit 13 of the multiprocessor system outputs the interrupt signal Sb 23 to the processor (CPU-b) 11 in synchronization with the synchronizing signal B 23 . That is, the synchronization signal B 23 is output to the processor (CPU-b) 11 as the interrupt signal Sb 23 .

【0055】同期化信号B23はプロセッサ(CPU−
a)12の割込み信号Sa23 に同期しているので、この
時点でプロセッサ(CPU−b)11、プロセッサ(C
PU−a)12は同期したことになる。
The synchronization signal B 23 is sent to the processor (CPU-
a) Since it is synchronized with the interrupt signal Sa 23 of 12, the processor (CPU-b) 11 and the processor (C
PU-a) 12 is synchronized.

【0056】一度同期がかかると、次からは時限Ts1b
並びに時限Ts2b 間への割り込みが発生せず、Tsb−T
a1b 〜Tsbの間に発生するようになるので常に同期化信
号B 24,B25に同期した割込み信号Sb24 ,Sb25 をプ
ロセッサ(CPU−b)11に出力する。
Once the synchronization is applied, the time period Ts starts from the next time.1b
And time limit Ts2No interrupt occurs between b and Tsb-T
a1Since it occurs between b and Tsb, the synchronization signal is always generated.
Issue B twenty four, Btwenty fiveInterrupt signal Sb synchronized withtwenty four, Sbtwenty fiveThe
Output to the processor (CPU-b) 11.

【0057】以上のような動作により、マルチプロセッ
サシステムの同期化回路13はマスタプロセッサである
プロセッサ(CPU−a)12の割込み信号に同期した
割込み信号をプロセッサ(CPU−b)11に出力す
る。
By the above operation, the synchronization circuit 13 of the multiprocessor system outputs an interrupt signal synchronized with the interrupt signal of the processor (CPU-a) 12 which is the master processor to the processor (CPU-b) 11.

【0058】前述した本発明の第1の実施例において
は、マスタCPUとなるべきプロセッサの周期Tsaより
同期が引き込まれる側のプロセッサの周期Tsbは大きく
なくてはならないが、前述した本発明の第2の実施例に
おいては、そのどちらでも同期がかかるよう構成されて
いる。
In the above-described first embodiment of the present invention, the cycle Tsb of the processor on the side where the synchronization is pulled in must be larger than the cycle Tsa of the processor to be the master CPU, but the above-described first embodiment of the present invention. In the second embodiment, both are configured to be synchronized.

【0059】前述したマルチプロセッサシステムにおい
ては、一方のプロセッサへのインタラプト信号をマスタ
とし、他方のプロセッサへのインタラプト信号をそれに
同期する構成とするが、本発明はこれに限るものではな
い。例えば、図2におけるマルチプロセッサシステムの
同期化回路13をそれぞれのプロセッサに設け、相互に
同期がとれる構成としてもよい。
In the multiprocessor system described above, the interrupt signal to one processor is used as the master and the interrupt signal to the other processor is synchronized with it, but the present invention is not limited to this. For example, the synchronization circuit 13 of the multiprocessor system in FIG. 2 may be provided in each processor so that they can be synchronized with each other.

【0060】図9は制御装置が2つのプロセッサによっ
て構成されるマルチプロセッサ構成の制御システムのブ
ロック図である。この図9においては、2台のプロセッ
サ11,15がそれぞれマルチプロセッサシステムの同
期化回路13,16を有し、相互に同期をとる構成とな
っている。この場合、早い割込み周期に全システムが同
期する。
FIG. 9 is a block diagram of a control system having a multiprocessor configuration in which the control device is composed of two processors. In FIG. 9, the two processors 11 and 15 have synchronization circuits 13 and 16 of a multiprocessor system, respectively, and are configured to synchronize with each other. In this case, the entire system synchronizes with the fast interrupt cycle.

【0061】図10は第1の実施例において周期Tsaが
周期Tsbより長い場合の2台のプロセッサ11,15の
同期引き込みのタイミングチャートである。尚、このよ
うな場合、マスタプロセッサという考えは適用されな
い。
FIG. 10 is a timing chart of synchronous pull-in of the two processors 11, 15 when the cycle Tsa is longer than the cycle Tsb in the first embodiment. In such a case, the idea of a master processor does not apply.

【0062】プロセッサ(CPU−a)15の割込み信
号Sa31 〜Sa33 が発生する間、プロセッサ(CPU−
a)15の位相が進んでいるので共通バス14には同期
化信号B31〜B33がその割込み信号Sa31 〜Sa34 に同
期して出力される。このとき、マルチプロセッサの同期
化回路13はプロセッサ(CPU−b)11の割込み信
号Sb31 〜Sb33 が後れていると判断し、位相を進める
方向、即ち周期Tsb−Tabの終了時点で出力する。割込
み信号Sb33 の後の時限Tsb−Tab間には外部からの同
期化信号が入力しないので、時限Tabの間外部より同期
化信号が入力するかを監視する。この間に、同期化信号
34が加わるので、それに同期して割込み信号Sb34
プロセッサ(CPU−b)11に出力する。この時点で
同期がとれる。
While the interrupt signals Sa 31 to Sa 33 of the processor (CPU-a) 15 are generated, the processor (CPU-a)
a) Since the phase of 15 is advanced, the synchronizing signals B 31 to B 33 are output to the common bus 14 in synchronization with the interrupt signals Sa 31 to Sa 34 . At this time, the synchronization circuit 13 of the multiprocessor determines that the interrupt signals Sb 31 to Sb 33 of the processor (CPU-b) 11 are behind, and outputs the signal in the direction of advancing the phase, that is, at the end of the cycle Tsb-Tab. To do. Since the external synchronization signal is not input during the time period Tsb-Tab after the interrupt signal Sb 33 , it is monitored whether the synchronization signal is input from the outside during the time period Tab. During this period, since the synchronization signal B 34 is added, the interrupt signal Sb 34 is output to the processor (CPU-b) 11 in synchronization with it. Synchronization can be achieved at this point.

【0063】図9のシステムにおいては相互に同期をと
る構成であるので、例えば周期Tsbが周期Tsaより短い
場合、周期Tsbにプロセッサ(CPU−a)15が同期
する。
Since the system shown in FIG. 9 is configured so as to synchronize with each other, for example, when the cycle Tsb is shorter than the cycle Tsa, the processor (CPU-a) 15 synchronizes with the cycle Tsb.

【0064】図10において割込み信号Sa34 に同期し
て割込み信号Sb34 が発生した後には、周期Tsbは周期
Tsaより短いので、時限Tsb経過時点でプロセッサ(C
PU−b)11への割込み信号Sb35 が先に発生する。
そして、マルチプロセッサシステムの同期化回路13は
その割込み信号をシステムバスに出力する。
In FIG. 10, since the period Tsb is shorter than the period Tsa after the interrupt signal Sb 34 is generated in synchronization with the interrupt signal Sa 34 , the processor (C
The interrupt signal Sb 35 to PU-b) 11 is generated first.
Then, the synchronization circuit 13 of the multiprocessor system outputs the interrupt signal to the system bus.

【0065】一方、マルチプロセッサシステムの同期化
回路16は先に発生した割込み信号Sa34 の後は何ら信
号を発生せず、時限Tsa間を待つこととなる。この間
に、割込み信号Sb35 が出力されるので、それに同期し
た同期化信号B35に対応して割込み信号Sa35 を生成し
プロセッサ(CPU−a)15に出力する。
On the other hand, the synchronizing circuit 16 of the multiprocessor system does not generate any signal after the previously generated interrupt signal Sa 34 , and waits for the time period Tsa. During this period, the interrupt signal Sb 35 is output, so that the interrupt signal Sa 35 is generated corresponding to the synchronization signal B 35 synchronized with it and output to the processor (CPU-a) 15.

【0066】以後は周期Tsbが短いので前述した動作を
順次繰り返す。すなわちはやいプロセッサ(CPU−
b)11の周期に同期したシステムで動作する。図11
は第2の実施例における周期Tsbが周期Tsaより短い時
の2台のCPUの同期化引き込みのタイミングチャート
である。
After that, since the cycle Tsb is short, the above-mentioned operations are sequentially repeated. That is, a fast processor (CPU-
b) Operates in a system synchronized with 11 cycles. Figure 11
FIG. 8 is a timing chart of synchronization pull-in of two CPUs when the cycle Tsb is shorter than the cycle Tsa in the second embodiment.

【0067】例えば、マルチプロセッサシステムの同期
化回路13が時限Ts1b を計時中にプロセッサ(CPU
−a)15の割込み信号Sa41 に同期して同期化信号B
41が共通バス14に出力された場合を考える。
For example, when the synchronization circuit 13 of the multiprocessor system measures the time period Ts 1 b, the processor (CPU
-A) Synchronization signal B in synchronization with interrupt signal Sa 41 of 15
Consider the case where 41 is output to the common bus 14.

【0068】マルチプロセッサシステムの同期化回路1
3は、時限Ts1b の計時動作中に同期化信号B41が発生
したことから、時限Ta1b の計時終了時点、すなわちプ
ロセッサ( CPU−b)11への割込み信号Sb41 が発
生してから時限Tsb経過時点では次の割込み信号Sb42
を発生せずに、時限Ta2b の計時動作を開始する。さら
に、時限Ta2b の計時動作中に共通バス14から次の同
期化信号B42が入力しないことから、時限Ta2b の計時
動作終了時点で、すなわち割込み信号Sb41 の発生から
時限Tsb+Ta2b の経過時点で割込み信号Sb42 をプロ
セッサ(CPU−b)11へ発生する。
Synchronization circuit 1 of multiprocessor system
In No. 3, since the synchronization signal B 41 is generated during the timekeeping operation of the time period Ts 1 b, the time point Ta 1 b ends the time measurement, that is, the interrupt signal Sb 41 to the processor (CPU-b) 11 is generated. When the time Tsb elapses from the next time, the next interrupt signal Sb 42
The timing operation of the time period Ta 2 b is started without generating. Furthermore, timed Ta since the sync signal B 42 of the next is not input from the 2 b common bus 14 during timing operation, at timing operation end timed Ta 2 b, i.e. timed Tsb + Ta 2 from the occurrence of the interrupt signal Sb 41 When b has elapsed, an interrupt signal Sb 42 is generated to the processor (CPU-b) 11.

【0069】続いて、プロセッサ(CPU−a)15へ
の割込み信号Sa42 に同期して同期化信号B42が共通バ
ス14に出力される。この同期化信号B42が出力された
ときマルチプロセッサシステムの同期化回路13は時限
Ts1b を計時しているので、時限Ts1b の計時終了時
点、すなわちプロセッサ(CPU−b)11への割込み
信号Sb42 が発生してから時限Tsb経過時点では次の割
込み信号Sb43 を発生せずに、時限Ta2b の計時動作を
開始する。マルチプロセッサシステムの同期化回路13
が時限Ta2b を計時中に、割込み信号Sa43 がプロセッ
サ( CPU−a)15に加わり、それに同期して同期化
信号B43が共通バス14に出力されると、マルチプロセ
ッサシステムの同期化回路13は同期化信号B43に同期
して割込み信号Sb43 をプロセッサ(CPU−b)11
へ発生する。
Subsequently, the synchronization signal B 42 is output to the common bus 14 in synchronization with the interrupt signal Sa 42 to the processor (CPU-a) 15. When the synchronization signal B 42 is output, the synchronization circuit 13 of the multiprocessor system keeps time Ts 1 b, so that the time Ts 1 b ends, that is, the processor (CPU-b) 11 receives. When the time period Tsb elapses after the interrupt signal Sb 42 is generated, the next interrupt signal Sb 43 is not generated, and the timing operation of the time period Ta 2 b is started. Synchronization circuit 13 of multiprocessor system
Interrupt signal Sa 43 is applied to the processor (CPU-a) 15 while the timer Ta 2 b is being timed, and the synchronization signal B 43 is output to the common bus 14 in synchronization with it, synchronization of the multiprocessor system is performed. circuit 13 an interrupt signal Sb 43 in synchronization with the synchronization signal B 43 processor (CPU-b) 11
Occur to.

【0070】ここで、マルチプロセッサシステムにおけ
る割込みの同期がとれる。一方、周期Tsbの方が周期T
saより短い場合には、同期化信号B43の発生から時限T
saが経過する前に割込み信号Sb44 が発生し、同期化信
号B44となって共通バス14へ出力され、さらにマルチ
プロセッサシステムの同期化回路16に加わる。マルチ
プロセッサシステムの同期化回路16が時限Ts1a +T
s2a の計時を終了して、引き続き時限Ta1a の計時中に
同期化信号B44が加わると、マルチプロセッサシステム
同期化回路16は、この同期化信号B44に同期してプロ
セッサ(CPU−a)15へ割込み信号Sa44 を出力す
る。そして、この状態が順次繰り返されることとなる。
すなわち、割込み信号Sb44 に対応して割込み信号Sa
44 が、また割込み信号Sb45 ,Sb46 に対応して割込
み信号Sa45 ,Sa46 が出力される。
Here, the interrupts in the multiprocessor system can be synchronized. On the other hand, the cycle Tsb is the cycle T
If shorter than sa is timed T from the generation of the synchronization signal B 43
An interrupt signal Sb 44 is generated before sa has elapsed, and it is output as a synchronization signal B 44 to the common bus 14 and is further added to the synchronization circuit 16 of the multiprocessor system. The synchronization circuit 16 of the multiprocessor system has a time limit of Ts 1 a + T
When the synchronization signal B 44 is added during the timing of the time period Ta 1 a after the timing of s 2 a is finished, the multiprocessor system synchronization circuit 16 synchronizes with the synchronization signal B 44 and the processor (CPU -A) Output the interrupt signal Sa 44 to 15. Then, this state is sequentially repeated.
That is, the interrupt signal Sa corresponding to the interrupt signal Sb 44
44, also interrupt signal Sa 45, Sa 46 is outputted in response to the interrupt signal Sb 45, Sb 46.

【0071】以上のように相互にマルチプロセッサシス
テム同期化回路13または16を設けることにより、早
い周期に同期した動作を行うとともに、それらが同期し
て動作する。
As described above, by providing the multiprocessor system synchronization circuits 13 or 16 with each other, the operations are performed in synchronization with each other in an early cycle, and they are also operated in synchronization.

【0072】以上、第1および第2の発明の構成にそれ
ぞれ基づく第1および第2の実施例について詳細に説明
したが、これら第1および第2の実施例においては、特
定のプロセッサ(CPU−b)11の発生する定周期割
込み信号の同期と位相および、他のプロセッサ(CPU
−a)15の定周期インタラプト信号の周期と位相が同
期化信号SYNCによって次の周期以降にも相互に修正
され続けるため、プロセッサ間の同期化が成立した後も
そのプロセッサ(CPU−b)11の定周期割込み信号
の周期Ts に微妙な変化が生じ続けるおそれがある。そ
こで、以上に示した第1および第2のそれぞれの実施例
のマルチプロセッサシステムの同期化回路13と、それ
らの論理積ゲート25,48等を除いた一連の回路とを
対応するもの同士について組み合わせ、さらに、その組
み合わせたもの同士の間に同期化動作の主従関係を設定
することにより、制御システム全体の同期化を図りなが
らも、主従関係の主側(SYNCの出力回路を有する
側)のプロセッサの発生する定周期割込み信号の周期T
s が固定化されるようになる。
The first and second embodiments based on the configurations of the first and second inventions have been described above in detail, but in these first and second embodiments, a specific processor (CPU- b) Synchronization and phase of the fixed-cycle interrupt signal generated by 11 and other processor (CPU)
-A) Since the cycle and the phase of the fixed-cycle interrupt signal 15 are continuously corrected by the synchronization signal SYNC after the next cycle, the processor (CPU-b) 11 There is a possibility that a subtle change may continue to occur in the cycle Ts of the fixed cycle interrupt signal of. Therefore, the synchronization circuits 13 of the multiprocessor system of the first and second embodiments described above and a series of circuits excluding their AND gates 25, 48, etc. are combined for corresponding ones. Further, by setting the master-slave relationship of the synchronizing operation between the combinations, the processor on the master side (the side having the SYNC output circuit) of the master-slave relationship while synchronizing the entire control system. Of the fixed-cycle interrupt signal generated by
s becomes fixed.

【0073】なお、本実施例では、制御装置が2つのプ
ロセッサによって構成されるマルチプロセッサ構成の制
御システムを例に挙げて説明したが、本発明は、制御装
置が3つ以上のプロセッサによって構成されるマルチプ
ロセッサ構成の制御システムに対しても適用可能であ
る。また、本発明は、実施例に示したようなマルチプロ
セッサ構成の制御システムに対して限定的に適用される
ものではなく、これ以外にも、周期的な信号を同期化す
る必要のある他のハードウェア全般について適用可能で
ある。
In the present embodiment, the control system having a multiprocessor structure in which the control device is composed of two processors has been described as an example, but in the present invention, the control device is composed of three or more processors. It is also applicable to a control system having a multiprocessor configuration. Further, the present invention is not limitedly applied to the control system having the multiprocessor configuration as shown in the embodiments, and in addition to this, it is necessary to synchronize other periodic signals. It is applicable to all hardware.

【0074】また、本発明の第1、第2の実施例におい
ては、割込み信号INTでタイマやフリップフロップを
リセットしている。この場合、出力される同期化信号S
YNCは短いパルスとなる。この同期化信号SYNCの
パルス幅を広げるには、割込み信号INTで直接タイマ
やフリップフロップをリセットするのではなく、割込み
信号INTを遅延させてリセットする。この遅延により
システムを安定に動作することができる。
Further, in the first and second embodiments of the present invention, the timer and the flip-flop are reset by the interrupt signal INT. In this case, the output synchronization signal S
YNC is a short pulse. To widen the pulse width of the synchronization signal SYNC, the interrupt signal INT is not reset directly but reset by delaying the interrupt signal INT. This delay allows the system to operate stably.

【0075】[0075]

【発明の効果】以上、詳細に説明したように、本発明に
よれば、特定のプロセッサの発生する同期化すべき定周
期割込み信号が、第1の実施例の場合には、割込み信号
出力手段3から出力される割込み信号によって位相を進
ませる方向で同期化され、第2の実施例の場合には、そ
の割込み信号出力手段9から出力される割込み信号によ
って位相を進ませる方向または遅らせる方向で同期化さ
れることから、ソフトウェアの実行時間に何ら影響を与
えることなく複数のプロセッサの割込み処理が相互に同
期化され、また、他のプロセッサの異常時にあっても、
特定のプロセッサに対する割込み信号が自律的に発生さ
れるとともに、同期化信号出力手段4,10によって他
のプロセッサにも同期化信号が供給されるようになる。
As described above in detail, according to the present invention, in the case where the fixed-cycle interrupt signal generated by a specific processor to be synchronized is the first embodiment, the interrupt signal output means 3 is used. Is synchronized in the direction of advancing the phase by the interrupt signal output from the device, and in the case of the second embodiment, is synchronized in the direction of advancing or delaying the phase by the interrupt signal output from the interrupt signal output means 9. Therefore, the interrupt processing of multiple processors is synchronized with each other without affecting the execution time of software, and even when there is an abnormality in another processor,
An interrupt signal for a specific processor is autonomously generated, and the synchronization signal output means 4 and 10 also supply the synchronization signal to other processors.

【0076】また、第1の実施例とその第1の実施例の
同期化信号出力手段4を除いた一連の回路との間に同期
化動作の主従関係を設定したり、同様に、第2の実施例
とその第2の実施例の同期化信号出力手段10を除いた
一連の回路との間に同期化動作の主従関係を設定するこ
とにより、制御システム全体の同期化を図りながらも、
特定のプロセッサの発生する定周期割込み信号の周期が
固定化されるようになる。
Further, the master-slave relationship of the synchronizing operation is set between the first embodiment and the series of circuits excluding the synchronizing signal output means 4 of the first embodiment, and similarly, the second operation is performed. While setting the master-slave relationship of the synchronization operation between the embodiment of FIG. 3 and the series of circuits excluding the synchronization signal output means 10 of the second embodiment, while synchronizing the entire control system,
The cycle of the fixed-cycle interrupt signal generated by a specific processor is fixed.

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

【図1】(a) ,(b) は本発明の原理ブロック図である。1A and 1B are block diagrams of the principle of the present invention.

【図2】制御装置が2つのプロセッサによって構成され
るマルチプロセッサ構成の制御システムのブロック図で
ある。
FIG. 2 is a block diagram of a control system having a multiprocessor configuration in which a control device is composed of two processors.

【図3】第1の実施例に係るマルチプロセッサシステム
の同期化回路の具体的な構成を示す回路図である。
FIG. 3 is a circuit diagram showing a specific configuration of a synchronization circuit of the multiprocessor system according to the first embodiment.

【図4】第1の実施例に係るマルチプロセッサシステム
の同期化回路による同期化を説明する図である。
FIG. 4 is a diagram for explaining synchronization by the synchronization circuit of the multiprocessor system according to the first embodiment.

【図5】マスタCPUへの同期引き込みのタイミングチ
ャートである。
FIG. 5 is a timing chart of synchronization pull-in to a master CPU.

【図6】第2の実施例に係るマルチプロセッサシステム
の同期化回路の具体的な構成を示す回路図である。
FIG. 6 is a circuit diagram showing a specific configuration of a synchronization circuit of the multiprocessor system according to the second embodiment.

【図7】第2の実施例に係るマルチプロセッサシステム
の同期化回路による同期化を説明する図である。
FIG. 7 is a diagram for explaining synchronization by the synchronization circuit of the multiprocessor system according to the second embodiment.

【図8】マスタCPUへの同期引き込みのタイミングチ
ャートである。
FIG. 8 is a timing chart of synchronization pull-in to a master CPU.

【図9】制御装置が2つのプロセッサによって構成され
るマルチプロセッサ構成の制御システムのブロック図で
ある。
FIG. 9 is a block diagram of a control system having a multiprocessor configuration in which a control device is composed of two processors.

【図10】第1の実施例において周期Tsaが周期Tsbよ
り長い場合の2台のプロセッサ11,15の同期引き込
みのタイミングチャートである。
FIG. 10 is a timing chart of synchronization pull-in of the two processors 11 and 15 when the cycle Tsa is longer than the cycle Tsb in the first embodiment.

【図11】第2の実施例における周期Tsaが周期Tsbよ
り短い時の2台のCPUの同期化引き込みのタイミング
チャートである。
FIG. 11 is a timing chart of synchronization pull-in of two CPUs when the period Tsa is shorter than the period Tsb in the second embodiment.

【図12】制御装置が2つのプロセッサによって構成さ
れるマルチプロセッサ構成の制御システムにおいて無駄
時間が生じる様子を説明するための図である。
FIG. 12 is a diagram for explaining a situation in which a dead time is generated in a control system having a multiprocessor configuration in which a control device includes two processors.

【符号の説明】[Explanation of symbols]

1 第1の計時手段 2 第2の計時手段 3 割込み信号出力手段 4 同期化信号出力手段 5 第1の計時手段 6 第2の計時手段 7 第3の計時手段 8 第4の計時手段 9 割込み信号出力手段 10 同期化信号出力手段 11 プロセッサ(CPU−b) 12 プロセッサ(CPU−a) 13 マルチプロセッサシステムの同期化回路 14 共通バス 21 第1のタイマ 22 第2のタイマ 23 フリップフロップ 24 論理和ゲート 25 論理積ゲート 41 第1のタイマ 42 第2のタイマ 43 第3のタイマ 44 第4のタイマ 45 第1のフリップフロップ 46 第2のフリップフロップ 47 論理和ゲート 48 論理積ゲート 1 1st timing means 2 2nd timing means 3 Interrupt signal output means 4 Synchronization signal output means 5 1st timing means 6 2nd timing means 7 3rd timing means 8 4th timing means 9 Interrupt signal Output means 10 Synchronization signal output means 11 Processor (CPU-b) 12 Processor (CPU-a) 13 Synchronization circuit of multiprocessor system 14 Common bus 21 First timer 22 Second timer 23 Flip-flop 24 OR gate 25 AND gate 41 First timer 42 Second timer 43 Third timer 44 Fourth timer 45 First flip-flop 46 Second flip-flop 47 Logical OR gate 48 Logical AND gate

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数のプロセッサが同期化信号によって
同期して動作するマルチプロセッサシステムにおいて、
他のプロセッサの発生する同期化すべき定周期割込み信
号が共通バスを介して入力されると同時に計時動作を開
始し、その定周期割込み信号の周期から位相の進み補償
分の最大値の時限を差し引いた時限を計時する第1の計
時手段(1)と、 この第1の計時手段(1)の計時動作が終了すると同時
に計時動作を開始し、前記位相の進み補償分の最大値の
時限を計時する第2の計時手段(2)と、 他のプロセッサの発生すべき同期化信号が、前記第1お
よび第2の計時手段(1,2)の何れの計時動作中にも
前記共通バスを介して入力されない場合には前記第2の
計時手段の計時動作(2)が終了した時刻に、前記第2
の計時手段(2)の計時動作中に前記共通バスを介して
入力された場合にはその入力された時刻に、前記第1の
計時手段(1)の計時動作中に前記共通バスを介して入
力された場合には前記第1の計時手段(1)の計時動作
が終了した時刻に、割込み信号を生成して当該プロセッ
サに出力する割込み信号出力手段(3)と、 前記他のプロセッサの発生すべき同期化信号が前記第1
および第2の計時手段(1,2)の何れの計時動作中に
も前記共通バスを介して入力されない場合に、前記割込
み信号出力手段(3)から前記第2の計時手段(2)の
計時動作が終了した時刻に出力される割込み信号を、前
記他のプロセッサに対する同期化信号として前記共通バ
スに出力する同期化信号出力手段(4)と、 を有して成ることを特徴とするマルチプロセッサシステ
ムの同期化回路。
1. A multiprocessor system in which a plurality of processors operate in synchronization with a synchronization signal,
At the same time as the fixed-cycle interrupt signal to be synchronized generated by another processor is input via the common bus, the clocking operation starts, and the time limit of the maximum value of phase advance compensation is subtracted from the cycle of the fixed-cycle interrupt signal. And a first timing means (1) for timing a time period, and the timing operation of the first timing means (1) is started at the same time when the timing operation of the first timing means (1) is finished, and the timing of the maximum value of the phase advance compensation is measured. The second timing means (2) for synchronizing and the synchronization signal to be generated by the other processor are supplied via the common bus during the timing operation of any of the first and second timing means (1, 2). If no time is input by the second time measuring means, at the time when the time measuring operation (2) of the second time measuring means ends,
When the time is input through the common bus during the time counting operation of the time counting means (2), at the time of the input, through the common bus during the time counting operation of the first time measuring means (1). When input, an interrupt signal output means (3) for generating an interrupt signal and outputting it to the processor at the time when the time counting operation of the first time counting means (1) is finished; The synchronization signal to be transmitted is the first
And when no input is made via the common bus during any of the timing operations of the second timing means (1, 2), the interrupt signal output means (3) measures the time of the second timing means (2). A multi-processor comprising: a synchronization signal output means (4) for outputting an interrupt signal output at the time when the operation is finished to the common bus as a synchronization signal for the other processor. System synchronization circuit.
【請求項2】 前記第1の計時手段(1)と第2の計時
手段(2)と割込み信号出力手段(3)とよりなる回路
を前記他のプロセッサに付加し、複数のプロセッサ間の
同期化動作の主従関係を設定して成ることを特徴とする
請求項1に記載のマルチプロセッサシステムの同期化回
路。
2. A circuit comprising the first clocking means (1), the second clocking means (2) and an interrupt signal output means (3) is added to the other processor to synchronize a plurality of processors. 2. The synchronization circuit for a multiprocessor system according to claim 1, wherein a master-slave relationship of the digitizing operation is set.
【請求項3】 複数のプロセッサが同期化信号によって
同期して動作するマルチプロセッサシステムにおいて、
他のプロセッサの発生する同期化すべき定周期割込み信
号が共通バスを介して入力されると同時に計時動作を開
始し、その定周期割込み信号の周期のうち位相差を遅れ
動作で補償すべき領域に相当する時限を計時する第1の
計時手段(5)と、 この第1の計時手段(5)の計時動作が終了すると同時
に計時動作を開始し、前記定周期割込み信号の周期のう
ち位相差を進み動作で補償すべき領域に相当する時限を
計時する第2の計時手段(6)と、 この第2の計時手段(6)の計時動作が終了すると同時
に計時動作を開始し、前記定周期割込み信号の周期から
前記第1の計時手段(5)によって計時される時限と前
記第2の計時手段(6)によって計時される時限とを差
し引いた位相の進み補償分の最大値の時限を計時する第
3の計時手段(7)と、 この第3の計時手段(7)の計時動作が終了すると同時
に計時動作を開始し、位相の遅れ補償分の最大値の時限
を計時する第4の計時手段(8)と、 他のプロセッサの発生すべき同期化信号が、前記第1、
第2および第3の計時手段(5,6,7)の何れの計時
動作中にも前記共通バスを介して入力されない場合には
前記第3の計時手段(7)の計時動作が終了した時刻
に、前記第3および第4の計時手段(7,8)の何れか
の計時動作中に前記共通バスを介して入力された場合に
はその入力された時刻に、前記第1の計時手段(5)の
計時動作中に前記共通バスを介して入力された場合には
前記第4の計時手段(8)の計時動作が終了した時刻
に、前記第2の計時手段(6)の計時動作中に前記共通
バスを介して入力された場合には前記第2の計時手段
(6)の計時動作が終了した時刻に、割込み信号を生成
して当該プロセッサに出力する割込み信号出力手段
(9)と、 前記他のプロセッサの発生すべき同期化信号が前記第
1、第2および第3の計時手段(5,6,7)の何れの
計時動作中にも前記共通バスを介して入力されない場合
に、前記割込み信号出力手段(9)から前記第3の計時
手段(7)の計時動作が終了した時刻に出力される割込
み信号を、前記他のプロセッサに対する同期化信号とし
て前記共通バスに出力する同期化信号出力手段(10)
と、 を有して成ることを特徴とするマルチプロセッサシステ
ムの同期化回路。
3. A multiprocessor system in which a plurality of processors operate in synchronization with a synchronization signal,
When the fixed-cycle interrupt signal to be synchronized that is generated by another processor is input via the common bus, the timing operation starts at the same time, and the phase difference in the cycle of the fixed-cycle interrupt signal is set in the area to be compensated by the delayed operation. The first timing means (5) for timing the corresponding time period and the timing operation of the first timing means (5) are finished at the same time when the timing operation is started, and the phase difference among the cycles of the fixed cycle interrupt signal is calculated. Second timing means (6) for timing a time period corresponding to the region to be compensated for in the advance operation, and the timing operation of the second timing means (6) is started at the same time when the timing operation is started, and the fixed period interrupt is performed. The time period of the maximum value of the phase advance compensation amount obtained by subtracting the time period measured by the first time measuring means (5) and the time period measured by the second time measuring means (6) from the signal period is measured. Third timing means ( ), And the fourth timing means (8) which starts the timing operation at the same time when the timing operation of the third timing means (7) ends and measures the time limit of the maximum value of the phase delay compensation component, The synchronization signal to be generated by the processor is the first,
The time at which the time counting operation of the third time counting means (7) ends if no input is made via the common bus during any time counting operation of the second and third time counting means (5, 6, 7) In the case where an input is made via the common bus during the time keeping operation of any one of the third and fourth time keeping means (7, 8), the first time keeping means ( When an input is made via the common bus during the timekeeping operation of 5), the second timekeeping means (6) is in the timekeeping operation at the time when the timekeeping operation of the fourth timekeeping means (8) is completed. And an interrupt signal output means (9) for generating an interrupt signal and outputting the interrupt signal to the processor at the time when the time counting operation of the second time counting means (6) is completed when the signal is input to the processor via the common bus. , The synchronization signal to be generated by the other processor is the first, second and third synchronization signals. If no input is made via the common bus during any time counting operation of the time counting means (5, 6, 7), the time counting operation of the third time counting means (7) from the interrupt signal output means (9) Synchronization signal output means (10) for outputting, to the common bus, an interrupt signal output at the time when the process ends as a synchronization signal for the other processor.
And a synchronization circuit for a multiprocessor system, comprising:
【請求項4】 前記第1の計時手段(5)と第2の計時
手段(6)と第3の計時手段(7)と第4の計時手段
(8)と割込み信号出力手段(9)とよりなる回路を、
前記他のプロセッサに付加し、複数のプロセッサ間の同
期化動作の主従関係を設定して成ることを特徴とする請
求項2に記載のマルチプロセッサシステムの同期化回
路。
4. The first timing means (5), the second timing means (6), the third timing means (7), the fourth timing means (8), and the interrupt signal output means (9). A circuit consisting of
3. The synchronization circuit for a multiprocessor system according to claim 2, wherein the synchronization circuit is added to the other processor to establish a master-slave relationship for synchronization operation among a plurality of processors.
JP5283546A 1993-11-12 1993-11-12 Synchronization circuit for multiprocessor system Pending JPH07141307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5283546A JPH07141307A (en) 1993-11-12 1993-11-12 Synchronization circuit for multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5283546A JPH07141307A (en) 1993-11-12 1993-11-12 Synchronization circuit for multiprocessor system

Publications (1)

Publication Number Publication Date
JPH07141307A true JPH07141307A (en) 1995-06-02

Family

ID=17666930

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5283546A Pending JPH07141307A (en) 1993-11-12 1993-11-12 Synchronization circuit for multiprocessor system

Country Status (1)

Country Link
JP (1) JPH07141307A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11110232A (en) * 1997-10-08 1999-04-23 Fujitsu Ltd Time management change device and external interrupt protection device
WO2010073312A1 (en) * 2008-12-22 2010-07-01 トヨタ自動車株式会社 Vehicle electronic control system, vehicle electronic control unit, and vehicle control synchronization method
JP2011501836A (en) * 2007-09-28 2011-01-13 中国科学院▲計▼算技▲術▼研究所 Multi-core processor, frequency converter, and data communication method between cores

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11110232A (en) * 1997-10-08 1999-04-23 Fujitsu Ltd Time management change device and external interrupt protection device
JP2011501836A (en) * 2007-09-28 2011-01-13 中国科学院▲計▼算技▲術▼研究所 Multi-core processor, frequency converter, and data communication method between cores
WO2010073312A1 (en) * 2008-12-22 2010-07-01 トヨタ自動車株式会社 Vehicle electronic control system, vehicle electronic control unit, and vehicle control synchronization method
US8244423B2 (en) 2008-12-22 2012-08-14 Toyota Jidosha Kabushiki Kaisha Vehicle electronic control system, vehicle electronic control unit, and vehicle control synchronization method
JP5381999B2 (en) * 2008-12-22 2014-01-08 トヨタ自動車株式会社 Vehicle electronic control system, vehicle electronic control unit, and vehicle control synchronization method

Similar Documents

Publication Publication Date Title
JP2018064219A (en) Control device and communication device
US11307553B2 (en) Control device and control method
KR101636496B1 (en) Signal synchronization system, node synchronization system, signal synchronization method, and node synchronization method
JP2001518219A (en) Watchdog circuit
US20230236624A1 (en) Clock error-bound tracker
JP2006229956A (en) Synchronization of two or more operational flight programs
JP2002251227A (en) Clock monitoring circuit, data processor and data processing system
US11137794B2 (en) Systems and methods for synchronization of multiple processors
US20260074816A1 (en) Time synchronization method and time synchronization system for intelligent driving system
JPS6057082B2 (en) How to synchronize between multiple computers
JP2000253689A (en) Motor control device and synchronization method thereof
JPH11305812A (en) Synchronization method for distributed CPU system
JP4616054B2 (en) Measuring system
JP2013033374A (en) Distributed monitoring control system
JPH0133864B2 (en)
JP4230808B2 (en) Time synchronization method and communication system
JP3314791B2 (en) Synchronization method for multiprocessor systems
JPS62120567A (en) Clock synchronization of decentralized processing system
JP2588290B2 (en) Data input / output system
US20260010192A1 (en) Device and method for synchronising or adjusting a clock signal of a software
JPS59176863A (en) Timer synchronizing system
JP3040635B2 (en) Clock generation circuit
KR200262927Y1 (en) Clock fail detector
JP2646436B2 (en) Timer control method
JP2023074675A (en) Safety PLC

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010109