@@ -332,8 +332,6 @@ static void print_resources_utilization(const BlkLocRegistry& blk_loc_registry);
332
332
333
333
static void print_placement_swaps_stats (const t_annealing_state& state, const t_swap_stats& swap_stats);
334
334
335
- static void print_placement_move_types_stats (const MoveTypeStat& move_type_stat);
336
-
337
335
/* *
338
336
* @brief Copies the placement location variables into the global placement context.
339
337
* @param blk_loc_registry The placement location variables to be copied.
@@ -953,7 +951,7 @@ void try_place(const Netlist<>& net_list,
953
951
954
952
print_placement_swaps_stats (state, swap_stats);
955
953
956
- print_placement_move_types_stats (move_type_stat );
954
+ move_type_stat. print_placement_move_types_stats ();
957
955
958
956
if (noc_opts.noc ) {
959
957
write_noc_placement_file (noc_opts.noc_placement_file_name , blk_loc_registry.block_locs ());
@@ -2271,58 +2269,6 @@ static void print_placement_swaps_stats(const t_annealing_state& state, const t_
2271
2269
swap_stats.num_swap_aborted , 100 * abort_rate);
2272
2270
}
2273
2271
2274
- static void print_placement_move_types_stats (const MoveTypeStat& move_type_stat) {
2275
- VTR_LOG (" \n\n Placement perturbation distribution by block and move type: \n " );
2276
-
2277
- VTR_LOG (
2278
- " ------------------ ----------------- ---------------- ---------------- --------------- ------------ \n " );
2279
- VTR_LOG (
2280
- " Block Type Move Type (%%) of Total Accepted(%%) Rejected(%%) Aborted(%%)\n " );
2281
- VTR_LOG (
2282
- " ------------------ ----------------- ---------------- ---------------- --------------- ------------ \n " );
2283
-
2284
- int total_moves = 0 ;
2285
- for (size_t i = 0 ; i < move_type_stat.blk_type_moves .size (); ++i) {
2286
- total_moves += move_type_stat.blk_type_moves .get (i);
2287
- }
2288
-
2289
- auto & device_ctx = g_vpr_ctx.device ();
2290
- int count = 0 ;
2291
- int num_of_avail_moves = move_type_stat.blk_type_moves .size () / device_ctx.logical_block_types .size ();
2292
-
2293
- // Print placement information for each block type
2294
- for (const auto & itype : device_ctx.logical_block_types ) {
2295
- // Skip non-existing block types in the netlist
2296
- if (itype.index == 0 || movable_blocks_per_type (itype).empty ()) {
2297
- continue ;
2298
- }
2299
-
2300
- count = 0 ;
2301
- for (int imove = 0 ; imove < num_of_avail_moves; imove++) {
2302
- const auto & move_name = move_type_to_string (e_move_type (imove));
2303
- int moves = move_type_stat.blk_type_moves [itype.index ][imove];
2304
- if (moves != 0 ) {
2305
- int accepted = move_type_stat.accepted_moves [itype.index ][imove];
2306
- int rejected = move_type_stat.rejected_moves [itype.index ][imove];
2307
- int aborted = moves - (accepted + rejected);
2308
- if (count == 0 ) {
2309
- VTR_LOG (" %-18.20s" , itype.name );
2310
- } else {
2311
- VTR_LOG (" " );
2312
- }
2313
- VTR_LOG (
2314
- " %-22.20s %-16.2f %-15.2f %-14.2f %-13.2f\n " ,
2315
- move_name.c_str (), 100 .0f * (float )moves / (float )total_moves,
2316
- 100 .0f * (float )accepted / (float )moves, 100 .0f * (float )rejected / (float )moves,
2317
- 100 .0f * (float )aborted / (float )moves);
2318
- }
2319
- count++;
2320
- }
2321
- VTR_LOG (" \n " );
2322
- }
2323
- VTR_LOG (" \n " );
2324
- }
2325
-
2326
2272
static void copy_locs_to_global_state (const BlkLocRegistry& blk_loc_registry) {
2327
2273
auto & place_ctx = g_vpr_ctx.mutable_placement ();
2328
2274
0 commit comments