Skip to Main Content Skip to Search
Product Documentation

Launch HDL Simulator for Use with MATLAB Component Session

Launching the HDL Simulator for Component Session

Start the HDL simulator directly from MATLAB by calling the MATLAB functionvsim or nclaunch. See HDL Cosimulation for instructions on starting the HDL simulator for use with HDL Verifier.

Loading an HDL Design for Visualization

After you start the HDL simulator from MATLAB with a call to vsim or nclaunch, load an instance of an HDL module for verification or visualization with the function vsimmatlab or hdlsimmatlab. At this point, you should have coded and compiled your HDL model. Issue the function vsimmatlab or hdlsimmatlab for each instance of an entity or module in your model that you want to cosimulate. For example (for use with Incisive):

hdlsimmatlab work.osc_top

This command loads the HDL Verifier library, opens a simulation workspace for osc_top, and displayd a series of messages in the HDL simulator command window as the simulator loads the entity (see demo for remaining code).

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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