From: Luke Kenneth Casson Leighton Date: Tue, 7 Dec 2021 14:55:26 +0000 (+0000) Subject: whoops another serious error in the CacheTagArray X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce1fa39b9026fcbeb94cc14e2a8d435ec892d3e0;p=soc.git whoops another serious error in the CacheTagArray valid is of length NUM_WAYS not 1 --- 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))