From 1cf999d43c244b49894d77e8f2151089496239eb Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 6 Dec 2021 17:40:12 +0000 Subject: [PATCH] ooo nasty bug. used tlb_hit.way instead of tlb_hit.valid --- src/soc/experiment/dcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index 38aeebba..d0829f4d 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -583,7 +583,7 @@ class DCachePendingHit(Elaboratable): comb += hit_set[j].eq(s_hit) with m.If(s_tag == reload_tag): comb += rel_matches[j].eq(1) - with m.If(tlb_hit.way): + with m.If(tlb_hit.valid): comb += is_hit.eq(hit_set[tlb_hit.way]) comb += hit_way.eq(hit_way_set[tlb_hit.way]) comb += rel_match.eq(rel_matches[tlb_hit.way]) -- 2.30.2