JP2011234009A - Clock and data recovery circuit - Google Patents

Clock and data recovery circuit Download PDF

Info

Publication number
JP2011234009A
JP2011234009A JP2010100813A JP2010100813A JP2011234009A JP 2011234009 A JP2011234009 A JP 2011234009A JP 2010100813 A JP2010100813 A JP 2010100813A JP 2010100813 A JP2010100813 A JP 2010100813A JP 2011234009 A JP2011234009 A JP 2011234009A
Authority
JP
Japan
Prior art keywords
signal
output
integrator
value
phase
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
JP2010100813A
Other languages
Japanese (ja)
Other versions
JP5520128B2 (en
Inventor
Masahiro Takeuchi
正浩 竹内
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.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics 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 Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2010100813A priority Critical patent/JP5520128B2/en
Publication of JP2011234009A publication Critical patent/JP2011234009A/en
Application granted granted Critical
Publication of JP5520128B2 publication Critical patent/JP5520128B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a clock and data recovery circuit to solve such problems that jitter tolerance decreases, a pull-in time increases, and pulling-in cannot be performed.SOLUTION: A clock and data recovery circuit comprises: a signal that advances the phase of a clock signal (UP1) or delays the phase (DOWN1) based on the result of comparison of sampling data signal group from a data sampling circuit 11 for sampling input data with a multi-phase extracted clock signal; a phase detector 12 for outputting an error signal (ERR) when an error is detected; a first integrator 13 for integrating UP1/DOWN1 signals; a second integrator 14; a pattern generator 15 for generating a predetermined pattern based on an output value (PPM) of the first integrator; a mixer 16 for synthesizing outputs of the second integrator and the pattern generator; and a phase interpolator 17 for inputting an input clock and generating the multi-phase extracted clock with the phase varied based on an output signal of the mixer.

Description

本発明はクロックアンドデータリカバリ回路に関する。   The present invention relates to a clock and data recovery circuit.

クロックアンドデータリカバリ回路は、クロック発生器等で生成されたクロックを入力し、入力データに同期したクロックを再生する回路であり、例えばSERDES(SERializer/DESerializer)回路の受信回路等に用いられる。   The clock and data recovery circuit is a circuit that inputs a clock generated by a clock generator or the like and regenerates a clock synchronized with input data, and is used, for example, as a receiving circuit of a SERDES (SERializer / DESerializer) circuit.

図34は、関連技術である特許文献1に開示されたクロックアンドデータリカバリ回路(Clock and Data Recovery Circuit;「CDR」と略記される)の構成を示す図である。入力データと同期クロックとを入力し、位相の遅れや進みを検出し、位相比較結果を示す制御信号UP1/DOWN1(アップ1/ダウン1)を出力する位相検出器101と、位相検出器101の出力を積分し制御信号UP2/DOWN2(アップ2/ダウン2)を出力する積分器103と、位相検出器101からの制御信号UP1/DOWN1を積分し制御信号UP3/DOWN3(アップ3/ダウン3)を出力する積分器102と、積分器102からの制御信号UP3/DOWN3を入力し制御信号UP4/DOWN4(アップ4/ダウン4)を出力するパターン発生器104と、積分器103からの制御信号UP2/DOWN2と、パターン発生器104からの出力信号UP4/DOWN4を入力し、制御信号UP5/DOWN5(アップ5/ダウン5)を出力する混合器105と、混合器105からの信号UP5/DOWN5に基づき、入力されるクロック信号の位相を補間する位相補間器106を備え、位相補間器106の出力は、位相検出器101に帰還入力される。   FIG. 34 is a diagram showing a configuration of a clock and data recovery circuit (abbreviated as “CDR”) disclosed in Patent Document 1 as a related technique. A phase detector 101 that inputs input data and a synchronous clock, detects a phase delay or advance, and outputs a control signal UP1 / DOWN1 (up 1 / down 1) indicating a phase comparison result; The integrator 103 that integrates the output and outputs the control signal UP2 / DOWN2 (up 2 / down 2) and the control signal UP1 / DOWN1 from the phase detector 101 are integrated to obtain the control signal UP3 / DOWN3 (up 3 / down 3). , The pattern generator 104 that receives the control signal UP 3 / DOWN 3 from the integrator 102 and outputs the control signal UP 4 / DOWN 4 (up 4 / down 4), and the control signal UP 2 from the integrator 103. / DOWN2 and the output signal UP4 / DOWN4 from the pattern generator 104 are input, and the control signal UP5 / DOWN5 (A 5 / down 5) and a phase interpolator 106 for interpolating the phase of the input clock signal based on the signal UP5 / DOWN5 from the mixer 105. The output of the phase interpolator 106 is The feedback is input to the phase detector 101.

位相補間器(106)に入力されるクロック信号として、例えば図示されないスペクトラム拡散クロック発生器(Spread Spectrum Clock Generator)で生成されたスペクトラム拡散クロック(Spread Spectrum Clock)が入力される。あるいは、図示されない逓倍PLL(Phase Locked Loop)等で生成された一定周波数のクロックが入力される。同期クロックと入力データの位相比較結果に応じて位相補間器106の位相を制御する位相追従ループを有し、ほぼ一定の時間間隔で、位相補間器106の位相を動かす制御信号を生成するパターン発生器104と、同期クロックと入力データの位相比較結果の積分によりパターン発生器104の出力信号の発生間隔を制御する積分器102とを周波数追従ループに備え、スペクトラム拡散クロックにより周波数変調されたシリアルデータに対応するクロックアンドデータリカバリ回路を電圧制御発振器(VCO)を用いることなく、位相補間器106の制御によって実現している。   As a clock signal input to the phase interpolator (106), for example, a spread spectrum clock (Spread Spectrum Clock) generated by a spread spectrum clock generator (not shown) is input. Alternatively, a constant frequency clock generated by a multiplying PLL (Phase Locked Loop) (not shown) or the like is input. Pattern generation having a phase tracking loop for controlling the phase of the phase interpolator 106 according to the phase comparison result between the synchronous clock and the input data, and generating a control signal for moving the phase of the phase interpolator 106 at substantially constant time intervals Serial data that is provided with a frequency tracking loop and is frequency-modulated with a spread spectrum clock, and an integrator 102 that controls the generation interval of the output signal of the pattern generator 104 by integrating the phase comparison result between the synchronous clock and the input data. Is realized by controlling the phase interpolator 106 without using a voltage controlled oscillator (VCO).

特開2005−5999号公報JP 2005-5999 A 特開2001−273048号公報JP 2001-273048 A

以下に関連技術(特許文献1)の分析を与える。   An analysis of related technology (Patent Document 1) is given below.

図34等を参照して説明した関連技術(特許文献1)のCDRは、ジッタトレランスの低下、引き込み時間の増大、引き込みが不能等の問題が生じる。その理由は、誤った状態で安定してしまうことと、誤っていることを検出し引き込ませる手段が存在しないためである。なお、この課題は、以下に比較例として詳説される。   The CDR of the related technique (Patent Document 1) described with reference to FIG. 34 and the like causes problems such as a decrease in jitter tolerance, an increase in pull-in time, and inability to pull in. The reason is that it is stable in an incorrect state and there is no means for detecting and pulling in an error. In addition, this subject is explained in full detail as a comparative example below.

前記課題の少なくとも1つを解決するため、本発明は概略以下の構成とされる。   In order to solve at least one of the above-described problems, the present invention is generally configured as follows.

本発明によれば、入力データ信号を多相のクロック信号の各々でサンプリングしたデータ信号群の比較結果に基づき、前記クロック信号の位相を進ませるか遅らせる指示情報を含む位相比較結果を出力し、さらに、前記データ信号群の比較結果がエラーに該当するときにエラー信号を出力する位相検出器と、
入力クロック信号と制御信号とを入力し前記制御信号に基づき位相を可変に調整した多相の出力クロック信号を生成し前記多相のクロック信号として出力する位相補間器と、
を備え、
周波数追従ループに、前記位相検出器からの前記位相比較結果を積分する第1の積分器と、前記第1の積分器の積分出力に対応したパターンの値を出力するパターン発生器とを備え、
位相追従ループに、前記位相検出器からの前記位相比較結果を積分する第2の積分器を備え、
前記第2の積分器の積分出力と前記パターン発生器の出力とを合成した値の信号を生成し前記制御信号として前記位相補間器に供給する混合器と、
前記位相検出器からの出力を監視し、前記位相検出器から前記エラー信号が出力されたとき、前記エラー信号が出力されるまでの前記位相比較結果の出力状況、又は、前記エラー信号が出力されるまでの過去のエラー信号の出力状況から、前記周波数追従ループでの周波数偏差の設定が適正か否か判定し、適正でない場合には、前記第1の積分器の積分出力の補正量を導出して前記第1の積分器に設定し、適正な場合には、前記第1の積分器での積分出力の補正は行わない回路ブロックと、を備えたクロックアンドデータリカバリ回路が提供される。
According to the present invention, based on the comparison result of the data signal group obtained by sampling the input data signal with each of the multiphase clock signals, the phase comparison result including instruction information for advancing or delaying the phase of the clock signal is output, Furthermore, a phase detector that outputs an error signal when the comparison result of the data signal group corresponds to an error;
A phase interpolator that inputs an input clock signal and a control signal, generates a multi-phase output clock signal that is variably adjusted based on the control signal, and outputs the output clock signal as the multi-phase clock signal;
With
A frequency tracking loop comprising: a first integrator that integrates the phase comparison result from the phase detector; and a pattern generator that outputs a pattern value corresponding to an integration output of the first integrator;
A second integrator for integrating the phase comparison result from the phase detector in a phase tracking loop;
A mixer that generates a signal having a value obtained by combining the integration output of the second integrator and the output of the pattern generator, and supplies the signal to the phase interpolator as the control signal;
The output from the phase detector is monitored, and when the error signal is output from the phase detector, the output status of the phase comparison result until the error signal is output, or the error signal is output. From the past error signal output status until it is determined whether or not the frequency deviation setting in the frequency tracking loop is appropriate. If not, the correction amount of the integral output of the first integrator is derived. Thus, a clock and data recovery circuit including a circuit block which is set to the first integrator and, when appropriate, does not correct the integration output by the first integrator is provided.

本発明によれば、データとクロックの位相関係から現在の周波数偏差の見積もりの誤りを検出し、周波数追従ループの積分出力を補正することで、ジッタトレランスの低下、引き込み時間の増大、引き込みが不能等の問題を解消することができる。   According to the present invention, an error in estimating the current frequency deviation is detected from the phase relationship between the data and the clock, and the integration output of the frequency tracking loop is corrected, thereby reducing the jitter tolerance, increasing the acquisition time, and making the acquisition impossible. Etc. can be solved.

本発明の第1の実施形態の構成を示す図である。It is a figure which shows the structure of the 1st Embodiment of this invention. 図1のデータサンプリング回路の構成例を示す図である。It is a figure which shows the structural example of the data sampling circuit of FIG. 図1の位相検出器の構成例を示す図である。It is a figure which shows the structural example of the phase detector of FIG. 図3の回路の動作例を真理値表で示す図である。It is a figure which shows the operation example of the circuit of FIG. 3 with a truth table. 本発明の第1の実施形態の動作を説明するためのタイミング図である。It is a timing diagram for demonstrating operation | movement of the 1st Embodiment of this invention. 本発明の第1の実施形態の動作を説明するためのタイミング図である。It is a timing diagram for demonstrating operation | movement of the 1st Embodiment of this invention. 本発明の第1の実施形態の動作を説明するためのタイミング図である。It is a timing diagram for demonstrating operation | movement of the 1st Embodiment of this invention. 本発明の第1の実施形態の動作を説明するためのタイミング図である。It is a timing diagram for demonstrating operation | movement of the 1st Embodiment of this invention. 図1の積分器14の状態遷移の例を示す図である。It is a figure which shows the example of the state transition of the integrator 14 of FIG. 図1の積分器13の構成例を示す図である。It is a figure which shows the structural example of the integrator 13 of FIG. 図10のUP/DOWNカウンタ142の構成例を示す図である。FIG. 11 is a diagram illustrating a configuration example of an UP / DOWN counter 142 in FIG. 10. 図1のパターン発生器15の構成例を示す図である。It is a figure which shows the structural example of the pattern generator 15 of FIG. 図1の混合器16の構成例を示す図である。It is a figure which shows the structural example of the mixer 16 of FIG. 図1の位相補間器の動作例を示すタイミング図である。FIG. 2 is a timing diagram illustrating an operation example of the phase interpolator in FIG. 1. (A)は図1の連続回数計測器18の構成例を示す図である。(B)は論理回路181の論理を示す図である。(A) is a figure which shows the structural example of the continuous frequency measuring device 18 of FIG. FIG. 6B is a diagram illustrating the logic of the logic circuit 181. 連続回数計測器18の動作例を示すタイミング図である。FIG. 10 is a timing chart showing an operation example of the continuous frequency measuring device 18. 図1の補正量決定器19の処理の一例を説明する図である。It is a figure explaining an example of a process of the correction amount determination device 19 of FIG. 図1の補正量決定器19の処理の一例を説明する図である。It is a figure explaining an example of a process of the correction amount determination device 19 of FIG. 図1の補正量決定器19の処理の一例を説明する図である。It is a figure explaining an example of a process of the correction amount determination device 19 of FIG. 本発明の第2の実施形態の構成を示す図である。It is a figure which shows the structure of the 2nd Embodiment of this invention. 本発明の第2の実施形態の動作を説明するためのタイミング図である。It is a timing diagram for demonstrating the operation | movement of the 2nd Embodiment of this invention. 本発明の第3の実施形態の構成を示す図である。It is a figure which shows the structure of the 3rd Embodiment of this invention. 本発明の第4の実施形態の構成を示す図である。It is a figure which shows the structure of the 4th Embodiment of this invention. 本発明の第1の実施形態を説明するタイミング図である。It is a timing diagram explaining the 1st Embodiment of this invention. 本発明の第5の実施形態の構成を示す図である。It is a figure which shows the structure of the 5th Embodiment of this invention. 本発明の第6の実施形態の構成を示す図である。It is a figure which shows the structure of the 6th Embodiment of this invention. 関連技術(比較例)と本発明を説明する図である。It is a figure explaining a related technique (comparative example) and this invention. 関連技術(比較例)を説明する図である。It is a figure explaining a related technique (comparative example). 関連技術(比較例)を説明する図である。It is a figure explaining a related technique (comparative example). 関連技術(比較例)を説明する図である。It is a figure explaining a related technique (comparative example). 関連技術(比較例)を説明する図である。It is a figure explaining a related technique (comparative example). 本発明を説明する図である。It is a figure explaining this invention. 本発明を説明する図である。It is a figure explaining this invention. 関連技術のCDRの構成を示す図である。It is a figure which shows the structure of CDR of related technology.

本発明は、その好ましい態様(Preferred Modes)の1つとして、CDRは、図1を参照すると、入力データ信号を多相のクロック信号の各々でサンプリングしたデータ信号群の比較結果に基づき、前記クロック信号の位相を進ませるか遅らせる指示情報を含む位相比較結果(UP1/DOWN1)を出力し、さらに、前記データ信号群の比較結果がエラーに該当するときにエラー信号(ERR)を出力する位相検出器(12)と、
入力クロック信号と制御信号とを入力し前記制御信号に基づき位相を可変に調整した多相の出力クロック信号を生成し前記多相のクロック信号として出力する位相補間器(17)と、
周波数追従ループを構成し、前記位相検出器(12)からの前記位相比較結果(UP1/DOWN1)を積分する第1の積分器(13)と、前記第1の積分器(13)の積分出力(PPM)に対応したパターンの値を出力するパターン発生器(15)と、
位相追従ループを構成し、前記位相検出器(12)からの前記位相比較結果(UP1/DOWN1)を積分する第2の積分器(14)と、
前記第2の積分器(14)の積分出力と前記パターン発生器(15)の出力とを合成した値の信号を生成し前記制御信号として前記位相補間器(17)に供給する混合器(16)と、
前記位相検出器(12)からの出力(UP1/DOWN1、ERR)を監視し、前記位相検出器(12)から前記エラー信号(ERR)が出力されたとき、前記エラー信号が出力されるまでの前記位相比較結果(UP1/DOWN1)の出力状況、又は、前記エラー信号(ERR)が出力されるまでの過去のエラー信号の出力状況から、前記周波数追従ループでの周波数偏差の設定が適正か否か判定し、適正でない場合には、前記第1の積分器の積分出力(PPM)の補正量(CORRECT)を導出して前記第1の積分器(13)に設定し、適正な場合には、前記第1の積分器(13)での積分出力の補正は行わない回路ブロック(22)と、
を備えた構成としてもよい。
According to the present invention, as one of its preferred modes (Preferred Modes), referring to FIG. 1, the CDR is based on the comparison result of the data signal group obtained by sampling the input data signal with each of the multiphase clock signals. Phase detection that outputs a phase comparison result (UP1 / DOWN1) including instruction information for advancing or delaying the phase of the signal, and further outputting an error signal (ERR) when the comparison result of the data signal group corresponds to an error A vessel (12);
A phase interpolator (17) for inputting an input clock signal and a control signal, generating a multi-phase output clock signal whose phase is variably adjusted based on the control signal, and outputting the output as the multi-phase clock signal;
A first integrator (13) that constitutes a frequency tracking loop and integrates the phase comparison result (UP1 / DOWN1) from the phase detector (12), and an integrated output of the first integrator (13) A pattern generator (15) for outputting a pattern value corresponding to (PPM);
A second integrator (14) which constitutes a phase tracking loop and integrates the phase comparison result (UP1 / DOWN1) from the phase detector (12);
A mixer (16) that generates a signal having a value obtained by synthesizing the integration output of the second integrator (14) and the output of the pattern generator (15) and supplies the resultant signal to the phase interpolator (17) as the control signal. )When,
The output (UP1 / DOWN1, ERR) from the phase detector (12) is monitored, and when the error signal (ERR) is output from the phase detector (12), the error signal is output. Whether the frequency deviation setting in the frequency tracking loop is appropriate based on the output status of the phase comparison result (UP1 / DOWN1) or the past error signal output status until the error signal (ERR) is output. If it is not appropriate, a correction amount (CORRECT) of the integral output (PPM) of the first integrator is derived and set in the first integrator (13). A circuit block (22) that does not correct the integral output in the first integrator (13);
It is good also as a structure provided with.

本発明において、前記回路ブロック(22)は、前記位相検出器(12)から前記エラー信号(ERR)が出力される直前までに、前記位相検出器(12)から連続して出力された、前記クロック信号の位相を進ませる指示又は位相を遅らせる指示の回数を累積加算し、前記位相検出器(12)から前記エラー信号(ERR)が出力されたとき、
前記エラー信号(ERR)が出力される直前までに、前記クロック信号の位相を進ませる指示(UP1)が、予め定められた所定回以上、前記位相検出器(12)から連続して出力されている場合には、前記第1の積分器(13)の積分出力(PPM)が現在値よりも大きな値となるように補正量(CORRECT)を設定し、
前記エラー信号(ERR)が出力される直前までに、前記クロック信号の位相を遅らせる指示(DOWN1)が、予め定められた所定回以上、前記位相検出器(12)から連続して出力されている場合には、前記第1の積分器(13)の積分出力(PPM)が現在値よりも小さな値となるように補正量(CORRECT)を設定する構成としてもよい。
In the present invention, the circuit block (22) is continuously output from the phase detector (12) immediately before the error signal (ERR) is output from the phase detector (12). When the error signal (ERR) is output from the phase detector (12) by cumulatively adding the number of instructions for advancing the phase of the clock signal or the instruction for delaying the phase,
An instruction (UP1) for advancing the phase of the clock signal is output continuously from the phase detector (12) for a predetermined predetermined number of times or more immediately before the error signal (ERR) is output. If so, the correction amount (CORRECT) is set so that the integral output (PPM) of the first integrator (13) is larger than the current value.
Just before the error signal (ERR) is output, an instruction (DOWN1) to delay the phase of the clock signal is continuously output from the phase detector (12) for a predetermined predetermined number of times or more. In this case, the correction amount (CORRECT) may be set so that the integral output (PPM) of the first integrator (13) is smaller than the current value.

本発明において、前記回路ブロック(22)は、前記位相検出器(12)から前記エラー信号が出力されたとき、前記エラー信号が出力される直前までに、前記クロック信号の位相を進ませる指示(UP1)又は位相を遅らせる指示(DOWN)の連続出力回数が前記予め定められた所定回に満たないときは、前記周波数追従ループでの周波数偏差の設定は適正と判定し、前記補正量(CORRECT)を零とすることで、前記第1の積分器での積分出力の補正は行わない。   In the present invention, when the error signal is output from the phase detector (12), the circuit block (22) instructs to advance the phase of the clock signal immediately before the error signal is output ( UP1) or when the number of continuous outputs of the phase delay instruction (DOWN) is less than the predetermined number of times, it is determined that the setting of the frequency deviation in the frequency tracking loop is appropriate, and the correction amount (CORRECT) Since zero is set to zero, the integration output in the first integrator is not corrected.

本発明において、前記位相検出器(12)は、前記データ信号群に対して、相隣る位相のクロック信号でそれぞれサンプリングされたデータ信号対の一致/不一致を判定する論理ゲート(図3のEXOR)を複数備え、前記複数の論理ゲート(EXOR)での判定出力の組み合わせに基づき、前記クロック信号の位相を進めさせる指示をなす第1のアップ信号(UP1)、又は、前記クロック信号の位相を遅らせる指示をなす第1のダウン信号(DOWN1)を出力し、前記複数の論理ゲート(EXOR)での判定出力の組み合わせが予め定められたエラーの条件に該当する場合に、エラー検出を示す前記エラー信号(ERR)を出力する論理回路部(図3の1230)を備えた構成としてもよい。   In the present invention, the phase detector (12) is a logic gate (EXOR in FIG. 3) that determines whether the data signal pairs are sampled by clock signals having adjacent phases with respect to the data signal group. ), And based on a combination of determination outputs from the plurality of logic gates (EXOR), the first up signal (UP1) that gives an instruction to advance the phase of the clock signal, or the phase of the clock signal The error indicating error detection is output when a first down signal (DOWN1) for instructing delay is output and a combination of determination outputs from the plurality of logic gates (EXOR) satisfies a predetermined error condition A logic circuit unit (1230 in FIG. 3) that outputs a signal (ERR) may be provided.

本発明において、前記回路ブロック(22)は、連続回数計測器(連続回数計測回路)(18)と、補正量決定器(19)を備えた構成としてもよい。連続回数計測器(18)は、前記位相検出器(12)から、前記エラー信号(ERR)が出力されるまでの間に、前記第1のアップ信号(UP1)又は前記第1のダウン信号(DOWN1)が連続して出力された回数を計数し、
前記位相検出器(12)から今回前記エラー信号が出力されると、今回の前記エラー信号出力時点まで、前記第1のアップ信号又は前記第1のダウン信号について計数した連続回数と、
今回の前記エラー信号の1つ前のエラー信号が出力された時点までに、前記位相検出器から出力された前記第1のアップ信号又は前記第1のダウン信号の過去の連続回数と、
を累積加算し、
前記第1のアップ信号又は前記第1のダウン信号の連続回数を累積加算した値が、前記予め定められた所定回以上に対応する値に達するか超えると、連続アップ検出信号(CNTNUP)又は連続ダウン検出信号(CNTNDOWN)を出力する構成としてもよい。
In the present invention, the circuit block (22) may include a continuous number measuring device (continuous number measuring circuit) (18) and a correction amount determining device (19). The continuous frequency measuring device (18) is configured to output the first up signal (UP1) or the first down signal (from the phase detector (12) until the error signal (ERR) is output. Count the number of times DOWN1) is output continuously,
When the error signal is output from the phase detector (12) this time, the number of consecutive times counted for the first up signal or the first down signal until the current error signal output time,
The number of past consecutive times of the first up signal or the first down signal output from the phase detector by the time the error signal immediately before the current error signal is output;
Are cumulatively added,
When a value obtained by accumulating the number of consecutive times of the first up signal or the first down signal reaches or exceeds a value corresponding to the predetermined number of times or more, a continuous up detection signal (CNTNUP) or continuous The down detection signal (CNTNDOWN) may be output.

本発明において、補正量決定器(19)は、前記連続回数計測器(18)から、前記連続アップ検出信号又は前記連続ダウン検出信号が出力されたときに、前記第1の積分器(13)の積分出力を補正するための補正量(CORRECT)を決定する構成としてもよい。   In the present invention, the correction amount determiner (19) is configured such that when the continuous up detection signal or the continuous down detection signal is output from the continuous number measuring device (18), the first integrator (13). Alternatively, a correction amount (CORRECT) for correcting the integral output may be determined.

本発明において、前記第1の積分器(13)は、前記補正量決定器(19)から前記補正量(CORRECT)が出力された場合、前記第1の積分器(13)の積分出力(PPM)を、前記補正量で補正した値(例えばPPM±CORRECT)に設定するとともに、前記補正した値から、前記第1のアップ信号(UP1)と前記第1のダウン信号(DOWN1)の積分を行う構成としてもよい。   In the present invention, the first integrator (13) outputs an integrated output (PPM) of the first integrator (13) when the correction amount (CORRECT) is output from the correction amount determiner (19). ) Is set to a value (for example, PPM ± CORRECT) corrected by the correction amount, and the first up signal (UP1) and the first down signal (DOWN1) are integrated from the corrected value. It is good also as a structure.

