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

Buffer Insertion and Gate Sizing as ECO Techniques

Section 7.3 demonstrated that parity_net suffers from severe delay because gate _2204_ drives 118.6 fF of wire capacitance. Physical designers use two primary ECO techniques to fix setup timing violations: gate sizing and buffer insertion. This article examines the physical mechanisms and engineering trade-offs of both methods.

Gate Sizing Mechanics

Gate sizing replaces a standard cell with a higher drive-strength variant of the same logical function. For example, the tool replaces sky130_fd_sc_hd__xor2_2 with sky130_fd_sc_hd__xor2_4.

Larger drive variants feature wider channel widths in their pull-up and pull-down networks. Wider transistors provide higher saturation currents, reducing effective output resistance $R_{out}$. Consequently, the stage charges downstream wire capacitance faster.

However, gate sizing has physical limitations:

  • Standard cell libraries provide finite drive sizes. In the SkyWater 130nm library, XOR gates reach a maximum drive size of 4.
  • Larger transistors increase input pin capacitance, which increases load delay on the preceding logic stage (_2203_).
  • Complex gates like XORs feature stacked transistors, giving them higher output resistance than dedicated inverters or buffers.

Buffer Insertion Mechanics

Buffer insertion inserts a dedicated repeater cell into the net, dividing a continuous wire run into separate segments. The original driving gate now drives only a short metal stub and the input pin of the buffer. The inserted buffer then drives the long remaining route.

Dedicated buffers use optimized, wide-inverter pairs that drive heavy capacitive loads efficiently. Placing a buffer near the output of a weak gate isolates the gate from large wire capacitances. Although the buffer introduces intrinsic propagation delay, reducing the driver delay produces a net decrease in total path latency.

Engineering Trade-Offs

Both techniques introduce physical design trade-offs:

Engineering Parameter Buffer Insertion Gate Sizing
Silicon Area Consumes a new placement site and requires local legalization Increases cell width, potentially shifting adjacent cells
Dynamic Power Increases switching power due to additional gate and wire toggling Increases switching power due to larger gate input capacitance
Timing Risk Faster data arrival degrades hold timing margins at the fast corner Higher input capacitance increases delay on the upstream driving gate

Figure 1 illustrates how combining both methods resolves the delay on parity_net:

Parity net before and after upsizing and buffer insertion
Figure 1: Before the ECO, xor2_2 drives the whole long net; after it, xor2_4 drives a short stub and a buffer drives the long route

The engine upsizes the driving XOR to xor2_4 and inserts a strong buffer nearby. The XOR charges only the buffer input, while the buffer drives the 118.6 fF wire route into the capture flip-flop.

Practice Exercise

Two nets violate setup timing at the slow corner. Net A connects to three adjacent load pins totaling 25 fF, driven by nand2_1. Net B spans a long route with 110 fF of load, driven by xor2_2. A gate-sizing optimization run resolves Net A but leaves Net B with negative slack. Explain this difference.

Solution

Net A has low capacitance (25 fF) driven by a minimum-sized simple gate. The library contains high-drive NAND variants that easily drive 25 fF without significant upstream penalty.

Net B has heavy capacitance (110 fF) driven by an XOR gate. The largest library XOR (xor2_4) still features relatively high output resistance due to series transistor stacks. Upsizing alone cannot supply enough current to charge 110 fF within the timing budget. Net B requires buffer insertion to decouple the large capacitance from the XOR gate.

You understand gate sizing and buffer insertion. The next article executes automated timing repair in OpenROAD to close the slow-corner violation on parity_net.

← The ECO Concept: Surgical Fixes, Not Full Reruns Closing a Real Timing Violation on the UART →