3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-24 05:45:32 +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:
Krystine Sherwin 2024-04-06 13:40:01 +13:00
parent 143d03a66e
commit b68f68d26b
No known key found for this signature in database
3 changed files with 4 additions and 3 deletions

View file

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