We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 694f2bd commit 3378fcbCopy full SHA for 3378fcb
rtl/core/alu_control.sv
@@ -39,7 +39,7 @@ always_comb begin : ALU_CONTROL
39
40
2'b10: // Operações de ALU
41
unique case (FUNC3_i)
42
- 3'b000: ALU_OP_o = (is_immediate_i || !FUNC7_i[5]) ? SUM : SUB; // ADD/SUB
+ 3'b000: ALU_OP_o = (!is_immediate_i && FUNC7_i[5]) ? SUB : SUM; // ADD/SUB
43
3'b001: ALU_OP_o = SHIFT_LEFT; // SLLI / SLL
44
3'b010: ALU_OP_o = SLT; // SLTI / SLT
45
3'b011: ALU_OP_o = SLT_U; // SLTIU / SLTU
0 commit comments