Skip to content

Commit

Permalink
RWRoute Fixes (#765)
Browse files Browse the repository at this point in the history
* PartialRouter.determineRoutingTargets() to recover indirect conns

Signed-off-by: Eddie Hung <[email protected]>

* RWRoute.saveRouting() to handle altSourceINTNode == null

Signed-off-by: Eddie Hung <[email protected]>

---------

Signed-off-by: Eddie Hung <[email protected]>
  • Loading branch information
eddieh-xlnx authored Jul 21, 2023
1 parent 0136ca3 commit c324c50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/com/xilinx/rapidwright/rwroute/PartialRouter.java
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,11 @@ protected void determineRoutingTargets() {
rend.setPrev(rstart);
}

// Use the prev pointers to attempt to recover routing for all connections
// Use the prev pointers to attempt to recover routing for all indirect connections
for (Connection connection : netWrapper.getConnections()) {
finishRouteConnection(connection, connection.getSinkRnode());
if (!connection.isDirect()) {
finishRouteConnection(connection, connection.getSinkRnode());
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/com/xilinx/rapidwright/rwroute/RWRoute.java
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ private boolean saveRouting(Connection connection, RouteNode rnode) {
altSource = net.getSource();
}
Node altSourceINTNode = RouterHelper.projectOutputPinToINTNode(altSource);
if (altSourceINTNode.equals(sourceRnode.getNode())) {
if (sourceRnode.getNode().equals(altSourceINTNode)) {
RouteNode altSourceRnode = sourceRnode;
connection.setSource(altSource);
connection.setSourceRnode(altSourceRnode);
Expand Down

0 comments on commit c324c50

Please sign in to comment.