1
0
mirror of synced 2026-05-12 18:14:11 +00:00

flatten: skip $input_port cells in template module

This commit is contained in:
Emil J. Tywoniak
2026-03-17 16:11:32 +01:00
parent 6f0ba0060e
commit e7bffe1d75

View File

@@ -178,6 +178,8 @@ struct FlattenWorker
}
for (auto tpl_cell : tpl->cells()) {
if (tpl_cell->type == ID($input_port))
continue;
RTLIL::Cell *new_cell = module->addCell(map_name(cell, tpl_cell, separator), tpl_cell);
map_attributes(cell, new_cell, tpl_cell->name);
if (new_cell->has_memid()) {