JPH08328687A - Clock changeover circuit - Google Patents

Clock changeover circuit

Info

Publication number
JPH08328687A
JPH08328687A JP7132129A JP13212995A JPH08328687A JP H08328687 A JPH08328687 A JP H08328687A JP 7132129 A JP7132129 A JP 7132129A JP 13212995 A JP13212995 A JP 13212995A JP H08328687 A JPH08328687 A JP H08328687A
Authority
JP
Japan
Prior art keywords
clock
signal
flip
flop
clock signal
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
JP7132129A
Other languages
Japanese (ja)
Inventor
Tomokazu Aoki
智一 青木
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.)
JFE Engineering Corp
Original Assignee
NKK Corp
Nippon Kokan 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 NKK Corp, Nippon Kokan Ltd filed Critical NKK Corp
Priority to JP7132129A priority Critical patent/JPH08328687A/en
Publication of JPH08328687A publication Critical patent/JPH08328687A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To prevent incorrect clock generated due to dispersion such as manufacture process. CONSTITUTION: The circuit is provided with a register section 11 to 15 latching periodically a selection signal, a selection section 19 to 21 selecting a clock signal A or B based on the selection signal from the register section 11 to 15, output sections 16 to 18, 22 providing the selected clock signal as an output clock signal externally and stopping tentatively the supply of the output clock signal attended with a change in the selection signal obtained from the register section 11 to 15, flip-flop circuits 11 to 15 connected in cascade to form a shift register and latching sequentially the selection signal synchronously with the selected clock signal as a register section and the selections 19 to 21 are connected to receive the selection signal latched by the flip-flop 13 and output sections 16 to 18 and 22 are connected to receive the selection signal latched by the pre-stage flip-flop 12.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、周波数が互いに異なる
2種類のクロック信号を切り替えるためのクロック切替
回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock switching circuit for switching between two types of clock signals having different frequencies.

【0002】[0002]

【従来の技術】コンピュータシステムでは、クロック周
波数の変更が必要な場合がある。図5はこの場合に用い
られる従来のクロック切替回路を示す。D型フリップフ
ロップ31−34はクロック選択信号Cを周期的にラッ
チするシフトレジスタを構成する。アンドゲート35お
よび36並びにノアゲート37はフリップフロップ32
から得られるクロック選択信号Cの変化に伴って一時的
にマスク信号wを発生するマスク信号発生部を構成す
る。アンドゲート38および39並びにノアゲート40
はフリップフロップ32から得られるクロック選択信号
Cに基づいて第1クロック信号Aおよび第2クロック信
号Bの一方を選択する選択部を構成する。ノアゲート4
1はノアゲート40から得られるクロック信号xを出力
クロック信号outとして外部に供給すると共にこの出
力クロック信号outをノアゲート37から得られるマ
スク信号wによって一時的に無効にする出力部を構成す
る。
2. Description of the Related Art In computer systems, it may be necessary to change the clock frequency. FIG. 5 shows a conventional clock switching circuit used in this case. The D-type flip-flops 31-34 form a shift register that periodically latches the clock selection signal C. AND gates 35 and 36 and NOR gate 37 are flip-flops 32.
And a mask signal generator that temporarily generates a mask signal w in accordance with a change in the clock selection signal C obtained from the above. AND gates 38 and 39 and NOR gate 40
Constitutes a selection unit for selecting one of the first clock signal A and the second clock signal B based on the clock selection signal C obtained from the flip-flop 32. NOR gate 4
Reference numeral 1 constitutes an output unit which supplies the clock signal x obtained from the NOR gate 40 to the outside as an output clock signal out and temporarily invalidates the output clock signal out by the mask signal w obtained from the NOR gate 37.

【0003】このクロック切替回路の動作は図6に示さ
れる。ここで、出力クロック信号outの周波数がクロ
ック信号Aの周波数に等しい状態にあるとする。この状
態でクロック選択信号Cが図6に示すように低レベルに
立ち下がると、この低レベルのクロック選択信号Cがク
ロック信号xの立ち上がりP1でフリップフロップ31
にラッチされ、クロック信号xの立ち上がりP2でフリ
ップフロップ32にラッチされ、クロック信号xの立ち
上がりP3でフリップフロップ33にラッチされ、クロ
ック信号xの立ち上がりP4でフリップフロップ34に
ラッチされる。選択部はクロック信号xの立ち上がりP
2でフリップフロップ32から得られるクロック選択信
号Cに基づいてクロック信号Bを選択する。これ以降、
クロック信号xはクロック信号Bに同期する。
The operation of this clock switching circuit is shown in FIG. Here, it is assumed that the frequency of the output clock signal out is equal to the frequency of the clock signal A. In this state, when the clock selection signal C falls to a low level as shown in FIG. 6, the low level clock selection signal C is flip-flop 31 at the rising edge P1 of the clock signal x.
Are latched by the flip-flop 32 at the rising edge P2 of the clock signal x, are latched by the flip-flop 33 at the rising edge P3 of the clock signal x, and are latched by the flip-flop 34 at the rising edge P4 of the clock signal x. The selection unit uses the rising edge P of the clock signal x.
At 2, the clock signal B is selected based on the clock selection signal C obtained from the flip-flop 32. After this,
The clock signal x is synchronized with the clock signal B.

