mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-20 02:00:23 +00:00
add morphCell instead of type assignments, test_cell passes for all cells
This commit is contained in:
parent
d2107a9ee4
commit
1be8f8023a
33 changed files with 129 additions and 99 deletions
|
|
@ -259,7 +259,7 @@ struct OptMuxtreeWorker
|
|||
mi.cell->setPort(ID::B, new_sig_b);
|
||||
mi.cell->setPort(ID::S, new_sig_s);
|
||||
if (GetSize(new_sig_s) == 1) {
|
||||
mi.cell->type = ID($mux);
|
||||
mi.cell = mi.cell->module->morphCell(ID($mux), mi.cell);
|
||||
mi.cell->parameters.erase(ID::S_WIDTH);
|
||||
} else {
|
||||
mi.cell->parameters[ID::S_WIDTH] = RTLIL::Const(GetSize(new_sig_s));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue