3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-05 06:04:06 +00:00

sby: fixed the sby task execution to accept the new engine internal layout

This commit is contained in:
Aki Van Ness 2022-08-04 08:51:35 -04:00
parent da56a3c6d1
commit 637095a8ec
No known key found for this signature in database
GPG key ID: C629E8EC06327BEE
5 changed files with 31 additions and 10 deletions

View file

@ -401,8 +401,8 @@ class SbyConfig:
continue
if mode == "engines":
entries = line.split()
self.engines[engine_mode].append(entries)
args = line.strip().split()
self.engines[engine_mode].append(args)
continue
if mode == "setup":

View file

@ -25,13 +25,19 @@ def run(task):
task.handle_str_option("aigsmt", "yices")
for engine_idx, engine_section in task.engine_list():
engine = engine_section[1][0]
engine_name = engine_section[0]
if isinstance(engine_section, list):
engine = engine_section
engine_name = None
else:
engine = engine_section[1][0]
engine_name = engine_section[0]
if engine_name is None:
engine_name = engine_idx
assert len(engine) > 0
task.log(f"""engine_{engine_name}: {" ".join(engine)}""")
task.makedirs(f"{task.workdir}/engine_{engine_idx}")

View file

@ -24,8 +24,13 @@ def run(task):
task.handle_int_option("append", 0)
for engine_idx, engine_section in task.engine_list():
engine = engine_section[1][0]
engine_name = engine_section[0]
if isinstance(engine_section, list):
engine = engine_section
engine_name = None
else:
engine = engine_section[1][0]
engine_name = engine_section[0]
if engine_name is None:
engine_name = engine_idx

View file

@ -25,8 +25,13 @@ def run(task):
task.status = "UNKNOWN"
for engine_idx, engine_section in task.engine_list():
engine = engine_section[1][0]
engine_name = engine_section[0]
if isinstance(engine_section, list):
engine = engine_section
engine_name = None
else:
engine = engine_section[1][0]
engine_name = engine_section[0]
if engine_name is None:
engine_name = engine_idx

View file

@ -32,8 +32,13 @@ def run(task):
task.induction_procs = list()
for engine_idx, engine_section in task.engine_list():
engine = engine_section[1][0]
engine_name = engine_section[0]
if isinstance(engine_section, list):
engine = engine_section
engine_name = None
else:
engine = engine_section[1][0]
engine_name = engine_section[0]
if engine_name is None:
engine_name = engine_idx