From: Luke Kenneth Casson Leighton Date: Thu, 28 Mar 2019 00:09:17 +0000 (+0000) Subject: add process function to 3 stage-chained modules X-Git-Tag: ls180-24jan2020~1454 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbf8ef90e1ca6feaccc5076aaea205a36c21f1f6;p=ieee754fpu.git add process function to 3 stage-chained modules --- 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"