From 6e0e16cd01f045e406a5221dc6c5698701f27c9c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 22 Mar 2019 10:21:53 +0000 Subject: [PATCH] add process function to modules, about to use StageChain --- src/add/nmigen_add_experiment.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 """ -- 2.30.2