This was my first attempt to try and use EDA Link to have a simultaneous Simulink and Modelsim session----is their some sort of setup step that I am missing and is not included in the tutorial?
Trying simple tutorial for EDA Link between Simulink and Modelsim for MATLAB R2010a
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
When I get to the part of tutorial, "Loading Instances of the VHDL Entity for Cosimulation with Simulink" BUT the command
"vsimulink work.inverter" does not work. Modelsim says 'vsimulink' is an invalid command.
I can't really get passed that and its very frustrating.
4 commentaires
Réponses (2)
Kaustubha Govind
le 20 Oct 2011
I think the issue may be that Modelsim is not on the system path, and MATLAB can't find it. For example, try the following from MATLAB:
>> !vsim -version
If this doesn't work, make sure that vsim.exe on the system path and restart MATLAB.
3 commentaires
Kaustubha Govind
le 8 Nov 2011
"vsim" executes the vsim.m file that is part of the EDA Simulator Link product (type "which vsim" to see the full path to the file), whereas "!vsim" redirects the command to the system shell. So it is equivalent to opening a system command window and running "vsim".
It looks like vsim.exe is on your system path, but MATLAB has trouble parsing the command. It could be that ModelSim 10.0 is not supported with the version of MATLAB you have installed. Open your help window (type "doc") and navigate to EDA Simulator Link->Getting Started->Product Requirements->Supported EDA Tools to see the list of supported tools for your version.
Also, please consider contacting Tech Support if this doesn't help.
Walter Roberson
le 7 Nov 2011
Put a breakpoint in at hdlsim>l_GetModelSimLibInfo at 549 and examine lfmVer and see whether it is indeed a scalar or a string constant. If we knew the value that lfmVer had at that point, we might be able to get further.
Also, please look at the lines immediately after that and tell us what data type the switch() code is expecting to receive.
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!