mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-06 21:31:26 +00:00
Rename SbyJob to SbyTask and SbyTask to SbyProc to reduce confusion. Config file tasks now correspond to SbyTasks.
This commit is contained in:
parent
ac9001b22c
commit
7c9e5b026b
10 changed files with 360 additions and 360 deletions
|
@ -17,26 +17,26 @@
|
|||
#
|
||||
|
||||
import re, os, getopt
|
||||
from sby_core import SbyTask
|
||||
from sby_core import SbyProc
|
||||
|
||||
def run(job):
|
||||
job.handle_int_option("depth", 20)
|
||||
job.handle_int_option("append", 0)
|
||||
def run(task):
|
||||
task.handle_int_option("depth", 20)
|
||||
task.handle_int_option("append", 0)
|
||||
|
||||
for engine_idx in range(len(job.engines)):
|
||||
engine = job.engines[engine_idx]
|
||||
for engine_idx in range(len(task.engines)):
|
||||
engine = task.engines[engine_idx]
|
||||
assert len(engine) > 0
|
||||
|
||||
job.log(f"""engine_{engine_idx}: {" ".join(engine)}""")
|
||||
job.makedirs(f"{job.workdir}/engine_{engine_idx}")
|
||||
task.log(f"""engine_{engine_idx}: {" ".join(engine)}""")
|
||||
task.makedirs(f"{task.workdir}/engine_{engine_idx}")
|
||||
|
||||
if engine[0] == "smtbmc":
|
||||
import sby_engine_smtbmc
|
||||
sby_engine_smtbmc.run("cover", job, engine_idx, engine)
|
||||
sby_engine_smtbmc.run("cover", task, engine_idx, engine)
|
||||
|
||||
elif engine[0] == "btor":
|
||||
import sby_engine_btor
|
||||
sby_engine_btor.run("cover", job, engine_idx, engine)
|
||||
sby_engine_btor.run("cover", task, engine_idx, engine)
|
||||
|
||||
else:
|
||||
job.error(f"Invalid engine '{engine[0]}' for cover mode.")
|
||||
task.error(f"Invalid engine '{engine[0]}' for cover mode.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue