From ec792e6838b139c3f479b3a3ede151cabd8ba519 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 14 Feb 2019 11:09:59 +0000 Subject: [PATCH] remove a_s/b_s/z_s --- src/add/nmigen_add_experiment.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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) ] # ****** -- 2.30.2