From aba4eb80d45f7a83f778db9fd8089d75e3f1cdcb Mon Sep 17 00:00:00 2001 From: Kevin Kim Date: Fri, 17 Feb 2023 11:02:07 -0800 Subject: [PATCH] alu bug fix - condmaskb piped in correctly instead of b --- src/ieu/alu.sv | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ieu/alu.sv b/src/ieu/alu.sv index 3bb6ba347..420cc0a3e 100644 --- a/src/ieu/alu.sv +++ b/src/ieu/alu.sv @@ -90,10 +90,10 @@ module alu #(parameter WIDTH=32) ( 3'b001: FullResult = Shift; // sll, sra, or srl 3'b010: FullResult = SLT; // slt 3'b011: FullResult = SLTU; // sltu - 3'b100: FullResult = A ^ B; // xor, binv - 3'b110: FullResult = A | B; // or, bset - 3'b111: FullResult = A & B; // and, bclr - 3'b101: FullResult = {{(WIDTH-1){1'b0}},{|(A & B)}};// bext + 3'b100: FullResult = A ^ CondMaskB; // xor, binv + 3'b110: FullResult = A | CondMaskB; // or, bset + 3'b111: FullResult = A & CondInvB; // and, bclr + 3'b101: FullResult = {{(WIDTH-1){1'b0}},{|(A & CondMaskB)}};// bext endcase end else begin