From a1bd6d7af13a2b50edfc2b038c125ed889635ea0 Mon Sep 17 00:00:00 2001 From: amin1377 Date: Fri, 22 Sep 2023 19:10:04 -0400 Subject: [PATCH] print place cost before and after move --- vpr/src/place/place.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vpr/src/place/place.cpp b/vpr/src/place/place.cpp index ff9f803738e..52e4e5e6ff1 100644 --- a/vpr/src/place/place.cpp +++ b/vpr/src/place/place.cpp @@ -1497,6 +1497,8 @@ static e_move_result try_swap(const t_annealing_state* state, } LOG_MOVE_STATS_PROPOSED(t, blocks_affected); + 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); + e_move_result move_outcome = e_move_result::ABORTED; if (create_move_outcome == e_create_move::ABORT) { @@ -1740,7 +1742,7 @@ static e_move_result try_swap(const t_annealing_state* state, // greatly slow the placer, but can debug some issues. check_place(*costs, delay_model, criticalities, place_algorithm, noc_opts); #endif - 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); + 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); return move_outcome; }