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

Đang mở
#12,044 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

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ả

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của The-OpenROAD-Project/OpenROAD

Tất cả issue của The-OpenROAD-Project/OpenROAD

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.