117_rtio_channels #147
@ -88,6 +88,17 @@ si5324_fmc33 = [
|
||||
),
|
||||
]
|
||||
|
||||
pmod1_33 = [
|
||||
("pmod1_33", 0, Pins("AJ21"), IOStandard("LVCMOS33")),
|
||||
("pmod1_33", 1, Pins("AK21"), IOStandard("LVCMOS33")),
|
||||
("pmod1_33", 2, Pins("AB21"), IOStandard("LVCMOS33")),
|
||||
("pmod1_33", 3, Pins("AB16"), IOStandard("LVCMOS33")),
|
||||
("pmod1_33", 4, Pins("Y20"), IOStandard("LVCMOS33")),
|
||||
("pmod1_33", 5, Pins("AA20"), IOStandard("LVCMOS33")),
|
||||
("pmod1_33", 6, Pins("AC18"), IOStandard("LVCMOS33")),
|
||||
("pmod1_33", 7, Pins("AC19"), IOStandard("LVCMOS33")),
|
||||
]
|
||||
|
||||
|
||||
def prepare_zc706_platform(platform):
|
||||
platform.toolchain.bitstream_commands.extend([
|
||||
@ -464,6 +475,7 @@ class _NIST_CLOCK_RTIO:
|
||||
platform = self.platform
|
||||
platform.add_extension(nist_clock.fmc_adapter_io)
|
||||
platform.add_extension(leds_fmc33)
|
||||
platform.add_extension(pmod1_33)
|
||||
platform.add_extension(_ams101_dac)
|
||||
platform.add_extension(_sdcard_spi_33)
|
||||
|
||||
@ -484,10 +496,10 @@ class _NIST_CLOCK_RTIO:
|
||||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
|
||||
|
||||
# todo: figure out what to do since zc706 has no SMA I/O
|
||||
# phy = ttl_serdes_7series.InOut_8X(platform.request("user_sma_gpio_n_33"))
|
||||
# self.submodules += phy
|
||||
# rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
|
||||
# no SMA GPIO, replaced with PMOD1_0
|
||||
phy = ttl_serdes_7series.InOut_8X(platform.request("pmod1_33", 0))
|
||||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
|
||||
|
||||
# could check the LED #
|
||||
|
||||
phy = ttl_simple.Output(platform.request("user_led_33", 2))
|
||||
@ -548,9 +560,10 @@ class _NIST_QC2_RTIO:
|
||||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
|
||||
|
||||
# phy = ttl_serdes_7series.InOut_8X(platform.request("user_sma_gpio_n_33"))
|
||||
# self.submodules += phy
|
||||
# rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
|
||||
# no SMA GPIO, replaced with PMOD1_0
|
||||
phy = ttl_serdes_7series.InOut_8X(platform.request("pmod1_33", 0))
|
||||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
|
||||
|
||||
phy = ttl_simple.Output(platform.request("user_led_33", 2))
|
||||
self.submodules += phy
|
||||
|
Loading…
Reference in New Issue
Block a user
What does this mean?
I was wondering if the exact LED that gets controlled on board really matters. The index 2 of the user LED here was copied from kc705, maybe a different one would be any better?
Can't recall why it's 2 on KC705. I suggest using the same LED index as in the former Simple target.
Former Simple target used all of them:
Okay, then the example kernel used 0 :)