mirror of https://github.com/m-labs/artiq.git
gateware.spi: ack only in cycles
This commit is contained in:
parent
a0083f4501
commit
dd570720ac
|
@ -310,7 +310,7 @@ class SPIMaster(Module):
|
||||||
spi.div_read.eq(config.div_read),
|
spi.div_read.eq(config.div_read),
|
||||||
]
|
]
|
||||||
self.sync += [
|
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,
|
If(wb_we,
|
||||||
Array([data_write, xfer.raw_bits(), config.raw_bits()
|
Array([data_write, xfer.raw_bits(), config.raw_bits()
|
||||||
])[bus.adr].eq(bus.dat_w)
|
])[bus.adr].eq(bus.dat_w)
|
||||||
|
|
Loading…
Reference in New Issue