WARNING DPL-0010 on fixed macros
Los mantenedores suelen responder en 1 día
@gudeh ya está trabajando en esto.
Desde el 28/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- Verilog
- Estrellas
- 3.4k
- Forks
- 1.1k
- Merge medio
- 3 d 11 h
- PR fusionados (30 d)
- 245
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 26 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 26 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