JPH0630035B2 - Clock switching control method for clock synchronous system - Google Patents

Clock switching control method for clock synchronous system

Info

Publication number
JPH0630035B2
JPH0630035B2 JP62298588A JP29858887A JPH0630035B2 JP H0630035 B2 JPH0630035 B2 JP H0630035B2 JP 62298588 A JP62298588 A JP 62298588A JP 29858887 A JP29858887 A JP 29858887A JP H0630035 B2 JPH0630035 B2 JP H0630035B2
Authority
JP
Japan
Prior art keywords
clock
circuit
basic
clocks
selection instruction
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 - Lifetime
Application number
JP62298588A
Other languages
Japanese (ja)
Other versions
JPH01140216A (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 JP62298588A priority Critical patent/JPH0630035B2/en
Publication of JPH01140216A publication Critical patent/JPH01140216A/en
Publication of JPH0630035B2 publication Critical patent/JPH0630035B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)
  • Multi Processors (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

【発明の詳細な説明】 〔目次〕 産業上の利用分野 従来の技術 発明が解決しようとする問題点 問題点を解決するための手段 作用 実施例 発明の効果 〔概要〕 複数の装置および発振器を有するクロック同期型システ
ムにおけるクロック切替え制御方式に関し, クロックの切替えに当って,基本クロックとその整数倍
の周期を持つクロックとの間の論理的位相関係を保証す
ることを目的とし, 基本クロックと整数倍クロックとの複数の組について,
異常の発生を検出し,正常な基本クロックとこれに対応
する整数倍クロックとの組を選択させる選択指示信号を
発生する手段と,前記選択指示信号に従って,正常な基
本クロックとこれに対応する整数倍クロックとの組を選
択する手段と,前記選択指示信号の変化を前記整数倍ク
ロックの位相に関連して検出する手段と,前記選択され
た基本クロックと整数倍クロックとの組を出力する手段
と,前記選択された基本クロックおよび整数倍クロック
と,前記選択指示信号の変化とに基づいて,前記出力の
タイミングを確定する手段とを備え、使用中の基本クロ
ックまたは整数倍クロックに異常が発生した時に,正常
な基本クロックとこれに対応する整数倍クロックとの組
を論理的位相関係を保ったタイミングで内部クロックと
して出力するように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] [Prior Art] Problems to be Solved by the Invention Means for Solving Problems Problems Working Example [Summary] Having a plurality of devices and oscillators Regarding the clock switching control method in a clock synchronous system, the purpose is to guarantee a logical phase relationship between the basic clock and a clock having an integral multiple period when switching the clock. For multiple pairs with clocks,
Means for detecting the occurrence of an abnormality and generating a selection instruction signal for selecting a pair of a normal basic clock and a corresponding integer multiple clock, and a normal basic clock and an integer corresponding thereto according to the selection instruction signal Means for selecting a set of double clocks, means for detecting a change in the selection instruction signal in relation to the phase of the integer multiple clock, and means for outputting a set of the selected basic clock and integer multiple clock And a means for determining the timing of the output based on the selected basic clock and the integer multiple clock and the change of the selection instruction signal, and an abnormality occurs in the basic clock or the integer multiple clock being used. When this is done, a set of a normal basic clock and a corresponding integer multiple clock is output as an internal clock at a timing that maintains a logical phase relationship. To configure.

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

本発明はクロック切替え制御方式に関し,更に詳しく
は,複数の装置および発振器を有するクロック同期型シ
ステムにおけるクロック切替え制御方式に関する。
The present invention relates to a clock switching control system, and more particularly to a clock switching control system in a clock synchronous system having a plurality of devices and oscillators.

大型計算機システムやマルチプロセッサシステムは,複
数の装置(例えば半導体装置)によって構成されるのが
一般的である。そして,各装置は,外部の発振機から各
装置に対して共通に供給された基本クロックに同期して
動作させられる。
A large-scale computer system and a multiprocessor system are generally composed of a plurality of devices (for example, semiconductor devices). Then, each device is operated in synchronization with a basic clock commonly supplied to each device from an external oscillator.

従って,基本クロックの供給に故障が生じた場合は,論
理回路の誤動作を招き,システムダウンに到る。
Therefore, if a failure occurs in the supply of the basic clock, the logic circuit malfunctions and the system goes down.

〔従来の技術〕[Conventional technology]

基本クロックの発振器自体または基本クロックを伝達す
るケーブル等のクロック系統の故障によるシステムダウ
ンを防止するために,複数の発振器(およびケーブル)
を備えることが考えられる。
Multiple oscillators (and cables) to prevent the system from going down due to a failure of the basic clock oscillator itself or the clock system such as the cable that transmits the basic clock
It is possible to prepare.

即ち,複数の発振器の発振出力(クロック)を複数の装
置の各々に対して供給するようにする。そして,ある時
点において1つの発振器からのクロックを選択して基本
クロックとして用い,該クロックに異常が生じた場合に
は基本クロックを他の発振器からのクロックに切替える
ようにする。
That is, the oscillation outputs (clocks) of a plurality of oscillators are supplied to each of a plurality of devices. Then, at a certain point of time, a clock from one oscillator is selected and used as a basic clock, and when an abnormality occurs in the clock, the basic clock is switched to a clock from another oscillator.

これによって,1つのクロック系統に故障が生じても,
システムダウンを避け,システムの運転を続行すること
ができる。
As a result, even if one clock system fails,
You can avoid system down and continue system operation.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上述の従来技術によれば,システム内に,周期の異なる
複数のクロックを使用する装置が複数存在する場合,ク
ロックの切替えに当って、論理回路の誤動作を生ずる可
能性がある。
According to the above-mentioned conventional technique, when there are a plurality of devices that use a plurality of clocks having different cycles in the system, a malfunction of the logic circuit may occur when the clocks are switched.

例えば,システムが単一周期のクロックのみを使用する
複数の装置からなる場合,または,システムが1つの装
置からなる場合には,クロックを切替えることによって
大きな問題は生じない。一方,各装置が基本クロックと
その整数倍(2,4,8・・・)の周期を持つクロック
(基本クロックを整数倍に分周して得たクロック)とに
同期して動作している場合,クロックの切替えに当っ
て,基本クロックとその整数倍の周期のクロックとの間
の論理的位相関係を保証する必要がある。
For example, when the system is composed of a plurality of devices that use only a single cycle clock, or when the system is composed of a single device, switching the clocks does not cause a big problem. On the other hand, each device operates in synchronization with the basic clock and a clock having a cycle of an integral multiple (2, 4, 8 ...) Of the basic clock (clock obtained by dividing the basic clock by an integral multiple). In this case, it is necessary to guarantee a logical phase relationship between the basic clock and a clock having a cycle of an integral multiple thereof when switching the clock.

ところが、従来技術によれば,どのタイミングでクロッ
クの切替えが行なわれたかを知ることができないので,
前記論理的位相関係が崩れてしまい,誤動作を招いてし
まうことが生じる。
However, according to the conventional technique, it is not possible to know at what timing the clock switching was performed.
This may cause the logical phase relationship to collapse, resulting in a malfunction.

本発明は,クロックの切替えに当って,基本クロックと
その整数倍の周期を持つクロックとの間の論理的位相関
係を保証することが可能なクロック切替え制御方式を提
供することを目的とする。
An object of the present invention is to provide a clock switching control method capable of guaranteeing a logical phase relationship between a basic clock and a clock having a cycle of an integral multiple thereof when switching clocks.

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

第1図は本発明の原理構成図であり,本発明によるクロ
ック同期型システムを示している。
FIG. 1 is a block diagram of the principle of the present invention, showing a clock synchronous system according to the present invention.

第1図において,1はプロセッサのような論理回路を含
む処理装置,11はクロック選択回路,12は選択指示
回路,13はタイミング確定回路,14は立上り検出回
路,15はクロック出力回路,21および22は発振器
を含むクロック分配元(クロック発生手段)である。
In FIG. 1, 1 is a processor including a logic circuit such as a processor, 11 is a clock selection circuit, 12 is a selection instruction circuit, 13 is a timing determination circuit, 14 is a rise detection circuit, 15 is a clock output circuit, 21 and Reference numeral 22 is a clock distribution source (clock generation means) including an oscillator.

クロック分配元21および22は,各々,基本クロック
とこれの整数倍の周期を持つクロック(以下,n倍クロ
ック)とを,処理装置1に供給する。
The clock distribution sources 21 and 22 respectively supply the basic clock and a clock having a cycle of an integral multiple of this (hereinafter, n-fold clock) to the processing device 1.

クロック選択回路11は,選択指示回路12からの選択
指示信号に従って,2つの基本クロックおよびn倍クロ
ックのうちから,一方のクロック分配元から供給された
一対の基本クロックおよびn倍クロックを選択して,送
出する。
According to the selection instruction signal from the selection instruction circuit 12, the clock selection circuit 11 selects a pair of the basic clock and the n-times clock supplied from one clock distribution source from the two basic clocks and the n-times clock. , Send.

選択指示回路12は,クロック分配元21および22か
らの4つのクロックを受けて,これに異常が無いかを監
視する。現在処理装置1が使用している一方のクロック
分配元からのクロックに異常があった場合,選択指示回
路12は,他方のクロック分配元からのクロックを選択
して使用するように選択指示信号を送出する。
The selection instruction circuit 12 receives the four clocks from the clock distribution sources 21 and 22 and monitors whether there is any abnormality in these clocks. When there is an abnormality in the clock from one clock distribution source currently used by the processing device 1, the selection instruction circuit 12 issues a selection instruction signal to select and use the clock from the other clock distribution source. Send out.

立上り検出回路14は,選択指示信号の立上り(変化)
を検出する。
The rise detection circuit 14 rises (changes) the selection instruction signal.
To detect.

タイミング確定回路13は,クロック選択回路11にお
いて選択された一対の基本クロックおよびn倍クロック
と,立上り検出回路14の検出出力とを受けて,前記選
択された一対のクロックを送出すべきタイミングを確定
する。
The timing determination circuit 13 receives the pair of basic clocks and the n-fold clock selected by the clock selection circuit 11 and the detection output of the rising edge detection circuit 14 and determines the timing at which the selected pair of clocks should be transmitted. To do.

