aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-11-28 15:15:09 +0100
committerClifford Wolf <clifford@clifford.at>2016-11-28 15:15:09 +0100
commitdf2e5aad6f79556044aa80612f3f7ffb664ec617 (patch)
treeb9fb002e9c61848e007706a2a6e13772a5518f6b /backends/smt2
parentecdc22b06c70debf16d2a1eaae2b280015730e10 (diff)
downloadyosys-df2e5aad6f79556044aa80612f3f7ffb664ec617.tar.gz
yosys-df2e5aad6f79556044aa80612f3f7ffb664ec617.tar.bz2
yosys-df2e5aad6f79556044aa80612f3f7ffb664ec617.zip
Bugfix in smt2 back-end for pure checker modules
Diffstat (limited to 'backends/smt2')
-rw-r--r--backends/smt2/smt2.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/smt2/smt2.cc b/backends/smt2/smt2.cc
index ddac69009..43479eb55 100644
--- a/backends/smt2/smt2.cc
+++ b/backends/smt2/smt2.cc
@@ -749,6 +749,10 @@ struct Smt2Worker
if (verbose) log("=> export logic driving hierarchical cells\n");
+ for (auto cell : module->cells())
+ if (module->design->module(cell->type) != nullptr)
+ export_cell(cell);
+
while (!hiercells_queue.empty())
{
std::set<RTLIL::Cell*> queue;