• 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. How do you sweep under ADE-XL Monte Carlo simulation.

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 64
  • Views 13473
  • 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

How do you sweep under ADE-XL Monte Carlo simulation.

Spirito
Spirito over 15 years ago

I am new in ADE-XL , and I tried to simulate a mixer's conversion gain over a range of IF frequency. it all runs well in ADE-L

My variables are IF=1G , RF=6*IF and LO=5*IF . I then sweep in pss the IF from 0.8G to 1.2G and get a gain curve. From which I calculate the maximum and the ripple (max-min), using to output expressions. However, when I export this to  ADE-XL the sweep doesn't work since the IF variables value is set by the global variable. and If I sweep using the global variable then : A. I cannot calculate the maximum gain or ripple automatically . B. I cannot run MC with the sweep on.

 Any Ideas ?

Thanks

Spirito 

  • Cancel
  • alanw
    alanw over 15 years ago

     Hi Spirito,

     I believe that currently an OCEAN measurement is required to do this. Something like:

                axlAddOutputs( '( "maxGain" "gainRipple"))   /* Define the output labels to be used in ADE-XL */
                fif_sweep = sweepVarValues("fif" ?result "pss_fd") /* Get the list of IF freq sweep values */

                frf_sweep = list()   /* Initialize a list of RF freq sweep values */

                /* Create list of RF freq sweep values, RF=6*IF relationship needs to be re-defined here */

                for(i 1 length(fif_sweep) 

                    frf_sweep = append(frf_sweep list(nthelem(i fif_sweep)*6))
                )

                gain_sweep = list()   /* Initialize  a list of gain measurements */

                for(i 1 length(fif_sweep) /* For all the IF freq sweep values */

                         fif_value = nthelem(i fif_sweep)   /* Get the IF freq */
                         frf_value = nthelem(i frf_sweep)  /* Get the corresponding RF freq */

                         /* Calculate the gain */

                        gain_sweep = append(gain_sweep list(mag(value(famValue(v("/RFout" ?result "pss_fd") fif_value) fif_value) /
                                                                    value(famValue(v("/RFin" ?result "pss_fd") fif_value) frf_value)) ) )
                )

                xv = drCreateVec('double fif_sweep)   /* X-axis - the IF freq sweep points */          

                yv = drCreateVec('double gain_sweep) /* Y-axis - the conversion gain values */

                wave = drCreateWaveform(xv yv)  /* Create a conversion gain waveform - can plot this */

                axlOutputResult(ymax(wave) "maxGain")  /* Export max gain measurement */
                axlOutputResult(ymax(wave)-ymin(wave) "gainRipple") /* Export gain ripple measurement */

    One caveat though - when you run Monte Carlo in ADE-XL, turn off "Save Data to Allow Family Plots". When that's enabled, you need additional indexing to pull the measurement value off of an individual conversion gain waveform.

    In the ADE-XL test editor,  under Outputs->Setup, set Measure Type to OCEAN and then point to a file containing a script similar to above.

     Alan

     

    • 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