Skip to content

Commit

Permalink
[GlobalSignalRouting] Do not encourage reuse
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <eddie.hung@amd.com>
  • Loading branch information
eddieh-xlnx committed Nov 15, 2024
1 parent 82a6311 commit 5d6aca4
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/com/xilinx/rapidwright/rwroute/GlobalSignalRouting.java
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public static void routeStaticNet(List<SitePinInst> pins,
}

Node node = sink.getConnectedNode();
if (getNodeState.apply(node) == NodeStatus.UNAVAILABLE) {
if (getNodeState.apply(node) != NodeStatus.INUSE) {
throw new RuntimeException("ERROR: Site pin " + sink + " is not available for net " + currNet);
}
nodeToRouteToSink.put(node, sink);
Expand Down Expand Up @@ -531,18 +531,6 @@ public static void routeStaticNet(List<SitePinInst> pins,
node = uphillNode;
break search;
}

// uphillNode must be a sink to be routed; preserve only the current routing, clear the queue,
// and restart routing from this new sink to encourage reuse
assert(!uphillSink.isRouted());
do {
usedRoutingNodes.add(node);
node = prevNode.get(node);
} while (node != INVALID_NODE);
prevNode.keySet().removeIf((n) -> !usedRoutingNodes.contains(n) && !n.equals(uphillNode));
q.clear();
q.add(uphillNode);
continue search;
}

q.add(uphillNode);
Expand Down

0 comments on commit 5d6aca4

Please sign in to comment.