【0004】フリップフロップ32の内容はクロック信
号xの立ち上がりP2からP4までの期間だけフリップ
フロップ34の内容と不一致となる。マスク信号発生部
はこの不一致が検出される期間だけ高レベルに維持され
るマスク信号wを発生する。すなわち、マスク信号wは
この期間中出力クロック信号outを無効する。出力ク
ロック信号outの周波数はマスク信号wの立ち下がり
後にクロック信号Bの周波数に等しい状態となる。
The contents of the flip-flop 32 do not match the contents of the flip-flop 34 only during the period from the rising edge P2 to P4 of the clock signal x. The mask signal generation unit generates the mask signal w which is maintained at the high level only during the period when the mismatch is detected. That is, the mask signal w invalidates the output clock signal out during this period. The frequency of the output clock signal out becomes equal to the frequency of the clock signal B after the falling of the mask signal w.

【0005】[0005]

【発明が解決しようとする課題】しかし、フリップフロ
ップ32がフリップフロップ34と異なるクロック選択
信号をクロック信号xの立ち上がりでラッチした場合、
マスク信号wは製造プロセスのばらつき等に依存した遅
延を伴って立ち上がる。この遅延時間t2が図7に示す
ようにクロック信号xのパルス持続時間t1よりも大き
い場合、不正クロックが出力クロック信号outにおい
て発生してしまう。
However, when the flip-flop 32 latches a clock selection signal different from that of the flip-flop 34 at the rising edge of the clock signal x,
The mask signal w rises with a delay depending on variations in the manufacturing process. If the delay time t2 is longer than the pulse duration t1 of the clock signal x as shown in FIG. 7, an incorrect clock will be generated in the output clock signal out.

【0006】本発明の目的は製造プロセスのばらつき等
のためにクロックの切替え直後に発生する不正クロック
を防止できるクロック切替回路を提供することにある。
An object of the present invention is to provide a clock switching circuit capable of preventing an illegal clock generated immediately after clock switching due to variations in manufacturing process.

【0007】[0007]

【課題を解決するための手段】本発明によれば、クロッ
ク選択信号を周期的にラッチするレジスタ部と、このレ
ジスタ部から得られるクロック選択信号に基づいて第1
および第2クロック信号の一方を選択する選択部と、こ
の選択部によって選択されたクロック信号を出力クロッ
ク信号として外部に供給すると共にレジスタ部から得ら
れるクロック選択信号の変化に伴って出力クロック信号
の外部供給を一時的に停止する出力部を備え、前記レジ
スタ部はシフトレジスタを構成するように縦列接続され
前記選択部によって選択されたクロック信号に同期して
クロック選択信号を順次ラッチする複数のフリップフロ
ップを有し、前記選択部はこれら複数のフリップフロッ
プのうちの所定フリップフロップによってラッチされた
クロック選択信号を受け取るように接続され、前記出力
部は前記所定フリップフロップよりも前段のフリップフ
ロップによってラッチされたクロック選択信号を受け取
るよう接続されるクロック切替回路が提供される。
According to the present invention, a register unit for periodically latching a clock selection signal and a first selection unit based on the clock selection signal obtained from the register unit are provided.
And a selection unit for selecting one of the second clock signal and the clock signal selected by the selection unit as an output clock signal to the outside, and the output clock signal of the output clock signal according to the change of the clock selection signal obtained from the register unit The register unit is provided with an output unit for temporarily stopping the external supply, and the register units are connected in series so as to form a shift register. The selection unit is connected to receive a clock selection signal latched by a predetermined flip-flop of the plurality of flip-flops, and the output unit is latched by a flip-flop preceding the predetermined flip-flop. Connected to receive the selected clock select signal Lock switching circuit is provided.

【0008】[0008]

