• 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 16600
  • 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
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Krishna,

    Can you see the signal in the results browser?  Maybe you could post the bottom part of the input.scs with the analysis statements.

    I assume you're doing a DC sweep?

    There's also a typo in what you have posted, because it has embedded quotation marks. It should be:

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

    or maybe better still:

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

    Regards,

    Andrew.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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
  • analogdesign
    analogdesign over 11 years ago

     Hai sir,

    Thanks for your reply. I tried to run the script with your suggestions. But it didn't work. signals can be plotted from the result browser(previously suggested by you). Its a DC sweep. Here i am attaching the script.

    ;======================input.scsfile ===================================
    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"
     

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

     Hai sir,

              I am sorry if you get the same post multiple times.

              I tried to run the script with the modifications you suggested. But it didn't work. From the result browser its working( previously

    suggested by you) . Its DC sweep. Below i am attaching the script. 

     ;======================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
  • analogdesign
    analogdesign over 11 years ago

     Hai sir,

              I am sorry if you get the same post multiple times.

              I tried to run the script with the changes you suggested. It didn't work. From result browser its working. Its DC sweep.

    ;======================input.scsfile===========================================
    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
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Hi Krishna,

    I still would use ?result 'dc rather than ?result "dc-dc". I'm assuming that you do actually have an include file with the save statement somewhere?

    Can you show me a screenshot of the results browser showing where you can see the gm result?

    Probably best if you go to customer support - it's pretty hard to debug this without seeing the data.

    Kind Regards,

    Andrew.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • analogdesign
    analogdesign over 11 years ago

     Hi sir,

            Thanks for your reply. At present I was on leave, i will attach the screen shot, once i am back to work.

    Thanks

    krishna

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • analogdesign
    analogdesign over 11 years ago
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    That was a blank post; you need to use the Options tab when posting to attach a picture.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • analogdesign
    analogdesign over 11 years ago
    • 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