JPH1091272A - Clock supply circuit - Google Patents

Clock supply circuit

Info

Publication number
JPH1091272A
JPH1091272A JP8244820A JP24482096A JPH1091272A JP H1091272 A JPH1091272 A JP H1091272A JP 8244820 A JP8244820 A JP 8244820A JP 24482096 A JP24482096 A JP 24482096A JP H1091272 A JPH1091272 A JP H1091272A
Authority
JP
Japan
Prior art keywords
clock
signal
output
state
input
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
JP8244820A
Other languages
Japanese (ja)
Inventor
Masayuki Nakamura
将之 中村
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP8244820A priority Critical patent/JPH1091272A/en
Publication of JPH1091272A publication Critical patent/JPH1091272A/en
Pending legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

(57)【要約】 【課題】 論理の破綻なくクロックの切り換えおよび動
作/停止状態の切り換えができ、低消費電力化が図れる
クロック供給回路を実現する。 【解決手段】 制御部10はクロック選択制御信号WL
K0 ,WLK1 およびクロック停止信号DOSEのレベ
ル変化に応じて状態変化指示信号HDIを発生し、これ
に応じてシーケンサ121は出力クロックが所定の状態
に達したときクロックを保持させるクロック保持信号H
DCを出力し、出力部20によりクロックを保持してか
ら、クロックの切り換えを行い、切り換えられたクロッ
クが保持したクロックと同様な状態に達したとき、クロ
ックの出力を再開させるので、出力クロックで動作する
論理回路において、論理の破綻および動作の乱れがな
く、クロックの切り換えが実現でき、動作状態に応じて
クロックを切り換えることにより、機器の低消費電力化
が図れる。
(57) [Problem] To provide a clock supply circuit capable of switching clocks and switching between an operation / stop state without breaking logic and achieving low power consumption. A control unit (10) controls a clock selection control signal (WL).
In response to the level changes of K 0 , WLK 1 and the clock stop signal DOSE, a state change instruction signal HDI is generated, and in response to this, the sequencer 121 holds the clock holding signal H for holding the clock when the output clock reaches a predetermined state.
The DC is output, the clock is switched by the output unit 20, the clock is switched, and when the switched clock reaches the same state as the retained clock, the output of the clock is restarted. In an operating logic circuit, clock switching can be realized without a logical breakdown or operation disorder, and by switching a clock in accordance with an operation state, power consumption of a device can be reduced.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数のクロックの
切り換え/停止/再動作を行える論理回路におけるクロ
ック供給回路に関するものである。
The present invention relates to a clock supply circuit in a logic circuit capable of switching / stopping / re-operating a plurality of clocks.

【0002】[0002]

【従来の技術】クロックに応じて動作する同期式の論理
回路において、複数の動作周波数を有するクロックを切
り換えて使用すること、または論理回路の一部ブロック
か全体のクロックを一時的に停止/再動作させることが
ある。これを実現するために、動作状態が遷移するステ
ートマシンを用いて出力クロックの切り換え/停止/再
動作のタイミングを制御するクロック供給回路が用いら
れている。
2. Description of the Related Art In a synchronous logic circuit which operates in response to a clock, a clock having a plurality of operating frequencies is switched and used, or a clock of a part of the block or the entire clock of the logic circuit is temporarily stopped / restarted. May operate. In order to realize this, a clock supply circuit that controls the timing of switching / stopping / re-operation of an output clock using a state machine in which an operation state transits is used.

【0003】複数の周波数のクロックを切り換えて使用
する回路例として、US Patent No.5086387 に示される
例がある。この例では原クロックとなる3種類のクロッ
クとクロック停止の状態を原クロックのタイミングに合
わせて、クロック供給回路により切り換えで出力クロッ
クを生成している。
[0003] As an example of a circuit in which clocks of a plurality of frequencies are switched and used, there is an example shown in US Patent No. 5083873. In this example, the output clock is generated by switching the three types of clocks serving as the original clocks and the clock stop state by the clock supply circuit in accordance with the timing of the original clocks.

【0004】クロックの一時的停止/再動作の回路例と
しては、特開平5−11876に示された例がある。こ
の例では3状態のステートマシンを用いることにより、
出力クロックの停止および再動作を正確に行うことがで
きる。
As an example of a circuit for temporarily stopping / restarting a clock, there is an example shown in Japanese Patent Laid-Open No. Hei 5-11876. In this example, by using a three-state machine,
The output clock can be stopped and restarted accurately.

【0005】[0005]

【発明が解決しようとする課題】ところで、上述した従
来のクロック供給回路においては、それぞれの問題点が
ある。例えば、US Patent No. 5086387 に示される例に
おいて、原クロックから選択信号を作成する際に遅延が
発生するため、遅延時間分のハザードが出力クロックに
載ってしまう恐れがある。また、特開平5−11876
に示された例においては、入力信号および出力信号に周
波数の異なる複数のクロックを用意した場合に、それら
の出力時の位相関係まで正確に制御することはできな
い。この位相のずれはクロックの停止状態から再動作を
行った場合に順次回路の動作の乱れを引き起こす恐れが
あるという問題がある。
The above-mentioned conventional clock supply circuits have respective problems. For example, in the example shown in US Pat. No. 5086387, since a delay occurs when a selection signal is generated from an original clock, a hazard corresponding to the delay time may be included in the output clock. In addition, Japanese Patent Application Laid-Open No. Hei 5-11876
In the example shown in (1), when a plurality of clocks having different frequencies are prepared for the input signal and the output signal, it is not possible to accurately control the phase relationship at the time of output. This phase shift poses a problem that when the clock is re-started from a stopped state, the operation of the circuit may be sequentially disrupted.

【0006】本発明は、かかる事情に鑑みてなされたも
のであり、その目的は、周波数の異なる複数のクロック
で動作する論理回路において、クロックの切り換え/停
止/再動作を位相の整合性も含めて正確に行うことがで
き、低消費電力化のためのブロックごとの動作周波数の
切り換えや停止をできることにより、このクロック供給
回路の供するクロックで動作する回路全体の消費電力の
低減を図れるクロック供給回路を提供することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a logic circuit which operates with a plurality of clocks having different frequencies, including clock switching / stopping / re-operation including phase matching. Clock supply circuit that can perform accurate and accurate operation, and can switch and stop the operating frequency of each block for low power consumption, thereby reducing the power consumption of the entire circuit that operates with the clock provided by the clock supply circuit Is to provide.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、複数のクロックを切り換えて出力クロッ
クとして供給可能なクロック供給回路であって、クロッ
ク切り換え指示信号を受けて、出力クロックのレベルを
保持させるクロック保持信号を出力し、出力クロックが
保持されてからクロックの切り換えを行うクロック切り
換え手段と、上記クロック切り換え手段からのクロック
保持信号を受け、出力クロックを保持し、上記切り換え
手段により切り換えられたクロックと保持されたクロッ
クが同様な状態になったとき、クロックを外部に出力す
る出力手段とを有する。
According to the present invention, there is provided a clock supply circuit capable of switching between a plurality of clocks and supplying the output clock as an output clock. A clock switching means for outputting a clock holding signal for holding the level and switching the clock after the output clock is held; and receiving the clock holding signal from the clock switching means, holding the output clock, and Output means for outputting the clock to the outside when the switched clock and the held clock are in the same state.

【0008】また、本発明では、上記出力手段の出力ク
ロックが予め設定された位相状態になっているか否かを
判定し、出力クロックが予め設定された位相状態になっ
たとき、第1のタイミング信号を出力する第1の判定回
路を有し、かつ、上記クロック切り換え手段により切り
換えられたクロックが上記予め設定された位相状態にな
っているか否かを判定し、切り換えられたクロックが上
記予め設定された位相状態になったとき、第2のタイミ
ング信号を出力する第2の判定回路を有する。
Further, in the present invention, it is determined whether or not the output clock of the output means is in a preset phase state, and when the output clock is in the preset phase state, the first timing A first determination circuit for outputting a signal; and determining whether or not the clock switched by the clock switching means is in the preset phase state. A second determination circuit that outputs a second timing signal when the phase state is reached.

【0009】さらに、本発明では、上記クロック切り換
え手段は、上記クロック切り換え指示信号を受けてか
ら、上記第1のタイミング信号に応じて、上記出力手段
に上記出力クロックを保持させるクロック保持信号を出
力し、上記第2のタイミング信号に応じて、上記出力手
段に出力クロックの保持状態を解除させる解除信号を出
力し、上記出力手段は、上記クロック切り換え手段から
の解除信号を受けて、上記クロック切り換え手段により
切り換えられたクロックを外部に出力する。
Further, in the present invention, the clock switching means outputs a clock holding signal for causing the output means to hold the output clock in response to the first timing signal after receiving the clock switching instruction signal. In response to the second timing signal, the output means outputs a release signal for releasing the holding state of the output clock, and the output means receives the release signal from the clock switching means, and The clock switched by the means is output to the outside.

