Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SYNCHORNIZED MUTLI-OUTPUT DIGITAL CLOCK MANAGER
Document Type and Number:
WIPO Patent Application WO/2002/029974
Kind Code:
A2
Abstract:
A digital clock manager is provided. The digital clock manager generates an output clock signal that causes a skewed clock signal to be synchonized with a reference clock signal. Furthermore, the digital clock manager generates a frequency adjusted clock signal that is synchronized with the output clock signal during concurrence periods. The digital clock manager includes a delay lock loop and a digital frequency synthesizer. The delay lock loop and a digital frequency synthesizer. The output clock signal lags the synchrozing clock signal by a DLL output delay. Similarly, the frequency adjusted clock signal lags the synchronizing clock signal by a DFS output delay. By matching the DLL output delay to the DFS output delay, the digital clock manager synchronizes the output clock signal and the frequency adjusted clock signal.

Inventors:
LOGUE JOHN D
PERCEY ANDREW K
GOETTING F ERICH
Application Number:
PCT/US2001/031251
Publication Date:
April 11, 2002
Filing Date:
October 05, 2001
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
XILINX INC (US)
International Classes:
G06F1/06; G06F1/10; H03L7/07; H03L7/081; H04L7/00; (IPC1-7): H03L/
Domestic Patent References:
WO1999067882A11999-12-29
Foreign References:
US5805003A1998-09-08
Other References:
SUTOH H ET AL: "A CLOCK DISTRIBUTION TECHNIQUE WITH AN AUTOMATIC SKEW COMPENSATION CIRCUIT" IEICE TRANSACTIONS ON ELECTRONICS, INSTITUTE OF ELECTRONICS INFORMATION AND COMM. ENG. TOKYO, JP, vol. E81-C, no. 2, 1 February 1998 (1998-02-01), pages 277-283, XP000774573 ISSN: 0916-8524
Attorney, Agent or Firm:
Chandroo, Keith A. (Inc. 2100 Logic Drive San Jose, CA, US)
Download PDF:
Claims:
CLAIMS What is claimed is:
1. A digital clock manager having a reference input terminal, a skew input terminal, an output terminal, and a frequency adjusted output terminal, the digital clock manager comprising: a delay lock loop (DLL) coupled to the reference input terminal, the skew input terminal, and the output terminal; and a digital frequency synthesizer, coupled to the delay lock loop and the frequency adjusted output terminal.
2. The digital clock manager of Claim 1, wherein the delay lock loop is configured to generate an output clock signal on the output terminal which synchronizes a reference clock signal on the reference input terminal with a skewed clock signal on the skew input terminal.
3. The digital clock manager of Claim 1, wherein the digital frequency synthesizer is configured to generate a frequency adjusted clock signal on the frequency adjusted output terminal and wherein the frequency adjusted clock signal is synchronized with the output clock signal during concurrences.
4. The digital clock manager of Claim 1, wherein the delay lock loop comprises a DLL output circuit having a DLL output delay.
5. The digital clock manager of Claim 1, further comprising a variable delay circuit coupled between the delay lock loop and the output terminal.
6. The digital clock manager of Claim 1, further comprising a variable delay circuit coupled between the digital frequency synthesizer and the frequency adjusted output terminal.
7. A method to generate an output clock signal and a frequency adjusted clock signal from a reference signal, wherein the output clock signal is synchronized with the frequency adjusted clock signal during a concurrence; the method comprising: generating a synchronizing clock signal; matching a DLL output delay with a DFS output delay; generating the output clock signal lagging the synchronizing clock signal by the DLL output delay; and generating the frequency adjusted clock signal so that an active edge of the frequency adjusted clock signal lags an active edge of the synchronizing clock signal by the DFS output delay during the concurrence.
8. The method of Claim 7, wherein the step of matching a DLL output delay with a DFS output delay comprises synchronizing a DLL output circuit with a DFS output circuit.
9. The method of Claim 7, further comprising performing lock acquisition.
10. The method of Claim 7, further comprising performing a frequency search during lock acquisition.
Description:
SYNCHRONIZED MULTI-OUTPUT DIGITAL CLOCK MANAGER FIELD OF THE INVENTION The present invention relates to digital clocking circuits for digital electronics. More specifically, the present invention relates to digital clock managers capable of generating multiple phase-locked output clock signals of different frequencies.

BACKGROUND OF THE INVENTION Synchronous digital systems, including board level systems and chip level systems, rely on one or more clock signals to synchronize elements across the system.

Typically, one or more clock signals are distributed across the system on one or more clock lines. However, due to various problems such as clock buffer delays, high capacitance of heavily loaded clock lines, and propagation delays, the edges of a clock signal in different parts of the system may not be synchronized. The time difference between a rising (or falling) edge in one part of the system with the corresponding rising (or falling) edge in another part of the system is referred to as"clock skew".

Clock skew can cause digital systems to malfunction.

For example, it is common for circuits in digital systems to have a first flip-flop output driving a second flip-flop input. With a synchronized clock signal on the clock input terminal of both flip-flops, the data in the first flip- flop is successfully clocked into the second flip-flop.

However, if the active edge on the second flip flop is delayed by clock skew, the second flip-flop might not capture the data from the first flip-flop before the first flip-flop changes state.

Delay lock loops are used in digital systems to minimize clock skew. Delay lock loops typically use delay elements to synchronize the active edges of a reference

clock signal in one part of the system with a feedback clock signal from a second part of the system. Figure 1 shows a block diagram of a conventional delay lock loop 100 coupled to logic circuits 190. Delay lock loop 100, which comprises a delay line 110 and a phase detector 120, receives a reference clock signal REF_CLK and drives an output clock signal O CLK.

Delay line 110 delays reference clock signal REFCLK by a variable propagation delay D before supplying output clock signal 0CALK. Thus, each clock edge of output clock signal 0_ILK lags a corresponding clock edge of reference clock signal REFCLK by propagation delay D (see Figure 2 (a)). Phase detector 120 controls delay line 110, as described below. Delay line 110 is capable of producing a minimum propagation delay DMIN and a maximum propagation delay DMAX.

Before output clock signal O_CLK reaches logic circuits 190, output clock signal 0_CLK is skewed by clock skew 180. Clock skew 180 can be caused by delays in various clock buffers (not shown) or propagation delays on the clock signal line carrying output clock signal O_CLK (e. g., due to heavy loading on the clock signal line). To distinguish output clock signal 0CALK from the skewed version of output clock signal O_CLK, the skewed version is referred to as skewed clock signal S_CLK. Skewed clock signal S_CLK drives the clock input terminals (not shown) of the clocked circuits within logic circuits 190. Skewed clock signal S_CLK is also routed back to delay lock loop 100 on a feedback path 170. Typically, feedback path 170 is dedicated specifically to routing skewed clock signal S_CLK to delay lock loop 110. Therefore, any propagation delay on feedback path 170 is minimal and causes only negligible skewing.

Figure 2 (a) provides a timing diagram of reference clock signal REF_CLK, output clock signal O_CLK, and skewed clock signal S_CLK. All three clock signals have the same frequency F_REF (not shown) and period P_REF, and all are active-high (i. e., the rising edge is the active edge).

Since output clock signal O_CLK is delayed by propagation delay D, a clock edge 220 of output clock signal O_CLK lags corresponding clock edge 210 of reference clock signal REFCLK by propagation delay D. Similarly, a clock edge 230 of skewed clock signal S_CLK lags corresponding clock edge 220 of output clock signal O_CLK by a propagation delay SKEW, which is the propagation delay caused by clock skew 180 (Figure 1). Therefore, clock edge 230 of skewed clock signal S_CLK lags clock edge 210 of reference clock signal REF_CLK by a propagation delay DSKEW, which is equal to propagation delay D plus propagation delay SKEW.

Delay lock loop 100 controls propagation delay D by controlling delay line 110. However, delay line 110 cannot create negative delay; therefore, clock edge 230 cannot be synchronized to clock edge 210. Fortunately, clock signals are periodic signals. Therefore, delay lock loop 100 can synchronize reference clock signal REFCLK and skewed clock signal S_CLK by further delaying output clock signal O_CLK such that clock edge 240 of skewed clock signal S_CLK is synchronized with clock edge 210 of reference clock signal REFCLK. As shown in Figure 2 (b), propagation delay D is adjusted so that propagation delay DSKEW is equal to period P. Specifically, delay line 110 is tuned so that propagation delay D is increased until propagation delay D equals period P minus propagation delay SKEW. Although propagation delay DSKEW could be increased to any multiple of period P to achieve synchronization, most delay lock loops do not include a delay line capable of creating such a large propagation delay.

Phase detector 120 (Figure 1) controls delay line 110 to regulate propagation delay D. The actual control mechanism for delay lock loop 100 can differ. For example, in one version of delay lock loop 100, delay line 110 starts with a propagation delay D equal to minimum propagation delay D MIN, after power-on or reset. Phase detector 110 then increases propagation delay D until reference clock signal REFCLK is synchronized with skewed clock signal S_CLK. In another system, delay lock loop 100

starts with a propagation delay D equal to the average of minimum propagation delay D MIN and maximum propagation delay DMAX, after power-on or reset. Phase detector 120 then determines whether to increase or decrease (or neither) propagation delay D to synchronize reference clock signal REFCLK with skewed clock signal S_CLK. For example, phase detector 120 would increase propagation delay D for the clock signals depicted in Figure 2 (a). However, phase detector 120 would decrease propagation delay D for the clock signals depicted in Figure 2 (c).

In Figure 2 (c), skewed clock signal SCLK is said to "lag"reference clock signal REFCLK, because the time between a rising edge of reference clock signal REF_CLK and the next rising edge of skewed clock signal S_CLK is less than the time between a rising edge of skewed clock signal SCLK and the next rising edge of reference clock signal REFCLK. However, in Figure 2 (a), reference clock signal REF_CLK is said to"lag"skewed clock signal S_CLK, because the time between a rising edge of skewed clock signal SCLK and the next rising edge of reference clock signal REF_CLK is less than the time between a rising clock edge of reference clock signal REF_CLK and the next rising clock edge of skewed clock signal S_CLK. Alternatively, in Figure 2 (a) skewed clock signal S_CLK could be said to "lead"reference clock signal REF_CLK.

After synchronizing reference clock signal REF_CLK and skewed clock signal S_CLK, delay lock loop 100 monitors reference clock signal REF_CLK and skewed clock signal S_CLK and adjusts propagation delay D to maintain synchronization. For example, if propagation delay SKEW increases, perhaps caused by an increase in temperature, delay lock loop 100 must decrease propagation delay D to compensate. Conversely, if propagation delay SKEW decreases, perhaps caused by a decrease in temperature, delay lock loop 100 must increase propagation delay D to compensate. The time in which delay lock loop 100 is attempting to first synchronize reference clock signal REF_CLK and skewed clock signal S_CLK, is referred to as

