mirror of https://github.com/YosysHQ/yosys.git
Fix SMT2 handling of initstate in sub-modules
This commit is contained in:
parent
c238f45ecf
commit
455c1c9d97
|
@ -811,6 +811,9 @@ struct Smt2Worker
|
||||||
Module *m = module->design->module(cell->type);
|
Module *m = module->design->module(cell->type);
|
||||||
log_assert(m != nullptr);
|
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())
|
for (auto &conn : cell->connections())
|
||||||
{
|
{
|
||||||
Wire *w = m->wire(conn.first);
|
Wire *w = m->wire(conn.first);
|
||||||
|
|
Loading…
Reference in New Issue