From 60712547e5cc7701bf1335e5fc3db2786d2263d0 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 1 Jun 2023 08:57:02 +0200 Subject: [PATCH] frontend/avalon: Remove SINGLE-WRITE/SINGLE-READ states since no longer useful with Cmd/Data-path decoupling. --- litedram/frontend/avalon.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/litedram/frontend/avalon.py b/litedram/frontend/avalon.py index 5e99322..36e4dc0 100644 --- a/litedram/frontend/avalon.py +++ b/litedram/frontend/avalon.py @@ -104,30 +104,10 @@ class LiteDRAMAvalonMM2Native(LiteXModule): port.cmd.last.eq(1), If(port.cmd.valid & port.cmd.ready, avalon.waitrequest.eq(0), - If(port.cmd.we, - NextState("SINGLE-WRITE") - ).Else( - NextState("SINGLE-READ") - ) ) ) ) ) - - fsm.act("SINGLE-WRITE", - avalon.waitrequest.eq(1), - If(port.wdata.valid & port.wdata.ready, - NextState("IDLE") - ) - ) - - fsm.act("SINGLE-READ", - avalon.waitrequest.eq(1), - If(port.rdata.valid, - NextState("IDLE") - ) - ) - fsm.act("BURST-WRITE", avalon.waitrequest.eq(1), port.cmd.addr.eq(address),