odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the rule
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
src/odb/src/lefin/MinCutParser.cpp、特に MinCutParser::addCutClass を読み、ルールのカットクラスごとのフラグとクラスマップがどのように設定されるかを追跡してください。src/odb/test の下に、LEF58 プロパティを読み込み、isPerCutClass() とクラスマップを確認する焦点を絞ったテストを追加してください。テストがカットクラスごとの形式でフラグが設定されていることを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
A LEF58 minimum-cut rule written in its per-cut-class form is read into odb, but its per-cut-class flag is never set. As a result the detailed router drops the rule without a message.
LAYER M2
...
PROPERTY LEF58_MINIMUMCUT "
MINIMUMCUT CUTCLASS VA 2 WIDTH 0.2 ;
" ;
END M2
What happens:
MinCutParser(src/odb/src/lefin/MinCutParser.cpp,addCutClass) records the class count withsetCutsPerCutClass(className, numCuts). It never callssetPerCutClass(true), soisPerCutClass()stays false for every rule read from LEF, andgetNumCuts()stays at its default.- In drt (
src/drt/src/io/io_parser_helper.cpp, the LEF58 minimum-cut conversion), theisPerCutClass()branch that looks up the cut class of the default vias is never taken.num_cutsis the default, and the rule is skipped by thenum_cuts <= 1earlycontinue. No warning is printed.
So no rule written as MINIMUMCUT CUTCLASS <class> <n> ... is ever enforced by detailed routing. The plain MINIMUMCUT <n> ... form works as expected.
Seen at 4155ac31014 and on current master.
Expected Behavior
isPerCutClass() returns true for a rule read with CUTCLASS, and drt converts it using the class count, as the existing branch in io_parser_helper.cpp already intends.
To Reproduce
- Add the property above to a routing layer of any tech LEF whose cut layer above or below defines a cut class
VAused by that layer's default via. read_lef, then in Tcl walk[$layer getTechLayerMinCutRules]:isPerCutClassreturns 0, andgetCutClassCutsMapholdsVA 2.- Run
detailed_routewith debug output: no minimum-cut constraint is created for the layer.
Suggested fix
In MinCutParser::addCutClass, also call rule_->setPerCutClass(true). A unit test in src/odb/test that reads the property above and checks isPerCutClass() and the class map would cover it.
Relevant log output
No response
Additional Context
Found while comparing rule coverage between LEF readers. Happy to send a PR with the one-line fix and the test if that would help.
- 主要言語
- Verilog
- スター
- 3.4k
- フォーク
- 1.1k
- 平均マージ
- 3日 11時間
- マージ済み PR(30日)
- 247
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
The-OpenROAD-Project/OpenROAD のほかの issue
-
drt: min-area patch owner search compares the origin-relative patch box with absolute shapes, so patches are dropped対応中かも @bnmfw が 11 日前に担当しました。 オープンbug drt
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
The-OpenROAD-Project/OpenROAD#12191 · コメント 5 件 · 担当者 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
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ranxianglei/billion-context#8315 ·
メンテナーはふだん 1 日以内に返信
-
XML grammar: only the closing --> of a comment gets the scope comment.block.xml対応中かも @alexeyfala が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
danipen/TextMateSharp#145 · コメント 2 件 ·
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
future-agi/future-agi#6368 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
omacom/omarchy#21787 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信