A typical bare-metal application boot time is depicted in the following gure:
Figure 7: Boot Time Stages for a Bare-Metal Application
Note: e above gures are not drawn to scale - each stage is depicted with the same size.
Optimizing Boot Duration
e recommended approach for optimizing boot time consists of:
• Measure the duration of the total boot time. For example, monitor the reset signal and a custom signal
toggled at the beginning of the application by using a scope or a logical analyzer.
• Measure the duration of as many individual steps as possible, to understand where most of the time is
spent.
• If possible, optimize the steps that take most of the time. Usually the upper levels take longer than the
lower ones.
e following sections describe some of the factors that inuence the duration of the Boot ROM.
Hardware Powerup Sequence
is is the smallest contributor to boot time and it does not need to be optimized. It is actually inuenced
by the OSC1 input clock frequency, but it is so small that its duration does not warrant changing the OSC1
value.
Boot ROM
e duration of the Boot ROM is inuenced by the following factors:
• OSC1 Clock Frequency (for the portion before setting the PLLs or when using CSEL=00)
• Clocking option (selected by CSEL pins)
• Boot Source (SD/MMC, QSPI, NAND or FPGA – selected by BSEL pins)
• Performance of external ash device
• Size of Preloader image
e above parameters can be tweaked in order to optimize the Boot ROM duration. For example, the OSC1
and CSEL should be selected such that the maximum possible clock values are used for both the MPU and
the external ash.
Another example - Tweaking the Preloader so that it is made smaller. e smaller the Preloader, the less
time the Boot ROM spends loading it from ash.
AN-709
2016.01.27
Optimizing Boot Duration
9
HPS SoC Boot Guide - Cyclone V SoC Development Kit
Altera Corporation
Send Feedback