Bugfix in parsing of BLIF latch init values

This commit is contained in:
Clifford Wolf 2016-09-06 17:35:06 +02:00
parent 97583ab729
commit d55a93b39f
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ void parse_blif(RTLIL::Design *design, std::istream &f, std::string dff_name, bo
}
if (init != nullptr && (init[0] == '0' || init[0] == '1'))
blif_wire(d)->attributes["\\init"] = Const(init[0] == '1' ? 1 : 0, 1);
blif_wire(q)->attributes["\\init"] = Const(init[0] == '1' ? 1 : 0, 1);
if (clock == nullptr)
goto no_latch_clock;