【0010】本発明によれば、クロック切り換え指示信
号を受けて、第1の判定回路により、出力クロックが所
定の状態に達したと判定されたとき、クロック切り換え
手段により出力手段にクロックを保持させるクロック保
持信号が出力され、出力クロックが保持された状態でク
ロックの切り換えが行われ、そして、切り換えたクロッ
クが第2の判定回路により、保持された出力クロックと
同様な状態に達したと判定されたとき、出力手段によ
り、出力クロックの保持状態が解除され、クロックの出
力が再開される。
According to the present invention, the clock switching means causes the output means to hold the clock when the first determination circuit determines that the output clock has reached the predetermined state in response to the clock switching instruction signal. A clock holding signal is output, clock switching is performed with the output clock held, and the second determination circuit determines that the switched clock has reached a state similar to the held output clock. Then, the holding state of the output clock is released by the output means, and the output of the clock is restarted.

【0011】これにより、出力クロックで動作する論理
回路において、論理の破綻および動作の乱れがなく、ク
ロックの切り換えを実現でき、かつ、動作状態に応じて
クロックを切り換えることにより、機器全体の消費電力
を低減できる。
[0011] Thus, in a logic circuit operated by an output clock, clock switching can be realized without logic breakdown and operation disturbance, and by switching the clock in accordance with the operation state, the power consumption of the entire device is reduced. Can be reduced.

【0012】[0012]

【発明の実施の形態】図1は本発明に係るクロック供給
回路の一実施形態を示す回路図であり、本発明の一構成
例を示すブロック図である。図示のように、本例のクロ
ック供給回路は制御部10、出力部20およびクロック
発生部30により構成され、論理回路40は出力部20
により供給されたクロックで動作する。
FIG. 1 is a circuit diagram showing one embodiment of a clock supply circuit according to the present invention, and is a block diagram showing one configuration example of the present invention. As shown in the figure, the clock supply circuit of the present example includes a control unit 10, an output unit 20, and a clock generation unit 30, and the logic circuit 40 includes an output unit 20.
It operates on the clock supplied by.

【0013】クロック発生部30は、クロック信号SC
LKを生成し、制御部10および出力部20にそれぞれ
供給する。制御部10は、クロック発生部30からのク
ロック信号SCLKを受けて、選択部20に各種の制御
信号S10を出力する。出力部20は、クロック発生部
30からのクロック信号SCLKおよび制御部10から
の制御信号S10を受けて、周波数の異なる複数のクロ
ック信号から所定のクロック信号を選択して、論理回路
40に供給する。また、出力部20から出力されたクロ
ック信号の一部分が制御部10に供給される。
[0013] The clock generator 30 is provided with a clock signal SC.
LK is generated and supplied to the control unit 10 and the output unit 20, respectively. The control unit 10 receives the clock signal SCLK from the clock generation unit 30 and outputs various control signals S10 to the selection unit 20. The output unit 20 receives the clock signal SCLK from the clock generation unit 30 and the control signal S10 from the control unit 10, selects a predetermined clock signal from a plurality of clock signals having different frequencies, and supplies the selected clock signal to the logic circuit 40. . A part of the clock signal output from the output unit 20 is supplied to the control unit 10.

【0014】本実施形態において、クロック発生部30
により発生されたクロック信号SCLKが制御部10お
よび出力部20に供給され、制御部10により、クロッ
クを選択するための制御信号が生成され、出力部20に
出力される。そして、出力部20により、クロック信号
SCLKに基づき生成された周波数の異なる複数のクロ
ック信号から、所定の周波数を有するクロック信号を選
択して、選択されたクロック信号が、例えば、CPUな
どの演算処理装置に供給される。
In this embodiment, the clock generator 30
Is supplied to the control unit 10 and the output unit 20, and the control unit 10 generates a control signal for selecting a clock, and outputs the control signal to the output unit 20. Then, the output unit 20 selects a clock signal having a predetermined frequency from a plurality of clock signals having different frequencies generated based on the clock signal SCLK, and the selected clock signal is processed by, for example, an arithmetic processing unit such as a CPU. Supplied to the device.

【0015】図2は制御部10の一構成例を示す回路図
である。図示のように、制御部10はラッチ100,1
01,102、エクスクルーシブORゲート103,1
04,105、ORゲート106、NORゲート10
7、NANDゲート108、イネーブル付きバッファ1
09,110、インバータ111,112,113,1
14,115,116、ANDゲート117,118,
119、ラッチ120およびシーケンサ121により構
成されている。
FIG. 2 is a circuit diagram showing an example of the configuration of the control unit 10. As shown, the control unit 10 includes latches 100, 1
01, 102, exclusive OR gate 103, 1
04, 105, OR gate 106, NOR gate 10
7, NAND gate 108, buffer 1 with enable
09, 110, inverters 111, 112, 113, 1
14, 115, 116, AND gates 117, 118,
119, a latch 120 and a sequencer 121.

【0016】ラッチ100は、クロックPCLKの、例
えば、立ち上がりエッジにおいて、入力端子IN0 ,I
N1 ,IN2 に入力された三つの信号WLK0 ,WLK
1 ,DOSEをラッチして、出力端子Q0 ,Q1 ,Q2
に出力する。ラッチ101の入力端子IN0 ,IN1 ,
IN2 はそれぞれラッチ100の出力端子Q0 ,Q1 ,
Q2 に接続されているので、ラッチ101は、クロック
PCLKの反転信号/PCLKの立ち上がりエッジにお
いて、ラッチ100から入力された三つの信号をラッチ
して、ラッチ102に出力する。ラッチ102の入力端
子IN0 ,IN1 ,IN2 はそれぞれラッチ101の出
力端子Q0 ,Q1 ,Q2 に接続されているので、ラッチ
102は、クロックPCLKの、例えば、立ち上がりエ
ッジにおいて、ラッチ101から入力された三つの信号
をラッチして出力する。
The latch 100 operates at the input terminals IN 0 , I at the rising edge of the clock PCLK, for example.
Three signals WLK 0 and WLK input to N 1 and IN 2
1 and DOSE are latched and output terminals Q 0 , Q 1 and Q 2 are latched.
Output to The input terminals IN 0 , IN 1 ,
IN 2 are output terminals Q 0 , Q 1 ,
Because it is connected to the Q 2, the latch 101 on the rising edge of the inverted signal / PCLK clock PCLK, latches the three signals input from the latch 100, and outputs the latch 102. Since the input terminals IN 0 , IN 1 , and IN 2 of the latch 102 are connected to the output terminals Q 0 , Q 1 , and Q 2 of the latch 101, respectively, the latch 102 latches at the rising edge of the clock PCLK, for example. The three signals input from 101 are latched and output.

【0017】エクスクルーシブORゲート103の入力
端子がラッチ100の出力端子Q0およびラッチ102
の出力端子Q0 に接続され、出力端子がORゲート10
6の一の入力端子に接続されている。エクスクルーシブ
ORゲート104の入力端子がラッチ100の出力端子
Q1およびラッチ102の出力端子Q1 に接続され、出
力端子がORゲート106のもう一つの入力端子に接続
されている。エクスクルーシブORゲート105の入力
端子がラッチ100の出力端子Q2およびラッチ102
の出力端子Q2 に接続され、出力端子がORゲート10
6のもう一つの入力端子に接続されている。
The input terminal of the exclusive OR gate 103 is connected to the output terminal Q 0 of the latch 100 and the latch 102.
It is connected to the output terminal Q 0 of the output terminal OR gate 10
6 are connected to one input terminal. Input terminal of the exclusive OR gate 104 is connected to the output terminal to Q 1 output terminals Q 1 and latch 102 of the latch 100, the output terminal is connected to another input terminal of the OR gate 106. The input terminal of the exclusive OR gate 105 is connected to the output terminal Q 2 of the latch 100 and the latch 102.
It is connected to the output terminal Q 2, the output terminal OR gate 10
6 is connected to another input terminal.

【0018】ORゲート106は、エクスクルーシブO
Rゲート103,104,105の出力信号を受けて、
状態変化指示信号HDIを生成して、シーケンサ121
に出力する。
The OR gate 106 has an exclusive O
Upon receiving the output signals of the R gates 103, 104 and 105,
A state change instruction signal HDI is generated, and the sequencer 121
Output to

【0019】ラッチ100に入力された信号WLK0 お
よびWLK1 はクロック供給回路の出力クロックを指定
するクロック選択制御信号であり、これらの制御信号の
論理の組合せにより、4種類の出力クロックが指定され
る。ラッチ100に入力された信号DOSEはクロック
信号の停止を指定するクロック停止信号である。このク
ロック停止信号DOSEのレベルに応じて、クロック供
給回路は、出力するクロックの動作/停止状態を制御す
る。
The signals WLK 0 and WLK 1 input to the latch 100 are clock selection control signals for specifying the output clock of the clock supply circuit. Four types of output clocks are specified by a combination of the logic of these control signals. You. The signal DOSE input to the latch 100 is a clock stop signal designating stop of the clock signal. The clock supply circuit controls the operation / stop state of the output clock according to the level of the clock stop signal DOSE.

