lut2bmux fix

This commit is contained in:
Akash Levy 2025-04-03 21:37:27 -07:00
parent 809a38a597
commit d4119e1ad3
1 changed files with 1 additions and 1 deletions

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));