• 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. Undefined function or variable 'cds_innersrr'.

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 3869
  • 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

Undefined function or variable 'cds_innersrr'.

findsriharsha
findsriharsha over 8 years ago

Hello,

For the below cds_srr function  call, I am getting error in matlab. could you please suggest if it is a known bug or if there is any workaround available?

Please let me know if you need more details.Thanks

Tool Version:

Matlab version: R2015A

MMSIMHOME=/p/hdk/cad/mmsim/14.10.804
MMSIM=/p/hdk/cad/mmsim/14.10.804
MMSIM_OVERRIDES_VER=14.10.804.0

CODE: struct_n = cds_srr(c.outfile, c.sweep, params_

Error:

Undefined function or variable 'cds_innersrr'.

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

Error in techsweep_spectre (line 58)
struct_n = cds_srr(c.outfile, c.sweep, params_n{1});

  • Cancel
  • findsriharsha
    findsriharsha over 8 years ago
    Correction:

    Code: struct_n = cds_srr(c.outfile, c.sweep, params_n{1});
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Most likely you've either set the $MATLABPATH variable incorrectly, or have used the addpath in Matlab to add the wrong directory.

    What you need is:

    setenv MATLABPATH `cds_root spectre`/tools/spectre/matlab/64bit

    or similar. In other words, you need the add the path to the MMSIM installation with tools/spectre/matlab/64bit on the end. If you've missed out the 64bit part, you'll get the problem you're seeing (this is because Matlab for the last few years is only available in 64-bit mode). We probably should obsolete the old 32-bit libraries...

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • findsriharsha
    findsriharsha over 4 years ago in reply to Andrew Beckett

    Sorry for the delayed response: This is what $MATLABPATH is set to...

    (Setup)(hiphdk)(I76A0)> echo $MATLABPATH
    /p/hdk/cad/mmsim/19.1.0.561/tools/spectre/matlab/64bit:/p/hdk/cad/mmsim/19.1.0.561/tools/spectre/matlab/:/nfs/sc/disks/matlab:/p/hdk/cad/analog_collateral/18.14.2/libraries/matlab/

    Matlab script:

    import cadence.srrdata.*
    import cadence.Query.*
    import cadence.utils.*

    resdir = '/nfs/sc/disks/xyz_tb/maestro/results/maestro/Interactive.47/1/xyz_noise/psf';

    datasets = cds_srr(resdir);

    Error Message:

    >> spectre_matlab1
    Invalid MEX-file '/p/hdk/cad/mmsim/19.1.0.561/tools/spectre/matlab/64bit/cds_innersrr.mexa64': /nfs/site/disks/hdk_cad_3/cad/matlab/R2016a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by
    /p/hdk/cad/mmsim/19.1.0.561/tools/spectre/matlab/64bit/../../../lib/64bit/libsrr.so)

    Error in cds_srr (line 16)
    sig = cds_innersrr(dirname);

    Error in spectre_matlab1 (line 7)
    datasets = cds_srr(resdir);

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to findsriharsha

    See my response to your duplicate post (not sure why you posted it twice - the forum guidelines ask you not to do this.

    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