Verify Generated Component Against Simulink Data

For Mentor Graphics ModelSim and QuestaSim

  1. Start ModelSim® or Questa®Sim in GUI mode.

  2. Change your current folder to the dpi_tb folder under the code generation folder in your HDL simulator installation.

  3. Enter the following command to start your simulation:

    do run_tb_mq.do
  4. When the simulation finishes, it displays the following message in your console:

    **************TEST COMPLETED (PASSED)**************

For the Cadence Incisive Simulator

  1. Start your terminal shell.

  2. Change the current folder to "dpi_tb" under the code generation folder.

  3. Enter the following command in your shell.

    sh run_tb_ncsim.sh
  4. When the simulation finishes, it displays the following message in your console:

    **************TEST COMPLETED (PASSED)**************