From 455c1c9d97330b9d20cafe62cd72c3c3f71d3573 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 29 Oct 2017 13:21:20 +0100 Subject: [PATCH] Fix SMT2 handling of initstate in sub-modules --- backends/smt2/smt2.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backends/smt2/smt2.cc b/backends/smt2/smt2.cc index dce7c25de..8daa52eb3 100644 --- a/backends/smt2/smt2.cc +++ b/backends/smt2/smt2.cc @@ -811,6 +811,9 @@ struct Smt2Worker Module *m = module->design->module(cell->type); log_assert(m != nullptr); + hier.push_back(stringf(" (= (|%s_is| state) (|%s_is| %s))\n", + get_id(module), get_id(cell->type), cell_state.c_str())); + for (auto &conn : cell->connections()) { Wire *w = m->wire(conn.first); -- 2.30.2