From 67ed7fae7868b5433a184854331e56b1e900bd9e Mon Sep 17 00:00:00 2001 From: mwojcik Date: Mon, 16 Aug 2021 12:05:23 +0200 Subject: [PATCH] sram: or operator in wrong place for wrapped burst --- src/gateware/aux_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gateware/aux_controller.py b/src/gateware/aux_controller.py index ef03c34..c6427dc 100644 --- a/src/gateware/aux_controller.py +++ b/src/gateware/aux_controller.py @@ -92,7 +92,7 @@ class SRAM(Module): If(ar.burst==axi.Burst.incr.value, port.adr.eq(port.adr + self.dout_index) ).Else(If(ar.burst==axi.Burst.wrap.value, - port.adr.eq((port.adr + self.dout_index) | ar.len) + port.adr.eq(port.adr + (self.dout_index | ar.len)) )), # update address in the port if it's incr or wrapped burst value # no port.adr update for fixed burst type If(self.dout_index==ar.len, r.last.eq(1)) # and update last