3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-08-04 04:10:26 +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

@ -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