JPH02290322A - Clock signal switching circuit - Google Patents

Clock signal switching circuit

Info

Publication number
JPH02290322A
JPH02290322A JP1326887A JP32688789A JPH02290322A JP H02290322 A JPH02290322 A JP H02290322A JP 1326887 A JP1326887 A JP 1326887A JP 32688789 A JP32688789 A JP 32688789A JP H02290322 A JPH02290322 A JP H02290322A
Authority
JP
Japan
Prior art keywords
clock
signal
input
clock signal
output
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
JP1326887A
Other languages
Japanese (ja)
Inventor
Sanae Nemoto
根本 早苗
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP1326887A priority Critical patent/JPH02290322A/en
Publication of JPH02290322A publication Critical patent/JPH02290322A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To switch a clock signal while preventing glitch by providing plural clock signal input sections, an FF receiving a selection signal, a 3-input NAND receiving an FF output, the selection signal and a clock signal and a NAND receiving an output of the 3-input NAND. CONSTITUTION:Signals from clock signal input terminals 8, 9 and a clock of FFs 1, 2 are inputted to 3-input NANDs 3, 4. The clock signal 8 or 9 is selected by using a selection signal 7. For example, to select the signal 8 from the signal 9, the level is set to H from L in a timing. The selection signal 7 is synchronously with the clock signal selected at present as the system clock. The output from the NAND 4 of the signal 9 is inhibited by the selection signal 7 but since the signal 8 is asynchronous, while the FF1 latches one clock, glitch is prevented and the NAND 4 is opened from the succeeding clock to obtain a prescribed timing and even when the selection signal is asynchronous with the clock, the old and new clocks are selected without any glitch. The switching from the signal 8 to 9 is implemented similarly.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、クロック信号切替回路に関し、特に非同期な
複数のクロック信号を選択信号により切り換えるクロッ
ク信号切替回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a clock signal switching circuit, and more particularly to a clock signal switching circuit that switches a plurality of asynchronous clock signals using a selection signal.

〔従来の技術〕[Conventional technology]

従来、この種のクロック信号切り替え回路は、例えば第
4図のような構成になっていた。第4図Aは回路図で、
Bはタイミングチャートである。
Conventionally, this type of clock signal switching circuit has had a configuration as shown in FIG. 4, for example. Figure 4A is a circuit diagram,
B is a timing chart.

26及び28は、クロック信号部であり、AND21及
びAND22へ非同期で入力される。ここでいずれか一
方のクロック信号を選択するための選択信号27が、例
えば28から26のクロック信号に切り換えるためにハ
イ・レベルからロウ・レベルに変化することによりAN
D22の出力は禁止されAND21の出力、つまり26
のクロック信号が選択される。
26 and 28 are clock signal sections, which are asynchronously input to AND21 and AND22. Here, the selection signal 27 for selecting one of the clock signals changes from a high level to a low level in order to switch from clock signal 28 to clock signal 26, for example.
The output of D22 is inhibited and the output of AND21, that is, 26
clock signal is selected.

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

上述した従来のクロック信号切り替え回路は、第3図B
のタイミングチャートからも分かるように、選択信号に
同期して28,のクロック信号が禁止されるが、直ちに
26のクロック信号が選択されてしまうため、非同期の
ままのクロック信号がひけ(グリッジ)となって出力さ
れるという欠点がある。
The conventional clock signal switching circuit described above is shown in FIG. 3B.
As can be seen from the timing chart, the clock signal 28 is inhibited in synchronization with the selection signal, but the clock signal 26 is immediately selected, resulting in a glitch in the clock signal that remains asynchronous. It has the disadvantage that it is output as

