From f994d4329d77a4ec3300a842e55974c9ca01aaa3 Mon Sep 17 00:00:00 2001 From: Dawid Zimonczyk Date: Fri, 17 Apr 2020 11:44:53 +0200 Subject: [PATCH 1/2] remove PAK2577 --- src/fpnew_cast_multi.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fpnew_cast_multi.sv b/src/fpnew_cast_multi.sv index e21cc368..b9aff958 100644 --- a/src/fpnew_cast_multi.sv +++ b/src/fpnew_cast_multi.sv @@ -599,13 +599,13 @@ module fpnew_cast_multi #( localparam logic [EXP_BITS-1:0] QNAN_EXPONENT = '1; localparam logic [MAN_BITS-1:0] QNAN_MANTISSA = 2**(MAN_BITS-1); - + logic [FP_WIDTH-1:0] special_res_temp = {1'b0, QNAN_EXPONENT, QNAN_MANTISSA}; if (FpFmtConfig[fmt]) begin : active_format always_comb begin : special_results logic [FP_WIDTH-1:0] special_res; special_res = info_q.is_zero ? input_sign_q << FP_WIDTH-1 // signed zero - : {1'b0, QNAN_EXPONENT, QNAN_MANTISSA}; // qNaN + : special_res_temp; // qNaN // Initialize special result with ones (NaN-box) fmt_special_result[fmt] = '1; From f195181f6c2388d81a5e8dea912b6357f1f7ede3 Mon Sep 17 00:00:00 2001 From: Dawid Zimonczyk Date: Fri, 17 Apr 2020 14:19:01 +0200 Subject: [PATCH 2/2] change to localparam --- src/fpnew_cast_multi.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fpnew_cast_multi.sv b/src/fpnew_cast_multi.sv index b9aff958..6f613481 100644 --- a/src/fpnew_cast_multi.sv +++ b/src/fpnew_cast_multi.sv @@ -599,13 +599,13 @@ module fpnew_cast_multi #( localparam logic [EXP_BITS-1:0] QNAN_EXPONENT = '1; localparam logic [MAN_BITS-1:0] QNAN_MANTISSA = 2**(MAN_BITS-1); - logic [FP_WIDTH-1:0] special_res_temp = {1'b0, QNAN_EXPONENT, QNAN_MANTISSA}; + localparam logic [FP_WIDTH-1:0] QNAN = {1'b0, QNAN_EXPONENT, QNAN_MANTISSA}; if (FpFmtConfig[fmt]) begin : active_format always_comb begin : special_results logic [FP_WIDTH-1:0] special_res; special_res = info_q.is_zero ? input_sign_q << FP_WIDTH-1 // signed zero - : special_res_temp; // qNaN + : QNAN; // qNaN // Initialize special result with ones (NaN-box) fmt_special_result[fmt] = '1;