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

gateware.spi: ack only in cycles

This commit is contained in:
Robert Jördens 2016-02-29 17:29:37 +01:00
parent a0083f4501
commit dd570720ac

View File

@ -310,7 +310,7 @@ class SPIMaster(Module):
spi.div_read.eq(config.div_read),
]
self.sync += [
bus.ack.eq(~bus.we | ~pending | spi.done),
bus.ack.eq(bus.cyc & bus.stb & (~bus.we | ~pending | spi.done)),
If(wb_we,
Array([data_write, xfer.raw_bits(), config.raw_bits()
])[bus.adr].eq(bus.dat_w)