names of attributes needs to be dest_o not dest_i
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 29 May 2020 12:30:06 +0000 (13:30 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 29 May 2020 12:30:06 +0000 (13:30 +0100)
src/soc/experiment/compalu_multi.py

index 7b1938e5ec550b29bdb350315fd1c6cbc5cde9d9..f17fb6bbfdd393f101f16e00be4da9529f0bdd80 100644 (file)
@@ -69,7 +69,7 @@ class CompUnitRecord(RegSpec, RecordObject):
         dst = []
         for i in range(n_dst):
             j = i + 1 # name numbering to match dest1/2...
-            name = "dest%d_i" % j
+            name = "dest%d_o" % j
             rw = self._get_dstwid(i)
             dreg = Signal(rw, name=name, reset_less=True)
             setattr(self, name, dreg)
@@ -116,7 +116,7 @@ class MultiCompUnit(RegSpecALUAPI, Elaboratable):
         # convenience names for dest operands
         for i in range(n_dst):
             j = i + 1 # name numbering to match dest1/2...
-            name = "dest%d_i" % j
+            name = "dest%d_o" % j
             setattr(self, name, getattr(cu, name))
 
         # more convenience names