From 39678df276cad5b1e5574dc0a01d575ccf5915cf Mon Sep 17 00:00:00 2001 From: Arthur Koucher Date: Fri, 3 Nov 2023 11:22:06 -0300 Subject: [PATCH] mpl2: add comment for macro_blockage_penalt calc Signed-off-by: Arthur Koucher --- src/mpl2/src/SACoreSoftMacro.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mpl2/src/SACoreSoftMacro.cpp b/src/mpl2/src/SACoreSoftMacro.cpp index f64405e9217..18213bb88d6 100644 --- a/src/mpl2/src/SACoreSoftMacro.cpp +++ b/src/mpl2/src/SACoreSoftMacro.cpp @@ -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(); }