TWI630799B - Phase detector and clock and data recovery device - Google Patents

Phase detector and clock and data recovery device Download PDF

Info

Publication number
TWI630799B
TWI630799B TW106125027A TW106125027A TWI630799B TW I630799 B TWI630799 B TW I630799B TW 106125027 A TW106125027 A TW 106125027A TW 106125027 A TW106125027 A TW 106125027A TW I630799 B TWI630799 B TW I630799B
Authority
TW
Taiwan
Prior art keywords
symbol
clock signal
nth
clock
signal
Prior art date
Application number
TW106125027A
Other languages
Chinese (zh)
Other versions
TW201911755A (en
Inventor
康裕航
李志才
巫朝發
宋琳
黃志正
Original Assignee
北京集創北方科技股份有限公司
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 北京集創北方科技股份有限公司 filed Critical 北京集創北方科技股份有限公司
Priority to TW106125027A priority Critical patent/TWI630799B/en
Application granted granted Critical
Publication of TWI630799B publication Critical patent/TWI630799B/en
Publication of TW201911755A publication Critical patent/TW201911755A/en

Links

Abstract

一種時鐘與數據回復裝置包含一時鐘信號產生器及一鑒相器。時鐘信號產生器根據控制信號產生一時鐘信號,該控制信號用以調整該時鐘信號的一頻率。鑒相器根據時鐘信號的與輸入數據產生該控制信號。當該鑒相器判斷一第n碼元與一第(n+1)碼元之間有發生轉態時,1≦n≦(N-1),n為正整數,轉態的定義是高低邏輯準位的變換,該鑒相器判斷該第n碼元的一積分時間大於該第(n+1)碼元的一積分時間,則該鑒相器調整該控制信號以降低該時鐘信號的該頻率,該第n碼元的該積分時間是從該時鐘信號的第n個取樣緣到該二碼元間的轉態點,第(n+1)碼元的該積分時間是從該二碼元間的轉態點到該時鐘信號的第(n+1)個取樣緣。A clock and data recovery device includes a clock signal generator and a phase detector. The clock signal generator generates a clock signal according to the control signal, and the control signal is used to adjust a frequency of the clock signal. The phase detector generates the control signal based on the clock signal and the input data. When the phase detector determines that a transition occurs between an nth symbol and an (n+1)th symbol, 1≦n≦(N-1), n is a positive integer, and the definition of the transition state is high or low. a logic level conversion, the phase detector determines that an integration time of the nth symbol is greater than an integration time of the (n+1)th symbol, and the phase detector adjusts the control signal to reduce the clock signal. The frequency, the integration time of the nth symbol is from the nth sampling edge of the clock signal to the transition point between the two symbols, and the integration time of the (n+1)th symbol is from the second The transition point between the symbols is to the (n+1)th sampling edge of the clock signal.

Description

鑒相器及時鐘與數據回復裝置Phase detector and clock and data recovery device

本發明是有關於一種裝置,特別是指一種以無需額外進行邊緣取樣的鑒相器及時鐘與數據回復裝置。The invention relates to a device, in particular to a phase discriminator and clock and data recovery device without additional edge sampling.

現有時鐘與數據恢復(Clock and Data Recovery,以下簡稱:CDR)技術由於需要獲取輸入數據流轉換邊緣的訊息,其所使用的鑒相器需要對接收到的數據流進行2倍過取樣(使用2個時鐘邊緣對同一個碼元取樣),也就是時鐘取樣頻率=2×數據傳輸率(data rate),導致功耗較大。另外,在高速的設計中,通常採用同源多相位的時鐘信號來進行數據取樣(鎖定時,數據取樣點位於碼元正中間)和邊緣取樣(鎖定時,邊緣取樣點位於數據轉換邊的中點),會存在相位失配的問題,因此,如何減少功耗及解決相位失配的問題,而是未來的研究方向。The existing clock and data recovery (Clock and Data Recovery, hereinafter referred to as: CDR) technology needs to obtain the information of the conversion edge of the input data stream, and the phase detector used by it needs to oversample the received data stream by 2 times (using 2 One clock edge samples the same symbol), that is, the clock sampling frequency = 2 × data transfer rate (data rate), resulting in a large power consumption. In addition, in high-speed design, the same-origin multi-phase clock signal is usually used for data sampling (when locked, the data sampling point is located in the middle of the symbol) and edge sampling (when locked, the edge sampling point is located in the middle of the data conversion edge Point), there will be a problem of phase mismatch, so how to reduce power consumption and solve the problem of phase mismatch is the future research direction.

因此,本發明之目的,即在提供一種解決上述問題的時鐘與數據回復裝置。Therefore, the object of the present invention is to provide a clock and data recovery device that solves the above problems.

於是,本發明時鐘與數據回復裝置,包括一時鐘信號產生器及一鑒相器。Therefore, the clock and data recovery device of the present invention includes a clock signal generator and a phase detector.

時鐘信號產生器接收一控制信號,且根據該控制信號產生一時鐘信號,該控制信號用以調整該時鐘信號的一頻率。The clock signal generator receives a control signal and generates a clock signal according to the control signal. The control signal is used to adjust a frequency of the clock signal.

鑒相器接收一具有第一至第N個碼元的輸入數據, N≧2,N為正整數,且電連接該時鐘信號產生器以接收該時鐘信號,且根據該時鐘信號的與該輸入數據產生該控制信號。The phase detector receives an input data having the first to Nth symbols, N ≧ 2, N is a positive integer, and is electrically connected to the clock signal generator to receive the clock signal, and according to the clock signal and the input The data generates the control signal.

當該鑒相器判斷一第n碼元與一第(n+1)碼元之間有發生轉態時,1≦n≦(N-1),n為正整數,轉態的定義是高低邏輯準位的變換,該鑒相器判斷該第n碼元的一積分時間大於該第(n+1)碼元的一積分時間,則該鑒相器調整該控制信號以降低該時鐘信號的該頻率,該第n碼元的該積分時間是從該時鐘信號的第n個取樣緣到該二碼元間的轉態點,該第(n+1)碼元的該積分時間是從該二碼元間的轉態點到該時鐘信號的第(n+1)個取樣緣。When the phase detector judges that a transition occurs between an n-th symbol and a (n + 1) -th symbol, 1 ≦ n ≦ (N-1), n is a positive integer, and the definition of transition is high or low In the logic level conversion, the phase detector determines that an integration time of the nth symbol is greater than an integration time of the (n + 1) th symbol, then the phase detector adjusts the control signal to reduce the clock signal The frequency, the integration time of the nth symbol is the transition point from the nth sampling edge of the clock signal to the two symbols, and the integration time of the (n + 1) th symbol is from the The transition point between two symbols to the (n + 1) th sampling edge of the clock signal.

該鑒相器包括一數據取樣電路、一積分比較電路、一邏輯電路。The phase discriminator includes a data sampling circuit, an integration comparison circuit, and a logic circuit.

數據取樣電路接收一具有第一至第N個碼元的輸入數據, N≧2,N為正整數,且電連接該時鐘信號產生器以接收該時鐘信號,根據該時鐘信號來對該輸入數據進行取樣,以產生該第一至第N個碼元。The data sampling circuit receives an input data having the first to Nth symbols, N ≧ 2, N is a positive integer, and is electrically connected to the clock signal generator to receive the clock signal, and to the input data according to the clock signal Sampling is performed to generate the first to N-th symbols.

積分比較電路接收該輸入數據及該時鐘信號,且對該輸入數據的該第n碼元與該第(n+1)碼元進行積分,並比較該第n碼元與該第(n+1)碼元的該積分時間,來產生一數位信號,該數位信號用以指示該第n碼元與該第(n+1)碼元的其中之一。The integration comparison circuit receives the input data and the clock signal, and integrates the n-th symbol and the (n + 1) -th symbol of the input data, and compares the n-th symbol and the (n + 1) -th symbol ) The integration time of the symbol to generate a digital signal, the digital signal is used to indicate one of the nth symbol and the (n + 1) th symbol.

