Skip to content

Commit

Permalink
Ignore nets driven by hier ports
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <[email protected]>
  • Loading branch information
eddieh-xlnx committed Dec 24, 2024
1 parent 4fd44cb commit f86be45
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/com/xilinx/rapidwright/design/DesignTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -4414,14 +4414,17 @@ public static int updatePinsIsRouted(Net net) {
* Update the SitePinInst.isRouted() value of all sink pins in the given
* Design. See {@link #updatePinsIsRouted(Net)}.
* @param design Design in which pins are to be updated.
* @return Number of unrouted sink pins across design.
* @return Number of unrouted sink pins (not driven by hierarchical ports) across design.
*/
public static int updatePinsIsRouted(Design design) {
int numUnroutedSinkPins = 0;
int totalUnroutedSinkPins = 0;
for (Net net : design.getNets()) {
numUnroutedSinkPins += updatePinsIsRouted(net);
int numUnroutedSinkPins = updatePinsIsRouted(net);
if (!DesignTools.isNetDrivenByHierPort(net)) {
totalUnroutedSinkPins += numUnroutedSinkPins;
}
}
return numUnroutedSinkPins;
return totalUnroutedSinkPins;
}

/**
Expand Down

0 comments on commit f86be45

Please sign in to comment.