From e809e8957171e86689a360efc76111155542eba2 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Tue, 8 Mar 2016 13:01:52 +0100 Subject: [PATCH] pipistrello: adhere to pmod interface type 2 layout --- artiq/gateware/targets/pipistrello.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/targets/pipistrello.py b/artiq/gateware/targets/pipistrello.py index 80985c04a..95dae2b29 100755 --- a/artiq/gateware/targets/pipistrello.py +++ b/artiq/gateware/targets/pipistrello.py @@ -196,10 +196,10 @@ trce -v 12 -fastpaths -tsi {build_name}.tsi -o {build_name}.twr {build_name}.ncd pmod = self.platform.request("pmod", 0) spi_pins = Module() - spi_pins.clk = pmod.d[0] + spi_pins.cs_n = pmod.d[0] spi_pins.mosi = pmod.d[1] spi_pins.miso = pmod.d[2] - spi_pins.cs_n = pmod.d[3:] + spi_pins.clk = pmod.d[3] phy = spi.SPIMaster(spi_pins) self.submodules += phy self.config["RTIO_FIRST_SPI_CHANNEL"] = len(rtio_channels)