DSP Builder for Intel® FPGAs (Advanced Blockset): Handbook

ID 683337
Date 7/15/2024
Public
Document Table of Contents

3.4.2. Software Model Generated Files

When you turn on software model generation and then run Simulink simulation, DSP Builder creates an additional directory cmodel in the hardware destination directory.
Table 8.  Software Model Generated Files
Directories and Files Description
cmodel/atb/* Contains generated C++ files specific to the automatic testbenches. The testbench is a command-line executable always named atb_app (where ATB is automatic testbench) that checks the output of the software models against the output of Simulink simulation. Running atb_app emits stimulus (.stm) files of the same name and format as the Simulink simulation. The testbenches use relative paths to find the reference stimulus files generated during the Simulink simulation. Launch the testbench with a working directory of the top-level cmodel directory. CMake automatically configures this working directory when generating Visual Studio projects.
cmodel/support/* Contains static C++ files that implement common functionality for software models.
cmodel/[model_subsystem_path].h Contains the software model implementation for a particular model or subsystem.
cmodel/CMakeFiles.txt and cmodel/CMakeLists.txt CMake build scripts for building the testbench executable and model files. DSP Builder builds the model files as a static library.
Figure 29. Example Directory Structure