Skip to content

Commit bbffacf

Browse files
committed
vpr: Fix get_rr_cong_cost() for non-configurable node sets
Previously it would double count the specified inode, and not count the other nodes in the non-configurably connected node set.
1 parent edc0d17 commit bbffacf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/route/route_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ float get_rr_cong_cost(int inode) {
730730
auto itr = device_ctx.rr_node_to_non_config_node_set.find(inode);
731731
if (itr != device_ctx.rr_node_to_non_config_node_set.end()) {
732732
for (int node : device_ctx.rr_non_config_node_sets[itr->second]) {
733-
if (node != inode) {
733+
if (node == inode) {
734734
continue; //Already included above
735735
}
736736

0 commit comments

Comments
 (0)