JP2005251112A - Clock switching circuit - Google Patents

Clock switching circuit Download PDF

Info

Publication number
JP2005251112A
JP2005251112A JP2004064440A JP2004064440A JP2005251112A JP 2005251112 A JP2005251112 A JP 2005251112A JP 2004064440 A JP2004064440 A JP 2004064440A JP 2004064440 A JP2004064440 A JP 2004064440A JP 2005251112 A JP2005251112 A JP 2005251112A
Authority
JP
Japan
Prior art keywords
clock
input
switching
output
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.)
Withdrawn
Application number
JP2004064440A
Other languages
Japanese (ja)
Inventor
Eiji Kaneko
英司 金子
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2004064440A priority Critical patent/JP2005251112A/en
Publication of JP2005251112A publication Critical patent/JP2005251112A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a clock switching circuit capable of switching a plurality of input clocks by a clock switching signal generated outside or inside an information processor without initializing a device, and causing no hazard during clock switching. <P>SOLUTION: In the clock switching circuit selecting and outputting one optional clock as an output clock out of at least two input clocks on the basis of a clock selection input signal, a clock selecting means for generating the output clock is provided by a selection signal storing part synchronizing with the output clock and acquiring the clock selection input signal, a switching signal generating part for decoding an output of the selection signal storing part and specifying the output clock, and a switching enabling part provided per each input clock, acquiring an output of the switching signal generating part in synchronization with the input clock, and outputting an enabling signal for outputting the input clock as the output clock. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、通信装置、映像装置、コンピュータ等のクロックを用いる情報処理装置等におけるクロック切替回路であって、切替対象のクロックは、複数の同期若しくは非同期の、さらに任意のデューティ比であり、情報処理装置の外部もしくは内部で生成したクロック切替信号によって、任意の時間、任意のタイミングで、装置の初期化をすることなく切替え可能で、クロック切替時に、ハザードを生じないクロック切替回路で、さらには、簡単に選択対象クロックの数を増やすことが可能なクロック切替回路に関する。   The present invention relates to a clock switching circuit in an information processing device using a clock of a communication device, a video device, a computer, etc., and the clock to be switched is a plurality of synchronous or asynchronous, further arbitrary duty ratios, information With a clock switching signal generated outside or inside the processing device, it can be switched at any time and at any timing without initializing the device, and a clock switching circuit that does not cause a hazard at the time of clock switching, The present invention relates to a clock switching circuit capable of easily increasing the number of selection target clocks.

従来のクロック切替回路は、任意の入力クロックの切替えを、システムのリセットのタイミングで行う事が簡便な実現方法であった。しかし、システム起動中の切替えに対する要望が強く、多くの方式が提案されている。クロックのデューティー比が等しいクロックに関するもの(特許文献1参照)や、周波数が等しく任意の位相誤差を許容するものに関する(特許文献2参照)、入力クロックのデューティ比や周波数、位相差等不問な2入力の切替は可能であるが、3以上の入力には簡単に対応出来ないもの(特許文献3参照)等が存在する。   In the conventional clock switching circuit, it is a simple realization method that switching of an arbitrary input clock is performed at a system reset timing. However, there is a strong demand for switching during system startup, and many methods have been proposed. 2 related to clocks having the same clock duty ratio (see Patent Document 1) and those having the same frequency and allowing an arbitrary phase error (refer to Patent Document 2). Although the input can be switched, there are some that cannot easily handle three or more inputs (see Patent Document 3).

特開平5−268205JP-A-5-268205 特開2003−208400JP 2003-208400 A 特開平5−268022JP-A-5-268022

しかしながら、特許文献1の方式の場合、クロックゲート手段の出力を、遅延手段の入力として用いているため、入力クロック数は2以下で且つデューティ比が等しいという条件が付く。   However, in the case of the method of Patent Document 1, since the output of the clock gate means is used as the input of the delay means, there is a condition that the number of input clocks is 2 or less and the duty ratio is equal.

