Module 2: Logic Synthesis · 2.5 Synthesis Reports

Reading a Pre-Placement Timing Report

The previous section introduced an OpenSTA timing report to demonstrate optimism in synthesis-stage timing. This article analyzes that report in detail. You will calculate slack manually from individual path delays without relying solely on the final summary.

Detailed Report Walkthrough

Startpoint: b[7] (input port clocked by clk)
Endpoint:   _068_ (result_reg[6], rising edge-triggered flip-flop clocked by clk)
Path Group: clk
Path Type:  max

  Fanout  Cap     Slew    Delay   Time   Description
--------------------------------------------------------------------
                                   0.00   clock clk (rise edge)
                                   0.00   input external delay
                          2.00     2.00   input delay set_input_delay
     4    0.012   0.09    0.18     2.18   sky130_fd_sc_hd__xor2_1 (b[7] -> X)
     2    0.008   0.07    0.14     2.32   sky130_fd_sc_hd__mux2_1 (A0 -> X)
     3    0.010   0.08    0.21     2.53   sky130_fd_sc_hd__o21ai_1 (A -> Y)
     2    0.009   0.06    0.17     2.70   sky130_fd_sc_hd__mux2_1 (A1 -> X)
     1    0.004   0.05    0.09     2.79   sky130_fd_sc_hd__dfxtp_1 (D setup)
                                   2.79   data arrival time

                                  10.00   clock clk (rise edge)
                                   0.00   clock network delay (ideal)
                                  -0.08   library setup time
                                   9.92   data required time
--------------------------------------------------------------------
                                   9.92   data required time
                                  -2.79   data arrival time
--------------------------------------------------------------------
                                   7.13   slack (MET)

Startpoint and Endpoint. Every timing path has a startpoint and an endpoint. Port b[7] is the startpoint, constrained by set_input_delay. Flip-flop pin _068_ (result_reg[6]) is the endpoint, corresponding to a register D pin. The specification Path Type: max designates a setup time check. A setup check verifies that data arrives before the capturing clock edge. In contrast, a min path type denotes a hold time check.

Delay and Time Columns. Each row after the input delay represents one standard cell along the data path. The signal passes through xor2_1, mux2_1, o21ai_1, and another mux2_1 before reaching the flip-flop. The Time column accumulates delay values sequentially. For example, the arrival time reaches $2.00 + 0.18 = 2.18\ \text{ns}$, then $2.18 + 0.14 = 2.32\ \text{ns}$. The final data arrival time equals $2.79\ \text{ns}$.

Data Required Time. The capturing clock edge occurs at $10.00\ \text{ns}$. Under an ideal clock network, the clock reaches the register clock pin with zero latency. Subtract the internal library setup time ($0.08\ \text{ns}$) from the clock arrival time. The calculation yields $10.00 - 0.08 = 9.92\ \text{ns}$ for the data required time. The required time represents the latest instant that data can arrive safely at the flip-flop.

Slack Calculation. The report calculates slack by subtracting arrival time from required time:

$$ \text{slack} = t_{required} - t_{arrival} = 9.92 - 2.79 = 7.13\ \text{ns} $$

A positive slack value confirms that the path satisfies setup constraints. Figure 1 illustrates the timing relationship along a timeline.

Arrival time accumulating cell by cell, the required time at the next edge minus setup, and the slack between them
Figure 1: The report as a timeline

Always inspect individual gate delays rather than reading only the final slack value. Path inspection reveals high-delay gates and critical logic levels. These details identify the primary targets for timing optimization during physical design.

Practice Exercise

Another path in the netlist reports a data arrival time of $8.65\ \text{ns}$ against the same $9.92\ \text{ns}$ required time. Compute the slack and determine if the path satisfies setup timing.

Solution

$$ \text{slack} = 9.92 - 8.65 = 1.27\ \text{ns} $$

The slack is positive, so the path satisfies the setup check. However, this path provides significantly less margin than the +7.13 ns path. Physical interconnect delays and clock skew during placement and routing can easily consume $1.27\ \text{ns}$ of margin. Paths with low positive slack require monitoring in subsequent stages.

You can now interpret both structural netlist statistics and timing reports. The next article establishes a validation checklist to detect design flaws before floorplanning.

← Reading a Yosys Stats Report Red Flags Before You Floorplan →