One-bit ALU par 15

A one-bit ALU. op picks the operation on a and b: 00 = AND, 01 = OR, 10 = XOR, 11 = NOT a. The naive four-way sum-of-products is big, factor the multiplexer instead.

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.