Documentation

vsimulink

Load instantiated HDL module for cosimulation with ModelSim and Simulink

Syntax

vsimulink instance> [<vsim_args>]

Description

The vsimulink command loads the specified instance of an HDL module for cosimulation and sets up ModelSim® so it can establish a communication link with Simulink®. ModelSim opens a simulation workspace and displays a series of messages in the command window as it loads the HDL module's packages and architectures.

This command is issued in the HDL simulator. The communication mode is determined by the call to vsim, which must be issued before you call vsimulink.

Argument

<instance>

Specifies the instance of an HDL module to load for cosimulation.

<vsim_args>

Specifies one or more ModelSim vsim command arguments. For details, see the description of vsim in the ModelSim documentation. Do not issue a command such as vsim < command.do with this parameter.

Examples

The following command loads the HDL module instance parse from library work for cosimulation and sets up ModelSim so it can establish a communication link with Simulink:

ModelSim> vsimulink work.parse
Was this topic helpful?