Skip to content

Commit

Permalink
[RWRoute] RouteNode.setType() to accept any locals (#1103)
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 authored Nov 14, 2024
1 parent a3af7dc commit f330812
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 f330812

Please sign in to comment.