From 8604017159f1c6a2d59683172d2c305dd9b2f337 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Mon, 27 Feb 2023 16:36:04 -0800 Subject: [PATCH] For FIXED burst type, issue all bursts with the same starting address Signed-off-by: Alex Forencich --- cocotbext/axi/axi_master.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cocotbext/axi/axi_master.py b/cocotbext/axi/axi_master.py index 6f5015b..6f395ab 100644 --- a/cocotbext/axi/axi_master.py +++ b/cocotbext/axi/axi_master.py @@ -563,7 +563,9 @@ class AxiMasterWrite(Region, Reset): await self.w_channel.send(w) - if k == 0: + if cmd.burst == AxiBurstType.FIXED: + cur_addr = cmd.address + elif k == 0: cur_addr = aligned_addr + num_bytes else: cur_addr += num_bytes @@ -918,7 +920,9 @@ class AxiMasterRead(Region, Reset): self.log.info("Read burst start arid: 0x%x araddr: 0x%08x arlen: %d arsize: %d arprot: %s", arid, cur_addr, burst_length-1, cmd.size, cmd.prot) - if k == 0: + if cmd.burst == AxiBurstType.FIXED: + cur_addr = cmd.address + elif k == 0: cur_addr = aligned_addr + num_bytes else: cur_addr += num_bytes