【作用】このクロック切替回路では、複数のフリップフ
ロップがシフトレジスタを構成するように縦列接続さ
れ、選択部からのクロック信号に同期してクロック選択
信号を順次ラッチする。選択部はこれらフリップフロッ
プのうちの所定フリップフロップによってラッチされた
クロック選択信号を受け取るように接続され、出力部は
所定フリップフロップよりも前段のフリップフロップに
よってラッチされたクロック選択信号を受け取るように
接続される。これにより、所定フリップフロップと前段
のフリップフロップとの段差分だけ選択部よりも先行し
てクロック選択信号の変化に出力部を応答させることが
できるため、出力部が製造プロセスのばらつき等のため
にクロック選択信号の変化に迅速に応答できない場合で
も、出力部が出力クロック信号の外部供給を停止した後
に、選択部が第1および第2クロック信号の一方を他方
に切り替えることが可能である。すなわち、出力クロッ
ク信号の外部供給中にクロック切替えを行わないため、
この切替え直後に発生する不正クロックを確実に防止す
ることができる。従って、製造プロセスのばらつきによ
る歩留りの低下を確実に改善できる。
In this clock switching circuit, a plurality of flip-flops are connected in cascade so as to form a shift register, and the clock selection signals are sequentially latched in synchronization with the clock signal from the selection unit. The selection unit is connected so as to receive the clock selection signal latched by a predetermined one of these flip-flops, and the output unit is connected so as to receive the clock selection signal latched by a flip-flop preceding the predetermined flip-flop. To be done. As a result, the output unit can respond to the change in the clock selection signal before the selection unit by the step difference between the predetermined flip-flop and the previous-stage flip-flop. Even when the change of the clock selection signal cannot be quickly responded to, the selection unit can switch one of the first and second clock signals to the other after the output unit stops the external supply of the output clock signal. That is, since the clock is not switched during the external supply of the output clock signal,
It is possible to reliably prevent an illegal clock generated immediately after this switching. Therefore, it is possible to reliably improve the reduction in yield due to the variation in the manufacturing process.

【0009】[0009]

【実施例】以下、図1を参照して本発明の第1実施例に
係るクロック切替回路を説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A clock switching circuit according to a first embodiment of the present invention will be described below with reference to FIG.

【0010】このクロック切替回路は5個のD型フリッ
プフロップ11−15、アンドゲート16,17,1
9,および20、ノアゲート18,21,および22を
有する。フリップフロップ11−15はクロック選択信
号Cを順次ラッチするためシフトレジスタを構成するよ
うに縦列接続される。すなわち、フリップフロップ11
のD入力端子はクロック選択信号Cの入力端子に接続さ
れ、フリップフロップ12−15のD入力端子はフリッ
プフロップ11−14のQ出力端子に接続され、フリッ
プフロップ11−15の各クロック端子はクロック信号
xを受け取るように接続される。
This clock switching circuit comprises five D-type flip-flops 11-15 and AND gates 16, 17, 1.
9 and 20, and NOR gates 18, 21 and 22. The flip-flops 11-15 are cascaded to form a shift register for sequentially latching the clock selection signal C. That is, the flip-flop 11
Is connected to the input terminal of the clock selection signal C, the D input terminal of the flip-flop 12-15 is connected to the Q output terminal of the flip-flop 11-14, and each clock terminal of the flip-flop 11-15 is a clock. Connected to receive signal x.

【0011】アンドゲート16および17並びにノアゲ
ート18はこのシフトレジスタから得られるクロック選
択信号Cの変化に伴って一時的にマスク信号wを発生す
るマスク信号発生部を構成する。アンドゲート16の第
1および第2入力端子はフリップフロップ15のQ出力
端子およびフリップフロップ12のQ出力端子にそれぞ
れ接続される。アンドゲート17の第1および第2入力
端子はフリップフロップ15のQバー出力端子およびフ
リップフロップ12のQバー出力端子にそれぞれ接続さ
れる。ノアゲート22の第1および第2入力端子はアン
ドゲート16の出力端子およびアンドゲート17の出力
端子にそれぞれ接続される。アンドゲート16は高レベ
ルのクロック選択信号がフリップフロップ12および1
5の両方にラッチされたときだけ高レベルに設定される
出力信号を発生し、アンドゲート17は低レベルのクロ
ック選択信号がフリップフロップ12および15の両方
にラッチされたときだけ高レベルに設定される出力信号
を発生する。ノアゲート22はアンドゲート16の出力
信号およびアンドゲート17の出力信号の少なくとも一
方が高レベルに設定されたときを除いて高レベルに設定
される出力信号を発生する。すなわち、ノアゲートの出
力信号はフリップフロップ12にラッチされたクロック
選択信号がフリップフロップ15にラッチされたクロッ
ク選択信号に一致しない間だけマスク信号wとして高レ
ベルに維持される。
The AND gates 16 and 17 and the NOR gate 18 constitute a mask signal generator for temporarily generating the mask signal w in accordance with the change of the clock selection signal C obtained from the shift register. The first and second input terminals of the AND gate 16 are connected to the Q output terminal of the flip-flop 15 and the Q output terminal of the flip-flop 12, respectively. The first and second input terminals of the AND gate 17 are connected to the Q-bar output terminal of the flip-flop 15 and the Q-bar output terminal of the flip-flop 12, respectively. The first and second input terminals of the NOR gate 22 are connected to the output terminal of the AND gate 16 and the output terminal of the AND gate 17, respectively. The AND gate 16 outputs the high-level clock selection signal to the flip-flops 12 and 1
5 produces an output signal that is set high only when latched by both 5, and AND gate 17 is set high only when a low level clock select signal is latched by both flip-flops 12 and 15. Output signal. NOR gate 22 generates an output signal set to a high level except when at least one of the output signal of AND gate 16 and the output signal of AND gate 17 is set to a high level. That is, the output signal of the NOR gate is maintained at the high level as the mask signal w only while the clock selection signal latched by the flip-flop 12 does not match the clock selection signal latched by the flip-flop 15.

