drt/grt: route to access points above TOP_ROUTING_LAYER with stacked vias

Abierto
#12,044 1 comentario 0 reacciones 1 asignado Ver en GitHub

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

drt enhancement grt
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 BUMP instance with its pin on metal10;
  • 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)
  • genGuides sizes TrackIntervalsByLayer intvs to min(numLayers, TOP_ROUTING_LAYER + 1).
  • coverPins → patchGuides → patchGuides_helper adds a patch guide on the pin's layer (metal10). initGuideIntervals then writes intvs[metal10] out of bounds. This crashes OpenROAD.
  • DRT-0155 (GuideProcessor::isValidGuideLayerNum) rejects any guide above TOP_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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de The-OpenROAD-Project/OpenROAD

Todos los issues de The-OpenROAD-Project/OpenROAD

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.