Hard Processor System Booting User Guide: Agilex™ 5 SoCs

ID 813762
Date 8/23/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.7.2. HPS Boot First

In this case, the device gets first configured with a small phase 1 bitstream from QSPI flash, the HPS IO, HPS DDR are configured and HPS starts running the FSBL. Then at a later time the HPS software can configure the FPGA fabric using the typically much larger phase 2 configuration bitstream. The following figure shows an overview of the process:

Figure 25. Configuration over Avalon® streaming interface Using HPS Boot First
  1. Compile hardware project with Quartus® Prime to obtain the SOF file.
  2. Compile the HPS FSBL source code to obtain the HPS FSBL hex file, or use a precompiled one.
  3. Use Programming File Generator to create the following files:
    • Raw Binary File (RBF): contains the small phase 1 configuration bitstream.
    • Core RBF File: contains the typically much larger phase 2 configuration bitstream, to be used by HPS software later to configure the fabric.
  4. Set MSEL to the AVST mode.
  5. Power up, power cycle or toggle nCONFIG on the device.
  6. Use an external initiator connected over AVST to configure the device using the phase 1 bitstream. HPS software starts running, beginning with HPS FSBL. The HPS software configures the FPGA fabric by using the phase 2 Core RBF bitstream at a later time.