module main(
input A,
input B,
input C_in,
output S,
output C_out);
endmodule
For this problem we will implement a full-bit adder, given A, B, and C_in as input & S and C_out as output.
For those unfamiliar with a full-bit adder, imagine how we add with the decimal system. We have 2 terms per digit we would add and possibly a 3rd if the previous digits sum carries over. Same goes for binary numbers.
To make this nontrivial, try to do this with just logic operators (no arithmetic operators)
module main(
input A,
input B,
input C_in,
output S,
output C_out);
endmodule