mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-11 00:13:33 +00:00
btor2aiger: Install btor2aig_yw
Install alongside SBY. Add env helper to python source. Fix hardcoded path in `sby_core.py`.
This commit is contained in:
parent
143d03a66e
commit
b68f68d26b
2
Makefile
2
Makefile
|
@ -44,6 +44,8 @@ else
|
|||
sed 's|##yosys-sys-path##|sys.path += [os.path.dirname(__file__) + p for p in ["/share/python3", "/../share/yosys/python3"]]|;' < sbysrc/sby.py > $(DESTDIR)$(PREFIX)/bin/sby
|
||||
chmod +x $(DESTDIR)$(PREFIX)/bin/sby
|
||||
endif
|
||||
cp tools/btor2aig_yw/btor2aig_yw.py $(DESTDIR)$(PREFIX)/bin/btor2aig_yw
|
||||
chmod +x $(DESTDIR)$(PREFIX)/bin/btor2aig_yw
|
||||
|
||||
.PHONY: check_cad_suite run_ci
|
||||
|
||||
|
|
|
@ -1154,14 +1154,12 @@ class SbyTask(SbyConfig):
|
|||
return [proc]
|
||||
|
||||
if model_name == "aig" and self.opt_btor_aig:
|
||||
#TODO: aiw2yw doesn't know what to do with the latches
|
||||
btor_model = "btor_nomem"
|
||||
proc = SbyProc(
|
||||
self,
|
||||
"btor_aig",
|
||||
self.model(btor_model),
|
||||
#TODO: fix hardcoded path
|
||||
f"cd {self.workdir}/model; python3 ~/sby/tools/btor2aig_yw/btor2aig_yw.py design_{btor_model}.btor"
|
||||
f"cd {self.workdir}/model; btor2aig_yw design_{btor_model}.btor"
|
||||
)
|
||||
proc.checkretcode = True
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env python3
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
|
Loading…
Reference in a new issue