Unrecognized function or variable 'vsim'.
5 ビュー (過去 30 日間)
古いコメントを表示
samira sorayaasa
2021 年 7 月 30 日
コメント済み: Mahdi Naghshvarianjahromi
2022 年 6 月 24 日
i am getting this error i am working with matlab 2020 a and i instaled modelsim student edition and 11.1 with license . can anyone help me ?
5 件のコメント
Mahdi Naghshvarianjahromi
2022 年 6 月 24 日
The Block/HDLImplementation pair: ('built-in/Reference', 'Module') is not registered in the implementation database.
Component:HDLCoder | Category:HDL error
Hello Samira, I use Matlab with Academic Lisence.
Seems Kiran Kintali answer is nonsense and isn't useful.
Could I ask you please, did you find the solution for this issue?
採用された回答
Kiran Kintali
2021 年 8 月 2 日
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)
>> !modelsim
or
>> !questasim
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.
0 件のコメント
その他の回答 (3 件)
Kiran Kintali
2021 年 7 月 30 日
編集済み: Kiran Kintali
2021 年 7 月 30 日
Possibly install issue. Do you have this file on your path?
>> help vsim
vsim Launch ModelSim for use with MATLAB and Simulink.
>> which vsim
<path_to_install_root>\matlab\toolbox\edalink\extensions\modelsim\modelsim\vsim.m
4 件のコメント
参考
カテゴリ
Help Center および File Exchange で Hardware-in-the-Loop Simulation with Simulink Real-Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!