Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Output parameter inside the model that is included in Hspice

Status
Not open for further replies.

happystar

Newbie level 6
Joined
Sep 22, 2008
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,357
Hi All

I am working on extracting parameters of an Cap model.

The model.inc file defines all the parasitic component values. Once I set the dimension value, the parasitics are calculated. But they are made by many many equations. It's hard for me to get the value immediately.

I include the model.inc in my .sp file, and define other connections. How can I output the values that calculated inside the model file? Everytime I run it, it gives me the error: command exited with non-zero status 1 , and with no further details. Could anyone tell me what's wrong with my file?

Thanks!!

The following is my .sp file

.LIB 'models/skew.file' stats
* Include global switch and corner parameter input file
.INCLUDE 'models/hspice.param'
* Include mosfet fixed corner parameter input file
.INCLUDE 'models/fixed_corner'
* Include device models
.INCLUDE 'models/mimcap.inc'


v1 in 0 dc 0 ac 1
.param l=6u w=6u c=-0.5 est=1 tlev1=2 tlev2=1 setind=-2 rsx=50 dtemp=0 par=1 bp=3
XMIMCAP in 0 0 mimcap l=l w=w c=c est=est tlev1=tlev1 tlev2=tlev2 setind=setind rsx=rsx dtemp=dtemp par=par bp=bp

* I pick out one param that is defined in mimcap.inc file.
.param r1='max(0.001,prbot)'

.AC DEC 10 1M 20G

*.options post
.probe AC r1

.END
 

Re: Output parameter inside the model that is included in Hs

in top of lis file generated by hspice u will have a error regarding this ....

coming to ur problem:

.param r1='max(0.001,prbot)'
here r1 is dependent on prbot , and prbot is unknown to hspice at top level so hspice generates error.
better way to do this will be;

remove .param r1='max(0.001,prbot)' line from top

put a statement
.probe AC XMIMCAP.r1

basic concept here is that , as paramter is defined in suckt definition of mimcap so that parameter is local to that subckt. in order to access that parametrs you will have to go through hierachy transversing.
in above statement , i expect parameter r1 is defined in suckt defintion of mimcap , so i have accessed it through instance name xmimcap !!
try it and post if u face any issues further ...

hope this helps !!
 

    happystar

    Points: 2
    Helpful Answer Positive Rating
Hi, ankitgarg0312~

I am so happy that finally someone answers me!!!

Thank you so much for helping me! It works now~ I am so happy now~

Actually, I also simulate the subckt by itself, just connect it to Vin, gnd, .etc. Although it can give me the right answer, it's a inconvenient way. Your way is smarter~~~Thank you again!

happystar

Added after 21 minutes:

Oh, btw, I have another question.

Actually r1 is not a parameter but an element. Its value is defined as 'max(0.001, prbot)', where "prbot" is a parameter.

I found that if I directly use
.print par('max(0.001, XMIMCAP.prbot)')
It would generate the right answer.

But if I define a parameter named r1 first, then print, it won't work.
.param r1='max(0.001, XMIMCAP.prbot)'
.print r1


What's wrong with my second version?

I will really appreciate if you can solve my second question. Thanks!!!
 

no guess, i tried it but it gives some weird error ..
 

    happystar

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top