From: Clifford Wolf Date: Tue, 22 Dec 2015 11:18:06 +0000 (+0100) Subject: Bugfix in ice40_ffinit X-Git-Tag: yosys-0.6~44 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bf452c364b4b5aed128927b9d12a1373c0b7c71;p=yosys.git Bugfix in ice40_ffinit --- diff --git a/techlibs/ice40/ice40_ffinit.cc b/techlibs/ice40/ice40_ffinit.cc index c77ddc5f1..8c4b9a37d 100644 --- a/techlibs/ice40/ice40_ffinit.cc +++ b/techlibs/ice40/ice40_ffinit.cc @@ -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; }