• 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. asiWriteOceanScript save the ocean, but missing the "plot...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 667
  • 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

asiWriteOceanScript save the ocean, but missing the "plot"

imagesensor123
imagesensor123 over 14 years ago

 Hi,

   have you ever used the function "asiWriteOceanScript" , i got a strange script from the command,please look at the following lines

; ; Designer: zhenfu Date: 2011.1.1
ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design(     "/home2/zfeng/Cadence/Techno035/Sim/zfgetpixelmodel/spectre/schematic/netlist/netlist")
resultsDir( "/home2/zfeng/Cadence/Techno035/Sim/zfgetpixelmodel/spectre/schematic" )
modelFile(
    '("/eda/Design_kits/AMS_3.70/spectre/c35/mcparams.scs" "")
    '("/eda/Design_kits/AMS_3.70/spectre/c35/cmos53.scs" "cmostm")
    '("/eda/Design_kits/AMS_3.70/spectre/c35/res.scs" "restm")
    '("/eda/Design_kits/AMS_3.70/spectre/c35/cap.scs" "captm")
    '("/eda/Design_kits/AMS_3.70/spectre/c35/bip.scs" "biptm")
    '("/eda/Design_kits/AMS_3.70/spectre/c35/ind.scs" "indtm")
)
analysis('tran ?stop "20u"  ?errpreset "conservative"  ?t "spectre.ic" 
        ?t "spectre.fc"  ?t "status"  ?t "5"  ?t "0.0" 
        ?t "node"  ?t "name"  )
desVar(      "cpix" 3e-09    )
desVar(      "lbias" 2e-06    )
desVar(      "lfollower" 2e-06    )
desVar(      "lin" 4.919e-08    )
desVar(      "lrst" 2e-06    )
desVar(      "lselect" 2e-06    )
desVar(      "pulseperiod" 1e-05    )
desVar(      "pulsewidth" 2e-06    )
desVar(      "vbias" 1.5    )
desVar(      "vread" 2    )
desVar(      "wbias" 4e-06    )
desVar(      "wfollower" 2e-05    )
desVar(      "wrst" 1e-05    )
desVar(      "wselect" 4e-06    )
desVar(      "delay" 2e-06    )
envOption(
    'pllPlugin  ""
    'skiPlugin  nil
    'firstRun  t
    'enableArclength  nil
    'recover  ""
    'checkpoint  ""
    'spp  ""
    'autoDisplay  t
    'userCmdLineOption  ""
    'analysisOrder  list("dc")
    'paramRangeCheckFile  "/eda/Design_kits/AMS_3.70/spectre/ams_range.lmts"
)
option(    'reltol  "100e-6"
    'vabstol  "1e-6"
    'iabstol  "1e-12"
    'temp  "27"
    'tnom  "27"
    'homotopy  "all"
    'limit  "delta"
    'scalem  "1.0"
    'scale  "1.0"
    'compatible  "spice2"
    'gmin  "1e-12"
    'rforce  "1"
    'maxnotes  "5"
    'maxwarns  "5"
    'digits  "5"
    'cols  "80"
    'pivrel  "1e-3"
    'ckptclock  "1800"
    'sensfile  "../psf/sens.output"
    'checklimitdest  "psf"
)
saveOption('save "allpub" )
saveOption( 'pwr "" )
saveOption( 'nestlvl "" )
saveOption( 'currents "" )
saveOption( 'subcktprobelvl "" )
saveOption( 'useprobes "" )
saveOption( ?saveahdlvars "" )
saveOption( ?modelParamInfo t )
saveOption( ?elementInfo nil )
saveOption( ?outputParamInfo nil )
temp( 27 )
run()
zfSignalPostProcess

 the above script is generated by asiWriteOceanScript

run()
selectResult( 'tran )
plot(getData("/Vout") getData("/net20") getData("/net28") getData("/net26") )
zfSignalPostProcess

but when i use the session->save script, i get a different output like the above four lines , does anyone know why the command asiWriteOceanScript  make the script without selectResult and plot?

Regards,

zfeng

  • Cancel
Parents
  • imagesensor123
    imagesensor123 over 14 years ago

     Hi,

       Actually, the first script looks more like a common script,  the biggest problem is that the first time i can get the right script(by user function asiWriteOceanScript), but after i load it and  regenerate the script again(by user function asiWriteOceanScript ) , i get the script lossing the plot and selectResult.

     procedure(zfSaveOcean()
    ;;imagerSevSession=sevSession(hiGetCurrentWindow())
    CurrentSession=asiGetCurrentSession()
    ;sevSaveOceanScript(imagerSevSession)
    ;sevRunEngine(imagerSevSession)
    ;success = asiCheckSimulationSuccess( imagerSevSession )
    ;;zfOceanPath=imagerForm->saveOcean->value
    ;;saveDefaultsFlag=envGetVal("asimenv.misc" "saveDefaultsToOCEAN" )
    fp=asiOpenOceanScript(imageOcnFile)
    zfPreSaveOceanScript(CurrentSession fp)
    asiWriteOceanScript( fp CurrentSession ?noRun nil ?fullKey t)
    zfPostSaveOceanScript(CurrentSession fp)
    asiCloseOceanScript(fp)
    )

    i found that "CurrentSession=asiGetCurrentSession()" get the same return value, but you will get different return value if you load a script between the two times CurrentSession=asiGetCurrentSession(), like this

    CurrentSession=asiGetCurrentSession()

    load(script from the CurrentSession)

    CurrentSession=asiGetCurrentSession()

     

    i want to re-run a design with different designVarValue in ADE, so i generate a script everytime after changing the design varibale value by user function, and load it automatically . so it looks like the paramAnalysis, but a little different.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • imagesensor123
    imagesensor123 over 14 years ago

     Hi,

       Actually, the first script looks more like a common script,  the biggest problem is that the first time i can get the right script(by user function asiWriteOceanScript), but after i load it and  regenerate the script again(by user function asiWriteOceanScript ) , i get the script lossing the plot and selectResult.

     procedure(zfSaveOcean()
    ;;imagerSevSession=sevSession(hiGetCurrentWindow())
    CurrentSession=asiGetCurrentSession()
    ;sevSaveOceanScript(imagerSevSession)
    ;sevRunEngine(imagerSevSession)
    ;success = asiCheckSimulationSuccess( imagerSevSession )
    ;;zfOceanPath=imagerForm->saveOcean->value
    ;;saveDefaultsFlag=envGetVal("asimenv.misc" "saveDefaultsToOCEAN" )
    fp=asiOpenOceanScript(imageOcnFile)
    zfPreSaveOceanScript(CurrentSession fp)
    asiWriteOceanScript( fp CurrentSession ?noRun nil ?fullKey t)
    zfPostSaveOceanScript(CurrentSession fp)
    asiCloseOceanScript(fp)
    )

    i found that "CurrentSession=asiGetCurrentSession()" get the same return value, but you will get different return value if you load a script between the two times CurrentSession=asiGetCurrentSession(), like this

    CurrentSession=asiGetCurrentSession()

    load(script from the CurrentSession)

    CurrentSession=asiGetCurrentSession()

     

    i want to re-run a design with different designVarValue in ADE, so i generate a script everytime after changing the design varibale value by user function, and load it automatically . so it looks like the paramAnalysis, but a little different.

    • 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