3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-24 21:27:00 +00:00

cost: add model for techmapped cell count, keep_hierarchy pass with -min_cost parameter

This commit is contained in:
Emil J. Tywoniak 2024-07-29 10:26:02 +02:00
parent 960bca0196
commit 4b29f64142
7 changed files with 383 additions and 64 deletions

View file

@ -230,8 +230,6 @@ struct statdata_t
if (gate_costs.count(ctype))
tran_cnt += cnum * gate_costs.at(ctype);
else if (ctype.in(ID($_DFF_P_), ID($_DFF_N_)))
tran_cnt += cnum * 16;
else
*tran_cnt_exact = false;
}