lock acquisition. The time in which delay lock loop 100 is attempting to maintain synchronization is referred to as lock maintenance. The value of propagation delay D at the end of lock acquisition, i. e. when synchronization is initially established, is referred to as initial propagation delay ID.

Further complications with clock skew exists in complex digital systems, such as microprocessors and FPGAs, that have multiple clock signals at different frequencies.

For example, in some microprocessors, internal circuits are clocked by a first clock signal at a first clock frequency while input/output (I/O) circuits are clocked by a second clock signal at a second clock frequency. Typically, the second clock frequency is slower than the first clock frequency.

Most systems use one clock generating circuit to generate a first clock signal and a specialized circuit to derive other clock signals from the first clock signal.

For example, clock dividers are used to generate one or more clock signals of lower clock frequencies from a reference clock signal. Typically, clock dividers divide the frequency of the reference clock signal by an integer value. Conversely, clock multipliers are used to generate one or more clock signals of higher clock frequencies from the reference clock signal. Combining clock multipliers with clock dividers provide clocking circuits which can generate one or more clock signals having frequencies that are fractional values of the frequency of the reference clock signal.

Thus, a clocking circuit is typically coupled to reference clock signal REFCLK to generate a frequency adjusted clock signal FREQCLK. However, the clocking circuits add additional skew due to propagation delay and gate switching times. Consequently, frequency adjusted clock signal FREQ_ CLK may be skewed compared to both reference clock signal REFCLK and output clock signal 0CLK. Hence, there is a need for a method and circuits

that can compensate for skew in both an output clock signal and a frequency adjusted clock signal.

SUMMARY The present invention provides a digital clock manager that generates a deskewed output clock signal as well as a deskewed frequency adjusted clock signal. Specifically, the output clock signal causes a skewed clock signal to be synchronized with a reference clock signal. The frequency adjusted clock signal is synchronized with the output clock signal during concurrences. Generally the frequency adjusted clock signal is driven to a selected clock frequency which is equal to the clock frequency of the output clock signal multiplied by a multiplier M and divided by a divider D, where M and D are natural numbers.

When the frequency of the frequency adjusted clock signal is equal to the selected frequency and the frequency adjusted clock signal is in phase with the output clock signal, every Mth rising edge of the frequency adjusted clock signal aligns with a rising edge of the output clock signal. The alignments are commonly referred to as concurrences.

One embodiment of the digital clock manager includes a delay lock loop (DLL) and a digital frequency synthesizer (DFS). The delay lock loop is configured to generate an output clock signal that synchronizes a skewed clock signal with a reference clock signal. The delay lock loop also generates a synchronizing clock signal, which is provided to the digital frequency synthesizer. The delay lock loop has a DLL output circuit that generates the output clock signal, which lags the synchronizing clock signal by a DLL output delay. In the digital frequency synthesizer, a DFS output circuit generates a frequency adjusted clock signal in which an active edge of the frequency adjusted clock signal lags an active edge of the synchronizing clock signal by a DFS output delay during a concurrence period.

By matching the DLL output delay with the DFS output delay,

the output clock signal and the frequency adjusted clock signals are synchronized.

The present invention will be more fully understood in view of the following description and drawings.

BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram of a system using a conventional delay lock loop.

Figures 2 (a), 2 (b) and 2 (c) are timing diagrams for the system of Figure 1.

Figure 3 is a block diagram of a digital clock manager in accordance with one embodiment of the present invention.

Figure 4 is a block diagram of a digital clock manager in accordance with one embodiment of the present invention.

Figure 5 is a block diagram of a digital clock manager in accordance with one embodiment of the present invention.

Figure 6 is a block diagram of a system using an embodiment of a delay lock loop in accordance with the present invention.

Figure 7 is a timing diagram for the delay lock loop of Figure 6.

Figure 8 illustrates a lock window as used in accordance with one embodiment of the present invention.

Figure 9 is a block diagram of an embodiment of a clock phase shifter in accordance with the present invention.

Figure 10 is a block diagram of another embodiment of a clock phase shifter in accordance with the present invention.

Figure 11 is a block diagram of an output generator in accordance with the present invention.

Figure 12 is a state diagram for an embodiment of a controller in accordance with the present invention.

Figure 13 is a block diagram of a system using another embodiment of a delay lock loop in accordance with the present invention.

Fig. 14 (a) is a block diagram of a variable clocking circuit in accordance with one embodiment of the present invention.

Fig. 14 (b) is a timing diagram for the variable clocking circuit of Fig. 14 (a).

Fig. 15 is schematic diagram of a variable digital oscillator in accordance with one embodiment of the present invention.

Fig. 16 is a timing diagram for the variable clocking circuit of Fig. 14 (a) using the digital oscillator of Fig.

15.

Fig. 17 is a block diagram of an oscillator control circuit in accordance with one embodiment of the present invention.

Fig. 18 is a block diagram of an initialization circuit in accordance with a second embodiment of the present invention.

Fig. 19 is a timing diagram for the variable clocking circuit of Fig. 14 (a) using a delay line fine tuning controller.

Fig. 20 is a block diagram of a delay line fine tuning controller in accordance with one embodiment of the present invention.

Fig. 21 is a block diagram of a modulo-M delta sigma circuit in accordance with one embodiment of the present invention.

DETAILED DESCRIPTION Fig. 3 is a block diagram of a digital clock manager 300 in accordance with one embodiment of the present invention. Digital clock manager 300, which receives a reference clocks signal REF_CLK and a skewed clock signal S_CLK, generates an output clock signal O_CLK, which causes skewed clock signal SCLK to be synchronized with reference clock signal REF_CLK, and a frequency adjusted clock signal FREQCLK which is phase locked with output clock signal O CLK during concurrences. Generally, frequency adjusted clock signal FREQ_CLK has an adjusted frequency FADJ which

is equal to the frequency of output clock signal O_CLK multiplied by a multiplier M and divided by a divider D.

If frequency adjusted clock signal FREQ_CLK is in phase with clock signal O_CLK, every Mth rising edge of frequency adjusted clock signal FREQCLK aligns with a rising edge of output clock signal 0CLK. The alignments are commonly referred to as concurrences. Reference clock signal REFCLK and output clock signal O_CLK have the same frequency. For clarity, reference frequency FREF is used to denote the frequency of both reference clock signal REFCLK and output clock signal 0CLK.

The embodiment of Fig. 3 includes a delay lock loop 310 and a digital frequency synthesizer 320. While specific embodiments of delay lock loop 310 and digital frequency synthesizer 320 are described below, the principles of the present invention can be adapted for use with almost any delay lock loop and any digital frequency synthesizer. Thus, the description with respect to digital clock manager 300 describes delay lock loop 310 and digital frequency synthesizer 320 is in general terms. One skilled in the art can adapt the principles of the present invention to create a digital clock manager with a variety of delay lock loops and digital frequency synthesizers.

Delay Lock Loop 310 includes DLL clocking circuit 312 and DLL output circuit 314. DLL clocking circuit 312 generates a synchronizing clock signal SYNCHCLK, which is provided to DLL output circuit 314 and DFS output circuit 324 of digital frequency synthesizer 320. Generally, synchronizing clock signal SYNCHCLK has a frequency equal to frequency FREF of reference clock signal REFCLK and output clock signal 0CLK. DLL output circuit 314 drives output clock signal O_CLK. DLL output circuit 314 introduces a DLL output delay 316 between synchronizing clock signal SYNCH_CLK and output clock circuit O_CLK.

Specifically, output clock signal O_CLK lags synchronizing clock signal SYNCH_CLK by DLL output delay 316. DLL clocking circuit 312 and DLL output circuit 314 together synchronizes skewed clock signal S_CLK with reference clock

signal REF_CLK. A specific embodiment of delay lock loop 310 used in one embodiment of the present invention is described below.

Digital frequency synthesizer 320 receives synchronized clock signal SYNCH_CLK and generates frequency adjusted clock signal FREQCLK having adjusted frequency FADJ, which is equal to the frequency of output clock signal 0CLK multiplied by a multiplier M and divided by a divider D. As shown in Fig. 3, digital frequency synthesizer 320 includes a DFS clocking circuit 322 and a DFS output circuit 324. DFS output circuit 324 drives frequency adjusted clock signal FREQ_CLK and introduces a DFS output delay 326 between frequency adjusted clock signal FREQCLK and synchronizing clock signal SYNCH_CLK.

Specifically, during concurrence periods of synchronizing clock signal LYNCH CALK with frequency adjusted clock signal FREQCLK, an active edge of frequency adjusted clock signal FREQCLK lags an active edge of synchronizing clock signal SYNCHCLK by DFS output delay 326. DFS clocking circuit 322 and DFS output circuit 324 combine to perform the frequency adjustments necessary to generate frequency adjusted clock signal FREQCLK.

Because output clock signal O_CLK lags synchronizing clock signal SYNCHCLK by DLL output delay 316 and frequency adjusted clock signal FREQ_CLK lags synchronizing clock signal SYNCH_CLK by DFS output delay 326, frequency adjusted clock signal FREQCLK can be synchronized with output clock signal O_CLK by matching DLL output delay 316 with DFS output delay 326. Thus, in accordance with some embodiments of the invention, the components of DFS output circuit 324 and DLL output circuit 314 are chosen to match DLL output delay 316 with DFS output delay 326. For example, in some embodiments of the present invention, DLL output circuit 314 and DFS output circuit 324 comprise the identical components. Furthermore, in some embodiments of the present invention, the layout and routing for DLL output circuit 314 closely match the layout and routing for DFS output circuit 324. By matching components, layout,

and routing, these embodiments of the present invention can achieve near-perfect matching between DLL output delay 316 and DFS output delay 326.

However, some embodiments of the present invention can not achieve suitable matching of DFS output delay 326 and DLL output delay 316. For these embodiments, additional delay circuitry can be used to synchronize output clock signal O_CLK and frequency adjusted clock signal FREQ_CLK.

Fig. 4 is a block diagram of a digital clock manager 400 using variable delay circuits 410 and 420 in accordance with one embodiment of the present invention. Because, digital clock manager 400 is similar to digital clock manager 300, similar reference numerals are used for similar elements. In addition, descriptions of the repeated elements are omitted for brevity. Variable delay circuit 410 is coupled to DLL output circuit 314 and generates output clock signal 0CALK. Similarly, variable delay circuit 420 is coupled to DFS output circuit 324 and generates frequency adjusted clock signal FREQ_CLK.

In digital clock manager 400, DLL output delay 316 and DFS output delay 326 can not be adequately matched.

