summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/cider/diode
diff options
context:
space:
mode:
authorrahulp132020-02-28 11:38:58 +0530
committerrahulp132020-02-28 11:38:58 +0530
commit246319682f60293b132fca1ce6e24689c6682617 (patch)
tree6871b758a17869efecfd617f5513e31f9a933f4a /Windows/spice/examples/cider/diode
parentd9ab84106cac311d953f344386fef1c1e2bca1cf (diff)
downloadeSim-246319682f60293b132fca1ce6e24689c6682617.tar.gz
eSim-246319682f60293b132fca1ce6e24689c6682617.tar.bz2
eSim-246319682f60293b132fca1ce6e24689c6682617.zip
initial commit
Diffstat (limited to 'Windows/spice/examples/cider/diode')
-rw-r--r--Windows/spice/examples/cider/diode/diode.cir35
-rw-r--r--Windows/spice/examples/cider/diode/diotran.cir31
-rw-r--r--Windows/spice/examples/cider/diode/pindiode.cir42
3 files changed, 108 insertions, 0 deletions
diff --git a/Windows/spice/examples/cider/diode/diode.cir b/Windows/spice/examples/cider/diode/diode.cir
new file mode 100644
index 00000000..e0ace324
--- /dev/null
+++ b/Windows/spice/examples/cider/diode/diode.cir
@@ -0,0 +1,35 @@
+One-Dimensional Diode Simulation
+
+* Several simulations are performed by this file.
+* They are:
+* 1. An operating point at 0.7v forward bias.
+* 2. An ac analysis at 0.7v forward bias.
+* 3. The forward and reverse bias characteristics from -3v to 2v.
+
+Vpp 1 0 0.7v (PWL 0ns 3.0v 0.01ns -6.0v) (AC 1v)
+Vnn 2 0 0v
+D1 1 2 M_PN AREA=100
+
+.model M_PN numd level=1
++ ***************************************
++ *** One-Dimensional Numerical Diode ***
++ ***************************************
++ options defa=1p
++ x.mesh loc=0.0 n=1
++ x.mesh loc=1.3 n=201
++ domain num=1 material=1
++ material num=1 silicon
++ mobility mat=1 concmod=ct fieldmod=ct
++ doping gauss p.type conc=1e20 x.l=0.0 x.h=0.0 char.l=0.100
++ doping unif n.type conc=1e16 x.l=0.0 x.h=1.3
++ doping gauss n.type conc=5e19 x.l=1.3 x.h=1.3 char.l=0.100
++ models bgn aval srh auger conctau concmob fieldmob
++ method ac=direct
+
+.option acct bypass=0 abstol=1e-18 itl2=100
+.op
+.ac dec 10 100kHz 10gHz
+.dc Vpp -3.0v 2.0001v 50mv
+.print i(Vpp)
+
+.END
diff --git a/Windows/spice/examples/cider/diode/diotran.cir b/Windows/spice/examples/cider/diode/diotran.cir
new file mode 100644
index 00000000..110d2550
--- /dev/null
+++ b/Windows/spice/examples/cider/diode/diotran.cir
@@ -0,0 +1,31 @@
+Diode Reverse Recovery
+
+* This file simulates reverse recovery of a diode as it switched from an
+* on to off state.
+
+Vpp 1 0 0.7v (PWL 0ns 3.0v 0.1ns 3.0v 0.11ns -6.0v) (AC 1v)
+Vnn 2 0 0v
+R1 1 3 1k
+D1 3 2 M_PN area=100
+
+.MODEL M_PN numd level=1
++ ***************************************
++ *** One-Dimensional Numerical Diode ***
++ ***************************************
++ options defa=1p
++ x.mesh loc=0.0 n=1
++ x.mesh loc=1.3 n=201
++ domain num=1 material=1
++ material num=1 silicon
++ mobility mat=1 concmod=ct fieldmod=ct
++ doping gauss p.type conc=3e20 x.l=0.0 x.h=0.0 char.l=0.100
++ doping unif n.type conc=1e16 x.l=0.0 x.h=1.3
++ doping gauss n.type conc=5e19 x.l=1.3 x.h=1.3 char.l=0.100
++ models bgn aval srh auger conctau concmob fieldmob
++ method ac=direct
+
+.option acct bypass=1 abstol=1e-15 itl2=100
+.tran 0.001ns 1.0ns
+.print i(Vpp)
+
+.END
diff --git a/Windows/spice/examples/cider/diode/pindiode.cir b/Windows/spice/examples/cider/diode/pindiode.cir
new file mode 100644
index 00000000..1eb18b42
--- /dev/null
+++ b/Windows/spice/examples/cider/diode/pindiode.cir
@@ -0,0 +1,42 @@
+TWO-DIMENSIONAL PIN-DIODE CIRCUIT
+
+VIN 1 0 0.0v (PWL 0ns 0.8v 1ns -50.0v)
+L1 1 2 0.5uH
+VD 2 3 0.0v
+D1 3 0 M_PIN AREA=200 IC.FILE="OP.0.d1"
+VRC 2 4 0.0v
+R1 4 5 100
+C1 5 0 1.0nF
+
+.MODEL M_PIN NUMD LEVEL=2
++ options defw=1000u
++ x.mesh n=1 l=0.0
++ x.mesh n=2 l=0.2
++ x.mesh n=4 l=0.4
++ x.mesh n=8 l=0.6
++ x.mesh n=13 l=1.0
++
++ y.mesh n=1 l=0.0
++ y.mesh n=9 l=4.0
++ y.mesh n=24 l=10.0
++ y.mesh n=29 l=15.0
++ y.mesh n=34 l=20.0
++
++ domain num=1 material=1
++ material num=1 silicon tn=20ns tp=20ns
++
++ electrode num=1 x.l=0.6 x.h=1.0 y.h=0.0
++ electrode num=2 y.l=20.0
++
++ doping gauss p.type conc=1.0e20 char.len=1.076 x.l=0.75 x.h=1.1 y.h=0.0
++ + lat.rotate ratio=0.1
++ doping unif n.type conc=1.0e14
++ doping gauss n.type conc=1.0e20 char.len=1.614 x.l=-0.1 x.h=1.1 y.l=20.0
++
++ models bgn srh auger conctau concmob fieldmob
+
+.OPTION ACCT BYPASS=1
+.TRAN 1NS 100NS
+.PRINT TRAN v(3) I(VIN)
+
+.END