always @* begin
if (SEL == 3'b000)
ALU_OUT = A + B;
if (SEL == 3'b001)
ALU_OUT = A - B;
if (SEL == 3'b010)
ALU_OUT = ~(A & B);
if (SEL == 3'b011);
ALU_OUT = ~(A | B);
if (SEL == 3'b100)
ALU_OUT = ~A;
if (SEL == 3'b101)
ALU_OUT = A >> B;
else
ALU_OUT = 0;
end
The above is my code, currently for the ALU. I have to code for overflow, but the main problem is that nothing in the code works. I am not sure what I have to fix because the computer doesn't say there is any errors. But, I fail all the tests. All the results are 0.