Unrecognized function or variable 'vsim'.

7 ビュー (過去 30 日間)
samira sorayaasa
samira sorayaasa 2021 年 7 月 30 日
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 件のコメント
samira sorayaasa
samira sorayaasa 2021 年 8 月 1 日
>> ver
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.8 (R2020a)
Simulink Version 10.1 (R2020a)
Aerospace Blockset Version 4.3 (R2020a)
Aerospace Toolbox Version 3.3 (R2020a)
Control System Toolbox Version 10.8 (R2020a)
Curve Fitting Toolbox Version 3.5.11 (R2020a)
DSP System Toolbox Version 9.10 (R2020a)
Data Acquisition Toolbox Version 4.1 (R2020a)
Deep Learning Toolbox Version 14.0 (R2020a)
Embedded Coder Version 7.4 (R2020a)
Fixed-Point Designer Version 7.0 (R2020a)
Fuzzy Logic Toolbox Version 2.7 (R2020a)
Global Optimization Toolbox Version 4.3 (R2020a)
HDL Coder Version 3.16 (R2020a)
HDL Verifier Version 6.1 (R2020a)
Image Processing Toolbox Version 11.1 (R2020a)
Instrument Control Toolbox Version 4.2 (R2020a)
MATLAB Coder Version 5.0 (R2020a)
Mapping Toolbox Version 4.10 (R2020a)
Optimization Toolbox Version 8.5 (R2020a)
Partial Differential Equation Toolbox Version 3.4 (R2020a)
Robust Control Toolbox Version 6.8 (R2020a)
Signal Processing Toolbox Version 8.4 (R2020a)
Simscape Version 4.8 (R2020a)
Simscape Driveline Version 3.1 (R2020a)
Simscape Electrical Version 7.3 (R2020a)
Simscape Fluids Version 3.0 (R2020a)
Simulink Coder Version 9.3 (R2020a)
Simulink Control Design Version 5.5 (R2020a)
Simulink Desktop Real-Time Version 5.10 (R2020a)
Simulink Real-Time Version 6.12 (R2020a)
Stateflow Version 10.2 (R2020a)
Statistics and Machine Learning Toolbox Version 11.7 (R2020a)
Symbolic Math Toolbox Version 8.5 (R2020a)
System Identification Toolbox Version 9.12 (R2020a)
>> vich vsim
Unrecognized function or variable 'vich'.
>> which vsim
'vsim' not found.
Mahdi Naghshvarianjahromi
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
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.

その他の回答 (3 件)

Kiran Kintali
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 件のコメント
samira sorayaasa
samira sorayaasa 2021 年 7 月 30 日
i could not find the modsimrand.hdl and midsim_plot.m files ?how can i download them to do tutorial steps?
samira sorayaasa
samira sorayaasa 2021 年 8 月 1 日
neither help vsim nor which vsim
>> which vsim
'vsim' not found.

サインインしてコメントする。


Kiran Kintali
Kiran Kintali 2021 年 8 月 1 日
please reach out to support for this install question.
  1 件のコメント
samira sorayaasa
samira sorayaasa 2021 年 8 月 1 日
I sent a request for that

サインインしてコメントする。


samira sorayaasa
samira sorayaasa 2021 年 8 月 4 日
i belive the problem is (install package compiler)
https://www.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c-compiler

タグ

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by