# generate ack (no "pipeline" mode here)
m.d.sync += self.bus.ack.eq(0)
- with m.If(self.bus.cyc & self.bus.stb):
+ with m.If(self.bus.cyc & self.bus.stb & ~self.bus.ack):
m.d.sync += self.bus.ack.eq(1)
return m
# deal with litex not doing wishbone pipeline mode
# XXX in wrong way. FIFOs are needed in the SRAM test
# so that stb/ack match up
- #comb += self.wb_in.stall.eq(self.wb_out.cyc & ~self.wb_in.ack)
+ comb += self.wb_in.stall.eq(self.wb_out.cyc & ~self.wb_in.ack)
# call sub-functions putting everything together, using shared
# signals established above