• 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. Parameter empty when using cds_srr function

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 64
  • Views 15937
  • 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

Parameter empty when using cds_srr function

mhawary85
mhawary85 over 11 years ago

Hi,

 I have a problem in reading the simulation results using Matlab. The problem is that when I am trying to read multiple parameters, the first one i read it correct but after that all parameters returns zero in value.  The Matlab code i am using is the following:

 

clear

addpath /opt/cadence/installs/MMSIM131/tools.lnx86/spectre/matlab

simpath=sprintf('/home/malhawari/simulation/boost_conv/spectre/schematic/psf');

datalist=cds_srr(simpath);

vd = cds_srr(simpath, 'tran-tran', 'vd');

vg = cds_srr(simpath, 'tran-tran', 'vg');

 

The result is the following:

>> datalist=cds_srr(simpath);

PSFversion: 1.00

tran-tran (tran).

finalTimeOP-info (info).

modelParameter-info (info).

element-info (info).

outputParameter-info (info).

designParamVals-info (info).

primitives-info.primitives (info.primitives).

subckts-info.subckts (info.subckts).

variables (design_variables). 

vd = 

    info: {'V'  'V'  'time'  's'}

    time: [7607x1 double]

       V: [7607x1 double] 

 vg = 

    info: {'V'  'V'  'time'  's'}

    time: 0

       V: 0

 Now if i flip the order of the vd and vg in the Matlab script where i read first vg and then vd i get the following

>> vg

vg = 

    info: {'V'  'V'  'time'  's'}

    time: [7607x1 double]

       V: [7607x1 double] 

 

 vd = 

    info: {'V'  'V'  'time'  's'}

    time: 0

       V: NaN

 

This confirms the problem of reading only the first parameter in its correct way while other parameters are zero.

 

 BTW I am using MMSIM131 and IC616, also i tried MMSIM121 and IC615 but i got the same results!

 

Thank you in advance for your help!

 

Regards

Mohammad 

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Mohammad,

    Any chance you could upload your psf directory (tarred and gzipped), if it is not too big? This is likely to be data dependent. I'll do some generic checks when I boot up in a while, but most likely I'd need to understand your data.

     Also, which Matlab version are you using (the important things are the Matlab and MMSIM versions, not the IC version in this case)?

    Thanks,

    Andrew 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mhawary85
    mhawary85 over 11 years ago

    Dear Andrew,

     

    Thank you for your super fast response!

     

    Unfortunately, The file size is around 11MB and am not able to upload it here. As such, Please follow this link to download the psf file https://www.dropbox.com/sh/umr3vwea13clct0/YbkMBD8xwu

     

    The Matlab version I am using is 8.1.0.604 (2013a)

     

    Regards

    Mohammad 

     

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

    Hi Mohammad,

    Thanks for the data. I reproduced the problem and then tried with a patch build of cds_srr, and that solved the problem. One of the issues we've had is that because of compiler restrictions for older versions of Matlab, we've not been able to build with newer versions of SRR (the simulation results reader package that's used inside this). In particular, your issue is probably caused by the fact that the waveforms are in PSF XL format - and I suspect that's why the older cds_srr builds can't cope with that.

    We're planning on getting the updated cds_srr released into a hotfix soon (this will be restricted to R2012a versions of Matlab onwards) - but if you could send me a PM via the forum with your email address, I can log a CCR on your behalf to push for this to happen sooner rather than later - and that way I can also send you the patched version which fixes the problem (it's an overlay for the MMSIM12.1 or MMSIM13.1 hierarchy).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mhawary85
    mhawary85 over 11 years ago
    Dear Andrew, Thank you for figuring this out! My email address is : mohammad.alhawari@kustar.ac.ae What do you mean by PM :) Regards Mohammad
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Hi Mohammad,

    I was just trying to avoid you needing to post your email address in a public forum. The "PM" was a Private Message, which you can get to via the Contact button at the top of the post.

    Anyway, done now - I've sent you (via hightail) the patch for cds_srr.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mhawary85
    mhawary85 over 11 years ago

    Dear Andrew,

     

    Its working now perfectly!!

    Thanks for your great efforts!

     

    Regards

    Mohammad 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ProfWalker
    ProfWalker over 11 years ago

    Hello!

     

    Has there been any progress on this issue?  I'm seeing the same behavior with a number of MMSIM versions all the way back to 7.1-ish.

     

    Thanks,

    -Ross 

     

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

    Ross,

    Yes, it was fixed in an MMSIM13.1 subversion (MMSIM13.1 ISR7 and later). I just tried it out in MMSIM13.1 ISR8 (13.1.1.117.isr8), and it worked fine.

    So no need for the patch any more.

    Kind 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