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:
parent
a0083f4501
commit
dd570720ac
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user