【0012】アンドゲート19および20並びにノアゲ
ート21はシフトレジスタから得られるクロック選択信
号に基づいて第1クロック信号Aおよび第2クロック信
号Bのうちの一方を選択する選択部を構成するように接
続される。アンドゲート19の第1および第2入力端子
はフリップフロップ13のQ出力端子および第1クロッ
ク信号Aの入力端子にそれぞれ接続される。アンドゲー
ト20の第1および第2入力端子はフリップフロップ1
3のQバー出力端子および第2クロック信号Bの入力端
子にそれぞれ接続される。ノアゲート21の第1および
第2入力端子はアンドゲート19の出力端子およびアン
ドゲート20の出力端子にそれぞれ接続される。アンド
ゲート19は高レベルのクロック選択信号がフリップフ
ロップ13にラッチされたときだけクロック信号Aをノ
アゲート21に供給する。アンドゲート20は低レベル
のクロック選択信号がフリップフロップ13にラッチさ
れたときだけクロック信号Bをノアゲート21に供給す
る。ノアゲート21はフリップフロップ13にラッチさ
れたクロック選択信号に基づいてアンドゲート19およ
び20の一方から供給されるクロック信号AまたはBを
反転した出力信号をクロック信号xとして発生する。こ
のクロック信号xはノアゲート21からフリップフロッ
プ11−15の各クロック端子に供給される。
The AND gates 19 and 20 and the NOR gate 21 are connected so as to form a selection unit for selecting one of the first clock signal A and the second clock signal B based on the clock selection signal obtained from the shift register. It The first and second input terminals of the AND gate 19 are connected to the Q output terminal of the flip-flop 13 and the input terminal of the first clock signal A, respectively. The first and second input terminals of the AND gate 20 are flip-flops 1
3 is connected to the Q-bar output terminal and the input terminal of the second clock signal B, respectively. The first and second input terminals of the NOR gate 21 are connected to the output terminal of the AND gate 19 and the output terminal of the AND gate 20, respectively. The AND gate 19 supplies the clock signal A to the NOR gate 21 only when the high level clock selection signal is latched by the flip-flop 13. The AND gate 20 supplies the clock signal B to the NOR gate 21 only when the low level clock selection signal is latched by the flip-flop 13. The NOR gate 21 generates an output signal, which is the inverted clock signal A or B supplied from one of the AND gates 19 and 20, as the clock signal x based on the clock selection signal latched by the flip-flop 13. The clock signal x is supplied from the NOR gate 21 to each clock terminal of the flip-flops 11-15.

【0013】ノアゲート22はマスク信号発生部と共に
出力部を構成する。この出力部はノアゲート21から供
給されるクロック信号AまたはBを出力クロック信号o
utとして外部に供給すると共にノアゲート18から供
給されるマスク信号wにより出力クロック信号をマスク
することにより出力クロック信号outの外部供給を一
時的に停止する。
The NOR gate 22 constitutes an output section together with the mask signal generating section. This output section outputs the clock signal A or B supplied from the NOR gate 21 as the output clock signal o.
The external supply of the output clock signal out is temporarily stopped by masking the output clock signal with the mask signal w supplied from the NOR gate 18 as well as being supplied to the outside as ut.

