Compute s[2:0] = a[1:0] + b[1:0]. It is two full-adder stages, and the carry work can be shared with the sum bits.
Two-bit adder par 7
Rules: a single module golf, boolean operators
& | ^ ~ only (no case, no ?:, no
arithmetic). Your score is the number of gates Yosys reads from your code, before
it would optimize.
Leaderboard
No scores yet. Post a passing solution to claim the top spot.