From 6e49e349802ce35f8137b0d838083c4118c703a9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 8 Apr 2019 05:09:07 +0100 Subject: [PATCH] simplify StageChain.specallocate_setup --- src/add/singlepipe.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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): -- 2.30.2