• 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. Custom IC Design
  3. Failed to install Spectre/RF matlab toolbox

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 126
  • Views 3007
  • 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

Failed to install Spectre/RF matlab toolbox

candygg
candygg over 14 years ago

Hello, Thank you for viewing my post. I met a problem when first time use the Spectre/RF Matlab toolbox.

I use MMSIM6.2 and Matlab2010b(32bit), run on 32bit Linux.  Where&How should I set LD_LIBRARY_PATH and MATLABPATH?
I try to set them in ~/.cshrc file. The codes are appended to the existing .cshrc file as following:
setenv LD_LIBRARY_PATH `cds_root spectre`/tools/dfII/lib:`cds_root spectre`/tools/lib/
setenv MATLABPATH `cds_root spectre`/tools/spectre/matlab

Then I lauch matlab from home directory and type "getenv LD_LIBRARY_PATH" in matlab window to check the path. It looks ok.
The spectre paths are appended to matlab's own paths. Then I tried the matlab code:

rdir='XXXX/XXXX/XXX/spectre/schematic/psf'
datalist=cds_srr(rdir)

it reports ERROR as following:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
??? Invalid MEX-file '/usr/local/apps/cadence/spectre/current/tools/spectre/matlab/cds_innersrr.mexglx':
/usr/local/apps/cadence/spectre/current/tools/spectre/matlab/cds_innersrr.mexglx: undefined symbol:
mxCreateScalarDouble.

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

I can only find one MEX file in the package for 32bit, that is cds_innersrr.mexglx, all the others are .m files.

"cds_srr" function use "cds_innersrr.mexglx" file, but looks like something wrong with it.
I have no idea how to open .mexglx file and how to check the problem. I appreciate your
help, Thank you!
Candygg

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago
    Hi Candygg,

    The trouble is that you are using too old a version of MMSIM with a brand new version of Matlab.

    This problem was caused by us using a grandfathered function (I think that's the terminology that the Mathworks use) in the toolbox which got removed in Matlab 2009b.

    You're using a version of MMSIM from 3 years ago (something like that), yet using Matlab from this year.

    The problem was fixed in MMSIM711 ISR9 in July 2009 so you'll need to use a version later than that - I'd suggest using MMSIM7.2 or the latest release MMSIM10.1 (there was a jump in the version numbers to catch up with the year - so MMSIM72 is the release before 10.1 which was released in the last few weeks).

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • candygg
    candygg over 14 years ago

     Thank you very much, Andrew! It is very helpful! Otherwise, I might waste lots of time trying to figure it out. 

    BTW: Please ignore the email sent by me on "The Designer's Guide Community".

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • BoulderDash
    BoulderDash over 14 years ago

    Hello,

    i'm working with MMSIM 7.2 and Matlab2010a (7.10.0) and Virtuoso 6.1.4.

    The toolbox works fine if i'm using in a Matlab script (inside ADE XL) without any cds_srr statements, for example:

    axlResult = 0; 

    or if i'm plotting some stuff (like the example in the documentation). But if i want to load a signal with the cds_srr function i got an error:

    Vi = cds_srr(psf, 'dc-dc', '/Vi');
    ??? Undefined function or method 'cds_innersrr' for input arguments of type 'char'.

    Error in ==> cds_srr at 20
      sig = cds_innersrr(dirname, dataset, signame, verbose);

    I cant find this function, there is only a mex file in the folder tools/spectre/matlab (cds_innersrr.mexglx)

     What can i do? Did i forget something?

     Thanks for your help!

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Tawna
    Tawna over 14 years ago

    I suspect that you have run into the issue described in the following solution (if it does not resolve your problem, please file a Service Request with Cadence Customer Support support.cadence.com ):

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

    Make sure your <path>/tools/lib/64bit 
    is at the beginning of the LD_LIBRARY_PATH 
     
    best regards,
    Tawna 
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    I'd also suggest that you try running matlab standalone and then calling cds_srr() interactively, and ensuring that works, before you start trying to use it in an ADE XL measurement. Did you set $LD_LIBRARY_PATH like I (and Tawna) suggested earlier? 

    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