【0014】次に、図1に示すように構成されたクロッ
ク切替回路の動作を説明する。ここで、出力クロック信
号outの周波数がクロック信号Aの周波数に等しい状
態にあるとする。この状態でクロック選択信号Cが図2
に示すように低レベルに立ち下がると、この低レベルの
クロック選択信号Cがクロック信号xの立ち上がりP1
でフリップフロップ11にラッチされ、クロック信号x
の立ち上がりP2でフリップフロップ12にラッチさ
れ、クロック信号xの立ち上がりP3でフリップフロッ
プ13にラッチされ、クロック信号xの立ち上がりP4
でフリップフロップ14にラッチされ、クロック信号x
の立ち上がりP5でフリップフロップ15にラッチされ
る。選択部はクロック信号xの立ち上がりP3でフリッ
プフロップ13にラッチされたクロック選択信号Cに基
づいてクロック信号Bを選択する。これ以降、クロック
信号xはクロック信号Bに同期する。
Next, the operation of the clock switching circuit configured as shown in FIG. 1 will be described. Here, it is assumed that the frequency of the output clock signal out is equal to the frequency of the clock signal A. In this state, the clock selection signal C is shown in FIG.
When it falls to the low level as shown in, the low level clock selection signal C rises P1 of the clock signal x.
Is latched by the flip-flop 11 and the clock signal x
At the rising edge P2 of the clock signal x, at the rising edge P3 of the clock signal x at the rising edge P3 of the clock signal x, and at the rising edge P4 of the clock signal x.
Is latched by the flip-flop 14 by the clock signal x
It is latched by the flip-flop 15 at the rising edge P5. The selection unit selects the clock signal B based on the clock selection signal C latched in the flip-flop 13 at the rising edge P3 of the clock signal x. After that, the clock signal x is synchronized with the clock signal B.

【0015】フリップフロップ12の内容はクロック信
号xの立ち上がりP2からP5までの期間だけフリップ
フロップ15の内容と不一致となる。マスク信号発生部
はこの不一致が検出される期間だけ高レベルに維持され
るマスク信号wを発生する。すなわち、マスク信号wは
この期間中出力クロック信号outを無効する。出力ク
ロック信号outの周波数はマスク信号wの立ち下がり
後にクロック信号Bの周波数に等しい状態となる。
The contents of the flip-flop 12 do not match the contents of the flip-flop 15 only during the period from the rising edge P2 to P5 of the clock signal x. The mask signal generation unit generates the mask signal w which is maintained at the high level only during the period when the mismatch is detected. That is, the mask signal w invalidates the output clock signal out during this period. The frequency of the output clock signal out becomes equal to the frequency of the clock signal B after the falling of the mask signal w.

【0016】上述した実施例のクロック切替回路では、
フリップフロップ11−15がシフトレジスタを構成す
るように縦列接続され、ノアゲート21からのクロック
信号に同期してクロック選択信号を順次ラッチする。ア
ンドゲート19および20並びにノアゲート21で構成
される選択部がフリップフロップ11−15のうちの所
定フリップフロップ13によってラッチされたクロック
選択信号を受け取るように接続され、アンドゲート16
および17並びにノアゲート18で構成されるマスク信
号発生部が所定フリップフロップ13よりも前段のフリ
ップフロップ12によってラッチされたクロック選択信
号を受け取るように接続される。これにより、所定フリ
ップフロップ13と前段のフリップフロップ12との段
差分だけ選択部よりも先行してクロック選択信号の変化
にマスク信号発生部を応答させることができるため、マ
スク信号発生部が製造プロセスのばらつき等のためにク
ロック選択信号の変化に迅速に応答できない場合でも、
ノアゲート22が出力クロック信号の外部供給を停止し
た後に、選択部が第1および第2クロック信号の一方を
他方に切り替えることが可能である。すなわち、出力ク
ロック信号の外部供給中にクロック切替えを行わないた
め、この切替え直後に発生する不正クロックを確実に防
止することができる。従って、製造プロセスのばらつき
による歩留りの低下を確実に改善できる。
In the clock switching circuit of the above embodiment,
The flip-flops 11-15 are connected in series so as to form a shift register and sequentially latch the clock selection signal in synchronization with the clock signal from the NOR gate 21. A selection unit composed of AND gates 19 and 20 and a NOR gate 21 is connected to receive the clock selection signal latched by the predetermined flip-flop 13 of the flip-flops 11-15.
A mask signal generating unit composed of 17 and 17 and NOR gate 18 is connected to receive the clock selection signal latched by the flip-flop 12 in the stage preceding the predetermined flip-flop 13. As a result, the mask signal generation unit can respond to the change in the clock selection signal in advance of the selection unit by the step difference between the predetermined flip-flop 13 and the preceding-stage flip-flop 12, so that the mask signal generation unit can perform the manufacturing process. Even if you cannot respond quickly to changes in the clock selection signal due to variations in
After the NOR gate 22 stops the external supply of the output clock signal, the selection unit can switch one of the first and second clock signals to the other. That is, since the clocks are not switched during the external supply of the output clock signal, it is possible to reliably prevent the incorrect clock generated immediately after the switching. Therefore, it is possible to reliably improve the reduction in yield due to the variation in the manufacturing process.

