mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
8 lines
318 B
Python
8 lines
318 B
Python
def UARTPHY(pads, *args, **kwargs):
|
|
# Autodetect PHY
|
|
if hasattr(pads, "source_stb"):
|
|
from misoc.com.uart.phy.sim import UARTPHYSim
|
|
return UARTPHYSim(pads, *args, **kwargs)
|
|
else:
|
|
from misoc.com.uart.phy.serial import UARTPHYSerial
|
|
return UARTPHYSerial(pads, *args, **kwargs)
|