1 //-----------------------------------------------------
2 // Design Name : full_adder_gates
3 // File Name : full_adder_gates.v
4 // Function : Full Adder Using Gates
5 // Coder : Deepak Kumar Tala
6 //-----------------------------------------------------
7 module full_adder_gates(x,y,z,sum,carry);
10 wire and1,and2,and3,sum1;
12 and U_and1 (and1,x,y),
15 or U_or (carry,and1,and2,and3);
16 xor U_sum (sum,x,y,z);