drt/grt: route to access points above TOP_ROUTING_LAYER with stacked vias
Maintainer thường phản hồi trong vòng 1 ngày
@bnmfw đang làm issue này rồi.
Từ ngày 29/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Description
Summary
Once PR #11772 is merged, pin access will create access points on pins above TOP_ROUTING_LAYER. Down access will be allowed whenever any routable layer exists below the pin. The router can't use these access points yet. GRT rejects the pin, and when GRT is bypassed, the DR guide processor crashes.
The router should stack vias from the access point down to the TOP_ROUTING_LAYER
Repro
Run from src/drt/test/, with bump.lef, design.def and repro.tcl below. The design has:
- a
COVER BUMPinstance with its pin onmetal10; - a block-terminal on
metal2; - one net connecting them.
| Command | Result |
|---|---|
TOP=metal10 openroad -exit repro.tcl |
Routes, 0 violations (pin inside the routing range) |
TOP=metal8 openroad -exit repro.tcl |
[ERROR GRT-0029] Pin bump/PAD does not have geometries below the max routing layer (metal8). |
TOP=metal8 SKIP_GRT=1 openroad -exit repro.tcl |
Crash in GuideProcessor::genGuides (out-of-bounds operator[]) |
SKIP_GRT=1 runs GRT with metal10 as the top layer. It then deletes the guides above $TOP, lowers the routing range and runs detailed_route. If those guides are kept instead,
DR stops with DRT-0155 (guide outside the allowed routing range).
bump.lef
VERSION 5.8 ;
MACRO BUMP
CLASS COVER BUMP ;
ORIGIN 0 0 ;
SIZE 5 BY 5 ;
PIN PAD
DIRECTION INOUT ;
USE SIGNAL ;
PORT
LAYER metal10 ;
RECT 0 0 5 5 ;
END
END PAD
END BUMP
END LIBRARY
design.def
VERSION 5.8 ;
DIVIDERCHAR "/" ;
BUSBITCHARS "[]" ;
DESIGN top ;
UNITS DISTANCE MICRONS 2000 ;
DIEAREA ( 0 0 ) ( 160000 160000 ) ;
COMPONENTS 1 ;
- bump BUMP + FIXED ( 100000 60000 ) N ;
END COMPONENTS
PINS 1 ;
- a + NET a + DIRECTION INOUT + USE SIGNAL
+ PORT + LAYER metal2 ( -200 -200 ) ( 200 200 ) + FIXED ( 20000 80000 ) N ;
END PINS
NETS 1 ;
- a ( PIN a ) ( bump PAD ) + USE SIGNAL ;
END NETS
END DESIGN
repro.tcl
read_lef Nangate45/Nangate45_tech.lef
read_lef bump.lef
read_def design.def
make_tracks
set top metal8
if {[info exists ::env(TOP)]} { set top $::env(TOP) }
if {[info exists ::env(SKIP_GRT)]} {
set_routing_layers -signal metal2-metal10
global_route
set max_level [[[ord::get_db_tech] findLayer $top] getRoutingLevel]
foreach g [[[ord::get_db_block] findNet a] getGuides] {
if {[[$g getLayer] getRoutingLevel] > $max_level} {
odb::dbGuide_destroy $g
}
}
set_routing_layers -signal metal2-$top
} else {
set_routing_layers -signal metal2-$top
global_route
}
detailed_route -verbose 1
write_def results/above_top.def
What is failing
Pin Access will create a via access from meal10 to metal9, however this will not be reachable by the router.
GRT
GRT-0029 (GlobalRouter::makeItermPins) rejects any pin whose geometry is entirely above the max routing layer. GRT needs to accept the pin, place it at TOP_ROUTING_LAYER, and
produce guides that DR can consume.
DR guide processing (src/drt/src/io/GuideProcessor.cpp)
genGuidessizesTrackIntervalsByLayer intvstomin(numLayers, TOP_ROUTING_LAYER + 1).coverPins→patchGuides→patchGuides_helperadds a patch guide on the pin's layer (metal10).initGuideIntervalsthen writesintvs[metal10]out of bounds. This crashes OpenROAD.DRT-0155(GuideProcessor::isValidGuideLayerNum) rejects any guide aboveTOP_ROUTING_LAYER.
DR worker
For some reason I cannot understand FlexDRWorker::initTrackCoords_pin (FlexDR_init.cpp) already has some behavior for lNum > TOP_ROUTING_LAYER. It adds access-point locations on every layer from the access-point layer down to
TOP_ROUTING_LAYER. However I'm not sure if the rest of DR can actually do anything with it or if this currently is dead code.
Suggested Solution
No response
Additional Context
No response
- 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)
- 245
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
-
odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the ruleCó thể đã có người làm @LucasYuki đã nhận 25 ngày trước. Đang mởbug drt odb
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
The-OpenROAD-Project/OpenROAD#12176 · 2 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