fix name bug in specallocate
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 27 Apr 2019 13:14:18 +0000 (14:14 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 27 Apr 2019 13:14:18 +0000 (14:14 +0100)
src/add/singlepipe.py

index 24565a4f15ed56172b6ead0605a797a1fbe26ba3..4222e4694c8994ff43755e7c8eadf4d35f16dea5 100644 (file)
@@ -640,8 +640,8 @@ class StageChain(StageCls):
             m.d.comb += eq(o, c.process(i)) # process input into "o"
             if idx == len(self.chain)-1:
                 break
-            i = self.chain[idx+1].ispec     # new input on next loop
-            i = _spec(ifn, 'chainin%d' % idx+1)
+            ifn = self.chain[idx+1].ispec   # new input on next loop
+            i = _spec(ifn, 'chainin%d' % (idx+1))
             m.d.comb += eq(i, o)            # assign to next input
         return o                            # last loop is the output