Do not mix blocking and non-blocking assignments for different bits of the same signal.
always @(in1)
begin
if (in2)
out1 = in1;
end else
out1 <= in2;
Do not mix blocking and non-blocking assignments for different bits of the same signal.
always @(in1)
begin
if (in2)
out1 = in1;
end else
out1 <= in2;