From b45fab94d8370ef8297b9bb303bf0d6fc161193e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 24 Aug 2020 12:43:34 +0100 Subject: [PATCH] "WAY" does not exist - range(NUM_WAYS) was intended --- src/soc/experiment/dcache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] & -- 2.30.2