← All problems

Basic ALU

Easy · Combinational · SystemVerilog

Design a module that acts as a simplified Arithmetic Logic Unit (ALU): instead of selecting one operation with an opcode, it computes every operation on the operands {a} and {b} at once, each on its corresponding output — {a_plus_b}, {a_minus_b}, {not_a}, {a_and_b}, {a_or_b}, and {a_xor_b}.

Open this challenge in the editor →