From fbf8ef90e1ca6feaccc5076aaea205a36c21f1f6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 28 Mar 2019 00:09:17 +0000 Subject: [PATCH] add process function to 3 stage-chained modules --- src/add/nmigen_add_experiment.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index b7c771f7..8bcccf4c 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -459,6 +459,9 @@ class FPAddSpecialCasesDeNorm(FPState): # out_do_z=False m.d.sync += self.o.eq(self.dmod.o) + def process(self, i): + return self.o + def action(self, m): #with m.If(self.out_do_z): # m.next = "put_z" @@ -763,6 +766,9 @@ class FPAddAlignSingleAdd(FPState): m.d.sync += self.a1o.eq(a1mod.o) + def process(self, i): + return self.a1o + def action(self, m): m.next = "normalise_1" @@ -1323,6 +1329,9 @@ class FPNormToPack(FPState): m.d.sync += self.out_z.mid.eq(pmod.o.mid) m.d.sync += self.out_z.z.v.eq(pmod.o.z.v) # outputs packed result + def process(self, i): + return self.out_z + def action(self, m): m.next = "pack_put_z" -- 2.30.2