また、図3は従来技術の一例としての(特許文献2参照)クロック切替回路の、ブロック図である。図3の切替回路では、周波数が等しくて任意の位相差のクロックであれば、任意の入力クロックから選択が可能である。クロック切替調整部302への切替タイミング生成部301からの入力は、論理和から生成される。従って、入力クロックの周波数が異なっている場合、入力クロックのレベルが全てLOWまたはHIGHとなる期間は、クロック切替調整部の入力の要求仕様に対して、何ら保証されるものではない。また、位相差は任意ではあるが、入力クロック数が多くなった場合、全ての入力クロックのレベルがLOWまたはHIGHとなる期間は、やはり保証されない。そのため、周波数が等しく、位相差のみが異なり、且つ入力クロック数が少ないか、または位相差が小さい入力クロックでのみ良好な切替が可能となる。   FIG. 3 is a block diagram of a clock switching circuit as an example of the prior art (see Patent Document 2). In the switching circuit shown in FIG. 3, any input clock can be selected as long as the clocks have the same frequency and an arbitrary phase difference. The input from the switching timing generation unit 301 to the clock switching adjustment unit 302 is generated from a logical sum. Therefore, when the frequencies of the input clocks are different, the period during which the levels of the input clocks are all LOW or HIGH is not guaranteed at all for the required specifications of the input of the clock switching adjustment unit. Further, although the phase difference is arbitrary, when the number of input clocks increases, the period during which all the input clock levels are LOW or HIGH is not guaranteed. Therefore, it is possible to perform good switching only with input clocks having the same frequency, different phase differences, and a small number of input clocks or a small phase difference.

一方、特許文献3における切替方式は、前記特許文献1および特許文献2の条件は改善されている。つまり2入力のクロック切替えにおいては、デューティ比や周波数、位相などの条件が付くことなく、任意のクロックの切替に関して、良好な回路が提供される。しかし、選択対象のクロックが3、4と増えた場合の実現手段が提示されていない。   On the other hand, in the switching method in Patent Document 3, the conditions of Patent Document 1 and Patent Document 2 are improved. That is, in 2-input clock switching, a favorable circuit is provided for switching any clock without conditions such as duty ratio, frequency, and phase. However, no means for realizing the case where the number of clocks to be selected is increased to 3, 4 is presented.

従って、3以上の選択クロックから任意のひとつを出力とするためには、例えば一度システムをリセットし、その間に切替えたり、また、リセットするまでもないが、一定期間クロック入力を全てマスクする事で切替える必要があった。   Therefore, to output any one of three or more selected clocks, for example, reset the system once, switch between them, or reset, but mask all clock inputs for a certain period. It was necessary to switch.

本発明は、上記課題に鑑みなされたものであり、その目的は、複数の同期若しくは非同期の、さらに任意のデューティ比の入力クロックを、情報処理装置の外部もしくは内部で生成したクロック切替信号によって、任意の時間、任意のタイミングで、装置の初期化をすることなく切替え可能で、クロック切替え時に、ハザードを生じないクロック切替回路を提供することにある。   The present invention has been made in view of the above problems, and its purpose is to provide a plurality of synchronous or asynchronous input clocks having an arbitrary duty ratio by clock switching signals generated outside or inside the information processing apparatus. An object of the present invention is to provide a clock switching circuit which can be switched at an arbitrary time and at an arbitrary timing without initializing the apparatus and does not cause a hazard at the time of clock switching.

上記課題を解決するため、本発明に係るクロック切替回路は、複数の入力クロックから、クロック選択入力信号に基づき任意の1つのクロックを出力クロックとして選択し出力するクロック切替回路において、
前記出力クロックに同期して前記クロック選択入力信号を取り込む選択信号記憶部と、
前記選択信号記憶部の出力をデコードして出力クロックを特定するための切替信号生成部と、
前記入力クロック毎に設けられ、前期切替信号生成部の出力を該入力クロックに同期して取り込み該入力クロックを前記出力クロックとして出力するための許可信号を出力する切替許可部と、
複数の前記切替許可部の出力と前記切替許可部毎に対応した複数の入力クロックとの組から出力クロックを生成するクロック選択手段を持つ。
In order to solve the above problems, the clock switching circuit according to the present invention is a clock switching circuit that selects and outputs an arbitrary clock as an output clock from a plurality of input clocks based on a clock selection input signal.
A selection signal storage unit that captures the clock selection input signal in synchronization with the output clock;
A switching signal generation unit for decoding the output of the selection signal storage unit and specifying an output clock;
A switching permission unit that is provided for each input clock, outputs a permission signal for capturing the output of the previous switching signal generation unit in synchronization with the input clock, and outputting the input clock as the output clock;
Clock selection means for generating an output clock from a set of outputs of the plurality of switching permission sections and a plurality of input clocks corresponding to each switching permission section.