本発明において、前記連続回数計測器(18)は、前記位相検出器(12)から前記エラー信号(ERR)が出力されるまでに、前記位相検出器から前記第1のアップ信号(UP1)又は前記第1のダウン信号(DOWN1)が連続して出力される回数を計数し、
前記位相検出器(12)から前記エラー信号(ERR)が出力されると、前記エラー信号(ERR)が出力されるまでに計数された前記第1のアップ信号(UP1)又は前記第1のダウン信号(DOWN1)の連続回数の計数値(図15のCNTN1)を後段に伝達したのち、前記計数値(CNTN1)を零にリセットする第1の回路ユニット(図15の181〜184)と、
前記第1の回路ユニット(図15の181〜184)から伝達された、前記第1のアップ信号又は前記第1のダウン信号の前記連続回数を受け、前記連続回数と、過去の前記第1のアップ信号又は前記第1のダウン信号の前記連続回数の累積加算値とを加算器(図15の185)で加算した値を新たな累積加算値(CNTN2)とし、前記新たな累積加算値(CNTN2)が、前記第1のアップ信号又は前記第1のダウン信号の所定回数分に対応する値に達したか又は超えているとき、前記連続アップ検出信号(CNTNUP)又は前記連続ダウン検出信号(CNTNDOWN)を出力するとともに、前記連続回数の累積加算値(CNTN2)を零にリセットする第2の回路ユニット(図15の185〜189)と、を備えた構成としてもよい。
In the present invention, the continuous frequency measuring device (18) may receive the first up signal (UP1) or the first up signal (UP1) from the phase detector before the error signal (ERR) is output from the phase detector (12). Counting the number of times the first down signal (DOWN1) is continuously output;
When the error signal (ERR) is output from the phase detector (12), the first up signal (UP1) or the first down signal counted until the error signal (ERR) is output. A first circuit unit (181 to 184 in FIG. 15) that resets the count value (CNTN1) to zero after transmitting the count value (CNTN1 in FIG. 15) of the continuous number of signals (DOWN1) to the subsequent stage;
The continuous number of the first up signal or the first down signal transmitted from the first circuit unit (181 to 184 in FIG. 15) is received, the continuous number, and the past first A value obtained by adding the cumulative addition value of the consecutive number of the up signal or the first down signal by an adder (185 in FIG. 15) is set as a new cumulative addition value (CNTN2), and the new cumulative addition value (CNTN2) ) Reaches or exceeds a value corresponding to a predetermined number of times of the first up signal or the first down signal, the continuous up detection signal (CNTNUP) or the continuous down detection signal (CNTNDDOWN). ) And a second circuit unit (185 to 189 in FIG. 15) for resetting the cumulative number of consecutive times (CNTN2) to zero. .

本発明において、前記第1の回路ユニットは、前記第1のアップ信号と前記第1のダウン信号を入力する論理回路(図15(A)の181)を備えた構成としてもよい。本発明において、前記論理回路(図15(A)の181)は、
(A)前記第1のアップ信号(UP1)又は前記第1のダウン信号(DOWN1)の連続回数の現在の第1の計数値(CNTN1)が+1以上のときに、前記第1のダウン信号(DOWN1)が入力されると、
−1を出力し、
(B)前記第1のアップ信号(UP1)又は前記第1のダウン信号(DOWN1)の連続回数の現在の前記第1の計数値(CNTN1)が−1以下のときに、前記第1のアップ信号(UP1)が入力されると、
+1を出力し、
(C)前記第1のアップ信号(UP1)又は前記第1のダウン信号(DOWN1)の連続回数の現在の前記第1の計数値(CNTN1)と、入力された前記第1のダウン信号又は前記第1のアップ信号の関係が、上記(A)、(B)の関係以外の場合、入力された信号が前記第1のダウン信号(DOWN1)のとき、
前記現在の第1の計数値(CNTN1)に−1を加算した値を出力し、
(D)前記第1のアップ信号(UP1)又は前記第1のダウン信号(DOWN1)の連続回数の現在の前記第1の計数値(CNTN1)と、入力された前記第1のダウン信号又は前記第1のアップ信号の関係が、上記(A)、(B)の関係以外の場合、入力された信号が前記第1のアップ信号(UP1)のとき、現在の前記第1の計数値(CNTN1)に+1を加算した値を出力する構成としてもよい。
In the present invention, the first circuit unit may include a logic circuit (181 in FIG. 15A) that inputs the first up signal and the first down signal. In the present invention, the logic circuit (181 in FIG. 15A) is
(A) When the current first count value (CNTN1) of the number of consecutive times of the first up signal (UP1) or the first down signal (DOWN1) is +1 or more, the first down signal ( When DOWN1) is input,
-1 and
(B) When the current first count value (CNTN1) of the number of consecutive times of the first up signal (UP1) or the first down signal (DOWN1) is −1 or less, the first up signal When the signal (UP1) is input,
+1 is output,
(C) the current first count value (CNTN1) of the number of consecutive times of the first up signal (UP1) or the first down signal (DOWN1), and the input first down signal or When the relationship of the first up signal is other than the relationship of (A) and (B), when the input signal is the first down signal (DOWN1),
A value obtained by adding -1 to the current first count value (CNTN1);
(D) the current first count value (CNTN1) of the number of consecutive times of the first up signal (UP1) or the first down signal (DOWN1) and the input first down signal or When the relationship of the first up signal is other than the relationship of (A) and (B), when the input signal is the first up signal (UP1), the current first count value (CNTN1) ) May be configured to output a value obtained by adding +1.

本発明において、前記第1の回路ユニット(図15)は、さらに、前記論理回路の出力と零とを入力し、前記位相検出器(12)からの前記エラー信号(ERR)を選択制御信号とし、前記エラー信号(ERR)が出力されないとき、前記論理回路(181)の出力を選択して出力し、前記位相検出器(12)から前記エラー信号が出力されたときは零を選択して出力する第1のセレクタ(図15の182)と、
前記第1のセレクタの出力を入力し、出力から前記第1の計数値(CNTN1)を出力する第1のフリップフロップ(図15の183、エッジトリガー型のレジスタ)と、
前記第1のフリップフロップ(183)の出力と零とを入力し、前記位相検出器(12)からの前記エラー信号(ERR)を選択制御信号とし、前記エラー信号(ERR)が出力されないときは、零を選択し、前記位相検出器から前記エラー信号が出力されたときは、前記第1のフリップフロップの出力を選択する第2のセレクタ(図15の184)と、を備えた構成としてもよい。
In the present invention, the first circuit unit (FIG. 15) further inputs the output of the logic circuit and zero, and uses the error signal (ERR) from the phase detector (12) as a selection control signal. When the error signal (ERR) is not output, the output of the logic circuit (181) is selected and output, and when the error signal is output from the phase detector (12), zero is selected and output. A first selector (182 in FIG. 15)
A first flip-flop (183 in FIG. 15, an edge trigger type register) that inputs the output of the first selector and outputs the first count value (CNTN1) from the output;
When the output of the first flip-flop (183) and zero are input, the error signal (ERR) from the phase detector (12) is used as a selection control signal, and the error signal (ERR) is not output And a second selector (184 in FIG. 15) for selecting the output of the first flip-flop when zero is selected and the error signal is output from the phase detector. Good.

本発明において、前記第2の回路ユニットは、前記第2のセレクタ(184)の出力と第2の計数値(CNTN2)を加算する加算器(図15の185)と、
前記加算器(185)の出力と零とを入力する第3のセレクタ(図15の186)と、
前記第3のセレクタ(186)の出力を入力し出力を前記第2の計数値(CNTN2)とする第2のフリップフロップ(図15の187、エッジトリガー型のレジスタ)と、
前記第2のフリップフロップ(187)から出力される前記第2の計数値(CNTN2)を受け、前記第2の計数値(CNTN2)が所定の正値(M)以上の場合、連続アップ検出信号(CNTNUP)、前記第2の計数値(CNTN2)が所定の負値(−M)以下の場合、連続ダウン検出信号(CNTNDOWN)を出力する比較回路(図15の188)と、
前記比較回路(188)から前記連続アップ検出信号(CNTNUP)又は前記連続ダウン検出信号(CNTNDOWN)が出力されると、前記第3のセレクタ(186)にて零を選択し、前記比較回路(188)から前記連続アップ検出信号(CNTNUP)も前記連続ダウン検出信号(CNTNDOWN)も出力されない場合、前記第3のセレクタ(186)にて前記加算器(185)の出力を選択するための選択制御信号を出力する論理ゲート(図15の189)と、を備えた構成としてもよい。
In the present invention, the second circuit unit includes an adder (185 in FIG. 15) that adds the output of the second selector (184) and a second count value (CNTN2);
A third selector (186 in FIG. 15) for inputting the output of the adder (185) and zero;
A second flip-flop (187 in FIG. 15, an edge trigger type register) that inputs the output of the third selector (186) and outputs the second count value (CNTN2);
When the second count value (CNTN2) output from the second flip-flop (187) is received and the second count value (CNTN2) is equal to or greater than a predetermined positive value (M), a continuous up detection signal (CNTNUP), a comparison circuit (188 in FIG. 15) that outputs a continuous down detection signal (CNTNDOWN) when the second count value (CNTN2) is equal to or less than a predetermined negative value (−M);
When the continuous up detection signal (CNTNUP) or the continuous down detection signal (CNTNDOWN) is output from the comparison circuit (188), the third selector (186) selects zero, and the comparison circuit (188) ) When neither the continuous up detection signal (CNTNUP) nor the continuous down detection signal (CNTNDDOWN) is output, a selection control signal for selecting the output of the adder (185) by the third selector (186) And a logic gate (189 in FIG. 15).

本発明において、前記補正量決定器(19)は、
(E)前記連続回数計測器(18)から、前記連続アップ検出信号(CNTNUP)が出力されると、
前記補正量(CORRECT)を正の所定値(p)とし、
(F)前記連続回数計測器(18)から、前記連続ダウン検出信号(CNTNDOWN)が出力されると、
前記補正量(CORRECT)を前記所定値の負値(−p)とし、
(G)前記連続回数計測器(18)から、前記連続アップ検出信号(CNTNUP)、前記連続ダウン検出信号(CNTNDOWN)が出力されないとき、
前記補正量(CORRECT)を零とする、
構成としてもよい。
In the present invention, the correction amount determiner (19)
(E) When the continuous up detection signal (CNTNUP) is output from the continuous frequency measuring device (18),
The correction amount (CORRECT) is a positive predetermined value (p),
(F) When the continuous down detection signal (CNTNDDOWN) is output from the continuous frequency measuring device (18),
The correction amount (CORRECT) is set to a negative value (−p) of the predetermined value,
(G) When the continuous up detection signal (CNTNUP) and the continuous down detection signal (CNTNDOWN) are not output from the continuous frequency measuring device (18),
The correction amount (CORRECT) is set to zero.
It is good also as a structure.

あるいは、本発明において、前記補正量決定器(19)は、
(E)前記連続回数計測器(18)から、前記連続アップ検出信号(CNTNUP)が出力されると、
前記第1の積分器(13)の出力(PPM)と正の所定値(p)の和(PPM+p)が、前記第1の積分器(13)の出力最大値(PPMmax)よりも小の場合、前記補正量(CORRECT)を前記所定値(p)とし、
前記第1の積分器(13)の出力(PPM)と前記所定値(p)の和(PPM+p)が、前記第1の積分器(13)の出力最大値(PPMmax)以上のとき、前記補正量(CORRECT)を前記所定値の負値(−p)とし、
(F)前記連続回数計測器(18)から、前記連続ダウン検出信号(CNTNDOWN)が出力されると、
前記第1の積分器(13)の出力(PPM)から前記所定値(p)を差し引いた値(PPM−p)が、前記第1の積分器(13)の出力最小値(PPMmin)よりも大の場合、前記補正量(CORRECT)を前記所定値の負値(−p)とし、
前記第1の積分器(13)の出力から前記所定値(p)を差し引いた値(PPM−p)が、前記第1の積分器(13)の出力最小値(PPMmin)以下のとき、前記補正量(CORRECT)を前記所定値(p)とし、
(G)前記連続回数計測器(18)から、前記連続アップ検出信号(CNTNUP)、前記連続ダウン検出信号(CNTNDOWN)がともに出力されないときは、
前記補正量(CORRECT)を零とする、
構成としてもよい。
Alternatively, in the present invention, the correction amount determiner (19)
(E) When the continuous up detection signal (CNTNUP) is output from the continuous frequency measuring device (18),
The sum (PPM + p) of the output (PPM) of the first integrator (13) and a positive predetermined value (p) is smaller than the maximum output value (PPMmax) of the first integrator (13). The correction amount (CORRECT) is set to the predetermined value (p),
When the sum (PPM + p) of the output (PPM) of the first integrator (13) and the predetermined value (p) is equal to or greater than the maximum output value (PPMmax) of the first integrator (13), the correction is performed. The amount (CORRECT) is a negative value (−p) of the predetermined value,
(F) When the continuous down detection signal (CNTNDDOWN) is output from the continuous frequency measuring device (18),
A value (PPM-p) obtained by subtracting the predetermined value (p) from the output (PPM) of the first integrator (13) is smaller than the output minimum value (PPMmin) of the first integrator (13). In the case of large, the correction amount (CORRECT) is set to the negative value (−p) of the predetermined value,
When the value (PPM-p) obtained by subtracting the predetermined value (p) from the output of the first integrator (13) is less than or equal to the output minimum value (PPMmin) of the first integrator (13), The correction amount (CORRECT) is set to the predetermined value (p),
(G) When neither the continuous up detection signal (CNTNUP) nor the continuous down detection signal (CNTNDOWN) is output from the continuous frequency measuring device (18),
The correction amount (CORRECT) is set to zero.
It is good also as a structure.

本発明において、前記第1の積分器(13)は、
前記位相検出器(12)からの前記第1のアップ信号(UP1)の入力に応答してカウントアップし、前記位相検出器(12)からの前記第1のダウン信号(DOWN1)の入力に応答してカウントダウンする第1のアップダウン・カウンタ(図10の141)と、
前記第1のアップダウン・カウンタ(141)の出力と前記第1の積分器の出力値(PPM)とを加算する第1の加算器(図11の1421)と、
前記補正量と前記第1の積分器の出力値(PPM)とを加算する第2の加算器(図11の1422)と、
前記補正量(CORRECT)が零のとき、前記第1の加算器(1421)の出力を選択し、前記補正量(CORRECT)が非零のとき、前記第2の加算器(1422)の出力を選択するセレクタ(図11の1424)と、
前記セレクタ(1424)の出力を受け出力が前記第1の積分器(13)の積分出力値(PPM)として出力されるとともに、前記第1、第2の加算器(1421、1422)に共通に入力されるフリップフロップ(図11の1425、エッジトリガー型レジスタ)と、
を備えた構成としてもよい。なお、第1のアップダウン・カウンタ(図10の141)は省略可能である。
In the present invention, the first integrator (13) includes:
Counting up in response to the input of the first up signal (UP1) from the phase detector (12), and responding to the input of the first down signal (DOWN1) from the phase detector (12). A first up / down counter (141 in FIG. 10) that counts down,
A first adder (1421 in FIG. 11) for adding the output of the first up / down counter (141) and the output value (PPM) of the first integrator;
A second adder (1422 in FIG. 11) that adds the correction amount and the output value (PPM) of the first integrator;
When the correction amount (CORRECT) is zero, the output of the first adder (1421) is selected. When the correction amount (CORRECT) is non-zero, the output of the second adder (1422) is selected. A selector to select (1424 in FIG. 11);
The output from the selector (1424) is output as the integrated output value (PPM) of the first integrator (13), and is shared by the first and second adders (1421, 1422). Input flip-flop (1425 in FIG. 11, edge trigger type register),
It is good also as a structure provided with. The first up / down counter (141 in FIG. 10) can be omitted.

本発明のさらに別の態様において、前記パターン発生器(15)は、
前記第1の積分器の出力(PPM)を受ける加算器(図12の151)と、
前記加算器(151)の出力を所定の正整数で除した商と余りを出力する除算器(図12の152)と、
前記除算器(152)の前記余りを受けるフリップフロップ(図12の153、エッジトリガー型レジスタ)と、
を備え、前記加算器(151)は、前記フリップフロップ(153)からの前記余りと、前記第1の積分器の出力(PPM)を加算し、前記商が前記パターン発生器(15)の出力(UPDOWN3)とされる構成としてもよい。
In yet another aspect of the invention, the pattern generator (15) comprises:
An adder (151 in FIG. 12) that receives the output (PPM) of the first integrator;
A divider (152 in FIG. 12) for outputting a quotient and a remainder obtained by dividing the output of the adder (151) by a predetermined positive integer;
A flip-flop (153 in FIG. 12, an edge-triggered register) that receives the remainder of the divider (152);
The adder (151) adds the remainder from the flip-flop (153) and the output (PPM) of the first integrator, and the quotient is the output of the pattern generator (15). (UPDOWN3) may be adopted.

本発明のさらに別の態様において、前記位相検出器(12)から前記エラー信号が出力されると、前記第2の積分器にダウン信号(UPDOWN5)を与える強制ダウン生成器(図20の20)を備えた構成としてもよい。   In yet another aspect of the present invention, when the error signal is output from the phase detector (12), a forced down generator (20 in FIG. 20) that gives a down signal (UPDOWN5) to the second integrator. It is good also as a structure provided with.

本発明のさらに別の態様において、図22を参照すると、前記位相検出器(12)から前記エラー信号(ERR)が所定回数出力されると、前記第1の積分器(13)の積分出力(PPM)を補正するための補正量を出力するエラー回数計測器(21)を備えた構成としてもよい。   In still another aspect of the present invention, referring to FIG. 22, when the error signal (ERR) is output a predetermined number of times from the phase detector (12), the integrated output (1) of the first integrator (13) ( It is good also as a structure provided with the error frequency measuring device (21) which outputs the correction amount for correcting PPM.

本発明において、図23を参照すると、前記第2の積分器(14)を前記混合器(16)と前記位相補間器(17)の間に備え、前記混合器(16)は、前記パターン発生器(15)と前記位相検出器(12)の位相比較結果(UP1/DOWN1)を合成した結果を前記第2の積分器(14)に供給する構成としてもよい。   In the present invention, referring to FIG. 23, the second integrator (14) is provided between the mixer (16) and the phase interpolator (17), and the mixer (16) includes the pattern generator. The result of combining the phase comparison results (UP1 / DOWN1) of the detector (15) and the phase detector (12) may be supplied to the second integrator (14).

本発明において、前記位相補間器(17)からの多相のクロック信号(2相以上)で入力データ信号をサンプリングするデータサンプリング回路(11)を備え、前記位相検出器(12)は、前記データサンプリング回路(11)でサンプリングされたデータ信号群を入力する。   In the present invention, a data sampling circuit (11) for sampling an input data signal with a multiphase clock signal (two or more phases) from the phase interpolator (17) is provided, and the phase detector (12) includes the data detector The data signal group sampled by the sampling circuit (11) is input.

本発明において、前記位相検出器(12)は、図3を参照すると、
第1乃至第N(Nは4以上の偶数)の判定回路(図3のEXOR)を備え、
第iの判定回路(i=1〜N)は、データ信号をN相のクロック信号でサンプリングしたデータ信号群のうち位相が隣り合うi番目の相とi+1番目の相のクロック信号でサンプリングしたデータ信号が不一致であるか判定し、
前記第1乃至第Nの判定回路(EXOR)の出力を入力し、第j及び第j+1(ただし、j=1、3、・・・N−1の奇数)の判定回路(EXOR)の各対(判定回路の対は全部でN対ある)のうち、少なくとも1対の判定回路の出力がともに不一致を示す場合、すなわち、第1と第2の判定回路(EXOR)の出力がともに不一致を示す、第3と第4の判定回路(EXOR)の出力がともに不一致を示す、・・・、第N−1と第Nの判定回路(EXOR)の出力がともに不一致を示す、のうちのいずれか1つでも成立した場合、エラー信号を出力し、
その他の場合、前記第1乃至第N(Nは2以上の整数)の判定回路の出力に基づき、前記第1のアップ信号、又は前記第1のダウン信号を出力する論理回路部(図3の1230)を備える。
In the present invention, the phase detector (12) refers to FIG.
First to Nth (N is an even number of 4 or more) determination circuits (EXOR in FIG. 3),
An i-th determination circuit (i = 1 to N) is a data signal sampled with an N-phase clock signal and data sampled with an i-th phase clock signal and an i + 1-th phase clock signal that are adjacent in phase. Determine if the signals do not match,
The outputs of the first to Nth determination circuits (EXOR) are input, and each pair of the determination circuits (EXOR) of the jth and j + 1th (where j = 1, 3,. Of the (there are N pairs of determination circuits in total), when the outputs of at least one pair of determination circuits show mismatches, that is, the outputs of the first and second determination circuits (EXOR) both show mismatches. Any of the outputs of the third and fourth determination circuits (EXOR) indicates mismatch,..., And the outputs of the (N−1) th and Nth determination circuits (EXOR) both indicate mismatch. If even one is established, an error signal is output,
In other cases, a logic circuit unit (FIG. 3) that outputs the first up signal or the first down signal based on the outputs of the first to Nth (N is an integer of 2 or more) determination circuits. 1230).

本発明の別の態様において、CDRは、
入力データ信号を多相のクロック信号の各々でサンプリングするデータサンプリング回路(11)と、
前記データ信号群に対して相隣る位相の前記クロック信号でそれぞれサンプリングされたデータ信号対の一致/不一致を判定し、前記判定結果の組み合わせに基づき、前記クロック信号の位相を進めさせる第1のアップ信号(UP1)、又は、前記クロック信号の位相を遅らせる第1のダウン信号(DOWN1)を出力し、前記判定出力の組み合わせが予め定められたエラーの条件に該当する場合に、エラー信号(ERR)を出力する位相検出器(12)と、
周波数追従ループを構成し、前記位相検出器(12)からの前記第1のアップ信号(UP1)と前記第1のダウン信号(DOWN1)を積分する第1の積分器(13)と、
位相追従ループを構成し、前記位相検出器(12)からの前記第1のアップ信号(UP1)と前記第1のダウン信号(DOWN1)を積分する第2の積分器(14)と、
前記第1の積分器(13)の出力値に応じたパターンの信号値を生成するパターン発生器(15)と、
前記第2の積分器(14)の出力と前記パターン発生器(15)の出力を合成する混合器(16)と、
入力クロックを入力し前記混合器(16)の出力値に基づき位相を可変させた多相のクロック信号を生成し前記データサンプリング回路(11)に供給する位相補間器(17)と、
前記位相検出器(12)から前記エラー信号が出力されると、前記第2の積分器に対してダウン信号を与える強制ダウン生成器(20)と、
を備えた構成としてもよい。
In another aspect of the invention, the CDR is
A data sampling circuit (11) for sampling an input data signal with each of the multiphase clock signals;
A match / mismatch of each pair of data signals sampled by the clock signals having phases adjacent to the data signal group is determined, and a phase of the clock signal is advanced based on a combination of the determination results When an up signal (UP1) or a first down signal (DOWN1) that delays the phase of the clock signal is output, and the combination of the determination outputs satisfies a predetermined error condition, an error signal (ERR) ) To output a phase detector (12);
A first integrator (13) that constitutes a frequency tracking loop and integrates the first up signal (UP1) and the first down signal (DOWN1) from the phase detector (12);
A second integrator (14) that constitutes a phase tracking loop and integrates the first up signal (UP1) and the first down signal (DOWN1) from the phase detector (12);
A pattern generator (15) for generating a signal value of a pattern according to the output value of the first integrator (13);
A mixer (16) for combining the output of the second integrator (14) and the output of the pattern generator (15);
A phase interpolator (17) that receives an input clock, generates a multiphase clock signal whose phase is variable based on an output value of the mixer (16), and supplies the multiphase clock signal to the data sampling circuit (11);
A forced down generator (20) for providing a down signal to the second integrator when the error signal is output from the phase detector (12);
It is good also as a structure provided with.

<比較例の説明>
はじめに図34に示した関連技術のCDRを比較例として説明する。なお、以下の説明は、比較例の課題を解決する本発明の理解の前提となるものである。
<Description of Comparative Example>
First, the CDR of the related art shown in FIG. 34 will be described as a comparative example. The following description is a premise for understanding the present invention to solve the problem of the comparative example.

CDRが検出している周波数偏差が正しい場合、クロックとデータの位相関係の例を2つ示す。   When the frequency deviation detected by the CDR is correct, two examples of the phase relationship between the clock and data are shown.

(I)図34の関連技術のCDRに加わっている周波数偏差=0ppm(parts per million)、CDRが検出している周波数偏差=0ppmの場合。 (I) The case where the frequency deviation applied to the CDR of the related technology in FIG. 34 is 0 ppm (parts per million), and the frequency deviation detected by the CDR is 0 ppm.

CDRが追従できない高周波の正弦波ジッタ(ジッタが時間に対し正弦関数で推移する)をデータに印加すると、図27のようになる。図27において、データ周波数≒クロック周波数とし、CDRにおいて、位相が互いに90度離間した4相クロック信号CLK0、CLK90、CLK180、CLK270とCLK360でデータをサンプリングする場合のデータとクロックのタイミング関係の時間推移を模式的に示している。   When high-frequency sine wave jitter that the CDR cannot follow (jitter changes as a sine function with respect to time) is applied to the data, the result is as shown in FIG. In FIG. 27, the data frequency is approximately equal to the clock frequency, and the time transition of the timing relationship between the data and the clock when the data is sampled with the four-phase clock signals CLK0, CLK90, CLK180, CLK270, and CLK360 that are 90 degrees apart from each other in the CDR. Is schematically shown.

CLK0、CLK180、CLK360の各軸(経過時間)を交差する正弦波の曲線(正弦波曲線の振幅はジッタ成分)は、データのジッタの1周期を模式的に表しており、右欄の上半分の区間のDOWNは、クロック信号のエッジがデータ信号のエッジよりも進んでいるため、図34の位相検出器101から位相比較結果として、DOWNが出力され、右欄の下半分の区間のUPは、クロック信号のエッジがデータ信号のエッジよりも遅れているため、図34の位相検出器101から位相比較結果として、UPが出力されることを表している。図27の場合、正弦波ジッタに対してUP、DOWNが同一頻度で出力されるため、CDRの動作は安定している。   A sine wave curve crossing each axis (elapsed time) of CLK0, CLK180, and CLK360 (the amplitude of the sine wave curve is a jitter component) schematically represents one period of data jitter, and the upper half of the right column. Since the edge of the clock signal is ahead of the edge of the data signal, DOWN is output as a phase comparison result from the phase detector 101 in FIG. 34, and UP in the lower half of the right column is DOWN. Since the edge of the clock signal is behind the edge of the data signal, UP is output as the phase comparison result from the phase detector 101 of FIG. In the case of FIG. 27, since UP and DOWN are output at the same frequency with respect to the sine wave jitter, the CDR operation is stable.

図27において、PPMは、図34の積分器の出力UP3/DOWN3に対応する。PPM≒0でデータ・クロック信号の引き込みが行われる。なお、図27の動作例は、比較例のほか、本発明についても、成り立つ。   In FIG. 27, PPM corresponds to the output UP3 / DOWN3 of the integrator of FIG. Data clock signal is pulled in when PPM≈0. The operation example of FIG. 27 is valid for the present invention in addition to the comparative example.