【0017】以下、図3を参照して本発明の第2実施例
に係るクロック切替回路を説明する。
A clock switching circuit according to the second embodiment of the present invention will be described below with reference to FIG.

【0018】このクロック切替回路は製造プロセスのば
らつきが比較的少ない場合に用いられ、図1に示すフリ
ップフロップ11および15が省略されることを除いて
第1実施例と同様に構成される。図3では、重複する説
明を省略するため第1実施例と同様な部分が同一参照符
号で示される。
This clock switching circuit is used when there are relatively few variations in the manufacturing process, and is constructed in the same manner as in the first embodiment except that the flip-flops 11 and 15 shown in FIG. 1 are omitted. In FIG. 3, in order to omit redundant description, the same parts as those in the first embodiment are designated by the same reference numerals.

【0019】次に、図3に示すように構成されたクロッ
ク切替回路の動作を説明する。ここで、出力クロック信
号outの周波数がクロック信号Aの周波数に等しい状
態にあるとする。この状態でクロック選択信号Cが図4
に示すように低レベルに立ち下がると、この低レベルの
クロック選択信号Cがクロック信号xの立ち上がりP1
でフリップフロップ12にラッチされ、クロック信号x
の立ち上がりP2でフリップフロップ13にラッチさ
れ、クロック信号xの立ち上がりP3でフリップフロッ
プ14にラッチされる。選択部はクロック信号xの立ち
上がりP2でフリップフロップ13にラッチされたクロ
ック選択信号Cに基づいてクロック信号Bを選択する。
これ以降、クロック信号xはクロック信号Bに同期す
る。
Next, the operation of the clock switching circuit configured as shown in FIG. 3 will be described. Here, it is assumed that the frequency of the output clock signal out is equal to the frequency of the clock signal A. In this state, the clock selection signal C is shown in FIG.
When it falls to the low level as shown in, the low level clock selection signal C rises P1 of the clock signal x.
Is latched in the flip-flop 12 by the clock signal x
Is latched by the flip-flop 13 at the rising edge P2 of the clock signal x and latched by the flip-flop 14 at the rising edge P3 of the clock signal x. The selection unit selects the clock signal B based on the clock selection signal C latched by the flip-flop 13 at the rising edge P2 of the clock signal x.
After that, the clock signal x is synchronized with the clock signal B.

【0020】フリップフロップ12の内容はクロック信
号xの立ち上がりP1からP3までの期間だけフリップ
フロップ14の内容と不一致となる。マスク信号発生部
はこの不一致が検出される期間だけ高レベルに維持され
るマスク信号wを発生する。すなわち、マスク信号wは
この期間中出力クロック信号outを無効する。出力ク
ロック信号outの周波数はマスク信号wの立ち下がり
後にクロック信号Bの周波数に等しい状態となる。
The contents of the flip-flop 12 do not match the contents of the flip-flop 14 only during the period from the rising edge P1 to P3 of the clock signal x. The mask signal generation unit generates the mask signal w which is maintained at the high level only during the period when the mismatch is detected. That is, the mask signal w invalidates the output clock signal out during this period. The frequency of the output clock signal out becomes equal to the frequency of the clock signal B after the falling of the mask signal w.

