Read init from outputs
authorEddie Hung <eddie@fpgeh.com>
Sun, 16 Jun 2019 05:41:42 +0000 (22:41 -0700)
committerEddie Hung <eddie@fpgeh.com>
Sun, 16 Jun 2019 05:41:42 +0000 (22:41 -0700)
frontends/aiger/aigerparse.cc

index d2657c9da32779ee4eec45539443c80acaf2df45..5a6db84818ffee43429e575ab6b454e0e2899292 100644 (file)
@@ -927,6 +927,10 @@ void AigerReader::post_process()
                                        }
                                }
                                log_debug(" -> %s\n", log_id(wire));
+                               int init;
+                               mf >> init;
+                               if (init < 2)
+                                       wire->attributes["\\init"] = init;
                        }
                        else if (type == "box") {
                                RTLIL::Cell* cell = module->cell(stringf("$__box%d__", variable));