3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-04-30 07:43:40 +00:00

Widen $polarity cell to multiple ports

This commit is contained in:
Emil J. Tywoniak 2026-01-12 13:21:13 +01:00
parent 7f19cf8849
commit 0c7afe8e31
8 changed files with 74 additions and 58 deletions

View file

@ -511,7 +511,7 @@ struct CellTypes
if (cell->type == ID($priority))
{
return const_priority(arg1, cell->getParam(ID::POLARITY));
return const_priority(arg1, cell->getParam(ID::P_WIDTH).as_int(), cell->getParam(ID::POLARITY));
}
bool signed_a = cell->parameters.count(ID::A_SIGNED) > 0 && cell->parameters[ID::A_SIGNED].as_bool();