Jspice3
b2.c
Go to the documentation of this file.
1 /***************************************************************************
2 JSPICE3 adaptation of Spice3f2 - Copyright (c) Stephen R. Whiteley 1992
3 Copyright 1990 Regents of the University of California. All rights reserved.
4 Authors: 1988 Min-Chie Jeng, Hong June Park, Thomas L. Quarles
5  1993 Stephen R. Whiteley
6 ****************************************************************************/
7 
8 #include "spice.h"
9 #include <stdio.h>
10 #include "bsim2def.h"
11 #include "uflags.h"
12 
13 static IFparm B2pTable[] = { /* parameters */
14  IOP( "l", BSIM2_L, IF_REAL, "Length"),
15  IOP( "w", BSIM2_W, IF_REAL, "Width"),
16  IOP( "ad", BSIM2_AD, IF_REAL, "Drain area"),
17  IOP( "as", BSIM2_AS, IF_REAL, "Source area"),
18  IOP( "pd", BSIM2_PD, IF_REAL, "Drain perimeter"),
19  IOP( "ps", BSIM2_PS, IF_REAL, "Source perimeter"),
20  IOP( "nrd", BSIM2_NRD, IF_REAL, "Number of squares in drain"),
21  IOP( "nrs", BSIM2_NRS, IF_REAL, "Number of squares in source"),
22  IOP( "off", BSIM2_OFF, IF_FLAG, "Device is initially off"),
23  IOP( "vds", BSIM2_IC_VDS, IF_REAL, "Initial D-S voltage"),
24  IOP( "vgs", BSIM2_IC_VGS, IF_REAL, "Initial G-S voltage"),
25  IOP( "vbs", BSIM2_IC_VBS, IF_REAL, "Initial B-S voltage"),
26  IP( "ic", BSIM2_IC, IF_VECTOR, "Vector of DS,GS,BS initial voltages")
27 };
28 
29 static IFparm B2mPTable[] = { /* model parameters */
30  IOP( "vfb", BSIM2_MOD_VFB0, IF_REAL,"Flat band voltage"),
31  IOP( "lvfb", BSIM2_MOD_VFBL, IF_REAL,
32  "Length dependence of vfb"),
33  IOP( "wvfb", BSIM2_MOD_VFBW, IF_REAL,
34  "Width dependence of vfb"),
35  IOP( "phi", BSIM2_MOD_PHI0, IF_REAL,
36  "Strong inversion surface potential "),
37  IOP( "lphi", BSIM2_MOD_PHIL, IF_REAL,
38  "Length dependence of phi"),
39  IOP( "wphi", BSIM2_MOD_PHIW, IF_REAL,
40  "Width dependence of phi"),
41  IOP( "k1", BSIM2_MOD_K10, IF_REAL,
42  "Bulk effect coefficient 1"),
43  IOP( "lk1", BSIM2_MOD_K1L, IF_REAL,
44  "Length dependence of k1"),
45  IOP( "wk1", BSIM2_MOD_K1W, IF_REAL,
46  "Width dependence of k1"),
47  IOP( "k2", BSIM2_MOD_K20, IF_REAL,
48  "Bulk effect coefficient 2"),
49  IOP( "lk2", BSIM2_MOD_K2L, IF_REAL,
50  "Length dependence of k2"),
51  IOP( "wk2", BSIM2_MOD_K2W, IF_REAL,
52  "Width dependence of k2"),
53  IOP( "eta0", BSIM2_MOD_ETA00, IF_REAL,
54  "VDS dependence of threshold voltage at VDD=0"),
55  IOP( "leta0", BSIM2_MOD_ETA0L, IF_REAL,
56  "Length dependence of eta0"),
57  IOP( "weta0", BSIM2_MOD_ETA0W, IF_REAL,
58  "Width dependence of eta0"),
59  IOP( "etab", BSIM2_MOD_ETAB0, IF_REAL,
60  "VBS dependence of eta"),
61  IOP( "letab", BSIM2_MOD_ETABL, IF_REAL,
62  "Length dependence of etab"),
63  IOP( "wetab", BSIM2_MOD_ETABW, IF_REAL,
64  "Width dependence of etab"),
66  "Channel length reduction in um"),
68  "Channel width reduction in um"),
69  IOP( "mu0", BSIM2_MOD_MOB00, IF_REAL,
70  "Low-field mobility, at VDS=0 VGS=VTH"),
71  IOP( "mu0b", BSIM2_MOD_MOB0B0, IF_REAL,
72  "VBS dependence of low-field mobility"),
73  IOP( "lmu0b", BSIM2_MOD_MOB0BL, IF_REAL,
74  "Length dependence of mu0b"),
75  IOP( "wmu0b", BSIM2_MOD_MOB0BW, IF_REAL,
76  "Width dependence of mu0b"),
77  IOP( "mus0", BSIM2_MOD_MOBS00, IF_REAL,
78  "Mobility at VDS=VDD VGS=VTH"),
79  IOP( "lmus0", BSIM2_MOD_MOBS0L, IF_REAL,
80  "Length dependence of mus0"),
81  IOP( "wmus0", BSIM2_MOD_MOBS0W, IF_REAL,
82  "Width dependence of mus"),
83  IOP( "musb", BSIM2_MOD_MOBSB0, IF_REAL,
84  "VBS dependence of mus"),
85  IOP( "lmusb", BSIM2_MOD_MOBSBL, IF_REAL,
86  "Length dependence of musb"),
87  IOP( "wmusb", BSIM2_MOD_MOBSBW, IF_REAL,
88  "Width dependence of musb"),
89  IOP( "mu20", BSIM2_MOD_MOB200, IF_REAL,
90  "VDS dependence of mu in tanh term"),
91  IOP( "lmu20", BSIM2_MOD_MOB20L, IF_REAL,
92  "Length dependence of mu20"),
93  IOP( "wmu20", BSIM2_MOD_MOB20W, IF_REAL,
94  "Width dependence of mu20"),
95  IOP( "mu2b", BSIM2_MOD_MOB2B0, IF_REAL,
96  "VBS dependence of mu2"),
97  IOP( "lmu2b", BSIM2_MOD_MOB2BL, IF_REAL,
98  "Length dependence of mu2b"),
99  IOP( "wmu2b", BSIM2_MOD_MOB2BW, IF_REAL,
100  "Width dependence of mu2b"),
101  IOP( "mu2g", BSIM2_MOD_MOB2G0, IF_REAL,
102  "VGS dependence of mu2"),
103  IOP( "lmu2g", BSIM2_MOD_MOB2GL, IF_REAL,
104  "Length dependence of mu2g"),
105  IOP( "wmu2g", BSIM2_MOD_MOB2GW, IF_REAL,
106  "Width dependence of mu2g"),
107  IOP( "mu30", BSIM2_MOD_MOB300, IF_REAL,
108  "VDS dependence of mu in linear term"),
109  IOP( "lmu30", BSIM2_MOD_MOB30L, IF_REAL,
110  "Length dependence of mu30"),
111  IOP( "wmu30", BSIM2_MOD_MOB30W, IF_REAL,
112  "Width dependence of mu30"),
113  IOP( "mu3b", BSIM2_MOD_MOB3B0, IF_REAL,
114  "VBS dependence of mu3"),
115  IOP( "lmu3b", BSIM2_MOD_MOB3BL, IF_REAL,
116  "Length dependence of mu3b"),
117  IOP( "wmu3b", BSIM2_MOD_MOB3BW, IF_REAL,
118  "Width dependence of mu3b"),
119  IOP( "mu3g", BSIM2_MOD_MOB3G0, IF_REAL,
120  "VGS dependence of mu3"),
121  IOP( "lmu3g", BSIM2_MOD_MOB3GL, IF_REAL,
122  "Length dependence of mu3g"),
123  IOP( "wmu3g", BSIM2_MOD_MOB3GW, IF_REAL,
124  "Width dependence of mu3g"),
125  IOP( "mu40", BSIM2_MOD_MOB400, IF_REAL,
126  "VDS dependence of mu in linear term"),
127  IOP( "lmu40", BSIM2_MOD_MOB40L, IF_REAL,
128  "Length dependence of mu40"),
129  IOP( "wmu40", BSIM2_MOD_MOB40W, IF_REAL,
130  "Width dependence of mu40"),
131  IOP( "mu4b", BSIM2_MOD_MOB4B0, IF_REAL,
132  "VBS dependence of mu4"),
133  IOP( "lmu4b", BSIM2_MOD_MOB4BL, IF_REAL,
134  "Length dependence of mu4b"),
135  IOP( "wmu4b", BSIM2_MOD_MOB4BW, IF_REAL,
136  "Width dependence of mu4b"),
137  IOP( "mu4g", BSIM2_MOD_MOB4G0, IF_REAL,
138  "VGS dependence of mu4"),
139  IOP( "lmu4g", BSIM2_MOD_MOB4GL, IF_REAL,
140  "Length dependence of mu4g"),
141  IOP( "wmu4g", BSIM2_MOD_MOB4GW, IF_REAL,
142  "Width dependence of mu4g"),
143  IOP( "ua0", BSIM2_MOD_UA00, IF_REAL,
144  "Linear VGS dependence of mobility"),
145  IOP( "lua0", BSIM2_MOD_UA0L, IF_REAL,
146  "Length dependence of ua0"),
147  IOP( "wua0", BSIM2_MOD_UA0W, IF_REAL,
148  "Width dependence of ua0"),
149  IOP( "uab", BSIM2_MOD_UAB0, IF_REAL,
150  "VBS dependence of ua"),
151  IOP( "luab", BSIM2_MOD_UABL, IF_REAL,
152  "Length dependence of uab"),
153  IOP( "wuab", BSIM2_MOD_UABW, IF_REAL,
154  "Width dependence of uab"),
155  IOP( "ub0", BSIM2_MOD_UB00, IF_REAL,
156  "Quadratic VGS dependence of mobility"),
157  IOP( "lub0", BSIM2_MOD_UB0L, IF_REAL,
158  "Length dependence of ub0"),
159  IOP( "wub0", BSIM2_MOD_UB0W, IF_REAL,
160  "Width dependence of ub0"),
161  IOP( "ubb", BSIM2_MOD_UBB0, IF_REAL,
162  "VBS dependence of ub"),
163  IOP( "lubb", BSIM2_MOD_UBBL, IF_REAL,
164  "Length dependence of ubb"),
165  IOP( "wubb", BSIM2_MOD_UBBW, IF_REAL,
166  "Width dependence of ubb"),
167  IOP( "u10", BSIM2_MOD_U100, IF_REAL,
168  "VDS depence of mobility"),
169  IOP( "lu10", BSIM2_MOD_U10L, IF_REAL,
170  "Length dependence of u10"),
171  IOP( "wu10", BSIM2_MOD_U10W, IF_REAL,
172  "Width dependence of u10"),
173  IOP( "u1b", BSIM2_MOD_U1B0, IF_REAL,
174  "VBS depence of u1"),
175  IOP( "lu1b", BSIM2_MOD_U1BL, IF_REAL,
176  "Length depence of u1b"),
177  IOP( "wu1b", BSIM2_MOD_U1BW, IF_REAL,
178  "Width depence of u1b"),
179  IOP( "u1d", BSIM2_MOD_U1D0, IF_REAL,
180  "VDS depence of u1"),
181  IOP( "lu1d", BSIM2_MOD_U1DL, IF_REAL,
182  "Length depence of u1d"),
183  IOP( "wu1d", BSIM2_MOD_U1DW, IF_REAL,
184  "Width depence of u1d"),
185  IOP( "n0", BSIM2_MOD_N00, IF_REAL,
186  "Subthreshold slope at VDS=0 VBS=0"),
187  IOP( "ln0", BSIM2_MOD_N0L, IF_REAL,
188  "Length dependence of n0"),
189  IOP( "wn0", BSIM2_MOD_N0W, IF_REAL,
190  "Width dependence of n0"),
191  IOP( "nb", BSIM2_MOD_NB0, IF_REAL,
192  "VBS dependence of n"),
193  IOP( "lnb", BSIM2_MOD_NBL, IF_REAL,
194  "Length dependence of nb"),
195  IOP( "wnb", BSIM2_MOD_NBW, IF_REAL,
196  "Width dependence of nb"),
197  IOP( "nd", BSIM2_MOD_ND0, IF_REAL,
198  "VDS dependence of n"),
199  IOP( "lnd", BSIM2_MOD_NDL, IF_REAL,
200  "Length dependence of nd"),
201  IOP( "wnd", BSIM2_MOD_NDW, IF_REAL,
202  "Width dependence of nd"),
203  IOP( "vof0", BSIM2_MOD_VOF00, IF_REAL,
204  "Threshold voltage offset AT VDS=0 VBS=0"),
205  IOP( "lvof0", BSIM2_MOD_VOF0L, IF_REAL,
206  "Length dependence of vof0"),
207  IOP( "wvof0", BSIM2_MOD_VOF0W, IF_REAL,
208  "Width dependence of vof0"),
209  IOP( "vofb", BSIM2_MOD_VOFB0, IF_REAL,
210  "VBS dependence of vof"),
211  IOP( "lvofb", BSIM2_MOD_VOFBL, IF_REAL,
212  "Length dependence of vofb"),
213  IOP( "wvofb", BSIM2_MOD_VOFBW, IF_REAL,
214  "Width dependence of vofb"),
215  IOP( "vofd", BSIM2_MOD_VOFD0, IF_REAL,
216  "VDS dependence of vof"),
217  IOP( "lvofd", BSIM2_MOD_VOFDL, IF_REAL,
218  "Length dependence of vofd"),
219  IOP( "wvofd", BSIM2_MOD_VOFDW, IF_REAL,
220  "Width dependence of vofd"),
221  IOP( "ai0", BSIM2_MOD_AI00, IF_REAL,
222  "Pre-factor of hot-electron effect."),
223  IOP( "lai0", BSIM2_MOD_AI0L, IF_REAL,
224  "Length dependence of ai0"),
225  IOP( "wai0", BSIM2_MOD_AI0W, IF_REAL,
226  "Width dependence of ai0"),
227  IOP( "aib", BSIM2_MOD_AIB0, IF_REAL,
228  "VBS dependence of ai"),
229  IOP( "laib", BSIM2_MOD_AIBL, IF_REAL,
230  "Length dependence of aib"),
231  IOP( "waib", BSIM2_MOD_AIBW, IF_REAL,
232  "Width dependence of aib"),
233  IOP( "bi0", BSIM2_MOD_BI00, IF_REAL,
234  "Exponential factor of hot-electron effect."),
235  IOP( "lbi0", BSIM2_MOD_BI0L, IF_REAL,
236  "Length dependence of bi0"),
237  IOP( "wbi0", BSIM2_MOD_BI0W, IF_REAL,
238  "Width dependence of bi0"),
239  IOP( "bib", BSIM2_MOD_BIB0, IF_REAL,
240  "VBS dependence of bi"),
241  IOP( "lbib", BSIM2_MOD_BIBL, IF_REAL,
242  "Length dependence of bib"),
243  IOP( "wbib", BSIM2_MOD_BIBW, IF_REAL,
244  "Width dependence of bib"),
245  IOP( "vghigh", BSIM2_MOD_VGHIGH0, IF_REAL,
246  "Upper bound of the cubic spline function."),
247  IOP( "lvghigh", BSIM2_MOD_VGHIGHL, IF_REAL,
248  "Length dependence of vghigh"),
249  IOP( "wvghigh", BSIM2_MOD_VGHIGHW, IF_REAL,
250  "Width dependence of vghigh"),
251  IOP( "vglow", BSIM2_MOD_VGLOW0, IF_REAL,
252  "Lower bound of the cubic spline function."),
253  IOP( "lvglow", BSIM2_MOD_VGLOWL, IF_REAL,
254  "Length dependence of vglow"),
255  IOP( "wvglow", BSIM2_MOD_VGLOWW, IF_REAL,
256  "Width dependence of vglow"),
257  IOP( "tox", BSIM2_MOD_TOX, IF_REAL,
258  "Gate oxide thickness in um"),
259  IOP( "temp", BSIM2_MOD_TEMP, IF_REAL,
260  "Temperature in degree Celcius"),
261  IOP( "vdd", BSIM2_MOD_VDD, IF_REAL,
262  "Maximum Vds "),
263  IOP( "vgg", BSIM2_MOD_VGG, IF_REAL,
264  "Maximum Vgs "),
265  IOP( "vbb", BSIM2_MOD_VBB, IF_REAL,
266  "Maximum Vbs "),
267  IOPA("cgso", BSIM2_MOD_CGSO, IF_REAL,
268  "Gate source overlap capacitance per unit channel width(m)"),
269  IOPA("cgdo", BSIM2_MOD_CGDO, IF_REAL,
270  "Gate drain overlap capacitance per unit channel width(m)"),
271  IOPA("cgbo", BSIM2_MOD_CGBO, IF_REAL,
272  "Gate bulk overlap capacitance per unit channel length(m)"),
273  IOP( "xpart", BSIM2_MOD_XPART, IF_REAL,
274  "Flag for channel charge partitioning"),
275  IOP( "rsh", BSIM2_MOD_RSH, IF_REAL,
276  "Source drain diffusion sheet resistance in ohm per square"),
277  IOP( "js", BSIM2_MOD_JS, IF_REAL,
278  "Source drain junction saturation current per unit area"),
279  IOP( "pb", BSIM2_MOD_PB, IF_REAL,
280  "Source drain junction built in potential"),
281  IOPA("mj", BSIM2_MOD_MJ, IF_REAL,
282  "Source drain bottom junction capacitance grading coefficient"),
283  IOPA("pbsw", BSIM2_MOD_PBSW, IF_REAL,
284  "Source drain side junction capacitance built in potential"),
285  IOPA("mjsw", BSIM2_MOD_MJSW, IF_REAL,
286  "Source drain side junction capacitance grading coefficient"),
287  IOPA("cj", BSIM2_MOD_CJ, IF_REAL,
288  "Source drain bottom junction capacitance per unit area"),
289  IOPA("cjsw", BSIM2_MOD_CJSW, IF_REAL,
290  "Source drain side junction capacitance per unit area"),
291  IOP( "wdf", BSIM2_MOD_DEFWIDTH, IF_REAL,
292  "Default width of source drain diffusion in um"),
293  IOP( "dell", BSIM2_MOD_DELLENGTH, IF_REAL,
294  "Length reduction of source drain diffusion"),
295  IP( "nmos", BSIM2_MOD_NMOS, IF_FLAG,
296  "Flag to indicate NMOS"),
297  IP( "pmos", BSIM2_MOD_PMOS, IF_FLAG,
298  "Flag to indicate PMOS"),
299 };
300 
301 static char *B2names[] = {
302  "Drain",
303  "Gate",
304  "Source",
305  "Bulk"
306 };
307 
308 static char *B2modNames[] = {
309  "nmos",
310  "pmos",
311  NULL
312 };
313 
314 static IFkeys B2keys[] = {
315  { 'm', NUMELEMS(B2names), B2names, 0, 0 },
316 };
317 
318 
319 static int B2kSize = NUMELEMS(B2keys);
320 static int B2pTSize = NUMELEMS(B2pTable);
321 static int B2mPTSize = NUMELEMS(B2mPTable);
322 static int B2iSize = sizeof(B2instance);
323 static int B2mSize = sizeof(B2model);
324 
325 
327  { "B2",
328  "Berkeley Short Channel IGFET Model",
329 
330  &B2kSize,
331  B2keys,
332  16, /* level 5 */
333  B2modNames,
334  GENmosParse,
335 
336  &B2pTSize,
337  B2pTable,
338 
339  &B2mPTSize,
340  B2mPTable,
341  },
342 
343  B2param,
344  B2mParam,
345  B2load,
346  B2setup,
347  B2setup,
348  B2temp,
349  B2trunc,
350  NULL,
351  B2acLoad,
352  NULL,
353  GENdestroy,
354  GENmDelete,
355  GENdelete,
356  B2getic,
357  B2ask,
358  B2mAsk,
359  B2pzLoad,
360  B2convTest,
361  NULL,
362  NULL,
363 
364  &B2iSize,
365  &B2mSize
366 };
#define BSIM2_MOD_NBL
Definition: bsim2def.h:617
#define BSIM2_MOD_UB00
Definition: bsim2def.h:598
#define BSIM2_MOD_PHIW
Definition: bsim2def.h:540
#define BSIM2_MOD_NDW
Definition: bsim2def.h:621
#define BSIM2_MOD_ETABL
Definition: bsim2def.h:551
#define BSIM2_MOD_ETA0L
Definition: bsim2def.h:548
#define BSIM2_AS
Definition: bsim2def.h:522
#define BSIM2_MOD_NDL
Definition: bsim2def.h:620
#define BSIM2_MOD_TEMP
Definition: bsim2def.h:650
int B2load()
#define BSIM2_NRS
Definition: bsim2def.h:526
#define BSIM2_MOD_AIBL
Definition: bsim2def.h:635
#define BSIM2_IC
Definition: bsim2def.h:532
static char * B2names[]
Definition: b2.c:301
#define BSIM2_W
Definition: bsim2def.h:520
#define BSIM2_MOD_JS
Definition: bsim2def.h:659
#define BSIM2_MOD_U100
Definition: bsim2def.h:604
#define BSIM2_NRD
Definition: bsim2def.h:527
#define BSIM2_MOD_U1BW
Definition: bsim2def.h:609
#define IOP(a, b, c, d)
Definition: devdefs.h:120
#define BSIM2_MOD_VGHIGHL
Definition: bsim2def.h:644
#define BSIM2_MOD_MOB2BW
Definition: bsim2def.h:570
#define BSIM2_MOD_MOB200
Definition: bsim2def.h:565
int B2convTest()
#define BSIM2_MOD_MJSW
Definition: bsim2def.h:663
#define BSIM2_MOD_MOB2G0
Definition: bsim2def.h:571
#define BSIM2_MOD_VFBL
Definition: bsim2def.h:536
#define BSIM2_MOD_AI0W
Definition: bsim2def.h:633
#define BSIM2_MOD_U1D0
Definition: bsim2def.h:610
#define BSIM2_MOD_VOFB0
Definition: bsim2def.h:625
#define BSIM2_MOD_BIBW
Definition: bsim2def.h:642
#define BSIM2_MOD_UA0L
Definition: bsim2def.h:593
#define BSIM2_MOD_AI0L
Definition: bsim2def.h:632
#define BSIM2_MOD_MOB40L
Definition: bsim2def.h:584
static int B2mSize
Definition: b2.c:323
#define BSIM2_MOD_K20
Definition: bsim2def.h:544
#define NUMELEMS(ARRAY)
Definition: spice.h:157
#define BSIM2_MOD_N00
Definition: bsim2def.h:613
#define BSIM2_MOD_MOB2GW
Definition: bsim2def.h:573
#define BSIM2_MOD_MOB3GW
Definition: bsim2def.h:582
#define BSIM2_MOD_TOX
Definition: bsim2def.h:649
#define BSIM2_MOD_CJSW
Definition: bsim2def.h:665
#define BSIM2_MOD_CGSO
Definition: bsim2def.h:654
static IFkeys B2keys[]
Definition: b2.c:314
#define BSIM2_MOD_MOB3BL
Definition: bsim2def.h:578
#define BSIM2_MOD_DELLENGTH
Definition: bsim2def.h:667
#define BSIM2_IC_VBS
Definition: bsim2def.h:529
void GENmosParse()
#define BSIM2_MOD_K10
Definition: bsim2def.h:541
static IFparm B2pTable[]
Definition: b2.c:13
#define BSIM2_MOD_MOB4BL
Definition: bsim2def.h:587
#define BSIM2_MOD_U1BL
Definition: bsim2def.h:608
void GENdestroy()
#define BSIM2_MOD_DELTAL
Definition: bsim2def.h:553
struct sBSIM2model B2model
#define BSIM2_MOD_MOB2GL
Definition: bsim2def.h:572
#define BSIM2_MOD_VOFDL
Definition: bsim2def.h:629
#define BSIM2_MOD_U1DW
Definition: bsim2def.h:612
#define BSIM2_MOD_PHI0
Definition: bsim2def.h:538
int B2acLoad()
#define BSIM2_MOD_N0W
Definition: bsim2def.h:615
#define BSIM2_MOD_U1DL
Definition: bsim2def.h:611
#define BSIM2_MOD_MOB0B0
Definition: bsim2def.h:556
#define BSIM2_MOD_MOBS0W
Definition: bsim2def.h:561
#define BSIM2_MOD_MJ
Definition: bsim2def.h:661
int B2temp()
#define BSIM2_MOD_MOB20L
Definition: bsim2def.h:566
#define BSIM2_MOD_MOB3GL
Definition: bsim2def.h:581
#define BSIM2_MOD_MOB2BL
Definition: bsim2def.h:569
#define BSIM2_MOD_UB0L
Definition: bsim2def.h:599
#define BSIM2_MOD_VOFBW
Definition: bsim2def.h:627
#define BSIM2_IC_VDS
Definition: bsim2def.h:530
#define BSIM2_MOD_VGHIGHW
Definition: bsim2def.h:645
#define BSIM2_MOD_MOB20W
Definition: bsim2def.h:567
#define BSIM2_MOD_MOBS00
Definition: bsim2def.h:559
static int B2mPTSize
Definition: b2.c:321
#define BSIM2_MOD_UABL
Definition: bsim2def.h:596
#define BSIM2_MOD_XPART
Definition: bsim2def.h:657
int B2param()
#define IF_VECTOR
Definition: ifsim.h:121
#define BSIM2_MOD_VOF0W
Definition: bsim2def.h:624
#define BSIM2_MOD_MOB0BW
Definition: bsim2def.h:558
#define BSIM2_MOD_PBSW
Definition: bsim2def.h:662
#define BSIM2_MOD_CGBO
Definition: bsim2def.h:656
#define BSIM2_MOD_MOB3BW
Definition: bsim2def.h:579
#define BSIM2_MOD_PMOS
Definition: bsim2def.h:669
#define BSIM2_MOD_U10L
Definition: bsim2def.h:605
#define NULL
Definition: spdefs.h:121
#define BSIM2_MOD_VBB
Definition: bsim2def.h:653
#define BSIM2_MOD_BI0L
Definition: bsim2def.h:638
#define BSIM2_MOD_BI0W
Definition: bsim2def.h:639
struct sBSIM2instance B2instance
int B2setup()
#define BSIM2_MOD_MOB0BL
Definition: bsim2def.h:557
#define BSIM2_PD
Definition: bsim2def.h:525
#define BSIM2_MOD_K2W
Definition: bsim2def.h:546
#define BSIM2_MOD_BIBL
Definition: bsim2def.h:641
#define BSIM2_MOD_VOFD0
Definition: bsim2def.h:628
#define BSIM2_OFF
Definition: bsim2def.h:528
#define BSIM2_MOD_PHIL
Definition: bsim2def.h:539
#define BSIM2_MOD_ETA00
Definition: bsim2def.h:547
#define BSIM2_MOD_MOBSB0
Definition: bsim2def.h:562
#define BSIM2_MOD_MOBSBL
Definition: bsim2def.h:563
#define BSIM2_MOD_VOFDW
Definition: bsim2def.h:630
#define BSIM2_MOD_UBBL
Definition: bsim2def.h:602
#define BSIM2_MOD_UA00
Definition: bsim2def.h:592
#define BSIM2_MOD_MOB40W
Definition: bsim2def.h:585
int B2mParam()
static char * B2modNames[]
Definition: b2.c:308
#define IOPA(a, b, c, d)
Definition: uflags.h:50
#define BSIM2_MOD_BIB0
Definition: bsim2def.h:640
#define BSIM2_MOD_VGG
Definition: bsim2def.h:652
#define BSIM2_IC_VGS
Definition: bsim2def.h:531
#define BSIM2_L
Definition: bsim2def.h:521
#define BSIM2_MOD_MOB3B0
Definition: bsim2def.h:577
#define BSIM2_MOD_K1W
Definition: bsim2def.h:543
#define BSIM2_MOD_DELTAW
Definition: bsim2def.h:554
#define BSIM2_MOD_MOB2B0
Definition: bsim2def.h:568
#define BSIM2_MOD_UBBW
Definition: bsim2def.h:603
#define BSIM2_MOD_MOB4B0
Definition: bsim2def.h:586
#define BSIM2_MOD_MOB400
Definition: bsim2def.h:583
Definition: ifsim.h:54
Definition: ifsim.h:267
#define BSIM2_MOD_MOB4GW
Definition: bsim2def.h:591
#define BSIM2_MOD_UA0W
Definition: bsim2def.h:594
int B2ask()
#define BSIM2_MOD_NB0
Definition: bsim2def.h:616
#define IF_REAL
Definition: ifsim.h:108
#define BSIM2_MOD_MOB4G0
Definition: bsim2def.h:589
#define IP(a, b, c, d)
Definition: devdefs.h:118
#define BSIM2_MOD_VOF00
Definition: bsim2def.h:622
#define BSIM2_MOD_MOB300
Definition: bsim2def.h:574
#define BSIM2_MOD_UB0W
Definition: bsim2def.h:600
#define BSIM2_MOD_VGLOW0
Definition: bsim2def.h:646
#define BSIM2_MOD_MOBS0L
Definition: bsim2def.h:560
#define BSIM2_MOD_VGLOWL
Definition: bsim2def.h:647
#define IF_FLAG
Definition: ifsim.h:106
#define BSIM2_MOD_ETABW
Definition: bsim2def.h:552
#define BSIM2_MOD_RSH
Definition: bsim2def.h:658
#define BSIM2_MOD_K1L
Definition: bsim2def.h:542
int GENmDelete()
#define BSIM2_MOD_VFB0
Definition: bsim2def.h:535
#define BSIM2_MOD_U10W
Definition: bsim2def.h:606
int GENdelete()
#define BSIM2_MOD_BI00
Definition: bsim2def.h:637
#define BSIM2_MOD_VOFBL
Definition: bsim2def.h:626
#define BSIM2_MOD_MOB3G0
Definition: bsim2def.h:580
#define BSIM2_MOD_DEFWIDTH
Definition: bsim2def.h:666
#define BSIM2_MOD_UABW
Definition: bsim2def.h:597
int B2mAsk()
#define BSIM2_MOD_MOB4BW
Definition: bsim2def.h:588
#define BSIM2_MOD_AIB0
Definition: bsim2def.h:634
#define BSIM2_MOD_N0L
Definition: bsim2def.h:614
#define BSIM2_MOD_MOB30L
Definition: bsim2def.h:575
#define BSIM2_MOD_CJ
Definition: bsim2def.h:664
#define BSIM2_MOD_VDD
Definition: bsim2def.h:651
static IFparm B2mPTable[]
Definition: b2.c:29
#define BSIM2_MOD_MOB4GL
Definition: bsim2def.h:590
#define BSIM2_MOD_ETA0W
Definition: bsim2def.h:549
int B2trunc()
#define BSIM2_MOD_MOB00
Definition: bsim2def.h:555
#define BSIM2_MOD_ETAB0
Definition: bsim2def.h:550
#define BSIM2_MOD_PB
Definition: bsim2def.h:660
#define BSIM2_MOD_ND0
Definition: bsim2def.h:619
#define BSIM2_AD
Definition: bsim2def.h:523
#define BSIM2_MOD_UBB0
Definition: bsim2def.h:601
static int B2pTSize
Definition: b2.c:320
static int B2kSize
Definition: b2.c:319
static int B2iSize
Definition: b2.c:322
int B2getic()
SPICEdev B2info
Definition: b2.c:326
#define BSIM2_MOD_NMOS
Definition: bsim2def.h:668
#define BSIM2_MOD_VOF0L
Definition: bsim2def.h:623
#define BSIM2_MOD_UAB0
Definition: bsim2def.h:595
int B2pzLoad()
#define BSIM2_MOD_VGHIGH0
Definition: bsim2def.h:643
#define BSIM2_MOD_MOB30W
Definition: bsim2def.h:576
#define BSIM2_PS
Definition: bsim2def.h:524
#define BSIM2_MOD_CGDO
Definition: bsim2def.h:655
#define BSIM2_MOD_K2L
Definition: bsim2def.h:545
#define BSIM2_MOD_AIBW
Definition: bsim2def.h:636
#define BSIM2_MOD_VGLOWW
Definition: bsim2def.h:648
#define BSIM2_MOD_U1B0
Definition: bsim2def.h:607
#define BSIM2_MOD_NBW
Definition: bsim2def.h:618
#define BSIM2_MOD_MOBSBW
Definition: bsim2def.h:564
#define BSIM2_MOD_VFBW
Definition: bsim2def.h:537
#define BSIM2_MOD_AI00
Definition: bsim2def.h:631