上記クロック切替回路では、前記切替信号生成部は、他の切替信号生成部の許可信号が入力され、これら他の切替信号生成部の許可信号が存在する場合には該切替信号生成部の許可信号の出力を停止する。   In the clock switching circuit, the switching signal generation unit receives the permission signal of another switching signal generation unit, and when there is a permission signal of the other switching signal generation unit, the permission signal of the switching signal generation unit Stop the output of.

上述したように本発明のクロック切替回路は、同期、非同期またデューティ比等のクロックに対する制約を何ら設けることなく、切替時にハザードを生じる事が無く、さらには選択対象の入力クロックの数を、簡単に3以上にすることが可能なクロック切替回路を提供することができる。   As described above, the clock switching circuit of the present invention has no restrictions on clocks such as synchronous, asynchronous and duty ratio, does not cause a hazard at the time of switching, and further simplifies the number of input clocks to be selected. It is possible to provide a clock switching circuit that can be set to 3 or more.

[実施例1]
以下、本発明の一実施例を、添付の図面を用いて詳細に説明する。
[Example 1]
Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings.

図1は、本発明の一実施例に係るクロック切替回路のブロック図である。   FIG. 1 is a block diagram of a clock switching circuit according to an embodiment of the present invention.

クロック切替回路には、選択信号109が入力され、前記選択信号109は、選択信号記憶部100へ入力される。前記選択信号記憶部100の出力110は、切替信号生成部101へ入力される。前記切替信号生成部101は、位相、周波数の異なるクロック入力、CLK0、CLK1、CLK2、CLK3の外部クロック入力から任意の一つを選択するための選択信号103a、103b、103c、103dを出力する。前記切替信号生成部101から出力された選択信号103a〜103dは、該当する入力クロックの切替許可信号を生成する切替許可部102a、102b、102c、102dの入力となる。前記切替許可部102a〜102dには、前記選択信号103a〜103dおよび、該当クロックCLK0〜CLK3が入力される。そして、切替許可信号104a、104b、104c、104dを生成する。一方、前記切替許可部には、他系のクロックの切替許可部のクロック許可信号が入力される。前記切替許可部102a〜102dの出力である前記切替許可信号104a〜104dは、該当クロックCLK0〜CLK3と共に、クロック選択部111に入力され、クロック出力として、CLKOUTが出力される。クロック出力CLKOUTはインバータ108により反転され、前記選択信号記憶部100の前記選択信号取り込みクロックとして供給される。   A selection signal 109 is input to the clock switching circuit, and the selection signal 109 is input to the selection signal storage unit 100. The output 110 of the selection signal storage unit 100 is input to the switching signal generation unit 101. The switching signal generator 101 outputs selection signals 103a, 103b, 103c, and 103d for selecting any one of clock inputs having different phases and frequencies and external clock inputs of CLK0, CLK1, CLK2, and CLK3. The selection signals 103a to 103d output from the switching signal generation unit 101 are input to the switching permission units 102a, 102b, 102c, and 102d that generate a switching permission signal for the corresponding input clock. The selection signals 103a to 103d and the corresponding clocks CLK0 to CLK3 are input to the switching permission units 102a to 102d. Then, switching permission signals 104a, 104b, 104c, and 104d are generated. On the other hand, the clock permission signal of the switching permission section of another system clock is input to the switching permission section. The switching permission signals 104a to 104d that are the outputs of the switching permission sections 102a to 102d are input to the clock selection section 111 together with the corresponding clocks CLK0 to CLK3, and CLKOUT is output as the clock output. The clock output CLKOUT is inverted by the inverter 108 and supplied as the selection signal fetch clock of the selection signal storage unit 100.

