assign sum = a^b; // sum bit assign carry = (a&b) ;. //carry bit endmodule module main; reg a, b; wire sum, carry;.
確定! 回上一頁