From 6cf1ff091cbad9aa0757012c6a4ad3de2e2ca1cc Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 2 May 2019 09:58:55 +0200 Subject: [PATCH] soc/interconnect/axi: connect axi.ar/aw when selecting write or read --- litex/soc/interconnect/axi.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/litex/soc/interconnect/axi.py b/litex/soc/interconnect/axi.py index cf945871..a528eb65 100644 --- a/litex/soc/interconnect/axi.py +++ b/litex/soc/interconnect/axi.py @@ -139,13 +139,14 @@ class AXI2Wishbone(Module): self.submodules.fsm = fsm = FSM(reset_state="IDLE") fsm.act("IDLE", If(axi.ar.valid, + axi.ar.connect(ax_burst), NextState("DO-READ") ).Elif(axi.aw.valid, + axi.aw.connect(ax_burst), NextState("DO-WRITE") ) ) fsm.act("DO-READ", - axi.ar.connect(ax_burst), wishbone.stb.eq(1), wishbone.cyc.eq(1), wishbone.adr.eq(_addr[wishbone_adr_shift:]), @@ -155,7 +156,6 @@ class AXI2Wishbone(Module): ) ) fsm.act("SEND-READ-RESPONSE", - axi.ar.connect(ax_burst), axi.r.valid.eq(1), axi.r.resp.eq(RESP_OKAY), axi.r.id.eq(ax_beat.id), @@ -171,7 +171,6 @@ class AXI2Wishbone(Module): ) ) fsm.act("DO-WRITE", - axi.aw.connect(ax_burst), wishbone.stb.eq(axi.w.valid), wishbone.cyc.eq(axi.w.valid), wishbone.we.eq(1), @@ -188,7 +187,6 @@ class AXI2Wishbone(Module): ) ) fsm.act("SEND-WRITE-RESPONSE", - axi.aw.connect(ax_burst), axi.b.valid.eq(1), axi.b.resp.eq(RESP_OKAY), axi.b.id.eq(ax_beat.id), -- 2.30.2