Skip to content

Commit

Permalink
phy: rmii: 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 rmii phy.

Signed-off-by: Fin Maaß <[email protected]>
  • Loading branch information
maass-hamburg committed Jan 15, 2025
1 parent 4284540 commit 3e4ef0f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions liteeth/phy/rmii.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ def __init__(self, pads, clk_signal):

# Output (Sync).
# --------------
self.specials += SDROutput(i=converter.source.valid, o=pads.tx_en, clk=clk_signal)
for i in range(2):
self.specials += SDROutput(i=converter.source.data[i], o=pads.tx_data[i], clk=clk_signal)
self.specials += SDROutput(i=converter.source.valid, o=pads.tx_en, clk=clk_signal)
self.specials += SDROutput(i=converter.source.data, o=pads.tx_data, clk=clk_signal)


# LiteEth PHY RMII RX ------------------------------------------------------------------------------
Expand All @@ -83,9 +82,8 @@ def __init__(self, pads, clk_signal):
# -------------
crs_dv_i = Signal()
rx_data_i = Signal(2)
self.specials += SDRInput(i=pads.crs_dv, o=crs_dv_i, clk=clk_signal)
for i in range(2):
self.specials += SDRInput(i=pads.rx_data[i], o=rx_data_i[i], clk=clk_signal)
self.specials += SDRInput(i=pads.crs_dv, o=crs_dv_i, clk=clk_signal)
self.specials += SDRInput(i=pads.rx_data, o=rx_data_i, clk=clk_signal)

# Speed Timer for 10Mbps/100Mbps.
# -------------------------------
Expand Down

0 comments on commit 3e4ef0f

Please sign in to comment.