Pick first cell of smallest area.

Co-authored-by: Iztok Jeras <iztok.jeras@gmail.com>
This commit is contained in:
nella 2026-07-31 11:59:46 +02:00 committed by nella
parent 011c3fc8c3
commit e75e42c5d7
1 changed files with 1 additions and 1 deletions

View File

@ -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;