@@ -938,9 +938,9 @@ void try_place(const Netlist<>& net_list,
938
938
939
939
// allocate move type statistics vectors
940
940
MoveTypeStat move_type_stat;
941
- move_type_stat.blk_type_moves .resize (device_ctx.logical_block_types .size () * placer_opts. place_static_move_prob . size () , 0 );
942
- move_type_stat.accepted_moves .resize (device_ctx.logical_block_types .size () * placer_opts. place_static_move_prob . size () , 0 );
943
- move_type_stat.rejected_moves .resize (device_ctx.logical_block_types .size () * placer_opts. place_static_move_prob . size () , 0 );
941
+ move_type_stat.blk_type_moves .resize (device_ctx.logical_block_types .size () * ( int )e_move_type::NUMBER_OF_AUTO_MOVES , 0 );
942
+ move_type_stat.accepted_moves .resize (device_ctx.logical_block_types .size () * ( int )e_move_type::NUMBER_OF_AUTO_MOVES , 0 );
943
+ move_type_stat.rejected_moves .resize (device_ctx.logical_block_types .size () * ( int )e_move_type::NUMBER_OF_AUTO_MOVES , 0 );
944
944
945
945
/* Get the first range limiter */
946
946
first_rlim = (float )max (device_ctx.grid .width () - 1 ,
@@ -1067,7 +1067,7 @@ void try_place(const Netlist<>& net_list,
1067
1067
// #endif
1068
1068
} while (state.outer_loop_update (stats.success_rate , costs, placer_opts,
1069
1069
annealing_sched));
1070
- /* Outer loop of the simmulated annealing ends */
1070
+ /* Outer loop of the simulated annealing ends */
1071
1071
} // skip_anneal ends
1072
1072
1073
1073
/* Start Quench */
@@ -1085,7 +1085,7 @@ void try_place(const Netlist<>& net_list,
1085
1085
placer_setup_slacks.get (), pin_timing_invalidator.get (),
1086
1086
timing_info.get ());
1087
1087
1088
- // move the appropoiate move_generator to be the current used move generator
1088
+ // move the appropriate move_generator to be the current used move generator
1089
1089
assign_current_move_generator (move_generator, move_generator2,
1090
1090
agent_state, placer_opts, true , current_move_generator);
1091
1091
@@ -1726,7 +1726,7 @@ static e_move_result try_swap(const t_annealing_state* state,
1726
1726
}
1727
1727
1728
1728
if (proposed_action.logical_blk_type_index != -1 ) { // if the agent proposed the block type, then collect the block type stat
1729
- ++move_type_stat.blk_type_moves [(proposed_action.logical_blk_type_index * (placer_opts. place_static_move_prob . size ()) ) + (int )proposed_action.move_type ];
1729
+ ++move_type_stat.blk_type_moves [(proposed_action.logical_blk_type_index * (int )e_move_type::NUMBER_OF_AUTO_MOVES ) + (int )proposed_action.move_type ];
1730
1730
}
1731
1731
LOG_MOVE_STATS_PROPOSED (t, blocks_affected);
1732
1732
@@ -1877,7 +1877,7 @@ static e_move_result try_swap(const t_annealing_state* state,
1877
1877
commit_move_blocks (blocks_affected);
1878
1878
1879
1879
if (proposed_action.logical_blk_type_index != -1 ) { // if the agent proposed the block type, then collect the block type stat
1880
- ++move_type_stat.accepted_moves [(proposed_action.logical_blk_type_index * (placer_opts. place_static_move_prob . size ()) ) + (int )proposed_action.move_type ];
1880
+ ++move_type_stat.accepted_moves [(proposed_action.logical_blk_type_index * (int )e_move_type::NUMBER_OF_AUTO_MOVES ) + (int )proposed_action.move_type ];
1881
1881
}
1882
1882
if (noc_opts.noc ) {
1883
1883
commit_noc_costs ();
@@ -1928,7 +1928,7 @@ static e_move_result try_swap(const t_annealing_state* state,
1928
1928
}
1929
1929
1930
1930
if (proposed_action.logical_blk_type_index != -1 ) { // if the agent proposed the block type, then collect the block type stat
1931
- ++move_type_stat.rejected_moves [(proposed_action.logical_blk_type_index * (placer_opts. place_static_move_prob . size ()) ) + (int )proposed_action.move_type ];
1931
+ ++move_type_stat.rejected_moves [(proposed_action.logical_blk_type_index * (int )e_move_type::NUMBER_OF_AUTO_MOVES ) + (int )proposed_action.move_type ];
1932
1932
}
1933
1933
/* Revert the traffic flow routes within the NoC*/
1934
1934
if (noc_opts.noc ) {
0 commit comments