Skip to content

Commit 6bbca0e

Browse files
committed
platforms/digilent_nexys_video: add PMOD connectors
1 parent a17e439 commit 6bbca0e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

litex_boards/platforms/digilent_nexys_video.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@
180180
# Connectors ---------------------------------------------------------------------------------------
181181

182182
_connectors = [
183+
("pmoda", "AB22 AB21 AB20 AB18 Y21 AA21 AA20 AA18"),
184+
("pmodb", "V9 V8 V7 W7 W9 Y9 Y8 Y7"),
185+
("pmodc", "Y6 AA6 AA8 AB8 R6 T6 AB7 AB6"),
183186
("LPC", {
184187
"DP0_C2M_P" : "D7",
185188
"DP0_C2M_N" : "C7",
@@ -263,6 +266,22 @@
263266
)
264267
]
265268

269+
# PMODS --------------------------------------------------------------------------------------------
270+
271+
def raw_pmod_io(pmod):
272+
return [(pmod, 0, Pins(" ".join([f"{pmod}:{i:d}" for i in range(8)])), IOStandard("LVCMOS33"))]
273+
274+
def usb_pmod_io(pmod):
275+
return [
276+
# USB-UART PMOD: https://store.digilentinc.com/pmod-usbuart-usb-to-uart-interface/
277+
("usb_uart", 0,
278+
Subsignal("tx", Pins(f"{pmod}:1")),
279+
Subsignal("rx", Pins(f"{pmod}:2")),
280+
IOStandard("LVCMOS33")
281+
),
282+
]
283+
_usb_uart_pmod_io = usb_pmod_io("pmodb") # USB-UART PMOD on JB.
284+
266285
# Platform -----------------------------------------------------------------------------------------
267286

268287
class Platform(Xilinx7SeriesPlatform):

0 commit comments

Comments
 (0)