diff --git a/src/gateware/aux_controller.py b/src/gateware/aux_controller.py index ef03c343..c6427dc6 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