With integrated circuit (IC) devices, clock signals with well controlled duty cycles (the relative amount of time the clock is High versus Low in each cycle) may be important to system performance. A good example is in data communication applications where both edges of the clock may be used to sample data. In some cases, when clock edges are not evenly spaced (50% duty cycle), there can be a reduction in timing margin resulting in lower data rates. In other cases, a non 50% (but controlled) duty cycle may be desired to achieve optimal system performance. Another example is with a sequential logic circuit operating on both the rising and falling edges of a clock. With such circuits, duty-cycle error can lead to min-path or max-path violations.
Duty-cycle error can be attributed to a variety of factors such as offset error resulting from systematic offset and offset due to variations in process, voltage, and/or temperature. To maintain an acceptable duty cycle, many systems employ some type of offset control.
With reference to
Embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference numerals refer to similar elements.
The clock driver 202 drives a differential clock signal from its input (CLK IN) through the clock path 204 to an output (CLK OUT). The clock path 204 represents the physical path from the clock driver to the output (CLK OUT). It may correspond to any type of clock signal pathway such as from a pair of relatively short conductor traces to conductors, buffers, and/or other digital blocks cascaded together between the clock driver 202 and clock output (CLK OUT). Furthermore, the clock path may span over relatively long distances or be localized and/or used in an isolated environment.
The feedback circuit 206 is coupled between the clock output and the digital, offset control input of the clock driver 202 to reduce the common mode offset of the clock signal at the clock output (CLK OUT). In the depicted embodiment, it comprises a differential amplifier 207 (with digitally controllable variable offset), a low pass filter 209, a digital slicer 211, and an offset control circuit 213, coupled together as indicated, with separate digital offset control signals provided from outputs of the offset control circuit 213 to the clock driver 202 and feedback amplifier 207. The feedback circuit 206 also comprises switches S1A, S2A, S1B, and S2B to switch the feedback circuit between a feedback circuit calibration mode (mode A) and a clock driver calibration mode (mode B).
The feedback amplifier 207 comprises a differential amplifier for measuring offset in the clock signal. It may be the same type of amplifier used for the clock driver 202, or it may comprise a different (e.g., smaller and/or reduced bandwidth) amplifier. The low pass filter 209 comprises a filter (e.g., simple RC filter) to filter out higher frequency components (including possibly high-frequency clock pulses if the feedback circuit is active while the clock driver is in operation) and pass through to the slicer 211 the common mode offset of the clock signal from the feedback amplifier 207. It may be formed separately from the feedback amplifier 207 or integrated within it.
The slicer 211 digitizes and latches the offset signal from the low pass filter 209 and provides the digital error signal to the offset control circuit 213. In the depicted embodiment, it operates from a clock signal that preferably is suitably slower than the clock to be driven through the clock driver 202. It may be implemented with any suitable circuit such as a comparator, latch, flip-flop or the like. The offset control circuit 213 integrates (or accumulates) the clocked bit values from the slicer 211 to provide an appropriate offset control signal to either the clock driver 202 or feedback amplifier 207 (depending on the activated mode). It may be implemented with any suitable logic such as a finite state machine or discrete logic components, for example, to implement a counter, control logic, and output latches to provide digital offset signals (e.g., 4-bit words) to the clock driver 202 and feedback amplifier 207.
The feedback circuit 206 has two modes of operation: feedback calibration (mode A) and clock driver calibration (mode B). Note that the feedback circuit 206 may be inactive when the clock driver 202 is in operation. That is, the loop can either be shut off after the clock driver and feedback amplifier offsets have been determined, which is useful for compensating for static offsets such as device variations and power savings, or it can continue to run to track time-varying offsets in the circuit while the clock driver 202 is driving a clock signal through the clock path 204. Regardless of whether the feedback circuit is operating, however, latched offset control words should remain applied at the clock driver and feedback amplifier. The latches used to provide the offset values may reside in the offset control circuit 213 or in the clock driver and feedback amplifier themselves.
During the feedback calibration mode, switches S1A and S2A are closed, while S1B and S2B are opened, which causes offset in the feedback amplifier 207 to be detected and corrected. The inputs to the feedback amplifier 207 are shorted to VCM, which is a DC voltage that corresponds to the common-mode level of the clock signal at CLK OUT essentially shorting the inputs together. Since the feedback amplifier 207 has inherent offset, its output will be non-zero. This offset level is filtered (although the filter is not required) and converted to a digital level by the slicer 211. The offset control circuit 213 determines the offset control word based on slicer output values over time and provides the control word to the feedback amplifier 207. That is, as long as the slicer 211 indicates that offset is positive (e.g., outputting a ‘1), it may count “up” to increase the opposing offset generated in the amplifier 207. When the slicer error bit is ‘0, it knows that the offset is zero or negative and can thus hold the offset control word at its present value or decrement it. Any suitable algorithm for maintaining a suitably stable control word can be used. For example, the word may be allowed to dither when the error bit Vass elates between ‘1 and ‘0 or a different scheme to inhibit dithering could be used.
Once the offset code is determined and applied to the feedback amplifier 207, the feedback circuit can then switch to clock driver calibration mode. The “A” switches are opened and the “B” switches are closed connecting the output clock signal (at CLK OUT) to the feedback amplifier 207. With offset error now reduced (or even “zeroed”) in the feedback amplifier 207, the feedback circuit operates, as just described with respect to feedback calibration, but now to reduce offset in the clock driver 202 and clock path 204. It applies a compensating offset control word at the clock driver 202 based on offset monitored from the clock output. Once this offset is sufficiently reduced (with the offset control word applied at the clock driver 202), the clock driver 202 is operated to drive the clock signal from the clock input (CLK IN) to the clock output (CLK OUT).
During the feedback calibration mode (mode “A”), switches S1A-S4A are closed and S1B and S2B are opened. This causes the differential outputs of the feedback amplifier 307 to be shorted to the inputs (in an inverse configuration). As a result, the differential voltage imposed at capacitors C1, C2 across the differential amplifier input roughly equals the negative voltage of the amplifier offset. Thus, when the amplifier is operated during the clock driver calibration mode (“A” switches opened and “B” switches closed), the negative offset level stored across the capacitors is applied at the amplifier inputs to “zero” out its offset. This embodiment may be useful when it is desirable to continuously track and calibrate the clock driver offset.
The feedback circuit may comprise any suitable circuit to convert the monitored parameter to a digital duty cycle control (e.g., offset control signal) to send back (e.g., over a digital back channel) to the clock driver in the transmitter. If the monitored parameter is clock signal offset, a feedback circuit such as in
With reference to
It should be noted that the depicted system could be implemented in different forms. That is, it could be implemented in a single chip module, a circuit board, or a chassis having multiple circuit boards. Similarly, it could constitute one or more complete computers or alternatively, it could constitute a component useful within a computing system.
The invention is not limited to the embodiments described, but can be practiced with modification and alteration within the spirit and scope of the appended claims. For example, it should be appreciated that the present invention is applicable for use with all types of semiconductor integrated circuit (“IC”) chips. Examples of these IC chips include but are not limited to processors, controllers, chip set components, programmable logic arrays (PLA), memory chips, network chips, and the like.
Moreover, it should be appreciated that example sizes/models/values/ranges may have been given, although the present invention is not limited to the same. As manufacturing techniques (e.g., photolithography) mature over time, it is expected that devices of smaller size could be manufactured. In addition, well known power/ground connections to IC chips and other components may or may not be shown within the FIGS. for simplicity of illustration and discussion, and so as not to obscure the invention. Further, arrangements may be shown in block diagram form in order to avoid obscuring the invention, and also in view of the fact that specifics with respect to implementation of such block diagram arrangements are highly dependent upon the platform within which the present invention is to be implemented, i.e., such specifics should be well within purview of one skilled in the art. Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the invention, it should be apparent to one skilled in the art that the invention can be practiced without, or with variation of, these specific details. The description is thus to be regarded as illustrative instead of limiting.