Skip to content

Commit

Permalink
[RWRoute] RouteNode.setType() to accept anyy locals
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 a3af7dc commit 4722116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/xilinx/rapidwright/rwroute/RouteNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,10 @@ public RouteNodeType getType() {
public void setType(RouteNodeType type) {
assert(this.type == type ||
// Support demotion from EXCLUSIVE_SINK to LOCAL since they have the same base cost
(this.type.isExclusiveSink() && type == RouteNodeType.LOCAL) ||
(this.type.isExclusiveSink() && type.isLocal()) ||
// Or promotion from LOCAL to EXCLUSIVE_SINK (by PartialRouter when NODE_PINBOUNCE on
// a newly unpreserved net becomes a sink)
(this.type == RouteNodeType.LOCAL && type.isExclusiveSink()));
(this.type.isLocal() && type.isExclusiveSink()));
this.type = type;
}

Expand Down

0 comments on commit 4722116

Please sign in to comment.