Skip to content

Commit a8545fc

Browse files
committedFeb 22, 2016
targets/kc705: set up user_sma_gpio_n like other TTLs
1 parent 61bcfb6 commit a8545fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎artiq/gateware/targets/kc705.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ def __init__(self, cpu_type="or1k", **kwargs):
173173
self.submodules += phy
174174
rtio_channels.append(rtio.Channel.from_phy(phy))
175175

176-
phy = ttl_simple.Inout(platform.request("user_sma_gpio_n"))
176+
phy = ttl_serdes_7series.Inout_8X(platform.request("user_sma_gpio_n"))
177177
self.submodules += phy
178-
rtio_channels.append(rtio.Channel.from_phy(phy))
178+
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
179179
phy = ttl_simple.Output(platform.request("user_led", 2))
180180
self.submodules += phy
181181
rtio_channels.append(rtio.Channel.from_phy(phy))
@@ -228,9 +228,9 @@ def __init__(self, cpu_type="or1k", **kwargs):
228228
self.submodules += phy
229229
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
230230

231-
phy = ttl_simple.Inout(platform.request("user_sma_gpio_n"))
231+
phy = ttl_serdes_7series.Inout_8X(platform.request("user_sma_gpio_n"))
232232
self.submodules += phy
233-
rtio_channels.append(rtio.Channel.from_phy(phy))
233+
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
234234

235235
phy = ttl_simple.Output(platform.request("user_led", 2))
236236
self.submodules += phy
@@ -278,9 +278,9 @@ def __init__(self, cpu_type="or1k", **kwargs):
278278
self.submodules += phy
279279
rtio_channels.append(rtio.Channel.from_phy(phy))
280280

281-
phy = ttl_simple.Inout(platform.request("user_sma_gpio_n"))
281+
phy = ttl_serdes_7series.Inout_8X(platform.request("user_sma_gpio_n"))
282282
self.submodules += phy
283-
rtio_channels.append(rtio.Channel.from_phy(phy))
283+
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
284284
phy = ttl_simple.Output(platform.request("user_led", 2))
285285
self.submodules += phy
286286
rtio_channels.append(rtio.Channel.from_phy(phy))

0 commit comments

Comments
 (0)
Please sign in to comment.