drt: min-area patch owner search compares the origin-relative patch box with absolute shapes, so patches are dropped
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
Direzione di ricerca
Inizia da checkMetalShape_patchOwner_helper in src/drt/src/gc/FlexGC_main.cpp, chiamato da checkMetalShape_addPatch vicino alla riga 2355. L'helper confronta patch->getOffsetBox() con il box del pin e i bbox delle figure di connessione di ogni drNet, ma il box di offset della patch è relativo all'origine. Passa il confronto a patch->getBBox(), che è assoluto. È completato quando le patch che si sovrappongono a un drNet ricevono un owner nella regressione nangate45 e il risultato instradato viene verificato rispetto alle 74 patch scartate segnalate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Verilog
- Stelle
- 3.3k
- Fork
- 1.1k
- Merge medio
- 3g 11h
- PR unite (30g)
- 247
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di The-OpenROAD-Project/OpenROAD
-
odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the ruleForse già presa @LucasYuki l’ha presa 25 giorni fa. Apertabug drt odb
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
The-OpenROAD-Project/OpenROAD#12176 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
drt: LEF58_SPACING ENDOFLINE MINLENGTH l TWOSIDES is checked one-sided (io passes the TWOEDGES flag as TWOSIDES)Forse già presa @osamahammad21 l’ha presa 25 giorni fa. Apertabug drt
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
The-OpenROAD-Project/OpenROAD#12173 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
cleanup-opportunity: BUILD files never refer to mockturtle in third-partty/Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertabazel enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
The-OpenROAD-Project/OpenROAD#12160 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
odb: Bazel build fails on linux/aarch64 — char fc compared to EOF in def/lef lexersForse già presa @shivarammysore l’ha presa 32 giorni fa. Apertabazel bug odb
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
The-OpenROAD-Project/OpenROAD#12095 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
syn: acd_resynth -apply segfaults on a database resynthesized in an earlier processForse di nuovo libera @povik l’ha presa 30 giorni fa e non c’è nessuna pull request aperta. Apertabug syn
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
The-OpenROAD-Project/OpenROAD#12046 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di The-OpenROAD-Project/OpenROAD
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
superfly/contextwindow#18 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
Lincoln-cn/JAiRouter#1452 ·
I maintainer di solito rispondono entro 1 giorno
-
accepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
future-agi/future-agi#6351 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno