Fixed typo and left-over from refactoring
authorCesar Strauss <cestrauss@gmail.com>
Thu, 21 May 2020 09:05:57 +0000 (06:05 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Thu, 21 May 2020 09:13:46 +0000 (06:13 -0300)
src/soc/experiment/compalu_multi.py

index adbecd97bf08ddcb3b31deb6aa8e757cd68bb741..0785b753e669bca1b9f235191396cc85d4cf6baa 100644 (file)
@@ -83,7 +83,7 @@ class CompUnitRecord(RecordObject):
             j = i + 1 # name numbering to match dest1/2...
             name = "dest%d_i" % j
             dreg = Signal(rwid, name=name, reset_less=True)
-            setattr(self, name, sreg)
+            setattr(self, name, dreg)
             dst.append(dreg)
         self._dest = dst
 
@@ -113,7 +113,6 @@ class MultiCompUnit(Elaboratable):
             name = "src%d_i" % j
             setattr(self, name, getattr(cu, name))
 
-        dst = []
         for i in range(n_dst):
             j = i + 1 # name numbering to match dest1/2...
             name = "dest%d_i" % j