fixed normshift calculations

This commit is contained in:
cturek 2022-12-21 19:35:47 +00:00
parent e4579f3e9b
commit c479b9f112

View File

@ -127,10 +127,10 @@ module fdivsqrtpostproc(
always_comb
if (RemOpM) begin
NormShiftM = (m + (`DIVBLEN)'(`DIVa));
NormShiftM = (m + (`DIVBLEN+1)'(`DIVa));
PreResultM = IntRemM;
end else begin
NormShiftM = ((`DIVBLEN)'(`DIVb) - (n << `LOGR));
NormShiftM = ((`DIVBLEN+1)'(`DIVb) - (n << `LOGR));
PreResultM = {3'b000, IntQuotM};
end