module half_adder( input wire [1: 0] cin ,//in1, in2 output wire sum , output wire cout ); assign {cout, sum} = cin[0] + cin[1]; endmodule