1. Field
The present invention is related to aligning a sequencer clock and a buffer clock before transferring data to a buffer.
2. Related Art
Typically, logic devices are under control of different clocks. Data cannot be efficiently transferred from a first logic device to a second logic device if the clocks are not aligned or skewed. Thus, to properly transfer or write the data from the first logic device to the second logic device, the clocks need to be aligned. One way to align clocks before transferring or writing is to use a deskewing phase lock loop that receives both clock signals, and aligns a signal from a data receiving device with respect to a data sending device. However, the deskewing phase lock loop typically occupies a lot of real estate on a chip. With chips being required to include more and more devices, this additional space becomes costly.
Therefore, what is needed is a system and method that would allow for proper aligning of clock signals of devices sharing data using a device that takes up less real estate on a chip than a deskewing phase lock loop.
The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate one or more embodiments of the present invention and, together with the description, further serve to explain the principles of the invention and to enable a person skilled in the pertinent art to make and use the invention.
The present invention will now be described with reference to the accompanying drawings. In the drawings, like reference numbers may indicate identical or functionally similar elements. Additionally, the left-most digit(s) of a reference number may identify the drawing in which the reference number first appears.
References in the specification to “one embodiment”, “an embodiment”, “an example embodiment”, etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
Overview
While specific configurations and arrangements are discussed, it should be understood that this is done for illustrative purposes only. A person skilled in the pertinent art will recognize that other configurations and arrangements can be used without departing from the spirit and scope of the present invention. It will be apparent to a person skilled in the pertinent art that this invention can also be employed in a variety of other applications.
In one or more embodiments of the present invention a system and method utilize an aligning device for aligning clock signals of two logic devices before data transfers between them. In this example, the aligning device aligns a clock signal of a sequencer with a clock signal of a storage device before the sequencer writes data to the storage device. The aligning device includes a phase detector that receives a first reference clock signal, which is used to control the storage device, and a delayed signal, which is used to control the sequencer, and generates a comparison clock signal. The comparison clock signal is filtered before being used to control a phase of a second reference clock signal, which is related to the first reference clock signal. The phase controlled second clock signal is an unaligned clock signal or a skewed clock signal that is feed back to a base of a delay device to produce one or more subsequent delay device clock signals that are aligned with the first reference clock signal. These subsequent delay device clock signals are transmitted to the aligning device and to the sequencer before each write occurs.
In one example, the aligning device can take up less real estate on a chip than a deskewing phase lock loop, allowing for an increase in the number of devices that can be formed on the chip.
As seen in
In one example, phase detector 330 is a single flip-flop with a D input being signal 112 and a clock input being signal 114. Phase detector 330 can have an output every clock cycle. In one example, digital loop filter 332 operates at one fourth of this frequency. Thus, only one sample out of four from phase detector 330 is required. In order to avoid any bias, the sample can be selected by a register programmable value that can select the sample from one out of the four possible samples. This selection process can use a flip-flop that minimizes any metastability issues by allowing one full clock cycle. This value is further flopped on the falling edge of clock signal 114 for a safe handoff to the 1/4 clock.
In one example, loop filter 332 accumulates phase detector flip-flop values 1 or 0, which are assigned as values +/−1 until the accumulation reaches a register programmable threshold value. For example, this programmable threshold value can be a power of 2. In one example, a positive threshold is 2n and a negative threshold is the 1's complement, −2n−1. The programmable value “n” can be a 4-bit number between 0 and 9. If the phase skew is between −180° and 0° then, when the threshold value of 2n is reached, phase interpolator control value 340 is increased by 1, moving the phase of a subsequent clock signal 112, through phase adjusting of first reference signal 220, and thus aligning clock signal 342, forward by one phase resolution of phase interpolator 334 (i.e., deskewing toward 0° phase alignment). Similarly if the phase skew is between 0° and +180° then, when the threshold value of—2n−1 is reached, the phase interpolator control value 340 (i.e., filtered comparison signal 340) is decreased by 1, moving a phase of a subsequent clock signal 112, through phase adjusting of first reference clock signal 220, and thus aligning clock signal 342, backward by one phase resolution of phase interpolator 334 (i.e., deskewing toward 0° phase alignment). Control value 340 for phase interpolator 334 is incremented or decremented by only one step at a time. In one example, phase interpolator 334 provides substantially glitchless phase changes for unit changes in control value 340.
Conclusion
While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not limitation. It will be apparent to persons skilled in the relevant art that various changes in form and detail can be made therein without departing from the spirit and scope of the invention. Thus, the breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.
It is to be appreciated that the Detailed Description section, and not the Summary and Abstract sections, is intended to be used to interpret the claims. The Summary and Abstract sections may set forth one or more, but not all exemplary embodiments of the present invention as contemplated by the inventor(s), and thus, are not intended to limit the present invention and the appended claims in any way.
This application claims benefit under 35 U.S.C. § 119 (e) to U.S. Provisional Patent Application No. 60/644,437, filed Jan. 19, 2005, which is incorporated by reference herein in its entirety.
Number | Date | Country | |
---|---|---|---|
60644437 | Jan 2005 | US |