From 53cf8aae6ffb355ce65a554e8987cb4fcb13c226 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 27 Feb 2019 15:04:00 +0000 Subject: [PATCH] remove tot from FPADD, use chain --- src/add/nmigen_add_experiment.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index c47c3eb1..884630e4 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -278,7 +278,6 @@ class FPAddStage0(FPState): def action(self, m): m.next = "add_1" - m.d.sync += self.tot.eq(self.out_tot) m.d.sync += self.z.copy(self.out_z) @@ -603,7 +602,6 @@ class FPADD: m.submodules.fpnum_z = z w = z.m_width + 4 - tot = Signal(w, reset_less=True) # sticky/round/guard, {mantissa} result, 1 overflow of = Overflow() m.submodules.overflow = of @@ -639,7 +637,7 @@ class FPADD: add0 = self.add_state(FPAddStage0(self.width)) add0.set_inputs({"a": a, "b": b}) - add0.set_outputs({"z": z, "tot": tot}) + add0.set_outputs({"z": z}) add0.mod.setup(m, a, b, z, add0.out_z, add0.out_tot) m.submodules.add0 = add0.mod -- 2.30.2