Module 6: Routing · 6.2 Detailed Routing

Running Global and Detailed Routing

This article executes automated routing on the placed and clock-synthesized UART design. The design contains approximately 1,300 standard cells within a $300\ \mu\text{m} \times 300\ \mu\text{m}$ core area. The placement target density is 0.50, and clock distribution uses a balanced 50 MHz tree. The power distribution grid occupies upper metal layers.

Configuration Parameters

The following parameters in config.json control the routing stages:

{
    "DESIGN_NAME": "uart",
    "CLOCK_PORT": "clk",
    "CLOCK_PERIOD": "20.0",
    "RT_MIN_LAYER": "met1",
    "RT_MAX_LAYER": "met4",
    "GRT_ALLOW_CONGESTION": false,
    "ROUTING_CORES": 4,
    "DRT_OPT_ITERS": 64
}
  • RT_MIN_LAYER and RT_MAX_LAYER restrict signal routing to met1 through met4, reserving met5 for power grid stripes.
  • GRT_ALLOW_CONGESTION set to false causes the flow to abort if global routing leaves unresolved overflow.
  • DRT_OPT_ITERS sets the maximum allowable rip-up and reroute iterations for TritonRoute.

Executing the Routing Flow

Run the interactive OpenLane shell and execute routing on the prepared database:

% prep -design uart -tag routing_run_01
% run_placement
% run_cts
% run_routing

The run_routing command runs FastRoute for global routing, performs track assignment, and invokes TritonRoute for detailed routing. Alternatively, run the complete batch flow from the terminal:

./flow.tcl -design uart -tag routing_run_01

Analyzing the Clean Routing Summary

OpenLane generates a combined routing summary upon completion:

====== Global Routing Summary ======
Design: uart
GCell grid: 42 x 42
Total nets routed: 1428
Nets with overflow: 0
Peak overflow (any edge): 0
Total estimated wirelength: 51,904 um

====== Detailed Routing Summary ======
Design: uart
Routing layers used: met1 - met4
Initial violations (iteration 0): 187
Final violations: 0
Rip-up/reroute iterations used: 3 (of 64 available)
Total wirelength (actual): 48,912 um
Total via count: 3,204
  via1 (li1-met1):    612
  via2 (met1-met2):  1,441
  via3 (met2-met3):    889
  via4 (met3-met4):    262
Unrouted nets: 0
Routing DRC violations: 0

Run status: ROUTING COMPLETE - CLEAN

The global summary confirms zero overflow across the $42 \times 42$ GCell grid. Detailed routing converges in 3 iterations, reducing violations from 187 to 0. The design contains 0 unrouted nets and 0 routing DRC violations.

Via count by layer pair on the clean run
Figure 1: The via breakdown from the summary. via2 dominates and the count shrinks going up: most connections are short local hops, and only a few nets climb to met3 and met4.

Figure 1 shows the via distribution across layer transitions. Short local connections dominate, resulting in high counts for via1 and via2. Via counts decrease at upper layers because only long-distance connections require met3 and met4.

Diagnosing Routing Failures

Review a failing detailed routing summary from a congested placement run:

Initial violations (iteration 0): 340
Final violations: 22
Rip-up/reroute iterations used: 64 (of 64 available)
Unrouted nets: 4
Routing DRC violations: 22
Run status: ROUTING COMPLETE - VIOLATIONS PRESENT

The router used all 64 iterations but could not resolve 22 design rule violations and 4 unrouted nets. This behavior indicates structural congestion. Increasing DRT_OPT_ITERS will not resolve this condition. Designers must resolve localized cell crowding during floorplanning and placement.

Practice Exercise

Explain why via counts decrease from lower metal layers to upper metal layers in a balanced routing run.

Solution

Most net connections in a standard cell block connect adjacent logic gates. These short nets route on lower layers (li1, met1, and met2). Only long-distance global signals and power trunks route on upper layers (met3 and met4), requiring fewer total vias.

Both routing stages are complete. Section 6.3 examines the physical design rules governing wire spacing, wire width, and antenna protection.

← Vias and Design-Rule-Correct Wires Spacing and Width Rules →