【0020】ラッチ100,101,102、エクスク
ルーシブORゲート103,104,105およびOR
ゲート106により、状態変化指示信号HDIの生成回
路が構成されている。クロック選択制御信号WLK0 ,
WLK1 およびクロック停止信号DOSEの内何れかレ
ベル変化が生じるとき、状態変化指示信号HDIが生成
され、シーケンサ121の入力端子IN0 に入力され
る。なお、状態変化指示信号HDIは、例えば、クロッ
クPCLKの1周期分の間にハイレベルに保持されるパ
ルス信号である。
Latches 100, 101, 102, exclusive OR gates 103, 104, 105 and OR
The gate 106 forms a circuit for generating the state change instruction signal HDI. The clock selection control signals WLK 0 ,
When any level change of WLK 1 and the clock stop signal DOSE occurs, the state change instruction signal HDI is generated and input to the input terminal IN 0 of the sequencer 121. The state change instruction signal HDI is, for example, a pulse signal that is held at a high level during one cycle of the clock PCLK.

【0021】また、クロック選択制御信号WLK0 ,W
LK1 はそれぞれNORゲート107、NANDゲート
108、ANDゲート119およびラッチ120に入力
される。
The clock selection control signals WLK 0 , W
LK 1 is input to a NOR gate 107, a NAND gate 108, an AND gate 119, and a latch 120, respectively.

【0022】NORゲート107は、クロック選択制御
信号WLK0 ,WLK1 を受けて、これらの信号の負の
論理和S107を生成し、イネーブル付きバッファ10
9のイネーブル信号入力端子enに入力される。NAN
Dゲート108は、クロック選択制御信号WLK0 ,W
LK1 を受けて、これらの信号の負の論理積S108を
生成し、イネーブル付きバッファ110のイネーブル信
号入力端子enに入力される。
NOR gate 107 receives clock selection control signals WLK 0 and WLK 1 , generates a negative logical sum S 107 of these signals, and generates buffer 10 with enable.
9 enable signal input terminal en. NAN
The D gate 108 controls the clock selection control signals WLK 0 , W
Receiving LK 1 , a negative logical product S 108 of these signals is generated and input to the enable signal input terminal en of the buffer with enable 110.

【0023】イネーブル付きバッファ109はイネーブ
ル信号入力端子enに入力されているイネーブル信号の
レベルに応じて、入力端子に入力されている外部クロッ
クECKを出力端子に出力する。例えば、イネーブル信
号入力端子enにハイレベルのイネーブル信号が入力さ
れているとき、外部クロックECKを出力端子に出力す
る。それ以外のとき、外部クロックECKの出力を行わ
ない。同様に、イネーブル付きバッファ110はイネー
ブル信号入力端子enに入力されているイネーブル信号
のレベルに応じて、入力端子に入力されている制御信号
STPを出力端子に出力する。例えば、イネーブル信号
入力端子enにハイレベルのイネーブル信号が入力され
ているとき、制御信号STPを出力端子に出力する。そ
れ以外のとき、制御信号STPの出力を行わない。
The buffer with enable 109 outputs the external clock ECK input to the input terminal to the output terminal according to the level of the enable signal input to the enable signal input terminal en. For example, when a high-level enable signal is input to the enable signal input terminal en, the external clock ECK is output to the output terminal. At other times, the external clock ECK is not output. Similarly, the buffer with enable 110 outputs the control signal STP input to the input terminal to the output terminal according to the level of the enable signal input to the enable signal input terminal en. For example, when a high-level enable signal is input to the enable signal input terminal en, the control signal STP is output to the output terminal. At other times, the control signal STP is not output.

【0024】イネーブル付きバッファ109により出力
された外部クロックECKは、ラッチ信号ECK_LA
Tとして、クロック供給回路の出力部20に出力され、
またインバータ114で反転され、ANDゲート119
に入力される。また、イネーブル付きバッファ110に
より出力された制御信号STPはラッチ信号STP_L
ATとして、クロック供給回路の出力部20に出力さ
れ、またANDゲート119に入力される。
The external clock ECK output from the buffer with enable 109 is a latch signal ECK_LA
As T, it is output to the output unit 20 of the clock supply circuit,
The signal is inverted by the inverter 114 and the AND gate 119
Is input to The control signal STP output from the buffer with enable 110 is the latch signal STP_L.
The signal AT is output to the output unit 20 of the clock supply circuit, and is input to the AND gate 119.

【0025】出力部20から出力されたクロック信号φ
1 はインバータ111により反転され、ANDゲート1
17に入力され、出力部20から出力されたクロック信
号φ 2 はそのままANDゲート117に入力され、ま
た、出力部20から出力されたクロック信号φ3 はイン
バータ112により反転され、ANDゲート117に入
力され、さらに、出力部20から出力されたクロック信
号CLKはインバータ113により反転され、ANDゲ
ート117に入力される。
The clock signal φ output from the output unit 20
1Is inverted by the inverter 111, and the AND gate 1
17 and the clock signal output from the output unit 20.
No.φ TwoIs input to the AND gate 117 as it is,
The clock signal φ output from the output unit 20ThreeIs in
It is inverted by the barter 112 and enters the AND gate 117.
And the clock signal output from the output unit 20.
The signal CLK is inverted by the inverter 113, and
Is input to the gateway 117.

【0026】ANDゲート117はこれらの信号を受け
て、タイミング信号HDTを発生し、シーケンサ121
の入力端子IN1 に入力する。即ち、出力部20から出
力されたクロック信号φ1 ,φ3 ,CLKがすべてロー
レベル、かつ、クロック信号φ2 がハイレベルのとき、
ANDゲート117によりハイレベルのタイミング信号
HDTが出力され、それ以外のとき、ANDゲート11
7によりローレベルのタイミング信号HDTが出力され
る。
An AND gate 117 receives these signals, generates a timing signal HDT, and generates a timing signal HDT.
Is input to the input terminal IN 1. That is, when the clock signals φ 1 , φ 3 , and CLK output from the output unit 20 are all low and the clock signal φ 2 is high,
The high-level timing signal HDT is output by the AND gate 117, and otherwise, the AND gate 11
7 outputs a low-level timing signal HDT.

【0027】出力部20におけるクロック選択器201
からのクロックBCLKはインバータ115を介して、
ANDゲート118に入力され、クロック選択器201
からのクロックBCLK2Xはインバータ116を介し
て、ANDゲート118に入力される。ANDゲート1
18はこれらの入力信号に応じて、クロック保持解除信
号HDRを発生し、シーケンサ121の入力端子IN2
に入力する。即ち、クロック選択器201から出力され
たクロックBCLK,BCLK2Xがともにローレベル
のとき、ANDゲート118により、ハイレベルのクロ
ック保持解除信号HDRが出力される。それ以外のと
き、ANDゲート118により、ローレベルのクロック
保持解除信号HDRが出力される。
The clock selector 201 in the output unit 20
From the clock BCLK via the inverter 115
The signal is input to the AND gate 118 and the clock selector 201
Is input to an AND gate 118 via an inverter 116. AND gate 1
18 generates a clock holding release signal HDR in response to these input signals, and generates an input terminal IN 2 of the sequencer 121.
To enter. That is, when the clocks BCLK and BCLK2X output from the clock selector 201 are both at a low level, the AND gate 118 outputs a high-level clock holding release signal HDR. At other times, the AND gate 118 outputs a low-level clock hold release signal HDR.

【0028】ANDゲート119はクロック選択制御信
号WLK0 ,WLK1 、インバータ114からの外部ク
ロックECKの反転信号およびイネーブル付きバッファ
110からの制御信号STPを受けて、これらの信号の
論理積S119を生成し、ラッチ120に出力する。
AND gate 119 receives clock selection control signals WLK 0 , WLK 1 , an inverted signal of external clock ECK from inverter 114 and control signal STP from buffer 110 with enable, and generates logical product S 119 of these signals. Then, the data is output to the latch 120.

【0029】ラッチ120は、シーケンサ121からの
クロック変化信号CHGのタイミングで、入力側に入力
された信号を出力側に出力する。なお、ラッチ120は
リセット信号入力端子に入力されたリセット信号res
etのレベルに応じて、例えば、ローレベルのリセット
信号resetを受けたとき、出力端子をすべてリセッ
トする。
The latch 120 outputs the signal input to the input side to the output side at the timing of the clock change signal CHG from the sequencer 121. The latch 120 is connected to the reset signal res input to the reset signal input terminal.
For example, when receiving a low-level reset signal reset according to the level of et, all the output terminals are reset.

