JP3085372B2 - Clock switching circuit - Google Patents

Clock switching circuit

Info

Publication number
JP3085372B2
JP3085372B2 JP09357188A JP35718897A JP3085372B2 JP 3085372 B2 JP3085372 B2 JP 3085372B2 JP 09357188 A JP09357188 A JP 09357188A JP 35718897 A JP35718897 A JP 35718897A JP 3085372 B2 JP3085372 B2 JP 3085372B2
Authority
JP
Japan
Prior art keywords
clock
circuit
signal
switching
timing
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
JP09357188A
Other languages
Japanese (ja)
Other versions
JPH11184551A (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.)
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 JP09357188A priority Critical patent/JP3085372B2/en
Publication of JPH11184551A publication Critical patent/JPH11184551A/en
Application granted granted Critical
Publication of JP3085372B2 publication Critical patent/JP3085372B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロプロセッ
サ等の論理回路のクロック周波数に依存する動作特性試
験を行う場合において、供給するクロック周波数を切替
える回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a circuit for switching a clock frequency to be supplied when performing an operation characteristic test depending on a clock frequency of a logic circuit such as a microprocessor.

【0002】[0002]

【従来の技術】従来、この種のクロック切替回路は、例
えば特開平3−265016号公報に示されるように、
2種類の入力クロックを切替えるとき、どちらのクロッ
ク幅よりも短い幅の波形を生成しないようにする目的で
用いられる。
2. Description of the Related Art Conventionally, this kind of clock switching circuit has been disclosed in, for example, Japanese Patent Application Laid-Open No. 3-265016.
When switching between two types of input clocks, it is used for the purpose of not generating a waveform having a width shorter than either clock width.

【0003】図4は従来例のクロック切替回路の回路
図、図5はその信号のタイムチャートである。第1のク
ロック発生回路1と第2のクロック発生回路2は、タイ
ミング抽出回路3’および切替回路5の入力信号である
第1のクロックA、第2のクロックBをそれぞれ生成す
る。タイミング抽出回路3’はフリップフロップ21〜
26、インバータ27〜30、アンド回路31〜33、
オア回路34により構成され、第1のクロックAと第2
のクロックBの位相の進みまたは遅れを検出し、タイミ
ング信号Cを同期回路4に送る。同期回路4はDフリッ
プフロップ14で構成され、切替指示信号Dをタイミン
グ信号Cに同期化させ、切替信号Eを生成する。切替回
路5は、アンド回路16,17、オア回路18、インバ
ータ15で構成され、切替信号Eを用いて第1のクロッ
クAまたは第2のクロックBのどちらかを切替えて出力
信号Fとして出力する。
FIG. 4 is a circuit diagram of a conventional clock switching circuit, and FIG. 5 is a time chart of the signal. The first clock generation circuit 1 and the second clock generation circuit 2 generate a first clock A and a second clock B which are input signals of the timing extraction circuit 3 ′ and the switching circuit 5, respectively. The timing extraction circuit 3 'includes flip-flops 21 to
26, inverters 27 to 30, AND circuits 31 to 33,
The first clock A and the second clock
Of the clock B is detected, and a timing signal C is sent to the synchronization circuit 4. The synchronization circuit 4 includes a D flip-flop 14, synchronizes a switching instruction signal D with a timing signal C, and generates a switching signal E. The switching circuit 5 includes AND circuits 16 and 17, an OR circuit 18, and an inverter 15. The switching circuit 5 switches either the first clock A or the second clock B using the switching signal E and outputs an output signal F. .

【0004】次に、本従来例の動作を図5を参照して説
明する。第1のクロックAより第2のクロックBの方が
わずかに周波数が高い場合、図5に示す通りタイミング
信号Cを出力する。このタイミング信号Cの立ち上がり
エッジは、同相であるタイミングt1を起点として第1
のクロックAの2回目の立ち上がりエッジと同じタイミ
ングであり、またタイミング信号Cの立ち下がりエッジ
は逆相であるタイミングt3を起点として第2のクロッ
クBの2回目の立ち上がりエッジと同じタイミングであ
る。
Next, the operation of the conventional example will be described with reference to FIG. When the frequency of the second clock B is slightly higher than that of the first clock A, the timing signal C is output as shown in FIG. The rising edge of the timing signal C starts from the timing t1, which is in phase, and
The timing of the falling edge of the timing signal C is the same as the timing of the second rising edge of the second clock B starting from the timing t3, which is the opposite phase.

