JP2012175319A - Clock generation device, dll (digital locked loop) circuit and clock generation method - Google Patents

Clock generation device, dll (digital locked loop) circuit and clock generation method Download PDF

Info

Publication number
JP2012175319A
JP2012175319A JP2011034250A JP2011034250A JP2012175319A JP 2012175319 A JP2012175319 A JP 2012175319A JP 2011034250 A JP2011034250 A JP 2011034250A JP 2011034250 A JP2011034250 A JP 2011034250A JP 2012175319 A JP2012175319 A JP 2012175319A
Authority
JP
Japan
Prior art keywords
clock
input
control signal
delay
unit
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.)
Granted
Application number
JP2011034250A
Other languages
Japanese (ja)
Other versions
JP5579099B2 (en
Inventor
Daisuke Ogawa
大佑 小川
Koshi Miyanohana
晃士 宮野鼻
Takayuki Minegishi
孝行 峯岸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2011034250A priority Critical patent/JP5579099B2/en
Publication of JP2012175319A publication Critical patent/JP2012175319A/en
Application granted granted Critical
Publication of JP5579099B2 publication Critical patent/JP5579099B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a DLL circuit that generates a high precision clock in a small circuit scale and simple design configuration.SOLUTION: The DLL circuit includes: a clock generation section 100 for generating, from an externally input operating clock clks, an input clock having a different or same frequency from or as the operating clock and a set value k indicating a desired frequency, a generated clock clkc having a frequency that is the operating clock frequency divided by the set value k; a phase comparison section 200 for comparing the generated clock clkc with an externally input reference clock clkr in phase and outputting a phase difference; and a correction section 300 for generating a correction value for correcting the set value k to bring the phase difference to "0" in accordance with the phase difference output from the phase comparison section 200, and adding the correction value to the set value k.

Description

本発明は、動作クロックに基づいて任意の周波数のクロックを生成する技術に関する。   The present invention relates to a technique for generating a clock having an arbitrary frequency based on an operation clock.

本発明に関連する技術として、例えば、特許文献1で開示されているタイミング信号発生回路がある。
特許文献1で開示されているタイミング信号発生回路は、入力クロックに対し可変遅延を付加し、それを分周することで任意の周波数を生成している。
可変遅延とは、例えば、遅延線などのタップ型遅延段のことであり、遅延を付加するとはタップ型遅延段の各タップの出力を1つ選択すること、分周とは選択したタップ出力を1/(2^n)することである。
しかし、前記の構成では、生成周波数の分解能(精度)が使用する可変遅延の最小遅延量に依存してしまい荒くなるという課題がある。
また、特許文献1では、可変遅延を4相クロック生成回路(DLL(Digital Locked Loop)構成を想定)と位相インタポレータで構成する方法も開示されている(図26を参照)。
この構成では、位相インタポレータによって任意の遅延(位相ズレ)を生成できるため、前記した生成周波数の分解能(精度)が荒くなるという課題が解決される。
しかし、この構成の場合、4相クロック生成回路と位相インタポレータを使用するため、回路規模が大きく、設計も複雑という課題がある。
As a technique related to the present invention, for example, there is a timing signal generation circuit disclosed in Patent Document 1.
The timing signal generating circuit disclosed in Patent Document 1 adds a variable delay to an input clock and generates an arbitrary frequency by dividing it.
The variable delay is, for example, a tap type delay stage such as a delay line. Adding a delay selects one output of each tap of the tap type delay stage, and division means selecting the selected tap output. 1 / (2 ^ n).
However, the above-described configuration has a problem that the resolution (accuracy) of the generated frequency depends on the minimum delay amount of the variable delay used and becomes rough.
Patent Document 1 also discloses a method of configuring a variable delay with a four-phase clock generation circuit (assuming a DLL (Digital Locked Loop) configuration) and a phase interpolator (see FIG. 26).
In this configuration, since an arbitrary delay (phase shift) can be generated by the phase interpolator, the problem that the resolution (accuracy) of the generated frequency becomes rough is solved.
However, in this configuration, since a four-phase clock generation circuit and a phase interpolator are used, there are problems that the circuit scale is large and the design is complicated.

特開2000−196418号公報JP 2000-196418 A

以上より、従来技術では、広範囲の周波数を生成することが可能であるが(周波数レンジが広い)、回路規模を小さく、かつ設計を容易にする場合は生成周波数の分解能(精度)が悪くなり、精度を良くする場合は回路規模が大きく、かつ設計が複雑となる。
つまり、従来技術では、生成周波数の精度、回路規模、設計の容易性を両立させることが不可能である。
From the above, in the conventional technology, it is possible to generate a wide range of frequencies (wide frequency range), but when the circuit scale is small and the design is easy, the resolution (accuracy) of the generation frequency deteriorates. When the accuracy is improved, the circuit scale is large and the design is complicated.
In other words, in the conventional technology, it is impossible to achieve both the accuracy of the generation frequency, the circuit scale, and the ease of design.

この発明は、このような課題を解決することを主な目的の一つとしており、回路規模が小さく、また設計が容易な構成にて、高精度なクロックを生成することを主な目的とする。   One of the main objects of the present invention is to solve such problems, and it is a main object of the present invention to generate a highly accurate clock with a configuration that is small in circuit scale and easy to design. .

本発明に係るクロック生成装置は、
外部から所定の周波数の動作クロックを入力し、更に、外部から設定値を入力し、入力した前記設定値を前記動作クロックの周期で累算し、累算結果から、位相調整の対象となる基準クロックと、遅延量を制御する第1の制御信号と、位相調整のタイミングを制御する第2の制御信号を生成する累算部と、
外部から所定の周波数のクロックを入力クロックとして入力し、前記累算部により生成された前記第1の制御信号を入力し、前記第1の制御信号によって制御される遅延量を前記入力クロックに与えて、前記入力クロックの遅延クロックを生成する可変遅延部と、
前記累算部により生成された前記基準クロックと前記第2の制御信号を入力し、前記可変遅延部により生成された遅延クロックを入力し、前記第2の制御信号をイネーブルとして前記基準クロックの位相を前記遅延クロックで調整し、前記動作クロックの周波数を(前記設定値の2倍)で除算して得られる周波数を有するクロックを生成する位相調整部とを有することを特徴とする。
A clock generation device according to the present invention includes:
An operation clock having a predetermined frequency is input from the outside, a set value is input from the outside, the input set value is accumulated at the cycle of the operation clock, and a reference for phase adjustment is obtained from the accumulated result. An accumulation unit for generating a clock, a first control signal for controlling a delay amount, and a second control signal for controlling timing of phase adjustment;
A clock having a predetermined frequency is input from the outside as an input clock, the first control signal generated by the accumulator is input, and a delay amount controlled by the first control signal is given to the input clock. A variable delay unit for generating a delay clock of the input clock;
The reference clock generated by the accumulation unit and the second control signal are input, the delay clock generated by the variable delay unit is input, the phase of the reference clock is enabled by enabling the second control signal And a phase adjustment unit that generates a clock having a frequency obtained by dividing the frequency of the operation clock by (twice the set value).

本発明によれば、回路規模が小さく、また設計が容易な構成にて、高精度なクロックを生成することができる。   According to the present invention, a highly accurate clock can be generated with a configuration with a small circuit scale and easy design.

実施の形態1のDLL回路構成を説明するためのブロック図である。FIG. 3 is a block diagram for explaining a DLL circuit configuration according to the first embodiment. 実施の形態1における累算部110の構成を説明するためのブロック図である。3 is a block diagram for illustrating a configuration of an accumulation unit 110 according to Embodiment 1. FIG. 実施の形態1における累算部110内の累算器111の動作を説明するための図である。6 is a diagram for explaining an operation of an accumulator 111 in an accumulator 110 according to Embodiment 1. FIG. 実施の形態1における累算部110内の累算器111の動作と設定値kの関係を説明するための図である。6 is a diagram for explaining a relationship between an operation of an accumulator 111 in an accumulator 110 and a set value k in the first embodiment. FIG. 実施の形態1における累算部110内の基準クロックclka生成部113の動作を説明するための図である。6 is a diagram for explaining an operation of a reference clock clka generation unit 113 in an accumulation unit 110 in the first embodiment. FIG. 実施の形態1における可変遅延部120の構成を説明するためのブロック図である。3 is a block diagram for illustrating a configuration of a variable delay unit 120 according to Embodiment 1. FIG. 実施の形態1における遅延素子121への入力と出力の関係を説明するための図である。6 is a diagram for explaining a relationship between an input and an output to delay element 121 in the first embodiment. FIG. 実施の形態1における位相調整部130の構成を説明するためのブロック図である。3 is a block diagram for explaining a configuration of a phase adjustment unit 130 according to Embodiment 1. FIG. 実施の形態1における位相調整部130の動作を説明するための図である。6 is a diagram for explaining an operation of a phase adjustment unit 130 according to Embodiment 1. FIG. 実施の形態1のDLL回路における生成クロックclkcの精度を示すための図である。FIG. 6 is a diagram for illustrating the accuracy of a generated clock clkc in the DLL circuit according to the first embodiment. 実施の形態2のDLL回路構成を説明するためのブロック図である。FIG. 6 is a block diagram for explaining a DLL circuit configuration according to a second embodiment. 実施の形態2における累算部110の構成を説明するためのブロック図である。FIG. 10 is a block diagram for illustrating a configuration of an accumulating unit 110 in a second embodiment. 実施の形態2における累算部110内の累算器111の動作を説明するための図である。FIG. 11 is a diagram for explaining the operation of an accumulator 111 in an accumulator 110 in the second embodiment. 実施の形態2におけるパルス生成部140の構成を説明するためのブロック図である。6 is a block diagram for explaining a configuration of a pulse generation unit 140 in Embodiment 2. FIG. 実施の形態2における位相調整部130の構成を説明するためのブロック図である。FIG. 6 is a block diagram for explaining a configuration of a phase adjustment unit 130 in a second embodiment. 実施の形態2における位相調整部130の動作を説明するための図である。FIG. 10 is a diagram for explaining the operation of a phase adjustment unit 130 in the second embodiment. 実施の形態2における周波数比較部400の構成を説明するためのブロック図である。FIG. 10 is a block diagram for illustrating a configuration of a frequency comparison unit 400 in the second embodiment. 実施の形態2における補正部300の構成を説明するためのブロック図である。6 is a block diagram for illustrating a configuration of a correction unit 300 according to Embodiment 2. FIG. 実施の形態3のDLL回路構成を説明するためのブロック図である。FIG. 10 is a block diagram for explaining a DLL circuit configuration according to a third embodiment. 実施の形態3における累算部110の構成を説明するためのブロック図である。FIG. 10 is a block diagram for illustrating a configuration of an accumulating unit 110 in a third embodiment. 実施の形態3におけるクロック選択部150の構成を説明するためのブロック図である。FIG. 10 is a block diagram for illustrating a configuration of a clock selection unit 150 in a third embodiment. 実施の形態3のDLL回路の動作を説明するための図である。FIG. 10 is a diagram for explaining the operation of the DLL circuit according to the third embodiment. 実施の形態4の構成を説明するためのブロック図である。FIG. 10 is a block diagram for illustrating a configuration of a fourth embodiment. 実施の形態5の構成を説明するためのブロック図である。FIG. 10 is a block diagram for illustrating a configuration of a fifth embodiment. 実施の形態6の構成を説明するためのブロック図である。FIG. 10 is a block diagram for illustrating a configuration of a sixth embodiment. 従来技術の概略図。Schematic of prior art.

実施の形態1〜3では、上記の課題を解決するためのDLL(Digital Locked Loop)回路を説明する。
実施の形態1〜3に係るDLL回路は、クロック生成部と、位相比較部と、補正部を備える。
クロック生成部は、
動作クロックで動作し、設定値を累算し、第1のクロックを生成する累算部と、
入力クロックもしくはパルスを累算部によって制御される遅延量分遅延させ、第2のクロックを生成する可変遅延部と、
前記累算部により制御されるタイミングによって前記第1のクロックの位相を前記第2のクロックで補正する位相補正部を有し、
動作クロック周波数の(前記設定値の2倍)分の一の周波数を有する生成クロックを生成する。
また、位相比較部は、前記生成クロックと、外部から入力される参照クロックの位相差を比較し、その位相差を出力する。
また、補正部は、前記位相比較部の出力である位相差から、前記位相差を“0”とするように前記設定値を補正する補正値を生成し、前記設定値へ補正値を加算する。
In the first to third embodiments, a DLL (Digital Locked Loop) circuit for solving the above problem will be described.
The DLL circuit according to the first to third embodiments includes a clock generation unit, a phase comparison unit, and a correction unit.
The clock generator
An accumulation unit that operates with an operation clock, accumulates a set value, and generates a first clock;
A variable delay unit that delays an input clock or pulse by a delay amount controlled by an accumulation unit, and generates a second clock;
A phase correction unit that corrects the phase of the first clock with the second clock at a timing controlled by the accumulation unit;
A generated clock having a frequency that is one time the operating clock frequency (twice the set value) is generated.
The phase comparison unit compares the phase difference between the generated clock and a reference clock input from the outside, and outputs the phase difference.
The correction unit generates a correction value for correcting the set value so that the phase difference is set to “0” from the phase difference output from the phase comparison unit, and adds the correction value to the set value. .

上記構成の実施の形態1〜3によるDLL回路は、クロック生成を累算部で実施するため、上限を動作クロック周波数の1/2として、累算部のビット数分の広範囲の周波数を生成可能であり、かつ、可変遅延部生成のクロックを利用して生成クロックの位相を調整するため、生成クロックを高精度で生成可能である。
更に、クロック生成部を論理設計可能な累算部と可変遅延部と位相調整部で構成するため、設計が容易であり、多ビットカウンタ1個で構成できるため、小回路規模である。
Since the DLL circuit according to the first to third embodiments having the above configuration performs clock generation in the accumulation unit, it can generate a wide range of frequencies corresponding to the number of bits of the accumulation unit with the upper limit being ½ of the operation clock frequency. In addition, since the phase of the generated clock is adjusted using the clock generated by the variable delay unit, the generated clock can be generated with high accuracy.
Furthermore, since the clock generation unit is configured by an accumulation unit, a variable delay unit, and a phase adjustment unit that can be logically designed, it is easy to design and can be configured by one multi-bit counter, and thus has a small circuit scale.

また、実施の形態4〜6では、実施の形態1〜3で説明するクロック生成部単独で構成されているDLL回路を説明する。   In the fourth to sixth embodiments, a DLL circuit configured by a single clock generator described in the first to third embodiments will be described.

実施の形態1.
図1は、実施の形態1によるDLL回路の構成例を示している。
図1のDLL回路は、クロック生成部100と、位相比較部200、補正部300から構成され、入力は設定値k(実数)と、動作クロックclks、参照クロックclkr、動作クロックの2倍速クロックclks2(周波数が2倍)であり、出力は生成クロックclkcである。
更に、クロック生成部100は、累算部110と、可変遅延部120、位相調整部130から構成される。
図1の設定値kは実数値であり、動作クロック周波数を生成クロック周波数の2倍で除算して求める。
例えば、動作クロック周波数が500MHzであり、生成クロック周波数が160MHzである場合、設定値kは500MHz/(160MHz×2)=1.5625となる。この計算により、設定値kは、生成クロックの半周期が動作クロック何周期分かを表している。前記計算では、生成クロック周波数160MHzの半周期は動作クロック500MHzの1.5625周期分となる。
なお、クロック生成部100は、クロック生成装置の例である。
Embodiment 1 FIG.
FIG. 1 shows a configuration example of a DLL circuit according to the first embodiment.
The DLL circuit of FIG. 1 includes a clock generation unit 100, a phase comparison unit 200, and a correction unit 300. The input is a set value k (real number), an operation clock clks, a reference clock clkr, and a double-speed clock clks2 of the operation clock. (The frequency is double) and the output is the generated clock clkc.
Furthermore, the clock generation unit 100 includes an accumulation unit 110, a variable delay unit 120, and a phase adjustment unit 130.
The set value k in FIG. 1 is a real value, and is obtained by dividing the operation clock frequency by twice the generated clock frequency.
For example, when the operation clock frequency is 500 MHz and the generated clock frequency is 160 MHz, the setting value k is 500 MHz / (160 MHz × 2) = 1.5625. By this calculation, the set value k represents how many operating clocks the half cycle of the generated clock is. In the above calculation, the half cycle of the generated clock frequency of 160 MHz is 1.5625 cycles of the operation clock of 500 MHz.
The clock generation unit 100 is an example of a clock generation device.

図2は、実施の形態1の前記累算部110の構成例を示している。
図2の累算部110は、累算器111と、検出部112、基準クロックclka生成部113、制御信号C1生成部114から構成される。
制御信号C1生成部114は、第1制御信号生成部に相当し、検出部112は第2制御信号生成部に相当する。
FIG. 2 shows a configuration example of the accumulation unit 110 according to the first embodiment.
2 includes an accumulator 111, a detection unit 112, a reference clock clka generation unit 113, and a control signal C1 generation unit 114.
The control signal C1 generation unit 114 corresponds to a first control signal generation unit, and the detection unit 112 corresponds to a second control signal generation unit.

前記累算器111は、動作クロックclksによって動作し、入力である設定値kを累算する。
図3に累算器111の動作タイミングチャートを示す。
累算器111は、設定値kを動作クロックclksによって累算するため、累算器111の結果は、累算器111のビット幅以内までは直線的に変化し、ビット幅を超えると“0”に戻る、という推移を繰り返す。
よって、この動作を連続して実施すれば、累算器111の結果は、図3に示すように、のこぎり波のような推移となる。
また、累算器111の直線変化は、設定値kの値を変更すると傾きが変化し、図4に示すように、設定値kが小さければ緩やかに、設定値kが大きければ急峻になる。
The accumulator 111 is operated by the operation clock clks and accumulates the set value k as an input.
FIG. 3 shows an operation timing chart of the accumulator 111.
Since the accumulator 111 accumulates the set value k by the operation clock clks, the result of the accumulator 111 changes linearly within the bit width of the accumulator 111, and when the bit width is exceeded, “0” The process of returning to "" is repeated.
Therefore, if this operation is continuously performed, the result of the accumulator 111 changes like a sawtooth wave as shown in FIG.
Further, the linear change of the accumulator 111 changes in slope when the value of the set value k is changed. As shown in FIG. 4, the slope changes gradually when the set value k is small and becomes steep when the set value k is large.

図2の検出部112は、累算器111結果が累算器111のビット幅(すなわち、累算器111のビット幅で表示可能な最大ビット値)を超えたことを検出する度に、その検出したことを示すパルス信号を制御信号C2(第2の制御信号に相当)として出力する(制御信号C2をアサートする)。
制御信号C2は、位相調整のタイミングを制御するための信号である。
累算器111の結果のビット幅越えの検出は、例えば、累算器111の最上位ビットの桁上がりや、累算器111の結果と累算器111のビット幅の最大値とを比較するなどで検出する。
Each time the detection unit 112 in FIG. 2 detects that the result of the accumulator 111 exceeds the bit width of the accumulator 111 (that is, the maximum bit value that can be displayed by the bit width of the accumulator 111), A pulse signal indicating the detection is output as the control signal C2 (corresponding to the second control signal) (the control signal C2 is asserted).
The control signal C2 is a signal for controlling the timing of phase adjustment.
The detection of the bit width exceeding the result of the accumulator 111 is performed by, for example, comparing the carry of the most significant bit of the accumulator 111 or the result of the accumulator 111 with the maximum value of the bit width of the accumulator 111. Detect with

図2の基準クロックclka生成部113は、制御信号C2の入力タイミングによって、現在の基準クロックclka値を反転し、その反転信号を次の基準クロックclkaとして出力する。
基準クロックclkaは次の制御信号C2入力タイミングまで値を保持する。
基準クロックclkaは、位相調整の対象となるクロックである。
図5に基準クロックclkaと制御信号C2の動作波形を示す。
例えば、現在の基準クロックclkaが“1”である場合、ビット幅超え検出のタイミングにおいて“1”を“0”へ反転し、次の基準クロックclkaとする。
そして、次のビット幅超え検出タイミングまでその値を保持する。
このように、基準クロックclka生成部113は、制御信号C2のアサートタイミングの間隔をエッジ間隔とする基準クロックclkaを生成する。
また、基準クロックclkaは、累算器111のMSB(Most Significant Bit)の変化をそのまま利用してもよい。
The reference clock clka generator 113 in FIG. 2 inverts the current reference clock clka value according to the input timing of the control signal C2, and outputs the inverted signal as the next reference clock clka.
The reference clock clka holds the value until the next input timing of the control signal C2.
The reference clock clka is a clock subject to phase adjustment.
FIG. 5 shows operation waveforms of the reference clock clka and the control signal C2.
For example, when the current reference clock clka is “1”, “1” is inverted to “0” at the timing of detection of exceeding the bit width to be the next reference clock clka.
The value is held until the next bit width excess detection timing.
As described above, the reference clock clka generation unit 113 generates the reference clock clka whose edge interval is the interval between the assert timings of the control signal C2.
The reference clock clka may use a change in MSB (Most Significant Bit) of the accumulator 111 as it is.

図2の制御信号C1生成部114は、制御信号C2の入力タイミングによって、累算器111の小数部分を取得し、取得した小数部分を制御信号C1(第1の制御信号に相当)として出力する。
制御信号C1は、次の制御信号C2入力タイミングまで値を保持する。
制御信号C1は、可変遅延部120における遅延量を制御するための信号である。
ビット幅を超えたときの累算器111の結果が小数部を有する理由は、設定値kが実数値であるためである(前述の例では、K=1.5625)。
このように、制御信号C1生成部114は、検出部112により制御信号C2がアサートされた際の設定値の小数値を特定し、特定した小数値を通知する制御信号C1を生成し、出力する。
なお、小数部分の取得は、制御信号C2で累算器111の小数値をマスクすれば、ビット幅を超えたときの累算器111の小数値が得られる。
2 acquires the decimal part of the accumulator 111 according to the input timing of the control signal C2, and outputs the acquired decimal part as the control signal C1 (corresponding to the first control signal). .
The control signal C1 holds the value until the next control signal C2 input timing.
The control signal C1 is a signal for controlling the delay amount in the variable delay unit 120.
The reason why the result of the accumulator 111 has a fractional part when the bit width is exceeded is that the set value k is a real value (K = 1.5625 in the above example).
As described above, the control signal C1 generation unit 114 specifies the decimal value of the set value when the control signal C2 is asserted by the detection unit 112, and generates and outputs the control signal C1 that notifies the specified decimal value. .
In order to obtain the decimal part, the decimal value of the accumulator 111 when the bit width is exceeded can be obtained by masking the decimal value of the accumulator 111 with the control signal C2.

図6は、実施の形態1の前記可変遅延部120の構成を示している。
図6の可変遅延部120は、複数の遅延素子121と、セレクタ122、変換部123から構成される。
遅延素子121は、外部から入力される動作クロックの2倍速クロックclks2に遅延を加えるもので、それを複数個直列に接続しており、遅延素子121を1個毎に出力端子を有する。
これは、よくある遅延線などでも代用可能である。
FIG. 6 shows the configuration of the variable delay unit 120 of the first embodiment.
The variable delay unit 120 of FIG. 6 includes a plurality of delay elements 121, a selector 122, and a conversion unit 123.
The delay elements 121 add a delay to the double-speed clock clks2 of the operation clock input from the outside. A plurality of delay elements 121 are connected in series, and each delay element 121 has an output terminal.
This can be substituted by a common delay line or the like.

図7に遅延素子121の直列接続の動作タイミングチャートを示す。
遅延素子121を通過する毎に入力されたクロックが遅延素子121一個分の遅延量で遅延される。
図6の変換部123は、累算部110から出力される制御信号C1からセレクタ122が遅延素子121の出力端子を選択するためのセレクト値を生成する。
セレクト値は、以下の方法で生成する。動作クロックclks1周期分遅延させる遅延量を上限値として、それだけ遅延させるために必要な遅延素子121の段数をコード値として保持する。
制御信号C1は、動作クロックclksでカウントできない小数値であるから、動作クロックclksの1周期を遅延量“1”とした場合の、必要な遅延量を表している。
例えば、制御信号C1が“0.5”であるならば、必要な遅延量は動作クロックclksの1周期の半周期分であり、“0.2”ならば動作クロックclksの1周期の0.2周期分である。
制御信号C1が示す必要遅延量に相当する遅延量を得られる遅延素子121の段数をコード値から選択する。
これは、制御信号C1を参照値として ルックアップテーブルなどから選択してもよいし、遅延量の上限値となるコード値と制御信号C1を乗算しても求められるためそれでもよい。
以上によって得られたコード値をセレクト値として出力する。
この動作は制御信号C1が入力される度に実施し、次に制御信号C1が入力されるタイミングまではセレクト値は保持される。
図6のセレクタ122は、変換部123出力のセレクト値によって、前記遅延素子121の直列接続の出力端子の内から1つ選択し、選択した出力端子から出力される信号を遅延クロックclkdとして出力する。
このように、可変遅延部120は、外部から所定の周波数のクロックを入力クロックとして入力し、累算部110により生成された制御信号C1を入力し、制御信号C1によって制御される遅延量を入力クロックに与えて、入力クロックの遅延クロックclkdを生成し、出力する。
FIG. 7 shows an operation timing chart of the delay elements 121 connected in series.
Each time the signal passes through the delay element 121, the input clock is delayed by a delay amount corresponding to one delay element 121.
6 generates a select value for the selector 122 to select the output terminal of the delay element 121 from the control signal C1 output from the accumulator 110.
The select value is generated by the following method. The delay amount delayed by one cycle of the operation clock clks is set as an upper limit value, and the number of stages of the delay elements 121 necessary for delaying by that amount is held as a code value.
Since the control signal C1 is a decimal value that cannot be counted by the operation clock clks, it represents a necessary delay amount when one cycle of the operation clock clks is set to the delay amount “1”.
For example, if the control signal C1 is “0.5”, the necessary delay amount is a half cycle of one cycle of the operation clock clks, and if “0.2”, 0. Two cycles.
The number of stages of the delay elements 121 that can obtain a delay amount corresponding to the necessary delay amount indicated by the control signal C1 is selected from the code values.
This may be selected from a look-up table or the like using the control signal C1 as a reference value, or it may be obtained by multiplying the control signal C1 by the code value that is the upper limit value of the delay amount.
The code value obtained as described above is output as a select value.
This operation is performed every time the control signal C1 is input, and the select value is held until the next timing when the control signal C1 is input.
The selector 122 in FIG. 6 selects one of the serially connected output terminals of the delay element 121 according to the select value of the converter 123 output, and outputs a signal output from the selected output terminal as the delay clock clkd. .
As described above, the variable delay unit 120 receives a clock having a predetermined frequency as an input clock from the outside, inputs the control signal C1 generated by the accumulation unit 110, and inputs a delay amount controlled by the control signal C1. This is applied to the clock, and a delay clock clkd of the input clock is generated and output.

図8は、実施の形態1の前記位相調整部130の構成を示している。
図8に示す位相調整部130は、遅延クロックclkdと制御信号C2の論理積と、前記論理積出力と基準クロックclkaの排他的論理和で構成され、前記排他的論理和の出力を生成クロックclkcとして出力する。
図9に、図8に示す位相調整部130の動作タイミングチャートを示す。
図9に示すとおり、位相調整部130は、制御信号C2と前記可変遅延部120で選択され、毎制御信号C2アサートタイミングで変化する遅延クロックclkdとの論理積をとる。
前記論理積の結果と基準クロックclkaの排他的論理和を取ることで生成クロックclkcを生成する。
このように、位相調整部130は、累算部110により生成された基準クロックclkaと制御信号C2を入力し、可変遅延部120により生成された遅延クロックclkdを入力し、制御信号C2をイネーブルとして基準クロックclkaの位相を遅延クロックclkdで調整し、動作クロックclksの周波数を設定値kの2倍で除算して得られる周波数を有するクロックを生成し、生成したクロックを生成クロックclkcとして出力する。
FIG. 8 shows the configuration of the phase adjustment unit 130 of the first embodiment.
The phase adjustment unit 130 shown in FIG. 8 includes a logical product of the delay clock clkd and the control signal C2, an exclusive OR of the logical product output and the reference clock clka, and generates an output of the exclusive OR. Output as.
FIG. 9 shows an operation timing chart of the phase adjustment unit 130 shown in FIG.
As shown in FIG. 9, the phase adjustment unit 130 calculates the logical product of the control signal C2 and the delay clock clkd that is selected by the variable delay unit 120 and changes at every control signal C2 assert timing.
The generated clock clkc is generated by taking the exclusive OR of the result of the logical product and the reference clock clka.
As described above, the phase adjustment unit 130 receives the reference clock clka generated by the accumulation unit 110 and the control signal C2, receives the delay clock clkd generated by the variable delay unit 120, and enables the control signal C2. The phase of the reference clock clka is adjusted by the delay clock clkd, a clock having a frequency obtained by dividing the frequency of the operation clock clks by twice the set value k is generated, and the generated clock is output as the generated clock clkc.

図1に示す実施の形態1の位相比較部200は、これまで説明した構成・動作であるクロック生成部100が生成する生成クロックclkcと外部から入力される参照クロックclkrの位相差を検出する。
このように、位相比較部200は、クロック生成部100により生成された生成クロックclkcの位相と、外部から入力される参照クロックclkrの位相を比較し、生成クロックclkcと参照クロックclkrとの位相差を出力する。
The phase comparison unit 200 of the first embodiment shown in FIG. 1 detects the phase difference between the generated clock clkc generated by the clock generation unit 100 having the configuration and operation described so far and the reference clock clkr input from the outside.
As described above, the phase comparison unit 200 compares the phase of the generated clock clkc generated by the clock generation unit 100 with the phase of the reference clock clkr input from the outside, and the phase difference between the generated clock clkc and the reference clock clkr. Is output.

図1に示す実施の形態1の補正部300は、前記位相比較部200で検出した位相差と生成クロックclkcを生成するためにクロック生成部100が使用した設定値kから、生成クロックclkcと参照クロックclkrの位相差が“0”とするように設定値kを補正する補正値を生成する。
そして、補正部300は、生成した補正値を補正値生成に使用した設定値kへ加算し、新たな設定値kを算出する。
クロック生成部100は、前記の通り算出された新たな設定値kにおいて生成クロックclkcを生成する。
The correction unit 300 according to the first embodiment shown in FIG. 1 refers to the generated clock clkc from the phase difference detected by the phase comparison unit 200 and the set value k used by the clock generation unit 100 to generate the generated clock clkc. A correction value for correcting the set value k is generated so that the phase difference of the clock clkr is “0”.
Then, the correction unit 300 adds the generated correction value to the setting value k used for generating the correction value, and calculates a new setting value k.
The clock generation unit 100 generates the generated clock clkc with the new set value k calculated as described above.

以上のように、図1に示す実施の形態1によるDLL回路は、クロック生成部100と位相比較部200、補正部300のループ処理により、参照クロックclkrに位相同期した生成クロックclkcを生成する。
この構成により、生成クロックclkcの生成可能周波数幅は、動作クロックclks周波数の1/2を上限として、クロック生成部100内の累算部110内の累算器111のビット幅分となり、非常に広レンジを実現できる。
また、生成クロックclkcの生成可能周波数精度は、前記累算器111によって生成する基準クロックclkaの位相を可変遅延部120で生成する遅延クロックclkdで補正するため、デューティ比50%とすることが可能であり、高精度である。
図10は、図1のDLL回路の生成クロックclkcの設定に対する精度である。
図10において、生成周波数は、ターゲットとなる周波数であり、出力周波数は、生成周波数をターゲットしてクロック生成部100で生成されたクロック(生成クロックclkcに相当)の周波数であり、実測値である。
図10に示すように、本実施の形態のDLL回路では、全てにおいて誤差は0ppmであり、高精度である。
更に、図2、図6、図8に示す回路はディジタル回路で構成可能であり、容易に設計でき、構成要素もカウンタやプリミティブな論理回路であるため、小回路規模である。
As described above, the DLL circuit according to the first embodiment shown in FIG. 1 generates the generated clock clkc that is phase-synchronized with the reference clock clkr by the loop processing of the clock generation unit 100, the phase comparison unit 200, and the correction unit 300.
With this configuration, the generation frequency width of the generated clock clkc is the bit width of the accumulator 111 in the accumulator 110 in the clock generator 100, with an upper limit of ½ of the frequency of the operation clock clks. A wide range can be realized.
Further, the frequency accuracy of the generated clock clkc can be set to 50% because the phase of the reference clock clka generated by the accumulator 111 is corrected by the delay clock clkd generated by the variable delay unit 120. And high accuracy.
FIG. 10 shows the accuracy with respect to the setting of the generated clock clkc of the DLL circuit of FIG.
In FIG. 10, the generation frequency is a target frequency, and the output frequency is a frequency of a clock (corresponding to the generation clock clkc) generated by the clock generation unit 100 targeting the generation frequency, and is an actual measurement value. .
As shown in FIG. 10, in the DLL circuit according to the present embodiment, the error is 0 ppm in all cases and is highly accurate.
Further, the circuits shown in FIGS. 2, 6, and 8 can be configured by digital circuits, can be easily designed, and the constituent elements are counters and primitive logic circuits, and thus have a small circuit scale.

なお、以上の説明では、可変遅延部120に入力するクロックは動作クロックの2倍速クロックclks2としているが、これに限らない。
つまり、可変遅延部120に入力するクロックは、動作クロックと同じ周期であってもよいし、動作クロックよりも速い周期のクロックであってもよいし、遅い周期のクロックであってもよい。
また、動作クロックよりも速い周期のクロックを入力する場合にも、動作クロックの整数倍の周期のクロックでなくてもよい。
また、動作クロックよりも遅い周期のクロックを入力する場合にも、動作クロックの整数分の一の周期のクロックでなくてもよい。
In the above description, the clock input to the variable delay unit 120 is the double-speed clock clks2 of the operation clock, but is not limited thereto.
That is, the clock input to the variable delay unit 120 may have the same cycle as the operation clock, may be a clock with a cycle faster than the operation clock, or may be a clock with a slow cycle.
In addition, when a clock having a period faster than the operation clock is input, the clock may not be an integer multiple of the operation clock.
In addition, when a clock having a cycle slower than the operation clock is input, the clock may not be a cycle of an integer of the operation clock.

また、前記位相比較部200のかわりに、前記生成クロックclkcと前記参照クロックclkrの周波数差を比較し、その周波数差を出力する周波数比較部を用いるようにしてもよい。
なお、周波数比較部の詳細は、実施の形態2で説明する。
Further, instead of the phase comparison unit 200, a frequency comparison unit that compares the frequency difference between the generated clock clkc and the reference clock clkr and outputs the frequency difference may be used.
Details of the frequency comparison unit will be described in the second embodiment.

このように、本実施の形態では、
外部から入力される動作クロックと前記動作クロックと周波数が異なるもしくは等しい入力クロックと所望の周波数を表す設定値から前記動作クロック周波数の(前記設定値の2倍)分の一の周波数を有する生成クロックを生成するクロック生成部と、
前記生成クロックと外部から入力される参照クロックの位相差を比較し、その位相差を出力する位相比較部と、
前記位相比較部の出力である位相差から、前記位相差を“0”とするように前記設定値へ補正をする補正値を生成し、前記設定値へ補正値を加算する補正部とを備えるDLL回路を説明した。
Thus, in this embodiment,
An externally input operation clock, an input clock having a frequency different from or equal to that of the operation clock, and a generated clock having a frequency that is one half of the operation clock frequency (twice the set value) from a set value that represents a desired frequency. A clock generator for generating
A phase comparison unit that compares the phase difference between the generated clock and an externally input reference clock and outputs the phase difference;
A correction unit that generates a correction value that corrects the set value so that the phase difference is set to “0” from the phase difference that is output from the phase comparison unit, and that adds the correction value to the set value; A DLL circuit has been described.

また、前記クロック生成部が、
動作クロックで動作し、外部から入力される設定値を動作クロック周期で累算することで、第1のクロック(基準クロック)と遅延量を制御する第1の制御信号(制御信号C1)と補正タイミングを制御する第2の制御信号(制御信号C2)を生成する累算部と、
外部から動作クロックと周波数が異なるもしくは等しい入力クロックを受け取り、前記累算部出力の前記第1の制御信号によって制御される遅延量を前記入力クロックに与えて第2のクロックを生成する可変遅延部と、
前記第2の制御信号をイネーブルとして前記第1のクロックの位相を前記第2のクロックで補正する位相調整部を有し、
動作クロックの周波数の(前記設定値の2倍)分の一の周波数を有する生成クロックを生成可能であることを説明した。
In addition, the clock generation unit
A first control signal (control signal C1) for controlling a first clock (reference clock) and a delay amount is corrected by operating with an operation clock and accumulating set values input from the outside with an operation clock cycle. An accumulator for generating a second control signal (control signal C2) for controlling the timing;
A variable delay unit that receives an input clock having a frequency different from or equal to the operating clock from the outside, and generates a second clock by giving the input clock a delay amount controlled by the first control signal output from the accumulation unit When,
A phase adjustment unit that enables the second control signal and corrects the phase of the first clock with the second clock;
It has been explained that it is possible to generate a generated clock having a frequency that is one time the frequency of the operating clock (twice the set value).

また、外部から入力される設定値は、動作クロックの周波数と、所望の周波数の2倍の除算から算出され、整数と小数で表現できる実数であることを説明した。   Further, it has been described that the set value input from the outside is a real number that is calculated from the division of the frequency of the operation clock and twice the desired frequency and can be expressed by an integer and a decimal.

また、前記クロック生成部を構成する前記可変遅延部は、
前記累算部の前記設定値の累算結果の小数部にあたる第1の制御信号を、内部に有する変換コードに従い、遅延量へ変換し、前記遅延量に相当する遅延を入力される前記倍速クロックもしくは前記パルス生成部のパルスへ与え、前記第2のクロックを出力することを説明した。
In addition, the variable delay unit constituting the clock generation unit,
The double-speed clock to which the first control signal corresponding to the decimal part of the accumulation result of the set value of the accumulation unit is converted into a delay amount according to an internal conversion code, and a delay corresponding to the delay amount is input Alternatively, it has been described that the pulse is supplied to the pulse of the pulse generator and the second clock is output.

また、前記クロック生成部を構成する位相調整部は、
前記累算部出力の第1のクロックと、前記可変遅延部出力の第2のクロックもしくは前記遅延パルスを前記第2の制御信号のタイミングで論理和もしくは論理積もしくは排他的論理和をとることで前記第1のクロックの位相を調整することを説明した。
In addition, the phase adjustment unit constituting the clock generation unit,
By taking the logical sum, logical product, or exclusive logical sum of the first clock of the accumulating unit output and the second clock of the variable delay unit output or the delayed pulse at the timing of the second control signal. The adjustment of the phase of the first clock has been described.

また、前記位相比較部のかわりに、前記生成クロックと前記参照クロックの周波数差を比較し、その周波数差を出力する周波数比較部を用いることが可能であることを説明した。   Further, it has been described that a frequency comparison unit that compares the frequency difference between the generated clock and the reference clock and outputs the frequency difference can be used instead of the phase comparison unit.

また、前記クロック生成部、前記位相比較部、前記補正部は論理回路で設計できることを説明した。   Further, it has been described that the clock generation unit, the phase comparison unit, and the correction unit can be designed with a logic circuit.

なお、本実施の形態に係るクロック生成部100の動作を、累算部110の動作(累算ステップ)、可変遅延部120の動作(可変遅延ステップ)、位相調整部130による動作(位相調整ステップ)を含むクロック生成方法として捉えることもできる。   The operation of the clock generation unit 100 according to the present embodiment includes the operation of the accumulation unit 110 (accumulation step), the operation of the variable delay unit 120 (variable delay step), and the operation of the phase adjustment unit 130 (phase adjustment step). ).

