@@ -23,7 +23,7 @@ static int check_macro_can_be_placed(t_pl_macro pl_macro, int itype, t_pl_loc he
2323static int try_place_macro (int itype, int ipos, int isub_tile, t_pl_macro pl_macro);
2424static void initial_placement_pl_macros (int macros_max_num_tries, std::vector<std::vector<int >>& free_locations);
2525
26- static void initial_placement_blocks (std::vector<std::vector<int >>& free_locations, std::string pad_loc_type);
26+ static void initial_placement_blocks (std::vector<std::vector<int >>& free_locations, enum e_pad_loc_type pad_loc_type);
2727
2828static t_physical_tile_type_ptr pick_placement_type (t_logical_block_type_ptr logical_block,
2929 int num_needed_types,
@@ -296,7 +296,7 @@ static void initial_placement_pl_macros(int macros_max_num_tries, std::vector<st
296296
297297/* Place blocks that are NOT a part of any macro.
298298 * We'll randomly place each block in the clustered netlist, one by one. */
299- static void initial_placement_blocks (std::vector<std::vector<int >>& free_locations, std::string pad_loc_type) {
299+ static void initial_placement_blocks (std::vector<std::vector<int >>& free_locations, enum e_pad_loc_type pad_loc_type) {
300300 auto & cluster_ctx = g_vpr_ctx.clustering ();
301301 auto & device_ctx = g_vpr_ctx.device ();
302302 auto & place_ctx = g_vpr_ctx.mutable_placement ();
@@ -368,7 +368,7 @@ static void initial_placement_blocks(std::vector<std::vector<int>>& free_locatio
368368 place_ctx.block_locs [blk_id].loc = to;
369369
370370 // Mark IOs as fixed if specifying a (fixed) random placement
371- if (is_io_type (pick_best_physical_type (logical_block)) && pad_loc_type == " random " ) {
371+ if (is_io_type (pick_best_physical_type (logical_block)) && pad_loc_type == RANDOM ) {
372372 place_ctx.block_locs [blk_id].is_fixed = true ;
373373 }
374374
@@ -396,7 +396,7 @@ static t_physical_tile_type_ptr pick_placement_type(t_logical_block_type_ptr log
396396 return nullptr ;
397397}
398398
399- void initial_placement (std::string pad_loc_type, const char * constraints_file) {
399+ void initial_placement (enum e_pad_loc_type pad_loc_type, const char * constraints_file) {
400400 vtr::ScopedStartFinishTimer timer (" Initial Placement" );
401401
402402 /* Randomly places the blocks to create an initial placement. We rely on
0 commit comments