Skip to content

Commit 11ee10f

Browse files
committed
[vpr][place] initialize other entried of acc_tile_num_inter_die_conn
1 parent 0432740 commit 11ee10f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vpr/src/place/net_cost_handler.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,14 @@ void NetCostHandler::alloc_and_load_for_fast_vertical_cost_update_(float place_c
283283
acc_tile_num_inter_die_conn[0][y] = acc_tile_num_inter_die_conn[0][y-1] + \
284284
tile_num_inter_die_conn[0][y];
285285
}
286+
287+
for (size_t x_high = 1; x_high < device_ctx.grid.width(); x_high++) {
288+
for (size_t y_high = 1; y_high < device_ctx.grid.height(); y_high++) {
289+
acc_tile_num_inter_die_conn[x_high][y_high] = acc_tile_num_inter_die_conn[x_high-1][y_high] + \
290+
acc_tile_num_inter_die_conn[x_high][y_high-1] - \
291+
acc_tile_num_inter_die_conn[x_high][y_high];
292+
}
293+
}
286294

287295
for (size_t x_high = 1; x_high < device_ctx.grid.width(); x_high++) {
288296
for (size_t y_high = 1; y_high < device_ctx.grid.height(); y_high++) {

0 commit comments

Comments
 (0)