diff options
| author | GuzTech <GuzTech@users.noreply.github.com> | 2020-11-24 23:34:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-24 22:34:31 +0000 |
| commit | 895b4e12c7e97d000fc68ca12bb87e3465c18a15 (patch) | |
| tree | 89ef18d6669d843b450d068bfd041beb9cd00640 /nmigen_boards/ulx3s.py | |
| parent | 045747da0ab3de156da1366551f57a63be4c2717 (diff) | |
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.
Diffstat (limited to 'nmigen_boards/ulx3s.py')
| -rw-r--r-- | nmigen_boards/ulx3s.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nmigen_boards/ulx3s.py b/nmigen_boards/ulx3s.py index d4e1c88..5f9c924 100644 --- a/nmigen_boards/ulx3s.py +++ b/nmigen_boards/ulx3s.py @@ -103,6 +103,21 @@ class _ULX3SPlatform(LatticeECP5Platform): Resource("diff_gpio", 1, DiffPairs("A10", "A11"), Attrs(IO_TYPE="LVCMOS33")), Resource("diff_gpio", 2, DiffPairs("A9", "B10"), Attrs(IO_TYPE="LVCMOS33")), Resource("diff_gpio", 3, DiffPairs("B9", "C10"), Attrs(IO_TYPE="LVCMOS33")), + + # HDMI (only TX, due to the top bank of ECP5 only supporting diff. outputs) + Resource("hdmi", 0, + Subsignal("cec", Pins("A18", dir="io"), + Attrs(IO_TYPE="LVCMOS33", DRIVE="4", PULLMODE="UP")), + Subsignal("clk", DiffPairs("A17", "B18", dir="o"), + Attrs(IO_TYPE="LVCMOS33D", DRIVE="4")), + Subsignal("d", DiffPairs("A16 A14 A12", "B16 C14 A13", dir="o"), + Attrs(IO_TYPE="LVCMOS33D", DRIVE="4")), + Subsignal("eth", DiffPairs("A19", "B20", dir="o"), + Attrs(IO_TYPE="LVCMOS33D", DRIVE="4")), + Subsignal("scl", Pins("E12", dir="io"), + Attrs(IO_TYPE="LVCMOS33", DRIVE="4", PULLMODE="UP")), + Subsignal("sda", Pins("B19", dir="io"), + Attrs(IO_TYPE="LVCMOS33", DRIVE="4", PULLMODE="UP"))), DirectUSBResource(0, d_p="D15", d_n="E15", pullup="B12", |
