SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

optimazation of standard cell layout
optimazation of standard cell layoutoptimazation of standard cell layout
optimazation of standard cell layout
E ER Yash nagaria
 
crosstalk minimisation using vlsi
crosstalk minimisation using vlsicrosstalk minimisation using vlsi
crosstalk minimisation using vlsi
subhradeep mitra
 
1 introduction to vlsi physical design
1 introduction to vlsi physical design1 introduction to vlsi physical design
1 introduction to vlsi physical design
sasikun
 
VLSI Physical Design Automation.ppt
VLSI Physical Design Automation.pptVLSI Physical Design Automation.ppt
VLSI Physical Design Automation.ppt
RichikDey5
 
minimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routingminimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routing
Chandrajit Pal
 
Vlsi physical design
Vlsi physical designVlsi physical design
Vlsi physical design
I World Tech
 

Was ist angesagt? (20)

optimazation of standard cell layout
optimazation of standard cell layoutoptimazation of standard cell layout
optimazation of standard cell layout
 
crosstalk minimisation using vlsi
crosstalk minimisation using vlsicrosstalk minimisation using vlsi
crosstalk minimisation using vlsi
 
Vlsi Synthesis
Vlsi SynthesisVlsi Synthesis
Vlsi Synthesis
 
BGR
BGRBGR
BGR
 
1 introduction to vlsi physical design
1 introduction to vlsi physical design1 introduction to vlsi physical design
1 introduction to vlsi physical design
 
VLSI Physical Design Automation.ppt
VLSI Physical Design Automation.pptVLSI Physical Design Automation.ppt
VLSI Physical Design Automation.ppt
 
minimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routingminimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routing
 
Introduction of testing and verification of vlsi design
Introduction of testing and verification of vlsi designIntroduction of testing and verification of vlsi design
Introduction of testing and verification of vlsi design
 
ASIC design Flow (Digital Design)
ASIC design Flow (Digital Design)ASIC design Flow (Digital Design)
ASIC design Flow (Digital Design)
 
Define Width and Height of Core and Die (http://www.vlsisystemdesign.com/PD-F...
Define Width and Height of Core and Die (http://www.vlsisystemdesign.com/PD-F...Define Width and Height of Core and Die (http://www.vlsisystemdesign.com/PD-F...
Define Width and Height of Core and Die (http://www.vlsisystemdesign.com/PD-F...
 
Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)
 
Testing and Verification of Electronics Circuits : Introduction
Testing and Verification of Electronics Circuits : IntroductionTesting and Verification of Electronics Circuits : Introduction
Testing and Verification of Electronics Circuits : Introduction
 
Physical design-complete
Physical design-completePhysical design-complete
Physical design-complete
 
42 PPT-5 BOUNDARY SCAN....pptx
42 PPT-5 BOUNDARY SCAN....pptx42 PPT-5 BOUNDARY SCAN....pptx
42 PPT-5 BOUNDARY SCAN....pptx
 
Physical Verification Design.pdf
Physical Verification Design.pdfPhysical Verification Design.pdf
Physical Verification Design.pdf
 
ASIC DESIGN FLOW
ASIC DESIGN FLOWASIC DESIGN FLOW
ASIC DESIGN FLOW
 
Presentation on Industrial training in VLSI
Presentation on Industrial training in VLSI Presentation on Industrial training in VLSI
Presentation on Industrial training in VLSI
 
Physical design
Physical design Physical design
Physical design
 
Ch13.pdf
Ch13.pdfCh13.pdf
Ch13.pdf
 
Vlsi physical design
Vlsi physical designVlsi physical design
Vlsi physical design
 

Andere mochten auch (7)

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
 

Ähnlich wie Writing Cadence Ocean scripts

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
SamHoney6
 
MattsonTutorialSC14.pptx
MattsonTutorialSC14.pptxMattsonTutorialSC14.pptx
MattsonTutorialSC14.pptx
gopikahari7
 
c programming L-1.pdf43333333544444444444444444444
c programming L-1.pdf43333333544444444444444444444c programming L-1.pdf43333333544444444444444444444
c programming L-1.pdf43333333544444444444444444444
PurvaShyama
 
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
Jongsu "Liam" Kim
 

Ähnlich wie 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
 
c programming L-1.pdf43333333544444444444444444444
c programming L-1.pdf43333333544444444444444444444c programming L-1.pdf43333333544444444444444444444
c programming L-1.pdf43333333544444444444444444444
 
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
 

Kürzlich hochgeladen

"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Kürzlich hochgeladen (20)

Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 

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