In: Electrical Engineering
8-bit adder has eight stages in which each stage has single bit adder. To perform single bit adder requires three inputs which are A,B and Cin(Inital carry) and two outputs which are sum(S) and Carryout(Cout). Single bit adder is implemented by using two Half adders and one OR gate. So to implement 1-bit adder requires Two 2-i/p XOR gates, Two 2-i/p AND gates and one 2-i/p OR gate.
Below figure shows Block diagram of 8-bit adder, truth table of 1-bit adder and logic diagram of 1-bit adder.
Below figure shows 8-bit adder Logic diagram.
Verilog code for 1-bit adder using above 1-bit adder diagram.
8-bit adder verilog code is implemented by using eight 1-bit adder which is shown below.