From: Luke Kenneth Casson Leighton Date: Sat, 16 Apr 2022 22:03:27 +0000 (+0100) Subject: reduce dcache/icache number of ways, to fit into ECP5 45k resource X-Git-Url: https://git.libre-soc.org/?p=soc.git;a=commitdiff_plain;h=239bbdefc79ddf27d282072d3dc73e14823c8611 reduce dcache/icache number of ways, to fit into ECP5 45k resource --- diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index f2e4360a..39578ebc 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -747,10 +747,10 @@ class DCache(Elaboratable, DCacheConfig): if self.microwatt_compat: # reduce way sizes and num lines - super().__init__(NUM_LINES = 4, + super().__init__(NUM_LINES = 2, NUM_WAYS = 1, TLB_NUM_WAYS = 1, - TLB_SET_SIZE=4) # XXX needs device-tree entry + TLB_SET_SIZE=2) # XXX needs device-tree entry else: super().__init__() diff --git a/src/soc/experiment/icache.py b/src/soc/experiment/icache.py index e9c8ed1b..b0b674c8 100644 --- a/src/soc/experiment/icache.py +++ b/src/soc/experiment/icache.py @@ -345,9 +345,9 @@ class ICache(FetchUnitInterface, Elaboratable, ICacheConfig): # reduce way sizes and num lines ICacheConfig.__init__(self, LINE_SIZE=XLEN, XLEN=XLEN, - NUM_LINES = 4, + NUM_LINES = 2, NUM_WAYS = 1, - TLB_SIZE=4 # needs device-tree update + TLB_SIZE=2 # needs device-tree update ) else: ICacheConfig.__init__(self, LINE_SIZE=XLEN, XLEN=XLEN)