drt: min-area patch owner search compares the origin-relative patch box with absolute shapes, so patches are dropped
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
src/drt/src/gc/FlexGC_main.cpp の checkMetalShape_patchOwner_helper から始めてください。2355行目付近で checkMetalShape_addPatch から呼び出されています。このヘルパーは patch->getOffsetBox() を各 drNet のピン箱および接続フィギュアの bbox と比較していますが、パッチのオフセット箱は原点基準です。比較を絶対座標である patch->getBBox() に変更してください。drNet と重なるパッチが nangate45 のリグレッションで owner を取得し、配線結果が報告された74個の破棄パッチと照合されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Verilog
- スター
- 3.4k
- フォーク
- 1.1k
- 平均マージ
- 3日 11時間
- マージ済み PR(30日)
- 247
環境構築
- 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 が 25 日前に担当しました。 オープン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 が 25 日前に担当しました。 オープン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 日以内に返信
The-OpenROAD-Project/OpenROAD の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ranxianglei/billion-context#8319 ·
メンテナーはふだん 1 日以内に返信
-
backend bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
nolte/kamerplanter#3193 ·
メンテナーはふだん 1 日以内に返信
-
bug documentation queries
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ClickHouse/clickhouse-cs#815 ·
メンテナーはふだん 1 日以内に返信
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信