(II)図34の関連技術のCDRに加わっているデータ信号の周波数偏差=+5000ppm、CDRが検出している周波数偏差=+5000ppmの場合、図28のようになる。 (II) When the frequency deviation of the data signal added to the CDR of the related technology in FIG. 34 is +5000 ppm and the frequency deviation detected by the CDR is +5000 ppm, the result is as shown in FIG.

データ信号は、その周波数とクロック信号の周波数との差が+5000ppmであることから、クロック信号よりも周期が短い。データ信号の周波数とクロック信号の周波数との差が0ppmと比べて、データ位相は、図28の左側に流れていく。一方、CDRも、+5000ppmの周波数偏差を検出しているので、CDRは、クロック信号を+5000ppm分、図の左にシフトさせる。図28の右欄の上半分の区間のDOWNは、クロック信号のエッジが、データ信号のエッジよりも進んでいるため、図34の位相検出器101から位相比較結果として、DOWNが出力され、図28の右欄の下半分の区間のUPは、クロック信号のエッジがデータ信号のエッジよりも遅れているため、図34の位相検出器101から位相比較結果としてUPが出力されることを表している。図28の場合、正弦波ジッタに対して、UP、DOWNが同一頻度で出力されるため、CDRの動作は安定している。積分器102の出力PPMが、PPM=1あたり122.07ppmの場合、PPM=5000ppm/122.07ppm≒41で引き込みが行われる。   The data signal has a shorter period than the clock signal because the difference between the frequency of the data signal and the frequency of the clock signal is +5000 ppm. Compared with the difference between the frequency of the data signal and the frequency of the clock signal being 0 ppm, the data phase flows to the left side of FIG. On the other hand, since the CDR detects a frequency deviation of +5000 ppm, the CDR shifts the clock signal by +5000 ppm to the left in the figure. In the DOWN in the upper half section of the right column of FIG. 28, since the edge of the clock signal is advanced from the edge of the data signal, DOWN is output as the phase comparison result from the phase detector 101 of FIG. The UP in the lower half section of the right column of 28 indicates that the UP is output as the phase comparison result from the phase detector 101 in FIG. 34 because the edge of the clock signal is delayed from the edge of the data signal. Yes. In the case of FIG. 28, since UP and DOWN are output at the same frequency with respect to the sine wave jitter, the CDR operation is stable. When the output PPM of the integrator 102 is 122.07 ppm per PPM = 1, pull-in is performed with PPM = 5000 ppm / 122.07 ppm≈41.

(III)図34の関連技術のCDRが検出している周波数偏差が大きく誤っている場合のクロックとデータ信号の位相関係の例を説明する。図29は、データ周波数がクロック周波数よりも5000ppm高く、CDRが検出している周波数偏差が0ppmの場合の例を説明するための図である。図29の場合、この状態で安定してしまい、CDRが引き込むまでの時間が長くなる可能性がある。さらに悪い場合は、永久に引き込まない可能性もある。 (III) An example of the phase relationship between the clock and the data signal when the frequency deviation detected by the CDR of the related technique of FIG. FIG. 29 is a diagram for explaining an example in which the data frequency is 5000 ppm higher than the clock frequency and the frequency deviation detected by the CDR is 0 ppm. In the case of FIG. 29, the state becomes stable in this state, and there is a possibility that the time until the CDR is pulled in becomes long. If it is worse, it may not be pulled in forever.

例えば、データ信号の周波数がクロック信号の周波数よりも3000ppm高く、CDRが検出している周波数偏差が−2000ppmのような場合(CDRに印加されている周波数偏差と、CDRが検出している周波数偏差の差が5000ppm)も、問題が起きる正弦波ジッタ周波数は同じになる。   For example, when the frequency of the data signal is 3000 ppm higher than the frequency of the clock signal and the frequency deviation detected by the CDR is −2000 ppm (the frequency deviation applied to the CDR and the frequency deviation detected by the CDR) The difference between the sine wave jitter frequency where the problem occurs is the same.

また、CDRに印加されている周波数偏差と、CDRが検出している周波数偏差の差が変われば、それに比例して問題が起きる正弦波ジッタ周波数も変わる。   Further, if the difference between the frequency deviation applied to the CDR and the frequency deviation detected by the CDR changes, the sine wave jitter frequency at which the problem occurs is also changed in proportion thereto.

最初の状態1と、時間T(=正弦波ジッタの1周期)後の状態2では、データ1bit分ずれただけであり、同一である。状態1において、CLK270はデータ信号の前縁のエッジのタイミングに位置しているが、時間T後の状態2では、CLK270は、データ信号の後縁のエッジのタイミングに対応しており、データ信号の前縁のエッジは、CLK90のタイミングに位置している。   The first state 1 and the state 2 after the time T (= one cycle of sine wave jitter) are the same, only shifted by 1 bit of data. In state 1, CLK 270 is located at the timing of the leading edge of the data signal, but in state 2 after time T, CLK 270 corresponds to the timing of the trailing edge of the data signal. The leading edge is located at the timing of CLK90.

この状態で安定してしまい、データ信号の引き込みが行われない可能性がある。データ信号の周波数偏差は5000ppmで左方向であり、直線の傾きは、
T/u
で与えられる。ただし、uは1UI(Unit−Interval:クロック周波数の逆数)である。
In this state, there is a possibility that the data signal is not pulled in due to stability. The frequency deviation of the data signal is 5000 ppm in the left direction, and the slope of the straight line is
T / u
Given in. However, u is 1 UI (Unit-Interval: reciprocal of clock frequency).

u/T=5000/1000000
∴ f=1/T=5000/(1000000u)
u / T = 5000/1000000
F f = 1 / T = 5000 / (1000000u)

u=200psとすると、正弦波ジッタの周波数fは、f=25MHzとなる。   When u = 200 ps, the frequency f of the sine wave jitter is f = 25 MHz.

シミュレーションを行ったところ、正弦波ジッタの大きさがある程度(例えば0.1UIp−p(peak−to−peak)程度)小さい場合には、CDR回路は引き込む。しかし、ジッタの大きさがある程度(例えば0.1UIp−p程度)大きい場合には、初期状態でCDRが検出している周波数偏差がある程度正しい場合は引き込むが、大きく誤っている場合は、引き込まないことが判明した。シミュレーション結果から、位相追従ループの追従能力のおよそ3倍程度以上誤っている場合に、引き込まないようである。   When the simulation is performed, if the magnitude of the sine wave jitter is small to some extent (for example, about 0.1 UIp-p (peak-to-peak)), the CDR circuit is pulled. However, when the magnitude of the jitter is large to some extent (for example, about 0.1 UIp-p), it is pulled in if the frequency deviation detected by the CDR in the initial state is correct to some extent, but is not pulled in if it is largely incorrect. It has been found. From the simulation result, it seems that it is not pulled in when there is an error of about 3 times or more of the tracking capability of the phase tracking loop.

つまり、CDR回路の初期状態によっては、
ジッタトレランス特性が0.1UIp−p程度に低下、
引き込み時間の増大、さらには、
永久に引き込まない(0.1UIp−pよりも大きい正弦波ジッタを加え、初期状態でCDRが検出している周波数偏差が大きく誤っていた場合)、
といった問題が起きる可能性がある。
In other words, depending on the initial state of the CDR circuit,
Jitter tolerance characteristics are reduced to about 0.1 UIp-p.
Increased pull-in time, and
Do not pull in forever (adding sinusoidal jitter greater than 0.1 UIp-p and the frequency deviation detected by the CDR in the initial state is significantly wrong)
Such a problem may occur.

なお、図29の例では、4相クロック信号CLK0、CLK90、CLK180、CLK270、CLK360の位相を直線(平行線)で示したが、厳密には、図30のようになる。クロック位相はUP期間は、少し左に寄り、DOWN期間は少し右に寄る。   In the example of FIG. 29, the phases of the four-phase clock signals CLK0, CLK90, CLK180, CLK270, and CLK360 are shown by straight lines (parallel lines), but strictly, they are as shown in FIG. The clock phase shifts slightly to the left during the UP period and slightly shifts to the right during the DOWN period.

図31は、図30の安定性を定性的にさらに説明するための図である。UP期間、データパターンの変化が少ないと、UPが出ず、CLKはあまり左に寄らない。すると、次のDOWNの期間が短くなり、クロック位相はあまり右に寄らない。すると、さらに次のUP期間が長くなり、クロック位相は左に寄る。つまり、データパターンの変化が少なく、例えばUP期間にクロック位相が左に寄らないことがあっても、その直後のDOWN期間が短くなったり、さらにその後のUP期間が長くなったりすることで、クロック位相は左に寄り、安定性が保たれている。   FIG. 31 is a diagram for further explaining the stability of FIG. 30 qualitatively. If there is little change in the data pattern during the UP period, UP will not come out and CLK will not move much to the left. Then, the period of the next DOWN is shortened, and the clock phase does not move to the right much. Then, the next UP period becomes longer, and the clock phase shifts to the left. In other words, even if the data phase changes little, for example, the clock phase may not shift to the left during the UP period, the DOWN period immediately after that becomes shorter or the subsequent UP period becomes longer. The phase is shifted to the left and stability is maintained.

本発明によれば、多相クロックでデータをサンプリングする位相検出器において、UP、DOWN、及び、エラーを検出し、エラー直前のUP/DOWNの発生状況を調査し、UP(DOWN)が連続している場合には、CDRが検出している周波数偏差を補正し、周波数、位相の引き込みが正しく行われるように制御する。以下、本発明を、いくつかの実施形態に即して詳細に説明する。   According to the present invention, in a phase detector that samples data with a multiphase clock, UP, DOWN, and error are detected, the occurrence status of UP / DOWN immediately before the error is investigated, and UP (DOWN) continues. If so, the frequency deviation detected by the CDR is corrected, and control is performed so that the frequency and phase are correctly drawn. Hereinafter, the present invention will be described in detail with reference to some embodiments.

<実施形態1>
図1は、本発明の第1の実施形態の構成を示す図である。データサンプリング回路11、位相検出器12、積分器13、積分器14、パターン発生器15、混合器16、位相補間器17、連続回数計測器18、補正量決定器19を備えている。
<Embodiment 1>
FIG. 1 is a diagram showing the configuration of the first exemplary embodiment of the present invention. A data sampling circuit 11, a phase detector 12, an integrator 13, an integrator 14, a pattern generator 15, a mixer 16, a phase interpolator 17, a continuous frequency measuring device 18, and a correction amount determining device 19 are provided.

データサンプリング回路11は、位相補間器17からの多相の抽出クロックで入力データをサンプリングし、多相のクロック信号のいずれか一つの相のクロックに同期させてデータを出力する。なお、以下の実施形態では、4相クロックでデータをサンプリングする構成が例示されるが、本発明は、4相クロックに限定されるものでないことは勿論である。   The data sampling circuit 11 samples input data with the multiphase extraction clock from the phase interpolator 17 and outputs the data in synchronization with the clock of any one of the multiphase clock signals. In the following embodiments, a configuration in which data is sampled with a four-phase clock is exemplified, but the present invention is not limited to a four-phase clock.

<データサンプリング回路11>
図2は、データサンプリング回路11の構成例を示す図である。図2の構成は、クロック周波数がデータ周波数の1/2の場合であり、例えばデータが5Gbpsならクロックは2.5GHzの4相クロック信号CLK0、90、180、270となる。クロック信号の周波数がデータ周波数の1/2の場合、データサンプリング回路11は、サンプリングされた2個のデータ(例えばCLK0とCLK180によるデータ信号の中心のサンプル値)を抽出データとして、抽出クロックとともにCDRから他の回路に出力される。
<Data sampling circuit 11>
FIG. 2 is a diagram illustrating a configuration example of the data sampling circuit 11. The configuration of FIG. 2 is a case where the clock frequency is ½ of the data frequency. For example, if the data is 5 Gbps, the clock is a 4-phase clock signal CLK0, 90, 180, 270 of 2.5 GHz. When the frequency of the clock signal is ½ of the data frequency, the data sampling circuit 11 uses the two sampled data (for example, the sample value at the center of the data signal by CLK0 and CLK180) as extracted data, and the CDR together with the extracted clock Is output to other circuits.

データサンプリング回路11は、データ入力を差動で受けデータ信号をシングルエンド出力するレシーバ111と、レシーバ111の出力信号をデータ端子(D)に受け4相クロック信号CLK0、CLK90、CLK180、CLK270をクロック端子(C)にそれぞれ受け、クロック信号CLK0、CLK90、CLK180、CLK270の立ち上がりエッジでデータ端子(D)の信号をそれぞれサンプル出力するフリップフロップ112、113、114、115と、フリップフロップ112、113、114、115の出力端子(Q)からの出力信号をデータ端子(D)に受け、クロック信号CLK0をクロック端子(C)に受け、CLK0の立ち上がりエッジでデータ端子(D)の信号をそれぞれサンプルするフリップフロップ116、117、118、119を備えている。フリップフロップ116、117、118、119の出力端子(Q)からの出力信号はDATA0、DATA90、DATA180、DATA270とされ、フリップフロップ112の出力端子(Q)からの出力信号はDATA360とされる。2つのデータDATA360とDATA180は抽出データとして出力され、4+1=5個のデータDATA0、DATA90、DATA180、DATA270、DATA360が位相検出器12へ供給される。   The data sampling circuit 11 receives a data input differentially and outputs a data signal as a single end, and receives the output signal of the receiver 111 at a data terminal (D) and clocks four-phase clock signals CLK0, CLK90, CLK180, and CLK270. Flip-flops 112, 113, 114, 115 that sample the signal of the data terminal (D) at the rising edges of the clock signals CLK 0, CLK 90, CLK 180, CLK 270, respectively, and flip-flops 112, 113, The output signals from the output terminals (Q) 114 and 115 are received at the data terminal (D), the clock signal CLK0 is received at the clock terminal (C), and the signal at the data terminal (D) is sampled at the rising edge of CLK0. Flip flop It is equipped with a 116, 117, 118, 119. Output signals from the output terminals (Q) of the flip-flops 116, 117, 118, and 119 are DATA0, DATA90, DATA180, and DATA270, and output signals from the output terminal (Q) of the flip-flop 112 are DATA360. The two data DATA360 and DATA180 are output as extracted data, and 4 + 1 = 5 data DATA0, DATA90, DATA180, DATA270, and DATA360 are supplied to the phase detector 12.

CDRが引き込んだ状態では、クロック信号CLK0とCLK180がデータ信号の中心をサンプリングし、クロック信号CLK90とCLK270がデータ信号の変化点(エッジ)をサンプリングする。クロック周波数がデータ周波数の1/2の場合、データサンプリング回路11は、サンプリングされた2個のデータ(例えばCLK0とCLK180によるデータ信号の中心のサンプル値)を抽出データとして、抽出クロックとともにCDRから、他の回路(抽出クロックにより抽出データを処理する回路)に出力される。   In the state where the CDR is pulled in, the clock signals CLK0 and CLK180 sample the center of the data signal, and the clock signals CLK90 and CLK270 sample the change point (edge) of the data signal. When the clock frequency is ½ of the data frequency, the data sampling circuit 11 uses the sampled two pieces of data (for example, the sample value at the center of the data signal by CLK0 and CLK180) as the extraction data from the CDR together with the extraction clock. The data is output to another circuit (a circuit that processes the extracted data using the extracted clock).

一般に、クロック周波数がデータ周波数の1/nの場合、クロック信号は、2×n相とされる。データサンプリング回路11は、2×n+1個のデータを位相検出器12に出力し、n個のデータを抽出データとして、抽出クロックとともにCDRから他の回路に出力される。図2のように、クロック周波数がデータ周波数の1/2の場合、クロックは2×2相=4相とされ、データサンプリング回路11は2×2+1=5個のデータを位相検出器12に出力し、2個の抽出データを出力する。   Generally, when the clock frequency is 1 / n of the data frequency, the clock signal has a 2 × n phase. The data sampling circuit 11 outputs 2 × n + 1 data to the phase detector 12, and outputs n data as extracted data from the CDR together with the extracted clock to other circuits. As shown in FIG. 2, when the clock frequency is ½ of the data frequency, the clock is 2 × 2 phase = 4 phase, and the data sampling circuit 11 outputs 2 × 2 + 1 = 5 data to the phase detector 12. And output two pieces of extracted data.

<位相検出器12>
図3は、図1の位相検出器12の構成例を示す図である。位相検出器12は、データサンプリング回路11から入力されたデータDATA0、DATA90、DATA180、DATA270、DATA360のうち隣り合うデータ同士を2入力の排他的論理和(EXOR)回路1201、1202、1203、1204で比較する。なお、第4相のクロック信号CLK270でサンプリングされたDATA270の隣りのデータとして巡回的に、CLK360、したがって、次のサイクルのCLK0でサンプリングされたDATA360との比較が、2入力の排他的論理和(EXOR)回路1204で行われる。2入力の排他的論理和(EXOR)回路は2入力が一致のとき0、不一致のとき1を出力する。排他的論理和(EXOR)回路1201、1202、1203、1204の出力は、UP00、DOWN00、UP01、DOWN01となる。
<Phase detector 12>
FIG. 3 is a diagram illustrating a configuration example of the phase detector 12 of FIG. The phase detector 12 converts two adjacent data among the data DATA0, DATA90, DATA180, DATA270, and DATA360 input from the data sampling circuit 11 into two-input exclusive OR (EXOR) circuits 1201, 1202, 1203, and 1204. Compare. It should be noted that the data adjacent to the DATA 270 sampled by the fourth-phase clock signal CLK 270 is cyclically compared with the CLK 360, and therefore the DATA 360 sampled at the CLK 0 in the next cycle. EXOR) circuit 1204. The 2-input exclusive OR (EXOR) circuit outputs 0 when the two inputs match and outputs 1 when they do not match. The outputs of the exclusive OR (EXOR) circuits 1201, 1202, 1203, 1204 are UP00, DOWN00, UP01, and DOWN01.

図3を参照すると、位相検出器12は、さらに、
DOWN01を入力するインバータ1205と、
DOWN00を入力するインバータ1207と、
UP01を入力するインバータ1212と、
UP00を入力するインバータ1214と、
UP00とインバータ1205の出力を入力する2入力の論理積(AND)回路1206と、
UP01とインバータ1207の出力を入力するAND回路1208と、
UP00とDOWN00を入力する2入力のAND回路1209と、
UP01とDOWN01を入力する2入力のAND回路1210と、
DOWN00とインバータ1212の出力を入力する2入力の論理積(AND)回路1213と、
DOWN01とインバータ1214の出力を入力するAND回路1215と、
AND回路1206、1208の出力を入力する2入力の論理和(OR)回路1216と、
AND回路1209、1210の出力を入力する2入力のOR回路1211と、
AND回路1213、1215の出力を入力する2入力のOR回路1218と、
OR回路1211の出力を入力するインバータ1217と、
OR回路1216とインバータ1217の出力を入力する2入力のAND回路1219と、
OR回路1218とインバータ1217の出力を入力する2入力のAND回路1220と、
からなる論理回路部1230を備える。
Referring to FIG. 3, the phase detector 12 further includes:
An inverter 1205 for inputting DOWN01;
An inverter 1207 for inputting DOWN00;
An inverter 1212 for inputting UP01;
An inverter 1214 for inputting UP00;
2-input logical product (AND) circuit 1206 for inputting the output of UP00 and the inverter 1205;
AND circuit 1208 for inputting the output of UP01 and inverter 1207,
A 2-input AND circuit 1209 for inputting UP00 and DOWN00;
A 2-input AND circuit 1210 for inputting UP01 and DOWN01;
2-input AND (AND) circuit 1213 for inputting the output of DOWN00 and inverter 1212;
AND circuit 1215 that inputs the output of DOWN01 and inverter 1214;
A two-input logical sum (OR) circuit 1216 for inputting the outputs of the AND circuits 1206 and 1208;
A two-input OR circuit 1211 for inputting the outputs of the AND circuits 1209 and 1210;
A two-input OR circuit 1218 for inputting the outputs of the AND circuits 1213 and 1215;
An inverter 1217 for inputting the output of the OR circuit 1211;
A two-input AND circuit 1219 for inputting the output of the OR circuit 1216 and the inverter 1217;
A two-input AND circuit 1220 for inputting an output of the OR circuit 1218 and the inverter 1217;
The logic circuit part 1230 which consists of is provided.

論理回路部1230は、UP00、DOWN00、UP01、DOWN01を入力し、UP1、ERR、DOWN1を出力する。   The logic circuit unit 1230 inputs UP00, DOWN00, UP01, and DOWN01, and outputs UP1, ERR, and DOWN1.

OR回路1211は論理演算OR(AND(UP00、DOWN00)、AND(UP01、DOWN01))を行う。   The OR circuit 1211 performs a logical operation OR (AND (UP00, DOWN00), AND (UP01, DOWN01)).

ERRは、OR回路1211の出力、したがって、ERRは、(UP00=1且つDOWN00=1)と(UP01=1、且つDOWN01=1)の少なくとも一方が成立するとき1(例えばHigh)となる。なお、信号の値1、0は論理値を表している。   ERR is an output of the OR circuit 1211. Therefore, ERR is 1 (for example, High) when at least one of (UP00 = 1 and DOWN00 = 1) and (UP01 = 1 and DOWN01 = 1) is established. The signal values 1 and 0 represent logical values.

AND回路1219は、OR回路1211の出力が0であるとき、OR回路1216の出力信号をそのまま伝達出力する。OR回路1216は、論理演算OR(AND(UP00、/DOWN00)、AND(UP01、/DOWN01))を行う。したがって、(UP00=1、且つDOWN00=0)、(UP01=1、且つDOWN01=0)の少なくとも一方が成り立つとき、UP1は1(例えばHigh)となる。例えば(UP00=1、且つDOWN00=1)が成り立つ場合、クロック信号CLK0とCLK90でサンプリングしたDATA0とDATA90の値が異なり、クロック信号CLK90とCLK180でサンプリングしたDATA90とDATA180の値が異なり、1データサイクル(=1/2クロック周期)でデータの反転が2回生じていることになり、エラーと判定する。(UP01=1、且つDOWN01=1)が成り立つ場合も同様に、クロック信号CLK180とCLK270でサンプリングしたDATA180とDATA270の値が異なり、クロック信号CLK270とCLK360でサンプリングしたDATA270とDATA360の値が異なり、1データサイクル(=1/2クロック周期)でデータの反転が2回生じていることになり、エラーとなる。   When the output of the OR circuit 1211 is 0, the AND circuit 1219 transmits and outputs the output signal of the OR circuit 1216 as it is. The OR circuit 1216 performs a logical operation OR (AND (UP00, / DOWN00), AND (UP01, / DOWN01)). Therefore, when at least one of (UP00 = 1 and DOWN00 = 0) and (UP01 = 1 and DOWN01 = 0) is satisfied, UP1 is 1 (for example, High). For example, if (UP00 = 1 and DOWN00 = 1) holds, the values of DATA0 and DATA90 sampled by the clock signals CLK0 and CLK90 are different, and the values of DATA90 and DATA180 sampled by the clock signals CLK90 and CLK180 differ, and one data cycle (= 1/2 clock cycle), data inversion occurs twice, and an error is determined. Similarly, when (UP01 = 1 and DOWN01 = 1) holds, the values of DATA180 and DATA270 sampled by the clock signals CLK180 and CLK270 are different, and the values of DATA270 and DATA360 sampled by the clock signals CLK270 and CLK360 are different. Data inversion occurs twice in a data cycle (= 1/2 clock cycle), resulting in an error.

AND回路1220は、OR回路1211の出力が0であるとき、OR回路1218の出力をそのまま伝達出力される。OR回路1218は、論理演算OR(AND(DOWN00、/UP01)、AND(DOWN01、/UP00))を行う。(DOWN00=1、且つUP01=0)、(DOWN01=1、且つUP00=0)の少なくとも一方が成り立つとき、DOWN1が1(例えばHigh)となる。   When the output of the OR circuit 1211 is 0, the AND circuit 1220 transmits the output of the OR circuit 1218 as it is. The OR circuit 1218 performs a logical operation OR (AND (DOWN00, / UP01), AND (DOWN01, / UP00)). When at least one of (DOWN00 = 1 and UP01 = 0) and (DOWN01 = 1 and UP00 = 0) holds, DOWN1 becomes 1 (for example, High).

図4に、上記した論理回路部1230の論理を真理値表としてまとめて示す。位相検出器12の出力は、4パターンに分類できる。それぞれについて、データサンプリング回路11から位相検出器12の出力までのタイミングチャートの例を示す。なお、図4において、信号の値1、0は論理値を表している。   FIG. 4 collectively shows the logic of the logic circuit unit 1230 as a truth table. The output of the phase detector 12 can be classified into four patterns. For each, an example of a timing chart from the data sampling circuit 11 to the output of the phase detector 12 is shown. In FIG. 4, signal values 1 and 0 represent logical values.

上記したように、UP00=1且つDOWN00=1の場合、ERR=1、UP1=DOWN1=0とする。   As described above, when UP00 = 1 and DOWN00 = 1, ERR = 1 and UP1 = DOWN1 = 0.

UP01=1且つDOWN01=1の場合、ERR=1、UP1=DOWN1=0とする。   When UP01 = 1 and DOWN01 = 1, ERR = 1 and UP1 = DOWN1 = 0.

それ以外の場合、UP00、DOWN00、UP01、DOWN01を多数決し、UPが多い場合、UP1=1、DOWN1=0とし、DOWNが多い場合、UP1=0、DOWN1=1とする。   In other cases, UP00, DOWN00, UP01, and DOWN01 are majority, UP1 = 1 and DOWN1 = 0 when there are many UPs, and UP1 = 0 and DOWN1 = 1 when there are many DOWNs.

<DOWN発生時の動作例>
次に、抽出クロック信号の位相がデータよりも進んでおり、DOWNが発生する場合を説明する。
<Operation example when DOWN occurs>
Next, a case where the phase of the extracted clock signal is ahead of the data and DOWN occurs will be described.

図5は、DOWN1=1(=High)となる場合の動作例を示すタイミング図である。図5(A)には、データ入力、クロック信号CLK0、90、180、270、サンプリングデータDATA0、90、180、270、360、UP00、DOWN00、UP01、DOWN01、UP1、DOWN1、ERRの電圧波形が示されている。なお、特に制限されないが、以下のタイミング図では、Highを論理1、Lowを論理0とする。図5(B)は、抽出クロックとデータ信号の位相の関係を示す波形図である。CLK0、CLK180は、それぞれの矢線の右隣の破線が示すデータ中心部に来るべきところ、位相が進んでいる。CLK90、270は、それぞれの右隣の破線が示すデータエッジに来るべきところ、位相が進んでいる。   FIG. 5 is a timing chart showing an operation example when DOWN1 = 1 (= High). FIG. 5A shows voltage waveforms of data input, clock signals CLK0, 90, 180, 270, sampling data DATA0, 90, 180, 270, 360, UP00, DOWN00, UP01, DOWN01, UP1, DOWN1, and ERR. It is shown. Although not particularly limited, in the following timing diagrams, High is logic 1 and Low is logic 0. FIG. 5B is a waveform diagram showing the relationship between the extracted clock and the phase of the data signal. The phases of CLK0 and CLK180 are advanced where they should come to the data center indicated by the broken line to the right of each arrow line. The phases of CLK90 and 270 are advanced where they should come to the data edge indicated by the broken lines on the right.

