* c:\users\sumanto\esim-workspace\spamp\spamp.cir | |
* RUN USING NGSPICE 34 | |
.lib "../../libs/sky130_fd_pr/models/sky130.lib.spice" tt | |
xm2 Vc net-_cds1-pad1_ net-_c2-pad1_ net-_c2-pad1_ sky130_fd_pr__nfet_01v8 W=100 L=100; | |
xm1 net-_cds1-pad1_ vin net-_cds1-pad2_ net-_cds1-pad2_ sky130_fd_pr__pfet_01v8 W=100 L=100; | |
r4 net-_cds1-pad2_ Vc 6.7meg; | |
Vo Vc Vdd 0; Current Gain Vs Collector Current | |
r3 gnd vin 100k; | |
v2 vdd gnd 0 pwl (0 0 100m 3); Current Gain Vs Collector Current | |
r7 gnd vout 100meg; | |
r2 vin vdd 100k; | |
c1 vout Vc 100u; | |
cds1 net-_cds1-pad1_ net-_cds1-pad2_ 0.1u; | |
cgs1 net-_cds1-pad1_ vin 0.1u; | |
cgd1 net-_cds1-pad2_ vin 0.1u; | |
c2 net-_c2-pad1_ gnd 100u; | |
r6 gnd net-_c2-pad1_ 1k; | |
I1 Iin gnd 1; Current Gain Vs Collector Current | |
.tran 10e-06 100e-03 0e-03; for Transient analysis, supply variation analysis, Current Gain Vs Collector Current | |
*.temp 50; | |
.control; | |
run; | |
print allv > plot_data_v.txt; | |
print alli > plot_data_i.txt; | |
plot Vo#branch vs V2#branch; Current Gain Vs Collector Current | |
.endc | |
.end |