| Link for ModelSim | ![]() |
When linked with MATLAB, ModelSim functions as the client, initiating requests of MATLAB that focus on numerical computing, algorithm development, and visualization. The MATLAB server, which you start with a supplied MATLAB function, waits for connection requests from instances of ModelSim running on the same or different computers. When the server receives a request, it executes a specified wrapper MATLAB function you have coded to perform tasks on behalf of an entity in your VHDL design. Parameters that you specify when you start the server indicate whether the server establishes shared memory or TCP/IP socket communication links.
Once the server is running, you can start and configure ModelSim for use with MATLAB with a supplied Link for ModelSim function. Optional parameters allow you to specify
Tcl commands that execute as part of startup
A specific ModelSim executable to start
The name of a ModelSim DO file to store the complete startup script for future use or reference
During the configuration process, Link for ModelSim equips ModelSim with a set of Link for ModelSim command extensions you use to
Load the ModelSim simulator, vsim, with an instance of a VHDL entity to be tested with MATLAB
Initiate a MATLAB test bench session for that instance
When you initiate a specific test bench session, you specify parameters that identify
The mode and, if appropriate, TCP/IP data necessary for connecting to a MATLAB server
The wrapper MATLAB function that attaches to and executes on behalf of the VHDL entity
Timing specifications and other control data that specifies when the entity's MATLAB function is to be called
The MATLAB server can service multiple simultaneous ModelSim entities and clients. However, your M-code must track the I/O associated with each entity or client.
| Modes of Communication | Working with Simulink and ModelSim | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |