The present invention relates to a circuit for extracting a clock signal from received data, thereby recovering data. More specifically, the invention relates to a circuit suitable for being applied to a serial interface and a semiconductor device.
The input data signal is sampled by the latch circuits 102 (constituted from the F/F1 to F/FN) in response to the N-phase clock signals. To the odd-numbered F/Fs, the clock signals each of which has a rising (or falling) edge in the vicinity of a center of a data settlement period are supplied, as clock signals for data sampling each for sampling the input data signal. To the even-numbered F/Fs, the clock signals each of which has a rising (or falling) edge in the vicinity of a point of change in data are supplied, as clock signals for edge detection each for detecting a transition point of the input data. Respective data sampled by the F/F1 to F/FN are supplied to the phase comparison circuit 103. The data sampled by the odd-numbered F/Fs are output as output data. The phase comparison circuit 103 compares the data sampled in mutually adjacent phases, thereby determining the point of change of the input data. When the phase of the clock signal lags behind the phase of the input data signal, the phase comparison circuit 103 outputs the up signal. When the phase of the clock signal leads the phase of the input data signal, the phase comparison circuit 103 outputs the down signal.
The filter 104 receives the up/down signal output from the phase comparison circuit 103 to generate the smoothed up/down signal by a majority decision circuit or the like.
The up/down counter 105 generates the phase control signal for the phase shift circuit 101 so that when the up/down counter 105 receives the up signal from the filter 104, the up/down counter 105 makes the phases of the N-phase clock signals CK1 to CKN “up” (advances the phases of the clock signals CK1 to CKN relative to the phase of the input data signal), and when the up/down counter 105 receives the down signal from the filter 104, the up/down counter 105 makes the phases of the clock signals “down” (the phases of the clock signals CK1 to CKN are delayed relative to the phase of the input data signal).
The phase control signal output from the up/down counter 105 to the phase shift circuit 101 is made common to the clock signals for data sampling the input data and the clock signals for edge detection at the latch circuits 102. That is, delays and advances in the phases of the N-phase clock signals CK1, CK2, CKN-1, and CKN from the phase shift circuit 101 (with the phases of the mutually adjacent clock signals spaced to each other by 360/N degrees) are controlled in common.
Generally, in a locked state (in the state where the phase of each of the clock signals for data sampling is located in the vicinity of the center of a data bit determination period) of the clock and data recovery circuit, the phase of each of the clock signals for detecting the transition (edge) of the input data signal is controlled to repeat going up and down around the point of the change of the input data signal.
As described above, the clock signal data recovery circuit shown in
Patent Document 2 proposes a clock and data recovery circuit that controls the clock signals for data sampling and the clock signals for edge detection for input data separately, as shown in
[Patent Document 1]
Japanese Patent Kokai Publication No. JP-P2002-190724A
[Patent Document 2]
Japanese Patent Kokai Publication No. JP-P2003-333021A
[Non-patent Document 1]
ISSCC 1993 p.p. 160-161 Mark Horowitz et al., “PLL Design for 500 MB/s Interface”
In the clock and data recovery circuit shown in
On the other hand, the configuration in
The invention disclosed in this application is generally configured as follows.
A clock and data recovery circuit according to one aspect of the present invention includes:
a plurality of latch circuits for receiving and sampling an input data;
a phase shift circuit for supplying multiple phases of clock signals having phases spaced each other to said plurality of latch circuits, respectively; and
a circuit unit for generating phase control signals each for controlling a delay or an advance in the phase of the clock signal of the multiple phases of clock signals supplied to said plurality of latch circuits from said phase shift circuit, based on a result of phase comparison using data sampled by said latch circuits and supplying the generated phase control signals to said phase shift circuit;
predetermined ones of the multiple phases of clock signals being set as clock signals for edge detection each for detecting a transition point of an input data signal and the other clock signals being set as data sampling clock signals for sampling the input data signal, respectively, said phase shift circuit adjustably shifting the phases of the clock signals for edge detection and the phases of the data sampling clock signals based on the phase control signals, thereby recovering the data and the clock signal;
said circuit unit including at least an up/down counter subjected to an up/down control based on the result of the phase comparison and performing control so that control over the phases of the clock signals for edge detection is performed by one of the phase control signals in accordance with a count value of said up/down counter subjected to an up/down control based on the result of the phase comparison; and
control over the phases of the data sampling clock signals is made by step-wise variable control in which the phases of the data sampling clock signals are advanced or delayed when a combination of the current count value of the up/down counter and the result of the phase comparison satisfies a predetermined condition, without directly following the count value of said up/down counter subjected to the up/down control based on the result of the phase comparison.
In the present invention, the control over the phases of the clock signals for edge detection is performed by the one of the phase control signals in accordance with the count value of the up/down counter subjected to the up/down control based on the result of the phase comparison. For controlling the phases of the clock signals for data sampling, the clock and data recovery circuit includes:
a control circuit for performing control so that when the current count value of the up/down counter in a first stage subjected to the up/down control based on the result of the phase comparison satisfies a predetermined condition and also when the result of the phase comparison indicates the delay or the advance of the phases, the second up/down counter is counted up or down. The phases of the clock signals for data sampling are controlled by an other one of the phase control signals in accordance with a count value of the up/down counter in the second stage.
The present invention may be so configured that a control signal for controlling maximum and minimum values of the count values of the up/down counter in the first stage for controlling the phases of the clock signals for data sampling is supplied, so that the maximum and minimum values of the up/down counter in the first stage can be thereby adjustably set.
The present invention may be so configured that a count value range of the up/down counter in the first stage for controlling the phases of the clock signals for data sampling is set to be narrower than a count value range of the up/down counter in the second stage.
A clock and data recovery circuit according to the present invention includes:
a plurality of latch circuits for sampling an input data signal responsive to multiple phases of clock signals having phases spaced each other, and for outputting sampled signals, respectively;
one group of said latch circuits receiving clock signals for edge detection among said multiple phases of clock signals, respectively to detect a transition point of the input data signal; and the other group of said latch circuits receiving clock signals for data sampling among said multiple phases of clock signals, respectively to sample the input data signal;
a phase comparison circuit for receiving outputs of said plurality of latch circuits, detecting an advance or a delay in the phase of the clock signal relative to the phase of the input data signal based on outputs of said plurality of latch circuits and for outputting an up/down signal;
a filter for smoothing the up/down signal from said phase comparison circuit and for outputting the smoothed up/down signal;
a first up/down counter for receiving the up/down signal from said filter, counting up or down a count value thereof, and for outputting a first phase control signal;
a second up/down counter for outputting a second phase control signal;
a third up/down counter for receiving the up/down signal from said filter and for counting up or down a count value thereof;
a phase shift circuit for receiving the first phase control signal from said first up/down counter and the second phase control signal from said second up/down counter and for variably and separately controlling phases of the clock signals for edge detection and phases of the clock signals for data sampling, respectively; and
an up/down control circuit for receiving the count value of said third up/down counter and the up/down signal from said filer and for generating a signal controlling counting up or down of said second up/down counter based on the count value of said third up/down counter and the up/down signal from said filter to supply the so generated signal to said second up/down counter.
In the present invention, a control signal for controlling maximum and minimum values of the count values of the third up/down counter is received by the third up/down counter, so that the maximum and minimum values of the count values of the third up/down counter can be variably set.
In the present invention, the up/down control circuit outputs the up signal to the second up/down counter when the count value of the third up/down counter is a maximum value and when the up/down control circuit receives the up signal from the filter; and
the up/down control circuit outputs the down signal to the second up/down counter when the count value of the third up/down counter is a minimum value and when the up/down control circuit receives the down signal from the filter.
In the present invention, a count value range of the third up/down counter is set to be narrower than a count value range of the second up/down counter.
An interface circuit according to other aspect of the present invention includes:
the clock and data recovery circuit; and
an input buffer.
The clock and data recovery circuit receives input serial data from the input buffer. The interface circuit includes:
a selector for receiving a data signal output from the clock and data recovery circuit and transmitted serial data, and outputting one of the data signal and serial data for transmission; and
an output buffer for receiving an output of the selector, for output.
The meritorious effects of the present invention are summarized as follows.
According to the present invention, phase adjustment of the clock signals for data sampling is performed in stages through the up/down counters and the up/down control circuit, compared with phase adjustment of the clock signals for edge detection. A jitter component of the data sampling clock signal can be thereby suppressed, so that data can be extracted correctly. Still other features and advantages of the present invention will become readily apparent to those skilled in this art from the following detailed description in conjunction with the accompanying drawings wherein only the preferred embodiments of the invention are shown and described, simply by way of illustration of the best mode contemplated of carrying out this invention. As will be realized, the invention is capable of other and different embodiments, and its several details are capable of modifications in various obvious respects, all without departing from the invention. Accordingly, the drawing and description are to be regarded as illustrative in nature, and not as restrictive.
The embodiment of the present invention will be described with reference to appended drawings. A clock and data recovery circuit of the present invention includes a circuit unit for generating phase control signals each for controlling a delay or an advance in phases of clock signals of a multi-phase clock signal supplied to a plurality of latch circuits (indicated by reference numeral 12 in
More specifically, the control over the phases of the clock signals for edge detection is performed by the one of the phase control signals in accordance with the count value of the up/down counter (indicated by reference numeral 15 in
An operation of the circuit shown in
Respective data sampled by the N latch circuits 12 (constituted from the F/F1 to F/FN), respectively, are supplied to the phase comparison circuit 13. The data sampled by the odd-numbered F/Fs are output as output data. The phase comparison circuit 13 compares the data sampled in mutually adjacent phases, thereby determining a point of transition of the input data signal. When the phase of a clock signal is delayed relative to a phase of the input data signal, the phase comparison circuit 13 outputs a signal directing an up operation as the up/down signal. When the phase of the clock signal is advanced relative to the phase of the input data signal, the phase comparison circuit 13 outputs a signal directing a down operation as the up/down signal.
The filter 14 that has received the up/down signal generates the up/down signal smoothed by a majority decision circuit (not shown) therein or the like, and outputs resulting signal. When the number of up signals input over a predetermined time segment is larger than the number of down signals over the predetermined time segment, the filter 14 determines the up operation and outputs the up signal. When the number of the up signals input over the predetermined time segment is smaller than the number of the down signals over the predetermined time segment, the filter 14 determines the down operation, and outputs the down signal. The filter 14 may be the one that performs smoothing, and may be constituted from an integrator circuit, for example.
The third up/down counter 17 is the up/down counter for increasing or decreasing a count value according to the up/down signal from the filter 14. An initial value, a maximum value, and a minimum value of the count values are adjustably set according to an input control signal.
Upon receipt of the up signal from the filter 14 when the count value of the third up/down counter 17 is the maximum value, the up/down control circuit 18 outputs the up signal to the second up/down counter 16.
Upon receipt of the down signal from the filter 14 when the count value of the third up/down counter 17 is the minimum value, the up/down control circuit 18 outputs the down signal to the second up/down counter 16. The first up/down counter 15 and the second up/down counter 16 have the same configuration to each other, and count up or down according to the up/down signals, respectively. Then, respective conversions to the phase control signals are performed, and the phase control signals are output to the phase shift circuit 11.
The phase shift circuit 11 determines the phases of the clock signals (clock signals for edge detection) to be input to the even-numbered F/Fs of the latch circuit 12 according to the phase control signal from the first up/down counter 15. The phase shift circuit 11 determines the phases of the clock signals (clock signals for data sampling) to be input to the odd-numbered F/Fs according to the phase control signal from the up/down counter 2.
The clock signals for data sampling to be supplied to the latch circuits 12 from the phase shift circuit 11 are controlled through the third up/down counter 17 and the up/down control circuit 18 in addition to the filter 14. A jitter suppression range can be thereby controlled by the control signal input to the third up/down counter 17 and the up/down control circuit 18.
The maximum value among the count values of the third up/down counter 17 to be set by the control signal input to the third up/down counter 17 and the up/down control circuit 18 determines the suppression range in a direction where the phases are delayed. The minimum value among the count values of the third up/down counter 17 to be set by the control signal determines the suppression range in a direction where the phases are advanced.
A description will be given with reference to a timing waveform in
When a count value of the first up/down counter 15 and the count value of the third up/down counter 17 are both zero, and when the signal indicating the up operation from the filter 14 is continuously input twice, the count value of the first up/down counter 14 is counted up twice, thereby becoming +2. At this point, the count value of the second up/down counter 16 is +1. That is, though the count value of the third up/down counter 17 becomes +1 (maximum value) upon receipt of the first up signal from the filter 14, the up/down control circuit 18 does not output the up signal to the second up/down counter 16. For this reason, the count value of the second up/down counter 16 remains at zero. When the third up/down counter 17 receives the second up signal from the filter 14 in this state, the current count value of the third up/down counter 17 is kept at the maximum value of +1. However, upon receipt of input of the up signal, the up/down control circuit 18 outputs the up signal to the second up/down counter 16. Then, the second up/down counter 16 counts up the count value by one, thereby causing the count value to become +1. With regard to the down signal as well, the count value just becomes a minus value. The operation that is the same as the one described above is performed.
In the present embodiment, a counting range of the third up/down counter 17 is set to be narrower than counting ranges (maximum value-minimum value+1) of the first up/down counter 15 and the second up/down counter 16. In the present embodiment, phases of the clock signals for data sampling are adjustably controlled in stages through the up/down counter 17 in a first stage, up/down control circuit 18, and up/down counter 16. On the other hand, each edge detecting clock signal for detecting a transition point in the input data signal is directly subject to adjustable control in a large counting range by an output of the first up/down counter 15, and maintains a follow-up characteristic for the input data signal including the jitter.
According to the present embodiment, the jitter in each data sampling clock signal is controlled in stages. The jitter in the clock signal recovered by the clock signal data recovery circuit can be thereby suppressed to an optical range.
The clock and data recovery circuit in the present embodiment is made suitable for being applied to an interface circuit (semiconductor device) including a serializer/deserializer.
The above description was given in connection with the embodiment described above. The present invention, however, is not limited to a configuration of the embodiment described above and of course includes various variations and modifications that could be made by those skilled in the art within scopes of the present invention.
It should be noted that other objects, features and aspects of the present invention will become apparent in the entire disclosure and that modifications may be done without departing the gist and scope of the present invention as disclosed herein and claimed as appended herewith.
Also it should be noted that any combination of the disclosed and/or claimed elements, matters and/or items may fall under the modifications aforementioned.
Number | Date | Country | Kind |
---|---|---|---|
2005-248285 | Aug 2005 | JP | national |