From 643b1ecdf8054f71109d30986de95d6a2df1c591 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 25 Apr 2021 11:43:35 +0100 Subject: [PATCH] dcache Elif used where If should have been --- src/soc/experiment/dcache.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index 4500d55f..cd1946b7 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -1039,8 +1039,8 @@ class DCache(Elaboratable): # Slow ops (load miss, NC, stores) with m.If(r1.slow_valid): - sync += Display("completing store or load miss data=%x", - data_out) + sync += Display("completing store or load miss adr=%x data=%x", + r1.req.real_addr, data_out) with m.Else(): # Request came from MMU @@ -1474,7 +1474,7 @@ class DCache(Elaboratable): sync += r1.wb.dat.eq(req.data) sync += r1.wb.sel.eq(req.byte_sel) - with m.Elif((adjust_acks < 7) & req.same_tag & + with m.If((adjust_acks < 7) & req.same_tag & ((req.op == Op.OP_STORE_MISS) | (req.op == Op.OP_STORE_HIT))): sync += r1.wb.stb.eq(1) @@ -1865,7 +1865,7 @@ if __name__ == '__main__': test_dcache(mem, dcache_sim, "") mem = [] - memsize = 16384 + memsize = 256 for i in range(memsize): mem.append(i) -- 2.30.2