From: Luke Kenneth Casson Leighton Date: Thu, 14 Feb 2019 11:09:59 +0000 (+0000) Subject: remove a_s/b_s/z_s X-Git-Tag: ls180-24jan2020~2005 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec792e6838b139c3f479b3a3ede151cabd8ba519;p=ieee754fpu.git remove a_s/b_s/z_s --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 807c4a77..92157d41 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -76,11 +76,6 @@ class FPADD: b = FPNum(self.width) z = FPNum(self.width, 24) - # Sign - a_s = Signal() - b_s = Signal() - z_s = Signal() - guard = Signal() round_bit = Signal() sticky = Signal() @@ -202,19 +197,19 @@ class FPADD: with m.If(a.s == b.s): m.d.sync += [ tot.eq(a.m + b.m), - z_s.eq(a.s) + z.s.eq(a.s) ] # a mantissa greater than b, use a with m.Elif(a.m >= b.m): m.d.sync += [ tot.eq(a.m - b.m), - z_s.eq(a.s) + z.s.eq(a.s) ] # b mantissa greater than a, use b with m.Else(): m.d.sync += [ tot.eq(b.m - a.m), - z_s.eq(b.s) + z.s.eq(b.s) ] # ******