From 836246ec4d5cdec81d2f379272a82f2712f4addb Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sun, 29 Sep 2019 12:55:53 -0700 Subject: [PATCH] Add missing asserts --- tb/test_pcie_us_axi_dma_256.py | 2 ++ tb/test_pcie_us_axi_dma_rd_128.py | 2 ++ tb/test_pcie_us_axi_dma_rd_256.py | 2 ++ tb/test_pcie_us_axi_dma_rd_64.py | 2 ++ 4 files changed, 8 insertions(+) diff --git a/tb/test_pcie_us_axi_dma_256.py b/tb/test_pcie_us_axi_dma_256.py index 188bb0490..129ead610 100755 --- a/tb/test_pcie_us_axi_dma_256.py +++ b/tb/test_pcie_us_axi_dma_256.py @@ -511,6 +511,8 @@ def bench(): print(status) + assert status.data[0][0] == cur_tag + data = axi_ram_inst.read_mem(axi_addr, 32) for i in range(0, len(data), 16): print(" ".join(("{:02x}".format(c) for c in bytearray(data[i:i+16])))) diff --git a/tb/test_pcie_us_axi_dma_rd_128.py b/tb/test_pcie_us_axi_dma_rd_128.py index 8823aaf74..8ec8d2252 100755 --- a/tb/test_pcie_us_axi_dma_rd_128.py +++ b/tb/test_pcie_us_axi_dma_rd_128.py @@ -475,6 +475,8 @@ def bench(): print(status) + assert status.data[0][0] == cur_tag + data = axi_ram_inst.read_mem(axi_addr&0xfffff0, 64) for i in range(0, len(data), 16): print(" ".join(("{:02x}".format(c) for c in bytearray(data[i:i+16])))) diff --git a/tb/test_pcie_us_axi_dma_rd_256.py b/tb/test_pcie_us_axi_dma_rd_256.py index 0ff653cbe..820298607 100755 --- a/tb/test_pcie_us_axi_dma_rd_256.py +++ b/tb/test_pcie_us_axi_dma_rd_256.py @@ -475,6 +475,8 @@ def bench(): print(status) + assert status.data[0][0] == cur_tag + data = axi_ram_inst.read_mem(axi_addr&0xfffff0, 64) for i in range(0, len(data), 16): print(" ".join(("{:02x}".format(c) for c in bytearray(data[i:i+16])))) diff --git a/tb/test_pcie_us_axi_dma_rd_64.py b/tb/test_pcie_us_axi_dma_rd_64.py index 2f0515798..ab752d5f6 100755 --- a/tb/test_pcie_us_axi_dma_rd_64.py +++ b/tb/test_pcie_us_axi_dma_rd_64.py @@ -475,6 +475,8 @@ def bench(): print(status) + assert status.data[0][0] == cur_tag + data = axi_ram_inst.read_mem(axi_addr&0xfffff0, 64) for i in range(0, len(data), 16): print(" ".join(("{:02x}".format(c) for c in bytearray(data[i:i+16]))))