3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-08-07 22:01:25 +00:00

modified the mode runners to accept the modified engine layout in preperation for the per-mode engine sections

This commit is contained in:
Aki Van Ness 2022-07-29 10:21:48 -04:00
parent f1a645bb18
commit 9293081308
No known key found for this signature in database
GPG key ID: C629E8EC06327BEE
5 changed files with 32 additions and 12 deletions

View file

@ -23,10 +23,16 @@ def run(task):
task.handle_int_option("depth", 20)
task.handle_int_option("append", 0)
for engine_idx, engine in task.engine_list():
for engine_idx, engine_section in task.engine_list():
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_idx}: {" ".join(engine)}""")
task.log(f"""engine_{engine_name}: {" ".join(engine)}""")
task.makedirs(f"{task.workdir}/engine_{engine_idx}")
if engine[0] == "smtbmc":