whoops cut/paste error, n_src used instead of n_dst on loop
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 19 Apr 2020 18:54:05 +0000 (19:54 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 19 Apr 2020 18:54:05 +0000 (19:54 +0100)
src/soc/experiment/compalu_multi.py

index 26c6c8e8151a55b5f7cd8b2bfaada3bb83e3c8b4..10a2b4110ee993af50d813da3183cbe6c8783288 100644 (file)
@@ -56,7 +56,7 @@ class ComputationUnitNoDelay(Elaboratable):
             src.append(Signal(rwid, name="src%d_i" % j, reset_less=True))
 
         dst = []
-        for i in range(n_src):
+        for i in range(n_dst):
             j = i + 1 # name numbering to match dest1/2...
             dst.append(Signal(rwid, name="dest%d_i" % j, reset_less=True))