From 2a799e4f1d8ed0e20611280055e06578a5ebd688 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 29 Nov 2018 23:27:49 +0100 Subject: [PATCH] test/test_axi: set size on axi2native test --- test/test_axi.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_axi.py b/test/test_axi.py index 4111e68..3f2f012 100755 --- a/test/test_axi.py +++ b/test/test_axi.py @@ -201,19 +201,19 @@ class TestAXI(unittest.TestCase): writes = [] for i in range(16): if with_random: - # incrementing addr, random data &id - writes.append(Write(i, [prng.randrange(2**32) for _ in range(i+1)], prng.randrange(2**8), type=0b00, len=i)) + # incrementing addr, random data & id + writes.append(Write(i, [prng.randrange(2**32) for _ in range(i+1)], prng.randrange(2**8), type=0b00, len=i, size=log2_int(32//8))) else: # incrementing addr, data & id (debug) - writes.append(Write(i, [i for _ in range(i+1)], i, type=0b00, len=i)) + writes.append(Write(i, [i for _ in range(i+1)], i, type=0b00, len=i, size=log2_int(32//8))) reads = [] for i in range(16): if with_random: # incrementing addr, written data, random id - reads.append(Read(i, writes[i].data, prng.randrange(2**8), type=0b00, len=len(writes[i].data)-1)) + reads.append(Read(i, writes[i].data, prng.randrange(2**8), type=0b00, len=len(writes[i].data)-1, size=log2_int(32//8))) else: # incrementing addr, written data, incrementing id (debug) - reads.append(Read(i, writes[i].data, i, type=0b00, len=len(writes[i].data)-1)) + reads.append(Read(i, writes[i].data, i, type=0b00, len=len(writes[i].data)-1), size=log2_int(32//8)) # simulation generators = [