From: Luke Kenneth Casson Leighton Date: Mon, 8 Apr 2019 04:09:07 +0000 (+0100) Subject: simplify StageChain.specallocate_setup X-Git-Tag: ls180-24jan2020~1289 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e49e349802ce35f8137b0d838083c4118c703a9;p=ieee754fpu.git simplify StageChain.specallocate_setup --- diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index af6b711b..54340280 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -410,10 +410,9 @@ class StageChain(StageCls): o = self.chain[idx].ospec() # last assignment survives m.d.comb += eq(o, c.process(i)) # process input into "o" if idx == len(self.chain)-1: - continue - ni = self.chain[idx+1].ispec() # new input on next loop - m.d.comb += eq(ni, o) # assign to next input - i = ni + break + i = self.chain[idx+1].ispec() # new input on next loop + m.d.comb += eq(i, o) # assign to next input return o # last loop is the output def _noallocate_setup(self, m, i):