本実施例では、前記選択信号109を、前記選択信号記憶部100に記憶してから、前記切替信号生成部101に入力しているが、これを逆にして、前記選択信号109を、前記切替信号生成部101に入力して、前記切替信号生成部101の出力である、前記選択信号103a〜103dを、選択信号記憶部100に入力しても良い。ただしこの場合は、前記選択信号記憶部100のビット数は、4ビットとなる。   In the present embodiment, the selection signal 109 is stored in the selection signal storage unit 100 and then input to the switching signal generation unit 101. However, the selection signal 109 is switched to the switching signal. The selection signals 103 a to 103 d that are the outputs of the switching signal generation unit 101 may be input to the selection signal storage unit 100 by being input to the signal generation unit 101. However, in this case, the number of bits of the selection signal storage unit 100 is 4 bits.

本実施例では、前記選択信号109は2ビットであり、前記選択信号記憶部100も2ビットである。前記選択信号生成部100は、Dタイプのフリップフロップなどで構成することが出来る。外部から与えられた前記選択信号109は、前記CLKOUTの立下りのタイミングで前記選択信号記憶部に、取り込まれ直ちに前記切替信号生成部101へ出力される。   In this embodiment, the selection signal 109 is 2 bits, and the selection signal storage unit 100 is also 2 bits. The selection signal generation unit 100 can be configured with a D-type flip-flop or the like. The selection signal 109 given from the outside is taken into the selection signal storage unit at the falling timing of the CLKOUT and immediately output to the switching signal generation unit 101.

前記切替信号生成部101は、2ビットの入力から4ビットの出力を生成するデコーダ回路である。前記切替信号生成部101は、前記選択信号生成部100の出力110の2ビットの組み合わせにより、前記選択信号103a〜103dのうちの唯一の信号をアクティブなレベルへ変化させる。(なお、本実施例ではHIGHレベルの状態にある場合をアクティブなレベルとする)
前記クロック選択部111は、前記CLK0〜CLK3と、前記切替許可部102a〜102dの出力である前記切替許可信号104a〜104dを入力とし、前記CLK0と前記切替許可信号104aが2入力ANDゲート105aに入力される。同様に、前記CLK1と前記切替許可信号104b、前記CLK2と前記切替許可信号104c、前記CLK3と前記切替許可信号104dが、それぞれ2入力ANDゲート105b、105c、105dへと入力される。前記2入力ANDゲート105a〜105dは、4入力のORゲート106へ入力され、選択回路を形成する。ここでは、2入力NADゲートと4入力ORゲートを用いているが、2入力NANDゲートと4入力のNANDゲート(つまり負入力のORゲート)を用いてもよい。
The switching signal generator 101 is a decoder circuit that generates a 4-bit output from a 2-bit input. The switching signal generation unit 101 changes the only one of the selection signals 103a to 103d to an active level according to a combination of 2 bits of the output 110 of the selection signal generation unit 100. (In this embodiment, the active level is the case of being in the HIGH level)
The clock selector 111 receives the CLK0 to CLK3 and the switching permission signals 104a to 104d that are the outputs of the switching permission sections 102a to 102d, and the CLK0 and the switching permission signal 104a are input to the two-input AND gate 105a. Entered. Similarly, the CLK1 and the switching permission signal 104b, the CLK2 and the switching permission signal 104c, and the CLK3 and the switching permission signal 104d are input to the two-input AND gates 105b, 105c, and 105d, respectively. The two-input AND gates 105a to 105d are input to a four-input OR gate 106 to form a selection circuit. Although a 2-input NAD gate and a 4-input OR gate are used here, a 2-input NAND gate and a 4-input NAND gate (that is, a negative input OR gate) may be used.

