3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-08-09 14:51:26 +00:00

Update unknown covers as well as asserts

Currently only applicable to smtbmc.
Also don't update assert depth during `cover` mode.
This commit is contained in:
Krystine Sherwin 2025-07-08 15:47:33 +12:00
parent 488d25b625
commit 2aa8d266ad
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View file

@ -1260,9 +1260,12 @@ class SbyTask(SbyConfig):
self.status = "ERROR"
self.terminate()
def update_unknown_asserts(self, data):
def update_unknown_props(self, data):
for prop in self.design.hierarchy:
if prop.type == prop.Type.ASSERT and prop.status == "UNKNOWN":
if prop.status != "UNKNOWN":
continue
if ((prop.type == prop.Type.ASSERT and self.opt_mode in ["bmc", "prove"]) or
(prop.type == prop.Type.COVER and self.opt_mode == "cover")):
self.status_db.set_task_property_status(prop, data=data)
def pass_unknown_asserts(self, data):

View file

@ -221,7 +221,7 @@ def run(mode, task, engine_idx, engine):
last_step = current_step
current_step = int(match[1])
if current_step != last_step and last_step is not None:
task.update_unknown_asserts(dict(source="smtbmc", engine=f"engine_{engine_idx}", step=last_step))
task.update_unknown_props(dict(source="smtbmc", engine=f"engine_{engine_idx}", step=last_step))
return line
match = re.match(r"^## [0-9: ]+ Status: FAILED", line)