mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 05:08:56 +00:00
Added printing of code loc of failed asserts to yosys-smtbmc
This commit is contained in:
parent
42a971226b
commit
dfcd30ea86
3 changed files with 23 additions and 1 deletions
|
@ -30,6 +30,7 @@ class smtmodinfo:
|
|||
self.wires = set()
|
||||
self.wsize = dict()
|
||||
self.cells = dict()
|
||||
self.asserts = dict()
|
||||
|
||||
class smtio:
|
||||
def __init__(self, solver=None, debug_print=None, debug_file=None, timeinfo=None, opts=None):
|
||||
|
@ -129,6 +130,9 @@ class smtio:
|
|||
self.modinfo[self.curmod].wires.add(fields[2])
|
||||
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]
|
||||
|
||||
def hiernets(self, top):
|
||||
def hiernets_worker(nets, mod, cursor):
|
||||
for netname in sorted(self.modinfo[mod].wsize.keys()):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue