1
0
Fork 0

Remove incorrect pmod reference

This commit is contained in:
newell 2024-10-16 23:46:31 -07:00
parent 1a3af696af
commit 0f1945f4ca
1 changed files with 4 additions and 4 deletions

View File

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