aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/architecture_features.py
diff options
context:
space:
mode:
authorPatrik Gustavsson <patrik.gustavsson@arm.com>2020-06-29 17:36:55 +0200
committertim.hall <tim.hall@arm.com>2020-07-07 15:23:20 +0000
commit3ab9452881a15d88710f4b5d7c14ba5069e74948 (patch)
tree5f942504d52094f728d974c5bb66ae67aa83eedb /ethosu/vela/architecture_features.py
parente843d3311b8945baa32654af0dccb229b6861438 (diff)
downloadethos-u-vela-3ab9452881a15d88710f4b5d7c14ba5069e74948.tar.gz
MLBEDSW-2551 Add support for more mem-cfgs
Added support for one more memory configuration- Change-Id: Iac19992386e3e9b80bd519acb1b0a399c47d736f Signed-off-by: Patrik Gustavsson <patrik.gustavsson@arm.com>
Diffstat (limited to 'ethosu/vela/architecture_features.py')
-rw-r--r--ethosu/vela/architecture_features.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/ethosu/vela/architecture_features.py b/ethosu/vela/architecture_features.py
index 1dce435e..6460c527 100644
--- a/ethosu/vela/architecture_features.py
+++ b/ethosu/vela/architecture_features.py
@@ -274,8 +274,8 @@ Note the difference between ArchitectureFeatures and CompilerOptions
self.cycles_weight = 40
self.max_sram_used_weight = 1000
- if self.is_yoda_system:
- self.max_sram_used_weight = 1000
+ if self.is_yoda_system and (self.fast_storage_mem_area != self.feature_map_storage_mem_area):
+ self.max_sram_used_weight = 0
# Shared Buffer Block allocations
self.shram_bank_size = 1024 # bytes
@@ -587,10 +587,6 @@ Note the difference between ArchitectureFeatures and CompilerOptions
self.fast_storage_mem_area = MemArea[self.__sys_config("fast_storage_mem_area", "Sram")]
self.feature_map_storage_mem_area = MemArea[self.__sys_config("feature_map_storage_mem_area", "Sram")]
- if self.fast_storage_mem_area != self.feature_map_storage_mem_area:
- raise Exception(
- "Invalid memory configuration fast_storage_mem_area must be same as feature_map_storage_mem_area"
- )
self.permanent_storage_mem_area = MemArea[self.__sys_config("permanent_storage_mem_area", "OffChipFlash")]
if is_yoda_system:
if self.permanent_storage_mem_area is not MemArea.Dram: