From 9d0085b8990385c9472979eeeb66747fe5102870 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 13 May 2021 18:05:01 +0100 Subject: [PATCH] add read at different locations in test_ldst_pi.py --- src/soc/experiment/test/test_ldst_pi.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/soc/experiment/test/test_ldst_pi.py b/src/soc/experiment/test/test_ldst_pi.py index 290cbf5e..c529372a 100644 --- a/src/soc/experiment/test/test_ldst_pi.py +++ b/src/soc/experiment/test/test_ldst_pi.py @@ -56,7 +56,8 @@ def wb_get(wb): b(0x40000000000300ad), # data to return - 0x1000: 0xdeadbeef01234567 + 0x1000: 0xdeadbeef01234567, + 0x1008: 0xfeedf00ff001a5a5 } while not stop: @@ -113,7 +114,7 @@ def mmu_lookup(dut, addr): yield yield mmu.l_in.valid.eq(0) - return phys_addr + return data def ldst_sim(dut): @@ -133,6 +134,10 @@ def ldst_sim(dut): phys_addr = yield from mmu_lookup(dut, addr) #assert phys_addr == addr # happens to be the same (for this example) + phys_addr = yield from mmu_lookup(dut, addr+4) + + phys_addr = yield from mmu_lookup(dut, addr+8) + stop = True -- 2.30.2