| Link for ModelSim | ![]() |
This section explains how to use the vsimulink command to load an instance of your VHDL entity for cosimulation with Simulink. The vsimulink command is a Link for ModelSim variant of the ModelSim vsim command. It is made available as part of the ModelSim configuration.
To load an instance of the inverter entity,
Change your input focus to the ModelSim window.
If necessary, change your directory to the location of your inverter.vhd file. For example:
ModelSim> cd C:/MyPlayArea
Enter the following vsimulink command:
ModelSim> vsimulink work.inverter
ModelSim starts the vsim simulator such that it is ready to simulate entity inverter in the context of your Simulink model. The ModelSim command window display should be similar to the following.

| Setting Up ModelSim for Use with Simulink | Running the Simulation | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |