JPH0424860A - Controlling system for synchronization of plural processors - Google Patents

Controlling system for synchronization of plural processors

Info

Publication number
JPH0424860A
JPH0424860A JP2129639A JP12963990A JPH0424860A JP H0424860 A JPH0424860 A JP H0424860A JP 2129639 A JP2129639 A JP 2129639A JP 12963990 A JP12963990 A JP 12963990A JP H0424860 A JPH0424860 A JP H0424860A
Authority
JP
Japan
Prior art keywords
clock
processor
processors
processing
clocks
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
JP2129639A
Other languages
Japanese (ja)
Inventor
Madoka Ichikawa
まどか 市川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2129639A priority Critical patent/JPH0424860A/en
Publication of JPH0424860A publication Critical patent/JPH0424860A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify the synchronization processing among processors without forcing the load to a control program by providing a clock switch circuit between plural processors and their clocks, and switching these clocks in the synchronization processing. CONSTITUTION:When a processing request is given to a processor 1 from another processor 1, a clock switch instruction signal is informed to a clock switch circuit 2. Then the circuit 2 works to supply the clock 3 of either one of both processors to them in common. Thus both processors 1 performs their processing synchronously with each other. That is, the circuit 2 is provided between the processors 1 and their clocks 3 and these clocks 3 are switched for execution of the synchronization processing. Thus the synchronization processing is simplified among processors 1 without forcing the load to a control program.

Description

【発明の詳細な説明】 〔概要〕 複数プロセッサの同期制御を行う同期制御方式複数のプ
ロセッサと当該各プロセッサのクロックとの闇にクロッ
ク切換回路を設け、同期処理を行うときにクロックを切
り換え、制御プログラムに負担を強いることなくプロセ
ッサ間の同期処理を簡単に行うことを目的とし、 複数のプロセッサとこれら複数のプロセッサの各クロッ
クとの間にクロック切換回路を備え、あるプロセッサか
ら他のプロセッサへの処理依頼時に上記クロック切換回
路にクロック切換指示信号を通知し、あるプロセッサあ
るいは他のプロセッサのクロックを当該両者のプロセッ
サに共通に供給するように切り換え、同期して処理を行
うように構成する。
[Detailed Description of the Invention] [Summary] Synchronous control method for synchronously controlling multiple processors A clock switching circuit is provided between multiple processors and the clocks of each processor, and the clocks are switched and controlled when performing synchronous processing. The purpose is to easily perform synchronization processing between processors without imposing a burden on the program, and a clock switching circuit is provided between multiple processors and each clock of these multiple processors, so that the synchronization processing from one processor to another can be easily performed. At the time of a processing request, a clock switching instruction signal is notified to the clock switching circuit, the clock of one processor or another processor is switched to be commonly supplied to both processors, and the processing is performed synchronously.

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

本発明は、複数プロセッサの同期制御を行う同期制御方
式に関するものである。
The present invention relates to a synchronous control method for synchronously controlling multiple processors.

