ADD SPI to EBAZ4205 for AD9834 #331

Merged
sb10q merged 3 commits from newell/artiq-zynq:ad9834 into master 2024-10-17 15:06:12 +08:00
Showing only changes of commit 0f1945f4ca - Show all commits

View File

@ -79,9 +79,9 @@ _i2c = [
)
]
_pmod_spi = [
_spi = [
newell marked this conversation as resolved Outdated
Outdated
Review

Is it a PMOD?

Is it a PMOD?
(
"pmod_spi",
"spi",
0,
Subsignal("clk", Pins("V20")),
Subsignal("mosi", Pins("U20")),
@ -104,7 +104,7 @@ class EBAZ4205(SoCCore):
platform.add_extension(_ps)
platform.add_extension(_ddr)
platform.add_extension(_i2c)
platform.add_extension(_pmod_spi)
platform.add_extension(_spi)
gmii = platform.request("gmii")
platform.add_period_constraint(gmii.rx_clk, 10)
@ -181,7 +181,7 @@ class EBAZ4205(SoCCore):
self.rtio_channels.append(rtio.Channel.from_phy(phy))
print("SPI at RTIO channel 0x{:06x}".format(len(self.rtio_channels)))
spi_phy = spi2.SPIMaster(platform.request("pmod_spi"))
spi_phy = spi2.SPIMaster(platform.request("spi"))
self.submodules += spi_phy
self.rtio_channels.append(rtio.Channel.from_phy(spi_phy, ififo_depth=4))
self.config["RTIO_LOG_CHANNEL"] = len(self.rtio_channels)