diff options
Diffstat (limited to 'passes')
-rw-r--r-- | passes/opt/opt_muxtree.cc | 4 | ||||
-rw-r--r-- | passes/opt/opt_reduce.cc | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/passes/opt/opt_muxtree.cc b/passes/opt/opt_muxtree.cc index 49b72f15b..47100869c 100644 --- a/passes/opt/opt_muxtree.cc +++ b/passes/opt/opt_muxtree.cc @@ -225,9 +225,9 @@ struct OptMuxtreeWorker mi.cell->connections["\\S"] = new_sig_s; if (new_sig_s.width == 1) { mi.cell->type = "$mux"; - mi.cell->attributes.erase("\\S_WIDTH"); + mi.cell->parameters.erase("\\S_WIDTH"); } else { - mi.cell->attributes["\\S_WIDTH"] = RTLIL::Const(new_sig_s.width); + mi.cell->parameters["\\S_WIDTH"] = RTLIL::Const(new_sig_s.width); } } } diff --git a/passes/opt/opt_reduce.cc b/passes/opt/opt_reduce.cc index 98351762e..dd1299810 100644 --- a/passes/opt/opt_reduce.cc +++ b/passes/opt/opt_reduce.cc @@ -127,6 +127,7 @@ struct OptReduceWorker reduce_or_cell->name = NEW_ID; reduce_or_cell->type = "$reduce_or"; reduce_or_cell->connections["\\A"] = this_s; + reduce_or_cell->parameters["\\A_SIGNED"] = RTLIL::Const(0); reduce_or_cell->parameters["\\A_WIDTH"] = RTLIL::Const(this_s.width); reduce_or_cell->parameters["\\Y_WIDTH"] = RTLIL::Const(1); module->cells[reduce_or_cell->name] = reduce_or_cell; |