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.

How to edit model file parameters from the spice file before running a simulation

Status
Not open for further replies.

rahdirs

Advanced Member level 1
Joined
May 22, 2013
Messages
424
Helped
93
Reputation
192
Reaction score
91
Trophy points
1,308
Location
Mordor
Activity points
4,492
Hi,


I have a spice file like this:

Code:
**Test inverter 
.TEMP 110 
**Use high temperature to simulate worst case delay and leakage power 
.OPTION 
+            ARTIST=2 
+            INGOLD=2 
+            MEASOUT=1 
+            PARHIER=LOCAL 
+            PSF=2 
+            POST 
.inc '/home/**/NMOS_VTL.inc'  ** I've hid the directory path while posting 
.inc '/home/**/PMOS_VTL.inc' 
.include inverter.sp 
v1 vdd! 0 1.1v 
v2 vin 0 PULSE(0 1.1V 1ns 0.02ns 0.02ns 1ns 3ns) 

.op 
.tran 10p 20ns 

.MEASURE TRAN tdlay TRIG Vout VAL = 0.5 TD = 10n RISE = 2
+ TARG Vin VAL = 0.5  FALL = 2

.end

Is it possible to edit parameters that we are importing from 'NMOS_VTL.inc' & 'PMOS_VTL.inc' without manually doing it ? For example, I'll be importing Vth0 = 0.43.. from nmos model file & Vth0 = -0.47... from pmos model. Can i change those values from the spice file ?

Regards,
rahdirs
 

Model parameters can be overridden in the model instantiation or changed in a parameter sweep.. Means you have to edit either the model or the instance or perform a .STEP command.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top