Merge pull request #3486 from daglem/fix-flowmap-crash

Fix crash in flowmap
This commit is contained in:
Miodrag Milanović 2022-09-23 16:22:46 +02:00 committed by GitHub
commit fcd1be1422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1406,6 +1406,7 @@ struct FlowmapWorker
RTLIL::SigSpec lut_a, lut_y = node;
for (auto input_node : input_nodes)
lut_a.append(input_node);
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);