From: Luke Kenneth Casson Leighton Date: Fri, 22 Mar 2019 09:59:55 +0000 (+0000) Subject: sort out FPNorm1Single, conform to ispec/ospec API X-Git-Tag: ls180-24jan2020~1536 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=732255c6453cb367394eb34830e607649b7e1989;p=ieee754fpu.git sort out FPNorm1Single, conform to ispec/ospec API --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 6cd891dd..f340897f 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -1174,15 +1174,20 @@ class FPNorm1Single(FPState): def __init__(self, width, id_wid, single_cycle=True): FPState.__init__(self, "normalise_1") self.mod = FPNorm1ModSingle(width) + self.o = self.ospec() self.out_z = FPNumBase(width, False) self.out_roundz = Signal(reset_less=True) + def ispec(self): + return self.mod.ispec() + + def ospec(self): + return self.mod.ospec() + def setup(self, m, i): """ links module to inputs and outputs """ - self.mod.setup(m, i, self.out_z) - - m.d.sync += self.out_roundz.eq(self.mod.out_of.roundz) + self.mod.setup(m, i) def action(self, m): m.next = "round"