実施の形態2.
図11は、実施の形態2によるDLL回路構成を示している。
図11のDLL回路は、実施の形態1の構成から、クロック生成部100にパルス生成部140が追加されており、可変遅延部120へ外部からのクロック入力がなく、パルス生成部140で生成されたパルスを入力する構成となる。
また、位相比較部200が周波数比較部400となっている。
周波数比較部400は、クロック生成部100により生成された生成クロックclkcの周波数と、外部から入力される参照クロックclkrの周波数を比較し、生成クロックclkcと参照クロックclkrとの周波数差を出力する。
また、本実施の形態の補正部300は、周波数比較部400の出力である周波数差から、前記周波数差を0とする設定値kに対する補正値を生成し、設定値kへ補正値を加算する。
更に、動作クロックの2倍速クロックclks2(周波数が2倍)はDLL回路を動かすもう1つの動作クロックとして使用する。
Embodiment 2. FIG.
FIG. 11 shows a DLL circuit configuration according to the second embodiment.
In the DLL circuit of FIG. 11, a pulse generation unit 140 is added to the clock generation unit 100 from the configuration of the first embodiment, and there is no external clock input to the variable delay unit 120, and the pulse generation unit 140 generates the DLL circuit. It is configured to input a new pulse.
The phase comparison unit 200 is a frequency comparison unit 400.
The frequency comparison unit 400 compares the frequency of the generated clock clkc generated by the clock generation unit 100 with the frequency of the reference clock clkr input from the outside, and outputs a frequency difference between the generated clock clkc and the reference clock clkr.
Further, the correction unit 300 according to the present embodiment generates a correction value for the set value k with the frequency difference being 0 from the frequency difference output from the frequency comparison unit 400, and adds the correction value to the set value k. .
Further, the double-speed clock clks2 (frequency is double) of the operation clock is used as another operation clock for operating the DLL circuit.