【0005】[0005]

【発明が解決しようとする課題】上述した従来のクロッ
ク切替回路は、クロック切替え時に、出力信号のパルス
幅が、2つの入力クロックのパルス幅のどちらかより大
きくなり、クロックがダイナミックな動作をする論理回
路に適用できなくなると言う問題点がある。その理由
は、クロックを切替えようとするタイミングが、2つの
入力クロックが同相になるタイミングに比べ遅れている
ためである。
In the conventional clock switching circuit described above, at the time of clock switching, the pulse width of the output signal becomes larger than one of the pulse widths of the two input clocks, and the clock operates dynamically. There is a problem that it cannot be applied to a logic circuit. The reason is that the timing of switching the clocks is later than the timing of the two input clocks being in phase.

【0006】本発明の目的は、クロック切替えタイミン
グを2つの入力クロックが同相になるタイミングに一致
させるようにしたクロック切替回路を提供することであ
る。
An object of the present invention is to provide a clock switching circuit in which the clock switching timing is made coincident with the timing at which two input clocks have the same phase.

【0007】[0007]

【課題を解決するための手段】本発明のクロック切替回
路は、互いに周波数の異なる第1のクロックと第2のク
ロックの位相が一致するタイミングを検出し、タイミン
グ信号を出力する位相一致検出回路と、外部から与えら
れた、切替えを指示する切替指示信号を、前記タイミン
グ信号に同期させ、切替信号として出力する同期回路
と、同期回路から出力された切替信号により第1、第2
のクロックのうち一方を選択し、出力する切替回路とを
し、 前記位相一致検出回路は、第1のクロックと第2
のクロックを入力し、両クロック信号が同相であるとき
に最大の立ち上がりパルス幅となり、逆相であるとき最
小のパルス幅となる干渉信号を生成するアンド回路と、
前記干渉信号を入力するローパスフィルタと、該ローパ
スフィルタの出力信号を、該信号の平均レベルと比較
し、ディジタル化するコンパレータを有する
A clock switching circuit according to the present invention detects a timing at which the phases of a first clock and a second clock having different frequencies coincide with each other, and outputs a timing signal. A synchronization circuit that synchronizes a switching instruction signal externally provided and instructs switching with the timing signal, and outputs the switching signal as a switching signal;
Of selecting one of the clocks, possess a switching circuit for outputting said phase coincidence detecting circuit includes a first clock and a second
When both clock signals are in phase
The maximum rising pulse width at
An AND circuit that generates an interference signal having a small pulse width;
A low-pass filter for inputting the interference signal;
The output signal of the filter to the average level of the signal
And a comparator for digitizing .

【0008】位相一致検出回路は、2つの入力クロック
が同相であるタイミングを検出し、これをタイミング信
号の立ち上がりエッジによって示す。同期回路は、オペ
レータ等により入力される切替指示信号の立ち上がりエ
ッジをタイミング信号に同期させる。切替回路は、同期
回路から指示される信号の立ち上がりエッジのタイミン
グにおいて、一方のクロックを選択し、出力する。
The phase coincidence detection circuit detects the timing at which the two input clocks are in phase, and indicates this by the rising edge of the timing signal. The synchronization circuit synchronizes a rising edge of a switching instruction signal input by an operator or the like with a timing signal. The switching circuit selects and outputs one of the clocks at the timing of the rising edge of the signal specified by the synchronization circuit.

【0009】[0009]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0010】図1を参照すると、本発明の一実施形態の
クロック切替回路は、それぞれ第1、第2のクロック発
生回路1,2で生成された第1のクロックA、第2のク
ロックBを入力し、位相が一致するタイミングを検出
し、タイミング信号Jを出力する位相一致検出回路3
と、外部から与えられた切替指示信号Dをタイミング信
号Jに同期化し、切替信号Eを生成する同期回路4と、
第1のクロックAと第2のクロックBを入力し、切替信
号Eにより切替え、出力信号Fとして出力する切替回路
5で構成されている。
Referring to FIG. 1, a clock switching circuit according to an embodiment of the present invention uses a first clock A and a second clock B generated by first and second clock generation circuits 1 and 2, respectively. A phase coincidence detection circuit 3 for detecting a timing at which the phases coincide with each other and outputting a timing signal J
A synchronization circuit 4 for synchronizing a switching instruction signal D given from the outside with a timing signal J and generating a switching signal E;
The switching circuit 5 is configured to receive the first clock A and the second clock B, switch with a switching signal E, and output as an output signal F.

