From ac84630e2a687b63f8d1b51a2b58e49c1f629be3 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 23 Jul 2019 17:18:31 +0100 Subject: [PATCH] add more fpsqrt specialcases --- src/ieee754/fpdiv/specialcases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2