Be more conservative in btor ys script
authorClaire Wolf <claire@symbioticeda.com>
Tue, 23 Jun 2020 12:32:59 +0000 (14:32 +0200)
committerClaire Wolf <claire@symbioticeda.com>
Tue, 23 Jun 2020 12:32:59 +0000 (14:32 +0200)
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
sbysrc/sby_core.py

index 972e04786f6696b953f971f2986bb9c817757a79..961d7f0e64809758416d75245261f1fafa50aa50 100644 (file)
@@ -418,13 +418,14 @@ class SbyJob:
                 print("read_ilang design{}.il".format("_nomem" if "_nomem" in model_name else ""), file=f)
                 print("flatten", file=f)
                 print("setundef -undriven -anyseq", file=f)
-                print("setattr -unset keep", file=f)
-                print("opt -full", file=f)
                 if "_syn" in model_name:
+                    print("opt -full", file=f)
                     print("techmap", file=f)
                     print("opt -fast", file=f)
                     print("abc", file=f)
                     print("opt_clean", file=f)
+                else:
+                    print("opt -fast", file=f)
                 print("delete -output", file=f)
                 print("stat", file=f)
                 print("write_btor {}-i design_{m}.info design_{m}.btor".format("-c " if self.opt_mode == "cover" else "", m=model_name), file=f)