クロック出力回路15は,タイミング確定回路13が指
示するタイミングで,選択された一対の基本クロックお
よびn倍クロックを,処理装置1の内部へ内部クロック
として出力する。そして,処理装置1内において,基本
クロックおよびn倍クロックを用いて,さらに複数のク
ロックが発生され動作クロックとして用いられる。
The clock output circuit 15 outputs the pair of selected basic clocks and n-fold clocks to the inside of the processing device 1 as internal clocks at the timing indicated by the timing determination circuit 13. Then, in the processing device 1, a plurality of clocks are further generated using the basic clock and the n-fold clock and used as operation clocks.

〔作用〕[Action]

複数のクロック分配元からのクロックについてその異常
の有無を選択指示回路12で検出することにより,異常
のないクロック(即ちクロック分配元)がクロック選択
回路11において選択される。
A clock having no abnormality (that is, a clock distribution source) is selected by the clock selection circuit 11 by detecting the presence or absence of abnormality in the clocks from the plurality of clock distribution sources by the selection instruction circuit 12.

また,先に処理装置1が使用していた一対の基本クロッ
クとn倍クロックとがどのような論理位相関係にあった
時に選択指示信号が発生されたか(当該クロックが選択
状態から非選択状態とされたか)が,立上り検出回路1
4およびタイミング確定回路13によって,検出され,
保持される。これに基づいて,新たに選択された一対の
基本クロックとn倍クロックとが同一の論理位相関係と
なったタイミングで,クロック出力回路から,新たに選
択された前記一対のクロックが出力される。
In addition, when the selection instruction signal was generated when the pair of basic clocks used by the processing device 1 and the n-fold clock had a logical phase relationship (the relevant clock is changed from the selected state to the non-selected state). Is the rising edge detection circuit 1
4 and the timing determination circuit 13,
Retained. Based on this, the newly selected pair of clocks is output from the clock output circuit at the timing when the newly selected pair of basic clocks and the n-fold clock have the same logical phase relationship.

従って,クロックの切替えに当って,非選択とされた一
対のクロックと新たに選択された一対のクロックとの間
において,論理的な位相関係の整合が保たれる。
Therefore, when switching the clocks, the matching of the logical phase relationship is maintained between the pair of unselected clocks and the pair of newly selected clocks.

なお,非選択とされた一対のクロックの出力が中止され
てから,新たに選択された一対のクロックの出力が開始
されるまでの間,クロック出力回路11からのクロック
の出力は中断される。
Note that the output of the clock from the clock output circuit 11 is interrupted until the output of the newly selected pair of clocks is started after the output of the pair of unselected clocks is stopped.

〔実施例〕〔Example〕

第2図は本発明の一実施例構成図である。 FIG. 2 is a block diagram of an embodiment of the present invention.

第2図において,111および112は第1および第2
クロック選択回路でありクロック選択回路11に対応す
るもの,121および122は第1および第2選択指示
回路であり選択指示回路12に対応するもの,131お
よび132は第1および第2タイミング確定回路であり
タイミング確定回路13に対応するもの,141および
142は第1および第2立上り検出回路であり立上り検
出回路14に対応するもの,31ないし33はオア(O
R)ゲート回路,211は発振器,212はn倍分周回
路である。
In FIG. 2, 111 and 112 are the first and second
Clock selection circuits corresponding to the clock selection circuit 11, reference numerals 121 and 122 are first and second selection instruction circuits corresponding to the selection instruction circuit 12, and 131 and 132 are first and second timing determination circuits. Yes Corresponding to the timing determination circuit 13, 141 and 142 are first and second rising edge detecting circuits corresponding to the rising edge detecting circuit 14, 31 to 33 are OR (O
R) gate circuit, 211 is an oscillator, and 212 is an n-fold frequency dividing circuit.

また,第3図ないし第6図は,第2図図示の実施例の主
要な回路ブロックの具体的構成図である。
Further, FIGS. 3 to 6 are concrete configuration diagrams of main circuit blocks of the embodiment shown in FIG.

第3図は,第1および第2クロック選択回路111およ
び112,第1および第2選択指示回路121および1
22の一部について示している。第3図において,34
1ないし356はDフリップフロップ回路,361ない
し366はアンドゲート回路,371および372はオ
アゲート回路である。
FIG. 3 shows the first and second clock selection circuits 111 and 112 and the first and second selection instruction circuits 121 and 1.
A part of 22 is shown. In FIG. 3, 34
1 to 356 are D flip-flop circuits, 361 to 366 are AND gate circuits, and 371 and 372 are OR gate circuits.

第4図は,主として,第1タイミング確定回路131に
ついて示している。第4図において,381はJKフリ
ップフロップ回路,382ないし387はDフリップフ
ロップ回路,40は排他的論理回路,411はアンドゲ
ート回路,311および321はオアゲート回路であり
各々オアゲート回路31および32に対応するもの,で
ある。
FIG. 4 mainly shows the first timing determination circuit 131. In FIG. 4, 381 is a JK flip-flop circuit, 382 to 387 are D flip-flop circuits, 40 is an exclusive logic circuit, 411 is an AND gate circuit, 311 and 321 are OR gate circuits, which correspond to the OR gate circuits 31 and 32, respectively. What you do.

第5図は,第1および第2立上り検出回路141および
142,第2タイミング確定回路132について示して
いる。第5図において,388ないし393はDフリッ
プフロップ回路,412ないし414はアンドゲート回
路,42はインバータ回路,322はオアゲート回路で
ありオアゲート回路32に対応するもの,である。
FIG. 5 shows the first and second rising edge detection circuits 141 and 142 and the second timing determination circuit 132. In FIG. 5, 388 to 393 are D flip-flop circuits, 412 to 414 are AND gate circuits, 42 is an inverter circuit, and 322 is an OR gate circuit corresponding to the OR gate circuit 32.

第6図は,クロック出力回路15について示している。
第6図において,394ないし397はDフリップフロ
ップ回路,415ないし418はアンドゲート回路,4
3はオアゲート回路,312および323はオアゲート
回路であり各々オアゲート回路31および32に対応す
るもの,である。
FIG. 6 shows the clock output circuit 15.
In FIG. 6, 394 to 397 are D flip-flop circuits, 415 to 418 are AND gate circuits, 4
Reference numeral 3 is an OR gate circuit, and 312 and 323 are OR gate circuits respectively corresponding to the OR gate circuits 31 and 32.

以下,適宜,第3図ないし第6図を参照しながら,第2
図図示実施例について説明する。
Hereinafter, referring to FIGS. 3 to 6 as needed, the second
The illustrated embodiment will be described.

クロック分配元21において,発振器211は基本クロ
ックである所定周期のクロック(a-clock)を発生し,こ
の基本クロックa−clockをn倍分周回路212により
n倍に分周してn倍クロック(a−clock(n))が発生さ
れる。クロック分配元22は,クロック分配元21と同
一とされ,基本クロックb−clockとそのn倍クロック
b−clock(n)を発生する。基本クロックa−clockとb
−clock,n倍クロックa−clockとb−clockは,各
々,同一周期とされるが,同期されていないためその位
相は異なっている。これら4つのクロックは,各々のク
ロック分配元によって,複数の処理装置1(第2図には
1つのみを示している)に分配される。
In the clock distribution source 21, the oscillator 211 generates a clock (a-clock) having a predetermined cycle, which is a basic clock, and divides the basic clock a-clock into n times by an n-fold frequency dividing circuit 212 to obtain an n-times clock. (A-clock (n)) is generated. The clock distribution source 22 is the same as the clock distribution source 21, and generates the basic clock b-clock and its n-fold clock b-clock (n). Basic clocks a-clock and b
-Clock and n-fold clocks a-clock and b-clock have the same period, but their phases are different because they are not synchronized. These four clocks are distributed to the plurality of processing devices 1 (only one is shown in FIG. 2) by each clock distribution source.

一対のクロックa−clockおよびa−clock(n)に対応し
て,第1クロック選択回路111,第1選択指示回路1
21および第1立上り検出回路141が設けられる。他
の一対のクロックb−clockおよびb−clock(n)につい
ても同様である。
A first clock selection circuit 111 and a first selection instruction circuit 1 corresponding to a pair of clocks a-clock and a-clock (n).
21 and a first rising edge detection circuit 141 are provided. The same applies to the other pair of clocks b-clock and b-clock (n).

第1選択指示回路121は、クロックa−clockおよび
a−clock(n)を選択する時,その内部で選択指示信号Se
lect aをハイレベル(論理1)とし,さらに,第3図
に示すように,これに基づいて選択指示信号Select a
−1およびSelect a−2をハイレベルとする。一方,
第1選択指示回路121は,クロックa−clockおよび
a−clock(n)を選択しない時,選択指示信号Select−
a,Select a−1およびSelect a−2をロウレベル
(論理0)とする。
The first selection instruction circuit 121 internally selects the selection instruction signal Se when selecting the clocks a-clock and a-clock (n).
lect a is set to a high level (logic 1), and as shown in FIG. 3, the selection instruction signal Select a
-1 and Select a-2 are set to high level. on the other hand,
The first selection instruction circuit 121 selects the selection instruction signal Select- when the clocks a-clock and a-clock (n) are not selected.
a, Select a-1 and Select a-2 are set to low level (logic 0).

第1クロック選択回路111は,選択指示信号Select
a−1がハイレベルの時,第3図から理解されるよう
に,クロックa−clockおよびa−clock(n)をクロック
a−clock−1およびa−clock(n)−1として出力す
る。一方,選択指示信号Select a−1がロウレベルの
時,クロック選択回路111の2つの出力は共にロウレ
ベルとされる(供給が停止される)。
The first clock selection circuit 111 has a selection instruction signal Select
When a-1 is at a high level, the clocks a-clock and a-clock (n) are output as the clocks a-clock-1 and a-clock (n) -1, as can be seen from FIG. On the other hand, when the selection instruction signal Select a-1 is at low level, the two outputs of the clock selection circuit 111 are both at low level (supply is stopped).

第2選択指示回路122および第2クロック選択回路1
12についても,同様とされる。
Second selection instruction circuit 122 and second clock selection circuit 1
The same applies to 12.

なお,第3図において,装置1から他の装置(図示せ
ず)に対して選択指示信号(オアゲート回路371およ
び372の出力)を供給し,他の装置の同様な選択指示
信号をアンドゲート回路361および362に受けるよ
うにしている。これにより,全装置において,クロック
a−clockまたはb−clockの選択(切替え)を同一時刻
に行うことができる。
In FIG. 3, the device 1 supplies a selection instruction signal (outputs of the OR gate circuits 371 and 372) to another device (not shown), and the same selection instruction signal of another device is supplied to the AND gate circuit. 361 and 362 receive it. As a result, the selection (switching) of the clock a-clock or b-clock can be performed at the same time in all the devices.

