# SPI controller
if spi_0_pins is not None and fpga in ['sim',
- 'rcs_arctic_tern_bmc_card']:
+ 'rcs_arctic_tern_bmc_card',
+ 'arty_a7']:
# The Lattice ECP5 devices require special handling on the
# dedicated SPI clock line, which is shared with the internal
# SPI controller used for FPGA bitstream loading.
spi0_is_lattice_ecp5_clk = False
- if platform is not None and fpga in ['versa_ecp5',
- 'versa_ecp5_85',
- 'rcs_arctic_tern_bmc_card',
- 'isim']:
+ if fpga in ['versa_ecp5',
+ 'versa_ecp5_85',
+ 'rcs_arctic_tern_bmc_card',
+ 'isim']:
spi0_is_lattice_ecp5_clk = True
# Tercel contains two independent Wishbone regions, a
spi_0_pins = platform.request("spi_flash_4x", 0,
dir={"dq":"io", "cs_n":"o", "clk":"o"},
xdr={"dq": 1, "cs_n": 1, "clk": 0})
+ print ("spiflash pins", spi_0_pins)
# Get Ethernet RMII resource pins
ethmac_0_pins = None