From 239bbdefc79ddf27d282072d3dc73e14823c8611 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 16 Apr 2022 23:03:27 +0100 Subject: [PATCH] reduce dcache/icache number of ways, to fit into ECP5 45k resource --- src/soc/experiment/dcache.py | 4 ++-- src/soc/experiment/icache.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) -- 2.30.2