オアゲート回路31の出力は,クロックa−clockの選
択時にはa−clock(n)−1,クロックb−clockの選択
時にはb−clock(n)−1,クロックa−clockおよびb
−clockの非選択時にはロウレベルとされる(クロック
の供給が停止される)。
The output of the OR gate circuit 31 is a-clock (n) -1 when the clock a-clock is selected, b-clock (n) -1, clocks a-clock and b when the clock b-clock is selected.
When −clock is not selected, it is set to low level (clock supply is stopped).

オアゲート回路32の出力についても,同様である。The same applies to the output of the OR gate circuit 32.

第1タイミング確定回路131は,使用中のクロックの
供給が停止された時,その停止されたタイミング,具体
的にはn倍クロックの周期において何個目の基本クロッ
クが供給された状態であったかを記憶する。
When the supply of the clock in use is stopped, the first timing determination circuit 131 determines the stopped timing, specifically, how many basic clocks were supplied in the cycle of n times the clock. Remember.

このために,第4図に示すように,JKフリップフロッ
プ回路381Dフリップフロップ回路382および排他
的論理和回路40によって,使用中のn倍クロックの立
上りに同期して,使用中の基本クロックの1周期の間だ
けハイレベルのパルス信号が発生される。このパルス信
号は,使用中の基本クロックに同期して,Dフリップフ
ロップ回路383ないし387に順次転送される。そし
て,使用中の基本クロックの供給停止に従ってロウレベ
ルとされた信号OUT ENABLE(後述する)によ
って,パルス信号の転送が中止される。従って,Dフリ
ップフロップ回路384ないし387のいずれにパルス
信号が保持されているかを知ることによって,どのタイ
ミングで基本クロック(およびn倍クロック)の供給が
停止されたかを知ることができる。
Therefore, as shown in FIG. 4, the JK flip-flop circuit 381D flip-flop circuit 382 and the exclusive OR circuit 40 synchronize with the rising edge of the n-fold clock in use, and A high level pulse signal is generated only during the cycle. This pulse signal is sequentially transferred to the D flip-flop circuits 383 to 387 in synchronization with the basic clock being used. Then, the transfer of the pulse signal is stopped by the signal OUT ENABLE (described later) which is set to the low level in accordance with the stop of the supply of the basic clock in use. Therefore, by knowing which of the D flip-flop circuits 384 to 387 holds the pulse signal, it is possible to know at what timing the supply of the basic clock (and the n-fold clock) is stopped.

なお,Dフリップフロップ回路383ないし387の個
数は,n倍クロックの時(n+1)個とされる。即ち,
図示の例は4倍クロックが供給される場合の例である。
(n+1)個とすることにより,使用中のクロックの供
給が停止された時のn倍クロック(次に選択されるべ
き)の周期の次の(直後の)周期において,新たなクロ
ックのタイミングを規定でき,供給を開始できる。
The number of D flip-flop circuits 383 to 387 is (n + 1) when the clock is n times as many. That is,
The illustrated example is an example in which a quadruple clock is supplied.
By setting the number of (n + 1) clocks, the timing of a new clock can be set in the next (immediate) cycle after the cycle of the n-fold clock (which should be selected next) when the supply of the clock in use is stopped. It can regulate and supply can be started.

第1立ち上り検出回路141には,第1選択指示回路1
21から,選択指示信号Select a−1およびこれに所
定時間遅れて発生された選択指示信号Select a−2が
供給される。第2立上り検出回路142についても同様
である。
The first rising edge detection circuit 141 includes the first selection instruction circuit 1
From 21, the selection instruction signal Select a-1 and the selection instruction signal Select a-2 generated after a predetermined time delay are supplied. The same applies to the second rising edge detection circuit 142.

クロックa−clockを非選択とし,クロックb−clockを
選択する場合,次のようにされる。即ち,選択指示信号
Select a−1のロウレベルにより,第1クロック選択
回路111の出力がロウレベルとされ,第1立上り検出
回路141の出力もロウレベルとされる。一方,選択指
示信号Select b−1のハイレベルにより,第2クロッ
ク選択回路112からクロックb−clock−1およびb
−clock(n)−1が出力される。さらに,選択指示信号Se
lect b−2が,新たに選択されるべきn倍クロックb
−clock(n)の立上りに同期してハイレベルとされる。従
って,オアゲート回路33の出力は,n倍クロックb−
clock(n)の立上りに同期してロウレベルからハイレベル
とされる。即ち,オアゲート回路33は,クロックの切
替えの直後のみハイレベルとされるパルス信号を発生す
る。
When the clock a-clock is deselected and the clock b-clock is selected, the procedure is as follows. That is, the selection instruction signal
By the low level of Select a-1, the output of the first clock selection circuit 111 is set to the low level, and the output of the first rising edge detection circuit 141 is also set to the low level. On the other hand, the high level of the selection instruction signal Select b-1 causes the second clock selection circuit 112 to output the clocks b-clock-1 and b-clock.
-Clock (n) -1 is output. In addition, the selection instruction signal Se
lect b-2 is an n-fold clock b to be newly selected
−High level synchronized with rising edge of clock (n). Therefore, the output of the OR gate circuit 33 is the n-fold clock b-
The level is changed from low level to high level in synchronization with the rising edge of clock (n). That is, the OR gate circuit 33 generates a pulse signal which is set to the high level only immediately after the clock switching.

