From 99f6d15ec8f24597fc7cf7b8661c5fba2b9c9b9d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 22 Apr 2019 04:44:35 +0100 Subject: [PATCH] hmmm.... AddressEncoder needs to be of width way_count --- TLB/src/SetAssociativeCache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TLB/src/SetAssociativeCache.py b/TLB/src/SetAssociativeCache.py index af1de20c..c4e030e0 100644 --- a/TLB/src/SetAssociativeCache.py +++ b/TLB/src/SetAssociativeCache.py @@ -92,7 +92,7 @@ class SetAssociativeCache(): self.data_size = data_size # The bit count of the data to be stored # Finds valid entries - self.encoder = AddressEncoder(way_count.bit_length()) + self.encoder = AddressEncoder(way_count) self.plru = PLRU(way_count) # Single block to handle plru calculations self.plru_array = Array() # PLRU data on each set -- 2.30.2