From 3880c51305d4704e3654286de00218d3e336948a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 6 Dec 2021 23:57:33 +0000 Subject: [PATCH] another major bug, CacheTagArray valid was only 1 bit not NUM_WAYS --- 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 b3b3fd57..3460e976 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -162,7 +162,7 @@ print (" TAG_WIDTH", TAG_WIDTH) print (" NUM_WAYS", NUM_WAYS) 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