2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

gateware/ad5360_monitor: fix SPI data decoding

This commit is contained in:
Sebastien Bourdeauducq 2017-10-26 11:58:59 +08:00
parent 00a2e51f99
commit d5b5076f67

View File

@ -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),