@@ -1394,13 +1394,14 @@ void HierRTLMP::placeChildren(Cluster* parent)
13941394 io_clusters.push_back (cluster.get ());
13951395 continue ;
13961396 }
1397- // for other clusters
1397+
13981398 soft_macro_id_map[cluster->getName ()] = macros.size ();
13991399 auto soft_macro = std::make_unique<SoftMacro>(cluster.get ());
1400- clustering_engine_-> updateInstancesAssociation (
1401- cluster.get ()); // we need this step to calculate nets
1400+ // Needed for computing the nets.
1401+ clustering_engine_-> updateInstancesAssociation ( cluster.get ());
14021402 macros.push_back (*soft_macro);
14031403 cluster->setSoftMacro (std::move (soft_macro));
1404+
14041405 // merge fences and guides for hard macros within cluster
14051406 if (cluster->getClusterType () == StdCellCluster) {
14061407 continue ;
@@ -1440,7 +1441,7 @@ void HierRTLMP::placeChildren(Cluster* parent)
14401441 graphics_->setFences (fences);
14411442 }
14421443
1443- const int num_of_macros_to_place = static_cast <int >(macros.size ());
1444+ const int number_of_sequence_pair_macros = static_cast <int >(macros.size ());
14441445
14451446 for (Cluster* io_cluster : io_clusters) {
14461447 soft_macro_id_map[io_cluster->getName ()] = macros.size ();
@@ -1630,7 +1631,7 @@ void HierRTLMP::placeChildren(Cluster* parent)
16301631 graphics_.get (),
16311632 logger_,
16321633 block_);
1633- sa->setNumberOfMacrosToPlace (num_of_macros_to_place );
1634+ sa->setNumberOfSequencePairMacros (number_of_sequence_pair_macros );
16341635 sa->setCentralizationAttemptOn (true );
16351636 sa->setFences (fences);
16361637 sa->setGuides (guides);
@@ -1842,7 +1843,7 @@ void HierRTLMP::placeChildrenUsingMinimumTargetUtil(Cluster* parent)
18421843 graphics_->setFences (fences);
18431844 }
18441845
1845- const int macros_to_place = static_cast <int >(macros.size ());
1846+ const int number_of_sequence_pair_macros = static_cast <int >(macros.size ());
18461847
18471848 for (Cluster* io_cluster : io_clusters) {
18481849 soft_macro_id_map[io_cluster->getName ()] = macros.size ();
@@ -2018,7 +2019,7 @@ void HierRTLMP::placeChildrenUsingMinimumTargetUtil(Cluster* parent)
20182019 graphics_.get (),
20192020 logger_,
20202021 block_);
2021- sa->setNumberOfMacrosToPlace (macros_to_place );
2022+ sa->setNumberOfSequencePairMacros (number_of_sequence_pair_macros );
20222023 sa->setCentralizationAttemptOn (true );
20232024 sa->setFences (fences);
20242025 sa->setGuides (guides);
@@ -2479,15 +2480,18 @@ void HierRTLMP::placeMacros(Cluster* cluster)
24792480 exchange_swap_prob = exchange_swap_prob / action_sum;
24802481 float flip_prob = flip_prob_ / action_sum;
24812482
2482- const int macros_to_place = static_cast <int >(hard_macros.size ());
2483+ const int number_of_sequence_pair_macros
2484+ = static_cast <int >(hard_macros.size ());
24832485
2484- int num_perturb_per_step = (macros_to_place > num_perturb_per_step_ / 10 )
2485- ? macros_to_place
2486- : num_perturb_per_step_ / 10 ;
2486+ int num_perturb_per_step
2487+ = (number_of_sequence_pair_macros > num_perturb_per_step_ / 10 )
2488+ ? number_of_sequence_pair_macros
2489+ : num_perturb_per_step_ / 10 ;
24872490
24882491 SequencePair initial_seq_pair;
24892492 if (cluster->isArrayOfInterconnectedMacros ()) {
2490- setArrayTilingSequencePair (cluster, macros_to_place, initial_seq_pair);
2493+ setArrayTilingSequencePair (
2494+ cluster, number_of_sequence_pair_macros, initial_seq_pair);
24912495
24922496 pos_swap_prob = 0 .0f ;
24932497 neg_swap_prob = 0 .0f ;
@@ -2496,7 +2500,7 @@ void HierRTLMP::placeMacros(Cluster* cluster)
24962500 flip_prob = 0.05 ;
24972501
24982502 // Large arrays need more steps to properly converge.
2499- if (num_perturb_per_step > macros_to_place ) {
2503+ if (num_perturb_per_step > number_of_sequence_pair_macros ) {
25002504 num_perturb_per_step *= 2 ;
25012505 }
25022506 }
@@ -2539,7 +2543,7 @@ void HierRTLMP::placeMacros(Cluster* cluster)
25392543 graphics_.get (),
25402544 logger_,
25412545 block_);
2542- sa->setNumberOfMacrosToPlace (macros_to_place );
2546+ sa->setNumberOfSequencePairMacros (number_of_sequence_pair_macros );
25432547 sa->setNets (nets);
25442548 sa->setFences (fences);
25452549 sa->setGuides (guides);
0 commit comments