【0030】シーケンサ121からのクロック変化信号
CHGの、例えば、立ち上がりエッジにおいて、ラッチ
120は入力端子IN0 ,IN1 に入力されたクロック
選択制御信号WLK0 ,WLK1 のレベルに応じて、2
ビットのクロック選択信号SECを出力端子Q0 ,Q1
に出力する。また、ラッチ120はクロック変化信号C
HGの立ち上がりエッジにおいて、入力端子IN2 に入
力されたS119のレベルに応じて、出力端子Q2 に制
御信号STP_LATを出力する。また、ラッチ120
はクロック変化信号CHGの立ち上がりエッジにおい
て、入力端子IN3 に入力されたクロック停止信号DO
SEのレベルをラッチし、出力端子Q3 にそのラッチ信
号DOSE_LATを出力する。さらに、ラッチ120
はクロック変化信号CHGの立ち上がりエッジにおい
て、入力端子IN4 に入力されたCPU停止信号CPS
のレベルをラッチし、出力端子Q4 にそのラッチ信号C
PS_LATを出力する。
At the rising edge of the clock change signal CHG from the sequencer 121, for example, at the rising edge, the latch 120 operates according to the levels of the clock selection control signals WLK 0 and WLK 1 input to the input terminals IN 0 and IN 1.
Bit clock selection signal SEC to output terminals Q 0 , Q 1
Output to In addition, the latch 120 outputs the clock change signal C
At the rising edge of HG, depending on the level of S119 that is input to the input terminal IN 2, and outputs a control signal STP_LAT the output terminal Q 2. Also, the latch 120
Is the clock stop signal DO input to the input terminal IN 3 at the rising edge of the clock change signal CHG.
It latches the level of the SE, and outputs the latch signal DOSE_LAT to the output terminal Q 3. Further, the latch 120
Is the CPU stop signal CPS input to the input terminal IN 4 at the rising edge of the clock change signal CHG.
It latches the level of the latch signal C to the output terminal Q 4
Output PS_LAT.

【0031】シーケンサ121は、入力端子IN0 に入
力された状態変化指示信号HDI、入力端子IN1 に入
力されたタイミング信号HDT、入力端子IN2 に入力
されたクロック保持解除信号HDRおよびクロック端子
CKに入力されたクロック信号SCLKのレベルに応じ
て、クロック保持信号HDCおよびクロック変化信号C
HGを出力する。
The sequencer 121 includes a state change instruction signal HDI input to the input terminal IN 0 , a timing signal HDT input to the input terminal IN 1 , a clock hold release signal HDR input to the input terminal IN 2 , and a clock terminal CK. Clock holding signal HDC and clock change signal C according to the level of clock signal SCLK input to
Output HG.

【0032】図3はシーケンサ121の動作時の状態遷
移を示す状態遷移図である。図示のように、シーケンサ
121は6つの動作状態S0〜S5を有する。以下、図
3の状態遷移図を参照しつつ、シーケンサ121の動作
について説明する。
FIG. 3 is a state transition diagram showing the state transition when the sequencer 121 operates. As shown, the sequencer 121 has six operation states S0 to S5. Hereinafter, the operation of the sequencer 121 will be described with reference to the state transition diagram of FIG.

【0033】通常動作時に、シーケンサ121は状態S
0にあり、クロック供給回路により、所定のクロック信
号が外部に供給される。このとき、シーケンサ121は
状態変化指示信号HDIのレベルを監視し、状態変化指
示信号HDIがローレベルに保持されている場合、状態
S0からの状態遷移は起こらず、状態変化指示信号HD
Iがローレベルからハイレベルに切り換わったとき、シ
ーケンサ121は状態S1に遷移する。
During normal operation, the sequencer 121 is in the state S
0, and a predetermined clock signal is externally supplied by the clock supply circuit. At this time, the sequencer 121 monitors the level of the state change instruction signal HDI, and if the state change instruction signal HDI is held at a low level, the state transition from the state S0 does not occur, and the state change instruction signal HDI
When I switches from low level to high level, the sequencer 121 transitions to the state S1.

【0034】状態S1において、シーケンサ121はタ
イミング信号HDTのレベルを監視し、タイミング信号
HDTがローレベルに保持されているとき、動作状態の
遷移は起こらず、タイミング信号HDTがローレベルか
らハイレベルに切り換わったとき、シーケンサ121は
状態S2に遷移する。
In the state S1, the sequencer 121 monitors the level of the timing signal HDT. When the timing signal HDT is held at the low level, no transition of the operation state occurs, and the timing signal HDT changes from the low level to the high level. When switched, the sequencer 121 transitions to the state S2.

【0035】状態S2においては、シーケンサ121は
クロック保持信号HDCをハイレベルに切り換えた後、
状態S3に遷移する。即ち、シーケンサ121は状態S
2で保持されず、無条件に次の状態S3に進む。シーケ
ンサ121からハイレベルのクロック保持信号HDCを
受けると、出力部20は、出力するクロック信号を保持
する。即ち、出力クロック信号は所定の位相関係の状態
で停止する。
In the state S2, the sequencer 121 switches the clock holding signal HDC to a high level,
Transition to the state S3. That is, the sequencer 121 is in the state S
The state is not held at 2, and the process unconditionally proceeds to the next state S3. When receiving the high-level clock holding signal HDC from the sequencer 121, the output unit 20 holds the clock signal to be output. That is, the output clock signal stops at a predetermined phase relationship.

【0036】状態S3においては、クロック信号の変更
を行う。また、停止状態にあたるクロック信号を選択す
ることもできる。ただし、この状態においては、シーケ
ンサ121により、クロック変化信号CHGがハイレベ
ルに保持されるが、出力信号に変化は生じない。状態S
3も保持されず、無条件に次の状態S4に遷移する。
In the state S3, the clock signal is changed. Further, it is possible to select a clock signal which is in a stopped state. However, in this state, although the clock change signal CHG is held at the high level by the sequencer 121, no change occurs in the output signal. State S
3 is not held, and unconditionally transits to the next state S4.

【0037】状態S4において、シーケンサ121はク
ロック信号を再動作させるタイミングを制御する。保持
された出力クロック信号とクロック選択器201により
出力されたクロック信号CLK,CLK2Xの位相関係
が同一になるまで出力クロック信号を保持し続ける。出
力信号の位相とクロック選択器201からの出力クロッ
クの位相が一致することを示すクロック保持解除信号H
DRがハイレベルになるまで、この状態からの遷移が起
こらない。ハイレベルのクロック保持解除信号HDRが
入力されたとき、次の状態S5に遷移する。
In the state S4, the sequencer 121 controls the timing of restarting the clock signal. The output clock signal is kept held until the phase relationship between the held output clock signal and the clock signals CLK and CLK2X output by the clock selector 201 becomes the same. A clock release signal H indicating that the phase of the output signal matches the phase of the output clock from the clock selector 201.
No transition from this state occurs until DR goes high. When the high-level clock hold release signal HDR is input, the state transits to the next state S5.

【0038】状態S5において、シーケンサ121は保
持された出力クロック信号とクロック選択器201から
の出力クロックの位相関係が一致することを確認した
後、クロック信号の保持を解除し、クロックの出力を再
開され、動作周波数の変更、あるいは停止が実行され
る。このとき、クロック保持信号HDCがハイレベルか
らローレベルに切り換えられる。状態S5は保持され
ず、通常状態である状態S0に遷移する。
In the state S5, the sequencer 121 confirms that the phase relationship between the held output clock signal and the output clock from the clock selector 201 matches, then releases the holding of the clock signal and restarts the clock output. Then, the operating frequency is changed or stopped. At this time, the clock holding signal HDC is switched from the high level to the low level. State S5 is not held, and transits to state S0, which is a normal state.

【0039】シーケンサ121から出力された制御信号
に応じて、制御部10および出力部20の動作が制御さ
れ、クロック信号の切り換えおよびクロック信号の動作
/停止/再動作の状態変化を実現できる。また、上述し
たシーケンサ121により、クロック信号の切り換えお
よび動作/停止状態の変更時にハザードや位相ずれの発
生を防止できる。
The operations of the control unit 10 and the output unit 20 are controlled in accordance with the control signal output from the sequencer 121, so that the switching of the clock signal and the change in the state of the operation / stop / re-operation of the clock signal can be realized. In addition, the above-described sequencer 121 can prevent occurrence of a hazard and a phase shift when switching a clock signal and changing an operation / stop state.

【0040】なお、以上において、シーケンサ121の
制御によりクロックの切り換えの動作について説明し
た。クロックの動作/停止/再動作はクロック停止信号
DOSEにより制御される。クロック停止信号DOSE
は、通常動作時にローレベル、例えば、接地電位GND
レベルに保持されている。クロックの供給を停止させる
とき、クロック停止信号DOSEがハイレベル、例え
ば、電源電圧VCCレベルに切り換えられる。
The switching operation of the clock under the control of the sequencer 121 has been described above. The clock operation / stop / re-operation is controlled by a clock stop signal DOSE. Clock stop signal DOSE
Is at a low level during normal operation, for example, the ground potential GND.
Held on level. When stopping the supply of the clock, the clock stop signal DOSE is switched to a high level, for example, the power supply voltage V CC level.

