From ce1fa39b9026fcbeb94cc14e2a8d435ec892d3e0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 7 Dec 2021 14:55:26 +0000 Subject: [PATCH] whoops another serious error in the CacheTagArray valid is of length NUM_WAYS not 1 --- src/soc/experiment/icache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/experiment/icache.py b/src/soc/experiment/icache.py index e6f35c59..4cb6b038 100644 --- a/src/soc/experiment/icache.py +++ b/src/soc/experiment/icache.py @@ -186,7 +186,7 @@ assert (REAL_ADDR_BITS == (TAG_BITS + ROW_BITS + ROW_OFF_BITS)), \ # not handle a clean (commented) definition of the cache tags as a 3d # memory. For now, work around it by putting all the tags def CacheTagArray(): - tag_layout = [('valid', 1), + tag_layout = [('valid', NUM_WAYS), ('tag', TAG_RAM_WIDTH), ] return Array(Record(tag_layout, name="tag%d" % x) for x in range(NUM_LINES)) -- 2.30.2