Skip to content

Commit f3e8515

Browse files
committed
phy: use multibit io
now that enjoy-digital/litex#2105 is merged, we can simplify the SDR IO in the phy. Signed-off-by: Fin Maaß <[email protected]>
1 parent 443ad91 commit f3e8515

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

litesdcard/phy.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -537,14 +537,13 @@ def __init__(self, clocker, sdpads, pads):
537537
)
538538

539539
# Data
540-
for i in range(4):
541-
self.specials += SDRTristate(
542-
clk = ClockSignal("sys"),
543-
io = pads.data[i],
544-
o = sdpads.data.o[i],
545-
oe = sdpads.data.oe,
546-
i = sdpads.data.i[i],
547-
)
540+
self.specials += SDRTristate(
541+
clk = ClockSignal("sys"),
542+
io = pads.data,
543+
o = sdpads.data.o,
544+
oe = Replicate(sdpads.data.oe, len(pads.data)),
545+
i = sdpads.data.i,
546+
)
548547
self.add_data_i_ce(clocker, sdpads)
549548

550549
# Direction (optional)

0 commit comments

Comments
 (0)