vsim
R2026bStart and configure ModelSim for use with HDL Verifier
Syntax
Description
vsim starts and configures the ModelSim™ simulator for use with the MATLAB® or Simulink® cosimulation.
vsim creates a startup (or .do) file that adds
these Tcl commands to ModelSim:
vsimmatlab: link to MATLAB from ModelSimvsimulink: link to Simulink from ModelSimvsimmatlabsysobj: link to MATLAB System object™ from ModelSim
You can use these ModelSim
Tcl commands instead of the ModelSim
vsim command. These commands load instances of VHDL® entities or Verilog® modules for simulations that use MATLAB or Simulink for verification.
Tip
When attempting to automate the cosimulation, use pingHdlSim to add a pause between the call to vsim and
the call to run the simulation.
vsim( configures the ModelSim simulator using options specified by one or more name-value pair
arguments.Name=Value)