この様なグリッジは、選択信号がクロックに対して非同
期で入力されるため、どの様なグリッジになるかが不定
であり、これを防ぐために各クロックに同期させて選択
信号を入力しなければならないとり・う制限を必要とす
る。又、次段にカウンタがある場合はこのクリッシをカ
ウントしたりしなかったりする為、誤動作を引き起こし
易い状態となる。
Since the selection signal is input asynchronously to the clock, the type of glitch that will occur is uncertain, and to prevent this, the selection signal must be input in synchronization with each clock. Requires restrictions on handling and handling. Furthermore, if there is a counter at the next stage, it may or may not count this crunch, which can easily cause malfunctions.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のクロック信号切り替え回路は、複数のクロック
信号入力部と、各々のクロック信号をクロック入力とし
、クロック信号を切り換える為の選択信号をデータ入力
とする複数のDF/Fと、そのDF/Fの出力と選択信
号とクロック信号を入力する3NANDと、その各4の
3NANDの出力を入力とするNANDにより構成され
ている。
The clock signal switching circuit of the present invention includes a plurality of clock signal input sections, a plurality of DF/Fs each having a clock signal as a clock input and a selection signal for switching the clock signal as a data input, and the DF/Fs. It is composed of a 3NAND which inputs the output of , a selection signal, and a clock signal, and a NAND which inputs the output of each of the four 3NANDs.

すなわち、本発明はデ〜タ・F/F (DF/F)を介
してクロック信号を入力することにより、新たに選択さ
れたクロック信号が直ちに許可されるのを防止し、この
ことにより発生するきり替え時のグリッチを消去してい
る。
That is, the present invention prevents the newly selected clock signal from being immediately enabled by inputting the clock signal through the data F/F (DF/F), thereby causing Eliminates glitch when switching.

〔実施例〕〔Example〕

以下、図面により本発明を詳述する。 Hereinafter, the present invention will be explained in detail with reference to the drawings.

第1図Aは本発明の第1の実施例の回路図、第1図Bは
第1図Aの回路図のタイミング・チャートである。8及
び9は、クロック信号入力部であり、DF/Fl及び2
のクロックと、3人力NAND3及び4に入力される。
FIG. 1A is a circuit diagram of a first embodiment of the present invention, and FIG. 1B is a timing chart of the circuit diagram of FIG. 1A. 8 and 9 are clock signal input sections, DF/Fl and 2
clock and is input to three NANDs 3 and 4.

7は、クロック信号8又は9を切り換えるための選択信
号であり、例えばクロック信号9からクロック信号8へ
切り換えるために、あるタイミングでロウからハイに設
定する。この選択信号7は、現在システムクロックとし
て選択されているクロック信号9に同期している。クロ
ック信号9は選択信号7により即NAND4の出力が禁
止されるが、クロック信号8は非同期であるため1クロ
ック分をDF/Flがラッチする期間つまりここでグリ
ッチを防止して次のクロックからNAND4を許可して
第l図Bの5のタイミングが得られる。又クロック信号
8からクロック信号9へ切り替えの場合も同様である。
Reference numeral 7 denotes a selection signal for switching between the clock signal 8 and 9, and is set from low to high at a certain timing, for example, in order to switch from the clock signal 9 to the clock signal 8. This selection signal 7 is synchronized with the clock signal 9 currently selected as the system clock. The clock signal 9 immediately prohibits the output of the NAND4 by the selection signal 7, but since the clock signal 8 is asynchronous, the period during which the DF/Fl latches one clock, that is, the glitch is prevented and the NAND4 is output from the next clock. By allowing this, the timing 5 in FIG. 1B is obtained. The same applies to the case of switching from clock signal 8 to clock signal 9.

第2図は本発明の第2の実施例の回路図である。FIG. 2 is a circuit diagram of a second embodiment of the invention.

第2の実施例は、第1から第nのクロック入力信号があ
る場合のデコーダを付加したクロック信号切り替え回路
である。第1の実施例では、2つのクロック入力信号を
切り換える為の選択信号は1ビットで足りたがn種のク
ロック入力信号10を入力しそのデコーダ20から複数
のクロック入力信号のいずれ力4つを選択(DF/Fの
データ入力をハイ・レベルに設定)する選択信号を発生
し、各々のDF/Fのデータ入力とする構成とする。
The second embodiment is a clock signal switching circuit with a decoder added when there are first to nth clock input signals. In the first embodiment, one bit was enough for the selection signal to switch between two clock input signals, but if n types of clock input signals 10 are input, the decoder 20 selects any one of the plurality of clock input signals. The configuration is such that a selection signal for selection (setting the data input of the DF/F to high level) is generated and used as the data input of each DF/F.