第2タイミング確定回路132は,新たにクロック選択
回路において選択され出力され始めたクロックが,どの
ような時点にあるか,具体的にはn倍クロックの周期に
おいて何個目のクロックが供給された状態であるかを示
す。
The second timing decision circuit 132 is supplied with what time the clock newly selected by the clock selection circuit and started to be output, specifically, what number of clocks in the cycle of n times the clock. Indicates whether it is in a state.

このために,オアゲート回路33の出力として得られ
る,n倍クロックに同期したハイレベルのパルス信号が
利用される。第5図に示すように,このパルス信号は,
アンドゲート回路414,Dフリップフロップ回路38
8およびインバータ回路42によって,新たに選択され
たn倍クロックの立上りに同期して,新たに選択された
基本クロックの1周期の間だけハイレベルとされるパル
ス信号に変換される。この変換されたパルス信号は,新
たに選択された基本クロックに同期して,Dフリップフ
ロップ回路389ないし393に順次転送される。従っ
て,Dフリップフロップ回路390ないし393のいず
れにパルス信号が保持されているかを知ることによっ
て,新たに選択されたクロックがどの状態(タイミン
グ)にあるかを知ることができる。
For this purpose, a high-level pulse signal obtained as the output of the OR gate circuit 33 and synchronized with the n-fold clock is used. As shown in FIG. 5, this pulse signal is
AND gate circuit 414, D flip-flop circuit 38
8 and the inverter circuit 42, in synchronism with the rising edge of the newly selected n-fold clock, the pulse signal is converted to a high level for one cycle of the newly selected basic clock. The converted pulse signal is sequentially transferred to the D flip-flop circuits 389 to 393 in synchronization with the newly selected basic clock. Therefore, by knowing which of the D flip-flop circuits 390 to 393 holds the pulse signal, it is possible to know in which state (timing) the newly selected clock is.

なお,Dフリップフロップ回路389ないし393の個
数は,第4図におけるそれと同一とされる。
The number of D flip-flop circuits 389 to 393 is the same as that in FIG.

クロック出力回路15は,第1および第2タイミング回
路131および132の出力に基づいて,先に供給を停
止した内部クロックと論理的位相関係が同一の新たな内
部クロックを出力する。
The clock output circuit 15 outputs a new internal clock whose logical phase relationship is the same as that of the internal clock whose supply has been stopped, based on the outputs of the first and second timing circuits 131 and 132.

このために,第6図に示すように,第1タイミング確定
回路131の出力X0,X1,X2およびX3と,第2
タイミング確定回路132の出力Y0,Y1,Y2およ
びY3とのアンド信号が利用される。Dフリップフロッ
プ回路384ないし387のいずれかに保持されたパル
ス信号と,Dフリップフロップ回路390ないし393
を進行(転送)中のパルス信号とは,いずれも,n倍ク
ロックの立上りに同期し,かつ,基本クロックで順次転
送されるものである。従って,対応する出力が共にハイ
レベルである時,新たなクロックの論理的位相が,供給
停止されたクロックの停止されたタイミングでの論理的
位相に等しくなったことを示す。これにより,信号OU
T ENABLEがハイレベルとされ,内部クロックが
出力される。
Therefore, as shown in FIG. 6, the outputs X0, X1, X2 and X3 of the first timing decision circuit 131 and the second timing decision circuit 131
An AND signal with the outputs Y0, Y1, Y2 and Y3 of the timing decision circuit 132 is used. The pulse signal held in any of the D flip-flop circuits 384 to 387 and the D flip-flop circuits 390 to 393.
The pulse signals in progress (transfer) are those that are synchronized with the rising edge of the n-fold clock and are sequentially transferred with the basic clock. Therefore, when both the corresponding outputs are at the high level, it indicates that the logical phase of the new clock is equal to the logical phase of the clock whose supply is stopped at the stopped timing. As a result, the signal OU
T ENABLE is set to high level and the internal clock is output.

なお,Dフリップフロップ回路394ないし397およ
びアンドゲート回路415および416は,引続いて信
号OUT ENABLEをハイレベルに保つためのもの
である。
The D flip-flop circuits 394 to 397 and the AND gate circuits 415 and 416 are for keeping the signal OUT ENABLE at a high level.

第7図は動作波形図であり,クロックa−clockおよび
a−clock(n)から,クロックb−clockおよびb−clock
(n)へ内部クロックを切替える場合を示している。
FIG. 7 is an operation waveform diagram. From clocks a-clock and a-clock (n), clocks b-clock and b-clock are obtained.
It shows the case where the internal clock is switched to (n).

n倍クロックa−clock(n)およびb−clock(n)(n=
4)は逆相であるものとする。
n-times clocks a-clock (n) and b-clock (n) (n =
It is assumed that 4) is in reverse phase.

