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:
parent
326d4632fc
commit
a05730bc09
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue