if wp is not None and hold is not None:
io_1x.append(Subsignal("wp", PinsN(wp, dir="o")))
io_1x.append(Subsignal("hold", PinsN(hold, dir="o")))
- resources.append(Resource("spiflash", number, *io_1x))
+ resources.append(Resource("spi_flash", number, *io_1x))
io_2x = list(io_all)
io_2x.append(Subsignal("dq", Pins(" ".join([mosi, miso]), dir="io")))
- resources.append(Resource("spiflash2x", number, *io_2x))
+ resources.append(Resource("spi_flash_2x", number, *io_2x))
if wp is not None and hold is not None:
io_4x = list(io_all)
io_4x.append(Subsignal("dq", Pins(" ".join([mosi, miso, wp, hold]), dir="io")))
- resources.append(Resource("spiflash4x", number, *io_4x))
+ resources.append(Resource("spi_flash_4x", number, *io_4x))
return resources