From d5b5076f671818fd3d54c1fb83bd34ccc9bcd413 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 26 Oct 2017 11:58:59 +0800 Subject: [PATCH] gateware/ad5360_monitor: fix SPI data decoding --- artiq/gateware/rtio/phy/ad5360_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/gateware/rtio/phy/ad5360_monitor.py b/artiq/gateware/rtio/phy/ad5360_monitor.py index c8749e57d..fad34ecc6 100644 --- a/artiq/gateware/rtio/phy/ad5360_monitor.py +++ b/artiq/gateware/rtio/phy/ad5360_monitor.py @@ -39,7 +39,7 @@ class AD5360Monitor(Module): ) ] - writes = {_AD5360_CMD_DATA | _AD5360_WRITE_CHANNEL(i): t.eq(spi_oif.data[8:24]) + writes = {(_AD5360_CMD_DATA | _AD5360_WRITE_CHANNEL(i)) >> 16: t.eq(spi_oif.data[8:24]) for i, t in enumerate(write_targets)} self.sync.rio_phy += [ If(spi_oif.stb & (spi_oif.address == SPI_DATA_ADDR),