• 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. OCEAN script using SKILL

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13173
  • 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 script using SKILL

yeong
yeong over 10 years ago

Hello,

I generated the oceanscript from the corners. It is able to run the device corners.

I would like to run temp corners and design variable corner togther with device corners. How can I modified it to incorporate temp corner and design variables corner to the script. 

This is the oceanscript:

;---------------------------------------------
; Ocean script saved using ArtistKit 5.7.2
; ArtistKit 5.7.2 (C) STMicroelectronics
; Feb  5 09:29:11 2015
;---------------------------------------------
(let (dir simulator libName cellName viewName scenarioList)
; ================================================
; INITIALIZE THE .cdsenv FILE
; ================================================
(UartOceanInitCdsenvFile "/net/agt604/es14/home/test/simulation")
; ================================================
; DUMP THE CURRENT SESSION
; ================================================
(setq simulator "spectre")
(setq dir "/net/agt604/es14/home/test/simulation/ocean/spectre/schematic")
simulator('spectre)
(setq libName "playground")
(setq cellName "ocean")
(setq viewName "schematic")
design(libName cellName viewName)
ocnWaveformTool( 'wavescan )
definitionFile(
    "models.scs"
)
analysis('dc ?saveOppoint t  )
desVar(       "ib" 1u   )
temp( 27 )
; ================================================
; INCLUDE THE MODELS FILE AND SET SOME OPTIONS
; ================================================
resultsDir( dir)
definitionFile("models.scs")
; ================================================
; LOOP ON SCENARIOS
; ================================================
; Enable Import Netlist
(UartImportSetState t)
(createNetlist ?recreateAll t ?display nil)
(UartOceanInitResultsData simulator)
(UartOceanCleanOceanDir simulator (strcat dir "/ocean"))
(setq scenarioList '(
"MOSmax" "default" ))
(foreach scenario scenarioList
   (let (waveList)
   ; Switch the scenario
   UartCornerSetupFromOcean(simulator (strcat dir "/netlist") scenario ?screen t ?lcv "playgroundoceanschematic")
   ; Run the simulation
   run()
   ; Extract the output measurements and keep the waveforms
   ; ------------------------------------------------
   (let (measure waveId)
    (when (or (errset (eval VDC("/net2"))) (errset VDC("/net2")))
      (if (or (drIsWaveform (setq waveId (eval VDC("/net2")))) (drIsParamWave (setq waveId (eval VDC("/net2"))))) then
         (setq waveList (cons (list "vdc" waveId) waveList))
      else
         (if (or (drIsWaveform (setq waveId VDC("/net2"))) (drIsParamWave (setq waveId VDC("/net2")))) then
            (setq waveList (cons (list "vdc" waveId) waveList))
         else
            measure = VDC("/net2")
            (info (sprintf nil "      ...%s (%s) = %L\n" "vdc" scenario measure))
            (UartOceanKeepResultsData scenario simulator "vdc" measure)
         )
      )
    )
   )
   ; Plot the outputs
   ; ------------------------------------------------
   (UartOceanPlotSimulationResults ?simulator simulator
       ?scenario scenario
       ?analysisList '("dc")
       ?waveList waveList
   )
 (UartOceanCopyResultsInOceanDir scenario (strcat dir "/psf") (strcat dir "/ocean"))
 )
)
; ================================================
; PRINT OUTPUT MEASUREMENTS
; ================================================
(UartOceanPrintSimulationResults ?simulator simulator
                                 ?outputDir (strcat dir "/ocean")
                                 ?outputFile (strcat simulator ".meas")
                                 ?maxwidth 200
                                 ?referenceScenario "MOSmax"
                                 ?type "scenario"
)
(when (hiGraphicMode) (view (strcat dir "/ocean/" simulator ".meas")))
)
; ================================================
; RESTORE THE .cdsenv FILE
; ================================================
(UartOceanRestoreCdsenvFile)

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    You may need to ask ST (the providers of the design kit you're using) this question. This is a script dumped out of their tool (as far as I can tell), and all those Uart functions are not from Cadence...

    Regards,

    Andrew.

    • 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