JPH0376421A - 2-clock switching circuit - Google Patents

2-clock switching circuit

Info

Publication number
JPH0376421A
JPH0376421A JP1213559A JP21355989A JPH0376421A JP H0376421 A JPH0376421 A JP H0376421A JP 1213559 A JP1213559 A JP 1213559A JP 21355989 A JP21355989 A JP 21355989A JP H0376421 A JPH0376421 A JP H0376421A
Authority
JP
Japan
Prior art keywords
level
clock
signal
output
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
JP1213559A
Other languages
Japanese (ja)
Inventor
Chieko Akimoto
秋本 千恵子
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1213559A priority Critical patent/JPH0376421A/en
Publication of JPH0376421A publication Critical patent/JPH0376421A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent a leading edge due to a select signal from generating by switching a clock immediately when a selected clock signal is at an L level when a select signal is switched, and switching the clock after the selected clock signal reaches an L level when the selected clock signal is at an H level. CONSTITUTION:When a clock signal is switched from CKA into a clock signal CKB, an SR latch 9 is reset, an output f3 goes to an L level and an H level is outputted from a NAND gate 11. When the clock signal CKB is at an L level at that time, an SR latch 10 is set and an inverse of the clock signal CKB is outputted immediately from a NAND gate 12. When the clock signal CKB is at an H level, a HAND gate 8 goes to an H level after the clocks signal CKB reaches an L level to set the SR latch 10. Then the clock signal CKB is outputted to a clock output 14.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は2つのクロックを切り換えるセレクタ回路に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a selector circuit that switches between two clocks.

〔従来の技術] 第4図は従来の2クロック切換回路を示す回路図である
。図において、1は一方のクロック人力CKAが入力さ
れる入力端子、2はもう片方のクロック入力CKBが入
力される入力端子、3は2クロフクのセレクト信号Sが
入力される入力端子、6はインバータ、11,12,1
3,15はナンドゲート、14はクロック人力CKA、
 CKBかセレクト信号Sによって選択されて出力され
るクロック出力信号CKOの出力端子である。
[Prior Art] FIG. 4 is a circuit diagram showing a conventional two-clock switching circuit. In the figure, 1 is an input terminal to which one clock input CKA is input, 2 is an input terminal to which the other clock input CKB is input, 3 is an input terminal to which the select signal S of 2 clocks is input, and 6 is an inverter. , 11, 12, 1
3 and 15 are NAND gates, 14 is clock human power CKA,
This is an output terminal for a clock output signal CKO selected by either CKB or the select signal S and output.