However, variable delay circuit 410, which provides additional delay to DLL output delay 316, and variable delay circuit 420, which provides additional delay to DFS output delay 326 can be used to synchronize output clock signal O_CLK with frequency adjusted clock signal FREQ_CLK.

Specifically, DLL output delay 316 plus the delay provided by variable delay circuit 410 should be matched with DFS output delay 326 plus the delay provided by variable delay circuit 420. In many embodiments of the present invention, delay match can be achieved using only one of variable delay circuits 410 or 420. Therefore, these embodiments would not need to include both variable delay circuit 410 and variable delay circuit 420.

Fig. 5 is a block diagram of a digital clock manager 500 in accordance with one embodiment of the present invention. Because, digital clock manager 500 is similar to digital clock manager 300, similar reference numerals

are used for similar elements. In addition, descriptions of the repeated elements are omitted for brevity. Digital clock manager 500 reduces the time required to generate frequency adjusted clock signal FREQ_CLK as compared to digital clock manager 300. As is well known in the art, delay lock loops operate in a lock acquisition mode prior to generating a stable output clock signal. Similarly, digital frequency synthesizers operate in various frequency search phases prior to generating a stable frequency adjusted clock signal. In digital clock manager 300, delay lock loop 310 must first undergo a lock acquisition mode to generate synchronizing clock signal SYNCHCLK. Then digital frequency synthesizer must undergo various frequency search phases prior to generating frequency adjusted clock signal FREQCLK.

However, in digital clock manager 500, lock acquisition by delay lock loop 310 and frequency search phases by digital frequency synthesizer 320 can occur simultaneously to reduce the time necessary to generate output clock signal O_CLK and frequency adjusted clock signal FREQ_CLK. Specifically, digital clock manager 500 includes a multiplexer 510, having a first input terminal coupled to receive reference clock signal REF_CLK, a second input terminal coupled to receive synchronizing clock signal SYNCHCLK and an output terminal coupled to digital frequency synthesizer 320. Multiplexer 510 is controlled by a clock transition control signal CLKTRAN from digital frequency synthesizer 320. Clock transition control signal CLKTRAN is driven to an inactive state while delay locked loop is performing lock acquisition or digital frequency synthesizer 320 is not ready for a clock transition. If clock transition control signal is in the inactive state, multiplexer 510 couples reference clock signal REF_CLK to digital frequency synthesizer 320.

Because reference clock signal REF_CLK is already at reference frequency FREF, digital frequency synthesizer 320 can perform the required frequency search phases using reference clock signal REFCLK. After delay lock loop 310

finishes lock acquisition, a control signal DLLLOCKED is driven to an active state (e. g., logic high) signaling digital frequency synthesizer 320 that delay lock loop 310 has completed lock acquisition. Then, when digital frequency synthesizer is ready for transitioning to synchronizing clock signal SYNCHCLK, clock transition control signal CLKTRAN is driven to the active state, which causes synchronizing clock signal SYNCHCLK to be provided to digital frequency synthesizer 320. For example, in some embodiments of the present invention, digital frequency synthesizer 320 completes a frequency search phase prior to driving control signal CLKTRAN to select synchronizing clock signal SYNCHCLK. Furthermore, in some embodiments of the present invention, digital frequency synthesizer 320 is halted prior to switching from reference clock signal REFCLK to synchronizing clock signal SYNCHCLK and then restarted. Thus, digital clock manager 500 reduces the time required to generate frequency adjusted clock signal FREQ_CLK by allowing acquisition lock by delay lock loop 310 and frequency searches by digital frequency synthesizer 320 to operate simultaneously.

Figure 6 is a block diagram of a system using a delay lock loop 600 in accordance with one embodiment of the present invention. Delay lock loop 600 comprises a delay line 610, a clock phase shifter 650, a controller 630, an output generator 640, and a phase detector 620. Delay lock loop 600 receives reference clock signal REFCLK on a reference input terminal 602 and generates output clock signal 0_ILK on output terminal 604. As explained above with respect to Figure 1, output clock signal O_CLK is skewed by clock skew 180 into skewed clock signal S_CLK, which clocks logic circuits 190. Skewed clock signal SCLK is also fed back to a feedback terminal 606 of delay lock loop 600 on feedback path 170.

Within delay lock loop 600, reference clock signal REF_CLK is delayed by delay line 610 to generate delayed clock signal DCLK. Delayed clock signal D_CLK is delayed from clock signal REF_CLK by a propagation delay D in delay

line 610. One embodiment of delay lock loop 600 uses an adjustable delay line described in U. S. Patent Application Serial No. 09/102,704 entitled"Glitchless Delay Line Using Gray Code Multiplexer"by Andrew K. Percey. However, other adjustable delay lines can also be used with delay lock loop 600. Delayed clock signal DCLK is provided to an input terminal of a clock phase shifter 650 and to an input terminal of an output generator 640. Delayed clock signal DCLK is also provided to digital frequency synthesizer 320 as synchronizing clock signal SYNCHCLK.

Clock phase shifter 650 generates one or more phase- shifted clock signals PCLK1 to P_CLK_N-1, where N is a positive integer. In one embodiment, phase-shifted clock signal P_CLK_1 is phase-shifted by 360/N degrees from delayed clock signal DCLK. Phase-shifted clock signal PULK2 is phase-shifted by 2* (360/N) degrees. Phase- shifted clock signal PCLKN-1 is phase-shifted by (N-1) * (360/N) degrees. Thus, in general a phase-shifted clock signal P_CLK_Z is phase-shifted by Z* (360/N), where Z is an integer between 1 and (N-1), inclusive. Delayed clock signal D_CLK can be considered a phase-shifted clock signal P_CLK_0 since delayed clock signal D_CLK has a 0 degree phase shift from itself. Further, in some embodiments of delay lock loop 600, clock phase shifter 650 generates a phase-shifted signal P_CLK_N that has the same phase and frequency as delayed clock signal D_CLK.

Thus, in an embodiment of clock phase shifter 650 where N is equal to four, phase-shifted clock signal P_CLK_1 is phase-shifted 90 degrees from delayed clock signal D_CLK. It logically follows that phase-shifted clock signal P_CLK_2 is phase-shifted by 180 degrees from delayed clock signal D_CLK and phase-shifted clock signal P_CLK_3 is phase-shifted by 270 degrees from delayed clock signal D_CLK. However, the principles of the present invention are also suitable for other embodiments of clock phase shifter 650 using other patterns of phase shifting between the phase-shifted clock signals.

Phase shifting is a concept in the frequency domain of a clock signal. The equivalent of phase shifting in the time domain is delaying the clock signal. Specifically, if a first clock signal is phase-shifted from a second clock signal by X degrees, the first clock signal is delayed by X* (P/360), where P is the period of the first and second clock signals. Thus, if phase-shifted clock signal PCLK1 is phase-shifted 90 degrees from delayed clock signal DCLK, phase-shifted clock signal P_CLK_1 is delayed by one-fourth of the period of delayed clock signal D_CLK. To distinguish delays caused by phase shifting from other propagation delays, delays caused by phase shifting are referred to as phase-shifted delays PDZ. Since a phase- shifted clock signal P_CLK_Z is phase-shifted by Z* (360/N) degrees, phase-shifted clock signal PCLKZ has a phase- shifted delay PDZ equal to Z* (P/N), where Z is an integer between 1 and (N-1), inclusive.

Figure 7 illustrates for a timing diagram for delay lock loop 600 (Figure 6) wherein N equals 4. Specifically, clock phase shifter 650 generates phase-shifted clock signal P_CLK_1 90 degrees out of phase with delayed clock signal DCLK. Thus, phase-shifted clock signal P-CLK_1 is delayed by one-fourth of clock period P. Clock phase shifter 650 generates phase-shifted clock signal PULK2 180 degrees out of phase with delayed clock signal D_CLK.

Thus, phase-shifted clock signal P_CLK_2 is delayed by half of clock period P. Finally, clock phase shifter 650 generates phase-shifted clock signal P_CLK_3 270 degrees out of phase with delayed clock signal D_CLK. Thus, phase- shifted clock signal P_CLK-3 is delayed by three-fourths of clock period P.

Returning to Figure 6, clock phase shifter 650 provides the phase-shifted clock signals to various input terminals of output generator 640. In some embodiments of delay lock loop 600, clock phase shifter 650 can be configured using one or more configuration signals CFG on an optional configuration bus 660. An embodiment of clock

phase shifter 650 that is configured by configuration signals CFG is described below with respect to Figure 10.

Configuration signals CFG are received on configuration terminals 608 and are routed to clock phase shifter 650 and controller 630 by configuration bus 660. Output generator 640 selects either delayed clock signal DCLK or one of the phase-shifted clock signals to provide as output clock signal O_CLK as dictated by controller 630 (described below). For embodiments of delay lock loop 600 in which clock phase shifter 650 provides phase-shifted clock signal PCLKN, output generator 640 can use phase-shifted clock signal PCLKN in place of delayed clock signal DCLK.

Controller 630 controls output generator 640.

Controller 630 receives phase information regarding reference clock signal REFCLK and skewed clock signal S_CLK from phase detector 620. Specifically, phase detector 620 informs controller 630 whether propagation delay D from delay line 610 should be increased or decreased to achieve synchronization of skewed clock signal SCLK with reference clock signal REFCLK. For embodiments of phase detector 620 that only determine whether to increase or decrease propagation delay D, a jitter filter (not shown) can be used to reduce clock jitter. In one embodiment, the jitter filter is an up/down counter (not shown) that decrements by one if propagation delay D should be decreased and increments by one if propagation delay D should be increased. However, propagation delay D is not adjusted until the up/down counter reaches 0 or some other predetermined number. When propagation delay D is adjusted, the up/down counter is reset to one-half the maximum value. In other embodiments, phase detector 620 calculates the amount propagation delay D should be increased or decreased. During lock acquisition, controller 630 attempts to synchronize skewed clock signal S_CLK with reference clock signal REF_CLK so that initial propagation delay ID of propagation delay D is within a lock window W.

Figure 8 illustrates the concepts of lock window W.

As explained above, propagation delay D must be between minimum propagation delay D_MIN and maximum propagation delay D_MAX. Typical values for D MIN and D_MAX are 3.2 nanoseconds and 46.8 nanoseconds, respectively. During lock acquisition, controller 630 ensures that initial propagation delay ID of propagation delay D is within lock window W. Specifically, when synchronization is first established initial propagation delay ID must be between lock window minimum W_MIN and lock window maximum WMAX.

The limits on lock window W are set to guarantee that once delay lock loop 600 completes locks acquisition, delay lock loop 600 can maintain synchronization as long as the system containing delay lock loop 600 operates within the design guidelines of the system.

