WARNING DPL-0010 on fixed macros
I maintainer di solito rispondono entro 1 giorno
@gudeh ci sta già lavorando.
Dal 28/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Describe the bug
I'm getting DPL failures on hard macros which do not seem valid:
Claude analysis:
Summary
After #11501, check_placement reports DPL-0010 / DPL-0033 on fixed macro
instances that have no actual overlap with power metal. The blocking metal is
~2.8 um outside the macro, in the standard-cell rows above it.
checkBlockedLayers() scans a pixel range derived from gridRoundY() /
gridEndY(), which for a multi-row instance whose height and origin are not
row-aligned overshoots the instance's real footprint by up to a full row. It
then compares layer masks over those pixels rather than testing pin geometry,
so power metal in a neighbouring row blocks a macro that never touches it.
Because the instances are fixed, detailed placement cannot repair the
"violation", so check_placement fails unconditionally.
Version: 26Q3-2536-gc49bcd3e22. Last good: a042f15848b96a66fcb290234bb0da06a2a11834.
Symptom
[WARNING DPL-0010] Blocked layers check failed (2).
D1
Y
[ERROR DPL-0033] detailed placement checks failed during check placement.
D1, D2, Y are three instances of the same hardened macro (24.925 x 24.925 um,
PLACED/fixed). Two are flagged, one is not.
Setup
sky130hd, DBU/um = 1000. Core (10120, 10880) - (239660, 239360).
Site unithd: width 460, height 2720.
The macro's signal pins are on met2 (routing level 3) and met3. With
kMaxPinLevel = 3, pin_layers_ for the macro is {3} (met2).
The PDN is the standard sky130hd grid: met1 followpins, met4/met5 stripes,
add_pdn_connect met1 met4 and add_pdn_connect met4 met5. Special-net
geometry in the failing block:
| shape | count |
|---|---|
| met1 FOLLOWPIN | 116 |
| met2 DRCFILL | 692 |
| met3 DRCFILL | 692 |
| met4 / met5 STRIPE | 23 / 23 |
via sboxes (via2_3, via3_4, via4_5, via5_6) |
692 / 692 / 692 / 139 |
There are no met2 stripes, so wire_metal[3] is empty and nothing is subtracted
in Grid::markBlocked(). All 692 met2 DRCFILL patches plus the met2 enclosures
of the met1->met4 stacks land in blocked_pin_layers bit 3 — i.e. every met2
pin in the design is blockable.
This is a false positive
Checked against the block's full geometry:
- 0 PDN shapes (wires or via sboxes, any layer) intersect any of the three
macro bounding boxes. - 0 of the 36 macro met2 pin shapes intersect any met2 power shape.
Mechanism
PlacementDRC::checkBlockedLayers() derives its scan range from the grid, not
from the instance bbox:
const GridX x_begin = x; // grid_->gridX(cell)
const GridY y_begin = y; // grid_->gridRoundY(cell)
const GridX x_end = x + grid_->gridWidth(cell);
const GridY y_end = grid_->gridEndY(grid_->gridYToDbu(y) + cell->getHeight());
For D1 (core-relative bottom 40120, height 24925 = 9.16 rows):
gridRoundY(40120)=round(40120 / 2720)=round(14.75)= 15, i.e. the
band starts 680 DBU above the macro's bottom edge.y_end=gridEndY(15*2720 + 24925)=ceil(65725 / 2720)= 25.
So the scanned band is rows 15..24 = y [51680, 78880), while the macro occupies
y [51000, 75925) — the scan runs 2955 DBU (~2.96 um) past the top of the macro.
X is similar on a smaller scale: gridX snaps down and gridWidth rounds up, so
the band starts 375 DBU left of the macro.
The pixel that trips D1 is (396, 24) = x[192280, 192740) y[76160, 78880).
The met2 metal inside it:
DRCFILL met2 (192545, 78695, 194085, 79065)
VIA met2 (192550, 78695, 194080, 79065)
VIA met2 (192515, 78640, 194115, 79120)
All of it sits at y ~78.6-79.1 um. The macro's top edge is at 75.925 um — the
metal is ~2.8 um above the macro, in the first standard-cell row band above it,
where it legitimately belongs. Y fails identically at pixel (101, 24).
Modelling the grid arithmetic against the block reproduces the tool's result
exactly: D1 and Y flagged, D2 clean.
Why D2 escapes
Pure rounding luck. D2's core-relative bottom is 164115 = 60.34 rows, so
gridRoundY rounds down to row 60 and the band starts 915 DBU below the macro,
overshooting the top by only 1360 DBU instead of 2955 — short of the row that
carries the via metal.
Impact
- Any fixed macro with a pin on routing level <=
kMaxPinLevelcan be flagged by
power metal in an adjacent row. - The instance is fixed, so detailed placement cannot move it;
check_placement
then errors out with no way to converge. There is no recovery path short of
skipping the check.
Possible directions
(Offered as observations; the right fix is yours to pick.)
- Skip
checkBlockedLayers()for fixed / block instances inCheckPlacement.cpp,
or report them at warning severity — DPL cannot act on the result either way. - Clamp the scanned pixel range to the instance's real bbox instead of the
rounded row band, so the check does not read pixels outside the cell. - For block instances, intersect actual pin shapes against the power metal
rather than comparing per-pixel layer masks; pixels here are 460 x 2720 DBU,
which is coarse relative to a macro pin.
Found by siliconcompiler#5438,
an automated OpenROAD version bump; the design is the macro_reuse example
(three instances of one hardened macro on sky130hd). Happy to attach a
standalone .odb that reproduces with read_db + check_placement -verbose.
Expected Behavior
Work correctly
Environment
Head of master
To Reproduce
sc_issue_top_job0_place.detailed_0_20260924-123516.tar.gz
tar xvf sc_issue_top_job0_place.detailed_0_20260924-123516.tar.gz
cd sc_issue_top_job0_place.detailed_0_20260924-123516
./run.sh
Relevant log output
[WARNING DPL-0010] Blocked layers check failed (2).
D1
Y
[ERROR DPL-0033] detailed placement checks failed during check placement.
DPL-0033
Screenshots
No response
Additional Context
No response
- Lingua principale
- Verilog
- Stelle
- 3.4k
- Fork
- 1.1k
- Merge medio
- 3g 11h
- PR unite (30g)
- 245
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 26 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 26 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 31 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