〔従来の技術と発明が解決しようとする課題:従来、第
50に示すように、クロック(基本クロック)の異なる
複数のプロセッサP + 、P z・・Pnを含むシス
テムにおいて、同期処理、例えばプロセッサP、がプロ
セッサP2に処理依頼を行うと共にタイマを用いてタイ
ムアウト監視を行う場合、両者のクロックに、、に2が
異なるために処理依願を受けた側のプロセッサP2のク
ロックに2をもとにタイムアウト監視を行う必要がある
。これを処理依頼する側のプロセッサP1でソフトウェ
アによって行ったのでは、制御プログラムが煩雑となっ
てしまうと共に、更にクロックが異なるプロセッサに依
頼する毎に当MM?Wjプログラムを変更しなけれなら
ないという問題があった。
[Prior art and problem to be solved by the invention: Conventionally, as shown in No. 50, in a system including a plurality of processors P + , P z . When P makes a processing request to processor P2 and uses a timer to monitor timeouts, the clocks of the two processors are different by 2, so the clock of the processor P2 receiving the processing request is based on 2. Timeout monitoring must be performed. If this was done by software in the processor P1 on the requesting side, the control program would become complicated, and furthermore, each time a request is made to a processor with a different clock, the MM? There was a problem in that the Wj program had to be changed.

本発明は、複数のプロセッサと当該各プロセッサのクロ
ックとの間にクロック切換回路を設け、同期処理を行う
ときにクロックを切り換え、制御プログラムに負担を強
いることなくプロセッサ間の同期処理を簡単に行うこと
を目的としている。
The present invention provides a clock switching circuit between a plurality of processors and the clocks of each processor, switches the clocks when performing synchronization processing, and easily performs synchronization processing between processors without imposing a burden on a control program. The purpose is to

〔課題を解決する手段〕[Means to solve problems]

第1図は、本発明の原理構成製を示す。 FIG. 1 shows the basic structure of the present invention.

第1図において、プロセッサ1は、クロック3をそれぞ
れ独自に持つプロセッサである。
In FIG. 1, processors 1 each have their own clock 3.

クロック切換回路2は、複数のプロセッサ1と各プロセ
ッサ1のクロック3との間に設け、クロックを切り換え
る回路である。
The clock switching circuit 2 is a circuit provided between the plurality of processors 1 and the clock 3 of each processor 1 to switch the clocks.

クロック3は、各プロセッサ1に供給するクロックであ
る。
Clock 3 is a clock supplied to each processor 1.

〔作用〕[Effect]

本発明は、第1図に示すように、あるプロセッサ1から
他のプロセッサ1への処理依頼時にクロック切換回路2
にクロック切損指示信号を通知し、あるプロセッサ1あ
るいは他のプロセッサ1のクロック3を当該両者のプロ
セッサ1に共通に供給するように切り換え、同期して処
理を行うようにしている。
As shown in FIG. 1, the present invention provides a clock switching circuit 2 when a processor 1 requests processing from another processor
A clock cutoff instruction signal is notified to the processor 1, and the clock 3 of one processor 1 or another processor 1 is switched to be commonly supplied to both processors 1, so that processing is performed synchronously.

従って、複数のプロセッサ1と当該各プロセッサ1のク
ロック3との間にクロック切換回路2を設け、同期処理
を行うときにクロック3を切り換えることにより、制御
プログラムに負担を強いることなくプロセッサ間の同期
処理を簡単に行うことが可能となる。
Therefore, by providing a clock switching circuit 2 between a plurality of processors 1 and the clock 3 of each processor 1 and switching the clock 3 when performing synchronization processing, the processors can be synchronized without imposing a burden on the control program. It becomes possible to perform processing easily.

〔実施例〕〔Example〕

次に、第1図から第4図を用いて本発明の1実施例の構
成および動作を順次詳細に説明する。
Next, the configuration and operation of one embodiment of the present invention will be explained in detail using FIGS. 1 to 4.

第1図において、プロセッサ1は、クロック3をそれぞ
れ独自に持つプロセッサである。ここでは、プロセッサ
P+ 、Pz  ・・・PRは、クロックKI−Kz 
 ・・・Kllを基本クロックとしてそれぞれ持ち、動
作するものである。
In FIG. 1, processors 1 each have their own clock 3. Here, processors P+, Pz...PR have clocks KI-Kz
...They each have Kll as a basic clock and operate.

クロック切換回路2は、複数のプロセッサ1と各プロセ
ッサ1のクロック3との間に設け、クロックを切り換え
る回路であって、通常はプロセッサp、、p2 ・・・
P、1にクロックK + 、K z ・・・K、を基本
クロックとしてそれぞれ供給している。クロック切換指
示信号をもとに、指示されたクロックK + 、K z
  ・・・K、、を指示されたプロセッサ1に供給する
ようにしている。
The clock switching circuit 2 is a circuit that is provided between the plurality of processors 1 and the clock 3 of each processor 1 to switch the clock, and normally the clock switching circuit 2 is a circuit that is provided between the plurality of processors 1 and the clock 3 of each processor 1 and switches the clock.
The clocks K + , K z . . . , K are supplied to P and 1 as basic clocks, respectively. Based on the clock switching instruction signal, the instructed clocks K + , K z
. . K, , is supplied to the designated processor 1.

次に、第2図構成のもとで、プロセッサP、がクロック
に、で動作し、プロセッサP2がクロックに2で動作し
、クロ、りに、がクロックに2の1/2倍の周期の場合
(即ちクロックに、の1周期の時間T3、クロックに2
の1周期の時間T2としたとき、TI X2=72の場
合)について、第3図フローチャートの順序で第2回、
第4図を用いて具体的に説明する。ここで、プロセッサ
Pが処理Aを実行した後、処理BをプロセッサP2に依
頼すると共にタイムオーバ監視を行い、処理Bの結果を
受は取って処理Cを実行する場合について説明する。
Next, under the configuration in Figure 2, processor P operates with a clock of 2, processor P2 operates with a clock of 2, and processor P operates with a clock of 1/2 times the period of 2. (i.e., the clock has one period of time T3, the clock has 2
TI X2 = 72), the second time in the order of the flowchart in Figure 3,
This will be explained in detail using FIG. Here, a case will be described in which processor P executes process A, requests process B to processor P2, monitors time-over, receives the result of process B, and executes process C.

第3図において、■は、処理Aを終了する。これは、プ
ロセッサP1がクロックに1で処理Aの実行を終了する
(第4図処理Aの実行を終了する)。
In FIG. 3, ■ marks the end of process A. This means that the processor P1 ends the execution of the process A with a clock of 1 (the execution of the process A in FIG. 4 ends).

■は、処理BをプロセッサP2に依軒する。(2) relies on the processor P2 to perform processing B;

0は、タイマ4の設定を行う。0 sets timer 4.

■は、■で処理Bの依頼を受けたプロセッサP2がクロ
ック切換指示信号のONをクロック切換回路2に通知し
、■でプロセッサP1に供給するクロックをクロックに
、  (プロセッサP1の基本クロック)からクロック
Kg  (プロセッサP2の基本クロック)に切り換え
る(第4図■の位置で切り換えたクロックに、’ )。
(2) Processor P2, which received the request for processing B in (2), notifies the clock switching circuit 2 that the clock switching instruction signal is ON, and (3) changes the clock supplied to processor P1 from (basic clock of processor P1) to the clock switching circuit 2. The clock is switched to the clock Kg (the basic clock of the processor P2) (to the clock switched at the position (■) in FIG. 4).

■は、処理Bをクロックに2 (プロセッサP2の基本
クロック)で開始する(第4図処理日)。
(2) starts processing B at clock 2 (basic clock of processor P2) (processing day in FIG. 4).

Oは、処理Bを終了する。そして、終了通知をプロセッ
サP2がプロセッサP、に結果と一緒に通知する。
O ends processing B. Then, the processor P2 notifies the processor P of the completion notification together with the result.

[相]は、クロックに2をクロックに、に戻す、これは
、第4図■の位置でクロックに+’ に示すように、ク
ロックに2をクロックに、に戻す。
[Phase] returns 2 to the clock to the clock, which returns 2 to the clock to the clock, as shown at +' to the clock at the position of Figure 4.

■は、処理Cをクロックに、で実行する。。(2) is executed using process C as a clock. .

また、[相]は、タイムアウトが発生する。これは、[
相]でクロックに1をクロックに2に切り換えた状態で
、第2図タイマ4が当該クロックに2を計数し、0で設
定した時刻をオーバ(タイムオーバ)したことを表す。
In addition, a timeout occurs in [phase]. this is,[
In the state in which the clock is switched from 1 to 2 in [phase], the timer 4 in FIG. 2 counts 2 to the clock, and 0 indicates that the set time has exceeded (time-over).

この場合には、プロセッサP2を異常とみなし、異常処
理を行う。
In this case, processor P2 is regarded as abnormal, and abnormality processing is performed.

以上のように、プロセッサP1が処理BをプロセッサP
2に依頼したことに対応して、プロセッサP2がクロッ
ク切換指示信号をクロック切換回路2−1に通知して自
己の動作するクロックに2をタイマ監視を行うプロセッ
サP1にも併せて供給し、同じクロックに2で動作させ
、いわば同期させた状態のもとで正しいタイマ監視を行
わせることが可能となる。
As described above, processor P1 performs processing B on processor P
In response to the request to 2, the processor P2 notifies the clock switching circuit 2-1 of a clock switching instruction signal, and also supplies 2 to its own operating clock to the processor P1 that monitors the timer. By operating the clock at 2, it is possible to perform correct timer monitoring in a so-called synchronized state.

第4図は、本発明に係るタイムチャートを示す。FIG. 4 shows a time chart according to the present invention.

ここで、 クロックに、は、プロセッサP、に供給する基本タロツ
クを表す。
Here, clock represents the basic tarock supplied to processor P.

クロックに2は、プロセッサP2に供給する基本タロツ
クを表す。
The clock 2 represents the basic tarok supplied to processor P2.

クロックに1° は、第3図フローチャートに従って、
プロセッサP+に供給するクロックを表す。
For 1° to the clock, follow the flowchart in Figure 3.
Represents the clock supplied to processor P+.

クロック切換指示信号は、プロセッサP、がクロック切
換回路2−1に通知する信号を表す。
The clock switching instruction signal represents a signal that the processor P notifies the clock switching circuit 2-1.

時開は、プロセッサPlに供給したクロックKによる時
開の変化を表す。
The time difference represents a change in the time difference due to the clock K supplied to the processor Pl.

処理は、プロセッサP1、プロセッサP2が実行する処
理A(プロセッサPl)、処理B(プロセッサP2)、
処理C(プロセッサPl)を表す。
The processing includes processing A (processor Pl), processing B (processor P2), which are executed by processor P1 and processor P2.
Represents processing C (processor Pl).

ここで、■は、第3回■でプロセッサP1に供給するク
ロックをクロックに、からクロックに2に切り換える位
置を表す。
Here, ■ represents the position where the clock supplied to the processor P1 is switched from clock to clock 2 in the third time ■.

■は、第3図@でプロセッサP1に供給するクロックを
クロックに2からクロックに1に切り換える位置を表す
3 represents the position where the clock supplied to the processor P1 is switched from clock 2 to clock 1 in FIG. 3@.

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

以上説明したように、本発明によれば、複数のプロセッ
サ1と当該各プロセッサ1のクロック3との間にクロッ
ク切換回路2を設け、同期処理を行うときにクロック3
を切り換え、同一のクロックを供給する構成を採用して
いるため、独自の基本クロックで動作するプロセッサ1
が異なる基本クロックで動作するプロセッサ1と同期し
て処理を行う際に、制御プログラムに負担を強いること
なくプロセッサ間の同期処理を簡単に行うことができる
As explained above, according to the present invention, the clock switching circuit 2 is provided between the plurality of processors 1 and the clock 3 of each processor 1, and when performing synchronization processing, the clock switching circuit 2 is provided between the plurality of processors 1 and the clock 3 of each processor 1.
Processor 1, which operates on its own basic clock,
When performing processing in synchronization with processors 1 that operate with different basic clocks, the synchronization processing between the processors can be easily performed without imposing a burden on the control program.

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

第1図は本発明の原理構成図、第2図は本発明の1実施
例構成説明図、第3圀は本発明の動作説明フローチャー
ト、第4図は本発明に係るタイムチャート、第5図は従
来技術の説明図を示す。 図中、■はプロセッサ、2はクロック切換回路、3はク
ロックを表す。
Fig. 1 is a diagram showing the principle configuration of the present invention, Fig. 2 is an explanatory diagram of the configuration of one embodiment of the present invention, Fig. 3 is a flowchart explaining the operation of the present invention, Fig. 4 is a time chart according to the present invention, Fig. 5 shows an explanatory diagram of the prior art. In the figure, ■ represents a processor, 2 represents a clock switching circuit, and 3 represents a clock.

Claims (1)

【特許請求の範囲】 複数プロセッサの同期制御を行う同期制御方式において
、 複数のプロセッサ(1)とこれら複数のプロセッサ(1
)の各クロック(3)との間にクロック切換回路(2)
を備え、 あるプロセッサ(1)から他のプロセッサ(1)への処
理依頼時に上記クロック切換回路(2)にクロック切換
指示信号を通知し、あるプロセッサ(1)あるいは他の
プロセッサ(1)のクロック(3)を当該両者のプロセ
ッサ(1)に共通に供給するように切り換え、同期して
処理を行うように構成したことを特徴とする複数プロセ
ッサの同期制御方式。
[Claims] In a synchronous control method that performs synchronous control of a plurality of processors, a plurality of processors (1) and a plurality of processors (1)
) clock switching circuit (2) between each clock (3) of
When a processor (1) requests processing from another processor (1), it notifies the clock switching circuit (2) of a clock switching instruction signal, and changes the clock of the processor (1) or the other processor (1). (3) is switched to be commonly supplied to both processors (1), and processing is performed synchronously.
JP2129639A 1990-05-20 1990-05-20 Controlling system for synchronization of plural processors Pending JPH0424860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2129639A JPH0424860A (en) 1990-05-20 1990-05-20 Controlling system for synchronization of plural processors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2129639A JPH0424860A (en) 1990-05-20 1990-05-20 Controlling system for synchronization of plural processors

Publications (1)

Publication Number Publication Date
JPH0424860A true JPH0424860A (en) 1992-01-28

Family

ID=15014480

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2129639A Pending JPH0424860A (en) 1990-05-20 1990-05-20 Controlling system for synchronization of plural processors

Country Status (1)

Country Link
JP (1) JPH0424860A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5758132A (en) * 1995-03-29 1998-05-26 Telefonaktiebolaget Lm Ericsson Clock control system and method using circuitry operating at lower clock frequency for selecting and synchronizing the switching of higher frequency clock signals

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5758132A (en) * 1995-03-29 1998-05-26 Telefonaktiebolaget Lm Ericsson Clock control system and method using circuitry operating at lower clock frequency for selecting and synchronizing the switching of higher frequency clock signals

Similar Documents

Publication Publication Date Title
US5301308A (en) Method for synchronizing redundant operation of coupled data processing systems following an interrupt event or in response to an internal command
JPS6364144A (en) Inter-memory data transfer system
JPH0424860A (en) Controlling system for synchronization of plural processors
JPH04148303A (en) Synchronization operating system for cnc
JP2007241744A (en) Motion controller and its command method
JPH0322103A (en) Axis control system for numerical controller
JP2006323677A (en) Dual-system control system
JPH01119804A (en) Scan time fixing system for programmable controller
JPH0317722A (en) Reference time interruption method
JPH05158710A (en) Timer managing system
JP3221109B2 (en) Multiprocessor system and TOD synchronization control method
JPS6250904A (en) Executing period control method
JPS62226249A (en) Separating system for input/output device
JPS5854470A (en) Controlling system for constitution of multiple electronic computer
JPH10253778A (en) Time exchanging clock system
JP2000215188A (en) Network controller
JP2557538B2 (en) Duplex system
JPH02118738A (en) Switching system by abnormal level of duplexing control system
JPH0330044A (en) Interruption control method
JPS63104101A (en) Multiplexing control system
JPH1195825A (en) Method for executing numerical control program
JPH03141403A (en) Programmable controller
JPH02212911A (en) Timing method for digital time unit
JPH03250350A (en) Physical/logical communication channel batch fixing method for data communication system
JPH01310448A (en) Control system for processor