mirror of
https://github.com/YosysHQ/yosys
synced 2026-08-14 01:46:40 +00:00
dfflibmap: picking first instead of last cell with smallest area
In a standard cell library cells are usually ordered from weakest to strongest. Sometimes the two weakest cells have the same area. Previously the stroner (last) of the two was selected, now the weaker (first is selected).
This commit is contained in:
parent
ce3c7f738f
commit
d8a26032f8
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ void find_better_cell(const LibertyAst *cell, const LibertyAst &storage, bool da
|
|||
if (!found_output || (best != nullptr && (num_pins > best_pins || (best_noninv && !found_noninv_output))))
|
||||
return;
|
||||
|
||||
if (best != nullptr && num_pins == best_pins && area > best_area)
|
||||
if (best != nullptr && num_pins == best_pins && area >= best_area)
|
||||
return;
|
||||
|
||||
best = cell;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue