How RePlAce Models Global Placement
Global placement searches a continuous geometric domain to determine cell positions. The RePlAce engine in OpenROAD solves this placement problem using an electrostatics analogy. The algorithm balances attractive net forces against repulsive density forces.
The Analytical Force-Directed Model
RePlAce models standard cells as charged particles distributed across the core canvas. Two competing forces act upon every cell during each iteration:
- Attractive net forces: Interconnecting nets pull connected cells together like physical springs. Higher connectivity produces stronger attractive forces.
- Repulsive density forces: Regions with high cell concentrations generate repulsive forces that push cells toward less crowded areas.
Figure 1 illustrates these two competing forces.
Neither force produces a valid placement independently. Pure attraction collapses all cells into a single point, maximizing density violations. Pure repulsion spreads cells uniformly across the core while ignoring wire length. RePlAce simulates both forces simultaneously across multiple iterations. The layout reaches equilibrium when wire length is minimized and local density satisfies target constraints.
During execution, RePlAce divides the core into a grid of spatial bins. The tool calculates an overflow metric representing the total cell area exceeding target bin capacity. As the simulation progresses, the overflow value decreases toward zero.
Evaluating Density Maps Across Iterations
The following tables show local bin density as a percentage of target capacity across two execution phases. Values exceeding 100 percent indicate localized overcrowding.
Iteration 3 (early optimization):
| Col1 | Col2 | Col3 | Col4 | |
|---|---|---|---|---|
| Row1 | 45 | 60 | 138 | 52 |
| Row2 | 70 | 142 | 155 | 48 |
| Row3 | 58 | 130 | 90 | 40 |
| Row4 | 62 | 55 | 70 | 65 |
Iteration 48 (near convergence):
| Col1 | Col2 | Col3 | Col4 | |
|---|---|---|---|---|
| Row1 | 88 | 95 | 102 | 90 |
| Row2 | 92 | 99 | 105 | 87 |
| Row3 | 90 | 97 | 96 | 92 |
| Row4 | 89 | 91 | 94 | 90 |
Iteration 48 demonstrates high convergence. All bins exhibit density values close to 100 percent. In contrast, Iteration 3 shows severe density spikes in columns 2 and 3, reaching 155 percent. Repulsive forces displace cells from these dense bins into adjacent low-density bins during subsequent iterations. RePlAce halts when total overflow drops below a predefined threshold, rather than requiring identical densities in every bin.
Practice Exercise
A global placement run reports overflow values of 0.71 at iteration 1, 0.34 at iteration 20, 0.15 at iteration 40, and 0.09 at iteration 60. The convergence threshold is set to 0.10. Determine the iteration at which RePlAce terminates optimization.
Solution
RePlAce stops at iteration 60. At iteration 60, the overflow value (0.09) falls below the convergence threshold of 0.10. The placement engine considers the continuous solution converged and transfers the netlist to detailed placement and legalization.
RePlAce produces a continuous placement solution where cells may overlap slightly at non-integer coordinates. Section 4.2 examines legalization, which snaps cells into discrete row sites without overlaps.