Skip to content

Commit

Permalink
Increase AXI timeout to prevent spontaneous test failures
Browse files Browse the repository at this point in the history
Internal-tag: [#59221]
Signed-off-by: Krzysztof Obłonczek <[email protected]>
  • Loading branch information
koblonczek committed Jun 6, 2024
1 parent 8d05e92 commit e89a752
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions verification/block/dma/testbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ async def write(self, addr, data):
break

# Send write request
await self._wait(self.axi_awready)
# timeout needs to be fairly high to allow requests to complete in all randomized scenarios
await self._wait(self.axi_awready, max_cycles=300)
self.axi_awvalid.value = 1
self.axi_awaddr.value = addr
self.axi_awid.value = awid
Expand Down Expand Up @@ -921,7 +922,8 @@ async def run_phase(self):
await self.run()

# Wait some cycles
await ClockCycles(cocotb.top.clk, 10)
# this needs to be fairly high to allow the last AXI requests to complete in all randomized scenarios
await ClockCycles(cocotb.top.clk, 50)

self.drop_objection()

Expand Down

0 comments on commit e89a752

Please sign in to comment.