mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
Fix setting bits of parameters in setundef pass
This commit also adds test that verifies correctness of this change.
This commit is contained in:
@@ -243,7 +243,7 @@ struct SetundefPass : public Pass {
|
||||
{
|
||||
for (auto *cell : module->selected_cells()) {
|
||||
for (auto ¶meter : cell->parameters) {
|
||||
for (auto bit : parameter.second) {
|
||||
for (auto &bit : parameter.second.bits()) {
|
||||
if (bit > RTLIL::State::S1)
|
||||
bit = worker.next_bit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user