Hadd

2023. 6. 12. 18:25FPGA/HDLBits

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

'FPGA > HDLBits' 카테고리의 다른 글

Adder3  (0) 2023.06.13
Fadd  (0) 2023.06.12
Mux256to1v  (0) 2023.06.12
Mux256to1  (0) 2023.06.12
Mux9to1v  (0) 2023.06.12