Prev: large binary matrix comparison with ones matrix
Next: How to code a spell checker in matlab without using the activex of Word
From: vimal Pandey on 14 Jul 2010 06:26 Hi, When i enter vsim command in the command window every time i am getting the following error: --------------------- ??? SWITCH expression must be a scalar or string constant. Error in ==> hdlsim>l_GetModelSimLibInfo at 549 switch (lfmVer) Error in ==> hdlsim at 113 case 'ModelSim', libInfo = l_GetModelSimLibInfo; Error in ==> vsim at 101 hdlsim(pvpairs{:}); --------------------- can anyone help me?
From: Tao Jia on 19 Jul 2010 15:36
The error occurs since MATLAB cannot recognize the version string returned by ModelSim. It is usually caused by ModelSim Xilinx Edition or ModelSim Altera Edition. Those versions of ModelSim do not work with EDA Simulator Link ( the vsim command you were using belongs to EDA Simulator Link product). EDA Simulator Link supports ModelSim SE, PE and DE (DE on Windows only) versions. You might want to make sure that you are using one of those supported ModelSim versions first. In the future, the error message reported by vsim command will be more clear when unsupported ModelSim versions are detected. Regards, Tao "vimal Pandey" <vimalpandey94(a)gmail.com> wrote in message news:i1k3bs$6rr$1(a)fred.mathworks.com... > Hi, > When i enter vsim command in the command window every time i am getting > the following error: > --------------------- > ??? SWITCH expression must be a scalar or string constant. > Error in ==> hdlsim>l_GetModelSimLibInfo at 549 > switch (lfmVer) > Error in ==> hdlsim at 113 > case 'ModelSim', libInfo = l_GetModelSimLibInfo; > > Error in ==> vsim at 101 > hdlsim(pvpairs{:}); > --------------------- > > can anyone help me? > |