邏輯電路電連接該比較器與該數據取樣電路,以接收來自該比較器的該數位信號及來自該數據取樣電路的該第n碼元與該第(n+1)碼元,且判斷該數位信號符合該第n碼元或是該第(n+1)碼元,來產生該控制信號,當該數位信號符合該第n碼元,表示該第n個取樣緣超前該第n碼元的中間點,則該控制信號指示減少頻率。當該數位信號符合該第(n+1)碼元,表示該第n個取樣緣落後該第n碼元的中間點,則該控制信號指示增加頻率。The logic circuit electrically connects the comparator and the data sampling circuit to receive the digital signal from the comparator and the n-th symbol and the (n + 1) -th symbol from the data sampling circuit, and determine the digital The signal matches the n-th symbol or the (n + 1) -th symbol to generate the control signal. When the digital signal matches the n-th symbol, it indicates that the n-th sampling edge is ahead of the n-th symbol. At the middle point, the control signal indicates a reduction in frequency. When the digital signal matches the (n + 1) th symbol, indicating that the nth sampling edge lags behind the midpoint of the nth symbol, the control signal indicates an increase in frequency.

本發明之功效在於:無需額外的對輸入數據進行邊緣取樣,使整個CDR電路所需的功耗顯著減小。The effect of the present invention is that there is no need for additional edge sampling of the input data, so that the power consumption required by the entire CDR circuit is significantly reduced.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that in the following description, similar elements are denoted by the same number.

參閱圖1與圖2,本發明時鐘與數據回復裝置之一實施例,包含一時鐘信號產生器1及一鑒相器2。1 and 2, an embodiment of the clock and data recovery device of the present invention includes a clock signal generator 1 and a phase detector 2.

時鐘信號產生器1接收一控制信號(UP、DN),且根據該控制信號產生一時鐘信號(具有多個取樣緣分別是…CKn,CKn+1…,1≦n≦(N-1),N≧2,N 與n為正整數),該控制信號用以調整該時鐘信號的一頻率(增加、減少或維持頻率)。該時鐘信號產生器1包括一電荷泵10、一濾波器11、一振盪器12。The clock signal generator 1 receives a control signal (UP, DN), and generates a clock signal (with multiple sampling edges respectively ... CKn, CKn + 1 ..., 1 ≦ n ≦ (N-1), based on the control signal N ≧ 2, N and n are positive integers), the control signal is used to adjust a frequency (increase, decrease or maintain frequency) of the clock signal. The clock signal generator 1 includes a charge pump 10, a filter 11, and an oscillator 12.

電荷泵10接收該控制信號,且根據該控制信號產生一電流(Icp)。The charge pump 10 receives the control signal, and generates a current (Icp) according to the control signal.

濾波器11電連接該電荷泵10以接收該電流,且將該電流轉換成一控制電壓(V CTRL),當該電流流入該濾波器11時,該控制電壓增加,當該電流流出該濾波器11時,該控制電壓減少。 The filter 11 is electrically connected to the charge pump 10 to receive the current, and converts the current into a control voltage (V CTRL ). When the current flows into the filter 11, the control voltage increases, and when the current flows out of the filter 11 , The control voltage decreases.

振盪器12用以產生該時鐘信號,電連接該濾波器11以接收該控制電壓,且根據該控制電壓調整該時鐘信號的該頻率,該頻率正比該控制電壓。The oscillator 12 is used to generate the clock signal, electrically connected to the filter 11 to receive the control voltage, and adjust the frequency of the clock signal according to the control voltage, the frequency being proportional to the control voltage.

