pass jny: ensured the cell collection is cleared between modules
authorAki Van Ness <aki@yosyshq.com>
Thu, 10 Mar 2022 16:05:04 +0000 (11:05 -0500)
committerN. Engelhardt <nakengelhardt@gmail.com>
Fri, 8 Apr 2022 06:05:15 +0000 (08:05 +0200)
backends/jny/jny.cc

index 1cbfaaddc098f79032a00c603b0809d38650208d..b89283a153f25d733c24ef340046b32b5c5cd50c 100644 (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));