Home > Community > Forums > RF Design > Parameter empty when using cds_srr function

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Parameter empty when using cds_srr function 

Last post Sun, Jul 20 2014 10:35 PM by Andrew Beckett. 8 replies.
Started by mhawary85 16 Dec 2013 10:53 PM. Topic has 8 replies and 2399 views
Page 1 of 1 (9 items)
Sort Posts:
  • Mon, Dec 16 2013 10:53 PM

    • mhawary85
    • Not Ranked
    • Joined on Wed, Jul 17 2013
    • Posts 10
    • Points 140
    Parameter empty when using cds_srr function Reply

    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 

     

    • Post Points: 20
  • Mon, Dec 16 2013 11:06 PM

    Re: Parameter empty when using cds_srr function Reply

    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 

    • Post Points: 20
  • Mon, Dec 16 2013 11:48 PM

    • mhawary85
    • Not Ranked
    • Joined on Wed, Jul 17 2013
    • Posts 10
    • Points 140
    Re: Parameter empty when using cds_srr function Reply

    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 

     

    • Post Points: 20
  • Tue, Dec 17 2013 3:36 AM

    Re: Parameter empty when using cds_srr function Reply

    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.

    • Post Points: 20
  • Tue, Dec 17 2013 4:49 AM

    • mhawary85
    • Not Ranked
    • Joined on Wed, Jul 17 2013
    • Posts 10
    • Points 140
    Re: Parameter empty when using cds_srr function Reply
    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
    • Post Points: 20
  • Tue, Dec 17 2013 9:41 AM

    Re: Parameter empty when using cds_srr function Reply

    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.

    • Post Points: 35
  • Tue, Dec 17 2013 11:27 PM

    • mhawary85
    • Not Ranked
    • Joined on Wed, Jul 17 2013
    • Posts 10
    • Points 140
    Re: Parameter empty when using cds_srr function Reply

    Dear Andrew,

     

    Its working now perfectly!!

    Thanks for your great efforts!

     

    Regards

    Mohammad 

    • Post Points: 5
  • Fri, Jul 18 2014 7:30 PM

    • ProfWalker
    • Not Ranked
    • Joined on Sat, Jul 19 2014
    • Posts 1
    • Points 20
    Re: Parameter empty when using cds_srr function Reply

    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 

     

    • Post Points: 20
  • Sun, Jul 20 2014 10:35 PM

    Re: Parameter empty when using cds_srr function Reply

    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.

    • Post Points: 5
Page 1 of 1 (9 items)
Sort Posts:
Started by mhawary85 at 16 Dec 2013 10:53 PM. Topic has 8 replies.