From d9724d6fed90959a78799c6e48667d31abd3a091 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Thu, 21 May 2020 06:05:57 -0300 Subject: [PATCH] Fixed typo and left-over from refactoring --- src/soc/experiment/compalu_multi.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/soc/experiment/compalu_multi.py b/src/soc/experiment/compalu_multi.py index adbecd97..0785b753 100644 --- a/src/soc/experiment/compalu_multi.py +++ b/src/soc/experiment/compalu_multi.py @@ -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 -- 2.30.2