1
2//
3// Test specification for bsim4 (version 4.5.0)
4//
5
6//
7// Simulator specific information
8// These arguments are added to the model card
9// specification to invoke the desired model in
10// different simulators (which can have different
11// names or levels for the same model) and to switch
12// between nType and pType polarities.
13// It is assumed that there are no polarity specific
14// parameters.
15//
16
17`ifdef spice
18nTypeSelectionArguments nmos level=14 version=4.5.0
19pTypeSelectionArguments pmos level=14 version=4.5.0
20`endif
21`ifdef ngspice
22nTypeSelectionArguments nmos level=14 version=4.8.1
23pTypeSelectionArguments pmos level=14 version=4.8.1
24`endif
25`ifdef hspice
26nTypeSelectionArguments nmos level=54 version=4.7
27pTypeSelectionArguments pmos level=54 version=4.7
28`endif
29
30//
31// General test-independent information
32//
33
34keyLetter                   m
35pins                        d g s b
36linearScale                 w l ps pd
37areaScale                   as ad
38temperature                 27 -50 150
39checkPolarity               no
40symmetricPins               d s
41scaleParameters             m
42
43//
44// Specific tests
45//
46
47test                        dcSweep_lw1
48biases                      V(s)=0 V(b)=0
49biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
50biasSweep                   V(d)=0.1,1.2,0.1
51outputs                     I(d)
52instanceParameters          w=10.0e-6 l=0.06e-6
53modelParameters             parameters/nmosParameters
54
55test                        dcSweep_lw1_vb1
56biases                      V(s)=0 V(b)=-0.1
57biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
58biasSweep                   V(d)=0.1,1.2,0.1
59outputs                     I(d)
60instanceParameters          w=10.0e-6 l=0.06e-6
61modelParameters             parameters/nmosParameters
62
63test                        dcSweep_lw1_vb2
64biases                      V(s)=0 V(b)=-0.2
65biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
66biasSweep                   V(d)=0.1,1.2,0.1
67outputs                     I(d)
68instanceParameters          w=10.0e-6 l=0.06e-6
69modelParameters             parameters/nmosParameters
70
71test                        dcSweep_lw2
72biases                      V(s)=0 V(b)=0
73biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
74biasSweep                   V(d)=0.1,1.2,0.1
75outputs                     I(d)
76instanceParameters          w=10.0e-6 l=0.1e-6
77modelParameters             parameters/nmosParameters
78
79test                        dcSweep_lw3
80biases                      V(s)=0 V(b)=0
81biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
82biasSweep                   V(d)=0.1,1.2,0.1
83outputs                     I(d)
84instanceParameters          w=10.0e-6 l=0.24e-6
85modelParameters             parameters/nmosParameters
86
87test                        dcSweep_lw4
88biases                      V(s)=0 V(b)=0
89biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
90biasSweep                   V(d)=0.1,1.2,0.1
91outputs                     I(d)
92instanceParameters          w=1.0e-6 l=0.06e-6
93modelParameters             parameters/nmosParameters
94
95test                        dcSweep_lw5
96biases                      V(s)=0 V(b)=0
97biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
98biasSweep                   V(d)=0.1,1.2,0.1
99outputs                     I(d)
100instanceParameters          w=1.0e-6 l=0.1e-6
101modelParameters             parameters/nmosParameters
102
103test                        dcSweep_lw6
104biases                      V(s)=0 V(b)=0
105biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
106biasSweep                   V(d)=0.1,1.2,0.1
107outputs                     I(d)
108instanceParameters          w=1.0e-6 l=0.24e-6
109modelParameters             parameters/nmosParameters
110
111test                        dcSweep_lw7
112biases                      V(s)=0 V(b)=0
113biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
114biasSweep                   V(d)=0.1,1.2,0.1
115outputs                     I(d)
116instanceParameters          w=0.6e-6 l=0.06e-6
117modelParameters             parameters/nmosParameters
118
119test                        dcSweep_lw8
120biases                      V(s)=0 V(b)=0
121biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
122biasSweep                   V(d)=0.1,1.2,0.1
123outputs                     I(d)
124instanceParameters          w=0.6e-6 l=0.1e-6
125modelParameters             parameters/nmosParameters
126
127test                        dcSweep_lw9
128biases                      V(s)=0 V(b)=0
129biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
130biasSweep                   V(d)=0.1,1.2,0.1
131outputs                     I(d)
132instanceParameters          w=0.6e-6 l=0.24e-6
133modelParameters             parameters/nmosParameters
134
135test                        dcSweep_sa
136biases                      V(s)=0 V(b)=0
137biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
138biasSweep                   V(d)=0.1,1.2,0.1
139outputs                     I(d)
140instanceParameters          w=10.0e-6 l=0.06e-6 sa=0.3e-6
141modelParameters             parameters/nmosParameters
142
143test                        dcSweep_sb
144biases                      V(s)=0 V(b)=0
145biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
146biasSweep                   V(d)=0.1,1.2,0.1
147outputs                     I(d)
148instanceParameters          w=10.0e-6 l=0.06e-6 sb=0.4e-6
149modelParameters             parameters/nmosParameters
150
151test                        dcSweep_sca
152biases                      V(s)=0 V(b)=0
153biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
154biasSweep                   V(d)=0.1,1.2,0.1
155outputs                     I(d)
156instanceParameters          w=10.0e-6 l=0.06e-6 sca=5.0
157modelParameters             parameters/nmosParameters
158modelParameters             wpemod=1 kvth0we=4.11e-03 lkvth0we=-2.1e-10 wkvth0we=-1.66e-10 pkvth0we=1.2e-17 k2we=1.77e-03 lk2we=1.89e-11 wk2we=-1.5e-10
159
160test                        dcSweep_scb
161biases                      V(s)=0 V(b)=0
162biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
163biasSweep                   V(d)=0.1,1.2,0.1
164outputs                     I(d)
165instanceParameters          w=10.0e-6 l=0.06e-6 scb=0.01
166modelParameters             parameters/nmosParameters
167modelParameters             wpemod=1 kvth0we=4.11e-03 lkvth0we=-2.1e-10 wkvth0we=-1.66e-10 pkvth0we=1.2e-17 k2we=1.77e-03 lk2we=1.89e-11 wk2we=-1.5e-10
168
169test                        dcSweep_scc
170biases                      V(s)=0 V(b)=0
171biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
172biasSweep                   V(d)=0.1,1.2,0.1
173outputs                     I(d)
174instanceParameters          w=10.0e-6 l=0.06e-6 scc=0.0001
175modelParameters             parameters/nmosParameters
176modelParameters             wpemod=1 kvth0we=4.11e-03 lkvth0we=-2.1e-10 wkvth0we=-1.66e-10 pkvth0we=1.2e-17 k2we=1.77e-03 lk2we=1.89e-11 wk2we=-1.5e-10
177
178test                        dcSweep_nrs
179biases                      V(s)=0 V(b)=0
180biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
181biasSweep                   V(d)=0.1,1.2,0.1
182outputs                     I(d)
183instanceParameters          w=10.0e-6 l=0.06e-6 nrs=2.0
184modelParameters             parameters/nmosParameters
185
186test                        dcSweep_nrd
187biases                      V(s)=0 V(b)=0
188biasList                    V(g)=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2
189biasSweep                   V(d)=0.1,1.2,0.1
190outputs                     I(d)
191instanceParameters          w=10.0e-6 l=0.06e-6 nrd=2.0
192modelParameters             parameters/nmosParameters
193
194test                        acVd
195temperature                 27 150
196biases                      V(s)=0 V(b)=0 V(g)=1.2
197biasSweep                   V(d)=0.1,1.2,0.1
198outputs                     G(d,g) G(d,d) C(g,s) C(g,d)
199instanceParameters          w=10.0e-6 l=0.06e-6
200modelParameters             parameters/nmosParameters
201
202test                        acFreq
203temperature                 27
204biases                      V(s)=0 V(b)=0 V(d)=1.2 V(g)=1.2
205freq                        dec 10 1e3 1e8
206outputs                     C(g,g) C(g,s) C(g,d)
207instanceParameters          w=10.0e-6 l=0.06e-6
208modelParameters             parameters/nmosParameters
209
210test                        acFreq_mobmod
211temperature                 27
212biases                      V(s)=0 V(b)=0 V(d)=1.2 V(g)=1.2
213freq                        dec 10 1e3 1e8
214outputs                     C(g,g) C(g,s) C(g,d)
215instanceParameters          w=10.0e-6 l=0.06e-6
216modelParameters             parameters/nmosParameters
217modelParameters             mobmod=1
218
219test                        acFreq_capmod
220temperature                 27
221biases                      V(s)=0 V(b)=0 V(d)=1.2 V(g)=1.2
222freq                        dec 10 1e3 1e8
223outputs                     C(g,g) C(g,s) C(g,d)
224instanceParameters          w=10.0e-6 l=0.06e-6
225modelParameters             parameters/nmosParameters
226modelParameters             capmod=1
227
228test                        acFreq_trnqsmod
229temperature                 27
230biases                      V(s)=0 V(b)=0 V(d)=1.2 V(g)=1.2
231freq                        dec 10 1e3 1e8
232outputs                     C(g,g) C(g,s) C(g,d)
233instanceParameters          w=10.0e-6 l=0.06e-6
234modelParameters             parameters/nmosParameters
235modelParameters             trnqsmod=1
236
237test                        acFreq_acnqsmod
238temperature                 27
239biases                      V(s)=0 V(b)=0 V(d)=1.2 V(g)=1.2
240freq                        dec 10 1e3 1e8
241outputs                     C(g,g) C(g,s) C(g,d)
242instanceParameters          w=10.0e-6 l=0.06e-6
243modelParameters             parameters/nmosParameters
244modelParameters             acnqsmod=1
245
246test                        acFreq_xpart
247temperature                 27
248biases                      V(s)=0 V(b)=0 V(d)=1.2 V(g)=1.2
249freq                        dec 10 1e3 1e8
250outputs                     C(g,g) C(g,s) C(g,d)
251instanceParameters          w=10.0e-6 l=0.06e-6
252modelParameters             parameters/nmosParameters
253modelParameters             xpart=1
254
255test                        acFreq_geomod
256temperature                 27
257biases                      V(s)=0 V(b)=0 V(d)=1.2 V(g)=1.2
258freq                        dec 10 1e3 1e8
259outputs                     C(g,g) C(g,s) C(g,d)
260instanceParameters          w=10.0e-6 l=0.06e-6
261modelParameters             parameters/nmosParameters
262modelParameters             geomod=0
263
264test                        acFreq_wpemod
265temperature                 27
266biases                      V(s)=0 V(b)=0 V(d)=1.2 V(g)=1.2
267freq                        dec 10 1e3 1e8
268outputs                     C(g,g) C(g,s) C(g,d)
269instanceParameters          w=10.0e-6 l=0.06e-6
270modelParameters             parameters/nmosParameters
271modelParameters             wpemod=1 kvth0we=4.11e-03 lkvth0we=-2.1e-10 wkvth0we=-1.66e-10 pkvth0we=1.2e-17 k2we=1.77e-03 lk2we=1.89e-11 wk2we=-1.5e-10
272
273test                        acFreq_igcmod
274temperature                 27
275biases                      V(s)=0 V(b)=0 V(d)=1.2 V(g)=1.2
276freq                        dec 10 1e3 1e8
277outputs                     C(g,g) C(g,s) C(g,d)
278instanceParameters          w=10.0e-6 l=0.06e-6
279modelParameters             parameters/nmosParameters
280modelParameters             igcmod=0
281
282test                        acFreq_diomod
283temperature                 27
284biases                      V(s)=0 V(b)=0 V(d)=1.2 V(g)=1.2
285freq                        dec 10 1e3 1e8
286outputs                     C(g,g) C(g,s) C(g,d)
287instanceParameters          w=10.0e-6 l=0.06e-6
288modelParameters             parameters/nmosParameters
289modelParameters             diomod=0
290
291test                        noise1
292temperature                 27
293biases                      V(s)=0 V(b)=0 V(d)=1.0
294biasList                    V(g)=0.6,0.8,1.0
295freq                        dec 10 1e3 1e8
296outputs                     N(d)
297instanceParameters          w=10.0e-6 l=0.06e-6
298modelParameters             parameters/nmosParameters
299modelParameters             fnoimod=0 tnoimod=0 kf=1e-30 af=1.2 ef=1.1
300
301test                        noise2
302temperature                 27
303biases                      V(s)=0 V(b)=0 V(d)=1.0
304biasList                    V(g)=0.6,0.8,1.0
305freq                        dec 10 1e3 1e8
306outputs                     N(d)
307instanceParameters          w=10.0e-6 l=0.06e-6
308modelParameters             parameters/nmosParameters
309modelParameters             fnoimod=1 tnoimod=1 noia=6.25e41 noib=3.125e26 noic=8.75 em=4.1e7 ef=1.1
310
311test                        noise3
312temperature                 27
313biases                      V(s)=0 V(b)=0 V(d)=1.0
314biasList                    V(g)=0.6,0.8,1.0
315freq                        dec 10 1e3 1e8
316outputs                     N(d)
317instanceParameters          w=10.0e-6 l=0.06e-6
318modelParameters             parameters/nmosParameters
319modelParameters             fnoimod=1 tnoimod=0 noia=6.25e41 noib=3.125e26 noic=8.75 em=4.1e7 ef=1.1
320
321test                        noise4
322temperature                 27
323biases                      V(s)=0 V(b)=0 V(d)=1.0
324biasList                    V(g)=0.6,0.8,1.0
325freq                        dec 10 1e3 1e8
326outputs                     N(d)
327instanceParameters          w=10.0e-6 l=0.06e-6
328modelParameters             parameters/nmosParameters
329modelParameters             fnoimod=0 tnoimod=1 kf=1e-30 af=1.2 ef=1.1
330