Loading Instances of the VHDL Entity for Cosimulation with Simulink

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,

  1. Change your input focus to the ModelSim window.

  2. If necessary, change your directory to the location of your inverter.vhd file. For example:

    ModelSim> cd C:/MyPlayArea
    
  3. 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.


Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS