diff options
author | N. Engelhardt <nak@yosyshq.com> | 2022-02-04 18:23:12 +0100 |
---|---|---|
committer | N. Engelhardt <nak@yosyshq.com> | 2022-02-22 17:00:10 +0100 |
commit | dc739362c7e0c0d7befe2a5dc2866aef31ca5a20 (patch) | |
tree | b3c60a9f8c52f22e7c11f9916473a1c2e2ea0c3d /backends/smt2/smtio.py | |
parent | bf85dfee5e0cceaed8f6f6782afe2d1803039e6a (diff) | |
download | yosys-dc739362c7e0c0d7befe2a5dc2866aef31ca5a20.tar.gz yosys-dc739362c7e0c0d7befe2a5dc2866aef31ca5a20.tar.bz2 yosys-dc739362c7e0c0d7befe2a5dc2866aef31ca5a20.zip |
print cell name for properties in yosys-smtbmc
Diffstat (limited to 'backends/smt2/smtio.py')
-rw-r--r-- | backends/smt2/smtio.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py index d73a875ba..3d458e6cf 100644 --- a/backends/smt2/smtio.py +++ b/backends/smt2/smtio.py @@ -536,10 +536,16 @@ class SmtIo: self.modinfo[self.curmod].clocks[fields[2]] = "event" if fields[1] == "yosys-smt2-assert": - self.modinfo[self.curmod].asserts["%s_a %s" % (self.curmod, fields[2])] = fields[3] + if len(fields) > 4: + self.modinfo[self.curmod].asserts["%s_a %s" % (self.curmod, fields[2])] = f'{fields[4]} ({fields[3]})' + else: + 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["%s_c %s" % (self.curmod, fields[2])] = fields[3] + if len(fields) > 4: + self.modinfo[self.curmod].covers["%s_c %s" % (self.curmod, fields[2])] = f'{fields[4]} ({fields[3]})' + else: + self.modinfo[self.curmod].covers["%s_c %s" % (self.curmod, fields[2])] = fields[3] if fields[1] == "yosys-smt2-maximize": self.modinfo[self.curmod].maximize.add(fields[2]) |