鑒相器2接收一具有第一至第N個碼元的輸入數據(Data), N≧2,N為正整數,且電連接該時鐘信號產生器1以接收該時鐘信號,且根據該時鐘信號的與該輸入數據產生該控制信號(UP、DN)。The phase detector 2 receives an input data (Data) having the first to Nth symbols, N ≧ 2, N is a positive integer, and is electrically connected to the clock signal generator 1 to receive the clock signal, and according to the clock The signal and the input data generate the control signal (UP, DN).

如圖2所示,(UP=0、DN=1)表示時鐘信號的相位超前,(UP=1、DN=0)表示時鐘信號的相位落後,時鐘信號的取樣緣CKn、CKn+1是為了表示對應的所取樣碼元(Dn、Dn+1)的先後順序。As shown in Figure 2, (UP = 0, DN = 1) indicates that the phase of the clock signal is ahead, (UP = 1, DN = 0) indicates that the phase of the clock signal is behind, and the sampling edges of the clock signal CKn, CKn + 1 are for Indicates the sequence of the corresponding sampled symbols (Dn, Dn + 1).

如圖3所示,該鑒相器2包括一數據取樣電路3、一積分比較電路4、一邏輯電路5。As shown in FIG. 3, the phase detector 2 includes a data sampling circuit 3, an integration comparison circuit 4, and a logic circuit 5.

數據取樣電路3接收該輸入數據,且電連接該時鐘信號產生器以接收該時鐘信號,根據該時鐘信號來對該輸入數據進行取樣,以產生該第一至第N個碼元。The data sampling circuit 3 receives the input data, and is electrically connected to the clock signal generator to receive the clock signal, and samples the input data according to the clock signal to generate the first to N-th symbols.

積分比較電路4接收該輸入數據及該時鐘信號,且對該輸入數據的該第n碼元(Dn)與該第(n+1)碼元(Dn+1)進行積分,並比較該第n碼元D n與該第(n+1)碼元D n+1的該積分時間,來產生一數位信號,該數位信號用以指示該第n碼元D n與該第(n+1)碼元D n+1的其中之一。 The integration comparison circuit 4 receives the input data and the clock signal, and integrates the n-th symbol (Dn) and the (n + 1) -th symbol (Dn + 1) of the input data, and compares the n-th symbol The integration time of the symbol D n and the (n + 1) th symbol D n + 1 to generate a digital signal for indicating the nth symbol D n and the (n + 1) th One of the symbols D n + 1 .

如圖4所示,該積分比較電路3包括一積分器6、一比較器7。As shown in FIG. 4, the integration comparison circuit 3 includes an integrator 6 and a comparator 7.

積分器6接收該輸入數據,且電連接該時鐘信號產生器1以接收該時鐘信號,且從該時鐘信號的第n個取樣緣CK n到該第(n+1)個取樣緣CK n+1之間,對該輸入數據的該第n碼元D n與該第(n+1)碼元D n+1進行積分,以得到一積分結果。 The integrator 6 receives the input data and is electrically connected to the clock signal generator 1 to receive the clock signal, and from the nth sampling edge CK n of the clock signal to the (n + 1) th sampling edge CK n + Between 1 , the n-th symbol D n of the input data and the (n + 1) -th symbol D n + 1 are integrated to obtain an integration result.

比較器7電連接該積分器6以接收該積分結果,且比較該積分結果與一臨界值來輸出一數位信號,若該積分結果大於該臨界值,則該數位信號是一第一邏輯(1),若該積分結果小於該臨界值,則該數位信號是一第二邏輯(0)。The comparator 7 is electrically connected to the integrator 6 to receive the integration result, and compares the integration result with a threshold to output a digital signal. If the integration result is greater than the threshold, the digital signal is a first logic (1 ), If the integration result is less than the critical value, the digital signal is a second logic (0).

邏輯電路5電連接該比較器6與該數據取樣電路6,以接收來自該比較器的該數位信號及來自該數據取樣電路的該第n碼元與該第(n+1)碼元,且判斷該數位信號符合該第n碼元或是該第(n+1)碼元,來產生該控制信號。當該數位信號符合該第n碼元,表示該第n個取樣緣超前該第n碼元的中間點,則該控制信號指示減少頻率;當該數位信號符合該第(n+1)碼元,表示該第n個取樣緣落後該第n碼元的中間點,則該控制信號指示增加頻率。The logic circuit 5 is electrically connected to the comparator 6 and the data sampling circuit 6 to receive the digital signal from the comparator and the nth symbol and the (n + 1) th symbol from the data sampling circuit, and It is judged that the digital signal matches the nth symbol or the (n + 1) th symbol to generate the control signal. When the digital signal conforms to the n-th symbol, indicating that the n-th sampling edge leads the midpoint of the n-th symbol, the control signal indicates a reduction in frequency; when the digital signal corresponds to the (n + 1) -th symbol , Indicating that the nth sampling edge lags behind the midpoint of the nth symbol, then the control signal indicates an increase in frequency.

