Skip to content

Commit 88e72a5

Browse files
hartytpsbourdeauducq
authored andcommitted
Sayma RTM: expose clock mezzanine gpio as a connector (#134)
1 parent 1d3433e commit 88e72a5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

migen/build/platforms/sinara/sayma_rtm.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@
123123
Subsignal("rst_n", Pins("J5")),
124124
IOStandard("LVCMOS33")
125125
),
126+
]
126127

127-
("clk_mez", 0,
128-
Subsignal("gpio", Pins("D18 C17 C18 G17"
129-
"F18 H16 G15 G15"
130-
"F15 G14 F14 H17"
131-
"H18 F17 H14 E18")),
132-
IOStandard("LVCMOS33")),
128+
_connectors = [
129+
("clk_mez", {
130+
"gpio_{}".format(num): pin for num, pin in enumerate(
131+
"D18 C17 C18 G17 F18 H16 G15 G15"
132+
"F15 G14 F14 H17 H18 F17 H14 E18".split())}),
133133
]
134134

135135

@@ -138,7 +138,8 @@ class Platform(XilinxPlatform):
138138
default_clk_period = 20.0
139139

140140
def __init__(self):
141-
XilinxPlatform.__init__(self, "xc7a15t-csg325-1", _io, toolchain="vivado")
141+
XilinxPlatform.__init__(self, "xc7a15t-csg325-1", _io, _connectors,
142+
toolchain="vivado")
142143
self.toolchain.bitstream_commands.extend([
143144
# FIXME: enable this when the XADC reference wiring is fixed
144145
# "set_property BITSTREAM.CONFIG.OVERTEMPPOWERDOWN Enable [current_design]",

0 commit comments

Comments
 (0)