Unrecognized function or variable 'vsim'.
5 views (last 30 days)
Kiran Kintali on 2 Aug 2021
Based on your snapshot of ver command above it looks like you do have access to HDL Verifier.
Try using one of the following commands in MATLAB (depending on whether you have Modelsim or Questasim installed on your machine)
If you have modelsim or questasim and set them up correctly, they should open.
This is to test whether you have modelsim or questasim, installed correctly, and MATLAB is also seeing the tool.
we do not have your exact error message you were getting here. However, if MATLAB finds modelsim or questasim after doing the above test. The next issue might be because your system environment variables are set in such a way that by default other applications, like MATLAB, or if you run modelsim/questasim from Windows command window, will pick the student version of the modelsim/questasim. Those versions will not work for HDL Verifier cosimulation.
To make sure MATLAB (or any other application in your PC for that matter) to open the licensed version of your modelsim/questasim you must make sure you have set the correct license variable name with right path in your environment variables and make sure the 'Path' has the path to your licensed executable version.
This is expected setup
(Note: blocked out irrelevant paths in black in the snapshot above)
license variable above is MGLS_LICENSE_FIL (your license path might be a path to a license server, my own local license path as you see above). In 'Path' variable you might have path to executable of many applications.
Windows has a priority scheme in reading the ‘Path’ variable, meaning, if you have path to two versions of modelsim or questasim executables in your 'Path' variable definition, Windows will pick one of them.
Hope some of this helps.