From: Luke Kenneth Casson Leighton Date: Fri, 11 Sep 2020 10:26:23 +0000 (+0100) Subject: add brackets round if & in dcache X-Git-Tag: semi_working_ecp5~108 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e2ae481cb2df9f4da44a1320ac446db550f753c;p=soc.git add brackets round if & in dcache --- 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)