From: Luke Kenneth Casson Leighton Date: Wed, 24 Jul 2019 10:11:53 +0000 (+0100) Subject: reduce LHS for RSQRT by a factor of fract_width and X-Git-Tag: ls180-24jan2020~736 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6149c74b64a00d0ca8059468e8709ccb200e301;p=ieee754fpu.git reduce LHS for RSQRT by a factor of fract_width and "sensible answers" start appearing from the div/sqrt/rsqrt algorithm --- diff --git a/src/ieee754/div_rem_sqrt_rsqrt/core.py b/src/ieee754/div_rem_sqrt_rsqrt/core.py index adc68ffc..2e524038 100644 --- a/src/ieee754/div_rem_sqrt_rsqrt/core.py +++ b/src/ieee754/div_rem_sqrt_rsqrt/core.py @@ -249,7 +249,7 @@ class DivPipeCoreSetupStage(Elaboratable): self.i.divisor_radicand << (self.core_config.fract_width * 2)) with m.Else(): # DivPipeCoreOperation.RSqrtRem m.d.comb += self.o.compare_lhs.eq( - 1 << (self.core_config.fract_width * 3)) + 1 << (self.core_config.fract_width * 2)) m.d.comb += self.o.compare_rhs.eq(0) m.d.comb += self.o.operation.eq(self.i.operation)