mpl: MPL-0005 after the orientation step mirrors a macro whose pins cannot then be on the track grid

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

Los mantenedores suelen responder en 1 día

@AcKoucher ya está trabajando en esto.

Desde el 19/10/2026.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp

Línea de trabajo

Start with the supplied reproduction archive and run ./run-me.sh using OpenROAD on PATH; then read src/mpl/snapper.cpp, clusterEngine.cpp, and hier_rtlmp.cpp. Compare the proposed snapping fallback with changing orientation selection, including the stated wire tradeoff and MPL-0081. Done means choosing a behavior that handles the pin-grid conflict while preserving the intended placement behavior, with the reproduction no longer failing on MPL-0005.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

mpl

rtl_macro_placer stops on MPL-0005 after its own orientation step mirrors a macro into an orientation in which no location puts the macro's pins on the track grid.

Download macro_place_mpl0005.tar.gz, then untar and run (openroad on PATH; reproduced with bfac0546a502f30db57e92d801f1eecea86e38ab, and src/mpl's snapper.cpp, clusterEngine.cpp and hier_rtlmp.cpp are unchanged at 3cc34a657d42b68f18fffb26235e9598e33f7899):

tar xf macro_place_mpl0005.tar.gz
cd macro_place_mpl0005
echo exit | ./run-me.sh

Reproduces in about 50 s. You'll see:

[ERROR MPL-0005] Couldn't align pin u_fe/q[36] from the RightWayOnGridOnly layer M5 with the track-grid.

The design is asap7, four hardened blocks of 200 x 194 um with all their signal pins on the top edge, on M3 and M5, on a 1.2 mm die. Before commitMacroPlacementToDb snaps them, correctAllMacrosOrientation has left three of the four in MY. asap7's M3 tracks are at 9 + 36k dbu and M5's at 12 + 48k, and the block's pins sit on its own tracks. Mirrored about Y, a pin at local x lands at origin - x, so M3 needs the origin at 18 mod 36 and M5 at 24 mod 48. Those disagree mod gcd(36, 48) = 12: no location aligns both layers, and the snapper's error is the only possible outcome. In R0 every location on a multiple of 144 dbu aligns them.

One way to fix it, carried in bazel-orfs and not sure it is the right one: Snapper::snapMacro reports whether every RightWayOnGridOnly pin was aligned instead of erroring, and commitMacroPlacementToDb, when it was not, keeps the macro's location and takes the first of R0, MX, MY, R180 that snaps (MPL-0081 says which); if none does, MPL-0005 as before. It only changes runs that stopped on MPL-0005. The open question is whether the orientation step should instead never choose an orientation that cannot snap, which would keep the wire it was chosen for. The patch:

https://github.com/The-OpenROAD-Project/bazel-orfs/blob/56ff74b15a1933d75c2a27aed5822c788f49c674/patches/0136-openroad-mpl-flip-that-snaps.patch

This comes from a synthetic test parent (The-OpenROAD-Project/bazel-orfs#1294, test/pin_traps); no real design is known to hit it yet.

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

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.