From f3e851593ac393b179a03a9c24f23c6a0642a984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Wed, 15 Jan 2025 10:08:19 +0100 Subject: [PATCH] phy: use multibit io MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit now that https://github.com/enjoy-digital/litex/pull/2105 is merged, we can simplify the SDR IO in the phy. Signed-off-by: Fin Maaß --- litesdcard/phy.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/litesdcard/phy.py b/litesdcard/phy.py index d943d0b..e5260b3 100644 --- a/litesdcard/phy.py +++ b/litesdcard/phy.py @@ -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)