參閱表一,為圖1與圖3中各信號的變化關係。 <TABLE border="1" borderColor="#000000" width="85%"><TBODY><tr><td> D<sub>n</sub></td><td> E<sub>n</sub></td><td> D<sub>n+1</sub></td><td> UP </td><td> DN </td><td> Icp </td><td> VCTRL </td><td> fo </td></tr><tr><td> 0 </td><td> 0 </td><td> 0 </td><td> 0 </td><td> 0 </td><td> 0 </td><td> 不變 </td><td> 不變 </td></tr><tr><td> 0 </td><td> 0 </td><td> 1 </td><td> 0 </td><td> 1 </td><td> - </td><td> 下降 </td><td> 下降 </td></tr><tr><td> 0 </td><td> 1 </td><td> 1 </td><td> 1 </td><td> 0 </td><td> + </td><td> 上升 </td><td> 上升 </td></tr><tr><td> 1 </td><td> 0 </td><td> 0 </td><td> 1 </td><td> 0 </td><td> + </td><td> 上升 </td><td> 上升 </td></tr><tr><td> 1 </td><td> 1 </td><td> 0 </td><td> 0 </td><td> 1 </td><td> - </td><td> 下降 </td><td> 下降 </td></tr><tr><td> 1 </td><td> 1 </td><td> 1 </td><td> 0 </td><td> 0 </td><td> 0 </td><td> 不變 </td><td> 不變 </td></tr></TBODY></TABLE>表一 Refer to Table 1 for the relationship between the signals in Figure 1 and Figure 3.         <TABLE border = "1" borderColor = "# 000000" width = "85%"> <TBODY> <tr> <td> D <sub> n </ sub> </ td> <td> E <sub> n </ sub> </ td> <td> D <sub> n + 1 </ sub> </ td> <td> UP </ td> <td> DN </ td> <td> Icp </ td> <td> VCTRL </ td> <td> fo </ td> </ tr> <tr> <td> 0 </ td> <td> 0 </ td> <td> 0 </ td> <td> 0 </ td> <td> 0 </ td> <td> 0 </ td> <td> unchanged </ td> <td> unchanged </ td> </ tr> <tr> <td> 0 </ td> <td> 0 </ td> <td> 1 </ td> <td> 0 </ td> <td> 1 </ td> <td>-</ td> <td> down </ td> <td> down </ td> </ tr> <tr> <td> 0 </ td> <td> 1 </ td> <td> 1 </ td> <td> 1 </ td> < td> 0 </ td> <td> + </ td> <td> rise </ td> <td> rise </ td> </ tr> <tr> <td> 1 </ td> <td> 0 </ td> <td> 0 </ td> <td> 1 </ td> <td> 0 </ td> <td> + </ td> <td> rise </ td> <td> rise </ td> </ tr> <tr> <td> 1 </ td> <td> 1 </ td> <td> 0 </ td> <td> 0 </ td> <td> 1 </ td> < td>-</ td> <td> down </ td> <td> down </ td> </ tr> <tr> <td> 1 </ td> <td> 1 </ td> <td> 1 </ td> <td> 0 </ td> <td> 0 </ td> <td> 0 </ td> <td> unchanged </ td> <td> unchanged </ td> </ tr> </ TBODY> </ TABLE> Table 1       

其中,參數Icp為電荷泵10輸出的電流,電流極性為正(+)時表示電荷泵10向濾波器11注入電流,電流極性為負(-)時表示從濾波器11抽出電流。參數V CTRL為振盪器12的控制電壓。參數fo為時鐘信號的頻率。參數E n為積分比較電路4所輸出的數位信號。 The parameter Icp is the current output by the charge pump 10. When the current polarity is positive (+), it indicates that the charge pump 10 is injecting current into the filter 11. When the current polarity is negative (−), it indicates that the current is drawn from the filter 11. The parameter V CTRL is the control voltage of the oscillator 12. The parameter fo is the frequency of the clock signal. E n is a parameter integral digital signal comparison circuit 4 outputs.

如圖5所示,該第n碼元D n的該積分時間T n是從該時鐘信號的第n個取樣緣CK n到該二碼元間的轉態點,該第(n+1)碼元的該積分時間T n+1是從該二碼元間的轉態點到該時鐘信號的第(n+1)個取樣緣CK n+15, the integration time of the n-th symbol D n T n from the n-th sampling edge of the clock signal CK to the transient n points between the two symbols of the (n + 1) The integration time Tn + 1 of the symbol is from the transition point between the two symbols to the (n + 1) th sampling edge CKn + 1 of the clock signal.

當該鑒相器2判斷一第n碼元D n與一第(n+1)碼元D n+1間沒有發生轉態時,則該控制信號維持該時鐘信號的該頻率,也就是輸入數據中沒有發生高低電位的轉換時,控制信號UP、DN則一直為0。又值得注意的是,未鎖定前,所輸出的數據和恢復出的時鐘信號均不正確。 When the phase detector 2 determines that there is no transition between an n-th symbol D n and a (n + 1) -th symbol D n + 1 , the control signal maintains the frequency of the clock signal, that is, the input When no high or low potential transition occurs in the data, the control signals UP and DN are always 0. It is also worth noting that before unlocking, both the output data and the recovered clock signal are incorrect.

當該鑒相器2判斷輸入數據的一第n碼元D n與一第(n+1)碼元D n+1之間有發生轉態時,1≦n≦(N-1),n為正整數,轉態的定義是高低邏輯準位的變換,該鑒相器2判斷該第n碼元D n的一積分時間T n大於該第(n+1)碼元D n+1的一積分時間T n+1,也就是時鐘信號相位超前時,則該鑒相器2調整該控制信號以降低該時鐘信號的該頻率,在此舉例說明,假設第n個碼元D n是邏輯1(極性為正),第n+1個碼元D n+1是邏輯0(極性為負),當時鐘信號相位領先時,積分器6對第n個碼元D n的積分時間T n大於對第n+1個碼元D n+1的積分時間T n+1,因此總積分結果極性為正,比較器7的數位信號En=1,與對第n個碼元D n的取樣結果相同,即En=Dn。時鐘信號(CKD)相位超前時的整個CDR的運作如圖6所示,鑒相器2的控制信號DN=1,電荷泵10從濾波器抽出電荷,控制電壓V CTRL下降,使振盪器12輸出的時鐘信號的頻率下降,時鐘信號的相位後移。 When the phase detector 2 determines that a transition occurs between an n-th symbol D n and an (n + 1) -th symbol D n + 1 of the input data, 1 ≦ n ≦ (N-1), n It is a positive integer, and the definition of the transition is the transformation of high and low logic levels. The phase detector 2 determines that an integration time T n of the nth symbol D n is greater than that of the (n + 1) th symbol D n + 1 An integration time T n + 1 , that is, when the phase of the clock signal leads, the phase detector 2 adjusts the control signal to reduce the frequency of the clock signal. For example, assume that the n-th symbol D n is a logic 1 (positive polarity), the first n + 1 symbols D n + 1 is a logic 0 (negative polarity), when the clock signal a phase lead, the integrator 6 to n symbols D n integration time T n Is greater than the integration time T n + 1 for the n + 1th symbol D n + 1 , so the polarity of the total integration result is positive, the digital signal En = 1 of the comparator 7 is different from the sampling of the nth symbol D n The result is the same, namely En = Dn. The operation of the entire CDR when the phase of the clock signal (CKD) is advanced is shown in FIG. 6, the control signal DN = 1 of the phase detector 2, the charge pump 10 extracts the charge from the filter, the control voltage V CTRL drops, and the oscillator 12 outputs The frequency of the clock signal drops, and the phase of the clock signal shifts backward.

