From bbb8c59ade5d172d59d67785b2b54185af49e015 Mon Sep 17 00:00:00 2001 From: mwojcik Date: Wed, 13 Oct 2021 16:04:40 +0800 Subject: [PATCH] replaced sma gpio with pmod1_0 --- src/gateware/zc706.py | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/gateware/zc706.py b/src/gateware/zc706.py index f492823..73746c9 100755 --- a/src/gateware/zc706.py +++ b/src/gateware/zc706.py @@ -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