For example, the system containing delay lock loop 600 generally can operate in a range of operating conditions.

The range of operating conditions includes a maximum extreme condition in which propagation delay SKEW is maximized at a propagation delay value SKEW_MAX.

Similarly, the range of operating conditions also includes a minimum extreme condition in which propagation delay SKEW is minimized at a propagation delay value SKEW MIN. Thus, the maximum change (DELTA_SKEW) in propagation delay SKEW during operation of the system is equal to propagation delay value SKEWMAX minus propagation delay value SKEW_MIN (i. e., DELTA SKEW = SKEWMAX-SKEWMIN). For maximum protection during lock maintenance, lock window minimum WMIN can be equal to minimum propagation delay D MIN plus DELTA_SKEW. Similarly, lock window maximum W_MAX can be equal to maximum propagation delay D_MAX minus DELTA-SKEW.

In one embodiment of the present invention, lock window minimum W_MIN is equal to approximately 16.5% of maximum propagation delay D_MAX and lock window maximum W_MAX is equal to approximately 67.8% of maximum propagation delay D_MAX.

As explained above with respect to Figure 1, for a conventional delay lock loop synchronization of skewed

clock signal S_CLK with reference clock signal REFCLK is achieved when propagation delay D plus propagation delay SKEW is equal to a multiple of period P. In equation form: D + SKEW = MULT (P) (1) where MULT (P) refers to a multiple of P. Usually, the smallest multiple of P greater than SKEW is used.

With delay lock loop 600, controller 630 can also use the delays from the phase-shifted clock signals. Thus delay lock loop 600 can achieve synchronization if propagation delay D plus a phase-shifted delay P-D from a phase-shifted clock signal plus propagation delay SKEW is a multiple of period P. In equation form: D + PDZ + SKEW = MULT (P) (2) where PDZ refers to a phase-shifted delay from phase- shifted clock signal PCLKZ. Usually, the smallest multiple of P greater than propagation delay SKEW plus phase-shifted delay P_D_Z is used. As explained above with respect to Figure 6, in one embodiment of clock phase shifter 650 phase-shifted delay P_ D_Z of a phase-shifted clock signal PCLKZ is equal to Z* (P/N), where Z is an integer between 0 and (N-1), inclusive. If Z is equal to 0, controller 630 causes output generator 640 to use delayed clock signal D_CLK as output clock signal O_CLK.

Thus, phase-shifted delay PD0 is equal to 0.

For clarity, initial delay ID can be referred to initial delay ID_0 if output generator 640 uses delayed clock signal D_CLK for output clock signal O_CLK.

Similarly, initial delay ID can be referred to as initial delay ID_Z, if output generator 640 uses phase-shifted clock signal P_CLK_Z for output clock signal O_CLK, where Z is a positive integer between 1 and (N-1), inclusive.

Thus, at the end of lock acquisition, equation (2) can be rewritten as:

ID-Z + PDZ + SKEW = MULT (P) (3) Re-arranging equation (3) provides: ID-Z = MULT (P)-SKEW-PDZ (4) and substituting Z* (P/N) for PDZ provides: ID-Z = MULT (P)-SKEW-Z* (P/N) (5) Usually, the smallest multiple of P that results in a positive initial delay ID_Z is used. In situations where initial delay ID_Z is less than minimum propagation delay D_MIN or greater than maximum propagation delay D MAX, delay lock loop 600 cannot synchronize skewed clock signal S_CLK with reference clock signal REFCLK using phase- shifted clock signal PCLKZ.

Because controller 630 can select any one of phase- shifted clock signals PCLKZ to drive output clock signal O_CLK, controller 630 can select from N initial delay values. The possible initial delay values range from a minimum offset value (MULT (P)-SKEW) to a maximum value (MULT (P)-SKEW) & (N-1)/N period P). The difference between each initial delay value is period P divided by N. For example, if N equals four, period P equals 40 nanoseconds, and propagation delay SKEW equals 25 nanoseconds; then initial delays ID_0, ID_1, ID_2, and ID_2 equal 15 nanoseconds, 5 nanoseconds, 35 nanoseconds, and 25 nanoseconds, respectively (as calculated using equation (5)). If N equals four, period P equals 40 nanoseconds, and propagation delay SKEW equals 55 nanoseconds; then initial delays ID_0, ID_1, ID_2, and ID_3 equal 25 nanoseconds, 15 nanoseconds, 5 nanoseconds, and 35 nanoseconds, respectively. Thus, controller 630 is likely to find one or more initial delay values within lock window W. If more than one initial delay value is within lock window W, controller 630 can select any one of the initial delay values within lock window W.

Some embodiments of controller 630 can perform the calculations described above to determine which phase- shifted clock signal PCLKZ to use. However, other embodiments use trial and error to determine which phase- shifted clock signal PCLKZ to use. An embodiment of controller 630 that uses trial and error is described below with respect to Figure 12.

Figure 9 illustrates one embodiment of clock phase shifter 650 of Figure 6. The embodiment of clock phase shifter 650 in Figure 9 comprises a phase detector 920 and a plurality of delay lines 910_1 to 910_N. Delay lines 910_1 to 910N are coupled in series. The input terminal of delay line 910_1 receives an input clock signal such as delayed clock signal DCLK (Figure 6). The output terminal of delay line 910N is coupled to an input terminal of phase detector 920. Phase detector 920 also receives input clock signal DCLK on another input terminal. Phase detector 920 controls all the delay lines in parallel via control line 925, and each delay line provides the same amount of propagation delay. Consequently, input clock signal DCLK and the clock signal P_CLK-N on the output terminal of delay line 910N are synchronized, i. e., in phase. Further, phase detector 920 causes the total propagation delay generated by delay lines 910-1 to 910N to be equal to one period P of the input clock. Thus, each delay line provides a propagation delay of P/N. Thus, the output terminal of delay line 910_1 provides a clock signal that is delayed from the input clock signal by P/N whereas the output terminal of delay line 910_2 provides a clock signal that is delayed from the input clock signal by 2*P/N. In general, the output terminal of delay line 910_Z provides a clock signal that is delayed from the input clock signal by Z*P/N, where Z is an integer between 1 and N-1, inclusive. Accordingly, if the input clock signal is delayed clock signal D_CLK, the output terminals of delay lines 910_1 to 910N-1 provide phase-shifted clock signals P_CLK_1 to P_CLK-N-1, respectively. Some embodiments of clock phase shifter 650 also generate a clock signal

PCLKN on the output terminal of delay line 910N that has the same phase as delayed clock signal D_CLK.

Figure 10 shows a configurable embodiment of clock phase shifter 650 of Figure 6. Specifically, the clock phase shifter of Figure 10 can be configured in a first mode to produce three phase-shifted clock signals that are 90 degrees, 180 degrees, and 270 degrees out of phase with an input clock signal. In a second mode, the clock phase shifter of Figure 10 produces a single phase-shifted clock signal that is 180 degrees out of phase with the input clock signal. The clock phase shifter of Figure 10 comprises a phase detector 1020, delay lines 1010_1, 10102, 10103, and 1010_4, and multiplexers 1030_1, 10302, 10303, and 10304. A configuration line 1040 is coupled to the select terminal of multiplexers 1030_1 to 10304.

The input terminal of delay line 1010_1 is coupled to receive an input clock signal such as delayed clock signal DCLK (Figure 6). The output terminal of each delay line 1010Z is coupled to the logic one input terminal of multiplexer 1030_Z, where Z is an integer between 1 and 4, inclusive. The output terminal of each multiplexer 1030_Z is coupled to the input terminal of delay line 1010_Z+1, where Z is an integer between 1 and 3, inclusive. The output terminal of multiplexer 1030_4 is coupled to an input terminal of phase detector 1020. The logic zero input terminals of multiplexer 1030_1 and multiplexer 1030_3 are coupled to ground. However, the logic zero input terminal of multiplexer 1030_2 is coupled to the output terminal of delay line 1010_1. Similarly, the logic zero input terminal of multiplexer 1030_4 is coupled to the output terminal of delay line 1010_3. Phase detector 1020 also receives input clock signal D_CLK on another input terminal. Phase detector 1020 controls delay lines 1010_1 to 1010_4 in parallel as described above with respect to phase detector 920.

If configuration line 1040 is pulled to logic one, which puts the embodiment of Figure 10 into the first mode,

delay lines 1010_1 to 1010_4 are coupled in series. In the first mode, each delay line provides a delay of P/4. Thus, if the input clock signal is delayed clock signal DCLK, the output terminal of each multiplexer 1030_Z can provide phase-shifted clock signals PCLK1, PCLK2, and PCLK3.

However, if configuration line 1040 is pulled to logic zero, which puts the embodiment of Figure 10 into the second mode, only delay line 1010_1 and delay line 1010_3 are coupled in series. Delay lines 10102 and 10104 have their input terminal coupled to ground through multiplexers 1030_1 and 1030_3, respectively. In the second mode delay line 1010_1 and 1010_3 each provide a delay of P/2.

Coupling the input terminals of delay lines 1010_2 and 1010_4 to ground reduces power consumption and switching noise. However, in the second mode the embodiment of Figure 10 produces only one output clock signal, which is 180 degrees out of phase with the input clock signal and is generated at the output terminal of multiplexer 1030_2.

Figure 11 shows one embodiment of output generator 640 of Figure 6. The output generator of Figure 11 comprises an N-input multiplexer 1110. N-input multiplexer 1110 has N input terminals, referenced as 1110_0 to 1110N-1, select terminals 1112, and an output terminal 1114. When the embodiment of output generator 640 of Figure 11 is used in delay lock loop 600 of Figure 6, select terminals 1112 are coupled to controller 630, input terminal 1110_0 is coupled to receive delayed clock signal D_CLK, output terminal 1114 provides output clock signal O_CLK, and input terminals 1110_1 to 1110N-1 are coupled to receive phase-shifted clock signals P_CLK_1 to P_CLK_N-1, respectively. Select signals on select terminals 1112 determine which input signal is provided on output terminal 1114. Other embodiments of output generator 640 may include additional circuitry, such as clock buffers and clock dividers. In addition, some embodiments of output generator 640 drive additional clock signals, such as various versions of the phase-shifted clock signals.

Figure 12 shows a state diagram 1200 for one embodiment of controller 630 of Figure 6. On power-up or reset, controller 630 transitions to a reset stage 1210.

In reset stage 1210, controller 630 sets a phase counter (not shown) to zero, which causes output generator 640 to provide delayed clock signal DCLK as output clock signal O_CLK, and adjusts propagation delay D of delay line 610 (Figure 6) to a starting delay value. Starting delay values for propagation delay D include, for example, minimum propagation delay D_MIN, maximum propagation delay D_MAX, or the average of minimum propagation delay DMIN and maximum propagation delay DMAX. Controller 1210 then transitions to lock acquisition stage 1220.

In lock acquisition stage 1220, controller 630 synchronizes reference clock signal REFCLK and skewed clock signal S_CLK. Specifically, controller 630 adjusts propagation delay D of delay line 610 based on signals from phase detector 620. Phase detector 620 determines whether propagation delay D must be increased or decreased to synchronize skewed clock signal S_CLK with reference clock signal REFCLK. Lock acquisition is described above in greater detail with respect to Figures 6-9; therefore, the description is not repeated. In some embodiments, clock phase shifter 650 is also reset by the power-on/reset signal. For some of these embodiments, controller 630 does not adjust propagation delay D until after clock phase shifter 650 produces phase-shifted clock signals PCLK1 to PCLKN-1. If controller 630 cannot synchronize skewed clock signal SCLK with reference clock signal REF_CLK, controller 630 transitions to increment phase stage 1250, described below. Otherwise, controller 630 transitions to check lock window stage 1230 after controller 630 synchronizes skewed clock signal S_CLK with reference clock signal REFCLK (with an initial propagation delay ID in delay line 610).

In check lock window stage 1230, controller 630 must determine whether initial propagation delay ID is within lock window W. Specifically, propagation delay ID is

within lock window W if propagation delay ID is greater than lock window minimum W MIN and less than lock window maximum WMAX. If initial propagation delay ID is not within lock window W, controller 630 transitions to increment phase stage 1250. Otherwise, controller 630 transitions to lock maintenance stage 1240.

In lock maintenance stage 1240, controller 630 adjust propagation delay D of delay line 610 to maintain synchronization of skewed clock signal S_CLK with reference clock signal REFCLK. Lock maintenance is described above in greater detail; therefore, the description is not repeated. As described above, the present invention can maintain lock throughout the systems environment conditions. Therefore, controller 630 remains in lock maintenance stage 1240 unless a reset occurs that causes controller 630 to transition to reset stage 1210.

In increment phase stage 1250, controller 630 increments the phase counter, which causes output generator 640 to select a different phase-shifted clock signal.

Further, controller 630 resets delay line 610 so that propagation delay D returns to the starting delay value used in reset stage 1210. Controller 630 then transitions to lock acquisition stage 1220 and proceeds as described above.

Figure 13 is a block diagram of another embodiment of delay lock loop 600. The embodiment of Figure 13 uses the same principles as described above with respect to the embodiment of Figure 6. However, in the embodiment of Figure 13, clock phase shifter 650 generates phase-shifted clock signals PCLK1 to PCLKN-1 using reference clock signal REFCLK. Reference clock signal REFCLK and phase- shifted clock signals P_CLK_1 to PCLKN-1 are coupled to an input selector 1340. Input selector 1340 selects either reference clock signal REFCLK or one of phase-shifted clock signals P_CLK_1 to P_CLK_N-1 as a delay line input clock signal DLICLK, which is provided to the input terminal of delay line 610. Delay line 610 drives output clock signal O_CLK. A controller 1330 controls input

selector 1340 and delay line 610 based on the phase information provided by phase detector 620 so that delay line 610 provides a propagation delay D that synchronizes skewed clock signal S_CLK with reference clock signal REFCLK. Input selector 1340 can be implemented using the same circuit design as output generator 640.

Fig. 14 (a) is a block diagram of a digital frequency synthesizer 1400 in accordance with one embodiment of the present invention. Digital frequency synthesizer 1400 generates a frequency adjusted clock signal FREQ_CLK having a clock frequency FADJ equal to a clock frequency F_SYNCH of a synchronizing clock signal SYNCH_CLK multiplied by a multiplier M and divided by a divider D (i. e., FADJ=M*FSYNCH/D). As explained above, when digital frequency synthesizer 320 is used with digital clock manager 300,400, or 500, clock frequency F_SYNCH of synchronizing clock signal SYNCHCLK is equal to clock frequency FREF of reference clock signal REFCLK. Digital frequency synthesizer 1400 comprises clock dividers 1410 and 1420, optional clock selector 1430, phase comparator 1440, halt/restart circuit 1445, initialization circuit 1450, oscillator control circuit 1460, and variable digital oscillator 1470. Clock divider 1410 receives frequency adjusted clock signal FREQ_CLK, which is generated by variable digital oscillator 1470, and generates feedback clock signal FBK_CLK having a frequency FFBK equal to frequency F_ADJ of output clock FREQ_CLK divided by multiplier M. Clock divider 1410 drives feedback clock signal FBK_CLK to initialization circuit 1450 and phase comparator 1440. Clock divider 1420 receives synchronizing clock signal SYNCH_CLK and generates divided synchronizing clock signal D_SYNCH_CLK having a frequency F_D_SYNCH equal to frequency F_SYNCH of synchronizing clock signal SYNCH_CLK divided by divider D. Clock divider 1420 drives divided synchronizing clock signal D_SYNCH_CLK to initialization circuit 1450 and phase comparator 1440.

Clock selector 1430 receives both synchronizing clock signal SYNCH_CLK and frequency adjusted clock signal

FREQCLK and selectively drives either synchronizing clock signal SYNCHCLK or frequency adjusted clock signal FREQ_CLK as control clock signal CTRLCLK to initialization circuit 1450 and oscillator control circuit 1460.

Generally, synchronizing clock signal SYNCH_CLK is used during a coarse frequency search phase. Then, frequency adjusted clock signal FREQCLK is used for a fine frequency search phase as well as during a clock maintenance phase, i. e., maintaining the frequency of frequency adjusted clock signal FREQCLK at the selected frequency. The coarse frequency search phase, the fine frequency search phase, and the maintenance phase for one embodiment of the present invention is described in detail below. Halt/restart circuit 1445, which is used during coarse frequency search phase and the fine frequency search phase, is described below.

At power-on or reset,, initialization circuit 1450 controls oscillator control circuit 1460 to tune variable digital oscillator 1470 to generate frequency adjusted clock signal FREQCLK. Specifically, initialization circuit 1450 tunes variable digital oscillator 1470 so that frequency FADJ of frequency adjusted clock signal FREQ_CLK is equal to a selected frequency F_SEL, which equals frequency F_SYNCH of synchronizing clock signal SYNCH_CLK multiplied by multiplier M and divided by divider D. After frequency F_ADJ of frequency adjusted clock signal FREQ_CLK reaches selected clock frequency FSEL, initialization circuit 1450 passes control of oscillator control circuit 1460 and variable digital oscillator 1470 to phase comparator 1440. Phase comparator 1440 tunes variable digital oscillator 1470 to maintain frequency FADJ at selected frequency F_SEL despite environmental changes such as temperature.

Some embodiments of digital frequency synthesizer 1400 can use conventional clock dividers, clock selectors, halt/restart circuits, and phase comparators. However, detailed descriptions of specific embodiments of initialization circuits 1450, oscillator control circuit

1460, and variable digital oscillator 1470 are described below.

Fig. 14 (b) is a timing diagram for digital frequency synthesizer 1400. For clarity, Fig 14 (b) is idealized and omit such factors as propagation delay and skewing. In Fig. 14 (b), multiplier M is equal to 7 and divider D is equal to 5. Thus, as shown in Fig. 14 (b), divided synchronizing clock signal DSYNCHCLK has a rising edge, such as rising edges 1421,1423, and 1425, at every fifth rising edge of synchronizing clock signal SYNCHCLK, i. e., at rising edges 1401,1403, and 1405. Similarly, feedback clock signal FBKCLK has a rising edge, such as rising edges 1411,1413, and 1415, every seventh rising edge of frequency adjusted clock signal FREQ_CLK, i. e., at rising edges 1471,1473 and 1475. When frequency FADJ of frequency adjusted clock signal FREQ_CLK is equal to selected frequency FSEL and synchronizing clock signal SYNCHCLK is in phase with frequency adjusted clock signal FREQ_CLK, feedback clock signal FBKCLK and divided synchronizing clock signal DSYNCHCLK have the same phase and frequency. Accordingly, initialization circuit 1450 and phase comparator 1440 tune variable digital oscillator 1470 to match the phase and frequency of divided synchronizing clock signal DSYNCHCLK and feedback clock signal FBKCLK to drive frequency adjusted clock signal FREQ_CLK at selected frequency F-SEL. When the phase and frequency of divided synchronizing clock signal D_SYNCH_CLK and feedback clock signal FBCK_CLK match, every Mth rising edge of frequency adjusted clock signal FREQ_CLK aligns with a rising edge of synchronizing clock signal SYNCHCLK.

For example, rising edges 1471 and 1473 of frequency adjusted clock signal FREQ_CLK align with rising edges 1401 and 1403 of synchronizing clock signal SYNCH_CLK. The alignments are commonly referred to as concurrences. The time between two consecutive concurrences is commonly referred to as a concurrence period.

Fig. 15 is a block diagram of an embodiment of variable digital oscillator 1470. The embodiment of Fig. 3

comprises a dual-input edge-triggered SR circuit 1510, an inverter 1540, and a variable delay line 1520 having a low precision delay line 1525 and a trim circuit 1527. Dual- input edge-triggered SR circuit 1510 includes a first set input terminal S_IN1, a first set enable input terminal SEN1, a second set input terminal S_IN2, a second set enable input S_EN2, a first reset input terminal R_IN1, a first reset enable input terminal R_EN1, a second reset input terminal R_IN2, a second reset enable input terminal REN2, and an output terminal OUT. Operation and construction of dual-input edge-triggered SR circuits are well known in the art and therefore are not described in detail herein. Table 1 provides a truth table for an active high version of dual-input edge-triggered SR CIRCUIT 1510. Basically, an active (e. g., rising) edge of a set input signal on a set terminal while the corresponding set enable signal at the set enable terminal is at an enabled logic level (e. g., logic high) causes output terminal OUT to drive an output signal to an active state (e. g., logic high). Conversely, an active (e. g., rising) edge on a reset input signal on a reset terminal while the corresponding reset enable signal on the corresponding reset enable terminal is at an enabled logic level (e. g., logic high) causes output terminal OUT to drive an output signal to an inactive state (e. g., logic low). For clarity, the circuits herein are described using logic high as the enabled logic level and the active logic level. Similarly, rising edges are used as the active edges. However, those skilled in the art can apply the principles of the present invention using different enabled logic levels, active logic levels, and active edges.

TABLE 1 S_IN1 SEN1 S_IN2 SEN2 RIN1 REN1 OUT RE H X X X X H X X RE H X X H X X X X RE H L where RE is a rising edge, H is logic high, L is logic low, and X is a do not care condition.

