Products & Services Solutions Academia Support User Community Company

Learn more about EDA Link Simulator   

Adding ADMS Support

Adding Libraries for ADMS Support

You do not need a special library installation for Mentor Graphics® ADVance MS™ (ADMS) support.

If you must add system libraries to the LD_LIBRARY_PATH you can add them in a .vams_setup file. Doing it this way (rather than specifying the path before calling vasim) prevents vasim from overwriting the path addition each time it starts.

This example appends the system shared libraries to LD_LIBRARY_PATH:

proc fixldpath {args} {
   set pvpair [split [join $args]]
   set pval   [lindex $pvpair 1]
   append newpval /directory/of/system/dlls ":" $pval
   append setcmd { array set env [list LD_LIBRARY_PATH } " " $newpval " " ]
   uplevel 1 $setcmd
}

fixldpath [array get env LD_LIBRARY_PATH]

Linking MATLAB or Simulink Software to ModelSim in ADMS

Starting ADMS for Use with EDA Simulator Link Software

Call vasim with all parameters manually; the configuration script available for the ModelSim simulator is not available for ADMS.

When you call vasim, 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 Libraries)

A similar example for the Simulink link looks like the following code:

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

This command sends all line arguments after "ms" 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 functions for the HDL simulator (for example, matlabcp or matlabtb), precede each command with ms in the ADMS Tcl interpreter. For example:

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

This command sends all line arguments after 'ms' 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.  

  


Recommended Products

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

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