Home > Community > Forums > RF Design > reading simulation results from cadence to matlab/ cds_innersrr

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 reading simulation results from cadence to matlab/ cds_innersrr 

Last post Wed, Sep 5 2012 11:45 PM by Andrew Beckett. 23 replies.
Started by nevinalex1234 22 Aug 2012 03:05 AM. Topic has 23 replies and 4946 views
Page 1 of 2 (24 items) 1 2 Next >
Sort Posts:
  • Wed, Aug 22 2012 3:05 AM

    • nevinalex1234
    • Top 500 Contributor
    • Joined on Wed, Jul 18 2012
    • aluva, Kerala
    • Posts 26
    • Points 430
    reading simulation results from cadence to matlab/ cds_innersrr Reply

    Hi

    I am using MATLAB 2009a/2012a and MMSIM 10.11 and cadence virtuoso IC6.1.5.500.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 of
    type 'char'.

    Error in ==> cds_srr at 16
        sig = cds_innersrr(dirname);

    Filed under:
    • Post Points: 20
  • Wed, Aug 22 2012 3:08 AM

    • nevinalex1234
    • Top 500 Contributor
    • Joined on Wed, Jul 18 2012
    • aluva, Kerala
    • Posts 26
    • Points 430
    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

     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

    Thanks

    • Post Points: 5
  • Wed, Aug 22 2012 10:41 PM

    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

    Hi Nevinalex1234,

     

    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 - 

    http://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNumber=11500586

     

    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 -

    cds_srr('mydir')

    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.

     

    With Regards,

    Ashish

    • Post Points: 20
  • Wed, Aug 22 2012 10:52 PM

    • nevinalex1234
    • Top 500 Contributor
    • Joined on Wed, Jul 18 2012
    • aluva, Kerala
    • Posts 26
    • Points 430
    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

     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.

     

    • Post Points: 20
  • Mon, Sep 3 2012 6:24 AM

    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

    What does "matlab -e" show?

    Andrew.

    • Post Points: 20
  • Tue, Sep 4 2012 3:25 AM

    • nevinalex1234
    • Top 500 Contributor
    • Joined on Wed, Jul 18 2012
    • aluva, Kerala
    • Posts 26
    • Points 430
    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

     matlab 2009a 2012a

    • Post Points: 20
  • Tue, Sep 4 2012 3:33 AM

    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

     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.

    Andrew.

    • Post Points: 20
  • Tue, Sep 4 2012 3:38 AM

    • nevinalex1234
    • Top 500 Contributor
    • Joined on Wed, Jul 18 2012
    • aluva, Kerala
    • Posts 26
    • Points 430
    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

     I was not sure where to type it.

    I typed it in the terminal and it gave the me the versions ONLY.

    • Post Points: 20
  • Tue, Sep 4 2012 3:44 AM

    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

    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"?

    Andrew.

    • Post Points: 5
  • Tue, Sep 4 2012 3:47 AM

    • nevinalex1234
    • Top 500 Contributor
    • Joined on Wed, Jul 18 2012
    • aluva, Kerala
    • Posts 26
    • Points 430
    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

     which matlab gives

    /cad/local/bin/matlab

    Yes im on linux

     

    • Post Points: 20
  • Tue, Sep 4 2012 3:53 AM

    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

    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

    produce.

    Try running "matlab -n" to see what that outputs...

    Regards,

    Andrew.

     

    • Post Points: 20
  • Tue, Sep 4 2012 4:00 AM

    • nevinalex1234
    • Top 500 Contributor
    • Joined on Wed, Jul 18 2012
    • aluva, Kerala
    • Posts 26
    • Points 430
    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

    env | grep MATLAB returns nothing

    asf24lin2-28: env | grep LD_LIBRARY
    LD_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/lib64
    ADIM_APPEND_TRACKER=MANPATH|LM_LICENSE_FILE|newPATH|CDSLMD_LICENSE_FILE|LD_LIBRARY_PATH|PERL5LIB|INFOPATH|PYTHONPATH

    matlab -n same results as earlier (shows version)

    • Post Points: 5
  • Tue, Sep 4 2012 4:08 AM

    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

     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).

    Andrew.

    • Post Points: 5
  • Tue, Sep 4 2012 4:11 AM

    • nevinalex1234
    • Top 500 Contributor
    • Joined on Wed, Jul 18 2012
    • aluva, Kerala
    • Posts 26
    • Points 430
    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

    sub-version  10.1.1.017
     

    • Post Points: 20
  • Tue, Sep 4 2012 4:18 AM

    Re: reading simulation results from cadence to matlab/ cds_innersrr Reply

    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.

    Andrew.

    • Post Points: 5
Page 1 of 2 (24 items) 1 2 Next >
Sort Posts:
Started by nevinalex1234 at 22 Aug 2012 03:05 AM. Topic has 23 replies.