図12は、実施の形態2の累算部110構成を示している。
図12の累算部110は、累算器111と、基準クロックclka生成部113、制御信号C1生成部114、ダウンカウンタ115/117、比較器116/118、加算器119から構成される。
FIG. 12 shows the configuration of the accumulating unit 110 according to the second embodiment.
12 includes an accumulator 111, a reference clock clka generator 113, a control signal C1 generator 114, a down counter 115/117, a comparator 116/118, and an adder 119.

累算器111は、入力した動作クロックclksによって動作し、設定値kの小数値のみを累算する小数値累算器1101と、設定値kの整数部のみを保持するFF(フリップフロップ)1102/1103で構成される。
小数値累算器1101は、設定値kの小数値を前記動作クロックclksの周期で累算する。
累算器111内の累算実行と値の更新は、後段の比較器116の結果で行う。
The accumulator 111 is operated by the input operation clock clks, and accumulates only the decimal value of the set value k, and the FF (flip-flop) 1102 that holds only the integer part of the set value k. / 1103.
The decimal value accumulator 1101 accumulates the decimal value of the set value k with the period of the operation clock clks.
Accumulation execution in the accumulator 111 and update of the value are performed based on the result of the comparator 116 at the subsequent stage.

図12の加算器119は、累算器111内の設定値kの整数部のみを保持するFF1102/1103の出力と設定値kの小数値のみを累算する小数値累算器1101の桁上がりの加算を行う。   The adder 119 in FIG. 12 carries the output of the FF 1102/1103 that holds only the integer part of the setting value k in the accumulator 111 and the carry of the decimal value accumulator 1101 that accumulates only the decimal value of the setting value k. Add.

