module add3_ge5 (in,out); input [3:0] in; output reg [3:0] out; always @ (in) if (in >= 4'd5) out <= in + 4'd3; else out <= in; endmodule