The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Passing model file as a string parameter in cadence ocean script
https://designers-guide.org/forum/YaBB.pl?num=1261486433

Message started by pkd on Dec 22nd, 2009, 4:53am

Title: Passing model file as a string parameter in cadence ocean script
Post by pkd on 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

Title: Re: Passing model file as a string parameter in cadence ocean script
Post by pancho_hideboo on Dec 22nd, 2009, 5:04am

See http://www.designers-guide.org/Forum/YaBB.pl?num=1195191246/3#3

Title: Re: Passing model file as a string parameter in cadence ocean script
Post by pkd on 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))
         )
.
.
.
.
)

Title: Re: Passing model file as a string parameter in cadence ocean script
Post by pancho_hideboo on 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 )
         )
.
.
.
.
)


The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.