From: David Shah Date: Tue, 18 Dec 2018 17:40:01 +0000 (+0000) Subject: memory_dff: Fix typo when checking init value X-Git-Tag: yosys-0.9~363^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b16d4ed3d4dc5776253fcb3736e3b54c8e4916e;p=yosys.git memory_dff: Fix typo when checking init value Signed-off-by: David Shah --- diff --git a/passes/memory/memory_dff.cc b/passes/memory/memory_dff.cc index 32df19174..220d29295 100644 --- a/passes/memory/memory_dff.cc +++ b/passes/memory/memory_dff.cc @@ -41,7 +41,7 @@ struct MemoryDffWorker if (wire->attributes.count("\\init") == 0) continue; SigSpec sig = sigmap(wire); - Const initval = wire->attributes.count("\\init"); + Const initval = wire->attributes.at("\\init"); for (int i = 0; i < GetSize(sig) && i < GetSize(initval); i++) if (initval[i] == State::S0 || initval[i] == State::S1) init_bits.insert(sig[i]);