ppl: place_pin -force_to_die_boundary rescans PDN on every call (~165 ms/pin, regression from 26Q2-911)

Abierto
#11,654 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@eder-matheus ya está trabajando en esto.

Desde el 7/10/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

ppl
Describe the bug

place_pin ... -force_to_die_boundary became about 7,000x slower between 26Q2-911-g731f8ff5a4 and 26Q4 (c4d317e4f). Master at 92a20a6b6 behaves the same.

Placing 3,172 pins with explicit place_pin -pin_name ... -layer met3|met4 -location {x y} -pin_size {0.3 0.8} -force_to_die_boundary calls, on a sky130hd block with a met4/met5 power grid already built:

26Q2-911 26Q4
3,172 place_pin -force_to_die_boundary calls 0.07 s 524 s (about 165 ms per call)
one place_pins call on the same block 1.3 s 0.7 s

The cause appears to be in IOPlacer::placePin (src/ppl/src/IOPlacer.cpp). With force_to_die_bound, every call rebuilds the blocking state from scratch:

  • it loops over every block BTerm and calls addFixedPinKeepouts for supply pins;
  • it calls getBlockedRegionsFromDbObstructions();
  • it calls getBlockedRegionsFromPDN().

The PDN scan is proportional to the size of the power grid, so the total cost is pins x PDN shapes. This came in with the place_pin changes of 2026-09-02 (91e71cc65, 051c4efcc, d6be48b2a).

Expected Behavior

Blocked regions are computed once and reused across consecutive place_pin calls, or invalidated only when the PDN or obstructions change. A batch form would also work.

Environment

OpenROAD 26Q4 (c4d317e4f, CMake Release) and master 92a20a6b6, on Rocky Linux 8.10.

To Reproduce

Any design with a full PDN and a few thousand IO pins placed one by one with -force_to_die_boundary should show it. The design here is proprietary.

Workaround: drop -force_to_die_boundary, and pass the pin centre half a pin depth inside the die. The resulting pins are identical to the forced placement.

Lenguaje dominante
Verilog
Estrellas
3.4k
Forks
1.1k
Merge medio
3 d 11 h
PR fusionados (30 d)
245

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de The-OpenROAD-Project/OpenROAD

Todos los issues de The-OpenROAD-Project/OpenROAD

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.