WARNING DPL-0010 on fixed macros
メンテナーはふだん 1 日以内に返信
@gudeh がすでに取り組んでいます。
2026年9月28日 から。
評価
この issue はまだ評価されていません。
説明
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
- 主要言語
- Verilog
- スター
- 3.4k
- フォーク
- 1.1k
- 平均マージ
- 3日 11時間
- マージ済み PR(30日)
- 245
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
The-OpenROAD-Project/OpenROAD のほかの issue
-
odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the rule対応中かも @LucasYuki が 26 日前に担当しました。 オープンbug drt odb
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
The-OpenROAD-Project/OpenROAD#12176 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
drt: LEF58_SPACING ENDOFLINE MINLENGTH l TWOSIDES is checked one-sided (io passes the TWOEDGES flag as TWOSIDES)対応中かも @osamahammad21 が 26 日前に担当しました。 オープンbug drt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
The-OpenROAD-Project/OpenROAD#12173 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
cleanup-opportunity: BUILD files never refer to mockturtle in third-partty/再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbazel enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
The-OpenROAD-Project/OpenROAD#12160 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
odb: Bazel build fails on linux/aarch64 — char fc compared to EOF in def/lef lexers対応中かも @shivarammysore が 32 日前に担当しました。 オープンbazel bug odb
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
The-OpenROAD-Project/OpenROAD#12095 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
syn: acd_resynth -apply segfaults on a database resynthesized in an earlier process再び着手できるかも @povik が 31 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug syn
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
The-OpenROAD-Project/OpenROAD#12046 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信