From c836eea17c1ad9a7d0962a2199235cc5ff6b5bd7 Mon Sep 17 00:00:00 2001 From: Kevin Kim Date: Fri, 3 Mar 2023 12:35:40 -0800 Subject: [PATCH] sltD logic optimize --- src/ieu/controller.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ieu/controller.sv b/src/ieu/controller.sv index e20d29aeb..4c8376d75 100644 --- a/src/ieu/controller.sv +++ b/src/ieu/controller.sv @@ -216,7 +216,7 @@ module controller( //NOTE: Move the B conditional logic into bctrl if (`ZBA_SUPPORTED) begin // ALU Decoding is more comprehensive when ZBA is supported. Only conflict with Funct3 is with slt instructionsb - assign sltD = (Funct3D == 3'b010 & (~BSelectD[3])); + assign sltD = (Funct3D == 3'b010 & ~(Funct7D[4])); end else begin assign sltD = (Funct3D == 3'b010); end