図12のダウンカウンタ115(第1のダウンカウンタに相当)は、動作クロックclksで動作し、動作クロックclksの周期で加算器119の加算結果をダウンカウントする。   The down counter 115 (corresponding to the first down counter) in FIG. 12 operates with the operation clock clks, and counts down the addition result of the adder 119 at the cycle of the operation clock clks.

図12の比較器116(第1の比較器に相当)は、動作クロックclksで動作し、ダウンカウンタ115の出力を“1”と比較し、ダウンカウンタ115の出力が“1”になるとパルスを出力する。
比較器116の出力は、制御信号C3(第3の制御信号に相当)として出力される。
制御信号C3は、パルス生成部140におけるパルス生成タイミングを制御するための信号である。
また、制御信号C3は、累算器111、ダウンカウンタ115/117へフィードバックされ、累算器111内の小数値累算器1101、FF1102/1103とダウンカウンタ115/117の値更新のイネーブル信号としても使用される。
The comparator 116 (corresponding to the first comparator) of FIG. 12 operates with the operation clock clks, compares the output of the down counter 115 with “1”, and outputs a pulse when the output of the down counter 115 becomes “1”. Output.
The output of the comparator 116 is output as a control signal C3 (corresponding to a third control signal).
The control signal C3 is a signal for controlling the pulse generation timing in the pulse generator 140.
Further, the control signal C3 is fed back to the accumulator 111 and the down counter 115/117, and is used as an enable signal for updating the values of the decimal value accumulator 1101, FF 1102 1103 and the down counter 115/117 in the accumulator 111. Also used.

図12のダウンカウンタ117(第2のダウンカウンタに相当)は、動作クロックの2倍速クロックclks2で動作し、2倍速クロックclks2の周期で、累算器111の設定値kの整数部のみを保持するFF1103の出力をダウンカウントする。   The down counter 117 (corresponding to the second down counter) in FIG. 12 operates with the double speed clock clks2 of the operation clock, and holds only the integer part of the set value k of the accumulator 111 in the period of the double speed clock clks2. The output of the FF 1103 to be down-counted.

図12の比較器118(第2の比較器に相当)は、動作クロックの2倍速クロックclks2で動作し、2倍速クロックclks2の周期で、ダウンカウンタ117の出力を“1”と比較し、ダウンカウンタ117の出力が“1”になるとパルスを出力する。   The comparator 118 (corresponding to the second comparator) in FIG. 12 operates with the double-speed clock clks2 of the operation clock, compares the output of the down counter 117 with “1” at the cycle of the double-speed clock clks2, and When the output of the counter 117 becomes “1”, a pulse is output.

図12の制御信号C1生成部114は、累算器111の設定値kの小数値のみを累算する小数値累算器1101の出力と比較器116の出力から、比較結果が“1”以下になったタイミングで小数値を制御信号C1として出力する。
つまり、制御信号C1生成部114は、比較器116からパルスを入力し、比較器116からパルスを入力した際の小数値累算器1101における小数値の累算値を特定し、特定した小数値の累算値を通知する制御信号C1を生成し、出力する。
The control signal C1 generation unit 114 in FIG. 12 has a comparison result of “1” or less from the output of the decimal value accumulator 1101 that accumulates only the decimal value of the set value k of the accumulator 111 and the output of the comparator 116. The decimal value is output as the control signal C1 at the timing when.
That is, the control signal C1 generation unit 114 inputs a pulse from the comparator 116, specifies the accumulated value of the decimal value in the decimal value accumulator 1101 when the pulse is input from the comparator 116, and specifies the specified decimal value. A control signal C1 for notifying the accumulated value is generated and output.

図12の基準クロックclka生成部113は、動作クロックの2倍速クロックclks2で動作し、比較器116の出力と比較器118の出力から基準クロックclkaを生成し、出力する。
基準クロックclkaの生成は、比較器116の出力パルスで基準クロックclkaのポジティブエッジを生成し、比較器118の出力パルスで基準クロックclkaのネガティブエッジを生成する。
なお、基準クロックclkaは、実施の形態1と同様、位相調整の対象となるクロックである。
The reference clock clka generator 113 shown in FIG. 12 operates with the double-speed clock clks2 of the operation clock, and generates and outputs the reference clock clka from the output of the comparator 116 and the output of the comparator 118.
The reference clock clka is generated by generating a positive edge of the reference clock clka with the output pulse of the comparator 116 and generating a negative edge of the reference clock clka with the output pulse of the comparator 118.
Note that the reference clock clka is a clock subject to phase adjustment, as in the first embodiment.

図13に、図12の累算部110内の累算器111での基準クロックclkaの生成動作タイミングを示す。
図13では設定値kを“3.4”と仮定している。
比較器116の出力パルスによって、累算器111内のFF1102/1103と小数値累算器1101、ダウンカウンタ115/117の値を更新し、ダウンカウンタ115/117はそれぞれの動作クロックclksと2倍速クロックclks2で更新された値をカウントダウンする。
比較器116/118は、ダウンカウンタ値が“1”以下になったらパルスを出力する。
基準クロックclka生成部113は、比較器116の出力パルスのタイミングで“1”とし、比較器118の出力パルスのタイミングで“0”とすることで基準クロックclkaを生成する。
このように、基準クロックclka生成部113は、比較器116からパルスを入力するとともに比較器118からパルスを入力し、比較器116からパルスを入力したタイミングで立ち上がり、比較器118からパルスを入力したタイミングで立ち下がる基準クロックclkaを生成する。
制御信号C1生成部114は、比較器116出力パルスのタイミングの累算器111内の小数値累算器1101の出力を制御信号C1として出力する。
FIG. 13 shows the generation operation timing of the reference clock clka in the accumulator 111 in the accumulator 110 of FIG.
In FIG. 13, the set value k is assumed to be “3.4”.
The values of the FFs 1102/1103, the decimal value accumulator 1101, and the down counter 115/117 in the accumulator 111 are updated by the output pulse of the comparator 116, and the down counter 115/117 receives the respective operation clock clks and double speed. The value updated by the clock clks2 is counted down.
The comparator 116/118 outputs a pulse when the down counter value becomes "1" or less.
The reference clock clka generation unit 113 generates the reference clock clka by setting “1” at the timing of the output pulse of the comparator 116 and setting “0” at the timing of the output pulse of the comparator 118.
As described above, the reference clock clka generation unit 113 receives the pulse from the comparator 116 and the pulse from the comparator 118, rises at the timing when the pulse is input from the comparator 116, and receives the pulse from the comparator 118. A reference clock clka that falls at the timing is generated.
The control signal C1 generation unit 114 outputs the output of the decimal value accumulator 1101 in the accumulator 111 at the timing of the output pulse of the comparator 116 as the control signal C1.

図14は、実施の形態2のパルス生成部140構成を示している。
図14のパルス生成部140は、2倍速クロックclks2で動作し、制御信号C3を保持するFFと、制御信号C3と前記FFとの論理和回路で構成される。
図14のパルス生成部140は、動作クロックclksの1周期分のパルスを生成し、入力パルスplとして出力する。
このように、パルス生成部140は、比較器116から出力されたパルスを制御信号C3として入力し、制御信号C3をイネーブルとして、動作クロックclksの1周期分のパルスを生成する。
FIG. 14 shows the configuration of the pulse generation unit 140 of the second embodiment.
The pulse generation unit 140 shown in FIG. 14 is operated by a double speed clock clks2, and includes an FF that holds a control signal C3, and an OR circuit of the control signal C3 and the FF.
14 generates a pulse for one cycle of the operation clock clks and outputs it as an input pulse pl.
Thus, the pulse generation unit 140 receives the pulse output from the comparator 116 as the control signal C3, enables the control signal C3, and generates a pulse for one cycle of the operation clock clks.

図11の可変遅延部120は、図6と構成・動作共に同様であり、入力が2倍速クロックclks2から前記パルス生成部140生成の入力パルスplに変化するのみである。
つまり、可変遅延部120は、制御信号C1で通知されている小数値に対応する遅延量を導出し、導出した遅延量をパルス生成部140から入力したパルスplに与えて、遅延パルスpldを生成し、出力する。
The variable delay unit 120 in FIG. 11 is the same in configuration and operation as in FIG. 6, and the input only changes from the double speed clock clks2 to the input pulse pl generated by the pulse generation unit 140.
That is, the variable delay unit 120 derives a delay amount corresponding to the decimal value notified by the control signal C1, and gives the derived delay amount to the pulse pl input from the pulse generation unit 140 to generate the delay pulse pld. And output.

図11の位相調整部130は、累算部110出力の基準クロックclkaと可変遅延部120出力の遅延パルスpldの論理和で構成され(図15)、前記論理和の出力が生成クロックclkcとなる。
図16に位相調整部130の動作タイミングを示す。
基準クロックclkaと遅延パルスpldの論理和のみであるため、基準クロックclkaの位相調整は、遅延パルスpldが入力されたときのみ(ポジティブエッジのみ)である。
このように、位相調整部130は、累算部110により生成された基準クロックclkaを入力し、可変遅延部120で生成された遅延パルスpldを入力し、基準クロックclkaの位相を遅延パルスpldで調整し、動作クロックclksの周波数を設定値kの2倍で除算して得られる周波数を有するクロックを生成し、生成したクロックを生成クロックclkcとして出力する。
11 includes a logical sum of a reference clock clka output from the accumulator 110 and a delay pulse pld output from the variable delay unit 120 (FIG. 15), and the output of the logical sum is the generated clock clkc. .
FIG. 16 shows the operation timing of the phase adjustment unit 130.
Since only the logical sum of the reference clock clka and the delay pulse pld is set, the phase of the reference clock clka is adjusted only when the delay pulse pld is input (only the positive edge).
As described above, the phase adjustment unit 130 receives the reference clock clka generated by the accumulation unit 110, receives the delay pulse pld generated by the variable delay unit 120, and sets the phase of the reference clock clka as the delay pulse pld. A clock having a frequency obtained by adjusting and dividing the frequency of the operation clock clks by twice the set value k is generated, and the generated clock is output as the generated clock clkc.

図17は、実施の形態2の周波数比較部400構成を示している。
図17の周波数比較部400は、カウンタ411とカウンタ421、比較期間カウンタ430、カウント値取得部412/422、セレクタ413/423、カウント換算部424、差分比較部440から構成される。
周波数比較部400は、生成クロックclkcと参照クロックclkrの周波数差を検出して、出力する。
FIG. 17 shows the configuration of the frequency comparison unit 400 of the second embodiment.
17 includes a counter 411 and a counter 421, a comparison period counter 430, a count value acquisition unit 412/422, a selector 413/423, a count conversion unit 424, and a difference comparison unit 440.
The frequency comparison unit 400 detects and outputs a frequency difference between the generated clock clkc and the reference clock clkr.

図17のカウンタ411は、生成クロックclkcで動作するカウンタであり、比較期間カウンタ430のカウント期間、カウントする。
カウンタ411のカウント値は、比較期間内の生成クロックclkcのトグル数を表す。
図17のカウンタ421は、参照クロックclkrで動作するカウンタであり、比較期間カウンタ430のカウント期間、カウントする。カウンタ411のカウント値は、比較期間内の参照クロックclkrのトグル数を表す。
図17の比較期間カウンタ430は、参照クロックclkrで動作し、カウンタ411と421のカウント値を比較する期間を決める。
カウントはダウンカウントで行い、カウント値が“1”以下となったら、イネーブルを出力する。
カウントはカウントアップでも良い。
比較期間を決めるカウンタ設定値は外部から任意に設定可能である。
図17のカウント値取得部412は、カウンタ411のカウント値を、比較期間カウンタ430出力イネーブルのタイミングで取り込む。
図17のカウント値取得部422は、カウンタ421のカウント値を、比較期間カウンタ430出力イネーブルのタイミングで取り込む。
図17のセレクタ413は、カウンタ411出力か、カウンタ411出力からカウント値取得部412出力を減算した値のどちらか選択し、カウンタ411へ入力する。
値の選択は、比較期間カウンタ430出力イネーブルによって実施する。
図17のセレクタ423は、カウンタ421出力か、カウンタ421出力からカウント値取得部422出力を減算した値のどちらか選択し、カウンタ421へ入力する。
値の選択は、比較期間カウンタ430出力イネーブルによって実施する。
図17のカウント換算部424は、カウント値取得部422が取得したカウンタ値に対して、カウンタ値x(生成クロックclkc周波数/参照クロックclkr周波数)の演算を行い、カウンタ値をカウンタ411の値へ換算する。
図17の差分比較部440は、カウント値取得部412出力とカウント換算部424出力の減算を行い、その減算結果を生成クロックclkcと参照クロックclkrの周波数差として出力する。
The counter 411 in FIG. 17 is a counter that operates with the generated clock clkc and counts during the count period of the comparison period counter 430.
The count value of the counter 411 represents the number of toggles of the generated clock clkc within the comparison period.
The counter 421 in FIG. 17 is a counter that operates with the reference clock clkr and counts during the count period of the comparison period counter 430. The count value of the counter 411 represents the number of toggles of the reference clock clkr within the comparison period.
The comparison period counter 430 in FIG. 17 operates with the reference clock clkr and determines a period for comparing the count values of the counters 411 and 421.
Counting is performed by down-counting, and when the count value becomes "1" or less, enable is output.
The count may be counted up.
The counter set value for determining the comparison period can be arbitrarily set from the outside.
The count value acquisition unit 412 in FIG. 17 captures the count value of the counter 411 at the timing of enabling the comparison period counter 430 output.
The count value acquisition unit 422 in FIG. 17 captures the count value of the counter 421 at the timing of enabling the comparison period counter 430.
The selector 413 in FIG. 17 selects either the counter 411 output or a value obtained by subtracting the count value acquisition unit 412 output from the counter 411 output, and inputs the selected value to the counter 411.
The value is selected by enabling the comparison period counter 430 output.
The selector 423 in FIG. 17 selects either the counter 421 output or a value obtained by subtracting the count value acquisition unit 422 output from the counter 421 output, and inputs the selected value to the counter 421.
The value is selected by enabling the comparison period counter 430 output.
The count conversion unit 424 in FIG. 17 calculates the counter value x (generated clock clkc frequency / reference clock clkr frequency) with respect to the counter value acquired by the count value acquisition unit 422, and converts the counter value to the value of the counter 411. Convert.
The difference comparison unit 440 in FIG. 17 performs subtraction between the count value acquisition unit 412 output and the count conversion unit 424 output, and outputs the subtraction result as a frequency difference between the generated clock clkc and the reference clock clkr.

