From c653f1b30f3d0430313d7f9e2569a09d64f3c4c1 Mon Sep 17 00:00:00 2001 From: David Harris Date: Sat, 31 Dec 2022 07:01:50 -0800 Subject: [PATCH] Fixed radix 2 k = 1 lint --- pipelined/src/fpu/fdivsqrt/fdivsqrtpreproc.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelined/src/fpu/fdivsqrt/fdivsqrtpreproc.sv b/pipelined/src/fpu/fdivsqrt/fdivsqrtpreproc.sv index 476faaaaa..0b513211f 100644 --- a/pipelined/src/fpu/fdivsqrt/fdivsqrtpreproc.sv +++ b/pipelined/src/fpu/fdivsqrt/fdivsqrtpreproc.sv @@ -115,7 +115,7 @@ module fdivsqrtpreproc ( assign RightShiftX = `RK - 1 - ((TotalIntBits - 1) % `RK); // Right shift amount assign DivXShifted = DivX >> RightShiftX; // shift X to complete in nE steps end else begin // radix 2 1 copy doesn't require shifting - assign nE = p + 1; + assign nE = p; assign DivXShifted = DivX; end /* verilator lint_on WIDTH */