From 12ba8672681382dce159e3c486aae9880cee5503 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 13 Jul 2020 18:58:08 +0800 Subject: [PATCH] dma: fix and cleanup test --- src/gateware/test_dma.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gateware/test_dma.py b/src/gateware/test_dma.py index 4613753..1b972c3 100644 --- a/src/gateware/test_dma.py +++ b/src/gateware/test_dma.py @@ -26,7 +26,6 @@ class AXIMemorySim: while True: if len(self.queue) < self.max_queue: request = yield from self.bus.read_ar() - print(request.addr) self.queue.append(request) else: yield @@ -44,7 +43,7 @@ class AXIMemorySim: if request.addr % self.align: raise ValueError addr = request.addr//self.align + i - if addr < len(self.queue): + if addr < len(self.data): data = self.data[addr] else: data = 0