forked from M-Labs/artiq-zynq
Merge pull request 'zc706: added dummy spi' (#149) from mwojcik/artiq-zynq:zc706_dummy_spi into master
Reviewed-on: M-Labs/artiq-zynq#149
This commit is contained in:
commit
2376f9ab5e
|
@ -93,10 +93,7 @@ pmod1_33 = [
|
||||||
("pmod1_33", 1, Pins("AK21"), IOStandard("LVCMOS33")),
|
("pmod1_33", 1, Pins("AK21"), IOStandard("LVCMOS33")),
|
||||||
("pmod1_33", 2, Pins("AB21"), IOStandard("LVCMOS33")),
|
("pmod1_33", 2, Pins("AB21"), IOStandard("LVCMOS33")),
|
||||||
("pmod1_33", 3, Pins("AB16"), IOStandard("LVCMOS33")),
|
("pmod1_33", 3, Pins("AB16"), IOStandard("LVCMOS33")),
|
||||||
("pmod1_33", 4, Pins("Y20"), IOStandard("LVCMOS33")),
|
# rest removed for use with dummy spi
|
||||||
("pmod1_33", 5, Pins("AA20"), IOStandard("LVCMOS33")),
|
|
||||||
("pmod1_33", 6, Pins("AC18"), IOStandard("LVCMOS33")),
|
|
||||||
("pmod1_33", 7, Pins("AC19"), IOStandard("LVCMOS33")),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
_ams101_dac = [
|
_ams101_dac = [
|
||||||
|
@ -109,6 +106,17 @@ _ams101_dac = [
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
_pmod_spi = [
|
||||||
|
("pmod_spi", 0,
|
||||||
|
# PMOD_1 4-7 pins, same bank as sfp_tx_disable or user_sma_clock
|
||||||
|
Subsignal("miso", Pins("Y20"), IOStandard("LVCMOS25")),
|
||||||
|
Subsignal("clk", Pins("AA20"), IOStandard("LVCMOS25")),
|
||||||
|
Subsignal("mosi", Pins("AC18"), IOStandard("LVCMOS25")),
|
||||||
|
Subsignal("cs_n", Pins("AC19"), IOStandard("LVCMOS25")),
|
||||||
|
IOStandard("LVCMOS25")
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def prepare_zc706_platform(platform):
|
def prepare_zc706_platform(platform):
|
||||||
platform.toolchain.bitstream_commands.extend([
|
platform.toolchain.bitstream_commands.extend([
|
||||||
|
@ -459,6 +467,7 @@ class _NIST_CLOCK_RTIO:
|
||||||
platform.add_extension(leds_fmc33)
|
platform.add_extension(leds_fmc33)
|
||||||
platform.add_extension(pmod1_33)
|
platform.add_extension(pmod1_33)
|
||||||
platform.add_extension(_ams101_dac)
|
platform.add_extension(_ams101_dac)
|
||||||
|
platform.add_extension(_pmod_spi)
|
||||||
|
|
||||||
rtio_channels = []
|
rtio_channels = []
|
||||||
|
|
||||||
|
@ -506,10 +515,10 @@ class _NIST_CLOCK_RTIO:
|
||||||
rtio_channels.append(rtio.Channel.from_phy(
|
rtio_channels.append(rtio.Channel.from_phy(
|
||||||
phy, ififo_depth=128))
|
phy, ififo_depth=128))
|
||||||
|
|
||||||
# no SDIO on PL side, PMOD1_1 placeholder instead
|
# no SDIO on PL side, dummy SPI placeholder instead
|
||||||
phy = ttl_serdes_7series.InOut_8X(platform.request("pmod1_33", 1))
|
phy = spi2.SPIMaster(platform.request("pmod_spi"))
|
||||||
self.submodules += phy
|
self.submodules += phy
|
||||||
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=512))
|
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=4))
|
||||||
|
|
||||||
phy = dds.AD9914(platform.request("dds"), 11, onehot=True)
|
phy = dds.AD9914(platform.request("dds"), 11, onehot=True)
|
||||||
self.submodules += phy
|
self.submodules += phy
|
||||||
|
|
Loading…
Reference in New Issue