refactor: migrate from yosys to yowasp-yosys

yowasp-yosys can be installed from pip, so we no longer require the user to install yosys separately.

also freeze requirements.txt versions for reproducible builds
This commit is contained in:
Uri Shaked
2023-06-25 20:49:36 +03:00
parent 0d6fa67ae5
commit 6fb355fc59
2 changed files with 30 additions and 8 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class Project():
source_list = " ".join(sources)
json_file = 'ports.json'
yosys_cmd = f"yosys -qp 'read_verilog -lib -sv {source_list}; hierarchy -top {top} ; proc; write_json {json_file}'"
yosys_cmd = f"yowasp-yosys -qp 'read_verilog -lib -sv {source_list}; hierarchy -top {top} ; proc; write_json {json_file}'"
p = subprocess.run(yosys_cmd, shell=True)
if p.returncode != 0:
logging.error(f"yosys port read failed for {self}")