I am using MATLAB 2009a/2012a and MMSIM 10.11 and cadence virtuoso IC220.127.116.110.11
I build a small low pass filter and ran the simulation in ADE and tried to read using MATLAB Spectre Toolbox. Its not working.
The error is attached as follows. I have referred to Matlabspectre.pdf and set the appropriate environments in matlab. Dont know why?
mydir =/home/njacob2/simulation/design1_rcresponse/spectre/schematic/psf>> nevin=cds_srr('mydir')??? Undefined function or method 'cds_innersrr' for input arguments oftype 'char'.Error in ==> cds_srr at 16 sig = cds_innersrr(dirname);
How is it different from creating a netlist of the schematic and creating .raw files which are to be read into matlab. Either of them doesnt work for that matter
If you are using 64 bit version of the tool then please set the LD_LIBRARY_PATH as mentioned by Andrew in the post you referred i.e. -
setenv LD_LIBRARY_PATH `cds_root spectre`/tools/lib/64bit:$LD_LIBRARY_PATH
but you need to keep in mind (as mentioned by Andrew) that if running on a 32-bit machine (or running 32 bit matlab), you'll need to miss out the 64bit part of the path. You may also refer to the following COS Solution for more details when trying to run the SpectreRF/Matlab toolbox on a 64 bit OS -
and see if this helps.
Also, I see one more thing but not sure if that is the case i.e. you are setting -
mydir = '/home/njacob2/simulation/design1_rcresponse/spectre/schematic/psf'
and then using, e.g.,
datalist = cds_srr(mydir)
or some other command like that. I see that you have used -
Please remove these single inverted commas and then try. I tested this at my end and gets the same error if I use these single inverted commas.
In reply to Ashish Patni:
1) MIne is 32 bit system
"getconf LONG_BIT" in terminal
2) tried without inverted commas. Not working
3) I dont have hostid/reference. Cannot access the document link you sent.
In reply to nevinalex1234:
What does "matlab -e" show?
In reply to Andrew Beckett:
matlab 2009a 2012a
matlab -e should show a whole load of environment variable settings - so not sure what your last post was trying to tell me. I don't need to know the versions you're using (you already said that) - but I want to see what the setup of your environment is.
I was not sure where to type it.
I typed it in the terminal and it gave the me the versions ONLY.
Maybe you have some wrapper around matlab? I'm assuming you're running on Linux, not Windows?
What do you get when you type "which matlab"?
which matlab gives
Yes im on linux
Maybe that is a script which intercepts the -e argument for its own purposes. In my case I am directly including the path for matlab:
UNIX> which matlab/export/home/apps/matlab_R2012a/bin/matlab
What I'm really interested in is what:
env | grep MATLAB
env | grep LD_LIBRARY
Try running "matlab -n" to see what that outputs...
env | grep MATLAB returns nothing
asf24lin2-28: env | grep LD_LIBRARYLD_LIBRARY_PATH=/cad/adi/apps/cliosoft/sos/linux_5/6.23.p3/lib/64bit:/cad/adi/apps/cliosoft/sos/linux_5/6.23.p3/lib:/usr/lib:/usr/libexec:/lib:/usr/lib/X12:/cad/adi/apps/gnu/linux/x86_64/5/lib:/cad/adi/apps/gnu/linux/x86_64/5/lib64ADIM_APPEND_TRACKER=MANPATH|LM_LICENSE_FILE|newPATH|CDSLMD_LICENSE_FILE|LD_LIBRARY_PATH|PERL5LIB|INFOPATH|PYTHONPATH
matlab -n same results as earlier (shows version)
Ah, it's possible you might be using a too old version of spectre - in the early MMSIM10.1 versions it had an issue with compiler compatibility. What does "spectre -W" return?
I would also expect you to have MATLABPATH set - otherwise it won't find cds_srr (it needs to be set to <MMSIMinstDir>/tools/spectre/matlab if using 32bit Matlab).
Where's your working directory? (what does "pwd" say?). I assume you're trying to run this from your workspace.
You've not copied cds_srr.m into your user area?
Have you tried setting MATLABPATH to the place I mentioned? That's what you're supposed to do.
By the way, that version should be new enough not to have the compiler incompatibility.