From 8227091d27f8e412c8b331f902e47a565ddde3e4 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 23 Mar 2019 11:03:12 +0000 Subject: [PATCH] pass through oz to FPPack --- src/add/nmigen_add_experiment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 669e5ce5..c9b41db3 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -1330,10 +1330,11 @@ class FPRoundData: def __init__(self, width, id_wid): self.z = FPNumBase(width, False) self.out_do_z = Signal(reset_less=True) + self.oz = Signal(width, reset_less=True) self.mid = Signal(id_wid, reset_less=True) def eq(self, i): - return [self.z.eq(i.z), self.out_do_z.eq(i.out_do_z), + return [self.z.eq(i.z), self.out_do_z.eq(i.out_do_z), self.oz.eq(i.oz), self.mid.eq(i.mid)] @@ -1498,7 +1499,7 @@ class FPPackMod: with m.Else(): m.d.comb += self.o.z.create(self.i.z.s, self.i.z.e, self.i.z.m) with m.Else(): - m.d.comb += self.o.z.eq(self.i.z) + m.d.comb += self.o.z.v.eq(self.i.oz) return m -- 2.30.2