aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2/smt2.cc
diff options
context:
space:
mode:
authordh73 <dh73_fpga@qq.com>2017-11-08 20:24:01 -0600
committerdh73 <dh73_fpga@qq.com>2017-11-08 20:24:01 -0600
commitcf8cc50bf51c2fa36a3189e131a7e7fe0807ae8f (patch)
tree456b6aae2215835e602851eafc3b52bb6bb6f3de /backends/smt2/smt2.cc
parent1fc061d90c45166f87d92f76b6fae1ec517be72f (diff)
parent9ae25039fb6e28db639372d67c1b72c4170feaa3 (diff)
downloadyosys-cf8cc50bf51c2fa36a3189e131a7e7fe0807ae8f.tar.gz
yosys-cf8cc50bf51c2fa36a3189e131a7e7fe0807ae8f.tar.bz2
yosys-cf8cc50bf51c2fa36a3189e131a7e7fe0807ae8f.zip
Merge https://github.com/cliffordwolf/yosys
Diffstat (limited to 'backends/smt2/smt2.cc')
-rw-r--r--backends/smt2/smt2.cc3
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);