次に動作について説明する。第5図は第4図の回路の動
作を示すタイムチャートである。図において、(alは
クロック人力CKA、 (blはクロック入力CKB、
 (clはセレクト信号S、(d)はクロック出力信号
CKOを示す。また、16.17はセレクト信号Sの変
化によってCKOに発生する立ち上がりエツジ、18は
スパイクである。
Next, the operation will be explained. FIG. 5 is a time chart showing the operation of the circuit of FIG. 4. In the figure, (al is clock input CKA, (bl is clock input CKB,
(cl indicates the select signal S, and (d) indicates the clock output signal CKO. Also, 16.17 indicates a rising edge generated in CKO due to a change in the select signal S, and 18 indicates a spike.

2クロツクのセレクト信号SがLレベルの時、インバー
タ6の出力がHレベルであるので、ナンドゲートからは
クロック信号CKAの反幅信号が出力され、ナンドゲー
ト12からはHレベルが出力されるので、ナンドゲート
13からはクロック信号C臥が出力される。また、反対
に2クロツクのセレクト信号SがHレベルの時は、イン
バータ6の出力がLレベルであるので、ナンドゲート1
1からはHレベルが出力され、ナンドゲート12からは
クロック信号CKBの反転信号が出力されるので、ナン
ドゲート13からはクロック信号CKBが出力される。
When the 2-clock select signal S is at the L level, the output of the inverter 6 is at the H level, so the NAND gate outputs the inverse signal of the clock signal CKA, and the NAND gate 12 outputs the H level, so the NAND gate 13 outputs a clock signal C. Conversely, when the 2-clock select signal S is at H level, the output of inverter 6 is at L level, so NAND gate 1
1 outputs an H level, and the NAND gate 12 outputs an inverted signal of the clock signal CKB, so the NAND gate 13 outputs the clock signal CKB.

つまり、セレクト信号SがLレベルの時クロック信号C
KAを、Hレベルの時はクロック信号CKBをクロック
出力端子14に出力する。
In other words, when the select signal S is at L level, the clock signal C
When KA is at H level, a clock signal CKB is output to the clock output terminal 14.

ナンドゲート15はスパイク対策のために設けられたゲ
ートであり、2つのクロック人力CKA 、 CKBが
共にHレベルの時に、セレクト信号SがHレベルからL
レベルに切り換えた場合、インバータ6の遅延により、
−瞬の間、ナンドゲート11,120出力が共にHレベ
ルとなり、クロック出力信号CKOKLのスパイク18
が発生するのを防ぐためのものである。ナンドゲート1
5は2つのクロック入力CKA 、 CKBが共にHレ
ベルの時にLを出力する、ので、セレクト信号を切り換
えた時に、−瞬の間。
The NAND gate 15 is a gate provided to prevent spikes, and when the two clocks CKA and CKB are both at the H level, the select signal S changes from the H level to the L level.
When switching to level, due to the delay of inverter 6,
-For a moment, both the NAND gate 11 and 120 outputs become H level, and the clock output signal CKOKL spikes 18.
This is to prevent this from occurring. nand gate 1
5 outputs L when the two clock inputs CKA and CKB are both at H level, so when the select signal is switched, -for an instant.

ナンドゲート11.12の出力が共にHレベルとtって
も、クロック出力信号CKOにスパイク18を発生させ
ないことができる。
Even if the outputs of the NAND gates 11 and 12 are both at H level, the spike 18 can not be generated in the clock output signal CKO.

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

従来の2クロック切換回路は以上のように構成されてい
たので、クロック出力信号CKOにはセレクト信号Sの
変化によって、2つのクロック人力CKA 、 CKB
の立ち上がりエツジ以外の立ち上がりエッヂ16.17
が生じてしまうため、クロック出力信号CKOをポジテ
ィブエツジセンスのフリップフロップのクロック入力に
接続する場合に、そのフリップフロップが本来のクロッ
ク人力CKA 、 CKBの立ち上がり以外のタイミン
グで動作してしまうという問題点があった。
Since the conventional two-clock switching circuit is configured as described above, the two clocks CKA and CKB are input to the clock output signal CKO depending on the change in the select signal S.
Rising edges other than the rising edges of 16.17
Therefore, when the clock output signal CKO is connected to the clock input of a positive edge sense flip-flop, the flip-flop operates at a timing other than the rising edge of the original clock CKA and CKB. was there.

本発明は上記のような問題点を解消するためになされた
もので、セレクト信号の切り換えによる本来のクロック
入力による立ち上がりエツジ以外の立ち上がりエツジを
生じさせないことができる2クロック切換回路を得るこ
とを目的とする。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a two-clock switching circuit that can prevent rising edges other than those caused by the original clock input by switching the select signal from occurring. shall be.

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

本発明に係る2クロック切換回路は、セレクト信号が切
り換えられた時に、選択されたクロック信号がLレベル
であるか、Hレベルであるかを判断するためのナンドゲ
ート及びインバータと、それらの出力信号を受け、切り
換えタイミングを生成するSRクラッチを設けたもので
ある。
The two-clock switching circuit according to the present invention includes a NAND gate and an inverter for determining whether the selected clock signal is at L level or H level when the select signal is switched, and their output signals. This is equipped with an SR clutch that receives and generates switching timing.

〔作用〕[Effect]

本発明における2クロック切り換え回路は、セレクト信
号が切り換えられた時に、選択されたクロック信号がL
レベルであるか、Hレベルであるかを判断し、Lレベル
であればすぐにクロックを切り換え、Hレベルであれば
Lレベルになった後にクロックを切り換えるようにする
In the two-clock switching circuit of the present invention, when the select signal is switched, the selected clock signal is low.
It is determined whether the clock is at the low level or the high level, and if the clock is at the low level, the clock is switched immediately, and if the clock is at the high level, the clock is switched after the clock reaches the low level.

〔実施例] 以下、本発明の一実施例を図について説明する。〔Example] An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明による2クロック切換回路の一実施例を
示す回路図である。図において、符号1〜3.6.12
〜14  は前記従来のものと同一であり説明は省略す
る。4,5はインバータ、7.8は2人力ナンドゲート
、9.10はSRクラッチある。
FIG. 1 is a circuit diagram showing an embodiment of a two-clock switching circuit according to the present invention. In the figure, the numbers 1 to 3.6.12
.about.14 are the same as the conventional ones, and their explanation will be omitted. 4 and 5 have inverters, 7.8 has a two-man powered NAND gate, and 9.10 has an SR clutch.

次に動作について説明する。Next, the operation will be explained.

セレクト信号SがLレベルの時、SRクラッチ9のQ出
力信号f3はHレベル、SRクラッチ0のQ出力信号f
4はLレベルとなっているので、ナンドゲート13から
はクロック信号CKAが出力され、クロック出力端子1
4に出力されている。
When the select signal S is at L level, the Q output signal f3 of SR clutch 9 is at H level, and the Q output signal f of SR clutch 0 is
4 is at the L level, the clock signal CKA is output from the NAND gate 13, and the clock output terminal 1
It is output to 4.

セレクト信号SをLレベルからHレベルに、すなわちク
ロック信号をCKAからCKBに切り換えた時、SRク
ラッチはリセットされf3はLレベルとなり、ナンドゲ
ート11からはHレベルが出力される。その時にクロッ
ク信号CKBがLレベルであれば、インバータ5の出力
がHレベルであるので、ナンドゲート8の出力がLレベ
ルとなりSRクラッチ0はセットされる。するとf4が
Hレベルとなるので、ナンドゲート12からはすぐにク
ロック信号CKBの反転信号が出力され、ナンドゲート
Bを通ってクロック出力14にクロック信号CKBが出
力される。
When the select signal S is switched from the L level to the H level, that is, the clock signal is switched from CKA to CKB, the SR clutch is reset, f3 becomes the L level, and the NAND gate 11 outputs the H level. If clock signal CKB is at L level at that time, the output of inverter 5 is at H level, so the output of NAND gate 8 is at L level and SR clutch 0 is set. Then, f4 becomes H level, so the inverted signal of the clock signal CKB is immediately output from the NAND gate 12, and the clock signal CKB is outputted to the clock output 14 through the NAND gate B.

また、セレクト信号SをLレベルからHレベルに切り換
えた時に、クロック信号CKBがHレベルであれば、イ
ンバータ5の出力がLレベルであるので、すぐにナンド
ゲート8の出力はHレベルとならず、クロック信号CK
BがLレベルとなった後にナンドゲート8がHレベルと
なり、SRクラッチ0をセットする。そして、クロック
出力14 にクロック信号CKBが出力される。
Furthermore, if the clock signal CKB is at the H level when the select signal S is switched from the L level to the H level, the output of the inverter 5 is at the L level, so the output of the NAND gate 8 does not immediately go to the H level. clock signal CK
After B becomes L level, NAND gate 8 becomes H level and SR clutch 0 is set. Then, the clock signal CKB is outputted to the clock output 14.

セレクト信号SをHレベルから、Lレベルに切り換えた
場合は、SRクラッチ0がリセットされ、SRラツチ9
をセットするタイミングがコントロールされる。
When the select signal S is switched from H level to L level, SR clutch 0 is reset and SR latch 9
The timing of setting is controlled.

第2図は第1図の動作を示すタイムチャートである。図
において、(atはクロック人力CKA、(blはクロ
ック入力CKB、(clはセレクト信号S 、(dl 
ハクロック出力信号CKO1(e)はナンドゲート7の
出力f1、(0はナンドゲート8の出力信号f2 、 
(glはSRラツチ9のQ出力f3、(h)はSRクラ
ッチ0のQ出力を示す。また、19〜22  はセレク
ト信号Sの変化点を示す。
FIG. 2 is a time chart showing the operation of FIG. 1. In the figure, (at is the clock input CKA, (bl is the clock input CKB, (cl is the select signal S, (dl
The clock output signal CKO1(e) is the output f1 of the NAND gate 7, (0 is the output signal f2 of the NAND gate 8,
(gl indicates the Q output f3 of the SR latch 9, and (h) indicates the Q output of the SR clutch 0. Also, 19 to 22 indicate changing points of the select signal S.

このタイムチャートでもわかるように、20.21のセ
レクト信号の変化では、選択されたクロック信号がその
時Lレベルであるので、セレクト信号の変化とともにf
3 、f4がHレベルとなり・クロック信号が出力され
る状態となる。
As can be seen from this time chart, when the select signal changes at 20.21, the selected clock signal is at L level at that time, so as the select signal changes, f
3, f4 becomes H level and a clock signal is output.

19.22のセレクト信号の変化では、選択されたクロ
ック信号がその時Hレベルであるので、セレクト信号が
変化してもf3.f4はHレベルにはならず、選択され
たクロック信号がLレベルになった時K、f3 、 f
4がrHJレベルとなり、クロック信号が出力される状
態となる。
In the change of the select signal in 19.22, the selected clock signal is at H level at that time, so even if the select signal changes, f3. f4 does not go to H level, and when the selected clock signal goes to L level, K, f3, f
4 becomes the rHJ level, and a clock signal is output.

なお、上記実施例ではクロック出力端子14をポジティ
ブエツジセンスのフリップフロップのクロック入力に接
続する場合について説明したが、ネガティブエツジセン
スのフリップフロップの場合でも、セレクト信号Sの変
化によって、本来のクロック信号以外の立ち下がりエツ
ジが生じると問題となるので、第3図に示すような回路
にすることによっが、上記実施例と同様の効果を奏する
In the above embodiment, a case has been described in which the clock output terminal 14 is connected to the clock input of a positive edge sense flip-flop, but even in the case of a negative edge sense flip-flop, the change in the select signal S causes the original clock signal to be changed. If a falling edge other than the one shown in FIG. 3 occurs, it would be a problem, so by creating a circuit as shown in FIG. 3, the same effect as in the above embodiment can be achieved.

なお、第3図の符号1〜12.14は上記実施例で示し
たものと同一であり、23はアンドゲートである。
Note that numerals 1 to 12 and 14 in FIG. 3 are the same as those shown in the above embodiment, and 23 is an AND gate.

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

以上のように本発明によれば、2クロック切換回路をイ
ンバータとナンドゲートとSRラッチよって構成するこ
とにより、セレクト信号が切り換えられた時に、選択さ
れたクロック信号がLレベルであるか、Hレベルである
かを判断し、Lレベルであればすぐにクロックを切り換
え、HレベルであれはLレベルになった後にクロックを
切り換えるようにしたので、セレクト信号による立ち上
がりエツジを生じさせない2クロック切換回路を得るこ
とができる効果がある。
As described above, according to the present invention, by configuring the 2-clock switching circuit with an inverter, a NAND gate, and an SR latch, when the select signal is switched, the selected clock signal is either at L level or at H level. If the clock is at L level, the clock is switched immediately, and if it is at H level, the clock is switched after it becomes L level. Therefore, a two-clock switching circuit that does not generate a rising edge due to the select signal is obtained. There is an effect that can be done.

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

第1図は本発明による2クロック切換回路の一実施例を
示す回路図、第2図は第1図の回路の動作を示すタイム
チャート、第3図は本発明の他の実施例を示す2クロッ
ク切換回路の回路図、第4図は従来の2クロック切換回
路を示す回路図、第5図は第4図の回路の動作を示すタ
イムチャートである。 1.2.3・・・入力端子、4,5.6・・・インバー
タ、7 、8 、11,12.13・・・ナンドゲート
、9.10・・・SRラッチ、14・・・出力端子、2
3・・・アンドゲート。 なお、図中、同一符号は同一、または相当部分を示す。
FIG. 1 is a circuit diagram showing one embodiment of a two-clock switching circuit according to the present invention, FIG. 2 is a time chart showing the operation of the circuit of FIG. 1, and FIG. FIG. 4 is a circuit diagram showing a conventional two-clock switching circuit, and FIG. 5 is a time chart showing the operation of the circuit shown in FIG. 4. 1.2.3... Input terminal, 4, 5.6... Inverter, 7, 8, 11, 12.13... NAND gate, 9.10... SR latch, 14... Output terminal ,2
3...and gate. In addition, in the figures, the same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] セレクト信号により2つのクロックを切り換える2クロ
ック切換回路において、セレクト信号が切り換えられた
時に、選択されたクロック信号がLレベルであるか、H
レベルであるかを判断するための、ナンドゲート及びイ
ンバータと、それらの出力信号を受け、切換タイミング
を生成するSRラッチと、そのSRラッチの出力及び2
つのクロック信号を受けクロック出力信号を生成する3
つのナンドゲートを備えたことを特徴とする2クロック
切換回路。
In a two-clock switching circuit that switches two clocks using a select signal, when the select signal is switched, it is determined whether the selected clock signal is at L level or H level.
A NAND gate and an inverter for determining the level, an SR latch for receiving their output signals and generating switching timing, and an output and a
receives two clock signals and generates a clock output signal 3
A two-clock switching circuit characterized by having two NAND gates.
JP1213559A 1989-08-18 1989-08-18 2-clock switching circuit Pending JPH0376421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1213559A JPH0376421A (en) 1989-08-18 1989-08-18 2-clock switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1213559A JPH0376421A (en) 1989-08-18 1989-08-18 2-clock switching circuit

Publications (1)

Publication Number Publication Date
JPH0376421A true JPH0376421A (en) 1991-04-02

Family

ID=16641216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1213559A Pending JPH0376421A (en) 1989-08-18 1989-08-18 2-clock switching circuit

Country Status (1)

Country Link
JP (1) JPH0376421A (en)

Similar Documents

Publication Publication Date Title
US4970405A (en) Clock selection circuit for selecting one of a plurality of clock pulse signals
JPH04288607A (en) Clock signal switching circuit
JPH0376421A (en) 2-clock switching circuit
JPH02124627A (en) Clock driver circuit
JPS6316711A (en) Timing device
JP2666479B2 (en) Clock switching circuit and clock switching method
JPH0998161A (en) Clock switching circuit
JP2586712B2 (en) Asynchronous signal selection circuit
JPH01116815A (en) Clock switching circuit
KR930002257B1 (en) System clock generating circuit
JP2550999B2 (en) Sync pulse generator
JPH0370314A (en) Clock interrupt detection circuit
JP2564300B2 (en) Dynamics type flip flop
KR940000643Y1 (en) Synchronous pulse making circuit using flip-flop
JPS63117514A (en) Clock signal switching circuit
JPS6359017A (en) Pulse generating circuit
JPH02203611A (en) Flip-flop circuit
JPH0756651A (en) Clock generating circuit
JPH03282805A (en) Clock signal switching circuit
JPH0364119A (en) Clock interruption detection circuit
JP2693798B2 (en) Control signal generation circuit
JPS63245114A (en) Selection circuit for high speed clock
JPH03157013A (en) Clock phase separator circuit
JPH0251298B2 (en)
JPH06303114A (en) Pulse generating circuit