図18は、実施の形態2の補正部300の構成を示している。
補正部300は、周波数比較部400で検出した周波数差と、生成クロックclkcを生成するためにクロック生成部100が使用した設定値kから、生成クロックclkcと参照クロックclkrの周波数差が“0”とするように設定値kを補正する補正値を生成する。
FIG. 18 shows a configuration of the correction unit 300 according to the second embodiment.
The correction unit 300 determines that the frequency difference between the generated clock clkc and the reference clock clkr is “0” from the frequency difference detected by the frequency comparison unit 400 and the set value k used by the clock generation unit 100 to generate the generated clock clkc. A correction value for correcting the set value k is generated as follows.

図18のビットシフト310は、設定値kの右ビットシフトする。
シフト量は外部から任意に設定可能である。ここで周波数差“1”に対する補正値の重みを決定する。
図18の乗算器320は、周波数比較部400出力の周波数差と、ビットシフト310出力の設定値kシフト結果の乗算を行い、周波数差を補正値へ変換する。
図18のビットシフト330/340は、乗算器320出力を右ビットシフトする。
それぞれ、シフト量は外部から任意に設定可能である。ビットシフトすることで、補正値の補正量を調整する。
図18の積分器350は、ビットシフト340出力を累算する。
積分器350によって、周波数差が“0”となったときの補正値を保持する。
図18の加算器360は、ビットシフト330出力と積分器350出力の加算を行う。
図18のビットシフト370は、加算器360出力を右ビットシフトする。
シフト量は外部から任意に設定可能である。
ビットシフトすることで、補正値の補正量を調整し、最終的な補正値として出力する。
The bit shift 310 in FIG. 18 performs a right bit shift of the set value k.
The shift amount can be arbitrarily set from the outside. Here, the weight of the correction value for the frequency difference “1” is determined.
A multiplier 320 in FIG. 18 multiplies the frequency difference output from the frequency comparison unit 400 by the set value k shift result of the bit shift 310 output, and converts the frequency difference into a correction value.
The bit shift 330/340 in FIG. 18 right bit shifts the output of the multiplier 320.
In each case, the shift amount can be arbitrarily set from the outside. The correction amount of the correction value is adjusted by bit shifting.
The integrator 350 of FIG. 18 accumulates the bit shift 340 output.
The integrator 350 holds the correction value when the frequency difference becomes “0”.
The adder 360 in FIG. 18 adds the bit shift 330 output and the integrator 350 output.
The bit shift 370 in FIG. 18 right bit shifts the output of the adder 360.
The shift amount can be arbitrarily set from the outside.
By bit shifting, the correction amount of the correction value is adjusted and output as the final correction value.

以上のように、図11に示す実施の形態2によるDLL回路は、クロック生成部100と周波数比較部400、補正部300のループ処理により、参照クロックclkrに周波数同期した生成クロックclkcを生成する。
この構成による生成クロックclkcの生成可能周波数幅や精度は、実施の形態1と同様である。
また、全回路をディジタル回路で構成可能であることも同様である。
更に、位相比較ではなく周波数比較としているため、位相比較を利用するより設計は容易である。
また、図11の構成において、図1の位相比較部200を使用することも可能である。
As described above, the DLL circuit according to the second embodiment shown in FIG. 11 generates the generated clock clkc that is frequency-synchronized with the reference clock clkr by the loop processing of the clock generation unit 100, the frequency comparison unit 400, and the correction unit 300.
The generateable frequency width and accuracy of the generated clock clkc with this configuration are the same as in the first embodiment.
It is also the same that all circuits can be constituted by digital circuits.
Furthermore, since the frequency comparison is used instead of the phase comparison, the design is easier than using the phase comparison.
In addition, in the configuration of FIG. 11, the phase comparison unit 200 of FIG. 1 can be used.

なお、以上の説明では、ダウンカウンタ117、比較器118及び基準クロックclka生成部113に入力するクロックは動作クロックの2倍速クロックclks2としているが、これに限らない。
つまり、ダウンカウンタ117、比較器118及び基準クロックclka生成部113に入力するクロックは、動作クロックと同じ周期であってもよいし、動作クロックよりも速い周期のクロックであってもよいし、遅い周期のクロックであってもよい。
また、動作クロックよりも速い周期のクロックを入力する場合にも、動作クロックの整数倍の周期のクロックでなくてもよい。
また、動作クロックよりも遅い周期のクロックを入力する場合にも、動作クロックの整数分の一の周期のクロックでなくてもよい。
In the above description, the clock input to the down counter 117, the comparator 118, and the reference clock clka generator 113 is the double speed clock clks2 of the operation clock, but is not limited thereto.
That is, the clock input to the down counter 117, the comparator 118, and the reference clock clka generation unit 113 may be the same cycle as the operation clock, may be a clock having a faster cycle than the operation clock, or may be slow. It may be a periodic clock.
In addition, when a clock having a period faster than the operation clock is input, the clock may not be an integer multiple of the operation clock.
In addition, when a clock having a cycle slower than the operation clock is input, the clock may not be a cycle of an integer of the operation clock.

このように、本実施の形態では、
外部から入力される動作クロックと前記動作クロックと周波数が異なるもしくは等しい入力クロックと所望の周波数を表す設定値から前記動作クロック周波数の(前記設定値の2倍)分の一の周波数を有する生成クロックを生成するクロック生成部と、
前記生成クロックと外部から入力される参照クロックの位相差を比較し、その位相差を出力する位相比較部と、
前記位相比較部の出力である位相差から、前記位相差を“0”とするように前記設定値へ補正をする補正値を生成し、前記設定値へ補正値を加算する補正部とを備えるDLL回路を説明した。
Thus, in this embodiment,
An externally input operation clock, an input clock having a frequency different from or equal to that of the operation clock, and a generated clock having a frequency that is one half of the operation clock frequency (twice the set value) from a set value that represents a desired frequency. A clock generator for generating
A phase comparison unit that compares the phase difference between the generated clock and an externally input reference clock and outputs the phase difference;
A correction unit that generates a correction value that corrects the set value so that the phase difference is set to “0” from the phase difference that is output from the phase comparison unit, and that adds the correction value to the set value; A DLL circuit has been described.

また、前記クロック生成部が、
動作クロックで動作し、外部から入力される設定値を動作クロック周期で累算することで、第1のクロック(基準クロック)と遅延量を制御する第1の制御信号(制御信号C1)と、パルス生成タイミングを制御する第3の制御信号(制御信号C3)を生成する累算部と、
前記累算部出力の前記第3の制御信号をイネーブルとして、前記動作クロックの1周期期間のパルスを生成するパルス生成部と、
前記累算部出力の前記第1の制御信号で制御される遅延量を、前記パルス生成部で生成されたパルスへ与えて、遅延パルスを生成する可変遅延部と、
前記第1のクロックの位相を前記遅延パルスで補正する位相調整部を有し、
動作クロック周波数の前記設定値分の一の周波数を有する生成クロックを生成可能であることを説明した。
In addition, the clock generation unit
A first control signal (control signal C1) for controlling a first clock (reference clock) and a delay amount by operating with an operation clock and accumulating set values input from the outside with an operation clock cycle; An accumulation unit for generating a third control signal (control signal C3) for controlling the pulse generation timing;
Enabling the third control signal of the output of the accumulator, and generating a pulse of one cycle period of the operation clock; and
A variable delay unit that generates a delay pulse by giving a delay amount controlled by the first control signal of the accumulation unit output to the pulse generated by the pulse generation unit;
A phase adjustment unit for correcting the phase of the first clock with the delay pulse;
It has been explained that it is possible to generate a generated clock having a frequency equal to the set value of the operating clock frequency.

また、外部から入力される設定値は、動作クロックの周波数と、(所望の周波数の2倍)の除算から算出され、整数と小数で表現できる実数であることを説明した。   Further, it has been described that the set value input from the outside is a real number that is calculated from the division of the frequency of the operation clock and (twice the desired frequency) and can be expressed by an integer and a decimal.

また、前記クロック生成部を構成する前記可変遅延部は、
前記累算部の前記設定値の累算結果の小数部にあたる第1の制御信号を、内部に有する変換コードに従い、遅延量へ変換し、前記遅延量に相当する遅延を入力される前記倍速クロックもしくは前記パルス生成部のパルスへ与え、前記第2のクロックを出力することを説明した。
In addition, the variable delay unit constituting the clock generation unit,
The double-speed clock to which the first control signal corresponding to the decimal part of the accumulation result of the set value of the accumulation unit is converted into a delay amount according to an internal conversion code, and a delay corresponding to the delay amount is input Alternatively, it has been described that the pulse is supplied to the pulse of the pulse generator and the second clock is output.

また、前記クロック生成部を構成する位相調整部は、
前記累算部出力の第1のクロックと、前記可変遅延部出力の第2のクロックもしくは前記遅延パルスを前記第2の制御信号のタイミングで論理和もしくは論理積もしくは排他的論理和をとることで前記第1のクロックの位相を調整することを説明した。
In addition, the phase adjustment unit constituting the clock generation unit,
By taking the logical sum, logical product, or exclusive logical sum of the first clock of the accumulating unit output and the second clock of the variable delay unit output or the delayed pulse at the timing of the second control signal. The adjustment of the phase of the first clock has been described.

また、前記位相比較部のかわりに、前記生成クロックと前記参照クロックの周波数差を比較し、その周波数差を出力する周波数比較部を用いることが可能であることを説明した。   Further, it has been described that a frequency comparison unit that compares the frequency difference between the generated clock and the reference clock and outputs the frequency difference can be used instead of the phase comparison unit.

また、前記クロック生成部、前記位相比較部、前記補正部は論理回路で設計できることを説明した。   Further, it has been described that the clock generation unit, the phase comparison unit, and the correction unit can be designed with a logic circuit.

なお、本実施の形態に係るクロック生成部100の動作を、累算部110の動作(累算ステップ)、パルス生成部140の動作(パルス生成ステップ)、可変遅延部120の動作(可変遅延ステップ)、位相調整部130による動作(位相調整ステップ)を含むクロック生成方法として捉えることもできる。   The operation of the clock generation unit 100 according to the present embodiment includes the operation of the accumulation unit 110 (accumulation step), the operation of the pulse generation unit 140 (pulse generation step), and the operation of the variable delay unit 120 (variable delay step). ) And a clock generation method including an operation (phase adjustment step) by the phase adjustment unit 130.

実施の形態3.
図19は、実施の形態3によるDLL回路構成を示している。
図19のDLL回路は、クロック生成部100と、位相比較部200、補正部300から構成される。
入力は、動作クロックの4分周クロックclksdがクロック生成部100へ入力される以外、実施の形態1と同様である。
また、クロック生成部100は、累算部110と、可変遅延部120と、位相調整部130ではなくクロック選択部150から構成されている。
なお、本実施の形態では、累算部110からクロック選択部150に対して制御信号C4(第4の制御信号に相当)を出力する。
制御信号C4は、クロック選択部150に対して、遅延クロックclkdの立ち上がりタイミング及び立下りタイミングを通知する信号である。
クロック選択部150は、制御信号C4のアサートタイミングにおいて入力している遅延クロックclkdを選択して出力し、制御信号C4のアサートタイミング以外は、直近に選択した遅延クロックclkdの出力を維持して、動作クロックclksの周波数を設定値kで除算して得られる周波数を有するクロックを生成クロックclkcとして出力する。
Embodiment 3 FIG.
FIG. 19 shows a DLL circuit configuration according to the third embodiment.
The DLL circuit of FIG. 19 includes a clock generation unit 100, a phase comparison unit 200, and a correction unit 300.
The input is the same as in the first embodiment, except that the operation clock divided by four clocks clksd is input to the clock generation unit 100.
The clock generation unit 100 includes an accumulation unit 110, a variable delay unit 120, and a clock selection unit 150 instead of the phase adjustment unit 130.
In the present embodiment, control signal C4 (corresponding to a fourth control signal) is output from accumulation section 110 to clock selection section 150.
The control signal C4 is a signal that notifies the clock selection unit 150 of the rising timing and falling timing of the delay clock clkd.
The clock selection unit 150 selects and outputs the delay clock clkd input at the assertion timing of the control signal C4, and maintains the output of the most recently selected delay clock clkd except for the assertion timing of the control signal C4. A clock having a frequency obtained by dividing the frequency of the operation clock clks by the set value k is output as the generated clock clkc.

