Clock and data recovery device and training method thereof
11153064 · 2021-10-19
Assignee
Inventors
Cpc classification
H04L7/0054
ELECTRICITY
H04L7/033
ELECTRICITY
International classification
Abstract
A clock and data recovery (CDR) device includes a data sampler configured to output a data signal by sampling an input signal according to a first clock signal; an edge sampler configured to output an edge signal by sampling the input signal according to a second clock signal, the second clock signal having substantially the same frequency as the first clock signal and having substantially an opposite phase to the first clock signal; an error detection circuit configured to identify a plurality of patterns based on the data signal and the edged signal and generate an error signal according to occurrence frequencies of the identified plurality of patterns; and an oscillation control circuit configured to generate a first oscillation control signal to control an oscillator generating the first and second clock signal according to the error signal.
Claims
1. A clock and data recovery (CDR) device comprising: a data sampler configured to output a data signal by sampling an input signal according to a first clock signal; an edge sampler configured to output an edge signal by sampling the input signal according to a second clock signal, the second clock signal having substantially the same frequency as the first clock signal and having substantially an opposite phase to the first clock signal; an error detection circuit configured to identify a plurality of patterns based on the data signal and the edge signal and generate an error signal according to occurrence frequencies of the identified plurality of patterns; and an oscillation control circuit configured to generate a first oscillation control signal to control an oscillator generating the first and second clock signals according to the error signal.
2. The CDR device of claim 1, wherein the error detection circuit comprises: a pattern detection circuit configured to generate a plurality of pattern signals corresponding to the plurality of patterns; a histogram generation circuit configured to generate a histogram by accumulating numbers of occurrences of the plurality of pattern signals for a predetermined time interval; and an error calculation circuit configured to generate the error signal according to the occurrence frequencies and a plurality of weights.
3. The CDR device of claim 1, further comprising a first multiplier configured to multiply a value of the error signal with a first constant, wherein the oscillation control circuit is controlled by an output of the first multiplier.
4. The CDR device of claim 1, further comprising a phase comparator configured to compare a phase of the data signal and a phase of the edge signal to generate a comparison signal, wherein the oscillator is controlled by the comparison signal.
5. The CDR device of claim 4, further comprising a second multiplier configured to multiply a value of the comparison signal of the phase comparator with a second constant, wherein the oscillation control circuit is controlled by an output of the second multiplier.
6. The CDR device of claim 1, further comprising an analog receiving circuit for receiving a received signal to provide the input signal to the data sampler and the edge sampler.
7. The CDR device of claim 1, wherein each of the plurality of patterns is determined by a combination of a first value of the data signal, a second value of the edge signal, and a third value of the data signal, the first value, the second value, and the third value being sequentially provided from the data sampler and the edge sampler.
8. A training method of a clock and data recovery (CDR) device, wherein the CDR device samples an input signal according to a first clock signal to generate a data signal, samples the input signal according to a second clock signal to generate an edge signal, identifies a plurality of patterns based on the data signal and the edge signal, and generates an error signal by calculating a plurality of weights and occurrence frequencies of the plurality of patterns, the training method comprising: generating a plurality of histograms according to a phase difference between the input signal and a clock signal, or a frequency difference between the input signal and the clock signal, or both, the clock signal being the first clock signal or the second clock signal; calculating the plurality of weights based on a representative histogram selected from the plurality of histograms; generating a phase difference graph and a frequency difference graph by applying the plurality of weights to the plurality of histograms; and determining whether the phase difference graph and the frequency difference graph satisfy a predetermined condition.
9. The training method of claim 8, wherein the error signal corresponds to a difference between a first probability of being at a first state and a second probability of being at a second state, wherein the first state corresponds to a state where the phase difference between the input signal and the clock signal is positive or a state where the frequency difference between the input signal and the clock signal is positive, and wherein the second state corresponds to a state where the phase difference between the input signal and the clock signal is negative or a state where the frequency difference between the input signal and the clock signal is negative.
10. The training method of claim 9, wherein each of the plurality of weights corresponds to a difference between a first conditional probability of being at the first state when a corresponding pattern has occurred and a second conditional probability of being at the second state when the corresponding pattern has occurred.
11. The training method of claim 9, wherein the phase difference is positive when the clock signal lags the input signal, and the frequency difference is positive when a frequency of the clock signal is lower than that of the input signal, and wherein the phase difference is negative when the clock signal leads the input signal, and the frequency difference is negative when a frequency of the clock signal is higher than that of the input signal.
12. The training method of claim 8, wherein the plurality of histograms includes a first histogram corresponding to a first state and a second histogram corresponding to a second state, a magnitude of a first phase difference in the first state being the same as that of a second phase difference in the second state, a sign of the first phase difference being opposite to that of the second phase difference.
13. The training method of claim 8, wherein the plurality of histograms includes a first histogram corresponding to a first state and a second histogram corresponding to a second state, a magnitude of a first frequency difference in the first state being the same as that of a second frequency difference in the second state, a sign of the first frequency difference being opposite to that of the second frequency difference.
14. The training method of claim 8, wherein the plurality of histograms includes a first histogram corresponding to a first state and a second histogram corresponding to a second state, a magnitude of a first phase difference in the first state being the same as that of a second phase difference in the second state, a sign of the first phase difference being opposite to that of the second phase difference, wherein the plurality of histograms further includes a third histogram corresponding to a third state and a fourth histogram corresponding to a fourth state, a magnitude of a first frequency difference in the third state being the same as that of a second frequency difference in the fourth state, a sign of the first frequency difference being opposite to that of the second frequency difference, and wherein the plurality of histograms further includes fifth and sixth histograms, the fifth histogram being generated by combining the first histogram and the third histogram, the sixth histogram being generated by combining the second histogram and the fourth histogram.
15. The training method of claim 14, further comprising linearly combining a first plurality of occurrence frequencies of the first histogram and a second plurality of occurrence frequencies of the third histogram, respectively, to generate a third plurality of occurrence frequencies of the fifth histogram.
16. The training method of claim 8, further comprising: combining a first estimated value of the error signal where the phase difference is zero in the phase difference graph and a second estimated value of the error signal where the frequency difference is zero in the frequency difference graph; and comparing the combined value with a predetermined reference value to determine whether the phase difference graph and the frequency difference graph satisfy the predetermined condition.
17. The training method of claim 8, wherein the phase difference graph and the frequency difference graph satisfy the predetermined condition, when a first estimated value of the error signal where the phase difference is zero in the phase difference graph is equal to or less than a first reference value and a second estimated value of the error signal where the frequency difference is zero in the frequency difference graph is equal to or less than a second reference value.
18. The training method of claim 8, wherein the representative histogram is a first representative histogram, the method further comprising selecting a second representative histogram from the plurality of histograms when the predetermined condition is not satisfied.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The accompanying figures, where like reference numerals refer to identical or functionally similar elements throughout the separate views, together with the detailed description below, are incorporated in and form part of the specification, and serve to further illustrate various embodiments, and explain various principles and beneficial aspects of those embodiments.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
DETAILED DESCRIPTION
(14) The following detailed description references the accompanying figures in describing illustrative embodiments consistent with this disclosure. The embodiments are provided for illustrative purposes and are not exhaustive. Additional embodiments not explicitly illustrated or described and modifications are possible. The detailed description is not meant to limit this disclosure. Rather, the scope of the present disclosure is defined in accordance with claims and equivalents thereof. Also, throughout the specification, reference to “an embodiment” or the like is not necessarily to only one embodiment, and different references to any such phrase are not necessarily to the same embodiment(s).
(15)
(16) The CDR device 1 according to an embodiment includes a data sampler 10, an edge sampler 20, an oscillator 30, an error detection circuit 100, and an oscillation control circuit 200.
(17) The CDR device 1 may further include an analog receiving circuit 40 for outputting an input signal DIN from a received signal IN.
(18) The analog receiving circuit 40 may be implemented using a continuous time linear equalizer (CTLE), which is well known and thus detailed descriptions thereof will be omitted for the interest of brevity.
(19) If the analog receiving circuit 40 is not included, the received signal IN is the same as the input signal DIN.
(20) The received signal IN is substantially the same as the input signal DIN except that the input signal DIN has improved eye characteristics relative to the received signal IN.
(21) The oscillator 30 outputs a first clock signal CK and a second clock signal CKB according to a first oscillation control signal FC1.
(22) The first clock signal CK and the second clock signal CKB are two signals having substantially the opposite phases and have substantially the same frequency.
(23) Hereinafter, the first clock signal CK and the second clock signal CKB may be collectively referred to as a clock signal.
(24) The data sampler 10 samples the input signal DIN according to the first clock signal CK and outputs the data signal D.
(25) The edge sampler 20 samples the input signal DIN according to the second clock signal CKB and outputs the edge signal E.
(26) The error detection circuit 100 generates an error signal PFerr according to the data signal D and the edge signal E.
(27) The error signal PFerr may include both phase error information and frequency error information, and thus may be referred to as a phase frequency error signal.
(28) In an embodiment, the error detection circuit 100 calculates frequency of occurrences of a data-edge pattern generated by combining the data signal D and the edge signal E, and generates the error signal PFerr. Hereinafter, the data-edge pattern may be referred to as the pattern.
(29)
(30) The input signal DIN is sampled at the rising edge of the first clock signal CK to output the data signal D, and the input signal DIN is sampled at the rising edge of the second clock signal CKB to output the edge signal E.
(31) In the embodiment shown in
(32) In the embodiment of
(33) In this embodiment, patterns 0 and 7 can be grouped into 0.sup.th group G0, patterns 1 and 6 into 1.sup.st group G1, patterns 2 and 5 into 2.sup.nd group G2, and patterns 3 and 4 into 3.sup.rd group G3.
(34) In an embodiment, probabilities of occurrences of the patterns in the same group show the same tendency, which will be described below in detail.
(35) Returning to
(36) The pattern detection circuit 110 identifies patterns using the data signal D and the edge signal E and generates pattern signals P0 to P7 corresponding to the patterns. For example, when the pattern detection circuit 110 identifies a specific data-edge pattern (e.g., the fourth data-edge pattern “011”) using the data signal D and the edge signal E, the pattern detection circuit 110 may generate a pattern signal (e.g., the fourth pattern signal P3) corresponding to the identified specific data-edge pattern to have a first logic value (e.g., a high logic value) while generating the remaining pattern signals to have a second logic value (e.g., a low logic value).
(37) Since the pattern detection circuit 110 can be implemented by a person skilled in the art by combining logic gates, detailed descriptions thereof will be omitted for the interest of brevity.
(38) The histogram generation circuit 120 generates a histogram by accumulating respective numbers of occurrences of the pattern signals P0 to P7 for a predetermined time interval. For example, the histogram generation circuit 120 may accumulate the number of occurrences of a corresponding one of the pattern signals P0 to P7 by counting the number of asserting the corresponding one of the pattern signals P0 to P7 during a predetermined time interval.
(39) To this end, the histogram generation circuit 120 outputs a plurality of frequency signals N0 to N7 indicating occurrence frequencies and corresponding to pattern signals P0 to P7, respectively.
(40) The error calculation circuit 130 calculates the error signal PFerr from frequencies N0 to N7 and weights W0 to W7 corresponding to the frequencies N0 to N7, respectively.
(41) The weights may be obtained through a training method similar to machine learning, and the training method for determining the weights will be described below in detail.
(42) The error signal PFerr may be expressed as the following Equation 1:
(43)
(44) The oscillation control circuit 200 generates the first oscillation control signal FC1 according to the error signal PFerr.
(45) The oscillation control circuit 200 may accumulate the error signal PFerr for a predetermined time interval and modulate the error signal PFerr to generate the first oscillation control signal FC1.
(46) The oscillation control circuit 200 generates the first oscillation control signal FC1 so that the oscillator 30 operates in a direction in which the error signal PFerr is reduced by a negative feedback.
(47) Since the negative feedback technique itself is conventional, the oscillation control circuit 200 can be implemented by a person skilled in the art and a detailed implementation of the oscillation control circuit 200 will be omitted for the interest of brevity.
(48) The oscillator 30 adjusts the frequencies of the first clock signal CK and the second clock signal CKB according to the first oscillation control signal FC1.
(49) The CDR device 1 may further include a first multiplier 300 that multiplies the error signal PFerr by a first constant Ki. The first constant Ki may have a predetermined value.
(50) In this case, the output of the first multiplier 300 is provided to the oscillation control circuit 200, and the oscillation control circuit 200 may generate the first oscillation control signal FC1 according to the output of the first multiplier 300.
(51) When the value of the error signal PFerr converges to 0, it can be seen that the clock signal and the data signal are recovered normally, and this state may be referred to as a locked state.
(52) In this way, the error detection circuit 100 controls the oscillator 30 in accordance with the error signal PFerr generated according to the pattern of the data signal D and the edge signal E, so that the clock signal and the data signal are normally recovered from the input signal DIN.
(53) The CDR device 1 may further include a phase comparator 50.
(54) The phase comparator 50 may generate a comparison signal UD by comparing the phases of the data signal D and the edge signal E.
(55) The CDR device 1 may further include a second multiplier 60 that multiplies the comparison signal UD by a second constant Kp. The second constant Kp may have a predetermined value.
(56) The output of the second multiplier 60 may be provided as a second oscillation control signal FC2, and the oscillator 30 may control frequency of the first clock signal CK and the second clock signal CKB according to the second oscillation control signal FC2.
(57) While the CDR device 1 operates in the locked state, it may deviate from the locked state temporarily for various reasons.
(58) In this case, the comparison signal UD output from the phase comparator 50 can be used to make the CDR device 1 quickly return to the locked state.
(59) The oscillator 30 controls the frequency of the clock signal CK to make the CDR device 1 return to the locked state according to the second oscillation control signal FC2.
(60)
(61) The training method according to an embodiment of the present disclosure is similar to machine learning, which will be described below in detail.
(62) First, histograms are generated according to various phase differences, or frequency differences, or both at step S100.
(63) In this embodiment, a Pseudo Random Bit Sequence (PRBS) signal is used as the input signal DIN.
(64)
(65) In
(66) The phase difference P.sub.DIFF may be determined by measuring a phase difference between a rising edge of the second clock signal CKB and an edge of the input signal DIN.
(67) As shown in
(68) As shown in
(69) As shown in
(70) At this time, the streams of the data signal D and the edge signal E can be generated through experiments such as computer simulation.
(71) In this case, the input signal DIN, the first clock signal CK, and the second clock signal CKB may not be provided to a physical circuit shown in
(72) A histogram may be generated by accumulating stream of the data signals D and the edge signals E for a predetermined time interval.
(73)
(74) The frequency difference corresponds to a difference between frequency F.sub.D of the input signal DIN and frequency F.sub.c of the first clock signal CK.
(75) In
(76) As shown in
(77) As shown in
(78) As in
(79) As described above, the stream of the data signals D and the edge signals E can be generated through experiments such as computer simulation.
(80)
(81) At this time, the horizontal axis represents a pattern and the vertical axis represents probability of occurrence of each pattern.
(82)
(83)
(84) In order to generate a histogram as shown in
(85) In order to combine two histograms as a histogram, occurrence frequencies of the two histograms may be linearly combined, but combining method is not necessarily limited thereto. For example, an occurrence frequency (e.g., a probability of occurrence) of a specific pattern (e.g., a first pattern 0) in
(86) In order to generate a histogram as shown in
(87) Returning to
(88)
(89) In the embodiment of
(90) At this time, phase differences corresponding to the “LATE” state and the “EARLY” state have the same magnitude and the opposite sign and frequency differences corresponding to the “LATE” state and the “EARLY” state have the same magnitude and the opposite sign.
(91) As described above, since the error signal PFerr is a linear combination of weights corresponding to patterns, the error signal PFerr corresponds to a difference between first probability of being in the “EARLY” state and second probability of being in the “LATE” state.
(92) That is, it can be understood that the oscillation control circuit 200 controls a difference between the first probability and the second probability to converge to zero so that the phase and frequency becomes at a locked state.
(93) In the embodiment of
(94) This can be expressed as an equation as follows:
(95)
(96) For example, the weight W0 corresponding to the pattern 0 using the histograms of
(97) Weights for the remaining patterns can be determined in a similar manner as described above.
(98) As shown in
(99) Returning to
(100)
(101) The value of the error signal PFerr given by Equation 1 may be calculated by applying the weights in
(102) When this process is applied to a plurality of histograms, the value of the error signal PFerr according to phase difference may be calculated and plotted as shown in the phase difference graph of
(103) As described above, since the error signal PFerr is expressed as a linear combination of weights, it may indicate a difference between the probability of being in a first state (e.g., the “LATE” state) and the probability of being in a second state (e.g., the “EARLY” state.)
(104) The phase difference graph of
(105) However, in the frequency difference graph of
(106) This can be understood because the weights are calculated using a histogram without information on the frequency difference as shown in
(107) Accordingly, in
(108)
(109) The method of calculating the weight is the same as described above with reference to
(110)
(111) Since the method of generating the phase difference graph and the frequency difference graph is the same as described above, repeated descriptions are omitted.
(112)
(113) In this case, the predetermined condition is satisfied at step S400 of
(114) Whether the predetermined condition at step S400 of
(115) The predetermined formula may vary according to embodiments, and in this embodiment, it is assumed that the weights of
(116) As described above, the method in
(117) Accordingly, the method in
(118) Although various embodiments have been illustrated and described, various changes and modifications may be made to the described embodiments without departing from the spirit and scope of the invention as defined by the following claims.