Skip to content

Commit

Permalink
Update passes/pmgen/peepopt_muxadd.pmg
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Povišer <[email protected]>
  • Loading branch information
akashlevy and povik authored Nov 17, 2024
1 parent 9943b18 commit 9f84a92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions passes/pmgen/peepopt_muxadd.pmg
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ code add_y add_a add_b
add_y = port(add, \Y);

// Fanout of each adder Y bit should be 1 (no bit-split)
for (auto bit : add_y)
if (nusers(bit) != 2)
reject;
if (nusers(add_y) != 2)
reject;

// A and B can be interchanged
branch;
Expand Down

0 comments on commit 9f84a92

Please sign in to comment.