Skip to content

Commit

Permalink
phy: use multibit io
Browse files Browse the repository at this point in the history
now that enjoy-digital/litex#2105 is merged,
we can simplify the SDR IO in the phy.

Signed-off-by: Fin Maaß <[email protected]>
  • Loading branch information
maass-hamburg committed Jan 15, 2025
1 parent 443ad91 commit f3e8515
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions litesdcard/phy.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,14 +537,13 @@ def __init__(self, clocker, sdpads, pads):
)

# Data
for i in range(4):
self.specials += SDRTristate(
clk = ClockSignal("sys"),
io = pads.data[i],
o = sdpads.data.o[i],
oe = sdpads.data.oe,
i = sdpads.data.i[i],
)
self.specials += SDRTristate(
clk = ClockSignal("sys"),
io = pads.data,
o = sdpads.data.o,
oe = Replicate(sdpads.data.oe, len(pads.data)),
i = sdpads.data.i,
)
self.add_data_i_ce(clocker, sdpads)

# Direction (optional)
Expand Down

0 comments on commit f3e8515

Please sign in to comment.