missed out assignment in new specallocate=True StageChain mode
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 28 Mar 2019 16:38:22 +0000 (16:38 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 28 Mar 2019 16:38:22 +0000 (16:38 +0000)
src/add/singlepipe.py

index a5e00750405e16260bd9d06d8454ae04feeade05..033536a62d7778ed942f65d411e89ac6ece34215 100644 (file)
@@ -374,6 +374,7 @@ class StageChain(StageCls):
                 if self.specallocate:
                     ni = self.chain[idx+1].ispec() # new input on next loop
                     m.d.comb += eq(ni, o)          # assign to next input
+                    i = ni
                 else:
                     i = o
         self.o = o                             # last loop is the output