From fa5e012497b1112e38aab538765188797a068520 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 21 Mar 2019 21:16:55 +0000 Subject: [PATCH] remove self.o from FPAddAlignSingleAdd, make local --- src/add/nmigen_add_experiment.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 457a2fc7..25beadde 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -713,7 +713,6 @@ class FPAddAlignSingleAdd(FPState, FPID): FPID.__init__(self, id_wid) self.width = width self.id_wid = id_wid - self.o = self.ispec() self.a1o = self.ospec() def ispec(self): @@ -727,10 +726,11 @@ class FPAddAlignSingleAdd(FPState, FPID): """ mod = FPAddAlignSingleMod(self.width, self.id_wid) mod.setup(m, i) - m.d.comb += self.o.eq(mod.o) + o = mod.ospec() + m.d.comb += o.eq(mod.o) a0mod = FPAddStage0Mod(self.width, self.id_wid) - a0mod.setup(m, self.o) + a0mod.setup(m, o) a0o = a0mod.ospec() m.d.comb += a0o.eq(a0mod.o) -- 2.30.2