図20は、実施の形態3の累算部110の構成を示している。
図20の累算部110(第1制御信号生成部に相当)は、累算器111と、カウンタ1112、加算器1113、比較器1114、制御信号C4生成部1115から構成される。
累算器111は、動作クロックclksによって動作し、動作クロックclks周期で設定値kを累積するとともに、フィードバックされた制御信号C4のアサートタイミングによって設定値kの累算結果を出力する。
累算器111の累算結果の整数値は加算器1113の入力となり、累算結果の小数値は制御信号C1として出力される。
つまり、制御信号C1は、制御信号C4のアサートタイミングにおける設定値kの累積値の小数値を通知する信号である。
図20のカウンタ1112は、前記累算器111と同様に動作クロックclksで動作し、“1”づつカウントアップし、そのカウンタ値を出力する。
図20の加算器1113は、累算器111の累算結果の整数値からカウンタ1112のカウント値を減算し、その累算結果とカウンタ値の差分を出力する。
図20の比較器1114は、前段の加算器1113の出力である累算器111出力とカウンタ1112出力の差分と、“1”を比較し、比較結果を出力する。
図20の制御信号C4生成部1115(第4制御信号生成部に相当)は、加算器1113の出力のうちのLSB(Least Significant Bit)と、比較器1114の出力を入力とし、制御信号C4を生成する。
出力である制御信号C4は、外部へ出力されると同時に、前記累算器111へフィードバックされる。
FIG. 20 shows the configuration of the accumulating unit 110 of the third embodiment.
20 includes an accumulator 111, a counter 1112, an adder 1113, a comparator 1114, and a control signal C4 generation unit 1115. The accumulation unit 110 (corresponding to the first control signal generation unit) in FIG.
The accumulator 111 operates according to the operation clock clks, accumulates the set value k in the operation clock clks cycle, and outputs the accumulation result of the set value k according to the asserted timing of the control signal C4 fed back.
The integer value of the accumulation result of the accumulator 111 is input to the adder 1113, and the decimal value of the accumulation result is output as the control signal C1.
That is, the control signal C1 is a signal that notifies the decimal value of the cumulative value of the set value k at the assertion timing of the control signal C4.
The counter 1112 of FIG. 20 operates with the operation clock clks as in the accumulator 111, counts up by “1”, and outputs the counter value.
The adder 1113 in FIG. 20 subtracts the count value of the counter 1112 from the integer value of the accumulation result of the accumulator 111, and outputs the difference between the accumulation result and the counter value.
The comparator 1114 in FIG. 20 compares “1” with the difference between the output of the accumulator 111 and the output of the counter 1112, which is the output of the previous stage adder 1113, and outputs the comparison result.
The control signal C4 generation unit 1115 (corresponding to the fourth control signal generation unit) in FIG. 20 receives the LSB (Least Significant Bit) of the output of the adder 1113 and the output of the comparator 1114 as inputs, and receives the control signal C4 as the control signal C4. Generate.
The output control signal C4 is output to the outside and simultaneously fed back to the accumulator 111.

図19の可変遅延部120は、入力されるクロックが動作クロックの分周クロックになった以外は、実施の形態1及び2と同様の構成・動作である。   The variable delay unit 120 in FIG. 19 has the same configuration and operation as those in the first and second embodiments except that the input clock is a divided clock of the operation clock.

図21は、実施の形態3のクロック選択部150の構成を示している。
図21のクロック選択部150は、現在の生成クロックclkcを動作クロックclksによって保持するFF151と、制御信号C4によってFF151の出力か遅延クロックclkdかを選択するセレクタ152から構成される。
制御信号C4によって、遅延クロックclkdが切り替わったタイミングで遅延クロックclkdを選択し、次に遅延クロックclkdが切り替わるまでFF151を選択する。
FIG. 21 illustrates a configuration of the clock selection unit 150 according to the third embodiment.
The clock selection unit 150 in FIG. 21 includes an FF 151 that holds the current generated clock clkc by the operation clock clks, and a selector 152 that selects the output of the FF 151 or the delay clock clkd by the control signal C4.
Based on the control signal C4, the delay clock clkd is selected at the timing when the delay clock clkd is switched, and then the FF 151 is selected until the delay clock clkd is switched.

図19の位相比較部200及び補正部300は、実施の形態1と同様の構成・動作である。
また、位相比較部200の実施の形態2の周波数比較部400へ変換することも可能で、その場合の補正部は実施の形態2の構成となる。
The phase comparison unit 200 and the correction unit 300 in FIG. 19 have the same configuration and operation as in the first embodiment.
Further, it is possible to convert the phase comparison unit 200 to the frequency comparison unit 400 of the second embodiment, and the correction unit in that case has the configuration of the second embodiment.

図22は、図19のDLL回路でのクロック生成時の動作を示している。
図22の上段の波形がカウンタ1112によるカウンタ値推移をしている。
このカウンタ値と累算器111で累算されている累算値の整数値が一致したときに、累算値の小数値によって選択された遅延クロックclkdを生成クロックとして出力する。
カウンタ値と累算器111で累算されている累算値の整数値の一致判定は、加算器1113と比較器1114で実施する。
選択した遅延クロックclkdの出力判定は、制御信号C4生成部1115出力の制御信号C4によって、クロック選択部150で実施する。
図22において、上から下に向かう2本の矢印(同一線上にある2本の矢印)の組の各々が、制御信号C4のアサートタイミングに相当する。
そして、2本の矢印の組のうち上側の矢印が指し示している遅延クロックclkdが累算値の小数値により選択された遅延クロックであり、下側の矢印が指し示している箇所が、生成クロックclkcにおける遅延クロックclkdの切り替わりのタイミングである。
クロック選択部150は、このように、制御信号C4のアサートタイミングにおいて入力している遅延クロックclkdを選択して出力するとともに、出力した遅延クロックclkdをフィードバックしFF151で保持し、制御信号C4の次のアサートタイミングまでの期間は、フィードバックさせた遅延クロックclkdを出力する。
FIG. 22 shows an operation at the time of clock generation in the DLL circuit of FIG.
The upper waveform of FIG. 22 shows the counter value transition by the counter 1112.
When the counter value matches the integer value of the accumulated value accumulated by the accumulator 111, the delay clock clkd selected by the decimal value of the accumulated value is output as a generated clock.
The adder 1113 and the comparator 1114 determine whether the counter value matches the integer value of the accumulated value accumulated by the accumulator 111.
The output selection of the selected delayed clock clkd is performed by the clock selection unit 150 by the control signal C4 output from the control signal C4 generation unit 1115.
In FIG. 22, each set of two arrows from the top to the bottom (two arrows on the same line) corresponds to the assertion timing of the control signal C4.
The delay clock clkd indicated by the upper arrow in the set of two arrows is a delay clock selected by the decimal value of the accumulated value, and the position indicated by the lower arrow is the generated clock clkc. Is the switching timing of the delay clock clkd.
In this way, the clock selection unit 150 selects and outputs the delay clock clkd that is input at the assertion timing of the control signal C4, feeds back the output delay clock clkd, and holds it in the FF 151. The delayed clock clkd fed back is output during the period up to the assertion timing.

以上のように、図19に示す実施の形態3によるDLL回路においても、実施の形態1及び2と同様に、非常に広レンジかつ、高精度な生成クロックclkcを生成可能であり、設計も容易で、小回路規模を実現できる。   As described above, also in the DLL circuit according to the third embodiment shown in FIG. 19, as in the first and second embodiments, the generation clock clkc with a very wide range and high accuracy can be generated, and the design is easy. Thus, a small circuit scale can be realized.

なお、以上の説明では、可変遅延部120に入力するクロックは動作クロックの4分周クロックclksdとしているが、これに限らない。
つまり、可変遅延部120に入力するクロックは、動作クロックと同じ周期であってもよいし、動作クロックよりも速い周期のクロックであってもよいし、遅い周期のクロックであってもよい。
また、動作クロックよりも速い周期のクロックを入力する場合にも、動作クロックの整数倍の周期のクロックでなくてもよい。
また、動作クロックよりも遅い周期のクロックを入力する場合にも、動作クロックの整数分の一の周期のクロックでなくてもよい。
In the above description, the clock input to the variable delay unit 120 is the four-frequency clock clksd of the operation clock, but is not limited thereto.
That is, the clock input to the variable delay unit 120 may have the same cycle as the operation clock, may be a clock with a cycle faster than the operation clock, or may be a clock with a slow cycle.
In addition, when a clock having a period faster than the operation clock is input, the clock may not be an integer multiple of the operation clock.
In addition, when a clock having a cycle slower than the operation clock is input, the clock may not be a cycle of an integer of the operation clock.

このように、本実施の形態では、
外部から入力される動作クロックと前記動作クロックと周波数が異なるもしくは等しい入力クロックと所望の周波数を表す設定値から前記動作クロック周波数の(前記設定値の2倍)分の一の周波数を有する生成クロックを生成するクロック生成部と、
前記生成クロックと外部から入力される参照クロックの位相差を比較し、その位相差を出力する位相比較部と、
前記位相比較部の出力である位相差から、前記位相差を“0”とするように前記設定値へ補正をする補正値を生成し、前記設定値へ補正値を加算する補正部とを備えるDLL回路を説明した。
Thus, in this embodiment,
An externally input operation clock, an input clock having a frequency different from or equal to that of the operation clock, and a generated clock having a frequency that is one half of the operation clock frequency (twice the set value) from a set value that represents a desired frequency. A clock generator for generating
A phase comparison unit that compares the phase difference between the generated clock and an externally input reference clock and outputs the phase difference;
A correction unit that generates a correction value that corrects the set value so that the phase difference is set to “0” from the phase difference that is output from the phase comparison unit, and that adds the correction value to the set value; A DLL circuit has been described.

また、前記クロック生成部が、
動作クロックで動作し、外部から入力される設定値を動作クロック周期で累算することで、遅延量を制御する第1の制御信号(制御信号C1)と生成クロックのエッジ間隔を決める第4の制御信号(制御信号C4)を生成する累算部と、
外部から動作クロックと周波数が異なるもしくは等しい入力クロックを受け取り、前記累算部出力の前記第1の制御信号によって制御される遅延量を前記入力クロックに与えて遅延クロックを生成する可変遅延部と、
前記第4の制御信号によって前記遅延クロックを選択するかフィードバックした生成クロックを選択するかを決定するクロック選択部を有し、
動作クロック周波数の(前記設定値の2倍)分の一の周波数を有する生成クロックを生成可能であることを説明した。
In addition, the clock generation unit
A fourth value that determines the edge interval between the first control signal (control signal C1) for controlling the delay amount and the generated clock by operating with the operation clock and accumulating the set value input from the outside in the operation clock cycle. An accumulator for generating a control signal (control signal C4);
A variable delay unit that receives an input clock having a frequency different from or equal to an operation clock from the outside, and generates a delay clock by giving the input clock a delay amount controlled by the first control signal of the accumulation unit output;
A clock selection unit that determines whether to select the delayed clock or the generated clock that is fed back according to the fourth control signal;
It has been explained that it is possible to generate a generated clock having a frequency that is a fraction of the operating clock frequency (twice the set value).

また、外部から入力される設定値は、動作クロックの周波数と、(所望の周波数の2倍)の除算から算出され、整数と小数で表現できる実数であることを説明した。   Further, it has been described that the set value input from the outside is a real number that is calculated from the division of the frequency of the operation clock and (twice the desired frequency) and can be expressed by an integer and a decimal.

また、前記クロック生成部を構成する前記可変遅延部は、
前記累算部の前記設定値の累算結果の小数部にあたる第1の制御信号を、内部に有する変換コードに従い、遅延量へ変換し、前記遅延量に相当する遅延を入力される前記倍速クロックもしくは前記パルス生成部のパルスへ与え、前記第2のクロックを出力することを説明した。
In addition, the variable delay unit constituting the clock generation unit,
The double-speed clock to which the first control signal corresponding to the decimal part of the accumulation result of the set value of the accumulation unit is converted into a delay amount according to an internal conversion code, and a delay corresponding to the delay amount is input Alternatively, it has been described that the pulse is supplied to the pulse of the pulse generator and the second clock is output.

また、前記クロック生成部を構成する位相調整部は、
前記累算部出力の第1のクロックと、前記可変遅延部出力の第2のクロックもしくは前記遅延パルスを前記第2の制御信号のタイミングで論理和もしくは論理積もしくは排他的論理和をとることで前記第1のクロックの位相を調整することを説明した。
In addition, the phase adjustment unit constituting the clock generation unit,
By taking the logical sum, logical product, or exclusive logical sum of the first clock of the accumulating unit output and the second clock of the variable delay unit output or the delayed pulse at the timing of the second control signal. The adjustment of the phase of the first clock has been described.

また、前記位相比較部のかわりに、前記生成クロックと前記参照クロックの周波数差を比較し、その周波数差を出力する周波数比較部を用いることが可能であることを説明した。   Further, it has been described that a frequency comparison unit that compares the frequency difference between the generated clock and the reference clock and outputs the frequency difference can be used instead of the phase comparison unit.

また、前記クロック生成部、前記位相比較部、前記補正部は論理回路で設計できることを説明した。   Further, it has been described that the clock generation unit, the phase comparison unit, and the correction unit can be designed with a logic circuit.

なお、本実施の形態に係るクロック生成部100の動作を、累算部110の動作(累算ステップ)、可変遅延部120の動作(可変遅延ステップ)、クロック選択部150による動作(クロック選択ステップ)を含むクロック生成方法として捉えることもできる。   The operation of the clock generation unit 100 according to the present embodiment includes the operation of the accumulation unit 110 (accumulation step), the operation of the variable delay unit 120 (variable delay step), and the operation of the clock selection unit 150 (clock selection step). ).

実施の形態4.
図23は、実施の形態4によるDLL回路構成を示している。
図23のDLL回路は、実施の形態1のクロック生成部100のみで構成し、位相比較部200、補正部300を削除している。
以上の構成により、クロック生成部のみの設計でよいため、より設計が容易となり、かつ小回路規模となる。
Embodiment 4 FIG.
FIG. 23 shows a DLL circuit configuration according to the fourth embodiment.
The DLL circuit of FIG. 23 includes only the clock generation unit 100 of the first embodiment, and omits the phase comparison unit 200 and the correction unit 300.
With the above configuration, only the clock generation unit may be designed, so that the design is easier and the circuit scale is reduced.

