Use init value "2" for all uninitialized FFs in BLIF back-end
authorClifford Wolf <clifford@clifford.at>
Tue, 18 Oct 2016 08:54:04 +0000 (10:54 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 18 Oct 2016 08:54:04 +0000 (10:54 +0200)
backends/blif/blif.cc

index 0dc17c92a23431df731a3d3b8eaf312efafa9432..d9d0cc177f50b9ed608017b37e5b9113d32d1534 100644 (file)
@@ -77,9 +77,6 @@ struct BlifDumper
                                                case State::S1:
                                                        init_bits[initsig[i]] = 1;
                                                        break;
-                                               case State::Sx:
-                                                       init_bits[initsig[i]] = 2;
-                                                       break;
                                                default:
                                                        break;
                                        }
@@ -126,7 +123,7 @@ struct BlifDumper
                sigmap.apply(sig);
 
                if (init_bits.count(sig) == 0)
-                       return "";
+                       return " 2";
 
                string str = stringf(" %d", init_bits.at(sig));