module multcell(part,x,y,cin,s,cout); input part; /* result from cell above */ input x; /* a bit to multiply */ input y; /* b bit to multiply */ input cin; /* carry in */ output s; /* sum */ output cout; /* carryout */ wire andbits; assign andbits = x & y; /* generate the product of two input bits */ fulladd add0(part,andbits,cin,s,cout); /* perform the addition */ endmodule