Skip to content

drt: keep instance pin access within the top routing layer - #11938

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:TR-pa-top-layer
Oct 31, 2026
Merged

maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:TR-pa-top-layer

Conversation

@openroad-ci

Copy link
Copy Markdown
Member

Summary

Since #10654 (0fe62b1), the detailed-route grid graph stops at TOP_ROUTING_LAYER. Pin access still created access points on instance pin shapes above that layer. Those points had no maze index, so FlexDRWorker::routeNet segfaulted after initMazeIdx_ap no idx.

  • PA (FlexPA::genAPsFromPinShapes): skip layers above TOP_ROUTING_LAYER for instance pins. Bterms are not changed; processBTermsAboveTopLayer already stacks vias down for them.
  • DR (initNet_term_helper): drop access points above TOP_ROUTING_LAYER. If a pin has no other access, fail with new error DRT-1232 naming the pin.

Type of Change

  • Bug fix

Impact

Instance pins with shapes above the top routing layer, e.g. sky130_fd_sc_hd__probec_p_8 routed on met1 to met4, now get access points only within the routing layers and route instead of crashing. No change for designs whose pins are all within the routing layers.

Verification

  • I have verified that the local build succeeds (Bazel; ./etc/Build.sh not run).
  • I have run the relevant tests and they pass.
  • My code follows the repository's formatting guidelines.
  • I have included tests to prevent regressions.
  • I have signed my commits (DCO).

Related Issues

-- Fixes #11812

Fixes The-OpenROAD-Project#11812

Signed-off-by: osamahammad21 <osama@precisioninno.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request prevents crashes during detailed routing by ignoring pin access points that lie above the top routing layer, since the grid graph stops at that layer. It also introduces a specific error message when a pin is only accessible above the top routing layer and adds a regression test. The review feedback correctly notes that because the logger's error method terminates execution, the subsequent error log becomes unreachable; using an else branch would make this control flow explicit and clean.

Comment thread src/drt/src/dr/FlexDR_init.cpp Resolved
@osamahammad21
osamahammad21 marked this pull request as ready for review October 29, 2026 00:09
@osamahammad21
osamahammad21 requested a review from a team as a code owner October 29, 2026 00:09
@maliberty
maliberty merged commit e891333 into The-OpenROAD-Project:master Oct 31, 2026
21 of 23 checks passed
@maliberty
maliberty deleted the TR-pa-top-layer branch October 31, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

drt: segfault after "initMazeIdx_ap no idx" when a pin is only accessible above the top routing layer

3 participants