當該鑒相器2判斷該第n碼元的一積分時間T n小於該第(n+1)碼元的一積分時間T n+1,也就是時鐘信號相位落後時,則該鑒相器2調整該控制信號以增加該時鐘信號的該頻率,由於時鐘信號相位落後時,積分器6對第n個碼元D n的積分時間T n小於對第n+1個碼元D n+1的積分時間T n+1,因此總積分結果極性為負,此時,En= D n+1。時鐘信號相位落後時的整個CDR的運作如圖7所示,整個CDR的運作是鑒相器2的控制信號UP=1,電荷泵10向濾波器11注入電荷,控制電壓V CTRL上升,使振盪器12輸出的時鐘信號頻率上升,時鐘相位前移。 When the phase detector 2 determines the n-th symbol of an integral time T n is less than the first (n + 1) symbols of an integration time T n + 1, the time is a clock signal delayed in phase, the phase detector 2 Adjust the control signal to increase the frequency of the clock signal. When the phase of the clock signal lags behind, the integration time T n of the nth symbol D n by the integrator 6 is less than that of the n + 1 symbol D n + 1 The integration time T n + 1 , so the polarity of the total integration result is negative, at this time, En = D n + 1 . The operation of the entire CDR when the clock signal phase lags is shown in FIG. 7. The operation of the entire CDR is the control signal UP = 1 of the phase detector 2, the charge pump 10 injects charge into the filter 11, and the control voltage V CTRL rises to cause oscillation The frequency of the clock signal output from the device 12 rises, and the clock phase shifts forward.

當相位鎖定時,數據的取樣點位於碼元正中間,即獲得最佳取樣點,此時,該第n碼元D n的一積分時間T n等於該第(n+1)碼元D n+1的一積分時間T n+1。鎖定時,因為En的值隨機地等於Dn或Dn+1。 When phase locked, the node data symbols located in the middle, i.e. the best sampling point, at this time, the n-th symbol D n of a equal to the integration time T n of the (n + 1) symbol D n An integration time T n + 1 of +1 . When locked, because the value of En is randomly equal to Dn or Dn + 1.

綜上所述,由於上述實施例CDR中的鑒相器2,無需額外的對輸入數據進行邊緣取樣(僅使用一個取樣邊緣對一個碼元取樣),也就是所需的時鐘信號的取樣頻率相同於數據傳輸率,也就是只有現有CDR技術所需時鐘取樣頻率的一半,其功效為將使整個CDR電路所需的功耗顯著減小,另外,若是以同頻率但多個不同相位的時鐘信號來取樣的技術上,當應用在高速設計中時,也由於降低了取樣率,假設分別具有八個不同相位的八個時鐘信號(1GHz)提供到現有的鑒相器,使其據以來對4Gbps的輸入數據進行二倍過取樣(8Gbps),採用本發明的鑒相器就只需要四個相位,實現波特率取樣(4Gbps),相位減少了一半而有助於解決多相位時鐘匹配的困難,故確實能達成本發明之目的。In summary, because of the phase detector 2 in the CDR of the above embodiment, there is no need for additional edge sampling of the input data (only one sampling edge is used to sample one symbol), that is, the required sampling frequency of the clock signal is the same Due to the data transmission rate, which is only half of the clock sampling frequency required by the existing CDR technology, its effect is to significantly reduce the power consumption of the entire CDR circuit. In addition, if it is a clock signal of the same frequency but multiple different phases In terms of sampling technology, when applied in high-speed design, because of the reduced sampling rate, it is assumed that eight clock signals (1 GHz) with eight different phases are provided to the existing phase detector, which makes it 4Gbps The input data is double oversampling (8Gbps), using the phase detector of the present invention only requires four phases to achieve baud rate sampling (4Gbps), the phase is reduced by half, which helps solve the difficulty of multi-phase clock matching Therefore, the purpose of cost invention can indeed be achieved.

惟以上所述者,僅為本發明之實施例而已,當不能以此限定本發明實施之範圍,凡是依本發明申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。However, the above are only examples of the present invention, and should not be used to limit the scope of implementation of the present invention, any simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the content of the patent specification are still considered as Within the scope of the invention patent.

1‧‧‧時鐘信號產生器
10‧‧‧電荷泵
11‧‧‧濾波器
12‧‧‧振盪器
2‧‧‧鑒相器
3‧‧‧數據取樣電路
4‧‧‧積分比較電路
5‧‧‧邏輯電路
6‧‧‧積分器
7‧‧‧比較器
CK‧‧‧時鐘信號
Data‧‧‧輸入數據
En‧‧‧數位信號
Dn‧‧‧碼元
Dn+1‧‧‧碼元
CKn‧‧‧第n個取樣緣
CKn+1‧‧‧第(n+1)個取樣緣
UP‧‧‧控制信號
DN‧‧‧控制信號
ICP‧‧‧電流
VCTRL‧‧‧控制電壓
1‧‧‧ Clock generator
10‧‧‧charge pump
11‧‧‧filter
12‧‧‧Oscillator
2‧‧‧Phase detector
3‧‧‧Data sampling circuit
4‧‧‧ Integral comparison circuit
5‧‧‧Logic circuit
6‧‧‧Integrator
7‧‧‧Comparator
CK‧‧‧clock signal
Data‧‧‧Enter data
En‧‧‧Digital signal
Dn‧‧‧ symbol
Dn + 1‧‧‧ symbol
CKn‧‧‧nth sampling edge
CKn + 1‧‧‧th (n + 1) th sampling edge
UP‧‧‧Control signal
DN‧‧‧Control signal
I CP ‧‧‧ current
V CTRL ‧‧‧ control voltage

本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是本發明時鐘與數據回復裝置的一實施例的一電路圖; 圖2是該實施例的一時序圖; 圖3是該實施例的鑒相器的一電路圖; 圖4是該實施例的積分比較電路的一電路圖; 圖5是該實施例的積分器的一積分相位圖; 圖6是該實施例的CDR的相位超前時運作之一時序圖; 圖7是該實施例的CDR的相位落後時運作之一時序圖。Other features and functions of the present invention will be clearly presented in the embodiment with reference to the drawings, in which: FIG. 1 is a circuit diagram of an embodiment of the clock and data recovery device of the present invention; FIG. 2 is a moment of the embodiment Sequence diagram; FIG. 3 is a circuit diagram of the phase discriminator of this embodiment; FIG. 4 is a circuit diagram of the integration comparison circuit of this embodiment; FIG. 5 is an integration phase diagram of the integrator of this embodiment; FIG. 6 is this FIG. 7 is a timing diagram of the operation of the CDR when the phase of the embodiment is advanced; FIG. 7 is a timing diagram of the operation of the CDR when the phase of the embodiment is behind.

Claims (8)

