You are on page 1of 1

module fadder_struct(a,b,cin,sum,cout); input a; input b; input cin; output sum,cout; wire c1,c2,psum; xor xor0(psum,a,b); xor xor1(sum,psum,cin); and

and0(c1,a,cin); and and1(c2,b,cin); and and2(cout,c2,c1); endmodule

You might also like