Timing Analysis — worked examples
Digital Electronics · Timing Analysis · Example
Example 1: Maximum clock frequency
A D flip-flop has and . Find the maximum clock frequency.
- Step 1: The minimum clock period must accommodate both propagation delay and setup time: .
- Step 2: Substitute values: .
- Step 3: Convert to frequency: .
The formula applies when a single flip-flop feeds directly back to its own input (or to another flip-flop with no combinational logic in between).
Example 2: Pipeline timing
A two-stage pipeline has FF1 () driving combinational logic () that feeds FF2 (). What is the maximum clock frequency?
- Step 1: Sum the path delays: .
- Step 2: Convert to frequency: .
The slowest path through combinational logic — the critical path — determines the maximum clock speed for the entire design.
Example 3: Identifying a setup violation
A flip-flop requires . Data changes only 2 ns before the rising clock edge. Is the setup requirement met?
- Step 1: The flip-flop needs data stable for before the clock edge.
- Step 2: Data only became stable 2 ns before the edge — that is 3 ns short of the requirement.
- Step 3: This is a setup violation. The output may enter a metastable state and produce an unreliable result.
Always check that the data arrival time plus the setup requirement fits within one clock period. If it does not, either slow the clock or reduce the combinational logic delay.