mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #3486 from daglem/fix-flowmap-crash
Fix crash in flowmap
This commit is contained in:
commit
fcd1be1422
|
@ -1406,7 +1406,8 @@ struct FlowmapWorker
|
|||
RTLIL::SigSpec lut_a, lut_y = node;
|
||||
for (auto input_node : input_nodes)
|
||||
lut_a.append(input_node);
|
||||
lut_a.append(RTLIL::Const(State::Sx, minlut - input_nodes.size()));
|
||||
if ((int)input_nodes.size() < minlut)
|
||||
lut_a.append(RTLIL::Const(State::Sx, minlut - input_nodes.size()));
|
||||
|
||||
RTLIL::Cell *lut = module->addLut(NEW_ID, lut_a, lut_y, lut_table);
|
||||
mapped_nodes.insert(node);
|
||||
|
|
Loading…
Reference in New Issue