Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 585bd4f

Browse files
committedOct 7, 2024·
[core] fixed a bug where sink node cannot be mirror
1 parent 9ddf4ca commit 585bd4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎libs/librrgraph/src/base/rr_spatial_lookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void RRSpatialLookup::mirror_nodes(const int layer,
316316
const vtr::Point<int>& des_coord,
317317
t_rr_type type,
318318
e_side side) {
319-
VTR_ASSERT(SOURCE == type);
319+
VTR_ASSERT(SOURCE == type || SINK == type);
320320
resize_nodes(layer, des_coord.x(), des_coord.y(), type, side);
321321
rr_node_indices_[type][layer][des_coord.x()][des_coord.y()][side] = rr_node_indices_[type][layer][src_coord.x()][src_coord.y()][side];
322322
}

0 commit comments

Comments
 (0)
Please sign in to comment.