【0021】第2実施例のクロック切替回路では、フリ
ップフロップ12−14がシフトレジスタを構成するよ
うに縦列接続され、ノアゲート21からのクロック信号
に同期してクロック選択信号を順次ラッチする。アンド
ゲート19および20並びにノアゲート21で構成され
る選択部がフリップフロップ12−14のうちの所定フ
リップフロップ13によってラッチされたクロック選択
信号を受け取るように接続され、アンドゲート16およ
び17並びにノアゲート18で構成されるマスク信号発
生部が所定フリップフロップ13よりも前段のフリップ
フロップ12によってラッチされたクロック選択信号を
受け取るように接続される。これにより、所定フリップ
フロップ13と前段のフリップフロップ12との段差分
だけ選択部よりも先行してクロック選択信号の変化にマ
スク信号発生部を応答させることができるため、マスク
信号発生部が製造プロセスのばらつき等のためにクロッ
ク選択信号の変化に迅速に応答できない場合でも、ノア
ゲート22が出力クロック信号の外部供給を停止した後
に、選択部が第1および第2クロック信号の一方を他方
に切り替えることが可能である。すなわち、出力クロッ
ク信号の外部供給中にクロック切替えを行わないため、
この切替え直後に発生する不正クロックを確実に防止す
ることができる。従って、製造プロセスのばらつきによ
る歩留りの低下を確実に改善できる。この実施例では、
さらにフリップフロップ総数を第1実施例よりも低減で
きる。
In the clock switching circuit of the second embodiment, the flip-flops 12-14 are connected in series so as to form a shift register, and the clock selection signals are sequentially latched in synchronization with the clock signal from the NOR gate 21. A selection unit composed of AND gates 19 and 20 and NOR gate 21 is connected to receive the clock selection signal latched by a predetermined flip-flop 13 of the flip-flops 12-14, and AND gates 16 and 17 and NOR gate 18 are connected. The configured mask signal generator is connected so as to receive the clock selection signal latched by the flip-flop 12 in the stage preceding the predetermined flip-flop 13. As a result, the mask signal generation unit can respond to the change in the clock selection signal in advance of the selection unit by the step difference between the predetermined flip-flop 13 and the preceding-stage flip-flop 12, so that the mask signal generation unit can perform the manufacturing process. Even if the clock selection signal cannot be quickly responded to due to variations in the clock signal, the selection unit switches one of the first and second clock signals to the other after the NOR gate 22 stops the external supply of the output clock signal. Is possible. That is, since the clock is not switched during the external supply of the output clock signal,
It is possible to reliably prevent an illegal clock generated immediately after this switching. Therefore, it is possible to reliably improve the reduction in yield due to the variation in the manufacturing process. In this example,
Further, the total number of flip-flops can be reduced as compared with the first embodiment.

【0022】尚、本発明は第1および第2実施例のクロ
ック切替回路に限定されず、その要旨を逸脱しない範囲
で様々に変形可能である。
The present invention is not limited to the clock switching circuits of the first and second embodiments, and can be variously modified without departing from the spirit thereof.

【0023】[0023]

【発明の効果】本発明によれば、製造プロセスのばらつ
き等のためにクロックの切替え直後に発生する不正クロ
ックを防止できる。
According to the present invention, it is possible to prevent an illegal clock generated immediately after clock switching due to variations in manufacturing process.

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

【図1】本発明の第1実施例に係るクロック切替回路の
構成を示す回路図である。
FIG. 1 is a circuit diagram showing a configuration of a clock switching circuit according to a first embodiment of the present invention.

【図2】図1に示すクロック切替回路の動作を示すタイ
ムチャートである。
FIG. 2 is a time chart showing the operation of the clock switching circuit shown in FIG.

【図3】本発明の第2実施例に係るクロック切替回路の
構成を示す回路図である。
FIG. 3 is a circuit diagram showing a configuration of a clock switching circuit according to a second embodiment of the present invention.

【図4】図3に示すクロック切替回路の動作を示すタイ
ムチャートである。
FIG. 4 is a time chart showing the operation of the clock switching circuit shown in FIG.

【図5】従来のクロック切替回路の構成を示す回路図で
ある。
FIG. 5 is a circuit diagram showing a configuration of a conventional clock switching circuit.

【図6】図5に示すクロック切替回路の動作を示すタイ
ムチャートである。
6 is a time chart showing the operation of the clock switching circuit shown in FIG.

【図7】図5に示すクロック切替回路において製造プロ
セスのばらつきのために発生する不正クロックを説明す
るためのタイムチャートである。
FIG. 7 is a time chart for explaining an illegal clock generated due to a variation in manufacturing process in the clock switching circuit shown in FIG.

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

