From f47d2529046366c2910c99320419b69fb1238174 Mon Sep 17 00:00:00 2001 From: Cindy Liu Date: Tue, 15 Feb 2022 15:53:04 -0800 Subject: [PATCH] kata: vec_core: Update ITCM memory address To match HW def in https://sparrow.git.corp.google.com/sparrow/3p/lowrisc/opentitan/+/3d05e14abb23e275f68080b59c21e3d949176605/hw/top_matcha/data/top_matcha.hjson#749 Change-Id: I933db00d1e6702fb38544b6641dabcb0d6b6e390 GitOrigin-RevId: 31de9893d54e43db60d000f03561f22d59482ad4 --- .../components/MlCoordinator/kata-vec-core/src/lib.rs | 2 +- apps/system/system.camkes | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/system/components/MlCoordinator/kata-vec-core/src/lib.rs b/apps/system/components/MlCoordinator/kata-vec-core/src/lib.rs index dc66a46..356d87c 100644 --- a/apps/system/components/MlCoordinator/kata-vec-core/src/lib.rs +++ b/apps/system/components/MlCoordinator/kata-vec-core/src/lib.rs @@ -14,7 +14,7 @@ use xmas_elf::ElfFile; // TODO(jesionowski): Move these constants to an auto-generated file. // TODO(b/214092253): ITCM size blow-up needs to be addressed. const ITCM_SIZE: usize = 0x100000; -const ITCM_PADDR: usize = 0x30000000; +const ITCM_PADDR: usize = 0x32000000; const DTCM_SIZE: usize = 0x1000000; const DTCM_PADDR: usize = 0x34000000; diff --git a/apps/system/system.camkes b/apps/system/system.camkes index 7e1fd0a..576ebe2 100644 --- a/apps/system/system.camkes +++ b/apps/system/system.camkes @@ -138,7 +138,7 @@ assembly { vctop.csr_paddr = 0x47000000; vctop.csr_size = 0x1000; - vctop.itcm_paddr = 0x30000000; + vctop.itcm_paddr = 0x32000000; vctop.itcm_size = 0x100000; vctop.dtcm_paddr = 0x34000000; vctop.dtcm_size = 0x1000000; @@ -148,8 +148,8 @@ assembly { vctop.data_fault_irq_number = 14; vc_payload.elf_file_paddr = 0x46000000; - vc_payload.elf_file_size = 0x1000000; - + vc_payload.elf_file_size = 0x1000000; + random.ID = 1;