forked from M-Labs/artiq
gateware/ad5360_monitor: fix SPI data decoding
This commit is contained in:
parent
00a2e51f99
commit
d5b5076f67
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue