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

Support cell_footprint as indicator of stdcell

This commit is contained in:
Akash Levy 2026-06-04 00:40:38 -07:00
parent 3cfe3ead82
commit 28455c01e4

View file

@ -295,7 +295,8 @@ struct L2JFrontend : public Frontend {
bool is_memory = false, is_stdcell = true;
bool dont_touch = value_as_boolean(cell, "dont_touch", false);
bool dont_use = value_as_boolean(cell, "dont_use", false);
if (dont_touch || dont_use) {
bool has_cell_footprint = cell.count("cell_footprint") != 0;
if ((dont_touch || dont_use) && !has_cell_footprint) {
is_stdcell = false;
}
for_each_group(cell, [&](const json &g) {