Reading a Timing Report
Static timing analysis tools generate comprehensive reports after synthesis and place-and-route. These reports describe the timing margins of all constrained register-to-register paths. This article explains how to extract critical timing metrics and trace timing failures to RTL source code.
Step 1: Find the Worst Negative Slack
Static timing analysis evaluates timing slack for every signal path. Slack represents the margin between required arrival time and actual data arrival time:
$$\text{Slack} = \text{Required Time} - \text{Actual Arrival Time}$$
Positive slack indicates that the data arrives before the required setup deadline. Negative slack indicates a timing violation where data arrives late. Worst negative slack (WNS) represents the most negative slack value across the complete design. Examine WNS first to verify whether the design satisfies the target clock frequency.
Timing Report Summary:
Worst Negative Slack (WNS): -0.42 ns
Total Negative Slack (TNS): -1.85 ns
Number of violating paths: 4
A WNS of -0.42 ns means the slowest path exceeds the clock period by 0.42 ns. The circuit cannot operate reliably at the specified target frequency. Total negative slack (TNS) sums the negative slack values of all failing paths. If TNS is close to WNS, the design contains an isolated critical path bottleneck. If TNS is substantially larger than WNS, the design exhibits systemic timing failures across many paths.
Step 2: Trace the Critical Path
When a timing violation occurs, examine the detailed report for the critical path:
Startpoint: reg_a_reg (rising edge-triggered flip-flop)
Endpoint: reg_b_reg (rising edge-triggered flip-flop)
Path Group: clk
Point Incr Path
------------------------------------------------
reg_a_reg/CLK (rise edge) 0.00 0.00
reg_a_reg/Q (clk-to-Q delay) 0.28 0.28
U142/Y (AND2, fanout=3) 0.09 0.37
U156/Y (MUX2, fanout=2) 0.15 0.52
U178/Y (ADD_STAGE, fanout=1) 1.85 2.37
U201/Y (MUX2, fanout=4) 0.18 2.55
reg_b_reg/D 0.00 2.55
------------------------------------------------
data arrival time: 2.55
data required time: 2.13
------------------------------------------------
slack (VIOLATED): -0.42
The report lists every cell from the launching flip-flop to the capturing flip-flop.
The Incr column shows the incremental propagation delay through each cell.
The Path column displays the cumulative arrival time.
In this path, instance U178 contributes 1.85 ns of the total 2.55 ns arrival delay.
Most other cells add minimal delay.
Therefore, U178 represents the primary bottleneck on this path.
Step 3: Trace the Bottleneck to RTL
Synthesis tools annotate gate instances with module names and source line numbers.
Inspect the cross-reference to identify which RTL construct generated instance U178.
Apply the appropriate corrective action based on design architecture:
- If
U178is a wide arithmetic operator, insert a pipeline register to divide the combinational delay. - If
U178is a resource-shared operator on the critical path, disable sharing to eliminate multiplexer delays. - If the path consists of many cascaded logic operations, restructure expressions to reduce logic depth.
- If the path cannot be shortened and pipelining is impossible, adjust the clock frequency requirement.
Large integrated circuits contain hundreds of thousands of paths. Engineers follow an iterative timing closure methodology: First, inspect WNS and TNS metrics. Second, locate the dominant delay element on the worst failing path. Third, apply an RTL or synthesis fix and resynthesize the circuit. Repeat this verification flow until all paths show positive slack.
Practice Exercise
Design A reports WNS = -0.05 ns and TNS = -0.05 ns across one violating path. Design B reports WNS = -0.08 ns and TNS = -14.3 ns across 60 violating paths. Explain the root cause and recommended remediation for each design.
Solution
Design A shows an isolated timing violation. The single failing path misses the timing requirement by a small 0.05 ns margin. A localized change, such as gate upsizing or restructuring a single operator, will resolve the violation.
Design B exhibits a systemic timing violation across 60 paths. A single localized fix cannot resolve this failure. This condition indicates an overly aggressive clock constraint or an unpipelined datapath pattern used across multiple modules. The designer must reconsider the target frequency or insert pipeline registers across the shared architecture.
WNS indicates whether a digital circuit meets static timing requirements. TNS indicates whether timing failures are isolated or systemic across the design. Path delay tables isolate the specific logic cells that consume excessive propagation time. Designers resolve timing failures through gate sizing, logic restructuring, or RTL architectural pipelining. The next section covers common RTL bugs and systematic debugging strategies.