• 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 Design
  3. How to plot Id-Vg at different channel length by cadence...

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 126
  • Views 16791
  • 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 to plot Id-Vg at different channel length by cadence spectre ?

richardyuan
richardyuan over 10 years ago

Ocean file to plot Id-Vg may like this:

ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design( "xxx")
resultsDir( "xxx" )
modelFile( "xxx")

stimulusFile( ?xlate nil  "xxx")
analysis('dc ?saveOppoint t ?param "Vg" ?start "0" ?stop "3" ?lin "1000" )
desVar( "Vd" 0.1 )
desVar( "Vg" 3.3 )
desVar( "Vs" 0 )
saveOption( 'currents "all" )
temp( 27 )
run()
selectResult( 'dc )
plot(getData("/M0/D") )

Then suppose the nmos instance M0 in the schematic has a CDF parameter "Length" of channel length, how can I get a plot of Id-Vg at different channel length?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    You would need to setup up paramAnalysis() to tell it to do a parametric sweep of the length M0 (put a design variable in the Length field of the instance of M0, and then sweep that with paramAnalysis).

    Then rather than using run(), you use paramRun(), and the plot would remain the same (probably better to use i("/M0/D") rather than getData - the graph will be the same but the legend on the graph is a bit more meaningful

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • richardyuan
    richardyuan over 10 years ago

    Hi Andrew,

    But how can I define a design virable in the Length field of the instance of M0?

    I noticed that I can select the "Component Parameter" l (represent gate length) of M0 when I set "sweep virable" in choosing analysis. And the Vg curve of l sweeping is available by the script:

    analysis('dc ?saveOppoint t ?dev "/M0" ?param "l" ?start "0.2" ?stop "0.6" ?step "0.05" )

    desVar( "Vd" 0.1 )
    desVar( "Vg" 2 )
    desVar( "Vs" 0 )
    saveOption( 'currents "all" )
    temp( 27 )
    run()
    selectResult( 'dc )
    plot(getData("/M0/D") )

    Then I modify my script to  make parametric analysis:

    analysis('dc ?saveOppoint t ?param "Vg" ?start "0" ?stop "2" ?lin "1000" )
    desVar( "Vd" 0.1 )
    desVar( "Vg" 3 )
    desVar( "Vs" 0 )
    desVar( "/M0/l" 0.18 )
    saveOption( 'currents "all" )
    temp( 27 )
    paramAnalysis("/M0/l" ?values '(0.18 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6))

    But Error raised:

    bad name "/M0/l", not added

    The variable "/M0/l" is not defined in the current design.

    What Can I do now? 

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

    You cannot perform a paramAnalysis on component parameters - only on design variables. That's why I suggested using a design variable. You can do dc analyses etc on component parameters - that's different.

    So you need to edit your schematic, select the instance M0, and do Edit Properties. Set the value of "l" to say "LENGTH" and then you can have a desVar("LENGTH") and can do a paramAnalysis where you vary the variable "LENGTH".

    Pretty straightforward.

    ADE XL (and OCEAN XL) allow you to sweep arbitrary component parameters, so that would be another possibility.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • richardyuan
    richardyuan over 10 years ago

    Hi Andrew,

    Thank you very much. I followed your direction and get what I want.

    Now I have a further question. 

    I want to plot Vt vs Length @Vd=0.1V,  But I can't find a output "Vt", should I use some expression for such a character like "Vt" "Gm"?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • richardyuan
    richardyuan over 10 years ago

    richardyuan said:

    Hi Andrew,

    Thank you very much. I followed your direction and get what I want.

    Now I have a further question. 

    I want to plot Vt vs Length @Vd=0.1V,  But I can't find a output "Vt", should I use some expression for such a character like "Vt" "Gm"?

    I've find the way to do this.  And I'll open a new thread to discuss the strange curve in detail.

    Thanks.

    Richard

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • amasp
    amasp over 10 years ago

    Hi,

    I am also facing the same problem but I cannot find a way to plot Vth in ADE XL.

    If you've foun d a way it would be really helpful!


    Thanks,

    Amalia

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago
    There are numerous descriptions how to save operating point parameters in ADE in these forums (by adding a save statement in an include file) so that it will be saved for a dc sweep or a transient and then access the results via the results browser. Search for (say) "save M1:oppoint" - I expect that would find it (I didn't check) - or variants around that.
    • 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