• 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 SKILL
  3. axlAddOutputExpr() does not plot signal

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 144
  • Views 15476
  • 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

axlAddOutputExpr() does not plot signal

Nicolas Callens
Nicolas Callens over 6 years ago

Dear all,

I have made a simple OCEAN measurement script to sample a signal in my system and adding it to the results pane in ADE XL. Though, I am seeing in the results pane the output "Discrete Feedback Signal", but without the plotting symbol (empty field). Underneath the important part of the script:

session = axlGetWindowSession()
setupDB=axlGetMainSetupDB(session)
sessionObject=asiGetSession(session)
psfDir=asiGetPsfDir(sessionObject)
openResults(psfDir)
selectResults('tran)

;Get variable names and values

variableNames=cadr(axlGetVars(setupDB))
period=cdfParseFloatString(axlGetVarValue(axlGetVar(setupDB "tperiod")))
samples=cdfParseFloatString(axlGetVarValue(axlGetVar(setupDB "OSR")))
endTime=(samples-1)*period

;Adding and evaluating expressions in ADE XL
initTime = (period*2-period/4)
stepValue = period
axlAddOutputExpr(session testName "Discrete Feedback Signal" ?expr "sample(VT(\"/dac_out\") initTime endTime \"linear\" stepValue)" ?plot t ?save t)

Kind regards, 

Nicolas

  • Cancel
Parents
  • Dimitra Papazoglou
    Dimitra Papazoglou over 6 years ago

    Hi Nicolas,

    What virtuoso version are you using?

    Also, after loading the script so expression is added as output, do you re-evaluate existing sim results or run a new sim to get your expression result? 

    If you do RMB->Plot on the empty field, does it plot?

    Regards,

    Dimitra

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Nicolas Callens
    Nicolas Callens over 6 years ago in reply to Dimitra Papazoglou

    Hi Dimitra,

    I am using IC6.7.1. Strange enough, I have deleted and added my script in the output pane of ADE XL and now it works... Normally, I reloaded and ran the simulation again. However, I still get an empty field at the expression in the results pane in ADE XL, but when I double click it then the plot appears. Why does ADE XL does not show a plotting symbol?

    Thanks!

    Kind regards,

    Nicolas

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Dimitra Papazoglou
    Dimitra Papazoglou over 6 years ago in reply to Nicolas Callens

    Hi Nicolas,

     It might be related to the particular IC6.1.7 release you are using. 

    I tried quickly your script with IC6.1.7-64b.500.22 running single point sim and the waveform icon (plotting symbol) is displayed. 

    To find out the release go to CIW menu and select  Help->About Virtuoso.

    Regards,

    Dimitra

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Nicolas Callens
    Nicolas Callens over 6 years ago in reply to Dimitra Papazoglou

    Hi Dimitra,

    I'm having IC6.1.7-64b.500.15. 

    Kind regards, 

    Nicolas

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Nicolas Callens
    Nicolas Callens over 6 years ago in reply to Nicolas Callens

    Additionally, I have also a question about exporting this waveform in MATLAB. I am using the Spectre Toolbox for MATLAB. I'm seeing all the output signals that I have specified with "axlAddOutputSignal()" except "Discrete Feedback Signal" from the axlAddOutputExpr() in the MATLAB cds_srr() information string.

    Kind regards,

    Nicolas

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Nicolas Callens
    Nicolas Callens over 6 years ago in reply to Nicolas Callens

    Additionally, I have also a question about exporting this waveform in MATLAB. I am using the Spectre Toolbox for MATLAB. I'm seeing all the output signals that I have specified with "axlAddOutputSignal()" except "Discrete Feedback Signal" from the axlAddOutputExpr() in the MATLAB cds_srr() information string.

    Kind regards,

    Nicolas

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to Nicolas Callens

    Hi Nicolas,

    The Spectre Toolbox can only see waveform data that was saved by the simulator. It cannot see the results of ViVA calculator expressions (the results of which are not said to disk if they are waveforms, which this is). 

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Nicolas Callens
    Nicolas Callens over 6 years ago in reply to Andrew Beckett

    Hi Andrew,

    Oh, That's a shame. Can I use the cds_evalsig() then for sampling a signal at specific timesamples. I have read the manual, but it is still a mystery how to do this by using cds_evalsig().

    Kind regards,

    Nicolas

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to Nicolas Callens

    Hi Nicolas,

    cds_evalsig isn't the function for the job. That's for simple filtering of swept data - it wouldn't be suitable for re-sampling because it can only pick original points and not interpolate between results.

    Luckily MATLAB has a function, cunningly named resample which does this. One of the forms is to give the y-vector, the x-vector, and the sample rate (so 1.0/sampleInterval). For example:

    [y,x]=resample(mysig.V,mysig.time,1e9)

    resamples with a 1ns time step - the output is the new y-vector and the new-sampled x-vector. mysig is the signal read with cds_srr.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Nicolas Callens
    Nicolas Callens over 6 years ago in reply to Andrew Beckett

    Perfect! Thanks 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