MATLAB: HDL cosimulation with modelsim and simulink

cosimutionHDL Verifier

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

Best Answer

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