mpl: MPL-0045 on a flat cluster of one macro and a few thousand std cells
I maintainer di solito rispondono entro 1 giorno
@AcKoucher ci sta già lavorando.
Dal 19/10/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 54/100
Direzione di ricerca
Start with src/mpl/src/clusterEngine.cpp, especially ClusteringEngine::breakLargeFlatCluster, and reproduce with the supplied macro_place_mpl0045.tar.gz using echo exit | ./run-me.sh. The report describes a specific failure and offers a retry weighted by instance count, but says that approach may not be right; compare it with the suggested alternatives and check whether the change preserves partitioning behavior. Done when this case no longer fails on MPL-0045 and cases that cannot split still report the error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
rtl_macro_placer stops on MPL-0045 when breakLargeFlatCluster meets a flat cluster of one macro and a few thousand std cells: weighted by area, no balance constraint up to its limit splits it.
Download macro_place_mpl0045.tar.gz, then untar and run (openroad on PATH; reproduced with bfac0546a502f30db57e92d801f1eecea86e38ab, and src/mpl's clusterEngine.cpp is unchanged at 3cc34a657d42b68f18fffb26235e9598e33f7899):
tar xf macro_place_mpl0045.tar.gz
cd macro_place_mpl0045
echo exit | ./run-me.sh
Reproduces in about 2 min. You'll see:
[ERROR MPL-0045] Cannot find a balanced partitioning for the clusters.
The design is asap7, four hardened blocks of 39 000 um2 each and 8 704 std cells of the top module on a 1.2 mm die, with the ports constrained to stretches of the die's edges. With set_debug_level MPL multilevel_autoclustering 1 the root is one flat cluster, (root)_glue_logic, 4 macros and 8 704 std cells, split three times down to (root)_glue_logic_0_0_0: 1 macro and 5 276 std cells. TritonPart gets vertex weights of area, so the macro outweighs everything else in the cluster about nine to one, and every attempt, balance 1 to 81, puts all vertices in one part; at 91 the loop stops on MPL-0045.
One way to fix it, carried in bazel-orfs and not sure it is the right one: before giving up, retry once from the default balance with every instance weighted 1, so the macro goes with the part it is most connected to (MPL-0082 says when); MPL-0045 stays for a cluster that splits by neither. It only changes runs that stopped on MPL-0045. Alternatives: split the macros off the std cells directly, or do not break a flat cluster whose size is mostly one macro.
diff --git a/src/mpl/src/clusterEngine.cpp b/src/mpl/src/clusterEngine.cpp
index 26b9e980f8..4a23662697 100644
--- a/src/mpl/src/clusterEngine.cpp
+++ b/src/mpl/src/clusterEngine.cpp
@@ -1192,6 +1192,7 @@ void ClusteringEngine::breakLargeFlatCluster(Cluster* parent)
// the constraint until we find a reasonable split.
constexpr float balance_constraint_relaxation_factor = 10.0f;
std::vector<int> solution;
+ bool by_count = false;
do {
debugPrint(
logger_,
@@ -1203,8 +1204,24 @@ void ClusteringEngine::breakLargeFlatCluster(Cluster* parent)
balance_constraint);
if (balance_constraint >= 90) {
- logger_->error(
- MPL, 45, "Cannot find a balanced partitioning for the clusters.");
+ if (by_count) {
+ logger_->error(
+ MPL, 45, "Cannot find a balanced partitioning for the clusters.");
+ }
+ // One vertex can outweigh the rest of its cluster by area, a macro
+ // among a few thousand std cells, and then no balance short of
+ // giving up splits the cluster. Split it by instance count instead:
+ // the macro goes with the part it is most connected to.
+ logger_->info(MPL,
+ 82,
+ "Cluster {} cannot be split by area; split by instance "
+ "count.",
+ parent->getName());
+ std::fill(vertex_weight.begin() + num_other_cluster_vertices,
+ vertex_weight.end(),
+ 1.0f);
+ by_count = true;
+ balance_constraint = default_balance_constraint;
}
solution = triton_part_->PartitionKWaySimpleMode(num_parts,
This comes from a synthetic test parent (The-OpenROAD-Project/bazel-orfs#1294, test/pin_traps); no real design is known to hit it yet.
- Lingua principale
- Verilog
- Stelle
- 3.4k
- Fork
- 1.1k
- Merge medio
- 3g 11h
- PR unite (30g)
- 245
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di The-OpenROAD-Project/OpenROAD
-
odb LEF58_MINIMUMCUT: per-cut-class form never sets isPerCutClass, so drt silently drops the ruleForse già presa @LucasYuki l’ha presa 26 giorni fa. Apertabug drt odb
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
The-OpenROAD-Project/OpenROAD#12176 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
drt: LEF58_SPACING ENDOFLINE MINLENGTH l TWOSIDES is checked one-sided (io passes the TWOEDGES flag as TWOSIDES)Forse già presa @osamahammad21 l’ha presa 26 giorni fa. Apertabug drt
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
The-OpenROAD-Project/OpenROAD#12173 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
cleanup-opportunity: BUILD files never refer to mockturtle in third-partty/Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertabazel enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
The-OpenROAD-Project/OpenROAD#12160 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
odb: Bazel build fails on linux/aarch64 — char fc compared to EOF in def/lef lexersForse già presa @shivarammysore l’ha presa 32 giorni fa. Apertabazel bug odb
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
The-OpenROAD-Project/OpenROAD#12095 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
syn: acd_resynth -apply segfaults on a database resynthesized in an earlier processForse di nuovo libera @povik l’ha presa 31 giorni fa e non c’è nessuna pull request aperta. Apertabug syn
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
The-OpenROAD-Project/OpenROAD#12046 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di The-OpenROAD-Project/OpenROAD
Issue simili
-
v3
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
pluginkollektiv/antispam-bee#952 ·
I maintainer di solito rispondono entro 1 giorno
-
area: middleware enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
config: reject Proxy-Authorization and Proxy-Authenticate in server headersForse già presa @haseemajaz l’ha presa oggi. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
rohitgollarahalli/mcpx#38 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: API good first issue size/xs
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
DahanItamar/DockNest#354 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100