drt: min-area patch owner search compares the origin-relative patch box with absolute shapes, so patches are dropped
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
Línea de trabajo
Empieza en checkMetalShape_patchOwner_helper en src/drt/src/gc/FlexGC_main.cpp, llamado desde checkMetalShape_addPatch cerca de la línea 2355. El helper compara patch->getOffsetBox() con la caja de pin y los bboxes de las figuras de conexión de cada drNet, pero la caja de desplazamiento del parche es relativa al origen. Cambia la comparación a patch->getBBox(), que es absoluta. Está terminado cuando los parches que se solapan con un drNet reciben un owner en la regresión nangate45 y el resultado enrutado se verifica contra los 74 parches descartados reportados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
When GC builds a min-area patch (checkMetalShape_addPatch, src/drt/src/gc/FlexGC_main.cpp around line 2355 on master) for a net that has more than one drNet in the worker, it calls checkMetalShape_patchOwner_helper to find the drNet whose shapes the patch touches. The helper compares patch->getOffsetBox() with each drNet's getPinBox() and its ext/route conn figs' getBBox().
The patch was just built with setOrigin(offset) and setOffsetBox(patchBx), so its offset box is relative to the patch origin (for example (-70,-300)-(70,0)), while the boxes it is compared with are absolute. drPatchWire::getBBox() applies the origin and gives the absolute box. As written, an owner is found only when some shape of a drNet reaches the region around the design origin; otherwise patch->hasNet() is false and the patch is dropped without a message.
Expected Behavior
The owner search uses the patch's absolute box (patch->getBBox()), so the patch is assigned to the drNet it overlaps.
To Reproduce
- gcd on nangate45 (the regression design), with a LEF58_AREA (or plain AREA) value large enough that detailed routing needs min-area patches, for example
AREA 0.02on every routing layer. - Instrument the end of
checkMetalShape_addPatchto log patches dropped aftercheckMetalShape_patchOwner_helper. - On our run, 74 of 1234 patches were dropped this way. In one case the patch's absolute box was (87140,68020)-(87280,68320), and the net's second
drNethad pin box (82650,58800)-(87210,88200), which overlaps it, yet no owner was found. - Using
getBBox()in the helper keeps those patches, and the routed result changes.
Suggested fix
odb::Rect patch_box = patch->getBBox();
Relevant log output
No response
Additional Context
Found while comparing min-area patching between router implementations. Related reports: #12187, #12188.
- Lenguaje dominante
- Verilog
- Estrellas
- 3.4k
- Forks
- 1.1k
- Merge medio
- 3 d 11 h
- PR fusionados (30 d)
- 247
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de The-OpenROAD-Project/OpenROAD
-
odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the rulePosiblemente ocupada @LucasYuki la tomó hace 25 días. Abiertobug drt odb
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
The-OpenROAD-Project/OpenROAD#12176 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
drt: LEF58_SPACING ENDOFLINE MINLENGTH l TWOSIDES is checked one-sided (io passes the TWOEDGES flag as TWOSIDES)Posiblemente ocupada @osamahammad21 la tomó hace 25 días. Abiertobug drt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
The-OpenROAD-Project/OpenROAD#12173 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
cleanup-opportunity: BUILD files never refer to mockturtle in third-partty/Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobazel enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
The-OpenROAD-Project/OpenROAD#12160 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
odb: Bazel build fails on linux/aarch64 — char fc compared to EOF in def/lef lexersPosiblemente ocupada @shivarammysore la tomó hace 32 días. Abiertobazel bug odb
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
The-OpenROAD-Project/OpenROAD#12095 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
syn: acd_resynth -apply segfaults on a database resynthesized in an earlier processQuizá libre de nuevo @povik la tomó hace 31 días y no hay ningún pull request abierto. Abiertobug syn
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
The-OpenROAD-Project/OpenROAD#12046 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de The-OpenROAD-Project/OpenROAD
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ranxianglei/billion-context#8319 ·
Los mantenedores suelen responder en 1 día
-
backend bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
nolte/kamerplanter#3193 ·
Los mantenedores suelen responder en 1 día
-
bug documentation queries
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ClickHouse/clickhouse-cs#815 ·
Los mantenedores suelen responder en 1 día
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día