drt/grt: route to access points above TOP_ROUTING_LAYER with stacked vias
Los mantenedores suelen responder en 1 día
@bnmfw ya está trabajando en esto.
Desde el 29/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- Verilog
- Estrellas
- 3.4k
- Forks
- 1.1k
- Merge medio
- 3 d 11 h
- PR fusionados (30 d)
- 245
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de The-OpenROAD-Project/OpenROAD
-
odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the rulePosiblemente ocupada @LucasYuki la tomó hace 25 días. Abiertobug drt odb
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
The-OpenROAD-Project/OpenROAD#12176 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
drt: LEF58_SPACING ENDOFLINE MINLENGTH l TWOSIDES is checked one-sided (io passes the TWOEDGES flag as TWOSIDES)Posiblemente ocupada @osamahammad21 la tomó hace 25 días. Abiertobug drt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
The-OpenROAD-Project/OpenROAD#12173 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
cleanup-opportunity: BUILD files never refer to mockturtle in third-partty/Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobazel enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
The-OpenROAD-Project/OpenROAD#12160 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
odb: Bazel build fails on linux/aarch64 — char fc compared to EOF in def/lef lexersPosiblemente ocupada @shivarammysore la tomó hace 32 días. Abiertobazel bug odb
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
The-OpenROAD-Project/OpenROAD#12095 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
syn: acd_resynth -apply segfaults on a database resynthesized in an earlier processQuizá libre de nuevo @povik la tomó hace 31 días y no hay ningún pull request abierto. Abiertobug syn
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
The-OpenROAD-Project/OpenROAD#12046 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día