From: Luke Kenneth Casson Leighton Date: Fri, 22 Mar 2019 10:21:53 +0000 (+0000) Subject: add process function to modules, about to use StageChain X-Git-Tag: ls180-24jan2020~1532 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e0e16cd01f045e406a5221dc6c5698701f27c9c;p=ieee754fpu.git add process function to modules, about to use StageChain --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index f340897f..662f1fb8 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -1021,6 +1021,9 @@ class FPNorm1ModSingle: m.submodules.normalise_1 = self m.d.comb += self.i.eq(i) + def process(self, i): + return self.o + def elaborate(self, platform): m = Module() @@ -1306,6 +1309,9 @@ class FPRoundMod: def ospec(self): return FPRoundData(self.width, self.id_wid) + def process(self, i): + return self.out_z + def setup(self, m, i): m.submodules.roundz = self m.d.comb += self.i.eq(i) @@ -1360,6 +1366,9 @@ class FPCorrectionsMod: def ospec(self): return FPRoundData(self.width, self.id_wid) + def process(self, i): + return self.out_z + def setup(self, m, i): """ links module to inputs and outputs """ @@ -1425,6 +1434,9 @@ class FPPackMod: def ospec(self): return FPPackData(self.width, self.id_wid) + def process(self, i): + return self.o + def setup(self, m, in_z): """ links module to inputs and outputs """