System and method for scalable clock gearing mechanism

In some embodiments, a system and method for making a scalable clock gearing mechanism may allow multiple devices operating on different clock speeds to communicate. In an embodiment, a mechanism may be used to input data clocked on a first clock frequency and output the data on a second clock frequency. The mechanism may temporarily store the data until the next clock cycle of the second clock. Further, the mechanism may make use of multiple inputs or outputs to input or output multiple data units during a single clock cycle to keep the delay between the arrival and departure of the data small.

BACKGROUND

Modern computing systems are made up of various components and subcomponents working together. As these various components and subcomponents are improved, the speed at which they are able to operate often increases. Unfortunately, components tend to be constantly at different stages of improvement in terms of optimization and speed. Accordingly, in a typical system, it may be desirable to operate different components at different speeds to take advantage of the capabilities of faster running components. To accomplish such a goal, multiple clocks may be used in a single system.

One problem associated with operating different components at different speeds concerns passing data between the components. If a fast component feeds data to a slower component, the slower component may be unable to keep up with the speed of the data input. Conversely, if a slower component feeds data to a faster component, the benefits of the faster component may not be realized.

Additionally, if a faster component continuously provides data to a slower component and the slower component attempts to read the data received, the faster component may not hold the data on the data transmission line long enough for the slower component to accurately input the data. This causes great problems and completely destroys any advantages of increasing the speeds of components capable of operating at a faster speed.

To address this problem, computer architects have developed gearing mechanisms to allow a fast component, such as a processor, to interface with a slower component, such as a memory device. The problem with existing gearing mechanisms is that they are custom designed for a particular system. It is desirable for a computing system to be upgradeable to take advantage of ever improving components without necessitating the acquisition of an entirely new system.

DETAILED DESCRIPTION OF THE EMBODIMENTS

The present invention may typically be embodied in a system and method for interfacing components utilizing different clock speeds. Although an embodiment of the present invention may be described in terms of interfacing to memory components, those skilled in the art will appreciate that the adjustable gearing mechanism described may be applied to the interface of any two devices using different clock speeds. An embodiment of the present invention may typically be employed within a memory controller hub (MCH) of a chipset architecture.

FIG. 1is a block diagram of an exemplary operating environment of the present invention.FIG. 1illustrates a core logic unit105, a memory controller hub110, and a memory device115. The core logic unit105may typically include a processor and any other hardware associated with processing data and calculations. The memory device115may be any device capable of storing data. In an exemplary embodiment of the present invention, double data rate (DDR) memory may be used as the memory device115.

The memory controller hub110may control the memory device115and coordinate communications between the memory device115and other components of the system. In accordance with an embodiment of the present invention, the memory controller hub110may include a configurable gearing mechanism (CGM)120. The CGM may be responsible for coordinating data received at one speed with the memory device115operating at another speed. In alternative embodiments of the present invention, the CGM may be used to coordinate data to other system components and is not limited to memory devices115. Throughout the present description, the terms gear and gearing may be used to describe the process of translating one clock speed, or domain, to another clock speed, or domain.

The CGM may be operative to gear one clock domain to another clock domain and to support a varied set of clock ratios. The clock ratio may represent the relationship between the clock speeds being translated. Generally, a source clock (such as a system clock) and a destination clock (in this embodiment the memory clock) may have a known and fixed relationship. In such an embodiment, the two clocks generate a repeating beat period of known and consistent edge relationships between the two clock domains. For example, if a 200/800 MHz system bus is used with a DDR333 memory device, the system bus clock has 6 clock cycles in the same time period in which the memory clock has 5 cycles. Thus, in this example, the system clock and the memory clock have a 6:5 ratio. This ratio may be referred to as the gearing ratio throughout this description.

In an embodiment of the present invention, as shown inFIG. 1, a core logic unit105may pass data to a memory device115. In such an embodiment, the logic unit105may operate on a faster clock than the memory device115. The memory controller hub110may coordinate the exchange of data between the two devices (105,115) and utilize a configurable gearing mechanism120to handle the clocking differences. The configurable gearing mechanism120may be operable to receive data at one clock speed and output the data at a second clock speed.

