Update the problem details below.
A Half Adder is a basic combinational circuit that performs the addition of two 1-bit binary numbers. It produces two outputs:
In this tutorial, you will design a half adder using Verilog and test it with all input combinations.
The half adder cannot handle carry-in from previous additions (that’s why it’s called half). It is the simplest building block for binary addition.
S = A ⊕ B
C = A · B
Create a Verilog module named half_adder with:
half_adder
a
b
sum
carry
Implement the equations:
assign sum = a ^ b;
assign carry = a & b;
Write a testbench module to verify the half adder:
testbench
Nothing to preview yet. Start typing in the editor...
Enter the expected output as valid JSON format that will be used to verify student submissions.