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

ID 683337
Date 5/27/2022
Public

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

Document Table of Contents

4.2.2. Running DSP Builder Advanced Blockset Automatic Testbenches

Generally, for testbenches, click DSP Builder > Verify Design. To run a single subsystem (or the whole design) in an open ModelSim window, click via DSP Builder > Run ModelSim. You can use the command line if you want to script testing flows.

  • To get a list of the blocks in a design that have automatic testbenches, run the following command in MATLAB:

    getBlocksWithATBs('model')

  • To load an automatic testbench from the ModelSim simulator, use the following command:

    source <subsystem>_atb.do

    Alternatively, in ModelSim click Tools > Execute Macro and select the required .do file.

  • You can run an automatic testbench targeting a subsystem or a IP block in your design, or you can run an automatic testbench on all of your design.
  • To run an automatic testbench from the MATLAB command line on a single entity, use the command dspba.runModelsimATB.
  • To run testbenches for all subsystems and the device level and set testbench options: in the simulink window, click DSP Builder > Verify Design or type:

    run_all_atbs(<model name>, Run simulation? (0:1), run Quartus (0:1))

  • To run the device level testbench in the ModelSim simulator, click DSP Builder > Run ModelSim.