Skip to content

Commit a1bd6d7

Browse files
committed
print place cost before and after move
1 parent fdb089c commit a1bd6d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vpr/src/place/place.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,8 @@ static e_move_result try_swap(const t_annealing_state* state,
14971497
}
14981498
LOG_MOVE_STATS_PROPOSED(t, blocks_affected);
14991499

1500+
VTR_LOGV_DEBUG(g_vpr_ctx.placement().f_placer_debug, "\t\tBefore move Place cost %f, bb_cost %f, timing cost %f\n", costs->cost, costs->bb_cost, costs->timing_cost);
1501+
15001502
e_move_result move_outcome = e_move_result::ABORTED;
15011503

15021504
if (create_move_outcome == e_create_move::ABORT) {
@@ -1740,7 +1742,7 @@ static e_move_result try_swap(const t_annealing_state* state,
17401742
// greatly slow the placer, but can debug some issues.
17411743
check_place(*costs, delay_model, criticalities, place_algorithm, noc_opts);
17421744
#endif
1743-
VTR_LOGV_DEBUG(g_vpr_ctx.placement().f_placer_debug, "\t\tPlace cost %f, bb_cost %f, timing cost %f\n", costs->cost, costs->bb_cost, costs->timing_cost);
1745+
VTR_LOGV_DEBUG(g_vpr_ctx.placement().f_placer_debug, "\t\tAfter move Place cost %f, bb_cost %f, timing cost %f\n", costs->cost, costs->bb_cost, costs->timing_cost);
17441746
return move_outcome;
17451747
}
17461748

0 commit comments

Comments
 (0)