diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2021-10-04 12:20:33 +0100 |
---|---|---|
committer | Isabella Gottardi <isabella.gottardi@arm.com> | 2021-10-04 16:50:34 +0000 |
commit | f4962c8d00f00f989b0ecfa0211dc6ec44ec2878 (patch) | |
tree | 0b5753ec4bdce676f2ad01bef73ced1924ebad7b /scripts | |
parent | 105ed71f09d7959cc28e30a56593f78231b709ee (diff) | |
download | ml-embedded-evaluation-kit-f4962c8d00f00f989b0ecfa0211dc6ec44ec2878.tar.gz |
MLECO-2344: Documentation improvement
Documenting how the target platform's SRAM size impacts configuration files,
sources and linker scripts.
Change-Id: I8647ab67b73bafd0c44e6c586a1b5f2602bf03f5
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/cmake/subsystem-profiles/corstone-sse-300.cmake | 20 | ||||
-rw-r--r-- | scripts/cmake/subsystem-profiles/simple_platform.cmake | 44 |
2 files changed, 54 insertions, 10 deletions
diff --git a/scripts/cmake/subsystem-profiles/corstone-sse-300.cmake b/scripts/cmake/subsystem-profiles/corstone-sse-300.cmake index 38930af..7e27f3c 100644 --- a/scripts/cmake/subsystem-profiles/corstone-sse-300.cmake +++ b/scripts/cmake/subsystem-profiles/corstone-sse-300.cmake @@ -17,15 +17,6 @@ # CMake configuration file for peripheral memory map for MPS3 as per SSE-300 design ################################################################################################### -# Application specific config # -################################################################################################### - -# This parameter is based on the linker/scatter script for SSE-300. Do not change this parameter -# in isolation. -set(ACTIVATION_BUF_SRAM_SZ "0x00400000" CACHE STRING "Maximum SRAM size for activation buffers") -set(DESIGN_NAME "Arm Corstone-300 (SSE-300)" CACHE STRING "Design name") - -################################################################################################### # Mem sizes # ################################################################################################### set(ITCM_SIZE "0x00080000" CACHE STRING "ITCM size: 512 kiB") @@ -67,6 +58,17 @@ set(DDR4_BLK2_BASE_S "0xB0000000" CACHE STRING "DDR4 block 2 Secure base ad set(DDR4_BLK3_BASE_S "0xD0000000" CACHE STRING "DDR4 block 3 Secure base address") ################################################################################################### +# Application specific config # +################################################################################################### + +# This parameter is based on the linker/scatter script for SSE-300. Do not change this parameter +# in isolation. +set(DESIGN_NAME "Arm Corstone-300 (SSE-300)" CACHE STRING "Design name") + +# SRAM size reserved for activation buffers +math(EXPR ACTIVATION_BUF_SRAM_SZ "${ISRAM0_SIZE} + ${ISRAM1_SIZE}" OUTPUT_FORMAT HEXADECIMAL) + +################################################################################################### # Base addresses for dynamic loads (to be used for FVP form only) # ################################################################################################### # This parameter is also mentioned in the linker/scatter script for SSE-300. Do not change these diff --git a/scripts/cmake/subsystem-profiles/simple_platform.cmake b/scripts/cmake/subsystem-profiles/simple_platform.cmake index 69a69b5..664697b 100644 --- a/scripts/cmake/subsystem-profiles/simple_platform.cmake +++ b/scripts/cmake/subsystem-profiles/simple_platform.cmake @@ -19,6 +19,45 @@ # version of Arm Corstone-300 platform with minimal peripherals to be able to use Ethos-U55. However, # for ease of integration with Arm FastModel Tools, it uses PL011 as the UART component instead of # the CMSDK UART block used by the MPS3 FPGA and FVP implementations. +################################################################################################### +# Mem sizes # +################################################################################################### +set(ITCM_SIZE "0x00080000" CACHE STRING "ITCM size: 512 kiB") +set(DTCM_BLK_SIZE "0x00020000" CACHE STRING "DTCM size: 128 kiB, 4 banks") +set(BRAM_SIZE "0x00200000" CACHE STRING "BRAM size: 2 MiB") +set(ISRAM0_SIZE "0x00200000" CACHE STRING "ISRAM0 size: 2 MiB") +set(ISRAM1_SIZE "0x00200000" CACHE STRING "ISRAM1 size: 2 MiB") +set(DDR4_BLK_SIZE "0x10000000" CACHE STRING "DDR4 block size: 256 MiB") + +################################################################################################### +# Base addresses for memory regions # +################################################################################################### +set(ITCM_BASE_NS "0x00000000" CACHE STRING "Instruction TCM Non-Secure base address") +set(BRAM_BASE_NS "0x01000000" CACHE STRING "CODE SRAM Non-Secure base address") +set(DTCM0_BASE_NS "0x20000000" CACHE STRING "Data TCM block 0 Non-Secure base address") +set(DTCM1_BASE_NS "0x20020000" CACHE STRING "Data TCM block 1 Non-Secure base address") +set(DTCM2_BASE_NS "0x20040000" CACHE STRING "Data TCM block 2 Non-Secure base address") +set(DTCM3_BASE_NS "0x20060000" CACHE STRING "Data TCM block 3 Non-Secure base address") +set(ISRAM0_BASE_NS "0x21000000" CACHE STRING "Internal SRAM Area Non-Secure base address") +set(ISRAM1_BASE_NS "0x21200000" CACHE STRING "Internal SRAM Area Non-Secure base address") +set(QSPI_SRAM_BASE_NS "0x28000000" CACHE STRING "QSPI SRAM Non-Secure base address") +set(DDR4_BLK0_BASE_NS "0x60000000" CACHE STRING "DDR4 block 0 Non-Secure base address") +set(DDR4_BLK1_BASE_NS "0x80000000" CACHE STRING "DDR4 block 1 Non-Secure base address") +set(DDR4_BLK2_BASE_NS "0xA0000000" CACHE STRING "DDR4 block 2 Non-Secure base address") +set(DDR4_BLK3_BASE_NS "0xC0000000" CACHE STRING "DDR4 block 3 Non-Secure base address") + +set(ITCM_BASE_S "0x10000000" CACHE STRING "Instruction TCM Secure base address") +set(BRAM_BASE_S "0x11000000" CACHE STRING "CODE SRAM Secure base address") +set(DTCM0_BASE_S "0x30000000" CACHE STRING "Data TCM block 0 Secure base address") +set(DTCM1_BASE_S "0x30020000" CACHE STRING "Data TCM block 1 Secure base address") +set(DTCM2_BASE_S "0x30040000" CACHE STRING "Data TCM block 2 Secure base address") +set(DTCM3_BASE_S "0x30060000" CACHE STRING "Data TCM block 3 Secure base address") +set(ISRAM0_BASE_S "0x31000000" CACHE STRING "Internal SRAM Area Secure base address") +set(ISRAM1_BASE_S "0x31200000" CACHE STRING "Internal SRAM Area Secure base address") +set(DDR4_BLK0_BASE_S "0x70000000" CACHE STRING "DDR4 block 0 Secure base address") +set(DDR4_BLK1_BASE_S "0x90000000" CACHE STRING "DDR4 block 1 Secure base address") +set(DDR4_BLK2_BASE_S "0xB0000000" CACHE STRING "DDR4 block 2 Secure base address") +set(DDR4_BLK3_BASE_S "0xD0000000" CACHE STRING "DDR4 block 3 Secure base address") ################################################################################################### # Application specific config # @@ -26,9 +65,12 @@ # This parameter is based on the linker/scatter script for simple platform. Do not change this # parameter in isolation. -set(ACTIVATION_BUF_SRAM_SZ "0x00200000" CACHE STRING "Maximum SRAM size for activation buffers") set(DESIGN_NAME "Simple platform" CACHE STRING "Design name") +# SRAM size reserved for activation buffers +math(EXPR ACTIVATION_BUF_SRAM_SZ "${ISRAM0_SIZE} + ${ISRAM1_SIZE}" OUTPUT_FORMAT HEXADECIMAL) + + ################################################################################################### # Base addresses # ################################################################################################### |