X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fieee754%2Ffpdiv%2Fpipeline.py;h=119db0f57f626438d4100e7a331d13cb125fc6b3;hb=bd7b46e1ac553b544ee278c0f95754f10be26da3;hp=b265bd18e4166612c3a01331a2c7f710673ea0a8;hpb=f742ff35b0434224adae1270b0a1e66109f7eea4;p=ieee754fpu.git diff --git a/src/ieee754/fpdiv/pipeline.py b/src/ieee754/fpdiv/pipeline.py index b265bd18..119db0f5 100644 --- a/src/ieee754/fpdiv/pipeline.py +++ b/src/ieee754/fpdiv/pipeline.py @@ -159,10 +159,10 @@ class FPDIVMuxInOut(ReservationStations): fmt = FPFormat.standard(width) log2_radix = 2 - # ...4 extra bits on the mantissa: MSB is zero, MSB-1 is 1 - # then there is guard and round at the LSB end. + # ...5 extra bits on the mantissa: MSB is zero, MSB-1 is 1 + # then there is guard, round and sticky at the LSB end. # also: round up to nearest radix - fmt.m_width = roundup(fmt.m_width + 4, log2_radix) + fmt.m_width = roundup(fmt.m_width + 5, log2_radix) cfg = DivPipeCoreConfig(fmt.m_width, fmt.fraction_width, log2_radix)