| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → EDA Simulator Link |
| Contents | Index |
| Learn more about EDA Link Simulator |
| On this page… |
|---|
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]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/matlablibrarywhere:
-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/simulinklibraryThis command sends all line arguments after "ms" to the ModelSim process.
See your ModelSim documentation for more about the -foreign option.
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.
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.
EDA Simulator Link supports ADMS on Solaris 9 and 10 32-bits but does not support ADMS on Solaris 64-bit.
glibc errors on glnxa64 when running a cosimulation session with ADMS
If you get the following:
*** glibc detected *** free(): invalid pointer: 0x0000000001eeb490 ***
Then enter the following command:
setenv MALLOC_CHECK_ 0
Which says, effectively, "Do not generate an error message, and do not kill the program".
![]() | Additional Deployment Options | Diagnosing and Customizing Your Setup for Use with the HDL Simulator and EDA Simulator Link Software | ![]() |

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 |