if hasattr(wb, "stall"):
m.d.comb += wb.stb.eq(fsm.ongoing("READ") |
fsm.ongoing("WRITEREAD"))
+ m.d.comb += wb.we.eq(fsm.ongoing("WRITEREAD"))
else:
# non-stall is single-cycle (litex), must assert stb
# until ack is sent
fsm.ongoing("WRITEREAD") |
fsm.ongoing("READACK") |
fsm.ongoing("WRITEREADACK"))
- m.d.comb += [
- wb.cyc.eq(~fsm.ongoing("IDLE")),
- wb.we.eq(fsm.ongoing("WRITEREAD")),
- ]
+ m.d.comb += wb.we.eq(fsm.ongoing("WRITEREAD") |
+ fsm.ongoing("WRITEREADACK"))
+ m.d.comb += wb.cyc.eq(~fsm.ongoing("IDLE"))