Skip to content

Commit

Permalink
Fix setting bits of parameters in setundef pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Szelwiga committed Nov 8, 2024
1 parent cef87cc commit d0ab283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passes/cmds/setundef.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ struct SetundefPass : public Pass {
{
for (auto *cell : module->selected_cells()) {
for (auto &parameter : cell->parameters) {
for (auto bit : parameter.second) {
for (auto &bit : parameter.second.bits()) {
if (bit > RTLIL::State::S1)
bit = worker.next_bit();
}
Expand Down

0 comments on commit d0ab283

Please sign in to comment.