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.

help needed with parametric analysis in spice

Status
Not open for further replies.

abhii

Newbie level 5
Joined
Jan 11, 2008
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,321
i need to do a parametric analysis in spice to show the different drain current curves with varying channel length of NMOS. But i am getting an error can anyone plz help me out

vds 1 0 5v
vgs 2 0
m1 1 2 0 0 n1
.param l_val = .1u
.model n1 nmos level = 2 tox = 50n nsub = 1e16 l = l_val w = 10u
---------------------------------------------------$
ERROR -- 'l_val' is not a model parameter name
.dc vgs 0 5 1 sweep l_val .1u 10u .5u
--------------$
ERROR -- Must be 'I' or 'V'
.probe
.op
.end
 

I suppose, you forgot to define l_val as a "global parameter" which is to be varied.
 

well how do i do that?and besides doesn't the statement .param l_val specify that l_val is a global which will be varied?
 

Which SPICE simulation package are you using?
For example, in PSpice you have to declare one part as a global parameter and - more than that - specify any value for it (nominal).
 

I am using PSpice student version
 

Hu abhii,

I am not sure, but perhaps you can vary one parameter within a model statement only via a tolerance specification (as, for example, for a Monte carlo simulation).
 

The problem is not to do with global.

I am not sure of the Pspice syntax but I would think the problem is more likely to be to do with the syntax of l=l_val - some simulators want either single quotes, curly brackets or square brackets around the variable so l='l_val' for example.

Keith
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top