blob: a8f2141dfb5644558c1f7e9e303b59ab0d8a8fb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
* /home/fossee/esim-workspace/diode_characteristics/diode_characteristics.cir
.include D.lib
v1 in gnd dc 1
d1 in out 1N4148
r1 net-_r1-pad1_ gnd 1k
* u1 out net-_r1-pad1_ plot_i2
v_u1 out net-_r1-pad1_ 0
* Schematic Name: zener, NgSpice Name: zener
.model u1 zener(n_forward=1.0 v_breakdown=5.6 i_sat=1.0e-12 limit_switch=FALSE i_breakdown=2.0e-2 )
.dc v1 0e-00 1e-00 0.01e-00
* Control Statements
.control
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
plot i(v_u1)
.endc
.end
|