From 8bf452c364b4b5aed128927b9d12a1373c0b7c71 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 22 Dec 2015 12:18:06 +0100 Subject: [PATCH] Bugfix in ice40_ffinit --- techlibs/ice40/ice40_ffinit.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2