Main Content

Start HDL Simulator for Cosimulation in Simulink

Start HDL Simulator from MATLAB

Start the HDL simulator directly from MATLAB® by calling the HDL Verifier™ function vsim or nclaunch.


Note that if both tools (MATLAB and the HDL simulator) are not running on the same system, you must start the HDL simulator manually and load the HDL Verifier libraries yourself. See Cosimulation Libraries.

You can call vsim or nclaunch with additional parameters; see the reference pages for details.

You must make sure the HDL simulator executables — also called vsim (ModelSim®) and nclaunch (Cadence Incisive®) — are on the system path. See your system documentation for instruction on setting environment variables.

Linux Users

Make sure the HDL simulator executable is still on the system path after the shell is launched from MATLAB. If it is not, make sure the shell startup file does not remove it from the path environment variable.

Load Instance of HDL Module for Cosimulation

Incisive® users load an instance of the HDL module for cosimulation using the hdlsimulink function. ModelSim users do the same using the vsimulink function.

 Example of loading HDL Module instance — Incisive users

 Example of loading HDL Module instance — ModelSim users

This command opens a simulation workspace for manchester and displays a series of messages in the HDL simulator command window as the simulator loads the packages and architectures for the HDL module.