From 271191a2ebb499e4c62fb58944cc1226d2de76f5 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 21 Mar 2019 18:21:44 +0000 Subject: [PATCH] create ospec for FPADDBase --- src/add/nmigen_add_experiment.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.30.2