また、前記選択信号記憶部100は、本実施利では2ビットとしてあるが、1ビットでも、3ビット以上でも良く、1ビット以上の任意のビットに設定できる。さらに、前記切替信号生成部101は、前記選択信号記憶部100のビット巾に合わせた入力とすれば良い。すなわち、前記選択信号記憶部100が1ビットの場合は1ビットで出力が2本、前記選択信号記憶部100が2ビットの場合2ビットで出力が4本、そして前記選択信号記憶部100が3ビットの場合は3ビットの入力で、出力は8本となる。   The selection signal storage unit 100 is 2 bits in this embodiment, but may be 1 bit, 3 bits or more, and can be set to any bit of 1 bit or more. Further, the switching signal generation unit 101 may be input according to the bit width of the selection signal storage unit 100. That is, when the selection signal storage unit 100 is 1 bit, 1 bit is 2 outputs, when the selection signal storage unit 100 is 2 bits, 2 bits are 4 outputs, and the selection signal storage unit 100 is 3 bits. In the case of bits, there are 3 bits input and 8 outputs.

図4は、前記切替信号生成部101の内部構成回路図である。本実施例では、一般的な2ビットのデコーダ回路としてある。   FIG. 4 is an internal configuration circuit diagram of the switching signal generator 101. In this embodiment, it is a general 2-bit decoder circuit.

前記選択信号記憶部100の2ビットの出力110を、それぞれin1、in2とする。in1は、インバータ400に入力され、in2はインバータ401に入力されて、それぞれ反転出力が生成される。in1、in2およびそれぞれの反転出力の組み合わせが、2入力のアンドゲート402〜405に入力されて、選択信号103a〜103dが生成される。   The 2-bit output 110 of the selection signal storage unit 100 is set to in1 and in2. in1 is input to the inverter 400, and in2 is input to the inverter 401, and an inverted output is generated. A combination of in1, in2 and respective inverted outputs is input to two-input AND gates 402 to 405, and selection signals 103a to 103d are generated.

図2は、前記切替許可部102aおよび102b、102c、102dの内部回路図である。ここでは、CLK0の選択を行う、前記切替許可部102aについて説明を行う。なお、前記切替許可部102b〜102dの内部についてもまったく同じことが言えるため、ここでは説明を省略する。   FIG. 2 is an internal circuit diagram of the switching permission units 102a and 102b, 102c, and 102d. Here, the switching permission unit 102a for selecting CLK0 will be described. Since the same can be said for the inside of the switching permission units 102b to 102d, description thereof is omitted here.

2入力アンドゲート202には、DECn信号が接続されているが、これは図1中の前記選択信号103aとなる。前記2入力アンドゲート202のもう一方の入力には、負入力の3入力アンドゲート201の出力が接続される。前記3入力アンドゲート201は、負入力であるので、三つの入力がすべてLOWの時に、出力がHIGHとなる。これは、3入力のNORと同じ機能である。前記3入力アンドゲート201の入力は、CLKENi、CLKENj、CLKENkである。これら三つの入力は、他系のクロックを許可するための前記切替許可部102b〜102dの出力104b〜104dである。前記2入力アンドゲート202の出力は、Dフリップフロップ200のD入力となる。前記Dフリップフロップ200のクロック入力は、CLKn、すなわちCLK0をインバータ203で反転したものである。つまり、CLK0の立下りに同期してCLKENnを出力する。このCLKENnは前記切替許可信号104aとなる。   A DECn signal is connected to the 2-input AND gate 202, which becomes the selection signal 103a in FIG. The other input of the 2-input AND gate 202 is connected to the output of the negative 3-input AND gate 201. Since the three-input AND gate 201 is a negative input, the output is HIGH when all three inputs are LOW. This is the same function as a 3-input NOR. The inputs of the 3-input AND gate 201 are CLKENi, CLKENj, and CLKENk. These three inputs are outputs 104b to 104d of the switching permission units 102b to 102d for permitting clocks of other systems. The output of the 2-input AND gate 202 is the D input of the D flip-flop 200. The clock input of the D flip-flop 200 is CLKn, that is, CLK0 inverted by the inverter 203. That is, CLKENn is output in synchronization with the falling edge of CLK0. This CLKENn becomes the switching permission signal 104a.

次に、本発明のクロック切替回路の動作を、図5のタイミングチャートを使って説明する。   Next, the operation of the clock switching circuit of the present invention will be described with reference to the timing chart of FIG.

図5のタイミングチャートは、任意の時間で、前記選択信号109が“00b”であり、CLK0が選択されており、前記CLKOUTから出力されている。   In the timing chart of FIG. 5, at any time, the selection signal 109 is “00b”, CLK0 is selected and output from the CLKOUT.

