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
1 changed files with 1 additions and 1 deletions

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)} for i, t in enumerate(write_targets)}
self.sync.rio_phy += [ self.sync.rio_phy += [
If(spi_oif.stb & (spi_oif.address == SPI_DATA_ADDR), If(spi_oif.stb & (spi_oif.address == SPI_DATA_ADDR),