dcache: add debug output
authorTobias Platen <tplaten@posteo.de>
Sun, 20 Jun 2021 17:31:34 +0000 (19:31 +0200)
committerTobias Platen <tplaten@posteo.de>
Sun, 20 Jun 2021 17:31:34 +0000 (19:31 +0200)
src/soc/experiment/dcache.py

index 072d34a90d108e601d0640930607ca205ab2fe4b..8c002d28f542ca0c98c6702c2f23f2e2be28a64e 100644 (file)
@@ -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)