JP3221109B2 - Multiprocessor system and TOD synchronization control method - Google Patents

Multiprocessor system and TOD synchronization control method

Info

Publication number
JP3221109B2
JP3221109B2 JP32708192A JP32708192A JP3221109B2 JP 3221109 B2 JP3221109 B2 JP 3221109B2 JP 32708192 A JP32708192 A JP 32708192A JP 32708192 A JP32708192 A JP 32708192A JP 3221109 B2 JP3221109 B2 JP 3221109B2
Authority
JP
Japan
Prior art keywords
tod
processing unit
central processing
clock
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.)
Expired - Fee Related
Application number
JP32708192A
Other languages
Japanese (ja)
Other versions
JPH06175982A (en
Inventor
康智 桜井
敬人 野田
清 須藤
孝一 小田原
巧 野中
英治 金谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP32708192A priority Critical patent/JP3221109B2/en
Publication of JPH06175982A publication Critical patent/JPH06175982A/en
Application granted granted Critical
Publication of JP3221109B2 publication Critical patent/JP3221109B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、マルチプロセッサシス
テムにおける、CPU間のTOD同期化制御に関し、特
にTOD同期化処理における、各CPU間の干渉による
誤動作を防ぎ、TOD同期化処理を正確かつ迅速に行う
ことができるようにした、TOD同期化処理に関するも
のである。
BACKGROUND OF THE INVENTION The present invention, in a multiprocessor system, TOD synchronization control in respect of the inter-CPU, particularly in TOD synchronization process to prevent malfunction due to interference between the CPU, accurate TOD synchronization process and which make it possible to quickly perform, but about the TOD synchronization process.

【0002】近年の、データ処理システムにおけるデー
タ処理の多様化、処理量の増大化に伴い、マルチプロセ
ッサシステム、特に、主記憶装置を共有する結合のマ
ルチプロセッサシステムの構築が盛んになっている。
2. Description of the Related Art In recent years, with the diversification of data processing in a data processing system and an increase in the amount of processing, the construction of a multiprocessor system, particularly, a tightly- coupled multiprocessor system sharing a main storage device has become active. .

【0003】このようなマルチプロセッサシステムがオ
ンライン処理を実行している場合には、各中央処理装置
(CPU) でのTOD 時計は、実時間の換算値を持つものであ
るので、同じ値を持つ必要があり、その値が異なると、
システムとして誤動作を起こす原因となる。
When such a multiprocessor system is executing online processing, each of the central processing units
Since the TOD clock in (CPU) has a converted value of real time, it must have the same value, and if the value is different,
It may cause malfunction as a system.

【0004】従って、各中央処理装置(CPU) でのTOD 時
計を、正しく合わせる必要があるが、このTOD 時計を正
しく合わせる同期化処理に時間がかかると、システムの
立ち上がりに時間がかかったり、障害時の回復に時間が
かかる問題があることから、特に、実時間処理を行うデ
ータ処理システムでは、できる限り、早く、正確に、TO
D 時計の同期化ができる同期化制御方法が要求される。
Therefore, it is necessary to correctly adjust the TOD clock in each central processing unit (CPU). However, if the synchronization processing for correctly adjusting the TOD clock takes a long time, it takes time for the system to start up or a failure may occur. Because of the time-consuming problem of time recovery, especially in data processing systems that perform real-time processing, TO
D A synchronization control method that can synchronize clocks is required.

【0005】[0005]

【従来の技術】図6は、マルチプロセッサシステムを説
明する図であり、図6(a) は、システムの全体の構成例
を示し、図6(b) は、TOD時計を示しており、図7,
図8は、従来のTOD同期設定処理を示した図であり、
図7は、正常動作の場合を示し、図8は、異常動作の場
合を示している。
2. Description of the Related Art FIG. 6 is a diagram for explaining a multiprocessor system. FIG. 6 (a) shows an example of the overall configuration of the system, and FIG. 6 (b) shows a TOD clock. 7,
FIG. 8 is a diagram showing a conventional TOD synchronization setting process.
FIG. 7 shows a case of normal operation, and FIG. 8 shows a case of abnormal operation.

【0006】所謂、TOD(Time Of Day)
時計は、日付と時刻を表示するために一貫した経過時間
を示すもので、例えば、図6(b) に示す形式からなる2
進カウンタにより構成される。
A so-called TOD (Time Of Day)
The clock indicates a consistent elapsed time for displaying the date and time. For example, the clock has a format shown in FIG.
It consists of a binary counter.

【0007】TOD時計は、例えば、1μ秒毎に、図6
(b) のビット51に“1”を加えることにより増加され
る。TOD時計の値は、SETCLOCK(SCK)命
令によって設定できるようになっている。
[0007] The TOD clock is, for example, every 1 μsec.
It is increased by adding "1" to bit 51 of (b). The value of the TOD clock can be set by a SETCLOCK (SCK) instruction.

【0008】例えば、図6(a) に示すような主記憶装置
2を共有する密結合マルチプロセサシステムの場合、各
中央処理装置{以下、CPU(0) 〜CPU(n) というこ
とがある。}1 は、それぞれ、独立にTOD時計T(0)
〜T(n) 10を所有する。
For example, a main storage device as shown in FIG.
In the case of a tightly-coupled multiprocessor system sharing two, the CPUs (CPU) (0) to CPU (n) may be hereinafter referred to as each central processing unit #. } 1 is independently TOD clock T (0)
Owns ~ T (n) 10.

【0009】これらのTOD時計T(0) 〜T(n) 10は、
前述のように、実時間のデータ処理システムでは、実時
間の換算値を持つものであるから、全CPU(0) 〜CP
U(n) 1 で同じ値を持つ必要があり、値が異なればシス
テムの誤動作を引き起こす原因となる。
These TOD clocks T (0) to T (n) 10 are:
As described above, since the real-time data processing system has a real-time conversion value, all CPUs (0) to CP
U (n) 1 must have the same value, and different values may cause malfunction of the system.

【0010】そのため、例えば、システム立ち上げ時
に、TOD時計の同期設定処理により、予め、全CPU
(0) 〜CPU(n) 1 のTOD時計 10 が同じ値を持つよ
う同期設定処理がなされる。
For this reason, for example, when the system is started, all CPUs are set in advance by synchronous setting processing of the TOD clock.
(0) -Synchronization setting processing is performed so that the TOD clocks 10 of the CPU (n) 1 have the same value.

【0011】このTOD同期設定処理は、例えば、図7
に示した如く行われる。先ず、マルチプロセサシステム
の1つの中央処理装置{CPU(0) } 1がメインとなっ
て、同期設定開始を他のCPU(1) 〜CPU(n) 1 に指
示する。{図7の処理ステップ 230参照} この時、例えばCPU(0) 1 のTOD時計(TO) 10 はt
秒を示しているとする。他のCPU(1) 〜CPU(n) 1
は、上記指示により、TOD時計 10 を初期設定するた
めに、図示されていない制御レジスタに設けられた、所
謂、STOPビットを“オン”にする。{図7の処理ス
テップ 231参照} その後、周知の如く、例えば(t+1)秒を、自己のT
OD時計 10 に指定して、前述のSCK命令を実行する
と、各CPU(0) 〜CPU(n) 1 のTOD時計10 に
(t+1)秒後の値が設定され、TOD時計 10 は停止
する。{図7の処理ステップ 232参照} そして、メインのCPU(0) 1 のTOD時計(TO) 10 だ
けが動作し、TOD時計(T0) 10 が1秒の桁上がりをす
る時、即ち、例えばt秒台から(t+1)秒に切り替わ
る時、同期信号を上記他のCPU(1) 〜CPU(n) 1 に
発し、他のTOD時計(T1)〜(Tn) 10 のカウント動作を
スタ−トさせる。
This TOD synchronization setting process is performed, for example, as shown in FIG.
Is performed as shown in FIG. First, one central processing unit {CPU (0)} 1 of the multiprocessor system becomes the main, and instructs the other CPUs (1) to CPU (n) 1 to start synchronization setting. {See processing step 230 in FIG. 7} At this time, for example, the TOD clock (TO) 10 of CPU (0) 1 is t
It is assumed to indicate seconds. Other CPU (1) to CPU (n) 1
Turns on a so-called STOP bit provided in a control register (not shown) in order to initialize the TOD clock 10 according to the above instruction. {See processing step 231 in FIG. 7} Then, as is well known, for example, (t + 1) second
When the above-described SCK instruction is executed by designating the OD clock 10, the value after (t + 1) seconds is set in the TOD clock 10 of each of the CPUs (0) to (n) 1, and the TOD clock 10 stops. {Refer to processing step 232 in FIG. 7} Then, when only the TOD clock (TO) 10 of the main CPU (0) 1 operates and the TOD clock (T0) 10 carries one second, ie, for example, t When switching from the second level to (t + 1) seconds, a synchronization signal is issued to the other CPU (1) to CPU (n) 1 to start the counting operation of the other TOD clocks (T1) to (Tn) 10. .

【0012】これにより、すべてのTOD時計(T0)〜(T
n) 10 が一斉にちょうど(t+1)秒の値から動作を開
始し、同期が取られることになる。この同期信号は、図
6のマルチプロセッサシステムにおいて、共通バス 3を
構成している制御バス 3a を介して送出され、各CPU
(0) 〜CPU(n) 1 は、該制御バス 3a を常時監視して
いて、上記同期信号を検出すると、即、自己のTOD時
計(T1)〜(Tn) 10 が、カウント動作を開始するように構
成されている。{図7の処理ステップ 233,234参照}
Thus, all the TOD clocks (T0) to (T0)
n) All 10 start operating at exactly the value of (t + 1) seconds and are synchronized. This synchronization signal is transmitted via the control bus 3a constituting the common bus 3 in the multiprocessor system of FIG.
(0) to CPU (n) 1 constantly monitor the control bus 3a, and upon detecting the synchronization signal, their TOD clocks (T1) to (Tn) 10 immediately start counting. It is configured as follows. << Refer to processing steps 233 and 234 in FIG.

【0013】[0013]

【発明が解決しようとする課題】図8は、従来方法によ
る問題点を説明するための図である。上記従来の同期化
制御方法によれば、例えば、2台のCPUを持つマルチ
プロセサシステムでは問題がないが、3台以上のCPU
を持つシステムでは、同期処理を起動する、前述のメイ
ンのCPU以外のCPU間の干渉によって正しい同期が
取れないという問題があった。
FIG. 8 is a diagram for explaining a problem with the conventional method. According to the above conventional synchronization control method, for example, there is no problem in a multiprocessor system having two CPUs, but three or more CPUs
In the system having the above, there is a problem that a correct synchronization cannot be obtained due to interference between CPUs other than the main CPU which starts the synchronization processing.

【0014】即ち、一般にTOD時計 10 に関するハ−
ドウェア仕様は、上記のように、STOPビットを立て
て、SCK命令によりTOD値を設定すると、他のどれ
かのCPU 1が持つTOD時計の1秒桁上がり時に、同
期信号を、上記制御バス 3aに送出すると、各CPU 1
のTOD時計(T0)〜(Tn) 10 は、該同期信号によってカ
ウント動作を開始する構造になっているので、同時に動
作を開始することになる。
That is, generally, the hardware related to the TOD clock 10 is used.
As described above, when the STOP bit is set and the TOD value is set by the SCK instruction as described above, the synchronization signal is transmitted to the control bus 3a when the TOD clock of one of the other CPUs 1 is carried by one second. To each CPU 1
Since the TOD clocks (T0) to (Tn) 10 have a structure in which the counting operation is started by the synchronization signal, they start operating at the same time.