図5(A)を参照すると、データ入力としてa=1、b=0、c=1、d=0、e=1、f=0、g=1、h=0がこの順でクロック周波数の2倍の周波数で入力されるものとする。またa=1の前にz=0(≠a)が入力されているものとする。   Referring to FIG. 5A, as the data input, a = 1, b = 0, c = 1, d = 0, e = 1, f = 0, g = 1, and h = 0 are the clock frequencies in this order. It is assumed that the input is performed at twice the frequency. Further, it is assumed that z = 0 (≠ a) is input before a = 1.

CLK0の立ち上がり(タイミングt0)で、DATA0、90、180、270、360(ただし、DATA360はCLK0から1クロックサイクル(360度)遅れたクロック(CLK360)でサンプルされたデータ)には、直前のサイクルのCLK0、CLK90、CLK180、CLK270の立ち上がりエッジでそれぞれサンプリングされたz、z、a、aと、今回のCLK0(したがってCLK360)の立ち上がりでサンプリングされたbとがパラレルに出力される。この結果、UP00、DOWN00、UP01、DOWN01は、それぞれ、Low、High、Low、Highとなり、UP1、DOWN1、ERRはLow、High、Lowとなる。DATA90、DATA180のz、aを比較するEXOR1202の出力DOWN00、DATA270、DATA360のaとbを比較するEXOR1204の出力DOWN01がHighとなり、UP00、UP01はLowとなる。したがって、DOWN1=1となる。以降も同様である。この場合、抽出クロック信号の位相を遅らせる。   At the rising edge of CLK0 (timing t0), DATA0, 90, 180, 270, 360 (where DATA360 is data sampled with a clock (CLK360) delayed by one clock cycle (360 degrees) from CLK0) is the previous cycle. Z, z, a, and a sampled at the rising edges of CLK0, CLK90, CLK180, and CLK270, respectively, and b sampled at the rising edge of the current CLK0 (and hence CLK360) are output in parallel. As a result, UP00, DOWN00, UP01, and DOWN01 are Low, High, Low, and High, respectively, and UP1, DOWN1, and ERR are Low, High, and Low. The output DOWN00 of EXOR1202 that compares z and a of DATA90 and DATA180, the output DOWN01 of EXOR1204 that compares a and b of DATA270 and DATA360 becomes High, and UP00 and UP01 become Low. Therefore, DOWN1 = 1. The same applies thereafter. In this case, the phase of the extracted clock signal is delayed.

<UP発生時の動作例>
次に抽出クロック位相が遅れており、UPが発生する場合を説明する。
<Operation example when UP occurs>
Next, a case where the extracted clock phase is delayed and UP occurs will be described.

図6は、UP1=Highとなる場合の動作例を示すタイミング図である。図6(A)には、データ入力、CLK0、90、180、270、DATA0、90、180、270、360(ただし、DATA360はCLK0から1クロックサイクル(360度)遅れたクロック(CLK360)でサンプルされたデータ)、UP00、DOWN00、UP01、DOWN01、UP1、DOWN1、ERRの電圧波形が示されている。なお、Highを論理1、Lowを論理0とする。   FIG. 6 is a timing chart showing an operation example when UP1 = High. 6A shows data input, CLK0, 90, 180, 270, DATA0, 90, 180, 270, 360 (where DATA360 is sampled at a clock (CLK360) delayed by one clock cycle (360 degrees) from CLK0). ), UP00, DOWN00, UP01, DOWN01, UP1, DOWN1, and ERR voltage waveforms are shown. Note that High is logic 1 and Low is logic 0.

図6(B)は抽出クロックとデータ信号の位相の関係を示す波形図である。CLK0、CLK180は、それぞれの矢線の左隣の破線が示すデータ中心部に来るべきところ、位相が遅れている。CLK90、270は、それぞれの矢線の左隣の破線が示すデータエッジに来るべきところ、位相が遅れている。   FIG. 6B is a waveform diagram showing the relationship between the extracted clock and the phase of the data signal. CLK0 and CLK180 are delayed in phase where they should come to the data center indicated by the broken line adjacent to the left of each arrow line. CLK90 and 270 are delayed in phase where they should come to the data edge indicated by the broken line to the left of each arrow line.

図6(A)を参照すると、データ入力としてa=1、b=0、c=1、d=0、e=1、f=0、g=1、h=0がこの順でクロック周波数の2倍の周波数で入力されるものとする。またa=1の前にz=0(≠a)が入力されているものとする。   Referring to FIG. 6A, as data input, a = 1, b = 0, c = 1, d = 0, e = 1, f = 0, g = 1, h = 0 are clock frequencies in this order. It is assumed that the input is performed at twice the frequency. Further, it is assumed that z = 0 (≠ a) is input before a = 1.

CLK0の立ち上がり(タイミングt0)で、DATA0、90、180、270、360には、直前のサイクルのCLK0、CLK90、CLK180、CLK270の立ち上がりエッジでそれぞれサンプリングされたz、a、a、bと、今回のCLK0の立ち上がりでサンプリングされたbとがパラレルに出力される。この結果、UP00、DOWN00、UP01、DOWN01は、それぞれ、High、Low、High、Lowとなり、UP1、DOWN1、ERRはHigh、Low、Lowとなる。DATA0、DATA90のz、aを比較するEXOR1201の出力UP00が1、DATA180、DATA270のaとbを比較するEXOR1203の出力UP01がHighとなり、DOWN00、DOWN01はLowとなる。したがって、UP1=1となる。以降も同様である。この場合、抽出クロック信号の位相を進ませる。   At the rising edge of CLK0 (timing t0), DATA0, 90, 180, 270, and 360 include z, a, a, and b sampled at the rising edges of CLK0, CLK90, CLK180, and CLK270 of the previous cycle, respectively. And b sampled at the rising edge of CLK0 are output in parallel. As a result, UP00, DOWN00, UP01, and DOWN01 are High, Low, High, and Low, respectively, and UP1, DOWN1, and ERR are High, Low, and Low. The output UP00 of EXOR1201 that compares z and a of DATA0 and DATA90 is 1, the output UP01 of EXOR1203 that compares a and b of DATA180 and DATA270 is High, and DOWN00 and DOWN01 are Low. Therefore, UP1 = 1. The same applies thereafter. In this case, the phase of the extracted clock signal is advanced.

<UPとDOWNが同程度発生する動作例>
次に抽出クロック位相は最適であり、UPとDOWNが同程度発生する場合について説明する。
<Operation example in which UP and DOWN are generated to the same extent>
Next, the case where the extracted clock phase is optimum and UP and DOWN are generated to the same extent will be described.

図7は、UP1=1、DOWN=1が同程度の頻度で生じる場合の動作例を示すタイミング図である。図7(A)には、データ入力、CLK0、90、180、270、DATA0、90、180、270、360(ただし、DATA360はCLK0から1クロックサイクル(360度)遅れたクロック(CLK360)でサンプルされたデータ)、UP00、DOWN00、UP01、DOWN01、UP1、DOWN1、ERRの電圧波形が示されている。なお、Highを論理1、Lowを論理0とする。   FIG. 7 is a timing diagram showing an operation example when UP1 = 1 and DOWN = 1 occur at the same frequency. FIG. 7A shows data input, CLK0, 90, 180, 270, DATA0, 90, 180, 270, 360 (where DATA360 is sampled at a clock (CLK360) delayed by one clock cycle (360 degrees) from CLK0). ), UP00, DOWN00, UP01, DOWN01, UP1, DOWN1, and ERR voltage waveforms are shown. Note that High is logic 1 and Low is logic 0.

図7(B)は抽出クロックとデータ信号の位相の関係を示す波形図である。CLK0、CLK180のそれぞれの矢線はほぼ破線が示すデータ中心部にあり、CLK90、270のそれぞれの矢線はほぼ破線が示すデータエッジにある。   FIG. 7B is a waveform diagram showing the relationship between the phase of the extracted clock and the data signal. Each arrow line of CLK0 and CLK180 is substantially at the data center indicated by the broken line, and each arrow line of CLK90 and 270 is substantially at the data edge indicated by the broken line.

図7(A)を参照すると、データ入力としてa=1、b=0、c=1、d=0、e=1、f=0、g=1、h=0がこの順でクロック周波数の2倍の周波数で入力されるものとする。またa=1の前にz=0(≠a)が入力されているものとする。a、b、c、fの上の右矢印→は、データ位相(エッジ)の遅れを表しており、d、e、gの上の左矢印←はデータ位相(エッジ)の進みを表しており、ジッタにより矢印の方向にエッジが若干ずれていることを表している。   Referring to FIG. 7A, as data input, a = 1, b = 0, c = 1, d = 0, e = 1, f = 0, g = 1, and h = 0 are clock frequencies in this order. It is assumed that the input is performed at twice the frequency. Further, it is assumed that z = 0 (≠ a) is input before a = 1. The right arrow on a, b, c, f represents the delay of the data phase (edge), and the left arrow on the d, e, g represents the advance of the data phase (edge). This indicates that the edge is slightly shifted in the direction of the arrow due to jitter.

クロック信号CLK0の立ち上がり(タイミングt0)で、DATA0、90、180、270、360には、直前のサイクルのCLK0、CLK90、CLK180、CLK270の立ち上がりエッジでそれぞれサンプリングされたz、z、a、aと、今回のCLK0の立ち上がりでサンプリングされたbとがパラレルに出力される。この結果、図5(A)と同様、UP00、DOWN00、UP01、DOWN01は、それぞれ、Low、High、Low、Highとなり、UP1、DOWN1、ERRはLow、High、Lowとなる。すなわち、DATA90、DATA180のz、aを比較するEXOR1202の出力DOWN00、DATA270、DATA360のaとbを比較するEXOR1204の出力DOWN01がHighとなり、UP00、UP01はLowとなる。したがって、DOWN1はHighとなる。   At the rising edge of the clock signal CLK0 (timing t0), DATA0, 90, 180, 270, 360 includes z, z, a, a sampled at the rising edges of CLK0, CLK90, CLK180, CLK270 of the immediately preceding cycle, respectively. Then, b sampled at the rising edge of CLK0 is output in parallel. As a result, as in FIG. 5A, UP00, DOWN00, UP01, and DOWN01 are Low, High, Low, and High, respectively, and UP1, DOWN1, and ERR are Low, High, and Low. That is, the output DOWN00 of EXOR 1202 that compares z and a of DATA90 and DATA180, and the output DOWN01 of EXOR1204 that compares a and b of DATA270 and DATA360 are High, and UP00 and UP01 are Low. Therefore, DOWN1 becomes High.

次のクロックサイクルのCLK0の立ち上がり(タイミングt1)で、DATA0、90、180、270、360には、直前のサイクルのCLK0、CLK90、CLK180、CLK270の立ち上がりエッジでそれぞれサンプリングされたb、b、c、dと、今回のCLK0の立ち上がりでサンプリングされたdとがパラレルに出力される。UP00、DOWN00、UP01、DOWN01は、それぞれ、Low、High、High、Lowとなり、UP1、DOWN1、ERRはLow、Low、Lowとなる。   At the rising edge of CLK0 (timing t1) of the next clock cycle, DATA0, 90, 180, 270, 360 includes b, b, c sampled at the rising edges of CLK0, CLK90, CLK180, CLK270 of the immediately preceding cycle, respectively. , D and d sampled at the rising edge of CLK0 this time are output in parallel. UP00, DOWN00, UP01, and DOWN01 are Low, High, High, and Low, respectively, and UP1, DOWN1, and ERR are Low, Low, and Low.

さらに次のクロックサイクルのCLK0の立ち上がり(タイミングt2)で、DATA0、90、180、270、360には、直前のサイクルのCLK0、CLK90、CLK180、CLK270の立ち上がりエッジでそれぞれサンプリングされたd、e、e、eと、今回のCLK0の立ち上がりでサンプリングされたfとがパラレルに出力される。UP00、DOWN00、UP01、DOWN01は、それぞれ、High、Low、Low、Highとなり、UP1、DOWN1、ERRはLow、Low、Lowとなる。   Further, at the rising edge of CLK0 of the next clock cycle (timing t2), DATA0, 90, 180, 270, 360 includes d, e, and sampled at the rising edges of CLK0, CLK90, CLK180, CLK270 of the immediately preceding cycle, respectively. e and e and f sampled at this rising edge of CLK0 are output in parallel. UP00, DOWN00, UP01, and DOWN01 are High, Low, Low, and High, respectively, and UP1, DOWN1, and ERR are Low, Low, and Low, respectively.

さらに次のクロックサイクルのCLK0の立ち上がり(タイミングt3)で、DATA0、90、180、270、360には、直前のサイクルのCLK0、CLK90、CLK180、CLK270の立ち上がりエッジでそれぞれサンプリングされたf、g、g、hと、今回のCLK0の立ち上がりでサンプリングされたhとがパラレルに出力される。UP00、DOWN00、UP01、DOWN01は、それぞれ、High、Low、High、Lowとなり、UP1、DOWN1、ERRはHigh、Low、Lowとなる。   Further, at the rising edge of CLK0 of the next clock cycle (timing t3), DATA0, 90, 180, 270, 360 includes f, g, and sampled at the rising edges of CLK0, CLK90, CLK180, CLK270 of the immediately preceding cycle, respectively. g and h and h sampled at the rising edge of CLK0 are output in parallel. UP00, DOWN00, UP01, and DOWN01 are High, Low, High, and Low, respectively, and UP1, DOWN1, and ERR are High, Low, and Low, respectively.

図7(B)に示すように、CDRが引き込んでいる状態である。CLK0とCLK180がデータ信号の中心をサンプリングし、CLK90とCLK270がデータ信号のエッジをサンプリングしている。UP1、DOWN1の頻度が同じであり、CDRでは引き込みが行われている。   As shown in FIG. 7B, the CDR is in a retracted state. CLK0 and CLK180 sample the center of the data signal, and CLK90 and CLK270 sample the edge of the data signal. The frequency of UP1 and DOWN1 is the same, and drawing is performed in the CDR.

<ERR出力時の動作例>
次に抽出クロック位相は最悪(データサンプリングクロック信号CLK0、CLK180がデータ信号の変化点をサンプリングしている)であり、ERRを出力する場合について説明する。
<Operation example at ERR output>
Next, the case where the extraction clock phase is the worst (data sampling clock signals CLK0 and CLK180 are sampling the changing points of the data signal) and ERR is output will be described.

図8(A)には、データ入力、CLK0、90、180、270、DATA0、90、180、270、360(ただし、DATA360はCLK0から1クロックサイクル(360度)遅れたクロック(CLK360)でサンプルされたデータ)、UP00、DOWN00、UP01、DOWN01、UP1、DOWN1、ERRの電圧波形が示されている。なお、Highを論理1、Lowを論理0とする。   FIG. 8A shows data input, CLK0, 90, 180, 270, DATA0, 90, 180, 270, 360 (where DATA360 is sampled at a clock (CLK360) delayed by one clock cycle (360 degrees) from CLK0). ), UP00, DOWN00, UP01, DOWN01, UP1, DOWN1, and ERR voltage waveforms are shown. Note that High is logic 1 and Low is logic 0.

図8(B)は抽出クロックとデータ信号の位相の関係を示す波形図である。図7(B)とは4相クロック位相が、90度遅れている。CLK0、CLK180のそれぞれの矢線はほぼ破線が示すデータ信号のエッジにあり、CLK90、270のそれぞれの矢線はほぼ破線が示すデータ中心部にある。   FIG. 8B is a waveform diagram showing the relationship between the extracted clock and the phase of the data signal. The four-phase clock phase is delayed by 90 degrees from FIG. Each arrow line of CLK0 and CLK180 is substantially at the edge of the data signal indicated by the broken line, and each arrow line of CLK90 and 270 is substantially at the data center indicated by the broken line.

図8(A)を参照すると、データ入力としてa=1、b=0、c=1、d=0、e=1、f=0、g=1、h=0がこの順でクロック周波数の2倍の周波数で入力されるものとする。またa=1の前にz=0(≠a)が入力されているものとする。a、b、c、fの上の右矢印→は、データ位相(エッジ)の遅れを表しており、d、e、g、hの上の左矢印←はデータ位相(エッジ)の進みを表しており、ジッタにより矢印の方向にエッジが若干ずれていることを表している。   Referring to FIG. 8A, as data input, a = 1, b = 0, c = 1, d = 0, e = 1, f = 0, g = 1, and h = 0 are clock frequencies in this order. It is assumed that the input is performed at twice the frequency. Further, it is assumed that z = 0 (≠ a) is input before a = 1. The right arrow on a, b, c, f represents the delay of the data phase (edge), and the left arrow on the d, e, g, h represents the advance of the data phase (edge). This indicates that the edge is slightly shifted in the direction of the arrow due to jitter.

CLK0の立ち上がり(タイミングt0)で、DATA0、90、180、270、360には、直前のサイクルのCLK0、CLK90、CLK180、CLK270の立ち上がりエッジでそれぞれサンプリングされたz、a、a、bと、今回のCLK0の立ち上がりでサンプリングされたbとがパラレルに出力される。この結果、図6(A)と同様、UP00、DOWN00、UP01、DOWN01は、それぞれ、High、Low、High、Lowとなり、UP1、DOWN1、ERRはHigh、Low、Lowとなる。   At the rising edge of CLK0 (timing t0), DATA0, 90, 180, 270, and 360 include z, a, a, and b sampled at the rising edges of CLK0, CLK90, CLK180, and CLK270 of the previous cycle, respectively. And b sampled at the rising edge of CLK0 are output in parallel. As a result, as in FIG. 6A, UP00, DOWN00, UP01, and DOWN01 are High, Low, High, and Low, respectively, and UP1, DOWN1, and ERR are High, Low, and Low.

次のクロックサイクルのCLK0の立ち上がり(タイミングt1)で、DATA0、90、180、270、360には、直前のサイクルのCLK0、CLK90、CLK180、CLK270の立ち上がりエッジでそれぞれサンプリングされたb、c、d、dと、今回のCLK0の立ち上がり(t1)でサンプリングされたeとがパラレルに出力される。UP00、DOWN00、UP01、DOWN01は、それぞれ、High、High、Low、Highとなり、UP1、DOWN1、ERRはLow、Low、Highとなる。   At the rising edge of CLK0 (timing t1) of the next clock cycle, DATA0, 90, 180, 270, 360 includes b, c, d sampled at the rising edges of CLK0, CLK90, CLK180, CLK270 of the immediately preceding cycle, respectively. , D and e sampled at the current rising edge of CLK0 (t1) are output in parallel. UP00, DOWN00, UP01, and DOWN01 are High, High, Low, and High, respectively, and UP1, DOWN1, and ERR are Low, Low, and High.

さらに次のクロックサイクルのCLK0の立ち上がり(タイミングt2)で、DATA0、90、180、270、360には、直前のサイクルのCLK0、CLK90、CLK180、CLK270の立ち上がりエッジでそれぞれサンプリングされたe、e、e、fと、今回のCLK0の立ち上がり(t2)でサンプリングされたgとがパラレルに出力される。UP00、DOWN00、UP01、DOWN01は、それぞれ、Low、Low、High、Highとなり、UP1、DOWN1、ERRはLow、Low、Highとなる。   Furthermore, at the rising edge of CLK0 (timing t2) of the next clock cycle, DATA0, 90, 180, 270, 360 are sampled at the rising edges of CLK0, CLK90, CLK180, CLK270 of the previous cycle, e, e, e and f and g sampled at the present rising edge of CLK0 (t2) are output in parallel. UP00, DOWN00, UP01, and DOWN01 are Low, Low, High, and High, respectively, and UP1, DOWN1, and ERR are Low, Low, and High, respectively.

ERR=1において、CLK0、CLK180はデータ信号のエッジをサンプリングしている。   When ERR = 1, CLK0 and CLK180 sample the edge of the data signal.

<積分器14(UP/DOWNカウンタ)の状態遷移例>
位相追従ループ内の積分器14は、位相検出器12からのUP1とDOWN1を受け、UP1=HighのときUPカウントし、DOWN1=Highのとき、DOWNカウントするUP/DOWNカウンタ(不図示)を備える。図9は、積分器14のUP/DOWNカウンタの状態遷移図である。実線はUP1=1の場合の状態遷移、破線はDOWN1=1の場合の状態遷移を表す。UP1=1のとき、クロック入力に応答してカウント値を1つインクリメントし、DOWN1=1のとき、クロック入力に応答してカウント値を1つデクリメントし、現在サイクルのカウント値が+7の場合、UP1=1であると、+7から0に戻る。このときUPDOWN2=+1を出力する。現在サイクルのカウント値が−7の場合、DOWN1=1であると、−7から0に戻る。このときUPDOWN2=−1を出力する。
<Example of State Transition of Integrator 14 (UP / DOWN Counter)>
The integrator 14 in the phase tracking loop includes an UP / DOWN counter (not shown) that receives UP1 and DOWN1 from the phase detector 12, counts up when UP1 = High, and counts down when DOWN1 = High. . FIG. 9 is a state transition diagram of the UP / DOWN counter of the integrator 14. A solid line represents a state transition when UP1 = 1, and a broken line represents a state transition when DOWN1 = 1. When UP1 = 1, the count value is incremented by 1 in response to the clock input. When DOWN1 = 1, the count value is decremented by 1 in response to the clock input. When the count value of the current cycle is +7, If UP1 = 1, the value returns from +7 to 0. At this time, UPDOWN2 = + 1 is output. When the count value of the current cycle is -7, if DOWN1 = 1, the value returns from -7 to 0. At this time, UPDOWN2 = -1 is output.

積分器14において、UP1がDOWN1よりも8回多くなった時点で、UPDOWN2=+1を出力し、DOWN1がUP1より8回多くなったらUPDOWN2=−1を出力する。   The integrator 14 outputs UPDOWN2 = + 1 when UP1 is 8 times greater than DOWN1, and outputs UPDOWN2 = -1 when DOWN1 is 8 times greater than UP1.

積分器14は、CDR回路を安定化させるためのものである。積分器がない場合、位相検出器12が出力したUP1/DOWN1を用いて抽出クロック位相を頻繁に動かしてしまい、抽出クロック信号の位相が安定しない。   The integrator 14 is for stabilizing the CDR circuit. When there is no integrator, the extracted clock phase is frequently moved using UP1 / DOWN1 output from the phase detector 12, and the phase of the extracted clock signal is not stable.

<積分器13の構成例>
図10は、周波数追従ループ内の積分器13の構成の一例を示す図である。図10に示すように、積分器13は、2段のUP/DOWNカウンタ141、142を備える。1段目のUP/DOWNカウンタ141は、位相追従ループの積分器14のUP/DOWNカウンタと同一構成とされる。UP/DOWNカウンタ141は、位相検出器12が出力したUP1/DOWN1で毎回周波数偏差情報を更新するのではなく、UPとDOWNが所定の回数多くなった時だけ更新するために設けるUP/DOWNカウンタである。UP1/DOWN1で毎回周波数偏差情報を更新する場合、1段目のカウンタ141は使用しない。
<Configuration Example of Integrator 13>
FIG. 10 is a diagram illustrating an example of the configuration of the integrator 13 in the frequency tracking loop. As shown in FIG. 10, the integrator 13 includes two-stage UP / DOWN counters 141 and 142. The first stage UP / DOWN counter 141 has the same configuration as the UP / DOWN counter of the integrator 14 of the phase tracking loop. The UP / DOWN counter 141 does not update the frequency deviation information every time with UP1 / DOWN1 output from the phase detector 12, but an UP / DOWN counter provided for updating only when UP and DOWN increase a predetermined number of times. It is. When the frequency deviation information is updated each time with UP1 / DOWN1, the first-stage counter 141 is not used.

2段目のUP/DOWNカウンタ142のカウント値であるPPMは、クロックとデータ信号の周波数偏差を表す。UP/DOWNカウンタ142はCORRECT信号により、カウント値を補正する機能を備えている。UP/DOWNカウンタ142において、オーバーフロー又はアンダーフロー発生時、カウント値を0に自動リセットするか、カウント値を最大値又は最小値に維持する。   PPM which is the count value of the second stage UP / DOWN counter 142 represents a frequency deviation between the clock and the data signal. The UP / DOWN counter 142 has a function of correcting the count value by the CORRECT signal. In the UP / DOWN counter 142, when overflow or underflow occurs, the count value is automatically reset to 0, or the count value is maintained at the maximum value or the minimum value.

<積分器13の2段目のUP/DOWNカウンタ142の構成例>
図11は、2段目のUP/DOWNカウンタ142の構成例を示す図である。図11を参照すると、UP/DOWNカウンタ142は、UP/DOWNカウンタ141が出力したUPDOWN7と出力PPMを加算する加算器1421と、CORRECTと出力PPMを加算する加算器1422と、CORRECTが0であるか判定する零判定器1423と、セレクタ1424と、セレクタ1424の出力を、入力されるクロック信号でサンプリングされた値をPPMとして出力するフリップフロップ1425を備えている。セレクタ1424は、零判定器1423の判定結果に基づき、CORRECTが0のとき、加算器1421の出力を選択する。このとき、UP/DOWNカウンタとして機能する。セレクタ1424は、零判定器1423の判定結果に基づき、CORRECTが0以外のとき、加算器1422の出力を選択する。これにより、PPMの値を補正する。
<Configuration Example of Second Stage UP / DOWN Counter 142 of Integrator 13>
FIG. 11 is a diagram illustrating a configuration example of the second-stage UP / DOWN counter 142. Referring to FIG. 11, the UP / DOWN counter 142 includes an adder 1421 for adding UPDOWN7 output from the UP / DOWN counter 141 and the output PPM, an adder 1422 for adding CORRECT and output PPM, and CORRECT is 0. And a flip-flop 1425 for outputting a value sampled by an input clock signal as a PPM as a zero decision unit 1423, a selector 1424, and a selector 1424. The selector 1424 selects the output of the adder 1421 when CORRECT is 0 based on the determination result of the zero determiner 1423. At this time, it functions as an UP / DOWN counter. The selector 1424 selects the output of the adder 1422 when CORRECT is other than 0 based on the determination result of the zero determiner 1423. Thereby, the value of PPM is corrected.

