zc706 nist clock: started rtio channel changes
This commit is contained in:
parent
ac29cd30e5
commit
ab3ac79655
|
@ -163,10 +163,6 @@ class NIST_CLOCK(ZC706):
|
|||
|
||||
rtio_channels = []
|
||||
|
||||
for i in range(4):
|
||||
phy = ttl_simple.Output(platform.request("user_led_33", i))
|
||||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||
|
||||
for i in range(16):
|
||||
if i % 4 == 3:
|
||||
|
@ -183,16 +179,42 @@ class NIST_CLOCK(ZC706):
|
|||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
|
||||
|
||||
# todo: figure out pins for that on zc706
|
||||
# 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))
|
||||
|
||||
# could check the LED #
|
||||
phy = ttl_simple.Output(platform.request("user_led_33", 2))
|
||||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||
|
||||
ams101_dac = self.platform.request("ams101_dac", 0)
|
||||
phy = ttl_simple.Output(ams101_dac.ldac)
|
||||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||
|
||||
phy = ttl_simple.ClockGen(platform.request("la32_p"))
|
||||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||
|
||||
phy = spi2.SPIMaster(ams101_dac)
|
||||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(
|
||||
phy, ififo_depth=4))
|
||||
|
||||
for i in range(3):
|
||||
phy = spi2.SPIMaster(self.platform.request("spi", i))
|
||||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(
|
||||
phy, ififo_depth=128))
|
||||
|
||||
# todo check sdcard spi pins on zc706 (if applicable)
|
||||
# phy = spi2.SPIMaster(platform.request("sdcard_spi_33"))
|
||||
# self.submodules += phy
|
||||
# rtio_channels.append(rtio.Channel.from_phy(
|
||||
# phy, ififo_depth=4))
|
||||
|
||||
phy = dds.AD9914(platform.request("dds"), 11, onehot=True)
|
||||
self.submodules += phy
|
||||
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=4))
|
||||
|
|
Loading…
Reference in New Issue