From: Luke Kenneth Casson Leighton Date: Thu, 14 Feb 2019 08:51:18 +0000 (+0000) Subject: corrections on compile X-Git-Tag: ls180-24jan2020~2020^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83d0325f6318204db17f7a3edae5429cc588e8d3;p=ieee754fpu.git corrections on compile --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index e23bb8a7..b9c91cc3 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -220,14 +220,14 @@ class FPADD: z_s.eq(a_s) ] # a mantissa greater than b, use a - with m.Else(a_m >= b_m): + with m.Elif(a_m >= b_m): m.d.sync += [ tot.eq(a_m - b_m), z_s.eq(a_s) ] # b mantissa greater than a, use b with m.Else(): - m.sync += [ + m.d.sync += [ tot.eq(b_m - a_m), z_s.eq(b_s) ]