Skip to content

Commit d0ab283

Browse files
committed
Fix setting bits of parameters in setundef pass
1 parent cef87cc commit d0ab283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

passes/cmds/setundef.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ struct SetundefPass : public Pass {
243243
{
244244
for (auto *cell : module->selected_cells()) {
245245
for (auto &parameter : cell->parameters) {
246-
for (auto bit : parameter.second) {
246+
for (auto &bit : parameter.second.bits()) {
247247
if (bit > RTLIL::State::S1)
248248
bit = worker.next_bit();
249249
}

0 commit comments

Comments
 (0)