• 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. ocean XL

Stats

  • Locked Locked
  • Replies 14
  • Subscribers 125
  • Views 16611
  • 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

ocean XL

analogdesign
analogdesign over 11 years ago

 Hai,

        I am very much new to oceanXL script.

        By using "save M1.m1:oppoint", i can't plot small signal parameters of MOS in ocean script.

        The expression willl appear as

        ocnxlOutputExpr( "getData("M1.m1:gm" ?result "dc-dc")" ?name "namegm" ?plot t ?save t).

        I would be thankful if anybody can post the solution for the above problem.

 Thanks,

 krishna   

 

  • Cancel
Parents
  • analogdesign
    analogdesign over 11 years ago

     Hai sir,

               Thanks for your reply. I tried to run the script with your suggestions. But still it is not working. Its a dc sweep.

               From the result browser signals can be plotted. I am attaching the script here.

    ;======================input.scs file===========================================
    M1 (net3 net3 0 0) nsvtlp w=w1 l=0.1 nfing=1 mult=1 srcefirst=1 ngcon=1 \
            mismatch=1 lpe=0 dnoise_mdev=0 dmu_mdev=0 dvt_mdev=0 numcos=1 \
            numcod=1
    I2 (vdd! net3) isource dc=40u type=dc
    V0 (vdd! 0) vsource dc=1.2 type=dc
    simulatorOptions options reltol=1e-3 vabstol=1e-6 iabstol=1e-12 temp=27 \
        tnom=27 scalem=1.0 scale=1.0 gmin=1e-12 rforce=1 maxnotes=5 maxwarns=5 \
        digits=5 cols=80 pivrel=1e-3 sensfile="../../../../psf/sens.output" \
        checklimitdest=psf
    dcOp dc write="spectre.dc" maxiters=150 maxsteps=10000 annotate=status
    dcOpInfo info what=oppoint where=rawfile
    dc dc param=w1 start=0.2 stop=3 step=0.1 oppoint=rawfile maxiters=150 \
        maxsteps=10000 annotate=status
    modelParameter info what=models where=rawfile
    element info what=inst where=rawfile
    outputParameter info what=output where=rawfile
    designParamVals info what=parameters where=rawfile
    primitives info what=primitives where=rawfile
    subckts info what=subckts  where=rawfile
    saveOptions options save=allpub subcktprobelvl=2

    ;====================== Tests setup ============================================

    ocnxlBeginTest("65nm_design:65_nmosexample:1")
    simulator( 'spectre )
    design( "65nm_design" "65_nmosexample" "schematic")
    analysis('dc ?saveOppoint t  ?param "w1"  ?start "0.2" 
            ?stop "5"  ?step "0.1"  ?sort "name"  ?detail "node" 
            ?threshold "0.0"  ?annotate "status"  ?maxsteps "10000"  ?maxiters "150" 
            ?oppoint "rawfile"  ?write "spectre.dc"  ?sweep "Design Variable"  ?designVar "w1" 
            ?rangeType "Start-Stop"  ?incrType "Linear"  ?stepTypeLin "Step Size"  ?stepTypeLog "Points Per Decade"  )
    desVar( "w1" 0.2    )
    saveOption( 'currents "all" )
    save( 'v "/net3" )
    temp( 27 )
    ocnxlOutputSignal( "/net3" ?plot t ?save t)
    ocnxlOutputExpr("getData("M1.m1:gm" ?result \"dc-dc\")" ?name "namegm" ?plot t ?save t)
    ocnxlEndTest() ; "65nm_design:65_nmosexample:1"

    Thanks

    krishna

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • analogdesign
    analogdesign over 11 years ago

     Hai sir,

               Thanks for your reply. I tried to run the script with your suggestions. But still it is not working. Its a dc sweep.

               From the result browser signals can be plotted. I am attaching the script here.

    ;======================input.scs file===========================================
    M1 (net3 net3 0 0) nsvtlp w=w1 l=0.1 nfing=1 mult=1 srcefirst=1 ngcon=1 \
            mismatch=1 lpe=0 dnoise_mdev=0 dmu_mdev=0 dvt_mdev=0 numcos=1 \
            numcod=1
    I2 (vdd! net3) isource dc=40u type=dc
    V0 (vdd! 0) vsource dc=1.2 type=dc
    simulatorOptions options reltol=1e-3 vabstol=1e-6 iabstol=1e-12 temp=27 \
        tnom=27 scalem=1.0 scale=1.0 gmin=1e-12 rforce=1 maxnotes=5 maxwarns=5 \
        digits=5 cols=80 pivrel=1e-3 sensfile="../../../../psf/sens.output" \
        checklimitdest=psf
    dcOp dc write="spectre.dc" maxiters=150 maxsteps=10000 annotate=status
    dcOpInfo info what=oppoint where=rawfile
    dc dc param=w1 start=0.2 stop=3 step=0.1 oppoint=rawfile maxiters=150 \
        maxsteps=10000 annotate=status
    modelParameter info what=models where=rawfile
    element info what=inst where=rawfile
    outputParameter info what=output where=rawfile
    designParamVals info what=parameters where=rawfile
    primitives info what=primitives where=rawfile
    subckts info what=subckts  where=rawfile
    saveOptions options save=allpub subcktprobelvl=2

    ;====================== Tests setup ============================================

    ocnxlBeginTest("65nm_design:65_nmosexample:1")
    simulator( 'spectre )
    design( "65nm_design" "65_nmosexample" "schematic")
    analysis('dc ?saveOppoint t  ?param "w1"  ?start "0.2" 
            ?stop "5"  ?step "0.1"  ?sort "name"  ?detail "node" 
            ?threshold "0.0"  ?annotate "status"  ?maxsteps "10000"  ?maxiters "150" 
            ?oppoint "rawfile"  ?write "spectre.dc"  ?sweep "Design Variable"  ?designVar "w1" 
            ?rangeType "Start-Stop"  ?incrType "Linear"  ?stepTypeLin "Step Size"  ?stepTypeLog "Points Per Decade"  )
    desVar( "w1" 0.2    )
    saveOption( 'currents "all" )
    save( 'v "/net3" )
    temp( 27 )
    ocnxlOutputSignal( "/net3" ?plot t ?save t)
    ocnxlOutputExpr("getData("M1.m1:gm" ?result \"dc-dc\")" ?name "namegm" ?plot t ?save t)
    ocnxlEndTest() ; "65nm_design:65_nmosexample:1"

    Thanks

    krishna

    • 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