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) source_list = " ".join(sources)
json_file = 'ports.json' 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) p = subprocess.run(yosys_cmd, shell=True)
if p.returncode != 0: if p.returncode != 0:
logging.error(f"yosys port read failed for {self}") logging.error(f"yosys port read failed for {self}")
+29 -7
View File
@@ -1,7 +1,29 @@
pytz appdirs==1.4.4
gdstk cairocffi==1.6.0
stripe CairoSVG==2.7.0
GitPython certifi==2023.5.7
cairosvg cffi==1.15.1
requests charset-normalizer==3.1.0
PyYAML click==8.1.3
cssselect2==0.7.0
defusedxml==0.7.1
gdstk==0.9.42
gitdb==4.0.10
GitPython==3.1.31
idna==3.4
importlib-resources==5.12.0
numpy==1.24.3
Pillow==9.5.0
pycparser==2.21
pytz==2023.3
PyYAML==6.0
requests==2.31.0
smmap==5.0.0
stripe==5.4.0
tinycss2==1.2.1
urllib3==2.0.3
wasmtime==9.0.0
webencodings==0.5.1
yowasp-runtime==1.22
yowasp-yosys==0.30.0.0.post538
zipp==3.15.0