From c3e02ea22d86834e1739168dd14a53d43c3259eb Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Sun, 20 Jun 2021 19:31:34 +0200 Subject: [PATCH] dcache: add debug output --- src/soc/experiment/dcache.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index 072d34a9..8c002d28 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -1208,8 +1208,9 @@ class DCache(Elaboratable): sync += r1.cache_hit.eq(0) with m.If(req_op == Op.OP_BAD): - # Display(f"Signalling ld/st error valid_ra={valid_ra}" - # f"rc_ok={rc_ok} perm_ok={perm_ok}" + sync += Display("Signalling ld/st error " + "ls_error=%i mmu_error=%i cache_paradox=%i", + ~r0.mmu_req,r0.mmu_req,access_ok) sync += r1.ls_error.eq(~r0.mmu_req) sync += r1.mmu_error.eq(r0.mmu_req) sync += r1.cache_paradox.eq(access_ok) -- 2.30.2