cosimWizard with ModelSim times out during Simulation Options

Hello,
I am using trying to run the MATLAB example:
and I have tried to follow the MATLAB cosimulation example found on Youtube as well:
However, I can't get past the Simulation Options step during the cosimWizard setup as it just times out. Within the log files I find the error:
"# ** Error: (vsim-3193) Load of "C:/Program Files/MATLAB/R2025b/toolbox/edalink/extensions/modelsim/windows64/liblfmhdls_tmwvs.dll" failed: Bad DLL format.""
I am not entirely sure what this means and how it can be resolved.
Command "vsim" does launch ModelSim Simulation Environment that is bundled with Libero SoC v2024.2.
In the environment variables I have added the "PATH" to the directory that contains the ModelSim.exe:
"C:\Microchip\Libero_SoC_v2024.2\ModelSim\win32acoem"
Any help would be appreciated. ver:
MATLAB Version 25.2 (R2025b)
Simulink Version 25.2 (R2025b)
Control System Toolbox Version 25.2 (R2025b)
Embedded Coder Version 25.2 (R2025b)
Fixed-Point Designer Version 25.2 (R2025b)
HDL Coder Version 25.2 (R2025b)
HDL Verifier Version 25.2 (R2025b)
MATLAB Coder Version 25.2 (R2025b)
PLECS Piece-wise Linear Electrical Circuit Simu Version 4.9.10
Signal Processing Toolbox Version 25.2 (R2025b)
Simscape Version 25.2 (R2025b)
Simscape Electrical Version 25.2 (R2025b)
Simulink Coder Version 25.2 (R2025b)
Simulink Control Design Version 25.2 (R2025b)
Symbolic Math Toolbox Version 25.2 (R2025b)

 Accepted Answer

HDL Verifier has not supported the ModelSims that are bundled with FPGA tools for cosimulation due to the feature-reduced capabilities in those bundled versions. However, starting with R2026a, FPGA-bundled versions based on Questa-Base are supported.
Your installation path hints it is a 32b version of Modelsim, but If you are actually using a 64b version of Questa-Base and it is not working reach out to technical support for further assistance.

1 Comment

Prior to accepting the answer I would like to clarify that I have updated to Matlab 2026a and Libero SoC v2025.1. I have set the environmental variables path to Questa (...Libero_SoC_2025.1\Libero_SoC\QuestaSim_Pro\win64) and not ModelSim (...Libero_SoC_2025.1\Libero_SoC\ModelSim_Pro\win32acoem). I have since been capable of using cosimWizard, generating Simulink blocks, and executing the example https://uk.mathworks.com/help/hdlverifier/ug/get-started-simulink-cosimulation-hdl.html

Sign in to comment.

More Answers (0)

Products

Release

R2025b

Asked:

on 28 May 2026

Commented:

on 2 Jun 2026

Community Treasure Hunt

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

Start Hunting!