FPGA/HDLBits
Hadd
장영현
2023. 6. 12. 18:25
728x90
Problem Statement
Create a half adder. A half adder adds two bits (with no carry-in) and produces a sum and carry-out.
module top_module(
input a, b,
output cout, sum );
assign sum = a^b;
assign cout = a&b;
endmodule