Skip to content

Commit

Permalink
mpl2: fixing comments
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Koucher <[email protected]>
  • Loading branch information
AcKoucher committed Jan 10, 2024
1 parent eae1cde commit 2313edf
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/mpl2/src/hier_rtlmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2244,15 +2244,6 @@ void HierRTLMP::fetchMixedLeaves(
mixed_leaves.push_back(sister_mixed_leaves);
}

// Break mixed leaves into standard-cell and hard-macro clusters.
// Merge macros based on connection signature and footprint.
// Based on types of designs, we support two types of breaking up:
// Suppose current cluster is A.
// 1) Replace A by A1, A2, A3
// 2) Type 2: Create a subtree:
// A -> A
// | | |
// A1 A2 A3
void HierRTLMP::breakMixedLeaves(
const std::vector<std::vector<Cluster*>>& mixed_leaves)
{
Expand All @@ -2267,6 +2258,14 @@ void HierRTLMP::breakMixedLeaves(
}
}

// Break mixed leaf into standard-cell and hard-macro clusters.
// Merge macros based on connection signature and footprint.
// Based on types of designs, we support two types of breaking up:
// 1) Replace cluster A by A1, A2, A3
// 2) Create a subtree:
// A -> A
// | | |
// A1 A2 A3
void HierRTLMP::breakMixedLeaf(Cluster* mixed_leaf)
{
Cluster* parent = mixed_leaf;
Expand Down Expand Up @@ -2294,7 +2293,7 @@ void HierRTLMP::breakMixedLeaf(Cluster* mixed_leaf)

std::vector<int> macro_class(hard_macros.size(), -1);
// Use both size and connection signature classifications to group
// single-macro macro clusters into the same cluster.
// single-macro macro clusters into the same macro cluster.
groupSingleMacroClusters(
macro_clusters, size_class, signature_class, macro_class);

Expand Down

0 comments on commit 2313edf

Please sign in to comment.