【0041】これに応じて、出力部20により出力され
たクロックが保持される。そして、クロック停止信号D
OSEがハイレベルに保持されている間、各クロック信
号のレベルは変化しない。
In response, the clock output by the output unit 20 is held. Then, the clock stop signal D
While the OSE is kept at the high level, the level of each clock signal does not change.

【0042】なお、クロックは停止状態から再動作状態
への切り換えは、クロック停止信号DOSEをハイレベ
ルからローレベルに切り換えることで行われる。クロッ
ク停止信号DOSEの立ち下がりエッジにおいて、OR
ゲート106により、状態変化指示信号HDIが発生さ
れ、シーケンサ121に入力される。これに応じて、シ
ーケンサ121においては状態遷移が起き、再動作後に
指定されたクロック信号の切り換えが行われた後、出力
部20から出力されたクロックBCLK,BCLK2X
の位相が保持されたクロックの位相と一致したとき、ク
ロックの出力が再開される。
The switching of the clock from the stop state to the re-operation state is performed by switching the clock stop signal DOSE from a high level to a low level. At the falling edge of the clock stop signal DOSE, OR
The gate 106 generates a state change instruction signal HDI and inputs it to the sequencer 121. In response to this, a state transition occurs in the sequencer 121, and after switching of the designated clock signal after the restart, the clocks BCLK and BCLK2X output from the output unit 20 are output.
Is output, the output of the clock is restarted.

【0043】図4は出力部20の一構成例を示す回路図
である。図示のように、本例の出力部20は分周器20
0、クロック選択器201、NANDゲート202,2
03,204、ANDゲート205,206,207,
208,225,226,227,228,229、セ
レクタ209,210,211,212,213および
ラッチ214により構成されている。
FIG. 4 is a circuit diagram showing an example of the configuration of the output section 20. As shown in the figure, the output unit 20 of this example is a frequency divider 20.
0, clock selector 201, NAND gates 202, 2
03,204, AND gates 205,206,207,
208, 225, 226, 227, 228, 229, selectors 209, 210, 211, 212, 213 and a latch 214.

【0044】分周器200の入力端子INに、クロック
発生部30により発生されたクロック信号SCLKが入
力される。分周器200は、入力されたクロック信号S
CLKの周波数をfS とすると、周波数fS /2のクロ
ックPCLK、周波数fS /4のクロックPCLK1 、
周波数fS /8のクロックPCLK2 、周波数fS /1
6のクロックPCLK3 および周波数fS /32のクロ
ックPCLK4 の五種類のクロック信号を生成して、ク
ロック選択器201に出力する。
The clock signal SCLK generated by the clock generator 30 is input to the input terminal IN of the frequency divider 200. The frequency divider 200 receives the input clock signal S
When the frequency of the CLK and f S, the frequency f S / 2 clock PCLK, clock PCLK 1 frequency f S / 4,
Clock PCLK 2 of frequency f s / 8, frequency f s / 1
It generates a 6 five kinds of clock signals of the clock PCLK 3 and the frequency f S / 32 clock PCLK 4, and outputs the clock selector 201.

【0045】クロック選択器201は、制御部10から
入力された2ビットのクロック選択信号SECに応じ
て、分周器200から入力されたクロックPCLK,P
CLK 1 ,PCLK2 ,PCLK3 ,PCLK4 の内か
ら、周波数fO のクロック信号BCLKおよび周波数2
fO のクロック信号BCLK2Xを選択して出力する。
なお、周波数fO は周波数fS /4,fS /8,fS /
16,fS /32の何れである。
The clock selector 201 receives a signal from the control unit 10
According to the input 2-bit clock selection signal SEC
The clocks PCLK, P input from the frequency divider 200
CLK 1, PCLKTwo, PCLKThree, PCLKFourInside
The frequency fOClock signal BCLK and frequency 2
fOAnd outputs the selected clock signal BCLK2X.
Note that the frequency fOIs the frequency fS/ 4, fS/ 8, fS/
16, fS/ 32.

【0046】NANDゲート202は制御部10からの
クロック保持信号HDCおよびCPU停止信号CPSの
ラッチ信号CPS_LATを受けて、これらの信号の負
の論理積S202を生成し、NANDゲート203,2
04およびANDゲート205,206,207にそれ
ぞれ出力される。
The NAND gate 202 receives the clock holding signal HDC from the control unit 10 and the latch signal CPS_LAT of the CPU stop signal CPS, and generates a negative logical product S202 of these signals.
04 and AND gates 205, 206, and 207, respectively.

【0047】NANDゲート203は、クロック選択器
201からのクロックBCLK2XおよびNANDゲー
ト202からの信号S202を受けて、信号S203を
発生し、セレクタ209の入力端子Hに入力される。セ
レクタ209の入力端子Lには、クロック発生部30か
らのクロック信号SCLKが入力される。
The NAND gate 203 receives the clock BCLK2X from the clock selector 201 and the signal S202 from the NAND gate 202, generates a signal S203, and inputs the signal S203 to the input terminal H of the selector 209. The clock signal SCLK from the clock generator 30 is input to the input terminal L of the selector 209.

【0048】ANDゲート205は、クロック選択器2
01からのクロックBCLKおよびNANDゲート20
2からの信号S202を受けて、信号S205を発生
し、セレクタ210の入力端子Hに入力される。セレク
タ210の入力端子Lには、分周器200からのクロッ
ク信号PCLKが入力される。
The AND gate 205 is connected to the clock selector 2
01 clock BCLK and NAND gate 20
In response to the signal S202 from the second, a signal S205 is generated and input to the input terminal H of the selector 210. Clock signal PCLK from frequency divider 200 is input to input terminal L of selector 210.

【0049】セレクタ209,210は制御部10から
入力される外部クロックECKのラッチ信号ECK_L
ATのレベルに応じて、入力端子Hまたは入力端子Lに
入力された信号を選択して出力する。例えば、信号EC
K_LATがローレベルに保持されているとき、セレク
タ209は、入力端子Lに入力されたクロック信号SC
LKを選択して、クロック信号CLK2Xとして出力す
る。一方、信号ECK_LATがハイレベルに保持され
ているとき、セレクタ209は、入力端子Hに入力され
たS203を選択して、クロック信号CLK2Xとして
出力する。
The selectors 209 and 210 are provided with a latch signal ECK_L of the external clock ECK input from the control unit 10.
The signal input to the input terminal H or the input terminal L is selected and output according to the level of the AT. For example, the signal EC
When K_LAT is held at the low level, the selector 209 outputs the clock signal SC input to the input terminal L.
LK is selected and output as the clock signal CLK2X. On the other hand, when the signal ECK_LAT is held at the high level, the selector 209 selects S203 input to the input terminal H and outputs the same as the clock signal CLK2X.

【0050】同様に、信号ECK_LATがローレベル
に保持されているとき、セレクタ210は、入力端子L
に入力されたクロック信号PCLKを選択して、クロッ
ク信号CLKとして出力する。一方、信号ECK_LA
Tがハイレベルに保持されているとき、セレクタ210
は、入力端子Hに入力されたS205を選択して、クロ
ック信号CLKとして出力する。
Similarly, when the signal ECK_LAT is held at the low level, the selector 210 sets the input terminal L
Is selected and output as a clock signal CLK. On the other hand, the signal ECK_LA
When T is held at a high level, the selector 210
Selects S205 input to the input terminal H and outputs it as the clock signal CLK.

【0051】ANDゲート206は、クロック選択器2
01からのクロックBCLKおよびNANDゲート20
2からの信号S202を受けて、信号S206を発生
し、セレクタ211の入力端子Lに入力される。セレク
タ211の入力端子Hは、ローレベル、例えば、接地電
位GNDレベルに保持されている。
The AND gate 206 is connected to the clock selector 2
01 clock BCLK and NAND gate 20
In response to the signal S202 from the second, a signal S206 is generated and input to the input terminal L of the selector 211. The input terminal H of the selector 211 is held at a low level, for example, at the ground potential GND level.

【0052】NANDゲート204は、クロック選択器
201からのクロックBCLKおよびNANDゲート2
02からの信号S202を受けて、信号S204を発生
し、セレクタ212の入力端子Lに入力される。セレク
タ212の入力端子Hは、ハイレベル、例えば、電源電
圧VCCレベルに保持されている。
The NAND gate 204 receives the clock BCLK from the clock selector 201 and the NAND gate 2
In response to the signal S202 from the input device 02, a signal S204 is generated and input to the input terminal L of the selector 212. The input terminal H of the selector 212 is held at a high level, for example, at the power supply voltage V CC level.

【0053】NANDゲート207は、クロック選択器
201からのクロックBCLK2XおよびNANDゲー
ト202からの信号S202を受けて、信号S207を
発生し、セレクタ213の入力端子Lに入力される。セ
レクタ213の入力端子Hは、ハイレベル、例えば、電
源電圧VCCレベルに保持されている。
The NAND gate 207 receives the clock BCLK2X from the clock selector 201 and the signal S202 from the NAND gate 202, generates a signal S207, and inputs the signal S207 to the input terminal L of the selector 213. The input terminal H of the selector 213 is held at a high level, for example, at the power supply voltage V CC level.

