mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-09 23:00:53 +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:
parent
488d25b625
commit
2aa8d266ad
2 changed files with 6 additions and 3 deletions
|
@ -1260,9 +1260,12 @@ class SbyTask(SbyConfig):
|
||||||
self.status = "ERROR"
|
self.status = "ERROR"
|
||||||
self.terminate()
|
self.terminate()
|
||||||
|
|
||||||
def update_unknown_asserts(self, data):
|
def update_unknown_props(self, data):
|
||||||
for prop in self.design.hierarchy:
|
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)
|
self.status_db.set_task_property_status(prop, data=data)
|
||||||
|
|
||||||
def pass_unknown_asserts(self, data):
|
def pass_unknown_asserts(self, data):
|
||||||
|
|
|
@ -221,7 +221,7 @@ def run(mode, task, engine_idx, engine):
|
||||||
last_step = current_step
|
last_step = current_step
|
||||||
current_step = int(match[1])
|
current_step = int(match[1])
|
||||||
if current_step != last_step and last_step is not None:
|
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
|
return line
|
||||||
|
|
||||||
match = re.match(r"^## [0-9: ]+ Status: FAILED", line)
|
match = re.match(r"^## [0-9: ]+ Status: FAILED", line)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue