aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2/smtio.py
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-02-04 18:17:08 +0100
committerClifford Wolf <clifford@clifford.at>2017-02-04 18:17:08 +0100
commit0c0784b6bfa41274d6b9fcd64c4fb061489dd798 (patch)
tree9f5e0ad12f61bb2aec25b4020eabc48963538adf /backends/smt2/smtio.py
parent6abf79eb280a645f5896f307dca7afb92d75d25e (diff)
downloadyosys-0c0784b6bfa41274d6b9fcd64c4fb061489dd798.tar.gz
yosys-0c0784b6bfa41274d6b9fcd64c4fb061489dd798.tar.bz2
yosys-0c0784b6bfa41274d6b9fcd64c4fb061489dd798.zip
Partially implement cover() support in yosys-smtbmc
Diffstat (limited to 'backends/smt2/smtio.py')
-rw-r--r--backends/smt2/smtio.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py
index 3946c3423..dda804efb 100644
--- a/backends/smt2/smtio.py
+++ b/backends/smt2/smtio.py
@@ -42,6 +42,7 @@ class SmtModInfo:
self.wsize = dict()
self.cells = dict()
self.asserts = dict()
+ self.covers = dict()
self.anyconsts = dict()
@@ -331,6 +332,9 @@ class SmtIo:
if fields[1] == "yosys-smt2-assert":
self.modinfo[self.curmod].asserts[fields[2]] = fields[3]
+ if fields[1] == "yosys-smt2-cover":
+ self.modinfo[self.curmod].covers[fields[2]] = fields[3]
+
if fields[1] == "yosys-smt2-anyconst":
self.modinfo[self.curmod].anyconsts[fields[2]] = fields[3]