From: Luke Kenneth Casson Leighton Date: Tue, 23 Jul 2019 16:18:31 +0000 (+0100) Subject: add more fpsqrt specialcases X-Git-Tag: ls180-24jan2020~748 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac84630e2a687b63f8d1b51a2b58e49c1f629be3;p=ieee754fpu.git add more fpsqrt specialcases --- diff --git a/src/ieee754/fpdiv/specialcases.py b/src/ieee754/fpdiv/specialcases.py index 5c491638..62873026 100644 --- a/src/ieee754/fpdiv/specialcases.py +++ b/src/ieee754/fpdiv/specialcases.py @@ -115,7 +115,7 @@ class FPDIVSpecialCasesMod(Elaboratable): m.d.comb += self.o.z.inf(sabx) # if a is NaN return NaN - with m.If(a1.is_nan): + with m.Elif(a1.is_nan): m.d.comb += self.o.out_do_z.eq(1) m.d.comb += self.o.z.nan(0)