Module 8: RTL Coding for Quality & Synthesis · 8.3 Timing Constraints & STA Basics

Setup, Hold and the Critical Path

Module 3 introduced setup time, hold time, and clock-to-Q propagation delays for isolated flip-flops. Production integrated circuits contain millions of interconnected flip-flops. Exhaustive functional simulation cannot verify timing compliance across every internal path. Static Timing Analysis (STA) validates setup and hold constraints across all paths without running testbenches.

The Standard Register-to-Register Timing Path

A standard synchronous timing path starts at a launch flip-flop clock pin, traverses combinational logic, and terminates at a capture flip-flop data pin:

A launch flop, combinational logic and a capture flop, with the setup waveform
Figure 1: One timing path and its setup check

STA evaluates two timing constraints for every path:

1. Setup Time Constraint (Maximum Delay)

Data launched on clock edge $N$ must propagate through combinational logic and stabilize before capturing clock edge $N+1$. The clock period must accommodate clock-to-Q delay, combinational logic delay, and capture setup time:

$$T_{clk} \geq t_{clk-to-Q} + T_{comb} + t_{setup}$$

Violating this constraint causes the capture flip-flop to sample unstable data, resulting in circuit failure.

2. Hold Time Constraint (Minimum Delay)

Data launched on clock edge $N$ must not overwrite the capture flip-flop before that flip-flop finishes capturing data from clock edge $N$. This check evaluates fast paths independently of clock period:

$$t_{clk-to-Q} + T_{comb} \geq t_{hold}$$

If combinational logic delay is too short, newly launched data corrupts current data capture.

Critical Path and Maximum Operating Frequency

An integrated circuit contains millions of timing paths. The critical path is the path with the largest total delay ($t_{clk-to-Q} + T_{comb} + t_{setup}$). The critical path dictates the maximum clock frequency of the entire chip:

$$f_{max} = \frac{1}{T_{critical_path}}$$

Even if all other paths operate with substantial margin, a single violating path prevents the chip from running at the target frequency.

Advantages of Static Timing Analysis Over Simulation

Dynamic simulation applies stimulus vectors sequentially. Simulations only verify paths that the applied test vectors toggle. Rare, untested corner cases can leave failing paths undetected.

In contrast, STA analyzes physical netlist topology statically. Using characterization tables from standard cell libraries, the STA tool evaluates delays across every path simultaneously. STA guarantees timing closure under worst-case voltage, temperature, and manufacturing process corners.

STA quantifies timing performance using slack:

$$\text{Slack} = T_{required} - T_{arrival}$$

  • Positive Slack: Data arrives before the required deadline; timing is met.
  • Negative Slack: Data arrives after the required deadline; timing is violated.
  • Worst Negative Slack (WNS): The worst negative slack value across the entire design, identifying the critical path.

Verification Exercise

A digital circuit has $t_{clk-to-Q} = 0.3\text{ ns}$ and $t_{setup} = 0.2\text{ ns}$. Three paths exhibit combinational delays of 1.1 ns, 2.4 ns, and 1.8 ns. Identify the critical path and calculate the maximum clock frequency ($f_{max}$).

View Solution

Calculate required clock periods for each path:

  • Path 1: $0.3\text{ ns} + 1.1\text{ ns} + 0.2\text{ ns} = 1.6\text{ ns}$
  • Path 2: $0.3\text{ ns} + 2.4\text{ ns} + 0.2\text{ ns} = 2.9\text{ ns}$
  • Path 3: $0.3\text{ ns} + 1.8\text{ ns} + 0.2\text{ ns} = 2.3\text{ ns}$

Path 2 has the largest delay (2.9 ns) and forms the critical path. Calculate maximum frequency:

$$f_{max} = \frac{1}{2.9\text{ ns}} \approx 344.8\text{ MHz}$$

The critical path limits the global clock to approximately 345 MHz.

Static Timing Analysis proves that all circuit paths meet setup and hold deadlines without vector simulation. The next article explains how to write Synopsys Design Constraints (SDC) to define timing specifications.

← Guiding Synthesis Without Fighting It Writing Basic SDC Constraints →