• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. RF Design
  3. reading simulation results from cadence to matlab/ cds_...

Stats

  • Locked Locked
  • Replies 23
  • Subscribers 63
  • Views 23807
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

reading simulation results from cadence to matlab/ cds_innersrr

nevinalex1234
nevinalex1234 over 13 years ago

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

  • Cancel
  • nevinalex1234
    nevinalex1234 over 13 years ago

     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

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Ashish Patni
    Ashish Patni over 13 years ago

    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

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • nevinalex1234
    nevinalex1234 over 13 years ago

     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.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    What does "matlab -e" show?

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • nevinalex1234
    nevinalex1234 over 13 years ago

     matlab 2009a 2012a

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

     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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • nevinalex1234
    nevinalex1234 over 13 years ago

     I was not sure where to type it.

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

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • nevinalex1234
    nevinalex1234 over 13 years ago

     which matlab gives

    /cad/local/bin/matlab

    Yes im on linux

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    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.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
>

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information