Synchronizing clock signal SYNCHCLK is coupled to first set input terminal SIN1 and a reference clock enable signal RCLKEN is coupled to first enable input terminal S_EN1. Output terminal OUT of dual edge-triggered SR CIRCUIT 1510 drives frequency adjusted clock signal FREQ_CLK and is coupled to variable delay line 1520. In the embodiment of Fig. 15, variable delay line 1520 is implemented using a low precision delay line 1525 have a base delay BD and a trim circuit 1527 that provides a delay of 0,0.25,0.50, or 0.75 times base delay BD. Other embodiments of the present invention can use conventional variable delay lines. Variable delay line 1520 delays the output signal of dual-input edge-triggered SR circuit 1510 by a variable amount under the control of oscillator control circuit 1460 to generate delayed output signal D OUT. Delayed output signal D OUT is coupled to first reset input signal RIN1 as well as the input terminal of inverter 1540. The output terminal of inverter 1540 is coupled to second set input terminal S_IN2. An oscillator enable signal OSC_EN is coupled to second set enable terminal S_EN2. Under normal operations, oscillator enable signal OSC_EN is in the logic high state to enable variable digital oscillator 1470. Therefore, a rising edge from output terminal OUT that is delayed by variable delay line 1520 causes dual-input edge-triggered SR circuit 1510 to transition to logic low. Conversely, a falling edge from output terminal OUT that is delayed by variable delay line 1520 and inverted by inverter 1540 causes dual-input edge- triggered SR circuit 1510 to transition to logic high.

Thus, variable digital oscillator 1470 generates a clock signal such as frequency adjusted clock signal FREQ_CLK.

The frequency of frequency adjusted clock signal FREQ CLK is controlled by the amount of delay provided by variable delay line 1520.

In the embodiment of Fig. 15, low precision variable delay line 1525 provides a variable delay ranging from 0 to 127 times low precision base delay LBD, where low precision base delay LBD is the smallest non-zero delay provided by low precision variable delay 1525. Furthermore, trim circuit 1530 provides an additional delay of 0,0.25,0.5 or 0.75 base delay units. Thus, in the embodiment of Fig.

15, variable delay line 1520 can provide 512 delay values ranging from 0 to 127.75 low precision base delay LBD in multiples of 0.25 low precision base delay LBD. Thus, in the embodiment of Fig. 15, variable delay line 1520 provides a delay between 0 and 511 times a base delay BD, which is equal to 0.25 times low precision base delay LBD.

Depending on the frequency F_SYNCH of synchronizing clock signal SYNCHCLK, multiplier M, and divisor D, variable delay line 1520 may not be able to provide the exact amount of delay necessary to generate frequency adjusted clock signal FREQCLK at selected frequency F_SEL.

Fig. 16 illustrates this problem of using digital delay lines in clock generation circuits. Specifically, Fig. 16 shows a synchronizing clock signal SYNCHCLK, a conventional frequency adjusted clock signal CFREQCLK, and an frequency adjusted clock signal FREQ CLK generated using a dual-input edge-triggered SR circuit 1510 in accordance with one embodiment of the present invention.

In Fig. 16, rising edges 1651,1661, and 1671 of synchronizing clock signal SYNCHCLK, conventional frequency adjusted clock signal CFREQCLK, and frequency adjusted clock signal FREQ_ CLK, respectively, are synchronized.

In Fig. 16, multiplier M. is equal to 4 and divider D is equal to 1. Synchronizing clock signal SYNCHCLK has a period of 50 nanoseconds. Accordingly, 25 nanoseconds separates each consecutive clock edge in synchronizing clock signal SYNCHCLK. Ideally, variable delay line 1520

would provide a delay of 6.25 nanoseconds, which is equal to 25 divided by 4. However, if the base delay unit of variable delay line 1520 (Fig. 15) is one nanosecond, then variable delay line 1520 is configured to provide 6 nanoseconds of delay between consecutive edges of frequency adjusted clock signal FREQCLK1. As explained above, during concurrence, i. e., every 4 periods, the rising edge of conventional frequency adjusted clock signal CFREQCLK should occur at the same time as the rising edge of synchronizing clock signal SYNCHCLK. However, as illustrated in Fig. 16, rising edge 1665 of conventional output clock C_FREQ_CLK precedes rising edge 1655 of synchronizing clock signal SYNCHCLK by 2 nanoseconds. The two nanosecond misalignment reoccurs every concurrence period. Thus, over time the misalignment can cause serious synchronization problems in digital systems.

To eliminate the misalignment, just prior to concurrence, i. e., when a rising edge of synchronizing clock signal SYNCHCLK should be aligned with a rising edge of frequency adjusted clock signal FREQCLK, oscillator enable signal OSC_EN is deasserted and reference clock enable signal is asserted. Thus, during a concurrence the rising edge of synchronizing clock signal SYNCHCLK on input terminal S_IN1 of dual-input edge-triggered SR circuit 1510 causes a rising edge on output terminal OUT of dual-input edge-triggered SR circuit 1510, which drives frequency adjusted clock signal FREQ_CLK. After concurrence, oscillator enable signal OSC_EN is reasserted and reference clock enable signal RCLKEN is deasserted.

Thus, every Mth clock period of frequency adjusted clock signal FREQ_CLK, frequency adjusted clock signal FREQ_CLK is realigned with synchronizing clock signal SYNCH_CLK even if variable delay line 1520 does not provide the exact delay necessary to drive frequency adjusted clock signal FREQ_CLK at selected frequency F_SEL.

Accordingly, as shown in Fig. 16, rising edge 1675 of frequency adjusted clock signal FREQ_CLK is aligned with rising edge 1655 of synchronizing clock signal SYNCH_CLK.

Therefore, the time between falling edge 1671 of frequency adjusted clock signal FREQ_CLK and rising edge 1675 of frequency adjusted clock signal FREQ CLK is 8 nanoseconds rather than 6 nanoseconds. Thus, the time period during a concurrence cycle of frequency adjusted clock signal FREQ CLK is equal to 50 nanoseconds rather than 48 nanoseconds as would be dictated by using only variable delay line 1520 to control the clock edges of frequency adjusted clock signal FREQ CLK. Consequently, the average frequency of frequency adjusted clock signal FREQ_CLK over an concurrence period is equal to selected frequency F-SEL.

Fig. 17 is a block diagram of oscillator control circuit 1460 in accordance with one embodiment of the present invention. The embodiment of Fig. 17 includes a delay line register 1710, an optional incrementer 1730, an optional delay line fine tuning controller 1720, and an optional OR gate 1740. Delay line register 1710 receives a delay value DV [8: 0] from initialization circuit 1450 (Fig.

14). The contents of delay line register 1710 are provided to incrementer 1730 and initialization circuit 1450 as delay value feedback signals DV_FB [8: 0]. Initialization circuit 1450 adjusts delay value DV [8: 0] during the coarse frequency search phase to match frequency FADJ of frequency adjusted clock signal FREQ_CLK with selected frequency F_ SEL as described below. Delay line register 1710 also receives a carry signal CARRY and a borrow signal BORROW from delay line fine tuning controller 1720. IF delay line fine tuning controller 1720 is enabled, delay line register 1710 is configured to increment when carry signal CARRY is in the active logic level (e. g., logic high) and to decrement on when borrow signal BORROW is in the active logic level (e. g., logic high). Generation of carry signal CARRY and borrow signal BORROW is described below.

The delay value in delay line register 1710 is selectively incremented by incrementer 1730 to generate delay select signals DELAy-sEL [8: 0], which are coupled to

variable delay line 1520 (Fig. 15). Specifically, delay line fine tuning controller 1720 drives a fine tuning increment control signal FT_INC to incrementer 1730. If fine tuning increment control signal FT_INC is at an active logic level (e. g., logic high), then incrementer 1730 increments the value from delay line register 1710. Delay line fine tuning controller 1720 is controlled by frequency comparator 1450 using control signal A/ ! S or by phase comparator 1440 (Fig. 14 (a)) using phase comparator control signal PCCTRL. For the embodiment of Fig. 17, if delay line fine tuning controller 1720 is enabled then if either control signal A/ ! S or phase comparator signal PC_CTRL is in the active state (i. e., logic high) then delay line fine tuning controller 1720 is configured to add additional delay during a concurrence period. Thus, OR gate 1740 generates add delay signal ADDDELAY from control signal A/ ! S and phase comparator control signal PC_CTRL. The use of delay line fine tuning controller 1720 is described in detail below.

Fig. 18 is a block diagram of initialization circuit 1450 in accordance with one embodiment of the present invention. Initialization circuit 1450 performs a coarse frequency search to set the value in variable delay line 1520. Specifically, during the coarse frequency search phase, the embodiment of Fig. 18 performs a fast binary search to determine delay value DV [8 : 0] for delay line register 1710, which causes frequency F_FBK of feedback clock FBKCLK and frequency FDSYNCH of divided reference clock DSYNCHCLK to be equal. Other embodiments of initialization circuit 1450 may use other methods to select delay value DV [8: 0] for delay line register 1710. The embodiment of Fig. 18 comprises a right shift register 1830, an adder/subtracter 1840, a frequency comparator 1850, and an overflow register 1860.

Initially, adder/subtracter 1840 is configured to provide a delay value DV [8: 0] that causes variable delay line 1520 to provide 50% of the maximum delay that can be provided by variable delay line 1520. For the embodiment

of Fig. 15, delay value DV [8: 0] is initially set at 256, i. e., halfway between 0 and 511. Right shift register 1830 is initially configured to be equal to half of the initial value of delay value DV [8: 0]. Thus, for the embodiment of Fig. 15, right shifter 1830 is configured with an initial value of 128. Adder/subtracter 1840 is controlled by frequency comparator 1850 to either add the value in right shifter 1830 to the value in delay line register 1710 (Fig.

17) or to subtract the value in right shifter 1830 to the value in delay line register 1710. Specifically, the value in delay line register 1710 is provided by delay value feedback signals DV_FB [8: 0]. After each addition or subtraction operation, the content of right shifter 1830 is "right shifted", which effectively divides the value in right shifter 1830 in half. However, right shifter 1830 maintains a minimum value of 1.

Frequency comparator 1850 receives feedback clock signal FBKCLK and divided reference signal DSYNCHCLK and generates a control signal A/ ! S which dictates whether adder/subtracter 1840 performs an ADD operation or a SUBTRACT operation. Specifically, if frequency FFBK of feedback clock signal FBKCLK is greater than frequency FDSYNCH of divided synchronizing clock signal DSYNCHCLK, the delay provided by variable delay line should be increased. Accordingly, frequency comparator 1850 causes adder/subtracter 1840 to perform an ADD operation by driving control signal A/ ! S to the add logic level (typically logic high). Conversely, if frequency FFBK of feedback clock signal FBK_CLK is less than frequency F_D_SYNCH of divided synchronizing clock signal D_SYNCH_CLK, the delay provided by variable delay line should be decreased. Accordingly, frequency comparator 1850 causes adder/subtracter 1840 to perform a SUBTRACT operation by driving control signal A/ ! S to the subtract logic level (typically logic low). After each addition or subtraction, halt/restart circuit 1445 (Fig. 14) halts and restarts initialization circuit 1450, and oscillator control circuit 1460 so that frequency adjusted clock

signal FREQ_CLK is started in phase with synchronizing clock signal SYNCHCLK. Halting and restarting allows frequency comparator 1850 to determine the proper value of control signal A/ ! S without having to compensate for phase variations. However, some embodiments of the present invention may use frequency comparators that automatically compensate for phase variations. For these embodiments, halting and restarting may not be necessary.

In some embodiments of the present invention, frequency comparator 1850 also generates a frequency comparator reversal signal FC_REV. Frequency comparator reversal signal FC_REV is driven to a active state (e. g., logic high) when frequency FFBK of feedback clock signal FBKCLK becomes greater than frequency FDSYNCH of divided synchronizing clock signal DSYNCHCLK and also when frequency F_D_SYNCH of divided synchronizing clock signal D_SYNCH_CLK becomes greater than frequency F_FBK of feedback clock signal FBK_CLK. In one embodiment of the present invention, a coarse frequency search phase ends when the value of right shifter 1830 is equal to one.

Table 2 provides an example of the operation for the embodiment of initialization circuit 1450 in Fig. 18. In the example of Table 2, a delay value DV of 371.5 provides the optimum delay for matching frequency F_FBK of feedback clock signal FBK_CLK to frequency F_D_SYNCH of divided synchronizing clock signal D_SYNCH_CLK.

TABLE 2 Coarse Frequency Right Shifter Delay Line Search Step 1830 Register 1730 A/! S 0 128 256 1 1 64 384 0 2 32 320 1 3 16 352 1 4 8 368 1 5 4 376 0 6 2 372 0 7 1 370 1 8 1 371 1 9 1 372 0 10 1 371 1 As explained above initially delay line register 1710 is configured to contain 256 and right shift register 1830 is configured to contain 128. Because the ideal value for delay value DV is 371.5, control signal A/ ! S is in the Add state (i. e., logic high). At step 1, adder/subtracter 1840 adds 128 to 256; delay line register 1710 stores 384 (i. e., 256+128); and right shifter 1830 right shifts 128, which becomes 64. When delay line register 1710 contains 384 frequency comparator 1850 drives control line A/ ! S to the subtract logic level (i. e., logic low). Then, in step 2, adder/subtracter 1840 subtracts 64 from 384; delay line register 1710 stores 320 (i. e., 384-64) ; and right shifter 1830 right shifts 64 which becomes 32. When delay line register 1710 contains 320 frequency comparator 1850 drives control line A/ ! S to the add logic level (i. e., logic high). This process continues until the value in delay line register 1710 is as close to the optimum value as possible.

Overflow register 1860 receives output bit 9 of adder/subtracter 1840. If output bit 9 is active, an overflow conditions has occurred and must be remedied by an outside control system (not shown). Typically, overflow conditions only occur if clock divider/multiplier 1400 is used with clock frequencies that are too fast or too slow compared to the possible delay time provided by variable delay line 1520.

As stated above, some embodiments of the present invention perform a fine frequency search using delay line fine tuning controller 1720 after initialization circuit 1450 establishes a delay value DV [8 : 0]. As explained above, variable digital delay lines may not be able to provide the exact delay necessary to generate frequency adjusted clock signal FREQCLK at selected frequency F_SEL.

The present invention solves this problem by using dual- input edge-triggered SR circuit 1510 (Fig. 15) to synchronize rising clock edges on frequency adjusted clock signal FREQ_CLK to reference clock SYNCHCLK during a concurrence of frequency adjusted clock signal FREQ_CLK and synchronizing clock signal SYNCHCLK. As explained above, a concurrence occurs when a rising edge of frequency adjusted clock signal FREQ CLK is suppose to be aligned with a rising edge synchronizing clock signal SYNCH_CLK, i. e., every Mth rising edge. However, between concurrence the frequency and phase of frequency adjusted clock signal FREQ_ CLK may differ from an ideal clock signal at selected frequency FUSEL. Delay line fine tuning controller 1720 selectively adjusts the delay provided by variable delay line 1520 to better match the frequency and phase of the ideal frequency adjusted clock signal.

Effectively, delay line fine tuning controller 1720 adds additional precision to variable delay line 1520 by selectively increasing the delay provided by variable delay line 1520 by one base delay BD at various times during a concurrence period. Fig. 19 illustrates the advantages provided by delay line fine tuning controller 1720.

Specifically, Fig. 19 shows a synchronizing clock signal SYNCH_CLK, an ideal frequency adjusted clock signal IFREQCLK, an frequency adjusted clock signal FREQCLK1 using a dual-input edge-triggered SR circuit in accordance with one embodiment of the present invention, and an frequency adjusted clock signal FREQ CLK2 using both a dual-input edge-triggered SR circuit and delay line fine tuning controller 1720 in accordance with another embodiment of the present invention.

In Fig. 19, multiplier M is equal to 4 and divider D is equal to 1. Synchronizing clock signal SYNCH_CLK has a period of 50 nanoseconds. Accordingly, 25 nanoseconds separates each consecutive clock edge in synchronizing clock signal SYNCHCLK. Ideal frequency adjusted clock signal I_FREQ_CLK has a period of 12.5 nanoseconds.

Accordingly, 6.25 nanoseconds separates each consecutive clock edge in ideal frequency adjusted clock signal IFREQCLK. If the base delay unit of variable delay line 1520 (Fig. 15) is one nanosecond, then variable delay line 1520 is configured to provide 6 nanoseconds of delay between consecutive edges of frequency adjusted clock signal FREQ_CLK1. However, during a concurrence, the rising edge of frequency adjusted clock signal FREQ_CLK1 is controlled by the rising edge of synchronizing clock signal SYNCHCLK. Accordingly, rising edge 1935 of frequency adjusted clock signal FREQ_CLK1 is aligned with rising edge 1915. of synchronizing clock signal SYNCHCLK. Therefore, the time between falling edge 1934 of frequency adjusted clock signal FREQ_CLK1 and rising edge 1935 of frequency adjusted clock signal FREQ_CLK1 is 8 nanoseconds. Thus, the average period during a concurrence cycle of frequency adjusted clock signal FREQ_CLK1 is equal to 12. 5 nanoseconds. However, frequency adjusted clock signal FREQ_CLK1 is distorted from ideal frequency adjusted clock signal IFREQCLK because the required extra delay during a concurrence period is bunched at the end of the concurrence period.

Delay line fine tuning controller 1720 selectively increments the delay provided by delay line 1520 to more closely match ideal frequency adjusted clock signal I_FREQ_CLK. Rather than lumping the extra delay required to match the average period of frequency adjusted clock signal FREQ_CLK2 with ideal frequency adjusted clock signal I_FREQ_CLK at the of the concurrence period, delay line fine tuning controller 1720 spreads the additional required base delay units over the entire concurrence period. Thus, falling clock edge 1942 and rising clock edge 1943 of

frequency adjusted clock signal FREQCLK2 are separated by 7 nanoseconds rather than 6 nanoseconds. Similarly, falling clock edge 2046 and rising clock edge 1947 of frequency adjusted clock signal FREQCLK2 are separated by 7 nanoseconds rather than 6 nanoseconds. Thus, the waveform of frequency adjusted clock signal FREQ_CLK2 more closely matches ideal frequency adjusted clock signal IFREQCLK than frequency adjusted clock signal FREQ_CLK1.

Fig. 20 is a block diagram of a delay line fine tuning controller 1720 in accordance with one embodiment of the present invention. The embodiment of Fig. 20 includes an up/down counter 2020, a modulo-M delta sigma circuit 2030, AND gate 2040, an AND gate 2050, and an inverter 2060.

Up/down counter 2020 is configured to count in modulo M.

For example, if M is equal to 4, up/down counter 2020 would count up in the sequence 0,1,2,3,0,1, etc. and count down in the sequence 3,2,1,0,3,2, etc.

Conceptually, up/down counter 2020 is used to provide high precision bits for delay line register 1710.

Specifically, the value in up/down counter 2020 indicates the number of additional base delay units needed during a concurrence period to more precisely match frequency FADJ of frequency adjusted clock signal FREQ_CLK to selected frequency FSEL. In the example of Fig. 19, the base delay value is 1 nanoseconds, the delay value in delay line register 1710 is equal to 6 (i. e., one period of frequency adjusted clock signal FREQCLK is 12 nanoseconds), the period of concurrence is 50 nanoseconds, and M is equal to 4. Thus, M periods of frequency adjusted clock signal FREQ_CLK is equal to 48 nanoseconds (i. e., 4 * 12 nanoseconds). However, since the concurrence period is 50 nanoseconds, two more base delay units should be added to frequency adjusted clock signal FREQ_CLK during each concurrence period. Therefore, up/down counter 2020 should contain the value 2. Thus, in general up/down counter 2020 should be equal to the concurrence period minus M times two times the base delay value. However, during actual operation the information to

calculate the value for up/down counter 2020 is not generally available. Therefore, searching techniques are used to calculate the value for up/down counter 2020. A searching technique in accordance with one embodiment of the present invention is described below.

Up/down counter 2020 receives the value M-1 (i. e., multiplier M minus 1) on input terminals IN [7: 0] via signals M_ml [7: 0]. Up/down counter 2020 provides both an output value OUT [7: 0] and a next value NEXT [7: 0]. Output value OUT [7: 0] transitions on rising clock edges of control clock CTRLCLK. In contrast, next value NEXT [7: 0] is equal to the value that OUT [7 : 0] will become after the next rising clock edge. Add delay signal ADDDELAY is also provided to control terminal UP. If add delay signal ADDDELAY is driven to the active logic level (i. e., logic high) up/down counter 2020 counts up. Otherwise, up down/counter 2020 counts down.

To force modulo M counting, up/down counter 2020 includes a synchronous reset terminal coupled to the output terminal of AND gate 2040. AND gate 2040, which receives status signal OUT=M ml and add delay control signal ADD DELAY, generates carry signal CARRY. Status signal OUT=Mml is driven to logic high when output value OUT [7: 0] is equal to multiplier M minus 1. Status signal OUT=Mml is typically generated by a comparator (not shown). Thus, if up/down counter 2020 is counting up and output value OUT [7: 0] is equal to multiplier M minus 1, then up/down counter 2020 is reset to zero on the next rising edge of clock signal CTRLCLK. Carry signal CARRY is also provided to delay line register 1710. An active logic level (e. g,, logic high) on carry signal CARRY enables delay line register 1710 to increment.

