Example - Example - 7.2 English - PG149

FIR Compiler LogiCORE IP Product Guide (PG149)

Document_ID
PG149
Release_Date
2026-07-22
Version
7.2 English
The run_fir_compiler_v7_2_mex.m file contains a MATLAB script with an example of how to run the C model using the MEX function.

To run the sample script:

  1. Compile the MEX function with the make_fir_compiler_v7_2_mex.m script (refer to Compiling).
  2. Install the MEX function (refer to Installation).
  3. Execute the run_fir_compiler_v7_2_mex.m script.

    The script demonstrates the following filter configurations:

    Table 1. Example Filter Configurations
    Variable Configuration Notes
    fir1 Default single-rate, real coefficients Batch mode
    fir2 Reloadable single-rate, real coefficients Demonstrates reload_send and config_send
    fir3 2-channel interpolation ×2, real coefficients  
    fir4    
    fir5    
    fir6    
    fir7    
    fir8    
    fir9