この状態において、時間Tcに、前記選択信号109が“01b”に切替わる。前記時間Tcで切替わった前記選択信号109は、前記CLKOUTの立下りのタイミングである、時間T0で、前記選択信号記憶部100に取り込まれる。   In this state, the selection signal 109 switches to “01b” at time Tc. The selection signal 109 switched at the time Tc is taken into the selection signal storage unit 100 at time T0, which is the falling timing of the CLKOUT.

前記選択信号記憶部100の出力110は、前記切替信号生成部101に入力され、デコードされることで、これまでHIGHレベルであった前記選択信号103aがLOWレベルとなり、これまでLOWレベルであった前記選択信号103bがHIGHレベルとなる。   The output 110 of the selection signal storage unit 100 is input to the switching signal generation unit 101 and decoded, so that the selection signal 103a, which has been at a high level so far, becomes a low level, and has been at a low level until now. The selection signal 103b becomes HIGH level.

この時、他の前記選択信号103c、103dは、LOWレベルのままである。   At this time, the other selection signals 103c and 103d remain at the LOW level.

LOWレベルとなった前記選択信号103aは、前記選択信号102aに作用し、時間T1で、前記選択信号102aの出力である、前記切替許可信号104aがLOWレベルとなる。   The selection signal 103a that has reached the LOW level acts on the selection signal 102a, and at time T1, the switching permission signal 104a that is the output of the selection signal 102a becomes the LOW level.

前記時間T1で、前記切替許可信号104aがLOWレベルとなることで、図2中の前記3入力アンドゲート201の出力がHIGHレベルとなる。これにより、図2中の前記2入力アンドゲート202の一入力がHIGHレベルとなる。   At the time T1, the switching permission signal 104a becomes LOW level, so that the output of the 3-input AND gate 201 in FIG. 2 becomes HIGH level. As a result, one input of the two-input AND gate 202 in FIG. 2 becomes HIGH level.

一方、図2中の前記2入力アンドゲート202の他方の入力は、前記時間T0以降HIGHレベルとなっている。従って、図2中の前記2入力アンドゲート202の出力はHIGHレベルとなる。   On the other hand, the other input of the two-input AND gate 202 in FIG. 2 is at a HIGH level after the time T0. Therefore, the output of the two-input AND gate 202 in FIG. 2 becomes HIGH level.

従って、図2中の前記Dフリップフロップ200は、図2中の前記インバータ203により、前記CLK1の立下りであるところの、時間T2でHIGHレベルとなる。   Therefore, the D flip-flop 200 in FIG. 2 becomes HIGH level at time T2, which is the fall of the CLK1, by the inverter 203 in FIG.

この結果、前記時間T2で、前記切替許可信号104bがHIGHレベルとなる。   As a result, at the time T2, the switching permission signal 104b becomes HIGH level.

前記許可信号104bがHIGHレベルとなることで、前記クロック選択部111内部の2入力アンドゲート105bの一方の入力がHIGHとなり、他方の入力である前記CLK1が、前記2入力アンドゲート105bの出力となる。   When the permission signal 104b becomes HIGH level, one input of the 2-input AND gate 105b in the clock selection unit 111 becomes HIGH, and the other input, CLK1, is output from the 2-input AND gate 105b. Become.

ここで、前記切替信号生成部101の出力103a〜103dは、唯一の出力のみがHIGHになっているため、前記クロック選択部111内部の、他の2入力アンドゲート105a、105cおよび105dの一方の入力がLOWレベルである。よって、前記2入力アンドゲート105a、105cおよび105dの出力はLOWレベルとなる。   Here, since only the outputs 103a to 103d of the switching signal generator 101 are HIGH, one of the other two-input AND gates 105a, 105c, and 105d in the clock selector 111 is provided. Input is LOW level. Therefore, the outputs of the two-input AND gates 105a, 105c and 105d are at the LOW level.

