Agilex™ 7 SEU Mitigation User Guide

ID 683128
Date 9/20/2024
Public
Document Table of Contents

4.5.1. Programming the .smh File into Memory

You can program the .smh into any type of memory. The following example procedure generates the programming file for quad serial peripheral interface (SPI) flash memory.
  1. Rename the .smh to <file_name>.hex. If required, convert the file to a little-endian .hex file.
  2. From the Quartus® Prime menu, select File > Programming File Generator.
  3. In the Device family box, select Agilex 7 .
  4. In the Configuration mode box, select Active Serial x4.
    Figure 12. Programming File Generator Window


  5. In the Output Files tab:
    1. Specify the Output directory and Name for the output file.
      Note: The output directory you specify must already exist in the file system.
    2. Select JTAG Indirect Configuration File (.jic).
    3. Select Memory Map File (.map),
  6. In the Input Files tab:
    1. Click Add Raw Data.
    2. Navigate your file system and select the .hex file and click Open.
    3. Click to select the file in the list and then click Properties.
    4. In the Input File Properties window, if you want to use the Quartus® Prime Programmer to configure your device, select On in the Bit swap box and click OK.
      Note: Turning on Bitswap generates little-endian programming files, as required by the Quartus® Prime Programmer. If you use a different programming tool, you can keep Bitswap off, as required by your tool.
  7. In the Configuration Device tab:
    1. Click Add Device.
    2. In the Configuration Device window, click to select your configuration device and click OK.
    3. Click to select the configuration device in the list and then click Add Partition.
    4. In the Add Partition windows, select the file in the Input file box, select Start in the Address Mode box, and then click OK.
    5. Click Select.
    6. In the Select Devices window, click Agilex 7 in the Device family list, select your flash loader device in the Device name list, and then click OK.
  8. Click Generate.