From c19ba6c3f4204c885a91f8ffe76409866433f09c Mon Sep 17 00:00:00 2001 From: Harshini Srinath <93847878+harshinisrinath1001@users.noreply.github.com> Date: Sun, 11 Jun 2023 16:52:00 -0700 Subject: [PATCH] Update fsgninj.sv Program clean up --- src/fpu/fsgninj.sv | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fpu/fsgninj.sv b/src/fpu/fsgninj.sv index d9cfc9d05..cee13f4f9 100755 --- a/src/fpu/fsgninj.sv +++ b/src/fpu/fsgninj.sv @@ -27,10 +27,10 @@ //////////////////////////////////////////////////////////////////////////////////////////////// module fsgninj import cvw::*; #(parameter cvw_t P) ( - input logic Xs, Ys, // X and Y sign bits + input logic Xs, Ys, // X and Y sign bits input logic [P.FLEN-1:0] X, // X input logic [P.FMTBITS-1:0] Fmt, // format - input logic [1:0] OpCtrl, // operation control + input logic [1:0] OpCtrl, // operation control output logic [P.FLEN-1:0] SgnRes // result ); @@ -73,5 +73,4 @@ module fsgninj import cvw::*; #(parameter cvw_t P) ( endcase assign SgnRes = {SgnBits[3], X[P.Q_LEN-2:P.D_LEN], SgnBits[2], X[P.D_LEN-2:P.S_LEN], SgnBits[1], X[P.S_LEN-2:P.H_LEN], SgnBits[0], X[P.H_LEN-2:0]}; end - endmodule