GRT: resistance-aware nets percentage TCL parameter#10748
Merged
eder-matheus merged 5 commits intoJun 24, 2026
Merged
Conversation
Signed-off-by: Jonas Gava <jfgava@precisioninno.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new -res_aware_nets_percentage parameter to configure the percentage of resistance-aware nets in global routing, exposing it through Tcl, SWIG, and C++ APIs. The review feedback highlights an inconsistency where the Tcl interface validates the input as a percentage (0-100), but the C++ backend treats it as a fraction (0-1), which would lead to incorrect scaling (e.g., 15% being interpreted as 1500%). To resolve this, the reviewer suggests storing the value as a percentage (0-100) with a default of 15.0, dividing it by 100.0 before passing it to updateSlacks, and updating the documentation to reflect this scale.
Signed-off-by: Jonas Gava <jfgava@precisioninno.com>
Signed-off-by: Jonas Gava <jfgava@precisioninno.com>
Signed-off-by: Jonas Gava <jfgava@precisioninno.com>
Signed-off-by: Jonas Gava <jfgava@precisioninno.com>
eder-matheus
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FastRoute (FastRoute.h / FastRoute.cpp):
New member
res_aware_nets_percentage_ = 15(default 15%)setResAwareNetsPercentage(float)/getResAwareNetsPercentage()GlobalRouter ([GlobalRouter.h] / [GlobalRouter.cpp]):
setResAwareNetsPercentage(float)declaration + implementation (delegates tofastroute_->setResAwareNetsPercentage)SWIG ([GlobalRouter.i]):
set_res_aware_nets_percentage(float) wrapper TCL ([GlobalRouter.tcl]):
-res_aware_nets_percentageadded to global_route command args and parse_key_argsHandler validates with
sta::check_percentand callsgrt::set_res_aware_nets_percentageUsage:
global_route -resistance_aware -res_aware_nets_percentage 25— omitting it defaults to 15%.Type of Change
Impact
Option to set the percentage of nets to use resistance-aware routing.
Verification
./etc/Build.sh).