1. Field of the Invention
The present invention relates to phase locked loop circuits, and more particularly to a system and method for optimizing a phase locked loop (PLL) damping coefficient which improves spectral purity of a core clock generated by the PLL from a reference clock.
2. Description of the Related Art
Phase locked loop (PLL) circuits are typically used by electronic devices and the like to synchronize one or more clock signals for controlling the various operations of the device. Because operations within an integrated circuit can be performed much faster than operations between integrated circuits, PLL circuits are often used within an integrated circuit to generate an internal clock signal at some multiple of the external clock frequency. In many applications, the internal clock signal is derived from an external clock reference that is provided to the integrated circuit as well as to other components within a system so that inter-system operations are synchronized. For instance, an exemplary bus clock in a computer system operating at 300 megahertz (MHz) may be used to derive an internal microprocessor core clock signal operating at 3 gigahertz (GHz), which represents a tenfold increase in frequency. A clock multiplier N determines the ratio between the bus clock (or external clock) and core clock (or internal clock) frequencies. Some systems are static in which the clock multiplier N is fixed. Other systems are dynamic in which the clock multiplier is adjustable for various purposes, such as changing the mode of operation of the integrated circuit or electronic circuit (e.g., switching between various power modes, such as standby, low-power, hibernation, etc.).
One skilled in the art appreciates that the response characteristics of a conventional PLL are inversely proportional to the square of the clock multiplier N and proportional to the square of the oscillator gain KV. The damping coefficient θ for a PLL circuit is as shown in the following proportion (1):
where N is the clock multiplier, IC is a charge pump current magnitude, KV is the oscillator gain, and R and C are the resistance and capacitance, respectively, of the RC loop filter components of the PLL. A typical loop filter for a PLL includes a series RC filter having a time constant in accordance with the desired properties of the PLL, which include maximizing locking speed and minimizing jitter. In some embodiments, a small capacitor is provided in parallel with the series RC components, in which case Proportion 1 is modified accordingly. The loop filter generates a loop control signal which is provided to a variable oscillator circuit to control the phase and/or frequency of the internal clock signal. In one specific configuration, the loop filter generates a loop voltage which is employed to modulate the amount of current that is supplied to oscillator cells within a current controlled oscillator (ICO). A greater amount of current results in a faster internal clock and a lesser amount of current results in a slower internal clock.
One skilled in the art also appreciates that to maximize spectral purity, the damping coefficient θ of the PLL should be relatively constant. It has been shown that the ideal damping coefficient value is approximately 0.707. As advances in integrated circuit fabrication techniques have enabled devices to be scaled to less than 100-nanometer channel lengths, it is not uncommon to find requirements for a PLL circuit that support clock multipliers ranging from 1 to 30 or more times a given reference frequency. And it is very common that the clock multiplier is dynamically modified during operation to adjust the operating mode. The damping coefficient of the conventional PLL, however, varies from under damped to over damped in response to changes of the clock multiplier to achieve the desired given operating range. In this manner, the conventional PLL does not provide the desired spectral purity.
One skilled in the art further appreciates that the spectral purity of the clock signals within an integrated circuit, particularly a pipelined device such as a microprocessor, directly impacts operating speed because the internal logic must be designed to operate under worst-case conditions. Accordingly, it is very desirable to improve the spectral purity of present day PLL circuits. For some applications that have a fixed reference clock frequency and a fixed clock multiplier N, a PLL can be configured which achieves an acceptable spectral quality. Conventional PLL circuits are not suitable, however, for applications that dynamically vary the reference frequency and/or the clock multiplier or ratio N since such conventional PLL circuits generate undesirable jitter when N varies which significantly reduces spectral quality. In particular, when jitter due to variation of the damping coefficient θ exists in a PLL, operational circuits must be designed to operate under worst-case conditions. At 2 GHz, for example, one percent jitter in a PLL reduces the amount of work that can be performed during a given clock cycle.
The spectral quality problems must be resolved to maximize efficiency and work performed as operating speed increases. It is desired to improve the spectral quality of PLL circuits employed in modern day circuits including integrated circuits and the like.
An adjustable oscillator for dynamically optimizing a damping coefficient of a phase locked loop (PLL) circuit according to an embodiment of the present invention includes a gain controlled oscillator circuit and a damping controller. The PLL circuit provides a loop control signal indicative of an error between first and second clock signals and generates a third clock signal which has a frequency which is a clock multiplier times the frequency of the second clock signal. The gain controlled oscillator circuit has a control input receiving the loop control signal, a gain control input, and an output that provides the third clock signal. The damping controller has an input for receiving the clock multiplier and an output providing a gain control signal to the gain control input of the gain controlled oscillator circuit. The damping controller adjusts gain of the gain controlled oscillator circuit in response to changes of the clock multiplier to minimize variation of the damping coefficient.
The gain controlled oscillator circuit may include a variable oscillator circuit and a gain control circuit. In this case, the variable oscillator circuit has a frequency control input and an output providing the third clock signal. The gain control circuit has a first input receiving the loop control signal, a second input receiving the gain control signal, and an output providing a frequency control signal to the frequency control input of the variable oscillator circuit. The gain control circuit varies the frequency control signal based on the loop control signal at a gain determined by the gain control signal. In a more specific embodiment, the variable oscillator circuit is a current controlled oscillator and the gain control circuit converts the loop control signal to a current signal. Furthermore, the damping controller may be configured to control the gain control signal to cause the current controlled oscillator to adjust the gain of the current signal to compensate for changes of the clock multiplier.
The damping controller may be implemented to provide one of several different values of the gain control signal for each of several clock multiplier values to minimize changes of the damping coefficient. As an example, a lookup table or the like may be used to convert each clock multiplier value to a corresponding gain control value provided to the oscillator. For typical PLL circuits, the damping coefficient is a function of the square-root of gain divided by the clock multiplier. In one embodiment, the damping controller controls the gain control signal to whatever value is needed to effectively multiply the gain of the oscillator by the clock multiplier in order to maintain the same damping coefficient for each frequency of the third clock.
A PLL circuit having a dynamically optimized damping coefficient according to an embodiment of the present invention includes a detector, a charge pump, a filter circuit, an oscillator circuit, a frequency divider and a damping controller. The detector compares a first clock signal with a second clock signal and provides an error signal indicative of a frequency and phase differential. The charge pump has an input receiving the error signal and an output providing a pulse signal indicative thereof. The filter circuit is coupled to the charge pump for converting the pulse signal to a loop control signal. The oscillator circuit has a first input receiving the loop control signal, a second input receiving a gain signal and an output providing a third clock signal, where the gain signal adjusts a gain of the oscillator circuit. The frequency divider has a first input receiving the third clock signal, a second input receiving a clock multiplier, and an output providing the second clock signal. The frequency of the second clock signal is based on a frequency of the third clock signal divided by the clock multiplier. The damping controller has an input receiving the clock multiplier and an output providing the gain signal, where the damping controller adjusts the gain of the oscillator circuit in response to changes of the clock multiplier.
The oscillator circuit may include a variable oscillator circuit providing the third clock signal and a gain circuit. The gain circuit has a first input receiving the loop control signal, a second input receiving the gain signal, and an output providing a frequency control signal to the variable oscillator circuit. In a more specific embodiment, the filter circuit provides the loop control signal as a voltage signal to the first input of the gain circuit, where the gain circuit is a voltage to current converter and where the oscillator is a current controlled oscillator. In one embodiment, the damping controller controls the gain signal to multiply the gain of the oscillator circuit by the clock multiplier to maintain the damping coefficient substantially constant over the variable N.
An integrated circuit according to an embodiment of the present invention includes a first pin receiving an external clock signal having a first frequency, a second pin for receiving a clock multiplier, and an integrated PLL circuit. The PLL circuit has a first input coupled to the first pin for receiving the external clock signal, a second input coupled to the second pin for receiving the clock multiplier, and an adjustable oscillator having an output providing a core clock signal having a second frequency approximately equal to the first frequency multiplied by the clock multiplier. The adjustable oscillator includes a damping controller and an oscillator circuit. The damping controller has an input receiving the clock multiplier and an output providing an adjust signal. The oscillator circuit has an input receiving the adjust signal and an output providing the core clock signal, where the adjust signal controls gain of the oscillator circuit to maintain a substantially constant damping coefficient for the PLL circuit.
A method of optimizing a damping coefficient of a PLL according to an embodiment of the present invention includes converting a clock multiple into a gain control value and adjusting the gain of an oscillator using the gain control value to minimize changes of the damping coefficient. The PLL controls the oscillator to provide a second clock signal having a frequency which is a multiple of a frequency of a first clock signal. The damping coefficient is a function of gain of the oscillator divided by the clock multiple.
The method may include adjusting current level provided to a current controlled oscillator. The method may include multiplying the oscillator gain by the multiple. The method may include comparing the first clock signal with a divided clock signal and providing a loop control signal indicative thereof, varying a frequency control signal based on the loop control signal, providing the frequency control signal to a variable oscillator circuit, and varying a rate of change of the frequency control signal based on the gain control value. The method may include converting the loop control signal to a current signal, varying the current signal based on the loop control signal, varying a rate of change of the current signal based on the gain control value, and providing the current signal to a current controlled oscillator. The method may include converting a loop control voltage to the current signal, converting, by the current controlled oscillator, the current signal to the second clock signal, and dividing the second clock signal by the multiple to provide the divided clock signal.
The benefits, features, and advantages of the present invention will become better understood with regard to the following description, and accompanying drawings where:
The following description is presented to enable one of ordinary skill in the art to make and use the present invention as provided within the context of a particular application and its requirements. Various modifications to the preferred embodiment will, however, be apparent to one skilled in the art, and the general principles defined herein may be applied to other embodiments. Therefore, the present invention is not intended to be limited to the particular embodiments shown and described herein, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.
The inventors of the present application have recognized the need to solve the problems associated with the present art, particularly with respect to the limitations imposed on pipelined devices when conventional PLL circuits are employed. They have therefore developed a system and method for markedly improving the spectral purity of a core clock signal generated by a PLL circuit within an integrated circuit or used by an electronic device by dynamically optimizing the PLL damping coefficient based upon the value of a clock multiplier, as will be further described below with respect to
The PLL circuit 100 may be implemented on an integrated circuit or the like, where the BUSCLK signal and multiplier N are received externally or off-chip and the CORECLK signal is used on-chip. The present invention, however, contemplates configurations other than integrated circuits and generally applies to PLL circuits used by any electronic device. The loop filter 105 filters the IC signal and generates the loop control signal LC, which is used to control the frequency of the CORECLK signal in standard feedback operation. The LC signal may be in the form of a current signal or a voltage signal, and the oscillator circuit 107 may be current or voltage controlled as known to those skilled in the art. The spectral quality of the PLL circuit 100 is acceptable as long as the BUSCLK signal and the clock multiplier N are static and do not change. As described previously, however, for applications in which it is desired to dynamically vary the frequency of BUSCLK or the value of the clock multiplier N, the spectral quality of the PLL circuit 100 is not acceptable since it generates undesirable jitter in response to such changes due to an increased of decreased current signal I in constant proportion to changes in the loop control signal LC. With reference to Proportion 1, the gain KV of the oscillator circuit 107 is generally fixed, so that changes in N result in undesirable changes in the damping coefficient θ causing jitter and reducing the spectral quality of the PLL circuit 100.
The oscillator circuit 201 operates in a similar manner as the oscillator circuit 107, except that the gain of the oscillator circuit 201 is controlled or otherwise adjusted based on the GC signal. Gain KV is defined as the change in frequency (F) of the CORECLK signal, or ΔF, as a function of the change in the LC signal, or ΔLC, or KV=ΔF/ΔLC, where the forward slash “/” denotes division. For example, if the frequency is measured in GHz and the LC signal is a voltage signal measured in Volts (V), then the gain KV has units of Hz/V. For a given value of the clock multiplier N, say N1, the damping controller 207 asserts a corresponding value of the GC signal, say GC1, which causes the variable V/I converter circuit 203 to operate at a corresponding gain KV, or KV1. Thus, the variable V/I converter circuit 203 converts the LC signal to the I signal which is used to control the frequency of the CORECLK signal provided by the variable oscillator circuit 205 at the corresponding gain of KV1. For GC1, the gain KV1 determines the relationship between LC and CORECLK employed in the control loop.
When the multiple N is changed to a new value, say N2, the damping controller 207 changes the GC signal to a corresponding new value, say GC2, which causes the oscillator circuit 201 to operate at a corresponding new gain, say KV2. In order to optimize the spectral quality of the PLL circuit 200, the damping controller 207, the variable V/I converter circuit 203 and the ICO 205 are configured to minimize changes of the damping coefficient θ. As defined in Proportion 1, the damping coefficient θ is a function of the square-root of KV/N, so that for any change of N, the gain KV of the oscillator circuit 201 is modified by the same factor (e.g., N). In this manner, the change in N is effectively canceled by or compensated with the change in KV so that any change of the damping coefficient is minimized. For example, if N is doubled from 10 to 20, then the gain KV is also doubled so that the damping coefficient remains unchanged according to Proportion 1. Since changes of the damping coefficient are minimized in response to changes of the clock multiplier N by concomitantly changing the oscillator gain, the spectral quality of the PLL circuit 200 is improved relative to the spectral quality of the PLL circuit 100.
As an example and with reference to
In comparison, assume that the oscillator circuit 201 of the PLL circuit 200 includes all of the gain curves (i.e., KVn:KV1) and that the PLL circuit 200 is initially operating at the same point 403 of the gain curve 401 in which the frequency of CORECLK is about 2.08 GHz for a VLP voltage of about 0.5V. Also assume that the loop control signal LC for the PLL circuit 200 is the VLP voltage. It is desired to select a gain curve that maintains a mid-range level of VLP so that VLP remains relatively constant for changes of the clock multiplier N. In this case, when N changes to a new value to adjust the frequency of CORECLK to a new frequency of 2.75 GHz, the damping controller 207 adjusts the gain control signal GC (e.g., new value of FSTR), which adjusts the gain of the oscillator circuit 201 to a new gain curve 407 (i.e., shown as gain=KVn) to maintain the same mid-level value of VLP of approximately 0.5 V. Thus, the PLL circuit 200 adjusts to a new operating point 409 along the gain curve 407. With reference to the PLL circuit 200, the increase of N may initially cause the divider 109 to begin reducing the frequency of REFCLK. However, the change of the GC value causes the variable V/I converter circuit 203 to adjust the I signal to keep the damping coefficient at substantially the same value after the ICO 205 aligns the phase of the CORECLK to the new frequency of 2.75 GHz as it was prior to the change. In the embodiment of
The function of block 507 may be performed concurrently with any one or more of the blocks 501-505 as shown, although this is not necessarily the case. In an integrated circuit embodiment, for example, a detector compares the frequency/phase of an input bus clock with a reference clock while coefficient logic converts an external clock multiplier to the gain control value. The conversion between the clock multiplier and gain control value depends on the characteristics and configuration of the variable oscillator circuit and the range and configuration of the loop control signal. The loop control signal represents a conversion between the error signal from the detector and the frequency of the third clock signal which is controlled to minimize the error. The gain of the oscillator controls the relative change of frequency of the third clock signal in response to changes of the loop control signal. In one embodiment, a nominal or mid-level value of the loop control signal is selected and the damping controller adjusts the gain control value to maintain about the same level of the loop control signal for each value of the clock multiplier. The gain control values may be determined experimentally and stored within the damping controller. The damping controller may be implemented in any suitable manner, such as a lookup table or the like.
Less complex embodiments of the present invention presume fixed values of charge pump current IC and the R and C components of the loop filter 105. Although these embodiments are less complex, it is noted that the present invention also comprehends embodiments that dynamically modulate one or more of these values IC, R, C as well as KV in order to maintain the stability of the damping coefficient θ. One embodiment of the present invention contemplates simulating n oscillator gain curves KVn:KV1 as a function of n values of the FSTR bus over a desired operating frequency range and as a function of a desired loop filter voltage range. In this case, the damping controller 207 is configured to generate a discrete value of FSTR for each value of N such that the associated gain KV of the oscillator circuit 201 results in a relatively constant value for the damping coefficient θ. One embodiment selects the values of FSTR such that θ is held approximately equal to 0.707, however the present invention contemplates alternative embodiments where the damping coefficient is held at values other than 0.707. A nominal loop filter voltage embodiment selects the aforementioned values of FSTR at a mid-range value of the loop filter voltage VLP (e.g., 0.5 V).
Several benefits and advantages are achieved with a system and method for optimizing phase locked loop damping according to embodiments of the present invention. One advantage is that undesirable jitter is minimized in a PLL implemented according to the present invention since variations of the damping coefficient of the PLL are minimized with corresponding changes of the clock multiplier between the core (output or internal) clock and the bus (input or external) clock. Another advantage is that pipelined devices can be designed to increase the amount of work performed between pipelined stages due to the increased spectral purity provided to the internal core clock signal.
Although the present invention has been described in considerable detail with reference to certain preferred versions thereof, other versions and variations are possible and contemplated. Those skilled in the art should appreciate that they can readily use the disclosed conception and specific embodiments as a basis for designing or modifying other structures for providing out the same purposes of the present invention without departing from the spirit and scope of the invention as defined by the appended claims.
This application claims the benefit of U.S. Provisional Application Ser. No. 60/634,253, filed on Dec. 8, 2004, which is herein incorporated by reference for all intents and purposes. This application is related to the following co-pending U.S. Patent Applications, which are filed on the same day as this application, which have a common assignee and at least one common inventor, and which are herein incorporated by reference in their entirety for all intents and purposes: SER. NO.FILING DATETITLE12/08/2005DAMPING COEFFICIENT{overscore ((CNTR.2244))}VARIATION MECHANISMIN A PHASE LOCKED LOOP12/08/2005PHASE LOCKED LOOP{overscore ((CNTR.2244))}DAMPING COEFFICIENTCORRECTION MECHANISM
Number | Date | Country | |
---|---|---|---|
60634253 | Dec 2004 | US |