n倍クロックa−clock(n)の立上りに同期して基本クロ
ックa−clockの1周期の間だけハイレベルとされるパ
ルス信号が,排他的論理和回路40から出力される。
今,図示のタイミングでクロックa−clockおよびa−c
lock(n)の供給が停止されたとする。この時,前記パル
ス信号は,順次転送され,Dフリップフロップ回路38
4に保持されている。即ち,信号X3がハイレベルであ
り,他の信号X0,X1およびX2はロウレベルであ
る。
The exclusive OR circuit 40 outputs a pulse signal that is brought to a high level for one cycle of the basic clock a-clock in synchronization with the rising of the n-fold clock a-clock (n).
Now, at the timings shown, the clocks a-clock and a-c
Suppose the supply of lock (n) is stopped. At this time, the pulse signals are sequentially transferred to the D flip-flop circuit 38.
It is held at 4. That is, the signal X3 is at the high level and the other signals X0, X1 and X2 are at the low level.

次に選択されるべきクロック系統のn倍クロックb−cl
ock(n)の最先の立上り(クロックの供給停止後)に同期
して,オアゲート回路33の出力がハイレベルとなる。
Clock system n times the clock system to be selected next b-cl
The output of the OR gate circuit 33 becomes high level in synchronization with the earliest rise of ock (n) (after the supply of the clock is stopped).

これにより,n倍クロックb−clock(n)の立上りに同期
して基本クロックb−clockの1周期の間だけハイレベ
ルとされるパルス信号が,アンドゲート回路414から
出力される。このパルス信号は,基本クロックb−cloc
kに同期して,Dフリップフロップ回路389から順次
転送される。
As a result, the AND gate circuit 414 outputs a pulse signal which is at a high level for one cycle of the basic clock b-clock in synchronization with the rising of the n-fold clock b-clock (n). This pulse signal is the basic clock b-cloc
The data is sequentially transferred from the D flip-flop circuit 389 in synchronization with k.

このパルス信号がDフリップフロップ回路390に転送
され,出力Y3がハイレベルとなった時,信号OUT
ENABLEがハイレベルとされ,このタイミングで内
部クロックの出力が再開される。
When this pulse signal is transferred to the D flip-flop circuit 390 and the output Y3 becomes high level, the signal OUT
ENABLE is set to high level, and the output of the internal clock is restarted at this timing.

以上,本発明を実施例により説明したが,本発明はその
趣旨に従い種々の変形が可能である。
Although the present invention has been described above with reference to the embodiments, the present invention can be variously modified according to the spirit thereof.

例えば,クロック分配元およびこれからのクロックを受
ける装置は,各々,任意の数設置できる。
For example, each of the clock distribution source and the device for receiving the clock from this point can be installed in any number.

また,クロック分配元またはクロックを受ける装置内に
おいて,周期の異なる複数のn倍クロックが発生され,
または用いられる場合,これらのn倍クロックの最大公
約数であるクロック(例えば2,4,8倍クロックがあ
る時は8倍クロック)が,本発明におけるn倍クロック
として,クロック分配元から各装置に供給される。
Further, in the clock distribution source or the device that receives the clock, a plurality of n-fold clocks having different cycles are generated,
Alternatively, when used, a clock that is the greatest common divisor of these n-times clocks (for example, an 8-times clock when there are 2, 4, 8-times clocks) is used as the n-times clock in the present invention from the clock distribution source to each device. Is supplied to.

〔発明の効果〕〔The invention's effect〕

以上説明したように,本発明によれば,クロック同期型
システムにおけるクロック切替えにおいて,供給が停止
された基本クロックとn倍クロックとの間の論理的位相
関係と同一の論理的位相関係で,新たな基本クロックと
n倍クロックを供給できるので,論理回路の誤動作を防
止でき,システムの信頼性を向上できる。
As described above, according to the present invention, in the clock switching in the clock synchronous system, the new logical phase relationship is the same as the logical phase relationship between the supply-stopped basic clock and the n-fold clock. Since the basic clock and the n-fold clock can be supplied, malfunction of the logic circuit can be prevented and system reliability can be improved.

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