実施の形態5.
図24は、実施の形態5によるDLL回路構成を示している。
図24のDLL回路は、実施の形態2のクロック生成部100のみで構成し、周波数比較部400、補正部300を削除している。
以上の構成により、クロック生成部のみの設計でよいため、より設計が容易となり、かつ小回路規模となる。
Embodiment 5 FIG.
FIG. 24 shows a DLL circuit configuration according to the fifth embodiment.
The DLL circuit of FIG. 24 includes only the clock generation unit 100 of the second embodiment, and the frequency comparison unit 400 and the correction unit 300 are omitted.
With the above configuration, only the clock generation unit may be designed, so that the design is easier and the circuit scale is reduced.

実施の形態6.
図25は、実施の形態6によるDLL回路構成を示している。図25のDLL回路は、実施の形態3のクロック生成部100のみで構成し、位相比較部200、補正部300を削除している。
以上の構成により、クロック生成部のみの設計でよいため、より設計が容易となり、かつ小回路規模となる。
Embodiment 6 FIG.
FIG. 25 shows a DLL circuit configuration according to the sixth embodiment. The DLL circuit of FIG. 25 includes only the clock generation unit 100 of the third embodiment, and the phase comparison unit 200 and the correction unit 300 are omitted.
With the above configuration, only the clock generation unit may be designed, so that the design is easier and the circuit scale is reduced.

100 クロック生成部、110 累算部、111 累算器、112 検出部、113 基準クロックclka生成部、114 制御信号C1生成部、115 ダウンカウンタ、116 比較器、117 ダウンカウンタ、118 比較器、120 可変遅延部、121 遅延素子、122 セレクタ、123 変換部、130 位相調整部、140 パルス生成部、150 クロック選択部、151 FF、152 セレクタ、200 位相比較部、300 補正部、310 ビットシフト、320 乗算器、330 ビットシフト、340 ビットシフト、350 積分器、360 加算器、370 ビットシフト、400 周波数比較部、411 カウンタ、412 カウント値取得部、413 セレクタ、421 カウンタ、422 カウント値取得部、423 セレクタ、424 カウント換算部、430 比較期間カウンタ、440 差分比較部、1101 小数値累算器、1102 フリップフロップ、1103 フリップフロップ、1112 カウンタ、1113 加算器、1114 比較器、1115 制御信号C4生成部。   100 clock generator, 110 accumulator, 111 accumulator, 112 detector, 113 reference clock clka generator, 114 control signal C1 generator, 115 down counter, 116 comparator, 117 down counter, 118 comparator, 120 Variable delay unit, 121 delay element, 122 selector, 123 conversion unit, 130 phase adjustment unit, 140 pulse generation unit, 150 clock selection unit, 151 FF, 152 selector, 200 phase comparison unit, 300 correction unit, 310 bit shift, 320 Multiplier, 330 bit shift, 340 bit shift, 350 integrator, 360 adder, 370 bit shift, 400 frequency comparison unit, 411 counter, 412 count value acquisition unit, 413 selector, 421 counter, 422 count value acquisition unit, 4 3 selector, 424 count conversion unit, 430 comparison period counter, 440 difference comparison unit, 1101 decimal value accumulator, 1102 flip-flop, 1103 flip-flop, 1112 counter, 1113 adder, 1114 comparator, 1115 control signal C4 generation unit .

Claims (12)

外部から所定の周波数の動作クロックを入力し、更に、外部から設定値を入力し、入力した前記設定値を前記動作クロックの周期で累算し、累算結果から、位相調整の対象となる基準クロックと、遅延量を制御する第1の制御信号と、位相調整のタイミングを制御する第2の制御信号を生成する累算部と、
外部から所定の周波数のクロックを入力クロックとして入力し、前記累算部により生成された前記第1の制御信号を入力し、前記第1の制御信号によって制御される遅延量を前記入力クロックに与えて、前記入力クロックの遅延クロックを生成する可変遅延部と、
前記累算部により生成された前記基準クロックと前記第2の制御信号を入力し、前記可変遅延部により生成された遅延クロックを入力し、前記第2の制御信号をイネーブルとして前記基準クロックの位相を前記遅延クロックで調整し、前記動作クロックの周波数を(前記設定値の2倍)で除算して得られる周波数を有するクロックを生成する位相調整部とを有することを特徴とするクロック生成装置。
An operation clock having a predetermined frequency is input from the outside, a set value is input from the outside, the input set value is accumulated at the cycle of the operation clock, and a reference for phase adjustment is obtained from the accumulated result. An accumulation unit for generating a clock, a first control signal for controlling a delay amount, and a second control signal for controlling timing of phase adjustment;
A clock having a predetermined frequency is input from the outside as an input clock, the first control signal generated by the accumulator is input, and a delay amount controlled by the first control signal is given to the input clock. A variable delay unit for generating a delay clock of the input clock;
The reference clock generated by the accumulation unit and the second control signal are input, the delay clock generated by the variable delay unit is input, the phase of the reference clock is enabled by enabling the second control signal And a phase adjustment unit that generates a clock having a frequency obtained by dividing the frequency of the operation clock by (twice the set value).
前記累算部は、
整数値と小数値に区分される設定値を入力し、
前記累算部は、
前記設定値の累算値のビット数が所定のビット数を超えたことを検出する度に、第2の制御信号をアサートする第2制御信号生成部と、
前記第2制御信号生成部により前記第2の制御信号がアサートされた際の前記設定値の小数値を特定し、特定した小数値を通知する第1の制御信号を生成する第1制御信号生成部と、
前記第2の制御信号のアサートタイミングの間隔をエッジ間隔とする基準クロックを生成する基準クロック生成部とを有し、
前記可変遅延部は、
前記第1の制御信号で通知されている小数値に対応する遅延量を導出し、導出した遅延量を前記入力クロックに与えて、前記入力クロックの遅延クロックを生成し、
前記位相調整部は、
前記第2の制御信号のアサートタイミングで前記基準クロックと前記遅延クロックとの排他論理和をとり、前記基準クロックの位相を前記遅延クロックで調整することを特徴とする請求項1に記載のクロック生成装置。
The accumulation part is
Enter a setting value that is divided into an integer value and a decimal value,
The accumulation part is
A second control signal generator that asserts a second control signal each time it is detected that the number of bits of the accumulated value of the set value exceeds a predetermined number of bits;
First control signal generation for specifying a decimal value of the set value when the second control signal is asserted by the second control signal generation unit and generating a first control signal for notifying the specified decimal value And
A reference clock generation unit that generates a reference clock having an interval of an assert timing of the second control signal as an edge interval;
The variable delay unit is
Deriving a delay amount corresponding to the decimal value notified by the first control signal, giving the derived delay amount to the input clock, and generating a delay clock of the input clock,
The phase adjusting unit is
2. The clock generation according to claim 1, wherein an exclusive OR of the reference clock and the delay clock is calculated at an assert timing of the second control signal, and a phase of the reference clock is adjusted by the delay clock. apparatus.
外部から所定の周波数の動作クロックを入力し、更に、外部から設定値を入力し、入力した前記設定値を前記動作クロックの周期で累算し、累算結果から、位相調整の対象となる基準クロックと、遅延量を制御する第1の制御信号と、パルス生成タイミングを制御する第3の制御信号を生成する累算部と、
前記累算部により生成された前記第3の制御信号を入力し、前記第3の制御信号をイネーブルとして、前記動作クロックの1周期分のパルスを生成するパルス生成部と、
前記累算部により生成された前記第1の制御信号を入力し、前記パルス生成部により生成されたパルスを入力し、前記第1の制御信号で制御される遅延量を前記パルスに与えて、遅延パルスを生成する可変遅延部と、
前記累算部により生成された前記基準クロックを入力し、前記可変遅延部で生成された前記遅延パルスを入力し、前記基準クロックの位相を前記遅延パルスで調整し、前記動作クロックの周波数を(前記設定値の2倍)で除算して得られる周波数を有するクロックを生成する位相調整部とを有することを特徴とするクロック生成装置。
An operation clock having a predetermined frequency is input from the outside, a set value is input from the outside, the input set value is accumulated at the cycle of the operation clock, and a reference for phase adjustment is obtained from the accumulated result. An accumulation unit that generates a clock, a first control signal that controls a delay amount, and a third control signal that controls a pulse generation timing;
A pulse generation unit that inputs the third control signal generated by the accumulation unit, enables the third control signal, and generates a pulse for one cycle of the operation clock;
The first control signal generated by the accumulation unit is input, the pulse generated by the pulse generation unit is input, and a delay amount controlled by the first control signal is given to the pulse, A variable delay unit for generating a delay pulse;
The reference clock generated by the accumulation unit is input, the delay pulse generated by the variable delay unit is input, the phase of the reference clock is adjusted by the delay pulse, and the frequency of the operation clock is ( And a phase adjusting unit that generates a clock having a frequency obtained by dividing by twice the set value.
前記累算部は、
整数値と小数値に区分される設定値を入力し、
前記累算部は、
前記設定値の小数値を前記動作クロックの周期で累算する小数累算器と、
前記設定値の整数値、及び前記小数累算器による小数値の累算の結果の桁上がりと前記設定値の整数値との加算値を前記動作クロックの周期でダウンカウントする第1のダウンカウンタと、
前記第1のダウンカウンタでのカウント値が1になった際にパルスを出力する第1の比較器と、
前記設定値の整数値を、所定の周波数のクロックでダウンカウントする第2のダウンカウンタと、
前記第2のダウンカウンタでのカウント値が1になった際にパルスを出力する第2の比較器と、
前記第1の比較器からパルスを入力し、前記第1の比較器からパルスを入力した際の前記小数累算器における小数値の累算値を特定し、特定した小数値の累算値を通知する第1の制御信号を生成する第1制御信号生成部と、
前記第1の比較器からパルスを入力するとともに前記第2の比較器からパルスを入力し、前記第1の比較器からパルスを入力したタイミングで立ち上がり前記第2の比較器からパルスを入力したタイミングで立ち下がる基準クロックを生成する基準クロック生成部とを有し、
前記パルス生成部は、
前記累算部の前記第1の比較器から出力されたパルスを前記第3の制御信号として入力し、前記第3の制御信号をイネーブルとして、前記動作クロックの1周期分のパルスを生成し、
前記可変遅延部は、
前記第1の制御信号で通知されている小数値に対応する遅延量を導出し、導出した遅延量を前記パルス生成部から入力したパルスに与えて、遅延パルスを生成し、
前記位相調整部は、
前記基準クロックと前記遅延パルスとの論理和をとり、前記基準クロックの位相を前記遅延パルスで調整することを特徴とする請求項3に記載のクロック生成装置。
The accumulation part is
Enter a setting value that is divided into an integer value and a decimal value,
The accumulation part is
A decimal accumulator for accumulating the decimal value of the set value in the period of the operation clock;
A first down counter for down-counting the integer value of the set value and the addition value of the carry of the decimal value accumulation result by the decimal accumulator and the integer value of the set value at the cycle of the operation clock When,
A first comparator that outputs a pulse when the count value in the first down counter becomes 1;
A second down counter that counts down the integer value of the set value with a clock having a predetermined frequency;
A second comparator that outputs a pulse when the count value in the second down counter becomes 1;
A pulse is input from the first comparator, a cumulative value of a decimal value in the decimal accumulator when a pulse is input from the first comparator is specified, and the specified cumulative value of the decimal value is A first control signal generation unit that generates a first control signal to be notified;
A timing at which a pulse is input from the first comparator, a pulse is input from the second comparator, a pulse is input from the first comparator, and a pulse is input from the second comparator. And a reference clock generation unit that generates a reference clock that falls at
The pulse generator is
The pulse output from the first comparator of the accumulation unit is input as the third control signal, the third control signal is enabled, and a pulse for one cycle of the operation clock is generated,
The variable delay unit is
Deriving a delay amount corresponding to the decimal value notified by the first control signal, giving the derived delay amount to the pulse input from the pulse generation unit, to generate a delay pulse,
The phase adjusting unit is
4. The clock generation apparatus according to claim 3, wherein a logical sum of the reference clock and the delay pulse is calculated and a phase of the reference clock is adjusted by the delay pulse.
外部から所定の周波数の動作クロックを入力し、更に、外部から設定値を入力し、入力した前記設定値を前記動作クロックの周期で累算し、累算結果から、遅延量を制御する第1の制御信号と、遅延クロックの立ち上がりタイミング及び立下りタイミングをアサートにより通知する第4の制御信号を生成する累算部と、
外部から所定の周波数のクロックを入力クロックとして入力し、前記累算部により生成された前記第1の制御信号を入力し、前記第1の制御信号によって制御される遅延量を前記入力クロックに与えて、前記入力クロックの遅延クロックを生成する可変遅延部と、
前記累算部により生成された第4の制御信号を入力し、第4の制御信号のアサートタイミングにおいて入力している遅延クロックを選択して出力し、第4の制御信号のアサートタイミング以外は、直近に選択した遅延クロックの出力を維持して、前記動作クロックの周波数を(前記設定値の2倍)で除算して得られる周波数を有するクロックを出力するクロック選択部とを有することを特徴とするクロック生成装置。
First, an operation clock having a predetermined frequency is input from the outside, a set value is input from the outside, the input set value is accumulated at the cycle of the operation clock, and a delay amount is controlled from the accumulated result. And an accumulator for generating a fourth control signal for notifying the rising timing and falling timing of the delay clock by asserting,
A clock having a predetermined frequency is input from the outside as an input clock, the first control signal generated by the accumulator is input, and a delay amount controlled by the first control signal is given to the input clock. A variable delay unit for generating a delay clock of the input clock;
The fourth control signal generated by the accumulation unit is input, the delay clock input at the assertion timing of the fourth control signal is selected and output, and except for the assertion timing of the fourth control signal, A clock selector that maintains the output of the most recently selected delay clock and outputs a clock having a frequency obtained by dividing the frequency of the operation clock by (twice the set value). Clock generator.
前記累算部は、
整数値と小数値に区分される設定値を入力し、
前記累算部は、
前記設定値を前記動作クロックの周期で累算し、前記クロック選択部に出力されるとともにフィードバックされた第4の制御信号を入力し、入力した前記第4の制御信号のアサートタイミングにおける前記設定値の累積値の小数値を通知する第1の制御信号を生成する第1制御信号生成部と、
前記動作クロックの周期でカウントアップするカウンタと、
前記第1制御信号生成部による前記設定値の累積値の整数値と前記カウンタのカウント値との差が1以下となった際に、第4の制御信号をアサートする第4制御信号生成部とを有し、
前記可変遅延部は、
前記第1の制御信号で通知されている小数値に対応する遅延量を導出し、導出した遅延量を前記入力クロックに与えて、前記入力クロックの遅延クロックを生成し、
前記クロック選択部は、
第4の制御信号のアサートタイミングにおいて入力している遅延クロックを選択して出力するとともに、出力した遅延クロックをフィードバックし、第4の制御信号の次のアサートタイミングまでの期間は、フィードバックさせた遅延クロックを出力することを特徴とする請求項5に記載のクロック生成装置。
The accumulation part is
Enter a setting value that is divided into an integer value and a decimal value,
The accumulation part is
The set value is accumulated at the cycle of the operation clock, and the fourth control signal output and fed back to the clock selection unit is input, and the set value at the assert timing of the input fourth control signal A first control signal generating unit for generating a first control signal for notifying a decimal value of the cumulative value of
A counter that counts up in a cycle of the operation clock;
A fourth control signal generation unit that asserts a fourth control signal when a difference between an integer value of the cumulative value of the set values by the first control signal generation unit and a count value of the counter becomes 1 or less; Have
The variable delay unit is
Deriving a delay amount corresponding to the decimal value notified by the first control signal, giving the derived delay amount to the input clock, and generating a delay clock of the input clock,
The clock selector is
The selected delay clock is selected and output at the assertion timing of the fourth control signal, and the output delay clock is fed back, and the period until the next assertion timing of the fourth control signal is the delayed delay. The clock generation apparatus according to claim 5, wherein a clock is output.
前記クロック生成装置は、
論理回路で構成されていることを特徴とする請求項1〜6のいずれかに記載のクロック生成装置。
The clock generation device includes:
The clock generation device according to claim 1, wherein the clock generation device is configured by a logic circuit.
請求項1〜7のいずれかに記載のクロック生成装置を有し、
更に、
前記クロック生成装置により生成された生成クロックの位相と、外部から入力される参照クロックの位相を比較し、前記生成クロックと前記参照クロックとの位相差を出力する位相比較部と、
前記位相比較部の出力である位相差から、前記位相差を0とする前記設定値に対する補正値を生成し、前記設定値へ補正値を加算する補正部と有することを特徴とするDLL(Digital Locked Loop)回路。
The clock generation device according to claim 1,
Furthermore,
A phase comparison unit that compares the phase of the generated clock generated by the clock generation device with the phase of a reference clock input from the outside, and outputs a phase difference between the generated clock and the reference clock;
A DLL (Digital), comprising: a correction unit that generates a correction value for the set value that sets the phase difference to 0 from a phase difference that is an output of the phase comparison unit, and adds the correction value to the set value. Locked Loop) circuit.
請求項1〜7のいずれかに記載のクロック生成装置を有し、
更に、
前記クロック生成装置により生成された生成クロックの周波数と、外部から入力される参照クロックの周波数を比較し、前記生成クロックと前記参照クロックとの周波数差を出力する周波数比較部と、
前記周波数比較部の出力である周波数差から、前記周波数差を0とする前記設定値に対する補正値を生成し、前記設定値へ補正値を加算する補正部と有することを特徴とするDLL(Digital Locked Loop)回路。
The clock generation device according to claim 1,
Furthermore,
A frequency comparison unit that compares the frequency of the generated clock generated by the clock generation device with the frequency of a reference clock input from the outside, and outputs a frequency difference between the generated clock and the reference clock;
A DLL (Digital), comprising: a correction unit that generates a correction value for the set value with the frequency difference being 0 from the frequency difference output from the frequency comparison unit, and adds the correction value to the set value. Locked Loop) circuit.
外部から所定の周波数の動作クロックを入力し、更に、外部から設定値を入力し、入力した前記設定値を前記動作クロックの周期で累算し、累算結果から、位相調整の対象となる基準クロックと、遅延量を制御する第1の制御信号と、位相調整のタイミングを制御する第2の制御信号を生成する累算ステップと、
外部から所定の周波数のクロックを入力クロックとして入力し、前記累算ステップにより生成された前記第1の制御信号を入力し、前記第1の制御信号によって制御される遅延量を前記入力クロックに与えて、前記入力クロックの遅延クロックを生成する可変遅延ステップと、
前記累算ステップにより生成された前記基準クロックと前記第2の制御信号を入力し、前記可変遅延ステップにより生成された遅延クロックを入力し、前記第2の制御信号をイネーブルとして前記基準クロックの位相を前記遅延クロックで調整し、前記動作クロックの周波数を(前記設定値の2倍)で除算して得られる周波数を有するクロックを生成する位相調整ステップとを有することを特徴とするクロック生成方法。
An operation clock having a predetermined frequency is input from the outside, a set value is input from the outside, the input set value is accumulated at the cycle of the operation clock, and a reference for phase adjustment is obtained from the accumulated result. An accumulation step for generating a clock, a first control signal for controlling a delay amount, and a second control signal for controlling timing of phase adjustment;
An external clock having a predetermined frequency is input as an input clock, the first control signal generated by the accumulation step is input, and a delay amount controlled by the first control signal is given to the input clock. A variable delay step for generating a delay clock of the input clock;
The reference clock and the second control signal generated by the accumulation step are input, the delay clock generated by the variable delay step is input, and the phase of the reference clock is enabled by enabling the second control signal. And a phase adjustment step of generating a clock having a frequency obtained by dividing the frequency of the operation clock by (twice the set value).
外部から所定の周波数の動作クロックを入力し、更に、外部から設定値を入力し、入力した前記設定値を前記動作クロックの周期で累算し、累算結果から、位相調整の対象となる基準クロックと、遅延量を制御する第1の制御信号と、パルス生成タイミングを制御する第3の制御信号を生成する累算ステップと、
前記累算ステップにより生成された前記第3の制御信号を入力し、前記第3の制御信号をイネーブルとして、前記動作クロックの1周期分のパルスを生成するパルス生成ステップと、
前記累算ステップにより生成された前記第1の制御信号を入力し、前記パルス生成ステップにより生成されたパルスを入力し、前記第1の制御信号で制御される遅延量を前記パルスに与えて、遅延パルスを生成する可変遅延ステップと、
前記累算ステップにより生成された前記基準クロックを入力し、前記可変遅延ステップで生成された前記遅延パルスを入力し、前記基準クロックの位相を前記遅延パルスで調整し、前記動作クロックの周波数を(前記設定値の2倍)で除算して得られる周波数を有するクロックを生成する位相調整ステップとを有することを特徴とするクロック生成方法。
An operation clock having a predetermined frequency is input from the outside, a set value is input from the outside, the input set value is accumulated at the cycle of the operation clock, and a reference for phase adjustment is obtained from the accumulated result. An accumulation step for generating a clock, a first control signal for controlling a delay amount, and a third control signal for controlling a pulse generation timing;
A pulse generation step of inputting the third control signal generated by the accumulation step, enabling the third control signal, and generating a pulse for one period of the operation clock;
The first control signal generated by the accumulation step is input, the pulse generated by the pulse generation step is input, and a delay amount controlled by the first control signal is given to the pulse, A variable delay step for generating a delay pulse;
The reference clock generated by the accumulation step is input, the delay pulse generated by the variable delay step is input, the phase of the reference clock is adjusted by the delay pulse, and the frequency of the operation clock is ( And a phase adjustment step of generating a clock having a frequency obtained by dividing by twice the set value.
外部から所定の周波数の動作クロックを入力し、更に、外部から設定値を入力し、入力した前記設定値を前記動作クロックの周期で累算し、累算結果から、遅延量を制御する第1の制御信号と、遅延クロックの立ち上がりタイミング及び立下りタイミングをアサートにより通知する第4の制御信号を生成する累算ステップと、
外部から所定の周波数のクロックを入力クロックとして入力し、前記累算ステップにより生成された前記第1の制御信号を入力し、前記第1の制御信号によって制御される遅延量を前記入力クロックに与えて、前記入力クロックの遅延クロックを生成する可変遅延ステップと、
前記累算ステップにより生成された第4の制御信号を入力し、第4の制御信号のアサートタイミングにおいて入力している遅延クロックを選択して出力し、第4の制御信号のアサートタイミング以外は、直近に選択した遅延クロックの出力を維持して、前記動作クロックの周波数を(前記設定値の2倍)で除算して得られる周波数を有するクロックを出力するクロック選択ステップとを有することを特徴とするクロック生成方法。
First, an operation clock having a predetermined frequency is input from the outside, a set value is input from the outside, the input set value is accumulated at the cycle of the operation clock, and a delay amount is controlled from the accumulated result. And an accumulation step for generating a fourth control signal for notifying the rising timing and falling timing of the delay clock by assertion,
An external clock having a predetermined frequency is input as an input clock, the first control signal generated by the accumulation step is input, and a delay amount controlled by the first control signal is given to the input clock. A variable delay step for generating a delay clock of the input clock;
The fourth control signal generated by the accumulation step is input, the delay clock input at the assertion timing of the fourth control signal is selected and output, and except for the assertion timing of the fourth control signal, A clock selection step of outputting a clock having a frequency obtained by dividing the frequency of the operation clock by (twice the set value) while maintaining the output of the delay clock selected most recently. Clock generation method.
JP2011034250A 2011-02-21 2011-02-21 Clock generating apparatus, DLL (Digital Locked Loop) circuit, and clock generating method Expired - Fee Related JP5579099B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011034250A JP5579099B2 (en) 2011-02-21 2011-02-21 Clock generating apparatus, DLL (Digital Locked Loop) circuit, and clock generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011034250A JP5579099B2 (en) 2011-02-21 2011-02-21 Clock generating apparatus, DLL (Digital Locked Loop) circuit, and clock generating method

Publications (2)

Publication Number Publication Date
JP2012175319A true JP2012175319A (en) 2012-09-10
JP5579099B2 JP5579099B2 (en) 2014-08-27

Family

ID=46977803

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011034250A Expired - Fee Related JP5579099B2 (en) 2011-02-21 2011-02-21 Clock generating apparatus, DLL (Digital Locked Loop) circuit, and clock generating method

Country Status (1)

Country Link
JP (1) JP5579099B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102100220B1 (en) * 2018-10-12 2020-04-13 현대오트론 주식회사 High resolution pulse signal generation circuit
CN114024873A (en) * 2020-07-20 2022-02-08 安立股份有限公司 Spread spectrum clock generator, pulse waveform generator, and bit error rate measuring device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000124779A (en) * 1998-10-14 2000-04-28 Sony Corp Delay locked loop circuit
JP2001298362A (en) * 2000-04-11 2001-10-26 Nec Corp Dll circuit, semiconductor device using the same and delay controlling method
JP2007228043A (en) * 2006-02-21 2007-09-06 Sony Corp Digital dll circuit
JP2010200090A (en) * 2009-02-26 2010-09-09 Toshiba Corp Phase compensation clock synchronizing circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000124779A (en) * 1998-10-14 2000-04-28 Sony Corp Delay locked loop circuit
JP2001298362A (en) * 2000-04-11 2001-10-26 Nec Corp Dll circuit, semiconductor device using the same and delay controlling method
JP2007228043A (en) * 2006-02-21 2007-09-06 Sony Corp Digital dll circuit
JP2010200090A (en) * 2009-02-26 2010-09-09 Toshiba Corp Phase compensation clock synchronizing circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102100220B1 (en) * 2018-10-12 2020-04-13 현대오트론 주식회사 High resolution pulse signal generation circuit
CN114024873A (en) * 2020-07-20 2022-02-08 安立股份有限公司 Spread spectrum clock generator, pulse waveform generator, and bit error rate measuring device
CN114024873B (en) * 2020-07-20 2023-10-03 安立股份有限公司 Spread spectrum clock generator, pulse waveform generating device and error rate measuring device

Also Published As

Publication number Publication date
JP5579099B2 (en) 2014-08-27

Similar Documents

Publication Publication Date Title
US10205460B2 (en) Fractional-N frequency synthesizer and method thereof
US7795925B2 (en) Phase difference detector and phase difference detection method
US8536911B1 (en) PLL circuit, method of controlling PLL circuit, and digital circuit
KR20180070835A (en) Asynchronous clock signal generator and semiconductor device for correcting multi-phase signal using asynchronous clock signal
US8981974B2 (en) Time-to-digital converter and control method
US9130588B2 (en) Redundant delay digital-to-time converter
JP6844368B2 (en) Time digital converter
JP5579099B2 (en) Clock generating apparatus, DLL (Digital Locked Loop) circuit, and clock generating method
US20050237090A1 (en) Frequency synthesizer and method
US9621040B2 (en) PWM signal generator and switching power supply device having same
KR101639064B1 (en) Heterogeneous sampling delay-line time-to-digital converter
JPWO2007105487A1 (en) Pulse width control signal generation circuit, power conversion control circuit, and power conversion control LSI
WO2003081775A1 (en) Method and apparatus for digital frequency conversion
JP6787105B2 (en) Digital filter, reciprocal count value generation circuit and physical quantity sensor
KR101107722B1 (en) Wide-range digital frequency synthesizer
JP5999532B2 (en) PLL circuit
JP7044184B2 (en) Time digital converter
JP2013042358A (en) Frequency synthesizer
JPH11214987A (en) Pll device
KR100282478B1 (en) Digital Processor Phase Locked Loop Phase Detection Control Method and Its Apparatus
JP6284727B2 (en) Clock phase shift circuit
JP6423709B2 (en) Spread spectrum clock generator
JP5509624B2 (en) Signal generator
JP5803568B2 (en) Phase synchronization circuit and phase synchronization circuit control method
KR100316533B1 (en) Floating point frequency composition apparatus using multi-output phase locked loop

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131009

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140310

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140318

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140610

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140708

R150 Certificate of patent or registration of utility model

Ref document number: 5579099

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees