@@ -13,7 +13,7 @@ PlacementLogPrinter::PlacementLogPrinter(const Placer& placer)
1313 : placer_(placer) {}
1414
1515void PlacementLogPrinter::print_place_status_header () const {
16- const bool noc_enabled = placer_.noc_opts_ .noc ;
16+ const bool noc_enabled = placer_.noc_opts () .noc ;
1717
1818 VTR_LOG (" \n " );
1919 if (!noc_enabled) {
@@ -38,16 +38,18 @@ void PlacementLogPrinter::print_place_status_header() const {
3838}
3939
4040void PlacementLogPrinter::print_place_status (float elapsed_sec) const {
41- const t_annealing_state& annealing_state = placer_.annealer_ ->get_annealing_state ();
42- const auto & [swap_stats, move_type_stats, placer_stats] = placer_.annealer_ ->get_stats ();
43- const int tot_moves = placer_.annealer_ ->get_total_iteration ();
44- const bool noc_enabled = placer_.noc_opts_ .noc ;
45- const NocCostTerms& noc_cost_terms = placer_.costs_ .noc_cost_terms ;
41+ const PlacementAnnealer& annealer = placer_.annealer ();
42+ const t_annealing_state& annealing_state = annealer.get_annealing_state ();
43+ const auto & [swap_stats, move_type_stats, placer_stats] = annealer.get_stats ();
44+ const int tot_moves = annealer.get_total_iteration ();
4645
47- const bool is_timing_driven = placer_.placer_opts_ .place_algorithm .is_timing_driven ();
48- const float cpd = is_timing_driven ? placer_.critical_path_ .delay () : std::numeric_limits<float >::quiet_NaN ();
49- const float sTNS = is_timing_driven ? placer_.timing_info_ ->setup_total_negative_slack () : std::numeric_limits<float >::quiet_NaN ();
50- const float sWNS = is_timing_driven ? placer_.timing_info_ ->setup_worst_negative_slack () : std::numeric_limits<float >::quiet_NaN ();
46+ const bool noc_enabled = placer_.noc_opts ().noc ;
47+ const NocCostTerms& noc_cost_terms = placer_.costs ().noc_cost_terms ;
48+
49+ const bool is_timing_driven = placer_.placer_opts ().place_algorithm .is_timing_driven ();
50+ const float cpd = is_timing_driven ? placer_.critical_path ().delay () : std::numeric_limits<float >::quiet_NaN ();
51+ const float sTNS = is_timing_driven ? placer_.timing_info ()->setup_total_negative_slack () : std::numeric_limits<float >::quiet_NaN ();
52+ const float sWNS = is_timing_driven ? placer_.timing_info ()->setup_worst_negative_slack () : std::numeric_limits<float >::quiet_NaN ();
5153
5254 VTR_LOG (
5355 " %4zu %6.1f %7.1e "
@@ -78,7 +80,7 @@ void PlacementLogPrinter::print_place_status(float elapsed_sec) const {
7880void PlacementLogPrinter::print_resources_utilization () const {
7981 const auto & cluster_ctx = g_vpr_ctx.clustering ();
8082 const auto & device_ctx = g_vpr_ctx.device ();
81- const auto & block_locs = placer_.placer_state_ .block_locs ();
83+ const auto & block_locs = placer_.placer_state () .block_locs ();
8284
8385 size_t max_block_name = 0 ;
8486 size_t max_tile_name = 0 ;
@@ -113,8 +115,9 @@ void PlacementLogPrinter::print_resources_utilization() const {
113115}
114116
115117void PlacementLogPrinter::print_placement_swaps_stats () const {
116- const auto & [swap_stats, move_type_stats, placer_stats] = placer_.annealer_ ->get_stats ();
117- const t_annealing_state& annealing_state = placer_.annealer_ ->get_annealing_state ();
118+ const PlacementAnnealer& annealer = placer_.annealer ();
119+ const auto & [swap_stats, move_type_stats, placer_stats] = annealer.get_stats ();
120+ const t_annealing_state& annealing_state = annealer.get_annealing_state ();
118121
119122 size_t total_swap_attempts = swap_stats.num_swap_rejected + swap_stats.num_swap_accepted + swap_stats.num_swap_aborted ;
120123 VTR_ASSERT (total_swap_attempts > 0 );
0 commit comments