Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "mode" option to cfg file #28

Merged
merged 3 commits into from Aug 9, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Add a "mode" option to cfg file

Add a "mode" option on .cfg file to define whether you are going for a bmc or an induction proof
  • Loading branch information
AlAlves committed Aug 5, 2019
commit 3d40d104faeff82f9b0d7f9ed8a4e9e8cac8bd72
@@ -33,6 +33,7 @@
dumpsmt2 = False
sbycmd = "sby"
config = dict()
mode = "bmc" # bmc/prove/live/cover/equiv/synth

if len(sys.argv) > 1:
assert len(sys.argv) == 2
@@ -82,6 +83,10 @@
elif line[0] == "dumpsmt2":
assert len(line) == 1
dumpsmt2 = True

elif line[0] == "mode":
assert len(line) == 2
mode = line[1]

else:
print(line)
@@ -119,6 +124,7 @@ def print_hfmt(f, text, **kwargs):
hargs["xlen"] = xlen
hargs["ilen"] = ilen
hargs["append"] = 0
hargs["mode"]= mode

instruction_checks = set()
consistency_checks = set()
@@ -178,7 +184,7 @@ def check_insn(insn, chanidx, csr_mode=False):
with open("%s/%s.sby" % (cfgname, check), "w") as sby_file:
print_hfmt(sby_file, """
: [options]
: mode bmc
: mode @mode@
: expect pass,fail
: append @append@
: tbtop wrapper.uut
@@ -337,7 +343,7 @@ def check_cons(check, chanidx=None, start=None, trig=None, depth=None, csr_mode=
with open("%s/%s.sby" % (cfgname, check), "w") as sby_file:
print_hfmt(sby_file, """
: [options]
: mode bmc
: mode @mode@
: expect pass,fail
: append @append@
: tbtop wrapper.uut
ProTip! Use n and p to navigate between commits in a pull request.