Skip to content

Commit

Permalink
mpl2: add comment for macro_blockage_penalt calc
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Koucher <arthurckoucher@gmail.com>
  • Loading branch information
AcKoucher committed Nov 3, 2023
1 parent 4d4ae80 commit 39678df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mpl2/src/SACoreSoftMacro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,9 @@ void SACoreSoftMacro::calMacroBlockagePenalty()
continue;
}

// As there can be situations in which we cannot guarantee that there
// will be no overlap, we consider the number of macros in the cluster
// to prioritize clusters with more macros.
macro_blockage_penalty_
+= overlap_width * overlap_height * soft_macro.getNumMacro();
}
Expand Down

0 comments on commit 39678df

Please sign in to comment.