• 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. Interfacing Spectre Output to MATLAB

Stats

  • Locked Locked
  • Replies 18
  • Subscribers 63
  • Views 23107
  • 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

Interfacing Spectre Output to MATLAB

RFQuery
RFQuery over 13 years ago

 Dear All,

Can anybody tell me how to interface Spectre (ADE) output (like waveform) to MATLAB for further processing

 

 

 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    The <MMSIMinstDir>/tools/spectre/examples/SpectreRF_workshop/MatlabAN.pdf is less RF-centric (the toolbox was developed by the SpectreRF team, hence the RF focus of many of the examples).

    To access AC results, you can do this:

    % access the info about all the signals in the results
    signals=cds_srr(resdir,'ac-ac')
    % show the Voltage signal names
    signals.V
    % show the Current signal names
    signals.I
    % get the V4:p signal
    V4_p=cds_srr(resdir,'ac-ac','V4:p')
    % look at the details
    V4_p.I
    V4_p.freq
    % plot the signal
    cds_plotsig(V4_p,'','freq','db20')

    for example.

    I suspect that when you did the signals=cds_srr(...) it did list all the signals, but note that you probably got a horizontal scrollbar and may not have seen then all. However, looking at signals.I and signals.V should show everything. You certainly should see the same signals that you'd see in the results browser in ADE - and if they're missing there it would be because you didn't save the signals from the simulator.

    Note that you could also plot the waveform directly yourself using:

    plot(V4_p.freq,abs(V4_p.I))

    this is the equivalent of using 'mag' instead of 'db20' in the cds_plotsig, except it doesn't label the axes and so on.

    Hope that helps!

    Regards,

    Andrew.

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

    The <MMSIMinstDir>/tools/spectre/examples/SpectreRF_workshop/MatlabAN.pdf is less RF-centric (the toolbox was developed by the SpectreRF team, hence the RF focus of many of the examples).

    To access AC results, you can do this:

    % access the info about all the signals in the results
    signals=cds_srr(resdir,'ac-ac')
    % show the Voltage signal names
    signals.V
    % show the Current signal names
    signals.I
    % get the V4:p signal
    V4_p=cds_srr(resdir,'ac-ac','V4:p')
    % look at the details
    V4_p.I
    V4_p.freq
    % plot the signal
    cds_plotsig(V4_p,'','freq','db20')

    for example.

    I suspect that when you did the signals=cds_srr(...) it did list all the signals, but note that you probably got a horizontal scrollbar and may not have seen then all. However, looking at signals.I and signals.V should show everything. You certainly should see the same signals that you'd see in the results browser in ADE - and if they're missing there it would be because you didn't save the signals from the simulator.

    Note that you could also plot the waveform directly yourself using:

    plot(V4_p.freq,abs(V4_p.I))

    this is the equivalent of using 'mag' instead of 'db20' in the cds_plotsig, except it doesn't label the axes and so on.

    Hope that helps!

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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