MATLAB-ModelSim Workflow

The following table lists the steps necessary to create and run a MATLAB test bench or component session.

In MATLAB...In the HDL simulator...
  1. Start the MATLAB application and invoke the ModelSim simulator (see Starting the HDL Simulator)

 
 
  1. Create the HDL model.

  2. Compile and elaborate the HDL model.

  3. Load elaborated HDL model with EDA Simulator Link MQ libraries. See Loading an HDL Design for Verification.

  1. Create test bench or component function (see Coding an EDA Simulator Link MQ MATLAB Application).

  2. Start the server. See Starting the MATLAB Server.

 
 
  1. Use matlabcp, matlabtb, or matlabtbeval to associate the function you wrote in step 5 with a module of the loaded model currently in the HDL simulator (see Associating the HDL Module Component with the MATLAB Link Function).
    For additional scheduling and communication options, see Scheduling Options for a Link Session. See also the reference pages for matlabcp, matlabtb, and matlabtbeval.

  2. Run the simulation.

  3. Disconnect the session by using nomatlabtb.

  


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