Skip to content

Commit

Permalink
Update Micro speech example for FVP (reduce core clock)
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
RobertRostohar committed Sep 29, 2021
1 parent 8c89331 commit cc015b4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
// <i>Selects source for 32-bit time stamp
#define EVENT_TIMESTAMP_SOURCE 0
#define EVENT_TIMESTAMP_SOURCE 2

// <o>Time Stamp Clock Frequency [Hz] <0-1000000000>
// <i>Defines initial time stamp clock frequency (0 when not used)
#define EVENT_TIMESTAMP_FREQ 25000000U
#define EVENT_TIMESTAMP_FREQ 0U

// </h>

Expand Down
2 changes: 1 addition & 1 deletion Platform_FVP_Corstone_SSE-300_Ethos-U55/debug.ini
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CORE_CLK=200000000
CORE_CLK=32000000
2 changes: 1 addition & 1 deletion Platform_FVP_Corstone_SSE-300_Ethos-U55/fvp_config.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.cmd
Original file line number Diff line number Diff line change
@@ -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 %*
2 changes: 1 addition & 1 deletion Platform_FVP_Corstone_SSE-300_Ethos-U55/run_example.sh
Original file line number Diff line number Diff line change
@@ -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 $*

0 comments on commit cc015b4

Please sign in to comment.