Module 7: Timing Closure & Static Timing Analysis · 7.4 Fixing Timing Violations

Closing a Real Timing Violation on the UART

Section 7.3 identified a 2.00 ns setup timing violation on the parity path at the slow process corner (ss_100C_1v60). This laboratory exercise applies an ECO using OpenROAD resizer commands, legalizes the placement, reroutes the modified nets, re-extracts layout parasitics, and confirms timing closure.

The Starting Violation

Inspect the initial failing path at the slow corner:

% report_checks -corner ss -path_delay max -to rx_ctrl/parity_err_reg/D
Startpoint: rx_ctrl/shift_reg_reg[7]
Endpoint: rx_ctrl/parity_err_reg
Corner: ss
   ...
   2.86    5.54 ^ _2204_/X (sky130_fd_sc_hd__xor2_2)
   0.02    5.56 ^ rx_ctrl/parity_err_reg/D (sky130_fd_sc_hd__dfxtp_2)
           5.56   data arrival time
           3.56   data required time
-----------------------------------------------------------------
          -2.00   slack (VIOLATED)

Data arrival time is 5.56 ns against a required time of 3.56 ns, producing -2.00 ns of negative slack.

Executing Automated Timing Repair

Run the OpenROAD resizer optimization command:

% repair_timing -setup -setup_margin 0.1

The -setup_margin 0.1 switch instructs the optimizer to target +100 ps of positive slack. The tool generates an execution summary:

[INFO RSZ-0094] Found 1 endpoints with setup violations.
[INFO RSZ-0040] Inserted 1 buffers.
[INFO RSZ-0041] Resized 1 instances.
[INFO RSZ-0033] No setup violations found.

The resizer upsized instance _2204_ and inserted one buffer along parity_net.

Physical Legalization and Re-Extraction

The resizer altered logical connectivity and inserted a new physical standard cell. Before signoff timing verification, complete the physical implementation flow:

  1. Legalize cell placement using detailed_placement to eliminate standard cell overlap.
  2. Reroute modified nets using incremental global and detailed routing.
  3. Export the updated DEF database, re-extract SPEF parasitics across all three corners, and reload the files:
% write_def runs/uart_full/results/routing/uart_top.eco.def
# Re-extract min, nom, and max SPEF files from uart_top.eco.def
% read_spef -corner ss runs/uart_full/results/extraction/uart_top.max.eco.spef

Verifying Timing Closure

Re-evaluate the critical path report at the slow corner:

% report_checks -corner ss -path_delay max -to rx_ctrl/parity_err_reg/D
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
Corner: ss

  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.99    0.99 ^ rx_ctrl/shift_reg_reg[7]/Q (sky130_fd_sc_hd__dfxtp_2)
   0.53    1.52 v _2201_/X (sky130_fd_sc_hd__xor2_2)
   0.58    2.10 ^ _2202_/X (sky130_fd_sc_hd__xor2_1)
   0.58    2.68 v _2203_/X (sky130_fd_sc_hd__xor2_1)
   0.36    3.04 ^ _2204_/X (sky130_fd_sc_hd__xor2_4)
   0.01    3.05 ^ _eco_buf_1_/A (sky130_fd_sc_hd__buf_4)
   0.35    3.40 ^ _eco_buf_1_/X (sky130_fd_sc_hd__buf_4)
   0.02    3.42 ^ rx_ctrl/parity_err_reg/D (sky130_fd_sc_hd__dfxtp_2)
           3.42   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.29    3.56   library setup time
           3.56   data required time
-----------------------------------------------------------------
           3.56   data required time
          -3.42   data arrival time
-----------------------------------------------------------------
           0.14   slack (MET)

The resizer upsized _2204_ to xor2_4 and inserted buffer _eco_buf_1_ (sky130_fd_sc_hd__buf_4). The upsized XOR drives only the short stub to the buffer input, requiring 0.36 ns. The buffer drives the long wire to the capture register in 0.35 ns. Total data arrival time drops from 5.56 ns to 3.42 ns, converting -2.00 ns of violation into +0.14 ns (+140 ps) of positive slack.

Stage delays before and after the ECO at the slow corner
Figure 1: The ss-corner arrival time before and after the ECO; only the stage driving parity_net changed

Multi-Corner Verification After ECO

Verify that the ECO did not degrade timing on other corners:

Operating Corner Slack Before ECO Slack After ECO Signoff Status
Fast (ff) +1.45 ns +2.08 ns MET
Typical (tt) +0.19 ns +1.36 ns MET
Slow (ss) -2.00 ns +0.14 ns MET

All three corners now report positive setup slack.

Practice Exercise

After applying the setup ECO, a hold check at the fast corner (report_checks -corner ff -path_delay min) reveals that hold slack at parity_err_reg decreased from +0.95 ns to +0.52 ns. Explain why hold slack decreased. State how you would resolve this if hold slack became negative.

Solution

Hold slack decreased because the ECO reduced data path propagation delay. Hold constraints require data to remain stable after the active clock edge. By accelerating data arrival from 5.56 ns to 3.42 ns, the signal transitions earlier, reducing hold margin. At +0.52 ns, the margin remains safely positive.

If an ECO causes a hold violation on a short path, do not revert the setup fix. Execute automated hold repair using repair_timing -hold. This command inserts small delay buffers on failing short paths without degrading critical setup paths.

The critical setup violation is closed and verified across corners. Section 7.5 details signoff timing methodologies, clock jitter margining, and final tapeout closure.

← Buffer Insertion and Gate Sizing as ECO Techniques The Corners SKY130 Designs Are Actually Signed Off Against →