3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-08-09 14:51:26 +00:00

Support for the new anytime schedule in yosys-abc's pdr

This commit is contained in:
Jannis Harder 2024-02-27 20:09:45 +01:00
parent d3a6f2d758
commit b6e41a388b
3 changed files with 41 additions and 20 deletions

View file

@ -1027,6 +1027,7 @@ class SbyTask(SbyConfig):
print("setundef -undriven -anyseq", file=f)
print("opt -fast", file=f)
if self.opt_witrename:
# we need to run this a second time to handle anything added by prep
print("rename -witness", file=f)
print("opt_clean", file=f)
print(f"""write_rtlil ../model/design_prep.il""", file=f)
@ -1048,6 +1049,9 @@ class SbyTask(SbyConfig):
print(cmd, file=f)
# the user must designate a top module in [script]
print("hierarchy -smtcheck", file=f)
# we need to give flatten-preserved names before write_jny
if self.opt_witrename:
print("rename -witness", file=f)
print(f"""write_jny -no-connections ../model/design.json""", file=f)
print(f"""write_rtlil ../model/design.il""", file=f)