Linking MATLAB or Simulink Software to ModelSim in ADMS

Starting ADMS for Use with EDA Simulator Link MQ

You must call vasim with all parameters manually; the configuration script available for ModelSim SE/PE is not available for ADMS.

When you call vasim, you must provide the -ms and -foreign parameters. For example,

vasim -lib ADC12_ELDO_MS -cmd 
     /devel/user/work/ams/adc12test.cmd TEST -ms -foreign matlabclient path/matlablibrary

where:

-lib ADC12_ELDO_MS

is the model library
/devel/user/work/ams/adc12test.cmd

is the command file
TEST

is the design
path/matlablibrary

is the path to and the name of the MATLAB shared library (see Using the EDA Simulator Link MQ Libraries)

A similar example for the Simulink link looks like this:

vasim -lib ADC12_ELDO_MS -cmd 
     /devel/user/work/ams/adc12test.cmd TEST -ms -foreign simlinkserver path/simulinklibrary

All line arguments after "ms" are sent to the ModelSim process.

See your ModelSim documentation for more about the -foreign option.

Using Tcl Test Bench Commands with ADMS

When you use any of the EDA Simulator Link MQ ModelSim link commands (e.g., matlabcp, matlabtb, matlabtbeval, nomatlabtb), you must precede each command with ms in the ADMS Tcl interpreter. For example:

ms matlabtb myfirfilter 5 ns -repeat 10 ns -socket 4449

All line arguments after 'ms' are sent to the ModelSim process.

Constraints

Setting Simulation Running Time

When running cosimulation sessions in Simulink, make sure that the runtime of the ADMS simulation is greater than or equal to the Simulink runtime.

Solaris Support

  


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