第1図は本発明の原理構成図, 第2図は一実施例構成図, 第3図は具体的構成図, 第4図は具体的構成図, 第5図は具体的構成図, 第6図は具体的構成図, 第7図は動作波形図。 図中, 1…処理装置, 21,22…クロック分配元, 11,111,112…クロック選択回路, 12,121,122…選択指示回路, 13,131,132…タイミング確定回路, 14,141,142…立上り検出回路, 15…クロック出力回路。 1 is a block diagram of the principle of the present invention, FIG. 2 is a block diagram of an embodiment, FIG. 3 is a specific block diagram, FIG. 4 is a specific block diagram, FIG. 5 is a specific block diagram, and FIG. Figure is a concrete configuration diagram, Figure 7 is an operation waveform diagram. In the drawing, 1 ... Processing device, 21, 22 ... Clock distribution source, 11, 111, 112 ... Clock selection circuit, 12, 121, 122 ... Selection instruction circuit, 13, 131, 132 ... Timing determination circuit, 14, 141, 142 ... Rise detection circuit, 15 ... Clock output circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】各々が,基本クロックと,該基本クロック
に対応し,その整数倍の周期を有する整数倍クロックと
を発生する,複数のクロック発生手段(21,22)と, 論理回路を含み,前記基本クロック,前記整数倍クロッ
ク,またはこれらに基づいて発生されるクロックに同期
して動作する装置(1)とを備えたクロック同期型システ
ムにおいて, 前記基本クロックと前記整数倍クロックとの複数の組に
ついて、異常の発生を検出し,正常な基本クロックとこ
れに対応する整数倍クロックとの組を選択させる選択指
示信号を発生する手段(12)と, 前記選択指示信号に従って,正常な基本クロックとこれ
に対応する整数倍クロックとの組を選択する手段(11)
と, 前記選択指示信号の変化を前記整数倍クロックの位相に
関連して検出する手段(14)と, 前記選択された基本クロックと整数倍クロックとの組を
出力する手段(15)と, 前記選択された基本クロックおよび整数倍クロックと,
前記選択指示信号の変化とに基づいて,前記出力のタイ
ミングを確定する手段(13)とを,前記装置(1)に備え, 前記装置(1)において使用中の基本クロックまたは整数
倍クロックに異常が発生した時に,正常な基本クロック
とこれに対応する整数倍クロックとの組を選択し,か
つ,これらを論理的位相関係を保ったタイミングで内部
クロックとして出力する ことを特徴とするクロック切替え制御方式。
1. A plurality of clock generating means (21, 22) each for generating a basic clock and an integer multiple clock corresponding to the basic clock and having an integer multiple period thereof, and a logic circuit. A clock synchronous system comprising the basic clock, the integral multiple clock, or a device (1) that operates in synchronization with a clock generated based on the basic clock, the integral multiple clock, and a plurality of the basic clock and the integral multiple clock. Means (12) for detecting the occurrence of an abnormality and selecting a pair of a normal basic clock and an integer multiple clock corresponding thereto for the pair of, and a normal basic signal according to the selection instruction signal. Means (11) for selecting a pair of clock and corresponding integer multiple clock
Means for detecting a change in the selection instruction signal in relation to the phase of the integral multiple clock; means for outputting a set of the selected basic clock and integral multiple clock; Selected basic clock and integral multiple clock,
The device (1) is provided with means (13) for determining the timing of the output based on the change of the selection instruction signal, and the basic clock or the integer multiple clock used in the device (1) is abnormal. Clock switching control characterized by selecting a pair of a normal basic clock and a corresponding integer multiple clock when the above occurs, and outputting them as internal clocks at timings that maintain a logical phase relationship. method.
JP62298588A 1987-11-26 1987-11-26 Clock switching control method for clock synchronous system Expired - Lifetime JPH0630035B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62298588A JPH0630035B2 (en) 1987-11-26 1987-11-26 Clock switching control method for clock synchronous system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62298588A JPH0630035B2 (en) 1987-11-26 1987-11-26 Clock switching control method for clock synchronous system

Publications (2)

Publication Number Publication Date
JPH01140216A JPH01140216A (en) 1989-06-01
JPH0630035B2 true JPH0630035B2 (en) 1994-04-20

Family

ID=17861684

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62298588A Expired - Lifetime JPH0630035B2 (en) 1987-11-26 1987-11-26 Clock switching control method for clock synchronous system

Country Status (1)

Country Link
JP (1) JPH0630035B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5852728A (en) * 1995-01-12 1998-12-22 Hitachi, Ltd. Uninterruptible clock supply apparatus for fault tolerant computer system
DE102004062850B3 (en) * 2004-12-27 2006-06-14 Siemens Ag Terminal device especially protective circuit-breaker, has tilt-lever carried by bearing points along longitudinal axis

Also Published As

Publication number Publication date
JPH01140216A (en) 1989-06-01

Similar Documents

Publication Publication Date Title
US4703421A (en) Ready line synchronization circuit for use in a duplicated computer system
EP0318155B1 (en) Forcing synchronisation on two pulse trains
US8058916B2 (en) Lockstep synchronization and maintenance
US5758136A (en) Method for dynamically switching between a plurality of clock sources upon detection of phase alignment therefor and disabling all other clock sources
US5291528A (en) Circuit for glitch-free switching of asynchronous clock sources
US4835728A (en) Deterministic clock control apparatus for a data processing system
US4386401A (en) High speed processing restarting apparatus
US5371764A (en) Method and apparatus for providing an uninterrupted clock signal in a data processing system
US6472913B2 (en) Method and apparatus for data sampling
US20090201057A1 (en) Method and apparatus to generate system clock synchronization pulses using a pll lock detect signal
US6550013B1 (en) Memory clock generator and method therefor
KR100303781B1 (en) DL Clock Generator with Unlock Compensation Circuit for Solving Unlock Problems in Register-Controlled Digital DLs
US6636980B1 (en) System for launching data on a bus by using first clock for alternately selecting data from two data streams and using second clock for launching data thereafter
US4691121A (en) Digital free-running clock synchronizer
JPH0630035B2 (en) Clock switching control method for clock synchronous system
US6182237B1 (en) System and method for detecting phase errors in asics with multiple clock frequencies
US6081904A (en) Method for insuring data integrity during transfers
CN115242224A (en) Multi-clock glitch-free switching circuit and switching method
KR20220121632A (en) Integrated circuit and operating method thereof
US5812822A (en) Apparatus for coordinating clock oscillators in a fully redundant computer system
US20060181326A1 (en) System and method for local generation of a ratio clock
US6392404B1 (en) Triggered integrated circuit tester
US5745742A (en) Apparatus for coordinating clock distribution in a fully redundant computer system
CN110175091B (en) Method, device and circuit for synchronizing signals between nodes under Lockstep architecture
JPS5947334B2 (en) Clock control method