<パターン発生器15の構成例>
図12は、図1のパターン発生器15の構成例を示す図である。図12を参照すると、パターン発生器15は、積分器14の出力PPMを入力する加算器151と、加算器151の出力をNで除算し、商を出力信号UPDOWN3として出力する除算器152と、除算器152から余りを受けクロックに応答してサンプルするフリップフロップ153を備え、フリップフロップ(FF)153の出力端子(Q)の出力信号(余り)が加算器151に帰還入力され、積分器14の出力PPMと加算される。
<Configuration Example of Pattern Generator 15>
FIG. 12 is a diagram illustrating a configuration example of the pattern generator 15 of FIG. Referring to FIG. 12, the pattern generator 15 includes an adder 151 that receives the output PPM of the integrator 14, a divider 152 that divides the output of the adder 151 by N, and outputs a quotient as an output signal UPDOWN3. A flip-flop 153 that receives the remainder from the divider 152 and samples it in response to the clock is provided. The output signal (residue) of the output terminal (Q) of the flip-flop (FF) 153 is fed back to the adder 151, and the integrator 14 Is added to the output PPM.

一例としてN=64の動作を説明する。   As an example, the operation of N = 64 will be described.

PPM=1の場合、FF153の出力は0→1→・・・→63と1つづつ増加し、次のクロックで、FF153の出力(余り)とPPMの加算結果は64となるので、除算器152はUPDOWN3=1を出力し、FF153の値は0となる。したがって、64クロックに1回の確率でUPDOWN3=+1を出力する。   When PPM = 1, the output of the FF 153 increases one by one from 0 → 1 →... → 63, and the addition result of the output (remainder) of the FF 153 and the PPM becomes 64 at the next clock. 152 outputs UPDOWN3 = 1, and the value of FF153 becomes zero. Therefore, UPDOWN3 = + 1 is output with a probability of once every 64 clocks.

PPM=2の場合、FF153の出力は0→2→4→・・・→62と2つづつ増加し、次のクロックで、FF153の出力(余り)とPPMの加算結果は64となるので、除算器152はUPDOWN3=1を出力し、FF153の値は0となる。したがって、64クロックに2回の確率でUPDOWN3=+1を出力する。   When PPM = 2, the output of the FF 153 increases by 2 from 0 → 2 → 4 →... → 62, and the addition result of the output (remainder) of the FF 153 and the PPM becomes 64 at the next clock. The divider 152 outputs UPDOWN3 = 1, and the value of the FF 153 becomes zero. Therefore, UPDOWN3 = + 1 is output with a probability of twice in 64 clocks.

PPM=−1の場合、FF153の出力は0→−1→−2→・・・→−63と1つづつ減少し、次のクロックで、FF153の出力(余り)とPPMの加算結果は−64となるので、除算器152はUPDOWN3=ー1を出力し、FF153の値は0となる。したがって、64クロックに1回の確率でUPDOWN3=−1を出力する。   When PPM = −1, the output of the FF 153 decreases by 1 from 0 → −1 → −2 →... → −63, and at the next clock, the output of the FF 153 (remainder) and the addition result of the PPM is − Therefore, the divider 152 outputs UPDOWN3 = −1, and the value of the FF 153 becomes 0. Therefore, UPDOWN3 = −1 is output at a probability of once every 64 clocks.

以上のように、一般に、0<PPM<Nの場合、PPM/Nの確率でUPDOWN3=+1を出力し、0>PPM>−Nの場合PPM/Nの確率でUPDOWN3=−1を出力する。   As described above, generally, when 0 <PPM <N, UPDOWN3 = + 1 is output with the probability of PPM / N, and when 0> PPM> −N, UPDOWN3 = −1 is output with the probability of PPM / N.

PPMの範囲は、−N<PPM<Nに限定されることはない。PPM>=Nの場合、UPDOWN3は、PPM div N又は PPM div N+1となる。PPM div N+1を出力する確率は
(PPM mod N)/N
で与えられる。ただし、PPM div Nと、PPM mod Nは、整数の除算(PPM÷N)の商と余りである。PPM<=−Nの場合も同様である。
The range of PPM is not limited to -N <PPM <N. When PPM> = N, UPDOWN3 becomes PPM div N or PPM div N + 1. The probability of outputting PPM div N + 1 is (PPM mod N) / N
Given in. However, PPM div N and PPM mod N are the quotient and remainder of integer division (PPM / N). The same applies to PPM <= − N.

パターン発生器15において、UPDOWN3は、PPMに比例する。   In the pattern generator 15, UPDOWN3 is proportional to PPM.

<混合器16の構成例>
図1の混合器16は、図13に示すように、パターン発生器15の出力信号UPDOWN3と積分器12の出力信号UPDOWN2を加算し、加算結果を出力信号UPDOWN4を出力する加算器161から構成される。
<Configuration Example of Mixer 16>
As shown in FIG. 13, the mixer 16 in FIG. 1 is composed of an adder 161 that adds the output signal UPDOWN3 of the pattern generator 15 and the output signal UPDOWN2 of the integrator 12, and outputs the addition result to the output signal UPDOWN4. The

<位相補間器17>
位相補間器17は、クロックを入力し抽出クロック(多相クロック)を出力するインターポレータを備え、図14に示すように、混合器16からUPDOWN4=+1が入力された場合、抽出クロック信号の位相を1Step進め、UPDOWN4=−1が入力された場合、位相を1ステップ遅らせる。UPDOWN4=+2が入力された場合、位相を2ステップ進める。位相補間器17は、入力クロックとして4相クロック信号(0度、90度、180度、270度)を入力し、UPDOWN4を制御信号として受け、位相を補間した抽出クロック信号CLK0、90、180、270を出力する。図14では抽出クロックとして4相クロック信号の1つのクロック(例えばCLK0)が示されている。CLK90、180、270も同様にして位相が制御される。入力クロックから位相を調整した多相クロック(4相クロック)を生成する位相補間器17は、例えば特許文献2(特開2001−273048号公報)の図2、図4等に開示された構成が用いられる。
<Phase interpolator 17>
The phase interpolator 17 includes an interpolator that inputs a clock and outputs an extracted clock (multiphase clock). As shown in FIG. 14, when UPDOWN4 = + 1 is input from the mixer 16, the phase interpolator 17 When the phase is advanced by 1 Step and UPDOWN4 = −1 is input, the phase is delayed by one step. When UPDOWN4 = + 2 is input, the phase is advanced by two steps. The phase interpolator 17 receives a four-phase clock signal (0 degrees, 90 degrees, 180 degrees, 270 degrees) as an input clock, receives UPDOWN4 as a control signal, and extracts extracted clock signals CLK0, 90, 180, whose phases are interpolated. 270 is output. In FIG. 14, one clock (for example, CLK0) of the four-phase clock signal is shown as the extracted clock. The phases of CLK 90, 180, and 270 are similarly controlled. A phase interpolator 17 that generates a multi-phase clock (four-phase clock) whose phase is adjusted from an input clock has the configuration disclosed in, for example, FIGS. 2 and 4 of Patent Document 2 (Japanese Patent Laid-Open No. 2001-273048). Used.

<積分器13の出力信号PPM(周波数偏差)>
周波数追従ループ内の積分器13の出力信号PPMは、CDRが検出している周波数偏差に相当する。その理由を以下説明する。
<Output Signal PPM (Frequency Deviation) of Integrator 13>
The output signal PPM of the integrator 13 in the frequency tracking loop corresponds to the frequency deviation detected by the CDR. The reason will be described below.

一例として、以下の条件を考える。
<条件1>
・ データレート:5.0[Gbps]
・ 位相補間器17の入力クロック:2.5[GHz]
・ 位相検出器12の出力信号周波数(=積分器13、14、パターン発生器15、混合器16の動作周波数):1.25 [GHz]
・ 位相補間器17の分解能 :1Stepは受信データ1UIの1/32に相当
・ パターン発生器15(図12)のN=64。
As an example, consider the following conditions.
<Condition 1>
・ Data rate: 5.0 [Gbps]
・ Input clock of phase interpolator 17: 2.5 [GHz]
The output signal frequency of the phase detector 12 (= operating frequencies of the integrators 13 and 14, the pattern generator 15, and the mixer 16): 1.25 [GHz]
-Resolution of phase interpolator 17: 1 Step corresponds to 1/32 of 1 UI of received data-N = 64 of pattern generator 15 (FIG. 12).

この条件で、PPM=1の場合、パターン発生器15の出力UPDOWN3は、1.25GHz(データレートの1/4に相当する)のクロック64周期に1回の確率で+1を出力する。UPDOWN3=+1により、クロック信号の位相は(1/32)UIシフトする。従って、PPM=1あたり、(1/4)×(1/64)×(1/32)×1000000 =122.07 [ppm]の周波数偏差に相当するUPDOWN3を発生していることになる。   Under this condition, when PPM = 1, the output UPDOWN3 of the pattern generator 15 outputs +1 with a probability of once in 64 clock cycles of 1.25 GHz (corresponding to 1/4 of the data rate). Due to UPDOWN3 = + 1, the phase of the clock signal is shifted by (1/32) UI. Therefore, UPDOWN3 corresponding to a frequency deviation of (1/4) × (1/64) × (1/32) × 1000000 = 12.207 [ppm] is generated per PPM = 1.

PPM=2の場合、UPDOWN3の頻度が2倍になるので、122.07×2=244.14ppmとなる。   In the case of PPM = 2, since the frequency of UPDOWN3 is doubled, 122.07 × 2 = 244.14 ppm.

以上のように、積分器13の出力PPMは、クロックとデータに周波数偏差(Frequency Deviation)(より正確には、クロックを基準(0ppm)としたときのデータ信号の周波数偏差)に相当している。   As described above, the output PPM of the integrator 13 corresponds to a frequency deviation between the clock and data (more precisely, the frequency deviation of the data signal when the clock is used as a reference (0 ppm)). .

<位相追従ループの追従能力>
位相追従ループの追従能力について以下に説明しておく。条件は、上の周波数追従ループの説明に示した条件1のほかに、位相追従ループ内の積分器14のカウント数を8とする。
<Following ability of phase tracking loop>
The following capability of the phase tracking loop will be described below. The condition is that the count number of the integrator 14 in the phase tracking loop is 8 in addition to the condition 1 shown in the description of the frequency tracking loop above.

UP1がDOWN1よりも8個多くなると、積分器14の出力UPDOWN2=+1、DOWN1がUP1より8個多くなると、UPDOWN2=−1となる。   When UP1 is 8 more than DOWN1, the output UPDOWN2 of the integrator 14 is +1, and when DOWN1 is 8 more than UP1, UPDOWN2 is -1.

位相検出器12から、常に、UP1=1、DOWN1=0が入力された場合、1.25GHz(データレートの1/4に相当する)のクロック8周期に1回の確率で、UPDOWN2=+1を出力する。   When UP1 = 1 and DOWN1 = 0 are always input from the phase detector 12, UPDOWN2 = + 1 is set at a probability of once in 8 clock cycles of 1.25 GHz (corresponding to 1/4 of the data rate). Output.

UPDOWN2=+1により、クロック位相は、1/32UIシフトする。従って、
(1/4)×(1/8)×(1/32)×1000000=976.56[ppm]
が理論上の限界である。マイナス側も同様である。
With UPDOWN2 = + 1, the clock phase is shifted by 1/32 UI. Therefore,
(1/4) × (1/8) × (1/32) × 1000000 = 976.56 [ppm]
Is the theoretical limit. The same applies to the minus side.

<連続回数計測器18の構成例>
図15は、連続回数計測器18の構成を示す図である。図15(A)を参照すると、位相検出器12からのUP/DOWN1を入力する論理回路181と、位相検出器12からのERRが0のとき、論理回路181の出力を選択出力し、ERRが1のとき、0を選択出力するセレクタ182と、セレクタ182の出力をサンプルするフリップフロップ(エッジトリガー型のレジスタ)183と、位相検出器12からのERRが0のとき、0を選択出力し、ERRが1のとき、フリップフロップ183の出力を選択出力するセレクタ184とを備え、フリップフロップ183の出力CNTN1は論理回路181に入力されている。第2のセレクタ184の出力を入力する加算器185と、加算器185の出力と0を選択するセレクタ186と、セレクタ186の出力をクロック信号の立ち上がりエッジでサンプルするフリップフロップ(エッジトリガー型のレジスタ)187と、フリップフロップ187の出力を入力し、CNTNUP、CNTNDOWNを出力する比較回路188と、比較回路188の出力CNTNUP、CNTNDOWNを入力する論理和(OR)回路189とを備えている。論理和(OR)回路189の出力はセレクタ186に帰還入力され、フリップフロップ187の出力は、加算器185に入力される。
<Configuration Example of Continuous Counting Instrument 18>
FIG. 15 is a diagram illustrating a configuration of the continuous frequency measuring device 18. Referring to FIG. 15A, when the ERR from the phase detector 12 and the logic circuit 181 that inputs UP / DOWN1 from the phase detector 12 is 0, the output of the logic circuit 181 is selected and output. When the ERR from the selector 182 that selects and outputs 0, the flip-flop (edge trigger type register) 183 that samples the output of the selector 182, and the ERR from the phase detector 12 is 0, And a selector 184 that selectively outputs the output of the flip-flop 183 when the ERR is 1, and the output CNTN1 of the flip-flop 183 is input to the logic circuit 181. An adder 185 that inputs the output of the second selector 184, a selector 186 that selects the output of the adder 185 and 0, and a flip-flop (edge trigger type register) that samples the output of the selector 186 at the rising edge of the clock signal ) 187, a comparison circuit 188 that inputs the output of the flip-flop 187 and outputs CNTNUP and CNTNDOWN, and an OR circuit 189 that inputs the outputs CNTNUP and CNTNDOWN of the comparison circuit 188. The output of the logical sum (OR) circuit 189 is fed back to the selector 186, and the output of the flip-flop 187 is fed to the adder 185.

図15(B)は、論理回路181の動作を説明する図である。   FIG. 15B illustrates the operation of the logic circuit 181.

(a)現在の計数値CNTN1>=1、且つ、UP1/DOWN1が−1、すなわち、位相検出器12からDOWN1が出力されたとき、論理回路181の出力は−1となる。   (A) When the current count value CNTN1> = 1 and UP1 / DOWN1 is -1, that is, when DOWN1 is output from the phase detector 12, the output of the logic circuit 181 is -1.

例えばCNTN1が+2のとき、位相検出器12からDOWN1(=−1)が出力されたとき、論理回路181の出力は−1となり、クロック信号に同期してフリップフロップ183の出力CNTN1は+2から−1となる。   For example, when CNTN1 is +2, when DOWN1 (= -1) is output from the phase detector 12, the output of the logic circuit 181 becomes -1, and the output CNTN1 of the flip-flop 183 is synchronized with the clock signal from +2 to- 1

(b)現在の計数値CNTN1=<−1、且つ、UP1/DOWN1が+1、すなわち、位相検出器12からUP1が出力されたとき、論理回路181の出力は+1となる。   (B) When the current count value CNTN1 = <− 1 and UP1 / DOWN1 is +1, that is, when UP1 is output from the phase detector 12, the output of the logic circuit 181 becomes +1.

例えばCNTN1が−2のとき、位相検出器12からUP(=+1)が出力されたとき、論理回路181の出力は+1となり、クロック信号に同期してフリップフロップ183の出力CNTN1は−2から+1となる。   For example, when CNTN1 is −2, when UP (= + 1) is output from the phase detector 12, the output of the logic circuit 181 becomes +1, and the output CNTN1 of the flip-flop 183 is synchronized with the clock signal from −2 to +1. It becomes.

(c)その他の場合((a)、(b)以外の場合)、論理回路181の出力は、現在の計数値CNTN1に、UP1/DOWN1を加算した値となる。   (C) In other cases (other than (a) and (b)), the output of the logic circuit 181 is a value obtained by adding UP1 / DOWN1 to the current count value CNTN1.

例えばCNTN1が−1のとき、位相検出器12からDOWN1(=−1)が出力されたとき、論理回路181の出力は−2となり、クロック信号に同期してフリップフロップ183の出力CNTN1は−1から−2となる。すなわち、位相検出器12からDOWN1(=−1)が出力されると、CNTN1は1つデクリメントされる。また、例えばCNTN1が+1のとき、位相検出器12からUP1(=+1)が出力されたとき、論理回路181の出力は+1+1=+2となり、クロック信号に同期してフリップフロップ183の出力CNTN1は+1から+2となる。すなわち、位相検出器12からUP1(=+1)が出力されると、CNTN1は1つインクリメントされる。   For example, when CNTN1 is −1 and DOWN1 (= −1) is output from the phase detector 12, the output of the logic circuit 181 is −2, and the output CNTN1 of the flip-flop 183 is −1 in synchronization with the clock signal. To -2. That is, when DOWN1 (= −1) is output from the phase detector 12, CNTN1 is decremented by one. For example, when CNTN1 is +1 and UP1 (= + 1) is output from the phase detector 12, the output of the logic circuit 181 is + 1 + 1 = + 2, and the output CNTN1 of the flip-flop 183 is +1 in synchronization with the clock signal. To +2. That is, when UP1 (= + 1) is output from the phase detector 12, CNTN1 is incremented by one.

図15(A)の左側の回路は、常に、UP1/DOWN1の連続数をカウントしておく。連続回数の計数値CNTN1(フリップフロップ183の出力)と、UP1/DOWN1が異符号の場合、CNTN1に、UP1/DOWN1をセットし、それ以外の場合、CNTN1+UP1/DOWN1とする。ERR=1が入力された場合、セレクタ184が、計数値CNTN1を選択して、右側の回路ブロックに伝達出力する。またセレクタ182で0を選択してフリップフロップ183に供給し、フリップフロップ183はクロックに同期して計数値CNTN1を0にリセットする。CNTN1により、ERR=1が入力される直前に、UP1、DOWN1が何回連続しているかが判る。すなわち、CNTN1の値は、その値が1以上の正値の場合、UP1が1回以上連続している連続回数の値を表し、CNTN1の値が−1以下の負値の場合、DOWN1が1回以上連続している連続回数の値を表している。   The circuit on the left side of FIG. 15A always counts the continuous number of UP1 / DOWN1. When the count value CNTN1 (output of the flip-flop 183) of the continuous number and UP1 / DOWN1 are different signs, UP1 / DOWN1 is set in CNTN1, and otherwise CNTN1 + UP1 / DOWN1 is set. When ERR = 1 is input, the selector 184 selects the count value CNTN1 and transmits it to the right circuit block. The selector 182 selects 0 and supplies it to the flip-flop 183. The flip-flop 183 resets the count value CNTN1 to 0 in synchronization with the clock. CNTN1 determines how many times UP1 and DOWN1 are continuous immediately before ERR = 1 is input. That is, the value of CNTN1 represents the value of the continuous number of times when UP1 is continued once or more when the value is a positive value of 1 or more, and DOWN1 is 1 when the value of CNTN1 is a negative value of -1 or less. It represents the value of the number of consecutive times that have been repeated more than once.

図15(A)の右側の回路ブロック(加算器185、セレクタ186、フリップフロップ187、比較回路188、OR回路189)は、左側の回路ブロック(論理回路181、セレクタ182、フリップフロップ183、セレクタ184)のセレクタ184を介してERR信号が1のときに入力される値を、現在の計数値CNTN2と加算器185で加算する。加算器185の加算結果は、セレクタ186を介してフリップフロップ187のデータ端子に入力され、フリップフロップ187は同期クロック(例えばCLK0)によってCNTN2に前記加算結果を出力する。CNTN2は比較回路188に入力され、比較回路188は、CNTN2が所定回数以上(M以上)の場合(すなわち、UP1がM回以上連続して出力される場合)、連続UP検出信号CNTNUPを1(High)として出力し、CNTN2が−M以下の場合(すなわち、DOWN1がM回以上連続して出力される場合)、連続DOWN検出信号CNTNDOWNを1(High)として出力する。連続UP検出信号CNTNUP又は連続DOWN検出信号CNTNDOWNの一方が1のときOR回路189の出力は1となり、セレクタ186は0を選択出力し、フリップフロップ187のデータ端子に入力され、フリップフロップ187は同期クロック(例えばCLK0)によってCNTN2を0(ゼロ)にリセットする。この結果、比較回路188は、連続UP検出信号CNTNUPと連続DOWN検出信号CNTNDOWNはともに0とし、OR回路189の出力は0となり、セレクタ186は加算器185の出力を選択する。すなわち、これ以降、0にリセットされた計数値(連続回数の累算値)CNTN2と、セレクタ184を介して伝達された連続回数とが加算器185で加算され累算されていくことになる。以上で、UP/DOWNの連続回数を計数する。図15(A)の右側の回路ブロック(加算器185、セレクタ186、フリップフロップ187、比較回路188、OR回路189)は、比較回路188でCNTN2の値がM以上又は−M以下となるまで、セレクタ184を介して伝達された連続回数をCNTN2に累算していくことになる。   The circuit block on the right side of FIG. 15A (adder 185, selector 186, flip-flop 187, comparison circuit 188, OR circuit 189) is the same as the circuit block on the left side (logic circuit 181, selector 182, flip-flop 183, selector 184). The value input when the ERR signal is 1 through the selector 184 is added by the adder 185 to the current count value CNTN2. The addition result of the adder 185 is input to the data terminal of the flip-flop 187 via the selector 186, and the flip-flop 187 outputs the addition result to CNTN2 by a synchronous clock (for example, CLK0). CNTN2 is input to the comparison circuit 188. The comparison circuit 188 sets the continuous UP detection signal CNTNUP to 1 (when UPTN is continuously output M times or more) (ie, when UP1 is continuously output M times or more). When CNTN2 is −M or less (that is, when DOWN1 is continuously output M times or more), the continuous DOWN detection signal CNTNDOWN is output as 1 (High). When one of the continuous UP detection signal CNTNUP or the continuous DOWN detection signal CNTNDOWN is 1, the output of the OR circuit 189 becomes 1, the selector 186 selects and outputs 0, and is input to the data terminal of the flip-flop 187, and the flip-flop 187 is synchronized. CNTN2 is reset to 0 (zero) by a clock (for example, CLK0). As a result, the comparison circuit 188 sets both the continuous UP detection signal CNTNUP and the continuous DOWN detection signal CNTNDOWN to 0, the output of the OR circuit 189 becomes 0, and the selector 186 selects the output of the adder 185. That is, thereafter, the count value reset to 0 (accumulated value of the continuous count) CNTN2 and the continuous count transmitted via the selector 184 are added and accumulated by the adder 185. The number of continuous UP / DOWN is counted as described above. The circuit block on the right side of FIG. 15A (the adder 185, the selector 186, the flip-flop 187, the comparison circuit 188, and the OR circuit 189) until the CNTN2 value becomes M or more or −M or less in the comparison circuit 188. The number of consecutive times transmitted through the selector 184 is accumulated in CNTN2.

<連続回数計測器18の動作例>
図16を参照すると、連続回数計測器18の動作の一例が示されている。なお、図16では、図15(A)の比較回路188のMを「8」とした場合のUP1/DOWN1、ERR、CNTN1、CNTN2、CNTNUP、CNTNDOWNが示されている。UP1/DOWN1の+1はUP1、−1はDOWN1が出力されたことに対応する。
<Operation Example of Continuous Counting Instrument 18>
Referring to FIG. 16, an example of the operation of the continuous number measuring device 18 is shown. Note that FIG. 16 shows UP1 / DOWN1, ERR, CNTN1, CNTN2, CNTNUP, and CNTNDOWN when M of the comparison circuit 188 in FIG. 15A is “8”. +1 of UP1 / DOWN1 corresponds to UP1 and -1 corresponds to output of DOWN1.

UP1/DOWN1の−1(位相検出器12からDOWN1が出力される)が4サイクルつづき、5サイクル目で、UP1=DOWN1=0、ERR=1となる。この場合、CNTN1は、0、−1、−2、−3、−4となり、ERR=1のとき、セレクタ184でCNTN1(=−4:DOWN1の連続回数=4)が選択され、加算器185に入力される。加算器185はゼロにリセットされているCNTN2とセレクタ184を介して入力されたCNTN1(=−4)とを加算し加算結果(=−4)をセレクタ186を介してフリップフロップ187のデータ端子に入力する。   UP1 / DOWN1 minus 1 (DOWN1 is output from the phase detector 12) continues for 4 cycles, and in the fifth cycle, UP1 = DOWN1 = 0 and ERR = 1. In this case, CNTN1 is 0, -1, -2, -3, -4. When ERR = 1, CNTN1 (= -4: DOWN1 continuous count = 4) is selected by the selector 184, and the adder 185 Is input. The adder 185 adds CNTN 2 reset to zero and CNTN 1 (= −4) input via the selector 184, and adds the addition result (= −4) to the data terminal of the flip-flop 187 via the selector 186. input.

次のサイクルでフリップフロップ187によりCNTN2は−4にセットされる。   In the next cycle, the flip-flop 187 sets CNTN2 to -4.

次に、UP1/DOWN1は−1(DOWN1)が2クロックサイクルつづき、次に、+1(UP1)が2クロックサイクル連続して入力される。この場合、CNTN1=−2の状態で、UP1が入力されると、論理回路181は前述したように、+1を出力する。フリップフロップ183により次のサイクルでCNTN1は−2から+1に変化し、次にUP1が入力されると、CNTN1は次のサイクルで+1+1=+2に更新される。このとき、位相検出器12からERR=1が出力されている。セレクタ184でCNTN1(=+2)が選択され、加算器185に入力される。加算器185は、現在の計数値CNTN2の値(=−4)と、前段回路からセレクタ184を介して伝達されたCNTN1の値(=+2)を加算し、加算結果(=−2)がセレクタ186を介してフリップフロップ187のデータ端子に入力され、フリップフロップ187は次のサイクルでCNTN2を−2に更新する。   Next, as for UP1 / DOWN1, -1 (DOWN1) is input for two clock cycles, and then +1 (UP1) is input continuously for two clock cycles. In this case, when UP1 is input in the state of CNTN1 = −2, the logic circuit 181 outputs +1 as described above. When the flip-flop 183 changes CNTN1 from −2 to +1 in the next cycle and UP1 is input next, CNTN1 is updated to + 1 + 1 = + 2 in the next cycle. At this time, ERR = 1 is output from the phase detector 12. The selector 184 selects CNTN 1 (= + 2) and inputs it to the adder 185. The adder 185 adds the current count value CNTN2 value (= −4) and the CNTN1 value (= + 2) transmitted from the preceding circuit via the selector 184, and the addition result (= −2) is the selector. The data is input to the data terminal of the flip-flop 187 via 186, and the flip-flop 187 updates CNTN2 to −2 in the next cycle.