【0011】なお、本クロック切替回路は図4の従来例
のクロック切替回路とは位相一致検出回路3の構成のみ
異なっている。
The present clock switching circuit differs from the conventional clock switching circuit of FIG. 4 only in the configuration of the phase coincidence detection circuit 3.

【0012】位相一致検出回路3はアンド回路11とロ
ーパスフィルタ12とコンパレータ13で構成されてい
る。
The phase coincidence detecting circuit 3 comprises an AND circuit 11, a low-pass filter 12, and a comparator 13.

【0013】位相一致検出回路3に入力された第1のク
ロックAと第2のクロックBから、アンド回路11によ
り干渉信号Gを生成する。干渉信号Gは、第1のクロッ
クAと第2のクロックBの位相が同相であるときに最大
の立ち上がりパルス幅となり、逆相であるときに最小の
パルス幅となる特徴を有する。この干渉信号Gをアナロ
グ信号とみなし、ローパスフィルタ12に入力し、フィ
ルタ信号Hを得る。ここで、ローパスフィルタ12は、
例えば図3に示すような回路である。ローパスフィルタ
12の抵抗19の抵抗値Rとコンデンサ20のコンデン
サ容量Cとして、第1のクロックAの周波数をf1,第
2のクロックの周波数をf2としたとき 、|f1−f2|=1/2πCR の関係が成り立つ定数を用いる。この場合、フィルタ信
号Hは、周期が|f1−f2|であり、第1のクロック
Aと第2のクロックBが同相になるタイミングから位相
が45度遅れたタイミングで最大レベルを発生する繰り
返し波形となる。フィルタ信号Hをコンパレータ13に
入力することによりディジタル化し、タイミング信号J
を得る。コンパレータ13の比較レベルをフィルタ信号
Hの平均レベルに設定するとき、出力として得られるタ
イミング信号Jの立ち上がりエッジのタイミングは、第
1のクロックAと第2のクロックBが同相になるタイミ
ングと一致する(図2の時刻t0)。
An interference signal G is generated by an AND circuit 11 from the first clock A and the second clock B input to the phase coincidence detection circuit 3. The interference signal G has a feature that when the phases of the first clock A and the second clock B are the same, the pulse width becomes the maximum rising pulse width, and when the phases are the opposite phases, the pulse width becomes the minimum pulse width. This interference signal G is regarded as an analog signal, and is input to the low-pass filter 12 to obtain a filter signal H. Here, the low-pass filter 12
For example, a circuit as shown in FIG. Assuming that the frequency of the first clock A is f1 and the frequency of the second clock is f2, the resistance value R of the resistor 19 of the low-pass filter 12 and the capacitance C of the capacitor 20 are | f1−f2 | = 1 / 2πCR Is used. In this case, the filter signal H has a cycle of | f1−f2 |, and has a repetitive waveform that generates the maximum level at a timing that is 45 degrees behind the timing when the first clock A and the second clock B become in phase. Becomes The filter signal H is digitized by being input to the comparator 13, and the timing signal J
Get. When the comparison level of the comparator 13 is set to the average level of the filter signal H, the timing of the rising edge of the timing signal J obtained as an output coincides with the timing at which the first clock A and the second clock B become in phase. (Time t0 in FIG. 2).

【0014】オペレータ等により任意のタイミングで与
えられた切替指示信号Dに対し、同期回路Fはタイミン
グ信号Jを用いて第1のクロックAと第2のクロックB
が同相になるタイミングにおいて切替指示信号Dを同期
化し、切替信号Eとして出力する。
In response to a switching instruction signal D given at an arbitrary timing by an operator or the like, a synchronization circuit F uses a timing signal J to generate a first clock A and a second clock B.
Synchronizes the switching instruction signal D at the timing when the signals become in-phase, and outputs the same as the switching signal E.

