-
Notifications
You must be signed in to change notification settings - Fork 10
/
bsim4_release.va
12591 lines (11837 loc) · 523 KB
/
bsim4_release.va
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Verilog-A definition of BSIM4 based on version 4.8
Enhancements List:
trap-assisted junction model
Mobmod=0~6
Substrate R network
Wpemod: Wpe stress effects
Vth DITS extra parameters: dvtp2,3,4,5
mtrlMod with mtrlCompatMod
Igate model: igcmod=2 [abc]igs, [abc]igd, dlcigd, other default val changes
rbodymod =2
gidlMod GISL:agisl, bgisl, cgisl, egisl, rgisl, kgisl, and fgisl
Limitations:
PNlim, Fetlim, such junction/fet current limitation function not implemented
noise:lintnoi, tnoic, rnoic not required to support
.option scale, scalem not applied to this VA model
Extra model parameters:
_ckt_gmin: model param to pass netlsit level gmin to va for diode current
min: model param changed to _min to avoid to coflict with va builtin function min()
verbose: model param to print debug information (default: 0)
type: polarity 1: nmos(default), -1:pmos
Golden Simulator:
HSPICE -- J-2014.09-SP2-1 for testing
*/
/**********
* Copyright 2001 Regents of the University of California. All rights reserved.
* Author: Weidong Liu
* Authors: Xuemei Xi, Kanyu M. Cao, Hui Wan, Mansun Chan, Chenming Hu.
* Project Director: Prof. Chenming Hu.
**********/
//Indicate Xyce is the simulator used here, comment it out if runs with other simulator
`define __XYCE_VAMS__
`include "disciplines.vams"
`include "constants.vams"
`define NOT_GIVEN -12345789
`define INT_NOT_GIVEN -9999999
`define DEFAULT_TNOM 25
`define N_MINLOG 1.0e-38
`define EPS0 8.85418e-12
`define EPSOX 3.453133e-11
`define EPSSI 1.03594e-10
`define DELTA 1.0e-9
`define DELTA_1 0.02
`define DELTA_2 0.02
`define DELTA_3 0.02
`define DELTA_4 0.02
`define MM 3
`define EXP_THRESHOLD 34.0
`define MIN_EXP 1.713908431e-15
`define MAX_EXP 5.834617425e14
`define MAX_EXPL 2.688117142e+43
`define MIN_EXPL 3.720075976e-44
`define EXPL_THRESHOLD 100.0
// For now, set NOISE to 0 to disable noise.
`define NOISE 0
//`define NOISE_DERIVATIVES 1
`define KboQ `P_K / `P_Q
`define NMOS 1
`define PMOS -1
`define DEXP(A,B) \
if (A > `EXP_THRESHOLD) \
B = `MAX_EXP*(1.0+(A)-`EXP_THRESHOLD); \
else if (A < -`EXP_THRESHOLD) \
B = `MIN_EXP; \
else \
B = exp(A);
`define DEXP2(A,B,C) \
if (A > `EXP_THRESHOLD) begin \
B = `MAX_EXP*(1.0+(A)-`EXP_THRESHOLD); \
C = `MAX_EXP; \
end \
else if (A < -`EXP_THRESHOLD) begin \
B = `MIN_EXP; \
C = 0; \
end else begin \
B = exp(A); \
C = B; \
end
/*
* The macros to calculate the subroutines to process the geometry dependent
* parasitics for BSIM4, which calculates Ps, Pd, As, Ad, and Rs and Rd
* for multi-fingers and varous GEO and RGEO options.
*/
`define BSIM4NumFingerDiff(nf, minSD, nuIntD, nuEndD, nuIntS, nuEndS)\
if ((nf%2) != 0) begin \
nuEndD = 1.0; \
nuEndS = 1.0; \
nuIntD = 2.0 * max((nf - 1.0) / 2.0, 0.0); \
nuIntS = nuIntD; \
end \
else begin \
if (minSD == 1) begin \
nuEndD = 2.0; \
nuIntD = 2.0 * max((nf / 2.0 - 1.0), 0.0);\
nuEndS = 0.0;\
nuIntS = nf;\
end\
else begin\
nuEndD = 0.0;\
nuIntD = nf;\
nuEndS = 2.0;\
nuIntS = 2.0 * max((nf / 2.0 - 1.0), 0.0);\
end \
end
`define BSIM4PAeffGeo(nf, geo, minSD, Weffcj, DMCG, DMCI, DMDG, Ps, Pd, As, Ad)\
if (geo < 9) \
`BSIM4NumFingerDiff(nf, minSD, nuIntD, nuEndD, nuIntS, nuEndS) \
T0 = DMCG + DMCI;\
T1 = DMCG + DMCG;\
T2 = DMDG + DMDG;\
PSiso = T0 + T0 + Weffcj;\
PDiso = PSiso;\
PSsha = T1;\
PDsha = T1;\
PSmer = T2;\
PDmer = T2;\
ASiso = T0 * Weffcj;\
ADiso = ASiso;\
ASsha = DMCG * Weffcj;\
ADsha = ASsha;\
ASmer = DMDG * Weffcj;\
ADmer = ASmer;\
case(geo)\
0: begin\
Ps = nuEndS * PSiso + nuIntS * PSsha;\
Pd = nuEndD * PDiso + nuIntD * PDsha;\
As = nuEndS * ASiso + nuIntS * ASsha;\
Ad = nuEndD * ADiso + nuIntD * ADsha;\
end \
1: begin \
Ps = nuEndS * PSiso + nuIntS * PSsha;\
Pd = (nuEndD + nuIntD) * PDsha;\
As = nuEndS * ASiso + nuIntS * ASsha;\
Ad = (nuEndD + nuIntD) * ADsha;\
end \
2: begin \
Ps = (nuEndS + nuIntS) * PSsha;\
Pd = nuEndD * PDiso + nuIntD * PDsha;\
As = (nuEndS + nuIntS) * ASsha;\
Ad = nuEndD * ADiso + nuIntD * ADsha;\
end \
3: begin \
Ps = (nuEndS + nuIntS) * PSsha;\
Pd = (nuEndD + nuIntD) * PDsha;\
As = (nuEndS + nuIntS) * ASsha;\
Ad = (nuEndD + nuIntD) * ADsha;\
end \
4: begin \
Ps = nuEndS * PSiso + nuIntS * PSsha;\
Pd = nuEndD * PDmer + nuIntD * PDsha;\
As = nuEndS * ASiso + nuIntS * ASsha;\
Ad = nuEndD * ADmer + nuIntD * ADsha;\
end \
5: begin \
Ps = (nuEndS + nuIntS) * PSsha;\
Pd = nuEndD * PDmer + nuIntD * PDsha;\
As = (nuEndS + nuIntS) * ASsha;\
Ad = nuEndD * ADmer + nuIntD * ADsha;\
end\
6: begin \
Ps = nuEndS * PSmer + nuIntS * PSsha;\
Pd = nuEndD * PDiso + nuIntD * PDsha;\
As = nuEndS * ASmer + nuIntS * ASsha;\
Ad = nuEndD * ADiso + nuIntD * ADsha;\
end \
7: begin \
Ps = nuEndS * PSmer + nuIntS * PSsha;\
Pd = (nuEndD + nuIntD) * PDsha;\
As = nuEndS * ASmer + nuIntS * ASsha;\
Ad = (nuEndD + nuIntD) * ADsha;\
end \
8: begin \
Ps = nuEndS * PSmer + nuIntS * PSsha;\
Pd = nuEndD * PDmer + nuIntD * PDsha;\
As = nuEndS * ASmer + nuIntS * ASsha;\
Ad = nuEndD * ADmer + nuIntD * ADsha;\
end \
9: begin \
Ps = PSiso + (nf - 1.0) * PSsha;\
Pd = nf * PDsha;\
As = ASiso + (nf - 1.0) * ASsha;\
Ad = nf * ADsha;\
end \
10: begin\
Ps = nf * PSsha;\
Pd = PDiso + (nf - 1.0) * PDsha;\
As = nf * ASsha;\
Ad = ADiso + (nf - 1.0) * ADsha;\
end \
default: \
$strobe("Warning: (instance X*) Specified GEO=%d not matched (BSIM4PAeffGeo)", geo); \
endcase
/* function to compute poly depletion effect */
`define BSIM4polyDepletion(phi, ngate, epsgate,coxe, Vgs, Vgs_eff, dVgs_eff_dVg) \
if ((ngate > 1.0e18) && (ngate < 1.0e25) && (Vgs > phi) && (epsgate!=0)) begin \
T9 = 1.0e6 * `P_Q * epsgate * ngate / (coxe * coxe); \
T8 = Vgs - phi; \
T4 = sqrt(1.0 + 2.0 * T8 / T9); \
T2 = 2.0 * T8 / (T4 + 1.0); \
T3 = 0.5 * T2 * T2 / T9; \
T7 = 1.12 - T3 - 0.05; \
T6 = sqrt(T7 * T7 + 0.224);\
T5 = 1.12 - 0.5 * (T7 + T6); \
Vgs_eff = Vgs - T5; \
dVgs_eff_dVg = 1.0 - (0.5 - 0.5 / T4) * (1.0 + T7 / T6); \
end \
else begin \
Vgs_eff = Vgs; \
dVgs_eff_dVg = 1.0; \
end
`define BSIM4RdsEndIso(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEnd, rgeo, Type, Rend)\
if (Type == 1) begin\
case(rgeo)\
1, 2, 5: begin \
if (nuEnd == 0.0)\
Rend = 0.0;\
else\
Rend = Rsh * DMCG / (Weffcj * nuEnd);\
end \
3, 4, 6: begin\
if ((DMCG + DMCI) == 0.0) begin\
$strobe("(DMCG + DMCI) can not be equal to zero\n");\
if (DMCG == 0.0) \
DMCG = 0.2e-6;\
if (DMCI == 0.0) \
DMCI = 0.2e-6; \
end \
if ( (nuEnd == 0.0) || ((DMCG+DMCI)==0.0))\
Rend = 0.0;\
else\
Rend = Rsh * Weffcj / (3.0 * nuEnd * (DMCG + DMCI));\
end\
default: \
$strobe("Warning: (instance X*) Specified RGEO = %d not matched (BSIM4RdsEndIso)\n", \
rgeo);\
endcase \
end \
else begin \
case(rgeo)\
1, 3, 7: begin\
if (nuEnd == 0.0)\
Rend = 0.0;\
else\
Rend = Rsh * DMCG / (Weffcj * nuEnd);\
end \
2, 4, 8: begin\
if ((DMCG + DMCI) == 0.0) begin\
$strobe("(DMCG + DMCI) can not be equal to zero\n");\
if (DMCG == 0.0) \
DMCG = 0.2e-6;\
if (DMCI == 0.0) \
DMCI = 0.2e-6; \
end \
if ( (nuEnd == 0.0) || ((DMCG+DMCI)==0.0))\
Rend = 0.0;\
else\
Rend = Rsh * Weffcj / (3.0 * nuEnd * (DMCG + DMCI));\
end\
default: \
$strobe("Warning: (instance X*) Specified RGEO=%d not matched (BSIM4RdsEndIso type !=1)\n", rgeo);\
endcase \
end
`define BSIM4RdsEndSha(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEnd, rgeo, Type, Rend)\
begin \
if (Type == 1) begin\
case(rgeo)\
1, 2, 5: begin \
if (nuEnd == 0.0)\
Rend = 0.0;\
else\
Rend = Rsh * DMCG / (Weffcj * nuEnd);\
end\
3, 4, 6: begin \
if (DMCG == 0.0) begin\
$strobe("DMCG can not be equal to zero\n");\
DMCG = 0.2e-6; \
end \
if (nuEnd == 0.0)\
Rend = 0.0;\
else\
Rend = Rsh * Weffcj / (6.0 * nuEnd * DMCG);\
end\
default:\
$strobe("Warning: (instance X*) Specified RGEO=%d not matched (BSIM4RdsEndSha)\n", rgeo);\
endcase \
end \
else begin\
case(rgeo)\
1, 3, 7: begin\
if (nuEnd == 0.0)\
Rend = 0.0;\
else\
Rend = Rsh * DMCG / (Weffcj * nuEnd);\
end\
2, 4, 8: begin\
if (DMCG == 0.0) begin\
$strobe("DMCG can not be equal to zero\n");\
DMCG = 0.2e-6; \
end \
if (nuEnd == 0.0)\
Rend = 0.0;\
else\
Rend = Rsh * Weffcj / (6.0 * nuEnd * DMCG);\
end\
default:\
$strobe("Warning: (instance X*) Specified RGEO=%d not matched (BSIM4RdsEndSha type !=1)\n", rgeo);\
endcase \
end \
end
`define BSIM4RdseffGeo(nf, geo, rgeo, minSD, Weffcj, Rsh, DMCG, DMCI, DMDG, Type, Rtot)\
begin \
if (geo < 9) begin\
`BSIM4NumFingerDiff(nf, minSD, nuIntD, nuEndD, nuIntS, nuEndS)\
if (Type == 1) begin\
if (nuIntS == 0.0)\
Rint = 0.0;\
else\
Rint = Rsh * DMCG / ( Weffcj * nuIntS); \
end \
else begin\
if (nuIntD == 0.0)\
Rint = 0.0;\
else \
Rint = Rsh * DMCG / ( Weffcj * nuIntD);\
end \
end \
case(geo)\
0: begin \
if (Type == 1) \
`BSIM4RdsEndIso(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndS, \
rgeo, 1, Rend)\
else \
`BSIM4RdsEndIso(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndD, \
rgeo, 0, Rend)\
end \
1: begin \
if (Type == 1) \
`BSIM4RdsEndIso(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndS, \
rgeo, 1, Rend)\
else\
`BSIM4RdsEndSha(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndD, \
rgeo, 0, Rend)\
end \
2: begin \
if (Type == 1) \
`BSIM4RdsEndSha(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndS, \
rgeo, 1, Rend)\
else \
`BSIM4RdsEndIso(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndD, \
rgeo, 0, Rend)\
end \
3: begin \
if (Type == 1) \
`BSIM4RdsEndSha(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndS, \
rgeo, 1, Rend)\
else \
`BSIM4RdsEndSha(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndD, \
rgeo, 0, Rend)\
end \
4: begin \
if (Type == 1) \
`BSIM4RdsEndIso(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndS, \
rgeo, 1, Rend)\
else \
Rend = Rsh * DMDG / Weffcj;\
end \
5: begin \
if (Type == 1) \
`BSIM4RdsEndSha(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndS, \
rgeo, 1, Rend)\
else \
Rend = Rsh * DMDG / (Weffcj * nuEndD);\
end \
6: begin \
if (Type == 1) \
Rend = Rsh * DMDG / Weffcj;\
else \
`BSIM4RdsEndIso(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndD, \
rgeo, 0, Rend)\
end\
7: begin \
if (Type == 1)\
Rend = Rsh * DMDG / (Weffcj * nuEndS);\
else \
`BSIM4RdsEndSha(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEndD, \
rgeo, 0, Rend)\
end \
8: begin \
Rend = Rsh * DMDG / Weffcj; \
end \
9: begin /* all wide contacts assumed for geo = 9 and 10 */\
if (Type == 1) begin\
Rend = 0.5 * Rsh * DMCG / Weffcj;\
if (nf == 2.0)\
Rint = 0.0;\
else\
Rint = Rsh * DMCG / (Weffcj * (nf - 2.0));\
end \
else begin\
Rend = 0.0;\
Rint = Rsh * DMCG / (Weffcj * nf);\
end \
end\
10: begin \
if (Type == 1) begin\
Rend = 0.0;\
Rint = Rsh * DMCG / (Weffcj * nf);\
end \
else begin\
Rend = 0.5 * Rsh * DMCG / Weffcj;\
if (nf == 2.0)\
Rint = 0.0;\
else\
Rint = Rsh * DMCG / (Weffcj * (nf - 2.0));\
end \
end \
default: \
$strobe("Warning: (instance X*) Specified GEO=%d not matched (BSIM4RdseffGeo)",\
geo);\
endcase \
if (Rint <= 0.0)\
Rtot = Rend;\
else if (Rend <= 0.0)\
Rtot = Rint;\
else\
Rtot = Rint * Rend / (Rint + Rend);\
if (Rtot==0.0)\
$strobe("Warning: (instance X*) Zero resistance returned from RdseffGeo\n");\
end
module bsim4va(d, g, s, b);
analog function real BSIM4DioIjthVjmEval;
input Nvtm, Ijth, Isb, XExpBV;
real Nvtm, Ijth, Isb, XExpBV;
real Tb, Tc, EVjmovNv;
begin
Tc = XExpBV;
Tb = 1.0 + Ijth / Isb - Tc;
EVjmovNv = 0.5 * (Tb + sqrt(Tb * Tb + 4.0 * Tc));
BSIM4DioIjthVjmEval = Nvtm * ln(EVjmovNv);
end
endfunction
//
// Node definitions
//
inout d, g, s, b;
electrical d, g, s, b,di, si,gi, gm,bi,sbulk,dbulk;
// The parameter "type" should be set for N/P-MOSFET
// based on modelcard type (but can be overridden by netlist).
parameter integer verbose = `INT_NOT_GIVEN; // debug flag to print DBG msg
parameter integer type = `INT_NOT_GIVEN; // NMOS=1 PMOS=-1
parameter real l = `NOT_GIVEN; // Length
parameter real w = `NOT_GIVEN; // Width
parameter integer nf = `INT_NOT_GIVEN; // Number of fingers
parameter integer _min = `INT_NOT_GIVEN; // Minimize either D or S
parameter real ad = `NOT_GIVEN; // Drain area
parameter real as = `NOT_GIVEN; // Source area
parameter real pd = `NOT_GIVEN; // Drain perimeter
parameter real ps = `NOT_GIVEN; // Source perimeter
parameter real nrd = `NOT_GIVEN; // Number of squares in drain
parameter real nrs = `NOT_GIVEN; // Number of squares in source
parameter integer off = `INT_NOT_GIVEN; // Device is initially off
parameter integer trnqsmod = `INT_NOT_GIVEN; // Transient NQS model selector
parameter integer acnqsmod = `INT_NOT_GIVEN; // AC NQS model selector
parameter integer rbodymod = `INT_NOT_GIVEN; // Distributed body R model
parameter integer rgatemod = `INT_NOT_GIVEN; // Gate resistance model selector
parameter integer geomod = `INT_NOT_GIVEN; // Geo dependent parasitics model
parameter integer rgeomod = `INT_NOT_GIVEN; // S/D res and contact model
parameter integer capmod = `INT_NOT_GIVEN; // Capacitance model selector
parameter integer diomod = `INT_NOT_GIVEN; // Diode IV model selector
parameter integer rdsmod = `INT_NOT_GIVEN; // Bias-dep S/D resistance model
parameter integer level = `INT_NOT_GIVEN; // Ignored, for Spice compatibility
parameter integer mobmod = `INT_NOT_GIVEN; // Mobility model selector
parameter integer tempmod = `INT_NOT_GIVEN; // Temperature model
parameter integer permod = `INT_NOT_GIVEN; // Pd and Ps model selector
parameter integer fnoimod = `INT_NOT_GIVEN; // Flicker noise model selector
parameter integer tnoimod = `INT_NOT_GIVEN; // Thermal noise model selector
parameter integer igcmod = `INT_NOT_GIVEN; // Gate-to-channel Ig model select
parameter integer igbmod = `INT_NOT_GIVEN; // Gate-to-body Ig model selector
parameter integer paramchk = `INT_NOT_GIVEN; // Model parameter checking
parameter integer binunit = `INT_NOT_GIVEN; // Bin unit selector
parameter real version = `NOT_GIVEN; // parameter for model version
parameter real toxe = `NOT_GIVEN; // Electrical gate oxide [m]
parameter real toxp = `NOT_GIVEN; // Physical gate oxide thickness [m]
parameter real toxm = `NOT_GIVEN; // tox at which parameters are extracted [m]
parameter real toxref = `NOT_GIVEN; // Target tox value [m]
parameter real dtox = `NOT_GIVEN; // Defined as (toxe - toxp) [m]
parameter real epsrox = `NOT_GIVEN; // Rel dielectric constant gate oxide
parameter real cdsc = `NOT_GIVEN; // Drain/Source and channel coupling cap [F]
parameter real cdscb = `NOT_GIVEN; // Body-bias dependence of cdsc [F]
parameter real cdscd = `NOT_GIVEN; // Drain-bias dependence of cdsc [F]
parameter real cit = `NOT_GIVEN; // Interface state capacitance [F]
parameter real nfactor = `NOT_GIVEN; // Subthreshold swing Coefficient
parameter real xj = `NOT_GIVEN; // Junction depth [m]
parameter real vsat = `NOT_GIVEN; // Saturation velocity at tnom
parameter real at = `NOT_GIVEN; // Temperature coefficient of vsat
parameter real a0 = `NOT_GIVEN; // Non-uniform depletion width effect coeff
parameter real ags = `NOT_GIVEN; // Gate bias coeff of Abulk.
parameter real a1 = `NOT_GIVEN; // Non-saturation effect coeff
parameter real a2 = `NOT_GIVEN; // Non-saturation effect coeff
parameter real keta = `NOT_GIVEN; // Body-bias coeff of non-u deplet width
parameter real nsub = `NOT_GIVEN; // Substrate doping concentration
parameter real ndep = `NOT_GIVEN; // Channel doping conc at the depl edge
parameter real nsd = `NOT_GIVEN; // S/D doping concentration
parameter real phin = `NOT_GIVEN; // Adjusting parameter for surface potential [V]
parameter real ngate = `NOT_GIVEN; // Poly-gate doping concentration
parameter real gamma1 = `NOT_GIVEN; // Vth body coeff
parameter real gamma2 = `NOT_GIVEN; // Vth body coeff
parameter real vbx = `NOT_GIVEN; // Vth transition body Voltage[V]
parameter real vbm = `NOT_GIVEN; // Maximum body voltage [V]
parameter real xt = `NOT_GIVEN; // Doping depth [m]
parameter real k1 = `NOT_GIVEN; // Bulk effect coeff 1
parameter real kt1 = `NOT_GIVEN; // Temperature coeff of Vth
parameter real kt1l = `NOT_GIVEN; // Temperature coeff of Vth
parameter real kt2 = `NOT_GIVEN; // Body-coeff of kt1
parameter real k2 = `NOT_GIVEN; // Bulk effect coeff 2
parameter real k3 = `NOT_GIVEN; // Narrow width effect coeff
parameter real k3b = `NOT_GIVEN; // Body effect coeff of k3
parameter real w0 = `NOT_GIVEN; // Narrow width effect parameter [m]
parameter real dvtp0 = `NOT_GIVEN; // 1st parm for Vth shift due to pocket [m]
parameter real dvtp1 = `NOT_GIVEN; // 2nd parm for Vth shift due to pocket
parameter real lpe0 = `NOT_GIVEN; // Eq. length of pocket region at zero bias [m]
parameter real lpeb = `NOT_GIVEN; // Eq. length accounting for body [m]
parameter real dvt0 = `NOT_GIVEN; // Short channel effect coeff. 0
parameter real dvt1 = `NOT_GIVEN; // Short channel effect coeff. 1
parameter real dvt2 = `NOT_GIVEN; // Short channel effect coeff. 2
parameter real dvt0w = `NOT_GIVEN; // Narrow Width coeff. 0
parameter real dvt1w = `NOT_GIVEN; // Narrow Width effect coeff. 1
parameter real dvt2w = `NOT_GIVEN; // Narrow Width effect coeff. 2
parameter real drout = `NOT_GIVEN; // DIBL coeff of output resistance
parameter real dsub = `NOT_GIVEN; // DIBL coeff in the subthreshold region
parameter real vth0 = `NOT_GIVEN; // Threshold voltage [m]
parameter real ua = `NOT_GIVEN; // Linear gate dependence of mobility
parameter real ua1 = `NOT_GIVEN; // Temperature coeff of ua
parameter real ub = `NOT_GIVEN; // Quadratic gate dependence of mobility
parameter real ub1 = `NOT_GIVEN; // Temperature coeff of ub
parameter real uc = `NOT_GIVEN; // Body-bias dependence of mobility
parameter real uc1 = `NOT_GIVEN; // Temperature coeff of uc
parameter real u0 = `NOT_GIVEN; // Low-field mobility at Tnom
parameter real eu = `NOT_GIVEN; // Mobility exponent
parameter real ute = `NOT_GIVEN; // Temperature coeff of mobility
parameter real voff = `NOT_GIVEN; // Threshold voltage offset [V]
parameter real minv = `NOT_GIVEN; // Fitting parm for moderate inv in Vgsteff
parameter real voffl = `NOT_GIVEN; // Length dependence parm for Vth offset
parameter real tnom = `NOT_GIVEN; // Parameter measurement temperature [C]
parameter real cgso = `NOT_GIVEN; // Gate-source overlap capacitance per width [F]
parameter real cgdo = `NOT_GIVEN; // Gate-drain overlap capacitance per width [F]
parameter real cgbo = `NOT_GIVEN; // Gate-bulk overlap capacitance per length [F]
parameter real xpart = `NOT_GIVEN; // Channel charge partitioning
parameter real delta = `NOT_GIVEN; // Effective Vds parameter [V]
parameter real rsh = `NOT_GIVEN; // Source-drain sheet resistance [Ohm]
parameter real rdsw = `NOT_GIVEN; // Source-drain resistance per width [Ohm]
parameter real rdswmin = `NOT_GIVEN; // Source-drain res per width at high Vg [Ohm]
parameter real rsw =`NOT_GIVEN; // Source resistance per width [Ohm]
parameter real rdw = `NOT_GIVEN; // Drain resistance per width [Ohm]
parameter real rdwmin = `NOT_GIVEN; // Drain res per width at high Vg [Ohm]
parameter real rswmin = `NOT_GIVEN; // Source res per width at high Vg [Ohm]
parameter real prwg = `NOT_GIVEN; // Gate-bias effect on parasitic resistance
parameter real prwb = `NOT_GIVEN; // Body-effect on parasitic resistance
parameter real prt = `NOT_GIVEN; // Temperature coeff of parasitic resistance
parameter real eta0 = `NOT_GIVEN; // Subthreshold region DIBL coeff
parameter real etab = `NOT_GIVEN; // Subthreshold region DIBL coeff
parameter real pclm = `NOT_GIVEN; // Channel length modulation Coefficient
parameter real pdiblc1 = `NOT_GIVEN; // Drain-induced barrier lowering coeff
parameter real pdiblc2 = `NOT_GIVEN; // Drain-induced barrier lowering coeff
parameter real pdiblcb = `NOT_GIVEN; // Body-eff on drain-ind barrier lowering
parameter real fprout = `NOT_GIVEN; // Rout degradation coeff for pocket dev
parameter real pdits = `NOT_GIVEN; // Coefficient for drain-induced Vth shifts
parameter real pditsl = `NOT_GIVEN; // L dep of drain-induced Vth shifts
parameter real pditsd = `NOT_GIVEN; // Vds dep of drain-induced Vth shifts
parameter real pscbe1 = `NOT_GIVEN; // Substrate current body-effect coeff
parameter real pscbe2 = `NOT_GIVEN; // Substrate current body-effect coeff
parameter real pvag = `NOT_GIVEN; // Gate dep of output resistance parameter
parameter real jss = `NOT_GIVEN; // Bottom S jun rev sat current density
parameter real jsws = `NOT_GIVEN; // Iso edge sidewall S junc rev sat current
parameter real jswgs = `NOT_GIVEN; // Gate edge S jun rev sat current density
parameter real pbs = `NOT_GIVEN; // Source junction built-in potential [V]
parameter real njs = `NOT_GIVEN; // Source junction emission coeff
parameter real xtis = `NOT_GIVEN; // Source junction current temperature exp
parameter real mjs = `NOT_GIVEN; // Source bottom junction cap grading coeff
parameter real pbsws = `NOT_GIVEN; // Source sidewall jun cap built in pot [V]
parameter real mjsws = `NOT_GIVEN; // Source sidewall jun cap grading coeff
parameter real pbswgs = `NOT_GIVEN; // S (g side) swall jun cap built in
parameter real mjswgs = `NOT_GIVEN; // S (g side) swall jun cap grading coeff
parameter real cjs = `NOT_GIVEN; // S bottom jun capacitance per unit area [F]
parameter real cjsws = `NOT_GIVEN; // S sidewall jun cap per unit periphery [F]
parameter real cjswgs = `NOT_GIVEN; // S (g side) swall jun cap per unit [F]
parameter real jsd = `NOT_GIVEN; // Bottom D jun rev sat current density
parameter real jswd = `NOT_GIVEN; // Iso edge swall drain jun rev sat current
parameter real jswgd = `NOT_GIVEN; // Gate edge d jun rev sat current density
parameter real pbd = `NOT_GIVEN; // Drain junction built-in potential [V]
parameter real njd = `NOT_GIVEN; // Drain junction emission coeff
parameter real xtid = `NOT_GIVEN; // D junction current temperature exponent
parameter real mjd = `NOT_GIVEN; // Drain bottom junc cap grading coeff
parameter real pbswd = `NOT_GIVEN; // Drain swall jun cap built in potential [V]
parameter real mjswd = `NOT_GIVEN; // Drain swall jun cap grading coeff
parameter real pbswgd = `NOT_GIVEN; // Drain (g side) swall jun cap built in [V]
parameter real mjswgd = `NOT_GIVEN; // D (g side) swall jun cap grading coeff
parameter real cjd = `NOT_GIVEN; // D bottom jun capacitance per unit area
parameter real cjswd = `NOT_GIVEN; // Drain swall jun cap per unit periphery
parameter real cjswgd = `NOT_GIVEN; // Drain (g side) swall jun cap per unit
parameter real vfbcv = `NOT_GIVEN; // Flat Band Voltage parm for capmod=0 [V]
parameter real vfb = `NOT_GIVEN; // Flat Band Voltage [V]
parameter real tpb = `NOT_GIVEN; // Temperature coeff of pb
parameter real tcj = `NOT_GIVEN; // Temperature coeff of cj
parameter real tpbsw = `NOT_GIVEN; // Temperature coeff of pbsw
parameter real tcjsw = `NOT_GIVEN; // Temperature coeff of cjsw
parameter real tpbswg = `NOT_GIVEN; // Temperature coeff of pbswg
parameter real tcjswg = `NOT_GIVEN; // Temperature coeff of cjswg
parameter real acde = `NOT_GIVEN; // Exp coeff for finite charge thickness
parameter real moin = `NOT_GIVEN; // Coeff for gate-bias dep surf potential
parameter real noff = `NOT_GIVEN; // C-V turn-on/off parameter
parameter real voffcv = `NOT_GIVEN; // C-V lateral-shift parameter [V]
parameter real dmcg = `NOT_GIVEN; // Distance of Mid-Contact to Gate edge [m]
parameter real dmci = `NOT_GIVEN; // Distance of Mid-Contact to Isolation [m]
parameter real dmdg = `NOT_GIVEN; // Distance of Mid-Diffusion to Gate edge [m]
parameter real dmcgt = `NOT_GIVEN; // Dist of Mid-Contact to Gate edge in Test [m]
parameter real xgw = `NOT_GIVEN; // Dist from gate contact center to dev edge [m]
parameter real xgl = `NOT_GIVEN; // Variation in Ldrawn [m]
parameter real rshg = `NOT_GIVEN; // Gate sheet resistance [Ohm]
parameter real ngcon = `NOT_GIVEN; // Number of gate contacts
parameter real xrcrg1 = `NOT_GIVEN; // 1st fitting parm the bias-dependent Rg
parameter real xrcrg2 = `NOT_GIVEN; // 2nd fitting parm the bias-dependent Rg
parameter real lint = `NOT_GIVEN; // Length reduction parameter [m]
parameter real ll = `NOT_GIVEN; // Length reduction parameter [m]
parameter real llc = `NOT_GIVEN; // Length reduction parameter for CV [m]
parameter real lln = `NOT_GIVEN; // Length reduction parameter [m]
parameter real lw = `NOT_GIVEN; // Length reduction parameter [m]
parameter real lwc = `NOT_GIVEN; // Length reduction parameter for CV [m]
parameter real lwn = `NOT_GIVEN; // Length reduction parameter [m]
parameter real lwl = `NOT_GIVEN; // Length reduction parameter [m]
parameter real lwlc = `NOT_GIVEN; // Length reduction parameter for CV [m]
parameter real lmin = `NOT_GIVEN; // Minimum length for the model [m]
parameter real lmax = `NOT_GIVEN; // Maximum length for the model [m]
parameter real wr = `NOT_GIVEN; // Width dependence of rds
parameter real wint = `NOT_GIVEN; // Width reduction parameter [m]
parameter real dwg = `NOT_GIVEN; // Width reduction parameter
parameter real dwb = `NOT_GIVEN; // Width reduction parameter
parameter real wl = `NOT_GIVEN; // Width reduction parameter [m]
parameter real wlc = `NOT_GIVEN; // Width reduction parameter for CV [m]
parameter real wln = `NOT_GIVEN; // Width reduction parameter [m]
parameter real ww = `NOT_GIVEN; // Width reduction parameter [m]
parameter real wwc = `NOT_GIVEN; // Width reduction parameter for CV [m]
parameter real wwn = `NOT_GIVEN; // Width reduction parameter [m]
parameter real wwl = `NOT_GIVEN; // Width reduction parameter [m]
parameter real wwlc = `NOT_GIVEN; // Width reduction parameter for CV [m]
parameter real wmin = `NOT_GIVEN; // Minimum width for the model [m]
parameter real wmax = `NOT_GIVEN; // Maximum width for the model [m]
parameter real b0 = `NOT_GIVEN; // Abulk narrow width parameter [m]
parameter real b1 = `NOT_GIVEN; // Abulk narrow width parameter [m]
parameter real cgsl = `NOT_GIVEN; // New C-V model parameter [F]
parameter real cgdl = `NOT_GIVEN; // New C-V model parameter [F]
parameter real ckappas = `NOT_GIVEN; // S/G overlap C-V parameter [V]
parameter real ckappad = `NOT_GIVEN; // D/G overlap C-V parameter [V]
parameter real cf = `NOT_GIVEN; // Fringe capacitance parameter [F]
parameter real clc = `NOT_GIVEN; // Vdsat parameter for C-V model [F]
parameter real cle = `NOT_GIVEN; // Vdsat parameter for C-V model [F]
parameter real dwc = `NOT_GIVEN; // Delta W for C-V model [m]
parameter real dlc = `NOT_GIVEN; // Delta L for C-V model [m]
parameter real xw = `NOT_GIVEN; // W offset for chan width due to mask/etch [m]
parameter real xl = `NOT_GIVEN; // L offset for chan length due to mask/etch [m]
parameter real dlcig = `NOT_GIVEN; // Delta L for Igs model [m]
parameter real dlcigd = `NOT_GIVEN; // Delta L for Igd model [m]
parameter real dwj = `NOT_GIVEN; // Delta W for S/D junctions [m]
parameter real alpha0 = `NOT_GIVEN; // substrate current model parameter
parameter real alpha1 = `NOT_GIVEN; // substrate current model parameter
parameter real beta0 = `NOT_GIVEN; // substrate current model parameter
parameter real agidl = `NOT_GIVEN; // Pre-exponential constant for GIDL
parameter real bgidl = `NOT_GIVEN; // Exponential constant for GIDL
parameter real cgidl = `NOT_GIVEN; // Parm for body-bias dependence of GIDL
parameter real egidl = `NOT_GIVEN; // Fitting parameter for Bandbending
parameter real aigc = `NOT_GIVEN; // Parameter for Igc
parameter real bigc = `NOT_GIVEN; // Parameter for Igc
parameter real cigc = `NOT_GIVEN; // Parameter for Igc
parameter real aigsd = `NOT_GIVEN; // Parameter for Igs d
parameter real bigsd = `NOT_GIVEN; // Parameter for Igs d
parameter real cigsd = `NOT_GIVEN; // Parameter for Igs d
parameter real aigbacc = `NOT_GIVEN; // Parameter for Igb
parameter real bigbacc = `NOT_GIVEN; // Parameter for Igb
parameter real cigbacc = `NOT_GIVEN; // Parameter for Igb
parameter real aigbinv = `NOT_GIVEN; // Parameter for Igb
parameter real bigbinv = `NOT_GIVEN; // Parameter for Igb
parameter real cigbinv = `NOT_GIVEN; // Parameter for Igb
parameter real nigc = `NOT_GIVEN; // Parameter for Igc slope
parameter real nigbinv = `NOT_GIVEN; // Parameter for Igbinv slope
parameter real nigbacc = `NOT_GIVEN; // Parameter for Igbacc slope
parameter real ntox = `NOT_GIVEN; // Exponent for Tox ratio
parameter real eigbinv = `NOT_GIVEN; // Parm for the Si bandgap for Igbinv [V]
parameter real pigcd = `NOT_GIVEN; // Parameter for Igc partition
parameter real poxedge = `NOT_GIVEN; // Factor for the gate edge Tox
parameter real ijthsfwd = `NOT_GIVEN; // Forw S diode forw limiting current [A]
parameter real ijthdfwd = `NOT_GIVEN; // Forw D diode forward limiting current [A]
parameter real ijthsrev = `NOT_GIVEN; // Rev S diode forward limiting current [A]
parameter real ijthdrev = `NOT_GIVEN; // Rev D diode forward limiting current [A]
parameter real xjbvs = `NOT_GIVEN; // Fitting parm for S diode brkdown current
parameter real xjbvd = `NOT_GIVEN; // Fitting parm for D diode brkdwn current
parameter real bvs = `NOT_GIVEN; // Source diode breakdown voltage [V]
parameter real bvd = `NOT_GIVEN; // Drain diode breakdown voltage [V]
parameter real gbmin = `NOT_GIVEN; // Minimum body conductance
parameter real rbdb = `NOT_GIVEN; // Resistance between bNode and dbNode [Ohm]
parameter real rbpb = `NOT_GIVEN; // Resistance between bNodePrime and bNode [Ohm]
parameter real rbsb = `NOT_GIVEN; // Resistance between bNode and sbNode [Ohm]
parameter real rbps = `NOT_GIVEN; // Resistance between bNodePrime and sbNode [Ohm]
parameter real rbpd = `NOT_GIVEN; // Resistance between bNodePrime and bNode [Ohm]
parameter real lcdsc = `NOT_GIVEN; // Length dependence of cdsc
parameter real lcdscb = `NOT_GIVEN; // Length dependence of cdscb
parameter real lcdscd = `NOT_GIVEN; // Length dependence of cdscd
parameter real lcit = `NOT_GIVEN; // Length dependence of cit
parameter real lnfactor = `NOT_GIVEN; // Length dependence of nfactor
parameter real lxj = `NOT_GIVEN; // Length dependence of xj
parameter real lvsat = `NOT_GIVEN; // Length dependence of vsat
parameter real lat = `NOT_GIVEN; // Length dependence of at
parameter real la0 = `NOT_GIVEN; // Length dependence of a0
parameter real lags = `NOT_GIVEN; // Length dependence of ags
parameter real la1 = `NOT_GIVEN; // Length dependence of a1
parameter real la2 = `NOT_GIVEN; // Length dependence of a2
parameter real lketa = `NOT_GIVEN; // Length dependence of keta
parameter real lnsub = `NOT_GIVEN; // Length dependence of nsub
parameter real lndep = `NOT_GIVEN; // Length dependence of ndep
parameter real lnsd = `NOT_GIVEN; // Length dependence of nsd
parameter real lphin = `NOT_GIVEN; // Length dependence of phin
parameter real lngate = `NOT_GIVEN; // Length dependence of ngate
parameter real lgamma1 = `NOT_GIVEN; // Length dependence of gamma1
parameter real lgamma2 = `NOT_GIVEN; // Length dependence of gamma2
parameter real lvbx = `NOT_GIVEN; // Length dependence of vbx
parameter real lvbm = `NOT_GIVEN; // Length dependence of vbm
parameter real lxt = `NOT_GIVEN; // Length dependence of xt
parameter real lk1 = `NOT_GIVEN; // Length dependence of k1
parameter real lkt1 = `NOT_GIVEN; // Length dependence of kt1
parameter real lkt1l = `NOT_GIVEN; // Length dependence of kt1l
parameter real lkt2 = `NOT_GIVEN; // Length dependence of kt2
parameter real lk2 = `NOT_GIVEN; // Length dependence of k2
parameter real lk3 = `NOT_GIVEN; // Length dependence of k3
parameter real lk3b = `NOT_GIVEN; // Length dependence of k3b
parameter real lw0 = `NOT_GIVEN; // Length dependence of w0
parameter real ldvtp0 = `NOT_GIVEN; // Length dependence of dvtp0
parameter real ldvtp1 = `NOT_GIVEN; // Length dependence of dvtp1
parameter real llpe0 = `NOT_GIVEN; // Length dependence of lpe0
parameter real llpeb = `NOT_GIVEN; // Length dependence of lpeb
parameter real ldvt0 = `NOT_GIVEN; // Length dependence of dvt0
parameter real ldvt1 = `NOT_GIVEN; // Length dependence of dvt1
parameter real ldvt2 = `NOT_GIVEN; // Length dependence of dvt2
parameter real ldvt0w = `NOT_GIVEN; // Length dependence of dvt0w
parameter real ldvt1w = `NOT_GIVEN; // Length dependence of dvt1w
parameter real ldvt2w = `NOT_GIVEN; // Length dependence of dvt2w
parameter real ldrout = `NOT_GIVEN; // Length dependence of drout
parameter real ldsub = `NOT_GIVEN; // Length dependence of dsub
parameter real lvth0 = `NOT_GIVEN; // Length dependence of vto
parameter real lua = `NOT_GIVEN; // Length dependence of ua
parameter real lua1 = `NOT_GIVEN; // Length dependence of ua1
parameter real lub = `NOT_GIVEN; // Length dependence of ub
parameter real lub1 = `NOT_GIVEN; // Length dependence of ub1
parameter real luc = `NOT_GIVEN; // Length dependence of uc
parameter real luc1 = `NOT_GIVEN; // Length dependence of uc1
parameter real lu0 = `NOT_GIVEN; // Length dependence of u0
parameter real lute = `NOT_GIVEN; // Length dependence of ute
parameter real lvoff = `NOT_GIVEN; // Length dependence of voff
parameter real lminv = `NOT_GIVEN; // Length dependence of minv
parameter real ldelta = `NOT_GIVEN; // Length dependence of delta
parameter real lrdsw = `NOT_GIVEN; // Length dependence of rdsw
parameter real lrsw = `NOT_GIVEN; // Length dependence of rsw
parameter real lrdw = `NOT_GIVEN; // Length dependence of rdw
parameter real lprwg = `NOT_GIVEN; // Length dependence of prwg
parameter real lprwb = `NOT_GIVEN; // Length dependence of prwb
parameter real lprt = `NOT_GIVEN; // Length dependence of prt
parameter real leta0 = `NOT_GIVEN; // Length dependence of eta0
parameter real letab = `NOT_GIVEN; // Length dependence of etab
parameter real lpclm = `NOT_GIVEN; // Length dependence of pclm
parameter real lpdiblc1 = `NOT_GIVEN; // Length dependence of pdiblc1
parameter real lpdiblc2 = `NOT_GIVEN; // Length dependence of pdiblc2
parameter real lpdiblcb = `NOT_GIVEN; // Length dependence of pdiblcb
parameter real lfprout = `NOT_GIVEN; // Length dependence of pdiblcb
parameter real lpdits = `NOT_GIVEN; // Length dependence of pdits
parameter real lpditsd = `NOT_GIVEN; // Length dependence of pditsd
parameter real lpscbe1 = `NOT_GIVEN; // Length dependence of pscbe1
parameter real lpscbe2 = `NOT_GIVEN; // Length dependence of pscbe2
parameter real lpvag = `NOT_GIVEN; // Length dependence of pvag
parameter real lwr = `NOT_GIVEN; // Length dependence of wr
parameter real ldwg = `NOT_GIVEN; // Length dependence of dwg
parameter real ldwb = `NOT_GIVEN; // Length dependence of dwb
parameter real lb0 = `NOT_GIVEN; // Length dependence of b0
parameter real lb1 = `NOT_GIVEN; // Length dependence of b1
parameter real lcgsl = `NOT_GIVEN; // Length dependence of cgsl
parameter real lcgdl = `NOT_GIVEN; // Length dependence of cgdl
parameter real lckappas = `NOT_GIVEN; // Length dependence of ckappas
parameter real lckappad = `NOT_GIVEN; // Length dependence of ckappad
parameter real lcf = `NOT_GIVEN; // Length dependence of cf
parameter real lclc = `NOT_GIVEN; // Length dependence of clc
parameter real lcle = `NOT_GIVEN; // Length dependence of cle
parameter real lalpha0 = `NOT_GIVEN; // Length dependence of alpha0
parameter real lalpha1 = `NOT_GIVEN; // Length dependence of alpha1
parameter real lbeta0 = `NOT_GIVEN; // Length dependence of beta0
parameter real lagidl = `NOT_GIVEN; // Length dependence of agidl
parameter real lbgidl = `NOT_GIVEN; // Length dependence of bgidl
parameter real lcgidl = `NOT_GIVEN; // Length dependence of cgidl
parameter real legidl = `NOT_GIVEN; // Length dependence of egidl
parameter real laigc = `NOT_GIVEN; // Length dependence of aigc
parameter real lbigc = `NOT_GIVEN; // Length dependence of bigc
parameter real lcigc = `NOT_GIVEN; // Length dependence of cigc
parameter real laigsd = `NOT_GIVEN; // Length dependence of aigsd
parameter real lbigsd = `NOT_GIVEN; // Length dependence of bigsd
parameter real lcigsd = `NOT_GIVEN; // Length dependence of cigsd
parameter real laigbacc = `NOT_GIVEN; // Length dependence of aigbacc
parameter real lbigbacc = `NOT_GIVEN; // Length dependence of bigbacc
parameter real lcigbacc = `NOT_GIVEN; // Length dependence of cigbacc
parameter real laigbinv = `NOT_GIVEN; // Length dependence of aigbinv
parameter real lbigbinv = `NOT_GIVEN; // Length dependence of bigbinv
parameter real lcigbinv = `NOT_GIVEN; // Length dependence of cigbinv
parameter real lnigc = `NOT_GIVEN; // Length dependence of nigc
parameter real lnigbinv = `NOT_GIVEN; // Length dependence of nigbinv
parameter real lnigbacc = `NOT_GIVEN; // Length dependence of nigbacc
parameter real lntox = `NOT_GIVEN; // Length dependence of ntox
parameter real leigbinv = `NOT_GIVEN; // Length dependence for eigbinv
parameter real lpigcd = `NOT_GIVEN; // Length dependence for pigcd
parameter real lpoxedge = `NOT_GIVEN; // Length dependence for poxedge
parameter real lvfbcv = `NOT_GIVEN; // Length dependence of vfbcv
parameter real lvfb = `NOT_GIVEN; // Length dependence of vfb
parameter real lacde = `NOT_GIVEN; // Length dependence of acde
parameter real lmoin = `NOT_GIVEN; // Length dependence of moin
parameter real lnoff = `NOT_GIVEN; // Length dependence of noff
parameter real lvoffcv = `NOT_GIVEN; // Length dependence of voffcv
parameter real lxrcrg1 = `NOT_GIVEN; // Length dependence of xrcrg1
parameter real lxrcrg2 = `NOT_GIVEN; // Length dependence of xrcrg2
parameter real leu = `NOT_GIVEN; // Length dependence of eu
parameter real wcdsc = `NOT_GIVEN; // Width dependence of cdsc
parameter real wcdscb = `NOT_GIVEN; // Width dependence of cdscb
parameter real wcdscd = `NOT_GIVEN; // Width dependence of cdscd
parameter real wcit = `NOT_GIVEN; // Width dependence of cit
parameter real wnfactor = `NOT_GIVEN; // Width dependence of nfactor
parameter real wxj = `NOT_GIVEN; // Width dependence of xj
parameter real wvsat = `NOT_GIVEN; // Width dependence of vsat
parameter real wat = `NOT_GIVEN; // Width dependence of at
parameter real wa0 = `NOT_GIVEN; // Width dependence of a0
parameter real wags = `NOT_GIVEN; // Width dependence of ags
parameter real wa1 = `NOT_GIVEN; // Width dependence of a1
parameter real wa2 = `NOT_GIVEN; // Width dependence of a2
parameter real wketa = `NOT_GIVEN; // Width dependence of keta
parameter real wnsub = `NOT_GIVEN; // Width dependence of nsub
parameter real wndep = `NOT_GIVEN; // Width dependence of ndep
parameter real wnsd = `NOT_GIVEN; // Width dependence of nsd
parameter real wphin = `NOT_GIVEN; // Width dependence of phin
parameter real wngate = `NOT_GIVEN; // Width dependence of ngate
parameter real wgamma1 = `NOT_GIVEN; // Width dependence of gamma1
parameter real wgamma2 = `NOT_GIVEN; // Width dependence of gamma2
parameter real wvbx = `NOT_GIVEN; // Width dependence of vbx
parameter real wvbm = `NOT_GIVEN; // Width dependence of vbm
parameter real wxt = `NOT_GIVEN; // Width dependence of xt
parameter real wk1 = `NOT_GIVEN; // Width dependence of k1
parameter real wkt1 = `NOT_GIVEN; // Width dependence of kt1
parameter real wkt1l = `NOT_GIVEN; // Width dependence of kt1l
parameter real wkt2 = `NOT_GIVEN; // Width dependence of kt2
parameter real wk2 = `NOT_GIVEN; // Width dependence of k2
parameter real wk3 = `NOT_GIVEN; // Width dependence of k3
parameter real wk3b = `NOT_GIVEN; // Width dependence of k3b
parameter real ww0 = `NOT_GIVEN; // Width dependence of w0
parameter real wdvtp0 = `NOT_GIVEN; // Width dependence of dvtp0
parameter real wdvtp1 = `NOT_GIVEN; // Width dependence of dvtp1
parameter real wlpe0 = `NOT_GIVEN; // Width dependence of lpe0
parameter real wlpeb = `NOT_GIVEN; // Width dependence of lpeb
parameter real wdvt0 = `NOT_GIVEN; // Width dependence of dvt0
parameter real wdvt1 = `NOT_GIVEN; // Width dependence of dvt1
parameter real wdvt2 = `NOT_GIVEN; // Width dependence of dvt2
parameter real wdvt0w = `NOT_GIVEN; // Width dependence of dvt0w
parameter real wdvt1w = `NOT_GIVEN; // Width dependence of dvt1w
parameter real wdvt2w = `NOT_GIVEN; // Width dependence of dvt2w
parameter real wdrout = `NOT_GIVEN; // Width dependence of drout
parameter real wdsub = `NOT_GIVEN; // Width dependence of dsub
parameter real wvth0 = `NOT_GIVEN; // Width dependence of vto
parameter real wua = `NOT_GIVEN; // Width dependence of ua
parameter real wua1 = `NOT_GIVEN; // Width dependence of ua1
parameter real wub = `NOT_GIVEN; // Width dependence of ub
parameter real wub1 = `NOT_GIVEN; // Width dependence of ub1
parameter real wuc = `NOT_GIVEN; // Width dependence of uc
parameter real wuc1 = `NOT_GIVEN; // Width dependence of uc1
parameter real wu0 = `NOT_GIVEN; // Width dependence of u0
parameter real wute = `NOT_GIVEN; // Width dependence of ute
parameter real wvoff = `NOT_GIVEN; // Width dependence of voff
parameter real wminv = `NOT_GIVEN; // Width dependence of minv
parameter real wdelta = `NOT_GIVEN; // Width dependence of delta
parameter real wrdsw = `NOT_GIVEN; // Width dependence of rdsw
parameter real wrsw = `NOT_GIVEN; // Width dependence of rsw
parameter real wrdw = `NOT_GIVEN; // Width dependence of rdw
parameter real wprwg = `NOT_GIVEN; // Width dependence of prwg
parameter real wprwb = `NOT_GIVEN; // Width dependence of prwb
parameter real wprt = `NOT_GIVEN; // Width dependence of prt
parameter real weta0 = `NOT_GIVEN; // Width dependence of eta0
parameter real wetab = `NOT_GIVEN; // Width dependence of etab
parameter real wpclm = `NOT_GIVEN; // Width dependence of pclm
parameter real wpdiblc1 = `NOT_GIVEN; // Width dependence of pdiblc1
parameter real wpdiblc2 = `NOT_GIVEN; // Width dependence of pdiblc2
parameter real wpdiblcb = `NOT_GIVEN; // Width dependence of pdiblcb
parameter real wfprout = `NOT_GIVEN; // Width dependence of pdiblcb
parameter real wpdits = `NOT_GIVEN; // Width dependence of pdits
parameter real wpditsd = `NOT_GIVEN; // Width dependence of pditsd
parameter real wpscbe1 = `NOT_GIVEN; // Width dependence of pscbe1
parameter real wpscbe2 = `NOT_GIVEN; // Width dependence of pscbe2
parameter real wpvag = `NOT_GIVEN; // Width dependence of pvag
parameter real wwr = `NOT_GIVEN; // Width dependence of wr
parameter real wdwg = `NOT_GIVEN; // Width dependence of dwg
parameter real wdwb = `NOT_GIVEN; // Width dependence of dwb
parameter real wb0 = `NOT_GIVEN; // Width dependence of b0
parameter real wb1 = `NOT_GIVEN; // Width dependence of b1
parameter real wcgsl = `NOT_GIVEN; // Width dependence of cgsl
parameter real wcgdl = `NOT_GIVEN; // Width dependence of cgdl
parameter real wckappas = `NOT_GIVEN; // Width dependence of ckappas
parameter real wckappad = `NOT_GIVEN; // Width dependence of ckappad
parameter real wcf = `NOT_GIVEN; // Width dependence of cf
parameter real wclc = `NOT_GIVEN; // Width dependence of clc
parameter real wcle = `NOT_GIVEN; // Width dependence of cle
parameter real walpha0 = `NOT_GIVEN; // Width dependence of alpha0
parameter real walpha1 = `NOT_GIVEN; // Width dependence of alpha1
parameter real wbeta0 = `NOT_GIVEN; // Width dependence of beta0
parameter real wagidl = `NOT_GIVEN; // Width dependence of agidl
parameter real wbgidl = `NOT_GIVEN; // Width dependence of bgidl
parameter real wcgidl = `NOT_GIVEN; // Width dependence of cgidl
parameter real wegidl = `NOT_GIVEN; // Width dependence of egidl
parameter real waigc = `NOT_GIVEN; // Width dependence of aigc
parameter real wbigc = `NOT_GIVEN; // Width dependence of bigc
parameter real wcigc = `NOT_GIVEN; // Width dependence of cigc
parameter real waigsd = `NOT_GIVEN; // Width dependence of aigsd
parameter real wbigsd = `NOT_GIVEN; // Width dependence of bigsd
parameter real wcigsd = `NOT_GIVEN; // Width dependence of cigsd
parameter real waigbacc = `NOT_GIVEN; // Width dependence of aigbacc
parameter real wbigbacc = `NOT_GIVEN; // Width dependence of bigbacc
parameter real wcigbacc = `NOT_GIVEN; // Width dependence of cigbacc
parameter real waigbinv = `NOT_GIVEN; // Width dependence of aigbinv
parameter real wbigbinv = `NOT_GIVEN; // Width dependence of bigbinv
parameter real wcigbinv = `NOT_GIVEN; // Width dependence of cigbinv
parameter real wnigc = `NOT_GIVEN; // Width dependence of nigc
parameter real wnigbinv = `NOT_GIVEN; // Width dependence of nigbinv
parameter real wnigbacc = `NOT_GIVEN; // Width dependence of nigbacc
parameter real wntox = `NOT_GIVEN; // Width dependence of ntox
parameter real weigbinv = `NOT_GIVEN; // Width dependence for eigbinv
parameter real wpigcd = `NOT_GIVEN; // Width dependence for pigcd
parameter real wpoxedge = `NOT_GIVEN; // Width dependence for poxedge
parameter real wvfbcv = `NOT_GIVEN; // Width dependence of vfbcv
parameter real wvfb = `NOT_GIVEN; // Width dependence of vfb
parameter real wacde = `NOT_GIVEN; // Width dependence of acde
parameter real wmoin = `NOT_GIVEN; // Width dependence of moin
parameter real wnoff = `NOT_GIVEN; // Width dependence of noff
parameter real wvoffcv = `NOT_GIVEN; // Width dependence of voffcv
parameter real wxrcrg1 = `NOT_GIVEN; // Width dependence of xrcrg1
parameter real wxrcrg2 = `NOT_GIVEN; // Width dependence of xrcrg2
parameter real weu = `NOT_GIVEN; // Width dependence of eu
parameter real pcdsc = `NOT_GIVEN; // Cross-term dependence of cdsc
parameter real pcdscb = `NOT_GIVEN; // Cross-term dependence of cdscb
parameter real pcdscd = `NOT_GIVEN; // Cross-term dependence of cdscd
parameter real pcit = `NOT_GIVEN; // Cross-term dependence of cit
parameter real pnfactor = `NOT_GIVEN; // Cross-term dependence of nfactor
parameter real pxj = `NOT_GIVEN; // Cross-term dependence of xj
parameter real pvsat = `NOT_GIVEN; // Cross-term dependence of vsat
parameter real pat = `NOT_GIVEN; // Cross-term dependence of at
parameter real pa0 = `NOT_GIVEN; // Cross-term dependence of a0
parameter real pags = `NOT_GIVEN; // Cross-term dependence of ags
parameter real pa1 = `NOT_GIVEN; // Cross-term dependence of a1
parameter real pa2 = `NOT_GIVEN; // Cross-term dependence of a2
parameter real pketa = `NOT_GIVEN; // Cross-term dependence of keta
parameter real pnsub = `NOT_GIVEN; // Cross-term dependence of nsub
parameter real pndep = `NOT_GIVEN; // Cross-term dependence of ndep
parameter real pnsd = `NOT_GIVEN; // Cross-term dependence of nsd
parameter real pphin = `NOT_GIVEN; // Cross-term dependence of phin
parameter real pngate = `NOT_GIVEN; // Cross-term dependence of ngate
parameter real pgamma1 = `NOT_GIVEN; // Cross-term dependence of gamma1
parameter real pgamma2 = `NOT_GIVEN; // Cross-term dependence of gamma2
parameter real pvbx = `NOT_GIVEN; // Cross-term dependence of vbx
parameter real pvbm = `NOT_GIVEN; // Cross-term dependence of vbm
parameter real pxt = `NOT_GIVEN; // Cross-term dependence of xt
parameter real pk1 = `NOT_GIVEN; // Cross-term dependence of k1
parameter real pkt1 = `NOT_GIVEN; // Cross-term dependence of kt1
parameter real pkt1l = `NOT_GIVEN; // Cross-term dependence of kt1l
parameter real pkt2 = `NOT_GIVEN; // Cross-term dependence of kt2
parameter real pk2 = `NOT_GIVEN; // Cross-term dependence of k2
parameter real pk3 = `NOT_GIVEN; // Cross-term dependence of k3