pass jny: ensured the cell collection is cleared between modules

This commit is contained in:
Aki Van Ness 2022-03-10 11:05:04 -05:00 committed by N. Engelhardt
parent 5a016713cc
commit 6053856f91
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ struct JnyWriter
// it'll have to do for now,
void coalesce_cells(Module* mod)
{
_cells.clear();
for (auto cell : mod->cells()) {
const auto cell_type = escape_string(RTLIL::unescape_id(cell->type));