From a05730bc09eb30c48a8b9a2d01f9f286e02f4883 Mon Sep 17 00:00:00 2001 From: nella Date: Fri, 31 Jul 2026 11:59:46 +0200 Subject: [PATCH] Pick first cell of smallest area. Co-authored-by: Iztok Jeras --- passes/techmap/dfflibmap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes/techmap/dfflibmap.cc b/passes/techmap/dfflibmap.cc index 138e488f6..5a597aa5b 100644 --- a/passes/techmap/dfflibmap.cc +++ b/passes/techmap/dfflibmap.cc @@ -333,7 +333,7 @@ static void find_better_cell(BestCell &best, const LibertyAst *cell, const Liber if (!found_output || (best.cell != nullptr && (num_pins > best.pins || (best.noninv && !found_noninv_output)))) return; - if (best.cell != nullptr && num_pins == best.pins && area > best.area) + if (best.cell != nullptr && num_pins == best.pins && area >= best.area) return; best.cell = cell;