From 5b36993b00e1a78985528df976360d21a31c6097 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 23 Mar 2019 09:44:48 +0000 Subject: [PATCH] pass output from specialcases through to denorm even if not handled --- src/add/nmigen_add_experiment.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 9746da64..2b1b760c 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -375,9 +375,11 @@ class FPAddSpecialCasesMod: m.d.comb += self.o.out_do_z.eq(1) m.d.comb += self.o.z.zero(0) - # Denormalised Number checks + # Denormalised Number checks next, so pass a/b data through with m.Else(): m.d.comb += self.o.out_do_z.eq(0) + m.d.comb += self.o.a.eq(self.i.a) + m.d.comb += self.o.b.eq(self.i.b) m.d.comb += self.o.mid.eq(self.i.mid) @@ -445,7 +447,7 @@ class FPAddSpecialCasesDeNorm(FPState): """ links module to inputs and outputs """ self.smod.setup(m, i) - self.dmod.setup(m, i) + self.dmod.setup(m, self.smod.o) m.d.comb += self.out_do_z.eq(self.smod.o.out_do_z) # out_do_z=True -- 2.30.2