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
1 changed files with 2 additions and 1 deletions

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) {