• 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 23794
  • 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

    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)

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

     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.

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

    sub-version  10.1.1.017
     

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

    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.

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

     By the way, that version should be new enough not to have the compiler incompatibility.

    Andrew.

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

    Yes i ran that from workspace.

    Do i need to copy that cds_srr.m ? I entered the matlab environment so it must automatically read it write ?

    cds_srr is getting correctly initiated in matlab

      but its cds_innersrr thats propping up the issue. In fact there is no pure cds_innersrr.m function in the path. there is only a cds_innersrr.mexglx 

    Is it why the error below props up

    >> cds_srr
    >> help cds_srr
       sig = cds_srr(dirname, dataset, signame, verbose)
       dirname: the path of psf or stt2 results
       dataset: the dataset name in the results, when only 'result dir' give out, the command will return all dataset names.
       signame: the name of signal in the dataset, the command will return all signal names in the dataset,
                when this parameter unset.
     
      Copyright(C) Cadence Design Systems, Inc., 2004-2006. All rights reserved.

    >> 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
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    No, you don't need to copy it - I was wondering whether you had - I can't see how it is being found if MATLABPATH is not being set. IOt won't find cds_innersrr.mexglx unless MATLABPATH is set.

    Once matlab has started, can you type "path" and then post what it returns.

    Andrew

     

     

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

            MATLABPATH

        /home/njacob2/matlab
        /cad/adi/apps/cadence/mmsim/linux/10.11.017/tools/spectre/matlab
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/general
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/ops
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/lang
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/elmat
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/randfun
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/elfun
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/specfun
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/matfun
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/datafun
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/polyfun
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/funfun
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/sparfun
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/scribe
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/graph2d
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/graph3d
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/specgraph
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/graphics
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/uitools
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/strfun
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/imagesci
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/iofun
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/audiovideo
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/timefun
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/datatypes
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/verctrl
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/codetools
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/helptools
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/demos
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/timeseries
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/hds
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/guide
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/plottools
        /cad/local/apps/mathworks/matlab/2009a/toolbox/local
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/controllib
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/dastudio
        /cad/local/apps/mathworks/matlab/2009a/toolbox/matlab/datamanager
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/simulink
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/simulink/slresolve
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/blocks
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/components
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/fixedandfloat
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/fixedandfloat/fxpdemos
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/fixedandfloat/obsolete
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/simdemos
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/simdemos/aerospace
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/simdemos/automotive
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/simdemos/simfeatures
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/simdemos/simgeneral
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/dee
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/dastudio/depviewer
        /cad/local/apps/mathworks/matlab/2009a/toolbox/stateflow/stateflow
        /cad/local/apps/mathworks/matlab/2009a/toolbox/rtw/rtw
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/sigbldr
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/simulink/modeladvisor
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/simulink/modeladvisor/fixpt
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/simulink/MPlayIO
        /cad/local/apps/mathworks/matlab/2009a/toolbox/simulink/simulink/dataobjectwizard
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/hdlshared
        /cad/local/apps/mathworks/matlab/2009a/toolbox/rtw/accel
        /cad/local/apps/mathworks/matlab/2009a/toolbox/stateflow/sfdemos
        /cad/local/apps/mathworks/matlab/2009a/toolbox/stateflow/coder
        /cad/local/apps/mathworks/matlab/2009a/toolbox/commblks/commblks
        /cad/local/apps/mathworks/matlab/2009a/toolbox/commblks/commmasks
        /cad/local/apps/mathworks/matlab/2009a/toolbox/commblks/commmex
        /cad/local/apps/mathworks/matlab/2009a/toolbox/commblks/commblksdemos
        /cad/local/apps/mathworks/matlab/2009a/toolbox/commblks/commblksobsolete/v3
        /cad/local/apps/mathworks/matlab/2009a/toolbox/commblks/commblksobsolete/v2p5
        /cad/local/apps/mathworks/matlab/2009a/toolbox/commblks/commblksobsolete/v2
        /cad/local/apps/mathworks/matlab/2009a/help/toolbox/commblks/examples
        /cad/local/apps/mathworks/matlab/2009a/toolbox/comm/comm
        /cad/local/apps/mathworks/matlab/2009a/toolbox/comm/commdemos
        /cad/local/apps/mathworks/matlab/2009a/help/toolbox/comm/examples
        /cad/local/apps/mathworks/matlab/2009a/toolbox/comm/commobsolete
        /cad/local/apps/mathworks/matlab/2009a/toolbox/control/control
        /cad/local/apps/mathworks/matlab/2009a/toolbox/control/ctrlguis
        /cad/local/apps/mathworks/matlab/2009a/toolbox/control/ctrlobsolete
        /cad/local/apps/mathworks/matlab/2009a/toolbox/control/ctrlutil
        /cad/local/apps/mathworks/matlab/2009a/toolbox/control/ctrldemos
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/slcontrollib
        /cad/local/apps/mathworks/matlab/2009a/toolbox/dspblks/dspblks
        /cad/local/apps/mathworks/matlab/2009a/toolbox/dspblks/dspmasks
        /cad/local/apps/mathworks/matlab/2009a/toolbox/dspblks/dspmex
        /cad/local/apps/mathworks/matlab/2009a/toolbox/dspblks/dspdemos
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/filterdesignlib
        /cad/local/apps/mathworks/matlab/2009a/help/toolbox/dspblks/examples
        /cad/local/apps/mathworks/matlab/2009a/toolbox/emlcoder/emlcoder
        /cad/local/apps/mathworks/matlab/2009a/toolbox/emlcoder/emlcodermex
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/simtargets
        /cad/local/apps/mathworks/matlab/2009a/toolbox/eml/eml
        /cad/local/apps/mathworks/matlab/2009a/toolbox/fixedpoint/fixedpoint
        /cad/local/apps/mathworks/matlab/2009a/toolbox/fixedpoint/fidemos
        /cad/local/apps/mathworks/matlab/2009a/toolbox/fixedpoint/fixedpointtool
        /cad/local/apps/mathworks/matlab/2009a/toolbox/slvnv/simcoverage
        /cad/local/apps/mathworks/matlab/2009a/toolbox/signal/signal
        /cad/local/apps/mathworks/matlab/2009a/toolbox/signal/sigtools
        /cad/local/apps/mathworks/matlab/2009a/toolbox/signal/sptoolgui
        /cad/local/apps/mathworks/matlab/2009a/toolbox/signal/sigdemos
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/spcuilib
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/siglib
        /cad/local/apps/mathworks/matlab/2009a/toolbox/sl3d/sl3d
        /cad/local/apps/mathworks/matlab/2009a/toolbox/sl3d/sl3ddemos
        /cad/local/apps/mathworks/matlab/2009a/toolbox/slcontrol/slcontrol
        /cad/local/apps/mathworks/matlab/2009a/toolbox/slcontrol/slctrlguis
        /cad/local/apps/mathworks/matlab/2009a/toolbox/slcontrol/slctrlutil
        /cad/local/apps/mathworks/matlab/2009a/toolbox/slcontrol/slctrldemos
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/optimlib
        /cad/local/apps/mathworks/matlab/2009a/toolbox/shared/sldv
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Looks as if MATLABPATH is indeed set.

    If you do Help->About in matlab, can you do a screenshot (using ksnapshot say) of the popup and post that (use the Options tab at the top of the Reply to an Existing Message section on the form)?

    Andrew.

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

    Andrew Beckett said:

    Looks as if MATLABPATH is indeed set.

    If you do Help->About in matlab, can you do a screenshot (using ksnapshot say) of the popup and post that (use the Options tab at the top of the Reply to an Existing Message section on the form)?

    Andrew.

     
    • Screenshot.png
    • View
    • Hide
    • 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