The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 19th, 2024, 12:20am
Pages: 1
Send Topic Print
Spectre question (Read 3369 times)
vaidy.ts
New Member
*
Offline



Posts: 4

Spectre question
Oct 17th, 2007, 7:53am
 
Hello,

I have a question related to Spectre. Lets say I have a model called "mosfet" with a parameter "beta". I then make a subcircuit called "mysubckt" that uses an instance of "mosfet". But when i try to access the parameter "beta" from within "mysubckt", I seem to be running into problems. I tried referring to it like

mosfet:beta
mosfet.beta
etc

but things didnt seem to work.
Can anyone help?
Thanks, regards
Vaidy
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Spectre question
Reply #1 - Oct 18th, 2007, 5:29am
 
What kind of parameter is it?  Are you talking about an " output parameter"?

To be more specific, for say BSIM3, "vth0" is a parameter, you can set
.model nch nmos level=49 vth0=0.9

There are also what Spectre calls output parameters, eg, gm, gds, etc.; you can't set these (the model computes them), but you should be able to access them for plotting.

And, when you say "access" do you mean plotting, or are you trying to access the value of beta to set something else?  The latter is not possible if your beta is an output parameter; if it's an input parameter, you have to declare a subckt parameter and use it in both places.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
bernd
Senior Member
****
Offline



Posts: 229
Munich/Germany
Re: Spectre question
Reply #2 - Oct 18th, 2007, 8:29am
 
Try an inline subcircuit rather tan a subcircuit

inline subckt mysubckt (n1 ... nn)
params ...

mysubckt (n1 ... nn) mosfet ...

ends mysubckt

Bernd
Back to top
 
 

Just another lonesome cad guy
View Profile WWW   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Spectre question
Reply #3 - Oct 18th, 2007, 10:28am
 
It could even just be that you're referring to the model name rather than the instance name, eg

.subckt mysubckt
m1 (d g s b) mosfet ...
.model mosfet nmos level=49 beta=5
.ends

x1 (d g s b) mysubckt

you should be referring to x1.m1.beta; mosfet doesn't appear in the name.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   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.