この実施例では、複数のクロック信号から任意のクロッ
ク信号を速やかに選択することが可能である。
In this embodiment, it is possible to quickly select any clock signal from a plurality of clock signals.

第3図Aは本発明の第3の実施例の回路図、第3図Bは
、第3図Bのタイミング・チャートである。第1および
第2の実施例では選択信号は現在選択されているクロッ
ク信号に同期して入力しなければならないという制限が
あった。第3の実施例では複数のクロック信号に対し、
非同期入力される選択信号を同期しり手段を追加した例
である。
FIG. 3A is a circuit diagram of a third embodiment of the present invention, and FIG. 3B is a timing chart of FIG. 3B. In the first and second embodiments, there is a restriction that the selection signal must be input in synchronization with the currently selected clock signal. In the third embodiment, for multiple clock signals,
This is an example in which a means for synchronizing a selection signal input asynchronously is added.

第1のクロック信号入力端子108から第1のクロック
COが、第2のF/F 1 0 2及び、第3のF/F
 I. 0 3 =、、第2のクロック信号入力端子1
09から第2のクロックCIが、第1のF/F]01及
び、第4のF/F 1 0 4に入力される。
The first clock CO is transmitted from the first clock signal input terminal 108 to the second F/F 1 0 2 and the third F/F.
I. 0 3 =,, second clock signal input terminal 1
From 09 onwards, the second clock CI is input to the first F/F] 01 and the fourth F/F 1 0 4.

第1および第2のF/Fへ非同期選択信号107が入力
され、第1及び第2のクロックに同期して次段第3およ
び第4のF/Fに出力される。(第3図Bのタイミング
・チャート参照)第1および第2の実施例では、選択信
号107が直接3ANDに入力されていたが、第1およ
び第2のF/Fにて他のクロックに同期させた信号をつ
くりそれとの積項とした為、選択信号がクロックに非同
期であっても、グリッジ無しに切り替えを可能にした実
施例である。
The asynchronous selection signal 107 is inputted to the first and second F/Fs, and outputted to the next stage third and fourth F/Fs in synchronization with the first and second clocks. (Refer to the timing chart in Figure 3B) In the first and second embodiments, the selection signal 107 was directly input to the 3AND, but it is synchronized with other clocks in the first and second F/Fs. This embodiment makes it possible to switch without glitches even if the selection signal is asynchronous to the clock because a signal is created and the product term is used as a product term.

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

以上説明した様に本発明は、F/Fを並列にもうけ、そ
れぞれのクロック入力にクロック信号を、テータ入力に
選択信号を入力し、そのF/F出力信号と、それぞれの
クロック信号および選択信号を3人力とする3NAND
で切り換える構成とすることにより、旧クロック信号を
即時禁止しグリッジを防止して新クロック信号に容易に
切り換えることが出来る効果がある。
As explained above, the present invention provides F/Fs in parallel, inputs a clock signal to each clock input, inputs a selection signal to theta input, and receives the F/F output signal, each clock signal and selection signal. 3NAND powered by three people
By adopting a configuration in which switching is performed, the old clock signal can be immediately inhibited, glitches can be prevented, and switching to the new clock signal can be easily performed.

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

