mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Code review
This commit is contained in:
parent
6de80bc6b3
commit
e1671b45b6
2 changed files with 48 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue