From: Luke Kenneth Casson Leighton Date: Mon, 24 Aug 2020 11:43:34 +0000 (+0100) Subject: "WAY" does not exist - range(NUM_WAYS) was intended X-Git-Tag: semi_working_ecp5~269 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b45fab94d8370ef8297b9bb303bf0d6fc161193e;p=soc.git "WAY" does not exist - range(NUM_WAYS) was intended --- diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index 85a0c3b9..074dc4c7 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -1643,7 +1643,7 @@ class DcacheRequest(Elaboratable): comb += s_tag.eq(get_tag(s_ra)) # for i in way_t loop - for i in range(WAY): + for i in range(NUM_WAYS): # if go = '1' and cache_valids(req_index)(i) = '1' # and read_tag(i, cache_tag_set) = s_tag # and tlb_valid_way(j) = '1' then @@ -1678,7 +1678,7 @@ class DcacheRequest(Elaboratable): # s_tag := get_tag(r0.req.addr); comb += s_tag.eq(get_tag(r0.req.addr)) # for i in way_t loop - for i in range(WAY): + for i in range(NUM_WAYS): # if go = '1' and cache_valids(req_index)(i) = '1' and # read_tag(i, cache_tag_set) = s_tag then with m.If(go & cache_valid_bits[req_index][i] &