Sub topic 13
Clock Period, Setup Time, Hold Time, and Propagation Delay
Assume you know binary logic, combinational circuits, flip-flops, and the idea of a clock edge. This chapter explains how timing limits the maximum clock frequency of a synchronous circuit.
The timing model
A synchronous circuit usually has this structure:
At a clock edge, the source flip-flop changes its output. The data then travels through the combinational logic. The destination flip-flop captures the data at the next clock edge.
Important timing terms are:
| Term | Meaning |
|---|---|
| Clock-to-Q delay | Time from the active clock edge until a flip-flop output changes |
| Propagation delay, \(t_{pd}\) | Maximum time for a circuit output to respond to an input change |
| Contamination delay, \(t_{cd}\) | Minimum time before a circuit output can begin changing |
| Setup time, \(t_{setup}\) | Time the input must be stable before the capture edge |
| Hold time, \(t_{hold}\) | Time the input must remain stable after the capture edge |
The propagation delay determines when the final, correct value is available. The contamination delay determines when the old value might first be disturbed.
Minimum clock period
For the destination flip-flop to capture correct data, the new data must arrive before the next active clock edge, with at least the required setup time:
\[ T{clk} \geq t{cq(max)} + t{pd(max)} + t{setup} \]
Here, \(t_{cq(max)}\) is the source flip-flop's maximum clock-to-Q delay.
For example, suppose:
- \(t_{cq(max)} = 2\text{ ns}\)
- \(t_{pd(max)} = 7\text{ ns}\)
- \(t_{setup} = 1\text{ ns}\)
Then:
\[ T_{clk(min)} = 2 + 7 + 1 = 10\text{ ns} \]
The maximum clock frequency is:
\[ f{max} = \frac{1}{T{clk(min)}} = \frac{1}{10\text{ ns}} = 100\text{ MHz} \]
Clock skew, the difference in clock arrival time between flip-flops, and clock uncertainty reduce the available timing margin. A common extended form is:
\[ T{clk} \geq t{cq(max)} + t{pd(max)} + t{setup} + t{skew} + t{uncertainty} \]
Use the sign convention specified by the problem when clock skew is included.
Hold-time constraint
The hold constraint checks the earliest new data arrival. The source output must not change the destination input too soon after the same clock edge:
\[ t{cq(min)} + t{cd(min)} \geq t_{hold} \]
If this inequality fails, the destination flip-flop may capture either the old value or the new value. Increasing the clock period does not fix a hold-time violation, because both flip-flops use the same clock edge. Typical fixes include adding delay to the data path or changing clock distribution.
Common errors
- Using maximum delay for the hold check. Hold analysis uses minimum clock-to-Q and contamination delays.
- Using contamination delay for the setup check. Setup analysis uses maximum clock-to-Q and propagation delays.
- Computing frequency as \(T{clk}\) instead of \(1/T{clk}\).
- Forgetting that setup time belongs before the capture edge and hold time belongs after it.
- Assuming a longer clock period repairs a hold violation.
Exercise
A path has tcq(max) = 3 ns, tpd(max) = 12 ns, and t_setup = 2 ns. What are the minimum clock period and maximum frequency, ignoring skew?
Show answer
Tclk(min) = 3 + 12 + 2 = 17 ns. Therefore, fmax = 1/(17 ns) ≈ 58.8 MHz.