FPGA AI Suite Handbook

ID 863373
Date 11/21/2025
Public
Document Table of Contents

12.5. Changing the ML Graph in a Hostless DDR-Free Architecture

Each DDR-free architecture stores filter, bias, scale, and configuration data in M20K embedded memories rather than in external memory. There are two logical memories used to store this data, one called the filter-bias-scratchpad and the other called the configuration memory. The memory contents are encoded by the memory initialization (.mif) files.

For a hostless DDR-free architecture, you can update the ML graph stored in the FPGA AI Suite IP in the following ways:
  • Programming new memory contents in the FPGA AI Suite IP CSR interface from the .mif files. This method keeps the programmed FPGA device online.
  • Modify the FPGA bitstream and reprogram the FPGA with the modified bitstream.

For both approaches, the first step is to generate a new set of .mif files as described in Generating Artifacts for Hostless DDR-Free Operation. You must guarantee the filter-bias-scale memory depth and configuration memory depth of the existing FPGA AI Suite IP are sufficient for holding the parameters and configurations of the new model. The compiler returns an error message if the memory size configured into the FPGA AI Suite IP is too small.

Updating the Model via FPGA AI Suite IP CSR

To update the ML graph by programming new memory contents in the FPGA AI Suite IP CSR interface from the .mif files, refer to Updating Hostless DDR-Free MIF Files Through the CSR.

Updating the Model by Reprogramming the FPGA Device

You can update the contents of the M20Ks through the Quartus® Prime tools. The commands regenerate the top.sof bitstream file that needs to be reprogrammed on the device.

The Quartus® Prime tools do not change the architecture of the FPGA AI Suite IP. The update only changes the contents of the on-chip M20Ks that store the graph information and the FPGA AI Suite IP configuration.

To update the contents of the M20K on-chip memory:

  1. Recompile the .mif files for the new graph as described in Generating Artifacts for Hostless DDR-Free Operation.
  2. Replace the .mif files under “ <path/to/build/dir>/coredla_ip/intel_ai_ip/verilog/.” with the files that were created in the previous step.
  3. Run the following commands from “ <path/to/build/dir>/hw/”:
    quartus_cdb top -c top --update_mif
    
    quartus_asm --read_settings_files=on --write_settings_files=off top -c top