From cc015b4ab3dea91d263de26d68d861a6c0b9868f Mon Sep 17 00:00:00 2001 From: Robert Rostohar Date: Wed, 29 Sep 2021 10:59:20 +0200 Subject: [PATCH] Update Micro speech example for FVP (reduce core clock) Reduce core clock from 200MHz to 32MHz which is still enough in order to process audio in real time. This speeds-up the simulation by 6*times! --- .../RTE/Compiler/EventRecorderConf.h | 4 ++-- Platform_FVP_Corstone_SSE-300_Ethos-U55/debug.ini | 2 +- Platform_FVP_Corstone_SSE-300_Ethos-U55/fvp_config.txt | 2 +- Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.cmd | 2 +- Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.sh | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Platform_FVP_Corstone_SSE-300_Ethos-U55/RTE/Compiler/EventRecorderConf.h b/Platform_FVP_Corstone_SSE-300_Ethos-U55/RTE/Compiler/EventRecorderConf.h index 75de150..a8cd5fb 100644 --- a/Platform_FVP_Corstone_SSE-300_Ethos-U55/RTE/Compiler/EventRecorderConf.h +++ b/Platform_FVP_Corstone_SSE-300_Ethos-U55/RTE/Compiler/EventRecorderConf.h @@ -23,11 +23,11 @@ // <0=> DWT Cycle Counter <1=> SysTick <2=> CMSIS-RTOS2 System Timer // <3=> User Timer (Normal Reset) <4=> User Timer (Power-On Reset) // Selects source for 32-bit time stamp -#define EVENT_TIMESTAMP_SOURCE 0 +#define EVENT_TIMESTAMP_SOURCE 2 // Time Stamp Clock Frequency [Hz] <0-1000000000> // Defines initial time stamp clock frequency (0 when not used) -#define EVENT_TIMESTAMP_FREQ 25000000U +#define EVENT_TIMESTAMP_FREQ 0U // diff --git a/Platform_FVP_Corstone_SSE-300_Ethos-U55/debug.ini b/Platform_FVP_Corstone_SSE-300_Ethos-U55/debug.ini index 52aa313..a8d3b8e 100644 --- a/Platform_FVP_Corstone_SSE-300_Ethos-U55/debug.ini +++ b/Platform_FVP_Corstone_SSE-300_Ethos-U55/debug.ini @@ -1 +1 @@ -CORE_CLK=200000000 +CORE_CLK=32000000 diff --git a/Platform_FVP_Corstone_SSE-300_Ethos-U55/fvp_config.txt b/Platform_FVP_Corstone_SSE-300_Ethos-U55/fvp_config.txt index 7b6f163..bf41906 100644 --- a/Platform_FVP_Corstone_SSE-300_Ethos-U55/fvp_config.txt +++ b/Platform_FVP_Corstone_SSE-300_Ethos-U55/fvp_config.txt @@ -1,7 +1,7 @@ # Parameters: # instance.parameter=value #(type, mode) default = 'def value' : description : [min..max] #------------------------------------------------------------------------------ -cpu_core.core_clk.mul=200000000 # (int , init-time) default = '0x17d7840' : Clock Rate Multiplier. This parameter is not exposed via CADI and can only be set in LISA +cpu_core.core_clk.mul=32000000 # (int , init-time) default = '0x17d7840' : Clock Rate Multiplier. This parameter is not exposed via CADI and can only be set in LISA cpu_core.mps3_board.telnetterminal0.start_telnet=0 # (bool , init-time) default = '1' : Start telnet if nothing connected cpu_core.mps3_board.uart0.out_file=- # (string, init-time) default = '' : Output file to hold data written by the UART (use '-' to send all output to stdout) cpu_core.mps3_board.visualisation.disable-visualisation=1 # (bool , init-time) default = '0' : Enable/disable visualisation diff --git a/Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.cmd b/Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.cmd index b2bd37a..c59f9a2 100644 --- a/Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.cmd +++ b/Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.cmd @@ -1,2 +1,2 @@ @echo off -"C:\Program Files\ARM\VHT\models\Win64_VC2017\VHT-Corstone-300.exe" -V "..\VSI\audio\python" -f fvp_config.txt -a Objects\microspeech.axf --stat --cyclelimit 4000000000 %* +"C:\Program Files\ARM\VHT\models\Win64_VC2017\VHT-Corstone-300.exe" -V "..\VSI\audio\python" -f fvp_config.txt -a Objects\microspeech.axf --stat --cyclelimit 768000000 %* diff --git a/Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.sh b/Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.sh index 5990cb1..20652ed 100755 --- a/Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.sh +++ b/Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -VHT-Corstone-300 -V "../VSI/audio/python" -f fvp_config.txt -a Objects/microspeech.axf --stat --cyclelimit 4000000000 $* +VHT-Corstone-300 -V "../VSI/audio/python" -f fvp_config.txt -a Objects/microspeech.axf --stat --cyclelimit 768000000 $*