Skip to content

Commit

Permalink
Cleanup
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 14, 2024
1 parent 3bfcdf4 commit 1ebc503
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/com/xilinx/rapidwright/rwroute/PartialRouter.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ protected void determineRoutingTargets() {
// if so, unpreserve that blocking net
Set<Net> unpreserveNets = new HashSet<>();
for (Connection connection : indirectConnections) {
Net net = connection.getNetWrapper().getNet();
Net net = connection.getNet();
Net preservedNet;
assert((preservedNet = routingGraph.getPreservedNet(connection.getSourceRnode())) == null || preservedNet == net);
RouteNode sinkRnode = connection.getSinkRnode();
Expand Down Expand Up @@ -271,7 +271,7 @@ protected void determineRoutingTargets() {
// routing
ripUp(connection);
connection.resetRoute();
connection.getSink().setRouted(false);
connection.setRouted(false);
break;
}
}
Expand Down Expand Up @@ -433,7 +433,7 @@ protected boolean saveRouting(Connection connection, RouteNode rnode) {
assert(rnodes.size() > 1);

// Check if alternate source exists (without creating one if it doesn't)
if (connection.getNetWrapper().getNet().getAlternateSource() != null) {
if (connection.getNet().getAlternateSource() != null) {
Pair<SitePinInst,RouteNode> altSourceAndRnode = connection.getOrCreateAlternateSource(routingGraph);
assert(altSourceAndRnode != null);
RouteNode altSourceRnode = altSourceAndRnode.getSecond();
Expand Down
6 changes: 3 additions & 3 deletions src/com/xilinx/rapidwright/rwroute/RWRoute.java
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ protected void determineRoutingTargets() {
continue;
}
Net preservedNet = routingGraph.getPreservedNet(uphill);
if (preservedNet != null && preservedNet != connection.getNetWrapper().getNet()) {
if (preservedNet != null && preservedNet != connection.getNet()) {
continue;
}
assert((sinkRnode.getIntentCode() == IntentCode.NODE_CLE_CTRL &&
Expand Down Expand Up @@ -1443,7 +1443,7 @@ private void addNodesDelays(NetWrapper net) {
protected void ripUp(Connection connection) {
List<RouteNode> rnodes = connection.getRnodes();
if (rnodes.isEmpty()) {
assert(!connection.getSink().isRouted());
assert(!connection.isRouted());
return;
}

Expand Down Expand Up @@ -1474,7 +1474,7 @@ protected void ripUp(Connection connection) {
private void updateUsersAndPresentCongestionCost(Connection connection) {
List<RouteNode> rnodes = connection.getRnodes();
if (rnodes.isEmpty()) {
assert(!connection.getSink().isRouted());
assert(!connection.isRouted());
return;
}

Expand Down

0 comments on commit 1ebc503

Please sign in to comment.