一種時鐘與數據回復裝置,包含: 一時鐘信號產生器,接收一控制信號,且根據該控制信號產生一時鐘信號,該控制信號用以調整該時鐘信號的一頻率; 一鑒相器,接收一具有第一至第N個碼元的輸入數據, N≧2,N為正整數,且電連接該時鐘信號產生器以接收該時鐘信號,且根據該時鐘信號的與該輸入數據產生該控制信號; 當該鑒相器判斷一第n碼元與一第(n+1)碼元之間有發生轉態時,1≦n≦(N-1),n為正整數,轉態的定義是高低邏輯準位的變換, 該鑒相器判斷該第n碼元的一積分時間大於該第(n+1)碼元的一積分時間,則該鑒相器調整該控制信號以降低該時鐘信號的該頻率,該第n碼元的該積分時間是從該時鐘信號的第n個取樣緣到該二碼元間的轉態點,該第(n+1)碼元的該積分時間是從該二碼元間的轉態點到該時鐘信號的第(n+1)個取樣緣。A clock and data recovery device includes: a clock signal generator, receiving a control signal, and generating a clock signal according to the control signal, the control signal is used to adjust a frequency of the clock signal; a phase detector, receiving a Input data with the first to Nth symbols, N ≧ 2, N is a positive integer, and is electrically connected to the clock signal generator to receive the clock signal, and generates the control signal according to the clock signal and the input data ; When the phase detector judges that a transition occurs between an nth symbol and a (n + 1) th symbol, 1 ≦ n ≦ (N-1), n is a positive integer, and the definition of the transition is For the conversion of high and low logic levels, the phase detector determines that an integration time of the nth symbol is greater than an integration time of the (n + 1) th symbol, then the phase detector adjusts the control signal to reduce the clock signal The frequency of, the integration time of the nth symbol is the transition point from the nth sampling edge of the clock signal to the two symbols, and the integration time of the (n + 1) th symbol is from The transition point between the two symbols reaches the (n + 1) th sampling edge of the clock signal. 如請求項1所述的時鐘與數據回復裝置,其中,該鑒相器判斷該第n碼元的一積分時間小於該第(n+1)碼元的一積分時間,則該鑒相器調整該控制信號以增加該時鐘信號的該頻率。The clock and data reply device according to claim 1, wherein the phase detector determines that an integration time of the nth symbol is less than an integration time of the (n + 1) th symbol, then the phase detector adjusts The control signal increases the frequency of the clock signal. 如請求項1所述的時鐘與數據回復裝置,其中,當該鑒相器判斷一第n碼元與一第(n+1)碼元間沒有發生轉態時,則該控制信號維持該時鐘信號的該頻率。The clock and data reply device according to claim 1, wherein when the phase detector determines that there is no transition between an n-th symbol and an (n + 1) -th symbol, the control signal maintains the clock The frequency of the signal. 如請求項1所述的時鐘與數據回復裝置,其中,該鑒相器包括: 一數據取樣電路,接收該輸入數據,且電連接該時鐘信號產生器以接收該時鐘信號,根據該時鐘信號來對該輸入數據進行取樣,以產生該第一至第N個碼元; 一積分比較電路,接收該輸入數據及該時鐘信號,且對該輸入數據的該第n碼元與該第(n+1)碼元進行積分,並比較該第n碼元與該第(n+1)碼元的該積分時間,來產生一數位信號,該數位信號用以指示該第n碼元與該第(n+1)碼元的其中之一; 一邏輯電路,電連接該比較器與該數據取樣電路,以接收來自該比較器的該數位信號及來自該數據取樣電路的該第n碼元與該第(n+1)碼元,且判斷該數位信號符合該第n碼元或是該第(n+1)碼元,來產生該控制信號, 當該數位信號符合該第n碼元,表示該第n個取樣緣超前該第n碼元的中間點,則該控制信號指示減少頻率; 當該數位信號符合該第(n+1)碼元,表示該第n個取樣緣落後該第n碼元的中間點,則該控制信號指示增加頻率。The clock and data reply device according to claim 1, wherein the phase detector includes: a data sampling circuit that receives the input data, and is electrically connected to the clock signal generator to receive the clock signal, based on the clock signal Sampling the input data to generate the first to Nth symbols; an integration comparison circuit that receives the input data and the clock signal, and the nth symbol and the (n + 1) The symbols are integrated, and the integration time of the nth symbol and the (n + 1) th symbol is compared to generate a digital signal, which is used to indicate the nth symbol and the ( n + 1) one of the symbols; a logic circuit electrically connecting the comparator and the data sampling circuit to receive the digital signal from the comparator and the n-th symbol from the data sampling circuit and the The (n + 1) th symbol, and it is judged that the digital signal matches the nth symbol or the (n + 1) th symbol to generate the control signal, when the digital signal matches the nth symbol, it means The nth sampling edge leads the midpoint of the nth symbol, then the control signal Frequency; when the digital signal conforms to the first (n + 1) symbol, indicating that the backward edge of the n-th sampling the n-th symbol intermediate point, the control signal indicates the frequency increases. 如請求項4所述的時鐘與數據回復裝置,其中,該積分比較電路包括: 一積分器,接收該輸入數據,且電連接該時鐘信號產生器以接收該時鐘信號,且從該時鐘信號的第n個取樣緣到該第(n+1)個取樣緣之間,對該輸入數據的該第n碼元與該第(n+1)碼元進行積分,以得到一積分結果; 一比較器,電連接該積分器以接收該積分結果,且比較該積分結果與一臨界值來輸出一數位信號,若該積分結果大於該臨界值,則該數位信號是一第一邏輯(1),若該積分結果小於該臨界值,則該數位信號是一第二邏輯(0)。The clock and data reply device according to claim 4, wherein the integration comparison circuit includes: an integrator that receives the input data, and is electrically connected to the clock signal generator to receive the clock signal, and from the clock signal From the nth sampling edge to the (n + 1) th sampling edge, integrate the nth symbol and the (n + 1) th symbol of the input data to obtain an integration result; a comparison Is connected to the integrator to receive the integration result and compare the integration result with a threshold to output a digital signal. If the integration result is greater than the threshold, the digital signal is a first logic (1), If the integration result is less than the critical value, the digital signal is a second logic (0). 如請求項1所述的時鐘與數據回復裝置其中,該時鐘信號產生器包括: 一電荷泵,接收該控制信號,且根據該控制信號產生一電流; 一濾波器,電連接該電荷泵以接收該電流,且將該電流轉換成一控制電壓,當該電流流入該濾波器時,該控制電壓增加,當該電流流出該濾波器時,該控制電壓減少; 一振盪器,用以產生該時鐘信號,電連接該濾波器以接收該控制電壓,且根據該控制電壓調整該時鐘信號的該頻率,該頻率正比該控制電壓。The clock and data recovery device according to claim 1, wherein the clock signal generator includes: a charge pump that receives the control signal and generates a current according to the control signal; and a filter that is electrically connected to the charge pump to receive The current, and the current is converted into a control voltage, when the current flows into the filter, the control voltage increases, when the current flows out of the filter, the control voltage decreases; an oscillator is used to generate the clock signal , The filter is electrically connected to receive the control voltage, and the frequency of the clock signal is adjusted according to the control voltage, the frequency being proportional to the control voltage. 一種鑒相器,適用於電連接一時鐘信號產生器,該時鐘信號產生器產生一時鐘信號,該鑒相器用以產生一控制信號來控制該時鐘信號的一頻率,且該鑒相器包括: 一數據取樣電路,接收一具有第一至第N個碼元的輸入數據, N≧2,N為正整數,且電連接該時鐘信號產生器以接收該時鐘信號,根據該時鐘信號來對該輸入數據進行取樣,以產生該第一至第N個碼元; 一積分比較電路,接收該輸入數據及該時鐘信號,且對該輸入數據的該第n碼元與該第(n+1)碼元進行積分,並比較該第n碼元與該第(n+1)碼元的該積分時間,來產生一數位信號,該數位信號用以指示該第n碼元與該第(n+1)碼元的其中之一; 一邏輯電路,電連接該比較器與該數據取樣電路,以接收來自該比較器的該數位信號及來自該數據取樣電路的該第n碼元與該第(n+1)碼元,且判斷該數位信號符合該第n碼元或是該第(n+1)碼元,來產生該控制信號, 當該數位信號符合該第n碼元,表示該第n個取樣緣超前該第n碼元的中間點,則該控制信號指示減少頻率; 當該數位信號符合該第(n+1)碼元,表示該第n個取樣緣落後該第n碼元的中間點,則該控制信號指示增加頻率。A phase discriminator is suitable for electrically connecting a clock signal generator, the clock signal generator generates a clock signal, the phase discriminator is used to generate a control signal to control a frequency of the clock signal, and the phase discriminator includes: A data sampling circuit receives an input data having the first to Nth symbols, N ≧ 2, N is a positive integer, and is electrically connected to the clock signal generator to receive the clock signal, based on the clock signal The input data is sampled to generate the first to Nth symbols; an integration comparison circuit receives the input data and the clock signal, and the nth symbol and the (n + 1) th of the input data The symbols are integrated, and the integration time of the nth symbol and the (n + 1) th symbol is compared to generate a digital signal, which is used to indicate the nth symbol and the (n + 1) One of the symbols; a logic circuit electrically connecting the comparator and the data sampling circuit to receive the digital signal from the comparator and the n-th symbol and the (( n + 1) symbol, and judge that the digital signal conforms to the nth A symbol or the (n + 1) th symbol to generate the control signal, when the digital signal matches the nth symbol, indicating that the nth sampling edge leads the midpoint of the nth symbol, then the The control signal instructs to decrease the frequency; when the digital signal matches the (n + 1) th symbol, indicating that the nth sampling edge lags behind the midpoint of the nth symbol, the control signal instructs to increase the frequency. 如請求項7所述的鑒相器,其中,該積分比較電路包括: 一積分器,接收該輸入數據,且電連接該時鐘信號產生器以接收該時鐘信號,且從該時鐘信號的第n個取樣緣到該第(n+1)個取樣緣之間,對該輸入數據的該第n碼元與該第(n+1)碼元進行積分,以得到一積分結果; 一比較器,電連接該積分器以接收該積分結果,且比較該積分結果與一臨界值來輸出一數位信號,若該積分結果大於該臨界值,則該數位信號是一第一邏輯(1),若該積分結果小於該臨界值,則該數位信號是一第二邏輯(0)。The phase discriminator according to claim 7, wherein the integration comparison circuit includes: an integrator that receives the input data, and is electrically connected to the clock signal generator to receive the clock signal, and from the nth of the clock signal From the sampling edge to the (n + 1) th sampling edge, integrate the nth symbol and the (n + 1) th symbol of the input data to obtain an integration result; a comparator, The integrator is electrically connected to receive the integration result and compare the integration result with a critical value to output a digital signal. If the integration result is greater than the critical value, the digital signal is a first logic (1), if the If the integration result is less than the critical value, the digital signal is a second logic (0).
TW106125027A 2017-07-26 2017-07-26 Phase detector and clock and data recovery device TWI630799B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106125027A TWI630799B (en) 2017-07-26 2017-07-26 Phase detector and clock and data recovery device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106125027A TWI630799B (en) 2017-07-26 2017-07-26 Phase detector and clock and data recovery device

Publications (2)

Publication Number Publication Date
TWI630799B true TWI630799B (en) 2018-07-21
TW201911755A TW201911755A (en) 2019-03-16

Family

ID=63640490

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106125027A TWI630799B (en) 2017-07-26 2017-07-26 Phase detector and clock and data recovery device

Country Status (1)

Country Link
TW (1) TWI630799B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112583539A (en) * 2019-09-30 2021-03-30 瑞昱半导体股份有限公司 Signal detection circuit and signal detection method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7173993B2 (en) * 2002-01-30 2007-02-06 Infineon Technologies Ag Method for sampling phase control
TW201235681A (en) * 2011-02-18 2012-09-01 Realtek Semiconductor Corp Method and circuit of clock data recovery with built in jitter tolerance test
US8903030B2 (en) * 2012-11-07 2014-12-02 Taiwan Semiconductor Manufacturing Co., Ltd. Clock data recovery circuit with hybrid second order digital filter having distinct phase and frequency correction latencies
CN106656168A (en) * 2016-12-30 2017-05-10 北京集创北方科技股份有限公司 Clock data restoration device and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7173993B2 (en) * 2002-01-30 2007-02-06 Infineon Technologies Ag Method for sampling phase control
TW201235681A (en) * 2011-02-18 2012-09-01 Realtek Semiconductor Corp Method and circuit of clock data recovery with built in jitter tolerance test
US8903030B2 (en) * 2012-11-07 2014-12-02 Taiwan Semiconductor Manufacturing Co., Ltd. Clock data recovery circuit with hybrid second order digital filter having distinct phase and frequency correction latencies
CN106656168A (en) * 2016-12-30 2017-05-10 北京集创北方科技股份有限公司 Clock data restoration device and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112583539A (en) * 2019-09-30 2021-03-30 瑞昱半导体股份有限公司 Signal detection circuit and signal detection method

Also Published As

Publication number Publication date
TW201911755A (en) 2019-03-16

Similar Documents

Publication Publication Date Title
US6310521B1 (en) Reference-free clock generation and data recovery PLL
US6914953B2 (en) Multiphase clock recovery using D-type phase detector
US9300461B2 (en) Reception circuit
US8315349B2 (en) Bang-bang phase detector with sub-rate clock
JP3649194B2 (en) PLL circuit and optical communication receiver
EP1199805B1 (en) PLL circuit and optical communication reception apparatus
US10116433B2 (en) Circuit arrangement and method for clock and data recovery
US7606343B2 (en) Phase-locked-loop with reduced clock jitter
US7397881B2 (en) Erroneous phase lock detection circuit
US6819728B2 (en) Self-correcting multiphase clock recovery
US10530563B2 (en) Clock synchronization device
JP5520128B2 (en) Clock and data recovery circuit
TWI630799B (en) Phase detector and clock and data recovery device
EP1199806B1 (en) PLL circuit and optical communication reception apparatus
US10484218B2 (en) PWM demodulation
US6650146B2 (en) Digital frequency comparator
US6218907B1 (en) Frequency comparator and PLL circuit using the same
JP2005086789A (en) Clock data recovery circuit
Sanchez-Azqueta et al. A phase detection scheme for clock and data recovery applications
CN108011620B (en) Fast clock recovery circuit based on FPGA
Kakehbra et al. A Fast-Lock, Low Jitter, High-Speed Half-Rate CDR Architecture with a Composite Phase Detector (CPD)
KR940000942B1 (en) Bit synchronous circuit
Bui High speed CDR using a novel binary phase detector with probable-lock-detection
KR20080051662A (en) High-speed clock and data recovery circuit using quarter rate clock
Lee et al. A new phase detector scheme for reducing jitter in clock recovery circuits