mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #751 from daveshah1/fix_589
memory_dff: Fix typo when checking init value
This commit is contained in:
commit
eddf075d93
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue