3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-08-08 07:03:11 +00:00

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 326d4632fc
commit a05730bc09

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;