HDL cosimulation with modelsim and simulink

26 views (last 30 days)
i have written one vhdl code and want to link with simulink but while running the command on modelsim , showing error "invalid command name "vsimulink" . and while updating diagram in simulink environment, showing error "Error reported by S-function 'shdlcosim' in 'testing/HDL Cosimulation/S-Function':Handshaking with the server failed - Server was NOT an 'HDL Link' server, change the port". i m using MATLAB (R2011a) and Modelsim PE student edition 10.2c. pplease tell me how can i resolve this problem

Accepted Answer

Tao Jia
Tao Jia on 7 Mar 2014
You'll need to use the vsim command to launch ModelSim first. Note that this vsim is a MATLAB command, not the one in ModelSim. vsimulink is a tcl procedure created by HDL Verifier. It's loaded into ModelSim only if you use the vsim command launch ModelSim. For more information, see HDL Verifier documentation.
Hope this helps
  1 Comment
swina
swina on 8 Mar 2014
thanks a lot Tao for suggesting me. i tried in the same way but it is showing this error " Error using ==> hdlsim>l_GetModelSimLauncherInfo at 957 In GUI mode, white-space characters are not allowed in the absolute path of startupfile: "C:/Program Files/MATLAB/R2011a/compile_and_launch.tcl". Change rundir property value or current MATLAB directory to have a value without white-spaces.
Error in ==> hdlsim at 235 launcherInfo = l_GetModelSimLauncherInfo;
Error in ==> vsim at 101 hdlsim(pvpairs{:});. now what should i do Tao

Sign in to comment.

More Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!