@@ -299,7 +299,6 @@ void HierRTLMP::resetSAParameters()
299299 neg_swap_prob_ = 0.2 ;
300300 double_swap_prob_ = 0.2 ;
301301 exchange_swap_prob_ = 0.2 ;
302- flip_prob_ = 0.2 ;
303302 resize_prob_ = 0.0 ;
304303
305304 placement_core_weights_.fence = 0.0 ;
@@ -723,7 +722,6 @@ void HierRTLMP::calculateMacroTilings(Cluster* cluster)
723722 neg_swap_prob_ / action_sum,
724723 double_swap_prob_ / action_sum,
725724 exchange_swap_prob_ / action_sum,
726- 0.0 , // no flip
727725 init_prob_,
728726 max_num_step_,
729727 num_perturb_per_step,
@@ -778,7 +776,6 @@ void HierRTLMP::calculateMacroTilings(Cluster* cluster)
778776 neg_swap_prob_ / action_sum,
779777 double_swap_prob_ / action_sum,
780778 exchange_swap_prob_ / action_sum,
781- 0.0 ,
782779 init_prob_,
783780 max_num_step_,
784781 num_perturb_per_step,
@@ -2452,14 +2449,12 @@ void HierRTLMP::placeMacros(Cluster* cluster)
24522449
24532450 // set the action probabilities (summation to 1.0)
24542451 const float action_sum = pos_swap_prob_ * 10 + neg_swap_prob_ * 10
2455- + double_swap_prob_ + exchange_swap_prob
2456- + flip_prob_;
2452+ + double_swap_prob_ + exchange_swap_prob;
24572453
24582454 float pos_swap_prob = pos_swap_prob_ * 10 / action_sum;
24592455 float neg_swap_prob = neg_swap_prob_ * 10 / action_sum;
24602456 float double_swap_prob = double_swap_prob_ / action_sum;
24612457 exchange_swap_prob = exchange_swap_prob / action_sum;
2462- float flip_prob = flip_prob_ / action_sum;
24632458
24642459 const int number_of_sequence_pair_macros
24652460 = static_cast <int >(hard_macros.size ());
@@ -2477,11 +2472,10 @@ void HierRTLMP::placeMacros(Cluster* cluster)
24772472 pos_swap_prob = 0 .0f ;
24782473 neg_swap_prob = 0 .0f ;
24792474 double_swap_prob = 0 .0f ;
2480- exchange_swap_prob = 0.95 ;
2481- flip_prob = 0.05 ;
2475+ exchange_swap_prob = 1 .0f ;
24822476
24832477 // Large arrays need more steps to properly converge.
2484- if (num_perturb_per_step > number_of_sequence_pair_macros ) {
2478+ if (number_of_sequence_pair_macros > num_perturb_per_step ) {
24852479 num_perturb_per_step *= 2 ;
24862480 }
24872481 }
@@ -2516,7 +2510,6 @@ void HierRTLMP::placeMacros(Cluster* cluster)
25162510 neg_swap_prob,
25172511 double_swap_prob,
25182512 exchange_swap_prob,
2519- flip_prob,
25202513 init_prob_,
25212514 max_num_step_,
25222515 num_perturb_per_step,
0 commit comments