aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2/smtio.py
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-03-04 23:41:54 +0100
committerClifford Wolf <clifford@clifford.at>2017-03-04 23:41:54 +0100
commitc8553539866128279897336795f00248eb527ffa (patch)
treebd65478263b5388c56825769719dc1aee408269c /backends/smt2/smtio.py
parenta6ca28276e3786ba3d756f46d7804a6dcf1e5b11 (diff)
downloadyosys-c8553539866128279897336795f00248eb527ffa.tar.gz
yosys-c8553539866128279897336795f00248eb527ffa.tar.bz2
yosys-c8553539866128279897336795f00248eb527ffa.zip
Improve smt2 encodings of assert/assume/cover, better wire_smt2 help msg
Diffstat (limited to 'backends/smt2/smtio.py')
-rw-r--r--backends/smt2/smtio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py
index 1278d00aa..38e3f3119 100644
--- a/backends/smt2/smtio.py
+++ b/backends/smt2/smtio.py
@@ -334,10 +334,10 @@ class SmtIo:
self.modinfo[self.curmod].wsize[fields[2]] = int(fields[3])
if fields[1] == "yosys-smt2-assert":
- self.modinfo[self.curmod].asserts[fields[2]] = fields[3]
+ self.modinfo[self.curmod].asserts["%s_a %s" % (self.curmod, fields[2])] = fields[3]
if fields[1] == "yosys-smt2-cover":
- self.modinfo[self.curmod].covers[fields[2]] = fields[3]
+ self.modinfo[self.curmod].covers["%s_c %s" % (self.curmod, fields[2])] = fields[3]
if fields[1] == "yosys-smt2-anyconst":
self.modinfo[self.curmod].anyconsts[fields[2]] = fields[3]