Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

efinix_trion_t120_bga576_dev_kit.py: fixed/rewire rx_ctl/tx_ctl (not compatible with DDIO mode), added message at build time #608

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions litex_boards/platforms/efinix_trion_t120_bga576_dev_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@
),

("eth", 0,
Subsignal("rx_ctl", Pins("F24")),
#Subsignal("rx_ctl", Pins("F24")), # Can't be used as DDIO
Subsignal("rx_ctl", Pins("M22")), # A wire must be soldered between R120 and R174
Subsignal("rx_data", Pins("J20 K20 J19 H20")),
Subsignal("tx_ctl", Pins("G24")),
#Subsignal("tx_ctl", Pins("G24")), # Can't be used as DDIO
Subsignal("tx_ctl", Pins("M21")), # A wire must be soldered between ETH1_TXEN (Pad 30) and R173
Subsignal("tx_data", Pins("L23 L22 K21 K19")),
Subsignal("rst_n", Pins("F21")),
Subsignal("mdc", Pins("G21")),
Expand Down
9 changes: 9 additions & 0 deletions litex_boards/targets/efinix_trion_t120_bga576_dev_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# Copyright (c) 2021 Florent Kermarrec <[email protected]>
# SPDX-License-Identifier: BSD-2-Clause

import time

from migen import *
from migen.genlib.resetsync import AsyncResetSynchronizer

Expand Down Expand Up @@ -94,6 +96,13 @@ def __init__(self, sys_clk_freq=75e6,
if with_ethernet or with_etherbone:
# Use board's Ethernet PHYs.
if not eth_rmii_pmod:
msg = "\n"
msg += "rx_ctl/tx_ctl pads location aren't compatible with DDIO mode.\n"
msg += "An hardware modification must be done:\n"
msg += "- rx_ctl: a wire must be soldered between R120 and R174\n"
msg += "- tx_ctl: a wire must be soldered between ETH1_TXEN (Pad 30) and R173\n"
print(msg)
time.sleep(2)
self.ethphy = LiteEthPHYRGMII(
platform = platform,
clock_pads = platform.request("eth_clocks", eth_phy),
Expand Down