Module 5: Clock Tree Synthesis · 5.4 Post-CTS Timing

Fixing a Post-CTS Hold Violation

The previous article identified a 6 ps hold violation between u_rx_baud/count_reg[0] and count_reg[1]. Physical verification signoff requires zero timing violations. This article describes how to repair the hold violation by inserting delay buffers on the data path.

Hold Remediation Techniques

Engineers can resolve hold violations through two primary methods:

  • Insert delay buffers along the data path to increase combinational delay $t_{comb}$.
  • Adjust clock skew to increase launch clock latency relative to capture clock latency.

Data path buffer insertion provides a local repair. This change does not alter the synthesized clock distribution tree. Modifying clock tree buffers can affect multiple downstream timing paths and introduce secondary skew variations. Modifying the data path isolates the timing correction to the failing path.

Delay the data, not the clock
Figure 1: Before, data arrives at 0.463 ns against a 0.469 ns requirement. After a buf_2 on the data path, arrival moves to 0.493 ns and the check has 24 ps of margin. The clock tree is untouched.

Executing Automated Hold Repair

OpenROAD provides the repair_timing -hold command to automate buffer insertion:

% repair_timing -hold
[INFO RSZ-0047] Found 1 endpoint with hold violations.
[INFO RSZ-0048] Inserting hold buffer on path:
                 u_rx_baud/count_reg[0] -> u_rx_baud/count_reg[1]
[INFO RSZ-0049] Buffer inserted: sky130_fd_sc_hd__buf_2 (u_rx_baud/hold_fix_buf_0)
[INFO RSZ-0050] Repaired 1 of 1 hold violations.

The tool identifies failing endpoints and inserts the smallest standard cell buffer that resolves the timing violation. In this run, the tool inserts a sky130_fd_sc_hd__buf_2 cell into the net connecting count_reg[0] to count_reg[1].

Verifying Hold Closure

Regenerate the minimum delay timing report for the repaired path:

Startpoint: u_rx_baud/count_reg[0] (rising edge-triggered flip-flop clocked by clk)
Endpoint:   u_rx_baud/count_reg[1] (rising edge-triggered flip-flop clocked by clk)
Path Group: clk
Path Type:  min

  Delay    Time   Description
--------------------------------------------------------------
   0.000   0.000   clock clk (rise edge)
   0.298   0.298   clock network delay (propagated)
   0.000   0.298   u_rx_baud/count_reg[0]/CLK (sky130_fd_sc_hd__dfxtp_2)
   0.095   0.393   u_rx_baud/count_reg[0]/Q
   0.030   0.423   u_rx_baud/hold_fix_buf_0/Y (sky130_fd_sc_hd__buf_2)
   0.070   0.493   u_rx_baud/count_reg[1]/D (data arrival time)
--------------------------------------------------------------
   0.000   0.000   clock clk (rise edge)
   0.409   0.409   clock network delay (propagated)
   0.000   0.409   u_rx_baud/count_reg[1]/CLK
   0.060   0.469   library hold time
                    data required time                 0.469
--------------------------------------------------------------
   data required time                                  0.469
   data arrival time                                    0.493
--------------------------------------------------------------
   slack (MET)                                          0.024

The inserted buffer introduces 0.030 ns of propagation delay. Data arrival time increases from 0.463 ns to 0.493 ns. The final hold slack is $+0.024\text{ ns}$ ($+24\text{ ps}$), satisfying the hold constraint.

Evaluating Setup Margin Impact

Inserting delay buffers on data paths degrades setup timing margin:

$$\text{Setup slack (before)} = 20.000 - (0.070 + t_{setup} + \text{skew})$$

$$\text{Setup slack (after)} = 20.000 - (0.100 + t_{setup} + \text{skew})$$

The extra 0.030 ns buffer delay subtracts directly from setup slack. In this design, the 20 ns clock period provides over 19 ns of setup slack, easily absorbing the delay. For high-frequency designs with small setup margins, designers must evaluate hold buffer insertion carefully to prevent setup violations.

Practice Exercise

Assume a critical path has only 0.040 ns of positive setup slack. An automated repair tool suggests inserting a 0.030 ns hold buffer on that path. Evaluate the risk of this modification.

Solution

The repair leaves only $0.040 - 0.030 = 0.010\text{ ns}$ ($10\text{ ps}$) of positive setup slack.

This small margin creates severe timing risks under process, voltage, and temperature variations. A slight increase in wire capacitance during detail routing can cause a setup violation. Designers should evaluate clock-side skew adjustments or logic restructuring when setup margins are narrow.

The clock distribution network satisfies both setup and hold constraints. Section 5.5 discusses clock gating implementations and clock tree synthesis across gated domains.

← Reading a Post-CTS Timing Report Integrated Clock Gating Cells →