1. Field of the Invention
The present invention relates to phase frequency detectors, and more particularly, to self-resetting phase frequency detectors.
2. Description of the Related Art
It is known to include a phase detector as a fundamental functional block of a phase locked loop (PLL) or a delay locked loop (DLL). It is known to provide analog phase detectors that interface with a charge pump. It is also known to provide digital phase detectors that generate static up/down signals. Certain digital phase detectors can generate up/down pulses. The phase detector compares the edges (either rising or falling) between a reference clock signal and a feedback clock signal. When the phase detector detects a difference between these two clock edges, the phase detector generates an output pulse. This output pulse is then used to correct the feedback clock signal. When the feedback clock signal is corrected, and thus there is no difference detected between edges of the reference clock signal and the feedback clock signal, the output pulse should be reset. If this output pulse is not reset, then the feedback clock signal may be corrected again unexpectedly.
Many phase detectors produce an output pulse proportional to an actual phase angle shift between the two signals. In digital phase detectors, the input signals are binary and the phase error can only be determined each clock cycle. If the phase error is leading, then the voltage controlling the delay line should slew in one direction (e.g., increase) and if the phase error is lagging, then the voltage should slew in the other direction (e.g., decrease).
Many phase detectors have been designed in conjunction with a cross nand latch. For example,
It is desirable to provide a phase detector which provides a dynamic output signal and which automatically resets if a reference clock signal and a feedback clock signal align after an output pulse is generated.
In accordance with the present invention, a phase detector which provides a dynamic output signal and which automatically resets if a reference clock signal and a feedback clock signal align after an output pulse is generated is set forth. With the phase detector in accordance with the present invention, when there is a difference between the positive clock edges of the reference clock signal and the feedback clock signal, the phase detector generates output pulse. The output is used to correct the feedback clock signal. In the next cycle, if the feedback signal is corrected so that both the reference clock signal and feedback clock signal are aligned, then the output signals are reset to zero. The ability to reset advantageously prevents an unexpected correction that can occur in certain phase detector designs.
Additionally, the phase detector in accordance with the present invention detects the magnitude of the difference between two clocks and then generates multiple pulses. Thus, the phase detector not only compares between the two clock edges but also monitors the feedback clock signal. When a small difference between the two clock edges is detected, this phase detector creates either up or down pulse (which can for example, inform a counter to fix the feedback clock signal). When a large difference is detected, the phase detector generates a second up or down pulse. This second up or down pulse can be used to indicate that the difference between a reference signal and a feedback signal is getting worse. In certain embodiments, the phase detector can be modified to generate additional pulses when the magnitude of the difference between the reference signal and the feedback signal continues to increase.
A phase detector in accordance with the present invention can be used as an application of Skitter circuits which are used to measure timing uncertainty at different locations within an integrated circuit. Additionally, a phase detector in accordance with the present invention can be used to compare data at different locations on an integrated circuit against reference data. If a difference is detected, then the phase detector generates pulses. The larger the magnitude of the difference between the data needs to be monitored and the reference data, the larger the number of pulses that can be generated at the output of the phase detector.
Selected embodiments of the present invention may be understood, and its numerous objects, features and advantages obtained, when the following detailed description is considered in conjunction with the following drawings, in which:
Referring to
The trailing edge circuit 222 includes an AND gate 230, an inverter 232, a delay circuit 234 and a delay circuit 236. The reference signal circuit 222 also includes a NAND gate 238, a stretching circuit 240 and an inverter 242.
The reference signal is provided to an input of the AND gate 230 as well as an input of the inverter 232. The output of the inverter 232 is provided to an input of the delay circuit 234. The output of the delay circuit 234 is provided as an input to the AND gate 230. The output of the AND gate 230 is provided to the delay circuit 236. The output of the delay circuit 236 is provided as an input to the NAND gate 238. The NAND gate 238 also receives the output of the exclusive OR gate 220 as an input.
The output of the NAND gate 238 is provided to the stretching circuit 240. The output of the stretching circuit 240 is provided to the inverter 242. The output of the inverter 242 is provided to the down pulse width detector circuit 214.
The leading edge detection circuit 224 includes an AND gate 250, an inverter 252, a delay circuit 254 and a delay circuit 256. The leading edge detection circuit 224 also includes a NAND gate 258, a stretching circuit 260 and an inverter 262.
The reference signal is provided to an input of the AND gate 250 as well as an input of the inverter 252. The output of the inverter 252 is provided to an input of the delay circuit 252. The output of the delay circuit 252 is provided as an input to the AND gate 250. The output of the AND gate 250 is provided to the delay circuit 256. The output of the delay circuit 256 is provided as an input to the NAND gate 258. The NAND gate 258 also receives the output of the exclusive OR gate 220 as an input.
The output of the NAND gate 258 is provided to the stretching circuit 260. The output of the stretching circuit 260 is provided to the inverter 262. The output of the inverter 262 is provided to the up pulse width detector circuit 212.
The up pulse detector circuit 212 includes a NAND gate 270 and a delay circuit 272. The output of the inverter 262 is provided to the NAND gate 270 and to the delay circuit 272. An output of the delay circuit 272 is also provided as an input to the NAND gate 270. The output of the delay circuit 272 is provided an inverter 274. The output of the inverter 274 is provided as an up pulse signal. The output of the NAND gate 270 is provided to a stretching circuit 276. The output of the stretching circuit 276 is provided as a second up pulse signal.
The down pulse detector circuit 214 includes a NAND gate 280 and a delay circuit 282. The output of the inverter 242 is provided to the NAND gate 280 and to the delay circuit 282. An output of the delay circuit 282 is also provided as an input to the NAND gate 280. The output of the delay circuit 282 is provided an inverter 284. The output of the inverter 284 is provided as a down pulse signal. The output of the NAND gate 280 is provided to a stretching circuit 286. The output of the stretching circuit 286 is provided as a second down pulse signal.
Referring to
More specifically, referring to
Referring to
It is often desirable to provide dynamic circuits with a wider pulse. Accordingly, the narrow pulse is stretched by the stretching circuit 240. After stretching, this signal is sent through a chain of inverters (e.g., inverters 242, delay circuit 282 and inverter 284) to ultimately become a DOWN PULSE.
The down pulse width detector circuit 214 determines the value of a second down pulse by controlling an amount of delay (e.g., via delay 282) that is NANDed with the pulse provided by the stretching circuit 240. The signal provided by inverter 242 (Node 4) is NANDed with the delay provided by delay circuit 282. The amount of delay inserted by delay circuit 282 determines the value of pulse width to be detected and thus when a second down pulse is generated. For example, if the signal at Node4 is delayed by 100 ps, if the pulse at Node4 is greater than 100 ps, a pulse is generated at Node5. The pulse generated by the NAND gate 280 is then stretched and becomes the SECOND DOWN PULSE signal.
Referring to
Although the present invention and its advantages have been described in detail, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.
As will be appreciated by one skilled in the art, the present invention may be embodied as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, the present invention may take the form of a computer program product on a computer-usable storage medium having computer-usable program code embodied in the medium.
As will be appreciated by one skilled in the art, while the present invention, and circuits within the present invention are described using certain combinations of logic, other logic combinations are also within the scope of the invention. For example, it will be appreciated other logic combinations to provide a delay circuit and a stretching circuit are known. Also, it will be appreciated that changing the polarity of the logic gates, e.g., from AND to NAND, are also within the scope of the invention.
The block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present invention. It will also be noted that each block of the block diagrams, and combinations of blocks in the block diagrams, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Having thus described the invention of the present application in detail and by reference to preferred embodiments thereof, it will be apparent that modifications and variations are possible without departing from the scope of the invention defined in the appended claims.