Background of the Invention
1. Field of the Invention
The present invention relates to frequency divider circuits, and in particular, multiphase clock dividers for frequency dividing multiphase clock signals simultaneously.
2. Description of the Related Art
Many types of frequency dividers are well known in the art, including those that are programmable for allowing the frequency division ratio to be selected and varied. One application for frequency dividers is in digital phase lock loops where a frequency divider is often used for frequency dividing the clock signal from a reference oscillator and/or the feedback signal from the loop oscillator. A problem with such applications, however, is the effect upon the dynamic operation characteristics of the phase lock loop when a divider, and in particular, a programmable divider, is inserted within the loop. The loop dynamics change every time the frequency divider is reprogrammed. Furthermore, such effects upon the loop dynamics become even more complicated when multiphase signals must be divided.
For example, where multiphase signals are to be divided and the mutual phase relationships among the various clock phases are important, a problem which arises is that of how to frequency divide all of the phases while maintaining their mutual phase alignments and synchronization. Using a divider for each phase introduces variances among those phase relationships. Plus, depending upon the type of divider used, permanent phase errors can result if one or more of the phases experiences a "phase flip," from which it/they may never recover.
Accordingly, it would be desirable to have an improved technique for frequency dividing, and in particular, programmably frequency dividing, multiphase clock signals while maintaining the original phase alignment of the original clock signals.
Summary of the Invention
A programmable multiphase clock divider in accordance with one embodiment of the present invention includes a frequency divider and a clock generator for selectively frequency dividing a multiphase input clock to provide a lower-frequency, self-aligned, multiphase output clock. The frequency divider receives a first input clock phase at an input clock frequency plus a programming signal, and in accordance with these signals provides a first output clock phase at an output clock frequency and an output control signal, with the output clock frequency being lower than that of the input clock frequency. The clock generator also receives the first input clock phase plus the first output clock phase, the output control signal and additional input clock phases at the input clock frequency, and in accordance with these signals provides additional output clock phases at the output clock frequency, with the output clock phases all being phase-aligned.
In accordance with a preferred embodiment of the present invention, the frequency divider includes a counter and combinational logic circuitry, and the clock generator includes a multiphase signal generator and a multiplexor. The counter receives a preset signal and the first input clock phase and in accordance therewith provides a multibit count signal, with a portion of the multibit count signal forming the first output clock phase. The combinational logic circuitry receives the multibit count signal and programming signal and in accordance therewith provides the preset signal. The multiphase signal generator receives the first input clock phase, the first output clock phase and the additional input clock phases and in accordance therewith provides a number of intermediate clock phases. The multiplexor multiplexes the intermediate clock phases in accordance with the output control signal to provide the additional output clock phases.
These and other features and advantages of the present invention will be o understood upon consideration of the following detailed description of the invention and the accompanying drawings.
Brief Description of the Drawings
FIG. 1 is a functional block diagram of a digital phase lock loop with a programmable multiphase clock divider in accordance with the present invention external to the loop.
FIG. 2 is a functional block diagram of a programmable multiphase clock divider in accordance with one embodiment of the present invention.
FIG. 3 is a timing diagram of the input and output clock phases for the clock divider of FIG. 2 when programmed to divide by 2.
FIG. 4 is a timing diagram of the input and output clock phases for the clock divider of FIG. 2 when programmed to divide by 3.
FIG. 5 is a timing diagram of the input and output clock phases for the clock divider of FIG. 2 when programmed to divide by 5.
FIG. 6 is a timing diagram of the input and output clock phases for the clock divider of FIG. 2 when programmed to divide by 7.
FIG. 7 together with 7A-7L form a logic diagram for a programmable multiphase clock divider in accordance with one embodiment of the present invention.
Detailed Description of the Invention
Referring to FIG. 1, when used with a digital phase lock loop, a programmable multiphase clock divider in accordance with the present invention can be operated externally to the loop. The desired signals are frequency divided outside the loop with the resultant frequency-divided signals then introduced into the loop. For example, as shown, an N-phase signal at frequency F1 is programmably divided to produce an N-phase, frequency-divided output signal at frequency F2 (where F2=F1/M and M is programmable) for use by the frequency controlled oscillator within the digital phase lock loop.
Referring to FIG. 2, a programmable multiphase clock divider 10 in accordance with one embodiment of the present invention includes a counter 12, combinational logic circuitry 14, a multiphase signal generator 16 and a multiplexor 18, all connected substantially as shown. As discussed further below, this particular clock divider 10 can be programmed to frequency divide a seven-phase clock having phases ph1, ph2, ph3, ph4, ph5, ph6 and ph7 (".phi.1, .phi.2, .phi.3, .phi.4, .phi.5, .phi.6 and .phi.7") while maintaining the original phase relationships among the input phases .phi.1-.phi.7. However, it should be understood from the following discussion that other clock dividers in accordance with the present invention can be realized which can programmably frequency divide clock signals having more or less than seven phases. For example, while the counter 12 in the divider 10 of FIG. 2 is a three-bit counter (since the input multiphase clock consists of seven phases .phi.1-100 7), other clock dividers in accordance with the present invention can be realized to frequency divide a multiphase clock having other than seven phases by using a counter 12 which counts with other than three bits; e.g. an N-bit counter for M phases where 2.sup.N-1 <M<2.sup.N.
The counter 12 receives a counter preset signal 13 which is clocked into the counter 12 by the first, or leading, phase .phi.1 of the input multiphase clock. The resulting multibit count signal 15 outputted by the counter 12 is fed back to the combinational logic 14. This count signal 15 serves as a "present state" input for the combinational logic 14 which is then logically processed in accordance with a two-bit programming input 17 to produce a "next state" signal as the counter preset signal 13. The least significant bit LSB of the multibit count signal 15 forms the first, or leading, output clock phase OUT1 which is synchronous to and frequency-divided down from the first input clock phase .phi.1.
As discussed further below, the two-bit programming input 17 to the combinational logic 14 includes two select bits SEL1, SEL2 which determine the frequency divide ratio for the clock divider 10 ("00" for .div.2; "10" for .div.3; "01" for "5; and "11" for .div.7). In addition to being used by the combinational logic 14 for converting the count signal 15 to the preset signal 13, the programming bits SEL1, SEL2 are also decoded by a select decoder 20 within the combinational logic 14 to generate a four-bit output control signal 19 for use by the multiplexor 18 (discussed further below).
The multiphase signal generator 16 receives the first output clock phase OUT1 from the counter 12 and all phases .phi.1-.phi.7 of the multiphase input clock. The input clock phases .phi.1-.phi.7 are used to selectively clock the first output clock phase OUT1 to generate a number of intermediate clock phases OUT2.sub.-- 00, OUT2.sub.-- 01, OUT2.sub.-- 10, OUT2.sub.-- 11, OUT3.sub.-- 00, OUT3.sub.-- 01, OUT3.sub.-- 10, OUT3.sub.-- 11, OUT4.sub.-- 00, OUT4.sub.-- 01, OUT4.sub.-- 10, OUT4.sub.-- 11, OUT5.sub.-- 00, OUT5.sub.-- 01, OUT5.sub.-- 10, OUT5.sub.-- I 1, OUT6.sub.-- 00, OUT6.sub.-- 01, OUT6.sub.-- 10, OUT6.sub.-- 11, OUT7.sub.-- 00, OUT7.sub.-- 01, OUT7.sub.-- 10, OUT7.sub.-- 11 ("OUT2.sub.-- mn, OUT3.sub.-- mn, OUT4.sub.-- mn, OUT5.sub.-- mn, OUT6.sub.-- mn, OUT7.sub.-- mn" where m,n.epsilon.{0, 1}). As discussed further below, these intermediate clock phases OUT2.sub.-- mn, OUT3.sub. -- mn, OUT4.sub.-- mn, OUT5.sub.-- mn, OUT6.sub.-- mn, OUT7.sub.-- mn are generated by the multiphase signal generator 16 by sampling (e.g. latching) the first output clock phase OUT1 with a selected group of the input clock phases .phi.1-.phi.7. In turn, those sampled (e.g. latched) clock phases are then successively further sampled with further groups of the input clock phases .phi.1-.phi.7.
The intermediate clock phases OUT2.sub.-- mn, OUT3.sub.-- mn, OUT4.sub.-- mn, OUT5.sub.-- mn, OUT6.sub.-- mn, OUT7.sub.-- mn are inputted to the multiplexor 18 which, in accordance with the aforementioned output control signal 19, selectively multiplexes them to produce six additional output clock phases OUT2-OUT7. Functionally, the multiplexor 18 consists of six 4:1 (four-to-one) multiplexors for multiplexing six groups of four inputs (OUT2.sub.-- 00, OUT2.sub.-- 01, OUT2.sub.-- 10, OUT2.sub.-- 11; OUT3.sub.-- 00, OUT3.sub.-- 01, OUT3.sub.-- 10, OUT3.sub.-- 11; OUT4.sub.-- 00, OUT4.sub.-- 01, OUT4.sub.-- 10, OUT4.sub.-- 11; OUT5.sub.-- 00, OUT5.sub.-- 01, OUT5.sub.-- 10, OUT5.sub.-- 11; OUT6.sub.-- 00, OUT6.sub.-- 01, OUT6.sub.-- 10, OUT6.sub.-- 11; and OUT7.sub.-- 00, OUT7.sub.-- 01, OUT7.sub.-- 10, OUT7.sub.-- 11) to produce the six other output clock phases OUT2-OUT7.
Referring to FIG. 3, the timing relationships among the input .phi.1-.phi.7 and output OUT1-OUT7 clock phases when the clock divider 10 is programmed to divide by 2 are as shown. The input programming bits SEL1, SEL2 are each a logical 0 and the duty cycles of the output clock phases OUT1-OUT7 are each 1/2. The first output clock phase OUT1 is synchronous, i.e. aligned in phase, with the first input clock phase .phi.1. The second output clock phase OUT2 is synchronous with the third input clock phase .phi.3. The third output clock phase OUT3 is synchronous with the fifth input clock phase .phi.5. The fourth output clock phase OUT4 is synchronous with the seventh input clock phase .phi.7. The fifth output clock phase OUT5 is synchronous with the second input clock phase .phi.2. The sixth output clock phase OUT6 is synchronous with the fourth input clock phase .phi.4. The seventh output clock phase OUT7 is synchronous with the sixth input clock phase .phi.6.
Referring to FIG. 4, the phase relationships among the input .phi.1-.phi.7 and output OUT1-OUT7 clock phases are shown for when the clock divider 10 is programmed to divide by 3. The input programming bits SEL1 and SEL2 are logical 1 and 0, respectively, and the duty cycle of the output clock phases OUT1-OUT7 are each 1/3. The first output clock phase OUT1 is synchronous, i.e. aligned in phase, with the first input clock phase .phi.1. The second output clock phase OUT2 is synchronous with the fourth input clock phase .phi.4. The third output clock phase OUT3 is synchronous with the seventh input clock phase .phi.7. The fourth output clock phase OUT4 is synchronous with the third input clock phase .phi.3. The fifth output clock phase OUT5 is synchronous with the sixth input clock phase .phi.6. The sixth output clock phase OUT6 is synchronous with the second input clock phase .phi.2. The seventh output clock phase OUT7 is synchronous with the fifth input clock phase .phi.5.
Referring to FIG. 5, the phase relationships among the input .phi.1-.phi.7 and output OUT1-OUT7 clock phases are shown for when the clock divider 10 is programmed to divide by 5. The input programming bits SEL1 and SEL2 are logical 0 and 1, respectively, and the duty cycles of the output clock phases OUT1-OUT7 are each 2/5. The first output clock phase OUT1 is synchronous, i.e. aligned in phase, with the first input clock phase .phi.1. The second output clock phase OUT2 is synchronous with the sixth input clock phase .phi.6. The third output clock phase OUT3 is synchronous with the fourth input clock phase .phi.4. The fourth output clock phase OUT4 is synchronous with the second input clock phase .phi.2. The fifth output clock phase OUT5 is synchronous with the seventh input clock phase .phi.7. The sixth output clock phase OUT6 is synchronous with the fifth input clock phase .phi.5. The seventh output clock phase OUT 7 is synchronous with the third input clock phase .phi.3.
Referring to FIG. 6, the phase relationships among the input .phi.1-.phi.7 and output OUT1-OUT7 clock phases are shown for when the clock divider 10 is programmed to divide by 7. The input programming bits SEL1 and SEL2 are each a logical 1, and the duty cycle of each of the output clock phases OUT1-OUT7 is 3/7. For division by 7, all seven of the output clock phases are synchronous, i.e. aligned in phase, with the first input clock phase .phi.1, with each successive output clock phase OUT(N) being delayed in phase by one cycle of the input clock phase .phi.1 from the prior output clock phase OUT(N-1).
In accordance with the foregoing discussion, the clock divider 10 is preferably programmed to divide by a prime number, such as 2, 3, 5 or 7. It should be appreciated that by dividing by prime numbers, multiple clock dividers 10 can be connected in cascade to create virtually any divide ratio while maintaining the relative phase alignment among the input clock phases .phi.1-.phi.7.
It should be further understood that the duty cycles illustrated for the output clock phases OUT1-OUT7 in FIGS. 3-6 are merely examples. Depending upon the programmed divide ratio and desired output clock characteristics, these duty cycles can be varied.
Referring to FIGS. 7A and 7B, the clock divider 10 of FIG. 2 can be realized with logic elements interconnected as shown. FIG. 7A is a logic diagram of a three-bit counter and combinational logic with a select decoder, and FIG. 7B is a logic diagram of a multiple phase signal generator and multiplexor. As discussed above, the combinational logic and select decoder receive the programming bits SEL1, SEL2 and in accordance therewith convert the count signal 15 to the preset signal 13 and generate a four-bit output control signal 19 for use by the multiplexor 18 (see FIG. 2). Meanwhile, the counter receives phase .phi.1 of the input multiphase clock and in accordance with the programming bits SEL1, SEL2 generates the first output clock phase OUT1. The multiple phase signal generator receives all phases .phi.1-.phi.7 of the multiphase input clock and the first output clock phase OUT1 and in accordance therewith generates the intermediate clock phases OUT2.sub.-- mn, OUT3.sub.-- mn, OUT4.sub.-- mn, OUT5.sub.-- mn, OUT6.sub.-- mn, OUT7.sub.-- mn. The multiplexor, in accordance with the output control signal 19 (provided by the select decoder 20 per the programming bits SEL1, SEL2), multiplexes the intermediate clock phases OUT2.sub.-- mn, OUT3.sub.-- mn, OUT4.sub.-- mn, OUT5.sub.-- mn, OUT6.sub.-- mn, OUT7.sub.-- mn to provide the remaining output clock phases OUT2-OUT7 as outlined below in Table 1.
The logic design for the clock divider 10 is shown in FIGS. 7A and 7B was designed using a logic design program based upon a Hardware Description Language ("HDL") code, such as VERILOG. A listing of this code is shown below in Table 2.
Referring to Table 2 above, lines 1-13 establish a number of the parameters for the design, such as the input clock phases, output clock phases, programming selection bits and a reset signal. Line 14 assigns the least significant bit of the counter output to be the first output clock phase OUT1. Lines 15-20 establish that the present state output 15 of the counter 12 (FIG. 2) is to be reset at "001" upon assertion of the reset signal.
Lines 21-63 define the states of the multibit count signal 15 and preset signal 13 in accordance with the programming select bits SEL1, SEL2. Lines 21-30 are responsible for division by 2, lines 31-39 for division by 3, lines 40-50 for division by 5 and lines 51-63 for division by 7. For example, referring to lines 21-30, the clock divider 10 divides by 2 when both programming select bits SEL1, SEL2 are a logical 0. When the multibit count signal 15 is "001", the next preset signal 13 is "110", and when the multibit count signal 15 is "110", the next preset signal 13 is "001". Hence, in accordance with the foregoing discussion and with reference to FIGS. 2 and 3, it can be readily seen that the least significant bit LSB of the multibit count signal 15 is indeed the first output clock phase OUT1.
Referring again to Table 2, lines 65-109 are responsible for establishing the timing for the leading edges of the various output clock phases OUT1-OUT7 with respect to the leading edges of the various input clock phases .phi.1-.phi.7. Lines 65-70 establish these relationships with respect to the leading edge of the second input clock phase .phi.2, lines 71-76 for the third input clock phase .phi.3, lines 77-82 for the fourth input clock phase .phi.4, lines 83-88 for the fifth input clock phase .phi.5, lines 89-94 for the sixth input clock phase .phi.6, lines 95-100 for the seventh input clock phase .phi.7 and lines 101-109 for the first input clock phase .phi.1. For example, referring to lines 65-70, when the input select bits SEL1, SEL2 are both a logical 0 (for division by 2), intermediate clock phase OUT4.sub.-- 00 is clocked by the second input clock phase .phi.2 to produce intermediate clock phase OUT5.sub.-- 00 (see FIG. 3). Similarly, when the input select bits SEL1 and SEL2 are a logical 1 and 0, respectively (for division by 3), and the fifth intermediate clock phase OUT5.sub.-- 10 is a logical 1, the sixth intermediate clock phase OUT6.sub.-- 10 becomes a logical 1 upon the next leading edge of the second input clock phase .phi.2 (see FIG. 4). Further similarly, when the input select bits SEL1 and SEL2 are a logical 0 and 1, respectively (for division by 5), and the third intermediate clock phase OUT3.sub.-- 01 is a logical 1, the fourth intermediate clock phase OUT4.sub.-- 01 becomes a logical 1 upon the next leading edge of the second input clock phase .phi.2 (see FIG. 5).
Lines 110-151 are responsible for establishing the 4:1 multiplexing performed by the multiplexor 18 of the intermediate clock phases OUT2.sub.-- mn, OUT3.sub.-- mn, OUT4.sub.-- mn, OUT5.sub.-- mn, OUT6.sub.-- mn, OUT7.sub.-- mn from the multiphase signal generator 16 (FIG. 2). Lines 115-124 are responsible for establishing this multiplexing function during division by 2, with lines 125-133 responsible during division by 3, lines 134-142 responsible during division by 5 and lines 143-151 responsible during division by 7.
Various other modifications and alterations in the structure and method of operation of this invention will be apparent to those skilled in the art without departing from the scope and spirit of this invention. Although the invention has been described in connection with the specific preferred embodiments, it should be understood that the invention as claimed should not be unduly limited to such specific embodiments. It is intended that the following claims define the scope of the present invention and that structures and methods within the scope of these claims and their equivalence be covered thereby.