Full Adder

Easy

Problem Statement

Implement a 1-bit full adder in Verilog. Given two single-bit inputs `a` and `b`, and a carry-in bit `cin`, compute the sum and carry-out. - sum = a XOR b XOR cin - cout = (a AND b) OR (b AND cin) OR (a AND cin)

Verilog