mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-09 14:51:26 +00:00
avy: Fold aiger model using abc to support assumptions
This commit is contained in:
parent
6398938e6a
commit
f14aaa57c4
2 changed files with 17 additions and 2 deletions
|
@ -1146,6 +1146,18 @@ class SbyTask(SbyConfig):
|
|||
|
||||
return [proc]
|
||||
|
||||
if model_name == "aig_fold":
|
||||
proc = SbyProc(
|
||||
self,
|
||||
model_name,
|
||||
self.model("aig"),
|
||||
f"""cd {self.workdir}/model; {self.exe_paths["abc"]} -c 'read_aiger design_aiger.aig; fold; strash; write_aiger design_aiger_fold.aig'""",
|
||||
logfile=open(f"{self.workdir}/model/design_aiger_fold.log", "w")
|
||||
)
|
||||
proc.checkretcode = True
|
||||
|
||||
return [proc]
|
||||
|
||||
self.error(f"Invalid model name: {model_name}")
|
||||
|
||||
def model(self, model_name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue