Bugfix in ice40_ffinit

This commit is contained in:
Clifford Wolf 2015-12-22 12:18:06 +01:00
parent ec93d258a4
commit 8bf452c364
1 changed files with 2 additions and 2 deletions

View File

@ -148,8 +148,8 @@ struct Ice40FfinitPass : public Pass {
for (int i = 0; i < GetSize(wirebits) && i < GetSize(initval); i++) {
if (handled_initbits.count(wirebits[i]))
wirebits[i] = State::Sx;
else
initval[i] = State::Sx;
else if (initval[i] != State::Sx)
remove_attribute = false;
}