Setup, Hold and Clock-to-Q
A digital circuit that operates correctly at nominal temperature and voltage can fail under extreme conditions. The timing margin in advanced semiconductor nodes is frequently less than 50 picoseconds (ps).
Digital designers verify that circuits satisfy timing constraints across all expected process, voltage, and temperature conditions. Four fundamental timing parameters govern synchronous sequential operation.
The Four Timing Parameters
Setup Time ($t_{\text{su}}$)
Setup time is the minimum duration that data input $D$ must remain stable before the active clock edge.
The master latch requires this interval to develop a distinct voltage differential across its internal nodes. If input $D$ transitions during this window, the flip-flop can enter metastability. In a metastable state, the output lingers at an intermediate voltage level for an unpredictable duration.
Hold Time ($t_h$)
Hold time is the minimum duration that data input $D$ must remain stable after the active clock edge.
The internal storage loop requires this duration to isolate the captured value. If $D$ transitions during the hold window, the new data can overwrite the stored value.
Hold violations are critical because decreasing the clock frequency does not fix them. A hold violation occurs because a data path is too fast. To resolve a hold violation, the designer must insert delay buffers into the data path.
Clock-to-Q Propagation Delay ($t_{\text{cq}}$)
Clock-to-Q delay is the time elapsed between the active clock edge and the moment output $Q$ becomes valid. Setup analysis uses the maximum value, $t_{\text{cq,max}}$.
Contamination Delay ($t_{\text{ccq}}$)
Contamination delay is the earliest time after the clock edge at which output $Q$ begins to transition. It represents the minimum clock-to-Q delay, $t_{\text{ccq,min}}$. Hold analysis uses this parameter to guarantee that new data does not arrive too early at the subsequent stage.
Figure 1 illustrates these parameters.
The interval from $t_{\text{su}}$ before the edge to $t_h$ after the edge forms the timing aperture. Signal transitions inside this aperture cause timing violations.
The Two Timing Constraints
Consider two flip-flops connected through combinational logic and driven by a common clock (Figure 2).
Setup Constraint (Max-Delay Constraint)
After a clock edge, FF1 launches data after delay $t_{\text{cq,max}}$. The data traverses combinational logic in time $t_{\text{pd,max}}$. Input $D_2$ must settle at least $t_{\text{su}}$ before the subsequent clock edge:
$$t_{\text{cq,max}} + t_{\text{pd,max}} + t_{\text{su}} \leq T_{\text{clk}}$$
The setup slack is the difference between the clock period and the total path delay:
$$\text{Slack}{\text{setup}} = T{\text{clk}} - (t_{\text{cq,max}} + t_{\text{pd,max}} + t_{\text{su}})$$
For correct operation, setup slack must be greater than or equal to zero. This inequality determines the maximum clock frequency:
$$f_{\text{max}} = \frac{1}{t_{\text{cq,max}} + t_{\text{pd,max}} + t_{\text{su}}}$$
Hold Constraint (Min-Delay Constraint)
After the same clock edge, FF1 changes its output after delay $t_{\text{ccq,min}}$. The signal passes through the logic in time $t_{\text{pd,min}}$. The arriving signal must not disturb FF2 before hold time $t_h$ expires:
$$t_{\text{ccq,min}} + t_{\text{pd,min}} \geq t_h$$
The hold slack is:
$$\text{Slack}{\text{hold}} = (t{\text{ccq,min}} + t_{\text{pd,min}}) - t_h$$
The clock period does not appear in the hold equation. Therefore, changing the clock frequency does not eliminate a hold violation.
Clock Skew and Clock Jitter
Real clock distribution networks introduce timing variations:
- Clock Skew ($t_{\text{skew}}$): The spatial difference in clock arrival times between two flip-flops due to interconnect lengths and buffer delays.
- Clock Jitter ($t_{\text{jitter}}$): The cycle-to-cycle temporal variation of the clock period caused by power supply noise and oscillator phase noise.
Including skew and jitter expands the setup timing constraint:
$$t_{\text{cq,max}} + t_{\text{pd,max}} + t_{\text{su}} + t_{\text{skew}} + t_{\text{jitter}} \leq T_{\text{clk}}$$
PVT Corners
Semiconductor properties vary with manufacturing tolerances and operating conditions. Static timing analysis verifies circuits across Process, Voltage, and Temperature (PVT) corners:
- Process: Transistor channel lengths and oxide thicknesses vary across wafers. Corners include Slow-Slow (SS), Fast-Fast (FF), and Typical-Typical (TT).
- Voltage: Power distribution networks experience resistive IR drops under heavy switching loads.
- Temperature: Circuit power dissipation increases die temperature, reducing transistor mobility.
| Timing Constraint | Worst-Case PVT Corner | Characteristics |
|---|---|---|
| Setup (Max-Delay) | Slow Process, Low Voltage, High Temperature | Transistors exhibit slowest switching speed |
| Hold (Min-Delay) | Fast Process, High Voltage, Low Temperature | Transistors exhibit fastest switching speed |
Digital designs must satisfy setup constraints at the slowest corner and satisfy hold constraints at the fastest corner.
Practice Exercises
Problem 1
A synchronous path has these parameters:
- $t_{\text{cq,max}} = 80\text{ ps}$
- $t_{\text{ccq,min}} = 25\text{ ps}$
- $t_{\text{su}} = 45\text{ ps}$
- $t_h = 20\text{ ps}$
- $t_{\text{pd,max}} = 200\text{ ps}$
- $t_{\text{pd,min}} = 40\text{ ps}$
Calculate the minimum clock period $T_{\text{clk,min}}$, verify the hold condition, and compute the maximum clock frequency $f_{\text{max}}$.
Solution
Calculate the minimum clock period using the setup constraint:
$$T_{\text{clk,min}} = t_{\text{cq,max}} + t_{\text{pd,max}} + t_{\text{su}} = 80\text{ ps} + 200\text{ ps} + 45\text{ ps} = 325\text{ ps}$$
Verify the hold condition:
$$\text{Slack}{\text{hold}} = t{\text{ccq,min}} + t_{\text{pd,min}} - t_h = 25\text{ ps} + 40\text{ ps} - 20\text{ ps} = 45\text{ ps}$$
Because hold slack is positive ($45\text{ ps} > 0$), the hold requirement is satisfied.
Calculate the maximum operating frequency:
$$f_{\text{max}} = \frac{1}{325\text{ ps}} \approx 3.08\text{ GHz}$$
Problem 2
At a slow PVT corner, all component delays in Problem 1 increase by 40 percent. Determine if the path satisfies setup timing with a clock period of $T_{\text{clk}} = 325\text{ ps}$.
Solution
Scale each delay by a factor of 1.4:
- $t_{\text{cq,max}} = 80\text{ ps} \times 1.4 = 112\text{ ps}$
- $t_{\text{pd,max}} = 200\text{ ps} \times 1.4 = 280\text{ ps}$
- $t_{\text{su}} = 45\text{ ps} \times 1.4 = 63\text{ ps}$
Calculate the required clock period:
$$T_{\text{required}} = 112\text{ ps} + 280\text{ ps} + 63\text{ ps} = 455\text{ ps}$$
Calculate the setup slack:
$$\text{Slack}_{\text{setup}} = 325\text{ ps} - 455\text{ ps} = -130\text{ ps}$$
The path exhibits a setup violation of $-130\text{ ps}$. To operate at this corner, the system must reduce clock frequency to $f \leq 2.2\text{ GHz}$ or optimize the combinational logic path.
Problem 3
Two adjacent flip-flops connect directly with minimal wire delay ($t_{\text{pd,min}} = 5\text{ ps}$). The parameters are $t_{\text{ccq,min}} = 30\text{ ps}$ and $t_h = 40\text{ ps}$. Determine if a timing violation exists and specify the resolution.
Solution
Evaluate hold slack:
$$\text{Slack}{\text{hold}} = t{\text{ccq,min}} + t_{\text{pd,min}} - t_h = 30\text{ ps} + 5\text{ ps} - 40\text{ ps} = -5\text{ ps}$$
The circuit violates hold timing by $-5\text{ ps}$.
To resolve the violation, the designer must insert delay buffers into the data path between the flip-flops. Adding a buffer with a minimum propagation delay of $20\text{ ps}$ to $40\text{ ps}$ eliminates the violation and provides positive timing margin. Changing the clock frequency does not resolve hold violations.
Section 3.1 Summary
| Storage Element | Control Inputs | Trigger Mechanism | Operating Characteristic |
|---|---|---|---|
| Cross-Coupled Inverters | None | Direct feedback | Bistable storage without external write controls |
| SR Latch | S, R | Level-sensitive | Basic latch with an invalid input state |
| D Latch | D, EN | Level-sensitive | Transparent while enabled; opaque while disabled |
| D Flip-Flop | D, CLK | Edge-triggered | Standard synchronous storage element |
| JK Flip-Flop | J, K, CLK | Edge-triggered | Synchronous element with toggle mode |
| T Flip-Flop | T, CLK | Edge-triggered | Dedicated toggle element for binary counters |
| Timing Metric | Symbol | Governing Constraint | Typical 7 nm Range |
|---|---|---|---|
| Setup Time | $t_{\text{su}}$ | Setup (Max delay) | 20 to 100 ps |
| Hold Time | $t_h$ | Hold (Min delay) | 0 to 50 ps |
| Clock-to-Q Delay | $t_{\text{cq,max}}$ | Setup (Max delay) | 50 to 150 ps |
| Contamination Delay | $t_{\text{ccq,min}}$ | Hold (Min delay) | 20 to 60 ps |
Section 3.2 examines synchronous clock distribution networks and clock domain boundaries.