【0015】従って、例えば、図8に示した如く、CP
U(2) 1 がSTOPビットをオンにしてからSCK命令
を実行するまでの間に、CPU(2) 1 のTOD時計(T2)
10が、たまたま、1秒の桁上がり{CPU(2) 1 のT
OD時計(T2) 10 のカウント状態によっては、CPU
(2) 1 がSTOPビットをオンにしてからSCK命令を
実行するまでの間(例えば、上記STOPビットをオン
にしたタイミング等で)に、上記1秒の桁上がりが発生
することがある}になると、その同期信号によって、C
PU(1) 1 のTOD時計(T1) 10 がスタ−トしてしまう
ことになる。
Therefore, for example, as shown in FIG.
Between the time when U (2) 1 turns on the STOP bit and the time when the SCK instruction is executed, the TOD clock (T2) of CPU (2) 1
10 happens to be a one-second carry {T of CPU (2) 1
Depending on the count status of the OD clock (T2) 10, the CPU
(2) The carry of one second may occur between 1 when the STOP bit is turned on and when the SCK instruction is executed (for example, at the timing when the STOP bit is turned on). Then, by the synchronization signal, C
The TOD clock (T1) 10 of PU (1) 1 will start.

【0016】そのため、従来同期期設定処理が終わった
後に全CPU(0) 〜(n) 1 のTOD時計 10 を読み出
し、正しく同期が取れたか否かを確認し、同期が取れて
いない場合には、何度も上記処理を繰り返す必要があっ
た。特にCPU 1の台数が多くなればなるほど上記干渉
が頻発して、システムの立ち上がりに時間がかかるとい
う問題があった。
For this reason, after completion of the conventional synchronization period setting process, the TOD clocks 10 of all the CPUs (0) to (n) 1 are read out to confirm whether or not synchronization has been correctly achieved. The above process had to be repeated many times. In particular, as the number of CPUs 1 increases, the above-mentioned interference occurs more frequently, and there is a problem that it takes time to start up the system.

【0017】上記の問題を解決する類似の技術として、
特開昭61-13364号公報「TOD同期設定処理方式」,及
び、特開昭62-49555号公報「マルチプロセッサ・システ
ムの計時同期装置」がある。
As a similar technique for solving the above problem,
JP-A-61-13364 discloses a "TOD synchronization setting processing method" and JP-A-62-49555 discloses a "timing synchronization device for a multiprocessor system".

【0018】特開昭61-13364号公報「TOD同期設定処
理方式」は、「マルチプロセッサシステムにおいて、TO
D 同期処理を起動する中央処理装置の1つ (特定の中央
処理装置) が、主記憶の所定の領域にTODリセットを
指示する情報を設定しておき、他のすべての中央処理装
置におけるTODリセット完了を検知すると、他のすべ
ての中央処理装置に、同期設定開始を指示することで、
上記TOD 同期処理を起動する中央処理装置から指示され
た初期値を設定した後、上記TOD 同期処理を起動する中
央処理装置から1秒桁上がりの同期信号によって、初期
値から全ての中央処理装置のTODがカウントを始め
る」ものであるが、特定の中央処理装置のTODでの1
秒の桁上がりのタイミングと、他の中央処理装置でのT
ODへの初期値の設定のタイミングとの関係が不明確で
あるため、正確な同期化が保証できないという問題が残
る。
Japanese Patent Application Laid-Open No. 61-13364 discloses "TOD synchronization setting processing method".
D One of the central processing units (a specific central processing unit) that starts the synchronous processing sets information for instructing the TOD reset in a predetermined area of the main memory, and resets the TOD reset in all the other central processing units. When the completion is detected, all other central processing units are instructed to start the synchronization setting.
After setting the initial value instructed by the central processing unit that activates the TOD synchronization processing, the central processing unit that activates the TOD synchronization processing uses a synchronization signal one second higher than that of the central processing unit to activate all the central processing units from the initial value. TOD starts counting ", but one at the TOD of a particular central processing unit.
The timing of the carry of the second and the T in other central processing units
Since the relationship between the timing of setting the initial value to the OD and the timing is unclear, there remains a problem that accurate synchronization cannot be guaranteed.

【0019】又、特開昭62-49555号公報「マルチプロセ
ッサ・システムの計時同期装置」は「マルチプロセッサ
・システムにおいて、1つの処理装置の計時機構に、第
1時刻値をセットして起動し、他のすべての処理装置の
計時機構には、上記第1時刻より後の第2の時刻値をセ
ットし、上記1つの処理装置で起動された計時機構が上
記第2の時刻値を示したとき、他のすべての処理装置の
計時機構を起動する」ものであって、特定の処理装置の
計時機構が、第1の時刻値から第2の時刻値になった時
に同期化する機構は、上記特開昭61-13364号公報「TO
D同期設定処理方式」と原理的に同じであり、上記特定
の処理装置からの同期化信号のタイミングと、各処理装
置での、第2の時刻値を設定する処理タイミングとの関
係が不明確であり、正確な同期化が保証できないという
問題が残る。
Japanese Patent Application Laid-Open No. Sho 62-49555, entitled "Timekeeping Synchronous Device of Multiprocessor System" describes "in a multiprocessor system, the first time value is set in the timekeeping mechanism of one processing device and activated. The second time value after the first time is set in the time mechanisms of all the other processing devices, and the time mechanism activated by the one processing device indicates the second time value. When the timing mechanism of all the other processing devices is activated, the mechanism that synchronizes when the timing mechanism of the specific processing device changes from the first time value to the second time value is: JP-A-61-13364, `` TO
D synchronization setting processing method ", and the relationship between the timing of the synchronization signal from the specific processing device and the processing timing of setting a second time value in each processing device is unclear. However, there remains a problem that accurate synchronization cannot be guaranteed.

【0020】本発明は上記従来の欠点に鑑み、マルチプ
ロセッサシステムにおける、CPU間のTODの同期化
を行うに際して、CPU間の干渉を防ぎ、試行錯誤的に
TODの同期化を行うことなく、且つ、特定のCPUの
計時動作とも関係なく同期化処理を行うようにして、T
OD時計の同期設定を正確に行うことができる。TOD
の同期化制御方法を提供することを目的とするものであ
る。
In view of the above-mentioned conventional disadvantages, the present invention prevents interference between CPUs when synchronizing TODs between CPUs in a multiprocessor system, without synchronizing TODs by trial and error, and , The synchronization process is performed irrespective of the timing operation of a specific CPU,
The synchronization setting of the OD clock can be accurately performed. TOD
It is an object of the present invention to provide a synchronization control method.

【0021】[0021]

【課題を解決するための手段】図1は、本発明の一実施
例を示した図であって、図1(a) は、全体の構成例を示
し、図1(b) は、TOD時計のカウント抑止, 開始指示
回路の構成例を示している。上記の問題点は下記の如く
に構成したTOD同期化制御方法によって解決される。
FIG. 1 is a diagram showing an embodiment of the present invention. FIG. 1 (a) shows an example of the entire configuration, and FIG. 1 (b) shows a TOD timepiece. 2 shows a configuration example of a count suppression and start instruction circuit. The above problem is solved by a TOD synchronization control method configured as follows.

【0022】(1) TOD時計10をそれぞれ備えた複数個
の中央処理装置1を有するマルチプロセッサシステムで
あって特定の中央処理装置がTOD同期化を行う権限
を獲得する同期化権限獲得手段と各中央処理装置が備
えているTOD時計10のカウント動作の抑止を指示する
信号、およびカウント動作の開始を指示する信号を伝達
するTODカウント制御信号手段と同期化権限を獲得
した中央処理装置が、主記憶装置の所定の領域に新TO
D値を設定し、他の中央処理装置へ割り込みを行うT
OD同期化手段とTOD同期化の割り込みを受けた中
央処理装置が命令実行動作を停止させ、停止状態を主記
憶装置の所定領域に表示設定する手段と同期化権限を
獲得した中央処理装置が、他の中央処理装置が停止状態
にあることを主記憶装置の所定領域により検出し、TO
Dカウント制御信号手段を介してTOD時計のカウント
動作の抑止を指示する信号aを送出するTOD時計カ
ウント抑止手段とTOD時計のカウント動作の抑止を
指示する信号を検出した中央処理装置が新TOD値を読
み出して自己のTOD時計に設定し、設定の完了を所定
領域に表示設定するTOD設定手段と同期化権限を獲
得した中央処理装置がすべてのTOD値設定が完了した
ことを検出し、TODカウント制御信号手段を介してT
OD時計のカウント動作の開始を指示する信号bを送
出するTODカウント開始手段とを有するように構成す
る。
(1) A plurality of TOD clocks 10 each provided
Multiprocessor system having a central processing unit 1
There are, privileges a particular central processing unit performs TOD synchronization
And synchronization authority acquisition means for acquiring, the central processing unit Bei
Instruction to suppress the counting operation of the TOD clock 10
Signals and signals to start counting
To obtain TOD count control signal means and synchronization authority
The new central processing unit stores the new TO in a predetermined area of the main storage device.
T to set D value and interrupt other central processing unit
OD synchronization means , while receiving interruption of TOD synchronization
The central processing unit stops the instruction execution operation and mainly describes the stopped state.
Means for setting display in a predetermined area of the storage device, and synchronization authority
The acquired central processing unit is stopped in other central processing units
Is detected by a predetermined area of the main storage device, and TO
Counting of TOD clock via D count control signal means
TOD clock that sends out signal a instructing operation inhibition
Und suppression means and suppression of the count operation of the TOD clock
The central processing unit that detects the command signal reads the new TOD value.
Set to your own TOD clock
TOD setting means to set display on the area and acquire synchronization authority
The obtained central processing unit has completed setting all TOD values.
Is detected, and T is detected via the TOD count control signal means.
Sends signal b instructing the start of the counting operation of the OD clock
And means for starting TOD counting.
You.

【0023】(2) 請求項1に記載のマルチプロセッサシ
ステムであってTOD時計10のカウント動作の抑止を
指示する信号aを受け取るタイミングと、TOD時計
10のカウント動作の開始を指示する信号bを受け取る
タイミングとは、各TOD時計10のカウントタイミング
(EN1M)と一定時間、例えば、デューティ 50 に対応する
時間だけずれたタイミング(EN1MH) を有するように構成
することを特徴とする
(2) The multiprocessor system according to claim 1
Stem, to suppress the count operation of the TOD clock 10
Timing of receiving the instruction signal a and the TOD clock
Receives signal b instructing start of 10 count operation
Timing is the count timing of each TOD clock 10
(EN1M) and a certain time, for example, duty 50
Configured to have timing shifted by time (EN1MH)
It is characterized by doing .

【0024】(3) 請求項1に記載のマルチプロセッサシ
ステムであってTODカウント制御信号手段は、各中
央処理装置からの信号線をドット論理和した回路構成で
あることを特徴とする
(3) The multiprocessor system according to claim 1
A stem, wherein the TOD count control signal means comprises:
With a circuit configuration in which signal lines from the central processing unit are dot-ORed
There is a feature .

【0025】図3及び図4に本発明の同期化処理を流れ
図で示す。 (4) TOD時計をそれぞれ備えた複数個の中央処理装置
を有するマルチプロセッサシステムにおけるTOD同期
化制御方法であって特定の中央処理装置がTOD同期
化を行う権限を獲得する同期化権限獲得段階200)
と、 同期化権限を獲得した中央処理装置が、主記憶装置
の所定の領域に新TOD値を設定し(201) 、他の中央処
理装置へ割り込みを行う(202) TOD同期化段階と
OD同期化の割り込みを受けた中央処理装置が命令実行
動作を停止させ、停止状態を主記憶装置の所定領域に表
示設定する段階(220) と同期化権限を獲得した中央処
理装置が、他の中央処理装置が停止状態にあることを主
記憶装置の所定領域により検出し(204) 、各中央処理装
置が備えているTOD時計のカウント動作の抑止を指示
する信号、およびカウント動作の開始を指示する信号を
伝達するTODカウント制御信号線を介してTOD時計
のカウント動作の抑止を指示する信号を送出するTOD
時計カウント抑止段階(205) とTOD時計のカウント
動作の抑止を指示する信号を検出した中央処理装置が新
TOD値を読み出して自己のTOD時計に設定し(222,2
07) 、設定の完了を所定領域に表示設定するTOD設定
段階(223,208) と同期化権限を獲得した中央処理装置
がすべてのTOD値設定が完了したことを検出し(209)
、TODカウント制御信号線を介してTOD時計のカ
ウント動作の開始を指示する信号を送出し、各TODは
カウントを開始するTODカウント開始段階(210,224)
とを順次処理することによりTODの同期化を行う。
FIGS. 3 and 4 show the flow of the synchronization process of the present invention.
Shown in the figure . (4) Multiple central processing units each equipped with a TOD clock
TOD Synchronization in Multiprocessor System
Control method in which a specific central processing unit performs TOD synchronization
Synchronization Authorization Acquisition Stage ( 200)
And the central processing unit that has acquired the synchronization authority is the main storage device.
A new TOD value is set in a predetermined area of (201), and another central processing is performed.
An interrupt to the management device (202) TOD and synchronization phase, T
The central processing unit that received the OD synchronization interrupt executes the instruction
Stops the operation and displays the stopped state in a predetermined area of the main storage device.
(220) and the central processing that has acquired the synchronization authority.
The main processing unit determines that another central processing unit is in the stopped state.
It is detected by a predetermined area of the storage device (204), and each central processing unit is detected.
Instruction to suppress the count operation of the TOD clock provided in the device
Signal to start counting and a signal to instruct
TOD clock transmitted via TOD count control signal line
TOD that sends out a signal instructing suppression of the count operation
Clock count suppression stage (205) , TOD clock count
A central processing unit that detects a signal instructing operation suppression
Read the TOD value and set it to your TOD clock (222, 2
07) TOD setting to display setting completion in a predetermined area
Steps (223,208) and the central processing unit that has acquired the synchronization authority
Detects that all the TOD values have been set (209)
Of the TOD clock via the TOD count control signal line
Sends a signal instructing the start of the counting operation, and each TOD
TOD count start stage to start counting (210,224)
Are sequentially processed to synchronize the TOD.

【0026】[0026]

【作用】即ち、どれかの中央処理装置(ここではCPU
(0) とする)が、例えばテスト&セット命令によって、
主記憶装置の所定の領域の“0”を確認して、その領域
を“1”とすることにより、TOD同期化権限を獲得
し、主記憶装置の別の所定の領域に新TOD値を格納し
た後、各中央処理装置(以下CPU(1) 〜(n) と記す)
に対して、命令の実行動作を停止させる為に割り込み、
割り込まれた各CPU(1) 〜(n) では、命令の実行停止
処理を行い、その完了通知を、主記憶装置の所定の領域
に設定する
That is, any central processing unit (here, CPU
(0)), for example, by a test & set instruction,
Check "0" in a predetermined area of the main storage device, and check that area.
Is set to “1” to obtain TOD synchronization authority
Then, the new TOD value is stored in another predetermined area of the main storage device.
After that, each central processing unit (hereinafter referred to as CPU (1) to (n))
To interrupt the execution of the instruction,
Instruction execution is stopped at each of the interrupted CPUs (1) to (n).
Performs processing and sends a notification of completion to a predetermined area of the main storage device.
Set to .

【0027】TOD同期化権限を獲得したCPU(0) が
主記憶装置の所定の領域を見て、すべてのCPU(1) 〜
(n) が命令の実行を停止したことを確認して、TOD時
計のカウント動作を抑止する指示信号を送出する
The CPU (0) having acquired the TOD synchronization authority
Looking at a predetermined area of the main storage, all CPUs (1) to
Confirm that (n) has stopped executing the instruction, and
An instruction signal for suppressing the counting operation of the total is transmitted .

【0028】このTODカウント抑止指示信号を検出し
た各CPU(0) 〜(n) では、主記憶装置の所定の領域に
設定されている前記の新TOD値を読み出して、自己の
TOD時計に設定し、設定を完了したことを主記憶装置
の所定の領域に設定して、同期化権限を有するCPU
(0) に通知する
When this TOD count suppression instruction signal is detected,
In each of the CPUs (0) to (n),
Reads out the new TOD value that has been set, and
The TOD clock is set, and the completion of the setting is recorded in the main storage device.
CPU with synchronization authority set in a predetermined area of
Notify (0) .

【0029】同期化権限をもつCPU(0) は、前記の主
記憶装置の所定の領域を見て、全てのCPU(0) 〜(n)
が新TOD値を設定したことを確認すると、TODカウ
ント開始指示信号を送出する。このTODカウント開始
指示信号を検出すると各TOD時計は、即、カウントを
開始する
The CPU (0) having the synchronization right
Looking at a predetermined area of the storage device, all CPUs (0) to (n)
Confirms that has set a new TOD value,
Sends an event start instruction signal. Start this TOD count
Upon detecting the instruction signal, each TOD clock immediately counts.
To start .

【0030】従って、本発明によれば、特定のCPU
(0) でのTOD時計のカウント動作に起因して発生する
1秒の桁上がり信号に基づいた同期化制御ではないの
で、CPU間の干渉による誤動作は皆無となり、且つ、
一回の同期化処理で済むため、正確な同期化処理が、ス
ムースに実現できる効果が得られる
Therefore, according to the present invention, a specific CPU
Occurs due to TOD clock count operation at (0)
Not a synchronization control based on a one-second carry signal
Therefore, there is no malfunction due to interference between CPUs, and
Since only one synchronization process is required, accurate synchronization
The effect that can be realized in mousse is obtained .

【0031】特に、TOD時計のカウントの抑止と開始
を指示する信号(TODCS-W) a,bの信号を結線論理
回路によりドットオアして、各CPUに伝達する構成と
することにより、少ないハードウェアで、各CPU(0)
〜(n) での同期化処理を制御することができる
In particular, the suppression and start of the TOD clock count
Signal (TODCS-W) that connects a and b signals
A circuit for dot-oring by a circuit and transmitting to each CPU
By doing so, with less hardware, each CPU (0)
(N) can be controlled .

【0032】又、これらの信号のタイミングを、各CP
U(0) 〜(n) でのTOD時計のカウントタイミング(TOD
CE) とずらせて構成することにより、いわゆるハザード
の問題も回避することができ、各CPU(0) 〜(n) での
TOD時計のカウントの開始を安定にすることができ
The timing of these signals is determined by each CP.
Count timing of TOD clock at U (0) to (n) (TOD
CE), so-called hazards
Problem can be avoided, and each CPU (0) to (n)
The start of TOD clock counting can be stabilized
You .

【0033】[0033]

【実施例】以下本発明の実施例を図面によって詳述す
る。前述の図1は、本発明の一実施例を示した図であ
り、図1(a) は、全体の構成例を示し、図1(b) は、TO
DCS 同期化部, 及び、TOD時計カウントイネーブル信
号の生成回路例を示しており、図2は本発明のTOD同
期化処理のタイムチャート図であり、図3,図4は、本
発明の同期化処理を流れ図で示した図であり、図5は、
本発明の他の実施例を示した図である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. FIG. 1 is a diagram showing an embodiment of the present invention, FIG. 1 (a) shows an example of the entire configuration, and FIG.
FIG. 2 is a time chart of the TOD synchronization processing of the present invention, and FIGS. 3 and 4 are the timing charts of the DCS synchronizing unit and the generation circuit of the TOD clock count enable signal. FIG. 5 is a flowchart showing the processing, and FIG.
FIG. 9 is a view showing another embodiment of the present invention.

【0034】本発明においては、TOD時計 10 を、そ
れぞれ、備えた複数個の中央処理装置 1 が、主記憶装
置 2を共有するマルチプロセッサシステムにおいて、各
中央処理装置 1での命令実行動作を停止させる割り込み
手段と、各中央処理装置 1が備えているTOD時計 1
0 のカウント動作を抑止, 開始の指示手段a,bと
を設けて、特定の中央処理装置 1が、上記割り込み手段
で、各中央処理装置 1に割り込み、各中央処理装置 1
の命令実行動作を停止させた後、上記TOD時計 10 の
カウント抑止指示手段aで、各中央処理装置 1が備え
ているTOD時計 10 のカウントの抑止を指示し、各中
央処理装置 1では、上記カウント抑止指示を認識する
と、新TOD値をリードして、自己のTOD時計 10 に
セットし、各中央処理装置 1での新TOD値の設定の完
了を、上記特定の中央処理装置 1が認識したとき、上記
TOD時計 10 のカウント開始手段bでカウントの開
始を指示することで、各中央処理装置 1が、上記新TO
D値からカウントを開始するように制御する手段が、本
発明を実施するのに必要な手段である。尚、全図を通し
て同じ符号は同じ対象物を示している。
In the present invention, in a multiprocessor system in which a plurality of central processing units 1 each having a TOD clock 10 share a main storage unit 2, the instruction execution operation in each central processing unit 1 is stopped. Interrupt means and the TOD clock 1 provided in each central processing unit 1
By providing means a and b for inhibiting and starting the count operation of 0, the specific central processing unit 1 interrupts each central processing unit 1 by the above-mentioned interrupting means, and each central processing unit 1
After the instruction execution operation is stopped, the count suppression instructing means a of the TOD clock 10 instructs the suppression of the count of the TOD clock 10 provided in each central processing unit 1. When the count suppression instruction is recognized, the new central processing unit 1 reads the new TOD value and sets it in its own TOD clock 10, and the specific central processing unit 1 recognizes the completion of the setting of the new TOD value in each central processing unit 1. At this time, by instructing the start of counting by the count start means b of the TOD clock 10, each central processing unit 1 causes the new TO
Means for controlling to start counting from the D value is a means necessary for carrying out the present invention. Note that the same reference numerals indicate the same object throughout the drawings.

【0035】以下、図1、図2,図3,図4, 図5によ
って、本発明のTOD同期化制御方法を説明する。図1
は、具体的な、各CPU 1内のTOD時計 10 の同期化
手段を示している。
The TOD synchronization control method of the present invention will be described below with reference to FIGS. 1, 2, 3, 4, and 5. FIG.
Shows concrete means for synchronizing the TOD clock 10 in each CPU 1.

【0036】図1(a),(b) において、TODCS 11(TO
DCS-W) は、各CPU(0) 〜(n) 1内のレジスタであ
り、各CPU(0) 〜(n) 1 毎にセット可能である。EN
1Mは、TOD時計 10 のカウントタイミングであり、
例えば、1μ秒周期のクロックであるTODCKの立ち
下がりで1τオンする。{図2の動作タイムチャート参
照} EN1MHは、各CPU(0) 〜(n) 1 内のTOD時計 1
0 の同期化タイミングであり、当実施例では、上記TO
DCKをデュ−ティ50としているため、EN1Mと
は、図2に示したように、0.5μ秒遅れたタイミング
で1τオンするようにしている。
Referring to FIGS. 1A and 1B, TODCS 11 (TO
DCS-W) is a register in each of the CPUs (0) to (n) 1 and can be set for each of the CPUs (0) to (n) 1. EN
1M is the count timing of the TOD clock 10,
For example, 1τ is turned on at the fall of TODCK, which is a clock having a period of 1 μsec. << Refer to the operation time chart of FIG. 2 >> EN1MH is the TOD clock 1 in each CPU (0) to (n) 1.
0, and in this embodiment, the above TO
Since DCK has a duty ratio of 50, EN1M is turned on by 1 [tau] at a timing delayed by 0.5 [mu] sec as shown in FIG.

【0037】上記のTODCS−Wは、図1(b) の具体
回路から明らかなように、TODCE 同期化回路 12 中の論
理積回路 120で、上記のEN1MHに同期化されて、保
持回路を構成しているD型フリップフロップ(D) 121 で
保持され、次の否定回路 14で反転された、図1(a) に
示してあるように、各CPU(0) 〜(n) 1 とのDOT−
OR信号として出力される。そうすると、各CPU(0)
〜(n) 1 は、そのDOT−OR信号を取り込み、TOD
時計カウントイネーブル生成回路(TODCE生成部) 13に入
力する。
As is apparent from the specific circuit of FIG. 1B, the above TODCS-W is synchronized with the above EN1MH by the AND circuit 120 in the TODCE synchronization circuit 12 to constitute a holding circuit. As shown in FIG. 1 (a), the DOT is held by the D-type flip-flop (D) 121 and inverted by the next negation circuit 14, as shown in FIG. −
It is output as an OR signal. Then, each CPU (0)
~ (N) 1 captures the DOT-OR signal, and
Input to the clock count enable generation circuit (TODCE generation unit) 13.

【0038】このTOD時計カウントイネーブル生成回
路(TODCE生成部) 13では、上記DOT−OR信号を否定
回路 130で, 元の極性に反転したのち、波形生計の為
に、例えば、2つのD型フリップフロップ(D) 131,132
を介して出力されたTODCS−Rを、カウントイネ
ーブル抑止ゲート回路 133に反転入力し、上記TODC
S−Wが“1”の期間中、各CPU(0) 〜(n) 1 の、上
記TOD時計 10 のカウントを行うカウントイネーブル
信号(TODCE) が出力されるのを抑止する。
In the TOD clock count enable generation circuit (TODCE generation unit) 13, the DOT-OR signal is inverted to the original polarity by the NOT circuit 130, and then, for example, two D-type flip-flops are used for waveform generation. (D) 131,132
Is inverted and input to the count enable suppression gate circuit 133, and the TODCS-R
During the period when SW is "1", the output of the count enable signal (TODCE) for counting the TOD clock 10 of each of the CPUs (0) to (n) 1 is suppressed.

【0039】ここで、上記TODCS 11 の出力(TODCS
-W) はDOT−ORに出力されるため、どれか1つのC
PU(0),(1),〜 1でもオンすると、DOT−OR信号は
“0”になる。又、DOT−OR信号を“1”にするた
めには、すべてのCPU(0)〜(n) 1 のTODCS−W
を“0”にしなければならない。それは、TOD時計10
を更新する時は、更新CPU 1は1つしかなく、その
他のCPU 1は、それに従うという方法であるためであ
り、本発明の特徴の一つを構成している。
Here, the output of the above TODCS 11 (TODCS
-W) is output to the DOT-OR, so any one C
When PU (0), (1), to 1 are turned on, the DOT-OR signal becomes “0”. Further, in order to set the DOT-OR signal to “1”, the TODCS-W of all CPUs (0) to (n) 1
Must be set to “0”. It is TOD clock 10
Is updated, there is only one update CPU 1 and the other CPUs 1 follow this method, which constitutes one of the features of the present invention.

