aiger: -xaiger to parse initial state back into (* init *) on Q wire
authorEddie Hung <eddie@fpgeh.com>
Mon, 13 Apr 2020 20:11:25 +0000 (13:11 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 14 May 2020 17:33:56 +0000 (10:33 -0700)
frontends/aiger/aigerparse.cc

index 7e5e6dd2daf5ef2dfeb560e23d84ec926646ea14..ed3a926c672ed0d386065432b9927ce4ef0001f0 100644 (file)
@@ -802,7 +802,8 @@ void AigerReader::post_process()
                ff->setPort(ID::C, r.first->second);
                ff->setPort(ID::D, d);
                ff->setPort(ID::Q, q);
-               ff->attributes[ID::abc9_init] = initial_state[i];
+               log_assert(GetSize(q) == 1);
+               q->attributes[ID::init] = initial_state[i];
        }
 
        dict<RTLIL::IdString, std::pair<int,int>> wideports_cache;