つづいて、UP1/DOWN1は+1(UP1)が5クロックサイクルつづき、ERR=1が出力される。この場合、CNTN1は、0から+1〜+5と変化し、ERR=1のとき、セレクタ184でCNTN1(=+5)が選択されて加算器185に入力される。加算器185はCNTN2の現在値(=−2)とCNTN1の値(=+5)を加算し、加算結果(=+3)がセレクタ186を介してフリップフロップ187のデータ端子に入力され、フリップフロップ187は次のサイクルでCNTN2を+3に更新する。   Subsequently, UP1 / DOWN1 is +1 (UP1) followed by 5 clock cycles, and ERR = 1 is output. In this case, CNTN1 changes from 0 to +1 to +5. When ERR = 1, CNTN1 (= + 5) is selected by the selector 184 and input to the adder 185. The adder 185 adds the current value of CNTN2 (= −2) and the value of CNTN1 (= + 5), and the addition result (= + 3) is input to the data terminal of the flip-flop 187 via the selector 186. Updates CNTN2 to +3 in the next cycle.

さらに、UP1/DOWN1は+1(UP1)が5クロックサイクルつづき、ERR=1が出力される。この場合、CNTN1は0から+1〜+5と変化し、ERR=1のとき、セレクタ184でCNTN1(=+5)が選択されて加算器185に入力される。加算器185はCNTN2の現在値(=+3)とCNTN1の値(+5)を加算し、加算結果(=+8)がセレクタ186を介してフリップフロップ187のデータ端子に入力され、フリップフロップ187は次のサイクルでCNTN2を+8に更新する。CNTN2を入力し、CNTN2>=+8であるか、CNTN2<=−8であるかを判定する比較回路188は、CNTN2の値が8以上であることを検出し、連続UP検出信号CNTNUPに1(High)を出力する。CNTNUP=Highを受けて、OR回路189の出力は1となり、セレクタ186は0を選択し、0がフリップフロップ187のデータ端子に入力され、次のサイクルで、CNTN2は0にセットされる。同様に、CNTN2が−8以下となった場合、CNTNDOWNがHighとなり、セレクタ186は0を選択し、次のサイクルでCNTN2は0にセットされる。   Further, UP1 / DOWN1 outputs ERR = 1 after +1 (UP1) continues for 5 clock cycles. In this case, CNTN1 changes from 0 to +1 to +5. When ERR = 1, CNTN1 (= + 5) is selected by the selector 184 and input to the adder 185. The adder 185 adds the current value (= + 3) of CNTN2 and the value (+5) of CNTN1, and the addition result (= + 8) is input to the data terminal of the flip-flop 187 via the selector 186. In this cycle, CNTN2 is updated to +8. The comparison circuit 188 that inputs CNTN2 and determines whether CNTN2> = + 8 or CNTN2 <= − 8 detects that the value of CNTN2 is 8 or more, and sets the continuous UP detection signal CNTNUP to 1 ( High). In response to CNTNUP = High, the output of the OR circuit 189 becomes 1, the selector 186 selects 0, 0 is input to the data terminal of the flip-flop 187, and CNTN2 is set to 0 in the next cycle. Similarly, when CNTN2 becomes -8 or less, CNTNDOWN becomes High, selector 186 selects 0, and CNTN2 is set to 0 in the next cycle.

<補正量決定器19の処理例1>
補正量決定器19は、問題となる状態から復帰させるには、CDRが検出している周波数偏差PPMを補正する。一番単純な方法は、以下のフローチャート図17にしたがって、PPMの補正量CORRECTを決定する。
<Processing example 1 of the correction amount determiner 19>
The correction amount determiner 19 corrects the frequency deviation PPM detected by the CDR in order to recover from the problem state. The simplest method is to determine the PPM correction amount CORRECT according to the flowchart shown in FIG.

ERRの直前にUPが連続していた場合(CNTNUP=1)(ステップS101のYes)、CORRECT=p(p>0)とする(ステップS102)。   When UP is continuous immediately before ERR (CNTNUP = 1) (Yes in step S101), CORRECT = p (p> 0) is set (step S102).

ERRの直前にDOWNが連続していた場合(CNTDOWN=1)(ステップS103のYes)、CORRECT=−pとする(ステップS104)。その他の場合(ステップS103のNo)、CORRECT=0とする(ステップS105)。   When DOWN continues immediately before ERR (CNTDOWN = 1) (Yes in step S103), CORRECT = −p (step S104). In other cases (No in step S103), CORRECT = 0 is set (step S105).

ここで、pは正の整数であり、位相追従ループの追従能力程度の値に設定するのがよい。ほかにも、いくつかの変形が考えられる。以下に2つ示す。   Here, p is a positive integer, and is preferably set to a value about the tracking capability of the phase tracking loop. There are several other variations. Two are shown below.

<補正量決定器19の処理例2>
図18に示す例は、PPMを更新した結果、PPM値の上限PPM(Max)と、下限PPM(Min)の間に入る場合は、図17と同じであるが、上限(Max)と下限(Min)の範囲に入らない場合には、CORRECTの符号を極性に反転する。
<Processing example 2 of the correction amount determiner 19>
The example shown in FIG. 18 is the same as FIG. 17 in the case where the PPM value is between the upper limit PPM (Max) and the lower limit PPM (Min) as a result of updating the PPM, but the upper limit (Max) and the lower limit ( If it does not fall within the range of Min), the sign of CORRECT is inverted to the polarity.

ERRの直前にUPが連続していた場合(CNTNUP=1)(ステップS201のYes)、PPM+p<PPM(Max)の場合(ステップS202のYes)、CORRECT=pとし(ステップS203)、PPM+p>=PPM(Max)の場合(ステップS202のNo)、CORRECT=−pとする(ステップS206)。   If UP is continuous immediately before ERR (CNTNUP = 1) (Yes in step S201), if PPM + p <PPM (Max) (Yes in step S202), CORRECT = p (step S203), PPM + p> = In the case of PPM (Max) (No in step S202), CORRECT = −p (step S206).

ERRの直前にDOWNが連続していた場合(CNTNDOWN=1)(ステップS204のYes)、PPM−p>PPM(Min)の場合(ステップS205のYes)、CORRECT=−pとし(ステップS206)、PPM−p<=PPM(Min)の場合(ステップS205のNo)、CORRECT=pとする(ステップS203)。その他の場合(ステップS204のNo)、CORRECT=0とする(ステップS207)。   If DOWN continues immediately before ERR (CNTNDOWN = 1) (Yes in step S204), if PPM-p> PPM (Min) (Yes in step S205), CORRECT = −p (step S206), When PPM-p <= PPM (Min) (No in step S205), CORRECT = p is set (step S203). In other cases (No in step S204), CORRECT = 0 is set (step S207).

<補正量決定器19の処理例3>
さらに補正量決定器19の別の例を図19に示す。図19に示す例は、PPMを何回更新してもCDRが引き込まない場合に、補正量CORRECTを大きくするものである。
<Processing example 3 of the correction amount determiner 19>
Further, another example of the correction amount determiner 19 is shown in FIG. The example shown in FIG. 19 increases the correction amount CORRECT when the CDR is not pulled in no matter how many times the PPM is updated.

PPMの更新回数が8の倍数の場合に限り、CORRECT=+q又は−q、(q>p)と大きくする。PPMの上限と下限のチェックも行なっている。   Only when the number of PPM updates is a multiple of 8, CORRECT = + q or −q, (q> p). The upper and lower limits of PPM are also checked.

図19のステップS301、S303、S304、S309、S311、S312、S318は、図18のS201、S202、S203、S204、S205、S206、S207と同じである。図19では、ステップS301とS303の間に回数が8に達したか否か(NUM=8?)の判定(ステップS302)が挿入され、ステップS304ではNUMを1つインクリメントする。ステップS309とS311の間に回数が8に達したか否か(NUM=8?)の判定(ステップS310)が挿入され、ステップS312ではNUMを1つインクリメントする。   Steps S301, S303, S304, S309, S311, S312, and S318 in FIG. 19 are the same as S201, S202, S203, S204, S205, S206, and S207 in FIG. In FIG. 19, a determination (step S302) of whether or not the number of times has reached 8 (NUM = 8?) Is inserted between steps S301 and S303. In step S304, NUM is incremented by one. A determination (step S310) of whether or not the number of times has reached 8 (NUM = 8?) Is inserted between steps S309 and S311. In step S312, NUM is incremented by one.

ステップS302でNUMが8のとき、PPM+q<PPM(Max)である場合(ステップS305のYes)、CORRECT=q(q>0)、NUM=0とする(ステップS306)。   When NUM is 8 in step S302, if PPM + q <PPM (Max) (Yes in step S305), CORRECT = q (q> 0), and NUM = 0 is set (step S306).

PPM+q<PPM(Max)でない場合(ステップS305のNo)、PPM−q>PPM(Min)の場合(ステップS315のYes)、CORRECT=−q、NUM=0とし(ステップS317)、PPM−q>PPM(Min)でない場合(ステップS315のNo)、CORRECT=0、NUM=0とする(ステップS316)。   If PPM + q <PPM (Max) is not satisfied (No in step S305), if PPM-q> PPM (Min) (Yes in step S315), CORRECT = −q and NUM = 0 are set (step S317), and PPM-q> If not PPM (Min) (No in step S315), CORRECT = 0 and NUM = 0 are set (step S316).

ステップS310でNUMが8のとき、PPM−q>PPM(Min)である場合(ステップS313のYes)、CORRECT=−q、NUM=0とする(ステップS314)。   When NUM is 8 in step S310, and PPM-q> PPM (Min) (Yes in step S313), CORRECT = −q and NUM = 0 are set (step S314).

PPM−q>PPM(Min)でない場合(ステップS313のNo)、PPM+q<PPM(Max)の場合(ステップS307のYes)、CORRECT=q、NUM=0とし(ステップS308)、PPM+q<PPM(Max)でない場合(ステップS307のNo)、CORRECT=0、NUM=0とする(ステップS316)。   If PPM-q> PPM (Min) is not satisfied (No in step S313), if PPM + q <PPM (Max) (Yes in step S307), CORRECT = q and NUM = 0 are set (step S308), and PPM + q <PPM (Max) (NO in step S307), CORRECT = 0 and NUM = 0 are set (step S316).

<本発明の動作原理の一例>
図29を参照して説明した関連技術の問題点に対する本発明による解決手法を説明する。図32は、図29において、本発明による位相検出器12の4状態(UP、ERR発生、DOWN、UPとDOWNの頻度が同程度)を示した図である。データ周波数−クロック周波数の周波数偏差を5000ppmとする。
<Example of operating principle of the present invention>
A solution method according to the present invention for the problem of the related art described with reference to FIG. 29 will be described. FIG. 32 is a diagram showing the four states of the phase detector 12 according to the present invention (UP, ERR occurrence, DOWN, frequency of UP and DOWN are similar) in FIG. The frequency deviation between the data frequency and the clock frequency is set to 5000 ppm.

UPからDOWNに切り替わるところに、ERR発生状態が存在する。   The ERR occurrence state exists at the point where the UP is switched to the DOWN.

一方、CDRが引き込んでいる場合、ERRは発生しない(図32では省略)。   On the other hand, when the CDR is drawn, ERR does not occur (omitted in FIG. 32).

ERR発生の有無は、問題が起きていることの検出に利用できる。ERRの直前の状態はUPである。位相検出器12でUP1=1を出力し、位相追従ループでクロック位相を進ませているにも関わらず、ERRが発生したということは、周波数追従ループが周波数偏差を誤って小さく検出し、DOWNを大量に挿入しているか、または、UPを挿入する頻度が少なすぎる、ということである。   The presence or absence of ERR can be used to detect that a problem has occurred. The state immediately before ERR is UP. Even though UP1 = 1 is output by the phase detector 12 and the clock phase is advanced by the phase tracking loop, the occurrence of ERR means that the frequency tracking loop detects the frequency deviation in error and DOWN Is inserted in large quantities, or the frequency of inserting UP is too low.

従って、CDRが検出している周波数偏差を補正して大きくすれば、正しい周波数偏差に近くなることが分かる。   Therefore, it can be seen that if the frequency deviation detected by the CDR is corrected and increased, the frequency deviation approaches the correct frequency deviation.

ERR発生直前のUPとDOWNの発生状況を調べることで、この状態に陥っていることが検出できる。ERR発生直前にUPが頻発している場合、データに対してクロック位相が遅れ過ぎている(データに対してクロック周波数を低く見積もっている)ことに対応しており、クロック周波数を上げるため(UPを頻繁に発生させるため)、PPM値を大きくする。   By examining the occurrence status of UP and DOWN immediately before the occurrence of ERR, it is possible to detect that this state has occurred. If UP occurs frequently just before the occurrence of ERR, this corresponds to the fact that the clock phase is too late for the data (the clock frequency is estimated to be low for the data), and in order to increase the clock frequency (UP To increase the PPM value).

<本発明の動作原理の他の例>
図33は、周波数偏差を誤って大きく見積もっている場合の例を説明する図である。ERRの直前の状態はDOWNである。CDRが検出している周波数偏差を補正して小さくすれば、正しい周波数偏差に近くなることが分かる。すなわち、ERR発生直前にDOWNが頻発している場合、データに対してクロックが図33の左に流れている(位相が進んでいる)。データ周波数からみてクロック周波数を高く見積もり過ぎている。このため、クロック周波数を下げ、DOWNを頻繁に発生させるためにPPMの値を小さくする。
<Another Example of Operation Principle of the Present Invention>
FIG. 33 is a diagram for explaining an example when the frequency deviation is erroneously estimated to be large. The state immediately before ERR is DOWN. It can be seen that if the frequency deviation detected by the CDR is corrected and reduced, the frequency deviation approaches the correct frequency deviation. That is, when DOWN frequently occurs immediately before the occurrence of ERR, the clock for the data flows to the left in FIG. 33 (the phase is advanced). The clock frequency is too high when viewed from the data frequency. For this reason, the value of the PPM is decreased in order to reduce the clock frequency and generate DOWN frequently.

本実施形態においては、位相検出器12でERRの発生を検出し、ERR直前のUP/DOWNの発生状況を調査し、UPが連続している場合には、CDRが検出している周波数偏差PPMを補正してその値を大きくし、DOWNが連続している場合には、周波数編差PPMを補正しその値を小さくする制御を行う。   In the present embodiment, the phase detector 12 detects the occurrence of ERR, investigates the occurrence status of UP / DOWN immediately before the ERR, and if the UP is continuous, the frequency deviation PPM detected by the CDR. When the value is increased and DOWN is continued, control is performed to correct the frequency difference PPM and decrease the value.

<実施形態2>
次に本発明の第2の実施形態について説明する。図20は、本発明の第2の実施形態の構成を示す図である。本実施形態では、位相追従ループ側の積分器14の手前に、強制DOWN生成器20が追加されている。強制DOWN生成器20は、位相検出器12から出力されるUP1/DOWN1、ERRを入力し、ERRが発生していない場合(ERR=0)、UPDOWN5=UP1/DOWN1であるが、ERRが発生した場合(ERR=1)、強制的にUPDOWN5=DOWNとする。
<Embodiment 2>
Next, a second embodiment of the present invention will be described. FIG. 20 is a diagram showing a configuration of the second exemplary embodiment of the present invention. In the present embodiment, a forced DOWN generator 20 is added before the integrator 14 on the phase tracking loop side. The forced DOWN generator 20 receives UP1 / DOWN1 and ERR output from the phase detector 12, and when ERR has not occurred (ERR = 0), UPDOWN5 = UP1 / DOWN1, but ERR has occurred. In the case (ERR = 1), it is forced to set UPDOWN5 = DOWN.

CDRが検出している周波数偏差が正しく、データ入力のデューティ比が崩れている場合、CDRが引き込まない可能性がある。本実施形態では、ERRが発生した場合、強制的にDOWN方向にずらすことで引き込ませる。なお、強制する方向は、UPであってもよい。この場合、強制DOWN生成器20は強制UP生成器となる。   If the frequency deviation detected by the CDR is correct and the duty ratio of the data input is broken, the CDR may not be pulled in. In this embodiment, when ERR occurs, it is pulled in by forcibly shifting in the DOWN direction. The forced direction may be UP. In this case, the forced DOWN generator 20 is a forced UP generator.

<実施形態2の動作例>
図21は、本発明の第2の実施形態を説明するタイミングチャートである。図21(B)に示すように、ジッタ等により、入力データ信号のDUTYが奇数ビット目で狭く、偶数ビット目で広い。ERRは発生するが、クロック位相は変化しないため、この状態で安定する可能性がある。図21(A)を参照すると、データ入力としてa=1、b=0、c=1、d=0、e=1、f=0、g=1、h=0がこの順でクロック周波数の2倍の周波数で入力されるものとする。またa=1の前にz=0(≠a)が入力されているものとする。a、c、e、gの上の右矢印→は、データ位相(エッジ)の遅れを表しており、b、d、f、hの上の左矢印←はデータ位相(エッジ)の進みを表しており、ジッタにより矢印の方向にエッジが若干ずれていることを表している。データa、c、e、gでDUTYが狭く、データb、d、f、hでDUTYは広い。
<Operation Example of Embodiment 2>
FIG. 21 is a timing chart for explaining the second embodiment of the present invention. As shown in FIG. 21B, due to jitter or the like, the DUTY of the input data signal is narrow at odd bits and wide at even bits. Although ERR occurs, the clock phase does not change, so it may stabilize in this state. Referring to FIG. 21A, as data input, a = 1, b = 0, c = 1, d = 0, e = 1, f = 0, g = 1, and h = 0 are clock frequencies in this order. It is assumed that the input is performed at twice the frequency. Further, it is assumed that z = 0 (≠ a) is input before a = 1. The right arrow on a, c, e, and g represents the delay in the data phase (edge), and the left arrow on the b, d, f, and h represents the advance in the data phase (edge). This indicates that the edge is slightly shifted in the direction of the arrow due to jitter. DUTY is narrow for data a, c, e, and g, and DUTY is wide for data b, d, f, and h.

CLK0の立ち上がり(タイミングt1)で、DATA0、90、180、270、360には、直前のサイクルのCLK0、CLK90、CLK180、CLK270の立ち上がりエッジでそれぞれサンプリングされたb、c、d、dと、今回のCLK0の立ち上がり(t1)でサンプリングされたdとがパラレルに出力される。UP00、DOWN00、UP01、DOWN01は、それぞれ、High、High、Low、Lowとなり、図4より、UP1、DOWN1、ERRはLow、Low、Highとなる。   At the rising edge of CLK0 (timing t1), DATA0, 90, 180, 270, and 360 are b, c, d, and d sampled at the rising edges of CLK0, CLK90, CLK180, and CLK270 of the previous cycle, respectively. And d sampled at the rising edge of CLK0 (t1) are output in parallel. UP00, DOWN00, UP01, and DOWN01 are High, High, Low, and Low, respectively. From FIG. 4, UP1, DOWN1, and ERR are Low, Low, and High.

さらに次のクロックサイクルCLK0の立ち上がり(タイミングt2)で、DATA0、90、180、270、360には、直前のサイクルのCLK0、CLK90、CLK180、CLK270の立ち上がりエッジでそれぞれサンプリングされたd、e、f、fと、今回のCLK0の立ち上がり(t2)でサンプリングされたfとがパラレルに出力される。UP00、DOWN00、UP01、DOWN01は、それぞれ、High、High、Low、Lowとなり、UP1、DOWN1、ERRはLow、Low、Highとなる。このERR=1を受け強制DOWN生成器20は強制的にUPDOWN5=DOWNとし積分器14に出力する。CDR回路が出力する抽出データは、CLK0とCLK180でサンプリングしたデータであるが、この例の場合は、b、b、d、d、f、f、となりDUTYの狭いデータa、c、e、が抜けている。しかし、強制的にUPDOWN5=DOWNとしクロック位相を遅らせることで、CDR回路はいずれ引き込み、DUTYの狭いデータを抽出データとして出力することができる。   Furthermore, at the rising edge (timing t2) of the next clock cycle CLK0, DATA0, 90, 180, 270, 360 includes d, e, f sampled at the rising edges of CLK0, CLK90, CLK180, CLK270 of the immediately preceding cycle, respectively. , F and f sampled at the current rising edge of CLK0 (t2) are output in parallel. UP00, DOWN00, UP01, and DOWN01 are High, High, Low, and Low, respectively, and UP1, DOWN1, and ERR are Low, Low, and High, respectively. Upon receiving this ERR = 1, the forced DOWN generator 20 forcibly sets UPDOWN5 = DOWN and outputs it to the integrator 14. The extracted data output by the CDR circuit is data sampled at CLK0 and CLK180. In this example, the data a, c, e with narrow DUTY are b, b, d, d, f, f. It is missing. However, by forcibly setting UPDOWN5 = DOWN and delaying the clock phase, the CDR circuit can eventually pull in and output data with a narrow DUTY as extracted data.

<実施形態3>
次に本発明の第3の実施形態について説明する。図22は、本発明の第3の実施形態の構成を示す図である。本実施形態では、位相検出器12からのERRの発生回数を計測し、所定の回数(例えば8回)、ERRが発生するたびに、積分器13のPPMを乱数値RNDに強制設定するエラー回数計数器21を備えている。エラー回数計数器21は、ERRの回数をカウントするカウンタを備え、ERR発生を所定回数カウントした場合、乱数RNDを出力する。乱数は予めメモリに記憶しておいてもよい。積分器13は、図10、図11を参照して説明した構成とされ、CORRECTのかわりに乱数値RNDが入力される。ERRが頻発する場合、周波数追従ループの積分器13の出力PPMの値を強制的にランダム値に設定する。
<Embodiment 3>
Next, a third embodiment of the present invention will be described. FIG. 22 is a diagram showing the configuration of the third exemplary embodiment of the present invention. In this embodiment, the number of occurrences of ERR from the phase detector 12 is measured, and the number of errors forcibly setting the PPM of the integrator 13 to the random number value RND every time a predetermined number of times (for example, 8 times) occurs. A counter 21 is provided. The error counter 21 includes a counter that counts the number of ERRs, and outputs a random number RND when the occurrence of ERR is counted a predetermined number of times. The random number may be stored in advance in a memory. The integrator 13 has the configuration described with reference to FIGS. 10 and 11, and a random number value RND is input instead of CORRECT. When ERR occurs frequently, the value of the output PPM of the integrator 13 of the frequency tracking loop is forcibly set to a random value.

<実施形態4>
次に本発明の第4の実施形態について説明する。図23は、本発明の第4の実施形態の構成を示す図である。本実施形態では、位相追従ループの積分器14を混合器16の後段に配置している。図1等に示した前記実施形態のように、混合器16の入力UPDOWN2(積分器14の出力)とUPDOWN3(パターン発生器15の出力)を単純に加算すると、図24に示すように、混合器16の出力UPDOWN4に時間軸上粗密が発生する。図24では、UPDOWN4は、疎(疎で示す時間範囲内に1区間相当のパルス幅のパルスが1つ)、密(密で示す時間範囲内に2区間相当のパルス幅のパルスが1つ)、密(疎で示す範囲の期間内に1区間相当のパルス幅のパルスが1区間を置いて2つ)、疎(疎で示す時間範囲内にパルス無し)となる。本実施形態では、第1の実施形態では混合器16の前段にあった積分器14を混合器16の後段に移すことで、混合器16の出力UPDOWN6の疎密を平滑化(平均化)させている。積分器14は、前記第1の実施形態と同様UP/DOWNカウンタで構成される。混合器16は、図13に示した構成とされ、パターン発生器15の出力UPDOWN3と、UPDOWN2の代わりに、位相検出器12の出力UP1/DOWN1との加算結果をUPDOWN6として出力する。
<Embodiment 4>
Next, a fourth embodiment of the present invention will be described. FIG. 23 is a diagram showing the configuration of the fourth exemplary embodiment of the present invention. In the present embodiment, the integrator 14 of the phase tracking loop is arranged after the mixer 16. When the input UPDOWN2 (output of the integrator 14) and the UPDOWN3 (output of the pattern generator 15) of the mixer 16 are simply added as in the embodiment shown in FIG. 1 and the like, the mixing is performed as shown in FIG. The output UPDOWN4 of the device 16 is coarse on the time axis. In FIG. 24, UPDOWN4 is sparse (one pulse having a pulse width corresponding to one section in the time range indicated by sparseness), and dense (one pulse having a pulse width corresponding to two sections in the time range indicated by denseness). Dense (two pulses having a pulse width corresponding to one section within a period of a range indicated by sparse) and sparse (no pulse in a time range indicated by sparse). In this embodiment, the integrator 14 that was in the previous stage of the mixer 16 in the first embodiment is moved to the subsequent stage of the mixer 16 to smooth (average) the density of the output UPDOWN 6 of the mixer 16. Yes. The integrator 14 is composed of an UP / DOWN counter as in the first embodiment. The mixer 16 has the configuration shown in FIG. 13 and outputs the addition result of the output UPDOWN3 of the pattern generator 15 and the output UP1 / DOWN1 of the phase detector 12 instead of the UPDOWN2 as UPDOWN6.

<実施形態5>
次に本発明の第5の実施形態について説明する。図25は、本発明の第5の実施形態の構成を示す図である。本実施形態では、図23の前記第4の実施形態の位相追従ループに、図20の前記第2の実施形態の強制DOWN生成器20を追加したものである。ERR=1を受け強制DOWN生成器20は強制的にUPDOWN5=DOWNとし混合器16に出力する。混合器16は、図13に示した構成とされ、パターン発生器15の出力UPDOWN3と、UPDOWN2の代わりに、UPDOWN5との加算結果をUPDOWN6として出力する。強制DOWN生成器20は、ERR=1を受け強制的にUPDOWN5=UPとし混合器16に出力する構成としてもよい。
<Embodiment 5>
Next, a fifth embodiment of the present invention will be described. FIG. 25 is a diagram showing the configuration of the fifth exemplary embodiment of the present invention. In this embodiment, the forced DOWN generator 20 of the second embodiment of FIG. 20 is added to the phase tracking loop of the fourth embodiment of FIG. Upon receiving ERR = 1, the forced DOWN generator 20 forcibly outputs UPDOWN5 = DOWN to the mixer 16. The mixer 16 has the configuration shown in FIG. 13, and outputs the addition result of UPDOWN5 instead of UPDOWN3 and UPDOWN2 of the pattern generator 15 as UPDOWN6. The forced DOWN generator 20 may be configured to receive ERR = 1 and forcibly output UPDOWN5 = UP to the mixer 16.

<実施形態6>
次に本発明の第6の実施形態について説明する。図26は、本発明の第5の実施形態の構成を示す図である。本実施形態では、図20の前記第5の実施形態における周波数偏差の補正回路(連続回数計測器18、補正量決定器19)を除去したものである。なお、図26において、図25と同様、混合器16の後段に積分器14を配置する構成としてもよい。
<Embodiment 6>
Next, a sixth embodiment of the present invention will be described. FIG. 26 is a diagram showing the configuration of the fifth exemplary embodiment of the present invention. In this embodiment, the frequency deviation correction circuit (continuous frequency measuring device 18 and correction amount determining device 19) in the fifth embodiment of FIG. 20 is removed. In addition, in FIG. 26, it is good also as a structure which arrange | positions the integrator 14 in the back | latter stage of the mixer 16, like FIG.

なお、上記の特許文献の各開示を、本書に引用をもって繰り込むものとする。本発明の全開示(請求の範囲を含む)の枠内において、さらにその基本的技術思想に基づいて、実施形態ないし実施例の変更・調整が可能である。また、本発明の請求の範囲の枠内において種々の開示要素の多様な組み合わせないし選択が可能である。すなわち、本発明は、請求の範囲を含む全開示、技術的思想にしたがって当業者であればなし得るであろう各種変形、修正を含むことは勿論である。   It should be noted that the disclosures of the above patent documents are incorporated herein by reference. Within the scope of the entire disclosure (including claims) of the present invention, the embodiments and examples can be changed and adjusted based on the basic technical concept. Various combinations and selections of various disclosed elements are possible within the scope of the claims of the present invention. That is, the present invention of course includes various variations and modifications that could be made by those skilled in the art according to the entire disclosure including the claims and the technical idea.

11 データサンプリング回路
12 位相検出器
13 積分器
14 積分器
15 パターン発生器
16 混合器
17 位相補間器
18 連続回数計測器
19 補正量決定器
20 強制DOWN生成器
21 エラー回数計測器
22 回路ブロック(補正回路)
101 位相検出器
102、103 積分器
104 パターン発生器
105 混合器
106 位相補間器
111 レシーバ
112〜119、153、1425 フリップフロップ
141、142 UP/DOWNカウンタ
151、161 加算器
152 除算器
181 論理回路
182、186 セレクタ
183、187 フリップフロップ
184 セレクタ
185 加算器
188 比較回路
189 OR回路
1201〜1204 EXOR
1205、1207、1212、1214、1217 インバータ
1206、1208、1209、1210、1213、1215、1219、1220 AND回路
1211、1216、1218 OR回路
1230 論理回路部
1421、1422 加算器
1423 零判定器
1424 セレクタ
DESCRIPTION OF SYMBOLS 11 Data sampling circuit 12 Phase detector 13 Integrator 14 Integrator 15 Pattern generator 16 Mixer 17 Phase interpolator 18 Continuous frequency measurement device 19 Correction amount determination device 20 Forced DOWN generator 21 Error frequency measurement device 22 Circuit block (correction) circuit)
DESCRIPTION OF SYMBOLS 101 Phase detector 102, 103 Integrator 104 Pattern generator 105 Mixer 106 Phase interpolator 111 Receiver 112-119, 153, 1425 Flip-flop 141, 142 UP / DOWN counter 151, 161 Adder 152 Divider 181 Logic circuit 182 186 Selector 183, 187 Flip-flop 184 Selector 185 Adder 188 Comparison circuit 189 OR circuit 1201-1120 EXOR
1205, 1207, 1212, 1214, 1217 Inverter 1206, 1208, 1209, 1210, 1213, 1215, 1219, 1220 AND circuit 1211, 1216, 1218 OR circuit 1230 Logic circuit part 1421, 1422 Adder 1423 Zero determination unit 1424 Selector

Claims (25)

入力データ信号を多相のクロック信号の各々でサンプリングしたデータ信号群の比較結果に基づき、前記クロック信号の位相を進ませるか遅らせる指示情報を含む位相比較結果を出力し、さらに、前記データ信号群の比較結果がエラーに該当するときにエラー信号を出力する位相検出器と、
入力クロック信号と制御信号とを入力し前記制御信号に基づき位相を可変に調整した多相の出力クロック信号を生成し前記多相のクロック信号として出力する位相補間器と、
を備え、
周波数追従ループに、前記位相検出器からの前記位相比較結果を積分する第1の積分器と、前記第1の積分器の積分出力に対応したパターンの値を出力するパターン発生器とを備え、
位相追従ループに、前記位相検出器からの前記位相比較結果を積分する第2の積分器を備え、
前記第2の積分器の積分出力と前記パターン発生器の出力とを合成した値の信号を生成し前記制御信号として前記位相補間器に供給する混合器と、
前記位相検出器からの出力を監視し、前記位相検出器から前記エラー信号が出力されたとき、前記エラー信号が出力されるまでの前記位相比較結果の出力状況、又は、前記エラー信号が出力されるまでの過去のエラー信号の出力状況から、前記周波数追従ループでの周波数偏差の設定が適正か否か判定し、適正でない場合には、前記第1の積分器の積分出力の補正量を導出して前記第1の積分器に設定し、適正な場合には、前記第1の積分器での積分出力の補正は行わない回路ブロックと、
を備えたクロックアンドデータリカバリ回路。
Based on the comparison result of the data signal group obtained by sampling the input data signal with each of the multiphase clock signals, a phase comparison result including instruction information for advancing or delaying the phase of the clock signal is output, and the data signal group A phase detector that outputs an error signal when the comparison result of
A phase interpolator that inputs an input clock signal and a control signal, generates a multi-phase output clock signal that is variably adjusted based on the control signal, and outputs the output clock signal as the multi-phase clock signal;
With
A frequency tracking loop comprising: a first integrator that integrates the phase comparison result from the phase detector; and a pattern generator that outputs a pattern value corresponding to an integration output of the first integrator;
A second integrator for integrating the phase comparison result from the phase detector in a phase tracking loop;
A mixer that generates a signal having a value obtained by combining the integration output of the second integrator and the output of the pattern generator, and supplies the signal to the phase interpolator as the control signal;
The output from the phase detector is monitored, and when the error signal is output from the phase detector, the output status of the phase comparison result until the error signal is output, or the error signal is output. From the past error signal output status until it is determined whether or not the frequency deviation setting in the frequency tracking loop is appropriate. If not, the correction amount of the integral output of the first integrator is derived. And a circuit block that does not correct the integration output in the first integrator, if set to the first integrator.
And clock and data recovery circuit.
前記回路ブロックは、
前記位相検出器から前記エラー信号が出力される直前までに、前記位相検出器から連続して出力された、前記クロック信号の位相を進ませる指示又は位相を遅らせる指示の回数を累積加算する回路を備え、
前記位相検出器から前記エラー信号が出力されたとき、
前記エラー信号が出力される直前までに、前記クロック信号の位相を進ませる指示が、予め定められた所定回以上、前記位相検出器から連続して出力されている場合には、前記第1の積分器の積分出力が現在値よりも大きな値となるように前記補正量を設定し、
前記エラー信号が出力される直前までに、前記クロック信号の位相を遅らせる指示が、予め定められた所定回以上、前記位相検出器から連続して出力されている場合には、前記第1の積分器の積分出力が現在値よりも小さな値となるように前記補正量を設定する、請求項1記載のクロックアンドデータリカバリ回路。
The circuit block is
A circuit that cumulatively adds the number of instructions to advance the phase of the clock signal or to instruct to delay the phase, which is continuously output from the phase detector, immediately before the error signal is output from the phase detector. Prepared,
When the error signal is output from the phase detector,
If an instruction for advancing the phase of the clock signal is output continuously from the phase detector a predetermined number of times or more immediately before the error signal is output, the first signal is output. Set the correction amount so that the integral output of the integrator is larger than the current value,
If an instruction to delay the phase of the clock signal is output continuously from the phase detector a predetermined number of times or more immediately before the error signal is output, the first integration is performed. The clock and data recovery circuit according to claim 1, wherein the correction amount is set so that the integrated output of the counter becomes a value smaller than a current value.
前記回路ブロックは、前記位相検出器から前記エラー信号が出力されたとき、
前記エラー信号が出力される直前までに、前記クロック信号の位相を進ませる指示又は位相を遅らせる指示の連続出力回数が前記予め定められた所定回に満たないときは、
前記周波数追従ループでの周波数偏差の設定は適正と判定し、前記補正量を零とすることで前記第1の積分器での積分出力の補正は行わない、請求項2記載のクロックアンドデータリカバリ回路。
The circuit block, when the error signal is output from the phase detector,
When the number of continuous outputs of the instruction to advance the phase of the clock signal or the instruction to delay the phase is less than the predetermined number of times just before the error signal is output,
3. The clock and data recovery according to claim 2, wherein the setting of the frequency deviation in the frequency tracking loop is determined to be appropriate, and the correction of the integrated output in the first integrator is not performed by setting the correction amount to zero. circuit.
前記位相検出器が、前記データ信号群に対して、相隣る位相のクロック信号でそれぞれサンプリングされたデータ信号対の一致/不一致を判定する論理ゲートを複数備え、
前記複数の論理ゲートでの判定出力の組み合わせに基づき、前記クロック信号の位相を進めさせる指示をなす第1のアップ信号、又は、前記クロック信号の位相を遅らせる指示をなす第1のダウン信号を出力し、前記複数の論理ゲートでの判定出力の組み合わせが予め定められたエラーの条件に該当する場合に、エラー検出を示す前記エラー信号を出力する論理ユニットを備えている、請求項1乃至3のいずれか1項に記載のクロックアンドデータリカバリ回路。
The phase detector includes a plurality of logic gates for determining whether the data signal pair is coincident / mismatched with a clock signal having a phase adjacent to the data signal group;
Based on a combination of determination outputs from the plurality of logic gates, a first up signal for instructing to advance the phase of the clock signal or a first down signal for instructing to delay the phase of the clock signal is output. And a logic unit that outputs the error signal indicating error detection when a combination of determination outputs at the plurality of logic gates corresponds to a predetermined error condition. The clock and data recovery circuit according to any one of claims.
前記回路ブロックは、前記位相検出器から、前記エラー信号が出力されるまでの間に、前記第1のアップ信号又は前記第1のダウン信号が連続して出力された回数を計数し、
前記位相検出器から今回、前記エラー信号が出力されると、今回の前記エラー信号出力時点まで、前記第1のアップ信号又は前記第1のダウン信号について計数した連続回数と、
今回の前記エラー信号の1つ前のエラー信号が出力された時点までに、前記位相検出器から出力された前記第1のアップ信号又は前記第1のダウン信号の過去の連続回数と、
を累積加算し、
前記第1のアップ信号又は前記第1のダウン信号の連続回数を累積加算した値が、前記予め定められた所定回以上に対応する値に達するか超えると、連続アップ検出信号又は連続ダウン検出信号を出力する連続回数計測回路と、
前記連続回数計測回路から、前記連続アップ検出信号又は前記連続ダウン検出信号が出力されたときに、前記第1の積分器の積分出力を補正するための補正量を決定する補正量決定器と、
を備え、
前記第1の積分器は、前記補正量決定器から前記補正量が出力された場合、前記第1の積分器の積分出力を前記補正量で補正した値に設定するとともに、前記補正した値から、前記第1のアップ信号と前記第1のダウン信号の積分を行う、請求項4記載のクロックアンドデータリカバリ回路。
The circuit block counts the number of times that the first up signal or the first down signal is continuously output from the phase detector until the error signal is output,
When the error signal is output this time from the phase detector, the number of consecutive times counted for the first up signal or the first down signal until the current error signal output time,
The number of past consecutive times of the first up signal or the first down signal output from the phase detector by the time the error signal immediately before the current error signal is output;
Are cumulatively added,
When a value obtained by accumulating the number of consecutive times of the first up signal or the first down signal reaches or exceeds a value corresponding to the predetermined number of times or more, a continuous up detection signal or a continuous down detection signal A continuous count circuit that outputs
A correction amount determiner for determining a correction amount for correcting the integral output of the first integrator when the continuous up detection signal or the continuous down detection signal is output from the continuous number measurement circuit;
With
When the correction amount is output from the correction amount determiner, the first integrator sets the integration output of the first integrator to a value corrected by the correction amount, and from the corrected value. 5. The clock and data recovery circuit according to claim 4, wherein integration of the first up signal and the first down signal is performed.
前記連続回数計測回路は、
前記位相検出器から前記エラー信号が出力されるまでに、前記位相検出器から前記第1のアップ信号又は前記第1のダウン信号が連続して出力される回数を計数し、
前記位相検出器から前記エラー信号が出力されると、前記エラー信号が出力されるまでに計数された前記第1のアップ信号又は前記第1のダウン信号の連続回数の計数値を、後段に伝達し、その後、前記計数値を零にリセットする第1の回路ユニットと、
前記第1の回路ユニットから伝達された、前記第1のアップ信号又は前記第1のダウン信号の前記連続回数を受け、前記連続回数と、過去の前記第1のアップ信号又は前記第1のダウン信号の前記連続回数の累積加算値とを加算器で加算した値を新たな累積加算値とし、
前記新たな累積加算値が、前記第1のアップ信号又は前記第1のダウン信号の所定回数分に対応する値に達したか又は超えているとき、前記連続アップ検出信号又は前記連続ダウン検出信号を出力するとともに、前記連続回数の累積加算値を零にリセットする第2の回路ユニットと、
を備えている、請求項5記載のクロックアンドデータリカバリ回路。
The continuous number counting circuit is:
Counting the number of times the first up signal or the first down signal is continuously output from the phase detector before the error signal is output from the phase detector;
When the error signal is output from the phase detector, the count value of the number of consecutive times of the first up signal or the first down signal counted until the error signal is output is transmitted to the subsequent stage. And then a first circuit unit that resets the count value to zero;
The continuous number of the first up signal or the first down signal transmitted from the first circuit unit is received, and the continuous number of times and the previous first up signal or the first down signal are received. A value obtained by adding the cumulative addition value of the number of consecutive times of the signal with an adder is a new cumulative addition value,
When the new cumulative addition value reaches or exceeds a value corresponding to a predetermined number of times of the first up signal or the first down signal, the continuous up detection signal or the continuous down detection signal And a second circuit unit that resets the cumulative addition value of the continuous number of times to zero,
The clock and data recovery circuit according to claim 5, comprising:
前記連続回数計測回路は、第1、第2の回路ユニットを備え、
前記第1の回路ユニットは、
前記第1のアップ信号と前記第1のダウン信号を入力する論理回路を備え、
前記論理回路は、
(A)前記第1のアップ信号又は前記第1のダウン信号の連続回数の現在の第1の計数値が+1以上のときに、前記第1のダウン信号が入力されると、
−1を出力し、
(B)前記第1のアップ信号又は前記第1のダウン信号の連続回数の現在の前記第1の計数値が−1以下のときに、前記第1のアップ信号が入力されると、
+1を出力し、
(C)前記第1のアップ信号又は前記第1のダウン信号の連続回数の現在の前記第1の計数値と、入力された前記第1のダウン信号又は前記第1のアップ信号の関係が、上記(A)、(B)の関係の以外の場合、入力された信号が前記第1のダウン信号のとき、
前記現在の第1の計数値に−1を加算した値を出力し、
(D)前記第1のアップ信号又は前記第1のダウン信号の連続回数の現在の前記第1の計数値と、入力された前記第1のダウン信号又は前記第1のアップ信号の関係が、上記(A)、(B)の関係の以外の場合、入力された信号が前記第1のアップ信号のとき、
現在の前記第1の計数値に+1を加算した値を出力し、
前記第1の回路ユニットは、さらに、
前記論理回路の出力と零とを入力し、前記位相検出器からの前記エラー信号を選択制御信号とし、前記エラー信号が出力されないとき、前記論理回路の出力を選択出力し、前記位相検出器から前記エラー信号が出力されたときは零を選択出力する第1のセレクタと、
前記第1のセレクタの出力を入力し、出力から、前記第1の計数値を出力する第1のフリップフロップと、
前記第1のフリップフロップの出力と零とを入力し、前記位相検出器から前記エラー信号を選択制御信号とし、前記エラー信号が出力されないときは、零を選択し、前記位相検出器から前記エラー信号が出力されたときは、前記第1のフリップフロップの出力を選択する第2のセレクタと、
を備え、
前記第2の回路ユニットは、
前記第2のセレクタの出力と第2の計数値を加算する加算器と、
前記加算器の出力と零とを入力する第3のセレクタと、
前記第3のセレクタの出力を入力し出力を前記第2の計数値とする第2のフリップフロップと、
前記第2のフリップフロップから出力される前記第2の計数値を受け、前記第2の計数値が所定の正値以上の場合、連続アップ検出信号、前記第2の計数値が所定の負値以下の場合、連続ダウン検出信号を出力する比較回路と、
前記比較回路から前記連続アップ検出信号又は前記連続ダウン検出信号が出力されると、前記第3のセレクタにて零を選択し、前記比較回路から前記連続アップ検出信号も前記連続ダウン検出信号も出力されない場合、前記第3のセレクタにて前記加算器の出力を選択するための選択制御信号を出力する論理ゲートと、
を備えている、請求項5記載のクロックアンドデータリカバリ回路。
The continuous frequency measuring circuit includes first and second circuit units,
The first circuit unit includes:
A logic circuit for inputting the first up signal and the first down signal;
The logic circuit is:
(A) When the first down signal is input when the current first count value of the number of consecutive times of the first up signal or the first down signal is +1 or more,
-1 and
(B) When the first up signal is input when the current first count value of the number of consecutive times of the first up signal or the first down signal is −1 or less,
+1 is output,
(C) The relationship between the current first count value of the number of consecutive times of the first up signal or the first down signal and the input first down signal or the first up signal is: When the input signal is the first down signal in cases other than the relations (A) and (B) above,
Outputting a value obtained by adding -1 to the current first count value;
(D) The relationship between the current first count value of the number of consecutive times of the first up signal or the first down signal and the input first down signal or the first up signal is: When the input signal is the first up signal in cases other than the relations (A) and (B) above,
Output a value obtained by adding +1 to the current first count value;
The first circuit unit further includes:
The output of the logic circuit and zero are input, the error signal from the phase detector is used as a selection control signal, and when the error signal is not output, the output of the logic circuit is selected and output from the phase detector. A first selector that selectively outputs zero when the error signal is output;
A first flip-flop that inputs the output of the first selector and outputs the first count value from the output;
The output of the first flip-flop and zero are input, and the error signal is selected from the phase detector as a selection control signal. When the error signal is not output, zero is selected and the error is output from the phase detector. A second selector that selects an output of the first flip-flop when a signal is output;
With
The second circuit unit includes:
An adder for adding the output of the second selector and a second count value;
A third selector for inputting the output of the adder and zero;
A second flip-flop that receives the output of the third selector and uses the output as the second count value;
When the second count value output from the second flip-flop is received and the second count value is greater than or equal to a predetermined positive value, a continuous up detection signal, and the second count value is a predetermined negative value In the following cases, a comparison circuit that outputs a continuous down detection signal;
When the continuous up detection signal or the continuous down detection signal is output from the comparison circuit, zero is selected by the third selector, and the continuous up detection signal and the continuous down detection signal are output from the comparison circuit. If not, a logic gate for outputting a selection control signal for selecting an output of the adder by the third selector;
The clock and data recovery circuit according to claim 5, comprising:
前記補正量決定器は、
(E)前記連続回数計測回路から、前記連続アップ検出信号が出力されると、
前記補正量を正の所定値(p)とし、
(F)前記連続回数計測回路から、前記連続ダウン検出信号が出力されると、
前記補正量を前記所定値の負値(−p)とし、
(G)前記連続回数計測回路から、前記連続アップ検出信号、前記連続ダウン検出信号がともに出力されないとき、
前記補正量を零とする、請求項5又は6記載のクロックアンドデータリカバリ回路。
The correction amount determiner is
(E) When the continuous up detection signal is output from the continuous frequency measurement circuit,
The correction amount is a positive predetermined value (p),
(F) When the continuous down detection signal is output from the continuous frequency measurement circuit,
The correction amount is the negative value (−p) of the predetermined value,
(G) When both the continuous up detection signal and the continuous down detection signal are not output from the continuous frequency measurement circuit,
7. The clock and data recovery circuit according to claim 5, wherein the correction amount is zero.
前記補正量決定器は、
(E)前記連続回数計測回路から、前記連続アップ検出信号が出力されると、
前記第1の積分器の出力(PPM)と正の所定値(p)の和(PPM+p)が、前記第1の積分器の出力最大値(PPMmax)よりも小の場合、
前記補正量を前記所定値(p)とし、
前記第1の積分器の出力(PPM)と前記所定値(p)の和(PPM+p)が、前記第1の積分器の出力最大値(PPMmax)以上の場合、
前記補正量を前記所定値の負値(−p)とし、
(F)前記連続回数計測回路から、前記連続ダウン検出信号が出力されると、
前記第1の積分器の出力(PPM)から前記所定値(p)を差し引いた値(PPM−p)が、前記第1の積分器の出力最小値(PPMmin)よりも大の場合、
前記補正量を前記所定値の負値(−p)とし、
前記第1の積分器の出力から前記所定値(p)を差し引いた値(PPM−p)が、前記第1の積分器の出力最小値(PPMmin)以下の場合、
前記補正量を前記所定値(p)とし、
(G)前記連続回数計測回路から、前記連続アップ検出信号、前記連続ダウン検出信号が出力されないときは、
前記補正量を零とする、請求項5又は6記載のクロックアンドデータリカバリ回路。
The correction amount determiner is
(E) When the continuous up detection signal is output from the continuous frequency measurement circuit,
When the sum (PPM + p) of the output (PPM) of the first integrator and the positive predetermined value (p) is smaller than the maximum output value (PPMmax) of the first integrator,
The correction amount is the predetermined value (p),
When the sum (PPM + p) of the output (PPM) of the first integrator and the predetermined value (p) is not less than the maximum output value (PPMmax) of the first integrator,
The correction amount is the negative value (−p) of the predetermined value,
(F) When the continuous down detection signal is output from the continuous frequency measurement circuit,
When the value (PPM-p) obtained by subtracting the predetermined value (p) from the output (PPM) of the first integrator is larger than the output minimum value (PPMmin) of the first integrator,
The correction amount is the negative value (−p) of the predetermined value,
When the value (PPM-p) obtained by subtracting the predetermined value (p) from the output of the first integrator is less than or equal to the output minimum value (PPMmin) of the first integrator,
The correction amount is the predetermined value (p),
(G) When the continuous up detection signal and the continuous down detection signal are not output from the continuous number measurement circuit,
7. The clock and data recovery circuit according to claim 5, wherein the correction amount is zero.
前記補正量決定器は、
(E)前記連続回数計測回路から、前記連続アップ検出信号が出力されると、
前記第1の積分器の出力(PPM)と正の第1の所定値(p)の和(PPM+p)が、前記第1の積分器の出力最大値(PPMmax)よりも小の場合、
前記補正量を前記第1の所定値(p)とし、
前記第1の積分器の出力と前記第1の所定値(p)の和(PPM+p)が、前記第1の積分器の出力最大値(PPMmax)以上の場合、
前記補正量を前記第1の所定値の負値(−p)とし、
(F)前記連続回数計測回路から、前記連続ダウン検出信号が出力されると、
前記第1の積分器の出力(PPM)から前記第1の所定値(p)を差し引いた値(PPM−p)が、前記第1の積分器の出力最小値(PPMmin)よりも大の場合、
前記補正量を前記第1の所定値の負値(−p)とし、
前記第1の積分器の出力から前記第1の所定値(p)を差し引いた値(PPM−p)が、前記第1の積分器の出力最小値(PPMmin)以下の場合、
前記補正量を前記第1の所定値(p)とし、
(G)前記連続回数計測回路から、前記連続アップ検出信号、前記連続ダウン検出信号が出力されないときは、
前記補正量を零とし、
(H)前記連続アップ検出信号が出力された場合の上記処理(E)を所定回実行したとき、
(I)前記第1の積分器の出力(PPM)と正の第2の所定値(q)の和(PPM+q)が、前記第1の積分器の出力最大値(PPMmax)よりも小の場合、
前記補正量を前記第2の所定値(q)とし、
(J)前記第1の積分器の出力と前記第2の所定値(q)の和(PPM+q)が、前記第1の積分器の出力最大値(PPMmax)以上の場合、
前記第1の積分器の出力から前記第2の所定値(q)を差し引いた値(PPM−q)が、前記第1の積分器の出力最小値(PPMmin)よりも大の場合には、
前記補正量を前記第2の所定値の負値(−q)とし、
前記第1の積分器の出力(PPM)から前記第2の所定値(q)を差し引いた値(PPM−q)が、前記第1の積分器の出力最小値(PPMmin)以下の場合には、
前記補正量を零とし、
(K)前記連続ダウン検出信号が出力された場合の上記処理(F)を所定回実行したとき、
(L)前記第1の積分器の出力(PPM)から前記第2の所定値(q)を差し引いた値(PPM−q)が、前記第1の積分器の出力最小値(PPMmin)よりも大の場合には、
前記補正量を前記第2の所定値の負値(−q)とし、
前記第1の積分器の出力(PPM)から前記第2の所定値(q)を差し引いた値(PPM−q)が、前記第1の積分器の出力最小値(PPMmin)以下の場合には、
前記第1の積分器の出力(PPM)と前記第2の所定値(q)の和(PPM+q)が、前記第1の積分器の出力最大値(PPMmax)よりも小の場合、
前記補正量を前記第2の所定値(q)とし、
前記第1の積分器の出力(PPM)と前記第2の所定値(q)の和(PPM+q)が、前記第1の積分器の出力最大値(PPMmax)以上の場合、
前記補正量を零とする、請求項5又は6記載のクロックアンドデータリカバリ回路。
The correction amount determiner is
(E) When the continuous up detection signal is output from the continuous frequency measurement circuit,
When the sum (PPM + p) of the output (PPM) of the first integrator and the positive first predetermined value (p) is smaller than the maximum output value (PPMmax) of the first integrator,
The correction amount is the first predetermined value (p),
When the sum (PPM + p) of the output of the first integrator and the first predetermined value (p) is equal to or greater than the maximum output value (PPMmax) of the first integrator,
The correction amount is set to a negative value (-p) of the first predetermined value,
(F) When the continuous down detection signal is output from the continuous frequency measurement circuit,
A value (PPM-p) obtained by subtracting the first predetermined value (p) from the output (PPM) of the first integrator is larger than the output minimum value (PPMmin) of the first integrator. ,
The correction amount is set to a negative value (-p) of the first predetermined value,
When a value (PPM-p) obtained by subtracting the first predetermined value (p) from the output of the first integrator is less than or equal to the output minimum value (PPMmin) of the first integrator,
The correction amount is the first predetermined value (p),
(G) When the continuous up detection signal and the continuous down detection signal are not output from the continuous number measurement circuit,
The correction amount is zero,
(H) When the process (E) when the continuous up detection signal is output is executed a predetermined number of times,
(I) When the sum (PPM + q) of the output (PPM) of the first integrator and the positive second predetermined value (q) is smaller than the maximum output value (PPMmax) of the first integrator ,
The correction amount is the second predetermined value (q),
(J) When the sum (PPM + q) of the output of the first integrator and the second predetermined value (q) is not less than the maximum output value (PPMmax) of the first integrator,
When the value (PPM-q) obtained by subtracting the second predetermined value (q) from the output of the first integrator is larger than the output minimum value (PPMmin) of the first integrator,
The correction amount is the negative value (−q) of the second predetermined value,
When the value (PPM-q) obtained by subtracting the second predetermined value (q) from the output (PPM) of the first integrator is less than or equal to the output minimum value (PPMmin) of the first integrator ,
The correction amount is zero,
(K) When the process (F) is executed a predetermined number of times when the continuous down detection signal is output,
(L) A value (PPM-q) obtained by subtracting the second predetermined value (q) from the output (PPM) of the first integrator is smaller than the output minimum value (PPMmin) of the first integrator. In the case of large,
The correction amount is the negative value (−q) of the second predetermined value,
When the value (PPM-q) obtained by subtracting the second predetermined value (q) from the output (PPM) of the first integrator is less than or equal to the output minimum value (PPMmin) of the first integrator ,
When the sum (PPM + q) of the output (PPM) of the first integrator and the second predetermined value (q) is smaller than the maximum output value (PPMmax) of the first integrator,
The correction amount is the second predetermined value (q),
When the sum (PPM + q) of the output (PPM) of the first integrator and the second predetermined value (q) is not less than the maximum output value (PPMmax) of the first integrator,
7. The clock and data recovery circuit according to claim 5, wherein the correction amount is zero.
前記第1の積分器が、前記位相検出器からの前記第1のアップ信号の入力に応答してカウントアップし、前記位相検出器からの前記第1のダウン信号の入力に応答してカウントダウンする第1のアップダウン・カウンタと、
前記第1のアップダウン・カウンタの出力と前記第1の積分器の出力値とを加算する第1の加算器と、
前記補正量と前記第1の積分器の出力値とを加算する第2の加算器と、
前記補正量が零のとき、前記第1の加算器の出力を選択し、前記補正量が非零のとき、前記第2の加算器の出力を選択するセレクタと、
前記セレクタの出力を受け、出力が、前記第1の積分器の積分出力値として出力されるとともに、前記第1及び第2の加算器に共通に入力されるフリップフロップと、
を備えている、請求項4記載のクロックアンドデータリカバリ回路。
The first integrator counts up in response to the input of the first up signal from the phase detector and counts down in response to the input of the first down signal from the phase detector. A first up / down counter;
A first adder for adding the output of the first up / down counter and the output value of the first integrator;
A second adder for adding the correction amount and the output value of the first integrator;
A selector that selects an output of the first adder when the correction amount is zero, and an output of the second adder when the correction amount is non-zero;
A flip-flop that receives an output of the selector and outputs an output as an integrated output value of the first integrator, and is commonly input to the first and second adders;
The clock and data recovery circuit according to claim 4, comprising:
前記パターン発生器が、前記第1の積分器の出力を受ける加算器と、
前記加算器の出力を所定の正整数で除した商と余りを出力する除算器と、
前記除算器の前記余りを受けるフリップフロップと、
を備え、前記加算器は、前記フリップフロップからの前記余りと、前記第1の積分器の出力を加算し、前記商が前記パターン発生器の出力とされる、請求項1記載のクロックアンドデータリカバリ回路。
An adder for receiving the output of the first integrator, the pattern generator;
A divider for outputting a quotient and a remainder obtained by dividing the output of the adder by a predetermined positive integer;
A flip-flop receiving the remainder of the divider;
The clock and data according to claim 1, wherein the adder adds the remainder from the flip-flop and the output of the first integrator, and the quotient is the output of the pattern generator. Recovery circuit.
前記回路ブロックが、前記位相検出器から前記エラー信号が出力されると、前記第2の積分器にダウン信号を与える強制ダウン回路を備えている、請求項1記載のクロックアンドデータリカバリ回路。   The clock and data recovery circuit according to claim 1, wherein the circuit block includes a forced down circuit that gives a down signal to the second integrator when the error signal is output from the phase detector. 前記回路ブロックが、前記位相検出器から前記エラー信号が出力されると、前記第2の積分器にアップ信号を与える強制アップ回路を備えている請求項1記載のクロックアンドデータリカバリ回路。   2. The clock and data recovery circuit according to claim 1, wherein the circuit block includes a forced up circuit that gives an up signal to the second integrator when the error signal is output from the phase detector. 3. 前記回路ブロックが、前記位相検出器から前記エラー信号が所定回数出力されると、前記第1の積分器の出力を補正するための補正量を出力するエラー回数計測器を備えた、請求項1記載のクロックアンドデータリカバリ回路。   The circuit block includes an error number measuring device that outputs a correction amount for correcting the output of the first integrator when the error signal is output a predetermined number of times from the phase detector. The clock and data recovery circuit described. 前記第2の積分器を前記混合器と前記位相補間器の間に備え、
前記混合器は、前記パターン発生器と前記位相検出器の出力を合成した結果を前記第2の積分器に供給する、請求項1乃至15のいずれか1項に記載のクロックアンドデータリカバリ回路。
Providing the second integrator between the mixer and the phase interpolator;
The clock and data recovery circuit according to any one of claims 1 to 15, wherein the mixer supplies a result of combining the outputs of the pattern generator and the phase detector to the second integrator.
前記位相補間器からの多相のクロック信号で入力データ信号をサンプリングするデータサンプリング回路を備え、
前記位相検出器は、前記データサンプリング回路でサンプリングされたデータ信号群を入力する、請求項1乃至16のいずれか1項に記載のクロックアンドデータリカバリ回路。
A data sampling circuit for sampling an input data signal with a multiphase clock signal from the phase interpolator;
The clock and data recovery circuit according to any one of claims 1 to 16, wherein the phase detector inputs a data signal group sampled by the data sampling circuit.
前記多相クロック信号を、位相が360度/Nで等間隔に離間しているN相クロック信号(但し、Nは所定の正の偶数)とし、
前記位相補間器は、
第1乃至第N(Nは、前記)の判定回路を備え、
第iの判定回路(i=1〜N)は、データ信号をN相のクロック信号でサンプリングしたデータ信号群のうち、巡回的に位相が隣り合うi番目の相とi+1番目の相のクロック信号でサンプリングしたデータ信号が不一致であるか判定し、
前記第1乃至第Nの判定回路の出力を入力し、第j及び第j+1(ただし、j=1、3、・・・、N−1の奇数)の判定回路の各対のうち、少なくとも1対の判定回路の出力がともに不一致を示す場合に、エラー信号を出力し、
その他の場合、前記第1乃至第N(Nは2以上の整数)の判定回路の出力に基づき、前記第1のアップ信号、又は前記第1のダウン信号を出力する論理回路部と、
を備えた、請求項1乃至17のいずれか1項に記載のクロックアンドデータリカバリ回路。
The multi-phase clock signal is an N-phase clock signal having a phase of 360 degrees / N and equally spaced (where N is a predetermined positive even number),
The phase interpolator is
Comprising first to Nth (N is the above) determination circuits;
The i-th determination circuit (i = 1 to N) is a clock signal of an i-th phase and an i + 1-th phase that are cyclically adjacent in a data signal group obtained by sampling a data signal with an N-phase clock signal. Judge whether the data signals sampled in is inconsistent,
The outputs of the first to Nth determination circuits are input, and at least one of each pair of jth and j + 1th (where j = 1, 3,..., N−1 odd) determination circuits. When the outputs of the pair of judgment circuits indicate mismatch, an error signal is output,
In other cases, a logic circuit unit that outputs the first up signal or the first down signal based on the outputs of the first to Nth (N is an integer of 2 or more) determination circuits;
The clock and data recovery circuit according to claim 1, comprising:
入力データ信号を多相のクロック信号の各々でサンプリングするデータサンプリング回路と、
前記データ信号群に対して相隣る位相の前記クロック信号でそれぞれサンプリングされたデータ信号対の一致/不一致を判定し、前記判定結果の組み合わせに基づき、前記クロック信号の位相を進めさせる第1のアップ信号、又は、前記クロック信号の位相を遅らせる第1のダウン信号を出力し、前記判定出力の組み合わせが予め定められたエラーの条件に該当する場合に、エラー信号を出力する位相検出器と、
周波数追従ループを構成し、前記位相検出器からの前記第1のアップ信号と前記第1のダウン信号を積分する第1の積分器と、
位相追従ループを構成し、前記位相検出器からの前記第1のアップ信号と前記第1のダウン信号を積分する第2の積分器と、
前記第1の積分器の出力値に応じたパターンの信号値を生成するパターン発生器と、
前記第2の積分器の出力と前記パターン発生器の出力を合成する混合器と、
入力クロックを入力し前記混合器の出力値に基づき位相を可変させた多相のクロック信号を生成し前記データサンプリング回路に供給する位相補間器と、
前記位相検出器から、前記エラー信号が出力されるまでに、前記第1のアップ信号又は前記第1のダウン信号が連続して出力される回数を計数し、
前記第1のアップ信号又は前記第1のダウン信号の連続回数と、
前記連続回数に対応する前記エラー信号が出力される直前までの過去の前記第1のアップ信号又は前記第1のダウン信号の連続回数と、
を累積加算した値が、予め定められた所定回数以上に対応する値に達すると、連続アップ検出信号又は連続ダウン検出信号を出力する連続回数計測回路と、
前記連続回数計測回路から前記連続アップ検出信号又は前記連続ダウン検出信号が出力されたときに、前記第1の積分器の出力を補正するための補正量を決定する補正量決定器と、
を備え、
前記第1の積分器は、前記補正量決定器から補正量が出力された場合、前記第1の積分器の積分出力を前記補正量で補正した値とするとともに、前記補正した値から、前記第1アップ信号と前記第1のダウン信号の積分を行う、クロックアンドデータリカバリ回路。
A data sampling circuit that samples the input data signal with each of the multiphase clock signals;
A match / mismatch of each pair of data signals sampled by the clock signals having phases adjacent to the data signal group is determined, and a phase of the clock signal is advanced based on a combination of the determination results A phase detector that outputs an up signal or a first down signal that delays the phase of the clock signal, and that outputs an error signal when the combination of the determination outputs meets a predetermined error condition;
A first integrator that constitutes a frequency tracking loop and integrates the first up signal and the first down signal from the phase detector;
A second integrator that constitutes a phase tracking loop and integrates the first up signal and the first down signal from the phase detector;
A pattern generator for generating a signal value of a pattern according to an output value of the first integrator;
A mixer for combining the output of the second integrator and the output of the pattern generator;
A phase interpolator that inputs an input clock, generates a multi-phase clock signal whose phase is varied based on an output value of the mixer, and supplies the clock signal to the data sampling circuit;
Counting the number of times the first up signal or the first down signal is continuously output before the error signal is output from the phase detector,
The number of consecutive times of the first up signal or the first down signal;
The number of consecutive times of the first up signal or the first down signal in the past until immediately before the error signal corresponding to the number of consecutive times is output,
When the cumulative addition value reaches a value corresponding to a predetermined number of times or more determined in advance, a continuous frequency measurement circuit that outputs a continuous up detection signal or a continuous down detection signal;
A correction amount determiner for determining a correction amount for correcting the output of the first integrator when the continuous up detection signal or the continuous down detection signal is output from the continuous frequency measurement circuit;
With
When the correction amount is output from the correction amount determiner, the first integrator sets a value obtained by correcting the integration output of the first integrator with the correction amount, and from the corrected value, A clock and data recovery circuit for integrating a first up signal and the first down signal.
前記エラー信号が出力されると、前記第2の積分器にダウン信号を与える回路を備えている、請求項19記載のクロックアンドデータリカバリ回路。   20. The clock and data recovery circuit according to claim 19, further comprising a circuit that provides a down signal to the second integrator when the error signal is output. 入力データ信号を多相のクロック信号の各々でサンプリングするデータサンプリング回路と、
前記データ信号群に対して相隣る位相の前記クロック信号でそれぞれサンプリングされたデータ信号対の一致/不一致を判定し、前記判定結果の組み合わせに基づき、前記クロック信号の位相を進めさせる第1のアップ信号、又は、前記クロック信号の位相を遅らせる第1のダウン信号を出力し、前記判定出力の組み合わせが予め定められたエラーの条件に該当する場合に、エラー信号を出力する位相検出器と、
周波数追従ループを構成し、前記位相検出器からの前記第1のアップ信号と前記第1のダウン信号を積分する第1の積分器と、
位相追従ループを構成し、前記位相検出器からの前記第1のアップ信号と前記第1のダウン信号を積分する第2の積分器と、
前記第1の積分器の出力値に応じたパターンの信号値を生成するパターン発生器と、
前記第2の積分器の出力と前記パターン発生器の出力を合成する混合器と、
入力クロックを入力し前記混合器の出力値に基づき位相を可変させた多相のクロック信号を生成し前記データサンプリング回路に供給する位相補間器と、
前記位相検出器から、前記エラー信号が所定回数出力されると、前記第1の積分器の出力を補正するための補正量を出力するエラー回数計測器と、
を備え、
前記第1の積分器は、前記補正量決定器から補正量が出力された場合、前記第1の積分器の積分出力を前記補正量で補正した値とするとともに、前記補正した値から、前記第1アップ信号と前記第1のダウン信号の積分を行う、クロックアンドデータリカバリ回路。
A data sampling circuit that samples the input data signal with each of the multiphase clock signals;
A match / mismatch of each pair of data signals sampled by the clock signals having phases adjacent to the data signal group is determined, and a phase of the clock signal is advanced based on a combination of the determination results A phase detector that outputs an up signal or a first down signal that delays the phase of the clock signal, and that outputs an error signal when the combination of the determination outputs meets a predetermined error condition;
A first integrator that constitutes a frequency tracking loop and integrates the first up signal and the first down signal from the phase detector;
A second integrator that constitutes a phase tracking loop and integrates the first up signal and the first down signal from the phase detector;
A pattern generator for generating a signal value of a pattern according to an output value of the first integrator;
A mixer for combining the output of the second integrator and the output of the pattern generator;
A phase interpolator that inputs an input clock, generates a multi-phase clock signal whose phase is varied based on an output value of the mixer, and supplies the clock signal to the data sampling circuit;
When the error signal is output a predetermined number of times from the phase detector, an error number measuring device that outputs a correction amount for correcting the output of the first integrator;
With
When the correction amount is output from the correction amount determiner, the first integrator sets a value obtained by correcting the integration output of the first integrator with the correction amount, and from the corrected value, A clock and data recovery circuit for integrating a first up signal and the first down signal.
前記エラー回数計測器は、前記エラー信号が所定回数出力されると、前記第1の積分器の出力を補正するための補正量として乱数を出力する、請求項21記載のクロックアンドデータリカバリ回路。   The clock and data recovery circuit according to claim 21, wherein the error number measuring device outputs a random number as a correction amount for correcting the output of the first integrator when the error signal is output a predetermined number of times. 入力データ信号を多相のクロック信号の各々でサンプリングするデータサンプリング回路と、
前記データ信号群に対して相隣る位相の前記クロック信号でそれぞれサンプリングされたデータ信号対の一致/不一致を判定し、前記判定結果の組み合わせに基づき、前記クロック信号の位相を進めさせる第1のアップ信号、又は、前記クロック信号の位相を遅らせる第1のダウン信号を出力し、前記判定出力の組み合わせが予め定められたエラーの条件に該当する場合に、エラー信号を出力する位相検出器と、
周波数追従ループを構成し、前記位相検出器からの前記第1のアップ信号と前記第1のダウン信号を積分する第1の積分器と、
位相追従ループを構成し、前記位相検出器からの前記第1のアップ信号と前記第1のダウン信号を積分する第2の積分器と、
前記第1の積分器の出力値に応じたパターンの信号値を生成するパターン発生器と、
前記第2の積分器の出力と前記パターン発生器の出力を合成する混合器と、
入力クロックを入力し前記混合器の出力値に基づき位相を可変させた多相のクロック信号を生成し前記データサンプリング回路に供給する位相補間器と、
前記位相検出器から前記エラー信号が出力されると、前記第2の積分器に対してダウン信号を与える強制ダウン回路と、
を備えた、クロックアンドデータリカバリ回路。
A data sampling circuit that samples the input data signal with each of the multiphase clock signals;
A match / mismatch of each pair of data signals sampled by the clock signals having phases adjacent to the data signal group is determined, and a phase of the clock signal is advanced based on a combination of the determination results A phase detector that outputs an up signal or a first down signal that delays the phase of the clock signal, and that outputs an error signal when the combination of the determination outputs meets a predetermined error condition;
A first integrator that constitutes a frequency tracking loop and integrates the first up signal and the first down signal from the phase detector;
A second integrator that constitutes a phase tracking loop and integrates the first up signal and the first down signal from the phase detector;
A pattern generator for generating a signal value of a pattern according to an output value of the first integrator;
A mixer for combining the output of the second integrator and the output of the pattern generator;
A phase interpolator that inputs an input clock, generates a multi-phase clock signal whose phase is varied based on an output value of the mixer, and supplies the clock signal to the data sampling circuit;
A forced down circuit for providing a down signal to the second integrator when the error signal is output from the phase detector;
And a clock and data recovery circuit.
入力データ信号を多相のクロック信号の各々でサンプリングするデータサンプリング回路と、
前記データ信号群に対して相隣る位相の前記クロック信号でそれぞれサンプリングされたデータ信号対の一致/不一致を判定し、前記判定結果の組み合わせに基づき、前記クロック信号の位相を進めさせる第1のアップ信号、又は、前記クロック信号の位相を遅らせる第1のダウン信号を出力し、前記判定出力の組み合わせが予め定められたエラーの条件に該当する場合に、エラー信号を出力する位相検出器と、
周波数追従ループを構成し、前記位相検出器からの前記第1のアップ信号と前記第1のダウン信号を積分する第1の積分器と、
位相追従ループを構成し、前記位相検出器からの前記第1のアップ信号と前記第1のダウン信号を積分する第2の積分器と、
前記第1の積分器の出力値に応じたパターンの信号値を生成するパターン発生器と、
前記第2の積分器の出力と前記パターン発生器の出力を合成する混合器と、
入力クロックを入力し前記混合器の出力値に基づき位相を可変させた多相のクロック信号を生成し前記データサンプリング回路に供給する位相補間器と、
前記位相検出器から前記エラー信号が出力されると、前記第2の積分器に対してアップ信号を与える強制アップ回路と、
を備えた、クロックアンドデータリカバリ回路。
A data sampling circuit that samples the input data signal with each of the multiphase clock signals;
A match / mismatch of each pair of data signals sampled by the clock signals having phases adjacent to the data signal group is determined, and a phase of the clock signal is advanced based on a combination of the determination results A phase detector that outputs an up signal or a first down signal that delays the phase of the clock signal, and that outputs an error signal when the combination of the determination outputs meets a predetermined error condition;
A first integrator that constitutes a frequency tracking loop and integrates the first up signal and the first down signal from the phase detector;
A second integrator that constitutes a phase tracking loop and integrates the first up signal and the first down signal from the phase detector;
A pattern generator for generating a signal value of a pattern according to an output value of the first integrator;
A mixer for combining the output of the second integrator and the output of the pattern generator;
A phase interpolator that inputs an input clock, generates a multi-phase clock signal whose phase is varied based on an output value of the mixer, and supplies the clock signal to the data sampling circuit;
A forced up circuit for providing an up signal to the second integrator when the error signal is output from the phase detector;
And a clock and data recovery circuit.
請求項1乃至24のいずれか1項に記載のクロックアンドデータリカバリ回路を備えた半導体装置。   A semiconductor device comprising the clock and data recovery circuit according to claim 1.
JP2010100813A 2010-04-26 2010-04-26 Clock and data recovery circuit Expired - Fee Related JP5520128B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010100813A JP5520128B2 (en) 2010-04-26 2010-04-26 Clock and data recovery circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010100813A JP5520128B2 (en) 2010-04-26 2010-04-26 Clock and data recovery circuit

