Many digital circuits receive a clock signal to operate. One type of circuit that receives a clock signal to operate is a memory circuit, such as a dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), or double data rate synchronous dynamic random access memory (DDR-SDRAM). In a memory circuit operating at high frequencies, it is important to have a clock signal that has about a 50% duty cycle. This provides the memory circuit with approximately an equal amount of time on the high level phase and on the low level phase for transferring data into and out of the memory circuit, such as latching rising edge data and latching falling edge data out of the memory circuit.
Often, a clock signal is provided by an oscillator, such as a crystal oscillator, and clock circuitry. The oscillator and clock circuitry may provide a clock signal that does not have a 50% duty cycle. For example, the clock signal may have a 45% duty cycle, where the high level phase is 45% of one clock cycle and the low level phase is the remaining 55% of the clock cycle. A duty cycle corrector receives the clock signal and corrects or changes the duty cycle of the clock signal to provide clock signals with transitions separated by substantially one-half of a clock cycle.
One type of duty cycle corrector provides an internal clock signal and an inverted internal clock signal based on an external clock signal. Typically, the duty cycle corrector is phase locked within one clock cycle at low clock frequencies. Due to intrinsic delays within the duty cycle corrector, the duty cycle corrector may not be phase locked within one clock cycle at high clock frequencies. If the duty cycle corrector is not phase locked within one clock cycle, the duty cycle corrector may fail. Therefore, the high speed operation of the duty cycle corrector is limited.
One embodiment of the present invention provides a duty cycle corrector. The duty cycle corrector includes a first controllable delay configured to delay a first signal to provide a second signal, a second controllable delay configured to delay the second signal to provide a third signal, a first fixed delay configured to delay the second signal to provide a fourth signal, a second fixed delay configured to delay the first signal to provide a fifth signal, and a circuit configured to adjust the first controllable delay and the second controllable delay to phase lock the third signal to the fifth signal.
The accompanying drawings are included to provide a further understanding of the present invention and are incorporated in and constitute a part of this specification. The drawings illustrate the embodiments of the present invention and together with the description serve to explain the principles of the invention. Other embodiments of the present invention and many of the intended advantages of the present invention will be readily appreciated as they become better understood by reference to the following detailed description. The elements of the drawings are not necessarily to scale relative to each other. Like reference numerals designate corresponding similar parts.
Memory circuit 24 includes a duty cycle corrector 28 that receives a clock (CLK) signal on CLK signal path 30. In one embodiment, duty cycle corrector 28 receives an external CLK signal on CLK signal path 30 through memory communications path 26. In other embodiments, duty cycle corrector 28 receives an external CLK signal on CLK signal path 30 from any suitable device, such as a dedicated clock circuit that is located inside or outside memory circuit 24.
Duty cycle corrector 28 provides the clock output (CLKOUT) signal on CLKOUT signal path 34 and the inverted clock output (bCLKOUT) signal on bCLKOUT signal path 36. The CLKOUT signal on CLKOUT signal path 34 is a clock signal having a duty cycle of 50%, and the bCLKOUT signal on bCLKOUT signal path 36 is a clock signal having a duty cycle of 50%. The CLKOUT signal is the inverse of the bCLKOUT signal. Duty cycle corrector 28 receives the CLK signal on CLK signal path 30, which may not have a 50% duty cycle, and provides the CLKOUT signal on CLKOUT signal path 34 and the bCLKOUT signal on bCLKOUT signal path 36, which have duty cycles of substantially 50%. Memory circuit 24 receives the CLKOUT signal and the bCLKOUT signal to transfer data into and/or out of memory circuit 24.
In one embodiment, the delay of fixed delay D2108 is two times the delay of fixed delay D1106. Fixed delay D1106 and fixed delay D2108 enable duty cycle corrector 28 to operate at high clock frequencies, such as clock frequencies above 500 MHz. Fixed delay D1106 and fixed delay D2108 prevent the intrinsic delay within duty cycle corrector 28 from preventing high clock frequency operation by delaying the CLK signal input to phase detector 112. In particular, fixed delay D1106 and fixed delay D2108 prevent the intrinsic delay through controllable delay 100 and controllable delay 104 from preventing high clock frequency operation of duty cycle corrector 28.
Fixed delay D2108 delays the CLK signal on CLK signal path 30 to provide the CLK_D signal on CLK_D signal path 110. Controllable delay 100 delays the CLK signal on CLK signal path 30 to provide the signal on signal path 102. The delay of controllable delay 100 is selected based on the control signal input to controllable delay 100 on signal path 118. Controllable delay 100 is any suitable type of variable delay, such as a series of inverters switched by the control signal input. Fixed delay D1106 delays the signal on signal path 102 to provide the bCLKOUT signal on bCLKOUT signal path 36. Controllable delay 104 delays the signal on signal path 102 to provide the CLKOUT signal on CLKOUT signal path 34. The delay of controllable delay 100 is selected based on the control signal input to controllable delay 110 on signal path 118. Controllable delay 100 is any suitable type of variable delay, such as a series of inverters switched by the control signal input. In one embodiment, controllable delay 104 is identical to controllable delay 100.
Phase detector 112 receives the CLK_D signal on CLK_D signal path 110 and the CLKOUT signal on CLKOUT signal path 34 to provide the signal on signal path 114. Phase detector 112 determines the phase difference between the CLK_D signal and the CLKOUT signal to provide a phase difference signal on signal path 114. Delay controller 116 receives the phase difference signal on signal path 114 to provide a control signal on signal path 118. Delay controller 116 provides the control signal based on the phase difference signal to adjust the delay of controllable delay 100 and the delay of controllable delay 104 such that the CLKOUT signal is phase locked to the CLK_D signal. In one embodiment, the delay of controllable delay 100 and the delay of controllable delay 104 are adjusted equally by delay controller 116.
In operation, the CLK signal is delayed by controllable delay 100 and fixed delay D1106 to provide the bCLKOUT signal. The CLK signal is also delayed by controllable delay 100 and controllable delay 104 to provide the CLKOUT signal and an input to phase detector 112. The CLK signal is also delayed by fixed delay D2108 to provide the CLK_D signal input to phase detector 112. The CLK_D signal and the CLKOUT signal inputs to phase detector 112 are compared to determine the phase difference between the CLK_D and the CLKOUT signals. The phase difference is passed to delay controller 116. Delay controller 116 adjusts the delay of controllable delay 100 and the delay of controllable delay 104 based on the phase difference to phase lock the CLKOUT signal to the CLK_D signal within one cycle of the CLK_D signal. The bCLKOUT signal is the inverse of the CLKOUT signal and leads the CLKOUT signal by one-half clock cycle. The duty cycle of the CLKOUT signal is approximately 50%, and the duty cycle of the bCLKOUT signal is approximately 50%.
CLKOUT signal 204 indicates the intrinsic delay (tINC) of the CLK signal through controllable delay 100 and controllable delay 104 without any additional delay selected for controllable delay 100 and controllable delay 104. The intrinsic delay between rising edge 220 of CLK signal 202 and rising edge 210 of CLKOUT signal 204 is indicated at 218. The intrinsic delay through controllable delay 100 and controllable delay 104 is longer than one cycle of CLK signal 202 as indicated by rising edge 210 of CLKOUT signal 204 being provided after rising edge 222 of CLK signal 202. Rising edge 220 of CLK signal 202 is delayed by controllable delay 100 to provide rising edge 224 of bCLKOUT signal 208.
CLKOUT signal 206 is the CLKOUT signal once the CLKOUT signal is phase locked. In response to rising edge 210 of CLKOUT signal 204, phase detector 112 determines the phase difference between CLK signal 202 and CLKOUT signal 204. Phase detector 112 passes the phase difference to delay controller 116. Delay controller 116 adjusts the delay of controllable delay 100 and the delay of controllable delay 104 to phase lock CLKOUT signal 206 to CLK signal 220, such that rising edge 214 of CLKOUT signal 206 is aligned with rising edge 212 of CLK signal 202. Without fixed delay D1106 and fixed delay D2108, two cycles of CLK signal 202 indicated at 216 are used to phase lock CLKOUT signal 206 to CLK signal 202. With two cycles of CLK signal 202 used to phase lock CLKOUT signal 206 to CLK signal 202, bCLKOUT signal 208 leads CLKOUT signal 206 by one cycle as indicated at 228 between rising edge 224 and rising edge 226. Therefore, duty cycle corrector 28 fails without fixed delay D1106 and fixed delay D2108 since CLKOUT 206 and bCLKOUT 208 are in phase.
Rising edge 306 of CLK signal 202 is delayed by fixed delay D2108 to provide rising edge 308 of CLK_D signal 302 as indicated at 324. In one embodiment, fixed delay D2108 delays CLK signal 202 by one half cycle of CLK signal 202. CLKOUT signal 204 indicates the intrinsic delay (tINC) of the CLK signal through controllable delay 100 and controllable delay 104 without any additional delay selected for controllable delay 100 and controllable delay 104. The intrinsic delay between rising edge 306 of CLK signal 202 and rising edge 312 of CLKOUT signal 204 is indicated at 326. The intrinsic delay through controllable delay 100 and controllable delay 104 is longer than one cycle of CLK signal 202 as indicated by rising edge 312 of CLKOUT signal 204 being provided after rising edge 310 of CLK signal 202. The intrinsic delay indicated at 326 is similar to the intrinsic delay indicated at 218 in
CLKOUT signal 206 is the CLKOUT signal once the CLKOUT signal is phase locked. In response to rising edge 312 of CLKOUT signal 204, phase detector 112 determines the phase difference between CLK_D signal 302 and CLKOUT signal 204. Phase detector 112 passes the phase difference to delay controller 116. Delay controller 116 adjusts the delay of controllable delay 100 and the delay of controllable delay 104 to phase lock CLKOUT signal 206 to CLK_D signal 302, such that rising edge 316 of CLKOUT signal 206 is aligned with rising edge 314 of CLK_D signal 302. With fixed delay D1106 and fixed delay D2108, one cycle of CLK_D signal 302 is used to phase lock CLKOUT signal 206 to CLK_D signal 302. With one cycle of CLK_D signal 302 used to phase lock CLKOUT signal 206 to CLK_D signal 302, bCLKOUT signal 208 is the inverse of CLKOUT signal 206 and duty cycle corrector 28 does not fail.
Rising edge 316 of CLKOUT signal 206 is delayed from rising edge 306 of CLK signal 202 by the delay through fixed delay D2108 plus one cycle of CLK signal 202 as indicated at 328. Rising edge 318 of bCLKOUT signal 208 is delayed from rising edge 306 of CLK signal 202 by the delay through the controllable delay 100 and the delay through fixed delay D1106 as indicated at 330. In one embodiment, the delay through controllable delay 100 equals the delay through fixed delay D1106 plus one half cycle of CLK signal 306. Therefore, rising edge 318 of bCLKOUT signal 208 is delayed from rising edge 306 of CLK signal 202 by two times the delay through fixed delay D1106 plus one half cycle of CLK signal 202. The bCLKOUT signal 208 is the inverse of CLKOUT signal 206 such that rising edge 316 of CLKOUT signal 206 is aligned with falling edge 320 of bCLKOUT signal 208, and bCLKOUT signal 208 leads CLKOUT signal 206 by one half cycle of CLKOUT signal 206 as indicated at 332.
Embodiments of the present invention provide a duty cycle corrector including additional fixed delay D1 and additional fixed delay D2. Additional fixed delay D1 and additional fixed delay D2 enable the duty cycle corrector to phase lock an internal clock signal to an external clock signal at high clock frequencies such that the duty cycle corrector does not fail. In addition, the duty cycle of the internal clock signal is approximately 50%, and the duty cycle of the inverted internal clock signal is approximately 50%.