11−15…D型フリップフロップ、16,17,1
9,20…アンドゲート、18,21,22…ノアゲー
ト。
11-15 ... D-type flip-flops 16, 17, 1
9, 20 ... And gate, 18, 21, 22 ... NOR gate.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 クロック選択信号を周期的にラッチする
レジスタ部と、このレジスタ部から得られるクロック選
択信号に基づいて第1および第2クロック信号の一方を
選択する選択部と、この選択部によって選択されたクロ
ック信号を出力クロック信号として外部に供給すると共
にレジスタ部から得られるクロック選択信号の変化に伴
って出力クロック信号の外部供給を一時的に停止する出
力手段を備え、前記レジスタ部はシフトレジスタを構成
するように縦列接続され前記選択部によって選択された
クロック信号に同期してクロック選択信号を順次ラッチ
する複数のフリップフロップを有し、前記選択部はこれ
ら複数のフリップフロップのうちの所定フリップフロッ
プによってラッチされたクロック選択信号を受け取るよ
うに接続され、前記出力手段は前記所定フリップフロッ
プよりも前段のフリップフロップによってラッチされた
クロック選択信号を受け取るよう接続されることを特徴
とするクロック切替回路。
1. A register section for periodically latching a clock selection signal, a selection section for selecting one of a first clock signal and a second clock signal based on a clock selection signal obtained from the register section, and a selection section by this selection section. The register unit is provided with an output unit that supplies the selected clock signal to the outside as an output clock signal and temporarily stops the external supply of the output clock signal in response to a change of the clock selection signal obtained from the register unit. It has a plurality of flip-flops connected in series so as to form a register and sequentially latching the clock selection signal in synchronization with the clock signal selected by the selection unit, and the selection unit has a predetermined one of the plurality of flip-flops. Connected to receive a clock select signal latched by a flip-flop, said A clock switching circuit, wherein the output means is connected so as to receive the clock selection signal latched by the flip-flop at a stage preceding the predetermined flip-flop.
【請求項2】 前記出力手段は所定フリップフロップよ
りも前段のフリップフロップによってラッチされたクロ
ック選択信号が所定フリップフロップよりも後段のフリ
ップフロップによってラッチされたクロック選択信号と
一致しない期間だけ出力クロック信号を無効にするマス
ク手段を有することを特徴とする請求項1に記載のクロ
ック切替回路。
2. The output means outputs an output clock signal only during a period when a clock selection signal latched by a flip-flop preceding the predetermined flip-flop does not match a clock selection signal latched by a flip-flop subsequent to the predetermined flip-flop. 2. The clock switching circuit according to claim 1, further comprising a masking unit for invalidating.
JP7132129A 1995-05-30 1995-05-30 Clock changeover circuit Pending JPH08328687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7132129A JPH08328687A (en) 1995-05-30 1995-05-30 Clock changeover circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7132129A JPH08328687A (en) 1995-05-30 1995-05-30 Clock changeover circuit

Publications (1)

Publication Number Publication Date
JPH08328687A true JPH08328687A (en) 1996-12-13

Family

ID=15074077

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7132129A Pending JPH08328687A (en) 1995-05-30 1995-05-30 Clock changeover circuit

Country Status (1)

Country Link
JP (1) JPH08328687A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005050327A (en) * 2003-07-14 2005-02-24 Matsushita Electric Ind Co Ltd Clock signal switching device, clock signal switching method, data bus switching device, and data bus switching method
US7816952B2 (en) 2003-07-14 2010-10-19 Panasonic Corporation Clock signal switching device, clock signal switching method, data bus switching device, and data bus switching method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005050327A (en) * 2003-07-14 2005-02-24 Matsushita Electric Ind Co Ltd Clock signal switching device, clock signal switching method, data bus switching device, and data bus switching method
US7816952B2 (en) 2003-07-14 2010-10-19 Panasonic Corporation Clock signal switching device, clock signal switching method, data bus switching device, and data bus switching method
US8026744B2 (en) 2003-07-14 2011-09-27 Panasonic Corporation Clock signal switching device, clock signal switching method, data bus switching device, and data bus switching method

Similar Documents

Publication Publication Date Title
US7265638B2 (en) Ring oscillator circuit
US5502409A (en) Clock switcher circuit
US6538516B2 (en) System and method for synchronizing multiple phase-lock loops or other synchronizable oscillators without using a master clock signal
US6507230B1 (en) Clock generator having a deskewer
US7680238B2 (en) Frequency divider circuit
US5337321A (en) Scan path circuit with clock signal feedback, for skew avoidance
US6801074B2 (en) Clock switching circuit
KR19980087545A (en) Combination delay circuit for digital frequency multiplier
JPH04213913A (en) Double multiplier of clock frequency
EP0291360A2 (en) Asynchronous flip-flop
US5185537A (en) Gate efficient digital glitch filter for multiple input applications
JPH08328687A (en) Clock changeover circuit
US6456146B1 (en) System and method for multiplexing clocking signals
US20040095166A1 (en) Clock switching circuit
US5206547A (en) High-speed programmable state counter
US6075398A (en) Tunable digital oscillator circuit and method for producing clock signals of different frequencies
US4741005A (en) Counter circuit having flip-flops for synchronizing carry signals between stages
US5521952A (en) Pulse counter circuit and pulse signal changeover circuit therefor
KR100198962B1 (en) D flip-flop circuit eliminating glitch
JP2792759B2 (en) Synchronous clock generation circuit
US7555083B2 (en) Synchronizing circuit for stably generating an output signal
US5642060A (en) Clock generator
KR950013799B1 (en) Cluck signal selecting apparatus of double cluck system
JP3236235B2 (en) Toggle flip-flop
JPS61285523A (en) Clock switching circuit