lasmicon/multiplexer: fix rdcmdphase/wrcmdphase inversion
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 8 Sep 2013 10:48:35 +0000 (12:48 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 8 Sep 2013 10:57:23 +0000 (12:57 +0200)
milkymist/lasmicon/multiplexer.py

index b608aae63fd8e2449b36d8b89c2f3b4dbd9b43e5..2f023ac77eee8d7e73d8930d9ef14f9a09aad5d6 100644 (file)
@@ -162,12 +162,12 @@ class Multiplexer(Module, AutoCSR):
                                if r_w_n == "read":
                                        if i == phy_settings.rdphase:
                                                s = steerer.sel[i].eq(STEER_REQ)
-                                       elif i == phy_settings.wrcmdphase:
+                                       elif i == phy_settings.rdcmdphase:
                                                s = steerer.sel[i].eq(STEER_CMD)
                                elif r_w_n == "write":
                                        if i == phy_settings.wrphase:
                                                s = steerer.sel[i].eq(STEER_REQ)
-                                       elif i == phy_settings.rdcmdphase:
+                                       elif i == phy_settings.wrcmdphase:
                                                s = steerer.sel[i].eq(STEER_CMD)
                                else:
                                        raise ValueError