Skip to content

Commit f4cc9a3

Browse files
authored
Merge pull request #1814 from gatecat/route-cost-assert-fix
route_common: Fix cost check assertion
2 parents 03bb293 + 1515a3b commit f4cc9a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/route/route_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ inline float get_single_rr_cong_cost(int inode, float pres_fac) {
8383
float cost = device_ctx.rr_indexed_data[cost_index].base_cost * route_ctx.rr_node_route_inf[inode].acc_cost * pres_cost;
8484

8585
VTR_ASSERT_DEBUG_MSG(
86-
cost == get_single_rr_cong_base_cost(inode) * get_single_rr_cong_base_cost(inode) * get_single_rr_cong_pres_cost(inode, pres_fac),
86+
cost == get_single_rr_cong_base_cost(inode) * get_single_rr_cong_acc_cost(inode) * get_single_rr_cong_pres_cost(inode, pres_fac),
8787
"Single rr node congestion cost is inaccurate");
8888

8989
return cost;
@@ -224,4 +224,4 @@ void push_back_node_with_info(
224224
hptr->path_data->backward_delay = backward_path_delay;
225225

226226
heap->push_back(hptr);
227-
}
227+
}

0 commit comments

Comments
 (0)