3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-02-16 22:01:46 +00:00

add POLARITY parameter to $priority cell

This commit is contained in:
Emil J. Tywoniak 2026-01-09 21:02:58 +01:00
parent e166dd4475
commit 7e664834b3
8 changed files with 38 additions and 17 deletions

View file

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