From 9f1c1958a60402f098d2dc413f1e8d3ddea01bd0 Mon Sep 17 00:00:00 2001 From: David Harris Date: Fri, 24 Mar 2023 08:35:33 -0700 Subject: [PATCH] Query about CondExtA --- src/ieu/alu.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ieu/alu.sv b/src/ieu/alu.sv index 47af5f4d..15328bb2 100644 --- a/src/ieu/alu.sv +++ b/src/ieu/alu.sv @@ -52,9 +52,9 @@ module alu #(parameter WIDTH=32) ( logic LT, LTU; // Less than, Less than unsigned logic Asign, Bsign; // Sign bits of A, B - // A, A sign bit muxes + // *** explain this part better; possibly move into shifter and BMU? if (WIDTH == 64) begin - mux3 #(64) extendmux({{32{1'b0}}, A[31:0]},{{32{A[31]}}, A[31:0]}, A, {~W64, SubArith}, CondExtA); // bottom 32 bits are always A[31:0], so effectively a 32-bit upper mux + mux3 #(64) extendmux({{32{1'b0}}, A[31:0]}, {{32{A[31]}}, A[31:0]}, A, {~W64, SubArith}, CondExtA); // bottom 32 bits are always A[31:0], so effectively a 32-bit upper mux end else begin assign CondExtA = A; end