From 9e2ae481cb2df9f4da44a1320ac446db550f753c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 11 Sep 2020 11:26:23 +0100 Subject: [PATCH] add brackets round if & in dcache --- 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 f137a6d8..8db58fa4 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -669,7 +669,7 @@ class DCache(Elaboratable): for i in range(NUM_WAYS): with m.If(go & cache_valid_bits[req_index][i] & - read_tag(i, cache_tag_set) == s_tag + (read_tag(i, cache_tag_set) == s_tag) & tlb_valid_way[j]): comb += hit_way_set[j].eq(i) comb += s_hit.eq(1) -- 2.30.2