summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/measure/mos-meas-dc.sp
diff options
context:
space:
mode:
Diffstat (limited to 'Windows/spice/examples/measure/mos-meas-dc.sp')
-rw-r--r--Windows/spice/examples/measure/mos-meas-dc.sp37
1 files changed, 37 insertions, 0 deletions
diff --git a/Windows/spice/examples/measure/mos-meas-dc.sp b/Windows/spice/examples/measure/mos-meas-dc.sp
new file mode 100644
index 00000000..eb3892db
--- /dev/null
+++ b/Windows/spice/examples/measure/mos-meas-dc.sp
@@ -0,0 +1,37 @@
+***** Single NMOS Transistor .measure (Id-Vd) ***
+m1 d g s b nch L=0.6u W=10.0u
+
+vgs g 0 3.5
+vds d 0 3.5
+vs s 0 dc 0
+vb b 0 dc 0
+
+.dc vds 0 3.5 0.05 vgs 0.5 3.5 0.5
+
+.print dc v(1) i(vs)
+
+* model binning
+.model nch.1 nmos ( version=4.4 level=54 lmin=0.1u lmax=20u wmin=0.1u wmax=10u )
+.model nch.2 nmos ( version=4.4 level=54 lmin=0.1u lmax=20u wmin=10u wmax=100u )
+.model pch.1 pmos ( version=4.4 level=54 lmin=0.1u lmax=20u wmin=0.1u wmax=10u )
+.model pch.2 pmos ( version=4.4 level=54 lmin=0.1u lmax=20u wmin=10u wmax=100u )
+
+.meas dc is_at FIND i(vs) AT=1
+.meas dc is_max max i(vs) from=0 to=3.5
+.meas dc vds_at2 when i(vs)=10m
+.meas dc vd_diff1 trig i(vs) val=0.005 rise=1 targ i(vs) val=0.01 rise=1
+.meas dc vd_diff2 trig i(vs) val=0.005 rise=1 targ i(vs) val=0.01 rise=2
+
+.control
+run
+*rusage all
+plot i(vs)
+.endc
+
+
+.end
+
+
+
+
+