enjoy-digital / liteeth

Small footprint and configurable Ethernet core
Other
217 stars 87 forks source link

mdio writes in udp config #156

Open ameetgohil opened 9 months ago

ameetgohil commented 9 months ago

Is there a way to do mdio writes when the core is configured in udp mode?

Here's my core config:

# PHY ----------------------------------------------------------------------
phy:        LiteEthPHYRMII
vendor:     xilinx
toolchain:  vivado
# Core ---------------------------------------------------------------------
clk_freq:   50e6
core:       udp
data_width: 32
endianness: big

udp_ports: {
  "udp0": {
    "data_width": 32,
    "tx_fifo_depth": 1024,
    "rx_fifo_depth": 1024,
  },
  "udp1": {
    "data_width": 32,
    "tx_fifo_depth": 1024,
    "rx_fifo_depth": 1024,
  },
}
rowanG077 commented 9 months ago

Well you can use the MDIO pins yourself to do any configuration you want. But there is no MDIO hardware module to do anything for you in liteeth. So you'd have to implement an MDIO master yourself or use one someone else made.