From 4722116cde52b28ec2d4595d31911eee4333fb8d Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Wed, 13 Nov 2024 19:13:05 -0800 Subject: [PATCH] [RWRoute] RouteNode.setType() to accept anyy locals Signed-off-by: Eddie Hung --- src/com/xilinx/rapidwright/rwroute/RouteNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/xilinx/rapidwright/rwroute/RouteNode.java b/src/com/xilinx/rapidwright/rwroute/RouteNode.java index 8f8f78d12..7a345658a 100644 --- a/src/com/xilinx/rapidwright/rwroute/RouteNode.java +++ b/src/com/xilinx/rapidwright/rwroute/RouteNode.java @@ -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; }