Publications (2)

Publication Number Publication Date
JP2011234009A true JP2011234009A (en) 2011-11-17
JP5520128B2 JP5520128B2 (en) 2014-06-11

Family

ID=45322919

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010100813A Expired - Fee Related JP5520128B2 (en) 2010-04-26 2010-04-26 Clock and data recovery circuit

Country Status (1)

Country Link
JP (1) JP5520128B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013255164A (en) * 2012-06-08 2013-12-19 Renesas Electronics Corp Semiconductor device
JP2014187529A (en) * 2013-03-22 2014-10-02 Fujitsu Ltd Receiving circuit, and semiconductor integrated circuit
CN104811165A (en) * 2014-01-23 2015-07-29 成都国腾电子技术股份有限公司 Phase interpolator control circuit
CN113708757A (en) * 2020-05-20 2021-11-26 智原科技股份有限公司 Clock data recovery circuit
CN117498858A (en) * 2024-01-02 2024-02-02 上海米硅科技有限公司 Signal quality detection method and signal quality detection circuit
WO2024087694A1 (en) * 2022-10-25 2024-05-02 华为技术有限公司 Phase detector and operating method thereof, clock and data recovery circuit, and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006080991A (en) * 2004-09-10 2006-03-23 Nec Electronics Corp Clock and data recovery circuit
JP2008175646A (en) * 2007-01-17 2008-07-31 Nec Electronics Corp Semiconductor device, semiconductor device test circuit, and test method
JP2011061729A (en) * 2009-09-14 2011-03-24 Toshiba Corp Clock recovery circuit and data reproduction circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006080991A (en) * 2004-09-10 2006-03-23 Nec Electronics Corp Clock and data recovery circuit
JP2008175646A (en) * 2007-01-17 2008-07-31 Nec Electronics Corp Semiconductor device, semiconductor device test circuit, and test method
JP2011061729A (en) * 2009-09-14 2011-03-24 Toshiba Corp Clock recovery circuit and data reproduction circuit

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013255164A (en) * 2012-06-08 2013-12-19 Renesas Electronics Corp Semiconductor device
US9071415B2 (en) 2012-06-08 2015-06-30 Renesas Electronics Corporation Semiconductor device
US9413525B2 (en) 2012-06-08 2016-08-09 Renesas Electronics Corporation Semiconductor device
JP2014187529A (en) * 2013-03-22 2014-10-02 Fujitsu Ltd Receiving circuit, and semiconductor integrated circuit
CN104811165A (en) * 2014-01-23 2015-07-29 成都国腾电子技术股份有限公司 Phase interpolator control circuit
CN104811165B (en) * 2014-01-23 2017-07-04 成都振芯科技股份有限公司 A kind of phase interpolator controls circuit
CN113708757A (en) * 2020-05-20 2021-11-26 智原科技股份有限公司 Clock data recovery circuit
CN113708757B (en) * 2020-05-20 2024-03-15 智原科技股份有限公司 Clock data recovery circuit
WO2024087694A1 (en) * 2022-10-25 2024-05-02 华为技术有限公司 Phase detector and operating method thereof, clock and data recovery circuit, and electronic device
CN117498858A (en) * 2024-01-02 2024-02-02 上海米硅科技有限公司 Signal quality detection method and signal quality detection circuit
CN117498858B (en) * 2024-01-02 2024-03-29 上海米硅科技有限公司 Signal quality detection method and signal quality detection circuit

Also Published As

Publication number Publication date
JP5520128B2 (en) 2014-06-11

Similar Documents

Publication Publication Date Title
US10355852B2 (en) Lock detector for phase lock loop
US7826583B2 (en) Clock data recovery apparatus
US7756232B2 (en) Clock and data recovery circuit
US7224199B1 (en) Circuit and method for digital delay and circuits incorporating the same
KR101301698B1 (en) Linear phase detector and clock & data recovery circuit including thereof
US8315349B2 (en) Bang-bang phase detector with sub-rate clock
KR100824791B1 (en) Clock multiplier and clock multiplying method
US7450677B2 (en) Clock and data recovery apparatus and method thereof
US7924071B2 (en) Synchronization detection circuit, pulse width modulation circuit using the same, and synchronization detection method
US6741668B1 (en) Clock recovery circuit and phase detecting method therefor
JP5520128B2 (en) Clock and data recovery circuit
CN109639271B (en) Lock indication circuit and phase-locked loop formed by same
US8798223B2 (en) Clock and data recovery unit without an external reference clock
US20110074514A1 (en) Frequency measurement circuit and pll synthesizer provided therewith
US8537947B2 (en) Oversampling circuit, serial communication apparatus and oversampling method
WO2007019339A2 (en) Clock-and-data-recovery system
US7071750B2 (en) Method for multiple-phase splitting by phase interpolation and circuit the same
TWI555338B (en) Phase detector and associated phase detecting method
CN112165327B (en) Locking detection circuit and display device
JP2014222872A (en) System and method for tracking received data signal with clock data recovery circuit
KR102509984B1 (en) Integrated circuit detecting frequency and phase of clock signal and clock and data recovery circuit including the same
JP2014225874A (en) System and method for obtaining reception data signal with clock data recovery circuit
TWI630799B (en) Phase detector and clock and data recovery device
JP2005086789A (en) Clock data recovery circuit
JPH09149017A (en) Pll circuit and bit phase synchronization circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130131

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140224

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: 20140401

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140404

R150 Certificate of patent or registration of utility model

Ref document number: 5520128

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees