aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAki Van Ness <aki@yosyshq.com>2022-03-10 11:05:04 -0500
committerN. Engelhardt <nakengelhardt@gmail.com>2022-04-08 08:05:15 +0200
commit6053856f9130dd864b4f38c8b71f13f5e2ca7f6b (patch)
treea329c61f14709136dbfaffd2e5a44c09fd4802dd
parent5a016713cc78e5c1e6abf3c5d3acefcd42016167 (diff)
downloadyosys-6053856f9130dd864b4f38c8b71f13f5e2ca7f6b.tar.gz
yosys-6053856f9130dd864b4f38c8b71f13f5e2ca7f6b.tar.bz2
yosys-6053856f9130dd864b4f38c8b71f13f5e2ca7f6b.zip
pass jny: ensured the cell collection is cleared between modules
-rw-r--r--backends/jny/jny.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/jny/jny.cc b/backends/jny/jny.cc
index 1cbfaaddc..b89283a15 100644
--- a/backends/jny/jny.cc
+++ b/backends/jny/jny.cc
@@ -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));