From da65a804be5e2cd5b1dcfb05ae0efbed390f2b41 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 30 Nov 2018 11:59:22 +0100 Subject: [PATCH] frontend/axi: expose w_buffer/r_buffer (can be useful for debug) --- litedram/frontend/axi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litedram/frontend/axi.py b/litedram/frontend/axi.py index 1055646..33eb758 100644 --- a/litedram/frontend/axi.py +++ b/litedram/frontend/axi.py @@ -158,7 +158,7 @@ class LiteDRAMAXI2NativeW(Module): # Write Buffer w_buffer = stream.SyncFIFO(w_description(axi.data_width), buffer_depth) - self.submodules += w_buffer + self.submodules.w_buffer = w_buffer # Write ID Buffer & Response id_buffer = stream.SyncFIFO([("id", axi.id_width)], buffer_depth) @@ -222,7 +222,7 @@ class LiteDRAMAXI2NativeR(Module): # Read buffer r_buffer = stream.SyncFIFO(r_description(axi.data_width, axi.id_width), buffer_depth) - self.submodules += r_buffer + self.submodules.r_buffer = r_buffer # Read Buffer reservation # - Incremented when data is planned to be queued