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_LAYERandRT_MAX_LAYERrestrict signal routing tomet1throughmet4, reservingmet5for power grid stripes.GRT_ALLOW_CONGESTIONset tofalsecauses the flow to abort if global routing leaves unresolved overflow.DRT_OPT_ITERSsets 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.
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.