【0015】切替回路5は、切替信号EがLレベルのと
き、第2のクロックBを出力し、切替信号EがHレベル
のとき、第1のクロックAを出力する。
The switching circuit 5 outputs the second clock B when the switching signal E is at the L level, and outputs the first clock A when the switching signal E is at the H level.

【0016】[0016]

【発明の効果】以上説明したように、本発明は、2つの
入力したクロックの位相が一致するタイミングにおい
て、クロックの切替えのタイミングを行うことにより、
切替え時点での出力のクロックパルス幅は、2つの入力
したクロックの一方に等しくなる。
As described above, according to the present invention, the clock switching timing is performed at the timing when the phases of the two input clocks coincide with each other.
The output clock pulse width at the time of switching is equal to one of the two input clocks.

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

【図1】本発明の一実施形態のクロック切替回路の回路
図である。
FIG. 1 is a circuit diagram of a clock switching circuit according to an embodiment of the present invention.

【図2】図1のクロック切替回路の動作例を示すタイミ
ングチャートである。
FIG. 2 is a timing chart illustrating an operation example of the clock switching circuit of FIG. 1;

【図3】ローパスフィルタ12の例を示す図である。FIG. 3 is a diagram illustrating an example of a low-pass filter 12.

【図4】クロック切替回路の従来例の回路図である。FIG. 4 is a circuit diagram of a conventional example of a clock switching circuit.

【図5】図4のクロック切替回路のずれを示すタイミン
グチャートである。
FIG. 5 is a timing chart showing a shift of the clock switching circuit of FIG. 4;

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

1 第1のクロック発生回路 2 第2のクロック発生回路 3 位相一致検出回路 4 同期回路 5 切替回路 11 アンド回路 12 ローパスフィルタ 13 コンパレータ 14 Dフリップフロップ 15 インバータ 16,17 アンド回路 18 オア回路 19 抵抗 20 コンデンサ A 第1のクロック B 第2のクロック G 干渉信号 H フィルタ信号 J タイミング信号 D 切替指示信号 E 切替信号 F 出力信号 DESCRIPTION OF SYMBOLS 1 1st clock generation circuit 2 2nd clock generation circuit 3 Phase match detection circuit 4 Synchronization circuit 5 Switching circuit 11 AND circuit 12 Low pass filter 13 Comparator 14 D flip-flop 15 Inverter 16, 17 AND circuit 18 OR circuit 19 Resistance 20 Capacitor A First clock B Second clock G Interference signal H Filter signal J Timing signal D Switching instruction signal E Switching signal F Output signal

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 1/06 H03K 5/00 H03L 7/08 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 1/06 H03K 5/00 H03L 7/08

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 互いに周波数の異なる第1のクロックと
第2のクロックの位相が一致するタイミングを検出し、
タイミング信号を出力する位相一致検出回路と、 外部から与えられた切替えを指示する切替指示信号を前
記タイミング信号に同期させ、切替信号として出力する
同期回路と、 前記同期回路から出力された切替信号により、第1のク
ロックと第2のクッロクの一方を選択し、出力する切替
回路を有し、 前記位相一致検出回路は、第1のクロックと第2のクロ
ックを入力し、両クロック信号が同相であるときに最大
の立ち上がりパルス幅となり、逆相であるとき最小のパ
ルス幅となる干渉信号を生成するアンド回路と、前記干
渉信号を入力するローパスフィルタと、該ローパスフィ
ルタの出力信号を、該信号の平均レベルと比較し、ディ
ジタル化するコンパレータを有するブロック切替 回路。
A timing detecting section that detects a timing at which the phases of a first clock and a second clock having different frequencies from each other coincide with each other;
A phase matching detection circuit that outputs a timing signal, a switching circuit that synchronizes a switching instruction signal that instructs switching given from the outside with the timing signal and outputs the switching signal, and a switching signal output from the synchronization circuit. selects one of the first clock and the second Kurroku, have a switching circuit for outputting said phase coincidence detecting circuit includes a first clock and the second black
Clocks and the maximum when both clock signals are in phase.
Rising pulse width, and the minimum
An AND circuit for generating an interference signal having a pulse width;
A low-pass filter for inputting an interference signal;
The output signal of the filter is compared to the average level of the signal and the
A block switching circuit having a comparator for digitizing .
【請求項2】 前記ローパスフィルタが抵抗とコンデン
サからなる、請求項記載のクロック切替回路。
Wherein said low-pass filter composed of a resistor and a capacitor, the clock switching circuit of claim 1, wherein.
【請求項3】 前記抵抗の抵抗値R、前記コンデンサの
容量Cとが、第1、第2のクロックの周波数をそれぞれ
f1,f2としたとき |f1−f2|=1/2πCR の関係を満足する、請求項記載のクロック切替回路。
3. The resistance value R of the resistor and the capacitance C of the capacitor satisfy the relationship of | f1−f2 | = 容量 πCR when the first and second clock frequencies are f1 and f2, respectively. 3. The clock switching circuit according to claim 2, wherein
【請求項4】 前記同期回路が、前記切替指示信号をデ
ータ入力、前記タイミング信号をクロック入力とするD
フリップフロップである、請求項1からのいずれか1
項記載のクロック切替回路。
4. The synchronous circuit according to claim 1, wherein said switching instruction signal is a data input, and said timing signal is a clock input.
4. One of claims 1 to 3 , which is a flip-flop.
Clock switching circuit according to the item.
【請求項5】 前記切替回路が、前記切替信号を反転す
るインバータと、第1のクロックと前記切替信号を入力
する第1のアンド回路と、第2のクロックと前記インバ
ータの出力信号を入力する第2のアンド回路と、第1の
アンド回路の出力信号と第2のアンド回路の出力信号を
入力するオア回路を有する、請求項1から5のいずれか
1項記載のクロック切替回路。
5. The switching circuit inputs an inverter that inverts the switching signal, a first AND circuit that inputs a first clock and the switching signal, and a second clock and an output signal of the inverter. The clock switching circuit according to any one of claims 1 to 5, further comprising a second AND circuit, and an OR circuit that inputs an output signal of the first AND circuit and an output signal of the second AND circuit.
JP09357188A 1997-12-25 1997-12-25 Clock switching circuit Expired - Lifetime JP3085372B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09357188A JP3085372B2 (en) 1997-12-25 1997-12-25 Clock switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09357188A JP3085372B2 (en) 1997-12-25 1997-12-25 Clock switching circuit

