3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 09:55:20 +00:00

cellaigs: Fix the case of $_NMUX_ cells

Later on there's a

  if (cell->type == ID($_NMUX_))

but that code was unreachable until now.
This commit is contained in:
Martin Povišer 2023-07-10 12:27:50 +02:00
parent 78d13d1956
commit 8839d7fa5a

View file

@ -318,7 +318,7 @@ Aig::Aig(Cell *cell)
goto optimize; goto optimize;
} }
if (cell->type.in(ID($mux), ID($_MUX_))) if (cell->type.in(ID($mux), ID($_MUX_), ID($_NMUX_)))
{ {
int S = mk.inport(ID::S); int S = mk.inport(ID::S);
for (int i = 0; i < GetSize(cell->getPort(ID::Y)); i++) { for (int i = 0; i < GetSize(cell->getPort(ID::Y)); i++) {