From 4459bd25edf1eebba90f760df418a7ea59d2ffb5 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 13 Nov 2018 10:37:54 +0100 Subject: [PATCH] frontend/axi: same condition to connect connect wdata.we and wdata --- litedram/frontend/axi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/litedram/frontend/axi.py b/litedram/frontend/axi.py index f278979..1055646 100644 --- a/litedram/frontend/axi.py +++ b/litedram/frontend/axi.py @@ -195,8 +195,10 @@ class LiteDRAMAXI2NativeW(Module): # Write Data self.comb += [ axi.w.connect(w_buffer.sink), - If(id_buffer.source.valid, w_buffer.source.connect(port.wdata, omit={"strb"})), - port.wdata.we.eq(w_buffer.source.strb) + If(id_buffer.source.valid, + w_buffer.source.connect(port.wdata, omit={"strb"}), + port.wdata.we.eq(w_buffer.source.strb) + ) ]