diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-10-29 13:21:20 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-10-29 13:21:20 +0100 |
commit | 455c1c9d97330b9d20cafe62cd72c3c3f71d3573 (patch) | |
tree | f1f5924232f16f79315a8a45282a979cbad0a220 /backends | |
parent | c238f45ecfd4fa3d556ea885a53d8e864e3c7566 (diff) | |
download | yosys-455c1c9d97330b9d20cafe62cd72c3c3f71d3573.tar.gz yosys-455c1c9d97330b9d20cafe62cd72c3c3f71d3573.tar.bz2 yosys-455c1c9d97330b9d20cafe62cd72c3c3f71d3573.zip |
Fix SMT2 handling of initstate in sub-modules
Diffstat (limited to 'backends')
-rw-r--r-- | backends/smt2/smt2.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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); |