sub, and, or don't always work
This commit is contained in:
@ -244,13 +244,13 @@ always @(*) begin
|
||||
s_ex_alu_out = s_ex_data1 + (s_ex_data2 ^ {32{r_ex_alu_seed}}) + r_ex_alu_seed;
|
||||
end
|
||||
ALUOP_XOR: begin
|
||||
s_ex_alu_out = (|s_ex_data1) ^ (|s_ex_data2);
|
||||
s_ex_alu_out = s_ex_data1 ^ s_ex_data2;
|
||||
end
|
||||
ALUOP_OR: begin
|
||||
s_ex_alu_out = (|s_ex_data1) | (|s_ex_data2);
|
||||
s_ex_alu_out = s_ex_data1 | s_ex_data2;
|
||||
end
|
||||
ALUOP_AND: begin
|
||||
s_ex_alu_out = (|s_ex_data1) & (|s_ex_data2);
|
||||
s_ex_alu_out = s_ex_data1 & s_ex_data2;
|
||||
end
|
||||
ALUOP_SL: begin
|
||||
s_ex_alu_out = s_ex_data1 << s_ex_data2;
|
||||
|
Reference in New Issue
Block a user