mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-14 08:55:27 +00:00
smtbmc: Use new -noinitstate option when simulating inductive cex
This requires YosysHQ/yosys#3962
This commit is contained in:
parent
7415abfcfa
commit
36f84b8b9f
2 changed files with 7 additions and 4 deletions
|
@ -20,7 +20,7 @@ import os, re, glob, json
|
|||
from sby_core import SbyProc
|
||||
from sby_design import pretty_path
|
||||
|
||||
def sim_witness_trace(prefix, task, engine_idx, witness_file, *, append, deps=()):
|
||||
def sim_witness_trace(prefix, task, engine_idx, witness_file, *, append, inductive=False, deps=()):
|
||||
trace_name = os.path.basename(witness_file)[:-3]
|
||||
formats = []
|
||||
tracefile = None
|
||||
|
@ -40,8 +40,11 @@ def sim_witness_trace(prefix, task, engine_idx, witness_file, *, append, deps=()
|
|||
|
||||
with open(f"{task.workdir}/engine_{engine_idx}/{trace_name}.ys", "w") as f:
|
||||
print(f"# running in {task.workdir}/engine_{engine_idx}/", file=f)
|
||||
print(f"read_rtlil ../model/design_prep.il", file=f)
|
||||
print(f"sim -hdlname -summary {trace_name}.json -append {append} -r {trace_name}.yw {' '.join(formats)}", file=f)
|
||||
print("read_rtlil ../model/design_prep.il", file=f)
|
||||
sim_args = ""
|
||||
if inductive:
|
||||
sim_args += " -noinitstate"
|
||||
print(f"sim -hdlname -summary {trace_name}.json -append {append}{sim_args} -r {trace_name}.yw {' '.join(formats)}", file=f)
|
||||
|
||||
def exit_callback(retval):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue