A clock should be high half the time and low half the time — a pendulum swinging equal left and right. But the real thing usually comes out with the high short and the low long, so the two edges are uneven and the duty cycle is off. DCC (Duty Cycle Correction) levels the pendulum back to 50/50.
Auto-plays · open full screen ↗
One — uneven high and low, the two edges suffer
DDR samples on both edges: the rising edge takes one bit, the falling edge takes the next. That trick only works if high and low each take 50%, so the two edges sit exactly half a period apart.
Once high and low are unequal, the two edges bunch up to one side: the first bit gets a roomy window, the second gets only a narrow sliver. The narrow one’s eye is squeezed flat, and it’s the first to misjudge.
Two — why it goes crooked
It doesn’t go crooked from one cause — roughly four kinds:
| root cause | level | what |
|---|---|---|
| pull-up / pull-down asymmetry | device (single stage) | PMOS slow, NMOS fast (Case 2.6) |
| multi-stage buffer accumulation | propagation (cascade) | each stage’s asymmetry stacks |
| trace / load asymmetry | transmission | differential P/N, RCD input load differs on rise / fall |
| process / temp / voltage (PVT) | manufacture + environment | asymmetry varies with chip, temp, voltage |
The root one is the first, the same story as Case 2.6: the rising edge is the PMOS pulling up (slow), the falling edge is the NMOS pulling down (fast). Climbing slow, falling fast, the high level gets yanked down before it’s done holding — so the duty cycle drops below 50%.
And you can’t calibrate it once and be done. Each buffer stage skews a little, and strung together it shows; PVT drifts with chip, temperature, and voltage. So every chip, every power-on, has to be calibrated on its own — the same story as ZQ calibration.
Follow Case 2.6 and it’s clearer: 2.6 calibrates the output impedance to match the trace’s Z0 and hold the reflections down; 2.8 calibrates the uneven high/low that comes from the two edges being unequal in speed. The root is the same pull-up-slow, pull-down-fast asymmetry — only the “strength asymmetry” half is Case 2.6 (calibrate up and down separately), and the “speed asymmetry” half is Case 2.8 (fix the duty cycle).
DCC is a closed loop: measure, nudge
DCC isn’t a one-shot setting — it’s a closed loop:
The hardware first measures the clock’s current duty cycle to see how far off it is; then it adjusts the edge delay by that error — speed the slow edge up a bit, or push the fast edge back a bit; then measure again, nudge again, until the two edges are evenly spaced and the duty cycle returns to 50%.
One boundary not to cross: DCC only cares about the two edges’ relative spacing, not whether the whole clock arrives early or late. Moving the whole thing forward or back is the phase knob’s job — a different, orthogonal knob from DCC.
Three — move the edge with a starved inverter
To actually push an edge later, there’s a circuit called a current-starved buffer. It’s the Case 2.6 bucket-filling model carried into a circuit: a plain inverter (pull-up PMOS + pull-down NMOS) with one more current-limiting transistor stacked above and below.
supply
│
[limit PMOS] ← limits the charging current
│
[pull-up PMOS]
│
├── output ── load capacitance
│
[pull-down NMOS]
│
[limit NMOS] ← limits the discharging current
│
ground
The principle is still bucket-filling:
delay ≈ capacitance × voltage / current
The bucket (load capacitance) is fixed once the board is built, and the water to be poured (the voltage swing) is fixed too — so the smaller the faucet, the slower the fill.
- Rising edge (0 to 1): the pull-up PMOS charges the capacitor, the limit PMOS chokes the current. Less current, slower charge, later rising edge.
- Falling edge (1 to 0): the pull-down NMOS discharges, the limit NMOS chokes the current. Less current, slower discharge, later falling edge.
“Starved” is where the name comes from: the limiter starves the inverter, the current can’t feed it full, so it flips slowly; how starved it is sets how long the delay is.
Fixing the duty cycle means turning the two knobs against each other: turn the rising edge’s limiter current up so it catches up, turn the falling edge’s down so it slows a little. Once the two edges’ relative positions come together, high and low each take half.
One more layer: DCC uses this standalone delay, and deliberately does not touch Case 2.6’s row of parallel legs. Touching the legs also changes the output impedance — that’s 2.6’s job; DCC only wants to move time, not strength, so it prefers a separate limiter path. One changes impedance, the other moves the edge — two knobs, each on its own.
Four — every signal, every stage, on its own
Accumulation is multi-stage, so don’t expect one DCC to fix everything forever.
- Each signal gets one: command clock, write clock, read clock, data — they take different paths, skew in different directions and by different amounts, so each gets its own DCC.
- Each stage carries its own distortion: the clock leaves the host PHY, crosses the trace, passes the RCD, then enters the DRAM — every stage’s buffer has that pull-up-slow, pull-down-fast fault, stacked all the way down. The host can only turn its own stage directly; the RCD and DRAM stages have to be configured through their registers by the host.
It’s the same idea as per-bit de-skew: the skew is local — each line, each signal, each stage skews its own way — so the correction has to be done piece by piece too.
Level the pendulum, even left and right — DCC evens the two edges, and the duty cycle returns to 50/50.