Track Assignment
Global routing determines the sequence of GCells that each net traverses. However, manufacturing rules require metal traces to lie on predefined tracks. Wires must align precisely with manufacturing grids to satisfy spacing constraints. Track assignment maps coarse global routing segments to physical routing tracks on each metal layer.
The Role of Track Assignment
Track assignment bridges coarse global planning and detailed route generation. Global routing ignores exact track coordinates to speed up chip-wide congestion analysis. Detailed routing requires legal track allocations to generate valid shapes and vias.
If detailed routing began without track guidance, the search space would cause severe runtime penalties. Track assignment solves this problem. It assigns long wire segments to parallel tracks within each GCell, minimizing track crossings and via requirements. Detailed routing then connects assigned segments to standard cell pins.
Calculating Track Indices
The technology LEF file defines track positions using pitch and offset values. Pitch specifies the distance between track centerlines. Offset specifies the location of the initial track relative to the layout origin. To snap a continuous coordinate $x$ to the nearest track index, evaluate the formula:
$$\text{Track Index} = \left\lfloor \frac{x - \text{Offset}}{\text{Pitch}} + 0.5 \right\rfloor$$
The physical coordinate of the assigned track is:
$$x_{\text{track}} = \text{Offset} + (\text{Track Index} \times \text{Pitch})$$
Consider a metal layer with a pitch of $0.46\ \mu\text{m}$ and an offset of $0.23\ \mu\text{m}$. A global router places a rough wire crossing at $x = 12.30\ \mu\text{m}$:
$$\text{Track Index} = \left\lfloor \frac{12.30 - 0.23}{0.46} + 0.5 \right\rfloor = \left\lfloor 26.24 + 0.5 \right\rfloor = 26$$
Track 26 resides at $0.23 + (26 \times 0.46) = 12.19\ \mu\text{m}$. The coordinate shifts by $0.11\ \mu\text{m}$ to align with the manufacturing grid.
Resolving Local Track Conflicts
Track assignment introduces discrete constraints. A GCell boundary might have sufficient average capacity during global routing. However, multiple nets routed near the same coordinate may snap to identical track indices.
When two nets require the same track segment simultaneously, a track conflict occurs. The track assigner must divert one net to an adjacent free track or promote it to a different layer. Unresolved track conflicts cause pin access failures and shorts during detailed routing.
Practice Exercise
Two nets on the same metal layer have rough coordinates $x = 5.00\ \mu\text{m}$ and $x = 5.20\ \mu\text{m}$. The layer pitch is $0.34\ \mu\text{m}$ and the offset is $0.17\ \mu\text{m}$. Calculate the track index for each net. Determine whether a track conflict occurs.
Solution
For Net 1: $$\text{Track Index}_1 = \left\lfloor \frac{5.00 - 0.17}{0.34} + 0.5 \right\rfloor = \left\lfloor 14.21 + 0.5 \right\rfloor = 14$$
For Net 2: $$\text{Track Index}_2 = \left\lfloor \frac{5.20 - 0.17}{0.34} + 0.5 \right\rfloor = \left\lfloor 14.79 + 0.5 \right\rfloor = 15$$
Net 1 assigns to track 14, and Net 2 assigns to track 15. The nets occupy adjacent parallel tracks without conflict. If a third net required track 14 at the same coordinate, the router would reassign it to avoid electrical shorting.
Track assignment provides valid track coordinates for global net segments. Section 6.2 explains how detailed routing with TritonRoute creates legal interconnect geometries and vias.