FIG. 2is a block diagram illustrating an exemplary embodiment of the present invention.FIG. 2shows a circuit by which input data210clocked by a source clock may be converted to output data1and output data2clocked by a destination clock. In this example, the source clock205may be operating at a faster rate than the destination clock230. As is shown, one input signal210may be converted into two output signals275,285. By providing two outputs275,285, the source clock205may operate at up to twice the speed of the destination clock230without losing any data. Thus, when two outputs are provided, the gearing mechanism120may support a source clock205that is up to twice as fast as the destination clock230. In other words, one input signal at a given frequency may be converted to two output signals at half the frequency. If three outputs were provided, the maximum supported source speed may be three times the destination speed. Those skilled in the art will recognize that any speed differential may be supported provided a sufficient number of output lines are available. Further, if more input data lines are used than output data lines, the gearing mechanism may operate in reverse thereby allowing the destination clock230to operate at a faster rate than the source clock205.

As shown inFIG. 2, inputs to the configurable gearing mechanism120may include, but are not limited to, a source clock205, input data210, destination clock230, and a phase signal220. The source clock205may be a clock signal that clocks the input data210. In alternative embodiments of the present invention, the source clock205may clock multiple input data signals. The destination clock230may be the clock signal for the device to which the output data may be directed. In an exemplary embodiment of the present invention, the destination device is a memory device and the destination clock is a memory clock. Alternatively, the destination device may be any clocked device.

The phase signal220may be a configurable signal that resets the counters when the end of a phase cycle is reached. The phase signal will be described with reference toFIG. 3.FIG. 3is a timing diagram illustrating the timing of a gearing mechanism in accordance with an exemplary embodiment of the present invention. The timing diagram ofFIG. 3shows the timing of an exemplary embodiment of the present invention in which a 200 MHz source clock205and a 167 MHz destination clock230are used. As shown inFIG. 3, in one embodiment the source clock205completes six cycles in the same time period as the destination clock230completes five cycles. Accordingly, in this embodiment, the gearing ratio required to coordinate data between the source clock205domain and the destination clock230domain is 6:5. Those skilled in the art will recognize that the example illustrated inFIG. 3is merely one example of the invention and numerous other timing combinations may be available. The phase signal220may indicate when the end of a phase occurs. As shown inFIG. 3, in an exemplary embodiment of the present invention, the falling edge of the phase signal220may indicate the beginning of a new phase period which occurs at the moment that both the source clock205and the destination clock230rising edges coincide. Thus, in the present example, every phase period includes six source clock cycles and five destination clock cycles. Further, in an embodiment, the source clock205and the destination clock230may be synchronized so that, once a period, the clock edges are aligned. However, those skilled in the art will recognize that exemplary embodiments of the system may still function correctly if the clock edges are not aligned provided that the correct number of clock cycles of each clock occur during each phase.

In an exemplary embodiment of the present invention, the phase signal220may be timed based on the faster clock signal (in the present example, the source clock205). As shown inFIG. 3, the phase signal220may be high for one clock cycle prior to the beginning of a new phase period. Timing the phase signal220based on the faster clock may assure that the phase signal230is high during only one clock cycle of both clocks. If the phase signal220were timed based on the slower clock, the phase signal220may be high for more than one clock cycle of the faster clock, and timing the beginning of a new phase cycle may be more complicated. Accordingly, the phase signal220may be operated using a counter that counts the clock cycles of the source clock205and goes high for one clock cycle before the counter resets to count the next phase.

In an exemplary embodiment of the present invention, output1285may carry an output signal every clock cycle and output2275may carry an output signal when two outputs are available. Typically, the output2275may carry an output signal as often as may be necessary to keep the output data to the destination device from falling any further behind the source input than required. Alternatively, the output2275signal line may be used whenever the system desires to output a second output. In the example shown inFIG. 3, output1285may carry an output signal every clock cycle and output2275may carry an output signal once a period. Those skilled in the art will recognize that the output signals275,285are used to output the input data as soon as possible using the destination clock230. Since, in the current example, the source clock205may be faster than the destination clock230, the output data may be transmitted on the output signal lines275,285in the next full destination clock230cycle after the input signal is received. InFIG. 3, each phase cycle may be broken up into phase units referenced by number p0through p5for the source clock205and p0through p4for the destination clock230, where p0may represent the first unit of each phase cycle. Starting at p0on the left side ofFIG. 3, input data D0may be received during phase unit p0on the input data line210. This data may then be outputted on the output1line285in the next available destination clock cycle, p1. This may continue for each clock cycle. When input data D5is received, the gearing mechanism may still not have outputted D4. Thus, in the next destination clock cycle, the mechanism may output D4on output1285and D5on output2275. This may catch the output data up with the input data and allow the mechanism120to start over the transmission process for the next period.

In an exemplary embodiment of the present invention, the output2275signal line may be used as often as necessary to minimize the delay between the receipt of an input data unit and the output of that data. Accordingly, whenever more than one input data unit is available at the beginning of a destination clock230cycle, both outputs1and2275,285may be utilized. This procedure may be expanded to cover any number of inputs and outputs. For example, and not limitation, when multiple input data units are available for output, an appropriate number of output signal lines275,285may be used in the following destination clock cycle to advance each available input to the destination device.

In the present example, two outputs may be available and the gearing mechanism120may support a source clock205that operates at twice the speed of the destination clock230, a 2:1 ratio. In another case, both output lines275,285may be used every destination clock cycle to transmit the two input signals that arrived during the previous destination cycle.

Referring back toFIG. 2, in which an exemplary single input, dual output embodiment of the present invention is illustrated, the configurable gearing mechanism120will be described in greater detail.FIG. 2illustrates a source clock phase counter215and a destination clock phase counter225. The source clock phase counter215may be clocked by the source clock205and may count the number of source clock cycles in the current phase. The counter may be reset by the phase220input each time a new phase cycle begins. The source clock phase counter215may identify which phase unit (p0, p1, . . . , pX) the source clock205is in. The phase units are discussed separately with reference toFIG. 3. In the example illustrated inFIG. 3, the source clock phase counter215may count from p0to p5and then may be reset by the phase input220. The destination clock phase counter225may be clocked by the destination clock230and may counts the number of destination clock cycles in the current phase. The counter may be reset by the phase220input each time a new phase cycle begins. The destination clock phase counter225may identify which phase unit (p0, p1, . . . , pX) the destination clock230is in. In the example illustrated inFIG. 3, the destination clock phase counter225may count from p0to p4and then may be reset by the phase input220.

The input data210may be connected to a series of latches240. Each latch240may correspond to a different phase of the source clock205. The latches240may each be clocked by the source clock205and may be enabled by a phase selector235. The phase selector235may be implemented by a demultiplexor. The phase selector235may be controlled by the source clock phase counter215and may direct input data to the correct output on the output2selector270. The output2selector270may select the correct data to be output on the output2signal275. An output1selector280may also be provided to select the correct data to be outputted on the output1signal285.

The output1selector280and the output2selector270may be controlled by clock gear register1255and clock gear register2250. In an exemplary embodiment of the present invention, multiplexors260,265may be controlled by the destination clock phase counter225and may direct the correct nibble (4 bits) of data from the clock gear registers to the output selectors270,280.

Those skilled in the art will recognize that the exemplary embodiment of the present invention illustrated inFIG. 2may use one input and two outputs and may allow up to eight phases for the source clock205and destination clock230. Further, those skilled in the art will recognize that the present invention may be easily scalable to allow any desired number of inputs, outputs, and phases. For example, and not limitation, if a maximum of sixteen source clock phases were desired, the source clock phase counter215may be implemented with a four-bit counter (counts 0 to 15) and the phase selector235may be implemented with a demultiplexor with sixteen outputs.

The clock gear registers250,255may allow the configurable gearing mechanism120to be customized for particular clock speeds. These registers250,255may be used to select which latch240data is directed to a particular output275or285. Clock gear register1255may identify which data should be outputted on output1285for each destination clock phase. Clock gear register2250may identify which data should be outputted on output2275for each destination clock phase. Typically, these registers may be programmable to select the phase determinations based on the desired clock speeds of the source clock205and the destination clock230.

In an exemplary embodiment of the present invention, the clock gear registers may direct the data by selecting which input of the output selectors270,280is activated. For example, and not limitation, the clock gear register1255may be programmed as follows to produce the outputs shown inFIG. 3:

PhaseOutput Selectorp06 (corresponds to the fifth data latch)p12 (corresponds to the first data latch)p23 (corresponds to the second data latch)p34 (corresponds to the third data latch)p45 (corresponds to the fourth data latch)p50 (disable, only 5 destination phases in example)p60 (disable, only 5 destination phases in example)p70 (disable, only 5 destination phases in example)
Further, the clock gear register2250may be programmed as follows to produce the outputs shown inFIG. 3:

Those skilled in the art will recognize that the clock registers255,250may be programmed to send any particular data latch240to the desired output during the desired phase. In an alternative embodiment of the present invention, the configurable gearing mechanism120may be preprogrammed for each possible gearing ratio and utilize the correct register data for that ratio.

The description of the various embodiments are not intended to limit the scope of the invention in any way and other alternative embodiments may be practiced without departing from its spirit and scope. Accordingly, the scope of the present invention may be defined by the appended claims rather than the foregoing description.