odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the rule
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 85/100
Hướng nghiên cứu
Đọc src/odb/src/lefin/MinCutParser.cpp, đặc biệt là MinCutParser::addCutClass, và theo dõi cách cờ theo cut class của quy tắc cùng bản đồ lớp được thiết lập. Thêm một kiểm thử tập trung trong src/odb/test để đọc thuộc tính LEF58 và kiểm tra isPerCutClass() cùng bản đồ lớp. Công việc hoàn thành khi kiểm thử xác nhận cờ được bật cho dạng theo cut class.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Verilog
- Star
- 3.4k
- Fork
- 1.1k
- Merge trung bình
- 3 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 247
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của The-OpenROAD-Project/OpenROAD
-
drt: min-area patch owner search compares the origin-relative patch box with absolute shapes, so patches are droppedCó thể đã có người làm @bnmfw đã nhận 11 ngày trước. Đang mởbug drt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
The-OpenROAD-Project/OpenROAD#12191 · 5 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
drt: LEF58_SPACING ENDOFLINE MINLENGTH l TWOSIDES is checked one-sided (io passes the TWOEDGES flag as TWOSIDES)Có thể đã có người làm @osamahammad21 đã nhận 25 ngày trước. Đang mởbug drt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
The-OpenROAD-Project/OpenROAD#12173 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cleanup-opportunity: BUILD files never refer to mockturtle in third-partty/Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbazel enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
The-OpenROAD-Project/OpenROAD#12160 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
odb: Bazel build fails on linux/aarch64 — char fc compared to EOF in def/lef lexersCó thể đã có người làm @shivarammysore đã nhận 32 ngày trước. Đang mởbazel bug odb
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
The-OpenROAD-Project/OpenROAD#12095 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
syn: acd_resynth -apply segfaults on a database resynthesized in an earlier processCó thể làm lại được @povik đã nhận 31 ngày trước và không có pull request nào đang mở. Đang mởbug syn
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
The-OpenROAD-Project/OpenROAD#12046 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của The-OpenROAD-Project/OpenROAD
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
-
[优化]本地模型未启动时能否不要报上游不可用错误Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ranxianglei/billion-context#8315 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
XML grammar: only the closing --> of a comment gets the scope comment.block.xmlCó thể đã có người làm @alexeyfala đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
danipen/TextMateSharp#145 · 2 bình luận ·
-
accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
future-agi/future-agi#6368 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
omacom/omarchy#21787 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày