- Right-click on the Start Button.
- Select “System” from the context menu.
- Click “Advanced system settings”.
- Go to the “Advanced” tab.
- Click “Environment Variables…”
- Click variable called “Path” and click “Edit…”
- Click “New”
- Enter the path to the folder containing the binary you want on your PATH.
Cannot run Cosimulation due to error "Failed Cannot connect to 'ModelSim' HDL simulator"
6 views (last 30 days)
Show older comments
I have added the path to my Questa Sim simulator using the addpath command, but am still receiving the "Cannot connect to 'ModelSim' HDL simulator." error. What additional steps do I need to take to allow the Simulink Workflow Advisor to perform cosimulation with Quest Sim?
While the workflow advisor shows the above error, I see the following warning in the MATLAB command line:
Warning: Could not determine 32/64bit mode from 'Model Technology ModelSim - INTEL FPGA STARTER EDITION vsim 2021.1
Simulator 2021.02 Feb 3 2021
0 Comments
Answers (1)
Ramtej
on 10 Aug 2023
Edited: Ramtej
on 10 Aug 2023
Hi Brad,
I understand that you have installed QuestaSim and added the folder to your MATLAB path. Please ensure to check whether the QuestaSim is installed correctly and is visible from MATLAB by running the following command.
!questasim
If you get an error saying "questasim is not recognized as an internal or external command…" Add QuestaSim to your Windows search path as well.
To add QuestaSim to your Windows search path, please follow these steps:
Once the system path has been updated, the ‘!questasim’ command should work from the MATLAB command window. An additional check you can perform is to execute the following command at the MATLAB Command Window.
vsim
This command should launch a new instance of QuestaSim and verify that QuestaSim is configured properly. You can now run Cosimulation with QuestaSim.
Hope that helps.
1 Comment
Marc Erickson
on 31 Aug 2023
We cannot support HDL Cosimulation for the Intel FPGA Starter Edition version of ModelSim because it lacks the underlying PLI support for our application.
We do support Questa versions of the simulator as enumerated here (for the current release):https://www.mathworks.com/help/hdlverifier/gs/supported-eda-tools.html#bt16i4l-7
(Note that this page reflects the version we tested against. Other versions are likely to work as well.)
As noted in a previous response, ensure you are getting the correct version of the tool when invoking from within MATLAB:
>> ! vsim -version
It should show use of the 64b version of a (fully featured) ModelSim or Questa simulator, for example:
Questa Sim-64 vsim 2023.2 Simulator 2023.04 Apr 11 2023
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!