3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-17 04:35:44 +00:00

lut2bmux fix

This commit is contained in:
Akash Levy 2025-04-03 21:37:27 -07:00
parent 809a38a597
commit d4119e1ad3

View file

@ -45,8 +45,8 @@ struct Lut2BmuxPass : public Pass {
for (auto cell : module->selected_cells()) {
if (cell->type == ID($lut)) {
cell->type = ID($bmux);
cell->setPort(ID::A, cell->getParam(ID::LUT));
cell->setPort(ID::S, cell->getPort(ID::A));
cell->setPort(ID::A, cell->getParam(ID::LUT));
cell->unsetParam(ID::LUT);
cell->fixup_parameters();
log("Converted %s.%s to BMUX cell.\n", log_id(module), log_id(cell));