lasmicon/multiplexer: fix rdcmdphase/wrcmdphase inversion

This commit is contained in:
Florent Kermarrec 2013-09-08 12:48:35 +02:00 committed by Sebastien Bourdeauducq
parent d0edb7e2b8
commit a0f0285bb9

View file

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