WARNING DPL-0010 on fixed macros

Aperta
#11,513 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

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

dpl
Describe the bug

I'm getting DPL failures on hard macros which do not seem valid:

Image

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 <= kMaxPinLevel can 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.)

  1. Skip checkBlockedLayers() for fixed / block instances in CheckPlacement.cpp,
    or report them at warning severity — DPL cannot act on the result either way.
  2. 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.
  3. 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di The-OpenROAD-Project/OpenROAD

Tutte le issue di The-OpenROAD-Project/OpenROAD

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.