.lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
.GLOBAL GND
XM1 d g GND GND sky130_fd_pr__nfet_01v8 L=0.15 W=1 nf=1
Vds d GND 1.8
Vgs g GND 1.8
.save V(g)
.save V(d)
.save I(Vds)
.control
dc Vgs 0 1.8 0.03 Vds 0 1.8 0.03
write filename.raw
.endc
.end
.lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
.GLOBAL GND
XM1 d g vdd vdd sky130_fd_pr__pfet_01v8 L=0.15 W=1 nf=1
Vvdd vdd GND 1.8
Vds d GND 1.8
Vgs g GND 1.8
.save V(g)
.save V(d)
.save I(Vds)
.control
dc Vgs 0 1.8 0.03 Vds 0 1.8 0.03
write filename.raw
.endc
.end