時間Tc2で、前記選択信号109が、“01b”から“11b”に切替わった場合も、これまでの説明と同様に、時間T3で前記選択信号記憶部100に取込まれ、時間T4でこれまでの出力だった前記CLK1の前記許可信号104bがLOWレベルになり、その次の前記CLK3の立下りである、時間T5で、前記CLK3の前記許可信号104dがHIGHレベルとなる。   Even when the selection signal 109 is switched from “01b” to “11b” at time Tc2, it is taken into the selection signal storage unit 100 at time T3, and at time T4, as described above. The permission signal 104b of the CLK1 which has been output until becomes the LOW level, and the permission signal 104d of the CLK3 becomes the HIGH level at the time T5 which is the next falling of the CLK3.

従って、時間Tc3で、前記CLKOUTが前記CLK3に切替わることになる。   Therefore, at time Tc3, the CLKOUT is switched to the CLK3.

本発明のクロック切替回路では、前記CLK0の立下りである、前記時間T1で、前記CLK0の出力が禁止される。この時点では次に切替わるべきクロックの、前記切替許可信号104bは、まだHIGHレベルにはなっていない。次に切替わるべき前記CLK1の立下りである、前記時間T2で前記切替許可信号104bがHIGHレベルになるまで全てのクロックの出力が禁止される。以上の作用により、ハザードの無い良好なクロックの切替が可能となる。   In the clock switching circuit of the present invention, the output of the CLK0 is prohibited at the time T1, which is the fall of the CLK0. At this time, the switching permission signal 104b of the clock to be switched next is not yet HIGH level. Next, the output of all clocks is prohibited until the switching permission signal 104b becomes HIGH at the time T2, which is the fall of the CLK1 to be switched. With the above operation, it is possible to switch the clock without any hazard.

クロック切替回路についてのみ説明したが、複数のクロックを切換えて使用するマイコンあるいはCPUを使用する電子機器全般に本発明を適用することができる。   Although only the clock switching circuit has been described, the present invention can be applied to all electronic devices using a microcomputer or a CPU that switches and uses a plurality of clocks.

本発明の一実施形態を説明するブロック図The block diagram explaining one Embodiment of this invention 切替許可部の一実施例の内部ブロック図Internal block diagram of an embodiment of the switching permission unit 従来技術の一例のブロック図Block diagram of an example of the prior art 切替信号生成部の一実施例の内部ブロック図Internal block diagram of an embodiment of the switching signal generator 本発明の動作を説明するタイミングチャートTiming chart explaining operation of the present invention

符号の説明Explanation of symbols

100・・・選択信号記憶部、101・・・切替信号生成部、102a〜102d・・・切替許可部、103a〜103c・・・選択信号、104a〜104d・・・切替許可信号、105a〜105d・・・2入力アンドゲート、106・・・4入力オアゲート、107a〜107d・・・CLK0〜CLK3、108・・・インバータ、109・・・選択信号、110選択信号記憶部出力、111・・・クロック選択部、200・・・Dフリップフロップ、201・・・3入力アンドゲート、202・・・2入力アンドゲート、203・・・インバータ、300・・・クロック選択部、301・・・切替タイミング生成部、302・・・クロック切替調整部、400〜401・・・インバータ、402〜405・・・2入力アンドゲート   DESCRIPTION OF SYMBOLS 100 ... Selection signal memory | storage part, 101 ... Switching signal production | generation part, 102a-102d ... Switching permission part, 103a-103c ... Selection signal, 104a-104d ... Switching permission signal, 105a-105d ... 2 input AND gate, 106 ... 4 input OR gate, 107a to 107d ... CLK0 to CLK3, 108 ... inverter, 109 ... selection signal, 110 selection signal storage unit output, 111 ... Clock selection unit, 200 ... D flip-flop, 201 ... 3 input AND gate, 202 ... 2 input AND gate, 203 ... inverter, 300 ... clock selection unit, 301 ... switching timing Generation unit, 302... Clock switching adjustment unit, 400 to 401... Inverter, 402 to 405... 2 input AND gate

Claims (2)

