From: Luke Kenneth Casson Leighton Date: Thu, 21 Mar 2019 18:21:44 +0000 (+0000) Subject: create ospec for FPADDBase X-Git-Tag: ls180-24jan2020~1565 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=271191a2ebb499e4c62fb58944cc1226d2de76f5;p=ieee754fpu.git create ospec for FPADDBase --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 3e148fe4..8f5ce040 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -1567,13 +1567,16 @@ class FPADDBaseMod(FPID): self.in_t = Trigger() self.i = self.ispec() - self.out_z = FPOp(width) + self.out_z = self.ospec() self.states = [] def ispec(self): return FPADDBaseData(self.width, self.id_wid) + def ospec(self): + return FPOp(self.width) + def add_state(self, state): self.states.append(state) return state @@ -1694,6 +1697,9 @@ class FPADDBase(FPState, FPID): def ispec(self): return self.mod.ispec() + def ospec(self): + return self.mod.ospec() + def setup(self, m, i, add_stb, in_mid, out_z, out_mid): self.out_z = out_z self.out_mid = out_mid