Skip to content

Commit

Permalink
bench/serwb/efinix_trion_t120_bga576_dev_kit: fix by adding serial in…
Browse files Browse the repository at this point in the history
…terface instead of using platform definition (usb-uart)
  • Loading branch information
trabucayre committed Nov 17, 2023
1 parent 0a4c452 commit 58bec35
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bench/serwb/efinix_trion_t120_bga576_dev_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
Subsignal("rx_p", Pins(f"{slave_connector}:7"), IOStandard("1.8_V_LVCMOS")),
Subsignal("rx_n", Pins(f"{slave_connector}:9"), IOStandard("1.8_V_LVCMOS")),
),

# USB-UART PMOD: https://store.digilentinc.com/pmod-usbuart-usb-to-uart-interface/
("serial", 0,
Subsignal("tx", Pins("pmod_e:1")),
Subsignal("rx", Pins("pmod_e:2")),
IOStandard("3.3_V_LVTTL_/_LVCMOS")
),
]

# CRG ----------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -83,9 +90,6 @@ class SerWBTestSoC(SoCMini):
def __init__(self, platform, with_analyzer=True):
sys_clk_freq = 40e6

# USBUART PMOD as Serial--------------------------------------------------------------------
platform.add_extension(efinix_trion_t120_bga576_dev_kit.usb_pmod_io("pmod_e"))

# CRG --------------------------------------------------------------------------------------
self.crg = _CRG(platform, sys_clk_freq)

Expand Down

0 comments on commit 58bec35

Please sign in to comment.