The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 16th, 2024, 11:27pm
Pages: 1
Send Topic Print
Passing model file as a string parameter in cadence ocean script (Read 3001 times)
pkd
Junior Member
**
Offline



Posts: 25
India
Passing model file as a string parameter in cadence ocean script
Dec 22nd, 2009, 4:53am
 
Hi,
I want to do a corner analysis along with several other variable
parameters for my design.
At present the line specifying the model file looks like this...

modelFile(
  '("/home/pratap/cadence/foundry_data/umc13mmrf/../Models/Spectre/
L130E_HS12_V241.lib.scs" "ss")
)

All I need to change is the last argument as "ff" or "tt". So I want
to give these strings as parameters from an array and run the
simulation.
Does anybody have an idea how can I do so?
Waiting for some solution,
-pkd
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: Passing model file as a string parameter in cadence ocean script
Reply #1 - Dec 22nd, 2009, 5:04am
 
Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
pkd
Junior Member
**
Offline



Posts: 25
India
Re: Passing model file as a string parameter in cadence ocean script
Reply #2 - Dec 22nd, 2009, 3:50pm
 
Thanks!
The link helped me get the vital clue.


This is how my final code looks like...

Code:
corners='( "ss" "tt" "ff" "snfp" "fnsp" )
foreach(corner corners
  modelFile(
   list( "/home/pratap/cadence/foundry_data/umc13mmrf/../Models/Spectre/L130E_HS12_V241.lib.scs" sprintf( nil "%s" corner))
          )
.
.
.
.
) 

Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: Passing model file as a string parameter in cadence ocean script
Reply #3 - Dec 23rd, 2009, 12:57am
 
"sprintf()" is not required at all for your case.
The following works for your purpose.
Code:
corners='( "ss" "tt" "ff" "snfp" "fnsp" )
foreach(corner corners
  modelFile(
   list( "/home/pratap/cadence/foundry_data/umc13mmrf/../Models/Spectre/L130E_HS12_V241.lib.scs" corner )
	    )
.
.
.
.
) 


Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.