aboutsummaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-04-04 17:28:07 +0200
committerClifford Wolf <clifford@clifford.at>2018-04-04 17:28:07 +0200
commit25a864fc7344756e1b2de7bcc3f446ab84e410a3 (patch)
treefda131a11d50a318552841bcb2dbd15904dfe530 /backends
parent2b00c1dbd6b916aae6f97191d34b786a316c706e (diff)
downloadyosys-25a864fc7344756e1b2de7bcc3f446ab84e410a3.tar.gz
yosys-25a864fc7344756e1b2de7bcc3f446ab84e410a3.tar.bz2
yosys-25a864fc7344756e1b2de7bcc3f446ab84e410a3.zip
Fixed -stbv handling in SMT2 back-end
Diffstat (limited to 'backends')
-rw-r--r--backends/smt2/smt2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/smt2/smt2.cc b/backends/smt2/smt2.cc
index 2fb6d4da9..ca1ceacc7 100644
--- a/backends/smt2/smt2.cc
+++ b/backends/smt2/smt2.cc
@@ -766,7 +766,7 @@ struct Smt2Worker
if (statebv)
makebits(stringf("%s_h %s", get_id(module), get_id(cell->name)), mod_stbv_width.at(cell->type));
- if (statedt)
+ else if (statedt)
dtmembers.push_back(stringf(" (|%s_h %s| |%s_s|)\n",
get_id(module), get_id(cell->name), get_id(cell->type)));
else