gram.core.multiplexer: Fix variable name in _Steerer
authorJean THOMAS <git0@pub.jeanthomas.me>
Fri, 7 Aug 2020 17:51:53 +0000 (19:51 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Fri, 7 Aug 2020 17:51:53 +0000 (19:51 +0200)
gram/core/multiplexer.py

index bd2e1ba5c66d87df0dfd100234be127293680cf8..0817d35623f3c6f4536ea7fd01ddc3b0325514c2 100644 (file)
@@ -184,7 +184,7 @@ class _Steerer(Elaboratable):
                 ]
 
             m.d.sync += [
-                phase.address.eq(Array(cmd.a for cmd in commands)[sel]),
+                phase.address.eq(Array(cmd.a for cmd in self.commands)[sel]),
                 phase.cas.eq(Array(valid_and(cmd, "cas") for cmd in self.commands)[sel]),
                 phase.ras.eq(Array(valid_and(cmd, "ras") for cmd in self.commands)[sel]),
                 phase.we.eq(Array(valid_and(cmd, "we") for cmd in self.commands)[sel])