Skip to content

Commit 895b4e1

Browse files
authored
ulx3s: add HDMI pins.
This commit adds the HDMI (called GDPI for licensing reasons) pins to the ULX3S platform. The constraints were taken from https://github.com/emard/ulx3s-misc/blob/master/constraints/ulx3s_v20.lpf The top bank of the ECP5 only support differential outputs, so make all differential pairs outputs.
1 parent 045747d commit 895b4e1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

nmigen_boards/ulx3s.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,21 @@ class _ULX3SPlatform(LatticeECP5Platform):
103103
Resource("diff_gpio", 1, DiffPairs("A10", "A11"), Attrs(IO_TYPE="LVCMOS33")),
104104
Resource("diff_gpio", 2, DiffPairs("A9", "B10"), Attrs(IO_TYPE="LVCMOS33")),
105105
Resource("diff_gpio", 3, DiffPairs("B9", "C10"), Attrs(IO_TYPE="LVCMOS33")),
106+
107+
# HDMI (only TX, due to the top bank of ECP5 only supporting diff. outputs)
108+
Resource("hdmi", 0,
109+
Subsignal("cec", Pins("A18", dir="io"),
110+
Attrs(IO_TYPE="LVCMOS33", DRIVE="4", PULLMODE="UP")),
111+
Subsignal("clk", DiffPairs("A17", "B18", dir="o"),
112+
Attrs(IO_TYPE="LVCMOS33D", DRIVE="4")),
113+
Subsignal("d", DiffPairs("A16 A14 A12", "B16 C14 A13", dir="o"),
114+
Attrs(IO_TYPE="LVCMOS33D", DRIVE="4")),
115+
Subsignal("eth", DiffPairs("A19", "B20", dir="o"),
116+
Attrs(IO_TYPE="LVCMOS33D", DRIVE="4")),
117+
Subsignal("scl", Pins("E12", dir="io"),
118+
Attrs(IO_TYPE="LVCMOS33", DRIVE="4", PULLMODE="UP")),
119+
Subsignal("sda", Pins("B19", dir="io"),
120+
Attrs(IO_TYPE="LVCMOS33", DRIVE="4", PULLMODE="UP"))),
106121

107122
DirectUSBResource(0,
108123
d_p="D15", d_n="E15", pullup="B12",

0 commit comments

Comments
 (0)