Skip to content

Commit

Permalink
Added more information regading the time limits. Minor updates,
Browse files Browse the repository at this point in the history
  • Loading branch information
vovamarch committed Aug 9, 2024
1 parent cc76fcb commit 67f0475
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions DoxyGen/simulation/src/hints_and_tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Following mechanisms and settings can be used for timing control and measurement
cpu_core.cpu0 : 68.40 MIPS ( 65196784 Inst)
-------------------------------------------------------------------------------
```
Also see [corresponding section](https://developer.arm.com/documentation/100965/latest/Timing-Annotation/Timing-annotation-tutorial/Setting-up-the-environment/Displaying-the-total-execution-time-of-the-simulation) in the Fast Models User Guide.
Also see section [Displaying the total execution time](https://developer.arm.com/documentation/100965/latest/Timing-Annotation/Timing-annotation-tutorial/Setting-up-the-environment/Displaying-the-total-execution-time-of-the-simulation) in the Fast Models User Guide.

- [CMSIS-View](https://github.com/ARM-software/CMSIS-View) utility can be used to measure and analyze timing between events in the program, including statistical data. To store the log files on FVPs, \ref semihosting "semihosting" shall be enabled. CMSIS-View annotations can also be reused for event analysis and time measurement on real hardware.
- \ref Config parameters can be used to control and impact the execution timing:
Expand All @@ -99,13 +99,13 @@ Following mechanisms and settings can be used for timing control and measurement

Chapter [Timing Annotations](https://developer.arm.com/documentation/100965/latest/Timing-Annotation) in the Fast Models User Guide explains the performance estimation concept as implemented in the underlying FastModels technology. Note that the FVPs are built with Timing Annotations enabled (`FASTSIM_DISABLE_TA` set to 0).

For interaction with external world such as via [virtual interfaces] or \ref semihosting the timing differences need to be taken into account as explain in [Timing-considerations-for-FVPs](https://developer.arm.com/documentation/100966/1126/Getting-Started-with-Fixed-Virtual-Platforms/Timing-considerations-for-FVPs).
For interaction with external world such as via \ref arm_vsi or \ref semihosting the timing differences need to be taken into account as explain in [Timing-considerations-for-FVPs](https://developer.arm.com/documentation/100966/1126/Getting-Started-with-Fixed-Virtual-Platforms/Timing-considerations-for-FVPs).

## Execution stop {#stop}

Embedded applications typically run with an infinite loop that ensures continuous program execution. But for executing regression tests as part of Continuous Integration (CI) workflows it is often required that program execution is stopped after a test is completed, so that the next test can be started.

FVP command line option `--simlimit` can be used to stop execution after specified amount of seconds, for example, for 20 seconds, use `--simlimit 20`.
FVP command line options `--cpulimit`, `--cyclelimit`, `--timelimit` and `--simlimit` can be used to stop execution after specified activity time, for example, for 20 wall-clock seconds, use `--timelimit 20`. See [FVP command line options](https://developer.arm.com/documentation/100966/latest/Getting-Started-with-Fixed-Virtual-Platforms/FVP-command-line-options) for more details.

FVP models have `shutdown_on_eot` parameter that enables simple implementation of program exit. The parameter should be set in the \ref Config, for example for FPV_Corstone_SSE-300:

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ The table below lists some of the example projects that demonstrate the usage of

Examples | Description
:--------------|:--------------------------------------------------
[VsCode Get Started](https://github.com/Open-CMSIS-Pack/vscode-get-started) | Hello world example for AVH FVPs with support of GitHub Actions for build and run
[AVH-Hello](https://github.com/Arm-Examples/AVH-Hello) | Hello world example for AVH FVPs with support of GitHub Actions for build and run
[AVH_CI_Template](https://github.com/Arm-Examples/AVH_CI_Template) | Simple example with unit tests that shows the CI setup with AVH FVPs using GitHub Actions
[Hello VSI Examples](https://github.com/Arm-Examples/Hello_AVH) | Simple examples that streams data from a file via Virtual Streaming Interface (VSI)
[AVH-VSI Examples](https://github.com/Arm-Examples/AVH-VSI) | Simple examples that demonstrate use of Virtual Streaming Interface (VSI) in different use cases
[AVH-MLOps](https://github.com/ARM-software/AVH-MLOps) | A set of tools and software components and examples showcasing MLOps systems with AVH FVPs
[CMSIS-Core Validation](https://github.com/ARM-software/CMSIS_6/tree/main/CMSIS/CoreValidation) | Test suite for validating CMSIS-Core implementations on Cortex-M cores using different toolchains and AVH FVPs
[CMSIS-RTOS2 Validation](https://github.com/Arm-Software/CMSIS-RTOS2_Validation) | Test suite for validating CMSIS-RTOS2 implementations on Cortex-M cores using different toolchains and AVH FVPs
Expand Down

0 comments on commit 67f0475

Please sign in to comment.