From 9eea4c782d498e8944c4407a7a48154236d46868 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 26 Apr 2021 09:22:14 +0100 Subject: [PATCH] simplify dcache test --- src/soc/experiment/dcache.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index 4d59a07a..aea4a28b 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -1794,18 +1794,15 @@ def dcache_regression_sim(dut, mem): yield yield - addr = 6 - data = ~i - sim_mem[addr] = data + addr = 1 row = addr addr *= 8 - print ("random testing %d 0x%x row %d data 0x%x" % (i, addr, row, data)) + print ("random testing %d 0x%x row %d" % (i, addr, row)) yield from dcache_load(dut, addr) - #yield from dcache_store(dut, addr, data) - addr = 7 + addr = 2 sim_data = sim_mem[addr] row = addr addr *= 8 @@ -1817,7 +1814,6 @@ def dcache_regression_sim(dut, mem): - def dcache_sim(dut, mem): # clear stuff yield dut.d_in.valid.eq(0) -- 2.30.2