Skip to content

Commit

Permalink
Fix exit code in Formal Verification results.py (#2539)
Browse files Browse the repository at this point in the history
Currently formal verification script `results.py` is only returning
value that should be exit code, but it always exits with 0.
This PR fixes this.

We also noticed some issue with Surelog cache in formal verification, so
as a workaround, we are disabling it temporarily.
  • Loading branch information
tgorochowik authored Sep 5, 2024
2 parents f5cd191 + a9ebb4e commit 25fb5f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/formal/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ def main():
return 0

if __name__ == "__main__":
main()
exit(main())
2 changes: 1 addition & 1 deletion tests/formal/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def prepare_eqy_script(output_dir, script_name, plugin_file, yosys_file):
"",
"[gate]",
"plugin -i systemverilog",
"tee -o %s/%s/plugin_ast.txt read_systemverilog -debug %s" % (output_dir, script_name, plugin_file),
"tee -o %s/%s/plugin_ast.txt read_systemverilog -nocache -debug %s" % (output_dir, script_name, plugin_file),
"prep -flatten -auto-top",
"opt",
"",
Expand Down

0 comments on commit 25fb5f5

Please sign in to comment.