第1図Aは本発明の第1の実施例の回路図、第1図Bは
第l図Aのタイミング・チャート、第2図は第2の実施
例の回路図、第3図Aは第3の実施例の回路図、第3図
Bは第3図Aのタイミング・チャート、第4図Aは従来
の実施例の回路図、第4図Bは第4図Bのタイミング・
チャートである。 ■・・・・・・データフリップフロップ(DF/F)、
2・・・・・DF/F、3・・・・・・3NAND、4
・・・・・・3NAND,5・・・・2N△ND、6・
・・・・・クロック信号出力部、7・・・・・・選択信
号切替部、訃・印・クロ,ク信号入力部、9・・・・・
・クロック信号入力部、0・・・・・・インバータ、2
1・・・・・・2AND.22・・・・・・2AND、
25・・・・・・クロック出力部、26・・川・クロッ
ク入力部、27・・・・・・選択信号入力部、28・・
団・クロソク入力部、l1・・・・・・DF/F.l 
2・・・・・3NAND.13・・・・・クロック入力
部、l4・・・・・・クロック入力部(2)、15・・
・・・・クロック入力部(3)、16・・・・・・クロ
ック信号(1).17・・・・・・クロック信号(2)
、18・・・・・・クロック信号(3)、19・・・・
・・3NAND,10・・・・・テコーダ入力選択信号
(n入力)、20・・n人カデコーダ。 100・・・・・・2AND,105,106・・・・
・3AND,101・・・・・・第IDF/F,  1
 0 2・・・・・・第2DF/F,103・・・・・
・第3DF/F.104・・・・・・第4DF/F、1
08・・・・・・第1クロック入力端子、109・・・
・・・第2クロック入力端子、107・・・・・・選択
信号入力端子。 代理人 弁理士  内 原   晋 第 1 図Δ 第l図B
1A is a circuit diagram of the first embodiment of the present invention, FIG. 1B is a timing chart of FIG. 1A, FIG. 2 is a circuit diagram of the second embodiment, and FIG. 3A is a timing chart of FIG. 3B is the timing chart of FIG. 3A, FIG. 4A is the circuit diagram of the conventional embodiment, and FIG. 4B is the timing chart of FIG. 4B.
It is a chart. ■・・・Data flip-flop (DF/F),
2...DF/F, 3...3NAND, 4
...3NAND, 5...2N△ND, 6.
. . . Clock signal output section, 7 . . . Selection signal switching section, cursor, mark, black, ku signal input section, 9 . . .
・Clock signal input section, 0... Inverter, 2
1...2AND. 22...2AND,
25... Clock output section, 26... River/clock input section, 27... Selection signal input section, 28...
Group/crossoku input section, l1...DF/F. l
2...3NAND. 13... Clock input section, l4... Clock input section (2), 15...
. . . Clock input section (3), 16 . . . Clock signal (1). 17...Clock signal (2)
, 18... Clock signal (3), 19...
...3 NAND, 10... Tecoder input selection signal (n input), 20... n person decoder. 100...2AND,105,106...
・3AND, 101... No. IDF/F, 1
0 2...2nd DF/F, 103...
・3rd DF/F. 104...4th DF/F, 1
08...First clock input terminal, 109...
. . . second clock input terminal, 107 . . . selection signal input terminal. Agent Patent Attorney Susumu Uchihara 1 Figure Δ Figure 1B

Claims (2)

【特許請求の範囲】[Claims] (1)クロック信号及び選択信号を受け前記選択信号が
アクティブレベルのときに前記クロック信号を出力する
クロック出力制御回路を複数個備え、各クロック出力制
御回路は、対応するクロック入力信号を、クロック入力
とし、対応する選択信号をデータ入力とするフリップフ
ロップ(以下F/Fと称す)と、このF/Fの出力信号
、前記対応するクロック入力信号及び前記対応する選択
信号を入力とするゲート回路とを有することを特徴とす
るクロック信号切替回路。
(1) A plurality of clock output control circuits are provided that receive a clock signal and a selection signal and output the clock signal when the selection signal is at an active level, and each clock output control circuit receives a corresponding clock input signal as a clock input. a flip-flop (hereinafter referred to as F/F) that receives a corresponding selection signal as its data input; and a gate circuit that receives the output signal of this F/F, the corresponding clock input signal, and the corresponding selection signal as input. A clock signal switching circuit comprising:
(2)クロック入力信号に対し非同期入力選択信号を同
期する手段として、非同期選択信号をデータ入力とし、
第一、第二のクロック信号をクロック入力とする第二及
び第一のF/Fを有し、第一F/Fの出力をデータ入力
とし第一のクロック信号をクロック入力とする第三のF
/Fと、第二F/Fの出力をデータ入力とし第二のクロ
ック信号をクロック入力とする第四のF/Fと、第一F
/Fの反転出力と第四F/Fの出力と第二のクロック信
号を入力するゲート回路および、第二F/Fの反転出力
と第三F/Fの出力と第一のクロック信号を入力するゲ
ート回路のいずれかの出力を、選択する手段を持つ、ク
ロック信号切替回路。
(2) As a means for synchronizing the asynchronous input selection signal with the clock input signal, the asynchronous selection signal is used as a data input;
It has a second and first F/F that uses the first and second clock signals as clock inputs, and a third F/F that uses the output of the first F/F as its data input and the first clock signal as its clock input. F
/F, a fourth F/F which uses the output of the second F/F as a data input and the second clock signal as a clock input, and a first F/F.
A gate circuit that inputs the inverted output of /F, the output of the fourth F/F, and the second clock signal, and the inverted output of the second F/F, the output of the third F/F, and the first clock signal. A clock signal switching circuit that has means for selecting the output of one of the gate circuits.
JP1326887A 1989-01-04 1989-12-15 Clock signal switching circuit Pending JPH02290322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1326887A JPH02290322A (en) 1989-01-04 1989-12-15 Clock signal switching circuit

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP1-684 1989-01-04
JP68489 1989-01-04
JP1326887A JPH02290322A (en) 1989-01-04 1989-12-15 Clock signal switching circuit

Publications (1)

Publication Number Publication Date
JPH02290322A true JPH02290322A (en) 1990-11-30

Family

ID=26333704

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1326887A Pending JPH02290322A (en) 1989-01-04 1989-12-15 Clock signal switching circuit

Country Status (1)

Country Link
JP (1) JPH02290322A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6879201B1 (en) 2002-04-01 2005-04-12 Xilinx, Inc. Glitchless pulse generator
US7082579B2 (en) 2001-06-12 2006-07-25 Sharp Kabushiki Kaisha Gated clock generating circuit and method of modifying the circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7082579B2 (en) 2001-06-12 2006-07-25 Sharp Kabushiki Kaisha Gated clock generating circuit and method of modifying the circuit
US6879201B1 (en) 2002-04-01 2005-04-12 Xilinx, Inc. Glitchless pulse generator

Similar Documents

Publication Publication Date Title
US6975145B1 (en) Glitchless dynamic multiplexer with synchronous and asynchronous controls
US4674036A (en) Duplex controller synchronization circuit for processors which utilizes an address input
US4797576A (en) Flip-flop circuit with short propagation delay
US4398155A (en) Multiple clock switching circuit
JPH07114348B2 (en) Logic circuit
US5502409A (en) Clock switcher circuit
JPH02290322A (en) Clock signal switching circuit
JPS59221115A (en) Clock signal switching circuit
US4741005A (en) Counter circuit having flip-flops for synchronizing carry signals between stages
US3484701A (en) Asynchronous sequential switching circuit using a single feedback delay element
JPS61285523A (en) Clock switching circuit
JPH01217278A (en) Integrated circuit
JP2621205B2 (en) Divider circuit
JPH0677050B2 (en) Electronic circuit
JPH0316136A (en) Integrated circuit
JPH01290013A (en) Asynchronous clock selecting/synchronizing circuit
JPH02184111A (en) Signal selection circuit
JPH0690657B2 (en) Clock switching circuit
JPH08328687A (en) Clock changeover circuit
JP2575221B2 (en) PLL circuit
JPS59229923A (en) Logical circuit for integrated circuit
JPH03171234A (en) Clock synchronous storage circuit
JPS63282820A (en) Clock signal switching system
JPS62152029A (en) Clock control circuit
JPS59231668A (en) Dual clock signal switching system