Publications (2)

Publication Number Publication Date
JPH11184551A JPH11184551A (en) 1999-07-09
JP3085372B2 true JP3085372B2 (en) 2000-09-04

Family

ID=18452848

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09357188A Expired - Lifetime JP3085372B2 (en) 1997-12-25 1997-12-25 Clock switching circuit

Country Status (1)

Country Link
JP (1) JP3085372B2 (en)

Also Published As

Publication number Publication date
JPH11184551A (en) 1999-07-09

Similar Documents

Publication Publication Date Title
JP2944607B2 (en) Digital PLL circuit and clock generation method
US5929714A (en) PLL timing generator
US4988901A (en) Pulse detecting device for detecting and outputting a pulse signal related to the slower frequency input pulse
JP3467975B2 (en) Phase detection circuit
WO1995010884A1 (en) Clock frequency multiplying and squaring circuit and method
US4979194A (en) Circuit for generating pulse having predetermined time period width based on trigger signal
EP0810736A1 (en) PLL frequency synthesizer
JP2642421B2 (en) Digital phase difference detection circuit and phase difference detection method
JP2846428B2 (en) Logical comparison circuit
JPS6249737A (en) Clock signal reproduction layout
US6329861B1 (en) Clock generator circuit
JP3085372B2 (en) Clock switching circuit
US5850161A (en) Digital FM demodulator using pulse generators
US4775805A (en) Differential frequency signal generator
JP3562321B2 (en) Clock signal switching device
JP2792759B2 (en) Synchronous clock generation circuit
JPH0879029A (en) Four-phase clock pulse generating circuit
JP2736702B2 (en) Asynchronous detection circuit
JPH0738398A (en) Clock switching circuit
JPH03204251A (en) Clock synchronizing circuit
JP2001222340A (en) Device and method for capturing signal
JP2669689B2 (en) High-speed frame synchronization circuit
JP2994882B2 (en) Divider circuit
KR0136468B1 (en) Circuit for separating vertical synchronization signals
JP3151865B2 (en) Sync detection circuit

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070707

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080707

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090707

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100707

Year of fee payment: 10