mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-10 07:10:54 +00:00
Add cover_assert option
This commit is contained in:
parent
aa7d8ab4ce
commit
4d8462b58e
3 changed files with 11 additions and 1 deletions
|
@ -198,6 +198,9 @@ options are:
|
||||||
| | | indicated in SBY's log output). |
|
| | | indicated in SBY's log output). |
|
||||||
| | | Values: ``on``, ``off``. Default: ``on`` |
|
| | | Values: ``on``, ``off``. Default: ``on`` |
|
||||||
+-------------------+------------+---------------------------------------------------------+
|
+-------------------+------------+---------------------------------------------------------+
|
||||||
|
| ``cover_assert`` | ``cover`` | Check for assertion properties during ``cover`` mode. |
|
||||||
|
| | | Values: ``on``, ``off``. Default: ``on`` |
|
||||||
|
+-------------------+------------+---------------------------------------------------------+
|
||||||
|
|
||||||
Engines section
|
Engines section
|
||||||
---------------
|
---------------
|
||||||
|
|
|
@ -1020,7 +1020,10 @@ class SbyTask(SbyConfig):
|
||||||
if self.opt_mode in ["bmc", "prove"]:
|
if self.opt_mode in ["bmc", "prove"]:
|
||||||
print("chformal -live -fair -cover -remove", file=f)
|
print("chformal -live -fair -cover -remove", file=f)
|
||||||
if self.opt_mode == "cover":
|
if self.opt_mode == "cover":
|
||||||
print("chformal -live -fair -assert -remove", file=f)
|
if self.opt_cover_assert:
|
||||||
|
print("chformal -live -fair -remove", file=f)
|
||||||
|
else:
|
||||||
|
print("chformal -live -fair -assert -remove", file=f)
|
||||||
if self.opt_mode == "live":
|
if self.opt_mode == "live":
|
||||||
print("chformal -assert2assume", file=f)
|
print("chformal -assert2assume", file=f)
|
||||||
print("chformal -cover -remove", file=f)
|
print("chformal -cover -remove", file=f)
|
||||||
|
@ -1294,6 +1297,9 @@ class SbyTask(SbyConfig):
|
||||||
self.handle_bool_option("skip_prep", False)
|
self.handle_bool_option("skip_prep", False)
|
||||||
|
|
||||||
self.handle_bool_option("assume_early", True)
|
self.handle_bool_option("assume_early", True)
|
||||||
|
|
||||||
|
if self.opt_mode == "cover":
|
||||||
|
self.handle_bool_option("cover_assert", False)
|
||||||
|
|
||||||
def setup_status_db(self, status_path=None):
|
def setup_status_db(self, status_path=None):
|
||||||
if hasattr(self, 'status_db'):
|
if hasattr(self, 'status_db'):
|
||||||
|
|
|
@ -7,6 +7,7 @@ preunsat
|
||||||
[options]
|
[options]
|
||||||
mode cover
|
mode cover
|
||||||
depth 1
|
depth 1
|
||||||
|
cover_assert on
|
||||||
|
|
||||||
pass: expect pass
|
pass: expect pass
|
||||||
fail: expect fail
|
fail: expect fail
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue