• 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. Saving all operating point data for swept simulations

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 142
  • Views 16563
  • 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

Saving all operating point data for swept simulations

archive
archive over 17 years ago

I would like to make plots of gm over Id and I'd like to do that from a SKILL/OCEAN script. I am quite new to cadence and almost completely new to SKILL, so please forgive if some questions have obvious answers.

My problem is that I can only have access to the gm value for the bsim model for the DC operating point, not for all the values.

--------------------------------------------------------------------------------------
; Here's how I set up the analysis:
ocnWaveformTool('wavescan)
simulator('spectre)
design(library cell "schematic")
createNetlist(?recreateAll t ?display nil)
resultsDir(strcat("/local0/scratch/ballinim/xh035/" cell "/spectre/schematic" ))
modelFile(
    '("/usr/local/vlsi/cds/Design_Kits/XFAB_XH035_v3_1/spectre/xh035/mos/param.scs" "3s")
    '("/usr/local/vlsi/cds/Design_Kits/XFAB_XH035_v3_1/spectre/xh035/mos/bip.scs" "tm")
    '("/usr/local/vlsi/cds/Design_Kits/XFAB_XH035_v3_1/spectre/xh035/mos/bsim3v3.scs" "tm")
    '("/usr/local/vlsi/cds/Design_Kits/XFAB_XH035_v3_1/spectre/xh035/mos/cap.scs" "tm")
    '("/usr/local/vlsi/cds/Design_Kits/XFAB_XH035_v3_1/spectre/xh035/mos/dio.scs" "tm")
    '("/usr/local/vlsi/cds/Design_Kits/XFAB_XH035_v3_1/spectre/xh035/mos/ind.scs" "tm")
    '("/usr/local/vlsi/cds/Design_Kits/XFAB_XH035_v3_1/spectre/xh035/mos/res.scs" "tm")
)
saveOption( 'currents "all" )
save('i "/Mn/S" "/Mn/D" "/Mp/S" "/Mp/D")
analysis('dc ?saveOppoint t  ?param "vg"  ?start "0" ?stop "3.3" ?values 0.5
         ?write "spectre.dc"  ?oppoint "rawfile"  ?maxiters "150" ?maxsteps "10000" 
         ?annotate "status"  ?threshold "0.0"  ?detail "node" ?sort "name"  )
temp( 27 )
run()

; Here's how I get a single value for gm
gmoverid = pv("Mn.m1" "gmoverid" ?result "dcOpInfo-info")
printf("gmoverid = %g\n" gmoverid)

; For currents and voltages I get the values for the whole sweep range
id = i("Mn:1" ?result "dc-dc")
vg = v("/vgn" ?result "dc-dc")
---------------------------------------------------------------------------------------------

How can I get the value of gmoverid for the whole swept range?

I thought about these possibilities:

1) gmoverid = deriv(id)/id
 but I'm not even sure this is correct because I do not know the bsim model so well.

2) I read somewhere I can specify to spectre to save those things by adding a file with the following text to the model libraries: "save Mn:oppoint". Is there a way to invoke that spectre command directly from the script without writing a file?

3) Iterating the DC analysis with loop. How can I construct a loop for, say, linearly spaced values? In C I would use the for(vg=0;vg

Can please give suggestion?

Thanks.
Marco Ballini


Originally posted in cdnusers.org by mballini
  • Cancel
Parents
  • archive
    archive over 17 years ago

    If using a recent MMSIM version (e.g. MMSIM70, or MMSIM62 - I think you may need MMSIM62 Update 1), you can use wildcards in save statements.

    So you can create an include file, and put:

    save *:oppoint

    or

    save *:gmoverid

    This eans it's the same include file for all circuits - no need to change it for different transistors.


    Originally posted in cdnusers.org by adbeckett
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • archive
    archive over 17 years ago

    If using a recent MMSIM version (e.g. MMSIM70, or MMSIM62 - I think you may need MMSIM62 Update 1), you can use wildcards in save statements.

    So you can create an include file, and put:

    save *:oppoint

    or

    save *:gmoverid

    This eans it's the same include file for all circuits - no need to change it for different transistors.


    Originally posted in cdnusers.org by adbeckett
    • 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