1 /* ******************************************************************************
2 * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 *
3 * BSIM4 Model Equations *
4 ******************************************************************************
5
6 ******************************************************************************
7 * Copyright 2017 Regents of the University of California. *
8 * All rights reserved. *
9 * *
10 * Project Director: Prof. Chenming Hu. *
11 * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang *
12 * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi *
13 * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu *
14 ******************************************************************************
15
16 ******************************************************************************
17 * CMC In-Code Statement *
18 * *
19 * The Developer agrees that the following statement will appear in the *
20 * model code that has been adopted as a CMC Standard. *
21 * *
22 * Software is distributed as is, completely without warranty or service *
23 * support. The University of California and its employees are not liable *
24 * for the condition or performance of the software. *
25 * *
26 * The University of California owns the copyright and grants users a *
27 * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license *
28 * with respect to the software as set forth below. *
29 * *
30 * The University of California hereby disclaims all implied warranties. *
31 * *
32 * The University of California grants the users the right to modify, *
33 * copy, and redistribute the software and documentation, both within *
34 * the user's organization and externally, subject to the following *
35 * restrictions: *
36 * *
37 * 1. The users agree not to charge for the University of California code *
38 * itself but may charge for additions, extensions, or support. *
39 * *
40 * 2. In any product based on the software, the users agree to *
41 * acknowledge the University of California that developed the *
42 * software. This acknowledgment shall appear in the product *
43 * documentation. *
44 * *
45 * 3. Redistributions to others of source code and documentation must *
46 * retain the copyright notice, disclaimer, and list of conditions. *
47 * *
48 * 4. Redistributions to others in binary form must reproduce the *
49 * copyright notice, disclaimer, and list of conditions in the *
50 * documentation and/or other materials provided with the *
51 * distribution. *
52 * *
53 * Agreed to on ______Feb. 15, 2017______________ *
54 * *
55 * By: ____University of California, Berkeley___ *
56 * ____Chenming Hu__________________________ *
57 * ____Professor in Graduate School ________ *
58 * *
59 ****************************************************************************** */
60
61 #include "ngspice/ngspice.h"
62 #include "ngspice/ifsim.h"
63 #include "ngspice/cktdefs.h"
64 #include "ngspice/devdefs.h"
65 #include "bsim4def.h"
66 #include "ngspice/sperror.h"
67 #include "ngspice/suffix.h"
68
69 int
BSIM4mAsk(CKTcircuit * ckt,GENmodel * inst,int which,IFvalue * value)70 BSIM4mAsk(
71 CKTcircuit *ckt,
72 GENmodel *inst,
73 int which,
74 IFvalue *value)
75 {
76 BSIM4model *model = (BSIM4model *)inst;
77
78 NG_IGNORE(ckt);
79
80 switch(which)
81 { case BSIM4_MOD_MOBMOD :
82 value->iValue = model->BSIM4mobMod;
83 return(OK);
84 case BSIM4_MOD_PARAMCHK :
85 value->iValue = model->BSIM4paramChk;
86 return(OK);
87 case BSIM4_MOD_BINUNIT :
88 value->iValue = model->BSIM4binUnit;
89 return(OK);
90 case BSIM4_MOD_CVCHARGEMOD :
91 value->iValue = model->BSIM4cvchargeMod;
92 return(OK);
93 case BSIM4_MOD_CAPMOD :
94 value->iValue = model->BSIM4capMod;
95 return(OK);
96 case BSIM4_MOD_DIOMOD :
97 value->iValue = model->BSIM4dioMod;
98 return(OK);
99 case BSIM4_MOD_TRNQSMOD :
100 value->iValue = model->BSIM4trnqsMod;
101 return(OK);
102 case BSIM4_MOD_ACNQSMOD :
103 value->iValue = model->BSIM4acnqsMod;
104 return(OK);
105 case BSIM4_MOD_FNOIMOD :
106 value->iValue = model->BSIM4fnoiMod;
107 return(OK);
108 case BSIM4_MOD_TNOIMOD :
109 value->iValue = model->BSIM4tnoiMod;
110 return(OK);
111 case BSIM4_MOD_RDSMOD :
112 value->iValue = model->BSIM4rdsMod;
113 return(OK);
114 case BSIM4_MOD_RBODYMOD :
115 value->iValue = model->BSIM4rbodyMod;
116 return(OK);
117 case BSIM4_MOD_RGATEMOD :
118 value->iValue = model->BSIM4rgateMod;
119 return(OK);
120 case BSIM4_MOD_PERMOD :
121 value->iValue = model->BSIM4perMod;
122 return(OK);
123 case BSIM4_MOD_GEOMOD :
124 value->iValue = model->BSIM4geoMod;
125 return(OK);
126 case BSIM4_MOD_RGEOMOD :
127 value->iValue = model->BSIM4rgeoMod;
128 return(OK);
129 case BSIM4_MOD_MTRLMOD :
130 value->iValue = model->BSIM4mtrlMod;
131 return(OK);
132 case BSIM4_MOD_GIDLMOD : /* v4.7 New GIDL/GISL*/
133 value->iValue = model->BSIM4gidlMod;
134 return(OK);
135 case BSIM4_MOD_MTRLCOMPATMOD :
136 value->iValue = model->BSIM4mtrlCompatMod;
137 return(OK);
138 case BSIM4_MOD_IGCMOD :
139 value->iValue = model->BSIM4igcMod;
140 return(OK);
141 case BSIM4_MOD_IGBMOD :
142 value->iValue = model->BSIM4igbMod;
143 return(OK);
144 case BSIM4_MOD_TEMPMOD :
145 value->iValue = model->BSIM4tempMod;
146 return(OK);
147
148 case BSIM4_MOD_VERSION :
149 value->sValue = model->BSIM4version;
150 return(OK);
151 case BSIM4_MOD_TOXREF :
152 value->rValue = model->BSIM4toxref;
153 return(OK);
154 case BSIM4_MOD_EOT :
155 value->rValue = model->BSIM4eot;
156 return(OK);
157 case BSIM4_MOD_VDDEOT :
158 value->rValue = model->BSIM4vddeot;
159 return(OK);
160 case BSIM4_MOD_TEMPEOT :
161 value->rValue = model->BSIM4tempeot;
162 return(OK);
163 case BSIM4_MOD_LEFFEOT :
164 value->rValue = model->BSIM4leffeot;
165 return(OK);
166 case BSIM4_MOD_WEFFEOT :
167 value->rValue = model->BSIM4weffeot;
168 return(OK);
169 case BSIM4_MOD_ADOS :
170 value->rValue = model->BSIM4ados;
171 return(OK);
172 case BSIM4_MOD_BDOS :
173 value->rValue = model->BSIM4bdos;
174 return(OK);
175 case BSIM4_MOD_TOXE :
176 value->rValue = model->BSIM4toxe;
177 return(OK);
178 case BSIM4_MOD_TOXP :
179 value->rValue = model->BSIM4toxp;
180 return(OK);
181 case BSIM4_MOD_TOXM :
182 value->rValue = model->BSIM4toxm;
183 return(OK);
184 case BSIM4_MOD_DTOX :
185 value->rValue = model->BSIM4dtox;
186 return(OK);
187 case BSIM4_MOD_EPSROX :
188 value->rValue = model->BSIM4epsrox;
189 return(OK);
190 case BSIM4_MOD_CDSC :
191 value->rValue = model->BSIM4cdsc;
192 return(OK);
193 case BSIM4_MOD_CDSCB :
194 value->rValue = model->BSIM4cdscb;
195 return(OK);
196
197 case BSIM4_MOD_CDSCD :
198 value->rValue = model->BSIM4cdscd;
199 return(OK);
200
201 case BSIM4_MOD_CIT :
202 value->rValue = model->BSIM4cit;
203 return(OK);
204 case BSIM4_MOD_NFACTOR :
205 value->rValue = model->BSIM4nfactor;
206 return(OK);
207 case BSIM4_MOD_XJ:
208 value->rValue = model->BSIM4xj;
209 return(OK);
210 case BSIM4_MOD_VSAT:
211 value->rValue = model->BSIM4vsat;
212 return(OK);
213 case BSIM4_MOD_VTL:
214 value->rValue = model->BSIM4vtl;
215 return(OK);
216 case BSIM4_MOD_XN:
217 value->rValue = model->BSIM4xn;
218 return(OK);
219 case BSIM4_MOD_LC:
220 value->rValue = model->BSIM4lc;
221 return(OK);
222 case BSIM4_MOD_LAMBDA:
223 value->rValue = model->BSIM4lambda;
224 return(OK);
225 case BSIM4_MOD_AT:
226 value->rValue = model->BSIM4at;
227 return(OK);
228 case BSIM4_MOD_A0:
229 value->rValue = model->BSIM4a0;
230 return(OK);
231
232 case BSIM4_MOD_AGS:
233 value->rValue = model->BSIM4ags;
234 return(OK);
235
236 case BSIM4_MOD_A1:
237 value->rValue = model->BSIM4a1;
238 return(OK);
239 case BSIM4_MOD_A2:
240 value->rValue = model->BSIM4a2;
241 return(OK);
242 case BSIM4_MOD_KETA:
243 value->rValue = model->BSIM4keta;
244 return(OK);
245 case BSIM4_MOD_NSUB:
246 value->rValue = model->BSIM4nsub;
247 return(OK);
248 case BSIM4_MOD_PHIG:
249 value->rValue = model->BSIM4phig;
250 return(OK);
251 case BSIM4_MOD_EPSRGATE:
252 value->rValue = model->BSIM4epsrgate;
253 return(OK);
254 case BSIM4_MOD_EASUB:
255 value->rValue = model->BSIM4easub;
256 return(OK);
257 case BSIM4_MOD_EPSRSUB:
258 value->rValue = model->BSIM4epsrsub;
259 return(OK);
260 case BSIM4_MOD_NI0SUB:
261 value->rValue = model->BSIM4ni0sub;
262 return(OK);
263 case BSIM4_MOD_BG0SUB:
264 value->rValue = model->BSIM4bg0sub;
265 return(OK);
266 case BSIM4_MOD_TBGASUB:
267 value->rValue = model->BSIM4tbgasub;
268 return(OK);
269 case BSIM4_MOD_TBGBSUB:
270 value->rValue = model->BSIM4tbgbsub;
271 return(OK);
272 case BSIM4_MOD_NDEP:
273 value->rValue = model->BSIM4ndep;
274 return(OK);
275 case BSIM4_MOD_NSD:
276 value->rValue = model->BSIM4nsd;
277 return(OK);
278 case BSIM4_MOD_NGATE:
279 value->rValue = model->BSIM4ngate;
280 return(OK);
281 case BSIM4_MOD_GAMMA1:
282 value->rValue = model->BSIM4gamma1;
283 return(OK);
284 case BSIM4_MOD_GAMMA2:
285 value->rValue = model->BSIM4gamma2;
286 return(OK);
287 case BSIM4_MOD_VBX:
288 value->rValue = model->BSIM4vbx;
289 return(OK);
290 case BSIM4_MOD_VBM:
291 value->rValue = model->BSIM4vbm;
292 return(OK);
293 case BSIM4_MOD_XT:
294 value->rValue = model->BSIM4xt;
295 return(OK);
296 case BSIM4_MOD_K1:
297 value->rValue = model->BSIM4k1;
298 return(OK);
299 case BSIM4_MOD_KT1:
300 value->rValue = model->BSIM4kt1;
301 return(OK);
302 case BSIM4_MOD_KT1L:
303 value->rValue = model->BSIM4kt1l;
304 return(OK);
305 case BSIM4_MOD_KT2 :
306 value->rValue = model->BSIM4kt2;
307 return(OK);
308 case BSIM4_MOD_K2 :
309 value->rValue = model->BSIM4k2;
310 return(OK);
311 case BSIM4_MOD_K3:
312 value->rValue = model->BSIM4k3;
313 return(OK);
314 case BSIM4_MOD_K3B:
315 value->rValue = model->BSIM4k3b;
316 return(OK);
317 case BSIM4_MOD_W0:
318 value->rValue = model->BSIM4w0;
319 return(OK);
320 case BSIM4_MOD_LPE0:
321 value->rValue = model->BSIM4lpe0;
322 return(OK);
323 case BSIM4_MOD_LPEB:
324 value->rValue = model->BSIM4lpeb;
325 return(OK);
326 case BSIM4_MOD_DVTP0:
327 value->rValue = model->BSIM4dvtp0;
328 return(OK);
329 case BSIM4_MOD_DVTP1:
330 value->rValue = model->BSIM4dvtp1;
331 return(OK);
332 case BSIM4_MOD_DVTP2:
333 value->rValue = model->BSIM4dvtp2; /* New DIBL/Rout */
334 return(OK);
335 case BSIM4_MOD_DVTP3:
336 value->rValue = model->BSIM4dvtp3;
337 return(OK);
338 case BSIM4_MOD_DVTP4:
339 value->rValue = model->BSIM4dvtp4;
340 return(OK);
341 case BSIM4_MOD_DVTP5:
342 value->rValue = model->BSIM4dvtp5;
343 return(OK);
344 case BSIM4_MOD_DVT0 :
345 value->rValue = model->BSIM4dvt0;
346 return(OK);
347 case BSIM4_MOD_DVT1 :
348 value->rValue = model->BSIM4dvt1;
349 return(OK);
350 case BSIM4_MOD_DVT2 :
351 value->rValue = model->BSIM4dvt2;
352 return(OK);
353 case BSIM4_MOD_DVT0W :
354 value->rValue = model->BSIM4dvt0w;
355 return(OK);
356 case BSIM4_MOD_DVT1W :
357 value->rValue = model->BSIM4dvt1w;
358 return(OK);
359 case BSIM4_MOD_DVT2W :
360 value->rValue = model->BSIM4dvt2w;
361 return(OK);
362 case BSIM4_MOD_DROUT :
363 value->rValue = model->BSIM4drout;
364 return(OK);
365 case BSIM4_MOD_DSUB :
366 value->rValue = model->BSIM4dsub;
367 return(OK);
368 case BSIM4_MOD_VTH0:
369 value->rValue = model->BSIM4vth0;
370 return(OK);
371 case BSIM4_MOD_EU:
372 value->rValue = model->BSIM4eu;
373 return(OK);
374 case BSIM4_MOD_UCS:
375 value->rValue = model->BSIM4ucs;
376 return(OK);
377 case BSIM4_MOD_UA:
378 value->rValue = model->BSIM4ua;
379 return(OK);
380 case BSIM4_MOD_UA1:
381 value->rValue = model->BSIM4ua1;
382 return(OK);
383 case BSIM4_MOD_UB:
384 value->rValue = model->BSIM4ub;
385 return(OK);
386 case BSIM4_MOD_UB1:
387 value->rValue = model->BSIM4ub1;
388 return(OK);
389 case BSIM4_MOD_UC:
390 value->rValue = model->BSIM4uc;
391 return(OK);
392 case BSIM4_MOD_UC1:
393 value->rValue = model->BSIM4uc1;
394 return(OK);
395 case BSIM4_MOD_UD:
396 value->rValue = model->BSIM4ud;
397 return(OK);
398 case BSIM4_MOD_UD1:
399 value->rValue = model->BSIM4ud1;
400 return(OK);
401 case BSIM4_MOD_UP:
402 value->rValue = model->BSIM4up;
403 return(OK);
404 case BSIM4_MOD_LP:
405 value->rValue = model->BSIM4lp;
406 return(OK);
407 case BSIM4_MOD_U0:
408 value->rValue = model->BSIM4u0;
409 return(OK);
410 case BSIM4_MOD_UTE:
411 value->rValue = model->BSIM4ute;
412 return(OK);
413 case BSIM4_MOD_UCSTE:
414 value->rValue = model->BSIM4ucste;
415 return(OK);
416 case BSIM4_MOD_VOFF:
417 value->rValue = model->BSIM4voff;
418 return(OK);
419 case BSIM4_MOD_TVOFF:
420 value->rValue = model->BSIM4tvoff;
421 return(OK);
422 case BSIM4_MOD_TNFACTOR: /* v4.7 temp dep of leakage current */
423 value->rValue = model->BSIM4tnfactor;
424 return(OK);
425 case BSIM4_MOD_TETA0: /* v4.7 temp dep of leakage current */
426 value->rValue = model->BSIM4teta0;
427 return(OK);
428 case BSIM4_MOD_TVOFFCV: /* v4.7 temp dep of leakage current */
429 value->rValue = model->BSIM4tvoffcv;
430 return(OK);
431 case BSIM4_MOD_VFBSDOFF:
432 value->rValue = model->BSIM4vfbsdoff;
433 return(OK);
434 case BSIM4_MOD_TVFBSDOFF:
435 value->rValue = model->BSIM4tvfbsdoff;
436 return(OK);
437 case BSIM4_MOD_VOFFL:
438 value->rValue = model->BSIM4voffl;
439 return(OK);
440 case BSIM4_MOD_VOFFCVL:
441 value->rValue = model->BSIM4voffcvl;
442 return(OK);
443 case BSIM4_MOD_MINV:
444 value->rValue = model->BSIM4minv;
445 return(OK);
446 case BSIM4_MOD_MINVCV:
447 value->rValue = model->BSIM4minvcv;
448 return(OK);
449 case BSIM4_MOD_FPROUT:
450 value->rValue = model->BSIM4fprout;
451 return(OK);
452 case BSIM4_MOD_PDITS:
453 value->rValue = model->BSIM4pdits;
454 return(OK);
455 case BSIM4_MOD_PDITSD:
456 value->rValue = model->BSIM4pditsd;
457 return(OK);
458 case BSIM4_MOD_PDITSL:
459 value->rValue = model->BSIM4pditsl;
460 return(OK);
461 case BSIM4_MOD_DELTA:
462 value->rValue = model->BSIM4delta;
463 return(OK);
464 case BSIM4_MOD_RDSW:
465 value->rValue = model->BSIM4rdsw;
466 return(OK);
467 case BSIM4_MOD_RDSWMIN:
468 value->rValue = model->BSIM4rdswmin;
469 return(OK);
470 case BSIM4_MOD_RDWMIN:
471 value->rValue = model->BSIM4rdwmin;
472 return(OK);
473 case BSIM4_MOD_RSWMIN:
474 value->rValue = model->BSIM4rswmin;
475 return(OK);
476 case BSIM4_MOD_RDW:
477 value->rValue = model->BSIM4rdw;
478 return(OK);
479 case BSIM4_MOD_RSW:
480 value->rValue = model->BSIM4rsw;
481 return(OK);
482 case BSIM4_MOD_PRWG:
483 value->rValue = model->BSIM4prwg;
484 return(OK);
485 case BSIM4_MOD_PRWB:
486 value->rValue = model->BSIM4prwb;
487 return(OK);
488 case BSIM4_MOD_PRT:
489 value->rValue = model->BSIM4prt;
490 return(OK);
491 case BSIM4_MOD_ETA0:
492 value->rValue = model->BSIM4eta0;
493 return(OK);
494 case BSIM4_MOD_ETAB:
495 value->rValue = model->BSIM4etab;
496 return(OK);
497 case BSIM4_MOD_PCLM:
498 value->rValue = model->BSIM4pclm;
499 return(OK);
500 case BSIM4_MOD_PDIBL1:
501 value->rValue = model->BSIM4pdibl1;
502 return(OK);
503 case BSIM4_MOD_PDIBL2:
504 value->rValue = model->BSIM4pdibl2;
505 return(OK);
506 case BSIM4_MOD_PDIBLB:
507 value->rValue = model->BSIM4pdiblb;
508 return(OK);
509 case BSIM4_MOD_PSCBE1:
510 value->rValue = model->BSIM4pscbe1;
511 return(OK);
512 case BSIM4_MOD_PSCBE2:
513 value->rValue = model->BSIM4pscbe2;
514 return(OK);
515 case BSIM4_MOD_PVAG:
516 value->rValue = model->BSIM4pvag;
517 return(OK);
518 case BSIM4_MOD_WR:
519 value->rValue = model->BSIM4wr;
520 return(OK);
521 case BSIM4_MOD_DWG:
522 value->rValue = model->BSIM4dwg;
523 return(OK);
524 case BSIM4_MOD_DWB:
525 value->rValue = model->BSIM4dwb;
526 return(OK);
527 case BSIM4_MOD_B0:
528 value->rValue = model->BSIM4b0;
529 return(OK);
530 case BSIM4_MOD_B1:
531 value->rValue = model->BSIM4b1;
532 return(OK);
533 case BSIM4_MOD_ALPHA0:
534 value->rValue = model->BSIM4alpha0;
535 return(OK);
536 case BSIM4_MOD_ALPHA1:
537 value->rValue = model->BSIM4alpha1;
538 return(OK);
539 case BSIM4_MOD_BETA0:
540 value->rValue = model->BSIM4beta0;
541 return(OK);
542 case BSIM4_MOD_AGIDL:
543 value->rValue = model->BSIM4agidl;
544 return(OK);
545 case BSIM4_MOD_BGIDL:
546 value->rValue = model->BSIM4bgidl;
547 return(OK);
548 case BSIM4_MOD_CGIDL:
549 value->rValue = model->BSIM4cgidl;
550 return(OK);
551 case BSIM4_MOD_EGIDL:
552 value->rValue = model->BSIM4egidl;
553 return(OK);
554 case BSIM4_MOD_FGIDL: /* v4.7 New GIDL/GISL*/
555 value->rValue = model->BSIM4fgidl;
556 return(OK);
557 case BSIM4_MOD_KGIDL: /* v4.7 New GIDL/GISL*/
558 value->rValue = model->BSIM4kgidl;
559 return(OK);
560 case BSIM4_MOD_RGIDL: /* v4.7 New GIDL/GISL*/
561 value->rValue = model->BSIM4rgidl;
562 return(OK);
563 case BSIM4_MOD_AGISL:
564 value->rValue = model->BSIM4agisl;
565 return(OK);
566 case BSIM4_MOD_BGISL:
567 value->rValue = model->BSIM4bgisl;
568 return(OK);
569 case BSIM4_MOD_CGISL:
570 value->rValue = model->BSIM4cgisl;
571 return(OK);
572 case BSIM4_MOD_EGISL:
573 value->rValue = model->BSIM4egisl;
574 return(OK);
575 case BSIM4_MOD_FGISL: /* v4.7 New GIDL/GISL*/
576 value->rValue = model->BSIM4fgisl;
577 return(OK);
578 case BSIM4_MOD_KGISL: /* v4.7 New GIDL/GISL*/
579 value->rValue = model->BSIM4kgisl;
580 return(OK);
581 case BSIM4_MOD_RGISL: /* v4.7 New GIDL/GISL*/
582 value->rValue = model->BSIM4rgisl;
583 return(OK);
584 case BSIM4_MOD_AIGC:
585 value->rValue = model->BSIM4aigc;
586 return(OK);
587 case BSIM4_MOD_BIGC:
588 value->rValue = model->BSIM4bigc;
589 return(OK);
590 case BSIM4_MOD_CIGC:
591 value->rValue = model->BSIM4cigc;
592 return(OK);
593 case BSIM4_MOD_AIGSD:
594 value->rValue = model->BSIM4aigsd;
595 return(OK);
596 case BSIM4_MOD_BIGSD:
597 value->rValue = model->BSIM4bigsd;
598 return(OK);
599 case BSIM4_MOD_CIGSD:
600 value->rValue = model->BSIM4cigsd;
601 return(OK);
602 case BSIM4_MOD_AIGS:
603 value->rValue = model->BSIM4aigs;
604 return(OK);
605 case BSIM4_MOD_BIGS:
606 value->rValue = model->BSIM4bigs;
607 return(OK);
608 case BSIM4_MOD_CIGS:
609 value->rValue = model->BSIM4cigs;
610 return(OK);
611 case BSIM4_MOD_AIGD:
612 value->rValue = model->BSIM4aigd;
613 return(OK);
614 case BSIM4_MOD_BIGD:
615 value->rValue = model->BSIM4bigd;
616 return(OK);
617 case BSIM4_MOD_CIGD:
618 value->rValue = model->BSIM4cigd;
619 return(OK);
620 case BSIM4_MOD_AIGBACC:
621 value->rValue = model->BSIM4aigbacc;
622 return(OK);
623 case BSIM4_MOD_BIGBACC:
624 value->rValue = model->BSIM4bigbacc;
625 return(OK);
626 case BSIM4_MOD_CIGBACC:
627 value->rValue = model->BSIM4cigbacc;
628 return(OK);
629 case BSIM4_MOD_AIGBINV:
630 value->rValue = model->BSIM4aigbinv;
631 return(OK);
632 case BSIM4_MOD_BIGBINV:
633 value->rValue = model->BSIM4bigbinv;
634 return(OK);
635 case BSIM4_MOD_CIGBINV:
636 value->rValue = model->BSIM4cigbinv;
637 return(OK);
638 case BSIM4_MOD_NIGC:
639 value->rValue = model->BSIM4nigc;
640 return(OK);
641 case BSIM4_MOD_NIGBACC:
642 value->rValue = model->BSIM4nigbacc;
643 return(OK);
644 case BSIM4_MOD_NIGBINV:
645 value->rValue = model->BSIM4nigbinv;
646 return(OK);
647 case BSIM4_MOD_NTOX:
648 value->rValue = model->BSIM4ntox;
649 return(OK);
650 case BSIM4_MOD_EIGBINV:
651 value->rValue = model->BSIM4eigbinv;
652 return(OK);
653 case BSIM4_MOD_PIGCD:
654 value->rValue = model->BSIM4pigcd;
655 return(OK);
656 case BSIM4_MOD_POXEDGE:
657 value->rValue = model->BSIM4poxedge;
658 return(OK);
659 case BSIM4_MOD_PHIN:
660 value->rValue = model->BSIM4phin;
661 return(OK);
662 case BSIM4_MOD_XRCRG1:
663 value->rValue = model->BSIM4xrcrg1;
664 return(OK);
665 case BSIM4_MOD_XRCRG2:
666 value->rValue = model->BSIM4xrcrg2;
667 return(OK);
668 case BSIM4_MOD_TNOIA:
669 value->rValue = model->BSIM4tnoia;
670 return(OK);
671 case BSIM4_MOD_TNOIB:
672 value->rValue = model->BSIM4tnoib;
673 return(OK);
674 case BSIM4_MOD_TNOIC:
675 value->rValue = model->BSIM4tnoic;
676 return(OK);
677 case BSIM4_MOD_RNOIA:
678 value->rValue = model->BSIM4rnoia;
679 return(OK);
680 case BSIM4_MOD_RNOIB:
681 value->rValue = model->BSIM4rnoib;
682 return(OK);
683 case BSIM4_MOD_RNOIC:
684 value->rValue = model->BSIM4rnoic;
685 return(OK);
686 case BSIM4_MOD_NTNOI:
687 value->rValue = model->BSIM4ntnoi;
688 return(OK);
689 case BSIM4_MOD_IJTHDFWD:
690 value->rValue = model->BSIM4ijthdfwd;
691 return(OK);
692 case BSIM4_MOD_IJTHSFWD:
693 value->rValue = model->BSIM4ijthsfwd;
694 return(OK);
695 case BSIM4_MOD_IJTHDREV:
696 value->rValue = model->BSIM4ijthdrev;
697 return(OK);
698 case BSIM4_MOD_IJTHSREV:
699 value->rValue = model->BSIM4ijthsrev;
700 return(OK);
701 case BSIM4_MOD_XJBVD:
702 value->rValue = model->BSIM4xjbvd;
703 return(OK);
704 case BSIM4_MOD_XJBVS:
705 value->rValue = model->BSIM4xjbvs;
706 return(OK);
707 case BSIM4_MOD_BVD:
708 value->rValue = model->BSIM4bvd;
709 return(OK);
710 case BSIM4_MOD_BVS:
711 value->rValue = model->BSIM4bvs;
712 return(OK);
713 case BSIM4_MOD_VFB:
714 value->rValue = model->BSIM4vfb;
715 return(OK);
716
717 case BSIM4_MOD_JTSS:
718 value->rValue = model->BSIM4jtss;
719 return(OK);
720 case BSIM4_MOD_JTSD:
721 value->rValue = model->BSIM4jtsd;
722 return(OK);
723 case BSIM4_MOD_JTSSWS:
724 value->rValue = model->BSIM4jtssws;
725 return(OK);
726 case BSIM4_MOD_JTSSWD:
727 value->rValue = model->BSIM4jtsswd;
728 return(OK);
729 case BSIM4_MOD_JTSSWGS:
730 value->rValue = model->BSIM4jtsswgs;
731 return(OK);
732 case BSIM4_MOD_JTSSWGD:
733 value->rValue = model->BSIM4jtsswgd;
734 return(OK);
735 case BSIM4_MOD_JTWEFF:
736 value->rValue = model->BSIM4jtweff;
737 return(OK);
738 case BSIM4_MOD_NJTS:
739 value->rValue = model->BSIM4njts;
740 return(OK);
741 case BSIM4_MOD_NJTSSW:
742 value->rValue = model->BSIM4njtssw;
743 return(OK);
744 case BSIM4_MOD_NJTSSWG:
745 value->rValue = model->BSIM4njtsswg;
746 return(OK);
747 case BSIM4_MOD_NJTSD:
748 value->rValue = model->BSIM4njtsd;
749 return(OK);
750 case BSIM4_MOD_NJTSSWD:
751 value->rValue = model->BSIM4njtsswd;
752 return(OK);
753 case BSIM4_MOD_NJTSSWGD:
754 value->rValue = model->BSIM4njtsswgd;
755 return(OK);
756 case BSIM4_MOD_XTSS:
757 value->rValue = model->BSIM4xtss;
758 return(OK);
759 case BSIM4_MOD_XTSD:
760 value->rValue = model->BSIM4xtsd;
761 return(OK);
762 case BSIM4_MOD_XTSSWS:
763 value->rValue = model->BSIM4xtssws;
764 return(OK);
765 case BSIM4_MOD_XTSSWD:
766 value->rValue = model->BSIM4xtsswd;
767 return(OK);
768 case BSIM4_MOD_XTSSWGS:
769 value->rValue = model->BSIM4xtsswgs;
770 return(OK);
771 case BSIM4_MOD_XTSSWGD:
772 value->rValue = model->BSIM4xtsswgd;
773 return(OK);
774 case BSIM4_MOD_TNJTS:
775 value->rValue = model->BSIM4tnjts;
776 return(OK);
777 case BSIM4_MOD_TNJTSSW:
778 value->rValue = model->BSIM4tnjtssw;
779 return(OK);
780 case BSIM4_MOD_TNJTSSWG:
781 value->rValue = model->BSIM4tnjtsswg;
782 return(OK);
783 case BSIM4_MOD_TNJTSD:
784 value->rValue = model->BSIM4tnjtsd;
785 return(OK);
786 case BSIM4_MOD_TNJTSSWD:
787 value->rValue = model->BSIM4tnjtsswd;
788 return(OK);
789 case BSIM4_MOD_TNJTSSWGD:
790 value->rValue = model->BSIM4tnjtsswgd;
791 return(OK);
792 case BSIM4_MOD_VTSS:
793 value->rValue = model->BSIM4vtss;
794 return(OK);
795 case BSIM4_MOD_VTSD:
796 value->rValue = model->BSIM4vtsd;
797 return(OK);
798 case BSIM4_MOD_VTSSWS:
799 value->rValue = model->BSIM4vtssws;
800 return(OK);
801 case BSIM4_MOD_VTSSWD:
802 value->rValue = model->BSIM4vtsswd;
803 return(OK);
804 case BSIM4_MOD_VTSSWGS:
805 value->rValue = model->BSIM4vtsswgs;
806 return(OK);
807 case BSIM4_MOD_VTSSWGD:
808 value->rValue = model->BSIM4vtsswgd;
809 return(OK);
810
811 case BSIM4_MOD_GBMIN:
812 value->rValue = model->BSIM4gbmin;
813 return(OK);
814 case BSIM4_MOD_RBDB:
815 value->rValue = model->BSIM4rbdb;
816 return(OK);
817 case BSIM4_MOD_RBPB:
818 value->rValue = model->BSIM4rbpb;
819 return(OK);
820 case BSIM4_MOD_RBSB:
821 value->rValue = model->BSIM4rbsb;
822 return(OK);
823 case BSIM4_MOD_RBPS:
824 value->rValue = model->BSIM4rbps;
825 return(OK);
826 case BSIM4_MOD_RBPD:
827 value->rValue = model->BSIM4rbpd;
828 return(OK);
829
830 case BSIM4_MOD_RBPS0:
831 value->rValue = model->BSIM4rbps0;
832 return(OK);
833 case BSIM4_MOD_RBPSL:
834 value->rValue = model->BSIM4rbpsl;
835 return(OK);
836 case BSIM4_MOD_RBPSW:
837 value->rValue = model->BSIM4rbpsw;
838 return(OK);
839 case BSIM4_MOD_RBPSNF:
840 value->rValue = model->BSIM4rbpsnf;
841 return(OK);
842 case BSIM4_MOD_RBPD0:
843 value->rValue = model->BSIM4rbpd0;
844 return(OK);
845 case BSIM4_MOD_RBPDL:
846 value->rValue = model->BSIM4rbpdl;
847 return(OK);
848 case BSIM4_MOD_RBPDW:
849 value->rValue = model->BSIM4rbpdw;
850 return(OK);
851 case BSIM4_MOD_RBPDNF:
852 value->rValue = model->BSIM4rbpdnf;
853 return(OK);
854 case BSIM4_MOD_RBPBX0:
855 value->rValue = model->BSIM4rbpbx0;
856 return(OK);
857 case BSIM4_MOD_RBPBXL:
858 value->rValue = model->BSIM4rbpbxl;
859 return(OK);
860 case BSIM4_MOD_RBPBXW:
861 value->rValue = model->BSIM4rbpbxw;
862 return(OK);
863 case BSIM4_MOD_RBPBXNF:
864 value->rValue = model->BSIM4rbpbxnf;
865 return(OK);
866 case BSIM4_MOD_RBPBY0:
867 value->rValue = model->BSIM4rbpby0;
868 return(OK);
869 case BSIM4_MOD_RBPBYL:
870 value->rValue = model->BSIM4rbpbyl;
871 return(OK);
872 case BSIM4_MOD_RBPBYW:
873 value->rValue = model->BSIM4rbpbyw;
874 return(OK);
875 case BSIM4_MOD_RBPBYNF:
876 value->rValue = model->BSIM4rbpbynf;
877 return(OK);
878
879 case BSIM4_MOD_RBSBX0:
880 value->rValue = model->BSIM4rbsbx0;
881 return(OK);
882 case BSIM4_MOD_RBSBY0:
883 value->rValue = model->BSIM4rbsby0;
884 return(OK);
885 case BSIM4_MOD_RBDBX0:
886 value->rValue = model->BSIM4rbdbx0;
887 return(OK);
888 case BSIM4_MOD_RBDBY0:
889 value->rValue = model->BSIM4rbdby0;
890 return(OK);
891 case BSIM4_MOD_RBSDBXL:
892 value->rValue = model->BSIM4rbsdbxl;
893 return(OK);
894 case BSIM4_MOD_RBSDBXW:
895 value->rValue = model->BSIM4rbsdbxw;
896 return(OK);
897 case BSIM4_MOD_RBSDBXNF:
898 value->rValue = model->BSIM4rbsdbxnf;
899 return(OK);
900 case BSIM4_MOD_RBSDBYL:
901 value->rValue = model->BSIM4rbsdbyl;
902 return(OK);
903 case BSIM4_MOD_RBSDBYW:
904 value->rValue = model->BSIM4rbsdbyw;
905 return(OK);
906 case BSIM4_MOD_RBSDBYNF:
907 value->rValue = model->BSIM4rbsdbynf;
908 return(OK);
909
910
911 case BSIM4_MOD_CGSL:
912 value->rValue = model->BSIM4cgsl;
913 return(OK);
914 case BSIM4_MOD_CGDL:
915 value->rValue = model->BSIM4cgdl;
916 return(OK);
917 case BSIM4_MOD_CKAPPAS:
918 value->rValue = model->BSIM4ckappas;
919 return(OK);
920 case BSIM4_MOD_CKAPPAD:
921 value->rValue = model->BSIM4ckappad;
922 return(OK);
923 case BSIM4_MOD_CF:
924 value->rValue = model->BSIM4cf;
925 return(OK);
926 case BSIM4_MOD_CLC:
927 value->rValue = model->BSIM4clc;
928 return(OK);
929 case BSIM4_MOD_CLE:
930 value->rValue = model->BSIM4cle;
931 return(OK);
932 case BSIM4_MOD_DWC:
933 value->rValue = model->BSIM4dwc;
934 return(OK);
935 case BSIM4_MOD_DLC:
936 value->rValue = model->BSIM4dlc;
937 return(OK);
938 case BSIM4_MOD_XW:
939 value->rValue = model->BSIM4xw;
940 return(OK);
941 case BSIM4_MOD_XL:
942 value->rValue = model->BSIM4xl;
943 return(OK);
944 case BSIM4_MOD_DLCIG:
945 value->rValue = model->BSIM4dlcig;
946 return(OK);
947 case BSIM4_MOD_DLCIGD:
948 value->rValue = model->BSIM4dlcigd;
949 return(OK);
950 case BSIM4_MOD_DWJ:
951 value->rValue = model->BSIM4dwj;
952 return(OK);
953 case BSIM4_MOD_VFBCV:
954 value->rValue = model->BSIM4vfbcv;
955 return(OK);
956 case BSIM4_MOD_ACDE:
957 value->rValue = model->BSIM4acde;
958 return(OK);
959 case BSIM4_MOD_MOIN:
960 value->rValue = model->BSIM4moin;
961 return(OK);
962 case BSIM4_MOD_NOFF:
963 value->rValue = model->BSIM4noff;
964 return(OK);
965 case BSIM4_MOD_VOFFCV:
966 value->rValue = model->BSIM4voffcv;
967 return(OK);
968 case BSIM4_MOD_DMCG:
969 value->rValue = model->BSIM4dmcg;
970 return(OK);
971 case BSIM4_MOD_DMCI:
972 value->rValue = model->BSIM4dmci;
973 return(OK);
974 case BSIM4_MOD_DMDG:
975 value->rValue = model->BSIM4dmdg;
976 return(OK);
977 case BSIM4_MOD_DMCGT:
978 value->rValue = model->BSIM4dmcgt;
979 return(OK);
980 case BSIM4_MOD_XGW:
981 value->rValue = model->BSIM4xgw;
982 return(OK);
983 case BSIM4_MOD_XGL:
984 value->rValue = model->BSIM4xgl;
985 return(OK);
986 case BSIM4_MOD_RSHG:
987 value->rValue = model->BSIM4rshg;
988 return(OK);
989 case BSIM4_MOD_NGCON:
990 value->rValue = model->BSIM4ngcon;
991 return(OK);
992 case BSIM4_MOD_TCJ:
993 value->rValue = model->BSIM4tcj;
994 return(OK);
995 case BSIM4_MOD_TPB:
996 value->rValue = model->BSIM4tpb;
997 return(OK);
998 case BSIM4_MOD_TCJSW:
999 value->rValue = model->BSIM4tcjsw;
1000 return(OK);
1001 case BSIM4_MOD_TPBSW:
1002 value->rValue = model->BSIM4tpbsw;
1003 return(OK);
1004 case BSIM4_MOD_TCJSWG:
1005 value->rValue = model->BSIM4tcjswg;
1006 return(OK);
1007 case BSIM4_MOD_TPBSWG:
1008 value->rValue = model->BSIM4tpbswg;
1009 return(OK);
1010
1011 /* Length dependence */
1012 case BSIM4_MOD_LCDSC :
1013 value->rValue = model->BSIM4lcdsc;
1014 return(OK);
1015 case BSIM4_MOD_LCDSCB :
1016 value->rValue = model->BSIM4lcdscb;
1017 return(OK);
1018 case BSIM4_MOD_LCDSCD :
1019 value->rValue = model->BSIM4lcdscd;
1020 return(OK);
1021 case BSIM4_MOD_LCIT :
1022 value->rValue = model->BSIM4lcit;
1023 return(OK);
1024 case BSIM4_MOD_LNFACTOR :
1025 value->rValue = model->BSIM4lnfactor;
1026 return(OK);
1027 case BSIM4_MOD_LXJ:
1028 value->rValue = model->BSIM4lxj;
1029 return(OK);
1030 case BSIM4_MOD_LVSAT:
1031 value->rValue = model->BSIM4lvsat;
1032 return(OK);
1033 case BSIM4_MOD_LAT:
1034 value->rValue = model->BSIM4lat;
1035 return(OK);
1036 case BSIM4_MOD_LA0:
1037 value->rValue = model->BSIM4la0;
1038 return(OK);
1039 case BSIM4_MOD_LAGS:
1040 value->rValue = model->BSIM4lags;
1041 return(OK);
1042 case BSIM4_MOD_LA1:
1043 value->rValue = model->BSIM4la1;
1044 return(OK);
1045 case BSIM4_MOD_LA2:
1046 value->rValue = model->BSIM4la2;
1047 return(OK);
1048 case BSIM4_MOD_LKETA:
1049 value->rValue = model->BSIM4lketa;
1050 return(OK);
1051 case BSIM4_MOD_LNSUB:
1052 value->rValue = model->BSIM4lnsub;
1053 return(OK);
1054 case BSIM4_MOD_LNDEP:
1055 value->rValue = model->BSIM4lndep;
1056 return(OK);
1057 case BSIM4_MOD_LNSD:
1058 value->rValue = model->BSIM4lnsd;
1059 return(OK);
1060 case BSIM4_MOD_LNGATE:
1061 value->rValue = model->BSIM4lngate;
1062 return(OK);
1063 case BSIM4_MOD_LGAMMA1:
1064 value->rValue = model->BSIM4lgamma1;
1065 return(OK);
1066 case BSIM4_MOD_LGAMMA2:
1067 value->rValue = model->BSIM4lgamma2;
1068 return(OK);
1069 case BSIM4_MOD_LVBX:
1070 value->rValue = model->BSIM4lvbx;
1071 return(OK);
1072 case BSIM4_MOD_LVBM:
1073 value->rValue = model->BSIM4lvbm;
1074 return(OK);
1075 case BSIM4_MOD_LXT:
1076 value->rValue = model->BSIM4lxt;
1077 return(OK);
1078 case BSIM4_MOD_LK1:
1079 value->rValue = model->BSIM4lk1;
1080 return(OK);
1081 case BSIM4_MOD_LKT1:
1082 value->rValue = model->BSIM4lkt1;
1083 return(OK);
1084 case BSIM4_MOD_LKT1L:
1085 value->rValue = model->BSIM4lkt1l;
1086 return(OK);
1087 case BSIM4_MOD_LKT2 :
1088 value->rValue = model->BSIM4lkt2;
1089 return(OK);
1090 case BSIM4_MOD_LK2 :
1091 value->rValue = model->BSIM4lk2;
1092 return(OK);
1093 case BSIM4_MOD_LK3:
1094 value->rValue = model->BSIM4lk3;
1095 return(OK);
1096 case BSIM4_MOD_LK3B:
1097 value->rValue = model->BSIM4lk3b;
1098 return(OK);
1099 case BSIM4_MOD_LW0:
1100 value->rValue = model->BSIM4lw0;
1101 return(OK);
1102 case BSIM4_MOD_LLPE0:
1103 value->rValue = model->BSIM4llpe0;
1104 return(OK);
1105 case BSIM4_MOD_LLPEB:
1106 value->rValue = model->BSIM4llpeb;
1107 return(OK);
1108 case BSIM4_MOD_LDVTP0:
1109 value->rValue = model->BSIM4ldvtp0;
1110 return(OK);
1111 case BSIM4_MOD_LDVTP1:
1112 value->rValue = model->BSIM4ldvtp1;
1113 return(OK);
1114 case BSIM4_MOD_LDVTP2:
1115 value->rValue = model->BSIM4ldvtp2; /* New DIBL/Rout */
1116 return(OK);
1117 case BSIM4_MOD_LDVTP3:
1118 value->rValue = model->BSIM4ldvtp3;
1119 return(OK);
1120 case BSIM4_MOD_LDVTP4:
1121 value->rValue = model->BSIM4ldvtp4;
1122 return(OK);
1123 case BSIM4_MOD_LDVTP5:
1124 value->rValue = model->BSIM4ldvtp5;
1125 return(OK);
1126 case BSIM4_MOD_LDVT0:
1127 value->rValue = model->BSIM4ldvt0;
1128 return(OK);
1129 case BSIM4_MOD_LDVT1 :
1130 value->rValue = model->BSIM4ldvt1;
1131 return(OK);
1132 case BSIM4_MOD_LDVT2 :
1133 value->rValue = model->BSIM4ldvt2;
1134 return(OK);
1135 case BSIM4_MOD_LDVT0W :
1136 value->rValue = model->BSIM4ldvt0w;
1137 return(OK);
1138 case BSIM4_MOD_LDVT1W :
1139 value->rValue = model->BSIM4ldvt1w;
1140 return(OK);
1141 case BSIM4_MOD_LDVT2W :
1142 value->rValue = model->BSIM4ldvt2w;
1143 return(OK);
1144 case BSIM4_MOD_LDROUT :
1145 value->rValue = model->BSIM4ldrout;
1146 return(OK);
1147 case BSIM4_MOD_LDSUB :
1148 value->rValue = model->BSIM4ldsub;
1149 return(OK);
1150 case BSIM4_MOD_LVTH0:
1151 value->rValue = model->BSIM4lvth0;
1152 return(OK);
1153 case BSIM4_MOD_LUA:
1154 value->rValue = model->BSIM4lua;
1155 return(OK);
1156 case BSIM4_MOD_LUA1:
1157 value->rValue = model->BSIM4lua1;
1158 return(OK);
1159 case BSIM4_MOD_LUB:
1160 value->rValue = model->BSIM4lub;
1161 return(OK);
1162 case BSIM4_MOD_LUB1:
1163 value->rValue = model->BSIM4lub1;
1164 return(OK);
1165 case BSIM4_MOD_LUC:
1166 value->rValue = model->BSIM4luc;
1167 return(OK);
1168 case BSIM4_MOD_LUC1:
1169 value->rValue = model->BSIM4luc1;
1170 return(OK);
1171 case BSIM4_MOD_LUD:
1172 value->rValue = model->BSIM4lud;
1173 return(OK);
1174 case BSIM4_MOD_LUD1:
1175 value->rValue = model->BSIM4lud1;
1176 return(OK);
1177 case BSIM4_MOD_LUP:
1178 value->rValue = model->BSIM4lup;
1179 return(OK);
1180 case BSIM4_MOD_LLP:
1181 value->rValue = model->BSIM4llp;
1182 return(OK);
1183 case BSIM4_MOD_LU0:
1184 value->rValue = model->BSIM4lu0;
1185 return(OK);
1186 case BSIM4_MOD_LUTE:
1187 value->rValue = model->BSIM4lute;
1188 return(OK);
1189 case BSIM4_MOD_LUCSTE:
1190 value->rValue = model->BSIM4lucste;
1191 return(OK);
1192 case BSIM4_MOD_LVOFF:
1193 value->rValue = model->BSIM4lvoff;
1194 return(OK);
1195 case BSIM4_MOD_LTVOFF:
1196 value->rValue = model->BSIM4ltvoff;
1197 return(OK);
1198 case BSIM4_MOD_LTNFACTOR: /* v4.7 temp dep of leakage current */
1199 value->rValue = model->BSIM4ltnfactor;
1200 return(OK);
1201 case BSIM4_MOD_LTETA0: /* v4.7 temp dep of leakage current */
1202 value->rValue = model->BSIM4lteta0;
1203 return(OK);
1204 case BSIM4_MOD_LTVOFFCV: /* v4.7 temp dep of leakage current */
1205 value->rValue = model->BSIM4ltvoffcv;
1206 return(OK);
1207 case BSIM4_MOD_LMINV:
1208 value->rValue = model->BSIM4lminv;
1209 return(OK);
1210 case BSIM4_MOD_LMINVCV:
1211 value->rValue = model->BSIM4lminvcv;
1212 return(OK);
1213 case BSIM4_MOD_LFPROUT:
1214 value->rValue = model->BSIM4lfprout;
1215 return(OK);
1216 case BSIM4_MOD_LPDITS:
1217 value->rValue = model->BSIM4lpdits;
1218 return(OK);
1219 case BSIM4_MOD_LPDITSD:
1220 value->rValue = model->BSIM4lpditsd;
1221 return(OK);
1222 case BSIM4_MOD_LDELTA:
1223 value->rValue = model->BSIM4ldelta;
1224 return(OK);
1225 case BSIM4_MOD_LRDSW:
1226 value->rValue = model->BSIM4lrdsw;
1227 return(OK);
1228 case BSIM4_MOD_LRDW:
1229 value->rValue = model->BSIM4lrdw;
1230 return(OK);
1231 case BSIM4_MOD_LRSW:
1232 value->rValue = model->BSIM4lrsw;
1233 return(OK);
1234 case BSIM4_MOD_LPRWB:
1235 value->rValue = model->BSIM4lprwb;
1236 return(OK);
1237 case BSIM4_MOD_LPRWG:
1238 value->rValue = model->BSIM4lprwg;
1239 return(OK);
1240 case BSIM4_MOD_LPRT:
1241 value->rValue = model->BSIM4lprt;
1242 return(OK);
1243 case BSIM4_MOD_LETA0:
1244 value->rValue = model->BSIM4leta0;
1245 return(OK);
1246 case BSIM4_MOD_LETAB:
1247 value->rValue = model->BSIM4letab;
1248 return(OK);
1249 case BSIM4_MOD_LPCLM:
1250 value->rValue = model->BSIM4lpclm;
1251 return(OK);
1252 case BSIM4_MOD_LPDIBL1:
1253 value->rValue = model->BSIM4lpdibl1;
1254 return(OK);
1255 case BSIM4_MOD_LPDIBL2:
1256 value->rValue = model->BSIM4lpdibl2;
1257 return(OK);
1258 case BSIM4_MOD_LPDIBLB:
1259 value->rValue = model->BSIM4lpdiblb;
1260 return(OK);
1261 case BSIM4_MOD_LPSCBE1:
1262 value->rValue = model->BSIM4lpscbe1;
1263 return(OK);
1264 case BSIM4_MOD_LPSCBE2:
1265 value->rValue = model->BSIM4lpscbe2;
1266 return(OK);
1267 case BSIM4_MOD_LPVAG:
1268 value->rValue = model->BSIM4lpvag;
1269 return(OK);
1270 case BSIM4_MOD_LWR:
1271 value->rValue = model->BSIM4lwr;
1272 return(OK);
1273 case BSIM4_MOD_LDWG:
1274 value->rValue = model->BSIM4ldwg;
1275 return(OK);
1276 case BSIM4_MOD_LDWB:
1277 value->rValue = model->BSIM4ldwb;
1278 return(OK);
1279 case BSIM4_MOD_LB0:
1280 value->rValue = model->BSIM4lb0;
1281 return(OK);
1282 case BSIM4_MOD_LB1:
1283 value->rValue = model->BSIM4lb1;
1284 return(OK);
1285 case BSIM4_MOD_LALPHA0:
1286 value->rValue = model->BSIM4lalpha0;
1287 return(OK);
1288 case BSIM4_MOD_LALPHA1:
1289 value->rValue = model->BSIM4lalpha1;
1290 return(OK);
1291 case BSIM4_MOD_LBETA0:
1292 value->rValue = model->BSIM4lbeta0;
1293 return(OK);
1294 case BSIM4_MOD_LAGIDL:
1295 value->rValue = model->BSIM4lagidl;
1296 return(OK);
1297 case BSIM4_MOD_LBGIDL:
1298 value->rValue = model->BSIM4lbgidl;
1299 return(OK);
1300 case BSIM4_MOD_LCGIDL:
1301 value->rValue = model->BSIM4lcgidl;
1302 return(OK);
1303 case BSIM4_MOD_LEGIDL:
1304 value->rValue = model->BSIM4legidl;
1305 return(OK);
1306 case BSIM4_MOD_LFGIDL: /* v4.7 New GIDL/GISL*/
1307 value->rValue = model->BSIM4lfgidl;
1308 return(OK);
1309 case BSIM4_MOD_LKGIDL: /* v4.7 New GIDL/GISL*/
1310 value->rValue = model->BSIM4lkgidl;
1311 return(OK);
1312 case BSIM4_MOD_LRGIDL: /* v4.7 New GIDL/GISL*/
1313 value->rValue = model->BSIM4lrgidl;
1314 return(OK);
1315 case BSIM4_MOD_LAGISL:
1316 value->rValue = model->BSIM4lagisl;
1317 return(OK);
1318 case BSIM4_MOD_LBGISL:
1319 value->rValue = model->BSIM4lbgisl;
1320 return(OK);
1321 case BSIM4_MOD_LCGISL:
1322 value->rValue = model->BSIM4lcgisl;
1323 return(OK);
1324 case BSIM4_MOD_LEGISL:
1325 value->rValue = model->BSIM4legisl;
1326 return(OK);
1327 case BSIM4_MOD_LFGISL: /* v4.7 New GIDL/GISL*/
1328 value->rValue = model->BSIM4lfgisl;
1329 return(OK);
1330 case BSIM4_MOD_LKGISL: /* v4.7 New GIDL/GISL*/
1331 value->rValue = model->BSIM4lkgisl;
1332 return(OK);
1333 case BSIM4_MOD_LRGISL: /* v4.7 New GIDL/GISL*/
1334 value->rValue = model->BSIM4lrgisl;
1335 return(OK);
1336 case BSIM4_MOD_LAIGC:
1337 value->rValue = model->BSIM4laigc;
1338 return(OK);
1339 case BSIM4_MOD_LBIGC:
1340 value->rValue = model->BSIM4lbigc;
1341 return(OK);
1342 case BSIM4_MOD_LCIGC:
1343 value->rValue = model->BSIM4lcigc;
1344 return(OK);
1345 case BSIM4_MOD_LAIGSD:
1346 value->rValue = model->BSIM4laigsd;
1347 return(OK);
1348 case BSIM4_MOD_LBIGSD:
1349 value->rValue = model->BSIM4lbigsd;
1350 return(OK);
1351 case BSIM4_MOD_LCIGSD:
1352 value->rValue = model->BSIM4lcigsd;
1353 return(OK);
1354 case BSIM4_MOD_LAIGS:
1355 value->rValue = model->BSIM4laigs;
1356 return(OK);
1357 case BSIM4_MOD_LBIGS:
1358 value->rValue = model->BSIM4lbigs;
1359 return(OK);
1360 case BSIM4_MOD_LCIGS:
1361 value->rValue = model->BSIM4lcigs;
1362 return(OK);
1363 case BSIM4_MOD_LAIGD:
1364 value->rValue = model->BSIM4laigd;
1365 return(OK);
1366 case BSIM4_MOD_LBIGD:
1367 value->rValue = model->BSIM4lbigd;
1368 return(OK);
1369 case BSIM4_MOD_LCIGD:
1370 value->rValue = model->BSIM4lcigd;
1371 return(OK);
1372 case BSIM4_MOD_LAIGBACC:
1373 value->rValue = model->BSIM4laigbacc;
1374 return(OK);
1375 case BSIM4_MOD_LBIGBACC:
1376 value->rValue = model->BSIM4lbigbacc;
1377 return(OK);
1378 case BSIM4_MOD_LCIGBACC:
1379 value->rValue = model->BSIM4lcigbacc;
1380 return(OK);
1381 case BSIM4_MOD_LAIGBINV:
1382 value->rValue = model->BSIM4laigbinv;
1383 return(OK);
1384 case BSIM4_MOD_LBIGBINV:
1385 value->rValue = model->BSIM4lbigbinv;
1386 return(OK);
1387 case BSIM4_MOD_LCIGBINV:
1388 value->rValue = model->BSIM4lcigbinv;
1389 return(OK);
1390 case BSIM4_MOD_LNIGC:
1391 value->rValue = model->BSIM4lnigc;
1392 return(OK);
1393 case BSIM4_MOD_LNIGBACC:
1394 value->rValue = model->BSIM4lnigbacc;
1395 return(OK);
1396 case BSIM4_MOD_LNIGBINV:
1397 value->rValue = model->BSIM4lnigbinv;
1398 return(OK);
1399 case BSIM4_MOD_LNTOX:
1400 value->rValue = model->BSIM4lntox;
1401 return(OK);
1402 case BSIM4_MOD_LEIGBINV:
1403 value->rValue = model->BSIM4leigbinv;
1404 return(OK);
1405 case BSIM4_MOD_LPIGCD:
1406 value->rValue = model->BSIM4lpigcd;
1407 return(OK);
1408 case BSIM4_MOD_LPOXEDGE:
1409 value->rValue = model->BSIM4lpoxedge;
1410 return(OK);
1411 case BSIM4_MOD_LPHIN:
1412 value->rValue = model->BSIM4lphin;
1413 return(OK);
1414 case BSIM4_MOD_LXRCRG1:
1415 value->rValue = model->BSIM4lxrcrg1;
1416 return(OK);
1417 case BSIM4_MOD_LXRCRG2:
1418 value->rValue = model->BSIM4lxrcrg2;
1419 return(OK);
1420 case BSIM4_MOD_LEU:
1421 value->rValue = model->BSIM4leu;
1422 return(OK);
1423 case BSIM4_MOD_LUCS:
1424 value->rValue = model->BSIM4lucs;
1425 return(OK);
1426 case BSIM4_MOD_LVFB:
1427 value->rValue = model->BSIM4lvfb;
1428 return(OK);
1429
1430 case BSIM4_MOD_LCGSL:
1431 value->rValue = model->BSIM4lcgsl;
1432 return(OK);
1433 case BSIM4_MOD_LCGDL:
1434 value->rValue = model->BSIM4lcgdl;
1435 return(OK);
1436 case BSIM4_MOD_LCKAPPAS:
1437 value->rValue = model->BSIM4lckappas;
1438 return(OK);
1439 case BSIM4_MOD_LCKAPPAD:
1440 value->rValue = model->BSIM4lckappad;
1441 return(OK);
1442 case BSIM4_MOD_LCF:
1443 value->rValue = model->BSIM4lcf;
1444 return(OK);
1445 case BSIM4_MOD_LCLC:
1446 value->rValue = model->BSIM4lclc;
1447 return(OK);
1448 case BSIM4_MOD_LCLE:
1449 value->rValue = model->BSIM4lcle;
1450 return(OK);
1451 case BSIM4_MOD_LVFBCV:
1452 value->rValue = model->BSIM4lvfbcv;
1453 return(OK);
1454 case BSIM4_MOD_LACDE:
1455 value->rValue = model->BSIM4lacde;
1456 return(OK);
1457 case BSIM4_MOD_LMOIN:
1458 value->rValue = model->BSIM4lmoin;
1459 return(OK);
1460 case BSIM4_MOD_LNOFF:
1461 value->rValue = model->BSIM4lnoff;
1462 return(OK);
1463 case BSIM4_MOD_LVOFFCV:
1464 value->rValue = model->BSIM4lvoffcv;
1465 return(OK);
1466 case BSIM4_MOD_LVFBSDOFF:
1467 value->rValue = model->BSIM4lvfbsdoff;
1468 return(OK);
1469 case BSIM4_MOD_LTVFBSDOFF:
1470 value->rValue = model->BSIM4ltvfbsdoff;
1471 return(OK);
1472
1473 case BSIM4_MOD_LLAMBDA:
1474 value->rValue = model->BSIM4llambda;
1475 return(OK);
1476 case BSIM4_MOD_LVTL:
1477 value->rValue = model->BSIM4lvtl;
1478 return(OK);
1479 case BSIM4_MOD_LXN:
1480 value->rValue = model->BSIM4lxn;
1481 return(OK);
1482
1483 /* Width dependence */
1484 case BSIM4_MOD_WCDSC :
1485 value->rValue = model->BSIM4wcdsc;
1486 return(OK);
1487 case BSIM4_MOD_WCDSCB :
1488 value->rValue = model->BSIM4wcdscb;
1489 return(OK);
1490 case BSIM4_MOD_WCDSCD :
1491 value->rValue = model->BSIM4wcdscd;
1492 return(OK);
1493 case BSIM4_MOD_WCIT :
1494 value->rValue = model->BSIM4wcit;
1495 return(OK);
1496 case BSIM4_MOD_WNFACTOR :
1497 value->rValue = model->BSIM4wnfactor;
1498 return(OK);
1499 case BSIM4_MOD_WXJ:
1500 value->rValue = model->BSIM4wxj;
1501 return(OK);
1502 case BSIM4_MOD_WVSAT:
1503 value->rValue = model->BSIM4wvsat;
1504 return(OK);
1505 case BSIM4_MOD_WAT:
1506 value->rValue = model->BSIM4wat;
1507 return(OK);
1508 case BSIM4_MOD_WA0:
1509 value->rValue = model->BSIM4wa0;
1510 return(OK);
1511 case BSIM4_MOD_WAGS:
1512 value->rValue = model->BSIM4wags;
1513 return(OK);
1514 case BSIM4_MOD_WA1:
1515 value->rValue = model->BSIM4wa1;
1516 return(OK);
1517 case BSIM4_MOD_WA2:
1518 value->rValue = model->BSIM4wa2;
1519 return(OK);
1520 case BSIM4_MOD_WKETA:
1521 value->rValue = model->BSIM4wketa;
1522 return(OK);
1523 case BSIM4_MOD_WNSUB:
1524 value->rValue = model->BSIM4wnsub;
1525 return(OK);
1526 case BSIM4_MOD_WNDEP:
1527 value->rValue = model->BSIM4wndep;
1528 return(OK);
1529 case BSIM4_MOD_WNSD:
1530 value->rValue = model->BSIM4wnsd;
1531 return(OK);
1532 case BSIM4_MOD_WNGATE:
1533 value->rValue = model->BSIM4wngate;
1534 return(OK);
1535 case BSIM4_MOD_WGAMMA1:
1536 value->rValue = model->BSIM4wgamma1;
1537 return(OK);
1538 case BSIM4_MOD_WGAMMA2:
1539 value->rValue = model->BSIM4wgamma2;
1540 return(OK);
1541 case BSIM4_MOD_WVBX:
1542 value->rValue = model->BSIM4wvbx;
1543 return(OK);
1544 case BSIM4_MOD_WVBM:
1545 value->rValue = model->BSIM4wvbm;
1546 return(OK);
1547 case BSIM4_MOD_WXT:
1548 value->rValue = model->BSIM4wxt;
1549 return(OK);
1550 case BSIM4_MOD_WK1:
1551 value->rValue = model->BSIM4wk1;
1552 return(OK);
1553 case BSIM4_MOD_WKT1:
1554 value->rValue = model->BSIM4wkt1;
1555 return(OK);
1556 case BSIM4_MOD_WKT1L:
1557 value->rValue = model->BSIM4wkt1l;
1558 return(OK);
1559 case BSIM4_MOD_WKT2 :
1560 value->rValue = model->BSIM4wkt2;
1561 return(OK);
1562 case BSIM4_MOD_WK2 :
1563 value->rValue = model->BSIM4wk2;
1564 return(OK);
1565 case BSIM4_MOD_WK3:
1566 value->rValue = model->BSIM4wk3;
1567 return(OK);
1568 case BSIM4_MOD_WK3B:
1569 value->rValue = model->BSIM4wk3b;
1570 return(OK);
1571 case BSIM4_MOD_WW0:
1572 value->rValue = model->BSIM4ww0;
1573 return(OK);
1574 case BSIM4_MOD_WLPE0:
1575 value->rValue = model->BSIM4wlpe0;
1576 return(OK);
1577 case BSIM4_MOD_WDVTP0:
1578 value->rValue = model->BSIM4wdvtp0;
1579 return(OK);
1580 case BSIM4_MOD_WDVTP1:
1581 value->rValue = model->BSIM4wdvtp1;
1582 return(OK);
1583 case BSIM4_MOD_WDVTP2:
1584 value->rValue = model->BSIM4wdvtp2; /* New DIBL/Rout */
1585 return(OK);
1586 case BSIM4_MOD_WDVTP3:
1587 value->rValue = model->BSIM4wdvtp3;
1588 return(OK);
1589 case BSIM4_MOD_WDVTP4:
1590 value->rValue = model->BSIM4wdvtp4;
1591 return(OK);
1592 case BSIM4_MOD_WDVTP5:
1593 value->rValue = model->BSIM4wdvtp5;
1594 return(OK);
1595 case BSIM4_MOD_WLPEB:
1596 value->rValue = model->BSIM4wlpeb;
1597 return(OK);
1598 case BSIM4_MOD_WDVT0:
1599 value->rValue = model->BSIM4wdvt0;
1600 return(OK);
1601 case BSIM4_MOD_WDVT1 :
1602 value->rValue = model->BSIM4wdvt1;
1603 return(OK);
1604 case BSIM4_MOD_WDVT2 :
1605 value->rValue = model->BSIM4wdvt2;
1606 return(OK);
1607 case BSIM4_MOD_WDVT0W :
1608 value->rValue = model->BSIM4wdvt0w;
1609 return(OK);
1610 case BSIM4_MOD_WDVT1W :
1611 value->rValue = model->BSIM4wdvt1w;
1612 return(OK);
1613 case BSIM4_MOD_WDVT2W :
1614 value->rValue = model->BSIM4wdvt2w;
1615 return(OK);
1616 case BSIM4_MOD_WDROUT :
1617 value->rValue = model->BSIM4wdrout;
1618 return(OK);
1619 case BSIM4_MOD_WDSUB :
1620 value->rValue = model->BSIM4wdsub;
1621 return(OK);
1622 case BSIM4_MOD_WVTH0:
1623 value->rValue = model->BSIM4wvth0;
1624 return(OK);
1625 case BSIM4_MOD_WUA:
1626 value->rValue = model->BSIM4wua;
1627 return(OK);
1628 case BSIM4_MOD_WUA1:
1629 value->rValue = model->BSIM4wua1;
1630 return(OK);
1631 case BSIM4_MOD_WUB:
1632 value->rValue = model->BSIM4wub;
1633 return(OK);
1634 case BSIM4_MOD_WUB1:
1635 value->rValue = model->BSIM4wub1;
1636 return(OK);
1637 case BSIM4_MOD_WUC:
1638 value->rValue = model->BSIM4wuc;
1639 return(OK);
1640 case BSIM4_MOD_WUC1:
1641 value->rValue = model->BSIM4wuc1;
1642 return(OK);
1643 case BSIM4_MOD_WUD:
1644 value->rValue = model->BSIM4wud;
1645 return(OK);
1646 case BSIM4_MOD_WUD1:
1647 value->rValue = model->BSIM4wud1;
1648 return(OK);
1649 case BSIM4_MOD_WUP:
1650 value->rValue = model->BSIM4wup;
1651 return(OK);
1652 case BSIM4_MOD_WLP:
1653 value->rValue = model->BSIM4wlp;
1654 return(OK);
1655 case BSIM4_MOD_WU0:
1656 value->rValue = model->BSIM4wu0;
1657 return(OK);
1658 case BSIM4_MOD_WUTE:
1659 value->rValue = model->BSIM4wute;
1660 return(OK);
1661 case BSIM4_MOD_WUCSTE:
1662 value->rValue = model->BSIM4wucste;
1663 return(OK);
1664 case BSIM4_MOD_WVOFF:
1665 value->rValue = model->BSIM4wvoff;
1666 return(OK);
1667 case BSIM4_MOD_WTVOFF:
1668 value->rValue = model->BSIM4wtvoff;
1669 return(OK);
1670 case BSIM4_MOD_WTNFACTOR: /* v4.7 temp dep of leakage current */
1671 value->rValue = model->BSIM4wtnfactor;
1672 return(OK);
1673 case BSIM4_MOD_WTETA0: /* v4.7 temp dep of leakage current */
1674 value->rValue = model->BSIM4wteta0;
1675 return(OK);
1676 case BSIM4_MOD_WTVOFFCV: /* v4.7 temp dep of leakage current */
1677 value->rValue = model->BSIM4wtvoffcv;
1678 return(OK);
1679 case BSIM4_MOD_WMINV:
1680 value->rValue = model->BSIM4wminv;
1681 return(OK);
1682 case BSIM4_MOD_WMINVCV:
1683 value->rValue = model->BSIM4wminvcv;
1684 return(OK);
1685 case BSIM4_MOD_WFPROUT:
1686 value->rValue = model->BSIM4wfprout;
1687 return(OK);
1688 case BSIM4_MOD_WPDITS:
1689 value->rValue = model->BSIM4wpdits;
1690 return(OK);
1691 case BSIM4_MOD_WPDITSD:
1692 value->rValue = model->BSIM4wpditsd;
1693 return(OK);
1694 case BSIM4_MOD_WDELTA:
1695 value->rValue = model->BSIM4wdelta;
1696 return(OK);
1697 case BSIM4_MOD_WRDSW:
1698 value->rValue = model->BSIM4wrdsw;
1699 return(OK);
1700 case BSIM4_MOD_WRDW:
1701 value->rValue = model->BSIM4wrdw;
1702 return(OK);
1703 case BSIM4_MOD_WRSW:
1704 value->rValue = model->BSIM4wrsw;
1705 return(OK);
1706 case BSIM4_MOD_WPRWB:
1707 value->rValue = model->BSIM4wprwb;
1708 return(OK);
1709 case BSIM4_MOD_WPRWG:
1710 value->rValue = model->BSIM4wprwg;
1711 return(OK);
1712 case BSIM4_MOD_WPRT:
1713 value->rValue = model->BSIM4wprt;
1714 return(OK);
1715 case BSIM4_MOD_WETA0:
1716 value->rValue = model->BSIM4weta0;
1717 return(OK);
1718 case BSIM4_MOD_WETAB:
1719 value->rValue = model->BSIM4wetab;
1720 return(OK);
1721 case BSIM4_MOD_WPCLM:
1722 value->rValue = model->BSIM4wpclm;
1723 return(OK);
1724 case BSIM4_MOD_WPDIBL1:
1725 value->rValue = model->BSIM4wpdibl1;
1726 return(OK);
1727 case BSIM4_MOD_WPDIBL2:
1728 value->rValue = model->BSIM4wpdibl2;
1729 return(OK);
1730 case BSIM4_MOD_WPDIBLB:
1731 value->rValue = model->BSIM4wpdiblb;
1732 return(OK);
1733 case BSIM4_MOD_WPSCBE1:
1734 value->rValue = model->BSIM4wpscbe1;
1735 return(OK);
1736 case BSIM4_MOD_WPSCBE2:
1737 value->rValue = model->BSIM4wpscbe2;
1738 return(OK);
1739 case BSIM4_MOD_WPVAG:
1740 value->rValue = model->BSIM4wpvag;
1741 return(OK);
1742 case BSIM4_MOD_WWR:
1743 value->rValue = model->BSIM4wwr;
1744 return(OK);
1745 case BSIM4_MOD_WDWG:
1746 value->rValue = model->BSIM4wdwg;
1747 return(OK);
1748 case BSIM4_MOD_WDWB:
1749 value->rValue = model->BSIM4wdwb;
1750 return(OK);
1751 case BSIM4_MOD_WB0:
1752 value->rValue = model->BSIM4wb0;
1753 return(OK);
1754 case BSIM4_MOD_WB1:
1755 value->rValue = model->BSIM4wb1;
1756 return(OK);
1757 case BSIM4_MOD_WALPHA0:
1758 value->rValue = model->BSIM4walpha0;
1759 return(OK);
1760 case BSIM4_MOD_WALPHA1:
1761 value->rValue = model->BSIM4walpha1;
1762 return(OK);
1763 case BSIM4_MOD_WBETA0:
1764 value->rValue = model->BSIM4wbeta0;
1765 return(OK);
1766 case BSIM4_MOD_WAGIDL:
1767 value->rValue = model->BSIM4wagidl;
1768 return(OK);
1769 case BSIM4_MOD_WBGIDL:
1770 value->rValue = model->BSIM4wbgidl;
1771 return(OK);
1772 case BSIM4_MOD_WCGIDL:
1773 value->rValue = model->BSIM4wcgidl;
1774 return(OK);
1775 case BSIM4_MOD_WEGIDL:
1776 value->rValue = model->BSIM4wegidl;
1777 return(OK);
1778 case BSIM4_MOD_WFGIDL: /* v4.7 New GIDL/GISL*/
1779 value->rValue = model->BSIM4wfgidl;
1780 return(OK);
1781 case BSIM4_MOD_WKGIDL: /* v4.7 New GIDL/GISL*/
1782 value->rValue = model->BSIM4wkgidl;
1783 return(OK);
1784 case BSIM4_MOD_WRGIDL: /* v4.7 New GIDL/GISL*/
1785 value->rValue = model->BSIM4wrgidl;
1786 return(OK);
1787 case BSIM4_MOD_WAGISL:
1788 value->rValue = model->BSIM4wagisl;
1789 return(OK);
1790 case BSIM4_MOD_WBGISL:
1791 value->rValue = model->BSIM4wbgisl;
1792 return(OK);
1793 case BSIM4_MOD_WCGISL:
1794 value->rValue = model->BSIM4wcgisl;
1795 return(OK);
1796 case BSIM4_MOD_WEGISL:
1797 value->rValue = model->BSIM4wegisl;
1798 return(OK);
1799 case BSIM4_MOD_WFGISL: /* v4.7 New GIDL/GISL*/
1800 value->rValue = model->BSIM4wfgisl;
1801 return(OK);
1802 case BSIM4_MOD_WKGISL: /* v4.7 New GIDL/GISL*/
1803 value->rValue = model->BSIM4wkgisl;
1804 return(OK);
1805 case BSIM4_MOD_WRGISL: /* v4.7 New GIDL/GISL*/
1806 value->rValue = model->BSIM4wrgisl;
1807 return(OK);
1808 case BSIM4_MOD_WAIGC:
1809 value->rValue = model->BSIM4waigc;
1810 return(OK);
1811 case BSIM4_MOD_WBIGC:
1812 value->rValue = model->BSIM4wbigc;
1813 return(OK);
1814 case BSIM4_MOD_WCIGC:
1815 value->rValue = model->BSIM4wcigc;
1816 return(OK);
1817 case BSIM4_MOD_WAIGSD:
1818 value->rValue = model->BSIM4waigsd;
1819 return(OK);
1820 case BSIM4_MOD_WBIGSD:
1821 value->rValue = model->BSIM4wbigsd;
1822 return(OK);
1823 case BSIM4_MOD_WCIGSD:
1824 value->rValue = model->BSIM4wcigsd;
1825 return(OK);
1826 case BSIM4_MOD_WAIGS:
1827 value->rValue = model->BSIM4waigs;
1828 return(OK);
1829 case BSIM4_MOD_WBIGS:
1830 value->rValue = model->BSIM4wbigs;
1831 return(OK);
1832 case BSIM4_MOD_WCIGS:
1833 value->rValue = model->BSIM4wcigs;
1834 return(OK);
1835 case BSIM4_MOD_WAIGD:
1836 value->rValue = model->BSIM4waigd;
1837 return(OK);
1838 case BSIM4_MOD_WBIGD:
1839 value->rValue = model->BSIM4wbigd;
1840 return(OK);
1841 case BSIM4_MOD_WCIGD:
1842 value->rValue = model->BSIM4wcigd;
1843 return(OK);
1844 case BSIM4_MOD_WAIGBACC:
1845 value->rValue = model->BSIM4waigbacc;
1846 return(OK);
1847 case BSIM4_MOD_WBIGBACC:
1848 value->rValue = model->BSIM4wbigbacc;
1849 return(OK);
1850 case BSIM4_MOD_WCIGBACC:
1851 value->rValue = model->BSIM4wcigbacc;
1852 return(OK);
1853 case BSIM4_MOD_WAIGBINV:
1854 value->rValue = model->BSIM4waigbinv;
1855 return(OK);
1856 case BSIM4_MOD_WBIGBINV:
1857 value->rValue = model->BSIM4wbigbinv;
1858 return(OK);
1859 case BSIM4_MOD_WCIGBINV:
1860 value->rValue = model->BSIM4wcigbinv;
1861 return(OK);
1862 case BSIM4_MOD_WNIGC:
1863 value->rValue = model->BSIM4wnigc;
1864 return(OK);
1865 case BSIM4_MOD_WNIGBACC:
1866 value->rValue = model->BSIM4wnigbacc;
1867 return(OK);
1868 case BSIM4_MOD_WNIGBINV:
1869 value->rValue = model->BSIM4wnigbinv;
1870 return(OK);
1871 case BSIM4_MOD_WNTOX:
1872 value->rValue = model->BSIM4wntox;
1873 return(OK);
1874 case BSIM4_MOD_WEIGBINV:
1875 value->rValue = model->BSIM4weigbinv;
1876 return(OK);
1877 case BSIM4_MOD_WPIGCD:
1878 value->rValue = model->BSIM4wpigcd;
1879 return(OK);
1880 case BSIM4_MOD_WPOXEDGE:
1881 value->rValue = model->BSIM4wpoxedge;
1882 return(OK);
1883 case BSIM4_MOD_WPHIN:
1884 value->rValue = model->BSIM4wphin;
1885 return(OK);
1886 case BSIM4_MOD_WXRCRG1:
1887 value->rValue = model->BSIM4wxrcrg1;
1888 return(OK);
1889 case BSIM4_MOD_WXRCRG2:
1890 value->rValue = model->BSIM4wxrcrg2;
1891 return(OK);
1892 case BSIM4_MOD_WEU:
1893 value->rValue = model->BSIM4weu;
1894 return(OK);
1895 case BSIM4_MOD_WUCS:
1896 value->rValue = model->BSIM4wucs;
1897 return(OK);
1898 case BSIM4_MOD_WVFB:
1899 value->rValue = model->BSIM4wvfb;
1900 return(OK);
1901
1902 case BSIM4_MOD_WCGSL:
1903 value->rValue = model->BSIM4wcgsl;
1904 return(OK);
1905 case BSIM4_MOD_WCGDL:
1906 value->rValue = model->BSIM4wcgdl;
1907 return(OK);
1908 case BSIM4_MOD_WCKAPPAS:
1909 value->rValue = model->BSIM4wckappas;
1910 return(OK);
1911 case BSIM4_MOD_WCKAPPAD:
1912 value->rValue = model->BSIM4wckappad;
1913 return(OK);
1914 case BSIM4_MOD_WCF:
1915 value->rValue = model->BSIM4wcf;
1916 return(OK);
1917 case BSIM4_MOD_WCLC:
1918 value->rValue = model->BSIM4wclc;
1919 return(OK);
1920 case BSIM4_MOD_WCLE:
1921 value->rValue = model->BSIM4wcle;
1922 return(OK);
1923 case BSIM4_MOD_WVFBCV:
1924 value->rValue = model->BSIM4wvfbcv;
1925 return(OK);
1926 case BSIM4_MOD_WACDE:
1927 value->rValue = model->BSIM4wacde;
1928 return(OK);
1929 case BSIM4_MOD_WMOIN:
1930 value->rValue = model->BSIM4wmoin;
1931 return(OK);
1932 case BSIM4_MOD_WNOFF:
1933 value->rValue = model->BSIM4wnoff;
1934 return(OK);
1935 case BSIM4_MOD_WVOFFCV:
1936 value->rValue = model->BSIM4wvoffcv;
1937 return(OK);
1938 case BSIM4_MOD_WVFBSDOFF:
1939 value->rValue = model->BSIM4wvfbsdoff;
1940 return(OK);
1941 case BSIM4_MOD_WTVFBSDOFF:
1942 value->rValue = model->BSIM4wtvfbsdoff;
1943 return(OK);
1944
1945 case BSIM4_MOD_WLAMBDA:
1946 value->rValue = model->BSIM4wlambda;
1947 return(OK);
1948 case BSIM4_MOD_WVTL:
1949 value->rValue = model->BSIM4wvtl;
1950 return(OK);
1951 case BSIM4_MOD_WXN:
1952 value->rValue = model->BSIM4wxn;
1953 return(OK);
1954
1955 /* Cross-term dependence */
1956 case BSIM4_MOD_PCDSC :
1957 value->rValue = model->BSIM4pcdsc;
1958 return(OK);
1959 case BSIM4_MOD_PCDSCB :
1960 value->rValue = model->BSIM4pcdscb;
1961 return(OK);
1962 case BSIM4_MOD_PCDSCD :
1963 value->rValue = model->BSIM4pcdscd;
1964 return(OK);
1965 case BSIM4_MOD_PCIT :
1966 value->rValue = model->BSIM4pcit;
1967 return(OK);
1968 case BSIM4_MOD_PNFACTOR :
1969 value->rValue = model->BSIM4pnfactor;
1970 return(OK);
1971 case BSIM4_MOD_PXJ:
1972 value->rValue = model->BSIM4pxj;
1973 return(OK);
1974 case BSIM4_MOD_PVSAT:
1975 value->rValue = model->BSIM4pvsat;
1976 return(OK);
1977 case BSIM4_MOD_PAT:
1978 value->rValue = model->BSIM4pat;
1979 return(OK);
1980 case BSIM4_MOD_PA0:
1981 value->rValue = model->BSIM4pa0;
1982 return(OK);
1983 case BSIM4_MOD_PAGS:
1984 value->rValue = model->BSIM4pags;
1985 return(OK);
1986 case BSIM4_MOD_PA1:
1987 value->rValue = model->BSIM4pa1;
1988 return(OK);
1989 case BSIM4_MOD_PA2:
1990 value->rValue = model->BSIM4pa2;
1991 return(OK);
1992 case BSIM4_MOD_PKETA:
1993 value->rValue = model->BSIM4pketa;
1994 return(OK);
1995 case BSIM4_MOD_PNSUB:
1996 value->rValue = model->BSIM4pnsub;
1997 return(OK);
1998 case BSIM4_MOD_PNDEP:
1999 value->rValue = model->BSIM4pndep;
2000 return(OK);
2001 case BSIM4_MOD_PNSD:
2002 value->rValue = model->BSIM4pnsd;
2003 return(OK);
2004 case BSIM4_MOD_PNGATE:
2005 value->rValue = model->BSIM4pngate;
2006 return(OK);
2007 case BSIM4_MOD_PGAMMA1:
2008 value->rValue = model->BSIM4pgamma1;
2009 return(OK);
2010 case BSIM4_MOD_PGAMMA2:
2011 value->rValue = model->BSIM4pgamma2;
2012 return(OK);
2013 case BSIM4_MOD_PVBX:
2014 value->rValue = model->BSIM4pvbx;
2015 return(OK);
2016 case BSIM4_MOD_PVBM:
2017 value->rValue = model->BSIM4pvbm;
2018 return(OK);
2019 case BSIM4_MOD_PXT:
2020 value->rValue = model->BSIM4pxt;
2021 return(OK);
2022 case BSIM4_MOD_PK1:
2023 value->rValue = model->BSIM4pk1;
2024 return(OK);
2025 case BSIM4_MOD_PKT1:
2026 value->rValue = model->BSIM4pkt1;
2027 return(OK);
2028 case BSIM4_MOD_PKT1L:
2029 value->rValue = model->BSIM4pkt1l;
2030 return(OK);
2031 case BSIM4_MOD_PKT2 :
2032 value->rValue = model->BSIM4pkt2;
2033 return(OK);
2034 case BSIM4_MOD_PK2 :
2035 value->rValue = model->BSIM4pk2;
2036 return(OK);
2037 case BSIM4_MOD_PK3:
2038 value->rValue = model->BSIM4pk3;
2039 return(OK);
2040 case BSIM4_MOD_PK3B:
2041 value->rValue = model->BSIM4pk3b;
2042 return(OK);
2043 case BSIM4_MOD_PW0:
2044 value->rValue = model->BSIM4pw0;
2045 return(OK);
2046 case BSIM4_MOD_PLPE0:
2047 value->rValue = model->BSIM4plpe0;
2048 return(OK);
2049 case BSIM4_MOD_PLPEB:
2050 value->rValue = model->BSIM4plpeb;
2051 return(OK);
2052 case BSIM4_MOD_PDVTP0:
2053 value->rValue = model->BSIM4pdvtp0;
2054 return(OK);
2055 case BSIM4_MOD_PDVTP1:
2056 value->rValue = model->BSIM4pdvtp1;
2057 return(OK);
2058 case BSIM4_MOD_PDVTP2:
2059 value->rValue = model->BSIM4pdvtp2; /* New DIBL/Rout */
2060 return(OK);
2061 case BSIM4_MOD_PDVTP3:
2062 value->rValue = model->BSIM4pdvtp3;
2063 return(OK);
2064 case BSIM4_MOD_PDVTP4:
2065 value->rValue = model->BSIM4pdvtp4;
2066 return(OK);
2067 case BSIM4_MOD_PDVTP5:
2068 value->rValue = model->BSIM4pdvtp5;
2069 return(OK);
2070 case BSIM4_MOD_PDVT0 :
2071 value->rValue = model->BSIM4pdvt0;
2072 return(OK);
2073 case BSIM4_MOD_PDVT1 :
2074 value->rValue = model->BSIM4pdvt1;
2075 return(OK);
2076 case BSIM4_MOD_PDVT2 :
2077 value->rValue = model->BSIM4pdvt2;
2078 return(OK);
2079 case BSIM4_MOD_PDVT0W :
2080 value->rValue = model->BSIM4pdvt0w;
2081 return(OK);
2082 case BSIM4_MOD_PDVT1W :
2083 value->rValue = model->BSIM4pdvt1w;
2084 return(OK);
2085 case BSIM4_MOD_PDVT2W :
2086 value->rValue = model->BSIM4pdvt2w;
2087 return(OK);
2088 case BSIM4_MOD_PDROUT :
2089 value->rValue = model->BSIM4pdrout;
2090 return(OK);
2091 case BSIM4_MOD_PDSUB :
2092 value->rValue = model->BSIM4pdsub;
2093 return(OK);
2094 case BSIM4_MOD_PVTH0:
2095 value->rValue = model->BSIM4pvth0;
2096 return(OK);
2097 case BSIM4_MOD_PUA:
2098 value->rValue = model->BSIM4pua;
2099 return(OK);
2100 case BSIM4_MOD_PUA1:
2101 value->rValue = model->BSIM4pua1;
2102 return(OK);
2103 case BSIM4_MOD_PUB:
2104 value->rValue = model->BSIM4pub;
2105 return(OK);
2106 case BSIM4_MOD_PUB1:
2107 value->rValue = model->BSIM4pub1;
2108 return(OK);
2109 case BSIM4_MOD_PUC:
2110 value->rValue = model->BSIM4puc;
2111 return(OK);
2112 case BSIM4_MOD_PUC1:
2113 value->rValue = model->BSIM4puc1;
2114 return(OK);
2115 case BSIM4_MOD_PUD:
2116 value->rValue = model->BSIM4pud;
2117 return(OK);
2118 case BSIM4_MOD_PUD1:
2119 value->rValue = model->BSIM4pud1;
2120 return(OK);
2121 case BSIM4_MOD_PUP:
2122 value->rValue = model->BSIM4pup;
2123 return(OK);
2124 case BSIM4_MOD_PLP:
2125 value->rValue = model->BSIM4plp;
2126 return(OK);
2127 case BSIM4_MOD_PU0:
2128 value->rValue = model->BSIM4pu0;
2129 return(OK);
2130 case BSIM4_MOD_PUTE:
2131 value->rValue = model->BSIM4pute;
2132 return(OK);
2133 case BSIM4_MOD_PUCSTE:
2134 value->rValue = model->BSIM4pucste;
2135 return(OK);
2136 case BSIM4_MOD_PVOFF:
2137 value->rValue = model->BSIM4pvoff;
2138 return(OK);
2139 case BSIM4_MOD_PTVOFF:
2140 value->rValue = model->BSIM4ptvoff;
2141 return(OK);
2142 case BSIM4_MOD_PTNFACTOR: /* v4.7 temp dep of leakage current */
2143 value->rValue = model->BSIM4ptnfactor;
2144 return(OK);
2145 case BSIM4_MOD_PTETA0: /* v4.7 temp dep of leakage current */
2146 value->rValue = model->BSIM4pteta0;
2147 return(OK);
2148 case BSIM4_MOD_PTVOFFCV: /* v4.7 temp dep of leakage current */
2149 value->rValue = model->BSIM4ptvoffcv;
2150 return(OK);
2151 case BSIM4_MOD_PMINV:
2152 value->rValue = model->BSIM4pminv;
2153 return(OK);
2154 case BSIM4_MOD_PMINVCV:
2155 value->rValue = model->BSIM4pminvcv;
2156 return(OK);
2157 case BSIM4_MOD_PFPROUT:
2158 value->rValue = model->BSIM4pfprout;
2159 return(OK);
2160 case BSIM4_MOD_PPDITS:
2161 value->rValue = model->BSIM4ppdits;
2162 return(OK);
2163 case BSIM4_MOD_PPDITSD:
2164 value->rValue = model->BSIM4ppditsd;
2165 return(OK);
2166 case BSIM4_MOD_PDELTA:
2167 value->rValue = model->BSIM4pdelta;
2168 return(OK);
2169 case BSIM4_MOD_PRDSW:
2170 value->rValue = model->BSIM4prdsw;
2171 return(OK);
2172 case BSIM4_MOD_PRDW:
2173 value->rValue = model->BSIM4prdw;
2174 return(OK);
2175 case BSIM4_MOD_PRSW:
2176 value->rValue = model->BSIM4prsw;
2177 return(OK);
2178 case BSIM4_MOD_PPRWB:
2179 value->rValue = model->BSIM4pprwb;
2180 return(OK);
2181 case BSIM4_MOD_PPRWG:
2182 value->rValue = model->BSIM4pprwg;
2183 return(OK);
2184 case BSIM4_MOD_PPRT:
2185 value->rValue = model->BSIM4pprt;
2186 return(OK);
2187 case BSIM4_MOD_PETA0:
2188 value->rValue = model->BSIM4peta0;
2189 return(OK);
2190 case BSIM4_MOD_PETAB:
2191 value->rValue = model->BSIM4petab;
2192 return(OK);
2193 case BSIM4_MOD_PPCLM:
2194 value->rValue = model->BSIM4ppclm;
2195 return(OK);
2196 case BSIM4_MOD_PPDIBL1:
2197 value->rValue = model->BSIM4ppdibl1;
2198 return(OK);
2199 case BSIM4_MOD_PPDIBL2:
2200 value->rValue = model->BSIM4ppdibl2;
2201 return(OK);
2202 case BSIM4_MOD_PPDIBLB:
2203 value->rValue = model->BSIM4ppdiblb;
2204 return(OK);
2205 case BSIM4_MOD_PPSCBE1:
2206 value->rValue = model->BSIM4ppscbe1;
2207 return(OK);
2208 case BSIM4_MOD_PPSCBE2:
2209 value->rValue = model->BSIM4ppscbe2;
2210 return(OK);
2211 case BSIM4_MOD_PPVAG:
2212 value->rValue = model->BSIM4ppvag;
2213 return(OK);
2214 case BSIM4_MOD_PWR:
2215 value->rValue = model->BSIM4pwr;
2216 return(OK);
2217 case BSIM4_MOD_PDWG:
2218 value->rValue = model->BSIM4pdwg;
2219 return(OK);
2220 case BSIM4_MOD_PDWB:
2221 value->rValue = model->BSIM4pdwb;
2222 return(OK);
2223 case BSIM4_MOD_PB0:
2224 value->rValue = model->BSIM4pb0;
2225 return(OK);
2226 case BSIM4_MOD_PB1:
2227 value->rValue = model->BSIM4pb1;
2228 return(OK);
2229 case BSIM4_MOD_PALPHA0:
2230 value->rValue = model->BSIM4palpha0;
2231 return(OK);
2232 case BSIM4_MOD_PALPHA1:
2233 value->rValue = model->BSIM4palpha1;
2234 return(OK);
2235 case BSIM4_MOD_PBETA0:
2236 value->rValue = model->BSIM4pbeta0;
2237 return(OK);
2238 case BSIM4_MOD_PAGIDL:
2239 value->rValue = model->BSIM4pagidl;
2240 return(OK);
2241 case BSIM4_MOD_PBGIDL:
2242 value->rValue = model->BSIM4pbgidl;
2243 return(OK);
2244 case BSIM4_MOD_PCGIDL:
2245 value->rValue = model->BSIM4pcgidl;
2246 return(OK);
2247 case BSIM4_MOD_PEGIDL:
2248 value->rValue = model->BSIM4pegidl;
2249 return(OK);
2250 case BSIM4_MOD_PFGIDL: /* v4.7 New GIDL/GISL*/
2251 value->rValue = model->BSIM4pfgidl;
2252 return(OK);
2253 case BSIM4_MOD_PKGIDL: /* v4.7 New GIDL/GISL*/
2254 value->rValue = model->BSIM4pkgidl;
2255 return(OK);
2256 case BSIM4_MOD_PRGIDL: /* v4.7 New GIDL/GISL*/
2257 value->rValue = model->BSIM4prgidl;
2258 return(OK);
2259 case BSIM4_MOD_PAGISL:
2260 value->rValue = model->BSIM4pagisl;
2261 return(OK);
2262 case BSIM4_MOD_PBGISL:
2263 value->rValue = model->BSIM4pbgisl;
2264 return(OK);
2265 case BSIM4_MOD_PCGISL:
2266 value->rValue = model->BSIM4pcgisl;
2267 return(OK);
2268 case BSIM4_MOD_PEGISL:
2269 value->rValue = model->BSIM4pegisl;
2270 return(OK);
2271 case BSIM4_MOD_PFGISL: /* v4.7 New GIDL/GISL*/
2272 value->rValue = model->BSIM4pfgisl;
2273 return(OK);
2274 case BSIM4_MOD_PKGISL: /* v4.7 New GIDL/GISL*/
2275 value->rValue = model->BSIM4pkgisl;
2276 return(OK);
2277 case BSIM4_MOD_PRGISL: /* v4.7 New GIDL/GISL*/
2278 value->rValue = model->BSIM4prgisl;
2279 return(OK);
2280 case BSIM4_MOD_PAIGC:
2281 value->rValue = model->BSIM4paigc;
2282 return(OK);
2283 case BSIM4_MOD_PBIGC:
2284 value->rValue = model->BSIM4pbigc;
2285 return(OK);
2286 case BSIM4_MOD_PCIGC:
2287 value->rValue = model->BSIM4pcigc;
2288 return(OK);
2289 case BSIM4_MOD_PAIGSD:
2290 value->rValue = model->BSIM4paigsd;
2291 return(OK);
2292 case BSIM4_MOD_PBIGSD:
2293 value->rValue = model->BSIM4pbigsd;
2294 return(OK);
2295 case BSIM4_MOD_PCIGSD:
2296 value->rValue = model->BSIM4pcigsd;
2297 return(OK);
2298 case BSIM4_MOD_PAIGS:
2299 value->rValue = model->BSIM4paigs;
2300 return(OK);
2301 case BSIM4_MOD_PBIGS:
2302 value->rValue = model->BSIM4pbigs;
2303 return(OK);
2304 case BSIM4_MOD_PCIGS:
2305 value->rValue = model->BSIM4pcigs;
2306 return(OK);
2307 case BSIM4_MOD_PAIGD:
2308 value->rValue = model->BSIM4paigd;
2309 return(OK);
2310 case BSIM4_MOD_PBIGD:
2311 value->rValue = model->BSIM4pbigd;
2312 return(OK);
2313 case BSIM4_MOD_PCIGD:
2314 value->rValue = model->BSIM4pcigd;
2315 return(OK);
2316 case BSIM4_MOD_PAIGBACC:
2317 value->rValue = model->BSIM4paigbacc;
2318 return(OK);
2319 case BSIM4_MOD_PBIGBACC:
2320 value->rValue = model->BSIM4pbigbacc;
2321 return(OK);
2322 case BSIM4_MOD_PCIGBACC:
2323 value->rValue = model->BSIM4pcigbacc;
2324 return(OK);
2325 case BSIM4_MOD_PAIGBINV:
2326 value->rValue = model->BSIM4paigbinv;
2327 return(OK);
2328 case BSIM4_MOD_PBIGBINV:
2329 value->rValue = model->BSIM4pbigbinv;
2330 return(OK);
2331 case BSIM4_MOD_PCIGBINV:
2332 value->rValue = model->BSIM4pcigbinv;
2333 return(OK);
2334 case BSIM4_MOD_PNIGC:
2335 value->rValue = model->BSIM4pnigc;
2336 return(OK);
2337 case BSIM4_MOD_PNIGBACC:
2338 value->rValue = model->BSIM4pnigbacc;
2339 return(OK);
2340 case BSIM4_MOD_PNIGBINV:
2341 value->rValue = model->BSIM4pnigbinv;
2342 return(OK);
2343 case BSIM4_MOD_PNTOX:
2344 value->rValue = model->BSIM4pntox;
2345 return(OK);
2346 case BSIM4_MOD_PEIGBINV:
2347 value->rValue = model->BSIM4peigbinv;
2348 return(OK);
2349 case BSIM4_MOD_PPIGCD:
2350 value->rValue = model->BSIM4ppigcd;
2351 return(OK);
2352 case BSIM4_MOD_PPOXEDGE:
2353 value->rValue = model->BSIM4ppoxedge;
2354 return(OK);
2355 case BSIM4_MOD_PPHIN:
2356 value->rValue = model->BSIM4pphin;
2357 return(OK);
2358 case BSIM4_MOD_PXRCRG1:
2359 value->rValue = model->BSIM4pxrcrg1;
2360 return(OK);
2361 case BSIM4_MOD_PXRCRG2:
2362 value->rValue = model->BSIM4pxrcrg2;
2363 return(OK);
2364 case BSIM4_MOD_PEU:
2365 value->rValue = model->BSIM4peu;
2366 return(OK);
2367 case BSIM4_MOD_PUCS:
2368 value->rValue = model->BSIM4pucs;
2369 return(OK);
2370 case BSIM4_MOD_PVFB:
2371 value->rValue = model->BSIM4pvfb;
2372 return(OK);
2373
2374 case BSIM4_MOD_PCGSL:
2375 value->rValue = model->BSIM4pcgsl;
2376 return(OK);
2377 case BSIM4_MOD_PCGDL:
2378 value->rValue = model->BSIM4pcgdl;
2379 return(OK);
2380 case BSIM4_MOD_PCKAPPAS:
2381 value->rValue = model->BSIM4pckappas;
2382 return(OK);
2383 case BSIM4_MOD_PCKAPPAD:
2384 value->rValue = model->BSIM4pckappad;
2385 return(OK);
2386 case BSIM4_MOD_PCF:
2387 value->rValue = model->BSIM4pcf;
2388 return(OK);
2389 case BSIM4_MOD_PCLC:
2390 value->rValue = model->BSIM4pclc;
2391 return(OK);
2392 case BSIM4_MOD_PCLE:
2393 value->rValue = model->BSIM4pcle;
2394 return(OK);
2395 case BSIM4_MOD_PVFBCV:
2396 value->rValue = model->BSIM4pvfbcv;
2397 return(OK);
2398 case BSIM4_MOD_PACDE:
2399 value->rValue = model->BSIM4pacde;
2400 return(OK);
2401 case BSIM4_MOD_PMOIN:
2402 value->rValue = model->BSIM4pmoin;
2403 return(OK);
2404 case BSIM4_MOD_PNOFF:
2405 value->rValue = model->BSIM4pnoff;
2406 return(OK);
2407 case BSIM4_MOD_PVOFFCV:
2408 value->rValue = model->BSIM4pvoffcv;
2409 return(OK);
2410 case BSIM4_MOD_PVFBSDOFF:
2411 value->rValue = model->BSIM4pvfbsdoff;
2412 return(OK);
2413 case BSIM4_MOD_PTVFBSDOFF:
2414 value->rValue = model->BSIM4ptvfbsdoff;
2415 return(OK);
2416
2417 case BSIM4_MOD_PLAMBDA:
2418 value->rValue = model->BSIM4plambda;
2419 return(OK);
2420 case BSIM4_MOD_PVTL:
2421 value->rValue = model->BSIM4pvtl;
2422 return(OK);
2423 case BSIM4_MOD_PXN:
2424 value->rValue = model->BSIM4pxn;
2425 return(OK);
2426
2427 case BSIM4_MOD_TNOM :
2428 value->rValue = model->BSIM4tnom;
2429 return(OK);
2430 case BSIM4_MOD_CGSO:
2431 value->rValue = model->BSIM4cgso;
2432 return(OK);
2433 case BSIM4_MOD_CGDO:
2434 value->rValue = model->BSIM4cgdo;
2435 return(OK);
2436 case BSIM4_MOD_CGBO:
2437 value->rValue = model->BSIM4cgbo;
2438 return(OK);
2439 case BSIM4_MOD_XPART:
2440 value->rValue = model->BSIM4xpart;
2441 return(OK);
2442 case BSIM4_MOD_RSH:
2443 value->rValue = model->BSIM4sheetResistance;
2444 return(OK);
2445 case BSIM4_MOD_JSS:
2446 value->rValue = model->BSIM4SjctSatCurDensity;
2447 return(OK);
2448 case BSIM4_MOD_JSWS:
2449 value->rValue = model->BSIM4SjctSidewallSatCurDensity;
2450 return(OK);
2451 case BSIM4_MOD_JSWGS:
2452 value->rValue = model->BSIM4SjctGateSidewallSatCurDensity;
2453 return(OK);
2454 case BSIM4_MOD_PBS:
2455 value->rValue = model->BSIM4SbulkJctPotential;
2456 return(OK);
2457 case BSIM4_MOD_MJS:
2458 value->rValue = model->BSIM4SbulkJctBotGradingCoeff;
2459 return(OK);
2460 case BSIM4_MOD_PBSWS:
2461 value->rValue = model->BSIM4SsidewallJctPotential;
2462 return(OK);
2463 case BSIM4_MOD_MJSWS:
2464 value->rValue = model->BSIM4SbulkJctSideGradingCoeff;
2465 return(OK);
2466 case BSIM4_MOD_CJS:
2467 value->rValue = model->BSIM4SunitAreaJctCap;
2468 return(OK);
2469 case BSIM4_MOD_CJSWS:
2470 value->rValue = model->BSIM4SunitLengthSidewallJctCap;
2471 return(OK);
2472 case BSIM4_MOD_PBSWGS:
2473 value->rValue = model->BSIM4SGatesidewallJctPotential;
2474 return(OK);
2475 case BSIM4_MOD_MJSWGS:
2476 value->rValue = model->BSIM4SbulkJctGateSideGradingCoeff;
2477 return(OK);
2478 case BSIM4_MOD_CJSWGS:
2479 value->rValue = model->BSIM4SunitLengthGateSidewallJctCap;
2480 return(OK);
2481 case BSIM4_MOD_NJS:
2482 value->rValue = model->BSIM4SjctEmissionCoeff;
2483 return(OK);
2484 case BSIM4_MOD_XTIS:
2485 value->rValue = model->BSIM4SjctTempExponent;
2486 return(OK);
2487 case BSIM4_MOD_JSD:
2488 value->rValue = model->BSIM4DjctSatCurDensity;
2489 return(OK);
2490 case BSIM4_MOD_JSWD:
2491 value->rValue = model->BSIM4DjctSidewallSatCurDensity;
2492 return(OK);
2493 case BSIM4_MOD_JSWGD:
2494 value->rValue = model->BSIM4DjctGateSidewallSatCurDensity;
2495 return(OK);
2496 case BSIM4_MOD_PBD:
2497 value->rValue = model->BSIM4DbulkJctPotential;
2498 return(OK);
2499 case BSIM4_MOD_MJD:
2500 value->rValue = model->BSIM4DbulkJctBotGradingCoeff;
2501 return(OK);
2502 case BSIM4_MOD_PBSWD:
2503 value->rValue = model->BSIM4DsidewallJctPotential;
2504 return(OK);
2505 case BSIM4_MOD_MJSWD:
2506 value->rValue = model->BSIM4DbulkJctSideGradingCoeff;
2507 return(OK);
2508 case BSIM4_MOD_CJD:
2509 value->rValue = model->BSIM4DunitAreaJctCap;
2510 return(OK);
2511 case BSIM4_MOD_CJSWD:
2512 value->rValue = model->BSIM4DunitLengthSidewallJctCap;
2513 return(OK);
2514 case BSIM4_MOD_PBSWGD:
2515 value->rValue = model->BSIM4DGatesidewallJctPotential;
2516 return(OK);
2517 case BSIM4_MOD_MJSWGD:
2518 value->rValue = model->BSIM4DbulkJctGateSideGradingCoeff;
2519 return(OK);
2520 case BSIM4_MOD_CJSWGD:
2521 value->rValue = model->BSIM4DunitLengthGateSidewallJctCap;
2522 return(OK);
2523 case BSIM4_MOD_NJD:
2524 value->rValue = model->BSIM4DjctEmissionCoeff;
2525 return(OK);
2526 case BSIM4_MOD_XTID:
2527 value->rValue = model->BSIM4DjctTempExponent;
2528 return(OK);
2529 case BSIM4_MOD_LINTNOI:
2530 value->rValue = model->BSIM4lintnoi;
2531 return(OK);
2532 case BSIM4_MOD_LINT:
2533 value->rValue = model->BSIM4Lint;
2534 return(OK);
2535 case BSIM4_MOD_LL:
2536 value->rValue = model->BSIM4Ll;
2537 return(OK);
2538 case BSIM4_MOD_LLC:
2539 value->rValue = model->BSIM4Llc;
2540 return(OK);
2541 case BSIM4_MOD_LLN:
2542 value->rValue = model->BSIM4Lln;
2543 return(OK);
2544 case BSIM4_MOD_LW:
2545 value->rValue = model->BSIM4Lw;
2546 return(OK);
2547 case BSIM4_MOD_LWC:
2548 value->rValue = model->BSIM4Lwc;
2549 return(OK);
2550 case BSIM4_MOD_LWN:
2551 value->rValue = model->BSIM4Lwn;
2552 return(OK);
2553 case BSIM4_MOD_LWL:
2554 value->rValue = model->BSIM4Lwl;
2555 return(OK);
2556 case BSIM4_MOD_LWLC:
2557 value->rValue = model->BSIM4Lwlc;
2558 return(OK);
2559 case BSIM4_MOD_LMIN:
2560 value->rValue = model->BSIM4Lmin;
2561 return(OK);
2562 case BSIM4_MOD_LMAX:
2563 value->rValue = model->BSIM4Lmax;
2564 return(OK);
2565 case BSIM4_MOD_WINT:
2566 value->rValue = model->BSIM4Wint;
2567 return(OK);
2568 case BSIM4_MOD_WL:
2569 value->rValue = model->BSIM4Wl;
2570 return(OK);
2571 case BSIM4_MOD_WLC:
2572 value->rValue = model->BSIM4Wlc;
2573 return(OK);
2574 case BSIM4_MOD_WLN:
2575 value->rValue = model->BSIM4Wln;
2576 return(OK);
2577 case BSIM4_MOD_WW:
2578 value->rValue = model->BSIM4Ww;
2579 return(OK);
2580 case BSIM4_MOD_WWC:
2581 value->rValue = model->BSIM4Wwc;
2582 return(OK);
2583 case BSIM4_MOD_WWN:
2584 value->rValue = model->BSIM4Wwn;
2585 return(OK);
2586 case BSIM4_MOD_WWL:
2587 value->rValue = model->BSIM4Wwl;
2588 return(OK);
2589 case BSIM4_MOD_WWLC:
2590 value->rValue = model->BSIM4Wwlc;
2591 return(OK);
2592 case BSIM4_MOD_WMIN:
2593 value->rValue = model->BSIM4Wmin;
2594 return(OK);
2595 case BSIM4_MOD_WMAX:
2596 value->rValue = model->BSIM4Wmax;
2597 return(OK);
2598
2599 /* stress effect */
2600 case BSIM4_MOD_SAREF:
2601 value->rValue = model->BSIM4saref;
2602 return(OK);
2603 case BSIM4_MOD_SBREF:
2604 value->rValue = model->BSIM4sbref;
2605 return(OK);
2606 case BSIM4_MOD_WLOD:
2607 value->rValue = model->BSIM4wlod;
2608 return(OK);
2609 case BSIM4_MOD_KU0:
2610 value->rValue = model->BSIM4ku0;
2611 return(OK);
2612 case BSIM4_MOD_KVSAT:
2613 value->rValue = model->BSIM4kvsat;
2614 return(OK);
2615 case BSIM4_MOD_KVTH0:
2616 value->rValue = model->BSIM4kvth0;
2617 return(OK);
2618 case BSIM4_MOD_TKU0:
2619 value->rValue = model->BSIM4tku0;
2620 return(OK);
2621 case BSIM4_MOD_LLODKU0:
2622 value->rValue = model->BSIM4llodku0;
2623 return(OK);
2624 case BSIM4_MOD_WLODKU0:
2625 value->rValue = model->BSIM4wlodku0;
2626 return(OK);
2627 case BSIM4_MOD_LLODVTH:
2628 value->rValue = model->BSIM4llodvth;
2629 return(OK);
2630 case BSIM4_MOD_WLODVTH:
2631 value->rValue = model->BSIM4wlodvth;
2632 return(OK);
2633 case BSIM4_MOD_LKU0:
2634 value->rValue = model->BSIM4lku0;
2635 return(OK);
2636 case BSIM4_MOD_WKU0:
2637 value->rValue = model->BSIM4wku0;
2638 return(OK);
2639 case BSIM4_MOD_PKU0:
2640 value->rValue = model->BSIM4pku0;
2641 return(OK);
2642 case BSIM4_MOD_LKVTH0:
2643 value->rValue = model->BSIM4lkvth0;
2644 return(OK);
2645 case BSIM4_MOD_WKVTH0:
2646 value->rValue = model->BSIM4wkvth0;
2647 return(OK);
2648 case BSIM4_MOD_PKVTH0:
2649 value->rValue = model->BSIM4pkvth0;
2650 return(OK);
2651 case BSIM4_MOD_STK2:
2652 value->rValue = model->BSIM4stk2;
2653 return(OK);
2654 case BSIM4_MOD_LODK2:
2655 value->rValue = model->BSIM4lodk2;
2656 return(OK);
2657 case BSIM4_MOD_STETA0:
2658 value->rValue = model->BSIM4steta0;
2659 return(OK);
2660 case BSIM4_MOD_LODETA0:
2661 value->rValue = model->BSIM4lodeta0;
2662 return(OK);
2663
2664 /* Well Proximity Effect */
2665 case BSIM4_MOD_WEB:
2666 value->rValue = model->BSIM4web;
2667 return(OK);
2668 case BSIM4_MOD_WEC:
2669 value->rValue = model->BSIM4wec;
2670 return(OK);
2671 case BSIM4_MOD_KVTH0WE:
2672 value->rValue = model->BSIM4kvth0we;
2673 return(OK);
2674 case BSIM4_MOD_K2WE:
2675 value->rValue = model->BSIM4k2we;
2676 return(OK);
2677 case BSIM4_MOD_KU0WE:
2678 value->rValue = model->BSIM4ku0we;
2679 return(OK);
2680 case BSIM4_MOD_SCREF:
2681 value->rValue = model->BSIM4scref;
2682 return(OK);
2683 case BSIM4_MOD_WPEMOD:
2684 value->rValue = model->BSIM4wpemod;
2685 return(OK);
2686 case BSIM4_MOD_LKVTH0WE:
2687 value->rValue = model->BSIM4lkvth0we;
2688 return(OK);
2689 case BSIM4_MOD_LK2WE:
2690 value->rValue = model->BSIM4lk2we;
2691 return(OK);
2692 case BSIM4_MOD_LKU0WE:
2693 value->rValue = model->BSIM4lku0we;
2694 return(OK);
2695 case BSIM4_MOD_WKVTH0WE:
2696 value->rValue = model->BSIM4wkvth0we;
2697 return(OK);
2698 case BSIM4_MOD_WK2WE:
2699 value->rValue = model->BSIM4wk2we;
2700 return(OK);
2701 case BSIM4_MOD_WKU0WE:
2702 value->rValue = model->BSIM4wku0we;
2703 return(OK);
2704 case BSIM4_MOD_PKVTH0WE:
2705 value->rValue = model->BSIM4pkvth0we;
2706 return(OK);
2707 case BSIM4_MOD_PK2WE:
2708 value->rValue = model->BSIM4pk2we;
2709 return(OK);
2710 case BSIM4_MOD_PKU0WE:
2711 value->rValue = model->BSIM4pku0we;
2712 return(OK);
2713
2714 case BSIM4_MOD_NOIA:
2715 value->rValue = model->BSIM4oxideTrapDensityA;
2716 return(OK);
2717 case BSIM4_MOD_NOIB:
2718 value->rValue = model->BSIM4oxideTrapDensityB;
2719 return(OK);
2720 case BSIM4_MOD_NOIC:
2721 value->rValue = model->BSIM4oxideTrapDensityC;
2722 return(OK);
2723 case BSIM4_MOD_EM:
2724 value->rValue = model->BSIM4em;
2725 return(OK);
2726 case BSIM4_MOD_EF:
2727 value->rValue = model->BSIM4ef;
2728 return(OK);
2729 case BSIM4_MOD_AF:
2730 value->rValue = model->BSIM4af;
2731 return(OK);
2732 case BSIM4_MOD_KF:
2733 value->rValue = model->BSIM4kf;
2734 return(OK);
2735
2736 case BSIM4_MOD_VGS_MAX:
2737 value->rValue = model->BSIM4vgsMax;
2738 return(OK);
2739 case BSIM4_MOD_VGD_MAX:
2740 value->rValue = model->BSIM4vgdMax;
2741 return(OK);
2742 case BSIM4_MOD_VGB_MAX:
2743 value->rValue = model->BSIM4vgbMax;
2744 return(OK);
2745 case BSIM4_MOD_VDS_MAX:
2746 value->rValue = model->BSIM4vdsMax;
2747 return(OK);
2748 case BSIM4_MOD_VBS_MAX:
2749 value->rValue = model->BSIM4vbsMax;
2750 return(OK);
2751 case BSIM4_MOD_VBD_MAX:
2752 value->rValue = model->BSIM4vbdMax;
2753 return(OK);
2754 case BSIM4_MOD_VGSR_MAX:
2755 value->rValue = model->BSIM4vgsrMax;
2756 return(OK);
2757 case BSIM4_MOD_VGDR_MAX:
2758 value->rValue = model->BSIM4vgdrMax;
2759 return(OK);
2760 case BSIM4_MOD_VGBR_MAX:
2761 value->rValue = model->BSIM4vgbrMax;
2762 return(OK);
2763 case BSIM4_MOD_VBSR_MAX:
2764 value->rValue = model->BSIM4vbsrMax;
2765 return(OK);
2766 case BSIM4_MOD_VBDR_MAX:
2767 value->rValue = model->BSIM4vbdrMax;
2768 return(OK);
2769
2770 default:
2771 return(E_BADPARM);
2772 }
2773 /* NOTREACHED */
2774 }
2775
2776
2777
2778