複数の入力クロックから、クロック選択入力信号に基づき任意の1つのクロックを出力クロックとして選択し出力するクロック切替回路において、
前記出力クロックに同期して前記クロック選択入力信号を取り込む選択信号記憶部と、
前記選択信号記憶部の出力をデコードして出力クロックを特定するための切替信号生成部と、
前記入力クロック毎に設けられ、前期切替信号生成部の出力を該入力クロックに同期して取り込み該入力クロックを前記出力クロックとして出力するための許可信号を出力する切替許可部と、
複数の前記切替許可部の出力と前記切替許可部毎に対応した複数の入力クロックとの組から出力クロックを生成するクロック選択手段を持つ事、
を特徴とする、クロック切替回路。
In a clock switching circuit that selects and outputs an arbitrary clock as an output clock from a plurality of input clocks based on a clock selection input signal,
A selection signal storage unit that captures the clock selection input signal in synchronization with the output clock;
A switching signal generation unit for decoding the output of the selection signal storage unit and specifying an output clock;
A switching permission unit that is provided for each input clock, outputs a permission signal for capturing the output of the previous switching signal generation unit in synchronization with the input clock, and outputting the input clock as the output clock;
Having a clock selection means for generating an output clock from a set of a plurality of outputs and a plurality of input clocks corresponding to each switching permission unit;
A clock switching circuit.
前記切替信号生成部は、他の切替信号生成部の許可信号が入力され、これら他の切替信号生成部の許可信号が存在する場合には該切替信号生成部の許可信号の出力を停止する事を特徴とする請求項1記載のクロック切替回路。   The switching signal generation unit stops the output of the permission signal of the switching signal generation unit when the permission signal of the other switching signal generation unit is input and the permission signal of the other switching signal generation unit exists. The clock switching circuit according to claim 1.
JP2004064440A 2004-03-08 2004-03-08 Clock switching circuit Withdrawn JP2005251112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004064440A JP2005251112A (en) 2004-03-08 2004-03-08 Clock switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004064440A JP2005251112A (en) 2004-03-08 2004-03-08 Clock switching circuit

Publications (1)

Publication Number Publication Date
JP2005251112A true JP2005251112A (en) 2005-09-15

Family

ID=35031505

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004064440A Withdrawn JP2005251112A (en) 2004-03-08 2004-03-08 Clock switching circuit

Country Status (1)

Country Link
JP (1) JP2005251112A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010225057A (en) * 2009-03-25 2010-10-07 Seiko Epson Corp Clock switching circuit, integrated circuit device, and electronic device
CN107491366A (en) * 2016-06-13 2017-12-19 中兴通讯股份有限公司 Export clock generation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010225057A (en) * 2009-03-25 2010-10-07 Seiko Epson Corp Clock switching circuit, integrated circuit device, and electronic device
CN107491366A (en) * 2016-06-13 2017-12-19 中兴通讯股份有限公司 Export clock generation method and device

Similar Documents

Publication Publication Date Title
KR100512935B1 (en) Internal clock signal generating circuit and method
US20110116337A1 (en) Synchronising between clock domains
CN107545292B (en) Method and circuit for dynamic power control
JP2008059193A (en) Clock switching circuit
JP2001332961A (en) Clock-switching circuit
JP5885977B2 (en) PWM signal output circuit, PWM signal output control method, and program
JP2007086960A (en) Clock switching circuit
US6686780B2 (en) Frequency divider with selectable division factor
JP2005251112A (en) Clock switching circuit
US7345496B2 (en) Semiconductor apparatus and test execution method for semiconductor apparatus
US11238910B2 (en) Control signal generator and driving method thereof
JP3851906B2 (en) Pulse generation circuit
JP2003216268A (en) Circuit and method for selecting clock
JP2009141596A (en) Signal generating circuit
KR100422349B1 (en) Clock signal generator
CN113504809B (en) Dynamic switching method, device and system for multipath clocks
KR940008732B1 (en) Clock selected control circuit
KR100433933B1 (en) Clock noise reduction circuit
US5617310A (en) Multiple operation mode microcontroller
KR100460762B1 (en) Clock selection circuit
KR100278271B1 (en) A clock frequency divider
JP2003223237A (en) Clock switching circuit
JP2005129055A (en) Data interface device for sdram access
JPH05217004A (en) Microcomputer
JP2007251659A (en) Signal switching device and signal determining device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070605