Skip to content

Commit

Permalink
Fix predicate and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieh-xlnx committed Nov 24, 2022
1 parent ff9ce78 commit e2cc447
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/com/xilinx/rapidwright/rwroute/RWRoute.java
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,16 @@ protected void routeStaticNets() {
List<SitePinInst> pins = e.getValue();
System.out.println("INFO: Route " + pins.size() + " pins of " + net);
Map<SitePinInst, List<Node>> sinksRoutingPaths = GlobalSignalRouting.routeStaticNet(net,
// Predicate to determine whether a node is unavailable for global routing
(node) -> {
Net preservedNet = routingGraph.getPreservedNet(node);
if (net == null) {
return true;
}
if (net == preservedNet) {
return false;
if (preservedNet != null) {
// If one is present, it is unavailable only if it isn't carrying
// the net undergoing routing
return preservedNet != net;
}
// A RouteNode will only be created if the net is necessary for
// a to-be-routed connection
return routingGraph.getNode(node) != null;
},
design, routethruHelper);
Expand Down

0 comments on commit e2cc447

Please sign in to comment.