Up/down counter 2020 also includes a load control terminal LOAD coupled to the output terminal of AND gate 2050. AND gate 2050, which receives status signal OUT=ZERO and add delay control signal ADDDELAY through inverter 2060, generates borrow signal BORROW. Status signal OUT=ZERO is driven to logic high when output value OUT [7: 0]

is equal to zero. Status signal OUT=ZERO is typically generated by a comparator (not shown). Thus, if up/down counter 2020 is counting down and output value OUT [7: 0] is equal to zero, then up/down counter 2020 is configured to load M minus 1. Borrow signal BORROW is also provided to delay line register 1710. An active logic level (e. g., logic high) on Borrow signal BORROW enables delay line register 1710 to decrement.

Next signal NEXT [7: 0] is coupled to pulse input terminals P_IN [7: 0] of modulo-M delta-sigma circuit 2030.

Modulo-M delta sigma circuit 2030 also receives value M-1 (i. e., multiplier M minus 1) on modulo input terminals MIN [7: 0] via signals Mml [7: 0], a pre-concurrence signal PRECONC, and control clock signal CTRLCLK. Modulo-M delta-sigma circuit 2030, drives fine tuning increment control signal FT_INC. For clarity, modulo-M delta sigma circuit 2030 is said to receive a modulo value M (although in the embodiment of Fig. 20, M minus 1 is actually received) and a pulse count P. Pre-concurrence signal PRE_CONC, which is provided to reset terminal RESET of modulo-M delta sigma circuit 2030, is driven to the active logic level (e. g., logic high) the clock cycle prior to a concurrence. During M periods fine tuning increment control signal FT_INC should contain P active pulses. The active pulses on fine tuning increment control signal FTINC should be spread out across the M Periods. Table 3 provides some samples of fine tuning increment control signal FT-INC, where a"1"represents an active pulse and "0"represents in inactive pulse.

TABLE 3 <BR> <BR> <BR> <BR> <BR> M P FT_INC<BR> <BR> <BR> <BR> <BR> 4 2 1010 6 2 100100 6 3 101010 6 5 111110 7 3 1010100 7 4 1101010 9 4 101010100 12 5 101010010100 15 3 100001000010000 Concurrence Fig. 21 is a block diagram of modulo-M delta sigma circuit 2030 in accordance with one embodiment of the present invention. The embodiment of Fig. 21 includes an incrementer 2105, a multiplier 2110, a subtracter 2120, an adder 2130, a multiplexing circuit 2140, a latch 2150, and a comparator 2160. Modulo input terminals MIN [7: 0] are coupled to an input port IN of incrementer 2105, a second input port IN2 of multiplexing circuit 2140, and a second input port IN2 of comparator 2160. Because the specific embodiment of Fig. 21 is designed to receive modulo value M minus 1 rather than modulo value M on modulo input terminals MIN [7: 0], incrementer 2105 increments the value provided on modulo input terminals M_ IN [7: 0] by one to generate modulo value M, which is provided to a first input port of multiplier 2110. Other embodiments of the present invention may receive modulo value M on modulo input terminals MIN [7: 0]. These embodiments would not require incrementer 2105. A second input port IN2 of multiplier 2110 is coupled to an output terminal of comparator 2160.

Multiplier 2110 multiples the value provided on modulo input terminals MIN [7: 0] by the output value of comparator 2160 to generate an output product, which is provided to a second input port IN2 of subtracter 2120. In many embodiments of the present invention, multiplier 2110 is implemented using a plurality of AND gates, because the output value of comparator 2160 is a single bit.

Pulse input terminals P_IN [7: 0] are coupled to a first input terminal of subtracter 2120. Subtracter 2120 is configured to subtract the output value from multiplier 2110 from the pulse value provided on pulse input terminals PIN [7: 0] to generate a delta value DELTA on output port OUT of subtracter 2120. Output port OUT of subtracter 2120 is coupled to a first input port IN1 of adder 2130. A second input port IN2 of adder 2130 is coupled to an output port OUT of latch 2150. Adder 2130 is configured to add delta value DELTA provided by subtracter 2120 to a latch value LATCH provided by latch 2150 to generate a sigma value SIGMA on output port OUT of adder 2130. Output port OUT of adder 2130 is coupled to a first input port IN1 of multiplexing circuit 2140. Some embodiments of the present invention calculate sigma value SIGMA using a sigma calculation circuit, such as a three input adder, which can perform the calculation faster than using a separate delta calculation circuit, such as subtracter 2120. In these embodiments the sigma calculation circuit replaces subtracter 2120 and adder 2130. For embodiments using a three input adder, the output value of multiplier 2110 can be converted into a 2's complement format prior to the three input adder. Furthermore, incrementer 2105 and multiplier 2110 may be combined within a circuit to compute the 2's complement format.

Multiplexing circuit 2140 is configured to drive either sigma value SIGMA or the value provided on modulo input terminals MIN [7: 0] to input port IN of latch 2150 through output port OUT of multiplexing circuit 2140.

Reset terminal RESET is coupled to a control terminal of multiplexing circuit 2140. Pre-concurrence signal PRE CONC, which is coupled to reset terminal RESET in Fig.

20, determines the output value of multiplexing circuit 2140. Specifically, during the clock cycle before concurrences multiplexing circuit 2140 is configured to drive the value provided on modulo input terminals MIN [7: 0] to input port IN of latch 2150. Otherwise, multiplexing circuit 2140 is configured to drive sigma

value SIGMA to input port IN of latch 2150. Latch 2150, which is clocked by control clock signal CTRLCLK, provides a LATCH value on output port OUT of latch 2150 to a first input port IN1 of comparator 2160. Comparator 2160, which is configured to compare latch value LATCH with the value provided on modulo input terminals MIN [7: 0], generates fine tuning increment signal FT_INC on output terminal OUT of comparator 2160. Specifically, if latch value LATCH is greater than the modulo value provided on modulo input terminals MIN [7: 0], fine tuning increment signal FT_INC is driven to the active logic level (e. g., logic high).

Otherwise, fine tuning increment signal FTINC is driven to the inactive logic level (e. g., logic low).

Table 4 provides a pseudo code implementation of a second embodiment of modulo-M delta sigma circuit 2030.

One skilled in the art of digital design can convert the pseudo code of Table 4 to a hardware definition language such as Verilog to implement the circuit.

TABLE 4 DELTA = P- (FTINC * M) SIGMA = DELTA + LATCH IF RESET then LATCH= (M-1) else LATCH=SIGMA IF LATCH > (M-1) then FTINC = 1 else FTINC = 0 As explained above, one embodiment of the present invention operates digital frequency synthesizer 1400 in three distinct phases. Specifically, digital frequency synthesizer 1400 is operated in a coarse frequency search phase, a fine frequency search phase, and a clock maintenance phase. During the coarse frequency search phase, variable delay line 1520 (Fig. 15) is configured using the fast binary search as described above. Delay line fine tuning controller 1720 (Fig. 17) is disabled during the coarse frequency search phase. The coarse frequency search phase ends when right shifter 1830 (Fig.

18) contains a value of one.

During the fine frequency search phase, delay line fine tuning controller 1720 is activated and clock selector 1430 (Fig. 14) is configured to select frequency adjusted clock signal FREQ_CLK as the control clock signal CTRL_CLK.

During the fine frequency search phase, delay line fine tuning controller 1720 is controlled by frequency comparator 1850 (Fig. 18) using control signal A/ ! S as described above. Specifically, control signal A/ ! S determines whether up/down counter 2020 increments or decrements. Halt/restart circuit 1445 is also used in the fine frequency search phase during each concurrence period.

In the fine frequency search phase, up/down counter 2020 increments or decrements by one each concurrence period.

As explained above, up/down counter 2020 is linked to delay line register 1710 by carry signal CARRY and borrow signal BORROW. Thus, the value in delay line register 1710 may change during the fine frequency search phase. The fine frequency search phase ends when frequency comparator 1850 detects a reversal and drives frequency comparator reversal signal to the active state.

During the clock maintenance phase, phase comparator 1440 (Fig. 14) takes control of oscillator control circuit 1460 from initialization circuit 1450. During the maintenance phase, delay line fine tuning controller 1720 is selectively enabled. Specifically, in one embodiment of the present invention, the maintenance phase cycles through three sub-phases. Each sub-phase lasts for one concurrence period. In the first sub-phase, phase comparator 1440 is initialized. During the first sub-phase the value of up/down counter 2020 does not change. In the second sub- phase phase comparator 1440 determines whether feedback clock signal FBK_CLK leads or lags divided synchronizing clock signal DSYNCHCLK. In the third sub-phase delay line fine tuning controller 1720 is enabled. Thus, up/down counter 2020 can increment or decrement by one as controlled by phase comparator control signal PC_CTRL. As explained above phase comparator control signal PC_CTRL indicates whether feedback clock signal FBK_CLK leads or

lags divided synchronizing clock signal DSYNCHCLK. If delayed synchronizing clock signal DSYNCHCLK leads feedback clock signal FBKCLK, then phase comparator 1440 causes up/down counter 2020 to decrement during the second sub-phase. Otherwise, phase comparator 1440 causes up/down counter 2020 to increment during the second sub-phase. In other embodiments, the maintenance phase may include more or fewer sub-phases. For example, in one embodiment, the first sub-phase and the second sub-phase described above are combined into a single sub-phase. Some embodiments of the present invention wait until phase comparator 1440 detects multiple reversals (such as four reversals) before declaring frequency adjusted clock signal FREQ_CLK is at selected frequency F_SEL.

In the various embodiments of the present invention, novel structures have been described for digital clock managers. By using a synchronizing clock signal with matched output delays, the present invention can provide deskewed output clock signals with synchronized frequency adjusted clock signals. The various embodiments of the structures and methods of this invention that are described above are illustrative only of the principles of this invention and are not intended to limit the scope of the invention to the particular embodiments described. For example, in view of this disclosure those skilled in the art can define other delay lock loops, output generation circuits, output delays, variable delay circuits, digital frequency synthesizers, clock phase shifters, delay lines, output generators, controllers, phase detectors, latches, registers, clock dividers, phase comparators, frequency comparators, up/down counters, initialization circuits, delta-sigma circuits, latches, halt/restart circuits, delay lines, variable digital oscillators, edge-triggered SR circuits, active edges, enable logic levels, and so forth, and use these alternative features to create a method, circuit, or system according to the principles of this invention. Thus, the invention is limited only by the following claims.