【0054】セレクタ211,212,213は制御部
10から入力されるクロック停止信号DOSEのラッチ
信号DOSE_LATのレベルに応じて、入力端子Hま
たは入力端子Lに入力された信号を選択して出力する。
例えば、信号DOSE_LATがローレベルに保持され
ているとき、セレクタ211は、入力端子Lに入力され
た信号S206を選択して、ラッチ214に出力する。
一方、信号DOSE_LATがハイレベルに保持されて
いるとき、セレクタ211は、入力端子Hに入力された
信号を選択する。即ち、このとき、セレクタ211の出
力端子がローレベルに保持される。
The selectors 211, 212, and 213 select and output the signal input to the input terminal H or the input terminal L according to the level of the latch signal DOSE_LAT of the clock stop signal DOSE input from the control unit 10.
For example, when the signal DOSE_LAT is held at a low level, the selector 211 selects the signal S206 input to the input terminal L and outputs the signal S206 to the latch 214.
On the other hand, when the signal DOSE_LAT is held at a high level, the selector 211 selects the signal input to the input terminal H. That is, at this time, the output terminal of the selector 211 is held at the low level.

【0055】同様に、信号DOSE_LATがローレベ
ルに保持されているとき、セレクタ212は、入力端子
Lに入力された信号S204を選択して、ラッチ214
に出力する。一方、信号DOSE_LATがハイレベル
に保持されているとき、セレクタ212は、入力端子H
に入力された信号を選択する。即ち、このとき、セレク
タ212の出力端子がハイレベルに保持される。
Similarly, when the signal DOSE_LAT is held at the low level, the selector 212 selects the signal S204 input to the input terminal L, and
Output to On the other hand, when the signal DOSE_LAT is held at a high level, the selector 212
Select the signal input to. That is, at this time, the output terminal of the selector 212 is held at the high level.

【0056】さらに、セレクタ213においては、信号
DOSE_LATがローレベルに保持されているとき、
セレクタ213は、入力端子Lに入力された信号S20
7を選択して、クロック信号φ3 として出力する。一
方、信号DOSE_LATがハイレベルに保持されてい
るとき、セレクタ213は、入力端子Hに入力された信
号を選択する。即ち、このとき、クロック信号φ3 はハ
イレベルに保持される。なお、ANDゲート207の出
力信号S207はクロック信号φ3Sとして、クロック信
号φ3 とともに出力される。
Further, in the selector 213, when the signal DOSE_LAT is held at a low level,
The selector 213 outputs the signal S20 input to the input terminal L.
7 are selected and output as the clock signal phi 3. On the other hand, when the signal DOSE_LAT is held at a high level, the selector 213 selects the signal input to the input terminal H. That is, this time, the clock signal phi 3 is held at the high level. The output signal S207 of the AND gate 207 as a clock signal phi 3S, is output together with the clock signal phi 3.

【0057】ラッチ214は、クロック選択器201か
らのクロックBCLK2Xに応じて、入力側に入力され
た信号をラッチして、出力側に出力する。例えば、ラッ
チ214は、クロックBCLK2Xの立ち上がりエッジ
で、セレクタ211の出力信号をラッチして、出力端子
Q0 に出力する。出力端子Q0 の出力信号はANDゲー
ト225の一方の入力端子に入力され、さらに直列に接
続されているインバータ215,216を介して、AN
Dゲート225の他方の入力端子に入力される。AND
ゲート225の出力端子は、クロック信号φ1 の出力端
子に接続されている。
The latch 214 latches a signal input to the input side according to the clock BCLK2X from the clock selector 201 and outputs the signal to the output side. For example, the latch 214 at the rising edge of the clock BCLK2X, latches the output signal of the selector 211, and outputs to the output terminal Q 0. The output signal of the output terminal Q 0 is input to one input terminal of the AND gate 225, and is further transmitted through the inverters 215 and 216 connected in series.
The signal is input to the other input terminal of the D gate 225. AND
An output terminal of gate 225 is connected to the output terminal of the clock signal phi 1.

【0058】また、ラッチ214は、クロックBCLK
2Xの立ち上がりエッジで、ANDゲート206の出力
信号S206をラッチして、出力端子Q1 に出力する。
出力端子Q1 の出力信号はANDゲート226の一方の
入力端子に入力され、さらに直列に接続されているイン
バータ217,218を介して、ANDゲート226の
他方の入力端子に入力される。ANDゲート226の出
力端子は、クロック信号φ1Sの出力端子に接続されてい
る。
Further, the latch 214 outputs the clock BCLK
On the rising edge of 2X, latches the output signal S206 of the AND gate 206, and outputs to the output terminal Q 1.
The output signal of the output terminal Q 1 is input to one input terminal of the AND gate 226, further via the inverter 217 and 218 are connected in series, are input to the other input terminal of the AND gate 226. An output terminal of the AND gate 226 is connected to the output terminal of the clock signal phi 1S.

【0059】また、ラッチ214は、クロックBCLK
2Xの立ち上がりエッジで、セレクタ212の出力信号
をラッチして、出力端子Q2 に出力する。出力端子Q2
の出力信号はANDゲート227の一方の入力端子に入
力され、さらに直列に接続されているインバータ21
9,220を介して、ANDゲート227の他方の入力
端子に入力される。ANDゲート227の出力端子は、
クロック信号φ2 の出力端子に接続されている。
The latch 214 outputs the clock BCLK
On the rising edge of 2X, latches the output signal of the selector 212, and outputs to the output terminal Q 2. Output terminal Q 2
Is input to one input terminal of the AND gate 227, and further connected to the inverter 21 connected in series.
9, 220, and is input to the other input terminal of the AND gate 227. The output terminal of the AND gate 227 is
Is connected to the output terminal of the clock signal phi 2.

【0060】さらに、ラッチ214は、クロックBCL
K2Xの立ち上がりエッジで、ANDゲート208の出
力信号をラッチして、出力端子Q3 に出力する。出力端
子Q 3 の出力信号はANDゲート228の一方の入力端
子に入力され、さらに直列に接続されているインバータ
221,222を介して、ANDゲート228の他方の
入力端子に入力される。ANDゲート228の出力端子
は、クロック信号φ2Rの出力端子に接続されている。
Further, the latch 214 receives the clock BCL
At the rising edge of K2X, the output of AND gate 208 is output.
Output signal QThreeOutput to Output end
Child Q ThreeIs output from one input terminal of an AND gate 228.
Inverters that are input to
221 and 222, the other of the AND gate 228
Input to the input terminal. Output terminal of AND gate 228
Is the clock signal φ2ROutput terminal.

【0061】さらにまた、ラッチ214は、クロックB
CLK2Xの立ち上がりエッジで、NANDゲート20
4の出力信号をラッチして、出力端子Q4 に出力する。
出力端子Q4 の出力信号はANDゲート229の一方の
入力端子に入力され、さらに直列に接続されているイン
バータ223,224を介して、ANDゲート229の
他方の入力端子に入力される。ANDゲート229の出
力端子は、クロック信号φ2Sの出力端子に接続されてい
る。
Furthermore, the latch 214
At the rising edge of CLK2X, NAND gate 20
The fourth output signal is latched and outputted to the output terminal Q 4.
Output signals of the output terminal Q 4 are input to one input terminal of the AND gate 229, further via the inverter 223 and 224 are connected in series, are input to the other input terminal of the AND gate 229. An output terminal of the AND gate 229 is connected to the output terminal of the clock signal phi 2S.

【0062】なお、上述したように、各クロック信号φ
1 ,φ1S,φ2 ,φ2R,φ2Sは原クロックと直列に接続
された2段のインバータを通したクロックとの論理積で
あり、原クロックに比べて、出力クロックの立ち上がり
エッジが2段のインバータの遅延時間分だけ遅れる。こ
れにより、例えば、クロック信号φ1 の立ち上がりエッ
ジとその反転信号であるクロック信号φ2 の立ち下がり
エッジのオーバーラップが回避され、これらのクロック
で動作する外部回路がクロックのオーバーラップによる
誤動作の発生を防止できる。
As described above, each clock signal φ
1 , φ 1S , φ 2 , φ 2R , and φ 2S are the logical product of the original clock and the clock passed through the two-stage inverter connected in series, and the rising edge of the output clock is 2 Delay by the delay time of the inverter in the stage. Thus, for example, falling overlapping edges of the clock signal phi 2 clock signal phi 1 of the rising edge and its inverted signal is avoided, the occurrence of malfunction due to external circuitry overlap clock running at these clock Can be prevented.

