// fulladder.v T. Manikas 12-5-11 // add bits a and b and carry-in cin to produce sum s and carry-out cout module full_adder(s,cout,a,b,cin); input a,b,cin; output s,cout; wire w1,w2,w3; halfadder HA1(w1,w2,a,b); halfadder HA2(s,w3,w1,cin); or U1(cout,w2,w3); endmodule