【0040】上記TODCS−Rは“1”の時、TO
D時計 10 のカウントを抑止し、“0”の時、TOD時
計 10 のカウントを行う。即ち、TODCS−W信号,
即ち、上記TODCS−R信号は、図2のタイムチャ
ートからも明らかなように、上記EN1MHと同期して
いるため、TOD時計 10 のカウントタイミング(EN1M
と同じタイミング) とは、0.5μ秒離れている。これ
により、従来技術のように、TOD時計 10 のカウント
タイミングとTOD時計 10 のカウント抑止,開始タイ
ミングa,bとの微妙な差による同期化漏れ、即
ち、TOD時計 10 での、所謂、ハザード動作等が防げ
る。
When TODCS-R is "1", TODCS-R
The count of the D clock 10 is suppressed. When the count is "0", the count of the TOD clock 10 is performed. That is, the TODCS-W signal,
That is, as is clear from the time chart of FIG. 2, the TODCS-R signal is synchronized with the EN1MH, so that the count timing (EN1M
(The same timing as described above). Thus, as in the prior art, synchronization omission due to a slight difference between the count timing of the TOD clock 10 and the count suppression and the start timings a and b of the TOD clock 10, that is, so-called hazard operation in the TOD clock 10 Etc. can be prevented.

【0041】図3は、TOD時計 10 をセットする時の
各CPUの動作フローである。当実施例では、各CPU
(0) 〜(n) 1 がソフト動作 (即ち、命令を実行中) 中の
TODセット時の各CPUの動作フローを示している。
FIG. 3 shows an operation flow of each CPU when the TOD clock 10 is set. In this embodiment, each CPU
(0) to (n) 1 show the operation flow of each CPU when the TOD is set during the software operation (that is, the instruction is being executed).

【0042】先ず、TOD時計 10 をセットしたいCP
U 1がTOD時計セット権を、例えば、テストアンドセ
ット (T&S)命令により得る。具体的には、TOD時
計 10 をセットしたいCPU 1が、テストアンドセット
(T&S)命令を実行して、主記憶 2{図1(a) 参照}
上の、TOD時計セット権の獲得領域を参照して、
“0”かどうかを見て、“0”であると、未だ、どのC
PU 1も、TOD時計セット権を得ていないと認識し、
その領域を“1”にセットすることで、TOD時計セッ
ト権を得るが、以降において、他のCPU 1は、この主
記憶 2上のTOD時計セット権の獲得領域を見ても、既
に、“1”になっていて、最早、自分が、この領域に
“1”をセットすることができず、TOD時計セット権
の獲得できないという排他制御が行われる。{図3の処
理ステップ 200参照} 上記のようにして、TOD時計セット権を得たCPU 1
は、主記憶 2上の特定の番地に新TOD値をセットし、
他の各CPU 1に所定の割り込みを行って、TOD時
計をセットする旨 (具体的には、ソフト動作の停止要
求) 通知する。{図3の処理ステップ 201,202参照} 各CPU 1はソフト動作が停止したら、停止したことを
主記憶 2の特定の番地にセットし、TOD時計セットに
備える。{図3の処理ステップ 203,220参照}TOD時
計セット権を得ているCPU 1は、全CPU 1がソフト
動作を停止したことを、上記主記憶 2上の所定の領域を
参照することで確認後、上記TODCS 11 に“1”を
セットすることにより、TOD時計カウント抑止指示
aを出す。それがEN1MHに同期化されてDOT−O
R信号により、各CPU 1内のTODCS−Rが
“1”になる。{図3の処理ステップ 204,205,221参
照}それにより、各CPU 1のTOD時計 10 のカウン
トが停止する。各CPU 1は、TODCS−Rが
‘1’になったのを確認した後、新TOD値をリ−ド
し、TOD時計 10 にセットし、新TOD値をセットし
た旨を主記憶の特定の番地にセットする。{図3の処理
ステップ 206,207,208,221,222,223参照} TOD時計セット権を得ているCPU 1は、全CPU 1
が新TOD値をセットしたことを主記憶 2上の、上記特
定の番地を参照することで確認し、TODCS−Wに
‘0’をセットして、TOD時計のカウント開始指示
bを“オン(=0)”する。それがEN1MHに同期化され
てDOT−OR信号により、各CPU 1の、上記 TODCE
生成部 13 に入力され、各CPU 1のTOD時計 10 の
カウントが開始される。{図3の処理ステップ 209,21
0,224参照} 上記の実施例においては、各CPU(0) 〜(n) 1 からの
TOD時計のカウント抑止,開始信号(TODCS-W) a,
bを反転した信号を、図1(a) に示したようにドット
オアする例で説明したが、図5に示したように、各CP
U(0) 〜(n) 1からのTOD時計のカウント抑止,開始
信号(TODCS-W) a,bを、それぞれのCPU(0) 〜
(n) 1 において論理和して取り込むようにしてもよいこ
とはいう迄もないことである。この場合には、図1(a)
に示したように、このTOD時計のカウント抑止,開始
信号(TODCS-W) a,bの極性を反転する必要はな
い。
First, the CP to which the TOD clock 10 is to be set
U1 obtains the TOD clock setting right by, for example, a test and set (T & S) instruction. More specifically, the CPU 1 that wants to set the TOD clock 10
Executes the (T & S) instruction and stores it in main memory 2 {see Fig. 1 (a)}.
Referring to the acquisition area of the TOD clock set right above,
Check if it is “0”, and if it is “0”, which C
PU 1 also recognized that he did not have the TOD clock set right,
By setting the area to “1”, the TOD clock set right is obtained. In the following, the other CPUs 1 already see “TOD clock set right acquired area” The exclusive control is performed such that the user cannot set "1" in this area any longer and cannot acquire the TOD clock set right. << Refer to the processing step 200 in FIG. 3. >>
Sets the new TOD value at a specific address in main memory 2,
A predetermined interrupt is issued to each of the other CPUs 1 to notify that the TOD clock is set (specifically, a request to stop the software operation). {See Processing Steps 201 and 202 in FIG. 3} When the software operation stops, each CPU 1 sets the stop to a specific address in main memory 2 and prepares for the TOD clock set. << Refer to processing steps 203 and 220 in FIG. 3. >> CPU 1, which has acquired the TOD clock setting right, confirms that all CPUs 1 have stopped the software operation by referring to the predetermined area in main memory 2 described above. By setting "1" in the TODCS 11, a TOD clock count suppression instruction a is issued. It is synchronized with EN1MH and DOT-O
The TODCS-R in each CPU 1 becomes “1” by the R signal. {Refer to processing steps 204, 205, and 221 in FIG. 3} Thereby, the count of the TOD clock 10 of each CPU 1 stops. After confirming that the TODCS-R has become "1", each CPU 1 reads the new TOD value, sets it in the TOD clock 10, and indicates in the main memory that the new TOD value has been set. Set the address. << Refer to the processing steps 206, 207, 208, 221, 222, and 223 in FIG.
Confirms that the new TOD value has been set by referring to the specific address in the main memory 2, sets “0” in TODCS-W, and sets the count start instruction b of the TOD clock to “on ( = 0) ”. It is synchronized with EN1MH and the DOT-OR signal causes each CPU 1
The data is input to the generation unit 13 and the counting of the TOD clock 10 of each CPU 1 is started.処理 Processing steps 209 and 21 in FIG.
0,224} In the above embodiment, the count suppression of the TOD clock from each of the CPUs (0) to (n) 1 and the start signal (TODCS-W) a,
b has been described as an example of dot-oring as shown in FIG. 1 (a), but as shown in FIG.
U (0) to (n) The count suppression of the TOD clock from 1 and the start signals (TODCS-W) a and b are sent to the respective CPUs (0) to
(n) It goes without saying that the logical sum of 1 may be taken in. In this case, FIG.
As shown in (1), there is no need to invert the polarity of the count suppression and start signals (TODCS-W) a and b of the TOD clock.

【0043】このように、本発明においては、マルチプ
ロセッサシステムにおいて、CPU間のTOD時計の同
期化を行うのに、各CPUの命令実行動作の停止を指示
する為の割り込み手段と、各CPUのTOD時計のカ
ウントを抑止,開始を指示する手段a,bとを設
け、特定のCPUがTODセット獲得権を得て、上記割
り込み手段で、各CPUに割り込み、各CPUのソフ
ト動作を停止させた後、上記各CPUのTOD時計のカ
ウント抑止手段aで、TOD時計のカウントを抑止
し、各CPUでは、上記カウント抑止指示を認識する
と、新TOD値をリードして、自己のTOD時計にセッ
トし、各CPUでの新TOD値の設定の完了を、上記特
定のCPUが認識したとき、上記TOD時計のカウント
開始手段bでカウントの開始を指示することで、各C
PUが、上記新TOD値からカウントを開始するように
したところに特徴がある。
As described above, according to the present invention, in the multiprocessor system, in order to synchronize the TOD clock between the CPUs, the interrupt means for instructing each CPU to stop the instruction execution operation, Means a and b for suppressing and starting the count of the TOD clock are provided. The specific CPU obtains the right to acquire the TOD set, interrupts each CPU by the interrupt means, and stops the software operation of each CPU. Thereafter, the count of the TOD clock is suppressed by the TOD clock count suppression means a of each CPU. When the CPU recognizes the count suppression instruction, the CPU reads the new TOD value and sets it in its own TOD clock. When the specific CPU recognizes that the setting of the new TOD value in each CPU is completed, the count start means b of the TOD clock instructs the start of counting. In Rukoto, each C
It is characterized in that the PU starts counting from the new TOD value.

【0044】[0044]

【発明の効果】以上、詳細に説明したように、本発明の
マルチプロセッサシステムにおけるTOD同期化制御方
法によれば、特定のCPU(0) でのTOD時計のカウン
ト動作に起因して発生する1秒の桁上がり信号に基づい
た同期化制御ではないので、CPU間の干渉による誤動
作は皆無となり、且つ、一回の同期化処理で済むため、
正確な同期化処理が、スムースに実現できる効果が得ら
れる。
As described above in detail, according to the TOD synchronization control method in the multiprocessor system of the present invention, 1 which occurs due to the counting operation of the TOD clock in the specific CPU (0). Since the synchronization control is not based on the carry signal of the second, there is no malfunction due to the interference between CPUs, and only one synchronization process is required.
An effect that an accurate synchronization process can be smoothly realized is obtained.

【0045】特に、該TODカウント抑止,開始指示(T
ODCS-W) a,bの信号をドットオアして、各CPU
に伝達する構成とすることにより、少ない、ハードウェ
アで、各CPU(0) 〜(n) での同期化処理を制御するこ
とができる。
In particular, the TOD count suppression and start instruction (T
ODCS-W) Dot OR the signals of a and b, and
, The synchronization processing in each of the CPUs (0) to (n) can be controlled with a small amount of hardware.

【0046】又、該TODカウント抑止,開始指示(TOD
CS-W) a,bの信号をタイミングを、各CPU(0)
〜(n) でのカウントタイミングとずらせて構成すること
よにより、所謂、ハザードの問題も回避することがで
き、各CPU(0) 〜(n) でのTOD時計でのカウントの
開始を安定に開始させることができる。
The TOD count suppression and start instruction (TOD count
CS-W) The timing of the signals of a and b is
(N) can avoid the so-called hazard problem, and can stably start counting on the TOD clock in each of the CPUs (0) to (n). You can get started.

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

【図1】本発明の一実施例を示した図FIG. 1 shows an embodiment of the present invention.

【図2】本発明のTOD同期化処理のタイムチャート図FIG. 2 is a time chart of the TOD synchronization processing of the present invention.

【図3】本発明の同期化処理を流れ図で示した図(その
1)
FIG. 3 is a flowchart showing the synchronization processing of the present invention (part 1).

【図4】本発明の同期化処理を流れ図で示した図(その
2)
FIG. 4 is a flowchart showing a synchronization process according to the present invention (part 2);

【図5】本発明の他の実施例を示した図FIG. 5 is a diagram showing another embodiment of the present invention.

【図6】マルチプロセッサシステムを説明する図FIG. 6 illustrates a multiprocessor system.

【図7】従来のTOD同期設定処理を示した図(その
1)
FIG. 7 illustrates a conventional TOD synchronization setting process (part 1).

【図8】従来のTOD同期設定処理を示した図(その
2)
FIG. 8 is a diagram showing a conventional TOD synchronization setting process (part 2);

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

1 中央処理装置{CPU,CPU(0)〜(n) } 10 TOD時計 11 TODカウント抑止部(TODCS) 12 TODカウントイネーブル同期化部(TODCE同期
化) 13 TODカウントイネーブル生成部(TODCE生成部) 200 〜210,220 〜224,230 〜233 処理ステップ TDOCK TODクロック TDOCS-W TODカウント抑止, 開始信号 TODCE TODカウントイネーブル信号 DOT-OR ドットオア 割り込み手段 a,b TOD時計のカウント動作を抑止, 開
始の指示手段 TODCS-R
1 Central processing unit {CPU, CPU (0) to (n)} 10 TOD clock 11 TOD count suppression section (TODCS) 12 TOD count enable synchronization section (TODCE synchronization) 13 TOD count enable generation section (TODCE generation section) 200 to 210,220 to 224,230 to 233 Processing steps TDOCK TOD clock TDOCS-W TOD count suppression, start signal TODCE TOD count enable signal DOT-OR dot or interrupt means a, b TOD clock count operation suppression, start instruction means TODCS-R

