3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Code review

This commit is contained in:
Alain Dargelas 2025-03-10 14:44:14 -07:00
parent 6de80bc6b3
commit e1671b45b6
2 changed files with 48 additions and 2 deletions

View file

@ -20,8 +20,8 @@ code a b sub_y
bool b_signed = sub->getParam(ID::B_SIGNED).as_bool();
// Fanout of each sub Y bit should be 1 (no bit-split)
if (nusers(sub_y) != 2)
reject;
if (nusers(sub_y) != 2)
reject;
// Both operands need to be signed to be swapped
if (!a_signed || !b_signed)