SlideShare a Scribd company logo
1 of 17
Download to read offline
Ocean Scripts
Tao-Yi Lee
Advisor: Dr. Yu-Jiu Wang
RFVLSI LAB, NCTU
2014/4/18 Ocean Scripts 1
Ocean Scripts
• OCEAN lets you set up, simulate, and analyze
circuit data. OCEAN is a text-based process that
you can run from a UNIX shell or from the
Command Interpreter Window (CIW).
2014/4/18 Ocean Scripts 2
What can Ocean Scripts do?
• Create scripts that you can run repeatedly to verify
circuit performance
• Run longer analyses such as parametric analyses
and statistical analyses more effectively
• Run long simulations in OCEAN without starting the
Virtuoso® Analog Design Environment graphical
user interface
• Run simulations from a nongraphic, remote terminal
2014/4/18 Ocean Scripts 3
Using OCEAN from a UNIX Shell
• Interactive
• Non Interactive
Unix $ ocean
ocean>
Unix $ ocean -nograph <
oceanScript.ocn > oceanScript.log
2014/4/18 Ocean Scripts 4
Scaling Factors
Character Name Multiplier Examples
Y Yotta 1024 10Y [ 10e+25 ]
Z Zetta 1021 10Z [ 10e+22 ]
E Exa 1018 10E [ 10e+19 ]
P Peta 1015 10P [ 10e+16 ]
T Tera 1012 10T [ 1.0e13 ]
G Giga 109 10G [ 10,000,000,000 ]
M Mega 106 10M [ 10,000,000 ]
2014/4/18 Ocean Scripts 5
Scaling Factors
Character Name Multiplier Examples
K Kilo 103 10K [ 10,000 ]
% percent 10-2 5% [ 0.05 ]
m milli 10-3 5m [ 5.0e-3 ]
u micro 10-6 1.2u [ 1.2e-6 ]
n nano 10-9 1.2n [ 1.2e-9 ]
p pico 10-12 1.2p [ 1.2e-12 ]
f femto 10-15 1.2f [ 1.2e-15 ]
a atto 10-18 1.2a [ 1.2e-18 ]
z zepto 10-21 1.2z [ 1.2e-21 ]
y yocto 10-24 1.2y [ 1.2e-24 ]
2014/4/18 Ocean Scripts 6
Comments
• SKILL permits two different styles of comments
– Block oriented: comments are delimited by /* and */
– Line-oriented where the semicolon (;) indicates that the rest
of the input line is a comment.
/* This is a block of (C style) comments
comment line 2
comment line 3 etc.
*/
x = 1 ; comment following a statement
; comment line 1
; comment line 2 and so forth
2014/4/18 Ocean Scripts 7
Arrays
• You must explicitly create arrays before using them so
the necessary storage can be allocated
• Arrays are not typed. Elements can be different types.
• Arrays are one dimensional
declare( week[7] ) ;=> array[7]:9780700
week ;=> array[7]:9780700
type( week ) ;=> array
days = ’(monday tuesday Wednesday)
for(day 0 length(week)-1
week[day] = nth(day days)
)
2014/4/18 Ocean Scripts 8
Simulation Commands: resultsDir()
• resultsDir( t_dirName ) => undefined/nil
• Specifies the directory where the PSF files (results)
are stored. If you do not specify a directory with this
command, the PSF files are placed in ../psf to the
netlist directory.
2014/4/18 Ocean Scripts 9
Simulation Commands: simulator()
• simulator( s_simulator ) => s_simulator/nil
• Starts an OCEAN session and sets the simulator
name for that session. The previous session (if any)
is closed and all session information is cleared.
• Possible values:
– Spectre
– spectreVerilog
– aps
– ultrasim
2014/4/18 Ocean Scripts 10
Simulation Commands: design()
• design( t_cktFile | t_lib t_cell t_view [t_mode]) =>
t_cktFile/nil | (t_lib t_cell t_view)/nil
• Specifies the name of the design to be simulated.
For the lib, cell, view version of the design
command, you can specify the mode (r, w or a,
representing read, write or append) in which the
design should be opened
• Example:
– design("mylib" "ampTest" "schematic" “r")
2014/4/18 Ocean Scripts 11
Simulation Commands: createNetlist()
• createNetlist( [?recreateAll b_recreateAll] [?display
b_display] ) => t_filename/nil
• Creates the simulator input file.
• If the design is specified as lib/cell/view, this
command netlists the design, if required, and
creates the simulator input file.
• If the design is specified as netlist file, that netlist is
included in the simulator input file.
2014/4/18 Ocean Scripts 12
Simulation Commands: modelFile()
• modelFile( [g_modelFile1 [g_modelFile2 …]] ) =>
l_modelFile
• Example:
– modelFile( '("/home/PDKs/OA65_LIB/tsmcN65/../models
/spectre/crn65gplus_2d5_lk_v1d0.scs" "tt_bip"))
2014/4/18 Ocean Scripts 13
Simulation Commands: analysis()
• analysis( s_analysisType [?analysisOption1
g_analysisOptionValue1]… [?analysisOptionN
g_analysisOptionValueN]) => undefined/nil
2014/4/18 Ocean Scripts 14
Example: DC and TRAN simulations
simulator( 'aps )
design( "N65_TY" "tb_TX" "config" "r")
createNetlist( ?recreateAll t ?display t)
createFinalNetlist()
resultsDir("/home/michael/OA65/tb_TX_ocn")
modelFile(
'("/<path_to_model>/tsmcN65/../models/spectre/crn65gplus.scs" "tt")
'("/<path_to_model>/tsmcN65/../models/spectre/crn65gplus.scs" "tt_dio")
...
...
)
analysis('dc ?saveOppoint t )
analysis('tran ?stop "50n" ?step 0.016n ?errpreset "moderate" )
store('tran "./tranStoreFile" )
2014/4/18 Ocean Scripts 15
Example: PSS and Load-Pull simulations
2014/4/18 Ocean Scripts 16
References
• Cadence, “OCEAN Reference”, Product Version
6.1.4, March 2010
2014/4/18 Ocean Scripts 17

More Related Content

What's hot

Chap16-1-NMOS-Inverter.pdf
Chap16-1-NMOS-Inverter.pdfChap16-1-NMOS-Inverter.pdf
Chap16-1-NMOS-Inverter.pdfahmedsalim244821
 
Physical design
Physical design Physical design
Physical design Mantra VLSI
 
Low dropout regulator(ldo)
Low dropout regulator(ldo)Low dropout regulator(ldo)
Low dropout regulator(ldo)altaf423
 
Threshold Voltage & Channel Length Modulation
Threshold Voltage & Channel Length ModulationThreshold Voltage & Channel Length Modulation
Threshold Voltage & Channel Length ModulationBulbul Brahma
 
Verilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with ExamplesVerilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with ExamplesE2MATRIX
 
MOSFET Small signal model
MOSFET Small signal modelMOSFET Small signal model
MOSFET Small signal modelTeam-VLSI-ITMU
 
Bandgap Reference circuit Baased on FinFET Device
Bandgap Reference circuit Baased on FinFET DeviceBandgap Reference circuit Baased on FinFET Device
Bandgap Reference circuit Baased on FinFET DeviceYalagoud Patil
 
Fabrication of diodes, resistors, capacitors, fe ts
Fabrication of diodes, resistors, capacitors, fe tsFabrication of diodes, resistors, capacitors, fe ts
Fabrication of diodes, resistors, capacitors, fe tsKarthik Vivek
 

What's hot (20)

Mosfet
MosfetMosfet
Mosfet
 
Layout02 (1)
Layout02 (1)Layout02 (1)
Layout02 (1)
 
Powerplanning
PowerplanningPowerplanning
Powerplanning
 
Chap16-1-NMOS-Inverter.pdf
Chap16-1-NMOS-Inverter.pdfChap16-1-NMOS-Inverter.pdf
Chap16-1-NMOS-Inverter.pdf
 
Rc delay modelling in vlsi
Rc delay modelling in vlsiRc delay modelling in vlsi
Rc delay modelling in vlsi
 
bandgap ppt
bandgap pptbandgap ppt
bandgap ppt
 
15 mosfet threshold voltage
15 mosfet threshold voltage15 mosfet threshold voltage
15 mosfet threshold voltage
 
Physical design
Physical design Physical design
Physical design
 
Cmos logic
Cmos logicCmos logic
Cmos logic
 
Low dropout regulator(ldo)
Low dropout regulator(ldo)Low dropout regulator(ldo)
Low dropout regulator(ldo)
 
CMOS Logic
CMOS LogicCMOS Logic
CMOS Logic
 
Threshold Voltage & Channel Length Modulation
Threshold Voltage & Channel Length ModulationThreshold Voltage & Channel Length Modulation
Threshold Voltage & Channel Length Modulation
 
Verilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with ExamplesVerilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with Examples
 
MOSFET Small signal model
MOSFET Small signal modelMOSFET Small signal model
MOSFET Small signal model
 
Bandgap Reference circuit Baased on FinFET Device
Bandgap Reference circuit Baased on FinFET DeviceBandgap Reference circuit Baased on FinFET Device
Bandgap Reference circuit Baased on FinFET Device
 
3673 mosfet
3673 mosfet3673 mosfet
3673 mosfet
 
Latch up
Latch upLatch up
Latch up
 
Fabrication of diodes, resistors, capacitors, fe ts
Fabrication of diodes, resistors, capacitors, fe tsFabrication of diodes, resistors, capacitors, fe ts
Fabrication of diodes, resistors, capacitors, fe ts
 
MULTI Threshold
MULTI ThresholdMULTI Threshold
MULTI Threshold
 
Second order effects
Second order effectsSecond order effects
Second order effects
 

Viewers also liked

Cadence P-cell tutorial
Cadence P-cell tutorial Cadence P-cell tutorial
Cadence P-cell tutorial Michael Lee
 
NCTu DIC 2012 term report
NCTu DIC 2012 term reportNCTu DIC 2012 term report
NCTu DIC 2012 term reportMichael Lee
 
Generiic RF passive device modeling
Generiic RF passive device modelingGeneriic RF passive device modeling
Generiic RF passive device modelingMichael Lee
 
Skill translator usage guide
Skill translator usage guideSkill translator usage guide
Skill translator usage guideMichael Lee
 
Allegro PCB教學
Allegro PCB教學Allegro PCB教學
Allegro PCB教學Michael Lee
 
OrCAD / Allegro PCB Editor Design Guide
OrCAD / Allegro PCB Editor Design GuideOrCAD / Allegro PCB Editor Design Guide
OrCAD / Allegro PCB Editor Design GuideOle Ejlersen
 

Viewers also liked (8)

Cadence P-cell tutorial
Cadence P-cell tutorial Cadence P-cell tutorial
Cadence P-cell tutorial
 
NCTu DIC 2012 term report
NCTu DIC 2012 term reportNCTu DIC 2012 term report
NCTu DIC 2012 term report
 
Generiic RF passive device modeling
Generiic RF passive device modelingGeneriic RF passive device modeling
Generiic RF passive device modeling
 
Skill translator usage guide
Skill translator usage guideSkill translator usage guide
Skill translator usage guide
 
3cmoscours
3cmoscours3cmoscours
3cmoscours
 
Allegro PCB教學
Allegro PCB教學Allegro PCB教學
Allegro PCB教學
 
OrCAD / Allegro PCB Editor Design Guide
OrCAD / Allegro PCB Editor Design GuideOrCAD / Allegro PCB Editor Design Guide
OrCAD / Allegro PCB Editor Design Guide
 
Formation cadence
Formation cadenceFormation cadence
Formation cadence
 

Similar to Writing Cadence Ocean scripts

#PDR15 - waf, wscript and Your Pebble App
#PDR15 - waf, wscript and Your Pebble App#PDR15 - waf, wscript and Your Pebble App
#PDR15 - waf, wscript and Your Pebble AppPebble Technology
 
RHCSA EX200 - Summary
RHCSA EX200 - SummaryRHCSA EX200 - Summary
RHCSA EX200 - SummaryNugroho Gito
 
Road to sbt 1.0: Paved with server (2015 Amsterdam)
Road to sbt 1.0: Paved with server (2015 Amsterdam)Road to sbt 1.0: Paved with server (2015 Amsterdam)
Road to sbt 1.0: Paved with server (2015 Amsterdam)Eugene Yokota
 
Web Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdfWeb Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdfSamHoney6
 
Continuous Delivery Workshop with Ansible x GitLab CI (2nd+)
Continuous Delivery Workshop with Ansible x GitLab CI (2nd+)Continuous Delivery Workshop with Ansible x GitLab CI (2nd+)
Continuous Delivery Workshop with Ansible x GitLab CI (2nd+)Chu-Siang Lai
 
Road to sbt 1.0 paved with server
Road to sbt 1.0   paved with serverRoad to sbt 1.0   paved with server
Road to sbt 1.0 paved with serverEugene Yokota
 
2013 april gruff webinar san diego copy
2013 april  gruff webinar   san diego copy2013 april  gruff webinar   san diego copy
2013 april gruff webinar san diego copySemantic Web San Diego
 
2013 april gruff webinar san diego copy
2013 april  gruff webinar   san diego copy2013 april  gruff webinar   san diego copy
2013 april gruff webinar san diego copyBarbaraStarr2009
 
2013 april gruff webinar san diego copy
2013 april  gruff webinar   san diego copy2013 april  gruff webinar   san diego copy
2013 april gruff webinar san diego copyBarbaraStarr2009
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSvtunotesbysree
 
What’s new in .NET
What’s new in .NETWhat’s new in .NET
What’s new in .NETDoommaker
 
stackconf 2022: Cluster Management: Heterogeneous, Lightweight, Safe. Pick Three
stackconf 2022: Cluster Management: Heterogeneous, Lightweight, Safe. Pick Threestackconf 2022: Cluster Management: Heterogeneous, Lightweight, Safe. Pick Three
stackconf 2022: Cluster Management: Heterogeneous, Lightweight, Safe. Pick ThreeNETWAYS
 
Distributed tracing in OpenStack
Distributed tracing in OpenStackDistributed tracing in OpenStack
Distributed tracing in OpenStackIlya Shakhat
 
How to Connect SystemVerilog with Octave
How to Connect SystemVerilog with OctaveHow to Connect SystemVerilog with Octave
How to Connect SystemVerilog with OctaveAmiq Consulting
 
MattsonTutorialSC14.pptx
MattsonTutorialSC14.pptxMattsonTutorialSC14.pptx
MattsonTutorialSC14.pptxgopikahari7
 
Kolla talk at OpenStack Summit 2017 in Sydney
Kolla talk at OpenStack Summit 2017 in SydneyKolla talk at OpenStack Summit 2017 in Sydney
Kolla talk at OpenStack Summit 2017 in SydneyVikram G Hosakote
 
Fortran & Link with Library & Brief Explanation of MKL BLAS
Fortran & Link with Library & Brief Explanation of MKL BLASFortran & Link with Library & Brief Explanation of MKL BLAS
Fortran & Link with Library & Brief Explanation of MKL BLASJongsu "Liam" Kim
 
sigrok: Adventures in Integrating a Power-Measurement Device
sigrok: Adventures in Integrating a Power-Measurement Devicesigrok: Adventures in Integrating a Power-Measurement Device
sigrok: Adventures in Integrating a Power-Measurement DeviceBayLibre
 

Similar to Writing Cadence Ocean scripts (20)

#PDR15 - waf, wscript and Your Pebble App
#PDR15 - waf, wscript and Your Pebble App#PDR15 - waf, wscript and Your Pebble App
#PDR15 - waf, wscript and Your Pebble App
 
RHCSA EX200 - Summary
RHCSA EX200 - SummaryRHCSA EX200 - Summary
RHCSA EX200 - Summary
 
Return of c++
Return of c++Return of c++
Return of c++
 
Road to sbt 1.0: Paved with server (2015 Amsterdam)
Road to sbt 1.0: Paved with server (2015 Amsterdam)Road to sbt 1.0: Paved with server (2015 Amsterdam)
Road to sbt 1.0: Paved with server (2015 Amsterdam)
 
Web Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdfWeb Template Mechanisms in SOC Verification - DVCon.pdf
Web Template Mechanisms in SOC Verification - DVCon.pdf
 
Continuous Delivery Workshop with Ansible x GitLab CI (2nd+)
Continuous Delivery Workshop with Ansible x GitLab CI (2nd+)Continuous Delivery Workshop with Ansible x GitLab CI (2nd+)
Continuous Delivery Workshop with Ansible x GitLab CI (2nd+)
 
Road to sbt 1.0 paved with server
Road to sbt 1.0   paved with serverRoad to sbt 1.0   paved with server
Road to sbt 1.0 paved with server
 
2013 april gruff webinar san diego copy
2013 april  gruff webinar   san diego copy2013 april  gruff webinar   san diego copy
2013 april gruff webinar san diego copy
 
2013 april gruff webinar san diego copy
2013 april  gruff webinar   san diego copy2013 april  gruff webinar   san diego copy
2013 april gruff webinar san diego copy
 
2013 april gruff webinar san diego copy
2013 april  gruff webinar   san diego copy2013 april  gruff webinar   san diego copy
2013 april gruff webinar san diego copy
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
 
What’s new in .NET
What’s new in .NETWhat’s new in .NET
What’s new in .NET
 
stackconf 2022: Cluster Management: Heterogeneous, Lightweight, Safe. Pick Three
stackconf 2022: Cluster Management: Heterogeneous, Lightweight, Safe. Pick Threestackconf 2022: Cluster Management: Heterogeneous, Lightweight, Safe. Pick Three
stackconf 2022: Cluster Management: Heterogeneous, Lightweight, Safe. Pick Three
 
Distributed tracing in OpenStack
Distributed tracing in OpenStackDistributed tracing in OpenStack
Distributed tracing in OpenStack
 
How to Connect SystemVerilog with Octave
How to Connect SystemVerilog with OctaveHow to Connect SystemVerilog with Octave
How to Connect SystemVerilog with Octave
 
MattsonTutorialSC14.pptx
MattsonTutorialSC14.pptxMattsonTutorialSC14.pptx
MattsonTutorialSC14.pptx
 
Kolla talk at OpenStack Summit 2017 in Sydney
Kolla talk at OpenStack Summit 2017 in SydneyKolla talk at OpenStack Summit 2017 in Sydney
Kolla talk at OpenStack Summit 2017 in Sydney
 
Fortran & Link with Library & Brief Explanation of MKL BLAS
Fortran & Link with Library & Brief Explanation of MKL BLASFortran & Link with Library & Brief Explanation of MKL BLAS
Fortran & Link with Library & Brief Explanation of MKL BLAS
 
OpenStack with OpenDaylight
OpenStack with OpenDaylightOpenStack with OpenDaylight
OpenStack with OpenDaylight
 
sigrok: Adventures in Integrating a Power-Measurement Device
sigrok: Adventures in Integrating a Power-Measurement Devicesigrok: Adventures in Integrating a Power-Measurement Device
sigrok: Adventures in Integrating a Power-Measurement Device
 

Recently uploaded

Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 

Recently uploaded (20)

Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 

Writing Cadence Ocean scripts

  • 1. Ocean Scripts Tao-Yi Lee Advisor: Dr. Yu-Jiu Wang RFVLSI LAB, NCTU 2014/4/18 Ocean Scripts 1
  • 2. Ocean Scripts • OCEAN lets you set up, simulate, and analyze circuit data. OCEAN is a text-based process that you can run from a UNIX shell or from the Command Interpreter Window (CIW). 2014/4/18 Ocean Scripts 2
  • 3. What can Ocean Scripts do? • Create scripts that you can run repeatedly to verify circuit performance • Run longer analyses such as parametric analyses and statistical analyses more effectively • Run long simulations in OCEAN without starting the Virtuoso® Analog Design Environment graphical user interface • Run simulations from a nongraphic, remote terminal 2014/4/18 Ocean Scripts 3
  • 4. Using OCEAN from a UNIX Shell • Interactive • Non Interactive Unix $ ocean ocean> Unix $ ocean -nograph < oceanScript.ocn > oceanScript.log 2014/4/18 Ocean Scripts 4
  • 5. Scaling Factors Character Name Multiplier Examples Y Yotta 1024 10Y [ 10e+25 ] Z Zetta 1021 10Z [ 10e+22 ] E Exa 1018 10E [ 10e+19 ] P Peta 1015 10P [ 10e+16 ] T Tera 1012 10T [ 1.0e13 ] G Giga 109 10G [ 10,000,000,000 ] M Mega 106 10M [ 10,000,000 ] 2014/4/18 Ocean Scripts 5
  • 6. Scaling Factors Character Name Multiplier Examples K Kilo 103 10K [ 10,000 ] % percent 10-2 5% [ 0.05 ] m milli 10-3 5m [ 5.0e-3 ] u micro 10-6 1.2u [ 1.2e-6 ] n nano 10-9 1.2n [ 1.2e-9 ] p pico 10-12 1.2p [ 1.2e-12 ] f femto 10-15 1.2f [ 1.2e-15 ] a atto 10-18 1.2a [ 1.2e-18 ] z zepto 10-21 1.2z [ 1.2e-21 ] y yocto 10-24 1.2y [ 1.2e-24 ] 2014/4/18 Ocean Scripts 6
  • 7. Comments • SKILL permits two different styles of comments – Block oriented: comments are delimited by /* and */ – Line-oriented where the semicolon (;) indicates that the rest of the input line is a comment. /* This is a block of (C style) comments comment line 2 comment line 3 etc. */ x = 1 ; comment following a statement ; comment line 1 ; comment line 2 and so forth 2014/4/18 Ocean Scripts 7
  • 8. Arrays • You must explicitly create arrays before using them so the necessary storage can be allocated • Arrays are not typed. Elements can be different types. • Arrays are one dimensional declare( week[7] ) ;=> array[7]:9780700 week ;=> array[7]:9780700 type( week ) ;=> array days = ’(monday tuesday Wednesday) for(day 0 length(week)-1 week[day] = nth(day days) ) 2014/4/18 Ocean Scripts 8
  • 9. Simulation Commands: resultsDir() • resultsDir( t_dirName ) => undefined/nil • Specifies the directory where the PSF files (results) are stored. If you do not specify a directory with this command, the PSF files are placed in ../psf to the netlist directory. 2014/4/18 Ocean Scripts 9
  • 10. Simulation Commands: simulator() • simulator( s_simulator ) => s_simulator/nil • Starts an OCEAN session and sets the simulator name for that session. The previous session (if any) is closed and all session information is cleared. • Possible values: – Spectre – spectreVerilog – aps – ultrasim 2014/4/18 Ocean Scripts 10
  • 11. Simulation Commands: design() • design( t_cktFile | t_lib t_cell t_view [t_mode]) => t_cktFile/nil | (t_lib t_cell t_view)/nil • Specifies the name of the design to be simulated. For the lib, cell, view version of the design command, you can specify the mode (r, w or a, representing read, write or append) in which the design should be opened • Example: – design("mylib" "ampTest" "schematic" “r") 2014/4/18 Ocean Scripts 11
  • 12. Simulation Commands: createNetlist() • createNetlist( [?recreateAll b_recreateAll] [?display b_display] ) => t_filename/nil • Creates the simulator input file. • If the design is specified as lib/cell/view, this command netlists the design, if required, and creates the simulator input file. • If the design is specified as netlist file, that netlist is included in the simulator input file. 2014/4/18 Ocean Scripts 12
  • 13. Simulation Commands: modelFile() • modelFile( [g_modelFile1 [g_modelFile2 …]] ) => l_modelFile • Example: – modelFile( '("/home/PDKs/OA65_LIB/tsmcN65/../models /spectre/crn65gplus_2d5_lk_v1d0.scs" "tt_bip")) 2014/4/18 Ocean Scripts 13
  • 14. Simulation Commands: analysis() • analysis( s_analysisType [?analysisOption1 g_analysisOptionValue1]… [?analysisOptionN g_analysisOptionValueN]) => undefined/nil 2014/4/18 Ocean Scripts 14
  • 15. Example: DC and TRAN simulations simulator( 'aps ) design( "N65_TY" "tb_TX" "config" "r") createNetlist( ?recreateAll t ?display t) createFinalNetlist() resultsDir("/home/michael/OA65/tb_TX_ocn") modelFile( '("/<path_to_model>/tsmcN65/../models/spectre/crn65gplus.scs" "tt") '("/<path_to_model>/tsmcN65/../models/spectre/crn65gplus.scs" "tt_dio") ... ... ) analysis('dc ?saveOppoint t ) analysis('tran ?stop "50n" ?step 0.016n ?errpreset "moderate" ) store('tran "./tranStoreFile" ) 2014/4/18 Ocean Scripts 15
  • 16. Example: PSS and Load-Pull simulations 2014/4/18 Ocean Scripts 16
  • 17. References • Cadence, “OCEAN Reference”, Product Version 6.1.4, March 2010 2014/4/18 Ocean Scripts 17