Module 7: Timing Closure & Static Timing Analysis · 7.3 OpenSTA in OpenLane

Reading a Full OpenSTA Report, End to End

In Section 7.2, we extracted parasitic resistance and capacitance into a SPEF database. In this article, we load the SPEF into OpenSTA and analyze a complete static timing analysis report.

Generating the Post-Route Timing Report

Launch OpenROAD and execute the following commands to load design databases and report the critical path:

openroad
% read_liberty $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/lib/sky130_fd_sc_hd__tt_025C_1v80.lib
% read_lef $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/techlef/sky130_fd_sc_hd__nom.tlef
% read_lef $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/lef/sky130_fd_sc_hd.lef
% read_def runs/uart_full/results/routing/uart_top.def
% read_sdc runs/uart_full/results/routing/uart_top.sdc
% read_spef runs/uart_full/results/extraction/uart_top.nom.spef
% set_propagated_clock [all_clocks]

% report_checks -path_delay max -to rx_ctrl/parity_err_reg/D

The command set_propagated_clock [all_clocks] instructs OpenSTA to calculate real clock network insertion delays from the synthesized clock tree.

The Complete Timing Report

Review the generated report for the critical setup timing path:

Startpoint: rx_ctrl/shift_reg_reg[7]
            (rising edge-triggered flip-flop clocked by clk)
Endpoint: rx_ctrl/parity_err_reg
          (rising edge-triggered flip-flop clocked by clk)
Path Group: clk
Path Type: max

  Delay    Time   Description
-----------------------------------------------------------------
   0.00    0.00   clock clk (rise edge)
   0.00    0.00   clock network delay (propagated)
   0.00    0.00 ^ rx_ctrl/shift_reg_reg[7]/CLK (sky130_fd_sc_hd__dfxtp_2)
   0.58    0.58 ^ rx_ctrl/shift_reg_reg[7]/Q (sky130_fd_sc_hd__dfxtp_2)
   0.31    0.89 v _2201_/X (sky130_fd_sc_hd__xor2_2)
   0.34    1.23 ^ _2202_/X (sky130_fd_sc_hd__xor2_1)
   0.34    1.57 v _2203_/X (sky130_fd_sc_hd__xor2_1)
   1.94    3.51 ^ _2204_/X (sky130_fd_sc_hd__xor2_2)
   0.01    3.52 ^ rx_ctrl/parity_err_reg/D (sky130_fd_sc_hd__dfxtp_2)
           3.52   data arrival time

   4.00    4.00   clock clk (rise edge)
   0.00    4.00   clock network delay (propagated)
  -0.15    3.85   clock uncertainty
   0.00    3.85   clock reconvergence pessimism
           3.85 ^ rx_ctrl/parity_err_reg/CLK (sky130_fd_sc_hd__dfxtp_2)
  -0.14    3.71   library setup time
           3.71   data required time
-----------------------------------------------------------------
           3.71   data required time
          -3.52   data arrival time
-----------------------------------------------------------------
           0.19   slack (MET)

Section-by-Section Analysis

  • Startpoint and Endpoint: Identifies the launch register (shift_reg_reg[7]) and the capture register (parity_err_reg).
  • Path Group: Identifies the controlling clock domain (clk).
  • Path Type: max: Specifies a setup timing check. A hold timing check reports Path Type: min.

Data Arrival Path

The arrival section accumulates propagation delays through the launching register and combinational logic. Markers ^ and v denote rising and falling signal transitions. Gate delays include output charging times for driven nets.

  • Notice that gate _2204_/X exhibits a 1.94 ns delay. This large delay occurs because the gate drives the 118.6 fF load on parity_net.
  • In contrast, pure wire delay to pin parity_err_reg/D adds only 0.01 ns. Total data arrival time reaches 3.52 ns.

Data Required Path

The required path establishes the latest acceptable data arrival time:

  1. Capture clock edge occurs at 4.00 ns.
  2. Clock uncertainty subtracts 0.15 ns to budget for clock jitter.
  3. Library setup time subtracts 0.14 ns for the capture flip-flop internal requirement.
  4. Total required arrival time is 3.71 ns.

Slack Calculation

Timing slack equals required arrival time minus actual data arrival time:

$$\text{Slack} = \text{Data Required Time} - \text{Data Arrival Time}$$

$$\text{Slack} = 3.71 - 3.52 = +0.19\text{ ns}$$

The path satisfies setup constraints with +190 ps of positive margin.

Practice Exercise

A timing report lists an arrival time of 2.90 ns and a required time of 3.71 ns, yielding a slack of +0.81 ns. The clock period is 4.00 ns and the library setup time is 0.14 ns. Reconvergence pessimism and clock skew are zero. Calculate the clock uncertainty value used in the analysis.

Solution

Use the data required time formula: $$\text{Data Required Time} = T_{clk} - \text{Uncertainty} - t_{setup}$$

Substitute known values: $$3.71 = 4.00 - \text{Uncertainty} - 0.14$$ $$\text{Uncertainty} = 4.00 - 0.14 - 3.71 = 0.15\text{ ns}$$

The report used 0.15 ns (150 ps) of clock uncertainty.

This report evaluated timing at the nominal typical-typical corner (tt_025C_1v80). The next article examines multi-corner multi-mode (MCMM) timing analysis across process, voltage, and temperature variations.

← Extracting Parasitics From the Routed UART PVT Corners and Multi-Corner Multi-Mode Analysis →