フロントページの続き (72)発明者 小田原 孝一 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 野中 巧 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 金谷 英治 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (56)参考文献 特開 平1−211159(JP,A) 特開 昭61−13364(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 15/16 - 15/177 Continuing from the front page (72) Inventor Koichi Odawara 1015 Uedanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture Inside Fujitsu Limited (72) Inventor Takumi Nonaka 1015 Uedanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture Fujitsu Limited (72) Invention Person Eiji Kanaya 1015 Uedanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture Inside Fujitsu Limited (56) References JP-A 1-211159 (JP, A) JP-A 61-13364 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G06F 15/16-15/177

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】TOD時計をそれぞれ備えた複数個の中央
処理装置を有するマルチプロセッサシステムであってどれかの中央処理装置がTOD同期化を行う権限を獲得
する同期化権限獲得手段と各中央処理装置が備えているTOD時計のカウント動作
の抑止を指示する信号、およびカウント動作の開始を指
示する信号を伝達するTODカウント制御信号手段と同期化権限を獲得した中央処理装置が、主記憶装置の所
定の領域に新TOD値を設定し、他の中央処理装置へ割
り込みを行うTOD同期化手段とTOD同期化の割り込みを受けた中央処理装置が命令実
行動作を停止させ、停止状態を主記憶装置の所定領域に
表示設定する手段と同期化権限を獲得した中央処理装置が、他の中央処理装
置が停止状態にあることを主記憶装置の所定領域により
検出し、TODカウント制御信号手段を介してTOD時
計のカウント動作の抑止を指示する信号を送出するTO
D時計カウント抑止手段とTOD時計のカウント動作の抑止を指示する信号を検出
した中央処理装置が新TOD値を読み出して自己のTO
D時計に設定し、設定の完了を所定領域に表示設定する
TOD設定手段と同期化権限を獲得した中央処理装置がすべてのTOD値
設定が完了したことを検出し、TODカウント制御信号
手段を介してTOD時計のカウント動作の開始を指示す
る信号を送出するTODカウント開始手段とを有するこ
とを特徴とするマルチプロセッサシステム
1. A plurality of centers each having a TOD clock.
A multiprocessor system having a processing unit , wherein one of the central processing units is authorized to perform TOD synchronization.
Synchronization authority acquiring means, and counting operation of the TOD clock provided in each central processing unit
Signal to instruct the start of the count operation.
A TOD count control signal means for transmitting a signal indicating the signal and a central processing unit having acquired the synchronization authority are provided in the main storage device.
Set a new TOD value in a certain area and assign it to another central processing unit.
And a central processing unit that receives an interrupt for TOD synchronization executes instruction execution.
Stops the row operation and sets the stopped state to a predetermined area in the main storage device.
The display setting means and the central processing unit having acquired the synchronization right
That the storage is in a stopped state is determined by a predetermined area of the main storage device.
Detected and at TOD via TOD count control signal means
TO that sends out a signal to instruct the counter to stop counting
D clock count suppression means , detecting a signal instructing suppression of the TOD clock count operation
The central processing unit reads the new TOD value and
Set the clock to D and display the setting completion in a predetermined area
The TOD setting means and the central processing unit having acquired the synchronization authority make all TOD values
Detects completion of setting, and outputs TOD count control signal
Indicates the start of the count operation of the TOD clock via the means
And a TOD count start means for transmitting a
And a multiprocessor system .
【請求項2】請求項1に記載のマルチプロセッサシステ
ムであって、TOD時計のカウント動作の抑止を指示する信号を受け
取るタイミングと、TOD時計のカウント動作の開始を
指示する信号を受け取るタイミングとは、各TOD時計
のカウントタイミングと一定時間ずれたタイミングを有
する ことを特徴とするマルチプロセッサシステム
2. The multiprocessor system according to claim 1, wherein a signal instructing suppression of the count operation of the TOD clock is received.
The timing to take and the start of the count operation of the TOD clock
The timing of receiving the instructing signal means that each TOD clock
There is a timing that deviates from the count timing of
A multiprocessor system characterized by:
【請求項3】請求項1に記載のマルチプロセッサシステ
ムであって、TODカウント制御信号手段は、各中央処理装置からの
信号線をドット論理和した回路構成であることを特徴と
するマルチプロセッサシステム
3. The multiprocessor system according to claim 1, wherein the TOD count control signal means receives a signal from each central processing unit.
It is characterized by a circuit configuration in which signal lines are dot-ORed.
Multiprocessor system .
【請求項4】TOD時計をそれぞれ備えた複数個の中央
処理装置を有するマルチプロセッサシステムにおけるT
OD同期化制御方法であって特定の中央処理装置がTOD同期化を行う権限を獲得す
る同期化権限獲得段階と同期化権限を獲得した中央処理装置が、主記憶装置の所
定の領域に新TOD値を設定し、他の中央処理装置へ割
り込みを行うTOD同期化段階とTOD同期化の割り込みを受けた中央処理装置が命令実
行動作を停止させ、停止状態を主記憶装置の所定領域に
表示設定する段階と同期化権限を獲得した中央処理装置が、他の中央処理装
置が停止状態にあることを主記憶装置の所定領域により
検出し、各中央処理装置が備えているTOD時計のカウ
ント動作の抑止を指示する信号、およびカウント動作の
開始を指示する信号を伝達するTODカウント制御信号
線を介してTOD時計のカウント動作の抑止を指示する
信号を送出するTOD時計カウント抑止段階とTOD時計のカウント動作の抑止を指示する信号を検出
した中央処理装置が新TOD値を読み出して自己のTO
D時計に設定し、設定の完了を所定領域に表示設定する
TOD設定段階と同期化権限を獲得した中央処理装置がすべてのTOD値
設定が完了したことを検出し、TODカウント制御信号
線を介してTOD時計のカウント動作の開始を指示する
信号を送出し、各TODはカウントを開始するTODカ
ウント開始段階とを有することを特徴とするマルチプロ
セッサシステムにおけるTOD同期化制御方法
4. A plurality of centers each having a TOD clock.
T in a multiprocessor system having a processing unit
An OD synchronization control method, wherein a specific central processing unit acquires an authority to perform TOD synchronization.
And the central processing unit that has acquired the synchronization authority is located in the main storage device.
Set a new TOD value in a certain area and assign it to another central processing unit.
And the central processing unit having received the TOD synchronization interrupt executes the instruction execution.
Stops the row operation and sets the stopped state to a predetermined area in the main storage device.
The display setting stage and the central processing unit having acquired the synchronization authority are connected to another central processing unit.
That the storage is in a stopped state is determined by a predetermined area of the main storage device.
Detect and detect the clock of the TOD clock provided in each central processing unit.
Signal to suppress counting operation and counting operation
TOD count control signal for transmitting a signal indicating start
Instructs the TOD clock to stop counting via line
A TOD clock count suppression stage that sends out a signal, and a signal that instructs suppression of the TOD clock count operation is detected.
The central processing unit reads the new TOD value and
Set the clock to D and display the setting completion in a predetermined area
The TOD setting phase, and the central processing unit that has acquired the synchronization authority determines all TOD values.
Detects completion of setting, and outputs TOD count control signal
Instructs the start of TOD clock count operation via line
A signal is sent and each TOD starts counting.
And a multi-start stage.
A TOD synchronization control method in a Sessa system .
JP32708192A 1992-12-08 1992-12-08 Multiprocessor system and TOD synchronization control method Expired - Fee Related JP3221109B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32708192A JP3221109B2 (en) 1992-12-08 1992-12-08 Multiprocessor system and TOD synchronization control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32708192A JP3221109B2 (en) 1992-12-08 1992-12-08 Multiprocessor system and TOD synchronization control method

Publications (2)

Publication Number Publication Date
JPH06175982A JPH06175982A (en) 1994-06-24
JP3221109B2 true JP3221109B2 (en) 2001-10-22

Family

ID=18195079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32708192A Expired - Fee Related JP3221109B2 (en) 1992-12-08 1992-12-08 Multiprocessor system and TOD synchronization control method

Country Status (1)

Country Link
JP (1) JP3221109B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5101403B2 (en) * 2008-06-19 2012-12-19 株式会社日立産機システム Information processing apparatus and periodic task execution method thereof

Also Published As

Publication number Publication date
JPH06175982A (en) 1994-06-24

Similar Documents

Publication Publication Date Title
US3932847A (en) Time-of-day clock synchronization among multiple processing units
US4920486A (en) Distributed arbitration apparatus and method for shared bus
US4835728A (en) Deterministic clock control apparatus for a data processing system
JPH04257932A (en) Chip for emulation for digital signal processor
US6021457A (en) Method and an apparatus for minimizing perturbation while monitoring parallel applications
JP3221109B2 (en) Multiprocessor system and TOD synchronization control method
US5038274A (en) Interrupt servicing and command acknowledgement system using distributed arbitration apparatus and shared bus
JPS63184125A (en) Time coinciding system
JP3318926B2 (en) Time synchronization method
JPH08137792A (en) Device and method for synchronizing circuit using plurality of clock signals
JPS59176863A (en) Timer synchronizing system
WO2021126462A1 (en) Method and apparatus for synchronizing the time stamp counter
JP2646436B2 (en) Timer control method
JPS63282510A (en) Time synchronization system
JPS633339B2 (en)
JPH02192315A (en) Pulse generator
JP2002024033A (en) Device for generating interrupt signal
JP2002031693A (en) Time correction device and method for elevator
JP2513032B2 (en) Microcomputer input control circuit
JPH06131209A (en) Artificial error generating system
JPH02212911A (en) Timing method for digital time unit
JPH01161505A (en) Device for managing real time of process controller
JPS6155769A (en) Bus control system
JPS60108786A (en) Time setter
JPS583012A (en) Information processor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010717

LAPS Cancellation because of no payment of annual fees