Fixed radix 2 k = 1 lint

This commit is contained in:
David Harris 2022-12-31 07:01:50 -08:00
parent a69a3e6eee
commit c653f1b30f

View File

@ -115,7 +115,7 @@ module fdivsqrtpreproc (
assign RightShiftX = `RK - 1 - ((TotalIntBits - 1) % `RK); // Right shift amount assign RightShiftX = `RK - 1 - ((TotalIntBits - 1) % `RK); // Right shift amount
assign DivXShifted = DivX >> RightShiftX; // shift X to complete in nE steps assign DivXShifted = DivX >> RightShiftX; // shift X to complete in nE steps
end else begin // radix 2 1 copy doesn't require shifting end else begin // radix 2 1 copy doesn't require shifting
assign nE = p + 1; assign nE = p;
assign DivXShifted = DivX; assign DivXShifted = DivX;
end end
/* verilator lint_on WIDTH */ /* verilator lint_on WIDTH */