@@ -22,7 +22,9 @@ Placer::Placer(const Netlist<>& net_list,
2222 const t_noc_opts& noc_opts,
2323 const std::vector<t_direct_inf>& directs,
2424 std::shared_ptr<PlaceDelayModel> place_delay_model,
25- bool cube_bb)
25+ bool cube_bb,
26+ bool is_flat,
27+ bool quiet)
2628 : placer_opts_(placer_opts)
2729 , analysis_opts_(analysis_opts)
2830 , noc_opts_(noc_opts)
@@ -31,7 +33,8 @@ Placer::Placer(const Netlist<>& net_list,
3133 , rng_(placer_opts.seed)
3234 , net_cost_handler_(placer_opts, placer_state_, cube_bb)
3335 , place_delay_model_(std::move(place_delay_model))
34- , log_printer_(*this , /* quiet*/ false ) {
36+ , log_printer_(*this , quiet)
37+ , is_flat_(is_flat) {
3538 const auto & cluster_ctx = g_vpr_ctx.clustering ();
3639 const auto & device_ctx = g_vpr_ctx.device ();
3740 const auto & atom_ctx = g_vpr_ctx.atom ();
@@ -61,7 +64,6 @@ Placer::Placer(const Netlist<>& net_list,
6164 normalize_noc_cost_weighting_factor (const_cast <t_noc_opts&>(noc_opts));
6265 }
6366
64-
6567 BlkLocRegistry& blk_loc_registry = placer_state_.mutable_blk_loc_registry ();
6668 initial_placement (placer_opts, placer_opts.constraints_file .c_str (),
6769 noc_opts, blk_loc_registry, noc_cost_handler_, rng_);
@@ -151,7 +153,7 @@ void Placer::alloc_and_init_timing_objects_(const Netlist<>& net_list,
151153 placement_delay_calc_ = std::make_shared<PlacementDelayCalculator>(atom_ctx.nlist ,
152154 atom_ctx.lookup ,
153155 p_timing_ctx.connection_delay ,
154- /* is_flat= */ false );
156+ is_flat_ );
155157 placement_delay_calc_->set_tsu_margin_relative (placer_opts_.tsu_rel_margin );
156158 placement_delay_calc_->set_tsu_margin_absolute (placer_opts_.tsu_abs_margin );
157159
@@ -167,7 +169,7 @@ void Placer::alloc_and_init_timing_objects_(const Netlist<>& net_list,
167169 atom_ctx.nlist ,
168170 atom_ctx.lookup ,
169171 *timing_info_->timing_graph (),
170- /* is_flat= */ false );
172+ is_flat_ );
171173
172174 // First time compute timing and costs, compute from scratch
173175 PlaceCritParams crit_params;
0 commit comments