【0063】図5は本実施形態のクロック供給回路動作
時の波形を示す波形図である。以下、図5の波形図を参
照しつつ、本例のクロック供給回路の動作について説明
する。図5に示すように、クロック信号φ1 とφ2 は互
いに位相反転のクロック信号であり、クロック信号φ2R
はクロック信号φ2 と位相同相して、制御信号RUN
(波形は図示せず)がハイレベルに保持されているとき
のみ出力される。
FIG. 5 is a waveform diagram showing waveforms during the operation of the clock supply circuit of the present embodiment. Hereinafter, the operation of the clock supply circuit of the present example will be described with reference to the waveform diagram of FIG. As shown in FIG. 5, the clock signals φ 1 and φ 2 are clock signals having phases inverted from each other, and the clock signal φ 2R
Is in phase with the clock signal φ 2 and the control signal RUN
(Waveform not shown) is output only when held at a high level.

【0064】セレクタ209から出力されたクロックB
CLK2Xの周波数はセレクタ210から出力されたク
ロック信号CLKの周波数の2倍である。また、出力部
20に入力された外部クロックECKが、例えば、ハイ
レベルに保持されるとすると、セレクタ210はクロッ
ク選択器201から出力されたクロック信号BCLKを
選択し、クロック信号CLKとして出力する。このた
め、図5に示すように、クロック信号CLKとクロック
信号BCLKの波形は同じである。
Clock B output from selector 209
The frequency of CLK2X is twice the frequency of clock signal CLK output from selector 210. Further, assuming that the external clock ECK input to the output unit 20 is held at, for example, a high level, the selector 210 selects the clock signal BCLK output from the clock selector 201 and outputs it as the clock signal CLK. Therefore, as shown in FIG. 5, the waveforms of the clock signal CLK and the clock signal BCLK are the same.

【0065】クロック選択制御信号WLK0 にレベル変
化が生じる時間t0 まで、クロック供給回路は通常の動
作をし、クロック信号を外部に出力し続ける。なお、こ
のとき、制御部10におけるシーケンサ121は、状態
S0に保持されている。そして、時間t0 において、ク
ロック選択制御信号WLK0 がローレベルからハイレベ
ルに切り換わり、これに応じて、制御部10において、
状態変化指示信号HDIが発生され、シーケンサ121
に入力される。
[0065] until the clock selection control signal WLK 0 to level change occurs time t 0, the clock supply circuit to normal operation, continues to output a clock signal to the outside. At this time, the sequencer 121 in the control unit 10 is held in the state S0. Then, at time t 0 , the clock selection control signal WLK 0 switches from the low level to the high level.
The state change instruction signal HDI is generated, and the sequencer 121
Is input to

【0066】シーケンサ121は、状態変化指示信号H
DIを受けて、状態S0から状態S1に状態遷移が起こ
る。状態S1において、シーケンサ121はタイミング
信号HDTのレベル変化を待つ。
The sequencer 121 outputs a state change instruction signal H
In response to DI, a state transition occurs from state S0 to state S1. In the state S1, the sequencer 121 waits for a level change of the timing signal HDT.

【0067】時間t1 において、タイミング信号HDT
が立ち上がり、これに応じて、シーケンサ121は状態
S2に遷移する。このとき、シーケンサ121により、
ハイレベルのクロック保持信号HDCが出力される。そ
して、クロック保持信号HDCを切り換えた後、シーケ
ンサ121は状態S2から状態S3に遷移する。状態S
3において、シーケンサ121はクロック変化信号CH
Gを立ち上げる。これに応じて、クロック選択信号SE
Cが入力されたクロック選択制御信号WLK0 ,WLK
1 のレベルに応じて設定される。
At time t 1 , the timing signal HDT
Rises, and in response, the sequencer 121 transitions to the state S2. At this time, the sequencer 121
A high-level clock holding signal HDC is output. Then, after switching the clock holding signal HDC, the sequencer 121 transitions from the state S2 to the state S3. State S
3, the sequencer 121 outputs the clock change signal CH
Start G. In response, the clock selection signal SE
Clock selection control signals WLK 0 , WLK to which C is input
Set according to level 1 .

【0068】出力部20において、制御部10からハイ
レベルのクロック保持信号HDCを受ける。なお、例え
ば、CPU停止信号CPSがハイレベルに保持されてい
るとすると、出力部20のNANDゲート202によ
り、ローレベルの信号S202が出力される。これに応
じて、NANDゲート203,204により、それぞれ
ハイレベルの信号S203,S204が出力され、AN
Dゲート205,206により、それぞれローレベルの
信号S205,S206が出力される。
Output unit 20 receives a high level clock holding signal HDC from control unit 10. If the CPU stop signal CPS is held at a high level, for example, the NAND gate 202 of the output unit 20 outputs a low-level signal S202. In response, NAND gates 203 and 204 output high-level signals S203 and S204, respectively.
D-gates 205 and 206 output low-level signals S205 and S206, respectively.

【0069】このため、図5に示すように、クロック信
号φ1 がローレベル、クロック信号φ2 がハイレベル、
クロック信号φ2Rがローレベル、クロック信号CLKが
ローレベル、クロックCLK2Xがハイレベルにそれぞ
れ保持される。即ち、出力部20から出力されたクロッ
ク信号のレベルがすべて保持される。この間、クロック
選択器201により、クロック選択信号SECにより指
定されたクロック信号が選択され、クロックBCLK2
X,BCLKとして出力される。このように、出力信号
が保持されている間に、クロック選択器201によりク
ロック信号の切り換えが行われる。そして、クロック信
号の切り換えが完了したとき、シーケンサ121はクロ
ック変化信号CHGを立ち下げて、状態S3から状態S
4に遷移する。
Therefore, as shown in FIG. 5, the clock signal φ 1 is at the low level, the clock signal φ 2 is at the high level,
Clock signal phi 2R is low level, the clock signal CLK is at a low level, the clock CLK2X are respectively held at the high level. That is, all the levels of the clock signal output from the output unit 20 are held. During this time, the clock signal specified by the clock selection signal SEC is selected by the clock selector 201, and the clock BCLK2
Output as X, BCLK. As described above, while the output signal is held, the clock signal is switched by the clock selector 201. Then, when the switching of the clock signal is completed, the sequencer 121 lowers the clock change signal CHG to change from the state S3 to the state S3.
Transition to 4.

【0070】状態S4において、シーケンサ121はク
ロック保持解除信号HDRのレベルを監視し、クロック
保持解除信号HDRがローレベルに保持されている間
に、状態の遷移が行われず、クロック保持解除信号HD
Rがローレベルからハイレベルに立ち上がった後、クロ
ック変化信号CHGをハイレベルからローレベルに切り
換えて、状態S5に遷移する。
In the state S4, the sequencer 121 monitors the level of the clock holding release signal HDR. While the clock holding release signal HDR is held at the low level, no state transition is performed and the clock holding release signal HDR is not changed.
After R rises from the low level to the high level, the clock change signal CHG is switched from the high level to the low level, and the state transits to the state S5.

【0071】状態S5において、シーケンサ121はク
ロック保持信号HDCをハイレベルからローレベルに切
り換えて、通常状態である状態S0に遷移する。クロッ
ク保持信号HDCがローレベルに切り換えられたことに
より、出力部20におけるクロックの保持状態が解除さ
れ、クロックの出力動作が再開される。これにより、ク
ロックが保持された時と同様な状態で、出力が再開され
るので、出力クロックにハザードが生じることなく、ク
ロックの切り換えを実現できる。
In the state S5, the sequencer 121 switches the clock holding signal HDC from the high level to the low level, and makes a transition to the normal state S0. When the clock holding signal HDC is switched to the low level, the clock holding state in the output unit 20 is released, and the clock output operation is restarted. As a result, the output is restarted in the same state as when the clock is held, so that clock switching can be realized without causing a hazard in the output clock.

【0072】このように、シーケンサ121の制御によ
り、クロックの切り換えが行われ、かつ、切り換え後の
クロックが切り換え開始前保持されたクロックと同様な
状態にあるので、クロックの切り換えによるハザードの
発生が防止され、供給されたクロックで動作する外部回
路の論理破綻および動作の乱れがなく、クロックの切り
換えが実現される。これにより、例えば、通常動作状態
と待機状態において、それぞれ動作周波数の異なるクロ
ックを切り換えて外部回路に供給することにより、機器
全体の消費電力の低減を実現できる。
As described above, the switching of the clock is performed under the control of the sequencer 121, and the clock after the switching is in the same state as the clock held before the start of the switching. The switching of the clock is realized without the logical failure and the disturbance of the operation of the external circuit which is operated by the supplied clock. Thus, for example, in the normal operation state and the standby state, the clocks having different operation frequencies are switched and supplied to the external circuit, so that the power consumption of the entire device can be reduced.

【0073】以上説明したように、本実施形態によれ
ば、制御部10はクロック選択制御信号WLK0 ,WL
K1 およびクロック停止信号DOSEのレベル変化に応
じて状態変化指示信号HDIを発生し、これに応じてシ
ーケンサ121は出力クロックが所定の状態に達したと
きクロックを保持させるクロック保持信号HDCを出力
し、出力部20によりクロックを保持する。そして、ク
ロックの切り換えを行い、切り換えられたクロックが保
持したクロックと同様な状態に達したとき、クロックの
出力を再開させるので、出力クロックで動作する論理回
路において、論理の破綻および動作の乱れがなく、クロ
ックの切り換えが実現でき、動作状態に応じてクロック
を切り換えることにより、機器の低消費電力化が図れ
る。
As described above, according to the present embodiment, the control section 10 controls the clock selection control signals WLK 0 , WL
Generating a status change indication signal HDI in accordance with the level change of the K 1 and the clock stop signal DOSE, sequencer 121 outputs a clock hold signal HDC for holding the clock when the output clock has reached a predetermined state in response to this , And the output unit 20 holds the clock. Then, the clock is switched, and when the switched clock reaches a state similar to the held clock, the output of the clock is restarted. Therefore, in the logic circuit operated by the output clock, the breakdown of the logic and the disturbance of the operation are prevented. In addition, the clock can be switched, and the clock can be switched according to the operation state, whereby the power consumption of the device can be reduced.

【0074】[0074]

【発明の効果】以上説明したように、本発明のクロック
供給回路によれば、クロックの切り換え/停止/再動作
を位相関係も含めて正確に行うことができる。これによ
り、クロック信号に同期して動作する論理回路におい
て、論理の破綻なくクロックの切り換えおよび動作/停
止状態の切り換えができ、低消費電力化のためのブロッ
クごとの動作周波数の切り換えや停止をできることによ
り、消費電力の低減が図れる利点がある。
As described above, according to the clock supply circuit of the present invention, clock switching / stop / re-operation can be performed accurately including the phase relationship. As a result, in a logic circuit operating in synchronization with a clock signal, clock switching and switching between an operation / stop state can be performed without breaking the logic, and an operation frequency can be switched or stopped for each block to reduce power consumption. Thus, there is an advantage that power consumption can be reduced.

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

【図1】本発明に係るクロック供給回路の一実施形態を
示す回路図である。
FIG. 1 is a circuit diagram showing one embodiment of a clock supply circuit according to the present invention.

【図2】クロック供給回路における制御部の一構成例を
示す回路図である。
FIG. 2 is a circuit diagram illustrating a configuration example of a control unit in the clock supply circuit.

【図3】シーケンサの状態遷移図である。FIG. 3 is a state transition diagram of a sequencer.

【図4】クロック供給回路における出力部の一構成例を
示す回路図である。
FIG. 4 is a circuit diagram illustrating a configuration example of an output unit in the clock supply circuit.

【図5】クロック供給回路のタイミングチャートであ
る。
FIG. 5 is a timing chart of the clock supply circuit.

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

10…制御部、20…出力部、30…クロック発生部、
100,101,102…ラッチ、103,104,1
05…エクスクルーシブORゲート、106…ORゲー
ト、107…NORゲート、108…NANDゲート、
109,110…イネーブル付きバッファ、111,1
12,113,114,115,116…インバータ、
117,118,119…ANDゲート、120…ラッ
チ、121…シーケンサ、200…分周器、201…ク
ロック選択器、202,203,204…NANDゲー
ト、205,206,207,208,225,22
6,227,228,229…ANDゲート、209,
210,211,212,213…セレクタ、214…
ラッチ、VCC…電源電圧、GND…接地電位。
10 control unit, 20 output unit, 30 clock generation unit,
100, 101, 102 ... latch, 103, 104, 1
05: Exclusive OR gate, 106: OR gate, 107: NOR gate, 108: NAND gate,
109, 110: Buffer with enable, 111, 1
12, 113, 114, 115, 116 ... inverter,
117, 118, 119: AND gate, 120: latch, 121: sequencer, 200: frequency divider, 201: clock selector, 202, 203, 204: NAND gate, 205, 206, 207, 208, 225, 22
6, 227, 228, 229... AND gate, 209,
210, 211, 212, 213 ... selector, 214 ...
Latch, V CC ... the power supply voltage, GND ... ground potential.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数のクロックを切り換えて出力クロッ
クとして供給可能なクロック供給回路であって、 クロック切り換え指示信号を受けて、出力クロックのレ
ベルを保持させるクロック保持信号を出力し、出力クロ
ックが保持されてからクロックの切り換えを行うクロッ
ク切り換え手段と、 上記クロック切り換え手段からのクロック保持信号を受
け、出力クロックを保持し、上記切り換え手段により切
り換えられたクロックと保持されたクロックが同様な状
態になったとき、クロックを外部に出力する出力手段と
を有するクロック供給回路。
1. A clock supply circuit capable of switching between a plurality of clocks and supplying the output clock as an output clock, comprising: receiving a clock switching instruction signal, outputting a clock holding signal for holding a level of an output clock, and holding the output clock. A clock switching means for switching the clock after the switching, and receiving a clock holding signal from the clock switching means, holding an output clock, and the clock switched by the switching means and the held clock are in the same state. A clock supply circuit having output means for outputting a clock to the outside when the clock signal is output.
【請求項2】 上記出力手段の出力クロックが予め設定
された位相状態になっているか否かを判定し、出力クロ
ックが予め設定された位相状態になったとき、第1のタ
イミング信号を出力する第1の判定回路を有する請求項
1記載のクロック供給回路。
Determining whether the output clock of the output means is in a preset phase state, and outputting a first timing signal when the output clock is in a preset phase state; The clock supply circuit according to claim 1, further comprising a first determination circuit.
【請求項3】 上記クロック切り換え手段により切り換
えられたクロックが上記予め設定された位相状態になっ
ているか否かを判定し、切り換えられたクロックが上記
予め設定された位相状態になったとき、第2のタイミン
グ信号を出力する第2の判定回路を有する請求項1記載
のクロック供給回路。
Determining whether or not the clock switched by the clock switching means is in the preset phase state; and determining whether or not the switched clock is in the preset phase state, 2. The clock supply circuit according to claim 1, further comprising a second determination circuit that outputs a second timing signal.
【請求項4】 上記クロック切り換え手段は、上記クロ
ック切り換え指示信号を受けてから、上記第1のタイミ
ング信号に応じて、上記出力手段に上記出力クロックを
保持させるクロック保持信号を出力し、上記第2のタイ
ミング信号に応じて、上記出力手段に出力クロックの保
持状態を解除させる解除信号を出力する請求項3記載の
クロック供給回路。
4. The clock switching means, after receiving the clock switching instruction signal, outputs a clock holding signal for holding the output clock to the output means in response to the first timing signal. 4. The clock supply circuit according to claim 3, wherein a release signal for releasing the holding state of the output clock is output to said output means in response to the timing signal of (2).
【請求項5】 上記出力手段は、上記クロック切り換え
手段からの解除信号を受けて、上記クロック切り換え手
段により切り換えられたクロックを外部に出力する請求
項4記載のクロック供給回路。
5. The clock supply circuit according to claim 4, wherein said output means receives a release signal from said clock switching means and outputs the clock switched by said clock switching means to the outside.
JP8244820A 1996-09-17 1996-09-17 Clock supply circuit Pending JPH1091272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8244820A JPH1091272A (en) 1996-09-17 1996-09-17 Clock supply circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8244820A JPH1091272A (en) 1996-09-17 1996-09-17 Clock supply circuit

Publications (1)

Publication Number Publication Date
JPH1091272A true JPH1091272A (en) 1998-04-10

Family

ID=17124445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8244820A Pending JPH1091272A (en) 1996-09-17 1996-09-17 Clock supply circuit

Country Status (1)

Country Link
JP (1) JPH1091272A (en)

Similar Documents

Publication Publication Date Title
EP1451666B1 (en) Glitch free clock selection switch
US4463440A (en) System clock generator in integrated circuit
EP0322618A2 (en) Clock selection circuit
US7030674B2 (en) Multiphase clock generators
KR930020279A (en) Clock Synchronous Semiconductor Storage and Its Access Method
JPH08329696A (en) Integrated circuit
US6472909B1 (en) Clock routing circuit with fast glitchless switching
JP2011055462A (en) Semiconductor device
JPH02211509A (en) On-chip-phase generator
CN115242224A (en) Multi-clock glitch-free switching circuit and switching method
JPH0450629B2 (en)
US20040012435A1 (en) Clock switching circuit
EP1335268A2 (en) Glitchless clock selection circuit
JPH0373176B2 (en)
JP3368815B2 (en) Flip-flop circuit
JPH08286780A (en) Clock circuit, processor using the same, and processor operating method
KR100366137B1 (en) Internal Clock Signal Generation Method and Device
US5587675A (en) Multiclock controller
JP2004110718A (en) Reset method for semiconductor integrated circuit device and semiconductor integrated circuit device
US5005193A (en) Clock pulse generating circuits
JP2737903B2 (en) Clock switching method
JP2547281B2 (en) Semiconductor integrated circuit
JPH076155A (en) Single chip microcomputer
JP2001319494A (en) Built-in self-test device for memory circuit
JPH10323084A (en) Motor control device